ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure
(Generate patch)

Comparing rxvt-unicode/configure (file contents):
Revision 1.102 by ayin, Tue May 8 11:24:45 2007 UTC vs.
Revision 1.156 by root, Tue Jun 19 18:17:56 2012 UTC

1#! /bin/sh 1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles. 2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.61. 3# Generated by GNU Autoconf 2.67.
4#
4# 5#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. 7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# Foundation, Inc.
9#
10#
7# This configure script is free software; the Free Software Foundation 11# This configure script is free software; the Free Software Foundation
8# gives unlimited permission to copy, distribute and modify it. 12# gives unlimited permission to copy, distribute and modify it.
9## --------------------- ## 13## -------------------- ##
10## M4sh Initialization. ## 14## M4sh Initialization. ##
11## --------------------- ## 15## -------------------- ##
12 16
13# Be more Bourne compatible 17# Be more Bourne compatible
14DUALCASE=1; export DUALCASE # for MKS sh 18DUALCASE=1; export DUALCASE # for MKS sh
15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16 emulate sh 20 emulate sh
17 NULLCMD=: 21 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature. 23 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"' 24 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST 25 setopt NO_GLOB_SUBST
22else 26else
23 case `(set -o) 2>/dev/null` in 27 case `(set -o) 2>/dev/null` in #(
24 *posix*) set -o posix ;; 28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25esac 32esac
26
27fi 33fi
28 34
29 35
30 36as_nl='
31 37'
32# PATH needs CR 38export as_nl
33# Avoid depending upon Character Ranges. 39# Printing a long string crashes Solaris 7 /usr/bin/printf.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz' 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37as_cr_digits='0123456789' 43# Prefer a ksh shell builtin over an external printf program on Solaris,
38as_cr_alnum=$as_cr_Letters$as_cr_digits 44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
39 73
40# The user is always right. 74# The user is always right.
41if test "${PATH_SEPARATOR+set}" != set; then 75if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh 76 PATH_SEPARATOR=:
43 echo "exit 0" >>conf$$.sh 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
44 chmod +x conf$$.sh 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';' 79 PATH_SEPARATOR=';'
47 else 80 }
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51fi
52
53# Support unset when possible.
54if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56else
57 as_unset=false
58fi 81fi
59 82
60 83
61# IFS 84# IFS
62# We need space, tab and new line, in precisely that order. Quoting is 85# We need space, tab and new line, in precisely that order. Quoting is
63# there to prevent editors from complaining about space-tab. 86# there to prevent editors from complaining about space-tab.
64# (If _AS_PATH_WALK were called with IFS unset, it would disable word 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
65# splitting by setting IFS to empty value.) 88# splitting by setting IFS to empty value.)
66as_nl='
67'
68IFS=" "" $as_nl" 89IFS=" "" $as_nl"
69 90
70# Find who we are. Look in the path if we contain no directory separator. 91# Find who we are. Look in the path if we contain no directory separator.
71case $0 in 92case $0 in #((
72 *[\\/]* ) as_myself=$0 ;; 93 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH 95for as_dir in $PATH
75do 96do
76 IFS=$as_save_IFS 97 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=. 98 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done 100 done
80IFS=$as_save_IFS 101IFS=$as_save_IFS
81 102
82 ;; 103 ;;
83esac 104esac
84# We did not find ourselves, most probably we were run as `sh COMMAND' 105# 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. 106# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then 107if test "x$as_myself" = x; then
87 as_myself=$0 108 as_myself=$0
88fi 109fi
89if test ! -f "$as_myself"; then 110if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; } 112 exit 1
92fi 113fi
93 114
94# Work around bugs in pre-3.0 UWIN ksh. 115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there. '((' could
118# trigger a bug in pdksh 5.2.14.
95for as_var in ENV MAIL MAILPATH 119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
97done 122done
98PS1='$ ' 123PS1='$ '
99PS2='> ' 124PS2='> '
100PS4='+ ' 125PS4='+ '
101 126
102# NLS nuisances. 127# NLS nuisances.
103for as_var in \ 128LC_ALL=C
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 129export LC_ALL
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 130LANGUAGE=C
106 LC_TELEPHONE LC_TIME 131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi
152"
153 as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else
178 as_have_required=no
179fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184as_found=false
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
107do 186do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 187 IFS=$as_save_IFS
109 eval $as_var=C; export $as_var 188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;;
203 esac
204 as_found=false
205done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
110 else 230 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
112 fi 235 fi
113done 236 exit 1
237fi
238fi
239fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
114 245
115# Required to use basename. 246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257
258# as_fn_set_status STATUS
259# -----------------------
260# Set $? to STATUS, without forking.
261as_fn_set_status ()
262{
263 return $1
264} # as_fn_set_status
265
266# as_fn_exit STATUS
267# -----------------
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269as_fn_exit ()
270{
271 set +e
272 as_fn_set_status $1
273 exit $1
274} # as_fn_exit
275
276# as_fn_mkdir_p
277# -------------
278# Create "$as_dir" as a directory, including parents if necessary.
279as_fn_mkdir_p ()
280{
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339fi # as_fn_append
340
341# as_fn_arith ARG...
342# ------------------
343# Perform arithmetic evaluation on the ARGs, and store the result in the
344# global $as_val. Take advantage of shells that can avoid forks. The arguments
345# must be portable across $(()) and expr.
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356fi # as_fn_arith
357
358
359# as_fn_error STATUS ERROR [LINENO LOG_FD]
360# ----------------------------------------
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363# script with STATUS, using 1 if that was 0.
364as_fn_error ()
365{
366 as_status=$1; test $as_status -eq 0 && as_status=1
367 if test "$4"; then
368 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
370 fi
371 $as_echo "$as_me: error: $2" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374
116if expr a : '\(a\)' >/dev/null 2>&1 && 375if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr 377 as_expr=expr
119else 378else
120 as_expr=false 379 as_expr=false
124 as_basename=basename 383 as_basename=basename
125else 384else
126 as_basename=false 385 as_basename=false
127fi 386fi
128 387
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
389 as_dirname=dirname
390else
391 as_dirname=false
392fi
129 393
130# Name of the executable.
131as_me=`$as_basename -- "$0" || 394as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \ 396 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" | 398$as_echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 399 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/ 400 s//\1/
138 q 401 q
139 } 402 }
140 /^X\/\(\/\/\)$/{ 403 /^X\/\(\/\/\)$/{
145 s//\1/ 408 s//\1/
146 q 409 q
147 } 410 }
148 s/.*/./; q'` 411 s/.*/./; q'`
149 412
150# CDPATH. 413# Avoid depending upon Character Ranges.
151$as_unset CDPATH 414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
152 419
153 420
154if test "x$CONFIG_SHELL" = x; then 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
155 if (eval ":") 2>/dev/null; then 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
156 as_have_required=yes
157else
158 as_have_required=no
159fi
160
161 if test $as_have_required = yes && (eval ":
162(as_func_return () {
163 (exit \$1)
164}
165as_func_success () {
166 as_func_return 0
167}
168as_func_failure () {
169 as_func_return 1
170}
171as_func_ret_success () {
172 return 0
173}
174as_func_ret_failure () {
175 return 1
176}
177
178exitcode=0
179if as_func_success; then
180 :
181else
182 exitcode=1
183 echo as_func_success failed.
184fi
185
186if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189fi
190
191if as_func_ret_success; then
192 :
193else
194 exitcode=1
195 echo as_func_ret_success failed.
196fi
197
198if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201fi
202
203if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205else
206 exitcode=1
207 echo positional parameters were not saved.
208fi
209
210test \$exitcode = 0) || { (exit 1); exit 1; }
211
212(
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 :
219else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232done
233IFS=$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
240if 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
247else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250esac
251
252fi
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
261if 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
268else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271esac
272
273fi
274
275
276:
277(as_func_return () {
278 (exit $1)
279}
280as_func_success () {
281 as_func_return 0
282}
283as_func_failure () {
284 as_func_return 1
285}
286as_func_ret_success () {
287 return 0
288}
289as_func_ret_failure () {
290 return 1
291}
292
293exitcode=0
294if as_func_success; then
295 :
296else
297 exitcode=1
298 echo as_func_success failed.
299fi
300
301if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304fi
305
306if as_func_ret_success; then
307 :
308else
309 exitcode=1
310 echo as_func_ret_success failed.
311fi
312
313if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316fi
317
318if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320else
321 exitcode=1
322 echo positional parameters were not saved.
323fi
324
325test $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" && 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333_ASEOF
334}; then
335 break
336fi
337
338fi
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+"$@"}
348fi
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; }
357fi
358
359
360fi
361
362fi
363
364
365
366(eval "as_func_return () {
367 (exit \$1)
368}
369as_func_success () {
370 as_func_return 0
371}
372as_func_failure () {
373 as_func_return 1
374}
375as_func_ret_success () {
376 return 0
377}
378as_func_ret_failure () {
379 return 1
380}
381
382exitcode=0
383if as_func_success; then
384 :
385else
386 exitcode=1
387 echo as_func_success failed.
388fi
389
390if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393fi
394
395if as_func_ret_success; then
396 :
397else
398 exitcode=1
399 echo as_func_ret_success failed.
400fi
401
402if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405fi
406
407if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409else
410 exitcode=1
411 echo positional parameters were not saved.
412fi
413
414test \$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 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427
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 # 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 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-) 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n ' 426 sed -n '
439 p 427 p
440 /[$]LINENO/= 428 /[$]LINENO/=
441 ' <$as_myself | 429 ' <$as_myself |
442 sed ' 430 sed '
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop 438 t loop
451 s/-\n.*// 439 s/-\n.*//
452 ' >$as_me.lineno && 440 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" || 441 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
455 { (exit 1); exit 1; }; }
456 443
457 # Don't try to exec as it changes $[0], causing all sort of problems 444 # 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 445 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this). 446 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno" 447 . "./$as_me.lineno"
461 # Exit status is that of the last command. 448 # Exit status is that of the last command.
462 exit 449 exit
463} 450}
464 451
465
466if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468else
469 as_dirname=false
470fi
471
472ECHO_C= ECHO_N= ECHO_T= 452ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in 453case `echo -n x` in #(((((
474-n*) 454-n*)
475 case `echo 'x\c'` in 455 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';; 457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
478 esac;; 460 esac;;
479*) 461*)
480 ECHO_N='-n';; 462 ECHO_N='-n';;
481esac 463esac
482 464
483if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486else
487 as_expr=false
488fi
489
490rm -f conf$$ conf$$.exe conf$$.file 465rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then 466if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file 467 rm -f conf$$.dir/conf$$.file
493else 468else
494 rm -f conf$$.dir 469 rm -f conf$$.dir
495 mkdir conf$$.dir 470 mkdir conf$$.dir 2>/dev/null
496fi 471fi
497echo >conf$$.file 472if (echo >conf$$.file) 2>/dev/null; then
498if ln -s conf$$.file conf$$ 2>/dev/null; then 473 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s' 474 as_ln_s='ln -s'
500 # ... but there are two gotchas: 475 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 476 # 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. 477 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'. 478 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 479 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
480 as_ln_s='cp -p'
481 elif ln conf$$.file conf$$ 2>/dev/null; then
482 as_ln_s=ln
483 else
505 as_ln_s='cp -p' 484 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then 485 fi
507 as_ln_s=ln
508else 486else
509 as_ln_s='cp -p' 487 as_ln_s='cp -p'
510fi 488fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 489rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null 490rmdir conf$$.dir 2>/dev/null
513 491
514if mkdir -p . 2>/dev/null; then 492if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=: 493 as_mkdir_p='mkdir -p "$as_dir"'
516else 494else
517 test -d ./-p && rmdir ./-p 495 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false 496 as_mkdir_p=false
519fi 497fi
520 498
527 as_ls_L_option= 505 as_ls_L_option=
528 fi 506 fi
529 as_test_x=' 507 as_test_x='
530 eval sh -c '\'' 508 eval sh -c '\''
531 if test -d "$1"; then 509 if test -d "$1"; then
532 test -d "$1/."; 510 test -d "$1/.";
533 else 511 else
534 case $1 in 512 case $1 in #(
535 -*)set "./$1";; 513 -*)set "./$1";;
536 esac; 514 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
538 ???[sx]*):;;*)false;;esac;fi 516 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh 517 '\'' sh
540 ' 518 '
541fi 519fi
542as_executable_p=$as_test_x 520as_executable_p=$as_test_x
546 524
547# Sed expression to map a string onto a valid variable name. 525# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549 527
550 528
551 529test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 7<&0 </dev/null 6>&1 530exec 6>&1
553 531
554# Name of the host. 532# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 533# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too. 534# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 535ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 536
559# 537#
560# Initializations. 538# Initializations.
565LIBOBJS= 543LIBOBJS=
566cross_compiling=no 544cross_compiling=no
567subdirs= 545subdirs=
568MFLAGS= 546MFLAGS=
569MAKEFLAGS= 547MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571 548
572# Identity of this package. 549# Identity of this package.
573PACKAGE_NAME= 550PACKAGE_NAME=
574PACKAGE_TARNAME= 551PACKAGE_TARNAME=
575PACKAGE_VERSION= 552PACKAGE_VERSION=
576PACKAGE_STRING= 553PACKAGE_STRING=
577PACKAGE_BUGREPORT= 554PACKAGE_BUGREPORT=
555PACKAGE_URL=
578 556
579ac_unique_file="src/feature.h" 557ac_unique_file="src/feature.h"
580# Factoring default headers for most tests. 558# Factoring default headers for most tests.
581ac_includes_default="\ 559ac_includes_default="\
582#include <stdio.h> 560#include <stdio.h>
611#endif 589#endif
612#ifdef HAVE_UNISTD_H 590#ifdef HAVE_UNISTD_H
613# include <unistd.h> 591# include <unistd.h>
614#endif" 592#endif"
615 593
616ac_subst_vars='SHELL 594ac_subst_vars='LTLIBOBJS
595LIBOBJS
596PERL_O
597IF_PERL
598PERLPRIVLIBEXP
599PERLFLAGS
600PERLLIB
601PERL
602PIXBUF_LIBS
603PIXBUF_CFLAGS
604XFT_CONFIG
605STARTUP_NOTIFICATION_LIBS
606STARTUP_NOTIFICATION_CFLAGS
607PKG_CONFIG
608X_EXTRA_LIBS
609X_LIBS
610X_PRE_LIBS
611X_CFLAGS
612XMKMF
613TIC
614CXXCPP
615RXVTNAME
616LINKER
617EGREP
618GREP
619CPP
620INSTALL_DATA
621INSTALL_SCRIPT
622INSTALL_PROGRAM
623ac_ct_CXX
624CXXFLAGS
625CXX
626OBJEXT
627EXEEXT
628ac_ct_CC
629CPPFLAGS
630LDFLAGS
631CFLAGS
632CC
633DATE
634VERSION
635host_os
636host_vendor
637host_cpu
638host
639build_os
640build_vendor
641build_cpu
642build
643target_alias
644host_alias
645build_alias
646LIBS
647ECHO_T
648ECHO_N
649ECHO_C
650DEFS
651mandir
652localedir
653libdir
654psdir
655pdfdir
656dvidir
657htmldir
658infodir
659docdir
660oldincludedir
661includedir
662localstatedir
663sharedstatedir
664sysconfdir
665datadir
666datarootdir
667libexecdir
668sbindir
669bindir
670program_transform_name
671prefix
672exec_prefix
673PACKAGE_URL
674PACKAGE_BUGREPORT
675PACKAGE_STRING
676PACKAGE_VERSION
677PACKAGE_TARNAME
678PACKAGE_NAME
617PATH_SEPARATOR 679PATH_SEPARATOR
618PACKAGE_NAME 680SHELL'
619PACKAGE_TARNAME
620PACKAGE_VERSION
621PACKAGE_STRING
622PACKAGE_BUGREPORT
623exec_prefix
624prefix
625program_transform_name
626bindir
627sbindir
628libexecdir
629datarootdir
630datadir
631sysconfdir
632sharedstatedir
633localstatedir
634includedir
635oldincludedir
636docdir
637infodir
638htmldir
639dvidir
640pdfdir
641psdir
642libdir
643localedir
644mandir
645DEFS
646ECHO_C
647ECHO_N
648ECHO_T
649LIBS
650build_alias
651host_alias
652target_alias
653build
654build_cpu
655build_vendor
656build_os
657host
658host_cpu
659host_vendor
660host_os
661VERSION
662DATE
663LSMDATE
664LIBVERSION
665CC
666CFLAGS
667LDFLAGS
668CPPFLAGS
669ac_ct_CC
670EXEEXT
671OBJEXT
672CXX
673CXXFLAGS
674ac_ct_CXX
675CPP
676INSTALL_PROGRAM
677INSTALL_SCRIPT
678INSTALL_DATA
679GREP
680EGREP
681LINKER
682INSTALL_LIBRXVT
683RXVTNAME
684MV
685CP
686LN
687SED
688ECHO
689CMP
690TIC
691XMKMF
692CXXCPP
693X_CFLAGS
694X_PRE_LIBS
695X_LIBS
696X_EXTRA_LIBS
697XPM_CPPFLAGS
698XPM_CFLAGS
699XPM_LIBS
700rxvt_int16_typedef
701rxvt_uint16_typedef
702rxvt_int32_typedef
703rxvt_uint32_typedef
704rxvt_intp_define
705rxvt_u_intp_define
706PKG_CONFIG
707XFT_CONFIG
708PERL
709PERLLIB
710PERLFLAGS
711PERLPRIVLIBEXP
712IF_PERL
713PERL_O
714DEBUG
715DINCLUDE
716DLIB
717include_stdint_h
718include_stdarg_h
719include_stdlib_h
720include_unistd_h
721include_string_h
722include_fcntl_h
723include_util_h
724include_assert_h
725include_sys_ioctl_h
726include_sys_select_h
727include_sys_strredir_h
728include_sys_time_h
729include_time_h
730LIBOBJS
731LTLIBOBJS'
732ac_subst_files='' 681ac_subst_files=''
682ac_user_opts='
683enable_option_checking
684enable_everything
685enable_assert
686enable_warnings
687enable_256_color
688enable_unicode3
689enable_combining
690enable_xft
691enable_font_styles
692enable_pixbuf
693enable_startup_notification
694enable_transparency
695enable_fading
696enable_rxvt_scroll
697enable_next_scroll
698enable_xterm_scroll
699enable_perl
700with_codesets
701enable_xim
702enable_backspace_key
703enable_delete_key
704enable_resources
705enable_8bitctrls
706enable_fallback
707with_res_name
708with_res_class
709with_name
710enable_swapscreen
711enable_iso14755
712enable_frills
713enable_keepscrolling
714enable_selectionscrolling
715enable_mousewheel
716enable_slipwheeling
717enable_smart_resize
718enable_text_blink
719enable_pointer_blank
720with_term
721with_terminfo
722enable_xdbe
723with_x
724enable_utmp
725enable_wtmp
726enable_lastlog
727'
733 ac_precious_vars='build_alias 728 ac_precious_vars='build_alias
734host_alias 729host_alias
735target_alias 730target_alias
736CC 731CC
737CFLAGS 732CFLAGS
740CPPFLAGS 735CPPFLAGS
741CXX 736CXX
742CXXFLAGS 737CXXFLAGS
743CCC 738CCC
744CPP 739CPP
745XMKMF
746CXXCPP' 740CXXCPP
741XMKMF'
747 742
748 743
749# Initialize some variables set by options. 744# Initialize some variables set by options.
750ac_init_help= 745ac_init_help=
751ac_init_version=false 746ac_init_version=false
747ac_unrecognized_opts=
748ac_unrecognized_sep=
752# The variables have the same names as the options, with 749# The variables have the same names as the options, with
753# dashes changed to underlines. 750# dashes changed to underlines.
754cache_file=/dev/null 751cache_file=/dev/null
755exec_prefix=NONE 752exec_prefix=NONE
756no_create= 753no_create=
802 ac_prev= 799 ac_prev=
803 continue 800 continue
804 fi 801 fi
805 802
806 case $ac_option in 803 case $ac_option in
807 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 804 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
805 *=) ac_optarg= ;;
808 *) ac_optarg=yes ;; 806 *) ac_optarg=yes ;;
809 esac 807 esac
810 808
811 # Accept the important Cygnus configure options, so we can diagnose typos. 809 # Accept the important Cygnus configure options, so we can diagnose typos.
812 810
813 case $ac_dashdash$ac_option in 811 case $ac_dashdash$ac_option in
845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 843 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 844 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
847 datarootdir=$ac_optarg ;; 845 datarootdir=$ac_optarg ;;
848 846
849 -disable-* | --disable-*) 847 -disable-* | --disable-*)
850 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 848 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
851 # Reject names that are not valid shell variable names. 849 # Reject names that are not valid shell variable names.
852 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 850 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 851 as_fn_error $? "invalid feature name: $ac_useropt"
854 { (exit 1); exit 1; }; } 852 ac_useropt_orig=$ac_useropt
855 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 853 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
854 case $ac_user_opts in
855 *"
856"enable_$ac_useropt"
857"*) ;;
858 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
859 ac_unrecognized_sep=', ';;
860 esac
856 eval enable_$ac_feature=no ;; 861 eval enable_$ac_useropt=no ;;
857 862
858 -docdir | --docdir | --docdi | --doc | --do) 863 -docdir | --docdir | --docdi | --doc | --do)
859 ac_prev=docdir ;; 864 ac_prev=docdir ;;
860 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 865 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
861 docdir=$ac_optarg ;; 866 docdir=$ac_optarg ;;
864 ac_prev=dvidir ;; 869 ac_prev=dvidir ;;
865 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 870 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
866 dvidir=$ac_optarg ;; 871 dvidir=$ac_optarg ;;
867 872
868 -enable-* | --enable-*) 873 -enable-* | --enable-*)
869 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 874 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
870 # Reject names that are not valid shell variable names. 875 # Reject names that are not valid shell variable names.
871 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 876 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
872 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 877 as_fn_error $? "invalid feature name: $ac_useropt"
873 { (exit 1); exit 1; }; } 878 ac_useropt_orig=$ac_useropt
874 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 879 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
880 case $ac_user_opts in
881 *"
882"enable_$ac_useropt"
883"*) ;;
884 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
885 ac_unrecognized_sep=', ';;
886 esac
875 eval enable_$ac_feature=\$ac_optarg ;; 887 eval enable_$ac_useropt=\$ac_optarg ;;
876 888
877 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 889 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
878 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 890 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
879 | --exec | --exe | --ex) 891 | --exec | --exe | --ex)
880 ac_prev=exec_prefix ;; 892 ac_prev=exec_prefix ;;
1061 1073
1062 -version | --version | --versio | --versi | --vers | -V) 1074 -version | --version | --versio | --versi | --vers | -V)
1063 ac_init_version=: ;; 1075 ac_init_version=: ;;
1064 1076
1065 -with-* | --with-*) 1077 -with-* | --with-*)
1066 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1078 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names. 1079 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1080 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2 1081 as_fn_error $? "invalid package name: $ac_useropt"
1070 { (exit 1); exit 1; }; } 1082 ac_useropt_orig=$ac_useropt
1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1083 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1084 case $ac_user_opts in
1085 *"
1086"with_$ac_useropt"
1087"*) ;;
1088 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1089 ac_unrecognized_sep=', ';;
1090 esac
1072 eval with_$ac_package=\$ac_optarg ;; 1091 eval with_$ac_useropt=\$ac_optarg ;;
1073 1092
1074 -without-* | --without-*) 1093 -without-* | --without-*)
1075 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1094 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1076 # Reject names that are not valid shell variable names. 1095 # Reject names that are not valid shell variable names.
1077 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1096 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid package name: $ac_package" >&2 1097 as_fn_error $? "invalid package name: $ac_useropt"
1079 { (exit 1); exit 1; }; } 1098 ac_useropt_orig=$ac_useropt
1080 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1099 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1100 case $ac_user_opts in
1101 *"
1102"with_$ac_useropt"
1103"*) ;;
1104 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1105 ac_unrecognized_sep=', ';;
1106 esac
1081 eval with_$ac_package=no ;; 1107 eval with_$ac_useropt=no ;;
1082 1108
1083 --x) 1109 --x)
1084 # Obsolete; use --with-x. 1110 # Obsolete; use --with-x.
1085 with_x=yes ;; 1111 with_x=yes ;;
1086 1112
1096 ac_prev=x_libraries ;; 1122 ac_prev=x_libraries ;;
1097 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1123 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1098 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1124 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1099 x_libraries=$ac_optarg ;; 1125 x_libraries=$ac_optarg ;;
1100 1126
1101 -*) { echo "$as_me: error: unrecognized option: $ac_option 1127 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1102Try \`$0 --help' for more information." >&2 1128Try \`$0 --help' for more information"
1103 { (exit 1); exit 1; }; }
1104 ;; 1129 ;;
1105 1130
1106 *=*) 1131 *=*)
1107 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1132 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1108 # Reject names that are not valid shell variable names. 1133 # Reject names that are not valid shell variable names.
1109 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1134 case $ac_envvar in #(
1135 '' | [0-9]* | *[!_$as_cr_alnum]* )
1110 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1136 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1111 { (exit 1); exit 1; }; } 1137 esac
1112 eval $ac_envvar=\$ac_optarg 1138 eval $ac_envvar=\$ac_optarg
1113 export $ac_envvar ;; 1139 export $ac_envvar ;;
1114 1140
1115 *) 1141 *)
1116 # FIXME: should be removed in autoconf 3.0. 1142 # FIXME: should be removed in autoconf 3.0.
1117 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1143 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1118 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1144 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1119 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1145 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1120 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1146 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1121 ;; 1147 ;;
1122 1148
1123 esac 1149 esac
1124done 1150done
1125 1151
1126if test -n "$ac_prev"; then 1152if test -n "$ac_prev"; then
1127 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1153 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1128 { echo "$as_me: error: missing argument to $ac_option" >&2 1154 as_fn_error $? "missing argument to $ac_option"
1129 { (exit 1); exit 1; }; }
1130fi 1155fi
1131 1156
1132# Be sure to have absolute directory names. 1157if test -n "$ac_unrecognized_opts"; then
1158 case $enable_option_checking in
1159 no) ;;
1160 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1161 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1162 esac
1163fi
1164
1165# Check all directory arguments for consistency.
1133for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1166for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1134 datadir sysconfdir sharedstatedir localstatedir includedir \ 1167 datadir sysconfdir sharedstatedir localstatedir includedir \
1135 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1168 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1136 libdir localedir mandir 1169 libdir localedir mandir
1137do 1170do
1138 eval ac_val=\$$ac_var 1171 eval ac_val=\$$ac_var
1172 # Remove trailing slashes.
1173 case $ac_val in
1174 */ )
1175 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1176 eval $ac_var=\$ac_val;;
1177 esac
1178 # Be sure to have absolute directory names.
1139 case $ac_val in 1179 case $ac_val in
1140 [\\/$]* | ?:[\\/]* ) continue;; 1180 [\\/$]* | ?:[\\/]* ) continue;;
1141 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1181 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1142 esac 1182 esac
1143 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1183 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1144 { (exit 1); exit 1; }; }
1145done 1184done
1146 1185
1147# There might be people who depend on the old broken behavior: `$host' 1186# There might be people who depend on the old broken behavior: `$host'
1148# used to hold the argument of --host etc. 1187# used to hold the argument of --host etc.
1149# FIXME: To remove some day. 1188# FIXME: To remove some day.
1153 1192
1154# FIXME: To remove some day. 1193# FIXME: To remove some day.
1155if test "x$host_alias" != x; then 1194if test "x$host_alias" != x; then
1156 if test "x$build_alias" = x; then 1195 if test "x$build_alias" = x; then
1157 cross_compiling=maybe 1196 cross_compiling=maybe
1158 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1197 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1159 If a cross compiler is detected then cross compile mode will be used." >&2 1198 If a cross compiler is detected then cross compile mode will be used" >&2
1160 elif test "x$build_alias" != "x$host_alias"; then 1199 elif test "x$build_alias" != "x$host_alias"; then
1161 cross_compiling=yes 1200 cross_compiling=yes
1162 fi 1201 fi
1163fi 1202fi
1164 1203
1169 1208
1170 1209
1171ac_pwd=`pwd` && test -n "$ac_pwd" && 1210ac_pwd=`pwd` && test -n "$ac_pwd" &&
1172ac_ls_di=`ls -di .` && 1211ac_ls_di=`ls -di .` &&
1173ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1212ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1174 { echo "$as_me: error: Working directory cannot be determined" >&2 1213 as_fn_error $? "working directory cannot be determined"
1175 { (exit 1); exit 1; }; }
1176test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1214test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1177 { echo "$as_me: error: pwd does not report name of working directory" >&2 1215 as_fn_error $? "pwd does not report name of working directory"
1178 { (exit 1); exit 1; }; }
1179 1216
1180 1217
1181# Find the source files, if location was not specified. 1218# Find the source files, if location was not specified.
1182if test -z "$srcdir"; then 1219if test -z "$srcdir"; then
1183 ac_srcdir_defaulted=yes 1220 ac_srcdir_defaulted=yes
1184 # Try the directory containing this script, then the parent directory. 1221 # Try the directory containing this script, then the parent directory.
1185 ac_confdir=`$as_dirname -- "$0" || 1222 ac_confdir=`$as_dirname -- "$as_myself" ||
1186$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1223$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1187 X"$0" : 'X\(//\)[^/]' \| \ 1224 X"$as_myself" : 'X\(//\)[^/]' \| \
1188 X"$0" : 'X\(//\)$' \| \ 1225 X"$as_myself" : 'X\(//\)$' \| \
1189 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1226 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1190echo X"$0" | 1227$as_echo X"$as_myself" |
1191 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1228 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1192 s//\1/ 1229 s//\1/
1193 q 1230 q
1194 } 1231 }
1195 /^X\(\/\/\)[^/].*/{ 1232 /^X\(\/\/\)[^/].*/{
1212else 1249else
1213 ac_srcdir_defaulted=no 1250 ac_srcdir_defaulted=no
1214fi 1251fi
1215if test ! -r "$srcdir/$ac_unique_file"; then 1252if test ! -r "$srcdir/$ac_unique_file"; then
1216 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1253 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1217 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1254 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1218 { (exit 1); exit 1; }; }
1219fi 1255fi
1220ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1256ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1221ac_abs_confdir=`( 1257ac_abs_confdir=`(
1222 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1258 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1223 { (exit 1); exit 1; }; }
1224 pwd)` 1259 pwd)`
1225# When building in place, set srcdir=. 1260# When building in place, set srcdir=.
1226if test "$ac_abs_confdir" = "$ac_pwd"; then 1261if test "$ac_abs_confdir" = "$ac_pwd"; then
1227 srcdir=. 1262 srcdir=.
1228fi 1263fi
1258Configuration: 1293Configuration:
1259 -h, --help display this help and exit 1294 -h, --help display this help and exit
1260 --help=short display options specific to this package 1295 --help=short display options specific to this package
1261 --help=recursive display the short help of all the included packages 1296 --help=recursive display the short help of all the included packages
1262 -V, --version display version information and exit 1297 -V, --version display version information and exit
1263 -q, --quiet, --silent do not print \`checking...' messages 1298 -q, --quiet, --silent do not print \`checking ...' messages
1264 --cache-file=FILE cache test results in FILE [disabled] 1299 --cache-file=FILE cache test results in FILE [disabled]
1265 -C, --config-cache alias for \`--cache-file=config.cache' 1300 -C, --config-cache alias for \`--cache-file=config.cache'
1266 -n, --no-create do not create output files 1301 -n, --no-create do not create output files
1267 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1302 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1268 1303
1269Installation directories: 1304Installation directories:
1270 --prefix=PREFIX install architecture-independent files in PREFIX 1305 --prefix=PREFIX install architecture-independent files in PREFIX
1271 [$ac_default_prefix] 1306 [$ac_default_prefix]
1272 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1307 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1273 [PREFIX] 1308 [PREFIX]
1274 1309
1275By default, \`make install' will install all the files in 1310By default, \`make install' will install all the files in
1276\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1311\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1277an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1312an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1278for instance \`--prefix=\$HOME'. 1313for instance \`--prefix=\$HOME'.
1279 1314
1280For better control, use the options below. 1315For better control, use the options below.
1281 1316
1282Fine tuning of the installation directories: 1317Fine tuning of the installation directories:
1283 --bindir=DIR user executables [EPREFIX/bin] 1318 --bindir=DIR user executables [EPREFIX/bin]
1284 --sbindir=DIR system admin executables [EPREFIX/sbin] 1319 --sbindir=DIR system admin executables [EPREFIX/sbin]
1285 --libexecdir=DIR program executables [EPREFIX/libexec] 1320 --libexecdir=DIR program executables [EPREFIX/libexec]
1286 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1321 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1287 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1322 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1288 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1323 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1289 --libdir=DIR object code libraries [EPREFIX/lib] 1324 --libdir=DIR object code libraries [EPREFIX/lib]
1290 --includedir=DIR C header files [PREFIX/include] 1325 --includedir=DIR C header files [PREFIX/include]
1291 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1326 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1292 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1327 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1293 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1328 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1294 --infodir=DIR info documentation [DATAROOTDIR/info] 1329 --infodir=DIR info documentation [DATAROOTDIR/info]
1295 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1330 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1296 --mandir=DIR man documentation [DATAROOTDIR/man] 1331 --mandir=DIR man documentation [DATAROOTDIR/man]
1297 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1332 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1298 --htmldir=DIR html documentation [DOCDIR] 1333 --htmldir=DIR html documentation [DOCDIR]
1299 --dvidir=DIR dvi documentation [DOCDIR] 1334 --dvidir=DIR dvi documentation [DOCDIR]
1300 --pdfdir=DIR pdf documentation [DOCDIR] 1335 --pdfdir=DIR pdf documentation [DOCDIR]
1301 --psdir=DIR ps documentation [DOCDIR] 1336 --psdir=DIR ps documentation [DOCDIR]
1302_ACEOF 1337_ACEOF
1303 1338
1304 cat <<\_ACEOF 1339 cat <<\_ACEOF
1305 1340
1306X features: 1341X features:
1307 --x-includes=DIR X include files are in DIR 1342 --x-includes=DIR X include files are in DIR
1308 --x-libraries=DIR X library files are in DIR 1343 --x-libraries=DIR X library files are in DIR
1309 1344
1310Program names:
1311 --program-prefix=PREFIX prepend PREFIX to installed program names
1312 --program-suffix=SUFFIX append SUFFIX to installed program names
1313 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1314
1315System types: 1345System types:
1316 --build=BUILD configure for building on BUILD [guessed] 1346 --build=BUILD configure for building on BUILD [guessed]
1317 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1347 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1318_ACEOF 1348_ACEOF
1319fi 1349fi
1321if test -n "$ac_init_help"; then 1351if test -n "$ac_init_help"; then
1322 1352
1323 cat <<\_ACEOF 1353 cat <<\_ACEOF
1324 1354
1325Optional Features: 1355Optional Features:
1356 --disable-option-checking ignore unrecognized --enable/--with options
1326 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1357 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1327 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1358 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1328 --enable-everything enable standard non-multichoice features 1359 --enable-everything enable standard non-multichoice features
1329 NOTE: this option is order dependent 1360 NOTE: this option is order dependent
1330 NOTE: automatically enabled with --enable-shared 1361 --enable-assert enable assertions
1362 --enable-warnings turn on g++ warnings
1363 --enable-256-color enable 256-color support
1331 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1364 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1332 --enable-combining enable composition of base and combining characters 1365 --enable-combining enable composition of base and combining characters
1333 --enable-xft enable xft support on systems that have it 1366 --enable-xft enable xft support on systems that have it
1334 --enable-font-styles enable bold and italic support 1367 --enable-font-styles enable bold and italic support
1335 --enable-xpm-background enable XPM background pixmaps 1368 --enable-pixbuf enable integration with gdk-pixbuf for background images
1369 --enable-startup-notification enable freedesktop startup notification support
1336 --enable-transparency enable transparent backgrounds 1370 --enable-transparency enable transparent backgrounds
1337 --enable-tinting enable tinting of transparent bg
1338 --enable-fading enable colors fading when off focus 1371 --enable-fading enable colors fading when off focus
1339 --enable-rxvt-scroll enable rxvt style scrollbar 1372 --enable-rxvt-scroll enable rxvt style scrollbar
1340 --enable-next-scroll enable NeXT style scrollbar 1373 --enable-next-scroll enable NeXT style scrollbar
1341 --enable-xterm-scroll enable Xterm style scrollbar 1374 --enable-xterm-scroll enable Xterm style scrollbar
1342 --enable-perl enable embedded perl interpreter 1375 --enable-perl enable embedded perl interpreter
1343 --enable-plain-scroll enable plain style scrollbar
1344 --enable-xim XIM (X Input Method) protocol support 1376 --enable-xim XIM (X Input Method) protocol support
1345 --disable-backspace-key disable handling of the backspace key 1377 --disable-backspace-key disable handling of the backspace key
1346 --disable-delete-key disable handling of the delete key 1378 --disable-delete-key disable handling of the delete key
1347 --disable-resources disable all resource checking 1379 --disable-resources disable all resource checking
1348 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1380 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1349 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 1381 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1350 --disable-swapscreen disable swap screen support 1382 --disable-swapscreen disable swap screen support
1351 --enable-iso14755 enable support for extended ISO 14755 modes 1383 --enable-iso14755 enable support for extended ISO 14755 modes
1352 --enable-frills enable support for rarely used features 1384 --enable-frills enable support for rarely used features
1353 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1385 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1354 --enable-selectionscrolling enable scrolling during selections 1386 --enable-selectionscrolling enable scrolling during selections
1355 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1387 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1356 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1388 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1357 --enable-smart-resize enable smart growth/shrink behaviour 1389 --enable-smart-resize enable smart growth/shrink behaviour
1358 --enable-text-blink enable blinking text 1390 --enable-text-blink enable blinking text
1359 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1391 --enable-pointer-blank enable pointer blanking when typing or inactive
1392 --enable-xdbe enable support for double buffering
1360 --enable-utmp enable utmp (utmpx) support 1393 --enable-utmp enable utmp (utmpx) support
1361 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1394 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1362 --enable-lastlog enable lastlog support (requires --enable-utmp) 1395 --enable-lastlog enable lastlog support (requires --enable-utmp)
1363 1396
1364Optional Packages: 1397Optional Packages:
1365 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1398 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1366 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1399 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1367 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1400 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1368 --with-res-name=NAME use this as default resource name (default: urxvt) 1401 --with-res-name=NAME use this as default resource name (default: urxvt)
1369 --with-res-class=CLASS use this as the resource class (default: URxvt) 1402 --with-res-class=CLASS use this as the resource class (default: URxvt)
1370 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1403 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1371 --with-term=NAME set the terminal to NAME (default: rxvt) 1404 --with-term=NAME set the terminal to NAME (default: rxvt)
1372 --with-terminfo=PATH set the path to the terminfo tree to PATH 1405 --with-terminfo=PATH set the path to the terminfo tree to PATH
1373 --with-x use the X Window System 1406 --with-x use the X Window System
1374 --with-xpm-includes=DIR use XPM includes in DIR
1375 --with-xpm-library=DIR use XPM library in DIR
1376 --with-xpm use XPM
1377 1407
1378Some influential environment variables: 1408Some influential environment variables:
1379 CC C compiler command 1409 CC C compiler command
1380 CFLAGS C compiler flags 1410 CFLAGS C compiler flags
1381 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1411 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1382 nonstandard directory <lib dir> 1412 nonstandard directory <lib dir>
1383 LIBS libraries to pass to the linker, e.g. -l<library> 1413 LIBS libraries to pass to the linker, e.g. -l<library>
1384 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1414 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1385 you have headers in a nonstandard directory <include dir> 1415 you have headers in a nonstandard directory <include dir>
1386 CXX C++ compiler command 1416 CXX C++ compiler command
1387 CXXFLAGS C++ compiler flags 1417 CXXFLAGS C++ compiler flags
1388 CPP C preprocessor 1418 CPP C preprocessor
1419 CXXCPP C++ preprocessor
1389 XMKMF Path to xmkmf, Makefile generator for X Window System 1420 XMKMF Path to xmkmf, Makefile generator for X Window System
1390 CXXCPP C++ preprocessor
1391 1421
1392Use these variables to override the choices made by `configure' or to help 1422Use these variables to override the choices made by `configure' or to help
1393it to find libraries and programs with nonstandard names/locations. 1423it to find libraries and programs with nonstandard names/locations.
1394 1424
1425Report bugs to the package provider.
1395_ACEOF 1426_ACEOF
1396ac_status=$? 1427ac_status=$?
1397fi 1428fi
1398 1429
1399if test "$ac_init_help" = "recursive"; then 1430if test "$ac_init_help" = "recursive"; then
1400 # If there are subdirs, report their specific --help. 1431 # If there are subdirs, report their specific --help.
1401 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1432 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1402 test -d "$ac_dir" || continue 1433 test -d "$ac_dir" ||
1434 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1435 continue
1403 ac_builddir=. 1436 ac_builddir=.
1404 1437
1405case "$ac_dir" in 1438case "$ac_dir" in
1406.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1439.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1407*) 1440*)
1408 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1441 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1409 # A ".." for each directory in $ac_dir_suffix. 1442 # A ".." for each directory in $ac_dir_suffix.
1410 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1443 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1411 case $ac_top_builddir_sub in 1444 case $ac_top_builddir_sub in
1412 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1445 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1446 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 esac ;; 1447 esac ;;
1415esac 1448esac
1441 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1474 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1442 elif test -f "$ac_srcdir/configure"; then 1475 elif test -f "$ac_srcdir/configure"; then
1443 echo && 1476 echo &&
1444 $SHELL "$ac_srcdir/configure" --help=recursive 1477 $SHELL "$ac_srcdir/configure" --help=recursive
1445 else 1478 else
1446 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1479 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1447 fi || ac_status=$? 1480 fi || ac_status=$?
1448 cd "$ac_pwd" || { ac_status=$?; break; } 1481 cd "$ac_pwd" || { ac_status=$?; break; }
1449 done 1482 done
1450fi 1483fi
1451 1484
1452test -n "$ac_init_help" && exit $ac_status 1485test -n "$ac_init_help" && exit $ac_status
1453if $ac_init_version; then 1486if $ac_init_version; then
1454 cat <<\_ACEOF 1487 cat <<\_ACEOF
1455configure 1488configure
1456generated by GNU Autoconf 2.61 1489generated by GNU Autoconf 2.67
1457 1490
1458Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1491Copyright (C) 2010 Free Software Foundation, Inc.
14592002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1460This configure script is free software; the Free Software Foundation 1492This configure script is free software; the Free Software Foundation
1461gives unlimited permission to copy, distribute and modify it. 1493gives unlimited permission to copy, distribute and modify it.
1462_ACEOF 1494_ACEOF
1463 exit 1495 exit
1464fi 1496fi
1497
1498## ------------------------ ##
1499## Autoconf initialization. ##
1500## ------------------------ ##
1501
1502# ac_fn_c_try_compile LINENO
1503# --------------------------
1504# Try to compile conftest.$ac_ext, and return whether this succeeded.
1505ac_fn_c_try_compile ()
1506{
1507 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1508 rm -f conftest.$ac_objext
1509 if { { ac_try="$ac_compile"
1510case "(($ac_try" in
1511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1512 *) ac_try_echo=$ac_try;;
1513esac
1514eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1515$as_echo "$ac_try_echo"; } >&5
1516 (eval "$ac_compile") 2>conftest.err
1517 ac_status=$?
1518 if test -s conftest.err; then
1519 grep -v '^ *+' conftest.err >conftest.er1
1520 cat conftest.er1 >&5
1521 mv -f conftest.er1 conftest.err
1522 fi
1523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1524 test $ac_status = 0; } && {
1525 test -z "$ac_c_werror_flag" ||
1526 test ! -s conftest.err
1527 } && test -s conftest.$ac_objext; then :
1528 ac_retval=0
1529else
1530 $as_echo "$as_me: failed program was:" >&5
1531sed 's/^/| /' conftest.$ac_ext >&5
1532
1533 ac_retval=1
1534fi
1535 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1536 as_fn_set_status $ac_retval
1537
1538} # ac_fn_c_try_compile
1539
1540# ac_fn_cxx_try_compile LINENO
1541# ----------------------------
1542# Try to compile conftest.$ac_ext, and return whether this succeeded.
1543ac_fn_cxx_try_compile ()
1544{
1545 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1546 rm -f conftest.$ac_objext
1547 if { { ac_try="$ac_compile"
1548case "(($ac_try" in
1549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1550 *) ac_try_echo=$ac_try;;
1551esac
1552eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1553$as_echo "$ac_try_echo"; } >&5
1554 (eval "$ac_compile") 2>conftest.err
1555 ac_status=$?
1556 if test -s conftest.err; then
1557 grep -v '^ *+' conftest.err >conftest.er1
1558 cat conftest.er1 >&5
1559 mv -f conftest.er1 conftest.err
1560 fi
1561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1562 test $ac_status = 0; } && {
1563 test -z "$ac_cxx_werror_flag" ||
1564 test ! -s conftest.err
1565 } && test -s conftest.$ac_objext; then :
1566 ac_retval=0
1567else
1568 $as_echo "$as_me: failed program was:" >&5
1569sed 's/^/| /' conftest.$ac_ext >&5
1570
1571 ac_retval=1
1572fi
1573 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1574 as_fn_set_status $ac_retval
1575
1576} # ac_fn_cxx_try_compile
1577
1578# ac_fn_c_try_cpp LINENO
1579# ----------------------
1580# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1581ac_fn_c_try_cpp ()
1582{
1583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1584 if { { ac_try="$ac_cpp conftest.$ac_ext"
1585case "(($ac_try" in
1586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1587 *) ac_try_echo=$ac_try;;
1588esac
1589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1590$as_echo "$ac_try_echo"; } >&5
1591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1592 ac_status=$?
1593 if test -s conftest.err; then
1594 grep -v '^ *+' conftest.err >conftest.er1
1595 cat conftest.er1 >&5
1596 mv -f conftest.er1 conftest.err
1597 fi
1598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1599 test $ac_status = 0; } > conftest.i && {
1600 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1601 test ! -s conftest.err
1602 }; then :
1603 ac_retval=0
1604else
1605 $as_echo "$as_me: failed program was:" >&5
1606sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609fi
1610 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1611 as_fn_set_status $ac_retval
1612
1613} # ac_fn_c_try_cpp
1614
1615# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1616# -------------------------------------------------------
1617# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1618# the include files in INCLUDES and setting the cache variable VAR
1619# accordingly.
1620ac_fn_c_check_header_mongrel ()
1621{
1622 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1623 if eval "test \"\${$3+set}\"" = set; then :
1624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1625$as_echo_n "checking for $2... " >&6; }
1626if eval "test \"\${$3+set}\"" = set; then :
1627 $as_echo_n "(cached) " >&6
1628fi
1629eval ac_res=\$$3
1630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1631$as_echo "$ac_res" >&6; }
1632else
1633 # Is the header compilable?
1634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1635$as_echo_n "checking $2 usability... " >&6; }
1636cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1637/* end confdefs.h. */
1638$4
1639#include <$2>
1640_ACEOF
1641if ac_fn_c_try_compile "$LINENO"; then :
1642 ac_header_compiler=yes
1643else
1644 ac_header_compiler=no
1645fi
1646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1648$as_echo "$ac_header_compiler" >&6; }
1649
1650# Is the header present?
1651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1652$as_echo_n "checking $2 presence... " >&6; }
1653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1654/* end confdefs.h. */
1655#include <$2>
1656_ACEOF
1657if ac_fn_c_try_cpp "$LINENO"; then :
1658 ac_header_preproc=yes
1659else
1660 ac_header_preproc=no
1661fi
1662rm -f conftest.err conftest.i conftest.$ac_ext
1663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1664$as_echo "$ac_header_preproc" >&6; }
1665
1666# So? What about this header?
1667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1668 yes:no: )
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1670$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1672$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1673 ;;
1674 no:yes:* )
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1676$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1678$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1680$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1682$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1684$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1685 ;;
1686esac
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1688$as_echo_n "checking for $2... " >&6; }
1689if eval "test \"\${$3+set}\"" = set; then :
1690 $as_echo_n "(cached) " >&6
1691else
1692 eval "$3=\$ac_header_compiler"
1693fi
1694eval ac_res=\$$3
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1696$as_echo "$ac_res" >&6; }
1697fi
1698 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1699
1700} # ac_fn_c_check_header_mongrel
1701
1702# ac_fn_c_try_run LINENO
1703# ----------------------
1704# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1705# that executables *can* be run.
1706ac_fn_c_try_run ()
1707{
1708 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1709 if { { ac_try="$ac_link"
1710case "(($ac_try" in
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1713esac
1714eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715$as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>&5
1717 ac_status=$?
1718 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1719 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1720 { { case "(($ac_try" in
1721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1722 *) ac_try_echo=$ac_try;;
1723esac
1724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1725$as_echo "$ac_try_echo"; } >&5
1726 (eval "$ac_try") 2>&5
1727 ac_status=$?
1728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1729 test $ac_status = 0; }; }; then :
1730 ac_retval=0
1731else
1732 $as_echo "$as_me: program exited with status $ac_status" >&5
1733 $as_echo "$as_me: failed program was:" >&5
1734sed 's/^/| /' conftest.$ac_ext >&5
1735
1736 ac_retval=$ac_status
1737fi
1738 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1739 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1740 as_fn_set_status $ac_retval
1741
1742} # ac_fn_c_try_run
1743
1744# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1745# -------------------------------------------------------
1746# Tests whether HEADER exists and can be compiled using the include files in
1747# INCLUDES, setting the cache variable VAR accordingly.
1748ac_fn_c_check_header_compile ()
1749{
1750 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1752$as_echo_n "checking for $2... " >&6; }
1753if eval "test \"\${$3+set}\"" = set; then :
1754 $as_echo_n "(cached) " >&6
1755else
1756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1757/* end confdefs.h. */
1758$4
1759#include <$2>
1760_ACEOF
1761if ac_fn_c_try_compile "$LINENO"; then :
1762 eval "$3=yes"
1763else
1764 eval "$3=no"
1765fi
1766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1767fi
1768eval ac_res=\$$3
1769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1770$as_echo "$ac_res" >&6; }
1771 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1772
1773} # ac_fn_c_check_header_compile
1774
1775# ac_fn_c_try_link LINENO
1776# -----------------------
1777# Try to link conftest.$ac_ext, and return whether this succeeded.
1778ac_fn_c_try_link ()
1779{
1780 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781 rm -f conftest.$ac_objext conftest$ac_exeext
1782 if { { ac_try="$ac_link"
1783case "(($ac_try" in
1784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785 *) ac_try_echo=$ac_try;;
1786esac
1787eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788$as_echo "$ac_try_echo"; } >&5
1789 (eval "$ac_link") 2>conftest.err
1790 ac_status=$?
1791 if test -s conftest.err; then
1792 grep -v '^ *+' conftest.err >conftest.er1
1793 cat conftest.er1 >&5
1794 mv -f conftest.er1 conftest.err
1795 fi
1796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797 test $ac_status = 0; } && {
1798 test -z "$ac_c_werror_flag" ||
1799 test ! -s conftest.err
1800 } && test -s conftest$ac_exeext && {
1801 test "$cross_compiling" = yes ||
1802 $as_test_x conftest$ac_exeext
1803 }; then :
1804 ac_retval=0
1805else
1806 $as_echo "$as_me: failed program was:" >&5
1807sed 's/^/| /' conftest.$ac_ext >&5
1808
1809 ac_retval=1
1810fi
1811 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1812 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1813 # interfere with the next link command; also delete a directory that is
1814 # left behind by Apple's compiler. We do this before executing the actions.
1815 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1816 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1817 as_fn_set_status $ac_retval
1818
1819} # ac_fn_c_try_link
1820
1821# ac_fn_cxx_try_link LINENO
1822# -------------------------
1823# Try to link conftest.$ac_ext, and return whether this succeeded.
1824ac_fn_cxx_try_link ()
1825{
1826 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1827 rm -f conftest.$ac_objext conftest$ac_exeext
1828 if { { ac_try="$ac_link"
1829case "(($ac_try" in
1830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1831 *) ac_try_echo=$ac_try;;
1832esac
1833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1834$as_echo "$ac_try_echo"; } >&5
1835 (eval "$ac_link") 2>conftest.err
1836 ac_status=$?
1837 if test -s conftest.err; then
1838 grep -v '^ *+' conftest.err >conftest.er1
1839 cat conftest.er1 >&5
1840 mv -f conftest.er1 conftest.err
1841 fi
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; } && {
1844 test -z "$ac_cxx_werror_flag" ||
1845 test ! -s conftest.err
1846 } && test -s conftest$ac_exeext && {
1847 test "$cross_compiling" = yes ||
1848 $as_test_x conftest$ac_exeext
1849 }; then :
1850 ac_retval=0
1851else
1852 $as_echo "$as_me: failed program was:" >&5
1853sed 's/^/| /' conftest.$ac_ext >&5
1854
1855 ac_retval=1
1856fi
1857 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1858 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1859 # interfere with the next link command; also delete a directory that is
1860 # left behind by Apple's compiler. We do this before executing the actions.
1861 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1862 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1863 as_fn_set_status $ac_retval
1864
1865} # ac_fn_cxx_try_link
1866
1867# ac_fn_cxx_try_cpp LINENO
1868# ------------------------
1869# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1870ac_fn_cxx_try_cpp ()
1871{
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 if { { ac_try="$ac_cpp conftest.$ac_ext"
1874case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1877esac
1878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879$as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1881 ac_status=$?
1882 if test -s conftest.err; then
1883 grep -v '^ *+' conftest.err >conftest.er1
1884 cat conftest.er1 >&5
1885 mv -f conftest.er1 conftest.err
1886 fi
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } > conftest.i && {
1889 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1890 test ! -s conftest.err
1891 }; then :
1892 ac_retval=0
1893else
1894 $as_echo "$as_me: failed program was:" >&5
1895sed 's/^/| /' conftest.$ac_ext >&5
1896
1897 ac_retval=1
1898fi
1899 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1900 as_fn_set_status $ac_retval
1901
1902} # ac_fn_cxx_try_cpp
1903
1904# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1905# ---------------------------------------------------------
1906# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1907# the include files in INCLUDES and setting the cache variable VAR
1908# accordingly.
1909ac_fn_cxx_check_header_mongrel ()
1910{
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 if eval "test \"\${$3+set}\"" = set; then :
1913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1914$as_echo_n "checking for $2... " >&6; }
1915if eval "test \"\${$3+set}\"" = set; then :
1916 $as_echo_n "(cached) " >&6
1917fi
1918eval ac_res=\$$3
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1920$as_echo "$ac_res" >&6; }
1921else
1922 # Is the header compilable?
1923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1924$as_echo_n "checking $2 usability... " >&6; }
1925cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926/* end confdefs.h. */
1927$4
1928#include <$2>
1929_ACEOF
1930if ac_fn_cxx_try_compile "$LINENO"; then :
1931 ac_header_compiler=yes
1932else
1933 ac_header_compiler=no
1934fi
1935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1937$as_echo "$ac_header_compiler" >&6; }
1938
1939# Is the header present?
1940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1941$as_echo_n "checking $2 presence... " >&6; }
1942cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943/* end confdefs.h. */
1944#include <$2>
1945_ACEOF
1946if ac_fn_cxx_try_cpp "$LINENO"; then :
1947 ac_header_preproc=yes
1948else
1949 ac_header_preproc=no
1950fi
1951rm -f conftest.err conftest.i conftest.$ac_ext
1952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1953$as_echo "$ac_header_preproc" >&6; }
1954
1955# So? What about this header?
1956case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1957 yes:no: )
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1959$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1961$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1962 ;;
1963 no:yes:* )
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1965$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1967$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1969$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1971$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1973$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1974 ;;
1975esac
1976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1977$as_echo_n "checking for $2... " >&6; }
1978if eval "test \"\${$3+set}\"" = set; then :
1979 $as_echo_n "(cached) " >&6
1980else
1981 eval "$3=\$ac_header_compiler"
1982fi
1983eval ac_res=\$$3
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1985$as_echo "$ac_res" >&6; }
1986fi
1987 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1988
1989} # ac_fn_cxx_check_header_mongrel
1990
1991# ac_fn_cxx_check_func LINENO FUNC VAR
1992# ------------------------------------
1993# Tests whether FUNC exists, setting the cache variable VAR accordingly
1994ac_fn_cxx_check_func ()
1995{
1996 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1998$as_echo_n "checking for $2... " >&6; }
1999if eval "test \"\${$3+set}\"" = set; then :
2000 $as_echo_n "(cached) " >&6
2001else
2002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2003/* end confdefs.h. */
2004/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2005 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2006#define $2 innocuous_$2
2007
2008/* System header to define __stub macros and hopefully few prototypes,
2009 which can conflict with char $2 (); below.
2010 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2011 <limits.h> exists even on freestanding compilers. */
2012
2013#ifdef __STDC__
2014# include <limits.h>
2015#else
2016# include <assert.h>
2017#endif
2018
2019#undef $2
2020
2021/* Override any GCC internal prototype to avoid an error.
2022 Use char because int might match the return type of a GCC
2023 builtin and then its argument prototype would still apply. */
2024#ifdef __cplusplus
2025extern "C"
2026#endif
2027char $2 ();
2028/* The GNU C library defines this for functions which it implements
2029 to always fail with ENOSYS. Some functions are actually named
2030 something starting with __ and the normal name is an alias. */
2031#if defined __stub_$2 || defined __stub___$2
2032choke me
2033#endif
2034
2035int
2036main ()
2037{
2038return $2 ();
2039 ;
2040 return 0;
2041}
2042_ACEOF
2043if ac_fn_cxx_try_link "$LINENO"; then :
2044 eval "$3=yes"
2045else
2046 eval "$3=no"
2047fi
2048rm -f core conftest.err conftest.$ac_objext \
2049 conftest$ac_exeext conftest.$ac_ext
2050fi
2051eval ac_res=\$$3
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2053$as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2055
2056} # ac_fn_cxx_check_func
2057
2058# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2059# ---------------------------------------------
2060# Tests whether TYPE exists after having included INCLUDES, setting cache
2061# variable VAR accordingly.
2062ac_fn_cxx_check_type ()
2063{
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2066$as_echo_n "checking for $2... " >&6; }
2067if eval "test \"\${$3+set}\"" = set; then :
2068 $as_echo_n "(cached) " >&6
2069else
2070 eval "$3=no"
2071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2072/* end confdefs.h. */
2073$4
2074int
2075main ()
2076{
2077if (sizeof ($2))
2078 return 0;
2079 ;
2080 return 0;
2081}
2082_ACEOF
2083if ac_fn_cxx_try_compile "$LINENO"; then :
2084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2085/* end confdefs.h. */
2086$4
2087int
2088main ()
2089{
2090if (sizeof (($2)))
2091 return 0;
2092 ;
2093 return 0;
2094}
2095_ACEOF
2096if ac_fn_cxx_try_compile "$LINENO"; then :
2097
2098else
2099 eval "$3=yes"
2100fi
2101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2102fi
2103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2104fi
2105eval ac_res=\$$3
2106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2107$as_echo "$ac_res" >&6; }
2108 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2109
2110} # ac_fn_cxx_check_type
2111
2112# ac_fn_c_find_intX_t LINENO BITS VAR
2113# -----------------------------------
2114# Finds a signed integer type with width BITS, setting cache variable VAR
2115# accordingly.
2116ac_fn_c_find_intX_t ()
2117{
2118 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2120$as_echo_n "checking for int$2_t... " >&6; }
2121if eval "test \"\${$3+set}\"" = set; then :
2122 $as_echo_n "(cached) " >&6
2123else
2124 eval "$3=no"
2125 # Order is important - never check a type that is potentially smaller
2126 # than half of the expected target width.
2127 for ac_type in int$2_t 'int' 'long int' \
2128 'long long int' 'short int' 'signed char'; do
2129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2130/* end confdefs.h. */
2131$ac_includes_default
2132 enum { N = $2 / 2 - 1 };
2133int
2134main ()
2135{
2136static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2137test_array [0] = 0
2138
2139 ;
2140 return 0;
2141}
2142_ACEOF
2143if ac_fn_cxx_try_compile "$LINENO"; then :
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145/* end confdefs.h. */
2146$ac_includes_default
2147 enum { N = $2 / 2 - 1 };
2148int
2149main ()
2150{
2151static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2152 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2153test_array [0] = 0
2154
2155 ;
2156 return 0;
2157}
2158_ACEOF
2159if ac_fn_cxx_try_compile "$LINENO"; then :
2160
2161else
2162 case $ac_type in #(
2163 int$2_t) :
2164 eval "$3=yes" ;; #(
2165 *) :
2166 eval "$3=\$ac_type" ;;
2167esac
2168fi
2169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170fi
2171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2172 if eval test \"x\$"$3"\" = x"no"; then :
2173
2174else
2175 break
2176fi
2177 done
2178fi
2179eval ac_res=\$$3
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2181$as_echo "$ac_res" >&6; }
2182 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2183
2184} # ac_fn_c_find_intX_t
2185
2186# ac_fn_c_find_uintX_t LINENO BITS VAR
2187# ------------------------------------
2188# Finds an unsigned integer type with width BITS, setting cache variable VAR
2189# accordingly.
2190ac_fn_c_find_uintX_t ()
2191{
2192 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2194$as_echo_n "checking for uint$2_t... " >&6; }
2195if eval "test \"\${$3+set}\"" = set; then :
2196 $as_echo_n "(cached) " >&6
2197else
2198 eval "$3=no"
2199 # Order is important - never check a type that is potentially smaller
2200 # than half of the expected target width.
2201 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2202 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2204/* end confdefs.h. */
2205$ac_includes_default
2206int
2207main ()
2208{
2209static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2210test_array [0] = 0
2211
2212 ;
2213 return 0;
2214}
2215_ACEOF
2216if ac_fn_cxx_try_compile "$LINENO"; then :
2217 case $ac_type in #(
2218 uint$2_t) :
2219 eval "$3=yes" ;; #(
2220 *) :
2221 eval "$3=\$ac_type" ;;
2222esac
2223fi
2224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225 if eval test \"x\$"$3"\" = x"no"; then :
2226
2227else
2228 break
2229fi
2230 done
2231fi
2232eval ac_res=\$$3
2233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2234$as_echo "$ac_res" >&6; }
2235 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2236
2237} # ac_fn_c_find_uintX_t
2238
2239# ac_fn_cxx_try_run LINENO
2240# ------------------------
2241# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2242# that executables *can* be run.
2243ac_fn_cxx_try_run ()
2244{
2245 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2246 if { { ac_try="$ac_link"
2247case "(($ac_try" in
2248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2249 *) ac_try_echo=$ac_try;;
2250esac
2251eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2252$as_echo "$ac_try_echo"; } >&5
2253 (eval "$ac_link") 2>&5
2254 ac_status=$?
2255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2256 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2257 { { case "(($ac_try" in
2258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2259 *) ac_try_echo=$ac_try;;
2260esac
2261eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2262$as_echo "$ac_try_echo"; } >&5
2263 (eval "$ac_try") 2>&5
2264 ac_status=$?
2265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2266 test $ac_status = 0; }; }; then :
2267 ac_retval=0
2268else
2269 $as_echo "$as_me: program exited with status $ac_status" >&5
2270 $as_echo "$as_me: failed program was:" >&5
2271sed 's/^/| /' conftest.$ac_ext >&5
2272
2273 ac_retval=$ac_status
2274fi
2275 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2276 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2277 as_fn_set_status $ac_retval
2278
2279} # ac_fn_cxx_try_run
1465cat >config.log <<_ACEOF 2280cat >config.log <<_ACEOF
1466This file contains any messages produced by compilers while 2281This file contains any messages produced by compilers while
1467running configure, to aid debugging if configure makes a mistake. 2282running configure, to aid debugging if configure makes a mistake.
1468 2283
1469It was created by $as_me, which was 2284It was created by $as_me, which was
1470generated by GNU Autoconf 2.61. Invocation command line was 2285generated by GNU Autoconf 2.67. Invocation command line was
1471 2286
1472 $ $0 $@ 2287 $ $0 $@
1473 2288
1474_ACEOF 2289_ACEOF
1475exec 5>>config.log 2290exec 5>>config.log
1501as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502for as_dir in $PATH 2317for as_dir in $PATH
1503do 2318do
1504 IFS=$as_save_IFS 2319 IFS=$as_save_IFS
1505 test -z "$as_dir" && as_dir=. 2320 test -z "$as_dir" && as_dir=.
1506 echo "PATH: $as_dir" 2321 $as_echo "PATH: $as_dir"
1507done 2322 done
1508IFS=$as_save_IFS 2323IFS=$as_save_IFS
1509 2324
1510} >&5 2325} >&5
1511 2326
1512cat >&5 <<_ACEOF 2327cat >&5 <<_ACEOF
1536 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2351 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2352 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1538 | -silent | --silent | --silen | --sile | --sil) 2353 | -silent | --silent | --silen | --sile | --sil)
1539 continue ;; 2354 continue ;;
1540 *\'*) 2355 *\'*)
1541 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2356 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1542 esac 2357 esac
1543 case $ac_pass in 2358 case $ac_pass in
1544 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2359 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1545 2) 2360 2)
1546 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 2361 as_fn_append ac_configure_args1 " '$ac_arg'"
1547 if test $ac_must_keep_next = true; then 2362 if test $ac_must_keep_next = true; then
1548 ac_must_keep_next=false # Got value, back to normal. 2363 ac_must_keep_next=false # Got value, back to normal.
1549 else 2364 else
1550 case $ac_arg in 2365 case $ac_arg in
1551 *=* | --config-cache | -C | -disable-* | --disable-* \ 2366 *=* | --config-cache | -C | -disable-* | --disable-* \
1557 esac 2372 esac
1558 ;; 2373 ;;
1559 -* ) ac_must_keep_next=true ;; 2374 -* ) ac_must_keep_next=true ;;
1560 esac 2375 esac
1561 fi 2376 fi
1562 ac_configure_args="$ac_configure_args '$ac_arg'" 2377 as_fn_append ac_configure_args " '$ac_arg'"
1563 ;; 2378 ;;
1564 esac 2379 esac
1565 done 2380 done
1566done 2381done
1567$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 2382{ ac_configure_args0=; unset ac_configure_args0;}
1568$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 2383{ ac_configure_args1=; unset ac_configure_args1;}
1569 2384
1570# When interrupted or exit'd, cleanup temporary files, and complete 2385# When interrupted or exit'd, cleanup temporary files, and complete
1571# config.log. We remove comments because anyway the quotes in there 2386# config.log. We remove comments because anyway the quotes in there
1572# would cause problems or look ugly. 2387# would cause problems or look ugly.
1573# WARNING: Use '\'' to represent an apostrophe within the trap. 2388# WARNING: Use '\'' to represent an apostrophe within the trap.
1575trap 'exit_status=$? 2390trap 'exit_status=$?
1576 # Save into config.log some information that might help in debugging. 2391 # Save into config.log some information that might help in debugging.
1577 { 2392 {
1578 echo 2393 echo
1579 2394
1580 cat <<\_ASBOX
1581## ---------------- ## 2395 $as_echo "## ---------------- ##
1582## Cache variables. ## 2396## Cache variables. ##
1583## ---------------- ## 2397## ---------------- ##"
1584_ASBOX
1585 echo 2398 echo
1586 # The following way of writing the cache mishandles newlines in values, 2399 # The following way of writing the cache mishandles newlines in values,
1587( 2400(
1588 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2401 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1589 eval ac_val=\$$ac_var 2402 eval ac_val=\$$ac_var
1590 case $ac_val in #( 2403 case $ac_val in #(
1591 *${as_nl}*) 2404 *${as_nl}*)
1592 case $ac_var in #( 2405 case $ac_var in #(
1593 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 2406 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1594echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 2407$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1595 esac 2408 esac
1596 case $ac_var in #( 2409 case $ac_var in #(
1597 _ | IFS | as_nl) ;; #( 2410 _ | IFS | as_nl) ;; #(
1598 *) $as_unset $ac_var ;; 2411 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2412 *) { eval $ac_var=; unset $ac_var;} ;;
1599 esac ;; 2413 esac ;;
1600 esac 2414 esac
1601 done 2415 done
1602 (set) 2>&1 | 2416 (set) 2>&1 |
1603 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2417 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1612 esac | 2426 esac |
1613 sort 2427 sort
1614) 2428)
1615 echo 2429 echo
1616 2430
1617 cat <<\_ASBOX
1618## ----------------- ## 2431 $as_echo "## ----------------- ##
1619## Output variables. ## 2432## Output variables. ##
1620## ----------------- ## 2433## ----------------- ##"
1621_ASBOX
1622 echo 2434 echo
1623 for ac_var in $ac_subst_vars 2435 for ac_var in $ac_subst_vars
1624 do 2436 do
1625 eval ac_val=\$$ac_var 2437 eval ac_val=\$$ac_var
1626 case $ac_val in 2438 case $ac_val in
1627 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2439 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1628 esac 2440 esac
1629 echo "$ac_var='\''$ac_val'\''" 2441 $as_echo "$ac_var='\''$ac_val'\''"
1630 done | sort 2442 done | sort
1631 echo 2443 echo
1632 2444
1633 if test -n "$ac_subst_files"; then 2445 if test -n "$ac_subst_files"; then
1634 cat <<\_ASBOX
1635## ------------------- ## 2446 $as_echo "## ------------------- ##
1636## File substitutions. ## 2447## File substitutions. ##
1637## ------------------- ## 2448## ------------------- ##"
1638_ASBOX
1639 echo 2449 echo
1640 for ac_var in $ac_subst_files 2450 for ac_var in $ac_subst_files
1641 do 2451 do
1642 eval ac_val=\$$ac_var 2452 eval ac_val=\$$ac_var
1643 case $ac_val in 2453 case $ac_val in
1644 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2454 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1645 esac 2455 esac
1646 echo "$ac_var='\''$ac_val'\''" 2456 $as_echo "$ac_var='\''$ac_val'\''"
1647 done | sort 2457 done | sort
1648 echo 2458 echo
1649 fi 2459 fi
1650 2460
1651 if test -s confdefs.h; then 2461 if test -s confdefs.h; then
1652 cat <<\_ASBOX 2462 $as_echo "## ----------- ##
1653## ----------- ##
1654## confdefs.h. ## 2463## confdefs.h. ##
1655## ----------- ## 2464## ----------- ##"
1656_ASBOX
1657 echo 2465 echo
1658 cat confdefs.h 2466 cat confdefs.h
1659 echo 2467 echo
1660 fi 2468 fi
1661 test "$ac_signal" != 0 && 2469 test "$ac_signal" != 0 &&
1662 echo "$as_me: caught signal $ac_signal" 2470 $as_echo "$as_me: caught signal $ac_signal"
1663 echo "$as_me: exit $exit_status" 2471 $as_echo "$as_me: exit $exit_status"
1664 } >&5 2472 } >&5
1665 rm -f core *.core core.conftest.* && 2473 rm -f core *.core core.conftest.* &&
1666 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2474 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1667 exit $exit_status 2475 exit $exit_status
1668' 0 2476' 0
1669for ac_signal in 1 2 13 15; do 2477for ac_signal in 1 2 13 15; do
1670 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 2478 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1671done 2479done
1672ac_signal=0 2480ac_signal=0
1673 2481
1674# confdefs.h avoids OS command line length limits that DEFS can exceed. 2482# confdefs.h avoids OS command line length limits that DEFS can exceed.
1675rm -f -r conftest* confdefs.h 2483rm -f -r conftest* confdefs.h
1676 2484
2485$as_echo "/* confdefs.h */" > confdefs.h
2486
1677# Predefined preprocessor variables. 2487# Predefined preprocessor variables.
1678 2488
1679cat >>confdefs.h <<_ACEOF 2489cat >>confdefs.h <<_ACEOF
1680#define PACKAGE_NAME "$PACKAGE_NAME" 2490#define PACKAGE_NAME "$PACKAGE_NAME"
1681_ACEOF 2491_ACEOF
1682 2492
1683
1684cat >>confdefs.h <<_ACEOF 2493cat >>confdefs.h <<_ACEOF
1685#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2494#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1686_ACEOF 2495_ACEOF
1687 2496
1688
1689cat >>confdefs.h <<_ACEOF 2497cat >>confdefs.h <<_ACEOF
1690#define PACKAGE_VERSION "$PACKAGE_VERSION" 2498#define PACKAGE_VERSION "$PACKAGE_VERSION"
1691_ACEOF 2499_ACEOF
1692 2500
1693
1694cat >>confdefs.h <<_ACEOF 2501cat >>confdefs.h <<_ACEOF
1695#define PACKAGE_STRING "$PACKAGE_STRING" 2502#define PACKAGE_STRING "$PACKAGE_STRING"
1696_ACEOF 2503_ACEOF
1697 2504
1698
1699cat >>confdefs.h <<_ACEOF 2505cat >>confdefs.h <<_ACEOF
1700#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2506#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1701_ACEOF 2507_ACEOF
1702 2508
2509cat >>confdefs.h <<_ACEOF
2510#define PACKAGE_URL "$PACKAGE_URL"
2511_ACEOF
2512
1703 2513
1704# Let the site file select an alternate cache file if it wants to. 2514# Let the site file select an alternate cache file if it wants to.
1705# Prefer explicitly selected file to automatically selected ones. 2515# Prefer an explicitly selected file to automatically selected ones.
2516ac_site_file1=NONE
2517ac_site_file2=NONE
1706if test -n "$CONFIG_SITE"; then 2518if test -n "$CONFIG_SITE"; then
1707 set x "$CONFIG_SITE" 2519 # We do not want a PATH search for config.site.
2520 case $CONFIG_SITE in #((
2521 -*) ac_site_file1=./$CONFIG_SITE;;
2522 */*) ac_site_file1=$CONFIG_SITE;;
2523 *) ac_site_file1=./$CONFIG_SITE;;
2524 esac
1708elif test "x$prefix" != xNONE; then 2525elif test "x$prefix" != xNONE; then
1709 set x "$prefix/share/config.site" "$prefix/etc/config.site" 2526 ac_site_file1=$prefix/share/config.site
2527 ac_site_file2=$prefix/etc/config.site
1710else 2528else
1711 set x "$ac_default_prefix/share/config.site" \ 2529 ac_site_file1=$ac_default_prefix/share/config.site
1712 "$ac_default_prefix/etc/config.site" 2530 ac_site_file2=$ac_default_prefix/etc/config.site
1713fi 2531fi
1714shift 2532for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1715for ac_site_file
1716do 2533do
1717 if test -r "$ac_site_file"; then 2534 test "x$ac_site_file" = xNONE && continue
2535 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1718 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 2536 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1719echo "$as_me: loading site script $ac_site_file" >&6;} 2537$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1720 sed 's/^/| /' "$ac_site_file" >&5 2538 sed 's/^/| /' "$ac_site_file" >&5
1721 . "$ac_site_file" 2539 . "$ac_site_file" \
2540 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2542as_fn_error $? "failed to load site script $ac_site_file
2543See \`config.log' for more details" "$LINENO" 5 ; }
1722 fi 2544 fi
1723done 2545done
1724 2546
1725if test -r "$cache_file"; then 2547if test -r "$cache_file"; then
1726 # Some versions of bash will fail to source /dev/null (special 2548 # Some versions of bash will fail to source /dev/null (special files
1727 # files actually), so we avoid doing that. 2549 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1728 if test -f "$cache_file"; then 2550 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1729 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 2551 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1730echo "$as_me: loading cache $cache_file" >&6;} 2552$as_echo "$as_me: loading cache $cache_file" >&6;}
1731 case $cache_file in 2553 case $cache_file in
1732 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2554 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1733 *) . "./$cache_file";; 2555 *) . "./$cache_file";;
1734 esac 2556 esac
1735 fi 2557 fi
1736else 2558else
1737 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 2559 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1738echo "$as_me: creating cache $cache_file" >&6;} 2560$as_echo "$as_me: creating cache $cache_file" >&6;}
1739 >$cache_file 2561 >$cache_file
1740fi 2562fi
1741 2563
1742# Check that the precious variables saved in the cache have kept the same 2564# Check that the precious variables saved in the cache have kept the same
1743# value. 2565# value.
1747 eval ac_new_set=\$ac_env_${ac_var}_set 2569 eval ac_new_set=\$ac_env_${ac_var}_set
1748 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2570 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1749 eval ac_new_val=\$ac_env_${ac_var}_value 2571 eval ac_new_val=\$ac_env_${ac_var}_value
1750 case $ac_old_set,$ac_new_set in 2572 case $ac_old_set,$ac_new_set in
1751 set,) 2573 set,)
1752 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2574 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1753echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2575$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754 ac_cache_corrupted=: ;; 2576 ac_cache_corrupted=: ;;
1755 ,set) 2577 ,set)
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2578 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1757echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2579$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1758 ac_cache_corrupted=: ;; 2580 ac_cache_corrupted=: ;;
1759 ,);; 2581 ,);;
1760 *) 2582 *)
1761 if test "x$ac_old_val" != "x$ac_new_val"; then 2583 if test "x$ac_old_val" != "x$ac_new_val"; then
2584 # differences in whitespace do not lead to failure.
2585 ac_old_val_w=`echo x $ac_old_val`
2586 ac_new_val_w=`echo x $ac_new_val`
2587 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1762 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1763echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2589$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1764 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1765echo "$as_me: former value: $ac_old_val" >&2;}
1766 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1767echo "$as_me: current value: $ac_new_val" >&2;}
1768 ac_cache_corrupted=: 2590 ac_cache_corrupted=:
2591 else
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2593$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2594 eval $ac_var=\$ac_old_val
2595 fi
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2597$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2598 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2599$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1769 fi;; 2600 fi;;
1770 esac 2601 esac
1771 # Pass precious variables to config.status. 2602 # Pass precious variables to config.status.
1772 if test "$ac_new_set" = set; then 2603 if test "$ac_new_set" = set; then
1773 case $ac_new_val in 2604 case $ac_new_val in
1774 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2605 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1775 *) ac_arg=$ac_var=$ac_new_val ;; 2606 *) ac_arg=$ac_var=$ac_new_val ;;
1776 esac 2607 esac
1777 case " $ac_configure_args " in 2608 case " $ac_configure_args " in
1778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2609 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1779 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2610 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1780 esac 2611 esac
1781 fi 2612 fi
1782done 2613done
1783if $ac_cache_corrupted; then 2614if $ac_cache_corrupted; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1784 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2617 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1785echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2618$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1786 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1787echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2619 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1788 { (exit 1); exit 1; }; }
1789fi 2620fi
1790 2621## -------------------- ##
1791 2622## Main body of script. ##
1792 2623## -------------------- ##
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806 2624
1807ac_ext=c 2625ac_ext=c
1808ac_cpp='$CPP $CPPFLAGS' 2626ac_cpp='$CPP $CPPFLAGS'
1809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2627ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2628ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1831 ac_install_sh="$ac_aux_dir/shtool install -c" 2649 ac_install_sh="$ac_aux_dir/shtool install -c"
1832 break 2650 break
1833 fi 2651 fi
1834done 2652done
1835if test -z "$ac_aux_dir"; then 2653if test -z "$ac_aux_dir"; then
1836 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1837echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2654 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1838 { (exit 1); exit 1; }; }
1839fi 2655fi
1840 2656
1841# These three variables are undocumented and unsupported, 2657# These three variables are undocumented and unsupported,
1842# and are intended to be withdrawn in a future Autoconf release. 2658# and are intended to be withdrawn in a future Autoconf release.
1843# They can cause serious problems if a builder's source tree is in a directory 2659# They can cause serious problems if a builder's source tree is in a directory
1847ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2663ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1848 2664
1849 2665
1850# Make sure we can run config.sub. 2666# Make sure we can run config.sub.
1851$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2667$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1852 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2668 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1853echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1854 { (exit 1); exit 1; }; }
1855 2669
1856{ echo "$as_me:$LINENO: checking build system type" >&5 2670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1857echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2671$as_echo_n "checking build system type... " >&6; }
1858if test "${ac_cv_build+set}" = set; then 2672if test "${ac_cv_build+set}" = set; then :
1859 echo $ECHO_N "(cached) $ECHO_C" >&6 2673 $as_echo_n "(cached) " >&6
1860else 2674else
1861 ac_build_alias=$build_alias 2675 ac_build_alias=$build_alias
1862test "x$ac_build_alias" = x && 2676test "x$ac_build_alias" = x &&
1863 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2677 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1864test "x$ac_build_alias" = x && 2678test "x$ac_build_alias" = x &&
1865 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2679 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1866echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1867 { (exit 1); exit 1; }; }
1868ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2680ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1869 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1870echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2681 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1871 { (exit 1); exit 1; }; }
1872 2682
1873fi 2683fi
1874{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1875echo "${ECHO_T}$ac_cv_build" >&6; } 2685$as_echo "$ac_cv_build" >&6; }
1876case $ac_cv_build in 2686case $ac_cv_build in
1877*-*-*) ;; 2687*-*-*) ;;
1878*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2688*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
1879echo "$as_me: error: invalid value of canonical build" >&2;}
1880 { (exit 1); exit 1; }; };;
1881esac 2689esac
1882build=$ac_cv_build 2690build=$ac_cv_build
1883ac_save_IFS=$IFS; IFS='-' 2691ac_save_IFS=$IFS; IFS='-'
1884set x $ac_cv_build 2692set x $ac_cv_build
1885shift 2693shift
1891build_os=$* 2699build_os=$*
1892IFS=$ac_save_IFS 2700IFS=$ac_save_IFS
1893case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2701case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1894 2702
1895 2703
1896{ echo "$as_me:$LINENO: checking host system type" >&5 2704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1897echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2705$as_echo_n "checking host system type... " >&6; }
1898if test "${ac_cv_host+set}" = set; then 2706if test "${ac_cv_host+set}" = set; then :
1899 echo $ECHO_N "(cached) $ECHO_C" >&6 2707 $as_echo_n "(cached) " >&6
1900else 2708else
1901 if test "x$host_alias" = x; then 2709 if test "x$host_alias" = x; then
1902 ac_cv_host=$ac_cv_build 2710 ac_cv_host=$ac_cv_build
1903else 2711else
1904 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2712 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1905 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2713 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1906echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1907 { (exit 1); exit 1; }; }
1908fi 2714fi
1909 2715
1910fi 2716fi
1911{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1912echo "${ECHO_T}$ac_cv_host" >&6; } 2718$as_echo "$ac_cv_host" >&6; }
1913case $ac_cv_host in 2719case $ac_cv_host in
1914*-*-*) ;; 2720*-*-*) ;;
1915*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2721*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
1916echo "$as_me: error: invalid value of canonical host" >&2;}
1917 { (exit 1); exit 1; }; };;
1918esac 2722esac
1919host=$ac_cv_host 2723host=$ac_cv_host
1920ac_save_IFS=$IFS; IFS='-' 2724ac_save_IFS=$IFS; IFS='-'
1921set x $ac_cv_host 2725set x $ac_cv_host
1922shift 2726shift
1929IFS=$ac_save_IFS 2733IFS=$ac_save_IFS
1930case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2734case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1931 2735
1932 2736
1933 2737
1934VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2738VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1935DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2739DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2740
1936echo "" 2741echo ""
1937echo "configuring for rxvt $VERSION" 2742echo "configuring for rxvt $VERSION"
1938echo "" 2743echo ""
1939 2744
1940orig_CXXFLAGS="$CXXFLAGS" 2745orig_CXXFLAGS="$CXXFLAGS"
1941
1942 2746
1943ac_ext=c 2747ac_ext=c
1944ac_cpp='$CPP $CPPFLAGS' 2748ac_cpp='$CPP $CPPFLAGS'
1945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2749ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2750ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1947ac_compiler_gnu=$ac_cv_c_compiler_gnu 2751ac_compiler_gnu=$ac_cv_c_compiler_gnu
1948if test -n "$ac_tool_prefix"; then 2752if test -n "$ac_tool_prefix"; then
1949 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2753 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1950set dummy ${ac_tool_prefix}gcc; ac_word=$2 2754set dummy ${ac_tool_prefix}gcc; ac_word=$2
1951{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1952echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2756$as_echo_n "checking for $ac_word... " >&6; }
1953if test "${ac_cv_prog_CC+set}" = set; then 2757if test "${ac_cv_prog_CC+set}" = set; then :
1954 echo $ECHO_N "(cached) $ECHO_C" >&6 2758 $as_echo_n "(cached) " >&6
1955else 2759else
1956 if test -n "$CC"; then 2760 if test -n "$CC"; then
1957 ac_cv_prog_CC="$CC" # Let the user override the test. 2761 ac_cv_prog_CC="$CC" # Let the user override the test.
1958else 2762else
1959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2763as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1960for as_dir in $PATH 2764for as_dir in $PATH
1961do 2765do
1962 IFS=$as_save_IFS 2766 IFS=$as_save_IFS
1963 test -z "$as_dir" && as_dir=. 2767 test -z "$as_dir" && as_dir=.
1964 for ac_exec_ext in '' $ac_executable_extensions; do 2768 for ac_exec_ext in '' $ac_executable_extensions; do
1965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1966 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2770 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1968 break 2 2772 break 2
1969 fi 2773 fi
1970done 2774done
1971done 2775 done
1972IFS=$as_save_IFS 2776IFS=$as_save_IFS
1973 2777
1974fi 2778fi
1975fi 2779fi
1976CC=$ac_cv_prog_CC 2780CC=$ac_cv_prog_CC
1977if test -n "$CC"; then 2781if test -n "$CC"; then
1978 { echo "$as_me:$LINENO: result: $CC" >&5 2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1979echo "${ECHO_T}$CC" >&6; } 2783$as_echo "$CC" >&6; }
1980else 2784else
1981 { echo "$as_me:$LINENO: result: no" >&5 2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1982echo "${ECHO_T}no" >&6; } 2786$as_echo "no" >&6; }
1983fi 2787fi
1984 2788
1985 2789
1986fi 2790fi
1987if test -z "$ac_cv_prog_CC"; then 2791if test -z "$ac_cv_prog_CC"; then
1988 ac_ct_CC=$CC 2792 ac_ct_CC=$CC
1989 # Extract the first word of "gcc", so it can be a program name with args. 2793 # Extract the first word of "gcc", so it can be a program name with args.
1990set dummy gcc; ac_word=$2 2794set dummy gcc; ac_word=$2
1991{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2795{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1992echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2796$as_echo_n "checking for $ac_word... " >&6; }
1993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2797if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
1994 echo $ECHO_N "(cached) $ECHO_C" >&6 2798 $as_echo_n "(cached) " >&6
1995else 2799else
1996 if test -n "$ac_ct_CC"; then 2800 if test -n "$ac_ct_CC"; then
1997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1998else 2802else
1999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2803as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2000for as_dir in $PATH 2804for as_dir in $PATH
2001do 2805do
2002 IFS=$as_save_IFS 2806 IFS=$as_save_IFS
2003 test -z "$as_dir" && as_dir=. 2807 test -z "$as_dir" && as_dir=.
2004 for ac_exec_ext in '' $ac_executable_extensions; do 2808 for ac_exec_ext in '' $ac_executable_extensions; do
2005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2006 ac_cv_prog_ac_ct_CC="gcc" 2810 ac_cv_prog_ac_ct_CC="gcc"
2007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2008 break 2 2812 break 2
2009 fi 2813 fi
2010done 2814done
2011done 2815 done
2012IFS=$as_save_IFS 2816IFS=$as_save_IFS
2013 2817
2014fi 2818fi
2015fi 2819fi
2016ac_ct_CC=$ac_cv_prog_ac_ct_CC 2820ac_ct_CC=$ac_cv_prog_ac_ct_CC
2017if test -n "$ac_ct_CC"; then 2821if test -n "$ac_ct_CC"; then
2018 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2019echo "${ECHO_T}$ac_ct_CC" >&6; } 2823$as_echo "$ac_ct_CC" >&6; }
2020else 2824else
2021 { echo "$as_me:$LINENO: result: no" >&5 2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2022echo "${ECHO_T}no" >&6; } 2826$as_echo "no" >&6; }
2023fi 2827fi
2024 2828
2025 if test "x$ac_ct_CC" = x; then 2829 if test "x$ac_ct_CC" = x; then
2026 CC="" 2830 CC=""
2027 else 2831 else
2028 case $cross_compiling:$ac_tool_warned in 2832 case $cross_compiling:$ac_tool_warned in
2029yes:) 2833yes:)
2030{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2834{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2031whose name does not start with the host triplet. If you think this 2835$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2032configuration is useful to you, please write to autoconf@gnu.org." >&5
2033echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2034whose name does not start with the host triplet. If you think this
2035configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2036ac_tool_warned=yes ;; 2836ac_tool_warned=yes ;;
2037esac 2837esac
2038 CC=$ac_ct_CC 2838 CC=$ac_ct_CC
2039 fi 2839 fi
2040else 2840else
2043 2843
2044if test -z "$CC"; then 2844if test -z "$CC"; then
2045 if test -n "$ac_tool_prefix"; then 2845 if test -n "$ac_tool_prefix"; then
2046 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2846 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2047set dummy ${ac_tool_prefix}cc; ac_word=$2 2847set dummy ${ac_tool_prefix}cc; ac_word=$2
2048{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2049echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2849$as_echo_n "checking for $ac_word... " >&6; }
2050if test "${ac_cv_prog_CC+set}" = set; then 2850if test "${ac_cv_prog_CC+set}" = set; then :
2051 echo $ECHO_N "(cached) $ECHO_C" >&6 2851 $as_echo_n "(cached) " >&6
2052else 2852else
2053 if test -n "$CC"; then 2853 if test -n "$CC"; then
2054 ac_cv_prog_CC="$CC" # Let the user override the test. 2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2055else 2855else
2056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2057for as_dir in $PATH 2857for as_dir in $PATH
2058do 2858do
2059 IFS=$as_save_IFS 2859 IFS=$as_save_IFS
2060 test -z "$as_dir" && as_dir=. 2860 test -z "$as_dir" && as_dir=.
2061 for ac_exec_ext in '' $ac_executable_extensions; do 2861 for ac_exec_ext in '' $ac_executable_extensions; do
2062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2063 ac_cv_prog_CC="${ac_tool_prefix}cc" 2863 ac_cv_prog_CC="${ac_tool_prefix}cc"
2064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2065 break 2 2865 break 2
2066 fi 2866 fi
2067done 2867done
2068done 2868 done
2069IFS=$as_save_IFS 2869IFS=$as_save_IFS
2070 2870
2071fi 2871fi
2072fi 2872fi
2073CC=$ac_cv_prog_CC 2873CC=$ac_cv_prog_CC
2074if test -n "$CC"; then 2874if test -n "$CC"; then
2075 { echo "$as_me:$LINENO: result: $CC" >&5 2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2076echo "${ECHO_T}$CC" >&6; } 2876$as_echo "$CC" >&6; }
2077else 2877else
2078 { echo "$as_me:$LINENO: result: no" >&5 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2079echo "${ECHO_T}no" >&6; } 2879$as_echo "no" >&6; }
2080fi 2880fi
2081 2881
2082 2882
2083 fi 2883 fi
2084fi 2884fi
2085if test -z "$CC"; then 2885if test -z "$CC"; then
2086 # Extract the first word of "cc", so it can be a program name with args. 2886 # Extract the first word of "cc", so it can be a program name with args.
2087set dummy cc; ac_word=$2 2887set dummy cc; ac_word=$2
2088{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2089echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2889$as_echo_n "checking for $ac_word... " >&6; }
2090if test "${ac_cv_prog_CC+set}" = set; then 2890if test "${ac_cv_prog_CC+set}" = set; then :
2091 echo $ECHO_N "(cached) $ECHO_C" >&6 2891 $as_echo_n "(cached) " >&6
2092else 2892else
2093 if test -n "$CC"; then 2893 if test -n "$CC"; then
2094 ac_cv_prog_CC="$CC" # Let the user override the test. 2894 ac_cv_prog_CC="$CC" # Let the user override the test.
2095else 2895else
2096 ac_prog_rejected=no 2896 ac_prog_rejected=no
2097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2098for as_dir in $PATH 2898for as_dir in $PATH
2099do 2899do
2100 IFS=$as_save_IFS 2900 IFS=$as_save_IFS
2101 test -z "$as_dir" && as_dir=. 2901 test -z "$as_dir" && as_dir=.
2102 for ac_exec_ext in '' $ac_executable_extensions; do 2902 for ac_exec_ext in '' $ac_executable_extensions; do
2103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2104 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2904 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2105 ac_prog_rejected=yes 2905 ac_prog_rejected=yes
2106 continue 2906 continue
2107 fi 2907 fi
2108 ac_cv_prog_CC="cc" 2908 ac_cv_prog_CC="cc"
2109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2110 break 2 2910 break 2
2111 fi 2911 fi
2112done 2912done
2113done 2913 done
2114IFS=$as_save_IFS 2914IFS=$as_save_IFS
2115 2915
2116if test $ac_prog_rejected = yes; then 2916if test $ac_prog_rejected = yes; then
2117 # We found a bogon in the path, so make sure we never use it. 2917 # We found a bogon in the path, so make sure we never use it.
2118 set dummy $ac_cv_prog_CC 2918 set dummy $ac_cv_prog_CC
2127fi 2927fi
2128fi 2928fi
2129fi 2929fi
2130CC=$ac_cv_prog_CC 2930CC=$ac_cv_prog_CC
2131if test -n "$CC"; then 2931if test -n "$CC"; then
2132 { echo "$as_me:$LINENO: result: $CC" >&5 2932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2133echo "${ECHO_T}$CC" >&6; } 2933$as_echo "$CC" >&6; }
2134else 2934else
2135 { echo "$as_me:$LINENO: result: no" >&5 2935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2136echo "${ECHO_T}no" >&6; } 2936$as_echo "no" >&6; }
2137fi 2937fi
2138 2938
2139 2939
2140fi 2940fi
2141if test -z "$CC"; then 2941if test -z "$CC"; then
2142 if test -n "$ac_tool_prefix"; then 2942 if test -n "$ac_tool_prefix"; then
2143 for ac_prog in cl.exe 2943 for ac_prog in cl.exe
2144 do 2944 do
2145 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2945 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2146set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2946set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2147{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2148echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2948$as_echo_n "checking for $ac_word... " >&6; }
2149if test "${ac_cv_prog_CC+set}" = set; then 2949if test "${ac_cv_prog_CC+set}" = set; then :
2150 echo $ECHO_N "(cached) $ECHO_C" >&6 2950 $as_echo_n "(cached) " >&6
2151else 2951else
2152 if test -n "$CC"; then 2952 if test -n "$CC"; then
2153 ac_cv_prog_CC="$CC" # Let the user override the test. 2953 ac_cv_prog_CC="$CC" # Let the user override the test.
2154else 2954else
2155as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2156for as_dir in $PATH 2956for as_dir in $PATH
2157do 2957do
2158 IFS=$as_save_IFS 2958 IFS=$as_save_IFS
2159 test -z "$as_dir" && as_dir=. 2959 test -z "$as_dir" && as_dir=.
2160 for ac_exec_ext in '' $ac_executable_extensions; do 2960 for ac_exec_ext in '' $ac_executable_extensions; do
2161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2162 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2962 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2163 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2164 break 2 2964 break 2
2165 fi 2965 fi
2166done 2966done
2167done 2967 done
2168IFS=$as_save_IFS 2968IFS=$as_save_IFS
2169 2969
2170fi 2970fi
2171fi 2971fi
2172CC=$ac_cv_prog_CC 2972CC=$ac_cv_prog_CC
2173if test -n "$CC"; then 2973if test -n "$CC"; then
2174 { echo "$as_me:$LINENO: result: $CC" >&5 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2175echo "${ECHO_T}$CC" >&6; } 2975$as_echo "$CC" >&6; }
2176else 2976else
2177 { echo "$as_me:$LINENO: result: no" >&5 2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2178echo "${ECHO_T}no" >&6; } 2978$as_echo "no" >&6; }
2179fi 2979fi
2180 2980
2181 2981
2182 test -n "$CC" && break 2982 test -n "$CC" && break
2183 done 2983 done
2186 ac_ct_CC=$CC 2986 ac_ct_CC=$CC
2187 for ac_prog in cl.exe 2987 for ac_prog in cl.exe
2188do 2988do
2189 # Extract the first word of "$ac_prog", so it can be a program name with args. 2989 # Extract the first word of "$ac_prog", so it can be a program name with args.
2190set dummy $ac_prog; ac_word=$2 2990set dummy $ac_prog; ac_word=$2
2191{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2192echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2992$as_echo_n "checking for $ac_word... " >&6; }
2193if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2993if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2194 echo $ECHO_N "(cached) $ECHO_C" >&6 2994 $as_echo_n "(cached) " >&6
2195else 2995else
2196 if test -n "$ac_ct_CC"; then 2996 if test -n "$ac_ct_CC"; then
2197 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2997 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2198else 2998else
2199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2999as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2200for as_dir in $PATH 3000for as_dir in $PATH
2201do 3001do
2202 IFS=$as_save_IFS 3002 IFS=$as_save_IFS
2203 test -z "$as_dir" && as_dir=. 3003 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do 3004 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2206 ac_cv_prog_ac_ct_CC="$ac_prog" 3006 ac_cv_prog_ac_ct_CC="$ac_prog"
2207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3007 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2208 break 2 3008 break 2
2209 fi 3009 fi
2210done 3010done
2211done 3011 done
2212IFS=$as_save_IFS 3012IFS=$as_save_IFS
2213 3013
2214fi 3014fi
2215fi 3015fi
2216ac_ct_CC=$ac_cv_prog_ac_ct_CC 3016ac_ct_CC=$ac_cv_prog_ac_ct_CC
2217if test -n "$ac_ct_CC"; then 3017if test -n "$ac_ct_CC"; then
2218 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2219echo "${ECHO_T}$ac_ct_CC" >&6; } 3019$as_echo "$ac_ct_CC" >&6; }
2220else 3020else
2221 { echo "$as_me:$LINENO: result: no" >&5 3021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2222echo "${ECHO_T}no" >&6; } 3022$as_echo "no" >&6; }
2223fi 3023fi
2224 3024
2225 3025
2226 test -n "$ac_ct_CC" && break 3026 test -n "$ac_ct_CC" && break
2227done 3027done
2229 if test "x$ac_ct_CC" = x; then 3029 if test "x$ac_ct_CC" = x; then
2230 CC="" 3030 CC=""
2231 else 3031 else
2232 case $cross_compiling:$ac_tool_warned in 3032 case $cross_compiling:$ac_tool_warned in
2233yes:) 3033yes:)
2234{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3034{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2235whose name does not start with the host triplet. If you think this 3035$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2236configuration is useful to you, please write to autoconf@gnu.org." >&5
2237echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2238whose name does not start with the host triplet. If you think this
2239configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2240ac_tool_warned=yes ;; 3036ac_tool_warned=yes ;;
2241esac 3037esac
2242 CC=$ac_ct_CC 3038 CC=$ac_ct_CC
2243 fi 3039 fi
2244fi 3040fi
2245 3041
2246fi 3042fi
2247 3043
2248 3044
2249test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3045test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2250See \`config.log' for more details." >&5 3046$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2251echo "$as_me: error: no acceptable C compiler found in \$PATH 3047as_fn_error $? "no acceptable C compiler found in \$PATH
2252See \`config.log' for more details." >&2;} 3048See \`config.log' for more details" "$LINENO" 5 ; }
2253 { (exit 1); exit 1; }; }
2254 3049
2255# Provide some information about the compiler. 3050# Provide some information about the compiler.
2256echo "$as_me:$LINENO: checking for C compiler version" >&5 3051$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2257ac_compiler=`set X $ac_compile; echo $2` 3052set X $ac_compile
3053ac_compiler=$2
3054for ac_option in --version -v -V -qversion; do
2258{ (ac_try="$ac_compiler --version >&5" 3055 { { ac_try="$ac_compiler $ac_option >&5"
2259case "(($ac_try" in 3056case "(($ac_try" in
2260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2261 *) ac_try_echo=$ac_try;; 3058 *) ac_try_echo=$ac_try;;
2262esac 3059esac
2263eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3060eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2264 (eval "$ac_compiler --version >&5") 2>&5 3061$as_echo "$ac_try_echo"; } >&5
3062 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2265 ac_status=$? 3063 ac_status=$?
3064 if test -s conftest.err; then
3065 sed '10a\
3066... rest of stderr output deleted ...
3067 10q' conftest.err >conftest.er1
3068 cat conftest.er1 >&5
3069 fi
3070 rm -f conftest.er1 conftest.err
2266 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2267 (exit $ac_status); } 3072 test $ac_status = 0; }
2268{ (ac_try="$ac_compiler -v >&5" 3073done
3074
3075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076/* end confdefs.h. */
3077
3078int
3079main ()
3080{
3081
3082 ;
3083 return 0;
3084}
3085_ACEOF
3086ac_clean_files_save=$ac_clean_files
3087ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3088# Try to create an executable without -o first, disregard a.out.
3089# It will help us diagnose broken compilers, and finding out an intuition
3090# of exeext.
3091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3092$as_echo_n "checking whether the C compiler works... " >&6; }
3093ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3094
3095# The possible output files:
3096ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3097
3098ac_rmfiles=
3099for ac_file in $ac_files
3100do
3101 case $ac_file in
3102 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3103 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3104 esac
3105done
3106rm -f $ac_rmfiles
3107
3108if { { ac_try="$ac_link_default"
2269case "(($ac_try" in 3109case "(($ac_try" in
2270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2271 *) ac_try_echo=$ac_try;; 3111 *) ac_try_echo=$ac_try;;
2272esac 3112esac
2273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2274 (eval "$ac_compiler -v >&5") 2>&5 3114$as_echo "$ac_try_echo"; } >&5
2275 ac_status=$?
2276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2277 (exit $ac_status); }
2278{ (ac_try="$ac_compiler -V >&5"
2279case "(($ac_try" in
2280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2281 *) ac_try_echo=$ac_try;;
2282esac
2283eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2284 (eval "$ac_compiler -V >&5") 2>&5
2285 ac_status=$?
2286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2287 (exit $ac_status); }
2288
2289cat >conftest.$ac_ext <<_ACEOF
2290/* confdefs.h. */
2291_ACEOF
2292cat confdefs.h >>conftest.$ac_ext
2293cat >>conftest.$ac_ext <<_ACEOF
2294/* end confdefs.h. */
2295
2296int
2297main ()
2298{
2299
2300 ;
2301 return 0;
2302}
2303_ACEOF
2304ac_clean_files_save=$ac_clean_files
2305ac_clean_files="$ac_clean_files a.out a.exe b.out"
2306# Try to create an executable without -o first, disregard a.out.
2307# It will help us diagnose broken compilers, and finding out an intuition
2308# of exeext.
2309{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2310echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2311ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2312#
2313# List of possible output files, starting from the most likely.
2314# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2315# only as a last resort. b.out is created by i960 compilers.
2316ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2317#
2318# The IRIX 6 linker writes into existing files which may not be
2319# executable, retaining their permissions. Remove them first so a
2320# subsequent execution test works.
2321ac_rmfiles=
2322for ac_file in $ac_files
2323do
2324 case $ac_file in
2325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2326 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2327 esac
2328done
2329rm -f $ac_rmfiles
2330
2331if { (ac_try="$ac_link_default"
2332case "(($ac_try" in
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2335esac
2336eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2337 (eval "$ac_link_default") 2>&5 3115 (eval "$ac_link_default") 2>&5
2338 ac_status=$? 3116 ac_status=$?
2339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340 (exit $ac_status); }; then 3118 test $ac_status = 0; }; then :
2341 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3119 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2342# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3120# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2343# in a Makefile. We should not override ac_cv_exeext if it was cached, 3121# in a Makefile. We should not override ac_cv_exeext if it was cached,
2344# so that the user can short-circuit this test for compilers unknown to 3122# so that the user can short-circuit this test for compilers unknown to
2345# Autoconf. 3123# Autoconf.
2346for ac_file in $ac_files '' 3124for ac_file in $ac_files ''
2347do 3125do
2348 test -f "$ac_file" || continue 3126 test -f "$ac_file" || continue
2349 case $ac_file in 3127 case $ac_file in
2350 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3128 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2351 ;; 3129 ;;
2352 [ab].out ) 3130 [ab].out )
2353 # We found the default executable, but exeext='' is most 3131 # We found the default executable, but exeext='' is most
2354 # certainly right. 3132 # certainly right.
2355 break;; 3133 break;;
2356 *.* ) 3134 *.* )
2357 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3135 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2358 then :; else 3136 then :; else
2359 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3137 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2360 fi 3138 fi
2361 # We set ac_cv_exeext here because the later test for it is not 3139 # We set ac_cv_exeext here because the later test for it is not
2362 # safe: cross compilers may not add the suffix if given an `-o' 3140 # safe: cross compilers may not add the suffix if given an `-o'
2371test "$ac_cv_exeext" = no && ac_cv_exeext= 3149test "$ac_cv_exeext" = no && ac_cv_exeext=
2372 3150
2373else 3151else
2374 ac_file='' 3152 ac_file=''
2375fi 3153fi
2376
2377{ echo "$as_me:$LINENO: result: $ac_file" >&5
2378echo "${ECHO_T}$ac_file" >&6; }
2379if test -z "$ac_file"; then 3154if test -z "$ac_file"; then :
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3156$as_echo "no" >&6; }
2380 echo "$as_me: failed program was:" >&5 3157$as_echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5 3158sed 's/^/| /' conftest.$ac_ext >&5
2382 3159
2383{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3160{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2384See \`config.log' for more details." >&5 3161$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2385echo "$as_me: error: C compiler cannot create executables 3162as_fn_error 77 "C compiler cannot create executables
2386See \`config.log' for more details." >&2;} 3163See \`config.log' for more details" "$LINENO" 5 ; }
2387 { (exit 77); exit 77; }; } 3164else
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3166$as_echo "yes" >&6; }
2388fi 3167fi
2389 3168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3169$as_echo_n "checking for C compiler default output file name... " >&6; }
3170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3171$as_echo "$ac_file" >&6; }
2390ac_exeext=$ac_cv_exeext 3172ac_exeext=$ac_cv_exeext
2391 3173
2392# Check that the compiler produces executables we can run. If not, either
2393# the compiler is broken, or we cross compile.
2394{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2395echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2396# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2397# If not cross compiling, check that we can run a simple program.
2398if test "$cross_compiling" != yes; then
2399 if { ac_try='./$ac_file'
2400 { (case "(($ac_try" in
2401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2402 *) ac_try_echo=$ac_try;;
2403esac
2404eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2405 (eval "$ac_try") 2>&5
2406 ac_status=$?
2407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2408 (exit $ac_status); }; }; then
2409 cross_compiling=no
2410 else
2411 if test "$cross_compiling" = maybe; then
2412 cross_compiling=yes
2413 else
2414 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2415If you meant to cross compile, use \`--host'.
2416See \`config.log' for more details." >&5
2417echo "$as_me: error: cannot run C compiled programs.
2418If you meant to cross compile, use \`--host'.
2419See \`config.log' for more details." >&2;}
2420 { (exit 1); exit 1; }; }
2421 fi
2422 fi
2423fi
2424{ echo "$as_me:$LINENO: result: yes" >&5
2425echo "${ECHO_T}yes" >&6; }
2426
2427rm -f a.out a.exe conftest$ac_cv_exeext b.out 3174rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2428ac_clean_files=$ac_clean_files_save 3175ac_clean_files=$ac_clean_files_save
2429# Check that the compiler produces executables we can run. If not, either
2430# the compiler is broken, or we cross compile.
2431{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2432echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2433{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2434echo "${ECHO_T}$cross_compiling" >&6; }
2435
2436{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2437echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3177$as_echo_n "checking for suffix of executables... " >&6; }
2438if { (ac_try="$ac_link" 3178if { { ac_try="$ac_link"
2439case "(($ac_try" in 3179case "(($ac_try" in
2440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2441 *) ac_try_echo=$ac_try;; 3181 *) ac_try_echo=$ac_try;;
2442esac 3182esac
2443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3183eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3184$as_echo "$ac_try_echo"; } >&5
2444 (eval "$ac_link") 2>&5 3185 (eval "$ac_link") 2>&5
2445 ac_status=$? 3186 ac_status=$?
2446 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2447 (exit $ac_status); }; then 3188 test $ac_status = 0; }; then :
2448 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3189 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2449# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3190# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2450# work properly (i.e., refer to `conftest.exe'), while it won't with 3191# work properly (i.e., refer to `conftest.exe'), while it won't with
2451# `rm'. 3192# `rm'.
2452for ac_file in conftest.exe conftest conftest.*; do 3193for ac_file in conftest.exe conftest conftest.*; do
2453 test -f "$ac_file" || continue 3194 test -f "$ac_file" || continue
2454 case $ac_file in 3195 case $ac_file in
2455 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3196 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2456 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3197 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2457 break;; 3198 break;;
2458 * ) break;; 3199 * ) break;;
2459 esac 3200 esac
2460done 3201done
2461else 3202else
2462 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3203 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2463See \`config.log' for more details." >&5 3204$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2464echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3205as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2465See \`config.log' for more details." >&2;} 3206See \`config.log' for more details" "$LINENO" 5 ; }
2466 { (exit 1); exit 1; }; }
2467fi 3207fi
2468
2469rm -f conftest$ac_cv_exeext 3208rm -f conftest conftest$ac_cv_exeext
2470{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2471echo "${ECHO_T}$ac_cv_exeext" >&6; } 3210$as_echo "$ac_cv_exeext" >&6; }
2472 3211
2473rm -f conftest.$ac_ext 3212rm -f conftest.$ac_ext
2474EXEEXT=$ac_cv_exeext 3213EXEEXT=$ac_cv_exeext
2475ac_exeext=$EXEEXT 3214ac_exeext=$EXEEXT
2476{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2477echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2478if test "${ac_cv_objext+set}" = set; then
2479 echo $ECHO_N "(cached) $ECHO_C" >&6
2480else
2481 cat >conftest.$ac_ext <<_ACEOF
2482/* confdefs.h. */
2483_ACEOF
2484cat confdefs.h >>conftest.$ac_ext 3215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2485cat >>conftest.$ac_ext <<_ACEOF
2486/* end confdefs.h. */ 3216/* end confdefs.h. */
2487 3217#include <stdio.h>
2488int 3218int
2489main () 3219main ()
2490{ 3220{
3221FILE *f = fopen ("conftest.out", "w");
3222 return ferror (f) || fclose (f) != 0;
2491 3223
2492 ; 3224 ;
2493 return 0; 3225 return 0;
2494} 3226}
2495_ACEOF 3227_ACEOF
2496rm -f conftest.o conftest.obj 3228ac_clean_files="$ac_clean_files conftest.out"
2497if { (ac_try="$ac_compile" 3229# Check that the compiler produces executables we can run. If not, either
3230# the compiler is broken, or we cross compile.
3231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3232$as_echo_n "checking whether we are cross compiling... " >&6; }
3233if test "$cross_compiling" != yes; then
3234 { { ac_try="$ac_link"
2498case "(($ac_try" in 3235case "(($ac_try" in
2499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2500 *) ac_try_echo=$ac_try;; 3237 *) ac_try_echo=$ac_try;;
2501esac 3238esac
2502eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3239eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3240$as_echo "$ac_try_echo"; } >&5
3241 (eval "$ac_link") 2>&5
3242 ac_status=$?
3243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3244 test $ac_status = 0; }
3245 if { ac_try='./conftest$ac_cv_exeext'
3246 { { case "(($ac_try" in
3247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3248 *) ac_try_echo=$ac_try;;
3249esac
3250eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3251$as_echo "$ac_try_echo"; } >&5
3252 (eval "$ac_try") 2>&5
3253 ac_status=$?
3254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3255 test $ac_status = 0; }; }; then
3256 cross_compiling=no
3257 else
3258 if test "$cross_compiling" = maybe; then
3259 cross_compiling=yes
3260 else
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263as_fn_error $? "cannot run C compiled programs.
3264If you meant to cross compile, use \`--host'.
3265See \`config.log' for more details" "$LINENO" 5 ; }
3266 fi
3267 fi
3268fi
3269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3270$as_echo "$cross_compiling" >&6; }
3271
3272rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3273ac_clean_files=$ac_clean_files_save
3274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3275$as_echo_n "checking for suffix of object files... " >&6; }
3276if test "${ac_cv_objext+set}" = set; then :
3277 $as_echo_n "(cached) " >&6
3278else
3279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280/* end confdefs.h. */
3281
3282int
3283main ()
3284{
3285
3286 ;
3287 return 0;
3288}
3289_ACEOF
3290rm -f conftest.o conftest.obj
3291if { { ac_try="$ac_compile"
3292case "(($ac_try" in
3293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3294 *) ac_try_echo=$ac_try;;
3295esac
3296eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3297$as_echo "$ac_try_echo"; } >&5
2503 (eval "$ac_compile") 2>&5 3298 (eval "$ac_compile") 2>&5
2504 ac_status=$? 3299 ac_status=$?
2505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2506 (exit $ac_status); }; then 3301 test $ac_status = 0; }; then :
2507 for ac_file in conftest.o conftest.obj conftest.*; do 3302 for ac_file in conftest.o conftest.obj conftest.*; do
2508 test -f "$ac_file" || continue; 3303 test -f "$ac_file" || continue;
2509 case $ac_file in 3304 case $ac_file in
2510 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3305 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2511 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3306 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2512 break;; 3307 break;;
2513 esac 3308 esac
2514done 3309done
2515else 3310else
2516 echo "$as_me: failed program was:" >&5 3311 $as_echo "$as_me: failed program was:" >&5
2517sed 's/^/| /' conftest.$ac_ext >&5 3312sed 's/^/| /' conftest.$ac_ext >&5
2518 3313
2519{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3314{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2520See \`config.log' for more details." >&5 3315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2521echo "$as_me: error: cannot compute suffix of object files: cannot compile 3316as_fn_error $? "cannot compute suffix of object files: cannot compile
2522See \`config.log' for more details." >&2;} 3317See \`config.log' for more details" "$LINENO" 5 ; }
2523 { (exit 1); exit 1; }; }
2524fi 3318fi
2525
2526rm -f conftest.$ac_cv_objext conftest.$ac_ext 3319rm -f conftest.$ac_cv_objext conftest.$ac_ext
2527fi 3320fi
2528{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3321{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2529echo "${ECHO_T}$ac_cv_objext" >&6; } 3322$as_echo "$ac_cv_objext" >&6; }
2530OBJEXT=$ac_cv_objext 3323OBJEXT=$ac_cv_objext
2531ac_objext=$OBJEXT 3324ac_objext=$OBJEXT
2532{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2533echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3326$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2534if test "${ac_cv_c_compiler_gnu+set}" = set; then 3327if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2535 echo $ECHO_N "(cached) $ECHO_C" >&6 3328 $as_echo_n "(cached) " >&6
2536else 3329else
2537 cat >conftest.$ac_ext <<_ACEOF
2538/* confdefs.h. */
2539_ACEOF
2540cat confdefs.h >>conftest.$ac_ext 3330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541cat >>conftest.$ac_ext <<_ACEOF
2542/* end confdefs.h. */ 3331/* end confdefs.h. */
2543 3332
2544int 3333int
2545main () 3334main ()
2546{ 3335{
2550 3339
2551 ; 3340 ;
2552 return 0; 3341 return 0;
2553} 3342}
2554_ACEOF 3343_ACEOF
2555rm -f conftest.$ac_objext 3344if ac_fn_c_try_compile "$LINENO"; then :
2556if { (ac_try="$ac_compile"
2557case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560esac
2561eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2562 (eval "$ac_compile") 2>conftest.er1
2563 ac_status=$?
2564 grep -v '^ *+' conftest.er1 >conftest.err
2565 rm -f conftest.er1
2566 cat conftest.err >&5
2567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2568 (exit $ac_status); } && {
2569 test -z "$ac_c_werror_flag" ||
2570 test ! -s conftest.err
2571 } && test -s conftest.$ac_objext; then
2572 ac_compiler_gnu=yes 3345 ac_compiler_gnu=yes
2573else 3346else
2574 echo "$as_me: failed program was:" >&5
2575sed 's/^/| /' conftest.$ac_ext >&5
2576
2577 ac_compiler_gnu=no 3347 ac_compiler_gnu=no
2578fi 3348fi
2579
2580rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2581ac_cv_c_compiler_gnu=$ac_compiler_gnu 3350ac_cv_c_compiler_gnu=$ac_compiler_gnu
2582 3351
2583fi 3352fi
2584{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2585echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3354$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2586GCC=`test $ac_compiler_gnu = yes && echo yes` 3355if test $ac_compiler_gnu = yes; then
3356 GCC=yes
3357else
3358 GCC=
3359fi
2587ac_test_CFLAGS=${CFLAGS+set} 3360ac_test_CFLAGS=${CFLAGS+set}
2588ac_save_CFLAGS=$CFLAGS 3361ac_save_CFLAGS=$CFLAGS
2589{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2590echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3363$as_echo_n "checking whether $CC accepts -g... " >&6; }
2591if test "${ac_cv_prog_cc_g+set}" = set; then 3364if test "${ac_cv_prog_cc_g+set}" = set; then :
2592 echo $ECHO_N "(cached) $ECHO_C" >&6 3365 $as_echo_n "(cached) " >&6
2593else 3366else
2594 ac_save_c_werror_flag=$ac_c_werror_flag 3367 ac_save_c_werror_flag=$ac_c_werror_flag
2595 ac_c_werror_flag=yes 3368 ac_c_werror_flag=yes
2596 ac_cv_prog_cc_g=no 3369 ac_cv_prog_cc_g=no
2597 CFLAGS="-g" 3370 CFLAGS="-g"
2598 cat >conftest.$ac_ext <<_ACEOF
2599/* confdefs.h. */
2600_ACEOF
2601cat confdefs.h >>conftest.$ac_ext 3371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602cat >>conftest.$ac_ext <<_ACEOF
2603/* end confdefs.h. */ 3372/* end confdefs.h. */
2604 3373
2605int 3374int
2606main () 3375main ()
2607{ 3376{
2608 3377
2609 ; 3378 ;
2610 return 0; 3379 return 0;
2611} 3380}
2612_ACEOF 3381_ACEOF
2613rm -f conftest.$ac_objext 3382if ac_fn_c_try_compile "$LINENO"; then :
2614if { (ac_try="$ac_compile"
2615case "(($ac_try" in
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2618esac
2619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2620 (eval "$ac_compile") 2>conftest.er1
2621 ac_status=$?
2622 grep -v '^ *+' conftest.er1 >conftest.err
2623 rm -f conftest.er1
2624 cat conftest.err >&5
2625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2626 (exit $ac_status); } && {
2627 test -z "$ac_c_werror_flag" ||
2628 test ! -s conftest.err
2629 } && test -s conftest.$ac_objext; then
2630 ac_cv_prog_cc_g=yes 3383 ac_cv_prog_cc_g=yes
2631else 3384else
2632 echo "$as_me: failed program was:" >&5
2633sed 's/^/| /' conftest.$ac_ext >&5
2634
2635 CFLAGS="" 3385 CFLAGS=""
2636 cat >conftest.$ac_ext <<_ACEOF
2637/* confdefs.h. */
2638_ACEOF
2639cat confdefs.h >>conftest.$ac_ext 3386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2640cat >>conftest.$ac_ext <<_ACEOF
2641/* end confdefs.h. */ 3387/* end confdefs.h. */
2642 3388
2643int 3389int
2644main () 3390main ()
2645{ 3391{
2646 3392
2647 ; 3393 ;
2648 return 0; 3394 return 0;
2649} 3395}
2650_ACEOF 3396_ACEOF
2651rm -f conftest.$ac_objext 3397if ac_fn_c_try_compile "$LINENO"; then :
2652if { (ac_try="$ac_compile"
2653case "(($ac_try" in
2654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2655 *) ac_try_echo=$ac_try;;
2656esac
2657eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2658 (eval "$ac_compile") 2>conftest.er1
2659 ac_status=$?
2660 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } && {
2665 test -z "$ac_c_werror_flag" ||
2666 test ! -s conftest.err
2667 } && test -s conftest.$ac_objext; then
2668 :
2669else
2670 echo "$as_me: failed program was:" >&5
2671sed 's/^/| /' conftest.$ac_ext >&5
2672 3398
3399else
2673 ac_c_werror_flag=$ac_save_c_werror_flag 3400 ac_c_werror_flag=$ac_save_c_werror_flag
2674 CFLAGS="-g" 3401 CFLAGS="-g"
2675 cat >conftest.$ac_ext <<_ACEOF
2676/* confdefs.h. */
2677_ACEOF
2678cat confdefs.h >>conftest.$ac_ext 3402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2679cat >>conftest.$ac_ext <<_ACEOF
2680/* end confdefs.h. */ 3403/* end confdefs.h. */
2681 3404
2682int 3405int
2683main () 3406main ()
2684{ 3407{
2685 3408
2686 ; 3409 ;
2687 return 0; 3410 return 0;
2688} 3411}
2689_ACEOF 3412_ACEOF
2690rm -f conftest.$ac_objext 3413if ac_fn_c_try_compile "$LINENO"; then :
2691if { (ac_try="$ac_compile"
2692case "(($ac_try" in
2693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2694 *) ac_try_echo=$ac_try;;
2695esac
2696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2697 (eval "$ac_compile") 2>conftest.er1
2698 ac_status=$?
2699 grep -v '^ *+' conftest.er1 >conftest.err
2700 rm -f conftest.er1
2701 cat conftest.err >&5
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); } && {
2704 test -z "$ac_c_werror_flag" ||
2705 test ! -s conftest.err
2706 } && test -s conftest.$ac_objext; then
2707 ac_cv_prog_cc_g=yes 3414 ac_cv_prog_cc_g=yes
2708else
2709 echo "$as_me: failed program was:" >&5
2710sed 's/^/| /' conftest.$ac_ext >&5
2711
2712
2713fi 3415fi
2714
2715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3416rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2716fi 3417fi
2717
2718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2719fi 3419fi
2720
2721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3420rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2722 ac_c_werror_flag=$ac_save_c_werror_flag 3421 ac_c_werror_flag=$ac_save_c_werror_flag
2723fi 3422fi
2724{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2725echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3424$as_echo "$ac_cv_prog_cc_g" >&6; }
2726if test "$ac_test_CFLAGS" = set; then 3425if test "$ac_test_CFLAGS" = set; then
2727 CFLAGS=$ac_save_CFLAGS 3426 CFLAGS=$ac_save_CFLAGS
2728elif test $ac_cv_prog_cc_g = yes; then 3427elif test $ac_cv_prog_cc_g = yes; then
2729 if test "$GCC" = yes; then 3428 if test "$GCC" = yes; then
2730 CFLAGS="-g -O2" 3429 CFLAGS="-g -O2"
2736 CFLAGS="-O2" 3435 CFLAGS="-O2"
2737 else 3436 else
2738 CFLAGS= 3437 CFLAGS=
2739 fi 3438 fi
2740fi 3439fi
2741{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3440{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2742echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3441$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2743if test "${ac_cv_prog_cc_c89+set}" = set; then 3442if test "${ac_cv_prog_cc_c89+set}" = set; then :
2744 echo $ECHO_N "(cached) $ECHO_C" >&6 3443 $as_echo_n "(cached) " >&6
2745else 3444else
2746 ac_cv_prog_cc_c89=no 3445 ac_cv_prog_cc_c89=no
2747ac_save_CC=$CC 3446ac_save_CC=$CC
2748cat >conftest.$ac_ext <<_ACEOF
2749/* confdefs.h. */
2750_ACEOF
2751cat confdefs.h >>conftest.$ac_ext 3447cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2752cat >>conftest.$ac_ext <<_ACEOF
2753/* end confdefs.h. */ 3448/* end confdefs.h. */
2754#include <stdarg.h> 3449#include <stdarg.h>
2755#include <stdio.h> 3450#include <stdio.h>
2756#include <sys/types.h> 3451#include <sys/types.h>
2757#include <sys/stat.h> 3452#include <sys/stat.h>
2804_ACEOF 3499_ACEOF
2805for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3500for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2806 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3501 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2807do 3502do
2808 CC="$ac_save_CC $ac_arg" 3503 CC="$ac_save_CC $ac_arg"
2809 rm -f conftest.$ac_objext 3504 if ac_fn_c_try_compile "$LINENO"; then :
2810if { (ac_try="$ac_compile"
2811case "(($ac_try" in
2812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2813 *) ac_try_echo=$ac_try;;
2814esac
2815eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2816 (eval "$ac_compile") 2>conftest.er1
2817 ac_status=$?
2818 grep -v '^ *+' conftest.er1 >conftest.err
2819 rm -f conftest.er1
2820 cat conftest.err >&5
2821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2822 (exit $ac_status); } && {
2823 test -z "$ac_c_werror_flag" ||
2824 test ! -s conftest.err
2825 } && test -s conftest.$ac_objext; then
2826 ac_cv_prog_cc_c89=$ac_arg 3505 ac_cv_prog_cc_c89=$ac_arg
2827else
2828 echo "$as_me: failed program was:" >&5
2829sed 's/^/| /' conftest.$ac_ext >&5
2830
2831
2832fi 3506fi
2833
2834rm -f core conftest.err conftest.$ac_objext 3507rm -f core conftest.err conftest.$ac_objext
2835 test "x$ac_cv_prog_cc_c89" != "xno" && break 3508 test "x$ac_cv_prog_cc_c89" != "xno" && break
2836done 3509done
2837rm -f conftest.$ac_ext 3510rm -f conftest.$ac_ext
2838CC=$ac_save_CC 3511CC=$ac_save_CC
2839 3512
2840fi 3513fi
2841# AC_CACHE_VAL 3514# AC_CACHE_VAL
2842case "x$ac_cv_prog_cc_c89" in 3515case "x$ac_cv_prog_cc_c89" in
2843 x) 3516 x)
2844 { echo "$as_me:$LINENO: result: none needed" >&5 3517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2845echo "${ECHO_T}none needed" >&6; } ;; 3518$as_echo "none needed" >&6; } ;;
2846 xno) 3519 xno)
2847 { echo "$as_me:$LINENO: result: unsupported" >&5 3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2848echo "${ECHO_T}unsupported" >&6; } ;; 3521$as_echo "unsupported" >&6; } ;;
2849 *) 3522 *)
2850 CC="$CC $ac_cv_prog_cc_c89" 3523 CC="$CC $ac_cv_prog_cc_c89"
2851 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2852echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3525$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2853esac 3526esac
3527if test "x$ac_cv_prog_cc_c89" != xno; then :
2854 3528
3529fi
2855 3530
2856ac_ext=c 3531ac_ext=c
2857ac_cpp='$CPP $CPPFLAGS' 3532ac_cpp='$CPP $CPPFLAGS'
2858ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3533ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2859ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3534ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2871 if test -n "$ac_tool_prefix"; then 3546 if test -n "$ac_tool_prefix"; then
2872 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3547 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2873 do 3548 do
2874 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3549 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2875set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3550set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2876{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2877echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3552$as_echo_n "checking for $ac_word... " >&6; }
2878if test "${ac_cv_prog_CXX+set}" = set; then 3553if test "${ac_cv_prog_CXX+set}" = set; then :
2879 echo $ECHO_N "(cached) $ECHO_C" >&6 3554 $as_echo_n "(cached) " >&6
2880else 3555else
2881 if test -n "$CXX"; then 3556 if test -n "$CXX"; then
2882 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3557 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2883else 3558else
2884as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3559as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2885for as_dir in $PATH 3560for as_dir in $PATH
2886do 3561do
2887 IFS=$as_save_IFS 3562 IFS=$as_save_IFS
2888 test -z "$as_dir" && as_dir=. 3563 test -z "$as_dir" && as_dir=.
2889 for ac_exec_ext in '' $ac_executable_extensions; do 3564 for ac_exec_ext in '' $ac_executable_extensions; do
2890 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3565 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2891 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3566 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2892 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2893 break 2 3568 break 2
2894 fi 3569 fi
2895done 3570done
2896done 3571 done
2897IFS=$as_save_IFS 3572IFS=$as_save_IFS
2898 3573
2899fi 3574fi
2900fi 3575fi
2901CXX=$ac_cv_prog_CXX 3576CXX=$ac_cv_prog_CXX
2902if test -n "$CXX"; then 3577if test -n "$CXX"; then
2903 { echo "$as_me:$LINENO: result: $CXX" >&5 3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2904echo "${ECHO_T}$CXX" >&6; } 3579$as_echo "$CXX" >&6; }
2905else 3580else
2906 { echo "$as_me:$LINENO: result: no" >&5 3581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2907echo "${ECHO_T}no" >&6; } 3582$as_echo "no" >&6; }
2908fi 3583fi
2909 3584
2910 3585
2911 test -n "$CXX" && break 3586 test -n "$CXX" && break
2912 done 3587 done
2915 ac_ct_CXX=$CXX 3590 ac_ct_CXX=$CXX
2916 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3591 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2917do 3592do
2918 # Extract the first word of "$ac_prog", so it can be a program name with args. 3593 # Extract the first word of "$ac_prog", so it can be a program name with args.
2919set dummy $ac_prog; ac_word=$2 3594set dummy $ac_prog; ac_word=$2
2920{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2921echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3596$as_echo_n "checking for $ac_word... " >&6; }
2922if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3597if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2923 echo $ECHO_N "(cached) $ECHO_C" >&6 3598 $as_echo_n "(cached) " >&6
2924else 3599else
2925 if test -n "$ac_ct_CXX"; then 3600 if test -n "$ac_ct_CXX"; then
2926 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3601 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2927else 3602else
2928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3603as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2929for as_dir in $PATH 3604for as_dir in $PATH
2930do 3605do
2931 IFS=$as_save_IFS 3606 IFS=$as_save_IFS
2932 test -z "$as_dir" && as_dir=. 3607 test -z "$as_dir" && as_dir=.
2933 for ac_exec_ext in '' $ac_executable_extensions; do 3608 for ac_exec_ext in '' $ac_executable_extensions; do
2934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3609 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2935 ac_cv_prog_ac_ct_CXX="$ac_prog" 3610 ac_cv_prog_ac_ct_CXX="$ac_prog"
2936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 break 2 3612 break 2
2938 fi 3613 fi
2939done 3614done
2940done 3615 done
2941IFS=$as_save_IFS 3616IFS=$as_save_IFS
2942 3617
2943fi 3618fi
2944fi 3619fi
2945ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3620ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2946if test -n "$ac_ct_CXX"; then 3621if test -n "$ac_ct_CXX"; then
2947 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2948echo "${ECHO_T}$ac_ct_CXX" >&6; } 3623$as_echo "$ac_ct_CXX" >&6; }
2949else 3624else
2950 { echo "$as_me:$LINENO: result: no" >&5 3625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2951echo "${ECHO_T}no" >&6; } 3626$as_echo "no" >&6; }
2952fi 3627fi
2953 3628
2954 3629
2955 test -n "$ac_ct_CXX" && break 3630 test -n "$ac_ct_CXX" && break
2956done 3631done
2958 if test "x$ac_ct_CXX" = x; then 3633 if test "x$ac_ct_CXX" = x; then
2959 CXX="g++" 3634 CXX="g++"
2960 else 3635 else
2961 case $cross_compiling:$ac_tool_warned in 3636 case $cross_compiling:$ac_tool_warned in
2962yes:) 3637yes:)
2963{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3638{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2964whose name does not start with the host triplet. If you think this 3639$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2965configuration is useful to you, please write to autoconf@gnu.org." >&5
2966echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2967whose name does not start with the host triplet. If you think this
2968configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2969ac_tool_warned=yes ;; 3640ac_tool_warned=yes ;;
2970esac 3641esac
2971 CXX=$ac_ct_CXX 3642 CXX=$ac_ct_CXX
2972 fi 3643 fi
2973fi 3644fi
2974 3645
2975 fi 3646 fi
2976fi 3647fi
2977# Provide some information about the compiler. 3648# Provide some information about the compiler.
2978echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3649$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2979ac_compiler=`set X $ac_compile; echo $2` 3650set X $ac_compile
3651ac_compiler=$2
3652for ac_option in --version -v -V -qversion; do
2980{ (ac_try="$ac_compiler --version >&5" 3653 { { ac_try="$ac_compiler $ac_option >&5"
2981case "(($ac_try" in 3654case "(($ac_try" in
2982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2983 *) ac_try_echo=$ac_try;; 3656 *) ac_try_echo=$ac_try;;
2984esac 3657esac
2985eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3658eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2986 (eval "$ac_compiler --version >&5") 2>&5 3659$as_echo "$ac_try_echo"; } >&5
3660 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2987 ac_status=$? 3661 ac_status=$?
3662 if test -s conftest.err; then
3663 sed '10a\
3664... rest of stderr output deleted ...
3665 10q' conftest.err >conftest.er1
3666 cat conftest.er1 >&5
3667 fi
3668 rm -f conftest.er1 conftest.err
2988 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2989 (exit $ac_status); } 3670 test $ac_status = 0; }
2990{ (ac_try="$ac_compiler -v >&5" 3671done
2991case "(($ac_try" in
2992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2993 *) ac_try_echo=$ac_try;;
2994esac
2995eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2996 (eval "$ac_compiler -v >&5") 2>&5
2997 ac_status=$?
2998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2999 (exit $ac_status); }
3000{ (ac_try="$ac_compiler -V >&5"
3001case "(($ac_try" in
3002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3003 *) ac_try_echo=$ac_try;;
3004esac
3005eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3006 (eval "$ac_compiler -V >&5") 2>&5
3007 ac_status=$?
3008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3009 (exit $ac_status); }
3010 3672
3011{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3012echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 3674$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3013if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3675if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3014 echo $ECHO_N "(cached) $ECHO_C" >&6 3676 $as_echo_n "(cached) " >&6
3015else 3677else
3016 cat >conftest.$ac_ext <<_ACEOF
3017/* confdefs.h. */
3018_ACEOF
3019cat confdefs.h >>conftest.$ac_ext 3678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3020cat >>conftest.$ac_ext <<_ACEOF
3021/* end confdefs.h. */ 3679/* end confdefs.h. */
3022 3680
3023int 3681int
3024main () 3682main ()
3025{ 3683{
3029 3687
3030 ; 3688 ;
3031 return 0; 3689 return 0;
3032} 3690}
3033_ACEOF 3691_ACEOF
3034rm -f conftest.$ac_objext 3692if ac_fn_cxx_try_compile "$LINENO"; then :
3035if { (ac_try="$ac_compile"
3036case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039esac
3040eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3041 (eval "$ac_compile") 2>conftest.er1
3042 ac_status=$?
3043 grep -v '^ *+' conftest.er1 >conftest.err
3044 rm -f conftest.er1
3045 cat conftest.err >&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); } && {
3048 test -z "$ac_cxx_werror_flag" ||
3049 test ! -s conftest.err
3050 } && test -s conftest.$ac_objext; then
3051 ac_compiler_gnu=yes 3693 ac_compiler_gnu=yes
3052else 3694else
3053 echo "$as_me: failed program was:" >&5
3054sed 's/^/| /' conftest.$ac_ext >&5
3055
3056 ac_compiler_gnu=no 3695 ac_compiler_gnu=no
3057fi 3696fi
3058
3059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3698ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3061 3699
3062fi 3700fi
3063{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3064echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3702$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3065GXX=`test $ac_compiler_gnu = yes && echo yes` 3703if test $ac_compiler_gnu = yes; then
3704 GXX=yes
3705else
3706 GXX=
3707fi
3066ac_test_CXXFLAGS=${CXXFLAGS+set} 3708ac_test_CXXFLAGS=${CXXFLAGS+set}
3067ac_save_CXXFLAGS=$CXXFLAGS 3709ac_save_CXXFLAGS=$CXXFLAGS
3068{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3069echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3711$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3070if test "${ac_cv_prog_cxx_g+set}" = set; then 3712if test "${ac_cv_prog_cxx_g+set}" = set; then :
3071 echo $ECHO_N "(cached) $ECHO_C" >&6 3713 $as_echo_n "(cached) " >&6
3072else 3714else
3073 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3715 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3074 ac_cxx_werror_flag=yes 3716 ac_cxx_werror_flag=yes
3075 ac_cv_prog_cxx_g=no 3717 ac_cv_prog_cxx_g=no
3076 CXXFLAGS="-g" 3718 CXXFLAGS="-g"
3077 cat >conftest.$ac_ext <<_ACEOF
3078/* confdefs.h. */
3079_ACEOF
3080cat confdefs.h >>conftest.$ac_ext 3719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3081cat >>conftest.$ac_ext <<_ACEOF
3082/* end confdefs.h. */ 3720/* end confdefs.h. */
3083 3721
3084int 3722int
3085main () 3723main ()
3086{ 3724{
3087 3725
3088 ; 3726 ;
3089 return 0; 3727 return 0;
3090} 3728}
3091_ACEOF 3729_ACEOF
3092rm -f conftest.$ac_objext 3730if ac_fn_cxx_try_compile "$LINENO"; then :
3093if { (ac_try="$ac_compile"
3094case "(($ac_try" in
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3097esac
3098eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_compile") 2>conftest.er1
3100 ac_status=$?
3101 grep -v '^ *+' conftest.er1 >conftest.err
3102 rm -f conftest.er1
3103 cat conftest.err >&5
3104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105 (exit $ac_status); } && {
3106 test -z "$ac_cxx_werror_flag" ||
3107 test ! -s conftest.err
3108 } && test -s conftest.$ac_objext; then
3109 ac_cv_prog_cxx_g=yes 3731 ac_cv_prog_cxx_g=yes
3110else 3732else
3111 echo "$as_me: failed program was:" >&5
3112sed 's/^/| /' conftest.$ac_ext >&5
3113
3114 CXXFLAGS="" 3733 CXXFLAGS=""
3115 cat >conftest.$ac_ext <<_ACEOF
3116/* confdefs.h. */
3117_ACEOF
3118cat confdefs.h >>conftest.$ac_ext 3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3119cat >>conftest.$ac_ext <<_ACEOF
3120/* end confdefs.h. */ 3735/* end confdefs.h. */
3121 3736
3122int 3737int
3123main () 3738main ()
3124{ 3739{
3125 3740
3126 ; 3741 ;
3127 return 0; 3742 return 0;
3128} 3743}
3129_ACEOF 3744_ACEOF
3130rm -f conftest.$ac_objext 3745if ac_fn_cxx_try_compile "$LINENO"; then :
3131if { (ac_try="$ac_compile"
3132case "(($ac_try" in
3133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3134 *) ac_try_echo=$ac_try;;
3135esac
3136eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3137 (eval "$ac_compile") 2>conftest.er1
3138 ac_status=$?
3139 grep -v '^ *+' conftest.er1 >conftest.err
3140 rm -f conftest.er1
3141 cat conftest.err >&5
3142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3143 (exit $ac_status); } && {
3144 test -z "$ac_cxx_werror_flag" ||
3145 test ! -s conftest.err
3146 } && test -s conftest.$ac_objext; then
3147 :
3148else
3149 echo "$as_me: failed program was:" >&5
3150sed 's/^/| /' conftest.$ac_ext >&5
3151 3746
3747else
3152 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3748 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3153 CXXFLAGS="-g" 3749 CXXFLAGS="-g"
3154 cat >conftest.$ac_ext <<_ACEOF
3155/* confdefs.h. */
3156_ACEOF
3157cat confdefs.h >>conftest.$ac_ext 3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3158cat >>conftest.$ac_ext <<_ACEOF
3159/* end confdefs.h. */ 3751/* end confdefs.h. */
3160 3752
3161int 3753int
3162main () 3754main ()
3163{ 3755{
3164 3756
3165 ; 3757 ;
3166 return 0; 3758 return 0;
3167} 3759}
3168_ACEOF 3760_ACEOF
3169rm -f conftest.$ac_objext 3761if ac_fn_cxx_try_compile "$LINENO"; then :
3170if { (ac_try="$ac_compile"
3171case "(($ac_try" in
3172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3173 *) ac_try_echo=$ac_try;;
3174esac
3175eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3176 (eval "$ac_compile") 2>conftest.er1
3177 ac_status=$?
3178 grep -v '^ *+' conftest.er1 >conftest.err
3179 rm -f conftest.er1
3180 cat conftest.err >&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); } && {
3183 test -z "$ac_cxx_werror_flag" ||
3184 test ! -s conftest.err
3185 } && test -s conftest.$ac_objext; then
3186 ac_cv_prog_cxx_g=yes 3762 ac_cv_prog_cxx_g=yes
3187else
3188 echo "$as_me: failed program was:" >&5
3189sed 's/^/| /' conftest.$ac_ext >&5
3190
3191
3192fi 3763fi
3193
3194rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3764rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3195fi 3765fi
3196
3197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3198fi 3767fi
3199
3200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3769 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3202fi 3770fi
3203{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3204echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3772$as_echo "$ac_cv_prog_cxx_g" >&6; }
3205if test "$ac_test_CXXFLAGS" = set; then 3773if test "$ac_test_CXXFLAGS" = set; then
3206 CXXFLAGS=$ac_save_CXXFLAGS 3774 CXXFLAGS=$ac_save_CXXFLAGS
3207elif test $ac_cv_prog_cxx_g = yes; then 3775elif test $ac_cv_prog_cxx_g = yes; then
3208 if test "$GXX" = yes; then 3776 if test "$GXX" = yes; then
3209 CXXFLAGS="-g -O2" 3777 CXXFLAGS="-g -O2"
3215 CXXFLAGS="-O2" 3783 CXXFLAGS="-O2"
3216 else 3784 else
3217 CXXFLAGS= 3785 CXXFLAGS=
3218 fi 3786 fi
3219fi 3787fi
3220ac_ext=c
3221ac_cpp='$CPP $CPPFLAGS'
3222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3224ac_compiler_gnu=$ac_cv_c_compiler_gnu
3225
3226ac_ext=c
3227ac_cpp='$CPP $CPPFLAGS'
3228ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3229ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3230ac_compiler_gnu=$ac_cv_c_compiler_gnu
3231{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3232echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3233# On Suns, sometimes $CPP names a directory.
3234if test -n "$CPP" && test -d "$CPP"; then
3235 CPP=
3236fi
3237if test -z "$CPP"; then
3238 if test "${ac_cv_prog_CPP+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240else
3241 # Double quotes because CPP needs to be expanded
3242 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3243 do
3244 ac_preproc_ok=false
3245for ac_c_preproc_warn_flag in '' yes
3246do
3247 # Use a header file that comes with gcc, so configuring glibc
3248 # with a fresh cross-compiler works.
3249 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3250 # <limits.h> exists even on freestanding compilers.
3251 # On the NeXT, cc -E runs the code through the compiler's parser,
3252 # not just through cpp. "Syntax error" is here to catch this case.
3253 cat >conftest.$ac_ext <<_ACEOF
3254/* confdefs.h. */
3255_ACEOF
3256cat confdefs.h >>conftest.$ac_ext
3257cat >>conftest.$ac_ext <<_ACEOF
3258/* end confdefs.h. */
3259#ifdef __STDC__
3260# include <limits.h>
3261#else
3262# include <assert.h>
3263#endif
3264 Syntax error
3265_ACEOF
3266if { (ac_try="$ac_cpp conftest.$ac_ext"
3267case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270esac
3271eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } >/dev/null && {
3279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 }; then
3282 :
3283else
3284 echo "$as_me: failed program was:" >&5
3285sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 # Broken: fails on valid input.
3288continue
3289fi
3290
3291rm -f conftest.err conftest.$ac_ext
3292
3293 # OK, works on sane cases. Now check whether nonexistent headers
3294 # can be detected and how.
3295 cat >conftest.$ac_ext <<_ACEOF
3296/* confdefs.h. */
3297_ACEOF
3298cat confdefs.h >>conftest.$ac_ext
3299cat >>conftest.$ac_ext <<_ACEOF
3300/* end confdefs.h. */
3301#include <ac_nonexistent.h>
3302_ACEOF
3303if { (ac_try="$ac_cpp conftest.$ac_ext"
3304case "(($ac_try" in
3305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3306 *) ac_try_echo=$ac_try;;
3307esac
3308eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3309 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3310 ac_status=$?
3311 grep -v '^ *+' conftest.er1 >conftest.err
3312 rm -f conftest.er1
3313 cat conftest.err >&5
3314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3315 (exit $ac_status); } >/dev/null && {
3316 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3317 test ! -s conftest.err
3318 }; then
3319 # Broken: success on invalid input.
3320continue
3321else
3322 echo "$as_me: failed program was:" >&5
3323sed 's/^/| /' conftest.$ac_ext >&5
3324
3325 # Passes both tests.
3326ac_preproc_ok=:
3327break
3328fi
3329
3330rm -f conftest.err conftest.$ac_ext
3331
3332done
3333# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3334rm -f conftest.err conftest.$ac_ext
3335if $ac_preproc_ok; then
3336 break
3337fi
3338
3339 done
3340 ac_cv_prog_CPP=$CPP
3341
3342fi
3343 CPP=$ac_cv_prog_CPP
3344else
3345 ac_cv_prog_CPP=$CPP
3346fi
3347{ echo "$as_me:$LINENO: result: $CPP" >&5
3348echo "${ECHO_T}$CPP" >&6; }
3349ac_preproc_ok=false
3350for ac_c_preproc_warn_flag in '' yes
3351do
3352 # Use a header file that comes with gcc, so configuring glibc
3353 # with a fresh cross-compiler works.
3354 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3355 # <limits.h> exists even on freestanding compilers.
3356 # On the NeXT, cc -E runs the code through the compiler's parser,
3357 # not just through cpp. "Syntax error" is here to catch this case.
3358 cat >conftest.$ac_ext <<_ACEOF
3359/* confdefs.h. */
3360_ACEOF
3361cat confdefs.h >>conftest.$ac_ext
3362cat >>conftest.$ac_ext <<_ACEOF
3363/* end confdefs.h. */
3364#ifdef __STDC__
3365# include <limits.h>
3366#else
3367# include <assert.h>
3368#endif
3369 Syntax error
3370_ACEOF
3371if { (ac_try="$ac_cpp conftest.$ac_ext"
3372case "(($ac_try" in
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3375esac
3376eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3378 ac_status=$?
3379 grep -v '^ *+' conftest.er1 >conftest.err
3380 rm -f conftest.er1
3381 cat conftest.err >&5
3382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3383 (exit $ac_status); } >/dev/null && {
3384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3385 test ! -s conftest.err
3386 }; then
3387 :
3388else
3389 echo "$as_me: failed program was:" >&5
3390sed 's/^/| /' conftest.$ac_ext >&5
3391
3392 # Broken: fails on valid input.
3393continue
3394fi
3395
3396rm -f conftest.err conftest.$ac_ext
3397
3398 # OK, works on sane cases. Now check whether nonexistent headers
3399 # can be detected and how.
3400 cat >conftest.$ac_ext <<_ACEOF
3401/* confdefs.h. */
3402_ACEOF
3403cat confdefs.h >>conftest.$ac_ext
3404cat >>conftest.$ac_ext <<_ACEOF
3405/* end confdefs.h. */
3406#include <ac_nonexistent.h>
3407_ACEOF
3408if { (ac_try="$ac_cpp conftest.$ac_ext"
3409case "(($ac_try" in
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3412esac
3413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3415 ac_status=$?
3416 grep -v '^ *+' conftest.er1 >conftest.err
3417 rm -f conftest.er1
3418 cat conftest.err >&5
3419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3420 (exit $ac_status); } >/dev/null && {
3421 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3422 test ! -s conftest.err
3423 }; then
3424 # Broken: success on invalid input.
3425continue
3426else
3427 echo "$as_me: failed program was:" >&5
3428sed 's/^/| /' conftest.$ac_ext >&5
3429
3430 # Passes both tests.
3431ac_preproc_ok=:
3432break
3433fi
3434
3435rm -f conftest.err conftest.$ac_ext
3436
3437done
3438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3439rm -f conftest.err conftest.$ac_ext
3440if $ac_preproc_ok; then
3441 :
3442else
3443 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3444See \`config.log' for more details." >&5
3445echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3446See \`config.log' for more details." >&2;}
3447 { (exit 1); exit 1; }; }
3448fi
3449
3450ac_ext=c 3788ac_ext=c
3451ac_cpp='$CPP $CPPFLAGS' 3789ac_cpp='$CPP $CPPFLAGS'
3452ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3790ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3453ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3791ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3454ac_compiler_gnu=$ac_cv_c_compiler_gnu 3792ac_compiler_gnu=$ac_cv_c_compiler_gnu
3464# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3802# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3465# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3803# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3466# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3804# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3467# OS/2's system install, which has a completely different semantic 3805# OS/2's system install, which has a completely different semantic
3468# ./install, which can be erroneously created by make from ./install.sh. 3806# ./install, which can be erroneously created by make from ./install.sh.
3807# Reject install programs that cannot install multiple files.
3469{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3470echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3809$as_echo_n "checking for a BSD-compatible install... " >&6; }
3471if test -z "$INSTALL"; then 3810if test -z "$INSTALL"; then
3472if test "${ac_cv_path_install+set}" = set; then 3811if test "${ac_cv_path_install+set}" = set; then :
3473 echo $ECHO_N "(cached) $ECHO_C" >&6 3812 $as_echo_n "(cached) " >&6
3474else 3813else
3475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476for as_dir in $PATH 3815for as_dir in $PATH
3477do 3816do
3478 IFS=$as_save_IFS 3817 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=. 3818 test -z "$as_dir" && as_dir=.
3480 # Account for people who put trailing slashes in PATH elements. 3819 # Account for people who put trailing slashes in PATH elements.
3481case $as_dir/ in 3820case $as_dir/ in #((
3482 ./ | .// | /cC/* | \ 3821 ./ | .// | /[cC]/* | \
3483 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3822 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3484 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3823 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3485 /usr/ucb/* ) ;; 3824 /usr/ucb/* ) ;;
3486 *) 3825 *)
3487 # OSF1 and SCO ODT 3.0 have their own names for install. 3826 # OSF1 and SCO ODT 3.0 have their own names for install.
3488 # Don't use installbsd from OSF since it installs stuff as root 3827 # Don't use installbsd from OSF since it installs stuff as root
3489 # by default. 3828 # by default.
3497 elif test $ac_prog = install && 3836 elif test $ac_prog = install &&
3498 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3837 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3499 # program-specific install script used by HP pwplus--don't use. 3838 # program-specific install script used by HP pwplus--don't use.
3500 : 3839 :
3501 else 3840 else
3841 rm -rf conftest.one conftest.two conftest.dir
3842 echo one > conftest.one
3843 echo two > conftest.two
3844 mkdir conftest.dir
3845 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3846 test -s conftest.one && test -s conftest.two &&
3847 test -s conftest.dir/conftest.one &&
3848 test -s conftest.dir/conftest.two
3849 then
3502 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3850 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3503 break 3 3851 break 3
3852 fi
3504 fi 3853 fi
3505 fi 3854 fi
3506 done 3855 done
3507 done 3856 done
3508 ;; 3857 ;;
3509esac 3858esac
3859
3510done 3860 done
3511IFS=$as_save_IFS 3861IFS=$as_save_IFS
3512 3862
3863rm -rf conftest.one conftest.two conftest.dir
3513 3864
3514fi 3865fi
3515 if test "${ac_cv_path_install+set}" = set; then 3866 if test "${ac_cv_path_install+set}" = set; then
3516 INSTALL=$ac_cv_path_install 3867 INSTALL=$ac_cv_path_install
3517 else 3868 else
3520 # break other packages using the cache if that directory is 3871 # break other packages using the cache if that directory is
3521 # removed, or if the value is a relative name. 3872 # removed, or if the value is a relative name.
3522 INSTALL=$ac_install_sh 3873 INSTALL=$ac_install_sh
3523 fi 3874 fi
3524fi 3875fi
3525{ echo "$as_me:$LINENO: result: $INSTALL" >&5 3876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3526echo "${ECHO_T}$INSTALL" >&6; } 3877$as_echo "$INSTALL" >&6; }
3527 3878
3528# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3879# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3529# It thinks the first close brace ends the variable substitution. 3880# It thinks the first close brace ends the variable substitution.
3530test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3881test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3531 3882
3533 3884
3534test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3885test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3535 3886
3536 3887
3537 3888
3889ac_ext=c
3890ac_cpp='$CPP $CPPFLAGS'
3891ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3892ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3893ac_compiler_gnu=$ac_cv_c_compiler_gnu
3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3895$as_echo_n "checking how to run the C preprocessor... " >&6; }
3896# On Suns, sometimes $CPP names a directory.
3897if test -n "$CPP" && test -d "$CPP"; then
3898 CPP=
3899fi
3900if test -z "$CPP"; then
3901 if test "${ac_cv_prog_CPP+set}" = set; then :
3902 $as_echo_n "(cached) " >&6
3903else
3904 # Double quotes because CPP needs to be expanded
3905 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3906 do
3907 ac_preproc_ok=false
3908for ac_c_preproc_warn_flag in '' yes
3909do
3910 # Use a header file that comes with gcc, so configuring glibc
3911 # with a fresh cross-compiler works.
3912 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3913 # <limits.h> exists even on freestanding compilers.
3914 # On the NeXT, cc -E runs the code through the compiler's parser,
3915 # not just through cpp. "Syntax error" is here to catch this case.
3916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3917/* end confdefs.h. */
3918#ifdef __STDC__
3919# include <limits.h>
3920#else
3921# include <assert.h>
3922#endif
3923 Syntax error
3924_ACEOF
3925if ac_fn_c_try_cpp "$LINENO"; then :
3538 3926
3927else
3928 # Broken: fails on valid input.
3929continue
3930fi
3931rm -f conftest.err conftest.i conftest.$ac_ext
3932
3933 # OK, works on sane cases. Now check whether nonexistent headers
3934 # can be detected and how.
3935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3936/* end confdefs.h. */
3937#include <ac_nonexistent.h>
3938_ACEOF
3939if ac_fn_c_try_cpp "$LINENO"; then :
3940 # Broken: success on invalid input.
3941continue
3942else
3943 # Passes both tests.
3944ac_preproc_ok=:
3945break
3946fi
3947rm -f conftest.err conftest.i conftest.$ac_ext
3948
3949done
3950# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3951rm -f conftest.i conftest.err conftest.$ac_ext
3952if $ac_preproc_ok; then :
3953 break
3954fi
3955
3956 done
3957 ac_cv_prog_CPP=$CPP
3958
3959fi
3960 CPP=$ac_cv_prog_CPP
3961else
3962 ac_cv_prog_CPP=$CPP
3963fi
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3965$as_echo "$CPP" >&6; }
3966ac_preproc_ok=false
3967for ac_c_preproc_warn_flag in '' yes
3968do
3969 # Use a header file that comes with gcc, so configuring glibc
3970 # with a fresh cross-compiler works.
3971 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3972 # <limits.h> exists even on freestanding compilers.
3973 # On the NeXT, cc -E runs the code through the compiler's parser,
3974 # not just through cpp. "Syntax error" is here to catch this case.
3975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3976/* end confdefs.h. */
3977#ifdef __STDC__
3978# include <limits.h>
3979#else
3980# include <assert.h>
3981#endif
3982 Syntax error
3983_ACEOF
3984if ac_fn_c_try_cpp "$LINENO"; then :
3985
3986else
3987 # Broken: fails on valid input.
3988continue
3989fi
3990rm -f conftest.err conftest.i conftest.$ac_ext
3991
3992 # OK, works on sane cases. Now check whether nonexistent headers
3993 # can be detected and how.
3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3995/* end confdefs.h. */
3996#include <ac_nonexistent.h>
3997_ACEOF
3998if ac_fn_c_try_cpp "$LINENO"; then :
3999 # Broken: success on invalid input.
4000continue
4001else
4002 # Passes both tests.
4003ac_preproc_ok=:
4004break
4005fi
4006rm -f conftest.err conftest.i conftest.$ac_ext
4007
4008done
4009# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4010rm -f conftest.i conftest.err conftest.$ac_ext
4011if $ac_preproc_ok; then :
4012
4013else
4014 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4015$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4016as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4017See \`config.log' for more details" "$LINENO" 5 ; }
4018fi
4019
4020ac_ext=c
4021ac_cpp='$CPP $CPPFLAGS'
4022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4024ac_compiler_gnu=$ac_cv_c_compiler_gnu
4025
4026
3539{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3540echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4028$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3541if test "${ac_cv_path_GREP+set}" = set; then 4029if test "${ac_cv_path_GREP+set}" = set; then :
3542 echo $ECHO_N "(cached) $ECHO_C" >&6 4030 $as_echo_n "(cached) " >&6
3543else 4031else
3544 # Extract the first word of "grep ggrep" to use in msg output
3545if test -z "$GREP"; then 4032 if test -z "$GREP"; then
3546set dummy grep ggrep; ac_prog_name=$2
3547if test "${ac_cv_path_GREP+set}" = set; then
3548 echo $ECHO_N "(cached) $ECHO_C" >&6
3549else
3550 ac_path_GREP_found=false 4033 ac_path_GREP_found=false
3551# Loop through the user's path and test for each of PROGNAME-LIST 4034 # Loop through the user's path and test for each of PROGNAME-LIST
3552as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4036for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3554do 4037do
3555 IFS=$as_save_IFS 4038 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=. 4039 test -z "$as_dir" && as_dir=.
3557 for ac_prog in grep ggrep; do 4040 for ac_prog in grep ggrep; do
3558 for ac_exec_ext in '' $ac_executable_extensions; do 4041 for ac_exec_ext in '' $ac_executable_extensions; do
3559 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4042 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3560 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4043 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3561 # Check for GNU ac_path_GREP and select it if it is found. 4044# Check for GNU ac_path_GREP and select it if it is found.
3562 # Check for GNU $ac_path_GREP 4045 # Check for GNU $ac_path_GREP
3563case `"$ac_path_GREP" --version 2>&1` in 4046case `"$ac_path_GREP" --version 2>&1` in
3564*GNU*) 4047*GNU*)
3565 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4048 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3566*) 4049*)
3567 ac_count=0 4050 ac_count=0
3568 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4051 $as_echo_n 0123456789 >"conftest.in"
3569 while : 4052 while :
3570 do 4053 do
3571 cat "conftest.in" "conftest.in" >"conftest.tmp" 4054 cat "conftest.in" "conftest.in" >"conftest.tmp"
3572 mv "conftest.tmp" "conftest.in" 4055 mv "conftest.tmp" "conftest.in"
3573 cp "conftest.in" "conftest.nl" 4056 cp "conftest.in" "conftest.nl"
3574 echo 'GREP' >> "conftest.nl" 4057 $as_echo 'GREP' >> "conftest.nl"
3575 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4058 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3576 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4059 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3577 ac_count=`expr $ac_count + 1` 4060 as_fn_arith $ac_count + 1 && ac_count=$as_val
3578 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4061 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3579 # Best one so far, save it but keep looking for a better one 4062 # Best one so far, save it but keep looking for a better one
3580 ac_cv_path_GREP="$ac_path_GREP" 4063 ac_cv_path_GREP="$ac_path_GREP"
3581 ac_path_GREP_max=$ac_count 4064 ac_path_GREP_max=$ac_count
3582 fi 4065 fi
3584 test $ac_count -gt 10 && break 4067 test $ac_count -gt 10 && break
3585 done 4068 done
3586 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4069 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3587esac 4070esac
3588 4071
3589
3590 $ac_path_GREP_found && break 3 4072 $ac_path_GREP_found && break 3
4073 done
3591 done 4074 done
3592done 4075 done
3593
3594done
3595IFS=$as_save_IFS 4076IFS=$as_save_IFS
3596
3597
3598fi
3599
3600GREP="$ac_cv_path_GREP"
3601if test -z "$GREP"; then 4077 if test -z "$ac_cv_path_GREP"; then
3602 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4078 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3603echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4079 fi
3604 { (exit 1); exit 1; }; }
3605fi
3606
3607else 4080else
3608 ac_cv_path_GREP=$GREP 4081 ac_cv_path_GREP=$GREP
3609fi 4082fi
3610 4083
3611
3612fi 4084fi
3613{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3614echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4086$as_echo "$ac_cv_path_GREP" >&6; }
3615 GREP="$ac_cv_path_GREP" 4087 GREP="$ac_cv_path_GREP"
3616 4088
3617 4089
3618{ echo "$as_me:$LINENO: checking for egrep" >&5 4090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3619echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4091$as_echo_n "checking for egrep... " >&6; }
3620if test "${ac_cv_path_EGREP+set}" = set; then 4092if test "${ac_cv_path_EGREP+set}" = set; then :
3621 echo $ECHO_N "(cached) $ECHO_C" >&6 4093 $as_echo_n "(cached) " >&6
3622else 4094else
3623 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4095 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3624 then ac_cv_path_EGREP="$GREP -E" 4096 then ac_cv_path_EGREP="$GREP -E"
3625 else 4097 else
3626 # Extract the first word of "egrep" to use in msg output
3627if test -z "$EGREP"; then 4098 if test -z "$EGREP"; then
3628set dummy egrep; ac_prog_name=$2
3629if test "${ac_cv_path_EGREP+set}" = set; then
3630 echo $ECHO_N "(cached) $ECHO_C" >&6
3631else
3632 ac_path_EGREP_found=false 4099 ac_path_EGREP_found=false
3633# Loop through the user's path and test for each of PROGNAME-LIST 4100 # Loop through the user's path and test for each of PROGNAME-LIST
3634as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3635for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4102for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3636do 4103do
3637 IFS=$as_save_IFS 4104 IFS=$as_save_IFS
3638 test -z "$as_dir" && as_dir=. 4105 test -z "$as_dir" && as_dir=.
3639 for ac_prog in egrep; do 4106 for ac_prog in egrep; do
3640 for ac_exec_ext in '' $ac_executable_extensions; do 4107 for ac_exec_ext in '' $ac_executable_extensions; do
3641 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4108 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3642 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4109 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3643 # Check for GNU ac_path_EGREP and select it if it is found. 4110# Check for GNU ac_path_EGREP and select it if it is found.
3644 # Check for GNU $ac_path_EGREP 4111 # Check for GNU $ac_path_EGREP
3645case `"$ac_path_EGREP" --version 2>&1` in 4112case `"$ac_path_EGREP" --version 2>&1` in
3646*GNU*) 4113*GNU*)
3647 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4114 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3648*) 4115*)
3649 ac_count=0 4116 ac_count=0
3650 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4117 $as_echo_n 0123456789 >"conftest.in"
3651 while : 4118 while :
3652 do 4119 do
3653 cat "conftest.in" "conftest.in" >"conftest.tmp" 4120 cat "conftest.in" "conftest.in" >"conftest.tmp"
3654 mv "conftest.tmp" "conftest.in" 4121 mv "conftest.tmp" "conftest.in"
3655 cp "conftest.in" "conftest.nl" 4122 cp "conftest.in" "conftest.nl"
3656 echo 'EGREP' >> "conftest.nl" 4123 $as_echo 'EGREP' >> "conftest.nl"
3657 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4124 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3658 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4125 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3659 ac_count=`expr $ac_count + 1` 4126 as_fn_arith $ac_count + 1 && ac_count=$as_val
3660 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4127 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3661 # Best one so far, save it but keep looking for a better one 4128 # Best one so far, save it but keep looking for a better one
3662 ac_cv_path_EGREP="$ac_path_EGREP" 4129 ac_cv_path_EGREP="$ac_path_EGREP"
3663 ac_path_EGREP_max=$ac_count 4130 ac_path_EGREP_max=$ac_count
3664 fi 4131 fi
3666 test $ac_count -gt 10 && break 4133 test $ac_count -gt 10 && break
3667 done 4134 done
3668 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4135 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3669esac 4136esac
3670 4137
3671
3672 $ac_path_EGREP_found && break 3 4138 $ac_path_EGREP_found && break 3
4139 done
3673 done 4140 done
4141 done
4142IFS=$as_save_IFS
4143 if test -z "$ac_cv_path_EGREP"; then
4144 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4145 fi
4146else
4147 ac_cv_path_EGREP=$EGREP
4148fi
4149
4150 fi
4151fi
4152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4153$as_echo "$ac_cv_path_EGREP" >&6; }
4154 EGREP="$ac_cv_path_EGREP"
4155
4156
4157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4158$as_echo_n "checking for ANSI C header files... " >&6; }
4159if test "${ac_cv_header_stdc+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161else
4162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4163/* end confdefs.h. */
4164#include <stdlib.h>
4165#include <stdarg.h>
4166#include <string.h>
4167#include <float.h>
4168
4169int
4170main ()
4171{
4172
4173 ;
4174 return 0;
4175}
4176_ACEOF
4177if ac_fn_c_try_compile "$LINENO"; then :
4178 ac_cv_header_stdc=yes
4179else
4180 ac_cv_header_stdc=no
4181fi
4182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183
4184if test $ac_cv_header_stdc = yes; then
4185 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4187/* end confdefs.h. */
4188#include <string.h>
4189
4190_ACEOF
4191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4192 $EGREP "memchr" >/dev/null 2>&1; then :
4193
4194else
4195 ac_cv_header_stdc=no
4196fi
4197rm -f conftest*
4198
4199fi
4200
4201if test $ac_cv_header_stdc = yes; then
4202 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4204/* end confdefs.h. */
4205#include <stdlib.h>
4206
4207_ACEOF
4208if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4209 $EGREP "free" >/dev/null 2>&1; then :
4210
4211else
4212 ac_cv_header_stdc=no
4213fi
4214rm -f conftest*
4215
4216fi
4217
4218if test $ac_cv_header_stdc = yes; then
4219 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4220 if test "$cross_compiling" = yes; then :
4221 :
4222else
4223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224/* end confdefs.h. */
4225#include <ctype.h>
4226#include <stdlib.h>
4227#if ((' ' & 0x0FF) == 0x020)
4228# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4229# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4230#else
4231# define ISLOWER(c) \
4232 (('a' <= (c) && (c) <= 'i') \
4233 || ('j' <= (c) && (c) <= 'r') \
4234 || ('s' <= (c) && (c) <= 'z'))
4235# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4236#endif
4237
4238#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4239int
4240main ()
4241{
4242 int i;
4243 for (i = 0; i < 256; i++)
4244 if (XOR (islower (i), ISLOWER (i))
4245 || toupper (i) != TOUPPER (i))
4246 return 2;
4247 return 0;
4248}
4249_ACEOF
4250if ac_fn_c_try_run "$LINENO"; then :
4251
4252else
4253 ac_cv_header_stdc=no
4254fi
4255rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4256 conftest.$ac_objext conftest.beam conftest.$ac_ext
4257fi
4258
4259fi
4260fi
4261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4262$as_echo "$ac_cv_header_stdc" >&6; }
4263if test $ac_cv_header_stdc = yes; then
4264
4265$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4266
4267fi
4268
4269# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4270for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4271 inttypes.h stdint.h unistd.h
4272do :
4273 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4274ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4275"
4276if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4277 cat >>confdefs.h <<_ACEOF
4278#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4279_ACEOF
4280
4281fi
4282
3674done 4283done
3675 4284
3676done
3677IFS=$as_save_IFS
3678 4285
3679 4286
3680fi 4287 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3681 4288if test "x$ac_cv_header_minix_config_h" = x""yes; then :
3682EGREP="$ac_cv_path_EGREP" 4289 MINIX=yes
3683if test -z "$EGREP"; then
3684 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3685echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3686 { (exit 1); exit 1; }; }
3687fi
3688
3689else 4290else
3690 ac_cv_path_EGREP=$EGREP 4291 MINIX=
3691fi 4292fi
3692 4293
3693 4294
4295 if test "$MINIX" = yes; then
4296
4297$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4298
4299
4300$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4301
4302
4303$as_echo "#define _MINIX 1" >>confdefs.h
4304
3694 fi 4305 fi
3695fi
3696{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3697echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3698 EGREP="$ac_cv_path_EGREP"
3699 4306
3700 4307
3701 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3702{ echo "$as_me:$LINENO: checking for AIX" >&5 4309$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3703echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } 4310if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
3704cat >conftest.$ac_ext <<_ACEOF 4311 $as_echo_n "(cached) " >&6
3705/* confdefs.h. */ 4312else
3706_ACEOF
3707cat confdefs.h >>conftest.$ac_ext 4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708cat >>conftest.$ac_ext <<_ACEOF
3709/* end confdefs.h. */ 4314/* end confdefs.h. */
3710#ifdef _AIX
3711 yes
3712#endif
3713 4315
3714_ACEOF 4316# define __EXTENSIONS__ 1
3715if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4317 $ac_includes_default
3716 $EGREP "yes" >/dev/null 2>&1; then 4318int
3717 { echo "$as_me:$LINENO: result: yes" >&5 4319main ()
3718echo "${ECHO_T}yes" >&6; } 4320{
3719cat >>confdefs.h <<\_ACEOF
3720#define _ALL_SOURCE 1
3721_ACEOF
3722 4321
4322 ;
4323 return 0;
4324}
4325_ACEOF
4326if ac_fn_c_try_compile "$LINENO"; then :
4327 ac_cv_safe_to_define___extensions__=yes
3723else 4328else
3724 { echo "$as_me:$LINENO: result: no" >&5 4329 ac_cv_safe_to_define___extensions__=no
3725echo "${ECHO_T}no" >&6; }
3726fi 4330fi
3727rm -f conftest* 4331rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332fi
4333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4334$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4335 test $ac_cv_safe_to_define___extensions__ = yes &&
4336 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3728 4337
4338 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3729 4339
4340 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4341
4342 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4343
4344 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4345
4346
4347
4348
3730{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3731echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 4350$as_echo_n "checking for library containing strerror... " >&6; }
3732if test "${ac_cv_search_strerror+set}" = set; then 4351if test "${ac_cv_search_strerror+set}" = set; then :
3733 echo $ECHO_N "(cached) $ECHO_C" >&6 4352 $as_echo_n "(cached) " >&6
3734else 4353else
3735 ac_func_search_save_LIBS=$LIBS 4354 ac_func_search_save_LIBS=$LIBS
3736cat >conftest.$ac_ext <<_ACEOF
3737/* confdefs.h. */
3738_ACEOF
3739cat confdefs.h >>conftest.$ac_ext 4355cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740cat >>conftest.$ac_ext <<_ACEOF
3741/* end confdefs.h. */ 4356/* end confdefs.h. */
3742 4357
3743/* Override any GCC internal prototype to avoid an error. 4358/* Override any GCC internal prototype to avoid an error.
3744 Use char because int might match the return type of a GCC 4359 Use char because int might match the return type of a GCC
3745 builtin and then its argument prototype would still apply. */ 4360 builtin and then its argument prototype would still apply. */
3760 ac_res="none required" 4375 ac_res="none required"
3761 else 4376 else
3762 ac_res=-l$ac_lib 4377 ac_res=-l$ac_lib
3763 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4378 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3764 fi 4379 fi
3765 rm -f conftest.$ac_objext conftest$ac_exeext 4380 if ac_fn_c_try_link "$LINENO"; then :
3766if { (ac_try="$ac_link"
3767case "(($ac_try" in
3768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3769 *) ac_try_echo=$ac_try;;
3770esac
3771eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3772 (eval "$ac_link") 2>conftest.er1
3773 ac_status=$?
3774 grep -v '^ *+' conftest.er1 >conftest.err
3775 rm -f conftest.er1
3776 cat conftest.err >&5
3777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3778 (exit $ac_status); } && {
3779 test -z "$ac_c_werror_flag" ||
3780 test ! -s conftest.err
3781 } && test -s conftest$ac_exeext &&
3782 $as_test_x conftest$ac_exeext; then
3783 ac_cv_search_strerror=$ac_res 4381 ac_cv_search_strerror=$ac_res
3784else
3785 echo "$as_me: failed program was:" >&5
3786sed 's/^/| /' conftest.$ac_ext >&5
3787
3788
3789fi 4382fi
3790
3791rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4383rm -f core conftest.err conftest.$ac_objext \
3792 conftest$ac_exeext 4384 conftest$ac_exeext
3793 if test "${ac_cv_search_strerror+set}" = set; then 4385 if test "${ac_cv_search_strerror+set}" = set; then :
3794 break 4386 break
3795fi 4387fi
3796done 4388done
3797if test "${ac_cv_search_strerror+set}" = set; then 4389if test "${ac_cv_search_strerror+set}" = set; then :
3798 : 4390
3799else 4391else
3800 ac_cv_search_strerror=no 4392 ac_cv_search_strerror=no
3801fi 4393fi
3802rm conftest.$ac_ext 4394rm conftest.$ac_ext
3803LIBS=$ac_func_search_save_LIBS 4395LIBS=$ac_func_search_save_LIBS
3804fi 4396fi
3805{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 4397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3806echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 4398$as_echo "$ac_cv_search_strerror" >&6; }
3807ac_res=$ac_cv_search_strerror 4399ac_res=$ac_cv_search_strerror
3808if test "$ac_res" != no; then 4400if test "$ac_res" != no; then :
3809 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3810 4402
3811fi 4403fi
3812 4404
3813ac_ext=cpp 4405ac_ext=cpp
3815ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3816ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3817ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3818 4410
3819 4411
4412LINKER="$CXX"
3820if test x$GCC = xyes && test x$GXX = xyes; then 4413if test x$GCC = xyes && test x$GXX = xyes; then
3821 { echo "$as_me:$LINENO: checking for working libsupc++" >&5 4414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
3822echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6; } 4415$as_echo_n "checking for working libsupc++... " >&6; }
3823 save_CXX="$CXX" 4416 save_CXX="$CXX"
3824 save_LIBS="$LIBS" 4417 save_LIBS="$LIBS"
3825 CXX="$CC" 4418 CXX="$CC"
3826 LIBS="$LIBS -lsupc++" 4419 LIBS="$LIBS -lsupc++"
3827 LINKER="$CC"
3828 4420
3829cat >conftest.$ac_ext <<_ACEOF
3830/* confdefs.h. */
3831_ACEOF
3832cat confdefs.h >>conftest.$ac_ext 4421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833cat >>conftest.$ac_ext <<_ACEOF
3834/* end confdefs.h. */ 4422/* end confdefs.h. */
3835struct test { }; void f() try { throw new test; } catch (...) { throw; } 4423struct test { }; void f() try { throw new test; } catch (...) { throw; }
3836int 4424int
3837main () 4425main ()
3838{ 4426{
3839 4427
3840 ; 4428 ;
3841 return 0; 4429 return 0;
3842} 4430}
3843_ACEOF 4431_ACEOF
3844rm -f conftest.$ac_objext conftest$ac_exeext 4432if ac_fn_cxx_try_link "$LINENO"; then :
3845if { (ac_try="$ac_link"
3846case "(($ac_try" in
3847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3848 *) ac_try_echo=$ac_try;;
3849esac
3850eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3851 (eval "$ac_link") 2>conftest.er1
3852 ac_status=$?
3853 grep -v '^ *+' conftest.er1 >conftest.err
3854 rm -f conftest.er1
3855 cat conftest.err >&5
3856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3857 (exit $ac_status); } && {
3858 test -z "$ac_cxx_werror_flag" ||
3859 test ! -s conftest.err
3860 } && test -s conftest$ac_exeext &&
3861 $as_test_x conftest$ac_exeext; then
3862 { echo "$as_me:$LINENO: result: ok" >&5 4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
3863echo "${ECHO_T}ok" >&6; } 4434$as_echo "ok" >&6; }
4435 LINKER="$CC"
3864else 4436else
3865 echo "$as_me: failed program was:" >&5
3866sed 's/^/| /' conftest.$ac_ext >&5
3867 4437
3868
3869 { echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
3870echo "${ECHO_T}no, making everything bigger and slower" >&6; } 4439$as_echo "no, making everything bigger and slower" >&6; }
3871 LIBS="$save_LIBS" 4440 LIBS="$save_LIBS"
3872 LINKER="$save_CXX"
3873 4441
3874 4442
3875fi 4443fi
3876
3877rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4444rm -f core conftest.err conftest.$ac_objext \
3878 conftest$ac_exeext conftest.$ac_ext 4445 conftest$ac_exeext conftest.$ac_ext
3879 CXX="$save_CXX" 4446 CXX="$save_CXX"
3880fi 4447fi
3881LINKER=$LINKER 4448LINKER=$LINKER
3882 4449
3883 4450
3884if test -z "$orig_CXXFLAGS"; then 4451if test -z "$orig_CXXFLAGS"; then
3885 if test x$GCC = xyes && test "x$GXX" = xyes; then 4452 if test x$GCC = xyes && test "x$GXX" = xyes; then
3886 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 4453 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
3887 cat >conftest.$ac_ext <<_ACEOF
3888/* confdefs.h. */
3889_ACEOF
3890cat confdefs.h >>conftest.$ac_ext 4454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3891cat >>conftest.$ac_ext <<_ACEOF
3892/* end confdefs.h. */ 4455/* end confdefs.h. */
3893 4456
3894int 4457int
3895main () 4458main ()
3896{ 4459{
3897 4460
3898 ; 4461 ;
3899 return 0; 4462 return 0;
3900} 4463}
3901_ACEOF 4464_ACEOF
3902rm -f conftest.$ac_objext 4465if ac_fn_cxx_try_compile "$LINENO"; then :
3903if { (ac_try="$ac_compile"
3904case "(($ac_try" in
3905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3906 *) ac_try_echo=$ac_try;;
3907esac
3908eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3909 (eval "$ac_compile") 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_cxx_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest.$ac_objext; then
3919 :
3920else
3921 echo "$as_me: failed program was:" >&5
3922sed 's/^/| /' conftest.$ac_ext >&5
3923 4466
4467else
3924 CXXFLAGS="-g -O3" 4468 CXXFLAGS="-g -O3"
3925fi 4469fi
3926
3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4470rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928 else 4471 else
3929 CXXFLAGS="-O" 4472 CXXFLAGS="-O"
3930 fi 4473 fi
3931 CFLAGS="$CXXFLAGS" 4474 CFLAGS="$CXXFLAGS"
3932fi 4475fi
3933 4476
3934 4477{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
3935cat >>confdefs.h <<\_ACEOF 4478$as_echo_n "checking for library containing setlocale... " >&6; }
3936#define _GNU_SOURCE 1
3937_ACEOF
3938
3939
3940case $host in
3941 *-*-solaris* )
3942
3943cat >>confdefs.h <<\_ACEOF
3944#define _XOPEN_SOURCE_EXTENDED 1
3945_ACEOF
3946
3947
3948cat >>confdefs.h <<\_ACEOF
3949#define _XOPEN_SOURCE 2
3950_ACEOF
3951
3952
3953cat >>confdefs.h <<\_ACEOF
3954#define __EXTENSIONS__ 1
3955_ACEOF
3956
3957 ;;
3958esac
3959
3960
3961{ echo "$as_me:$LINENO: checking for setlocale" >&5
3962echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; }
3963if test "${ac_cv_func_setlocale+set}" = set; then 4479if test "${ac_cv_search_setlocale+set}" = set; then :
3964 echo $ECHO_N "(cached) $ECHO_C" >&6 4480 $as_echo_n "(cached) " >&6
3965else
3966 cat >conftest.$ac_ext <<_ACEOF
3967/* confdefs.h. */
3968_ACEOF
3969cat confdefs.h >>conftest.$ac_ext
3970cat >>conftest.$ac_ext <<_ACEOF
3971/* end confdefs.h. */
3972/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3974#define setlocale innocuous_setlocale
3975
3976/* System header to define __stub macros and hopefully few prototypes,
3977 which can conflict with char setlocale (); below.
3978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3979 <limits.h> exists even on freestanding compilers. */
3980
3981#ifdef __STDC__
3982# include <limits.h>
3983#else 4481else
3984# include <assert.h> 4482 ac_func_search_save_LIBS=$LIBS
3985#endif
3986
3987#undef setlocale
3988
3989/* Override any GCC internal prototype to avoid an error.
3990 Use char because int might match the return type of a GCC
3991 builtin and then its argument prototype would still apply. */
3992#ifdef __cplusplus
3993extern "C"
3994#endif
3995char setlocale ();
3996/* The GNU C library defines this for functions which it implements
3997 to always fail with ENOSYS. Some functions are actually named
3998 something starting with __ and the normal name is an alias. */
3999#if defined __stub_setlocale || defined __stub___setlocale
4000choke me
4001#endif
4002
4003int
4004main ()
4005{
4006return setlocale ();
4007 ;
4008 return 0;
4009}
4010_ACEOF
4011rm -f conftest.$ac_objext conftest$ac_exeext
4012if { (ac_try="$ac_link"
4013case "(($ac_try" in
4014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4015 *) ac_try_echo=$ac_try;;
4016esac
4017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4018 (eval "$ac_link") 2>conftest.er1
4019 ac_status=$?
4020 grep -v '^ *+' conftest.er1 >conftest.err
4021 rm -f conftest.er1
4022 cat conftest.err >&5
4023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4024 (exit $ac_status); } && {
4025 test -z "$ac_cxx_werror_flag" ||
4026 test ! -s conftest.err
4027 } && test -s conftest$ac_exeext &&
4028 $as_test_x conftest$ac_exeext; then
4029 ac_cv_func_setlocale=yes
4030else
4031 echo "$as_me: failed program was:" >&5
4032sed 's/^/| /' conftest.$ac_ext >&5
4033
4034 ac_cv_func_setlocale=no
4035fi
4036
4037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4038 conftest$ac_exeext conftest.$ac_ext
4039fi
4040{ echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
4041echo "${ECHO_T}$ac_cv_func_setlocale" >&6; }
4042if test $ac_cv_func_setlocale = yes; then
4043 :
4044else
4045 { echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4046echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; }
4047if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049else
4050 ac_check_lib_save_LIBS=$LIBS
4051LIBS="-lxpg4 $LIBS"
4052cat >conftest.$ac_ext <<_ACEOF
4053/* confdefs.h. */
4054_ACEOF
4055cat confdefs.h >>conftest.$ac_ext 4483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056cat >>conftest.$ac_ext <<_ACEOF
4057/* end confdefs.h. */ 4484/* end confdefs.h. */
4058 4485
4059/* Override any GCC internal prototype to avoid an error. 4486/* Override any GCC internal prototype to avoid an error.
4060 Use char because int might match the return type of a GCC 4487 Use char because int might match the return type of a GCC
4061 builtin and then its argument prototype would still apply. */ 4488 builtin and then its argument prototype would still apply. */
4069return setlocale (); 4496return setlocale ();
4070 ; 4497 ;
4071 return 0; 4498 return 0;
4072} 4499}
4073_ACEOF 4500_ACEOF
4074rm -f conftest.$ac_objext conftest$ac_exeext 4501for ac_lib in '' xpg4; do
4075if { (ac_try="$ac_link" 4502 if test -z "$ac_lib"; then
4076case "(($ac_try" in 4503 ac_res="none required"
4077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4078 *) ac_try_echo=$ac_try;;
4079esac
4080eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4081 (eval "$ac_link") 2>conftest.er1
4082 ac_status=$?
4083 grep -v '^ *+' conftest.er1 >conftest.err
4084 rm -f conftest.er1
4085 cat conftest.err >&5
4086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4087 (exit $ac_status); } && {
4088 test -z "$ac_cxx_werror_flag" ||
4089 test ! -s conftest.err
4090 } && test -s conftest$ac_exeext &&
4091 $as_test_x conftest$ac_exeext; then
4092 ac_cv_lib_xpg4_setlocale=yes
4093else 4504 else
4094 echo "$as_me: failed program was:" >&5 4505 ac_res=-l$ac_lib
4095sed 's/^/| /' conftest.$ac_ext >&5 4506 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4096 4507 fi
4097 ac_cv_lib_xpg4_setlocale=no 4508 if ac_fn_cxx_try_link "$LINENO"; then :
4509 ac_cv_search_setlocale=$ac_res
4098fi 4510fi
4099
4100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4511rm -f core conftest.err conftest.$ac_objext \
4101 conftest$ac_exeext conftest.$ac_ext 4512 conftest$ac_exeext
4102LIBS=$ac_check_lib_save_LIBS 4513 if test "${ac_cv_search_setlocale+set}" = set; then :
4514 break
4103fi 4515fi
4516done
4517if test "${ac_cv_search_setlocale+set}" = set; then :
4518
4519else
4520 ac_cv_search_setlocale=no
4521fi
4522rm conftest.$ac_ext
4523LIBS=$ac_func_search_save_LIBS
4524fi
4104{ echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 4525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4105echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; } 4526$as_echo "$ac_cv_search_setlocale" >&6; }
4106if test $ac_cv_lib_xpg4_setlocale = yes; then 4527ac_res=$ac_cv_search_setlocale
4107 LIBS="$LIBS -lxpg4" 4528if test "$ac_res" != no; then :
4108fi 4529 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4109 4530
4110fi 4531fi
4111 4532
4112 4533
4113{ echo "$as_me:$LINENO: checking for gethostbyname" >&5 4534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4114echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } 4535$as_echo_n "checking for library containing gethostbyname... " >&6; }
4115if test "${ac_cv_func_gethostbyname+set}" = set; then 4536if test "${ac_cv_search_gethostbyname+set}" = set; then :
4116 echo $ECHO_N "(cached) $ECHO_C" >&6 4537 $as_echo_n "(cached) " >&6
4117else
4118 cat >conftest.$ac_ext <<_ACEOF
4119/* confdefs.h. */
4120_ACEOF
4121cat confdefs.h >>conftest.$ac_ext
4122cat >>conftest.$ac_ext <<_ACEOF
4123/* end confdefs.h. */
4124/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4125 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4126#define gethostbyname innocuous_gethostbyname
4127
4128/* System header to define __stub macros and hopefully few prototypes,
4129 which can conflict with char gethostbyname (); below.
4130 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4131 <limits.h> exists even on freestanding compilers. */
4132
4133#ifdef __STDC__
4134# include <limits.h>
4135#else 4538else
4136# include <assert.h> 4539 ac_func_search_save_LIBS=$LIBS
4137#endif
4138
4139#undef gethostbyname
4140
4141/* Override any GCC internal prototype to avoid an error.
4142 Use char because int might match the return type of a GCC
4143 builtin and then its argument prototype would still apply. */
4144#ifdef __cplusplus
4145extern "C"
4146#endif
4147char gethostbyname ();
4148/* The GNU C library defines this for functions which it implements
4149 to always fail with ENOSYS. Some functions are actually named
4150 something starting with __ and the normal name is an alias. */
4151#if defined __stub_gethostbyname || defined __stub___gethostbyname
4152choke me
4153#endif
4154
4155int
4156main ()
4157{
4158return gethostbyname ();
4159 ;
4160 return 0;
4161}
4162_ACEOF
4163rm -f conftest.$ac_objext conftest$ac_exeext
4164if { (ac_try="$ac_link"
4165case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168esac
4169eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_link") 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } && {
4177 test -z "$ac_cxx_werror_flag" ||
4178 test ! -s conftest.err
4179 } && test -s conftest$ac_exeext &&
4180 $as_test_x conftest$ac_exeext; then
4181 ac_cv_func_gethostbyname=yes
4182else
4183 echo "$as_me: failed program was:" >&5
4184sed 's/^/| /' conftest.$ac_ext >&5
4185
4186 ac_cv_func_gethostbyname=no
4187fi
4188
4189rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4190 conftest$ac_exeext conftest.$ac_ext
4191fi
4192{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
4193echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
4194if test $ac_cv_func_gethostbyname = yes; then
4195 :
4196else
4197 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
4198echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4199if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201else
4202 ac_check_lib_save_LIBS=$LIBS
4203LIBS="-lnsl $LIBS"
4204cat >conftest.$ac_ext <<_ACEOF
4205/* confdefs.h. */
4206_ACEOF
4207cat confdefs.h >>conftest.$ac_ext 4540cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4208cat >>conftest.$ac_ext <<_ACEOF
4209/* end confdefs.h. */ 4541/* end confdefs.h. */
4210 4542
4211/* Override any GCC internal prototype to avoid an error. 4543/* Override any GCC internal prototype to avoid an error.
4212 Use char because int might match the return type of a GCC 4544 Use char because int might match the return type of a GCC
4213 builtin and then its argument prototype would still apply. */ 4545 builtin and then its argument prototype would still apply. */
4221return gethostbyname (); 4553return gethostbyname ();
4222 ; 4554 ;
4223 return 0; 4555 return 0;
4224} 4556}
4225_ACEOF 4557_ACEOF
4226rm -f conftest.$ac_objext conftest$ac_exeext 4558for ac_lib in '' nsl; do
4227if { (ac_try="$ac_link" 4559 if test -z "$ac_lib"; then
4228case "(($ac_try" in 4560 ac_res="none required"
4229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4230 *) ac_try_echo=$ac_try;;
4231esac
4232eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4233 (eval "$ac_link") 2>conftest.er1
4234 ac_status=$?
4235 grep -v '^ *+' conftest.er1 >conftest.err
4236 rm -f conftest.er1
4237 cat conftest.err >&5
4238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4239 (exit $ac_status); } && {
4240 test -z "$ac_cxx_werror_flag" ||
4241 test ! -s conftest.err
4242 } && test -s conftest$ac_exeext &&
4243 $as_test_x conftest$ac_exeext; then
4244 ac_cv_lib_nsl_gethostbyname=yes
4245else 4561 else
4246 echo "$as_me: failed program was:" >&5 4562 ac_res=-l$ac_lib
4247sed 's/^/| /' conftest.$ac_ext >&5 4563 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4248 4564 fi
4249 ac_cv_lib_nsl_gethostbyname=no 4565 if ac_fn_cxx_try_link "$LINENO"; then :
4566 ac_cv_search_gethostbyname=$ac_res
4250fi 4567fi
4251
4252rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4568rm -f core conftest.err conftest.$ac_objext \
4253 conftest$ac_exeext conftest.$ac_ext 4569 conftest$ac_exeext
4254LIBS=$ac_check_lib_save_LIBS 4570 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4571 break
4255fi 4572fi
4573done
4574if test "${ac_cv_search_gethostbyname+set}" = set; then :
4575
4576else
4577 ac_cv_search_gethostbyname=no
4578fi
4579rm conftest.$ac_ext
4580LIBS=$ac_func_search_save_LIBS
4581fi
4256{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4257echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 4583$as_echo "$ac_cv_search_gethostbyname" >&6; }
4258if test $ac_cv_lib_nsl_gethostbyname = yes; then 4584ac_res=$ac_cv_search_gethostbyname
4259 LIBS="$LIBS -lnsl" 4585if test "$ac_res" != no; then :
4260fi 4586 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4261 4587
4262fi 4588fi
4263 4589
4264{ echo "$as_me:$LINENO: checking for socket" >&5 4590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4265echo $ECHO_N "checking for socket... $ECHO_C" >&6; } 4591$as_echo_n "checking for library containing socket... " >&6; }
4266if test "${ac_cv_func_socket+set}" = set; then 4592if test "${ac_cv_search_socket+set}" = set; then :
4267 echo $ECHO_N "(cached) $ECHO_C" >&6 4593 $as_echo_n "(cached) " >&6
4268else
4269 cat >conftest.$ac_ext <<_ACEOF
4270/* confdefs.h. */
4271_ACEOF
4272cat confdefs.h >>conftest.$ac_ext
4273cat >>conftest.$ac_ext <<_ACEOF
4274/* end confdefs.h. */
4275/* Define socket to an innocuous variant, in case <limits.h> declares socket.
4276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4277#define socket innocuous_socket
4278
4279/* System header to define __stub macros and hopefully few prototypes,
4280 which can conflict with char socket (); below.
4281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4282 <limits.h> exists even on freestanding compilers. */
4283
4284#ifdef __STDC__
4285# include <limits.h>
4286#else 4594else
4287# include <assert.h> 4595 ac_func_search_save_LIBS=$LIBS
4288#endif
4289
4290#undef socket
4291
4292/* Override any GCC internal prototype to avoid an error.
4293 Use char because int might match the return type of a GCC
4294 builtin and then its argument prototype would still apply. */
4295#ifdef __cplusplus
4296extern "C"
4297#endif
4298char socket ();
4299/* The GNU C library defines this for functions which it implements
4300 to always fail with ENOSYS. Some functions are actually named
4301 something starting with __ and the normal name is an alias. */
4302#if defined __stub_socket || defined __stub___socket
4303choke me
4304#endif
4305
4306int
4307main ()
4308{
4309return socket ();
4310 ;
4311 return 0;
4312}
4313_ACEOF
4314rm -f conftest.$ac_objext conftest$ac_exeext
4315if { (ac_try="$ac_link"
4316case "(($ac_try" in
4317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4318 *) ac_try_echo=$ac_try;;
4319esac
4320eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4321 (eval "$ac_link") 2>conftest.er1
4322 ac_status=$?
4323 grep -v '^ *+' conftest.er1 >conftest.err
4324 rm -f conftest.er1
4325 cat conftest.err >&5
4326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4327 (exit $ac_status); } && {
4328 test -z "$ac_cxx_werror_flag" ||
4329 test ! -s conftest.err
4330 } && test -s conftest$ac_exeext &&
4331 $as_test_x conftest$ac_exeext; then
4332 ac_cv_func_socket=yes
4333else
4334 echo "$as_me: failed program was:" >&5
4335sed 's/^/| /' conftest.$ac_ext >&5
4336
4337 ac_cv_func_socket=no
4338fi
4339
4340rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4341 conftest$ac_exeext conftest.$ac_ext
4342fi
4343{ echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4344echo "${ECHO_T}$ac_cv_func_socket" >&6; }
4345if test $ac_cv_func_socket = yes; then
4346 :
4347else
4348 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4349echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4350if test "${ac_cv_lib_socket_socket+set}" = set; then
4351 echo $ECHO_N "(cached) $ECHO_C" >&6
4352else
4353 ac_check_lib_save_LIBS=$LIBS
4354LIBS="-lsocket $LIBS"
4355cat >conftest.$ac_ext <<_ACEOF
4356/* confdefs.h. */
4357_ACEOF
4358cat confdefs.h >>conftest.$ac_ext 4596cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4359cat >>conftest.$ac_ext <<_ACEOF
4360/* end confdefs.h. */ 4597/* end confdefs.h. */
4361 4598
4362/* Override any GCC internal prototype to avoid an error. 4599/* Override any GCC internal prototype to avoid an error.
4363 Use char because int might match the return type of a GCC 4600 Use char because int might match the return type of a GCC
4364 builtin and then its argument prototype would still apply. */ 4601 builtin and then its argument prototype would still apply. */
4372return socket (); 4609return socket ();
4373 ; 4610 ;
4374 return 0; 4611 return 0;
4375} 4612}
4376_ACEOF 4613_ACEOF
4377rm -f conftest.$ac_objext conftest$ac_exeext 4614for ac_lib in '' socket; do
4378if { (ac_try="$ac_link" 4615 if test -z "$ac_lib"; then
4379case "(($ac_try" in 4616 ac_res="none required"
4380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4381 *) ac_try_echo=$ac_try;;
4382esac
4383eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4384 (eval "$ac_link") 2>conftest.er1
4385 ac_status=$?
4386 grep -v '^ *+' conftest.er1 >conftest.err
4387 rm -f conftest.er1
4388 cat conftest.err >&5
4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4390 (exit $ac_status); } && {
4391 test -z "$ac_cxx_werror_flag" ||
4392 test ! -s conftest.err
4393 } && test -s conftest$ac_exeext &&
4394 $as_test_x conftest$ac_exeext; then
4395 ac_cv_lib_socket_socket=yes
4396else 4617 else
4397 echo "$as_me: failed program was:" >&5 4618 ac_res=-l$ac_lib
4398sed 's/^/| /' conftest.$ac_ext >&5 4619 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4399 4620 fi
4400 ac_cv_lib_socket_socket=no 4621 if ac_fn_cxx_try_link "$LINENO"; then :
4622 ac_cv_search_socket=$ac_res
4401fi 4623fi
4402
4403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4624rm -f core conftest.err conftest.$ac_objext \
4404 conftest$ac_exeext conftest.$ac_ext 4625 conftest$ac_exeext
4405LIBS=$ac_check_lib_save_LIBS 4626 if test "${ac_cv_search_socket+set}" = set; then :
4627 break
4406fi 4628fi
4629done
4630if test "${ac_cv_search_socket+set}" = set; then :
4631
4632else
4633 ac_cv_search_socket=no
4634fi
4635rm conftest.$ac_ext
4636LIBS=$ac_func_search_save_LIBS
4637fi
4407{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 4638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4408echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 4639$as_echo "$ac_cv_search_socket" >&6; }
4409if test $ac_cv_lib_socket_socket = yes; then 4640ac_res=$ac_cv_search_socket
4410 LIBS="$LIBS -lsocket" 4641if test "$ac_res" != no; then :
4411fi 4642 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4412 4643
4413fi 4644fi
4414
4415 4645
4416 4646
4417support_frills=yes 4647support_frills=yes
4418support_inheritpixmap=yes 4648support_inheritpixmap=yes
4419support_tinting=yes
4420support_fading=yes 4649support_fading=yes
4421support_keepscrolling=yes 4650support_keepscrolling=yes
4422support_selectionscrolling=yes 4651support_selectionscrolling=yes
4423support_mousewheel=yes 4652support_mousewheel=yes
4424support_mouseslipwheel=yes 4653support_mouseslipwheel=yes
4425support_text_blink=yes 4654support_text_blink=yes
4426support_pointer_blank=yes 4655support_pointer_blank=yes
4427support_scroll_rxvt=yes 4656support_scroll_rxvt=yes
4428support_scroll_next=yes 4657support_scroll_next=yes
4429support_scroll_xterm=yes 4658support_scroll_xterm=yes
4430support_scroll_plain=yes
4431support_xim=yes 4659support_xim=yes
4432support_xpm=yes 4660support_pixbuf=yes
4661support_startup_notification=yes
4433support_xft=yes 4662support_xft=yes
4434support_unicode3=no 4663support_unicode3=no
4435support_combining=yes 4664support_combining=yes
4436support_8bitctrls=no 4665support_8bitctrls=no
4437support_iso14755=yes 4666support_iso14755=yes
4438support_styles=yes 4667support_styles=yes
4439support_perl=yes 4668support_perl=yes
4669support_xdbe=yes
4440codesets=all 4670codesets=all
4441 4671
4442 4672
4443if test "x$enable_shared" = xyes; then
4444
4445cat >>confdefs.h <<\_ACEOF
4446#define LIBRXVT 1
4447_ACEOF
4448
4449 INSTALL_LIBRXVT=yes
4450fi
4451
4452
4453# Check whether --enable-everything was given. 4673# Check whether --enable-everything was given.
4454if test "${enable_everything+set}" = set; then 4674if test "${enable_everything+set}" = set; then :
4455 enableval=$enable_everything; 4675 enableval=$enable_everything;
4456 if test x$enableval = xno; then 4676 if test x$enableval = xno; then
4457 support_frills=no 4677 support_frills=no
4678 support_xdbe=no
4458 support_inheritpixmap=no 4679 support_inheritpixmap=no
4459 support_tinting=no
4460 support_fading=no 4680 support_fading=no
4461 support_keepscrolling=no 4681 support_keepscrolling=no
4462 support_selectionscrolling=no 4682 support_selectionscrolling=no
4463 support_lastlog=no 4683 support_lastlog=no
4464 support_mousewheel=no 4684 support_mousewheel=no
4466 support_text_blink=no 4686 support_text_blink=no
4467 support_pointer_blank=no 4687 support_pointer_blank=no
4468 support_scroll_rxvt=no 4688 support_scroll_rxvt=no
4469 support_scroll_next=no 4689 support_scroll_next=no
4470 support_scroll_xterm=no 4690 support_scroll_xterm=no
4471 support_scroll_plain=no
4472 support_utmp=no 4691 support_utmp=no
4473 support_wtmp=no 4692 support_wtmp=no
4474 support_xim=no 4693 support_xim=no
4475 support_xpm=no 4694 support_pixbuf=no
4695 support_startup_notification=no
4476 support_xft=no 4696 support_xft=no
4477 support_unicode3=no 4697 support_unicode3=no
4478 support_combining=no 4698 support_combining=no
4479 support_8bitctrls=no 4699 support_8bitctrls=no
4480 support_iso14755=no 4700 support_iso14755=no
4481 support_styles=no 4701 support_styles=no
4482 support_perl=no 4702 support_perl=no
4703 support_xdbe=no
4483 codesets= 4704 codesets=
4484 fi 4705 fi
4485 if test x$enableval = xyes; then 4706 if test x$enableval = xyes; then
4486 support_frills=yes 4707 support_frills=yes
4487 support_inheritpixmap=yes 4708 support_inheritpixmap=yes
4488 support_tinting=yes
4489 support_fading=yes 4709 support_fading=yes
4490 support_keepscrolling=yes 4710 support_keepscrolling=yes
4491 support_selectionscrolling=yes 4711 support_selectionscrolling=yes
4492 support_lastlog=yes 4712 support_lastlog=yes
4493 support_mousewheel=yes 4713 support_mousewheel=yes
4495 support_text_blink=yes 4715 support_text_blink=yes
4496 support_pointer_blank=yes 4716 support_pointer_blank=yes
4497 support_scroll_rxvt=yes 4717 support_scroll_rxvt=yes
4498 support_scroll_next=yes 4718 support_scroll_next=yes
4499 support_scroll_xterm=yes 4719 support_scroll_xterm=yes
4500 support_scroll_plain=yes
4501 support_utmp=yes 4720 support_utmp=yes
4502 support_wtmp=yes 4721 support_wtmp=yes
4503 support_xim=yes 4722 support_xim=yes
4504 support_xpm=yes 4723 support_pixbuf=yes
4724 support_startup_notification=yes
4505 support_xft=yes 4725 support_xft=yes
4506 support_unicode3=yes 4726 support_unicode3=yes
4507 support_combining=yes 4727 support_combining=yes
4508 #support_8bitctrls=yes 4728 #support_8bitctrls=yes
4509 support_iso14755=yes 4729 support_iso14755=yes
4510 support_styles=yes 4730 support_styles=yes
4511 support_perl=yes 4731 support_perl=yes
4732 support_xdbe=yes
4512 codesets=all 4733 codesets=all
4513 fi 4734 fi
4514 4735
4515fi 4736fi
4516 4737
4517 4738
4739support_assertions=no
4740# Check whether --enable-assert was given.
4741if test "${enable_assert+set}" = set; then :
4742 enableval=$enable_assert; if test x$enableval = xyes; then
4743 support_assertions=yes
4744 fi
4745fi
4746
4747if test x$support_assertions = xno; then
4748
4749$as_echo "#define NDEBUG 1" >>confdefs.h
4750
4751fi
4752
4753support_warnings=no
4754# Check whether --enable-warnings was given.
4755if test "${enable_warnings+set}" = set; then :
4756 enableval=$enable_warnings; if test x$enableval = xyes; then
4757 support_warnings=yes
4758 fi
4759fi
4760
4761if test x$GXX = xyes; then
4762 if test $support_warnings = yes; then
4763 save_CXXFLAGS="$CXXFLAGS"
4764 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value"
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766/* end confdefs.h. */
4767
4768int
4769main ()
4770{
4771
4772 ;
4773 return 0;
4774}
4775_ACEOF
4776if ac_fn_cxx_try_compile "$LINENO"; then :
4777
4778else
4779 CXXFLAGS="$save_CXXFLAGS"
4780fi
4781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4782 else
4783 CXXFLAGS="$CXXFLAGS -w"
4784 fi
4785fi
4786
4787support_256_color=no
4788# Check whether --enable-256-color was given.
4789if test "${enable_256_color+set}" = set; then :
4790 enableval=$enable_256_color; if test x$enableval = xyes; then
4791 support_256_color=yes
4792 fi
4793fi
4794
4795if test x$support_256_color = xyes; then
4796
4797$as_echo "#define USE_256_COLORS 1" >>confdefs.h
4798
4799fi
4800
4518# Check whether --enable-unicode3 was given. 4801# Check whether --enable-unicode3 was given.
4519if test "${enable_unicode3+set}" = set; then 4802if test "${enable_unicode3+set}" = set; then :
4520 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4803 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4521 support_unicode3=$enableval 4804 support_unicode3=$enableval
4522 fi 4805 fi
4523fi 4806fi
4524 4807
4525 4808
4526# Check whether --enable-combining was given. 4809# Check whether --enable-combining was given.
4527if test "${enable_combining+set}" = set; then 4810if test "${enable_combining+set}" = set; then :
4528 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then 4811 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4529 support_combining=$enableval 4812 support_combining=$enableval
4530 fi 4813 fi
4531fi 4814fi
4532 4815
4533 4816
4534# Check whether --enable-xft was given. 4817# Check whether --enable-xft was given.
4535if test "${enable_xft+set}" = set; then 4818if test "${enable_xft+set}" = set; then :
4536 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then 4819 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4537 support_xft=$enableval 4820 support_xft=$enableval
4538 fi 4821 fi
4539fi 4822fi
4540 4823
4541 4824
4542# Check whether --enable-font-styles was given. 4825# Check whether --enable-font-styles was given.
4543if test "${enable_font_styles+set}" = set; then 4826if test "${enable_font_styles+set}" = set; then :
4544 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then 4827 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4545 support_styles=$enableval 4828 support_styles=$enableval
4546 fi 4829 fi
4547fi 4830fi
4548 4831
4549 4832
4550# Check whether --enable-xpm-background was given. 4833# Check whether --enable-pixbuf was given.
4551if test "${enable_xpm_background+set}" = set; then 4834if test "${enable_pixbuf+set}" = set; then :
4552 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then 4835 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
4553 support_xpm=$enableval 4836 support_pixbuf=$enableval
4837 fi
4838fi
4839
4840
4841# Check whether --enable-startup-notification was given.
4842if test "${enable_startup_notification+set}" = set; then :
4843 enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then
4844 support_startup_notification=$enableval
4554 fi 4845 fi
4555fi 4846fi
4556 4847
4557 4848
4558# Check whether --enable-transparency was given. 4849# Check whether --enable-transparency was given.
4559if test "${enable_transparency+set}" = set; then 4850if test "${enable_transparency+set}" = set; then :
4560 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 4851 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4561 support_inheritpixmap=$enableval 4852 support_inheritpixmap=$enableval
4562 fi 4853 fi
4563fi 4854fi
4564 4855
4565 4856
4566# Check whether --enable-tinting was given.
4567if test "${enable_tinting+set}" = set; then
4568 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4569 support_tinting=$enableval
4570 fi
4571fi
4572
4573
4574# Check whether --enable-fading was given. 4857# Check whether --enable-fading was given.
4575if test "${enable_fading+set}" = set; then 4858if test "${enable_fading+set}" = set; then :
4576 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then 4859 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4577 support_fading=$enableval 4860 support_fading=$enableval
4578 fi 4861 fi
4579fi 4862fi
4580 4863
4581 4864
4582# Check whether --enable-rxvt-scroll was given. 4865# Check whether --enable-rxvt-scroll was given.
4583if test "${enable_rxvt_scroll+set}" = set; then 4866if test "${enable_rxvt_scroll+set}" = set; then :
4584 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4867 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4585 support_scroll_rxvt=$enableval 4868 support_scroll_rxvt=$enableval
4586 fi 4869 fi
4587fi 4870fi
4588 4871
4589 4872
4590# Check whether --enable-next-scroll was given. 4873# Check whether --enable-next-scroll was given.
4591if test "${enable_next_scroll+set}" = set; then 4874if test "${enable_next_scroll+set}" = set; then :
4592 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4875 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4593 support_scroll_next=$enableval 4876 support_scroll_next=$enableval
4594 fi 4877 fi
4595fi 4878fi
4596 4879
4597 4880
4598# Check whether --enable-xterm-scroll was given. 4881# Check whether --enable-xterm-scroll was given.
4599if test "${enable_xterm_scroll+set}" = set; then 4882if test "${enable_xterm_scroll+set}" = set; then :
4600 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4883 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4601 support_scroll_xterm=$enableval 4884 support_scroll_xterm=$enableval
4602 fi 4885 fi
4603fi 4886fi
4604 4887
4605 4888
4606# Check whether --enable-perl was given. 4889# Check whether --enable-perl was given.
4607if test "${enable_perl+set}" = set; then 4890if test "${enable_perl+set}" = set; then :
4608 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 4891 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4609 support_perl=$enableval 4892 support_perl=$enableval
4610 fi 4893 fi
4611fi 4894fi
4612 4895
4613 4896
4614# Check whether --enable-plain-scroll was given.
4615if test "${enable_plain_scroll+set}" = set; then
4616 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4617 support_scroll_plain=$enableval
4618 fi
4619fi
4620
4621
4622 4897
4623# Check whether --with-codesets was given. 4898# Check whether --with-codesets was given.
4624if test "${with_codesets+set}" = set; then 4899if test "${with_codesets+set}" = set; then :
4625 withval=$with_codesets; codesets="$withval" 4900 withval=$with_codesets; codesets="$withval"
4626fi 4901fi
4627 4902
4628 4903
4629# Check whether --enable-xim was given. 4904# Check whether --enable-xim was given.
4630if test "${enable_xim+set}" = set; then 4905if test "${enable_xim+set}" = set; then :
4631 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then 4906 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4632 support_xim=$enableval 4907 support_xim=$enableval
4633 fi 4908 fi
4634fi 4909fi
4635 4910
4636 4911
4637# Check whether --enable-backspace-key was given. 4912# Check whether --enable-backspace-key was given.
4638if test "${enable_backspace_key+set}" = set; then 4913if test "${enable_backspace_key+set}" = set; then :
4639 enableval=$enable_backspace_key; if test x$enableval = xno; then 4914 enableval=$enable_backspace_key; if test x$enableval = xno; then
4640 4915
4641cat >>confdefs.h <<\_ACEOF 4916$as_echo "#define NO_BACKSPACE_KEY 1" >>confdefs.h
4642#define NO_BACKSPACE_KEY 1
4643_ACEOF
4644 4917
4645 fi 4918 fi
4646fi 4919fi
4647 4920
4648 4921
4649# Check whether --enable-delete-key was given. 4922# Check whether --enable-delete-key was given.
4650if test "${enable_delete_key+set}" = set; then 4923if test "${enable_delete_key+set}" = set; then :
4651 enableval=$enable_delete_key; if test x$enableval = xno; then 4924 enableval=$enable_delete_key; if test x$enableval = xno; then
4652 4925
4653cat >>confdefs.h <<\_ACEOF 4926$as_echo "#define NO_DELETE_KEY 1" >>confdefs.h
4654#define NO_DELETE_KEY 1
4655_ACEOF
4656 4927
4657 fi 4928 fi
4658fi 4929fi
4659 4930
4660 4931
4661# Check whether --enable-resources was given. 4932# Check whether --enable-resources was given.
4662if test "${enable_resources+set}" = set; then 4933if test "${enable_resources+set}" = set; then :
4663 enableval=$enable_resources; if test x$enableval = xno; then 4934 enableval=$enable_resources; if test x$enableval = xno; then
4664 4935
4665cat >>confdefs.h <<\_ACEOF 4936$as_echo "#define NO_RESOURCES 1" >>confdefs.h
4666#define NO_RESOURCES 1
4667_ACEOF
4668 4937
4669 fi 4938 fi
4670fi 4939fi
4671 4940
4672 4941
4673# Check whether --enable-8bitctrls was given. 4942# Check whether --enable-8bitctrls was given.
4674if test "${enable_8bitctrls+set}" = set; then 4943if test "${enable_8bitctrls+set}" = set; then :
4675 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then 4944 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
4676 support_8bitctrls=$enableval 4945 support_8bitctrls=$enableval
4677 fi 4946 fi
4678fi 4947fi
4679 4948
4680 4949
4681RESFALLBACK=Rxvt 4950RESFALLBACK=Rxvt
4682# Check whether --enable-fallback was given. 4951# Check whether --enable-fallback was given.
4683if test "${enable_fallback+set}" = set; then 4952if test "${enable_fallback+set}" = set; then :
4684 enableval=$enable_fallback; 4953 enableval=$enable_fallback;
4685 test x$enableval = xyes && enableval=Rxvt 4954 test x$enableval = xyes && enableval=Rxvt
4686 test x$enableval = xno && enableval= 4955 test x$enableval = xno && enableval=
4687 RESFALLBACK="$enableval" 4956 RESFALLBACK="$enableval"
4688 4957
4698fi 4967fi
4699 4968
4700RESNAME=urxvt 4969RESNAME=urxvt
4701 4970
4702# Check whether --with-res-name was given. 4971# Check whether --with-res-name was given.
4703if test "${with_res_name+set}" = set; then 4972if test "${with_res_name+set}" = set; then :
4704 withval=$with_res_name; RESNAME="$withval" 4973 withval=$with_res_name; RESNAME="$withval"
4705fi 4974fi
4706 4975
4707 4976
4708cat >>confdefs.h <<_ACEOF 4977cat >>confdefs.h <<_ACEOF
4711 4980
4712 4981
4713RESCLASS=URxvt 4982RESCLASS=URxvt
4714 4983
4715# Check whether --with-res-class was given. 4984# Check whether --with-res-class was given.
4716if test "${with_res_class+set}" = set; then 4985if test "${with_res_class+set}" = set; then :
4717 withval=$with_res_class; RESCLASS="$withval" 4986 withval=$with_res_class; RESCLASS="$withval"
4718fi 4987fi
4719 4988
4720 4989
4721cat >>confdefs.h <<_ACEOF 4990cat >>confdefs.h <<_ACEOF
4724 4993
4725 4994
4726RXVTNAME=urxvt 4995RXVTNAME=urxvt
4727 4996
4728# Check whether --with-name was given. 4997# Check whether --with-name was given.
4729if test "${with_name+set}" = set; then 4998if test "${with_name+set}" = set; then :
4730 withval=$with_name; RXVTNAME="$withval" 4999 withval=$with_name; RXVTNAME="$withval"
4731fi 5000fi
4732 5001
4733 5002
4734cat >>confdefs.h <<_ACEOF 5003cat >>confdefs.h <<_ACEOF
4735#define RXVTNAME "$RXVTNAME" 5004#define RXVTNAME "$RXVTNAME"
4736_ACEOF 5005_ACEOF
4737 5006
4738 5007
4739RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4740 5008
4741 5009
4742# Check whether --enable-swapscreen was given. 5010# Check whether --enable-swapscreen was given.
4743if test "${enable_swapscreen+set}" = set; then 5011if test "${enable_swapscreen+set}" = set; then :
4744 enableval=$enable_swapscreen; if test x$enableval = xno; then 5012 enableval=$enable_swapscreen; if test x$enableval = xno; then
4745 5013
4746cat >>confdefs.h <<\_ACEOF 5014$as_echo "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
4747#define NO_SECONDARY_SCREEN 1
4748_ACEOF
4749 5015
4750 fi 5016 fi
4751fi 5017fi
4752 5018
4753 5019
4754# Check whether --enable-iso14755 was given. 5020# Check whether --enable-iso14755 was given.
4755if test "${enable_iso14755+set}" = set; then 5021if test "${enable_iso14755+set}" = set; then :
4756 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then 5022 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
4757 support_iso14755=$enableval 5023 support_iso14755=$enableval
4758 fi 5024 fi
4759fi 5025fi
4760 5026
4761 5027
4762# Check whether --enable-frills was given. 5028# Check whether --enable-frills was given.
4763if test "${enable_frills+set}" = set; then 5029if test "${enable_frills+set}" = set; then :
4764 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then 5030 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
4765 support_frills=$enableval 5031 support_frills=$enableval
4766 fi 5032 fi
4767fi 5033fi
4768 5034
4769 5035
4770# Check whether --enable-keepscrolling was given. 5036# Check whether --enable-keepscrolling was given.
4771if test "${enable_keepscrolling+set}" = set; then 5037if test "${enable_keepscrolling+set}" = set; then :
4772 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5038 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4773 support_keepscrolling=$enableval 5039 support_keepscrolling=$enableval
4774 fi 5040 fi
4775fi 5041fi
4776 5042
4777 5043
4778# Check whether --enable-selectionscrolling was given. 5044# Check whether --enable-selectionscrolling was given.
4779if test "${enable_selectionscrolling+set}" = set; then 5045if test "${enable_selectionscrolling+set}" = set; then :
4780 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5046 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4781 support_selectionscrolling=$enableval 5047 support_selectionscrolling=$enableval
4782 fi 5048 fi
4783fi 5049fi
4784 5050
4785 5051
4786# Check whether --enable-mousewheel was given. 5052# Check whether --enable-mousewheel was given.
4787if test "${enable_mousewheel+set}" = set; then 5053if test "${enable_mousewheel+set}" = set; then :
4788 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then 5054 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
4789 support_mousewheel=$enableval 5055 support_mousewheel=$enableval
4790 fi 5056 fi
4791fi 5057fi
4792 5058
4793 5059
4794# Check whether --enable-slipwheeling was given. 5060# Check whether --enable-slipwheeling was given.
4795if test "${enable_slipwheeling+set}" = set; then 5061if test "${enable_slipwheeling+set}" = set; then :
4796 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then 5062 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
4797 support_mouseslipwheel=$enableval 5063 support_mouseslipwheel=$enableval
4798 fi 5064 fi
4799fi 5065fi
4800 5066
4801 5067
4802# Check whether --enable-smart-resize was given. 5068# Check whether --enable-smart-resize was given.
4803if test "${enable_smart_resize+set}" = set; then 5069if test "${enable_smart_resize+set}" = set; then :
4804 enableval=$enable_smart_resize; if test x$enableval = xyes; then 5070 enableval=$enable_smart_resize; if test x$enableval = xyes; then
4805 5071
4806cat >>confdefs.h <<\_ACEOF 5072$as_echo "#define SMART_RESIZE 1" >>confdefs.h
4807#define SMART_RESIZE 1
4808_ACEOF
4809 5073
4810 fi 5074 fi
4811fi 5075fi
4812 5076
4813 5077
4814# Check whether --enable-text-blink was given. 5078# Check whether --enable-text-blink was given.
4815if test "${enable_text_blink+set}" = set; then 5079if test "${enable_text_blink+set}" = set; then :
4816 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then 5080 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
4817 support_text_blink=$enableval 5081 support_text_blink=$enableval
4818 fi 5082 fi
4819fi 5083fi
4820 5084
4821 5085
4822# Check whether --enable-pointer-blank was given. 5086# Check whether --enable-pointer-blank was given.
4823if test "${enable_pointer_blank+set}" = set; then 5087if test "${enable_pointer_blank+set}" = set; then :
4824 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then 5088 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
4825 support_pointer_blank=$enableval 5089 support_pointer_blank=$enableval
4826 fi 5090 fi
4827fi 5091fi
4828 5092
4829 5093
4830 5094
4831# Check whether --with-term was given. 5095# Check whether --with-term was given.
4832if test "${with_term+set}" = set; then 5096if test "${with_term+set}" = set; then :
4833 withval=$with_term; if test x$withval != x; then 5097 withval=$with_term; if test x$withval != x; then
4834 5098
4835cat >>confdefs.h <<_ACEOF 5099cat >>confdefs.h <<_ACEOF
4836#define TERMENV "$withval" 5100#define TERMENV "$withval"
4837_ACEOF 5101_ACEOF
4840fi 5104fi
4841 5105
4842 5106
4843 5107
4844# Check whether --with-terminfo was given. 5108# Check whether --with-terminfo was given.
4845if test "${with_terminfo+set}" = set; then 5109if test "${with_terminfo+set}" = set; then :
4846 withval=$with_terminfo; if test x$withval != x; then 5110 withval=$with_terminfo; if test x$withval != x; then
4847 5111
4848cat >>confdefs.h <<_ACEOF 5112cat >>confdefs.h <<_ACEOF
4849#define RXVT_TERMINFO "$withval" 5113#define RXVT_TERMINFO "$withval"
4850_ACEOF 5114_ACEOF
4851 terminfo="$withval" 5115 terminfo="$withval"
4852 fi 5116 fi
4853fi 5117fi
4854 5118
4855 5119
4856 5120# Check whether --enable-xdbe was given.
4857# Extract the first word of "mv", so it can be a program name with args. 5121if test "${enable_xdbe+set}" = set; then :
4858set dummy mv; ac_word=$2 5122 enableval=$enable_xdbe; if test x$enableval = xyes -o x$enableval = xno; then
4859{ echo "$as_me:$LINENO: checking for $ac_word" >&5 5123 support_xdbe=$enableval
4860echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4861if test "${ac_cv_path_MV+set}" = set; then
4862 echo $ECHO_N "(cached) $ECHO_C" >&6
4863else
4864 case $MV in
4865 [\\/]* | ?:[\\/]*)
4866 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4867 ;;
4868 *)
4869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4870for as_dir in $PATH
4871do
4872 IFS=$as_save_IFS
4873 test -z "$as_dir" && as_dir=.
4874 for ac_exec_ext in '' $ac_executable_extensions; do
4875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4876 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4877 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4878 break 2
4879 fi 5124 fi
4880done
4881done
4882IFS=$as_save_IFS
4883
4884 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4885 ;;
4886esac
4887fi 5125fi
4888MV=$ac_cv_path_MV
4889if test -n "$MV"; then
4890 { echo "$as_me:$LINENO: result: $MV" >&5
4891echo "${ECHO_T}$MV" >&6; }
4892else
4893 { echo "$as_me:$LINENO: result: no" >&5
4894echo "${ECHO_T}no" >&6; }
4895fi
4896 5126
4897 5127
4898# Extract the first word of "cp", so it can be a program name with args.
4899set dummy cp; ac_word=$2
4900{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4901echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4902if test "${ac_cv_path_CP+set}" = set; then
4903 echo $ECHO_N "(cached) $ECHO_C" >&6
4904else
4905 case $CP in
4906 [\\/]* | ?:[\\/]*)
4907 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4908 ;;
4909 *)
4910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4911for as_dir in $PATH
4912do
4913 IFS=$as_save_IFS
4914 test -z "$as_dir" && as_dir=.
4915 for ac_exec_ext in '' $ac_executable_extensions; do
4916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4917 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4919 break 2
4920 fi
4921done
4922done
4923IFS=$as_save_IFS
4924 5128
4925 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp" 5129LIBEV_M4_AVOID_LIBRT=1
4926 ;;
4927esac
4928fi
4929CP=$ac_cv_path_CP
4930if test -n "$CP"; then
4931 { echo "$as_me:$LINENO: result: $CP" >&5
4932echo "${ECHO_T}$CP" >&6; }
4933else
4934 { echo "$as_me:$LINENO: result: no" >&5
4935echo "${ECHO_T}no" >&6; }
4936fi
4937
4938
4939# Extract the first word of "ln", so it can be a program name with args.
4940set dummy ln; ac_word=$2
4941{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4942echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4943if test "${ac_cv_path_LN+set}" = set; then
4944 echo $ECHO_N "(cached) $ECHO_C" >&6
4945else
4946 case $LN in
4947 [\\/]* | ?:[\\/]*)
4948 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4949 ;;
4950 *)
4951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4952for as_dir in $PATH
4953do
4954 IFS=$as_save_IFS
4955 test -z "$as_dir" && as_dir=.
4956 for ac_exec_ext in '' $ac_executable_extensions; do
4957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4958 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4959 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4960 break 2
4961 fi
4962done
4963done
4964IFS=$as_save_IFS
4965
4966 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4967 ;;
4968esac
4969fi
4970LN=$ac_cv_path_LN
4971if test -n "$LN"; then
4972 { echo "$as_me:$LINENO: result: $LN" >&5
4973echo "${ECHO_T}$LN" >&6; }
4974else
4975 { echo "$as_me:$LINENO: result: no" >&5
4976echo "${ECHO_T}no" >&6; }
4977fi
4978
4979
4980# Extract the first word of "sed", so it can be a program name with args.
4981set dummy sed; ac_word=$2
4982{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4983echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4984if test "${ac_cv_path_SED+set}" = set; then
4985 echo $ECHO_N "(cached) $ECHO_C" >&6
4986else
4987 case $SED in
4988 [\\/]* | ?:[\\/]*)
4989 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4990 ;;
4991 *)
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993for as_dir in $PATH
4994do
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5002 fi
5003done
5004done
5005IFS=$as_save_IFS
5006
5007 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5008 ;;
5009esac
5010fi
5011SED=$ac_cv_path_SED
5012if test -n "$SED"; then
5013 { echo "$as_me:$LINENO: result: $SED" >&5
5014echo "${ECHO_T}$SED" >&6; }
5015else
5016 { echo "$as_me:$LINENO: result: no" >&5
5017echo "${ECHO_T}no" >&6; }
5018fi
5019
5020
5021# Extract the first word of "echo", so it can be a program name with args.
5022set dummy echo; ac_word=$2
5023{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5024echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5025if test "${ac_cv_path_ECHO+set}" = set; then
5026 echo $ECHO_N "(cached) $ECHO_C" >&6
5027else
5028 case $ECHO in
5029 [\\/]* | ?:[\\/]*)
5030 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5031 ;;
5032 *)
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034for as_dir in $PATH
5035do
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5041 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5042 break 2
5043 fi
5044done
5045done
5046IFS=$as_save_IFS
5047
5048 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5049 ;;
5050esac
5051fi
5052ECHO=$ac_cv_path_ECHO
5053if test -n "$ECHO"; then
5054 { echo "$as_me:$LINENO: result: $ECHO" >&5
5055echo "${ECHO_T}$ECHO" >&6; }
5056else
5057 { echo "$as_me:$LINENO: result: no" >&5
5058echo "${ECHO_T}no" >&6; }
5059fi
5060
5061
5062# Extract the first word of "cmp", so it can be a program name with args.
5063set dummy cmp; ac_word=$2
5064{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5065echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5066if test "${ac_cv_path_CMP+set}" = set; then
5067 echo $ECHO_N "(cached) $ECHO_C" >&6
5068else
5069 case $CMP in
5070 [\\/]* | ?:[\\/]*)
5071 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5072 ;;
5073 *)
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5082 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5084 fi
5085done
5086done
5087IFS=$as_save_IFS
5088
5089 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5090 ;;
5091esac
5092fi
5093CMP=$ac_cv_path_CMP
5094if test -n "$CMP"; then
5095 { echo "$as_me:$LINENO: result: $CMP" >&5
5096echo "${ECHO_T}$CMP" >&6; }
5097else
5098 { echo "$as_me:$LINENO: result: no" >&5
5099echo "${ECHO_T}no" >&6; }
5100fi
5101
5102
5103# Extract the first word of "tic", so it can be a program name with args.
5104set dummy tic; ac_word=$2
5105{ echo "$as_me:$LINENO: checking for $ac_word" >&5
5106echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5107if test "${ac_cv_path_TIC+set}" = set; then
5108 echo $ECHO_N "(cached) $ECHO_C" >&6
5109else
5110 case $TIC in
5111 [\\/]* | ?:[\\/]*)
5112 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5113 ;;
5114 *)
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116for as_dir in $PATH
5117do
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5123 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 break 2
5125 fi
5126done
5127done
5128IFS=$as_save_IFS
5129
5130 ;;
5131esac
5132fi
5133TIC=$ac_cv_path_TIC
5134if test -n "$TIC"; then
5135 { echo "$as_me:$LINENO: result: $TIC" >&5
5136echo "${ECHO_T}$TIC" >&6; }
5137else
5138 { echo "$as_me:$LINENO: result: no" >&5
5139echo "${ECHO_T}no" >&6; }
5140fi
5141
5142
5143
5144
5145 5130
5146ac_ext=cpp 5131ac_ext=cpp
5147ac_cpp='$CXXCPP $CPPFLAGS' 5132ac_cpp='$CXXCPP $CPPFLAGS'
5148ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5133ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5149ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5134ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5150ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5135ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5151{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5152echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5137$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5153if test -z "$CXXCPP"; then 5138if test -z "$CXXCPP"; then
5154 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5139 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
5155 echo $ECHO_N "(cached) $ECHO_C" >&6 5140 $as_echo_n "(cached) " >&6
5156else 5141else
5157 # Double quotes because CXXCPP needs to be expanded 5142 # Double quotes because CXXCPP needs to be expanded
5158 for CXXCPP in "$CXX -E" "/lib/cpp" 5143 for CXXCPP in "$CXX -E" "/lib/cpp"
5159 do 5144 do
5160 ac_preproc_ok=false 5145 ac_preproc_ok=false
5164 # with a fresh cross-compiler works. 5149 # with a fresh cross-compiler works.
5165 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5150 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5166 # <limits.h> exists even on freestanding compilers. 5151 # <limits.h> exists even on freestanding compilers.
5167 # On the NeXT, cc -E runs the code through the compiler's parser, 5152 # On the NeXT, cc -E runs the code through the compiler's parser,
5168 # not just through cpp. "Syntax error" is here to catch this case. 5153 # not just through cpp. "Syntax error" is here to catch this case.
5169 cat >conftest.$ac_ext <<_ACEOF
5170/* confdefs.h. */
5171_ACEOF
5172cat confdefs.h >>conftest.$ac_ext 5154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5173cat >>conftest.$ac_ext <<_ACEOF
5174/* end confdefs.h. */ 5155/* end confdefs.h. */
5175#ifdef __STDC__ 5156#ifdef __STDC__
5176# include <limits.h> 5157# include <limits.h>
5177#else 5158#else
5178# include <assert.h> 5159# include <assert.h>
5179#endif 5160#endif
5180 Syntax error 5161 Syntax error
5181_ACEOF 5162_ACEOF
5182if { (ac_try="$ac_cpp conftest.$ac_ext" 5163if ac_fn_cxx_try_cpp "$LINENO"; then :
5183case "(($ac_try" in
5184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5185 *) ac_try_echo=$ac_try;;
5186esac
5187eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5189 ac_status=$?
5190 grep -v '^ *+' conftest.er1 >conftest.err
5191 rm -f conftest.er1
5192 cat conftest.err >&5
5193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5194 (exit $ac_status); } >/dev/null && {
5195 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5196 test ! -s conftest.err
5197 }; then
5198 :
5199else
5200 echo "$as_me: failed program was:" >&5
5201sed 's/^/| /' conftest.$ac_ext >&5
5202 5164
5165else
5203 # Broken: fails on valid input. 5166 # Broken: fails on valid input.
5204continue 5167continue
5205fi 5168fi
5206
5207rm -f conftest.err conftest.$ac_ext 5169rm -f conftest.err conftest.i conftest.$ac_ext
5208 5170
5209 # OK, works on sane cases. Now check whether nonexistent headers 5171 # OK, works on sane cases. Now check whether nonexistent headers
5210 # can be detected and how. 5172 # can be detected and how.
5211 cat >conftest.$ac_ext <<_ACEOF
5212/* confdefs.h. */
5213_ACEOF
5214cat confdefs.h >>conftest.$ac_ext 5173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5215cat >>conftest.$ac_ext <<_ACEOF
5216/* end confdefs.h. */ 5174/* end confdefs.h. */
5217#include <ac_nonexistent.h> 5175#include <ac_nonexistent.h>
5218_ACEOF 5176_ACEOF
5219if { (ac_try="$ac_cpp conftest.$ac_ext" 5177if ac_fn_cxx_try_cpp "$LINENO"; then :
5220case "(($ac_try" in
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5223esac
5224eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } >/dev/null && {
5232 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5233 test ! -s conftest.err
5234 }; then
5235 # Broken: success on invalid input. 5178 # Broken: success on invalid input.
5236continue 5179continue
5237else 5180else
5238 echo "$as_me: failed program was:" >&5
5239sed 's/^/| /' conftest.$ac_ext >&5
5240
5241 # Passes both tests. 5181 # Passes both tests.
5242ac_preproc_ok=: 5182ac_preproc_ok=:
5243break 5183break
5244fi 5184fi
5245
5246rm -f conftest.err conftest.$ac_ext 5185rm -f conftest.err conftest.i conftest.$ac_ext
5247 5186
5248done 5187done
5249# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5188# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5250rm -f conftest.err conftest.$ac_ext 5189rm -f conftest.i conftest.err conftest.$ac_ext
5251if $ac_preproc_ok; then 5190if $ac_preproc_ok; then :
5252 break 5191 break
5253fi 5192fi
5254 5193
5255 done 5194 done
5256 ac_cv_prog_CXXCPP=$CXXCPP 5195 ac_cv_prog_CXXCPP=$CXXCPP
5258fi 5197fi
5259 CXXCPP=$ac_cv_prog_CXXCPP 5198 CXXCPP=$ac_cv_prog_CXXCPP
5260else 5199else
5261 ac_cv_prog_CXXCPP=$CXXCPP 5200 ac_cv_prog_CXXCPP=$CXXCPP
5262fi 5201fi
5263{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5264echo "${ECHO_T}$CXXCPP" >&6; } 5203$as_echo "$CXXCPP" >&6; }
5265ac_preproc_ok=false 5204ac_preproc_ok=false
5266for ac_cxx_preproc_warn_flag in '' yes 5205for ac_cxx_preproc_warn_flag in '' yes
5267do 5206do
5268 # Use a header file that comes with gcc, so configuring glibc 5207 # Use a header file that comes with gcc, so configuring glibc
5269 # with a fresh cross-compiler works. 5208 # with a fresh cross-compiler works.
5270 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5209 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5271 # <limits.h> exists even on freestanding compilers. 5210 # <limits.h> exists even on freestanding compilers.
5272 # On the NeXT, cc -E runs the code through the compiler's parser, 5211 # On the NeXT, cc -E runs the code through the compiler's parser,
5273 # not just through cpp. "Syntax error" is here to catch this case. 5212 # not just through cpp. "Syntax error" is here to catch this case.
5274 cat >conftest.$ac_ext <<_ACEOF
5275/* confdefs.h. */
5276_ACEOF
5277cat confdefs.h >>conftest.$ac_ext 5213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5278cat >>conftest.$ac_ext <<_ACEOF
5279/* end confdefs.h. */ 5214/* end confdefs.h. */
5280#ifdef __STDC__ 5215#ifdef __STDC__
5281# include <limits.h> 5216# include <limits.h>
5282#else 5217#else
5283# include <assert.h> 5218# include <assert.h>
5284#endif 5219#endif
5285 Syntax error 5220 Syntax error
5286_ACEOF 5221_ACEOF
5287if { (ac_try="$ac_cpp conftest.$ac_ext" 5222if ac_fn_cxx_try_cpp "$LINENO"; then :
5288case "(($ac_try" in
5289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5290 *) ac_try_echo=$ac_try;;
5291esac
5292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5294 ac_status=$?
5295 grep -v '^ *+' conftest.er1 >conftest.err
5296 rm -f conftest.er1
5297 cat conftest.err >&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); } >/dev/null && {
5300 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5301 test ! -s conftest.err
5302 }; then
5303 :
5304else
5305 echo "$as_me: failed program was:" >&5
5306sed 's/^/| /' conftest.$ac_ext >&5
5307 5223
5224else
5308 # Broken: fails on valid input. 5225 # Broken: fails on valid input.
5309continue 5226continue
5310fi 5227fi
5311
5312rm -f conftest.err conftest.$ac_ext 5228rm -f conftest.err conftest.i conftest.$ac_ext
5313 5229
5314 # OK, works on sane cases. Now check whether nonexistent headers 5230 # OK, works on sane cases. Now check whether nonexistent headers
5315 # can be detected and how. 5231 # can be detected and how.
5316 cat >conftest.$ac_ext <<_ACEOF
5317/* confdefs.h. */
5318_ACEOF
5319cat confdefs.h >>conftest.$ac_ext 5232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5320cat >>conftest.$ac_ext <<_ACEOF
5321/* end confdefs.h. */ 5233/* end confdefs.h. */
5322#include <ac_nonexistent.h> 5234#include <ac_nonexistent.h>
5323_ACEOF 5235_ACEOF
5324if { (ac_try="$ac_cpp conftest.$ac_ext" 5236if ac_fn_cxx_try_cpp "$LINENO"; then :
5325case "(($ac_try" in
5326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5327 *) ac_try_echo=$ac_try;;
5328esac
5329eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5331 ac_status=$?
5332 grep -v '^ *+' conftest.er1 >conftest.err
5333 rm -f conftest.er1
5334 cat conftest.err >&5
5335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5336 (exit $ac_status); } >/dev/null && {
5337 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5338 test ! -s conftest.err
5339 }; then
5340 # Broken: success on invalid input. 5237 # Broken: success on invalid input.
5341continue 5238continue
5342else 5239else
5343 echo "$as_me: failed program was:" >&5
5344sed 's/^/| /' conftest.$ac_ext >&5
5345
5346 # Passes both tests. 5240 # Passes both tests.
5347ac_preproc_ok=: 5241ac_preproc_ok=:
5348break 5242break
5349fi 5243fi
5350
5351rm -f conftest.err conftest.$ac_ext 5244rm -f conftest.err conftest.i conftest.$ac_ext
5352 5245
5353done 5246done
5354# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5247# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5355rm -f conftest.err conftest.$ac_ext 5248rm -f conftest.i conftest.err conftest.$ac_ext
5356if $ac_preproc_ok; then 5249if $ac_preproc_ok; then :
5357 : 5250
5358else 5251else
5359 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5252 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5360See \`config.log' for more details." >&5 5253$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5361echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5254as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5362See \`config.log' for more details." >&2;} 5255See \`config.log' for more details" "$LINENO" 5 ; }
5363 { (exit 1); exit 1; }; }
5364fi 5256fi
5365 5257
5366ac_ext=cpp 5258ac_ext=cpp
5367ac_cpp='$CXXCPP $CPPFLAGS' 5259ac_cpp='$CXXCPP $CPPFLAGS'
5368ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5260ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5369ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5261ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5370ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5262ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5371 5263
5372 5264
5265for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h sys/select.h sys/eventfd.h sys/signalfd.h
5266do :
5267 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5268ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5269if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5270 cat >>confdefs.h <<_ACEOF
5271#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5272_ACEOF
5273
5274fi
5275
5276done
5277
5278
5279for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5280do :
5281 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5282ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5283if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5284 cat >>confdefs.h <<_ACEOF
5285#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5286_ACEOF
5287
5288fi
5289done
5290
5291
5292for ac_func in clock_gettime
5293do :
5294 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5295if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5296 cat >>confdefs.h <<_ACEOF
5297#define HAVE_CLOCK_GETTIME 1
5298_ACEOF
5299
5300else
5301
5302 if test $(uname) = Linux; then
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5304$as_echo_n "checking for clock_gettime syscall... " >&6; }
5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306/* end confdefs.h. */
5307#include <unistd.h>
5308 #include <sys/syscall.h>
5309 #include <time.h>
5310int
5311main ()
5312{
5313struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5314 ;
5315 return 0;
5316}
5317_ACEOF
5318if ac_fn_cxx_try_link "$LINENO"; then :
5319 ac_have_clock_syscall=1
5320
5321$as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5322
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5324$as_echo "yes" >&6; }
5325else
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5327$as_echo "no" >&6; }
5328fi
5329rm -f core conftest.err conftest.$ac_objext \
5330 conftest$ac_exeext conftest.$ac_ext
5331 fi
5332 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5334$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
5335if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
5336 $as_echo_n "(cached) " >&6
5337else
5338 ac_check_lib_save_LIBS=$LIBS
5339LIBS="-lrt $LIBS"
5340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341/* end confdefs.h. */
5342
5343/* Override any GCC internal prototype to avoid an error.
5344 Use char because int might match the return type of a GCC
5345 builtin and then its argument prototype would still apply. */
5346#ifdef __cplusplus
5347extern "C"
5348#endif
5349char clock_gettime ();
5350int
5351main ()
5352{
5353return clock_gettime ();
5354 ;
5355 return 0;
5356}
5357_ACEOF
5358if ac_fn_cxx_try_link "$LINENO"; then :
5359 ac_cv_lib_rt_clock_gettime=yes
5360else
5361 ac_cv_lib_rt_clock_gettime=no
5362fi
5363rm -f core conftest.err conftest.$ac_objext \
5364 conftest$ac_exeext conftest.$ac_ext
5365LIBS=$ac_check_lib_save_LIBS
5366fi
5367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5368$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5369if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
5370 cat >>confdefs.h <<_ACEOF
5371#define HAVE_LIBRT 1
5372_ACEOF
5373
5374 LIBS="-lrt $LIBS"
5375
5376fi
5377
5378 unset ac_cv_func_clock_gettime
5379 for ac_func in clock_gettime
5380do :
5381 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5382if test "x$ac_cv_func_clock_gettime" = x""yes; then :
5383 cat >>confdefs.h <<_ACEOF
5384#define HAVE_CLOCK_GETTIME 1
5385_ACEOF
5386
5387fi
5388done
5389
5390 fi
5391
5392fi
5393done
5394
5395
5396for ac_func in nanosleep
5397do :
5398 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5399if test "x$ac_cv_func_nanosleep" = x""yes; then :
5400 cat >>confdefs.h <<_ACEOF
5401#define HAVE_NANOSLEEP 1
5402_ACEOF
5403
5404else
5405
5406 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5408$as_echo_n "checking for nanosleep in -lrt... " >&6; }
5409if test "${ac_cv_lib_rt_nanosleep+set}" = set; then :
5410 $as_echo_n "(cached) " >&6
5411else
5412 ac_check_lib_save_LIBS=$LIBS
5413LIBS="-lrt $LIBS"
5414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5415/* end confdefs.h. */
5416
5417/* Override any GCC internal prototype to avoid an error.
5418 Use char because int might match the return type of a GCC
5419 builtin and then its argument prototype would still apply. */
5420#ifdef __cplusplus
5421extern "C"
5422#endif
5423char nanosleep ();
5424int
5425main ()
5426{
5427return nanosleep ();
5428 ;
5429 return 0;
5430}
5431_ACEOF
5432if ac_fn_cxx_try_link "$LINENO"; then :
5433 ac_cv_lib_rt_nanosleep=yes
5434else
5435 ac_cv_lib_rt_nanosleep=no
5436fi
5437rm -f core conftest.err conftest.$ac_objext \
5438 conftest$ac_exeext conftest.$ac_ext
5439LIBS=$ac_check_lib_save_LIBS
5440fi
5441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5442$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
5443if test "x$ac_cv_lib_rt_nanosleep" = x""yes; then :
5444 cat >>confdefs.h <<_ACEOF
5445#define HAVE_LIBRT 1
5446_ACEOF
5447
5448 LIBS="-lrt $LIBS"
5449
5450fi
5451
5452 unset ac_cv_func_nanosleep
5453 for ac_func in nanosleep
5454do :
5455 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5456if test "x$ac_cv_func_nanosleep" = x""yes; then :
5457 cat >>confdefs.h <<_ACEOF
5458#define HAVE_NANOSLEEP 1
5459_ACEOF
5460
5461fi
5462done
5463
5464 fi
5465
5466fi
5467done
5468
5469
5470if test -z "$LIBEV_M4_AVOID_LIBM"; then
5471 LIBM=m
5472fi
5473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
5474$as_echo_n "checking for library containing floor... " >&6; }
5475if test "${ac_cv_search_floor+set}" = set; then :
5476 $as_echo_n "(cached) " >&6
5477else
5478 ac_func_search_save_LIBS=$LIBS
5479cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5480/* end confdefs.h. */
5481
5482/* Override any GCC internal prototype to avoid an error.
5483 Use char because int might match the return type of a GCC
5484 builtin and then its argument prototype would still apply. */
5485#ifdef __cplusplus
5486extern "C"
5487#endif
5488char floor ();
5489int
5490main ()
5491{
5492return floor ();
5493 ;
5494 return 0;
5495}
5496_ACEOF
5497for ac_lib in '' $LIBM; do
5498 if test -z "$ac_lib"; then
5499 ac_res="none required"
5500 else
5501 ac_res=-l$ac_lib
5502 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5503 fi
5504 if ac_fn_cxx_try_link "$LINENO"; then :
5505 ac_cv_search_floor=$ac_res
5506fi
5507rm -f core conftest.err conftest.$ac_objext \
5508 conftest$ac_exeext
5509 if test "${ac_cv_search_floor+set}" = set; then :
5510 break
5511fi
5512done
5513if test "${ac_cv_search_floor+set}" = set; then :
5514
5515else
5516 ac_cv_search_floor=no
5517fi
5518rm conftest.$ac_ext
5519LIBS=$ac_func_search_save_LIBS
5520fi
5521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
5522$as_echo "$ac_cv_search_floor" >&6; }
5523ac_res=$ac_cv_search_floor
5524if test "$ac_res" != no; then :
5525 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5526
5527$as_echo "#define HAVE_FLOOR 1" >>confdefs.h
5528
5529fi
5530
5531
5532
5533
5534
5535# Extract the first word of "tic", so it can be a program name with args.
5536set dummy tic; ac_word=$2
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5538$as_echo_n "checking for $ac_word... " >&6; }
5539if test "${ac_cv_path_TIC+set}" = set; then :
5540 $as_echo_n "(cached) " >&6
5541else
5542 case $TIC in
5543 [\\/]* | ?:[\\/]*)
5544 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5545 ;;
5546 *)
5547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5548for as_dir in $PATH
5549do
5550 IFS=$as_save_IFS
5551 test -z "$as_dir" && as_dir=.
5552 for ac_exec_ext in '' $ac_executable_extensions; do
5553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5554 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5556 break 2
5557 fi
5558done
5559 done
5560IFS=$as_save_IFS
5561
5562 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5563 ;;
5564esac
5565fi
5566TIC=$ac_cv_path_TIC
5567if test -n "$TIC"; then
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5569$as_echo "$TIC" >&6; }
5570else
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5572$as_echo "no" >&6; }
5573fi
5574
5575
5576
5373{ echo "$as_me:$LINENO: checking for X" >&5 5577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5374echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5578$as_echo_n "checking for X... " >&6; }
5375 5579
5376 5580
5377# Check whether --with-x was given. 5581# Check whether --with-x was given.
5378if test "${with_x+set}" = set; then 5582if test "${with_x+set}" = set; then :
5379 withval=$with_x; 5583 withval=$with_x;
5380fi 5584fi
5381 5585
5382# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5586# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5383if test "x$with_x" = xno; then 5587if test "x$with_x" = xno; then
5384 # The user explicitly disabled X. 5588 # The user explicitly disabled X.
5385 have_x=disabled 5589 have_x=disabled
5386else 5590else
5387 case $x_includes,$x_libraries in #( 5591 case $x_includes,$x_libraries in #(
5388 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 5592 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
5389echo "$as_me: error: Cannot use X directory names containing '" >&2;}
5390 { (exit 1); exit 1; }; };; #(
5391 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 5593 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
5392 echo $ECHO_N "(cached) $ECHO_C" >&6 5594 $as_echo_n "(cached) " >&6
5393else 5595else
5394 # One or both of the vars are not set, and there is no cached value. 5596 # One or both of the vars are not set, and there is no cached value.
5395ac_x_includes=no ac_x_libraries=no 5597ac_x_includes=no ac_x_libraries=no
5396rm -f -r conftest.dir 5598rm -f -r conftest.dir
5397if mkdir conftest.dir; then 5599if mkdir conftest.dir; then
5403 @echo usrlibdir='${USRLIBDIR}' 5605 @echo usrlibdir='${USRLIBDIR}'
5404libdir: 5606libdir:
5405 @echo libdir='${LIBDIR}' 5607 @echo libdir='${LIBDIR}'
5406_ACEOF 5608_ACEOF
5407 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 5609 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5408 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5610 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5409 for ac_var in incroot usrlibdir libdir; do 5611 for ac_var in incroot usrlibdir libdir; do
5410 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 5612 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5411 done 5613 done
5412 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 5614 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5413 for ac_extension in a so sl; do 5615 for ac_extension in a so sl dylib la dll; do
5414 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 5616 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5415 test -f "$ac_im_libdir/libX11.$ac_extension"; then 5617 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5416 ac_im_usrlibdir=$ac_im_libdir; break 5618 ac_im_usrlibdir=$ac_im_libdir; break
5417 fi 5619 fi
5418 done 5620 done
5422 case $ac_im_incroot in 5624 case $ac_im_incroot in
5423 /usr/include) ac_x_includes= ;; 5625 /usr/include) ac_x_includes= ;;
5424 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 5626 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5425 esac 5627 esac
5426 case $ac_im_usrlibdir in 5628 case $ac_im_usrlibdir in
5427 /usr/lib | /lib) ;; 5629 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5428 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 5630 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5429 esac 5631 esac
5430 fi 5632 fi
5431 cd .. 5633 cd ..
5432 rm -f -r conftest.dir 5634 rm -f -r conftest.dir
5434 5636
5435# Standard set of common directories for X headers. 5637# Standard set of common directories for X headers.
5436# Check X11 before X11Rn because it is often a symlink to the current release. 5638# Check X11 before X11Rn because it is often a symlink to the current release.
5437ac_x_header_dirs=' 5639ac_x_header_dirs='
5438/usr/X11/include 5640/usr/X11/include
5641/usr/X11R7/include
5439/usr/X11R6/include 5642/usr/X11R6/include
5440/usr/X11R5/include 5643/usr/X11R5/include
5441/usr/X11R4/include 5644/usr/X11R4/include
5442 5645
5443/usr/include/X11 5646/usr/include/X11
5647/usr/include/X11R7
5444/usr/include/X11R6 5648/usr/include/X11R6
5445/usr/include/X11R5 5649/usr/include/X11R5
5446/usr/include/X11R4 5650/usr/include/X11R4
5447 5651
5448/usr/local/X11/include 5652/usr/local/X11/include
5653/usr/local/X11R7/include
5449/usr/local/X11R6/include 5654/usr/local/X11R6/include
5450/usr/local/X11R5/include 5655/usr/local/X11R5/include
5451/usr/local/X11R4/include 5656/usr/local/X11R4/include
5452 5657
5453/usr/local/include/X11 5658/usr/local/include/X11
5659/usr/local/include/X11R7
5454/usr/local/include/X11R6 5660/usr/local/include/X11R6
5455/usr/local/include/X11R5 5661/usr/local/include/X11R5
5456/usr/local/include/X11R4 5662/usr/local/include/X11R4
5457 5663
5458/usr/X386/include 5664/usr/X386/include
5470/usr/openwin/share/include' 5676/usr/openwin/share/include'
5471 5677
5472if test "$ac_x_includes" = no; then 5678if test "$ac_x_includes" = no; then
5473 # Guess where to find include files, by looking for Xlib.h. 5679 # Guess where to find include files, by looking for Xlib.h.
5474 # First, try using that file with no special directory specified. 5680 # First, try using that file with no special directory specified.
5475 cat >conftest.$ac_ext <<_ACEOF
5476/* confdefs.h. */
5477_ACEOF
5478cat confdefs.h >>conftest.$ac_ext 5681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5479cat >>conftest.$ac_ext <<_ACEOF
5480/* end confdefs.h. */ 5682/* end confdefs.h. */
5481#include <X11/Xlib.h> 5683#include <X11/Xlib.h>
5482_ACEOF 5684_ACEOF
5483if { (ac_try="$ac_cpp conftest.$ac_ext" 5685if ac_fn_cxx_try_cpp "$LINENO"; then :
5484case "(($ac_try" in
5485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5487esac
5488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5490 ac_status=$?
5491 grep -v '^ *+' conftest.er1 >conftest.err
5492 rm -f conftest.er1
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } >/dev/null && {
5496 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5497 test ! -s conftest.err
5498 }; then
5499 # We can compile using X headers with no special include directory. 5686 # We can compile using X headers with no special include directory.
5500ac_x_includes= 5687ac_x_includes=
5501else 5688else
5502 echo "$as_me: failed program was:" >&5
5503sed 's/^/| /' conftest.$ac_ext >&5
5504
5505 for ac_dir in $ac_x_header_dirs; do 5689 for ac_dir in $ac_x_header_dirs; do
5506 if test -r "$ac_dir/X11/Xlib.h"; then 5690 if test -r "$ac_dir/X11/Xlib.h"; then
5507 ac_x_includes=$ac_dir 5691 ac_x_includes=$ac_dir
5508 break 5692 break
5509 fi 5693 fi
5510done 5694done
5511fi 5695fi
5512
5513rm -f conftest.err conftest.$ac_ext 5696rm -f conftest.err conftest.i conftest.$ac_ext
5514fi # $ac_x_includes = no 5697fi # $ac_x_includes = no
5515 5698
5516if test "$ac_x_libraries" = no; then 5699if test "$ac_x_libraries" = no; then
5517 # Check for the libraries. 5700 # Check for the libraries.
5518 # See if we find them without any special options. 5701 # See if we find them without any special options.
5519 # Don't add to $LIBS permanently. 5702 # Don't add to $LIBS permanently.
5520 ac_save_LIBS=$LIBS 5703 ac_save_LIBS=$LIBS
5521 LIBS="-lX11 $LIBS" 5704 LIBS="-lX11 $LIBS"
5522 cat >conftest.$ac_ext <<_ACEOF
5523/* confdefs.h. */
5524_ACEOF
5525cat confdefs.h >>conftest.$ac_ext 5705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5526cat >>conftest.$ac_ext <<_ACEOF
5527/* end confdefs.h. */ 5706/* end confdefs.h. */
5528#include <X11/Xlib.h> 5707#include <X11/Xlib.h>
5529int 5708int
5530main () 5709main ()
5531{ 5710{
5532XrmInitialize () 5711XrmInitialize ()
5533 ; 5712 ;
5534 return 0; 5713 return 0;
5535} 5714}
5536_ACEOF 5715_ACEOF
5537rm -f conftest.$ac_objext conftest$ac_exeext 5716if ac_fn_cxx_try_link "$LINENO"; then :
5538if { (ac_try="$ac_link"
5539case "(($ac_try" in
5540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5541 *) ac_try_echo=$ac_try;;
5542esac
5543eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5544 (eval "$ac_link") 2>conftest.er1
5545 ac_status=$?
5546 grep -v '^ *+' conftest.er1 >conftest.err
5547 rm -f conftest.er1
5548 cat conftest.err >&5
5549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5550 (exit $ac_status); } && {
5551 test -z "$ac_cxx_werror_flag" ||
5552 test ! -s conftest.err
5553 } && test -s conftest$ac_exeext &&
5554 $as_test_x conftest$ac_exeext; then
5555 LIBS=$ac_save_LIBS 5717 LIBS=$ac_save_LIBS
5556# We can link X programs with no special library path. 5718# We can link X programs with no special library path.
5557ac_x_libraries= 5719ac_x_libraries=
5558else 5720else
5559 echo "$as_me: failed program was:" >&5
5560sed 's/^/| /' conftest.$ac_ext >&5
5561
5562 LIBS=$ac_save_LIBS 5721 LIBS=$ac_save_LIBS
5563for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5722for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5564do 5723do
5565 # Don't even attempt the hair of trying to link an X program! 5724 # Don't even attempt the hair of trying to link an X program!
5566 for ac_extension in a so sl; do 5725 for ac_extension in a so sl dylib la dll; do
5567 if test -r "$ac_dir/libX11.$ac_extension"; then 5726 if test -r "$ac_dir/libX11.$ac_extension"; then
5568 ac_x_libraries=$ac_dir 5727 ac_x_libraries=$ac_dir
5569 break 2 5728 break 2
5570 fi 5729 fi
5571 done 5730 done
5572done 5731done
5573fi 5732fi
5574
5575rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5733rm -f core conftest.err conftest.$ac_objext \
5576 conftest$ac_exeext conftest.$ac_ext 5734 conftest$ac_exeext conftest.$ac_ext
5577fi # $ac_x_libraries = no 5735fi # $ac_x_libraries = no
5578 5736
5579case $ac_x_includes,$ac_x_libraries in #( 5737case $ac_x_includes,$ac_x_libraries in #(
5580 no,* | *,no | *\'*) 5738 no,* | *,no | *\'*)
5581 # Didn't find X, or a directory has "'" in its name. 5739 # Didn't find X, or a directory has "'" in its name.
5592 esac 5750 esac
5593 eval "$ac_cv_have_x" 5751 eval "$ac_cv_have_x"
5594fi # $with_x != no 5752fi # $with_x != no
5595 5753
5596if test "$have_x" != yes; then 5754if test "$have_x" != yes; then
5597 { echo "$as_me:$LINENO: result: $have_x" >&5 5755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5598echo "${ECHO_T}$have_x" >&6; } 5756$as_echo "$have_x" >&6; }
5599 no_x=yes 5757 no_x=yes
5600else 5758else
5601 # If each of the values was on the command line, it overrides each guess. 5759 # If each of the values was on the command line, it overrides each guess.
5602 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5760 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5603 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5761 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5604 # Update the cache value to reflect the command line values. 5762 # Update the cache value to reflect the command line values.
5605 ac_cv_have_x="have_x=yes\ 5763 ac_cv_have_x="have_x=yes\
5606 ac_x_includes='$x_includes'\ 5764 ac_x_includes='$x_includes'\
5607 ac_x_libraries='$x_libraries'" 5765 ac_x_libraries='$x_libraries'"
5608 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5609echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 5767$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5610fi 5768fi
5611 5769
5612if test "$no_x" = yes; then 5770if test "$no_x" = yes; then
5613 # Not all programs may use this symbol, but it does not hurt to define it. 5771 # Not all programs may use this symbol, but it does not hurt to define it.
5614 5772
5615cat >>confdefs.h <<\_ACEOF 5773$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5616#define X_DISPLAY_MISSING 1
5617_ACEOF
5618 5774
5619 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 5775 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5620else 5776else
5621 if test -n "$x_includes"; then 5777 if test -n "$x_includes"; then
5622 X_CFLAGS="$X_CFLAGS -I$x_includes" 5778 X_CFLAGS="$X_CFLAGS -I$x_includes"
5625 # It would also be nice to do this for all -L options, not just this one. 5781 # It would also be nice to do this for all -L options, not just this one.
5626 if test -n "$x_libraries"; then 5782 if test -n "$x_libraries"; then
5627 X_LIBS="$X_LIBS -L$x_libraries" 5783 X_LIBS="$X_LIBS -L$x_libraries"
5628 # For Solaris; some versions of Sun CC require a space after -R and 5784 # For Solaris; some versions of Sun CC require a space after -R and
5629 # others require no space. Words are not sufficient . . . . 5785 # others require no space. Words are not sufficient . . . .
5630 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5631echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } 5787$as_echo_n "checking whether -R must be followed by a space... " >&6; }
5632 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 5788 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5633 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 5789 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5634 ac_cxx_werror_flag=yes 5790 ac_cxx_werror_flag=yes
5635 cat >conftest.$ac_ext <<_ACEOF
5636/* confdefs.h. */
5637_ACEOF
5638cat confdefs.h >>conftest.$ac_ext 5791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5639cat >>conftest.$ac_ext <<_ACEOF
5640/* end confdefs.h. */ 5792/* end confdefs.h. */
5641 5793
5642int 5794int
5643main () 5795main ()
5644{ 5796{
5645 5797
5646 ; 5798 ;
5647 return 0; 5799 return 0;
5648} 5800}
5649_ACEOF 5801_ACEOF
5650rm -f conftest.$ac_objext conftest$ac_exeext 5802if ac_fn_cxx_try_link "$LINENO"; then :
5651if { (ac_try="$ac_link"
5652case "(($ac_try" in
5653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5654 *) ac_try_echo=$ac_try;;
5655esac
5656eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5657 (eval "$ac_link") 2>conftest.er1
5658 ac_status=$?
5659 grep -v '^ *+' conftest.er1 >conftest.err
5660 rm -f conftest.er1
5661 cat conftest.err >&5
5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5663 (exit $ac_status); } && {
5664 test -z "$ac_cxx_werror_flag" ||
5665 test ! -s conftest.err
5666 } && test -s conftest$ac_exeext &&
5667 $as_test_x conftest$ac_exeext; then
5668 { echo "$as_me:$LINENO: result: no" >&5 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669echo "${ECHO_T}no" >&6; } 5804$as_echo "no" >&6; }
5670 X_LIBS="$X_LIBS -R$x_libraries" 5805 X_LIBS="$X_LIBS -R$x_libraries"
5671else 5806else
5672 echo "$as_me: failed program was:" >&5
5673sed 's/^/| /' conftest.$ac_ext >&5
5674
5675 LIBS="$ac_xsave_LIBS -R $x_libraries" 5807 LIBS="$ac_xsave_LIBS -R $x_libraries"
5676 cat >conftest.$ac_ext <<_ACEOF
5677/* confdefs.h. */
5678_ACEOF
5679cat confdefs.h >>conftest.$ac_ext 5808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680cat >>conftest.$ac_ext <<_ACEOF
5681/* end confdefs.h. */ 5809/* end confdefs.h. */
5682 5810
5683int 5811int
5684main () 5812main ()
5685{ 5813{
5686 5814
5687 ; 5815 ;
5688 return 0; 5816 return 0;
5689} 5817}
5690_ACEOF 5818_ACEOF
5691rm -f conftest.$ac_objext conftest$ac_exeext 5819if ac_fn_cxx_try_link "$LINENO"; then :
5692if { (ac_try="$ac_link"
5693case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696esac
5697eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_link") 2>conftest.er1
5699 ac_status=$?
5700 grep -v '^ *+' conftest.er1 >conftest.err
5701 rm -f conftest.er1
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } && {
5705 test -z "$ac_cxx_werror_flag" ||
5706 test ! -s conftest.err
5707 } && test -s conftest$ac_exeext &&
5708 $as_test_x conftest$ac_exeext; then
5709 { echo "$as_me:$LINENO: result: yes" >&5 5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710echo "${ECHO_T}yes" >&6; } 5821$as_echo "yes" >&6; }
5711 X_LIBS="$X_LIBS -R $x_libraries" 5822 X_LIBS="$X_LIBS -R $x_libraries"
5712else 5823else
5713 echo "$as_me: failed program was:" >&5
5714sed 's/^/| /' conftest.$ac_ext >&5
5715
5716 { echo "$as_me:$LINENO: result: neither works" >&5 5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5717echo "${ECHO_T}neither works" >&6; } 5825$as_echo "neither works" >&6; }
5718fi 5826fi
5719
5720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5827rm -f core conftest.err conftest.$ac_objext \
5721 conftest$ac_exeext conftest.$ac_ext 5828 conftest$ac_exeext conftest.$ac_ext
5722fi 5829fi
5723
5724rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5830rm -f core conftest.err conftest.$ac_objext \
5725 conftest$ac_exeext conftest.$ac_ext 5831 conftest$ac_exeext conftest.$ac_ext
5726 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 5832 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5727 LIBS=$ac_xsave_LIBS 5833 LIBS=$ac_xsave_LIBS
5728 fi 5834 fi
5729 5835
5730 # Check for system-dependent libraries X programs must link with. 5836 # Check for system-dependent libraries X programs must link with.
5736 else 5842 else
5737 # Martyn Johnson says this is needed for Ultrix, if the X 5843 # Martyn Johnson says this is needed for Ultrix, if the X
5738 # libraries were built with DECnet support. And Karl Berry says 5844 # libraries were built with DECnet support. And Karl Berry says
5739 # the Alpha needs dnet_stub (dnet does not exist). 5845 # the Alpha needs dnet_stub (dnet does not exist).
5740 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 5846 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5741 cat >conftest.$ac_ext <<_ACEOF
5742/* confdefs.h. */
5743_ACEOF
5744cat confdefs.h >>conftest.$ac_ext 5847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745cat >>conftest.$ac_ext <<_ACEOF
5746/* end confdefs.h. */ 5848/* end confdefs.h. */
5747 5849
5748/* Override any GCC internal prototype to avoid an error. 5850/* Override any GCC internal prototype to avoid an error.
5749 Use char because int might match the return type of a GCC 5851 Use char because int might match the return type of a GCC
5750 builtin and then its argument prototype would still apply. */ 5852 builtin and then its argument prototype would still apply. */
5758return XOpenDisplay (); 5860return XOpenDisplay ();
5759 ; 5861 ;
5760 return 0; 5862 return 0;
5761} 5863}
5762_ACEOF 5864_ACEOF
5763rm -f conftest.$ac_objext conftest$ac_exeext 5865if ac_fn_cxx_try_link "$LINENO"; then :
5764if { (ac_try="$ac_link"
5765case "(($ac_try" in
5766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5767 *) ac_try_echo=$ac_try;;
5768esac
5769eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5770 (eval "$ac_link") 2>conftest.er1
5771 ac_status=$?
5772 grep -v '^ *+' conftest.er1 >conftest.err
5773 rm -f conftest.er1
5774 cat conftest.err >&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); } && {
5777 test -z "$ac_cxx_werror_flag" ||
5778 test ! -s conftest.err
5779 } && test -s conftest$ac_exeext &&
5780 $as_test_x conftest$ac_exeext; then
5781 :
5782else
5783 echo "$as_me: failed program was:" >&5
5784sed 's/^/| /' conftest.$ac_ext >&5
5785 5866
5867else
5786 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5787echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } 5869$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5788if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 5870if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
5789 echo $ECHO_N "(cached) $ECHO_C" >&6 5871 $as_echo_n "(cached) " >&6
5790else 5872else
5791 ac_check_lib_save_LIBS=$LIBS 5873 ac_check_lib_save_LIBS=$LIBS
5792LIBS="-ldnet $LIBS" 5874LIBS="-ldnet $LIBS"
5793cat >conftest.$ac_ext <<_ACEOF
5794/* confdefs.h. */
5795_ACEOF
5796cat confdefs.h >>conftest.$ac_ext 5875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5797cat >>conftest.$ac_ext <<_ACEOF
5798/* end confdefs.h. */ 5876/* end confdefs.h. */
5799 5877
5800/* Override any GCC internal prototype to avoid an error. 5878/* Override any GCC internal prototype to avoid an error.
5801 Use char because int might match the return type of a GCC 5879 Use char because int might match the return type of a GCC
5802 builtin and then its argument prototype would still apply. */ 5880 builtin and then its argument prototype would still apply. */
5810return dnet_ntoa (); 5888return dnet_ntoa ();
5811 ; 5889 ;
5812 return 0; 5890 return 0;
5813} 5891}
5814_ACEOF 5892_ACEOF
5815rm -f conftest.$ac_objext conftest$ac_exeext 5893if ac_fn_cxx_try_link "$LINENO"; then :
5816if { (ac_try="$ac_link"
5817case "(($ac_try" in
5818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5819 *) ac_try_echo=$ac_try;;
5820esac
5821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5822 (eval "$ac_link") 2>conftest.er1
5823 ac_status=$?
5824 grep -v '^ *+' conftest.er1 >conftest.err
5825 rm -f conftest.er1
5826 cat conftest.err >&5
5827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5828 (exit $ac_status); } && {
5829 test -z "$ac_cxx_werror_flag" ||
5830 test ! -s conftest.err
5831 } && test -s conftest$ac_exeext &&
5832 $as_test_x conftest$ac_exeext; then
5833 ac_cv_lib_dnet_dnet_ntoa=yes 5894 ac_cv_lib_dnet_dnet_ntoa=yes
5834else 5895else
5835 echo "$as_me: failed program was:" >&5
5836sed 's/^/| /' conftest.$ac_ext >&5
5837
5838 ac_cv_lib_dnet_dnet_ntoa=no 5896 ac_cv_lib_dnet_dnet_ntoa=no
5839fi 5897fi
5840
5841rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5898rm -f core conftest.err conftest.$ac_objext \
5842 conftest$ac_exeext conftest.$ac_ext 5899 conftest$ac_exeext conftest.$ac_ext
5843LIBS=$ac_check_lib_save_LIBS 5900LIBS=$ac_check_lib_save_LIBS
5844fi 5901fi
5845{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 5902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5846echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } 5903$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5847if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 5904if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
5848 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 5905 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5849fi 5906fi
5850 5907
5851 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5908 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5852 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5853echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } 5910$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5854if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 5911if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
5855 echo $ECHO_N "(cached) $ECHO_C" >&6 5912 $as_echo_n "(cached) " >&6
5856else 5913else
5857 ac_check_lib_save_LIBS=$LIBS 5914 ac_check_lib_save_LIBS=$LIBS
5858LIBS="-ldnet_stub $LIBS" 5915LIBS="-ldnet_stub $LIBS"
5859cat >conftest.$ac_ext <<_ACEOF
5860/* confdefs.h. */
5861_ACEOF
5862cat confdefs.h >>conftest.$ac_ext 5916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5863cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h. */ 5917/* end confdefs.h. */
5865 5918
5866/* Override any GCC internal prototype to avoid an error. 5919/* Override any GCC internal prototype to avoid an error.
5867 Use char because int might match the return type of a GCC 5920 Use char because int might match the return type of a GCC
5868 builtin and then its argument prototype would still apply. */ 5921 builtin and then its argument prototype would still apply. */
5876return dnet_ntoa (); 5929return dnet_ntoa ();
5877 ; 5930 ;
5878 return 0; 5931 return 0;
5879} 5932}
5880_ACEOF 5933_ACEOF
5881rm -f conftest.$ac_objext conftest$ac_exeext 5934if ac_fn_cxx_try_link "$LINENO"; then :
5882if { (ac_try="$ac_link"
5883case "(($ac_try" in
5884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5885 *) ac_try_echo=$ac_try;;
5886esac
5887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5888 (eval "$ac_link") 2>conftest.er1
5889 ac_status=$?
5890 grep -v '^ *+' conftest.er1 >conftest.err
5891 rm -f conftest.er1
5892 cat conftest.err >&5
5893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5894 (exit $ac_status); } && {
5895 test -z "$ac_cxx_werror_flag" ||
5896 test ! -s conftest.err
5897 } && test -s conftest$ac_exeext &&
5898 $as_test_x conftest$ac_exeext; then
5899 ac_cv_lib_dnet_stub_dnet_ntoa=yes 5935 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5900else 5936else
5901 echo "$as_me: failed program was:" >&5
5902sed 's/^/| /' conftest.$ac_ext >&5
5903
5904 ac_cv_lib_dnet_stub_dnet_ntoa=no 5937 ac_cv_lib_dnet_stub_dnet_ntoa=no
5905fi 5938fi
5906
5907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5939rm -f core conftest.err conftest.$ac_objext \
5908 conftest$ac_exeext conftest.$ac_ext 5940 conftest$ac_exeext conftest.$ac_ext
5909LIBS=$ac_check_lib_save_LIBS 5941LIBS=$ac_check_lib_save_LIBS
5910fi 5942fi
5911{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 5943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5912echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 5944$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5913if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 5945if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
5914 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 5946 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5915fi 5947fi
5916 5948
5917 fi 5949 fi
5918fi 5950fi
5919
5920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5951rm -f core conftest.err conftest.$ac_objext \
5921 conftest$ac_exeext conftest.$ac_ext 5952 conftest$ac_exeext conftest.$ac_ext
5922 LIBS="$ac_xsave_LIBS" 5953 LIBS="$ac_xsave_LIBS"
5923 5954
5924 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 5955 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5925 # to get the SysV transport functions. 5956 # to get the SysV transport functions.
5926 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 5957 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5927 # needs -lnsl. 5958 # needs -lnsl.
5928 # The nsl library prevents programs from opening the X display 5959 # The nsl library prevents programs from opening the X display
5929 # on Irix 5.2, according to T.E. Dickey. 5960 # on Irix 5.2, according to T.E. Dickey.
5930 # The functions gethostbyname, getservbyname, and inet_addr are 5961 # The functions gethostbyname, getservbyname, and inet_addr are
5931 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 5962 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5932 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5963 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5933echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5934if test "${ac_cv_func_gethostbyname+set}" = set; then 5964if test "x$ac_cv_func_gethostbyname" = x""yes; then :
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5936else
5937 cat >conftest.$ac_ext <<_ACEOF
5938/* confdefs.h. */
5939_ACEOF
5940cat confdefs.h >>conftest.$ac_ext
5941cat >>conftest.$ac_ext <<_ACEOF
5942/* end confdefs.h. */
5943/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5945#define gethostbyname innocuous_gethostbyname
5946 5965
5947/* System header to define __stub macros and hopefully few prototypes,
5948 which can conflict with char gethostbyname (); below.
5949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5950 <limits.h> exists even on freestanding compilers. */
5951
5952#ifdef __STDC__
5953# include <limits.h>
5954#else
5955# include <assert.h>
5956#endif
5957
5958#undef gethostbyname
5959
5960/* Override any GCC internal prototype to avoid an error.
5961 Use char because int might match the return type of a GCC
5962 builtin and then its argument prototype would still apply. */
5963#ifdef __cplusplus
5964extern "C"
5965#endif
5966char gethostbyname ();
5967/* The GNU C library defines this for functions which it implements
5968 to always fail with ENOSYS. Some functions are actually named
5969 something starting with __ and the normal name is an alias. */
5970#if defined __stub_gethostbyname || defined __stub___gethostbyname
5971choke me
5972#endif
5973
5974int
5975main ()
5976{
5977return gethostbyname ();
5978 ;
5979 return 0;
5980}
5981_ACEOF
5982rm -f conftest.$ac_objext conftest$ac_exeext
5983if { (ac_try="$ac_link"
5984case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987esac
5988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_link") 2>conftest.er1
5990 ac_status=$?
5991 grep -v '^ *+' conftest.er1 >conftest.err
5992 rm -f conftest.er1
5993 cat conftest.err >&5
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); } && {
5996 test -z "$ac_cxx_werror_flag" ||
5997 test ! -s conftest.err
5998 } && test -s conftest$ac_exeext &&
5999 $as_test_x conftest$ac_exeext; then
6000 ac_cv_func_gethostbyname=yes
6001else
6002 echo "$as_me: failed program was:" >&5
6003sed 's/^/| /' conftest.$ac_ext >&5
6004
6005 ac_cv_func_gethostbyname=no
6006fi 5966fi
6007
6008rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6009 conftest$ac_exeext conftest.$ac_ext
6010fi
6011{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
6012echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
6013 5967
6014 if test $ac_cv_func_gethostbyname = no; then 5968 if test $ac_cv_func_gethostbyname = no; then
6015 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6016echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5970$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6017if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 5971if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
6018 echo $ECHO_N "(cached) $ECHO_C" >&6 5972 $as_echo_n "(cached) " >&6
6019else 5973else
6020 ac_check_lib_save_LIBS=$LIBS 5974 ac_check_lib_save_LIBS=$LIBS
6021LIBS="-lnsl $LIBS" 5975LIBS="-lnsl $LIBS"
6022cat >conftest.$ac_ext <<_ACEOF
6023/* confdefs.h. */
6024_ACEOF
6025cat confdefs.h >>conftest.$ac_ext 5976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6026cat >>conftest.$ac_ext <<_ACEOF
6027/* end confdefs.h. */ 5977/* end confdefs.h. */
6028 5978
6029/* Override any GCC internal prototype to avoid an error. 5979/* Override any GCC internal prototype to avoid an error.
6030 Use char because int might match the return type of a GCC 5980 Use char because int might match the return type of a GCC
6031 builtin and then its argument prototype would still apply. */ 5981 builtin and then its argument prototype would still apply. */
6039return gethostbyname (); 5989return gethostbyname ();
6040 ; 5990 ;
6041 return 0; 5991 return 0;
6042} 5992}
6043_ACEOF 5993_ACEOF
6044rm -f conftest.$ac_objext conftest$ac_exeext 5994if ac_fn_cxx_try_link "$LINENO"; then :
6045if { (ac_try="$ac_link"
6046case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049esac
6050eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_link") 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } && {
6058 test -z "$ac_cxx_werror_flag" ||
6059 test ! -s conftest.err
6060 } && test -s conftest$ac_exeext &&
6061 $as_test_x conftest$ac_exeext; then
6062 ac_cv_lib_nsl_gethostbyname=yes 5995 ac_cv_lib_nsl_gethostbyname=yes
6063else 5996else
6064 echo "$as_me: failed program was:" >&5
6065sed 's/^/| /' conftest.$ac_ext >&5
6066
6067 ac_cv_lib_nsl_gethostbyname=no 5997 ac_cv_lib_nsl_gethostbyname=no
6068fi 5998fi
6069
6070rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5999rm -f core conftest.err conftest.$ac_objext \
6071 conftest$ac_exeext conftest.$ac_ext 6000 conftest$ac_exeext conftest.$ac_ext
6072LIBS=$ac_check_lib_save_LIBS 6001LIBS=$ac_check_lib_save_LIBS
6073fi 6002fi
6074{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 6003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
6075echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 6004$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6076if test $ac_cv_lib_nsl_gethostbyname = yes; then 6005if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
6077 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6006 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6078fi 6007fi
6079 6008
6080 if test $ac_cv_lib_nsl_gethostbyname = no; then 6009 if test $ac_cv_lib_nsl_gethostbyname = no; then
6081 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
6082echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 6011$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
6083if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 6012if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
6084 echo $ECHO_N "(cached) $ECHO_C" >&6 6013 $as_echo_n "(cached) " >&6
6085else 6014else
6086 ac_check_lib_save_LIBS=$LIBS 6015 ac_check_lib_save_LIBS=$LIBS
6087LIBS="-lbsd $LIBS" 6016LIBS="-lbsd $LIBS"
6088cat >conftest.$ac_ext <<_ACEOF
6089/* confdefs.h. */
6090_ACEOF
6091cat confdefs.h >>conftest.$ac_ext 6017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6092cat >>conftest.$ac_ext <<_ACEOF
6093/* end confdefs.h. */ 6018/* end confdefs.h. */
6094 6019
6095/* Override any GCC internal prototype to avoid an error. 6020/* Override any GCC internal prototype to avoid an error.
6096 Use char because int might match the return type of a GCC 6021 Use char because int might match the return type of a GCC
6097 builtin and then its argument prototype would still apply. */ 6022 builtin and then its argument prototype would still apply. */
6105return gethostbyname (); 6030return gethostbyname ();
6106 ; 6031 ;
6107 return 0; 6032 return 0;
6108} 6033}
6109_ACEOF 6034_ACEOF
6110rm -f conftest.$ac_objext conftest$ac_exeext 6035if ac_fn_cxx_try_link "$LINENO"; then :
6111if { (ac_try="$ac_link"
6112case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115esac
6116eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_link") 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } && {
6124 test -z "$ac_cxx_werror_flag" ||
6125 test ! -s conftest.err
6126 } && test -s conftest$ac_exeext &&
6127 $as_test_x conftest$ac_exeext; then
6128 ac_cv_lib_bsd_gethostbyname=yes 6036 ac_cv_lib_bsd_gethostbyname=yes
6129else 6037else
6130 echo "$as_me: failed program was:" >&5
6131sed 's/^/| /' conftest.$ac_ext >&5
6132
6133 ac_cv_lib_bsd_gethostbyname=no 6038 ac_cv_lib_bsd_gethostbyname=no
6134fi 6039fi
6135
6136rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6040rm -f core conftest.err conftest.$ac_objext \
6137 conftest$ac_exeext conftest.$ac_ext 6041 conftest$ac_exeext conftest.$ac_ext
6138LIBS=$ac_check_lib_save_LIBS 6042LIBS=$ac_check_lib_save_LIBS
6139fi 6043fi
6140{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 6044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6141echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 6045$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6142if test $ac_cv_lib_bsd_gethostbyname = yes; then 6046if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
6143 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6047 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6144fi 6048fi
6145 6049
6146 fi 6050 fi
6147 fi 6051 fi
6151 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6055 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6152 # on later versions), says Simon Leinen: it contains gethostby* 6056 # on later versions), says Simon Leinen: it contains gethostby*
6153 # variants that don't use the name server (or something). -lsocket 6057 # variants that don't use the name server (or something). -lsocket
6154 # must be given before -lnsl if both are needed. We assume that 6058 # must be given before -lnsl if both are needed. We assume that
6155 # if connect needs -lnsl, so does gethostbyname. 6059 # if connect needs -lnsl, so does gethostbyname.
6156 { echo "$as_me:$LINENO: checking for connect" >&5 6060 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6157echo $ECHO_N "checking for connect... $ECHO_C" >&6; } 6061if test "x$ac_cv_func_connect" = x""yes; then :
6158if test "${ac_cv_func_connect+set}" = set; then
6159 echo $ECHO_N "(cached) $ECHO_C" >&6
6160else
6161 cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h. */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h. */
6167/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6169#define connect innocuous_connect
6170 6062
6171/* System header to define __stub macros and hopefully few prototypes,
6172 which can conflict with char connect (); below.
6173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6174 <limits.h> exists even on freestanding compilers. */
6175
6176#ifdef __STDC__
6177# include <limits.h>
6178#else
6179# include <assert.h>
6180#endif
6181
6182#undef connect
6183
6184/* Override any GCC internal prototype to avoid an error.
6185 Use char because int might match the return type of a GCC
6186 builtin and then its argument prototype would still apply. */
6187#ifdef __cplusplus
6188extern "C"
6189#endif
6190char connect ();
6191/* The GNU C library defines this for functions which it implements
6192 to always fail with ENOSYS. Some functions are actually named
6193 something starting with __ and the normal name is an alias. */
6194#if defined __stub_connect || defined __stub___connect
6195choke me
6196#endif
6197
6198int
6199main ()
6200{
6201return connect ();
6202 ;
6203 return 0;
6204}
6205_ACEOF
6206rm -f conftest.$ac_objext conftest$ac_exeext
6207if { (ac_try="$ac_link"
6208case "(($ac_try" in
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6211esac
6212eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_link") 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } && {
6220 test -z "$ac_cxx_werror_flag" ||
6221 test ! -s conftest.err
6222 } && test -s conftest$ac_exeext &&
6223 $as_test_x conftest$ac_exeext; then
6224 ac_cv_func_connect=yes
6225else
6226 echo "$as_me: failed program was:" >&5
6227sed 's/^/| /' conftest.$ac_ext >&5
6228
6229 ac_cv_func_connect=no
6230fi 6063fi
6231
6232rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6233 conftest$ac_exeext conftest.$ac_ext
6234fi
6235{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6236echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6237 6064
6238 if test $ac_cv_func_connect = no; then 6065 if test $ac_cv_func_connect = no; then
6239 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 6066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6240echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 6067$as_echo_n "checking for connect in -lsocket... " >&6; }
6241if test "${ac_cv_lib_socket_connect+set}" = set; then 6068if test "${ac_cv_lib_socket_connect+set}" = set; then :
6242 echo $ECHO_N "(cached) $ECHO_C" >&6 6069 $as_echo_n "(cached) " >&6
6243else 6070else
6244 ac_check_lib_save_LIBS=$LIBS 6071 ac_check_lib_save_LIBS=$LIBS
6245LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6072LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6246cat >conftest.$ac_ext <<_ACEOF
6247/* confdefs.h. */
6248_ACEOF
6249cat confdefs.h >>conftest.$ac_ext 6073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6250cat >>conftest.$ac_ext <<_ACEOF
6251/* end confdefs.h. */ 6074/* end confdefs.h. */
6252 6075
6253/* Override any GCC internal prototype to avoid an error. 6076/* Override any GCC internal prototype to avoid an error.
6254 Use char because int might match the return type of a GCC 6077 Use char because int might match the return type of a GCC
6255 builtin and then its argument prototype would still apply. */ 6078 builtin and then its argument prototype would still apply. */
6263return connect (); 6086return connect ();
6264 ; 6087 ;
6265 return 0; 6088 return 0;
6266} 6089}
6267_ACEOF 6090_ACEOF
6268rm -f conftest.$ac_objext conftest$ac_exeext 6091if ac_fn_cxx_try_link "$LINENO"; then :
6269if { (ac_try="$ac_link"
6270case "(($ac_try" in
6271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6272 *) ac_try_echo=$ac_try;;
6273esac
6274eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6275 (eval "$ac_link") 2>conftest.er1
6276 ac_status=$?
6277 grep -v '^ *+' conftest.er1 >conftest.err
6278 rm -f conftest.er1
6279 cat conftest.err >&5
6280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6281 (exit $ac_status); } && {
6282 test -z "$ac_cxx_werror_flag" ||
6283 test ! -s conftest.err
6284 } && test -s conftest$ac_exeext &&
6285 $as_test_x conftest$ac_exeext; then
6286 ac_cv_lib_socket_connect=yes 6092 ac_cv_lib_socket_connect=yes
6287else 6093else
6288 echo "$as_me: failed program was:" >&5
6289sed 's/^/| /' conftest.$ac_ext >&5
6290
6291 ac_cv_lib_socket_connect=no 6094 ac_cv_lib_socket_connect=no
6292fi 6095fi
6293
6294rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6096rm -f core conftest.err conftest.$ac_objext \
6295 conftest$ac_exeext conftest.$ac_ext 6097 conftest$ac_exeext conftest.$ac_ext
6296LIBS=$ac_check_lib_save_LIBS 6098LIBS=$ac_check_lib_save_LIBS
6297fi 6099fi
6298{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 6100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6299echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 6101$as_echo "$ac_cv_lib_socket_connect" >&6; }
6300if test $ac_cv_lib_socket_connect = yes; then 6102if test "x$ac_cv_lib_socket_connect" = x""yes; then :
6301 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6103 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6302fi 6104fi
6303 6105
6304 fi 6106 fi
6305 6107
6306 # Guillermo Gomez says -lposix is necessary on A/UX. 6108 # Guillermo Gomez says -lposix is necessary on A/UX.
6307 { echo "$as_me:$LINENO: checking for remove" >&5 6109 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6308echo $ECHO_N "checking for remove... $ECHO_C" >&6; } 6110if test "x$ac_cv_func_remove" = x""yes; then :
6309if test "${ac_cv_func_remove+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311else
6312 cat >conftest.$ac_ext <<_ACEOF
6313/* confdefs.h. */
6314_ACEOF
6315cat confdefs.h >>conftest.$ac_ext
6316cat >>conftest.$ac_ext <<_ACEOF
6317/* end confdefs.h. */
6318/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6320#define remove innocuous_remove
6321 6111
6322/* System header to define __stub macros and hopefully few prototypes,
6323 which can conflict with char remove (); below.
6324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6325 <limits.h> exists even on freestanding compilers. */
6326
6327#ifdef __STDC__
6328# include <limits.h>
6329#else
6330# include <assert.h>
6331#endif
6332
6333#undef remove
6334
6335/* Override any GCC internal prototype to avoid an error.
6336 Use char because int might match the return type of a GCC
6337 builtin and then its argument prototype would still apply. */
6338#ifdef __cplusplus
6339extern "C"
6340#endif
6341char remove ();
6342/* The GNU C library defines this for functions which it implements
6343 to always fail with ENOSYS. Some functions are actually named
6344 something starting with __ and the normal name is an alias. */
6345#if defined __stub_remove || defined __stub___remove
6346choke me
6347#endif
6348
6349int
6350main ()
6351{
6352return remove ();
6353 ;
6354 return 0;
6355}
6356_ACEOF
6357rm -f conftest.$ac_objext conftest$ac_exeext
6358if { (ac_try="$ac_link"
6359case "(($ac_try" in
6360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6361 *) ac_try_echo=$ac_try;;
6362esac
6363eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6364 (eval "$ac_link") 2>conftest.er1
6365 ac_status=$?
6366 grep -v '^ *+' conftest.er1 >conftest.err
6367 rm -f conftest.er1
6368 cat conftest.err >&5
6369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6370 (exit $ac_status); } && {
6371 test -z "$ac_cxx_werror_flag" ||
6372 test ! -s conftest.err
6373 } && test -s conftest$ac_exeext &&
6374 $as_test_x conftest$ac_exeext; then
6375 ac_cv_func_remove=yes
6376else
6377 echo "$as_me: failed program was:" >&5
6378sed 's/^/| /' conftest.$ac_ext >&5
6379
6380 ac_cv_func_remove=no
6381fi 6112fi
6382
6383rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6384 conftest$ac_exeext conftest.$ac_ext
6385fi
6386{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6387echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6388 6113
6389 if test $ac_cv_func_remove = no; then 6114 if test $ac_cv_func_remove = no; then
6390 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6391echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 6116$as_echo_n "checking for remove in -lposix... " >&6; }
6392if test "${ac_cv_lib_posix_remove+set}" = set; then 6117if test "${ac_cv_lib_posix_remove+set}" = set; then :
6393 echo $ECHO_N "(cached) $ECHO_C" >&6 6118 $as_echo_n "(cached) " >&6
6394else 6119else
6395 ac_check_lib_save_LIBS=$LIBS 6120 ac_check_lib_save_LIBS=$LIBS
6396LIBS="-lposix $LIBS" 6121LIBS="-lposix $LIBS"
6397cat >conftest.$ac_ext <<_ACEOF
6398/* confdefs.h. */
6399_ACEOF
6400cat confdefs.h >>conftest.$ac_ext 6122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6401cat >>conftest.$ac_ext <<_ACEOF
6402/* end confdefs.h. */ 6123/* end confdefs.h. */
6403 6124
6404/* Override any GCC internal prototype to avoid an error. 6125/* Override any GCC internal prototype to avoid an error.
6405 Use char because int might match the return type of a GCC 6126 Use char because int might match the return type of a GCC
6406 builtin and then its argument prototype would still apply. */ 6127 builtin and then its argument prototype would still apply. */
6414return remove (); 6135return remove ();
6415 ; 6136 ;
6416 return 0; 6137 return 0;
6417} 6138}
6418_ACEOF 6139_ACEOF
6419rm -f conftest.$ac_objext conftest$ac_exeext 6140if ac_fn_cxx_try_link "$LINENO"; then :
6420if { (ac_try="$ac_link"
6421case "(($ac_try" in
6422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6423 *) ac_try_echo=$ac_try;;
6424esac
6425eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6426 (eval "$ac_link") 2>conftest.er1
6427 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 (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 ac_cv_lib_posix_remove=yes 6141 ac_cv_lib_posix_remove=yes
6438else 6142else
6439 echo "$as_me: failed program was:" >&5
6440sed 's/^/| /' conftest.$ac_ext >&5
6441
6442 ac_cv_lib_posix_remove=no 6143 ac_cv_lib_posix_remove=no
6443fi 6144fi
6444
6445rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6145rm -f core conftest.err conftest.$ac_objext \
6446 conftest$ac_exeext conftest.$ac_ext 6146 conftest$ac_exeext conftest.$ac_ext
6447LIBS=$ac_check_lib_save_LIBS 6147LIBS=$ac_check_lib_save_LIBS
6448fi 6148fi
6449{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 6149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6450echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 6150$as_echo "$ac_cv_lib_posix_remove" >&6; }
6451if test $ac_cv_lib_posix_remove = yes; then 6151if test "x$ac_cv_lib_posix_remove" = x""yes; then :
6452 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6152 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6453fi 6153fi
6454 6154
6455 fi 6155 fi
6456 6156
6457 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6157 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6458 { echo "$as_me:$LINENO: checking for shmat" >&5 6158 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6459echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } 6159if test "x$ac_cv_func_shmat" = x""yes; then :
6460if test "${ac_cv_func_shmat+set}" = set; then
6461 echo $ECHO_N "(cached) $ECHO_C" >&6
6462else
6463 cat >conftest.$ac_ext <<_ACEOF
6464/* confdefs.h. */
6465_ACEOF
6466cat confdefs.h >>conftest.$ac_ext
6467cat >>conftest.$ac_ext <<_ACEOF
6468/* end confdefs.h. */
6469/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6470 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6471#define shmat innocuous_shmat
6472 6160
6473/* System header to define __stub macros and hopefully few prototypes,
6474 which can conflict with char shmat (); below.
6475 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6476 <limits.h> exists even on freestanding compilers. */
6477
6478#ifdef __STDC__
6479# include <limits.h>
6480#else
6481# include <assert.h>
6482#endif
6483
6484#undef shmat
6485
6486/* Override any GCC internal prototype to avoid an error.
6487 Use char because int might match the return type of a GCC
6488 builtin and then its argument prototype would still apply. */
6489#ifdef __cplusplus
6490extern "C"
6491#endif
6492char shmat ();
6493/* The GNU C library defines this for functions which it implements
6494 to always fail with ENOSYS. Some functions are actually named
6495 something starting with __ and the normal name is an alias. */
6496#if defined __stub_shmat || defined __stub___shmat
6497choke me
6498#endif
6499
6500int
6501main ()
6502{
6503return shmat ();
6504 ;
6505 return 0;
6506}
6507_ACEOF
6508rm -f conftest.$ac_objext conftest$ac_exeext
6509if { (ac_try="$ac_link"
6510case "(($ac_try" in
6511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6513esac
6514eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_link") 2>conftest.er1
6516 ac_status=$?
6517 grep -v '^ *+' conftest.er1 >conftest.err
6518 rm -f conftest.er1
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } && {
6522 test -z "$ac_cxx_werror_flag" ||
6523 test ! -s conftest.err
6524 } && test -s conftest$ac_exeext &&
6525 $as_test_x conftest$ac_exeext; then
6526 ac_cv_func_shmat=yes
6527else
6528 echo "$as_me: failed program was:" >&5
6529sed 's/^/| /' conftest.$ac_ext >&5
6530
6531 ac_cv_func_shmat=no
6532fi 6161fi
6533
6534rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6535 conftest$ac_exeext conftest.$ac_ext
6536fi
6537{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6538echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6539 6162
6540 if test $ac_cv_func_shmat = no; then 6163 if test $ac_cv_func_shmat = no; then
6541 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 6164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6542echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 6165$as_echo_n "checking for shmat in -lipc... " >&6; }
6543if test "${ac_cv_lib_ipc_shmat+set}" = set; then 6166if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
6544 echo $ECHO_N "(cached) $ECHO_C" >&6 6167 $as_echo_n "(cached) " >&6
6545else 6168else
6546 ac_check_lib_save_LIBS=$LIBS 6169 ac_check_lib_save_LIBS=$LIBS
6547LIBS="-lipc $LIBS" 6170LIBS="-lipc $LIBS"
6548cat >conftest.$ac_ext <<_ACEOF
6549/* confdefs.h. */
6550_ACEOF
6551cat confdefs.h >>conftest.$ac_ext 6171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6552cat >>conftest.$ac_ext <<_ACEOF
6553/* end confdefs.h. */ 6172/* end confdefs.h. */
6554 6173
6555/* Override any GCC internal prototype to avoid an error. 6174/* Override any GCC internal prototype to avoid an error.
6556 Use char because int might match the return type of a GCC 6175 Use char because int might match the return type of a GCC
6557 builtin and then its argument prototype would still apply. */ 6176 builtin and then its argument prototype would still apply. */
6565return shmat (); 6184return shmat ();
6566 ; 6185 ;
6567 return 0; 6186 return 0;
6568} 6187}
6569_ACEOF 6188_ACEOF
6570rm -f conftest.$ac_objext conftest$ac_exeext 6189if ac_fn_cxx_try_link "$LINENO"; then :
6571if { (ac_try="$ac_link"
6572case "(($ac_try" in
6573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6574 *) ac_try_echo=$ac_try;;
6575esac
6576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6577 (eval "$ac_link") 2>conftest.er1
6578 ac_status=$?
6579 grep -v '^ *+' conftest.er1 >conftest.err
6580 rm -f conftest.er1
6581 cat conftest.err >&5
6582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6583 (exit $ac_status); } && {
6584 test -z "$ac_cxx_werror_flag" ||
6585 test ! -s conftest.err
6586 } && test -s conftest$ac_exeext &&
6587 $as_test_x conftest$ac_exeext; then
6588 ac_cv_lib_ipc_shmat=yes 6190 ac_cv_lib_ipc_shmat=yes
6589else 6191else
6590 echo "$as_me: failed program was:" >&5
6591sed 's/^/| /' conftest.$ac_ext >&5
6592
6593 ac_cv_lib_ipc_shmat=no 6192 ac_cv_lib_ipc_shmat=no
6594fi 6193fi
6595
6596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6194rm -f core conftest.err conftest.$ac_objext \
6597 conftest$ac_exeext conftest.$ac_ext 6195 conftest$ac_exeext conftest.$ac_ext
6598LIBS=$ac_check_lib_save_LIBS 6196LIBS=$ac_check_lib_save_LIBS
6599fi 6197fi
6600{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 6198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6601echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 6199$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6602if test $ac_cv_lib_ipc_shmat = yes; then 6200if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
6603 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6201 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6604fi 6202fi
6605 6203
6606 fi 6204 fi
6607 fi 6205 fi
6613 # check for ICE first), but we must link in the order -lSM -lICE or 6211 # check for ICE first), but we must link in the order -lSM -lICE or
6614 # we get undefined symbols. So assume we have SM if we have ICE. 6212 # we get undefined symbols. So assume we have SM if we have ICE.
6615 # These have to be linked with before -lX11, unlike the other 6213 # These have to be linked with before -lX11, unlike the other
6616 # libraries we check for below, so use a different variable. 6214 # libraries we check for below, so use a different variable.
6617 # John Interrante, Karl Berry 6215 # John Interrante, Karl Berry
6618 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6619echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 6217$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6620if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 6218if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
6621 echo $ECHO_N "(cached) $ECHO_C" >&6 6219 $as_echo_n "(cached) " >&6
6622else 6220else
6623 ac_check_lib_save_LIBS=$LIBS 6221 ac_check_lib_save_LIBS=$LIBS
6624LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6222LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6625cat >conftest.$ac_ext <<_ACEOF
6626/* confdefs.h. */
6627_ACEOF
6628cat confdefs.h >>conftest.$ac_ext 6223cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6629cat >>conftest.$ac_ext <<_ACEOF
6630/* end confdefs.h. */ 6224/* end confdefs.h. */
6631 6225
6632/* Override any GCC internal prototype to avoid an error. 6226/* Override any GCC internal prototype to avoid an error.
6633 Use char because int might match the return type of a GCC 6227 Use char because int might match the return type of a GCC
6634 builtin and then its argument prototype would still apply. */ 6228 builtin and then its argument prototype would still apply. */
6642return IceConnectionNumber (); 6236return IceConnectionNumber ();
6643 ; 6237 ;
6644 return 0; 6238 return 0;
6645} 6239}
6646_ACEOF 6240_ACEOF
6647rm -f conftest.$ac_objext conftest$ac_exeext 6241if ac_fn_cxx_try_link "$LINENO"; then :
6648if { (ac_try="$ac_link" 6242 ac_cv_lib_ICE_IceConnectionNumber=yes
6649case "(($ac_try" in 6243else
6650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6244 ac_cv_lib_ICE_IceConnectionNumber=no
6651 *) ac_try_echo=$ac_try;; 6245fi
6246rm -f core conftest.err conftest.$ac_objext \
6247 conftest$ac_exeext conftest.$ac_ext
6248LIBS=$ac_check_lib_save_LIBS
6249fi
6250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6251$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6252if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
6253 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6254fi
6255
6256 LDFLAGS=$ac_save_LDFLAGS
6257
6258fi
6259
6260
6261STARTUP_NOTIFICATION_CFLAGS=
6262STARTUP_NOTIFICATION_LIBS=
6263
6264if test x$support_startup_notification = xyes; then
6265 support_startup_notification=no
6266 # Extract the first word of "pkg-config", so it can be a program name with args.
6267set dummy pkg-config; ac_word=$2
6268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6269$as_echo_n "checking for $ac_word... " >&6; }
6270if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6271 $as_echo_n "(cached) " >&6
6272else
6273 case $PKG_CONFIG in
6274 [\\/]* | ?:[\\/]*)
6275 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6276 ;;
6277 *)
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279for as_dir in $PATH
6280do
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6285 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 break 2
6288 fi
6289done
6290 done
6291IFS=$as_save_IFS
6292
6293 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6294 ;;
6652esac 6295esac
6653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6654 (eval "$ac_link") 2>conftest.er1
6655 ac_status=$?
6656 grep -v '^ *+' conftest.er1 >conftest.err
6657 rm -f conftest.er1
6658 cat conftest.err >&5
6659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6660 (exit $ac_status); } && {
6661 test -z "$ac_cxx_werror_flag" ||
6662 test ! -s conftest.err
6663 } && test -s conftest$ac_exeext &&
6664 $as_test_x conftest$ac_exeext; then
6665 ac_cv_lib_ICE_IceConnectionNumber=yes
6666else
6667 echo "$as_me: failed program was:" >&5
6668sed 's/^/| /' conftest.$ac_ext >&5
6669
6670 ac_cv_lib_ICE_IceConnectionNumber=no
6671fi 6296fi
6672 6297PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6673rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6298if test -n "$PKG_CONFIG"; then
6674 conftest$ac_exeext conftest.$ac_ext 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6675LIBS=$ac_check_lib_save_LIBS 6300$as_echo "$PKG_CONFIG" >&6; }
6676fi
6677{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6678echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6679if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6680 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6681fi
6682
6683 LDFLAGS=$ac_save_LDFLAGS
6684
6685fi
6686
6687
6688
6689if test x$support_xpm = xyes; then
6690
6691
6692
6693# Initialize some more variables set by options.
6694# The variables have the same names as the options, with
6695# dashes changed to underlines.
6696
6697# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6698# paths, otherwise set no_xpm=yes.
6699# Uses ac_ vars as temps to allow command line to override cache and checks.
6700{ echo "$as_me:$LINENO: checking for libXpm" >&5
6701echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; }
6702
6703
6704# Check whether --with-xpm_includes was given.
6705if test "${with_xpm_includes+set}" = set; then
6706 withval=$with_xpm_includes; xpm_includes="$withval"
6707else 6301else
6708 xpm_includes=NO 6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6303$as_echo "no" >&6; }
6709fi 6304fi
6710 6305
6711 6306
6712# Check whether --with-xpm_library was given. 6307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5
6713if test "${with_xpm_library+set}" = set; then 6308$as_echo_n "checking for libstartup-notification... " >&6; }
6714 withval=$with_xpm_library; xpm_libraries="$withval" 6309 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
6715else 6310 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`"
6716 xpm_libraries=NO 6311 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`"
6717fi 6312 support_startup_notification=yes
6313 fi
6718 6314
6315 if test x$support_startup_notification = xyes; then
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6317$as_echo "ok" >&6; }
6719 6318
6720# --without-xpm overrides everything else, but does not touch the cache. 6319$as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
6721 6320
6722# Check whether --with-xpm was given.
6723if test "${with_xpm+set}" = set; then
6724 withval=$with_xpm;
6725fi
6726
6727if test "$with_xpm" = no; then
6728 have_xpm=disabled
6729else
6730 if test "${ac_cv_have_xpm+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6732else
6733
6734 vt_xpm_include_X11=no
6735 if test -n "$xpm_includes"; then
6736 vt_xpm_includes=$xpm_includes
6737 else 6321 else
6738 vt_xpm_includes=NO 6322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6323$as_echo "no" >&6; }
6739 fi 6324 fi
6740 if test -n "$xpm_libraries"; then 6325fi
6741 vt_xpm_libraries=$xpm_libraries 6326
6327
6328
6329
6330for ac_header in \
6331 sys/byteorder.h \
6332 sys/ioctl.h \
6333 sys/sockio.h \
6334 sys/strredir.h \
6335 stdint.h \
6336 wchar.h \
6337
6338do :
6339 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6340ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6341if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6342 cat >>confdefs.h <<_ACEOF
6343#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6344_ACEOF
6345
6346fi
6347
6348done
6349
6350
6351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6352$as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6353if test "${rxvt_cv_xlib_illegal_access+set}" = set; then :
6354 $as_echo_n "(cached) " >&6
6742 else 6355else
6743 vt_xpm_libraries=NO
6744 fi
6745
6746 if test "$vt_xpm_includes" = NO; then
6747 # Guess where to find xpm.h
6748
6749ac_save_CPPFLAGS="$CPPFLAGS"
6750CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6751
6752 # First, try using that file with no special directory specified.
6753cat >conftest.$ac_ext <<_ACEOF
6754/* confdefs.h. */
6755_ACEOF
6756cat confdefs.h >>conftest.$ac_ext 6356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6757cat >>conftest.$ac_ext <<_ACEOF
6758/* end confdefs.h. */ 6357/* end confdefs.h. */
6358
6359#define XLIB_ILLEGAL_ACCESS
6759#include <X11/xpm.h> 6360#include <X11/Xlib.h>
6760_ACEOF
6761if { (ac_try="$ac_cpp conftest.$ac_ext"
6762case "(($ac_try" in
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6765esac
6766eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } >/dev/null && {
6774 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6775 test ! -s conftest.err
6776 }; then
6777 # We can compile using X headers with no special include directory.
6778vt_xpm_includes=
6779vt_xpm_include_X11=yes
6780else
6781 echo "$as_me: failed program was:" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5
6783
6784 CPPFLAGS="$ac_save_CPPFLAGS"
6785# Look for the header file in a standard set of common directories.
6786 for ac_dir in \
6787 /usr/X11/include \
6788 /usr/X11R6/include \
6789 /usr/X11R5/include \
6790 /usr/X11R4/include \
6791 \
6792 /usr/include/X11 \
6793 /usr/include/X11R6 \
6794 /usr/include/X11R5 \
6795 /usr/include/X11R4 \
6796 \
6797 /usr/local/X11/include \
6798 /usr/local/X11R6/include \
6799 /usr/local/X11R5/include \
6800 /usr/local/X11R4/include \
6801 \
6802 /usr/local/include/X11 \
6803 /usr/local/include/X11R6 \
6804 /usr/local/include/X11R5 \
6805 /usr/local/include/X11R4 \
6806 \
6807 /usr/X386/include \
6808 /usr/x386/include \
6809 /usr/XFree86/include/X11 \
6810 \
6811 /usr/include \
6812 /usr/local/include \
6813 /usr/unsupported/include \
6814 /usr/athena/include \
6815 /usr/local/x11r5/include \
6816 /usr/lpp/Xamples/include \
6817 \
6818 /usr/openwin/include \
6819 /usr/openwin/share/include \
6820 ; \
6821 do
6822 if test -r "$ac_dir/X11/xpm.h"; then
6823 vt_xpm_includes="$ac_dir"
6824 vt_xpm_include_X11=yes
6825 break
6826 else
6827 if test -r "$ac_dir/xpm.h"; then
6828 vt_xpm_includes=$ac_dir
6829 break
6830 fi
6831 fi
6832 done
6833fi
6834
6835rm -f conftest.err conftest.$ac_ext
6836fi
6837
6838if test "$vt_xpm_libraries" = NO; then
6839 # Check for the libraries.
6840
6841 # See if we find them without any special options.
6842 # Don't add to $LIBS permanently.
6843 ac_save_LIBS="$LIBS"
6844 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6845cat >conftest.$ac_ext <<_ACEOF
6846/* confdefs.h. */
6847_ACEOF
6848cat confdefs.h >>conftest.$ac_ext
6849cat >>conftest.$ac_ext <<_ACEOF
6850/* end confdefs.h. */
6851 6361
6852int 6362int
6853main () 6363main ()
6854{ 6364{
6855XpmReadFileToPixmap() 6365
6366 Display *dpy;
6367 dpy->xdefaults = (char *)0;
6368
6856 ; 6369 ;
6857 return 0; 6370 return 0;
6858} 6371}
6859_ACEOF 6372_ACEOF
6860rm -f conftest.$ac_objext conftest$ac_exeext 6373if ac_fn_cxx_try_compile "$LINENO"; then :
6861if { (ac_try="$ac_link" 6374 rxvt_cv_xlib_illegal_access=yes
6862case "(($ac_try" in
6863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6864 *) ac_try_echo=$ac_try;;
6865esac
6866eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6867 (eval "$ac_link") 2>conftest.er1
6868 ac_status=$?
6869 grep -v '^ *+' conftest.er1 >conftest.err
6870 rm -f conftest.er1
6871 cat conftest.err >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); } && {
6874 test -z "$ac_cxx_werror_flag" ||
6875 test ! -s conftest.err
6876 } && test -s conftest$ac_exeext &&
6877 $as_test_x conftest$ac_exeext; then
6878 LIBS="$ac_save_LIBS"
6879# We can link libXpm with no special library path.
6880vt_xpm_libraries=
6881else 6375else
6882 echo "$as_me: failed program was:" >&5 6376 rxvt_cv_xlib_illegal_access=no
6883sed 's/^/| /' conftest.$ac_ext >&5
6884 6377
6885 LIBS="$ac_save_LIBS"
6886# First see if replacing the include by lib works.
6887for ac_dir in \
6888 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6889 /usr/X11/lib \
6890 /usr/X11R6/lib \
6891 /usr/X11R5/lib \
6892 /usr/X11R4/lib \
6893 \
6894 /usr/lib/X11 \
6895 /usr/lib/X11R6 \
6896 /usr/lib/X11R5 \
6897 /usr/lib/X11R4 \
6898 \
6899 /usr/local/X11/lib \
6900 /usr/local/X11R6/lib \
6901 /usr/local/X11R5/lib \
6902 /usr/local/X11R4/lib \
6903 \
6904 /usr/local/lib/X11 \
6905 /usr/local/lib/X11R6 \
6906 /usr/local/lib/X11R5 \
6907 /usr/local/lib/X11R4 \
6908 \
6909 /usr/X386/lib \
6910 /usr/x386/lib \
6911 /usr/XFree86/lib/X11 \
6912 \
6913 /usr/lib \
6914 /usr/local/lib \
6915 /usr/unsupported/lib \
6916 /usr/athena/lib \
6917 /usr/local/x11r5/lib \
6918 /usr/lpp/Xamples/lib \
6919 \
6920 /usr/openwin/lib \
6921 /usr/openwin/share/lib \
6922 ; \
6923do
6924 for ac_extension in a so sl; do
6925 if test -r $ac_dir/libXpm.$ac_extension; then
6926 vt_xpm_libraries=$ac_dir
6927 break 2
6928 fi
6929 done
6930done
6931fi 6378fi
6932
6933rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6934 conftest$ac_exeext conftest.$ac_ext
6935fi 6380fi
6381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6382$as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6383if test x$rxvt_cv_xlib_illegal_access = xyes; then
6936 6384
6385$as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6937 6386
6938 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then 6387fi
6939 ac_cv_have_xpm="have_xpm=no" 6388
6389ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6390if test "x$ac_cv_type_mode_t" = x""yes; then :
6391
6940 else 6392else
6941 ac_cv_have_xpm="have_xpm=yes \
6942 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6943 vt_xpm_include_X11=$vt_xpm_include_X11"
6944 fi
6945fi
6946 eval "$ac_cv_have_xpm"
6947fi
6948 6393
6949if test "$have_xpm" != yes; then
6950 { echo "$as_me:$LINENO: result: $have_xpm" >&5
6951echo "${ECHO_T}$have_xpm" >&6; }
6952 no_xpm=yes
6953else
6954 if test "$xpm_includes" != NO; then
6955 if test "$xpm_includes" = "$vt_xpm_includes"; then
6956 if test -r "$xpm_includes/X11/xpm.h"; then
6957 vt_xpm_include_X11=yes
6958 fi
6959 else
6960 vt_xpm_include_X11=no
6961 if test -z "$xpm_includes"; then
6962 cat >conftest.$ac_ext <<_ACEOF
6963/* confdefs.h. */
6964_ACEOF
6965cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF
6967/* end confdefs.h. */
6968#include <X11/xpm.h>
6969_ACEOF
6970if { (ac_try="$ac_cpp conftest.$ac_ext"
6971case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6974esac
6975eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6977 ac_status=$?
6978 grep -v '^ *+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } >/dev/null && {
6983 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6984 test ! -s conftest.err
6985 }; then
6986 vt_xpm_include_X11=yes
6987else
6988 echo "$as_me: failed program was:" >&5
6989sed 's/^/| /' conftest.$ac_ext >&5
6990
6991
6992fi
6993
6994rm -f conftest.err conftest.$ac_ext
6995 else
6996 if test -r "$xpm_includes/X11/xpm.h"; then
6997 vt_xpm_include_X11=yes
6998 fi
6999 fi
7000 fi
7001 vt_xpm_includes=$xpm_includes
7002 fi
7003 if test "x$xpm_libraries" != xNO; then
7004 vt_xpm_libraries=$xpm_libraries
7005 fi
7006 # Update the cache value to reflect the command line values.
7007 ac_cv_have_xpm="have_xpm=yes \
7008 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
7009 vt_xpm_include_X11=$vt_xpm_include_X11"
7010 eval "$ac_cv_have_xpm"
7011 { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
7012echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; }
7013 if test -n "$vt_xpm_includes"; then
7014 XPM_CPPFLAGS="-DHAVE_LIBXPM"
7015 fi
7016 if test -n "$vt_xpm_includes"; then
7017 XPM_CFLAGS="-I$vt_xpm_includes"
7018 fi
7019 XPM_LIBS="-lXpm"
7020 if test -n "$vt_xpm_libraries"; then
7021 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
7022 fi
7023 if test "x$vt_xpm_include_X11" = xyes; then
7024
7025cat >>confdefs.h <<\_ACEOF 6394cat >>confdefs.h <<_ACEOF
7026#define XPM_INC_X11 1 6395#define mode_t int
7027_ACEOF 6396_ACEOF
7028 6397
7029 fi
7030fi 6398fi
7031 6399
6400ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6401if test "x$ac_cv_type_pid_t" = x""yes; then :
7032 6402
6403else
7033 6404
6405cat >>confdefs.h <<_ACEOF
6406#define pid_t int
6407_ACEOF
7034 6408
7035
7036 if test x$no_xpm = xyes; then
7037 support_xpm=needsmanualspecification
7038 fi
7039fi 6409fi
7040 6410
7041{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5 6411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
7042echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; } 6412$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
7043if test "${ac_cv_header_sys_wait_h+set}" = set; then 6413if test "${ac_cv_type_uid_t+set}" = set; then :
7044 echo $ECHO_N "(cached) $ECHO_C" >&6 6414 $as_echo_n "(cached) " >&6
7045else 6415else
7046 cat >conftest.$ac_ext <<_ACEOF
7047/* confdefs.h. */
7048_ACEOF
7049cat confdefs.h >>conftest.$ac_ext 6416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7050cat >>conftest.$ac_ext <<_ACEOF
7051/* end confdefs.h. */ 6417/* end confdefs.h. */
7052#include <sys/types.h> 6418#include <sys/types.h>
6419
6420_ACEOF
6421if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6422 $EGREP "uid_t" >/dev/null 2>&1; then :
6423 ac_cv_type_uid_t=yes
6424else
6425 ac_cv_type_uid_t=no
6426fi
6427rm -f conftest*
6428
6429fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6431$as_echo "$ac_cv_type_uid_t" >&6; }
6432if test $ac_cv_type_uid_t = no; then
6433
6434$as_echo "#define uid_t int" >>confdefs.h
6435
6436
6437$as_echo "#define gid_t int" >>confdefs.h
6438
6439fi
6440
6441ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6442case $ac_cv_c_int16_t in #(
6443 no|yes) ;; #(
6444 *)
6445
6446cat >>confdefs.h <<_ACEOF
6447#define int16_t $ac_cv_c_int16_t
6448_ACEOF
6449;;
6450esac
6451
6452ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6453case $ac_cv_c_uint16_t in #(
6454 no|yes) ;; #(
6455 *)
6456
6457
6458cat >>confdefs.h <<_ACEOF
6459#define uint16_t $ac_cv_c_uint16_t
6460_ACEOF
6461;;
6462 esac
6463
6464ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6465case $ac_cv_c_int32_t in #(
6466 no|yes) ;; #(
6467 *)
6468
6469cat >>confdefs.h <<_ACEOF
6470#define int32_t $ac_cv_c_int32_t
6471_ACEOF
6472;;
6473esac
6474
6475ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6476case $ac_cv_c_uint32_t in #(
6477 no|yes) ;; #(
6478 *)
6479
6480$as_echo "#define _UINT32_T 1" >>confdefs.h
6481
6482
6483cat >>confdefs.h <<_ACEOF
6484#define uint32_t $ac_cv_c_uint32_t
6485_ACEOF
6486;;
6487 esac
6488
6489
6490for ac_func in unsetenv
6491do :
6492 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6493if test "x$ac_cv_func_unsetenv" = x""yes; then :
6494 cat >>confdefs.h <<_ACEOF
6495#define HAVE_UNSETENV 1
6496_ACEOF
6497
6498fi
6499done
6500
6501
6502
6503support_utmp=yes
6504support_wtmp=yes
6505support_lastlog=yes
6506
6507# Check whether --enable-utmp was given.
6508if test "${enable_utmp+set}" = set; then :
6509 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
6510 support_utmp=$enableval
6511 fi
6512fi
6513
6514
6515# Check whether --enable-wtmp was given.
6516if test "${enable_wtmp+set}" = set; then :
6517 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
6518 support_wtmp=$enableval
6519 fi
6520fi
6521
6522
6523# Check whether --enable-lastlog was given.
6524if test "${enable_lastlog+set}" = set; then :
6525 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
6526 support_lastlog=$enableval
6527 fi
6528fi
6529
6530
6531if test x$support_utmp = xyes; then
6532
6533$as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
6534
6535fi
6536if test x$support_wtmp = xyes; then
6537
6538$as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
6539
6540fi
6541if test x$support_lastlog = xyes; then
6542
6543$as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
6544
6545fi
6546
6547for ac_func in \
6548 updwtmp \
6549 updwtmpx \
6550 updlastlogx \
6551
6552do :
6553 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6554ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6555if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6556 cat >>confdefs.h <<_ACEOF
6557#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6558_ACEOF
6559
6560fi
6561done
6562
6563
6564for ac_header in lastlog.h
6565do :
6566 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6567if test "x$ac_cv_header_lastlog_h" = x""yes; then :
6568 cat >>confdefs.h <<_ACEOF
6569#define HAVE_LASTLOG_H 1
6570_ACEOF
6571
6572fi
6573
6574done
6575
6576
6577case $host in
6578 *-*-solaris*)
6579
6580$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
6581
6582 ;;
6583esac
6584
6585
6586for ac_header in utmp.h
6587do :
6588 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6589if test "x$ac_cv_header_utmp_h" = x""yes; then :
6590 cat >>confdefs.h <<_ACEOF
6591#define HAVE_UTMP_H 1
6592_ACEOF
6593 ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
7053#include <sys/wait.h> 6594#include <sys/types.h>
7054#ifndef WEXITSTATUS 6595#include <utmp.h>
7055# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7056#endif
7057#ifndef WIFEXITED
7058# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7059#endif
7060 6596
6597"
6598if test "x$ac_cv_type_struct_utmp" = x""yes; then :
6599
6600cat >>confdefs.h <<_ACEOF
6601#define HAVE_STRUCT_UTMP 1
6602_ACEOF
6603
6604
6605fi
6606
6607
6608
6609# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
6610# ------------------------------------------------------
6611# Tries to find if the field MEMBER exists in type AGGR, after including
6612# INCLUDES, setting cache variable VAR accordingly.
6613ac_fn_cxx_check_member ()
6614{
6615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
6617$as_echo_n "checking for $2.$3... " >&6; }
6618if eval "test \"\${$4+set}\"" = set; then :
6619 $as_echo_n "(cached) " >&6
6620else
6621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622/* end confdefs.h. */
6623$5
7061int 6624int
7062main () 6625main ()
7063{ 6626{
7064 int s; 6627static $2 ac_aggr;
7065 wait (&s); 6628if (ac_aggr.$3)
7066 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7067 ;
7068 return 0;
7069}
7070_ACEOF
7071rm -f conftest.$ac_objext
7072if { (ac_try="$ac_compile"
7073case "(($ac_try" in
7074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7075 *) ac_try_echo=$ac_try;;
7076esac
7077eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7078 (eval "$ac_compile") 2>conftest.er1
7079 ac_status=$?
7080 grep -v '^ *+' conftest.er1 >conftest.err
7081 rm -f conftest.er1
7082 cat conftest.err >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); } && {
7085 test -z "$ac_cxx_werror_flag" ||
7086 test ! -s conftest.err
7087 } && test -s conftest.$ac_objext; then
7088 ac_cv_header_sys_wait_h=yes
7089else
7090 echo "$as_me: failed program was:" >&5
7091sed 's/^/| /' conftest.$ac_ext >&5
7092
7093 ac_cv_header_sys_wait_h=no
7094fi
7095
7096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7097fi
7098{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7099echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7100if test $ac_cv_header_sys_wait_h = yes; then
7101
7102cat >>confdefs.h <<\_ACEOF
7103#define HAVE_SYS_WAIT_H 1
7104_ACEOF
7105
7106fi
7107
7108{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7109echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7110if test "${ac_cv_header_stdc+set}" = set; then
7111 echo $ECHO_N "(cached) $ECHO_C" >&6
7112else
7113 cat >conftest.$ac_ext <<_ACEOF
7114/* confdefs.h. */
7115_ACEOF
7116cat confdefs.h >>conftest.$ac_ext
7117cat >>conftest.$ac_ext <<_ACEOF
7118/* end confdefs.h. */
7119#include <stdlib.h>
7120#include <stdarg.h>
7121#include <string.h>
7122#include <float.h>
7123
7124int
7125main ()
7126{
7127
7128 ;
7129 return 0;
7130}
7131_ACEOF
7132rm -f conftest.$ac_objext
7133if { (ac_try="$ac_compile"
7134case "(($ac_try" in
7135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7136 *) ac_try_echo=$ac_try;;
7137esac
7138eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7139 (eval "$ac_compile") 2>conftest.er1
7140 ac_status=$?
7141 grep -v '^ *+' conftest.er1 >conftest.err
7142 rm -f conftest.er1
7143 cat conftest.err >&5
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); } && {
7146 test -z "$ac_cxx_werror_flag" ||
7147 test ! -s conftest.err
7148 } && test -s conftest.$ac_objext; then
7149 ac_cv_header_stdc=yes
7150else
7151 echo "$as_me: failed program was:" >&5
7152sed 's/^/| /' conftest.$ac_ext >&5
7153
7154 ac_cv_header_stdc=no
7155fi
7156
7157rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7158
7159if test $ac_cv_header_stdc = yes; then
7160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7161 cat >conftest.$ac_ext <<_ACEOF
7162/* confdefs.h. */
7163_ACEOF
7164cat confdefs.h >>conftest.$ac_ext
7165cat >>conftest.$ac_ext <<_ACEOF
7166/* end confdefs.h. */
7167#include <string.h>
7168
7169_ACEOF
7170if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7171 $EGREP "memchr" >/dev/null 2>&1; then
7172 :
7173else
7174 ac_cv_header_stdc=no
7175fi
7176rm -f conftest*
7177
7178fi
7179
7180if test $ac_cv_header_stdc = yes; then
7181 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7182 cat >conftest.$ac_ext <<_ACEOF
7183/* confdefs.h. */
7184_ACEOF
7185cat confdefs.h >>conftest.$ac_ext
7186cat >>conftest.$ac_ext <<_ACEOF
7187/* end confdefs.h. */
7188#include <stdlib.h>
7189
7190_ACEOF
7191if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7192 $EGREP "free" >/dev/null 2>&1; then
7193 :
7194else
7195 ac_cv_header_stdc=no
7196fi
7197rm -f conftest*
7198
7199fi
7200
7201if test $ac_cv_header_stdc = yes; then
7202 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7203 if test "$cross_compiling" = yes; then
7204 :
7205else
7206 cat >conftest.$ac_ext <<_ACEOF
7207/* confdefs.h. */
7208_ACEOF
7209cat confdefs.h >>conftest.$ac_ext
7210cat >>conftest.$ac_ext <<_ACEOF
7211/* end confdefs.h. */
7212#include <ctype.h>
7213#include <stdlib.h>
7214#if ((' ' & 0x0FF) == 0x020)
7215# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7216# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7217#else
7218# define ISLOWER(c) \
7219 (('a' <= (c) && (c) <= 'i') \
7220 || ('j' <= (c) && (c) <= 'r') \
7221 || ('s' <= (c) && (c) <= 'z'))
7222# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7223#endif
7224
7225#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7226int
7227main ()
7228{
7229 int i;
7230 for (i = 0; i < 256; i++)
7231 if (XOR (islower (i), ISLOWER (i))
7232 || toupper (i) != TOUPPER (i))
7233 return 2;
7234 return 0;
7235}
7236_ACEOF
7237rm -f conftest$ac_exeext
7238if { (ac_try="$ac_link"
7239case "(($ac_try" in
7240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7241 *) ac_try_echo=$ac_try;;
7242esac
7243eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7244 (eval "$ac_link") 2>&5
7245 ac_status=$?
7246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7247 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7248 { (case "(($ac_try" in
7249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7250 *) ac_try_echo=$ac_try;;
7251esac
7252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7253 (eval "$ac_try") 2>&5
7254 ac_status=$?
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; }; then
7257 :
7258else
7259 echo "$as_me: program exited with status $ac_status" >&5
7260echo "$as_me: failed program was:" >&5
7261sed 's/^/| /' conftest.$ac_ext >&5
7262
7263( exit $ac_status )
7264ac_cv_header_stdc=no
7265fi
7266rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7267fi
7268
7269
7270fi
7271fi
7272{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7273echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7274if test $ac_cv_header_stdc = yes; then
7275
7276cat >>confdefs.h <<\_ACEOF
7277#define STDC_HEADERS 1
7278_ACEOF
7279
7280fi
7281
7282# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7283
7284
7285
7286
7287
7288
7289
7290
7291
7292for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7293 inttypes.h stdint.h unistd.h
7294do
7295as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7296{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7297echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7298if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7299 echo $ECHO_N "(cached) $ECHO_C" >&6
7300else
7301 cat >conftest.$ac_ext <<_ACEOF
7302/* confdefs.h. */
7303_ACEOF
7304cat confdefs.h >>conftest.$ac_ext
7305cat >>conftest.$ac_ext <<_ACEOF
7306/* end confdefs.h. */
7307$ac_includes_default
7308
7309#include <$ac_header>
7310_ACEOF
7311rm -f conftest.$ac_objext
7312if { (ac_try="$ac_compile"
7313case "(($ac_try" in
7314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7316esac
7317eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7319 ac_status=$?
7320 grep -v '^ *+' conftest.er1 >conftest.err
7321 rm -f conftest.er1
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_cxx_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 eval "$as_ac_Header=yes"
7329else
7330 echo "$as_me: failed program was:" >&5
7331sed 's/^/| /' conftest.$ac_ext >&5
7332
7333 eval "$as_ac_Header=no"
7334fi
7335
7336rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337fi
7338ac_res=`eval echo '${'$as_ac_Header'}'`
7339 { echo "$as_me:$LINENO: result: $ac_res" >&5
7340echo "${ECHO_T}$ac_res" >&6; }
7341if test `eval echo '${'$as_ac_Header'}'` = yes; then
7342 cat >>confdefs.h <<_ACEOF
7343#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7344_ACEOF
7345
7346fi
7347
7348done
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363
7364
7365
7366
7367
7368for ac_header in \
7369 assert.h \
7370 fcntl.h \
7371 stdarg.h \
7372 stdlib.h \
7373 string.h \
7374 termios.h \
7375 unistd.h \
7376 sys/byteorder.h \
7377 sys/ioctl.h \
7378 sys/select.h \
7379 sys/sockio.h \
7380 sys/strredir.h \
7381 sys/time.h \
7382 stdint.h \
7383 wchar.h \
7384 cwchar \
7385 clocale \
7386
7387do
7388as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7389if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7391echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7392if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394fi
7395ac_res=`eval echo '${'$as_ac_Header'}'`
7396 { echo "$as_me:$LINENO: result: $ac_res" >&5
7397echo "${ECHO_T}$ac_res" >&6; }
7398else
7399 # Is the header compilable?
7400{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7401echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7402cat >conftest.$ac_ext <<_ACEOF
7403/* confdefs.h. */
7404_ACEOF
7405cat confdefs.h >>conftest.$ac_ext
7406cat >>conftest.$ac_ext <<_ACEOF
7407/* end confdefs.h. */
7408$ac_includes_default
7409#include <$ac_header>
7410_ACEOF
7411rm -f conftest.$ac_objext
7412if { (ac_try="$ac_compile"
7413case "(($ac_try" in
7414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7415 *) ac_try_echo=$ac_try;;
7416esac
7417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7418 (eval "$ac_compile") 2>conftest.er1
7419 ac_status=$?
7420 grep -v '^ *+' conftest.er1 >conftest.err
7421 rm -f conftest.er1
7422 cat conftest.err >&5
7423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7424 (exit $ac_status); } && {
7425 test -z "$ac_cxx_werror_flag" ||
7426 test ! -s conftest.err
7427 } && test -s conftest.$ac_objext; then
7428 ac_header_compiler=yes
7429else
7430 echo "$as_me: failed program was:" >&5
7431sed 's/^/| /' conftest.$ac_ext >&5
7432
7433 ac_header_compiler=no
7434fi
7435
7436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7438echo "${ECHO_T}$ac_header_compiler" >&6; }
7439
7440# Is the header present?
7441{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7442echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7443cat >conftest.$ac_ext <<_ACEOF
7444/* confdefs.h. */
7445_ACEOF
7446cat confdefs.h >>conftest.$ac_ext
7447cat >>conftest.$ac_ext <<_ACEOF
7448/* end confdefs.h. */
7449#include <$ac_header>
7450_ACEOF
7451if { (ac_try="$ac_cpp conftest.$ac_ext"
7452case "(($ac_try" in
7453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7454 *) ac_try_echo=$ac_try;;
7455esac
7456eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7457 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7458 ac_status=$?
7459 grep -v '^ *+' conftest.er1 >conftest.err
7460 rm -f conftest.er1
7461 cat conftest.err >&5
7462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7463 (exit $ac_status); } >/dev/null && {
7464 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7465 test ! -s conftest.err
7466 }; then
7467 ac_header_preproc=yes
7468else
7469 echo "$as_me: failed program was:" >&5
7470sed 's/^/| /' conftest.$ac_ext >&5
7471
7472 ac_header_preproc=no
7473fi
7474
7475rm -f conftest.err conftest.$ac_ext
7476{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7477echo "${ECHO_T}$ac_header_preproc" >&6; }
7478
7479# So? What about this header?
7480case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7481 yes:no: )
7482 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7483echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7485echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7486 ac_header_preproc=yes
7487 ;;
7488 no:yes:* )
7489 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7490echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7491 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7492echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7493 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7494echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7495 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7496echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7498echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7499 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7500echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7501
7502 ;;
7503esac
7504{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7505echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7507 echo $ECHO_N "(cached) $ECHO_C" >&6
7508else
7509 eval "$as_ac_Header=\$ac_header_preproc"
7510fi
7511ac_res=`eval echo '${'$as_ac_Header'}'`
7512 { echo "$as_me:$LINENO: result: $ac_res" >&5
7513echo "${ECHO_T}$ac_res" >&6; }
7514
7515fi
7516if test `eval echo '${'$as_ac_Header'}'` = yes; then
7517 cat >>confdefs.h <<_ACEOF
7518#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7519_ACEOF
7520
7521fi
7522
7523done
7524
7525
7526{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7527echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7528if test "${ac_cv_header_time+set}" = set; then
7529 echo $ECHO_N "(cached) $ECHO_C" >&6
7530else
7531 cat >conftest.$ac_ext <<_ACEOF
7532/* confdefs.h. */
7533_ACEOF
7534cat confdefs.h >>conftest.$ac_ext
7535cat >>conftest.$ac_ext <<_ACEOF
7536/* end confdefs.h. */
7537#include <sys/types.h>
7538#include <sys/time.h>
7539#include <time.h>
7540
7541int
7542main ()
7543{
7544if ((struct tm *) 0)
7545return 0; 6629return 0;
7546 ; 6630 ;
7547 return 0; 6631 return 0;
7548} 6632}
7549_ACEOF 6633_ACEOF
7550rm -f conftest.$ac_objext 6634if ac_fn_cxx_try_compile "$LINENO"; then :
7551if { (ac_try="$ac_compile" 6635 eval "$4=yes"
7552case "(($ac_try" in
7553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7554 *) ac_try_echo=$ac_try;;
7555esac
7556eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7557 (eval "$ac_compile") 2>conftest.er1
7558 ac_status=$?
7559 grep -v '^ *+' conftest.er1 >conftest.err
7560 rm -f conftest.er1
7561 cat conftest.err >&5
7562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7563 (exit $ac_status); } && {
7564 test -z "$ac_cxx_werror_flag" ||
7565 test ! -s conftest.err
7566 } && test -s conftest.$ac_objext; then
7567 ac_cv_header_time=yes
7568else 6636else
7569 echo "$as_me: failed program was:" >&5
7570sed 's/^/| /' conftest.$ac_ext >&5
7571
7572 ac_cv_header_time=no
7573fi
7574
7575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7576fi
7577{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7578echo "${ECHO_T}$ac_cv_header_time" >&6; }
7579if test $ac_cv_header_time = yes; then
7580
7581cat >>confdefs.h <<\_ACEOF
7582#define TIME_WITH_SYS_TIME 1
7583_ACEOF
7584
7585fi
7586
7587
7588{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7589echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7590if test "${rxvt_cv_header_sysioctl+set}" = set; then
7591 echo $ECHO_N "(cached) $ECHO_C" >&6
7592else
7593 cat >conftest.$ac_ext <<_ACEOF
7594/* confdefs.h. */
7595_ACEOF
7596cat confdefs.h >>conftest.$ac_ext 6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7597cat >>conftest.$ac_ext <<_ACEOF
7598/* end confdefs.h. */ 6638/* end confdefs.h. */
7599#include <stdio.h> 6639$5
7600#include <sys/ioctl.h>
7601#ifdef HAVE_TERMIOS_H
7602#include <termios.h>
7603#endif
7604int 6640int
7605main () 6641main ()
7606{ 6642{
7607int a = ECHO; 6643static $2 ac_aggr;
6644if (sizeof ac_aggr.$3)
6645return 0;
7608 ; 6646 ;
7609 return 0; 6647 return 0;
7610} 6648}
7611_ACEOF 6649_ACEOF
7612rm -f conftest.$ac_objext 6650if ac_fn_cxx_try_compile "$LINENO"; then :
7613if { (ac_try="$ac_compile" 6651 eval "$4=yes"
7614case "(($ac_try" in
7615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7616 *) ac_try_echo=$ac_try;;
7617esac
7618eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7619 (eval "$ac_compile") 2>conftest.er1
7620 ac_status=$?
7621 grep -v '^ *+' conftest.er1 >conftest.err
7622 rm -f conftest.er1
7623 cat conftest.err >&5
7624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7625 (exit $ac_status); } && {
7626 test -z "$ac_cxx_werror_flag" ||
7627 test ! -s conftest.err
7628 } && test -s conftest.$ac_objext; then
7629 rxvt_cv_header_sysioctl=yes
7630else 6652else
7631 echo "$as_me: failed program was:" >&5 6653 eval "$4=no"
7632sed 's/^/| /' conftest.$ac_ext >&5
7633
7634 rxvt_cv_header_sysioctl=no
7635fi 6654fi
7636
7637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6655rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7638fi 6656fi
7639{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7640echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7641
7642if test -n "$GCC"; then
7643 LDARG="-Wl,"
7644else
7645 LDARG=""
7646fi
7647R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7648
7649ac_save_CFLAGS=$CFLAGS
7650ac_save_LIBS=$LIBS
7651CFLAGS="$CFLAGS $X_CFLAGS"
7652LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7653{ echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7654echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6; }
7655if test "${rxvt_cv_rpath+set}" = set; then
7656 echo $ECHO_N "(cached) $ECHO_C" >&6
7657else
7658 if test "$cross_compiling" = yes; then
7659 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7660echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7661else
7662 cat >conftest.$ac_ext <<_ACEOF
7663/* confdefs.h. */
7664_ACEOF
7665cat confdefs.h >>conftest.$ac_ext
7666cat >>conftest.$ac_ext <<_ACEOF
7667/* end confdefs.h. */
7668#include <X11/Xlib.h>
7669#include <stdlib.h>
7670main()
7671{
7672 exit(0);
7673 (void) XOpenDisplay("foobar");
7674}
7675_ACEOF
7676rm -f conftest$ac_exeext
7677if { (ac_try="$ac_link"
7678case "(($ac_try" in
7679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7680 *) ac_try_echo=$ac_try;;
7681esac
7682eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7683 (eval "$ac_link") 2>&5
7684 ac_status=$?
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7687 { (case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690esac
7691eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_try") 2>&5
7693 ac_status=$?
7694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7695 (exit $ac_status); }; }; then
7696 rxvt_cv_rpath=yes
7697else
7698 echo "$as_me: program exited with status $ac_status" >&5
7699echo "$as_me: failed program was:" >&5
7700sed 's/^/| /' conftest.$ac_ext >&5
7701
7702( exit $ac_status )
7703rxvt_cv_rpath=no
7704fi
7705rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7706fi
7707
7708
7709fi
7710{ echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7711echo "${ECHO_T}$rxvt_cv_rpath" >&6; }
7712if test x$rxvt_cv_rpath != xyes; then
7713 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7714 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7715 { echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7716echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6; }
7717if test "${rxvt_cv_R+set}" = set; then
7718 echo $ECHO_N "(cached) $ECHO_C" >&6
7719else
7720 if test "$cross_compiling" = yes; then
7721 rxvt_cv_R=no
7722else
7723 cat >conftest.$ac_ext <<_ACEOF
7724/* confdefs.h. */
7725_ACEOF
7726cat confdefs.h >>conftest.$ac_ext
7727cat >>conftest.$ac_ext <<_ACEOF
7728/* end confdefs.h. */
7729#include <X11/Xlib.h>
7730#include <stdlib.h>
7731main()
7732{
7733 exit(0);
7734 (void) XOpenDisplay("foobar");
7735}
7736_ACEOF
7737rm -f conftest$ac_exeext
7738if { (ac_try="$ac_link"
7739case "(($ac_try" in
7740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7741 *) ac_try_echo=$ac_try;;
7742esac
7743eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7744 (eval "$ac_link") 2>&5
7745 ac_status=$?
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7748 { (case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751esac
7752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7753 (eval "$ac_try") 2>&5
7754 ac_status=$?
7755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7756 (exit $ac_status); }; }; then
7757 rxvt_cv_R=yes
7758else
7759 echo "$as_me: program exited with status $ac_status" >&5
7760echo "$as_me: failed program was:" >&5
7761sed 's/^/| /' conftest.$ac_ext >&5
7762
7763( exit $ac_status )
7764rxvt_cv_R=no
7765fi
7766rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7767fi
7768
7769
7770fi
7771{ echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7772echo "${ECHO_T}$rxvt_cv_R" >&6; }
7773 if test x$rxvt_cv_R != xyes; then
7774 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7775 fi
7776fi
7777
7778{ echo "$as_me:$LINENO: checking for XPointer" >&5
7779echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7780if test "${rxvt_cv_xpointer+set}" = set; then
7781 echo $ECHO_N "(cached) $ECHO_C" >&6
7782else
7783 cat >conftest.$ac_ext <<_ACEOF
7784/* confdefs.h. */
7785_ACEOF
7786cat confdefs.h >>conftest.$ac_ext
7787cat >>conftest.$ac_ext <<_ACEOF
7788/* end confdefs.h. */
7789#include <X11/Xlib.h>
7790int
7791main ()
7792{
7793XPointer dummy;
7794 ;
7795 return 0;
7796}
7797_ACEOF
7798rm -f conftest.$ac_objext
7799if { (ac_try="$ac_compile"
7800case "(($ac_try" in
7801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7802 *) ac_try_echo=$ac_try;;
7803esac
7804eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7805 (eval "$ac_compile") 2>conftest.er1
7806 ac_status=$?
7807 grep -v '^ *+' conftest.er1 >conftest.err
7808 rm -f conftest.er1
7809 cat conftest.err >&5
7810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7811 (exit $ac_status); } && {
7812 test -z "$ac_cxx_werror_flag" ||
7813 test ! -s conftest.err
7814 } && test -s conftest.$ac_objext; then
7815 rxvt_cv_xpointer=yes
7816else
7817 echo "$as_me: failed program was:" >&5
7818sed 's/^/| /' conftest.$ac_ext >&5
7819
7820 rxvt_cv_xpointer=no
7821fi
7822
7823rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7824fi 6658fi
7825{ echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5 6659eval ac_res=\$$4
7826echo "${ECHO_T}$rxvt_cv_xpointer" >&6; }
7827if test x$rxvt_cv_xpointer = xyes; then
7828
7829cat >>confdefs.h <<\_ACEOF
7830#define HAVE_XPOINTER 1
7831_ACEOF
7832
7833fi
7834LIBS=$ac_save_LIBS
7835CFLAGS=$ac_save_CFLAGS
7836
7837{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7838echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; }
7839if test "${rxvt_xlib_illegal_access+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7841else
7842 cat >conftest.$ac_ext <<_ACEOF
7843/* confdefs.h. */
7844_ACEOF
7845cat confdefs.h >>conftest.$ac_ext
7846cat >>conftest.$ac_ext <<_ACEOF
7847/* end confdefs.h. */
7848
7849#define XLIB_ILLEGAL_ACCESS
7850#include <X11/Xlib.h>
7851
7852int
7853main ()
7854{
7855
7856 Display *dpy;
7857 dpy->xdefaults = (char *)0;
7858
7859 ;
7860 return 0;
7861}
7862_ACEOF
7863rm -f conftest.$ac_objext
7864if { (ac_try="$ac_compile"
7865case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7868esac
7869eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7870 (eval "$ac_compile") 2>conftest.er1
7871 ac_status=$?
7872 grep -v '^ *+' conftest.er1 >conftest.err
7873 rm -f conftest.er1
7874 cat conftest.err >&5
7875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7876 (exit $ac_status); } && {
7877 test -z "$ac_cxx_werror_flag" ||
7878 test ! -s conftest.err
7879 } && test -s conftest.$ac_objext; then
7880 rxvt_xlib_illegal_access=yes
7881else
7882 echo "$as_me: failed program was:" >&5
7883sed 's/^/| /' conftest.$ac_ext >&5
7884
7885 rxvt_xlib_illegal_access=no
7886
7887fi
7888
7889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7890fi
7891{ echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7892echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6; }
7893if test x$rxvt_xlib_illegal_access = xyes; then
7894
7895cat >>confdefs.h <<\_ACEOF
7896#define XLIB_ILLEGAL_ACCESS 1
7897_ACEOF
7898
7899fi
7900
7901{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7902echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7903if test "${ac_cv_c_const+set}" = set; then
7904 echo $ECHO_N "(cached) $ECHO_C" >&6
7905else
7906 cat >conftest.$ac_ext <<_ACEOF
7907/* confdefs.h. */
7908_ACEOF
7909cat confdefs.h >>conftest.$ac_ext
7910cat >>conftest.$ac_ext <<_ACEOF
7911/* end confdefs.h. */
7912
7913int
7914main ()
7915{
7916/* FIXME: Include the comments suggested by Paul. */
7917#ifndef __cplusplus
7918 /* Ultrix mips cc rejects this. */
7919 typedef int charset[2];
7920 const charset cs;
7921 /* SunOS 4.1.1 cc rejects this. */
7922 char const *const *pcpcc;
7923 char **ppc;
7924 /* NEC SVR4.0.2 mips cc rejects this. */
7925 struct point {int x, y;};
7926 static struct point const zero = {0,0};
7927 /* AIX XL C 1.02.0.0 rejects this.
7928 It does not let you subtract one const X* pointer from another in
7929 an arm of an if-expression whose if-part is not a constant
7930 expression */
7931 const char *g = "string";
7932 pcpcc = &g + (g ? g-g : 0);
7933 /* HPUX 7.0 cc rejects these. */
7934 ++pcpcc;
7935 ppc = (char**) pcpcc;
7936 pcpcc = (char const *const *) ppc;
7937 { /* SCO 3.2v4 cc rejects this. */
7938 char *t;
7939 char const *s = 0 ? (char *) 0 : (char const *) 0;
7940
7941 *t++ = 0;
7942 if (s) return 0;
7943 }
7944 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7945 int x[] = {25, 17};
7946 const int *foo = &x[0];
7947 ++foo;
7948 }
7949 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7950 typedef const int *iptr;
7951 iptr p = 0;
7952 ++p;
7953 }
7954 { /* AIX XL C 1.02.0.0 rejects this saying
7955 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7956 struct s { int j; const int *ap[3]; };
7957 struct s *b; b->j = 5;
7958 }
7959 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7960 const int foo = 10;
7961 if (!foo) return 0;
7962 }
7963 return !cs[0] && !zero.x;
7964#endif
7965
7966 ;
7967 return 0;
7968}
7969_ACEOF
7970rm -f conftest.$ac_objext
7971if { (ac_try="$ac_compile"
7972case "(($ac_try" in
7973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7974 *) ac_try_echo=$ac_try;;
7975esac
7976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7977 (eval "$ac_compile") 2>conftest.er1
7978 ac_status=$?
7979 grep -v '^ *+' conftest.er1 >conftest.err
7980 rm -f conftest.er1
7981 cat conftest.err >&5
7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7983 (exit $ac_status); } && {
7984 test -z "$ac_cxx_werror_flag" ||
7985 test ! -s conftest.err
7986 } && test -s conftest.$ac_objext; then
7987 ac_cv_c_const=yes
7988else
7989 echo "$as_me: failed program was:" >&5
7990sed 's/^/| /' conftest.$ac_ext >&5
7991
7992 ac_cv_c_const=no
7993fi
7994
7995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7996fi
7997{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7998echo "${ECHO_T}$ac_cv_c_const" >&6; }
7999if test $ac_cv_c_const = no; then
8000
8001cat >>confdefs.h <<\_ACEOF
8002#define const
8003_ACEOF
8004
8005fi
8006
8007{ echo "$as_me:$LINENO: checking for inline" >&5
8008echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
8009if test "${ac_cv_c_inline+set}" = set; then
8010 echo $ECHO_N "(cached) $ECHO_C" >&6
8011else
8012 ac_cv_c_inline=no
8013for ac_kw in inline __inline__ __inline; do
8014 cat >conftest.$ac_ext <<_ACEOF
8015/* confdefs.h. */
8016_ACEOF
8017cat confdefs.h >>conftest.$ac_ext
8018cat >>conftest.$ac_ext <<_ACEOF
8019/* end confdefs.h. */
8020#ifndef __cplusplus
8021typedef int foo_t;
8022static $ac_kw foo_t static_foo () {return 0; }
8023$ac_kw foo_t foo () {return 0; }
8024#endif
8025
8026_ACEOF
8027rm -f conftest.$ac_objext
8028if { (ac_try="$ac_compile"
8029case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8032esac
8033eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_compile") 2>conftest.er1
8035 ac_status=$?
8036 grep -v '^ *+' conftest.er1 >conftest.err
8037 rm -f conftest.er1
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } && {
8041 test -z "$ac_cxx_werror_flag" ||
8042 test ! -s conftest.err
8043 } && test -s conftest.$ac_objext; then
8044 ac_cv_c_inline=$ac_kw
8045else
8046 echo "$as_me: failed program was:" >&5
8047sed 's/^/| /' conftest.$ac_ext >&5
8048
8049
8050fi
8051
8052rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8053 test "$ac_cv_c_inline" != no && break
8054done
8055
8056fi
8057{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
8058echo "${ECHO_T}$ac_cv_c_inline" >&6; }
8059
8060
8061case $ac_cv_c_inline in
8062 inline | yes) ;;
8063 *)
8064 case $ac_cv_c_inline in
8065 no) ac_val=;;
8066 *) ac_val=$ac_cv_c_inline;;
8067 esac
8068 cat >>confdefs.h <<_ACEOF
8069#ifndef __cplusplus
8070#define inline $ac_val
8071#endif
8072_ACEOF
8073 ;;
8074esac
8075
8076
8077
8078{ echo "$as_me:$LINENO: checking for mode_t" >&5
8079echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
8080if test "${ac_cv_type_mode_t+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8082else
8083 cat >conftest.$ac_ext <<_ACEOF
8084/* confdefs.h. */
8085_ACEOF
8086cat confdefs.h >>conftest.$ac_ext
8087cat >>conftest.$ac_ext <<_ACEOF
8088/* end confdefs.h. */
8089$ac_includes_default
8090typedef mode_t ac__type_new_;
8091int
8092main ()
8093{
8094if ((ac__type_new_ *) 0)
8095 return 0;
8096if (sizeof (ac__type_new_))
8097 return 0;
8098 ;
8099 return 0;
8100}
8101_ACEOF
8102rm -f conftest.$ac_objext
8103if { (ac_try="$ac_compile"
8104case "(($ac_try" in
8105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8106 *) ac_try_echo=$ac_try;;
8107esac
8108eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_compile") 2>conftest.er1
8110 ac_status=$?
8111 grep -v '^ *+' conftest.er1 >conftest.err
8112 rm -f conftest.er1
8113 cat conftest.err >&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } && {
8116 test -z "$ac_cxx_werror_flag" ||
8117 test ! -s conftest.err
8118 } && test -s conftest.$ac_objext; then
8119 ac_cv_type_mode_t=yes
8120else
8121 echo "$as_me: failed program was:" >&5
8122sed 's/^/| /' conftest.$ac_ext >&5
8123
8124 ac_cv_type_mode_t=no
8125fi
8126
8127rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8128fi
8129{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
8130echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
8131if test $ac_cv_type_mode_t = yes; then
8132 :
8133else
8134
8135cat >>confdefs.h <<_ACEOF
8136#define mode_t int
8137_ACEOF
8138
8139fi
8140
8141{ echo "$as_me:$LINENO: checking for pid_t" >&5
8142echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
8143if test "${ac_cv_type_pid_t+set}" = set; then
8144 echo $ECHO_N "(cached) $ECHO_C" >&6
8145else
8146 cat >conftest.$ac_ext <<_ACEOF
8147/* confdefs.h. */
8148_ACEOF
8149cat confdefs.h >>conftest.$ac_ext
8150cat >>conftest.$ac_ext <<_ACEOF
8151/* end confdefs.h. */
8152$ac_includes_default
8153typedef pid_t ac__type_new_;
8154int
8155main ()
8156{
8157if ((ac__type_new_ *) 0)
8158 return 0;
8159if (sizeof (ac__type_new_))
8160 return 0;
8161 ;
8162 return 0;
8163}
8164_ACEOF
8165rm -f conftest.$ac_objext
8166if { (ac_try="$ac_compile"
8167case "(($ac_try" in
8168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8169 *) ac_try_echo=$ac_try;;
8170esac
8171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8172 (eval "$ac_compile") 2>conftest.er1
8173 ac_status=$?
8174 grep -v '^ *+' conftest.er1 >conftest.err
8175 rm -f conftest.er1
8176 cat conftest.err >&5
8177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8178 (exit $ac_status); } && {
8179 test -z "$ac_cxx_werror_flag" ||
8180 test ! -s conftest.err
8181 } && test -s conftest.$ac_objext; then
8182 ac_cv_type_pid_t=yes
8183else
8184 echo "$as_me: failed program was:" >&5
8185sed 's/^/| /' conftest.$ac_ext >&5
8186
8187 ac_cv_type_pid_t=no
8188fi
8189
8190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8191fi
8192{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8193echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
8194if test $ac_cv_type_pid_t = yes; then
8195 :
8196else
8197
8198cat >>confdefs.h <<_ACEOF
8199#define pid_t int
8200_ACEOF
8201
8202fi
8203
8204{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8205echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
8206if test "${ac_cv_type_uid_t+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8208else
8209 cat >conftest.$ac_ext <<_ACEOF
8210/* confdefs.h. */
8211_ACEOF
8212cat confdefs.h >>conftest.$ac_ext
8213cat >>conftest.$ac_ext <<_ACEOF
8214/* end confdefs.h. */
8215#include <sys/types.h>
8216
8217_ACEOF
8218if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8219 $EGREP "uid_t" >/dev/null 2>&1; then
8220 ac_cv_type_uid_t=yes
8221else
8222 ac_cv_type_uid_t=no
8223fi
8224rm -f conftest*
8225
8226fi
8227{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8228echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
8229if test $ac_cv_type_uid_t = no; then
8230
8231cat >>confdefs.h <<\_ACEOF
8232#define uid_t int
8233_ACEOF
8234
8235
8236cat >>confdefs.h <<\_ACEOF
8237#define gid_t int
8238_ACEOF
8239
8240fi
8241
8242
8243{ echo "$as_me:$LINENO: checking for short" >&5
8244echo $ECHO_N "checking for short... $ECHO_C" >&6; }
8245if test "${ac_cv_type_short+set}" = set; then
8246 echo $ECHO_N "(cached) $ECHO_C" >&6
8247else
8248 cat >conftest.$ac_ext <<_ACEOF
8249/* confdefs.h. */
8250_ACEOF
8251cat confdefs.h >>conftest.$ac_ext
8252cat >>conftest.$ac_ext <<_ACEOF
8253/* end confdefs.h. */
8254$ac_includes_default
8255typedef short ac__type_new_;
8256int
8257main ()
8258{
8259if ((ac__type_new_ *) 0)
8260 return 0;
8261if (sizeof (ac__type_new_))
8262 return 0;
8263 ;
8264 return 0;
8265}
8266_ACEOF
8267rm -f conftest.$ac_objext
8268if { (ac_try="$ac_compile"
8269case "(($ac_try" in
8270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8271 *) ac_try_echo=$ac_try;;
8272esac
8273eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8274 (eval "$ac_compile") 2>conftest.er1
8275 ac_status=$?
8276 grep -v '^ *+' conftest.er1 >conftest.err
8277 rm -f conftest.er1
8278 cat conftest.err >&5
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); } && {
8281 test -z "$ac_cxx_werror_flag" ||
8282 test ! -s conftest.err
8283 } && test -s conftest.$ac_objext; then
8284 ac_cv_type_short=yes
8285else
8286 echo "$as_me: failed program was:" >&5
8287sed 's/^/| /' conftest.$ac_ext >&5
8288
8289 ac_cv_type_short=no
8290fi
8291
8292rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8293fi
8294{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8295echo "${ECHO_T}$ac_cv_type_short" >&6; }
8296
8297# The cast to long int works around a bug in the HP C Compiler
8298# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8299# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8300# This bug is HP SR number 8606223364.
8301{ echo "$as_me:$LINENO: checking size of short" >&5
8302echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8303if test "${ac_cv_sizeof_short+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305else
8306 if test "$cross_compiling" = yes; then
8307 # Depending upon the size, compute the lo and hi bounds.
8308cat >conftest.$ac_ext <<_ACEOF
8309/* confdefs.h. */
8310_ACEOF
8311cat confdefs.h >>conftest.$ac_ext
8312cat >>conftest.$ac_ext <<_ACEOF
8313/* end confdefs.h. */
8314$ac_includes_default
8315 typedef short ac__type_sizeof_;
8316int
8317main ()
8318{
8319static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8320test_array [0] = 0
8321
8322 ;
8323 return 0;
8324}
8325_ACEOF
8326rm -f conftest.$ac_objext
8327if { (ac_try="$ac_compile"
8328case "(($ac_try" in
8329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8330 *) ac_try_echo=$ac_try;;
8331esac
8332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8333 (eval "$ac_compile") 2>conftest.er1
8334 ac_status=$?
8335 grep -v '^ *+' conftest.er1 >conftest.err
8336 rm -f conftest.er1
8337 cat conftest.err >&5
8338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8339 (exit $ac_status); } && {
8340 test -z "$ac_cxx_werror_flag" ||
8341 test ! -s conftest.err
8342 } && test -s conftest.$ac_objext; then
8343 ac_lo=0 ac_mid=0
8344 while :; do
8345 cat >conftest.$ac_ext <<_ACEOF
8346/* confdefs.h. */
8347_ACEOF
8348cat confdefs.h >>conftest.$ac_ext
8349cat >>conftest.$ac_ext <<_ACEOF
8350/* end confdefs.h. */
8351$ac_includes_default
8352 typedef short ac__type_sizeof_;
8353int
8354main ()
8355{
8356static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8357test_array [0] = 0
8358
8359 ;
8360 return 0;
8361}
8362_ACEOF
8363rm -f conftest.$ac_objext
8364if { (ac_try="$ac_compile"
8365case "(($ac_try" in
8366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8367 *) ac_try_echo=$ac_try;;
8368esac
8369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370 (eval "$ac_compile") 2>conftest.er1
8371 ac_status=$?
8372 grep -v '^ *+' conftest.er1 >conftest.err
8373 rm -f conftest.er1
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && {
8377 test -z "$ac_cxx_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.$ac_objext; then
8380 ac_hi=$ac_mid; break
8381else
8382 echo "$as_me: failed program was:" >&5
8383sed 's/^/| /' conftest.$ac_ext >&5
8384
8385 ac_lo=`expr $ac_mid + 1`
8386 if test $ac_lo -le $ac_mid; then
8387 ac_lo= ac_hi=
8388 break
8389 fi
8390 ac_mid=`expr 2 '*' $ac_mid + 1`
8391fi
8392
8393rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 done
8395else
8396 echo "$as_me: failed program was:" >&5
8397sed 's/^/| /' conftest.$ac_ext >&5
8398
8399 cat >conftest.$ac_ext <<_ACEOF
8400/* confdefs.h. */
8401_ACEOF
8402cat confdefs.h >>conftest.$ac_ext
8403cat >>conftest.$ac_ext <<_ACEOF
8404/* end confdefs.h. */
8405$ac_includes_default
8406 typedef short ac__type_sizeof_;
8407int
8408main ()
8409{
8410static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8411test_array [0] = 0
8412
8413 ;
8414 return 0;
8415}
8416_ACEOF
8417rm -f conftest.$ac_objext
8418if { (ac_try="$ac_compile"
8419case "(($ac_try" in
8420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8421 *) ac_try_echo=$ac_try;;
8422esac
8423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8424 (eval "$ac_compile") 2>conftest.er1
8425 ac_status=$?
8426 grep -v '^ *+' conftest.er1 >conftest.err
8427 rm -f conftest.er1
8428 cat conftest.err >&5
8429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8430 (exit $ac_status); } && {
8431 test -z "$ac_cxx_werror_flag" ||
8432 test ! -s conftest.err
8433 } && test -s conftest.$ac_objext; then
8434 ac_hi=-1 ac_mid=-1
8435 while :; do
8436 cat >conftest.$ac_ext <<_ACEOF
8437/* confdefs.h. */
8438_ACEOF
8439cat confdefs.h >>conftest.$ac_ext
8440cat >>conftest.$ac_ext <<_ACEOF
8441/* end confdefs.h. */
8442$ac_includes_default
8443 typedef short ac__type_sizeof_;
8444int
8445main ()
8446{
8447static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8448test_array [0] = 0
8449
8450 ;
8451 return 0;
8452}
8453_ACEOF
8454rm -f conftest.$ac_objext
8455if { (ac_try="$ac_compile"
8456case "(($ac_try" in
8457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8458 *) ac_try_echo=$ac_try;;
8459esac
8460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8461 (eval "$ac_compile") 2>conftest.er1
8462 ac_status=$?
8463 grep -v '^ *+' conftest.er1 >conftest.err
8464 rm -f conftest.er1
8465 cat conftest.err >&5
8466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8467 (exit $ac_status); } && {
8468 test -z "$ac_cxx_werror_flag" ||
8469 test ! -s conftest.err
8470 } && test -s conftest.$ac_objext; then
8471 ac_lo=$ac_mid; break
8472else
8473 echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5
8475
8476 ac_hi=`expr '(' $ac_mid ')' - 1`
8477 if test $ac_mid -le $ac_hi; then
8478 ac_lo= ac_hi=
8479 break
8480 fi
8481 ac_mid=`expr 2 '*' $ac_mid`
8482fi
8483
8484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8485 done
8486else
8487 echo "$as_me: failed program was:" >&5
8488sed 's/^/| /' conftest.$ac_ext >&5
8489
8490 ac_lo= ac_hi=
8491fi
8492
8493rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8494fi
8495
8496rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8497# Binary search between lo and hi bounds.
8498while test "x$ac_lo" != "x$ac_hi"; do
8499 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8500 cat >conftest.$ac_ext <<_ACEOF
8501/* confdefs.h. */
8502_ACEOF
8503cat confdefs.h >>conftest.$ac_ext
8504cat >>conftest.$ac_ext <<_ACEOF
8505/* end confdefs.h. */
8506$ac_includes_default
8507 typedef short ac__type_sizeof_;
8508int
8509main ()
8510{
8511static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8512test_array [0] = 0
8513
8514 ;
8515 return 0;
8516}
8517_ACEOF
8518rm -f conftest.$ac_objext
8519if { (ac_try="$ac_compile"
8520case "(($ac_try" in
8521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8522 *) ac_try_echo=$ac_try;;
8523esac
8524eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8526 ac_status=$?
8527 grep -v '^ *+' conftest.er1 >conftest.err
8528 rm -f conftest.er1
8529 cat conftest.err >&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_cxx_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest.$ac_objext; then
8535 ac_hi=$ac_mid
8536else
8537 echo "$as_me: failed program was:" >&5
8538sed 's/^/| /' conftest.$ac_ext >&5
8539
8540 ac_lo=`expr '(' $ac_mid ')' + 1`
8541fi
8542
8543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544done
8545case $ac_lo in
8546?*) ac_cv_sizeof_short=$ac_lo;;
8547'') if test "$ac_cv_type_short" = yes; then
8548 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8549See \`config.log' for more details." >&5
8550echo "$as_me: error: cannot compute sizeof (short)
8551See \`config.log' for more details." >&2;}
8552 { (exit 77); exit 77; }; }
8553 else
8554 ac_cv_sizeof_short=0
8555 fi ;;
8556esac
8557else
8558 cat >conftest.$ac_ext <<_ACEOF
8559/* confdefs.h. */
8560_ACEOF
8561cat confdefs.h >>conftest.$ac_ext
8562cat >>conftest.$ac_ext <<_ACEOF
8563/* end confdefs.h. */
8564$ac_includes_default
8565 typedef short ac__type_sizeof_;
8566static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8567static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8568#include <stdio.h>
8569#include <stdlib.h>
8570int
8571main ()
8572{
8573
8574 FILE *f = fopen ("conftest.val", "w");
8575 if (! f)
8576 return 1;
8577 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8578 {
8579 long int i = longval ();
8580 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8581 return 1;
8582 fprintf (f, "%ld\n", i);
8583 }
8584 else
8585 {
8586 unsigned long int i = ulongval ();
8587 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8588 return 1;
8589 fprintf (f, "%lu\n", i);
8590 }
8591 return ferror (f) || fclose (f) != 0;
8592
8593 ;
8594 return 0;
8595}
8596_ACEOF
8597rm -f conftest$ac_exeext
8598if { (ac_try="$ac_link"
8599case "(($ac_try" in
8600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8601 *) ac_try_echo=$ac_try;;
8602esac
8603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8604 (eval "$ac_link") 2>&5
8605 ac_status=$?
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8608 { (case "(($ac_try" in
8609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8610 *) ac_try_echo=$ac_try;;
8611esac
8612eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8613 (eval "$ac_try") 2>&5
8614 ac_status=$?
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); }; }; then
8617 ac_cv_sizeof_short=`cat conftest.val`
8618else
8619 echo "$as_me: program exited with status $ac_status" >&5
8620echo "$as_me: failed program was:" >&5
8621sed 's/^/| /' conftest.$ac_ext >&5
8622
8623( exit $ac_status )
8624if test "$ac_cv_type_short" = yes; then
8625 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8626See \`config.log' for more details." >&5
8627echo "$as_me: error: cannot compute sizeof (short)
8628See \`config.log' for more details." >&2;}
8629 { (exit 77); exit 77; }; }
8630 else
8631 ac_cv_sizeof_short=0
8632 fi
8633fi
8634rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8635fi
8636rm -f conftest.val
8637fi
8638{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8639echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8640
8641
8642
8643cat >>confdefs.h <<_ACEOF
8644#define SIZEOF_SHORT $ac_cv_sizeof_short
8645_ACEOF
8646
8647
8648{ echo "$as_me:$LINENO: checking for int" >&5
8649echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8650if test "${ac_cv_type_int+set}" = set; then
8651 echo $ECHO_N "(cached) $ECHO_C" >&6
8652else
8653 cat >conftest.$ac_ext <<_ACEOF
8654/* confdefs.h. */
8655_ACEOF
8656cat confdefs.h >>conftest.$ac_ext
8657cat >>conftest.$ac_ext <<_ACEOF
8658/* end confdefs.h. */
8659$ac_includes_default
8660typedef int ac__type_new_;
8661int
8662main ()
8663{
8664if ((ac__type_new_ *) 0)
8665 return 0;
8666if (sizeof (ac__type_new_))
8667 return 0;
8668 ;
8669 return 0;
8670}
8671_ACEOF
8672rm -f conftest.$ac_objext
8673if { (ac_try="$ac_compile"
8674case "(($ac_try" in
8675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8676 *) ac_try_echo=$ac_try;;
8677esac
8678eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8679 (eval "$ac_compile") 2>conftest.er1
8680 ac_status=$?
8681 grep -v '^ *+' conftest.er1 >conftest.err
8682 rm -f conftest.er1
8683 cat conftest.err >&5
8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8685 (exit $ac_status); } && {
8686 test -z "$ac_cxx_werror_flag" ||
8687 test ! -s conftest.err
8688 } && test -s conftest.$ac_objext; then
8689 ac_cv_type_int=yes
8690else
8691 echo "$as_me: failed program was:" >&5
8692sed 's/^/| /' conftest.$ac_ext >&5
8693
8694 ac_cv_type_int=no
8695fi
8696
8697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8698fi
8699{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8700echo "${ECHO_T}$ac_cv_type_int" >&6; }
8701
8702# The cast to long int works around a bug in the HP C Compiler
8703# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8704# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8705# This bug is HP SR number 8606223364.
8706{ echo "$as_me:$LINENO: checking size of int" >&5
8707echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8708if test "${ac_cv_sizeof_int+set}" = set; then
8709 echo $ECHO_N "(cached) $ECHO_C" >&6
8710else
8711 if test "$cross_compiling" = yes; then
8712 # Depending upon the size, compute the lo and hi bounds.
8713cat >conftest.$ac_ext <<_ACEOF
8714/* confdefs.h. */
8715_ACEOF
8716cat confdefs.h >>conftest.$ac_ext
8717cat >>conftest.$ac_ext <<_ACEOF
8718/* end confdefs.h. */
8719$ac_includes_default
8720 typedef int ac__type_sizeof_;
8721int
8722main ()
8723{
8724static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8725test_array [0] = 0
8726
8727 ;
8728 return 0;
8729}
8730_ACEOF
8731rm -f conftest.$ac_objext
8732if { (ac_try="$ac_compile"
8733case "(($ac_try" in
8734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8735 *) ac_try_echo=$ac_try;;
8736esac
8737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8738 (eval "$ac_compile") 2>conftest.er1
8739 ac_status=$?
8740 grep -v '^ *+' conftest.er1 >conftest.err
8741 rm -f conftest.er1
8742 cat conftest.err >&5
8743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8744 (exit $ac_status); } && {
8745 test -z "$ac_cxx_werror_flag" ||
8746 test ! -s conftest.err
8747 } && test -s conftest.$ac_objext; then
8748 ac_lo=0 ac_mid=0
8749 while :; do
8750 cat >conftest.$ac_ext <<_ACEOF
8751/* confdefs.h. */
8752_ACEOF
8753cat confdefs.h >>conftest.$ac_ext
8754cat >>conftest.$ac_ext <<_ACEOF
8755/* end confdefs.h. */
8756$ac_includes_default
8757 typedef int ac__type_sizeof_;
8758int
8759main ()
8760{
8761static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8762test_array [0] = 0
8763
8764 ;
8765 return 0;
8766}
8767_ACEOF
8768rm -f conftest.$ac_objext
8769if { (ac_try="$ac_compile"
8770case "(($ac_try" in
8771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8772 *) ac_try_echo=$ac_try;;
8773esac
8774eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8775 (eval "$ac_compile") 2>conftest.er1
8776 ac_status=$?
8777 grep -v '^ *+' conftest.er1 >conftest.err
8778 rm -f conftest.er1
8779 cat conftest.err >&5
8780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8781 (exit $ac_status); } && {
8782 test -z "$ac_cxx_werror_flag" ||
8783 test ! -s conftest.err
8784 } && test -s conftest.$ac_objext; then
8785 ac_hi=$ac_mid; break
8786else
8787 echo "$as_me: failed program was:" >&5
8788sed 's/^/| /' conftest.$ac_ext >&5
8789
8790 ac_lo=`expr $ac_mid + 1`
8791 if test $ac_lo -le $ac_mid; then
8792 ac_lo= ac_hi=
8793 break
8794 fi
8795 ac_mid=`expr 2 '*' $ac_mid + 1`
8796fi
8797
8798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8799 done
8800else
8801 echo "$as_me: failed program was:" >&5
8802sed 's/^/| /' conftest.$ac_ext >&5
8803
8804 cat >conftest.$ac_ext <<_ACEOF
8805/* confdefs.h. */
8806_ACEOF
8807cat confdefs.h >>conftest.$ac_ext
8808cat >>conftest.$ac_ext <<_ACEOF
8809/* end confdefs.h. */
8810$ac_includes_default
8811 typedef int ac__type_sizeof_;
8812int
8813main ()
8814{
8815static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8816test_array [0] = 0
8817
8818 ;
8819 return 0;
8820}
8821_ACEOF
8822rm -f conftest.$ac_objext
8823if { (ac_try="$ac_compile"
8824case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827esac
8828eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_compile") 2>conftest.er1
8830 ac_status=$?
8831 grep -v '^ *+' conftest.er1 >conftest.err
8832 rm -f conftest.er1
8833 cat conftest.err >&5
8834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8835 (exit $ac_status); } && {
8836 test -z "$ac_cxx_werror_flag" ||
8837 test ! -s conftest.err
8838 } && test -s conftest.$ac_objext; then
8839 ac_hi=-1 ac_mid=-1
8840 while :; do
8841 cat >conftest.$ac_ext <<_ACEOF
8842/* confdefs.h. */
8843_ACEOF
8844cat confdefs.h >>conftest.$ac_ext
8845cat >>conftest.$ac_ext <<_ACEOF
8846/* end confdefs.h. */
8847$ac_includes_default
8848 typedef int ac__type_sizeof_;
8849int
8850main ()
8851{
8852static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8853test_array [0] = 0
8854
8855 ;
8856 return 0;
8857}
8858_ACEOF
8859rm -f conftest.$ac_objext
8860if { (ac_try="$ac_compile"
8861case "(($ac_try" in
8862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8863 *) ac_try_echo=$ac_try;;
8864esac
8865eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8866 (eval "$ac_compile") 2>conftest.er1
8867 ac_status=$?
8868 grep -v '^ *+' conftest.er1 >conftest.err
8869 rm -f conftest.er1
8870 cat conftest.err >&5
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); } && {
8873 test -z "$ac_cxx_werror_flag" ||
8874 test ! -s conftest.err
8875 } && test -s conftest.$ac_objext; then
8876 ac_lo=$ac_mid; break
8877else
8878 echo "$as_me: failed program was:" >&5
8879sed 's/^/| /' conftest.$ac_ext >&5
8880
8881 ac_hi=`expr '(' $ac_mid ')' - 1`
8882 if test $ac_mid -le $ac_hi; then
8883 ac_lo= ac_hi=
8884 break
8885 fi
8886 ac_mid=`expr 2 '*' $ac_mid`
8887fi
8888
8889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8890 done
8891else
8892 echo "$as_me: failed program was:" >&5
8893sed 's/^/| /' conftest.$ac_ext >&5
8894
8895 ac_lo= ac_hi=
8896fi
8897
8898rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899fi
8900
8901rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8902# Binary search between lo and hi bounds.
8903while test "x$ac_lo" != "x$ac_hi"; do
8904 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8905 cat >conftest.$ac_ext <<_ACEOF
8906/* confdefs.h. */
8907_ACEOF
8908cat confdefs.h >>conftest.$ac_ext
8909cat >>conftest.$ac_ext <<_ACEOF
8910/* end confdefs.h. */
8911$ac_includes_default
8912 typedef int ac__type_sizeof_;
8913int
8914main ()
8915{
8916static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8917test_array [0] = 0
8918
8919 ;
8920 return 0;
8921}
8922_ACEOF
8923rm -f conftest.$ac_objext
8924if { (ac_try="$ac_compile"
8925case "(($ac_try" in
8926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8927 *) ac_try_echo=$ac_try;;
8928esac
8929eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8930 (eval "$ac_compile") 2>conftest.er1
8931 ac_status=$?
8932 grep -v '^ *+' conftest.er1 >conftest.err
8933 rm -f conftest.er1
8934 cat conftest.err >&5
8935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8936 (exit $ac_status); } && {
8937 test -z "$ac_cxx_werror_flag" ||
8938 test ! -s conftest.err
8939 } && test -s conftest.$ac_objext; then
8940 ac_hi=$ac_mid
8941else
8942 echo "$as_me: failed program was:" >&5
8943sed 's/^/| /' conftest.$ac_ext >&5
8944
8945 ac_lo=`expr '(' $ac_mid ')' + 1`
8946fi
8947
8948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8949done
8950case $ac_lo in
8951?*) ac_cv_sizeof_int=$ac_lo;;
8952'') if test "$ac_cv_type_int" = yes; then
8953 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8954See \`config.log' for more details." >&5
8955echo "$as_me: error: cannot compute sizeof (int)
8956See \`config.log' for more details." >&2;}
8957 { (exit 77); exit 77; }; }
8958 else
8959 ac_cv_sizeof_int=0
8960 fi ;;
8961esac
8962else
8963 cat >conftest.$ac_ext <<_ACEOF
8964/* confdefs.h. */
8965_ACEOF
8966cat confdefs.h >>conftest.$ac_ext
8967cat >>conftest.$ac_ext <<_ACEOF
8968/* end confdefs.h. */
8969$ac_includes_default
8970 typedef int ac__type_sizeof_;
8971static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8972static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8973#include <stdio.h>
8974#include <stdlib.h>
8975int
8976main ()
8977{
8978
8979 FILE *f = fopen ("conftest.val", "w");
8980 if (! f)
8981 return 1;
8982 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8983 {
8984 long int i = longval ();
8985 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8986 return 1;
8987 fprintf (f, "%ld\n", i);
8988 }
8989 else
8990 {
8991 unsigned long int i = ulongval ();
8992 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8993 return 1;
8994 fprintf (f, "%lu\n", i);
8995 }
8996 return ferror (f) || fclose (f) != 0;
8997
8998 ;
8999 return 0;
9000}
9001_ACEOF
9002rm -f conftest$ac_exeext
9003if { (ac_try="$ac_link"
9004case "(($ac_try" in
9005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9006 *) ac_try_echo=$ac_try;;
9007esac
9008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9009 (eval "$ac_link") 2>&5
9010 ac_status=$?
9011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9013 { (case "(($ac_try" in
9014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9015 *) ac_try_echo=$ac_try;;
9016esac
9017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9018 (eval "$ac_try") 2>&5
9019 ac_status=$?
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); }; }; then
9022 ac_cv_sizeof_int=`cat conftest.val`
9023else
9024 echo "$as_me: program exited with status $ac_status" >&5
9025echo "$as_me: failed program was:" >&5
9026sed 's/^/| /' conftest.$ac_ext >&5
9027
9028( exit $ac_status )
9029if test "$ac_cv_type_int" = yes; then
9030 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
9031See \`config.log' for more details." >&5
9032echo "$as_me: error: cannot compute sizeof (int)
9033See \`config.log' for more details." >&2;}
9034 { (exit 77); exit 77; }; }
9035 else
9036 ac_cv_sizeof_int=0
9037 fi
9038fi
9039rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9040fi
9041rm -f conftest.val
9042fi
9043{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
9044echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
9045
9046
9047
9048cat >>confdefs.h <<_ACEOF
9049#define SIZEOF_INT $ac_cv_sizeof_int
9050_ACEOF
9051
9052
9053{ echo "$as_me:$LINENO: checking for long long" >&5
9054echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
9055if test "${ac_cv_type_long_long+set}" = set; then
9056 echo $ECHO_N "(cached) $ECHO_C" >&6
9057else
9058 cat >conftest.$ac_ext <<_ACEOF
9059/* confdefs.h. */
9060_ACEOF
9061cat confdefs.h >>conftest.$ac_ext
9062cat >>conftest.$ac_ext <<_ACEOF
9063/* end confdefs.h. */
9064$ac_includes_default
9065typedef long long ac__type_new_;
9066int
9067main ()
9068{
9069if ((ac__type_new_ *) 0)
9070 return 0;
9071if (sizeof (ac__type_new_))
9072 return 0;
9073 ;
9074 return 0;
9075}
9076_ACEOF
9077rm -f conftest.$ac_objext
9078if { (ac_try="$ac_compile"
9079case "(($ac_try" in
9080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9081 *) ac_try_echo=$ac_try;;
9082esac
9083eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9084 (eval "$ac_compile") 2>conftest.er1
9085 ac_status=$?
9086 grep -v '^ *+' conftest.er1 >conftest.err
9087 rm -f conftest.er1
9088 cat conftest.err >&5
9089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9090 (exit $ac_status); } && {
9091 test -z "$ac_cxx_werror_flag" ||
9092 test ! -s conftest.err
9093 } && test -s conftest.$ac_objext; then
9094 ac_cv_type_long_long=yes
9095else
9096 echo "$as_me: failed program was:" >&5
9097sed 's/^/| /' conftest.$ac_ext >&5
9098
9099 ac_cv_type_long_long=no
9100fi
9101
9102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9103fi
9104{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
9105echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
9106
9107# The cast to long int works around a bug in the HP C Compiler
9108# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9109# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9110# This bug is HP SR number 8606223364.
9111{ echo "$as_me:$LINENO: checking size of long long" >&5
9112echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
9113if test "${ac_cv_sizeof_long_long+set}" = set; then
9114 echo $ECHO_N "(cached) $ECHO_C" >&6
9115else
9116 if test "$cross_compiling" = yes; then
9117 # Depending upon the size, compute the lo and hi bounds.
9118cat >conftest.$ac_ext <<_ACEOF
9119/* confdefs.h. */
9120_ACEOF
9121cat confdefs.h >>conftest.$ac_ext
9122cat >>conftest.$ac_ext <<_ACEOF
9123/* end confdefs.h. */
9124$ac_includes_default
9125 typedef long long ac__type_sizeof_;
9126int
9127main ()
9128{
9129static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9130test_array [0] = 0
9131
9132 ;
9133 return 0;
9134}
9135_ACEOF
9136rm -f conftest.$ac_objext
9137if { (ac_try="$ac_compile"
9138case "(($ac_try" in
9139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9140 *) ac_try_echo=$ac_try;;
9141esac
9142eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9143 (eval "$ac_compile") 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } && {
9150 test -z "$ac_cxx_werror_flag" ||
9151 test ! -s conftest.err
9152 } && test -s conftest.$ac_objext; then
9153 ac_lo=0 ac_mid=0
9154 while :; do
9155 cat >conftest.$ac_ext <<_ACEOF
9156/* confdefs.h. */
9157_ACEOF
9158cat confdefs.h >>conftest.$ac_ext
9159cat >>conftest.$ac_ext <<_ACEOF
9160/* end confdefs.h. */
9161$ac_includes_default
9162 typedef long long ac__type_sizeof_;
9163int
9164main ()
9165{
9166static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9167test_array [0] = 0
9168
9169 ;
9170 return 0;
9171}
9172_ACEOF
9173rm -f conftest.$ac_objext
9174if { (ac_try="$ac_compile"
9175case "(($ac_try" in
9176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9178esac
9179eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_compile") 2>conftest.er1
9181 ac_status=$?
9182 grep -v '^ *+' conftest.er1 >conftest.err
9183 rm -f conftest.er1
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } && {
9187 test -z "$ac_cxx_werror_flag" ||
9188 test ! -s conftest.err
9189 } && test -s conftest.$ac_objext; then
9190 ac_hi=$ac_mid; break
9191else
9192 echo "$as_me: failed program was:" >&5
9193sed 's/^/| /' conftest.$ac_ext >&5
9194
9195 ac_lo=`expr $ac_mid + 1`
9196 if test $ac_lo -le $ac_mid; then
9197 ac_lo= ac_hi=
9198 break
9199 fi
9200 ac_mid=`expr 2 '*' $ac_mid + 1`
9201fi
9202
9203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9204 done
9205else
9206 echo "$as_me: failed program was:" >&5
9207sed 's/^/| /' conftest.$ac_ext >&5
9208
9209 cat >conftest.$ac_ext <<_ACEOF
9210/* confdefs.h. */
9211_ACEOF
9212cat confdefs.h >>conftest.$ac_ext
9213cat >>conftest.$ac_ext <<_ACEOF
9214/* end confdefs.h. */
9215$ac_includes_default
9216 typedef long long ac__type_sizeof_;
9217int
9218main ()
9219{
9220static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9221test_array [0] = 0
9222
9223 ;
9224 return 0;
9225}
9226_ACEOF
9227rm -f conftest.$ac_objext
9228if { (ac_try="$ac_compile"
9229case "(($ac_try" in
9230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9231 *) ac_try_echo=$ac_try;;
9232esac
9233eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9234 (eval "$ac_compile") 2>conftest.er1
9235 ac_status=$?
9236 grep -v '^ *+' conftest.er1 >conftest.err
9237 rm -f conftest.er1
9238 cat conftest.err >&5
9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9240 (exit $ac_status); } && {
9241 test -z "$ac_cxx_werror_flag" ||
9242 test ! -s conftest.err
9243 } && test -s conftest.$ac_objext; then
9244 ac_hi=-1 ac_mid=-1
9245 while :; do
9246 cat >conftest.$ac_ext <<_ACEOF
9247/* confdefs.h. */
9248_ACEOF
9249cat confdefs.h >>conftest.$ac_ext
9250cat >>conftest.$ac_ext <<_ACEOF
9251/* end confdefs.h. */
9252$ac_includes_default
9253 typedef long long ac__type_sizeof_;
9254int
9255main ()
9256{
9257static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9258test_array [0] = 0
9259
9260 ;
9261 return 0;
9262}
9263_ACEOF
9264rm -f conftest.$ac_objext
9265if { (ac_try="$ac_compile"
9266case "(($ac_try" in
9267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9268 *) ac_try_echo=$ac_try;;
9269esac
9270eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9271 (eval "$ac_compile") 2>conftest.er1
9272 ac_status=$?
9273 grep -v '^ *+' conftest.er1 >conftest.err
9274 rm -f conftest.er1
9275 cat conftest.err >&5
9276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9277 (exit $ac_status); } && {
9278 test -z "$ac_cxx_werror_flag" ||
9279 test ! -s conftest.err
9280 } && test -s conftest.$ac_objext; then
9281 ac_lo=$ac_mid; break
9282else
9283 echo "$as_me: failed program was:" >&5
9284sed 's/^/| /' conftest.$ac_ext >&5
9285
9286 ac_hi=`expr '(' $ac_mid ')' - 1`
9287 if test $ac_mid -le $ac_hi; then
9288 ac_lo= ac_hi=
9289 break
9290 fi
9291 ac_mid=`expr 2 '*' $ac_mid`
9292fi
9293
9294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9295 done
9296else
9297 echo "$as_me: failed program was:" >&5
9298sed 's/^/| /' conftest.$ac_ext >&5
9299
9300 ac_lo= ac_hi=
9301fi
9302
9303rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9304fi
9305
9306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9307# Binary search between lo and hi bounds.
9308while test "x$ac_lo" != "x$ac_hi"; do
9309 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9310 cat >conftest.$ac_ext <<_ACEOF
9311/* confdefs.h. */
9312_ACEOF
9313cat confdefs.h >>conftest.$ac_ext
9314cat >>conftest.$ac_ext <<_ACEOF
9315/* end confdefs.h. */
9316$ac_includes_default
9317 typedef long long ac__type_sizeof_;
9318int
9319main ()
9320{
9321static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9322test_array [0] = 0
9323
9324 ;
9325 return 0;
9326}
9327_ACEOF
9328rm -f conftest.$ac_objext
9329if { (ac_try="$ac_compile"
9330case "(($ac_try" in
9331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9332 *) ac_try_echo=$ac_try;;
9333esac
9334eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9335 (eval "$ac_compile") 2>conftest.er1
9336 ac_status=$?
9337 grep -v '^ *+' conftest.er1 >conftest.err
9338 rm -f conftest.er1
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } && {
9342 test -z "$ac_cxx_werror_flag" ||
9343 test ! -s conftest.err
9344 } && test -s conftest.$ac_objext; then
9345 ac_hi=$ac_mid
9346else
9347 echo "$as_me: failed program was:" >&5
9348sed 's/^/| /' conftest.$ac_ext >&5
9349
9350 ac_lo=`expr '(' $ac_mid ')' + 1`
9351fi
9352
9353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9354done
9355case $ac_lo in
9356?*) ac_cv_sizeof_long_long=$ac_lo;;
9357'') if test "$ac_cv_type_long_long" = yes; then
9358 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9359See \`config.log' for more details." >&5
9360echo "$as_me: error: cannot compute sizeof (long long)
9361See \`config.log' for more details." >&2;}
9362 { (exit 77); exit 77; }; }
9363 else
9364 ac_cv_sizeof_long_long=0
9365 fi ;;
9366esac
9367else
9368 cat >conftest.$ac_ext <<_ACEOF
9369/* confdefs.h. */
9370_ACEOF
9371cat confdefs.h >>conftest.$ac_ext
9372cat >>conftest.$ac_ext <<_ACEOF
9373/* end confdefs.h. */
9374$ac_includes_default
9375 typedef long long ac__type_sizeof_;
9376static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9377static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9378#include <stdio.h>
9379#include <stdlib.h>
9380int
9381main ()
9382{
9383
9384 FILE *f = fopen ("conftest.val", "w");
9385 if (! f)
9386 return 1;
9387 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9388 {
9389 long int i = longval ();
9390 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9391 return 1;
9392 fprintf (f, "%ld\n", i);
9393 }
9394 else
9395 {
9396 unsigned long int i = ulongval ();
9397 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9398 return 1;
9399 fprintf (f, "%lu\n", i);
9400 }
9401 return ferror (f) || fclose (f) != 0;
9402
9403 ;
9404 return 0;
9405}
9406_ACEOF
9407rm -f conftest$ac_exeext
9408if { (ac_try="$ac_link"
9409case "(($ac_try" in
9410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9411 *) ac_try_echo=$ac_try;;
9412esac
9413eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9414 (eval "$ac_link") 2>&5
9415 ac_status=$?
9416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9417 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9418 { (case "(($ac_try" in
9419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9420 *) ac_try_echo=$ac_try;;
9421esac
9422eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9423 (eval "$ac_try") 2>&5
9424 ac_status=$?
9425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9426 (exit $ac_status); }; }; then
9427 ac_cv_sizeof_long_long=`cat conftest.val`
9428else
9429 echo "$as_me: program exited with status $ac_status" >&5
9430echo "$as_me: failed program was:" >&5
9431sed 's/^/| /' conftest.$ac_ext >&5
9432
9433( exit $ac_status )
9434if test "$ac_cv_type_long_long" = yes; then
9435 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9436See \`config.log' for more details." >&5
9437echo "$as_me: error: cannot compute sizeof (long long)
9438See \`config.log' for more details." >&2;}
9439 { (exit 77); exit 77; }; }
9440 else
9441 ac_cv_sizeof_long_long=0
9442 fi
9443fi
9444rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9445fi
9446rm -f conftest.val
9447fi
9448{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9449echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9450
9451
9452
9453cat >>confdefs.h <<_ACEOF
9454#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9455_ACEOF
9456
9457
9458{ echo "$as_me:$LINENO: checking for int *" >&5
9459echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
9460if test "${ac_cv_type_int_p+set}" = set; then
9461 echo $ECHO_N "(cached) $ECHO_C" >&6
9462else
9463 cat >conftest.$ac_ext <<_ACEOF
9464/* confdefs.h. */
9465_ACEOF
9466cat confdefs.h >>conftest.$ac_ext
9467cat >>conftest.$ac_ext <<_ACEOF
9468/* end confdefs.h. */
9469$ac_includes_default
9470typedef int * ac__type_new_;
9471int
9472main ()
9473{
9474if ((ac__type_new_ *) 0)
9475 return 0;
9476if (sizeof (ac__type_new_))
9477 return 0;
9478 ;
9479 return 0;
9480}
9481_ACEOF
9482rm -f conftest.$ac_objext
9483if { (ac_try="$ac_compile"
9484case "(($ac_try" in
9485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9486 *) ac_try_echo=$ac_try;;
9487esac
9488eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9489 (eval "$ac_compile") 2>conftest.er1
9490 ac_status=$?
9491 grep -v '^ *+' conftest.er1 >conftest.err
9492 rm -f conftest.er1
9493 cat conftest.err >&5
9494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9495 (exit $ac_status); } && {
9496 test -z "$ac_cxx_werror_flag" ||
9497 test ! -s conftest.err
9498 } && test -s conftest.$ac_objext; then
9499 ac_cv_type_int_p=yes
9500else
9501 echo "$as_me: failed program was:" >&5
9502sed 's/^/| /' conftest.$ac_ext >&5
9503
9504 ac_cv_type_int_p=no
9505fi
9506
9507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9508fi
9509{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9510echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
9511
9512# The cast to long int works around a bug in the HP C Compiler
9513# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9514# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9515# This bug is HP SR number 8606223364.
9516{ echo "$as_me:$LINENO: checking size of int *" >&5
9517echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
9518if test "${ac_cv_sizeof_int_p+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9520else
9521 if test "$cross_compiling" = yes; then
9522 # Depending upon the size, compute the lo and hi bounds.
9523cat >conftest.$ac_ext <<_ACEOF
9524/* confdefs.h. */
9525_ACEOF
9526cat confdefs.h >>conftest.$ac_ext
9527cat >>conftest.$ac_ext <<_ACEOF
9528/* end confdefs.h. */
9529$ac_includes_default
9530 typedef int * ac__type_sizeof_;
9531int
9532main ()
9533{
9534static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9535test_array [0] = 0
9536
9537 ;
9538 return 0;
9539}
9540_ACEOF
9541rm -f conftest.$ac_objext
9542if { (ac_try="$ac_compile"
9543case "(($ac_try" in
9544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9546esac
9547eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_compile") 2>conftest.er1
9549 ac_status=$?
9550 grep -v '^ *+' conftest.er1 >conftest.err
9551 rm -f conftest.er1
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && {
9555 test -z "$ac_cxx_werror_flag" ||
9556 test ! -s conftest.err
9557 } && test -s conftest.$ac_objext; then
9558 ac_lo=0 ac_mid=0
9559 while :; do
9560 cat >conftest.$ac_ext <<_ACEOF
9561/* confdefs.h. */
9562_ACEOF
9563cat confdefs.h >>conftest.$ac_ext
9564cat >>conftest.$ac_ext <<_ACEOF
9565/* end confdefs.h. */
9566$ac_includes_default
9567 typedef int * ac__type_sizeof_;
9568int
9569main ()
9570{
9571static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9572test_array [0] = 0
9573
9574 ;
9575 return 0;
9576}
9577_ACEOF
9578rm -f conftest.$ac_objext
9579if { (ac_try="$ac_compile"
9580case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9583esac
9584eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_compile") 2>conftest.er1
9586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } && {
9592 test -z "$ac_cxx_werror_flag" ||
9593 test ! -s conftest.err
9594 } && test -s conftest.$ac_objext; then
9595 ac_hi=$ac_mid; break
9596else
9597 echo "$as_me: failed program was:" >&5
9598sed 's/^/| /' conftest.$ac_ext >&5
9599
9600 ac_lo=`expr $ac_mid + 1`
9601 if test $ac_lo -le $ac_mid; then
9602 ac_lo= ac_hi=
9603 break
9604 fi
9605 ac_mid=`expr 2 '*' $ac_mid + 1`
9606fi
9607
9608rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9609 done
9610else
9611 echo "$as_me: failed program was:" >&5
9612sed 's/^/| /' conftest.$ac_ext >&5
9613
9614 cat >conftest.$ac_ext <<_ACEOF
9615/* confdefs.h. */
9616_ACEOF
9617cat confdefs.h >>conftest.$ac_ext
9618cat >>conftest.$ac_ext <<_ACEOF
9619/* end confdefs.h. */
9620$ac_includes_default
9621 typedef int * ac__type_sizeof_;
9622int
9623main ()
9624{
9625static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9626test_array [0] = 0
9627
9628 ;
9629 return 0;
9630}
9631_ACEOF
9632rm -f conftest.$ac_objext
9633if { (ac_try="$ac_compile"
9634case "(($ac_try" in
9635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9636 *) ac_try_echo=$ac_try;;
9637esac
9638eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9639 (eval "$ac_compile") 2>conftest.er1
9640 ac_status=$?
9641 grep -v '^ *+' conftest.er1 >conftest.err
9642 rm -f conftest.er1
9643 cat conftest.err >&5
9644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9645 (exit $ac_status); } && {
9646 test -z "$ac_cxx_werror_flag" ||
9647 test ! -s conftest.err
9648 } && test -s conftest.$ac_objext; then
9649 ac_hi=-1 ac_mid=-1
9650 while :; do
9651 cat >conftest.$ac_ext <<_ACEOF
9652/* confdefs.h. */
9653_ACEOF
9654cat confdefs.h >>conftest.$ac_ext
9655cat >>conftest.$ac_ext <<_ACEOF
9656/* end confdefs.h. */
9657$ac_includes_default
9658 typedef int * ac__type_sizeof_;
9659int
9660main ()
9661{
9662static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9663test_array [0] = 0
9664
9665 ;
9666 return 0;
9667}
9668_ACEOF
9669rm -f conftest.$ac_objext
9670if { (ac_try="$ac_compile"
9671case "(($ac_try" in
9672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9673 *) ac_try_echo=$ac_try;;
9674esac
9675eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9676 (eval "$ac_compile") 2>conftest.er1
9677 ac_status=$?
9678 grep -v '^ *+' conftest.er1 >conftest.err
9679 rm -f conftest.er1
9680 cat conftest.err >&5
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && {
9683 test -z "$ac_cxx_werror_flag" ||
9684 test ! -s conftest.err
9685 } && test -s conftest.$ac_objext; then
9686 ac_lo=$ac_mid; break
9687else
9688 echo "$as_me: failed program was:" >&5
9689sed 's/^/| /' conftest.$ac_ext >&5
9690
9691 ac_hi=`expr '(' $ac_mid ')' - 1`
9692 if test $ac_mid -le $ac_hi; then
9693 ac_lo= ac_hi=
9694 break
9695 fi
9696 ac_mid=`expr 2 '*' $ac_mid`
9697fi
9698
9699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9700 done
9701else
9702 echo "$as_me: failed program was:" >&5
9703sed 's/^/| /' conftest.$ac_ext >&5
9704
9705 ac_lo= ac_hi=
9706fi
9707
9708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9709fi
9710
9711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9712# Binary search between lo and hi bounds.
9713while test "x$ac_lo" != "x$ac_hi"; do
9714 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9715 cat >conftest.$ac_ext <<_ACEOF
9716/* confdefs.h. */
9717_ACEOF
9718cat confdefs.h >>conftest.$ac_ext
9719cat >>conftest.$ac_ext <<_ACEOF
9720/* end confdefs.h. */
9721$ac_includes_default
9722 typedef int * ac__type_sizeof_;
9723int
9724main ()
9725{
9726static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9727test_array [0] = 0
9728
9729 ;
9730 return 0;
9731}
9732_ACEOF
9733rm -f conftest.$ac_objext
9734if { (ac_try="$ac_compile"
9735case "(($ac_try" in
9736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9737 *) ac_try_echo=$ac_try;;
9738esac
9739eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9740 (eval "$ac_compile") 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } && {
9747 test -z "$ac_cxx_werror_flag" ||
9748 test ! -s conftest.err
9749 } && test -s conftest.$ac_objext; then
9750 ac_hi=$ac_mid
9751else
9752 echo "$as_me: failed program was:" >&5
9753sed 's/^/| /' conftest.$ac_ext >&5
9754
9755 ac_lo=`expr '(' $ac_mid ')' + 1`
9756fi
9757
9758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9759done
9760case $ac_lo in
9761?*) ac_cv_sizeof_int_p=$ac_lo;;
9762'') if test "$ac_cv_type_int_p" = yes; then
9763 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9764See \`config.log' for more details." >&5
9765echo "$as_me: error: cannot compute sizeof (int *)
9766See \`config.log' for more details." >&2;}
9767 { (exit 77); exit 77; }; }
9768 else
9769 ac_cv_sizeof_int_p=0
9770 fi ;;
9771esac
9772else
9773 cat >conftest.$ac_ext <<_ACEOF
9774/* confdefs.h. */
9775_ACEOF
9776cat confdefs.h >>conftest.$ac_ext
9777cat >>conftest.$ac_ext <<_ACEOF
9778/* end confdefs.h. */
9779$ac_includes_default
9780 typedef int * ac__type_sizeof_;
9781static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9782static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9783#include <stdio.h>
9784#include <stdlib.h>
9785int
9786main ()
9787{
9788
9789 FILE *f = fopen ("conftest.val", "w");
9790 if (! f)
9791 return 1;
9792 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9793 {
9794 long int i = longval ();
9795 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9796 return 1;
9797 fprintf (f, "%ld\n", i);
9798 }
9799 else
9800 {
9801 unsigned long int i = ulongval ();
9802 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9803 return 1;
9804 fprintf (f, "%lu\n", i);
9805 }
9806 return ferror (f) || fclose (f) != 0;
9807
9808 ;
9809 return 0;
9810}
9811_ACEOF
9812rm -f conftest$ac_exeext
9813if { (ac_try="$ac_link"
9814case "(($ac_try" in
9815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9816 *) ac_try_echo=$ac_try;;
9817esac
9818eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_link") 2>&5
9820 ac_status=$?
9821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9822 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9823 { (case "(($ac_try" in
9824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9825 *) ac_try_echo=$ac_try;;
9826esac
9827eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9828 (eval "$ac_try") 2>&5
9829 ac_status=$?
9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9831 (exit $ac_status); }; }; then
9832 ac_cv_sizeof_int_p=`cat conftest.val`
9833else
9834 echo "$as_me: program exited with status $ac_status" >&5
9835echo "$as_me: failed program was:" >&5
9836sed 's/^/| /' conftest.$ac_ext >&5
9837
9838( exit $ac_status )
9839if test "$ac_cv_type_int_p" = yes; then
9840 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9841See \`config.log' for more details." >&5
9842echo "$as_me: error: cannot compute sizeof (int *)
9843See \`config.log' for more details." >&2;}
9844 { (exit 77); exit 77; }; }
9845 else
9846 ac_cv_sizeof_int_p=0
9847 fi
9848fi
9849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9850fi
9851rm -f conftest.val
9852fi
9853{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9854echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9855
9856
9857
9858cat >>confdefs.h <<_ACEOF
9859#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9860_ACEOF
9861
9862
9863
9864
9865{ echo "$as_me:$LINENO: checking for int16_t" >&5
9866echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9867if test "${rxvt_cv_int16_t+set}" = set; then
9868 echo $ECHO_N "(cached) $ECHO_C" >&6
9869else
9870 cat >conftest.$ac_ext <<_ACEOF
9871/* confdefs.h. */
9872_ACEOF
9873cat confdefs.h >>conftest.$ac_ext
9874cat >>conftest.$ac_ext <<_ACEOF
9875/* end confdefs.h. */
9876#include <stdint.h>
9877int
9878main ()
9879{
9880int16_t dummy;
9881 ;
9882 return 0;
9883}
9884_ACEOF
9885rm -f conftest.$ac_objext
9886if { (ac_try="$ac_compile"
9887case "(($ac_try" in
9888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9889 *) ac_try_echo=$ac_try;;
9890esac
9891eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9892 (eval "$ac_compile") 2>conftest.er1
9893 ac_status=$?
9894 grep -v '^ *+' conftest.er1 >conftest.err
9895 rm -f conftest.er1
9896 cat conftest.err >&5
9897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9898 (exit $ac_status); } && {
9899 test -z "$ac_cxx_werror_flag" ||
9900 test ! -s conftest.err
9901 } && test -s conftest.$ac_objext; then
9902 rxvt_cv_int16_t=yes
9903else
9904 echo "$as_me: failed program was:" >&5
9905sed 's/^/| /' conftest.$ac_ext >&5
9906
9907 if test "$ac_cv_sizeof_char" -ge 2; then
9908 rxvt_cv_int16_t=" char"
9909else
9910 if test "$ac_cv_sizeof_short" -ge 2; then
9911 rxvt_cv_int16_t=" short"
9912 else
9913 if test "$ac_cv_sizeof_int" -ge 2; then
9914 rxvt_cv_int16_t=" int"
9915 else
9916 if test "$ac_cv_sizeof_long" -ge 2; then
9917 rxvt_cv_int16_t=" long"
9918 else
9919 if test "$ac_cv_sizeof_long_long" -ge 2; then
9920 rxvt_cv_int16_t=" long long"
9921 else
9922 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9923 fi
9924 fi
9925 fi
9926 fi
9927fi
9928fi
9929
9930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9931fi
9932{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9933echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9934if test x"$rxvt_cv_int16_t" != xyes; then
9935 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9936else
9937 if test x"" = x; then
9938 rxvt_int16_typedef="/* typedef short int16_t; */"
9939 else
9940 rxvt_int16_typedef="/* typedef short int16_t; */"
9941 fi
9942fi
9943
9944{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9945echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9946if test "${rxvt_cv_uint16_t+set}" = set; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948else
9949 cat >conftest.$ac_ext <<_ACEOF
9950/* confdefs.h. */
9951_ACEOF
9952cat confdefs.h >>conftest.$ac_ext
9953cat >>conftest.$ac_ext <<_ACEOF
9954/* end confdefs.h. */
9955#include <stdint.h>
9956int
9957main ()
9958{
9959uint16_t dummy;
9960 ;
9961 return 0;
9962}
9963_ACEOF
9964rm -f conftest.$ac_objext
9965if { (ac_try="$ac_compile"
9966case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969esac
9970eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9971 (eval "$ac_compile") 2>conftest.er1
9972 ac_status=$?
9973 grep -v '^ *+' conftest.er1 >conftest.err
9974 rm -f conftest.er1
9975 cat conftest.err >&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && {
9978 test -z "$ac_cxx_werror_flag" ||
9979 test ! -s conftest.err
9980 } && test -s conftest.$ac_objext; then
9981 rxvt_cv_uint16_t=yes
9982else
9983 echo "$as_me: failed program was:" >&5
9984sed 's/^/| /' conftest.$ac_ext >&5
9985
9986 if test "$ac_cv_sizeof_char" -ge 2; then
9987 rxvt_cv_uint16_t="unsigned char"
9988else
9989 if test "$ac_cv_sizeof_short" -ge 2; then
9990 rxvt_cv_uint16_t="unsigned short"
9991 else
9992 if test "$ac_cv_sizeof_int" -ge 2; then
9993 rxvt_cv_uint16_t="unsigned int"
9994 else
9995 if test "$ac_cv_sizeof_long" -ge 2; then
9996 rxvt_cv_uint16_t="unsigned long"
9997 else
9998 if test "$ac_cv_sizeof_long_long" -ge 2; then
9999 rxvt_cv_uint16_t="unsigned long long"
10000 else
10001 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
10002 fi
10003 fi
10004 fi
10005 fi
10006fi
10007fi
10008
10009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10010fi
10011{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
10012echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
10013if test x"$rxvt_cv_uint16_t" != xyes; then
10014 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
10015else
10016 if test x"unsigned" = x; then
10017 rxvt_uint16_typedef="/* typedef short uint16_t; */"
10018 else
10019 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
10020 fi
10021fi
10022
10023{ echo "$as_me:$LINENO: checking for int32_t" >&5
10024echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
10025if test "${rxvt_cv_int32_t+set}" = set; then
10026 echo $ECHO_N "(cached) $ECHO_C" >&6
10027else
10028 cat >conftest.$ac_ext <<_ACEOF
10029/* confdefs.h. */
10030_ACEOF
10031cat confdefs.h >>conftest.$ac_ext
10032cat >>conftest.$ac_ext <<_ACEOF
10033/* end confdefs.h. */
10034#include <stdint.h>
10035int
10036main ()
10037{
10038int32_t dummy;
10039 ;
10040 return 0;
10041}
10042_ACEOF
10043rm -f conftest.$ac_objext
10044if { (ac_try="$ac_compile"
10045case "(($ac_try" in
10046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10047 *) ac_try_echo=$ac_try;;
10048esac
10049eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10050 (eval "$ac_compile") 2>conftest.er1
10051 ac_status=$?
10052 grep -v '^ *+' conftest.er1 >conftest.err
10053 rm -f conftest.er1
10054 cat conftest.err >&5
10055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10056 (exit $ac_status); } && {
10057 test -z "$ac_cxx_werror_flag" ||
10058 test ! -s conftest.err
10059 } && test -s conftest.$ac_objext; then
10060 rxvt_cv_int32_t=yes
10061else
10062 echo "$as_me: failed program was:" >&5
10063sed 's/^/| /' conftest.$ac_ext >&5
10064
10065 if test "$ac_cv_sizeof_char" -ge 4; then
10066 rxvt_cv_int32_t=" char"
10067else
10068 if test "$ac_cv_sizeof_short" -ge 4; then
10069 rxvt_cv_int32_t=" short"
10070 else
10071 if test "$ac_cv_sizeof_int" -ge 4; then
10072 rxvt_cv_int32_t=" int"
10073 else
10074 if test "$ac_cv_sizeof_long" -ge 4; then
10075 rxvt_cv_int32_t=" long"
10076 else
10077 if test "$ac_cv_sizeof_long_long" -ge 4; then
10078 rxvt_cv_int32_t=" long long"
10079 else
10080 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
10081 fi
10082 fi
10083 fi
10084 fi
10085fi
10086fi
10087
10088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10089fi
10090{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
10091echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
10092if test x"$rxvt_cv_int32_t" != xyes; then
10093 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
10094else
10095 if test x"" = x; then
10096 rxvt_int32_typedef="/* typedef int int32_t; */"
10097 else
10098 rxvt_int32_typedef="/* typedef int int32_t; */"
10099 fi
10100fi
10101
10102{ echo "$as_me:$LINENO: checking for uint32_t" >&5
10103echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
10104if test "${rxvt_cv_uint32_t+set}" = set; then
10105 echo $ECHO_N "(cached) $ECHO_C" >&6
10106else
10107 cat >conftest.$ac_ext <<_ACEOF
10108/* confdefs.h. */
10109_ACEOF
10110cat confdefs.h >>conftest.$ac_ext
10111cat >>conftest.$ac_ext <<_ACEOF
10112/* end confdefs.h. */
10113#include <stdint.h>
10114int
10115main ()
10116{
10117uint32_t dummy;
10118 ;
10119 return 0;
10120}
10121_ACEOF
10122rm -f conftest.$ac_objext
10123if { (ac_try="$ac_compile"
10124case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10127esac
10128eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_compile") 2>conftest.er1
10130 ac_status=$?
10131 grep -v '^ *+' conftest.er1 >conftest.err
10132 rm -f conftest.er1
10133 cat conftest.err >&5
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); } && {
10136 test -z "$ac_cxx_werror_flag" ||
10137 test ! -s conftest.err
10138 } && test -s conftest.$ac_objext; then
10139 rxvt_cv_uint32_t=yes
10140else
10141 echo "$as_me: failed program was:" >&5
10142sed 's/^/| /' conftest.$ac_ext >&5
10143
10144 if test "$ac_cv_sizeof_char" -ge 4; then
10145 rxvt_cv_uint32_t="unsigned char"
10146else
10147 if test "$ac_cv_sizeof_short" -ge 4; then
10148 rxvt_cv_uint32_t="unsigned short"
10149 else
10150 if test "$ac_cv_sizeof_int" -ge 4; then
10151 rxvt_cv_uint32_t="unsigned int"
10152 else
10153 if test "$ac_cv_sizeof_long" -ge 4; then
10154 rxvt_cv_uint32_t="unsigned long"
10155 else
10156 if test "$ac_cv_sizeof_long_long" -ge 4; then
10157 rxvt_cv_uint32_t="unsigned long long"
10158 else
10159 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10160 fi
10161 fi
10162 fi
10163 fi
10164fi
10165fi
10166
10167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10168fi
10169{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10170echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
10171if test x"$rxvt_cv_uint32_t" != xyes; then
10172 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10173else
10174 if test x"unsigned" = x; then
10175 rxvt_uint32_typedef="/* typedef int uint32_t; */"
10176 else
10177 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10178 fi
10179fi
10180
10181if test "$ac_cv_sizeof_int_p" -eq 8; then
10182 rxvt_intp_define="#define intp_t int64_t"
10183 rxvt_u_intp_define="#define u_intp_t u_int64_t"
10184else
10185 if test "$ac_cv_sizeof_int_p" -eq 4; then
10186 rxvt_intp_define="#define intp_t int32_t"
10187 rxvt_u_intp_define="#define u_intp_t u_int32_t"
10188 else
10189 if test "$ac_cv_sizeof_int_p" -eq 2; then
10190 rxvt_intp_define="#define intp_t int16_t"
10191 rxvt_u_intp_define="#define u_intp_t u_int16_t"
10192 else
10193 rxvt_intp_define="#error set intp_t"
10194 rxvt_u_intp_define="#error set u_intp_t"
10195 fi
10196 fi
10197fi
10198
10199
10200
10201{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10202echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
10203if test "${ac_cv_type_signal+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205else
10206 cat >conftest.$ac_ext <<_ACEOF
10207/* confdefs.h. */
10208_ACEOF
10209cat confdefs.h >>conftest.$ac_ext
10210cat >>conftest.$ac_ext <<_ACEOF
10211/* end confdefs.h. */
10212#include <sys/types.h>
10213#include <signal.h>
10214
10215int
10216main ()
10217{
10218return *(signal (0, 0)) (0) == 1;
10219 ;
10220 return 0;
10221}
10222_ACEOF
10223rm -f conftest.$ac_objext
10224if { (ac_try="$ac_compile"
10225case "(($ac_try" in
10226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10227 *) ac_try_echo=$ac_try;;
10228esac
10229eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_compile") 2>conftest.er1
10231 ac_status=$?
10232 grep -v '^ *+' conftest.er1 >conftest.err
10233 rm -f conftest.er1
10234 cat conftest.err >&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && {
10237 test -z "$ac_cxx_werror_flag" ||
10238 test ! -s conftest.err
10239 } && test -s conftest.$ac_objext; then
10240 ac_cv_type_signal=int
10241else
10242 echo "$as_me: failed program was:" >&5
10243sed 's/^/| /' conftest.$ac_ext >&5
10244
10245 ac_cv_type_signal=void
10246fi
10247
10248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10249fi
10250{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10251echo "${ECHO_T}$ac_cv_type_signal" >&6; }
10252
10253cat >>confdefs.h <<_ACEOF
10254#define RETSIGTYPE $ac_cv_type_signal
10255_ACEOF
10256
10257
10258
10259
10260
10261
10262for ac_func in \
10263 unsetenv \
10264 setutent \
10265 on_exit \
10266
10267do
10268as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10269{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10270echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10271if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10272 echo $ECHO_N "(cached) $ECHO_C" >&6
10273else
10274 cat >conftest.$ac_ext <<_ACEOF
10275/* confdefs.h. */
10276_ACEOF
10277cat confdefs.h >>conftest.$ac_ext
10278cat >>conftest.$ac_ext <<_ACEOF
10279/* end confdefs.h. */
10280/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10281 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10282#define $ac_func innocuous_$ac_func
10283
10284/* System header to define __stub macros and hopefully few prototypes,
10285 which can conflict with char $ac_func (); below.
10286 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10287 <limits.h> exists even on freestanding compilers. */
10288
10289#ifdef __STDC__
10290# include <limits.h>
10291#else
10292# include <assert.h>
10293#endif
10294
10295#undef $ac_func
10296
10297/* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10300#ifdef __cplusplus
10301extern "C"
10302#endif
10303char $ac_func ();
10304/* The GNU C library defines this for functions which it implements
10305 to always fail with ENOSYS. Some functions are actually named
10306 something starting with __ and the normal name is an alias. */
10307#if defined __stub_$ac_func || defined __stub___$ac_func
10308choke me
10309#endif
10310
10311int
10312main ()
10313{
10314return $ac_func ();
10315 ;
10316 return 0;
10317}
10318_ACEOF
10319rm -f conftest.$ac_objext conftest$ac_exeext
10320if { (ac_try="$ac_link"
10321case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10324esac
10325eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_link") 2>conftest.er1
10327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_cxx_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest$ac_exeext &&
10336 $as_test_x conftest$ac_exeext; then
10337 eval "$as_ac_var=yes"
10338else
10339 echo "$as_me: failed program was:" >&5
10340sed 's/^/| /' conftest.$ac_ext >&5
10341
10342 eval "$as_ac_var=no"
10343fi
10344
10345rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10346 conftest$ac_exeext conftest.$ac_ext
10347fi
10348ac_res=`eval echo '${'$as_ac_var'}'`
10349 { echo "$as_me:$LINENO: result: $ac_res" >&5 6660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10350echo "${ECHO_T}$ac_res" >&6; } 6661$as_echo "$ac_res" >&6; }
10351if test `eval echo '${'$as_ac_var'}'` = yes; then 6662 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
10352 cat >>confdefs.h <<_ACEOF
10353#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10354_ACEOF
10355 6663
10356fi 6664} # ac_fn_cxx_check_member
10357done 6665ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
10358
10359
10360
10361support_utmp=yes
10362support_wtmp=yes
10363support_lastlog=yes
10364
10365# Check whether --enable-utmp was given.
10366if test "${enable_utmp+set}" = set; then
10367 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
10368 support_utmp=$enableval
10369 fi
10370fi
10371
10372
10373# Check whether --enable-wtmp was given.
10374if test "${enable_wtmp+set}" = set; then
10375 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
10376 support_wtmp=$enableval
10377 fi
10378fi
10379
10380
10381# Check whether --enable-lastlog was given.
10382if test "${enable_lastlog+set}" = set; then
10383 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
10384 support_lastlog=$enableval
10385 fi
10386fi
10387
10388
10389if test x$support_utmp = xyes; then
10390
10391cat >>confdefs.h <<\_ACEOF
10392#define UTMP_SUPPORT 1
10393_ACEOF
10394
10395fi
10396if test x$support_wtmp = xyes; then
10397
10398cat >>confdefs.h <<\_ACEOF
10399#define WTMP_SUPPORT 1
10400_ACEOF
10401
10402fi
10403if test x$support_lastlog = xyes; then
10404
10405cat >>confdefs.h <<\_ACEOF
10406#define LASTLOG_SUPPORT 1
10407_ACEOF
10408
10409fi
10410
10411
10412
10413
10414for ac_func in \
10415 ttyslot \
10416 updwtmp \
10417 updwtmpx \
10418
10419do
10420as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10421{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10422echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10423if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10424 echo $ECHO_N "(cached) $ECHO_C" >&6
10425else
10426 cat >conftest.$ac_ext <<_ACEOF
10427/* confdefs.h. */
10428_ACEOF
10429cat confdefs.h >>conftest.$ac_ext
10430cat >>conftest.$ac_ext <<_ACEOF
10431/* end confdefs.h. */
10432/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10433 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10434#define $ac_func innocuous_$ac_func
10435
10436/* System header to define __stub macros and hopefully few prototypes,
10437 which can conflict with char $ac_func (); below.
10438 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10439 <limits.h> exists even on freestanding compilers. */
10440
10441#ifdef __STDC__
10442# include <limits.h>
10443#else
10444# include <assert.h>
10445#endif
10446
10447#undef $ac_func
10448
10449/* Override any GCC internal prototype to avoid an error.
10450 Use char because int might match the return type of a GCC
10451 builtin and then its argument prototype would still apply. */
10452#ifdef __cplusplus
10453extern "C"
10454#endif
10455char $ac_func ();
10456/* The GNU C library defines this for functions which it implements
10457 to always fail with ENOSYS. Some functions are actually named
10458 something starting with __ and the normal name is an alias. */
10459#if defined __stub_$ac_func || defined __stub___$ac_func
10460choke me
10461#endif
10462
10463int
10464main ()
10465{
10466return $ac_func ();
10467 ;
10468 return 0;
10469}
10470_ACEOF
10471rm -f conftest.$ac_objext conftest$ac_exeext
10472if { (ac_try="$ac_link"
10473case "(($ac_try" in
10474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10475 *) ac_try_echo=$ac_try;;
10476esac
10477eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10478 (eval "$ac_link") 2>conftest.er1
10479 ac_status=$?
10480 grep -v '^ *+' conftest.er1 >conftest.err
10481 rm -f conftest.er1
10482 cat conftest.err >&5
10483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10484 (exit $ac_status); } && {
10485 test -z "$ac_cxx_werror_flag" ||
10486 test ! -s conftest.err
10487 } && test -s conftest$ac_exeext &&
10488 $as_test_x conftest$ac_exeext; then
10489 eval "$as_ac_var=yes"
10490else
10491 echo "$as_me: failed program was:" >&5
10492sed 's/^/| /' conftest.$ac_ext >&5
10493
10494 eval "$as_ac_var=no"
10495fi
10496
10497rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10498 conftest$ac_exeext conftest.$ac_ext
10499fi
10500ac_res=`eval echo '${'$as_ac_var'}'`
10501 { echo "$as_me:$LINENO: result: $ac_res" >&5
10502echo "${ECHO_T}$ac_res" >&6; }
10503if test `eval echo '${'$as_ac_var'}'` = yes; then
10504 cat >>confdefs.h <<_ACEOF
10505#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10506_ACEOF
10507
10508fi
10509done
10510
10511
10512
10513
10514
10515for ac_header in \
10516 utmp.h \
10517 utmpx.h \
10518 lastlog.h \
10519
10520do
10521as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10522if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10524echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10525if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10526 echo $ECHO_N "(cached) $ECHO_C" >&6
10527fi
10528ac_res=`eval echo '${'$as_ac_Header'}'`
10529 { echo "$as_me:$LINENO: result: $ac_res" >&5
10530echo "${ECHO_T}$ac_res" >&6; }
10531else
10532 # Is the header compilable?
10533{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10534echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10535cat >conftest.$ac_ext <<_ACEOF
10536/* confdefs.h. */
10537_ACEOF
10538cat confdefs.h >>conftest.$ac_ext
10539cat >>conftest.$ac_ext <<_ACEOF
10540/* end confdefs.h. */
10541$ac_includes_default
10542#include <$ac_header>
10543_ACEOF
10544rm -f conftest.$ac_objext
10545if { (ac_try="$ac_compile"
10546case "(($ac_try" in
10547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10548 *) ac_try_echo=$ac_try;;
10549esac
10550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10551 (eval "$ac_compile") 2>conftest.er1
10552 ac_status=$?
10553 grep -v '^ *+' conftest.er1 >conftest.err
10554 rm -f conftest.er1
10555 cat conftest.err >&5
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); } && {
10558 test -z "$ac_cxx_werror_flag" ||
10559 test ! -s conftest.err
10560 } && test -s conftest.$ac_objext; then
10561 ac_header_compiler=yes
10562else
10563 echo "$as_me: failed program was:" >&5
10564sed 's/^/| /' conftest.$ac_ext >&5
10565
10566 ac_header_compiler=no
10567fi
10568
10569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10570{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10571echo "${ECHO_T}$ac_header_compiler" >&6; }
10572
10573# Is the header present?
10574{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10575echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10576cat >conftest.$ac_ext <<_ACEOF
10577/* confdefs.h. */
10578_ACEOF
10579cat confdefs.h >>conftest.$ac_ext
10580cat >>conftest.$ac_ext <<_ACEOF
10581/* end confdefs.h. */
10582#include <$ac_header>
10583_ACEOF
10584if { (ac_try="$ac_cpp conftest.$ac_ext"
10585case "(($ac_try" in
10586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10587 *) ac_try_echo=$ac_try;;
10588esac
10589eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10591 ac_status=$?
10592 grep -v '^ *+' conftest.er1 >conftest.err
10593 rm -f conftest.er1
10594 cat conftest.err >&5
10595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10596 (exit $ac_status); } >/dev/null && {
10597 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10598 test ! -s conftest.err
10599 }; then
10600 ac_header_preproc=yes
10601else
10602 echo "$as_me: failed program was:" >&5
10603sed 's/^/| /' conftest.$ac_ext >&5
10604
10605 ac_header_preproc=no
10606fi
10607
10608rm -f conftest.err conftest.$ac_ext
10609{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10610echo "${ECHO_T}$ac_header_preproc" >&6; }
10611
10612# So? What about this header?
10613case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10614 yes:no: )
10615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10616echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10618echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10619 ac_header_preproc=yes
10620 ;;
10621 no:yes:* )
10622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10623echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10625echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10627echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10629echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10631echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10633echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10634
10635 ;;
10636esac
10637{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10638echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10639if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10640 echo $ECHO_N "(cached) $ECHO_C" >&6
10641else
10642 eval "$as_ac_Header=\$ac_header_preproc"
10643fi
10644ac_res=`eval echo '${'$as_ac_Header'}'`
10645 { echo "$as_me:$LINENO: result: $ac_res" >&5
10646echo "${ECHO_T}$ac_res" >&6; }
10647
10648fi
10649if test `eval echo '${'$as_ac_Header'}'` = yes; then
10650 cat >>confdefs.h <<_ACEOF
10651#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10652_ACEOF
10653
10654fi
10655
10656done
10657
10658
10659
10660if test "${ac_cv_header_utmp_h+set}" = set; then
10661 { echo "$as_me:$LINENO: checking for utmp.h" >&5
10662echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; }
10663if test "${ac_cv_header_utmp_h+set}" = set; then
10664 echo $ECHO_N "(cached) $ECHO_C" >&6
10665fi
10666{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10667echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; }
10668else
10669 # Is the header compilable?
10670{ echo "$as_me:$LINENO: checking utmp.h usability" >&5
10671echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; }
10672cat >conftest.$ac_ext <<_ACEOF
10673/* confdefs.h. */
10674_ACEOF
10675cat confdefs.h >>conftest.$ac_ext
10676cat >>conftest.$ac_ext <<_ACEOF
10677/* end confdefs.h. */
10678$ac_includes_default
10679#include <utmp.h>
10680_ACEOF
10681rm -f conftest.$ac_objext
10682if { (ac_try="$ac_compile"
10683case "(($ac_try" in
10684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10685 *) ac_try_echo=$ac_try;;
10686esac
10687eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10688 (eval "$ac_compile") 2>conftest.er1
10689 ac_status=$?
10690 grep -v '^ *+' conftest.er1 >conftest.err
10691 rm -f conftest.er1
10692 cat conftest.err >&5
10693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10694 (exit $ac_status); } && {
10695 test -z "$ac_cxx_werror_flag" ||
10696 test ! -s conftest.err
10697 } && test -s conftest.$ac_objext; then
10698 ac_header_compiler=yes
10699else
10700 echo "$as_me: failed program was:" >&5
10701sed 's/^/| /' conftest.$ac_ext >&5
10702
10703 ac_header_compiler=no
10704fi
10705
10706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10707{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10708echo "${ECHO_T}$ac_header_compiler" >&6; }
10709
10710# Is the header present?
10711{ echo "$as_me:$LINENO: checking utmp.h presence" >&5
10712echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; }
10713cat >conftest.$ac_ext <<_ACEOF
10714/* confdefs.h. */
10715_ACEOF
10716cat confdefs.h >>conftest.$ac_ext
10717cat >>conftest.$ac_ext <<_ACEOF
10718/* end confdefs.h. */
10719#include <utmp.h>
10720_ACEOF
10721if { (ac_try="$ac_cpp conftest.$ac_ext"
10722case "(($ac_try" in
10723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10724 *) ac_try_echo=$ac_try;;
10725esac
10726eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10728 ac_status=$?
10729 grep -v '^ *+' conftest.er1 >conftest.err
10730 rm -f conftest.er1
10731 cat conftest.err >&5
10732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10733 (exit $ac_status); } >/dev/null && {
10734 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10735 test ! -s conftest.err
10736 }; then
10737 ac_header_preproc=yes
10738else
10739 echo "$as_me: failed program was:" >&5
10740sed 's/^/| /' conftest.$ac_ext >&5
10741
10742 ac_header_preproc=no
10743fi
10744
10745rm -f conftest.err conftest.$ac_ext
10746{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10747echo "${ECHO_T}$ac_header_preproc" >&6; }
10748
10749# So? What about this header?
10750case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10751 yes:no: )
10752 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10753echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10754 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10755echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10756 ac_header_preproc=yes
10757 ;;
10758 no:yes:* )
10759 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10760echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10761 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10762echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10763 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10764echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10765 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10766echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10767 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10768echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10769 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10770echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10771
10772 ;;
10773esac
10774{ echo "$as_me:$LINENO: checking for utmp.h" >&5
10775echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; }
10776if test "${ac_cv_header_utmp_h+set}" = set; then
10777 echo $ECHO_N "(cached) $ECHO_C" >&6
10778else
10779 ac_cv_header_utmp_h=$ac_header_preproc
10780fi
10781{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10782echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; }
10783
10784fi
10785if test $ac_cv_header_utmp_h = yes; then
10786 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10787echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10788if test "${struct_utmp+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10790else
10791 cat >conftest.$ac_ext <<_ACEOF
10792/* confdefs.h. */
10793_ACEOF
10794cat confdefs.h >>conftest.$ac_ext
10795cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h. */
10797#include <sys/types.h> 6666#include <sys/types.h>
10798#include <utmp.h> 6667#include <utmp.h>
10799int
10800main ()
10801{
10802struct utmp ut;
10803 ;
10804 return 0;
10805}
10806_ACEOF
10807rm -f conftest.$ac_objext
10808if { (ac_try="$ac_compile"
10809case "(($ac_try" in
10810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10811 *) ac_try_echo=$ac_try;;
10812esac
10813eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10814 (eval "$ac_compile") 2>conftest.er1
10815 ac_status=$?
10816 grep -v '^ *+' conftest.er1 >conftest.err
10817 rm -f conftest.er1
10818 cat conftest.err >&5
10819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10820 (exit $ac_status); } && {
10821 test -z "$ac_cxx_werror_flag" ||
10822 test ! -s conftest.err
10823 } && test -s conftest.$ac_objext; then
10824 struct_utmp=yes
10825else
10826 echo "$as_me: failed program was:" >&5
10827sed 's/^/| /' conftest.$ac_ext >&5
10828 6668
10829 struct_utmp=no 6669"
10830fi 6670if test "x$ac_cv_member_struct_utmp_ut_host" = x""yes; then :
10831 6671
10832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6672$as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
10833fi
10834{ echo "$as_me:$LINENO: result: $struct_utmp" >&5
10835echo "${ECHO_T}$struct_utmp" >&6; }
10836if test x$struct_utmp = xyes; then
10837 6673
10838cat >>confdefs.h <<\_ACEOF
10839#define HAVE_STRUCT_UTMP 1
10840_ACEOF
10841
10842fi 6674fi
10843 6675
10844 6676
10845{ echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 6677ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
10846echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6; }
10847if test "${struct_utmp_host+set}" = set; then
10848 echo $ECHO_N "(cached) $ECHO_C" >&6
10849else
10850 cat >conftest.$ac_ext <<_ACEOF
10851/* confdefs.h. */
10852_ACEOF
10853cat confdefs.h >>conftest.$ac_ext
10854cat >>conftest.$ac_ext <<_ACEOF
10855/* end confdefs.h. */
10856#include <sys/types.h> 6678#include <sys/types.h>
10857#include <utmp.h> 6679#include <utmp.h>
10858int
10859main ()
10860{
10861struct utmp ut; ut.ut_host;
10862 ;
10863 return 0;
10864}
10865_ACEOF
10866rm -f conftest.$ac_objext
10867if { (ac_try="$ac_compile"
10868case "(($ac_try" in
10869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870 *) ac_try_echo=$ac_try;;
10871esac
10872eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873 (eval "$ac_compile") 2>conftest.er1
10874 ac_status=$?
10875 grep -v '^ *+' conftest.er1 >conftest.err
10876 rm -f conftest.er1
10877 cat conftest.err >&5
10878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10879 (exit $ac_status); } && {
10880 test -z "$ac_cxx_werror_flag" ||
10881 test ! -s conftest.err
10882 } && test -s conftest.$ac_objext; then
10883 struct_utmp_host=yes
10884else
10885 echo "$as_me: failed program was:" >&5
10886sed 's/^/| /' conftest.$ac_ext >&5
10887 6680
10888 struct_utmp_host=no 6681"
10889fi 6682if test "x$ac_cv_member_struct_utmp_ut_pid" = x""yes; then :
10890 6683
10891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6684$as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
10892fi
10893{ echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
10894echo "${ECHO_T}$struct_utmp_host" >&6; }
10895if test x$struct_utmp_host = xyes; then
10896 6685
6686fi
6687
6688
6689fi
6690
6691done
6692
6693
6694for ac_header in utmpx.h
6695do :
6696 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6697if test "x$ac_cv_header_utmpx_h" = x""yes; then :
10897cat >>confdefs.h <<\_ACEOF 6698 cat >>confdefs.h <<_ACEOF
10898#define HAVE_UTMP_HOST 1 6699#define HAVE_UTMPX_H 1
10899_ACEOF 6700_ACEOF
10900 6701 ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
10901fi
10902
10903{ echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10904echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6; }
10905if test "${struct_utmp_pid+set}" = set; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10907else
10908 cat >conftest.$ac_ext <<_ACEOF
10909/* confdefs.h. */
10910_ACEOF
10911cat confdefs.h >>conftest.$ac_ext
10912cat >>conftest.$ac_ext <<_ACEOF
10913/* end confdefs.h. */
10914#include <sys/types.h>
10915#include <utmp.h>
10916int
10917main ()
10918{
10919struct utmp ut; ut.ut_pid;
10920 ;
10921 return 0;
10922}
10923_ACEOF
10924rm -f conftest.$ac_objext
10925if { (ac_try="$ac_compile"
10926case "(($ac_try" in
10927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10928 *) ac_try_echo=$ac_try;;
10929esac
10930eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10931 (eval "$ac_compile") 2>conftest.er1
10932 ac_status=$?
10933 grep -v '^ *+' conftest.er1 >conftest.err
10934 rm -f conftest.er1
10935 cat conftest.err >&5
10936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10937 (exit $ac_status); } && {
10938 test -z "$ac_cxx_werror_flag" ||
10939 test ! -s conftest.err
10940 } && test -s conftest.$ac_objext; then
10941 struct_utmp_pid=yes
10942else
10943 echo "$as_me: failed program was:" >&5
10944sed 's/^/| /' conftest.$ac_ext >&5
10945
10946 struct_utmp_pid=no
10947fi
10948
10949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10950fi
10951{ echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
10952echo "${ECHO_T}$struct_utmp_pid" >&6; }
10953if test x$struct_utmp_pid = xyes; then
10954
10955cat >>confdefs.h <<\_ACEOF
10956#define HAVE_UTMP_PID 1
10957_ACEOF
10958
10959fi
10960
10961fi
10962
10963
10964
10965if test "${ac_cv_header_utmpx_h+set}" = set; then
10966 { echo "$as_me:$LINENO: checking for utmpx.h" >&5
10967echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; }
10968if test "${ac_cv_header_utmpx_h+set}" = set; then
10969 echo $ECHO_N "(cached) $ECHO_C" >&6
10970fi
10971{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10972echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; }
10973else
10974 # Is the header compilable?
10975{ echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10976echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; }
10977cat >conftest.$ac_ext <<_ACEOF
10978/* confdefs.h. */
10979_ACEOF
10980cat confdefs.h >>conftest.$ac_ext
10981cat >>conftest.$ac_ext <<_ACEOF
10982/* end confdefs.h. */
10983$ac_includes_default
10984#include <utmpx.h>
10985_ACEOF
10986rm -f conftest.$ac_objext
10987if { (ac_try="$ac_compile"
10988case "(($ac_try" in
10989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10990 *) ac_try_echo=$ac_try;;
10991esac
10992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10993 (eval "$ac_compile") 2>conftest.er1
10994 ac_status=$?
10995 grep -v '^ *+' conftest.er1 >conftest.err
10996 rm -f conftest.er1
10997 cat conftest.err >&5
10998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } && {
11000 test -z "$ac_cxx_werror_flag" ||
11001 test ! -s conftest.err
11002 } && test -s conftest.$ac_objext; then
11003 ac_header_compiler=yes
11004else
11005 echo "$as_me: failed program was:" >&5
11006sed 's/^/| /' conftest.$ac_ext >&5
11007
11008 ac_header_compiler=no
11009fi
11010
11011rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11012{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11013echo "${ECHO_T}$ac_header_compiler" >&6; }
11014
11015# Is the header present?
11016{ echo "$as_me:$LINENO: checking utmpx.h presence" >&5
11017echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; }
11018cat >conftest.$ac_ext <<_ACEOF
11019/* confdefs.h. */
11020_ACEOF
11021cat confdefs.h >>conftest.$ac_ext
11022cat >>conftest.$ac_ext <<_ACEOF
11023/* end confdefs.h. */
11024#include <utmpx.h>
11025_ACEOF
11026if { (ac_try="$ac_cpp conftest.$ac_ext"
11027case "(($ac_try" in
11028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11029 *) ac_try_echo=$ac_try;;
11030esac
11031eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11032 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11033 ac_status=$?
11034 grep -v '^ *+' conftest.er1 >conftest.err
11035 rm -f conftest.er1
11036 cat conftest.err >&5
11037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11038 (exit $ac_status); } >/dev/null && {
11039 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
11040 test ! -s conftest.err
11041 }; then
11042 ac_header_preproc=yes
11043else
11044 echo "$as_me: failed program was:" >&5
11045sed 's/^/| /' conftest.$ac_ext >&5
11046
11047 ac_header_preproc=no
11048fi
11049
11050rm -f conftest.err conftest.$ac_ext
11051{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11052echo "${ECHO_T}$ac_header_preproc" >&6; }
11053
11054# So? What about this header?
11055case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
11056 yes:no: )
11057 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
11058echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11059 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
11060echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
11061 ac_header_preproc=yes
11062 ;;
11063 no:yes:* )
11064 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
11065echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
11066 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
11067echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
11068 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
11069echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
11070 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
11071echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
11072 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
11073echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
11074 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
11075echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
11076
11077 ;;
11078esac
11079{ echo "$as_me:$LINENO: checking for utmpx.h" >&5
11080echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; }
11081if test "${ac_cv_header_utmpx_h+set}" = set; then
11082 echo $ECHO_N "(cached) $ECHO_C" >&6
11083else
11084 ac_cv_header_utmpx_h=$ac_header_preproc
11085fi
11086{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
11087echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; }
11088
11089fi
11090if test $ac_cv_header_utmpx_h = yes; then
11091 { echo "$as_me:$LINENO: checking for struct utmpx" >&5
11092echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
11093if test "${struct_utmpx+set}" = set; then
11094 echo $ECHO_N "(cached) $ECHO_C" >&6
11095else
11096 cat >conftest.$ac_ext <<_ACEOF
11097/* confdefs.h. */
11098_ACEOF
11099cat confdefs.h >>conftest.$ac_ext
11100cat >>conftest.$ac_ext <<_ACEOF
11101/* end confdefs.h. */
11102#include <sys/types.h> 6702#include <sys/types.h>
11103#include <utmpx.h> 6703#include <utmpx.h>
11104int
11105main ()
11106{
11107struct utmpx ut;
11108 ;
11109 return 0;
11110}
11111_ACEOF
11112rm -f conftest.$ac_objext
11113if { (ac_try="$ac_compile"
11114case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117esac
11118eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11119 (eval "$ac_compile") 2>conftest.er1
11120 ac_status=$?
11121 grep -v '^ *+' conftest.er1 >conftest.err
11122 rm -f conftest.er1
11123 cat conftest.err >&5
11124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11125 (exit $ac_status); } && {
11126 test -z "$ac_cxx_werror_flag" ||
11127 test ! -s conftest.err
11128 } && test -s conftest.$ac_objext; then
11129 struct_utmpx=yes
11130else
11131 echo "$as_me: failed program was:" >&5
11132sed 's/^/| /' conftest.$ac_ext >&5
11133 6704
11134 struct_utmpx=no 6705"
11135fi
11136
11137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11138fi
11139{ echo "$as_me:$LINENO: result: $struct_utmpx" >&5
11140echo "${ECHO_T}$struct_utmpx" >&6; }
11141if test x$struct_utmpx = xyes; then 6706if test "x$ac_cv_type_struct_utmpx" = x""yes; then :
11142 6707
11143cat >>confdefs.h <<\_ACEOF 6708cat >>confdefs.h <<_ACEOF
11144#define HAVE_STRUCT_UTMPX 1 6709#define HAVE_STRUCT_UTMPX 1
11145_ACEOF 6710_ACEOF
11146 6711
11147fi
11148 6712
6713fi
11149 6714
11150{ echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 6715
11151echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6; } 6716ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
11152if test "${struct_utmpx_host+set}" = set; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11154else
11155 cat >conftest.$ac_ext <<_ACEOF
11156/* confdefs.h. */
11157_ACEOF
11158cat confdefs.h >>conftest.$ac_ext
11159cat >>conftest.$ac_ext <<_ACEOF
11160/* end confdefs.h. */
11161#include <sys/types.h> 6717#include <sys/types.h>
11162#include <utmpx.h> 6718#include <utmpx.h>
11163int
11164main ()
11165{
11166struct utmpx utx; utx.ut_host;
11167 ;
11168 return 0;
11169}
11170_ACEOF
11171rm -f conftest.$ac_objext
11172if { (ac_try="$ac_compile"
11173case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176esac
11177eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11178 (eval "$ac_compile") 2>conftest.er1
11179 ac_status=$?
11180 grep -v '^ *+' conftest.er1 >conftest.err
11181 rm -f conftest.er1
11182 cat conftest.err >&5
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } && {
11185 test -z "$ac_cxx_werror_flag" ||
11186 test ! -s conftest.err
11187 } && test -s conftest.$ac_objext; then
11188 struct_utmpx_host=yes
11189else
11190 echo "$as_me: failed program was:" >&5
11191sed 's/^/| /' conftest.$ac_ext >&5
11192 6719
11193 struct_utmpx_host=no 6720"
11194fi
11195
11196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11197fi
11198{ echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
11199echo "${ECHO_T}$struct_utmpx_host" >&6; }
11200if test x$struct_utmpx_host = xyes; then 6721if test "x$ac_cv_member_struct_utmpx_ut_host" = x""yes; then :
11201 6722
11202cat >>confdefs.h <<\_ACEOF 6723$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
11203#define HAVE_UTMPX_HOST 1
11204_ACEOF
11205 6724
11206fi 6725fi
11207 6726
11208{ echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
11209echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6; }
11210if test "${struct_utmpx_session+set}" = set; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212else
11213 cat >conftest.$ac_ext <<_ACEOF
11214/* confdefs.h. */
11215_ACEOF
11216cat confdefs.h >>conftest.$ac_ext
11217cat >>conftest.$ac_ext <<_ACEOF
11218/* end confdefs.h. */
11219#include <sys/types.h>
11220#include <utmpx.h>
11221int
11222main ()
11223{
11224struct utmpx utx; utx.ut_session;
11225 ;
11226 return 0;
11227}
11228_ACEOF
11229rm -f conftest.$ac_objext
11230if { (ac_try="$ac_compile"
11231case "(($ac_try" in
11232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11233 *) ac_try_echo=$ac_try;;
11234esac
11235eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11236 (eval "$ac_compile") 2>conftest.er1
11237 ac_status=$?
11238 grep -v '^ *+' conftest.er1 >conftest.err
11239 rm -f conftest.er1
11240 cat conftest.err >&5
11241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11242 (exit $ac_status); } && {
11243 test -z "$ac_cxx_werror_flag" ||
11244 test ! -s conftest.err
11245 } && test -s conftest.$ac_objext; then
11246 struct_utmpx_session=yes
11247else
11248 echo "$as_me: failed program was:" >&5
11249sed 's/^/| /' conftest.$ac_ext >&5
11250 6727
11251 struct_utmpx_session=no
11252fi 6728fi
11253 6729
11254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6730done
11255fi
11256{ echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
11257echo "${ECHO_T}$struct_utmpx_session" >&6; }
11258if test x$struct_utmpx_session = xyes; then
11259 6731
11260cat >>confdefs.h <<\_ACEOF 6732ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
11261#define HAVE_UTMPX_SESSION 1
11262_ACEOF
11263
11264fi
11265
11266fi
11267
11268
11269{ echo "$as_me:$LINENO: checking for struct lastlog" >&5
11270echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; }
11271if test "${struct_lastlog+set}" = set; then
11272 echo $ECHO_N "(cached) $ECHO_C" >&6
11273else
11274 cat >conftest.$ac_ext <<_ACEOF
11275/* confdefs.h. */
11276_ACEOF
11277cat confdefs.h >>conftest.$ac_ext
11278cat >>conftest.$ac_ext <<_ACEOF
11279/* end confdefs.h. */
11280#include <sys/types.h> 6733#include <sys/types.h>
11281#include <utmp.h> 6734#include <utmp.h>
11282#ifdef HAVE_LASTLOG_H 6735#ifdef HAVE_LASTLOG_H
11283#include <lastlog.h> 6736#include <lastlog.h>
11284#endif 6737#endif
11285 6738
11286int 6739"
11287main ()
11288{
11289struct lastlog ll;
11290 ;
11291 return 0;
11292}
11293_ACEOF
11294rm -f conftest.$ac_objext
11295if { (ac_try="$ac_compile"
11296case "(($ac_try" in
11297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11298 *) ac_try_echo=$ac_try;;
11299esac
11300eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11301 (eval "$ac_compile") 2>conftest.er1
11302 ac_status=$?
11303 grep -v '^ *+' conftest.er1 >conftest.err
11304 rm -f conftest.er1
11305 cat conftest.err >&5
11306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11307 (exit $ac_status); } && {
11308 test -z "$ac_cxx_werror_flag" ||
11309 test ! -s conftest.err
11310 } && test -s conftest.$ac_objext; then
11311 struct_lastlog=yes
11312else
11313 echo "$as_me: failed program was:" >&5
11314sed 's/^/| /' conftest.$ac_ext >&5
11315
11316 struct_lastlog=no
11317fi
11318
11319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11320fi
11321{ echo "$as_me:$LINENO: result: $struct_lastlog" >&5
11322echo "${ECHO_T}$struct_lastlog" >&6; }
11323if test x$struct_lastlog = xyes; then 6740if test "x$ac_cv_type_struct_lastlog" = x""yes; then :
11324 6741
11325cat >>confdefs.h <<\_ACEOF 6742cat >>confdefs.h <<_ACEOF
11326#define HAVE_STRUCT_LASTLOG 1 6743#define HAVE_STRUCT_LASTLOG 1
11327_ACEOF 6744_ACEOF
11328 6745
11329fi
11330 6746
11331{ echo "$as_me:$LINENO: checking for struct lastlogx" >&5 6747fi
11332echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6; } 6748
11333if test "${struct_lastlogx+set}" = set; then 6749
11334 echo $ECHO_N "(cached) $ECHO_C" >&6 6750ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" "
11335else
11336 cat >conftest.$ac_ext <<_ACEOF
11337/* confdefs.h. */
11338_ACEOF
11339cat confdefs.h >>conftest.$ac_ext
11340cat >>conftest.$ac_ext <<_ACEOF
11341/* end confdefs.h. */
11342#include <sys/types.h> 6751#include <sys/types.h>
11343#include <utmpx.h> 6752#include <utmpx.h>
11344#ifdef HAVE_LASTLOG_H 6753#ifdef HAVE_LASTLOG_H
11345#include <lastlog.h> 6754#include <lastlog.h>
11346#endif 6755#endif
11347 6756
11348int 6757"
11349main ()
11350{
11351struct lastlogx ll;
11352 ;
11353 return 0;
11354}
11355_ACEOF
11356rm -f conftest.$ac_objext
11357if { (ac_try="$ac_compile"
11358case "(($ac_try" in
11359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11360 *) ac_try_echo=$ac_try;;
11361esac
11362eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11363 (eval "$ac_compile") 2>conftest.er1
11364 ac_status=$?
11365 grep -v '^ *+' conftest.er1 >conftest.err
11366 rm -f conftest.er1
11367 cat conftest.err >&5
11368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11369 (exit $ac_status); } && {
11370 test -z "$ac_cxx_werror_flag" ||
11371 test ! -s conftest.err
11372 } && test -s conftest.$ac_objext; then
11373 struct_lastlogx=yes
11374else
11375 echo "$as_me: failed program was:" >&5
11376sed 's/^/| /' conftest.$ac_ext >&5
11377
11378 struct_lastlogx=no
11379fi
11380
11381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11382fi
11383{ echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
11384echo "${ECHO_T}$struct_lastlogx" >&6; }
11385if test x$struct_lastlogx = xyes; then 6758if test "x$ac_cv_type_struct_lastlogx" = x""yes; then :
11386 6759
11387cat >>confdefs.h <<\_ACEOF 6760cat >>confdefs.h <<_ACEOF
11388#define HAVE_STRUCT_LASTLOGX 1 6761#define HAVE_STRUCT_LASTLOGX 1
11389_ACEOF 6762_ACEOF
11390 6763
11391fi
11392 6764
6765fi
11393 6766
11394{ echo "$as_me:$LINENO: checking where utmp is located" >&5 6767
11395echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6; } 6768
6769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
6770$as_echo_n "checking for a fallback location of utmp... " >&6; }
11396if test "${path_utmp+set}" = set; then 6771if test "${pt_cv_path_utmp+set}" = set; then :
11397 echo $ECHO_N "(cached) $ECHO_C" >&6 6772 $as_echo_n "(cached) " >&6
11398else 6773else
6774
11399 if test "$cross_compiling" = yes; then 6775if test "$cross_compiling" != yes; then
11400 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
11401echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
11402else
11403 cat >conftest.$ac_ext <<_ACEOF
11404/* confdefs.h. */
11405_ACEOF
11406cat confdefs.h >>conftest.$ac_ext
11407cat >>conftest.$ac_ext <<_ACEOF
11408/* end confdefs.h. */
11409#include <stdio.h>
11410#include <stdlib.h>
11411#include <sys/types.h>
11412#include <utmp.h>
11413#include <errno.h>
11414main()
11415{
11416 char **u, *utmplist[] = {
11417 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; 6776 for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
11418 FILE *a, *f=fopen("conftestval", "w"); 6777 if test -f "$file"; then
11419 if (!f) exit(1); 6778 pt_cv_path_utmp=$file
11420#ifdef UTMP_FILE 6779 break
11421 fprintf(f, "%s\n", UTMP_FILE); 6780 fi
11422 exit(0); 6781 done
11423#endif
11424#ifdef _PATH_UTMP
11425 fprintf(f, "%s\n", _PATH_UTMP);
11426 exit(0);
11427#endif
11428 for (u = utmplist; *u; u++) {
11429 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11430 fprintf(f, "%s\n", *u);
11431 exit(0);
11432 }
11433 }
11434 exit(0);
11435}
11436_ACEOF
11437rm -f conftest$ac_exeext
11438if { (ac_try="$ac_link"
11439case "(($ac_try" in
11440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11441 *) ac_try_echo=$ac_try;;
11442esac
11443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11444 (eval "$ac_link") 2>&5
11445 ac_status=$?
11446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11447 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11448 { (case "(($ac_try" in
11449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11450 *) ac_try_echo=$ac_try;;
11451esac
11452eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11453 (eval "$ac_try") 2>&5
11454 ac_status=$?
11455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11456 (exit $ac_status); }; }; then
11457 path_utmp=`cat conftestval`
11458else
11459 echo "$as_me: program exited with status $ac_status" >&5
11460echo "$as_me: failed program was:" >&5
11461sed 's/^/| /' conftest.$ac_ext >&5
11462
11463( exit $ac_status )
11464path_utmp=
11465fi 6782fi
11466rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11467fi 6783fi
11468
11469
11470fi
11471{ echo "$as_me:$LINENO: result: $path_utmp" >&5 6784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
11472echo "${ECHO_T}$path_utmp" >&6; } 6785$as_echo "$pt_cv_path_utmp" >&6; }
11473if test x$path_utmp != x; then 6786if test x$pt_cv_path_utmp != x; then
11474 6787
11475cat >>confdefs.h <<_ACEOF 6788cat >>confdefs.h <<_ACEOF
11476#define UTMP_FILE "$path_utmp" 6789#define PT_UTMP_FILE "$pt_cv_path_utmp"
11477_ACEOF 6790_ACEOF
11478 6791
6792elif test "$cross_compiling" = yes; then
6793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
6794$as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
11479fi 6795fi
11480 6796
11481 6797
11482{ echo "$as_me:$LINENO: checking where utmpx is located" >&5 6798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
11483echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6; } 6799$as_echo_n "checking for a fallback location of wtmp... " >&6; }
11484if test "${path_utmpx+set}" = set; then 6800if test "${pt_cv_path_wtmp+set}" = set; then :
11485 echo $ECHO_N "(cached) $ECHO_C" >&6 6801 $as_echo_n "(cached) " >&6
11486else 6802else
6803
11487 if test "$cross_compiling" = yes; then 6804if test "$cross_compiling" != yes; then
11488 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 6805 for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
11489echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} 6806 if test -f "$file"; then
11490else 6807 pt_cv_path_wtmp=$file
11491 cat >conftest.$ac_ext <<_ACEOF 6808 break
11492/* confdefs.h. */ 6809 fi
11493_ACEOF 6810 done
11494cat confdefs.h >>conftest.$ac_ext
11495cat >>conftest.$ac_ext <<_ACEOF
11496/* end confdefs.h. */
11497#include <stdio.h>
11498#include <stdlib.h>
11499#include <sys/types.h>
11500#include <utmpx.h>
11501#include <errno.h>
11502#include <sys/stat.h>
11503#ifdef HAVE_STRING_H
11504#include <string.h>
11505#endif
11506main()
11507{
11508 char **u, *p, *utmplist[] = {
11509#ifdef UTMPX_FILE
11510 UTMPX_FILE,
11511#endif
11512#ifdef _PATH_UTMPX
11513 _PATH_UTMPX,
11514#endif
11515 "/var/adm/utmpx", "/etc/utmpx", NULL };
11516 FILE *a, *f=fopen("conftestval", "w");
11517 struct stat statu, statux;
11518 if (!f) exit(1);
11519 for (u = utmplist; *u; u++) {
11520 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11521 if (stat(*u, &statux) < 0)
11522 continue;
11523 p = strdup(*u);
11524 p[strlen(p) - 1] = '\0';
11525 if (stat(p, &statu) >= 0
11526 && (statu.st_mtime - statux.st_mtime > 86400))
11527 continue;
11528 fprintf(f, "%s\n", *u);
11529 exit(0);
11530 }
11531 }
11532 exit(0);
11533}
11534_ACEOF
11535rm -f conftest$ac_exeext
11536if { (ac_try="$ac_link"
11537case "(($ac_try" in
11538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11539 *) ac_try_echo=$ac_try;;
11540esac
11541eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11542 (eval "$ac_link") 2>&5
11543 ac_status=$?
11544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11545 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11546 { (case "(($ac_try" in
11547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11548 *) ac_try_echo=$ac_try;;
11549esac
11550eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11551 (eval "$ac_try") 2>&5
11552 ac_status=$?
11553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11554 (exit $ac_status); }; }; then
11555 path_utmpx=`cat conftestval`
11556else
11557 echo "$as_me: program exited with status $ac_status" >&5
11558echo "$as_me: failed program was:" >&5
11559sed 's/^/| /' conftest.$ac_ext >&5
11560
11561( exit $ac_status )
11562path_utmpx=
11563fi 6811fi
11564rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11565fi 6812fi
11566
11567
11568fi
11569{ echo "$as_me:$LINENO: result: $path_utmpx" >&5 6813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
11570echo "${ECHO_T}$path_utmpx" >&6; } 6814$as_echo "$pt_cv_path_wtmp" >&6; }
11571if test x$path_utmpx != x; then 6815if test x$pt_cv_path_wtmp != x; then
11572 6816
11573cat >>confdefs.h <<_ACEOF 6817cat >>confdefs.h <<_ACEOF
11574#define UTMPX_FILE "$path_utmpx" 6818#define PT_WTMP_FILE "$pt_cv_path_wtmp"
11575_ACEOF 6819_ACEOF
11576 6820
6821elif test "$cross_compiling" = yes; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
6823$as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
11577fi 6824fi
11578 6825
11579 6826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
11580{ echo "$as_me:$LINENO: checking where wtmp is located" >&5 6827$as_echo_n "checking for a fallback location of wtmpx... " >&6; }
11581echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6; }
11582if test "${path_wtmp+set}" = set; then 6828if test "${pt_cv_path_wtmpx+set}" = set; then :
11583 echo $ECHO_N "(cached) $ECHO_C" >&6 6829 $as_echo_n "(cached) " >&6
11584else 6830else
6831
11585 if test "$cross_compiling" = yes; then 6832if test "$cross_compiling" != yes; then
11586 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 6833 for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
11587echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} 6834 if test -f "$file"; then
11588else 6835 pt_cv_path_wtmpx=$file
11589 cat >conftest.$ac_ext <<_ACEOF 6836 break
11590/* confdefs.h. */ 6837 fi
11591_ACEOF 6838 done
11592cat confdefs.h >>conftest.$ac_ext
11593cat >>conftest.$ac_ext <<_ACEOF
11594/* end confdefs.h. */
11595#include <stdio.h>
11596#include <stdlib.h>
11597#include <sys/types.h>
11598#ifdef HAVE_UTMP_H
11599#include <utmp.h>
11600#endif
11601#include <errno.h>
11602main()
11603{
11604 char **w, *wtmplist[] = {
11605 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11606 FILE *a, *f=fopen("conftestval", "w");
11607 if (!f) exit(1);
11608#ifdef WTMP_FILE
11609 fprintf(f, "%s\n", WTMP_FILE);
11610 exit(0);
11611#endif
11612#ifdef _PATH_WTMP
11613 fprintf(f, "%s\n", _PATH_WTMP);
11614 exit(0);
11615#endif
11616 for (w = wtmplist; *w; w++) {
11617 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11618 fprintf(f, "%s\n", *w);
11619 exit(0);
11620 }
11621 }
11622 exit(0);
11623}
11624_ACEOF
11625rm -f conftest$ac_exeext
11626if { (ac_try="$ac_link"
11627case "(($ac_try" in
11628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11629 *) ac_try_echo=$ac_try;;
11630esac
11631eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11632 (eval "$ac_link") 2>&5
11633 ac_status=$?
11634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11635 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11636 { (case "(($ac_try" in
11637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11638 *) ac_try_echo=$ac_try;;
11639esac
11640eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11641 (eval "$ac_try") 2>&5
11642 ac_status=$?
11643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); }; }; then
11645 path_wtmp=`cat conftestval`
11646else
11647 echo "$as_me: program exited with status $ac_status" >&5
11648echo "$as_me: failed program was:" >&5
11649sed 's/^/| /' conftest.$ac_ext >&5
11650
11651( exit $ac_status )
11652path_wtmp=
11653fi 6839fi
11654rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11655fi 6840fi
11656
11657
11658fi
11659{ echo "$as_me:$LINENO: result: $path_wtmp" >&5 6841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
11660echo "${ECHO_T}$path_wtmp" >&6; } 6842$as_echo "$pt_cv_path_wtmpx" >&6; }
11661if test x$path_wtmp != x; then 6843if test x$pt_cv_path_wtmpx != x; then
11662 6844
11663cat >>confdefs.h <<_ACEOF 6845cat >>confdefs.h <<_ACEOF
11664#define WTMP_FILE "$path_wtmp" 6846#define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
11665_ACEOF 6847_ACEOF
11666 6848
6849elif test "$cross_compiling" = yes; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
6851$as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
11667fi 6852fi
11668 6853
11669{ echo "$as_me:$LINENO: checking where wtmpx is located" >&5 6854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
11670echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6; } 6855$as_echo_n "checking for a fallback location of lastlog... " >&6; }
11671if test "${path_wtmpx+set}" = set; then 6856if test "${pt_cv_path_lastlog+set}" = set; then :
11672 echo $ECHO_N "(cached) $ECHO_C" >&6 6857 $as_echo_n "(cached) " >&6
11673else 6858else
6859
11674 if test "$cross_compiling" = yes; then 6860if test "$cross_compiling" != yes; then
11675 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 6861 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
11676echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} 6862 if test -f "$file"; then
11677else 6863 pt_cv_path_lastlog=$file
11678 cat >conftest.$ac_ext <<_ACEOF 6864 break
11679/* confdefs.h. */ 6865 fi
11680_ACEOF 6866 done
11681cat confdefs.h >>conftest.$ac_ext
11682cat >>conftest.$ac_ext <<_ACEOF
11683/* end confdefs.h. */
11684#include <stdio.h>
11685#include <stdlib.h>
11686#ifdef HAVE_UTMPX_H
11687#include <utmpx.h>
11688#endif
11689#include <errno.h>
11690main()
11691{
11692 char **w, *wtmplist[] = {
11693 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11694 FILE *a, *f=fopen("conftestval", "w");
11695 if (!f) exit(1);
11696#ifdef WTMPX_FILE
11697 fprintf(f, "%s\n", WTMPX_FILE);
11698 exit(0);
11699#endif
11700#ifdef _PATH_WTMPX
11701 fprintf(f, "%s\n", _PATH_WTMPX);
11702 exit(0);
11703#endif
11704 for (w = wtmplist; *w; w++) {
11705 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11706 fprintf(f, "%s\n", *w);
11707 exit(0);
11708 }
11709 }
11710 exit(0);
11711}
11712_ACEOF
11713rm -f conftest$ac_exeext
11714if { (ac_try="$ac_link"
11715case "(($ac_try" in
11716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11717 *) ac_try_echo=$ac_try;;
11718esac
11719eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11720 (eval "$ac_link") 2>&5
11721 ac_status=$?
11722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11723 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11724 { (case "(($ac_try" in
11725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11726 *) ac_try_echo=$ac_try;;
11727esac
11728eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11729 (eval "$ac_try") 2>&5
11730 ac_status=$?
11731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11732 (exit $ac_status); }; }; then
11733 path_wtmpx=`cat conftestval`
11734else
11735 echo "$as_me: program exited with status $ac_status" >&5
11736echo "$as_me: failed program was:" >&5
11737sed 's/^/| /' conftest.$ac_ext >&5
11738
11739( exit $ac_status )
11740path_wtmpx=
11741fi 6867fi
11742rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11743fi 6868fi
11744 6869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
11745 6870$as_echo "$pt_cv_path_lastlog" >&6; }
11746fi
11747{ echo "$as_me:$LINENO: result: $path_wtmpx" >&5
11748echo "${ECHO_T}$path_wtmpx" >&6; }
11749if test x$path_wtmpx != x; then 6871if test x$pt_cv_path_lastlog != x; then
11750 6872
11751cat >>confdefs.h <<_ACEOF 6873cat >>confdefs.h <<_ACEOF
11752#define WTMPX_FILE "$path_wtmpx" 6874#define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
11753_ACEOF 6875_ACEOF
11754 6876
6877elif test "$cross_compiling" = yes; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
6879$as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
11755fi 6880fi
11756 6881
11757{ echo "$as_me:$LINENO: checking where lastlog is located" >&5 6882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
11758echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6; } 6883$as_echo_n "checking for a fallback location of lastlogx... " >&6; }
11759if test "${path_lastlog+set}" = set; then 6884if test "${pt_cv_path_lastlogx+set}" = set; then :
11760 echo $ECHO_N "(cached) $ECHO_C" >&6 6885 $as_echo_n "(cached) " >&6
11761else 6886else
6887
11762 if test "$cross_compiling" = yes; then 6888if test "$cross_compiling" != yes; then
11763 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 6889 for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
11764echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} 6890 if test -f "$file"; then
11765else 6891 pt_cv_path_lastlogx=$file
11766 cat >conftest.$ac_ext <<_ACEOF 6892 break
11767/* confdefs.h. */ 6893 fi
11768_ACEOF 6894 done
11769cat confdefs.h >>conftest.$ac_ext
11770cat >>conftest.$ac_ext <<_ACEOF
11771/* end confdefs.h. */
11772#include <stdio.h>
11773#include <stdlib.h>
11774#include <sys/types.h>
11775#ifdef HAVE_UTMPX_H
11776#include <utmpx.h>
11777#elif defined(HAVE_UTMP_H)
11778#include <utmp.h>
11779#endif
11780#ifdef HAVE_LASTLOG_H
11781#include <lastlog.h>
11782#endif
11783#include <errno.h>
11784main()
11785{
11786 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11787 FILE *a, *f=fopen("conftestval", "w");
11788 if (!f) exit(1);
11789#ifdef LASTLOG_FILE
11790 fprintf(f, "%s\n", LASTLOG_FILE);
11791 exit(0);
11792#endif
11793#ifdef _PATH_LASTLOG
11794 fprintf(f, "%s\n", _PATH_LASTLOG);
11795 exit(0);
11796#endif
11797 for (w = lastloglist; *w; w++) {
11798 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11799 fprintf(f, "%s\n", *w);
11800 exit(0);
11801 }
11802 }
11803 exit(0);
11804}
11805_ACEOF
11806rm -f conftest$ac_exeext
11807if { (ac_try="$ac_link"
11808case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811esac
11812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_link") 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11817 { (case "(($ac_try" in
11818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11819 *) ac_try_echo=$ac_try;;
11820esac
11821eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11822 (eval "$ac_try") 2>&5
11823 ac_status=$?
11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11825 (exit $ac_status); }; }; then
11826 path_lastlog=`cat conftestval`
11827else
11828 echo "$as_me: program exited with status $ac_status" >&5
11829echo "$as_me: failed program was:" >&5
11830sed 's/^/| /' conftest.$ac_ext >&5
11831
11832( exit $ac_status )
11833path_lastlog=
11834fi 6895fi
11835rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11836fi 6896fi
11837
11838
11839fi
11840{ echo "$as_me:$LINENO: result: $path_lastlog" >&5 6897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
11841echo "${ECHO_T}$path_lastlog" >&6; } 6898$as_echo "$pt_cv_path_lastlogx" >&6; }
11842if test x$path_lastlog != x; then 6899if test x$pt_cv_path_lastlogx != x; then
11843 6900
11844cat >>confdefs.h <<_ACEOF 6901cat >>confdefs.h <<_ACEOF
11845#define LASTLOG_FILE "$path_lastlog" 6902#define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
11846_ACEOF 6903_ACEOF
11847 6904
11848 if test -d "$path_lastlog"; then
11849
11850cat >>confdefs.h <<\_ACEOF
11851#define LASTLOG_IS_DIR 1
11852_ACEOF
11853
11854 fi
11855fi
11856
11857{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11858echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11859if test "${path_lastlogx+set}" = set; then
11860 echo $ECHO_N "(cached) $ECHO_C" >&6
11861else
11862 if test "$cross_compiling" = yes; then 6905elif test "$cross_compiling" = yes; then
11863 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 6906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
11864echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} 6907$as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
11865else
11866 cat >conftest.$ac_ext <<_ACEOF
11867/* confdefs.h. */
11868_ACEOF
11869cat confdefs.h >>conftest.$ac_ext
11870cat >>conftest.$ac_ext <<_ACEOF
11871/* end confdefs.h. */
11872#include <stdio.h>
11873#include <stdlib.h>
11874#ifdef HAVE_UTMPX_H
11875#include <utmpx.h>
11876#endif
11877#include <errno.h>
11878main()
11879{
11880 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11881 FILE *a, *f=fopen("conftestval", "w");
11882 if (!f) exit(1);
11883#ifdef LASTLOGX_FILE
11884 fprintf(f, "%s\n", LASTLOGX_FILE);
11885 exit(0);
11886#endif
11887#ifdef _PATH_LASTLOGX
11888 fprintf(f, "%s\n", _PATH_LASTLOGX);
11889 exit(0);
11890#endif
11891 for (w = wtmplist; *w; w++) {
11892 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11893 fprintf(f, "%s\n", *w);
11894 exit(0);
11895 }
11896 }
11897 exit(0);
11898}
11899_ACEOF
11900rm -f conftest$ac_exeext
11901if { (ac_try="$ac_link"
11902case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905esac
11906eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_link") 2>&5
11908 ac_status=$?
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11911 { (case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11914esac
11915eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916 (eval "$ac_try") 2>&5
11917 ac_status=$?
11918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11919 (exit $ac_status); }; }; then
11920 path_lastlogx=`cat conftestval`
11921else
11922 echo "$as_me: program exited with status $ac_status" >&5
11923echo "$as_me: failed program was:" >&5
11924sed 's/^/| /' conftest.$ac_ext >&5
11925
11926( exit $ac_status )
11927path_lastlogx=
11928fi 6908fi
11929rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11930fi
11931 6909
11932 6910
11933fi
11934{ echo "$as_me:$LINENO: result: $path_lastlogx" >&5
11935echo "${ECHO_T}$path_lastlogx" >&6; }
11936if test x$path_lastlogx != x; then
11937 6911
11938cat >>confdefs.h <<_ACEOF
11939#define LASTLOGX_FILE "$path_lastlogx"
11940_ACEOF
11941 6912
11942fi
11943
11944
11945
11946{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11947echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11948if test "${rxvt_cv_path_ttytab+set}" = set; then
11949 echo $ECHO_N "(cached) $ECHO_C" >&6
11950else
11951 for ttys_file in /etc/ttys /etc/ttytab;
11952do
11953 if test -f "$ttys_file" ; then
11954 rxvt_cv_path_ttytab=$ttys_file
11955 break
11956 fi
11957done
11958
11959fi
11960{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11961echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11962if test x$rxvt_cv_path_ttytab != x; then
11963
11964cat >>confdefs.h <<_ACEOF
11965#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11966_ACEOF
11967
11968fi
11969
11970
11971ac_save_LIBS=$LIBS 6913save_LIBS=$LIBS
11972ac_save_CFLAGS=$CFLAGS 6914save_CFLAGS=$CFLAGS
11973CFLAGS="$CFLAGS $X_CFLAGS" 6915CFLAGS="$CFLAGS $X_CFLAGS"
11974LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 6916LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11975if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then 6917if test x$support_xim = xyes; then
11976 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11977fi
11978{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
11979echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 6919$as_echo_n "checking for working Xlocale... " >&6; }
11980if test "${rxvt_cv_func_xlocale+set}" = set; then 6920if test "${rxvt_cv_func_xlocale+set}" = set; then :
11981 echo $ECHO_N "(cached) $ECHO_C" >&6 6921 $as_echo_n "(cached) " >&6
11982else 6922else
11983 if test "$cross_compiling" = yes; then 6923 if test "$cross_compiling" = yes; then :
11984 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5 6924 :
11985echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11986else 6925else
11987 cat >conftest.$ac_ext <<_ACEOF
11988/* confdefs.h. */
11989_ACEOF
11990cat confdefs.h >>conftest.$ac_ext 6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11991cat >>conftest.$ac_ext <<_ACEOF
11992/* end confdefs.h. */ 6927/* end confdefs.h. */
6928
11993#include <X11/Xlib.h> 6929 #include <X11/Xlib.h>
11994#include <stdlib.h> 6930 #include <stdlib.h>
11995main() { 6931 int main() {
11996char *p; 6932 char *p;
11997if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 6933 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11998exit (XSupportsLocale() ? 0 : 1); 6934 exit (XSupportsLocale() ? 0 : 1);
11999else 6935 else
12000exit (1);} 6936 exit (1);
6937 }
6938
12001_ACEOF 6939_ACEOF
12002rm -f conftest$ac_exeext 6940if ac_fn_cxx_try_run "$LINENO"; then :
12003if { (ac_try="$ac_link"
12004case "(($ac_try" in
12005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12006 *) ac_try_echo=$ac_try;;
12007esac
12008eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12009 (eval "$ac_link") 2>&5
12010 ac_status=$?
12011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12012 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12013 { (case "(($ac_try" in
12014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12015 *) ac_try_echo=$ac_try;;
12016esac
12017eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12018 (eval "$ac_try") 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; }; then
12022 rxvt_cv_func_xlocale=yes 6941 rxvt_cv_func_xlocale=yes
12023else 6942else
12024 echo "$as_me: program exited with status $ac_status" >&5
12025echo "$as_me: failed program was:" >&5
12026sed 's/^/| /' conftest.$ac_ext >&5
12027
12028( exit $ac_status )
12029rxvt_cv_func_xlocale=no 6943 rxvt_cv_func_xlocale=no
12030fi 6944fi
12031rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 6945rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6946 conftest.$ac_objext conftest.beam conftest.$ac_ext
12032fi 6947fi
12033 6948
12034
12035fi 6949fi
12036{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 6950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
12037echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 6951$as_echo "$rxvt_cv_func_xlocale" >&6; }
12038if test x$rxvt_cv_func_xlocale = xyes; then 6952 if test x$rxvt_cv_func_xlocale = xyes; then
12039 6953
12040cat >>confdefs.h <<\_ACEOF 6954$as_echo "#define USE_XIM 1" >>confdefs.h
12041#define HAVE_XLOCALE 1
12042_ACEOF
12043 6955
12044fi 6956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
6957$as_echo_n "checking for broken XIM callback... " >&6; }
6958if test "${rxvt_cv_broken_ximcb+set}" = set; then :
6959 $as_echo_n "(cached) " >&6
6960else
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962/* end confdefs.h. */
12045 6963
6964 #include <X11/Xlib.h>
6965
6966 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
6967
6968 void f() {
6969 XIMCallback cb;
6970 cb.callback = im_destroy_cb;
6971 }
6972
6973_ACEOF
6974if ac_fn_cxx_try_compile "$LINENO"; then :
6975 rxvt_cv_broken_ximcb=yes
6976else
6977 rxvt_cv_broken_ximcb=no
6978fi
6979rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6980fi
6981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
6982$as_echo "$rxvt_cv_broken_ximcb" >&6; }
6983
6984 if test x$rxvt_cv_broken_ximcb = xyes; then
6985
6986$as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
6987
6988 fi
6989 fi
6990fi
6991
12046{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
12047echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; } 6993$as_echo_n "checking for working X setlocale... " >&6; }
12048if test "${rxvt_cv_func_xsetlocale+set}" = set; then 6994if test "${rxvt_cv_func_xsetlocale+set}" = set; then :
12049 echo $ECHO_N "(cached) $ECHO_C" >&6 6995 $as_echo_n "(cached) " >&6
12050else 6996else
12051 cat >conftest.$ac_ext <<_ACEOF
12052/* confdefs.h. */
12053_ACEOF
12054cat confdefs.h >>conftest.$ac_ext 6997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12055cat >>conftest.$ac_ext <<_ACEOF
12056/* end confdefs.h. */ 6998/* end confdefs.h. */
12057#define X_LOCALE 1 6999#define X_LOCALE 1
12058#include <X11/Xlocale.h> 7000#include <X11/Xlocale.h>
12059int 7001int
12060main () 7002main ()
12062setlocale(LC_CTYPE, ""); 7004setlocale(LC_CTYPE, "");
12063 ; 7005 ;
12064 return 0; 7006 return 0;
12065} 7007}
12066_ACEOF 7008_ACEOF
12067rm -f conftest.$ac_objext conftest$ac_exeext 7009if ac_fn_cxx_try_link "$LINENO"; then :
12068if { (ac_try="$ac_link"
12069case "(($ac_try" in
12070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12072esac
12073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_link") 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_cxx_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest$ac_exeext &&
12084 $as_test_x conftest$ac_exeext; then
12085 rxvt_cv_func_xsetlocale=yes 7010 rxvt_cv_func_xsetlocale=yes
12086else 7011else
12087 echo "$as_me: failed program was:" >&5
12088sed 's/^/| /' conftest.$ac_ext >&5
12089
12090 rxvt_cv_func_xsetlocale=no 7012 rxvt_cv_func_xsetlocale=no
12091fi 7013fi
12092
12093rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7014rm -f core conftest.err conftest.$ac_objext \
12094 conftest$ac_exeext conftest.$ac_ext 7015 conftest$ac_exeext conftest.$ac_ext
12095fi 7016fi
12096{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 7017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
12097echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6; } 7018$as_echo "$rxvt_cv_func_xsetlocale" >&6; }
12098if test x$rxvt_cv_func_xsetlocale = xyes; then 7019if test x$rxvt_cv_func_xsetlocale = xyes; then
12099 7020
12100cat >>confdefs.h <<\_ACEOF 7021$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
12101#define HAVE_XSETLOCALE 1
12102_ACEOF
12103 7022
12104fi 7023fi
12105LIBS=$ac_save_LIBS 7024LIBS=$save_LIBS
12106CFLAGS=$ac_save_CFLAGS 7025CFLAGS=$save_CFLAGS
12107 7026
12108{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5
12109echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; }
12110if test "${rxvt_cv_func_setlocale+set}" = set; then
12111 echo $ECHO_N "(cached) $ECHO_C" >&6
12112else
12113 cat >conftest.$ac_ext <<_ACEOF
12114/* confdefs.h. */
12115_ACEOF
12116cat confdefs.h >>conftest.$ac_ext
12117cat >>conftest.$ac_ext <<_ACEOF
12118/* end confdefs.h. */
12119#include <clocale>
12120int
12121main ()
12122{
12123setlocale(LC_CTYPE, "");
12124 ;
12125 return 0;
12126}
12127_ACEOF
12128rm -f conftest.$ac_objext conftest$ac_exeext
12129if { (ac_try="$ac_link"
12130case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133esac
12134eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12135 (eval "$ac_link") 2>conftest.er1
12136 ac_status=$?
12137 grep -v '^ *+' conftest.er1 >conftest.err
12138 rm -f conftest.er1
12139 cat conftest.err >&5
12140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } && {
12142 test -z "$ac_cxx_werror_flag" ||
12143 test ! -s conftest.err
12144 } && test -s conftest$ac_exeext &&
12145 $as_test_x conftest$ac_exeext; then
12146 rxvt_cv_func_setlocale=yes
12147else
12148 echo "$as_me: failed program was:" >&5
12149sed 's/^/| /' conftest.$ac_ext >&5
12150
12151 rxvt_cv_func_setlocale=no
12152fi
12153
12154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12155 conftest$ac_exeext conftest.$ac_ext
12156fi
12157{ echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
12158echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6; }
12159if test x$rxvt_cv_func_setlocale = xyes; then
12160
12161cat >>confdefs.h <<\_ACEOF
12162#define HAVE_SETLOCALE 1
12163_ACEOF
12164
12165fi
12166
12167{ echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 7027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
12168echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6; } 7028$as_echo_n "checking for working nl_langinfo... " >&6; }
12169if test "${rxvt_cv_func_nl_langinfo+set}" = set; then 7029if test "${rxvt_cv_func_nl_langinfo+set}" = set; then :
12170 echo $ECHO_N "(cached) $ECHO_C" >&6 7030 $as_echo_n "(cached) " >&6
12171else 7031else
12172 cat >conftest.$ac_ext <<_ACEOF
12173/* confdefs.h. */
12174_ACEOF
12175cat confdefs.h >>conftest.$ac_ext 7032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12176cat >>conftest.$ac_ext <<_ACEOF
12177/* end confdefs.h. */ 7033/* end confdefs.h. */
12178#include <langinfo.h> 7034#include <langinfo.h>
12179int 7035int
12180main () 7036main ()
12181{ 7037{
12182nl_langinfo(CODESET); 7038nl_langinfo(CODESET);
12183 ; 7039 ;
12184 return 0; 7040 return 0;
12185} 7041}
12186_ACEOF 7042_ACEOF
12187rm -f conftest.$ac_objext conftest$ac_exeext 7043if ac_fn_cxx_try_link "$LINENO"; then :
12188if { (ac_try="$ac_link" 7044 rxvt_cv_func_nl_langinfo=yes
12189case "(($ac_try" in 7045else
12190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7046 rxvt_cv_func_nl_langinfo=no
12191 *) ac_try_echo=$ac_try;; 7047fi
7048rm -f core conftest.err conftest.$ac_objext \
7049 conftest$ac_exeext conftest.$ac_ext
7050fi
7051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
7052$as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
7053if test x$rxvt_cv_func_nl_langinfo = xyes; then
7054
7055$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
7056
7057fi
7058
7059
7060case $host in
7061 *-*-solaris*)
7062
7063$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7064
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7066$as_echo_n "checking for library containing sendmsg... " >&6; }
7067if test "${ac_cv_search_sendmsg+set}" = set; then :
7068 $as_echo_n "(cached) " >&6
7069else
7070 ac_func_search_save_LIBS=$LIBS
7071cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7072/* end confdefs.h. */
7073
7074/* Override any GCC internal prototype to avoid an error.
7075 Use char because int might match the return type of a GCC
7076 builtin and then its argument prototype would still apply. */
7077#ifdef __cplusplus
7078extern "C"
7079#endif
7080char sendmsg ();
7081int
7082main ()
7083{
7084return sendmsg ();
7085 ;
7086 return 0;
7087}
7088_ACEOF
7089for ac_lib in '' socket; do
7090 if test -z "$ac_lib"; then
7091 ac_res="none required"
7092 else
7093 ac_res=-l$ac_lib
7094 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7095 fi
7096 if ac_fn_cxx_try_link "$LINENO"; then :
7097 ac_cv_search_sendmsg=$ac_res
7098fi
7099rm -f core conftest.err conftest.$ac_objext \
7100 conftest$ac_exeext
7101 if test "${ac_cv_search_sendmsg+set}" = set; then :
7102 break
7103fi
7104done
7105if test "${ac_cv_search_sendmsg+set}" = set; then :
7106
7107else
7108 ac_cv_search_sendmsg=no
7109fi
7110rm conftest.$ac_ext
7111LIBS=$ac_func_search_save_LIBS
7112fi
7113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
7114$as_echo "$ac_cv_search_sendmsg" >&6; }
7115ac_res=$ac_cv_search_sendmsg
7116if test "$ac_res" != no; then :
7117 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7118
7119fi
7120
7121 ;;
12192esac 7122esac
12193eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12194 (eval "$ac_link") 2>conftest.er1
12195 ac_status=$?
12196 grep -v '^ *+' conftest.er1 >conftest.err
12197 rm -f conftest.er1
12198 cat conftest.err >&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 (exit $ac_status); } && {
12201 test -z "$ac_cxx_werror_flag" ||
12202 test ! -s conftest.err
12203 } && test -s conftest$ac_exeext &&
12204 $as_test_x conftest$ac_exeext; then
12205 rxvt_cv_func_nl_langinfo=yes
12206else
12207 echo "$as_me: failed program was:" >&5
12208sed 's/^/| /' conftest.$ac_ext >&5
12209 7123
12210 rxvt_cv_func_nl_langinfo=no
12211fi
12212
12213rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12214 conftest$ac_exeext conftest.$ac_ext
12215fi
12216{ echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5
12217echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6; }
12218if test x$rxvt_cv_func_nl_langinfo = xyes; then
12219
12220cat >>confdefs.h <<\_ACEOF
12221#define HAVE_NL_LANGINFO 1
12222_ACEOF
12223
12224fi
12225
12226
12227{ echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 7124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
12228echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6; } 7125$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
12229if test "${can_pass_fds+set}" = set; then 7126if test "${pt_cv_can_pass_fds+set}" = set; then :
12230 echo $ECHO_N "(cached) $ECHO_C" >&6 7127 $as_echo_n "(cached) " >&6
12231else 7128else
12232 cat >conftest.$ac_ext <<_ACEOF
12233/* confdefs.h. */
12234_ACEOF
12235cat confdefs.h >>conftest.$ac_ext 7129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12236cat >>conftest.$ac_ext <<_ACEOF
12237/* end confdefs.h. */ 7130/* end confdefs.h. */
12238 7131
12239#include <cstddef> // broken bsds (is that redundant?) need this 7132#include <stddef.h> // broken bsds (is that redundant?) need this
12240#include <sys/types.h> 7133#include <sys/types.h>
12241#include <sys/socket.h> 7134#include <sys/socket.h>
12242#include <sys/uio.h> 7135#include <sys/uio.h>
12243 7136
12244int 7137int
12271 7164
12272 ; 7165 ;
12273 return 0; 7166 return 0;
12274} 7167}
12275_ACEOF 7168_ACEOF
12276rm -f conftest.$ac_objext conftest$ac_exeext 7169if ac_fn_cxx_try_link "$LINENO"; then :
12277if { (ac_try="$ac_link"
12278case "(($ac_try" in
12279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12280 *) ac_try_echo=$ac_try;;
12281esac
12282eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12283 (eval "$ac_link") 2>conftest.er1
12284 ac_status=$?
12285 grep -v '^ *+' conftest.er1 >conftest.err
12286 rm -f conftest.er1
12287 cat conftest.err >&5
12288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12289 (exit $ac_status); } && {
12290 test -z "$ac_cxx_werror_flag" ||
12291 test ! -s conftest.err
12292 } && test -s conftest$ac_exeext &&
12293 $as_test_x conftest$ac_exeext; then
12294 can_pass_fds=yes 7170 pt_cv_can_pass_fds=yes
12295else 7171else
12296 echo "$as_me: failed program was:" >&5
12297sed 's/^/| /' conftest.$ac_ext >&5
12298
12299 can_pass_fds=no 7172 pt_cv_can_pass_fds=no
12300fi 7173fi
12301
12302rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7174rm -f core conftest.err conftest.$ac_objext \
12303 conftest$ac_exeext conftest.$ac_ext 7175 conftest$ac_exeext conftest.$ac_ext
12304fi 7176fi
12305{ echo "$as_me:$LINENO: result: $can_pass_fds" >&5 7177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
12306echo "${ECHO_T}$can_pass_fds" >&6; } 7178$as_echo "$pt_cv_can_pass_fds" >&6; }
12307if test x$can_pass_fds = xyes; then 7179if test x$pt_cv_can_pass_fds = xyes; then
12308 7180
12309cat >>confdefs.h <<\_ACEOF 7181$as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
12310#define HAVE_UNIX_FDPASS 1
12311_ACEOF
12312 7182
12313else 7183else
12314 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12315echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 7184 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
12316 { (exit 1); exit 1; }; }
12317fi 7185fi
12318
12319
12320{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12321echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12322if test "${rxvt_broken_ximcb+set}" = set; then
12323 echo $ECHO_N "(cached) $ECHO_C" >&6
12324else
12325 cat >conftest.$ac_ext <<_ACEOF
12326
12327#include <X11/Xlib.h>
12328
12329void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12330
12331void f() {
12332 XIMCallback cb;
12333 cb.callback = im_destroy_cb;
12334}
12335
12336_ACEOF
12337rm -f conftest.$ac_objext
12338if { (ac_try="$ac_compile"
12339case "(($ac_try" in
12340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12341 *) ac_try_echo=$ac_try;;
12342esac
12343eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12344 (eval "$ac_compile") 2>conftest.er1
12345 ac_status=$?
12346 grep -v '^ *+' conftest.er1 >conftest.err
12347 rm -f conftest.er1
12348 cat conftest.err >&5
12349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12350 (exit $ac_status); } && {
12351 test -z "$ac_cxx_werror_flag" ||
12352 test ! -s conftest.err
12353 } && test -s conftest.$ac_objext; then
12354 rxvt_broken_ximcb=yes
12355else
12356 echo "$as_me: failed program was:" >&5
12357sed 's/^/| /' conftest.$ac_ext >&5
12358
12359 rxvt_broken_ximcb=no
12360fi
12361
12362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12363fi
12364{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12365echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12366
12367if test x$rxvt_broken_ximcb = xyes; then
12368
12369cat >>confdefs.h <<\_ACEOF
12370#define XIMCB_PROTO_BROKEN 1
12371_ACEOF
12372
12373fi
12374
12375
12376
12377
12378 7186
12379 7187
12380 7188
12381for ac_header in \ 7189for ac_header in \
12382 pty.h \ 7190 pty.h \
12383 util.h \ 7191 util.h \
12384 libutil.h \ 7192 libutil.h \
12385 sys/ioctl.h \ 7193 sys/ioctl.h \
12386 sys/stropts.h \ 7194 stropts.h \
12387 7195
12388do 7196do :
12389as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7197 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12390if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7198ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12391 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7199if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12392echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12393if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12394 echo $ECHO_N "(cached) $ECHO_C" >&6
12395fi
12396ac_res=`eval echo '${'$as_ac_Header'}'`
12397 { echo "$as_me:$LINENO: result: $ac_res" >&5
12398echo "${ECHO_T}$ac_res" >&6; }
12399else
12400 # Is the header compilable?
12401{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12402echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12403cat >conftest.$ac_ext <<_ACEOF
12404/* confdefs.h. */
12405_ACEOF
12406cat confdefs.h >>conftest.$ac_ext
12407cat >>conftest.$ac_ext <<_ACEOF
12408/* end confdefs.h. */
12409$ac_includes_default
12410#include <$ac_header>
12411_ACEOF
12412rm -f conftest.$ac_objext
12413if { (ac_try="$ac_compile"
12414case "(($ac_try" in
12415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12416 *) ac_try_echo=$ac_try;;
12417esac
12418eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12419 (eval "$ac_compile") 2>conftest.er1
12420 ac_status=$?
12421 grep -v '^ *+' conftest.er1 >conftest.err
12422 rm -f conftest.er1
12423 cat conftest.err >&5
12424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12425 (exit $ac_status); } && {
12426 test -z "$ac_cxx_werror_flag" ||
12427 test ! -s conftest.err
12428 } && test -s conftest.$ac_objext; then
12429 ac_header_compiler=yes
12430else
12431 echo "$as_me: failed program was:" >&5
12432sed 's/^/| /' conftest.$ac_ext >&5
12433
12434 ac_header_compiler=no
12435fi
12436
12437rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12438{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12439echo "${ECHO_T}$ac_header_compiler" >&6; }
12440
12441# Is the header present?
12442{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12443echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12444cat >conftest.$ac_ext <<_ACEOF
12445/* confdefs.h. */
12446_ACEOF
12447cat confdefs.h >>conftest.$ac_ext
12448cat >>conftest.$ac_ext <<_ACEOF
12449/* end confdefs.h. */
12450#include <$ac_header>
12451_ACEOF
12452if { (ac_try="$ac_cpp conftest.$ac_ext"
12453case "(($ac_try" in
12454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455 *) ac_try_echo=$ac_try;;
12456esac
12457eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12459 ac_status=$?
12460 grep -v '^ *+' conftest.er1 >conftest.err
12461 rm -f conftest.er1
12462 cat conftest.err >&5
12463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12464 (exit $ac_status); } >/dev/null && {
12465 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12466 test ! -s conftest.err
12467 }; then
12468 ac_header_preproc=yes
12469else
12470 echo "$as_me: failed program was:" >&5
12471sed 's/^/| /' conftest.$ac_ext >&5
12472
12473 ac_header_preproc=no
12474fi
12475
12476rm -f conftest.err conftest.$ac_ext
12477{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12478echo "${ECHO_T}$ac_header_preproc" >&6; }
12479
12480# So? What about this header?
12481case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12482 yes:no: )
12483 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12484echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12485 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12486echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12487 ac_header_preproc=yes
12488 ;;
12489 no:yes:* )
12490 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12491echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12492 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12493echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12494 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12495echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12496 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12497echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12499echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12500 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12501echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12502
12503 ;;
12504esac
12505{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12506echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12507if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12509else
12510 eval "$as_ac_Header=\$ac_header_preproc"
12511fi
12512ac_res=`eval echo '${'$as_ac_Header'}'`
12513 { echo "$as_me:$LINENO: result: $ac_res" >&5
12514echo "${ECHO_T}$ac_res" >&6; }
12515
12516fi
12517if test `eval echo '${'$as_ac_Header'}'` = yes; then
12518 cat >>confdefs.h <<_ACEOF 7200 cat >>confdefs.h <<_ACEOF
12519#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7201#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12520_ACEOF 7202_ACEOF
12521 7203
12522fi 7204fi
12523 7205
12524done 7206done
12525
12526
12527
12528
12529
12530
12531
12532
12533
12534 7207
12535 7208
12536for ac_func in \ 7209for ac_func in \
12537 revoke \ 7210 revoke \
12538 _getpty \ 7211 _getpty \
12542 setuid \ 7215 setuid \
12543 seteuid \ 7216 seteuid \
12544 setreuid \ 7217 setreuid \
12545 setresuid \ 7218 setresuid \
12546 7219
12547do 7220do :
12548as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12549{ echo "$as_me:$LINENO: checking for $ac_func" >&5 7222ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12550echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7223if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12551if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12552 echo $ECHO_N "(cached) $ECHO_C" >&6
12553else
12554 cat >conftest.$ac_ext <<_ACEOF
12555/* confdefs.h. */
12556_ACEOF
12557cat confdefs.h >>conftest.$ac_ext
12558cat >>conftest.$ac_ext <<_ACEOF
12559/* end confdefs.h. */
12560/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12562#define $ac_func innocuous_$ac_func
12563
12564/* System header to define __stub macros and hopefully few prototypes,
12565 which can conflict with char $ac_func (); below.
12566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12567 <limits.h> exists even on freestanding compilers. */
12568
12569#ifdef __STDC__
12570# include <limits.h>
12571#else
12572# include <assert.h>
12573#endif
12574
12575#undef $ac_func
12576
12577/* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
12580#ifdef __cplusplus
12581extern "C"
12582#endif
12583char $ac_func ();
12584/* The GNU C library defines this for functions which it implements
12585 to always fail with ENOSYS. Some functions are actually named
12586 something starting with __ and the normal name is an alias. */
12587#if defined __stub_$ac_func || defined __stub___$ac_func
12588choke me
12589#endif
12590
12591int
12592main ()
12593{
12594return $ac_func ();
12595 ;
12596 return 0;
12597}
12598_ACEOF
12599rm -f conftest.$ac_objext conftest$ac_exeext
12600if { (ac_try="$ac_link"
12601case "(($ac_try" in
12602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12603 *) ac_try_echo=$ac_try;;
12604esac
12605eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12606 (eval "$ac_link") 2>conftest.er1
12607 ac_status=$?
12608 grep -v '^ *+' conftest.er1 >conftest.err
12609 rm -f conftest.er1
12610 cat conftest.err >&5
12611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12612 (exit $ac_status); } && {
12613 test -z "$ac_cxx_werror_flag" ||
12614 test ! -s conftest.err
12615 } && test -s conftest$ac_exeext &&
12616 $as_test_x conftest$ac_exeext; then
12617 eval "$as_ac_var=yes"
12618else
12619 echo "$as_me: failed program was:" >&5
12620sed 's/^/| /' conftest.$ac_ext >&5
12621
12622 eval "$as_ac_var=no"
12623fi
12624
12625rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12626 conftest$ac_exeext conftest.$ac_ext
12627fi
12628ac_res=`eval echo '${'$as_ac_var'}'`
12629 { echo "$as_me:$LINENO: result: $ac_res" >&5
12630echo "${ECHO_T}$ac_res" >&6; }
12631if test `eval echo '${'$as_ac_var'}'` = yes; then
12632 cat >>confdefs.h <<_ACEOF 7224 cat >>confdefs.h <<_ACEOF
12633#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7225#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12634_ACEOF 7226_ACEOF
12635 7227
12636fi 7228fi
12637done 7229done
12638 7230
12639 7231
12640have_clone=no
12641
12642{ echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12643echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6; }
12644if test -e /dev/ptym/clone; then
12645 { echo "$as_me:$LINENO: result: yes" >&5
12646echo "${ECHO_T}yes" >&6; }
12647
12648cat >>confdefs.h <<\_ACEOF
12649#define HAVE_DEV_CLONE 1
12650_ACEOF
12651
12652
12653cat >>confdefs.h <<\_ACEOF
12654#define CLONE_DEVICE "/dev/ptym/clone"
12655_ACEOF
12656
12657 have_clone=yes
12658else
12659 { echo "$as_me:$LINENO: result: no" >&5
12660echo "${ECHO_T}no" >&6; }
12661fi
12662
12663{ echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12664echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
12665if test -e /dev/ptc; then
12666 { echo "$as_me:$LINENO: result: yes" >&5
12667echo "${ECHO_T}yes" >&6; }
12668
12669cat >>confdefs.h <<\_ACEOF
12670#define HAVE_DEV_PTC 1
12671_ACEOF
12672
12673
12674cat >>confdefs.h <<\_ACEOF
12675#define CLONE_DEVICE "/dev/ptc"
12676_ACEOF
12677
12678 have_clone=yes
12679else
12680 { echo "$as_me:$LINENO: result: no" >&5
12681echo "${ECHO_T}no" >&6; }
12682fi
12683
12684case $host in
12685 *-*-cygwin*)
12686 have_clone=yes
12687
12688cat >>confdefs.h <<\_ACEOF
12689#define CLONE_DEVICE "/dev/ptmx"
12690_ACEOF
12691
12692 ;;
12693 *)
12694 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12695echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
12696 if test -e /dev/ptmx; then
12697 { echo "$as_me:$LINENO: result: yes" >&5
12698echo "${ECHO_T}yes" >&6; }
12699
12700cat >>confdefs.h <<\_ACEOF
12701#define HAVE_DEV_PTMX 1
12702_ACEOF
12703
12704
12705cat >>confdefs.h <<\_ACEOF
12706#define CLONE_DEVICE "/dev/ptmx"
12707_ACEOF
12708
12709 have_clone=yes
12710 else
12711 { echo "$as_me:$LINENO: result: no" >&5
12712echo "${ECHO_T}no" >&6; }
12713 fi
12714 ;;
12715esac
12716
12717if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12718 { echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 7232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
12719echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6; } 7233$as_echo_n "checking for UNIX98 ptys... " >&6; }
12720 cat >conftest.$ac_ext <<_ACEOF
12721/* confdefs.h. */
12722_ACEOF
12723cat confdefs.h >>conftest.$ac_ext 7234cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12724cat >>conftest.$ac_ext <<_ACEOF
12725/* end confdefs.h. */ 7235/* end confdefs.h. */
12726#include <stdlib.h> 7236#include <stdlib.h>
12727int 7237int
12728main () 7238main ()
12729{ 7239{
12730grantpt(0);unlockpt(0);ptsname(0); 7240grantpt(0);unlockpt(0);ptsname(0);
12731 ; 7241 ;
12732 return 0; 7242 return 0;
12733} 7243}
12734_ACEOF 7244_ACEOF
12735rm -f conftest.$ac_objext conftest$ac_exeext 7245if ac_fn_cxx_try_link "$LINENO"; then :
12736if { (ac_try="$ac_link"
12737case "(($ac_try" in
12738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12740esac
12741eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_link") 2>conftest.er1
12743 ac_status=$?
12744 grep -v '^ *+' conftest.er1 >conftest.err
12745 rm -f conftest.er1
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } && {
12749 test -z "$ac_cxx_werror_flag" ||
12750 test ! -s conftest.err
12751 } && test -s conftest$ac_exeext &&
12752 $as_test_x conftest$ac_exeext; then
12753 unix98_pty=yes 7246 unix98_pty=yes
12754 7247
12755cat >>confdefs.h <<\_ACEOF 7248$as_echo "#define UNIX98_PTY 1" >>confdefs.h
12756#define UNIX98_PTY 1
12757_ACEOF
12758 7249
12759 { echo "$as_me:$LINENO: result: yes" >&5 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12760echo "${ECHO_T}yes" >&6; } 7251$as_echo "yes" >&6; }
12761else 7252else
12762 echo "$as_me: failed program was:" >&5
12763sed 's/^/| /' conftest.$ac_ext >&5
12764
12765 { echo "$as_me:$LINENO: result: no" >&5 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12766echo "${ECHO_T}no" >&6; } 7254$as_echo "no" >&6; }
12767fi 7255fi
12768
12769rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7256rm -f core conftest.err conftest.$ac_objext \
12770 conftest$ac_exeext conftest.$ac_ext 7257 conftest$ac_exeext conftest.$ac_ext
12771fi
12772 7258
12773if test -z "$unix98_pty"; then 7259if test -z "$unix98_pty"; then
12774 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
12775for ac_func in openpty 7261$as_echo_n "checking for library containing openpty... " >&6; }
12776do 7262if test "${ac_cv_search_openpty+set}" = set; then :
12777as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7263 $as_echo_n "(cached) " >&6
12778{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12779echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12780if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12782else
12783 cat >conftest.$ac_ext <<_ACEOF
12784/* confdefs.h. */
12785_ACEOF
12786cat confdefs.h >>conftest.$ac_ext
12787cat >>conftest.$ac_ext <<_ACEOF
12788/* end confdefs.h. */
12789/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12791#define $ac_func innocuous_$ac_func
12792
12793/* System header to define __stub macros and hopefully few prototypes,
12794 which can conflict with char $ac_func (); below.
12795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12796 <limits.h> exists even on freestanding compilers. */
12797
12798#ifdef __STDC__
12799# include <limits.h>
12800#else 7264else
12801# include <assert.h> 7265 ac_func_search_save_LIBS=$LIBS
12802#endif
12803
12804#undef $ac_func
12805
12806/* Override any GCC internal prototype to avoid an error.
12807 Use char because int might match the return type of a GCC
12808 builtin and then its argument prototype would still apply. */
12809#ifdef __cplusplus
12810extern "C"
12811#endif
12812char $ac_func ();
12813/* The GNU C library defines this for functions which it implements
12814 to always fail with ENOSYS. Some functions are actually named
12815 something starting with __ and the normal name is an alias. */
12816#if defined __stub_$ac_func || defined __stub___$ac_func
12817choke me
12818#endif
12819
12820int
12821main ()
12822{
12823return $ac_func ();
12824 ;
12825 return 0;
12826}
12827_ACEOF
12828rm -f conftest.$ac_objext conftest$ac_exeext
12829if { (ac_try="$ac_link"
12830case "(($ac_try" in
12831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12832 *) ac_try_echo=$ac_try;;
12833esac
12834eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12835 (eval "$ac_link") 2>conftest.er1
12836 ac_status=$?
12837 grep -v '^ *+' conftest.er1 >conftest.err
12838 rm -f conftest.er1
12839 cat conftest.err >&5
12840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12841 (exit $ac_status); } && {
12842 test -z "$ac_cxx_werror_flag" ||
12843 test ! -s conftest.err
12844 } && test -s conftest$ac_exeext &&
12845 $as_test_x conftest$ac_exeext; then
12846 eval "$as_ac_var=yes"
12847else
12848 echo "$as_me: failed program was:" >&5
12849sed 's/^/| /' conftest.$ac_ext >&5
12850
12851 eval "$as_ac_var=no"
12852fi
12853
12854rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12855 conftest$ac_exeext conftest.$ac_ext
12856fi
12857ac_res=`eval echo '${'$as_ac_var'}'`
12858 { echo "$as_me:$LINENO: result: $ac_res" >&5
12859echo "${ECHO_T}$ac_res" >&6; }
12860if test `eval echo '${'$as_ac_var'}'` = yes; then
12861 cat >>confdefs.h <<_ACEOF
12862#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12863_ACEOF
12864
12865else
12866 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12867echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
12868if test "${ac_cv_lib_util_openpty+set}" = set; then
12869 echo $ECHO_N "(cached) $ECHO_C" >&6
12870else
12871 ac_check_lib_save_LIBS=$LIBS
12872LIBS="-lutil $LIBS"
12873cat >conftest.$ac_ext <<_ACEOF
12874/* confdefs.h. */
12875_ACEOF
12876cat confdefs.h >>conftest.$ac_ext 7266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12877cat >>conftest.$ac_ext <<_ACEOF
12878/* end confdefs.h. */ 7267/* end confdefs.h. */
12879 7268
12880/* Override any GCC internal prototype to avoid an error. 7269/* Override any GCC internal prototype to avoid an error.
12881 Use char because int might match the return type of a GCC 7270 Use char because int might match the return type of a GCC
12882 builtin and then its argument prototype would still apply. */ 7271 builtin and then its argument prototype would still apply. */
12890return openpty (); 7279return openpty ();
12891 ; 7280 ;
12892 return 0; 7281 return 0;
12893} 7282}
12894_ACEOF 7283_ACEOF
12895rm -f conftest.$ac_objext conftest$ac_exeext 7284for ac_lib in '' util; do
12896if { (ac_try="$ac_link" 7285 if test -z "$ac_lib"; then
12897case "(($ac_try" in 7286 ac_res="none required"
12898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12899 *) ac_try_echo=$ac_try;;
12900esac
12901eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12902 (eval "$ac_link") 2>conftest.er1
12903 ac_status=$?
12904 grep -v '^ *+' conftest.er1 >conftest.err
12905 rm -f conftest.er1
12906 cat conftest.err >&5
12907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12908 (exit $ac_status); } && {
12909 test -z "$ac_cxx_werror_flag" ||
12910 test ! -s conftest.err
12911 } && test -s conftest$ac_exeext &&
12912 $as_test_x conftest$ac_exeext; then
12913 ac_cv_lib_util_openpty=yes
12914else 7287 else
12915 echo "$as_me: failed program was:" >&5 7288 ac_res=-l$ac_lib
12916sed 's/^/| /' conftest.$ac_ext >&5 7289 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12917 7290 fi
12918 ac_cv_lib_util_openpty=no 7291 if ac_fn_cxx_try_link "$LINENO"; then :
7292 ac_cv_search_openpty=$ac_res
12919fi 7293fi
12920
12921rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7294rm -f core conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext 7295 conftest$ac_exeext
12923LIBS=$ac_check_lib_save_LIBS 7296 if test "${ac_cv_search_openpty+set}" = set; then :
12924fi 7297 break
12925{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12926echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
12927if test $ac_cv_lib_util_openpty = yes; then
12928 cat >>confdefs.h <<\_ACEOF
12929#define HAVE_OPENPTY 1
12930_ACEOF
12931 LIBS="$LIBS -lutil"
12932fi
12933
12934fi 7298fi
12935done 7299done
7300if test "${ac_cv_search_openpty+set}" = set; then :
12936 7301
7302else
7303 ac_cv_search_openpty=no
12937fi 7304fi
7305rm conftest.$ac_ext
7306LIBS=$ac_func_search_save_LIBS
7307fi
7308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7309$as_echo "$ac_cv_search_openpty" >&6; }
7310ac_res=$ac_cv_search_openpty
7311if test "$ac_res" != no; then :
7312 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12938 7313
7314$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
12939 7315
7316fi
12940 7317
7318fi
7319
7320
7321
12941{ echo "$as_me:$LINENO: checking for tty group" >&5 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
12942echo $ECHO_N "checking for tty group... $ECHO_C" >&6; } 7323$as_echo_n "checking for tty group... " >&6; }
12943if test "${tty_group+set}" = set; then 7324if test "${pt_cv_tty_group+set}" = set; then :
12944 echo $ECHO_N "(cached) $ECHO_C" >&6 7325 $as_echo_n "(cached) " >&6
12945else 7326else
12946 if test "$cross_compiling" = yes; then 7327 if test "$cross_compiling" = yes; then :
12947 tty_group=no 7328 pt_cv_tty_group=no
12948else 7329else
12949 cat >conftest.$ac_ext <<_ACEOF
12950/* confdefs.h. */
12951_ACEOF
12952cat confdefs.h >>conftest.$ac_ext 7330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953cat >>conftest.$ac_ext <<_ACEOF
12954/* end confdefs.h. */ 7331/* end confdefs.h. */
12955 7332
12956#include <sys/types.h> 7333#include <sys/types.h>
12957#include <sys/stat.h> 7334#include <sys/stat.h>
12958#include <unistd.h> 7335#include <unistd.h>
12959#include <grp.h> 7336#include <grp.h>
12960 7337
12961main() 7338int main()
12962{ 7339{
12963 struct stat st; 7340 struct stat st;
12964 struct group *gr; 7341 struct group *gr;
12965 char *tty; 7342 char *tty;
12966 gr = getgrnam("tty"); 7343 gr = getgrnam("tty");
12972 return 0; 7349 return 0;
12973 else 7350 else
12974 return 1; 7351 return 1;
12975} 7352}
12976_ACEOF 7353_ACEOF
12977rm -f conftest$ac_exeext 7354if ac_fn_cxx_try_run "$LINENO"; then :
12978if { (ac_try="$ac_link"
12979case "(($ac_try" in
12980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12981 *) ac_try_echo=$ac_try;;
12982esac
12983eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12984 (eval "$ac_link") 2>&5
12985 ac_status=$?
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12988 { (case "(($ac_try" in
12989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12990 *) ac_try_echo=$ac_try;;
12991esac
12992eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12993 (eval "$ac_try") 2>&5
12994 ac_status=$?
12995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12996 (exit $ac_status); }; }; then
12997 tty_group=yes 7355 pt_cv_tty_group=yes
12998else 7356else
12999 echo "$as_me: program exited with status $ac_status" >&5
13000echo "$as_me: failed program was:" >&5
13001sed 's/^/| /' conftest.$ac_ext >&5
13002
13003( exit $ac_status )
13004tty_group=no 7357 pt_cv_tty_group=no
13005fi 7358fi
13006rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7359rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7360 conftest.$ac_objext conftest.beam conftest.$ac_ext
13007fi 7361fi
13008 7362
13009
13010fi 7363fi
13011{ echo "$as_me:$LINENO: result: $tty_group" >&5 7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
13012echo "${ECHO_T}$tty_group" >&6; } 7365$as_echo "$pt_cv_tty_group" >&6; }
13013if test x$tty_group = xyes; then 7366if test x$pt_cv_tty_group = xyes; then
13014 7367
13015cat >>confdefs.h <<\_ACEOF 7368$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
13016#define TTY_GID_SUPPORT 1
13017_ACEOF
13018 7369
13019fi 7370fi
13020 7371
7372support_image=no
7373if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then
7374 support_image=yes
7375fi
13021if test x$support_xft = xyes; then 7376if test x$support_xdbe = xyes; then
7377 LIBS="$LIBS -lXext"
7378fi
7379
7380if test x$support_xft = xyes || test x$support_image = xyes; then
7381 rxvt_have_xrender=no
13022 # Extract the first word of "pkg-config", so it can be a program name with args. 7382 # Extract the first word of "pkg-config", so it can be a program name with args.
13023set dummy pkg-config; ac_word=$2 7383set dummy pkg-config; ac_word=$2
13024{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13025echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7385$as_echo_n "checking for $ac_word... " >&6; }
13026if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 7386if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13027 echo $ECHO_N "(cached) $ECHO_C" >&6 7387 $as_echo_n "(cached) " >&6
13028else 7388else
13029 case $PKG_CONFIG in 7389 case $PKG_CONFIG in
13030 [\\/]* | ?:[\\/]*) 7390 [\\/]* | ?:[\\/]*)
13031 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7391 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13032 ;; 7392 ;;
13034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13035for as_dir in $PATH 7395for as_dir in $PATH
13036do 7396do
13037 IFS=$as_save_IFS 7397 IFS=$as_save_IFS
13038 test -z "$as_dir" && as_dir=. 7398 test -z "$as_dir" && as_dir=.
13039 for ac_exec_ext in '' $ac_executable_extensions; do 7399 for ac_exec_ext in '' $ac_executable_extensions; do
13040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13041 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7401 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13043 break 2 7403 break 2
13044 fi 7404 fi
13045done 7405done
13046done 7406 done
13047IFS=$as_save_IFS 7407IFS=$as_save_IFS
13048 7408
13049 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7409 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13050 ;; 7410 ;;
13051esac 7411esac
13052fi 7412fi
13053PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7413PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13054if test -n "$PKG_CONFIG"; then 7414if test -n "$PKG_CONFIG"; then
13055 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13056echo "${ECHO_T}$PKG_CONFIG" >&6; } 7416$as_echo "$PKG_CONFIG" >&6; }
13057else 7417else
13058 { echo "$as_me:$LINENO: result: no" >&5 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13059echo "${ECHO_T}no" >&6; } 7419$as_echo "no" >&6; }
7420fi
7421
7422
7423 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7424 X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS"
7425 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`"
7426 rxvt_have_xrender=yes
7427
7428 save_LIBS="$LIBS"
7429 LIBS="$LIBS $X_LIBS"
7430 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7431if test "x$ac_cv_header_X11_extensions_Xrender_h" = x""yes; then :
7432
7433else
7434 rxvt_have_xrender=no
7435fi
7436
7437
7438 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7439if test "x$ac_cv_func_XRenderFindStandardFormat" = x""yes; then :
7440
7441else
7442 rxvt_have_xrender=no
7443fi
7444
7445 LIBS="$save_LIBS"
7446 fi
7447fi
7448
7449if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7450 # Extract the first word of "pkg-config", so it can be a program name with args.
7451set dummy pkg-config; ac_word=$2
7452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7453$as_echo_n "checking for $ac_word... " >&6; }
7454if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7455 $as_echo_n "(cached) " >&6
7456else
7457 case $PKG_CONFIG in
7458 [\\/]* | ?:[\\/]*)
7459 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7460 ;;
7461 *)
7462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7463for as_dir in $PATH
7464do
7465 IFS=$as_save_IFS
7466 test -z "$as_dir" && as_dir=.
7467 for ac_exec_ext in '' $ac_executable_extensions; do
7468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7469 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7471 break 2
7472 fi
7473done
7474 done
7475IFS=$as_save_IFS
7476
7477 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7478 ;;
7479esac
7480fi
7481PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7482if test -n "$PKG_CONFIG"; then
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7484$as_echo "$PKG_CONFIG" >&6; }
7485else
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487$as_echo "no" >&6; }
13060fi 7488fi
13061 7489
13062 7490
13063 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 7491 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
13064 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 7492 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
13065 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 7493 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
13066 else 7494 else
13067 # Extract the first word of "xft-config", so it can be a program name with args. 7495 # Extract the first word of "xft-config", so it can be a program name with args.
13068set dummy xft-config; ac_word=$2 7496set dummy xft-config; ac_word=$2
13069{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13070echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7498$as_echo_n "checking for $ac_word... " >&6; }
13071if test "${ac_cv_path_XFT_CONFIG+set}" = set; then 7499if test "${ac_cv_path_XFT_CONFIG+set}" = set; then :
13072 echo $ECHO_N "(cached) $ECHO_C" >&6 7500 $as_echo_n "(cached) " >&6
13073else 7501else
13074 case $XFT_CONFIG in 7502 case $XFT_CONFIG in
13075 [\\/]* | ?:[\\/]*) 7503 [\\/]* | ?:[\\/]*)
13076 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. 7504 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
13077 ;; 7505 ;;
13079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080for as_dir in $PATH 7508for as_dir in $PATH
13081do 7509do
13082 IFS=$as_save_IFS 7510 IFS=$as_save_IFS
13083 test -z "$as_dir" && as_dir=. 7511 test -z "$as_dir" && as_dir=.
13084 for ac_exec_ext in '' $ac_executable_extensions; do 7512 for ac_exec_ext in '' $ac_executable_extensions; do
13085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13086 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7514 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 break 2 7516 break 2
13089 fi 7517 fi
13090done 7518done
13091done 7519 done
13092IFS=$as_save_IFS 7520IFS=$as_save_IFS
13093 7521
13094 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" 7522 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
13095 ;; 7523 ;;
13096esac 7524esac
13097fi 7525fi
13098XFT_CONFIG=$ac_cv_path_XFT_CONFIG 7526XFT_CONFIG=$ac_cv_path_XFT_CONFIG
13099if test -n "$XFT_CONFIG"; then 7527if test -n "$XFT_CONFIG"; then
13100 { echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
13101echo "${ECHO_T}$XFT_CONFIG" >&6; } 7529$as_echo "$XFT_CONFIG" >&6; }
13102else 7530else
13103 { echo "$as_me:$LINENO: result: no" >&5 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13104echo "${ECHO_T}no" >&6; } 7532$as_echo "no" >&6; }
13105fi 7533fi
13106 7534
13107 7535
13108 if test $XFT_CONFIG != no; then 7536 if test $XFT_CONFIG != no; then
13109 LIBS="$LIBS `$XFT_CONFIG --libs`" 7537 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
13110 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 7538 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
13111 fi 7539 fi
13112 fi 7540 fi
13113 7541
7542 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
7543 X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
7544 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
7545 fi
13114 7546
7547 save_LIBS="$LIBS"
7548 LIBS="$LIBS $X_LIBS"
13115for ac_header in X11/Xft/Xft.h 7549 for ac_header in X11/Xft/Xft.h
13116do 7550do :
13117as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7551 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
13118if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7552if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
13119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13120echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13121if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13122 echo $ECHO_N "(cached) $ECHO_C" >&6
13123fi
13124ac_res=`eval echo '${'$as_ac_Header'}'`
13125 { echo "$as_me:$LINENO: result: $ac_res" >&5
13126echo "${ECHO_T}$ac_res" >&6; }
13127else
13128 # Is the header compilable?
13129{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
13130echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13131cat >conftest.$ac_ext <<_ACEOF
13132/* confdefs.h. */
13133_ACEOF
13134cat confdefs.h >>conftest.$ac_ext
13135cat >>conftest.$ac_ext <<_ACEOF
13136/* end confdefs.h. */
13137$ac_includes_default
13138#include <$ac_header>
13139_ACEOF
13140rm -f conftest.$ac_objext
13141if { (ac_try="$ac_compile"
13142case "(($ac_try" in
13143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13144 *) ac_try_echo=$ac_try;;
13145esac
13146eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13147 (eval "$ac_compile") 2>conftest.er1
13148 ac_status=$?
13149 grep -v '^ *+' conftest.er1 >conftest.err
13150 rm -f conftest.er1
13151 cat conftest.err >&5
13152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13153 (exit $ac_status); } && {
13154 test -z "$ac_cxx_werror_flag" ||
13155 test ! -s conftest.err
13156 } && test -s conftest.$ac_objext; then
13157 ac_header_compiler=yes
13158else
13159 echo "$as_me: failed program was:" >&5
13160sed 's/^/| /' conftest.$ac_ext >&5
13161
13162 ac_header_compiler=no
13163fi
13164
13165rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13166{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13167echo "${ECHO_T}$ac_header_compiler" >&6; }
13168
13169# Is the header present?
13170{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
13171echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13172cat >conftest.$ac_ext <<_ACEOF
13173/* confdefs.h. */
13174_ACEOF
13175cat confdefs.h >>conftest.$ac_ext
13176cat >>conftest.$ac_ext <<_ACEOF
13177/* end confdefs.h. */
13178#include <$ac_header>
13179_ACEOF
13180if { (ac_try="$ac_cpp conftest.$ac_ext"
13181case "(($ac_try" in
13182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13183 *) ac_try_echo=$ac_try;;
13184esac
13185eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13187 ac_status=$?
13188 grep -v '^ *+' conftest.er1 >conftest.err
13189 rm -f conftest.er1
13190 cat conftest.err >&5
13191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13192 (exit $ac_status); } >/dev/null && {
13193 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
13194 test ! -s conftest.err
13195 }; then
13196 ac_header_preproc=yes
13197else
13198 echo "$as_me: failed program was:" >&5
13199sed 's/^/| /' conftest.$ac_ext >&5
13200
13201 ac_header_preproc=no
13202fi
13203
13204rm -f conftest.err conftest.$ac_ext
13205{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13206echo "${ECHO_T}$ac_header_preproc" >&6; }
13207
13208# So? What about this header?
13209case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
13210 yes:no: )
13211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13212echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13214echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13215 ac_header_preproc=yes
13216 ;;
13217 no:yes:* )
13218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13219echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13221echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13223echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13225echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13227echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13229echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13230
13231 ;;
13232esac
13233{ echo "$as_me:$LINENO: checking for $ac_header" >&5
13234echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13235if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13236 echo $ECHO_N "(cached) $ECHO_C" >&6
13237else
13238 eval "$as_ac_Header=\$ac_header_preproc"
13239fi
13240ac_res=`eval echo '${'$as_ac_Header'}'`
13241 { echo "$as_me:$LINENO: result: $ac_res" >&5
13242echo "${ECHO_T}$ac_res" >&6; }
13243
13244fi
13245if test `eval echo '${'$as_ac_Header'}'` = yes; then
13246 cat >>confdefs.h <<_ACEOF 7553 cat >>confdefs.h <<_ACEOF
13247#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7554#define HAVE_X11_XFT_XFT_H 1
13248_ACEOF 7555_ACEOF
13249 7556
13250else 7557else
13251 support_xft=no 7558 support_xft=no
13252fi 7559fi
13253 7560
13254done 7561done
13255 7562
13256
13257{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 7563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
13258echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 7564$as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
13259if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 7565if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then :
13260 echo $ECHO_N "(cached) $ECHO_C" >&6 7566 $as_echo_n "(cached) " >&6
13261else 7567else
13262 ac_check_lib_save_LIBS=$LIBS 7568 ac_check_lib_save_LIBS=$LIBS
13263LIBS="-lXft $LIBS" 7569LIBS="-lXft $LIBS"
13264cat >conftest.$ac_ext <<_ACEOF
13265/* confdefs.h. */
13266_ACEOF
13267cat confdefs.h >>conftest.$ac_ext 7570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268cat >>conftest.$ac_ext <<_ACEOF
13269/* end confdefs.h. */ 7571/* end confdefs.h. */
13270 7572
13271/* Override any GCC internal prototype to avoid an error. 7573/* Override any GCC internal prototype to avoid an error.
13272 Use char because int might match the return type of a GCC 7574 Use char because int might match the return type of a GCC
13273 builtin and then its argument prototype would still apply. */ 7575 builtin and then its argument prototype would still apply. */
13281return XftDrawString32 (); 7583return XftDrawString32 ();
13282 ; 7584 ;
13283 return 0; 7585 return 0;
13284} 7586}
13285_ACEOF 7587_ACEOF
13286rm -f conftest.$ac_objext conftest$ac_exeext 7588if ac_fn_cxx_try_link "$LINENO"; then :
13287if { (ac_try="$ac_link" 7589 ac_cv_lib_Xft_XftDrawString32=yes
13288case "(($ac_try" in 7590else
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7591 ac_cv_lib_Xft_XftDrawString32=no
13290 *) ac_try_echo=$ac_try;; 7592fi
7593rm -f core conftest.err conftest.$ac_objext \
7594 conftest$ac_exeext conftest.$ac_ext
7595LIBS=$ac_check_lib_save_LIBS
7596fi
7597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
7598$as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
7599if test "x$ac_cv_lib_Xft_XftDrawString32" = x""yes; then :
7600 :
7601else
7602 support_xft=no
7603fi
7604
7605 for ac_header in fontconfig/fontconfig.h
7606do :
7607 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7608if test "x$ac_cv_header_fontconfig_fontconfig_h" = x""yes; then :
7609 cat >>confdefs.h <<_ACEOF
7610#define HAVE_FONTCONFIG_FONTCONFIG_H 1
7611_ACEOF
7612
7613else
7614 support_xft=no
7615fi
7616
7617done
7618
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5
7620$as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; }
7621if test "${ac_cv_lib_fontconfig_FcPatternGet+set}" = set; then :
7622 $as_echo_n "(cached) " >&6
7623else
7624 ac_check_lib_save_LIBS=$LIBS
7625LIBS="-lfontconfig $LIBS"
7626cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7627/* end confdefs.h. */
7628
7629/* Override any GCC internal prototype to avoid an error.
7630 Use char because int might match the return type of a GCC
7631 builtin and then its argument prototype would still apply. */
7632#ifdef __cplusplus
7633extern "C"
7634#endif
7635char FcPatternGet ();
7636int
7637main ()
7638{
7639return FcPatternGet ();
7640 ;
7641 return 0;
7642}
7643_ACEOF
7644if ac_fn_cxx_try_link "$LINENO"; then :
7645 ac_cv_lib_fontconfig_FcPatternGet=yes
7646else
7647 ac_cv_lib_fontconfig_FcPatternGet=no
7648fi
7649rm -f core conftest.err conftest.$ac_objext \
7650 conftest$ac_exeext conftest.$ac_ext
7651LIBS=$ac_check_lib_save_LIBS
7652fi
7653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7654$as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7655if test "x$ac_cv_lib_fontconfig_FcPatternGet" = x""yes; then :
7656 :
7657else
7658 support_xft=no
7659fi
7660
7661 LIBS="$save_LIBS"
7662
7663 if test x$support_xft = xyes; then
7664
7665$as_echo "#define XFT 1" >>confdefs.h
7666
7667 fi
7668fi
7669
7670image_lib=none
7671
7672PIXBUF_CFLAGS=
7673PIXBUF_LIBS=
7674
7675if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then
7676 LIBS="$LIBS -lm"
7677
7678$as_echo "#define XRENDER 1" >>confdefs.h
7679
7680
7681 if test x$support_inheritpixmap = xyes; then
7682
7683$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7684
7685 fi
7686
7687 if test x$support_pixbuf = xyes; then
7688 support_pixbuf=no
7689 # Extract the first word of "pkg-config", so it can be a program name with args.
7690set dummy pkg-config; ac_word=$2
7691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7692$as_echo_n "checking for $ac_word... " >&6; }
7693if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
7694 $as_echo_n "(cached) " >&6
7695else
7696 case $PKG_CONFIG in
7697 [\\/]* | ?:[\\/]*)
7698 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7699 ;;
7700 *)
7701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7702for as_dir in $PATH
7703do
7704 IFS=$as_save_IFS
7705 test -z "$as_dir" && as_dir=.
7706 for ac_exec_ext in '' $ac_executable_extensions; do
7707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7708 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7710 break 2
7711 fi
7712done
7713 done
7714IFS=$as_save_IFS
7715
7716 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7717 ;;
13291esac 7718esac
13292eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13293 (eval "$ac_link") 2>conftest.er1
13294 ac_status=$?
13295 grep -v '^ *+' conftest.er1 >conftest.err
13296 rm -f conftest.er1
13297 cat conftest.err >&5
13298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13299 (exit $ac_status); } && {
13300 test -z "$ac_cxx_werror_flag" ||
13301 test ! -s conftest.err
13302 } && test -s conftest$ac_exeext &&
13303 $as_test_x conftest$ac_exeext; then
13304 ac_cv_lib_Xft_XftDrawString32=yes
13305else
13306 echo "$as_me: failed program was:" >&5
13307sed 's/^/| /' conftest.$ac_ext >&5
13308
13309 ac_cv_lib_Xft_XftDrawString32=no
13310fi 7719fi
13311 7720PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13312rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7721if test -n "$PKG_CONFIG"; then
13313 conftest$ac_exeext conftest.$ac_ext 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13314LIBS=$ac_check_lib_save_LIBS 7723$as_echo "$PKG_CONFIG" >&6; }
13315fi
13316{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13317echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; }
13318if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
13319 cat >>confdefs.h <<_ACEOF
13320#define HAVE_LIBXFT 1
13321_ACEOF
13322
13323 LIBS="-lXft $LIBS"
13324
13325else 7724else
13326 support_xft=no 7725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7726$as_echo "no" >&6; }
13327fi 7727fi
13328 7728
13329 7729
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5
7731$as_echo_n "checking for gdk-pixbuf... " >&6; }
7732 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
7733 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
7734 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
7735 support_pixbuf=yes
7736 fi
7737
13330 if test x$support_xft = xyes; then 7738 if test x$support_pixbuf = xyes; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7740$as_echo "ok" >&6; }
7741 image_lib=gdk-pixbuf
13331 7742
13332cat >>confdefs.h <<\_ACEOF 7743$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
13333#define XFT 1
13334_ACEOF
13335 7744
7745
7746$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
7747
7748 else
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7750$as_echo "no" >&6; }
13336 fi 7751 fi
7752 fi
7753fi
7754
7755
7756
7757
7758if test x$support_xdbe = xyes; then
7759
7760$as_echo "#define ENABLE_XDBE 1" >>confdefs.h
7761
13337fi 7762fi
13338if test x$support_styles = xyes; then 7763if test x$support_styles = xyes; then
13339 7764
13340cat >>confdefs.h <<\_ACEOF 7765$as_echo "#define ENABLE_STYLES 1" >>confdefs.h
13341#define ENABLE_STYLES 1
13342_ACEOF
13343 7766
13344fi 7767fi
13345if test x$support_iso14755 = xyes; then 7768if test x$support_iso14755 = xyes; then
13346 7769
13347cat >>confdefs.h <<\_ACEOF 7770$as_echo "#define ISO_14755 1" >>confdefs.h
13348#define ISO_14755 1
13349_ACEOF
13350 7771
13351fi 7772fi
13352if test x$support_8bitctrls = xyes; then 7773if test x$support_8bitctrls = xyes; then
13353 7774
13354cat >>confdefs.h <<\_ACEOF 7775$as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
13355#define EIGHT_BIT_CONTROLS 1
13356_ACEOF
13357 7776
13358fi 7777fi
13359if test x$support_fading = xyes; then 7778if test x$support_fading = xyes; then
13360 7779
13361cat >>confdefs.h <<\_ACEOF 7780$as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
13362#define OFF_FOCUS_FADING 1
13363_ACEOF
13364
13365fi
13366if test x$support_tinting = xyes; then
13367
13368cat >>confdefs.h <<\_ACEOF
13369#define TINTING 1
13370_ACEOF
13371
13372fi
13373if test x$support_inheritpixmap = xyes; then
13374
13375cat >>confdefs.h <<\_ACEOF
13376#define TRANSPARENT 1
13377_ACEOF
13378 7781
13379fi 7782fi
13380if test x$support_keepscrolling = xno; then 7783if test x$support_keepscrolling = xno; then
13381 7784
13382cat >>confdefs.h <<\_ACEOF
13383#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 7785$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
13384_ACEOF
13385 7786
13386fi 7787fi
13387if test x$support_selectionscrolling = xyes; then 7788if test x$support_selectionscrolling = xyes; then
13388 7789
13389cat >>confdefs.h <<\_ACEOF 7790$as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h
13390#define SELECTION_SCROLLING 1
13391_ACEOF
13392 7791
13393fi 7792fi
13394if test x$support_frills = xyes; then 7793if test x$support_frills = xyes; then
13395 7794
13396cat >>confdefs.h <<\_ACEOF 7795$as_echo "#define ENABLE_FRILLS 1" >>confdefs.h
13397#define ENABLE_FRILLS 1
13398_ACEOF
13399 7796
13400fi 7797fi
13401if test x$support_mousewheel = xyes; then 7798if test x$support_mousewheel = xyes; then
13402 7799
13403cat >>confdefs.h <<\_ACEOF 7800$as_echo "#define MOUSE_WHEEL 1" >>confdefs.h
13404#define MOUSE_WHEEL 1
13405_ACEOF
13406 7801
13407fi 7802fi
13408if test x$support_mouseslipwheel = xyes; then 7803if test x$support_mouseslipwheel = xyes; then
13409 7804
13410cat >>confdefs.h <<\_ACEOF 7805$as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
13411#define MOUSE_SLIP_WHEELING 1
13412_ACEOF
13413 7806
13414fi 7807fi
13415if test x$support_xim = xyes -o x$multichar_set = xyes; then
13416 if test x$rxvt_cv_func_xlocale = xyes; then
13417 7808
13418cat >>confdefs.h <<\_ACEOF 7809scrolltypes=plain
13419#define USE_XIM 1
13420_ACEOF
13421 7810
13422 fi 7811$as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h
13423fi
13424if test x$support_xpm = xyes; then
13425 7812
13426cat >>confdefs.h <<\_ACEOF
13427#define XPM_BACKGROUND 1
13428_ACEOF
13429 7813
13430fi
13431if test x$support_scroll_rxvt = xyes; then 7814if test x$support_scroll_rxvt = xyes; then
13432 7815
13433cat >>confdefs.h <<\_ACEOF 7816$as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h
13434#define RXVT_SCROLLBAR 1
13435_ACEOF
13436 7817
13437 scrolltypes="rxvt" 7818 scrolltypes="$scrolltypes rxvt"
13438fi 7819fi
13439if test x$support_scroll_next = xyes; then 7820if test x$support_scroll_next = xyes; then
13440 7821
13441cat >>confdefs.h <<\_ACEOF 7822$as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h
13442#define NEXT_SCROLLBAR 1
13443_ACEOF
13444 7823
13445 scrolltypes="$scrolltypes next" 7824 scrolltypes="$scrolltypes next"
13446fi 7825fi
13447if test x$support_scroll_xterm = xyes; then 7826if test x$support_scroll_xterm = xyes; then
13448 7827
13449cat >>confdefs.h <<\_ACEOF 7828$as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h
13450#define XTERM_SCROLLBAR 1
13451_ACEOF
13452 7829
13453 scrolltypes="$scrolltypes xterm" 7830 scrolltypes="$scrolltypes xterm"
13454fi 7831fi
13455if test x$support_scroll_plain = xyes; then
13456
13457cat >>confdefs.h <<\_ACEOF
13458#define PLAIN_SCROLLBAR 1
13459_ACEOF
13460
13461 scrolltypes="$scrolltypes plain"
13462fi
13463if test x$support_pointer_blank = xyes; then 7832if test x$support_pointer_blank = xyes; then
13464 7833
13465cat >>confdefs.h <<\_ACEOF 7834$as_echo "#define POINTER_BLANK 1" >>confdefs.h
13466#define POINTER_BLANK 1
13467_ACEOF
13468 7835
13469fi 7836fi
13470if test x$support_text_blink = xyes; then 7837if test x$support_text_blink = xyes; then
13471 7838
13472cat >>confdefs.h <<\_ACEOF 7839$as_echo "#define TEXT_BLINK 1" >>confdefs.h
13473#define TEXT_BLINK 1
13474_ACEOF
13475 7840
13476fi 7841fi
13477if test x$support_unicode3 = xyes; then 7842if test x$support_unicode3 = xyes; then
13478 7843
13479cat >>confdefs.h <<\_ACEOF 7844$as_echo "#define UNICODE_3 1" >>confdefs.h
13480#define UNICODE_3 1
13481_ACEOF
13482 7845
13483fi 7846fi
13484if test x$support_combining = xyes; then 7847if test x$support_combining = xyes; then
13485 7848
13486cat >>confdefs.h <<\_ACEOF 7849$as_echo "#define ENABLE_COMBINING 1" >>confdefs.h
13487#define ENABLE_COMBINING 1
13488_ACEOF
13489 7850
13490fi 7851fi
13491if test x$codesets = xall; then 7852if test x$codesets = xall; then
13492 codesets=jp,jp-ext,kr,zh,zh-ext 7853 codesets=jp,jp-ext,kr,zh,zh-ext
13493fi 7854fi
13494 7855
13495cat >>confdefs.h <<\_ACEOF 7856$as_echo "#define ENCODING_EU 1" >>confdefs.h
13496#define ENCODING_EU 1
13497_ACEOF
13498 7857
13499 7858
13500cat >>confdefs.h <<\_ACEOF 7859$as_echo "#define ENCODING_VN 1" >>confdefs.h
13501#define ENCODING_VN 1
13502_ACEOF
13503 7860
13504for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 7861for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13505 case "$codeset" in 7862 case "$codeset" in
13506 JP ) 7863 JP )
13507cat >>confdefs.h <<\_ACEOF 7864$as_echo "#define ENCODING_JP 1" >>confdefs.h
13508#define ENCODING_JP 1
13509_ACEOF
13510 ;; 7865 ;;
13511 JP_EXT ) 7866 JP_EXT )
13512cat >>confdefs.h <<\_ACEOF 7867$as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h
13513#define ENCODING_JP_EXT 1
13514_ACEOF
13515 ;; 7868 ;;
13516 KR ) 7869 KR )
13517cat >>confdefs.h <<\_ACEOF 7870$as_echo "#define ENCODING_KR 1" >>confdefs.h
13518#define ENCODING_KR 1
13519_ACEOF
13520 ;; 7871 ;;
13521 ZH ) 7872 ZH )
13522cat >>confdefs.h <<\_ACEOF 7873$as_echo "#define ENCODING_ZH 1" >>confdefs.h
13523#define ENCODING_ZH 1
13524_ACEOF
13525 ;; 7874 ;;
13526 ZH_EXT ) 7875 ZH_EXT )
13527cat >>confdefs.h <<\_ACEOF 7876$as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h
13528#define ENCODING_ZH_EXT 1
13529_ACEOF
13530 ;; 7877 ;;
13531 esac 7878 esac
13532done 7879done
13533 7880
13534IF_PERL=\# 7881IF_PERL=\#
13535if test x$support_perl = xyes; then 7882if test x$support_perl = xyes; then
13536 # Extract the first word of "perl5", so it can be a program name with args. 7883 # Extract the first word of "perl5", so it can be a program name with args.
13537set dummy perl5; ac_word=$2 7884set dummy perl5; ac_word=$2
13538{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13539echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7886$as_echo_n "checking for $ac_word... " >&6; }
13540if test "${ac_cv_path_PERL+set}" = set; then 7887if test "${ac_cv_path_PERL+set}" = set; then :
13541 echo $ECHO_N "(cached) $ECHO_C" >&6 7888 $as_echo_n "(cached) " >&6
13542else 7889else
13543 case $PERL in 7890 case $PERL in
13544 [\\/]* | ?:[\\/]*) 7891 [\\/]* | ?:[\\/]*)
13545 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 7892 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13546 ;; 7893 ;;
13548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13549for as_dir in $PATH 7896for as_dir in $PATH
13550do 7897do
13551 IFS=$as_save_IFS 7898 IFS=$as_save_IFS
13552 test -z "$as_dir" && as_dir=. 7899 test -z "$as_dir" && as_dir=.
13553 for ac_exec_ext in '' $ac_executable_extensions; do 7900 for ac_exec_ext in '' $ac_executable_extensions; do
13554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13555 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 7902 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13556 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13557 break 2 7904 break 2
13558 fi 7905 fi
13559done 7906done
13560done 7907 done
13561IFS=$as_save_IFS 7908IFS=$as_save_IFS
13562 7909
7910 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
13563 ;; 7911 ;;
13564esac 7912esac
13565fi 7913fi
13566PERL=$ac_cv_path_PERL 7914PERL=$ac_cv_path_PERL
13567if test -n "$PERL"; then 7915if test -n "$PERL"; then
13568 { echo "$as_me:$LINENO: result: $PERL" >&5 7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13569echo "${ECHO_T}$PERL" >&6; } 7917$as_echo "$PERL" >&6; }
13570else 7918else
13571 { echo "$as_me:$LINENO: result: no" >&5 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13572echo "${ECHO_T}no" >&6; } 7920$as_echo "no" >&6; }
13573fi 7921fi
13574 7922
13575 7923
13576 # Extract the first word of "perl", so it can be a program name with args.
13577set dummy perl; ac_word=$2
13578{ echo "$as_me:$LINENO: checking for $ac_word" >&5
13579echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13580if test "${ac_cv_path_PERL+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13582else
13583 case $PERL in
13584 [\\/]* | ?:[\\/]*)
13585 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13586 ;;
13587 *)
13588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13589for as_dir in $PATH
13590do
13591 IFS=$as_save_IFS
13592 test -z "$as_dir" && as_dir=.
13593 for ac_exec_ext in '' $ac_executable_extensions; do
13594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13595 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13596 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13597 break 2
13598 fi
13599done
13600done
13601IFS=$as_save_IFS
13602 7924
13603 ;;
13604esac
13605fi
13606PERL=$ac_cv_path_PERL
13607if test -n "$PERL"; then
13608 { echo "$as_me:$LINENO: result: $PERL" >&5
13609echo "${ECHO_T}$PERL" >&6; }
13610else
13611 { echo "$as_me:$LINENO: result: no" >&5
13612echo "${ECHO_T}no" >&6; }
13613fi
13614
13615
13616
13617 { echo "$as_me:$LINENO: checking for $PERL suitability" >&5 7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
13618echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6; } 7926$as_echo_n "checking for $PERL suitability... " >&6; }
13619 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then 7927 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13620 7928
13621 save_CXXFLAGS="$CXXFLAGS" 7929 save_CXXFLAGS="$CXXFLAGS"
13622 save_LIBS="$LIBS" 7930 save_LIBS="$LIBS"
13623 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" 7931 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13624 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" 7932 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13625 cat >conftest.$ac_ext <<_ACEOF
13626/* confdefs.h. */
13627_ACEOF
13628cat confdefs.h >>conftest.$ac_ext 7933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13629cat >>conftest.$ac_ext <<_ACEOF
13630/* end confdefs.h. */ 7934/* end confdefs.h. */
13631 7935
13632#include <EXTERN.h> 7936#include <EXTERN.h>
13633#include <perl.h> 7937#include <perl.h>
13634#include <XSUB.h> 7938#include <XSUB.h>
13641 7945
13642 ; 7946 ;
13643 return 0; 7947 return 0;
13644} 7948}
13645_ACEOF 7949_ACEOF
13646rm -f conftest.$ac_objext conftest$ac_exeext 7950if ac_fn_cxx_try_link "$LINENO"; then :
13647if { (ac_try="$ac_link"
13648case "(($ac_try" in
13649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13650 *) ac_try_echo=$ac_try;;
13651esac
13652eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13653 (eval "$ac_link") 2>conftest.er1
13654 ac_status=$?
13655 grep -v '^ *+' conftest.er1 >conftest.err
13656 rm -f conftest.er1
13657 cat conftest.err >&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); } && {
13660 test -z "$ac_cxx_werror_flag" ||
13661 test ! -s conftest.err
13662 } && test -s conftest$ac_exeext &&
13663 $as_test_x conftest$ac_exeext; then
13664 rxvt_perl_link=yes 7951 rxvt_perl_link=yes
13665else 7952else
13666 echo "$as_me: failed program was:" >&5
13667sed 's/^/| /' conftest.$ac_ext >&5
13668
13669 rxvt_perl_link=no 7953 rxvt_perl_link=no
13670fi 7954fi
13671
13672rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7955rm -f core conftest.err conftest.$ac_objext \
13673 conftest$ac_exeext conftest.$ac_ext 7956 conftest$ac_exeext conftest.$ac_ext
13674 CXXFLAGS="$save_CXXFLAGS" 7957 CXXFLAGS="$save_CXXFLAGS"
13675 LIBS="$save_LIBS" 7958 LIBS="$save_LIBS"
13676 7959
13677 if test x$rxvt_perl_link = xyes; then 7960 if test x$rxvt_perl_link = xyes; then
13678 { echo "$as_me:$LINENO: result: ok" >&5 7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13679echo "${ECHO_T}ok" >&6; } 7962$as_echo "ok" >&6; }
13680 7963
13681cat >>confdefs.h <<\_ACEOF 7964$as_echo "#define ENABLE_PERL 1" >>confdefs.h
13682#define ENABLE_PERL 1
13683_ACEOF
13684 7965
13685 IF_PERL= 7966 IF_PERL=
13686 PERL_O=rxvtperl.o 7967 PERL_O=rxvtperl.o
13687 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 7968 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13688 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 7969 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13689 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 7970 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13690 else 7971 else
13691 { { echo "$as_me:$LINENO: error: no, unable to link" >&5 7972 as_fn_error $? "no, unable to link" "$LINENO" 5
13692echo "$as_me: error: no, unable to link" >&2;}
13693 { (exit 1); exit 1; }; }
13694 fi 7973 fi
13695 else 7974 else
13696 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 7975 as_fn_error $? "no working perl found, or perl not version >= 5.8" "$LINENO" 5
13697echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13698 { (exit 1); exit 1; }; }
13699 fi 7976 fi
13700fi 7977fi
13701 7978
13702 7979
13703 7980
13704 7981
13705 7982
13706 7983
13707 7984
13708if test x$support_perl = xyes; then
13709 support_frills=yes
13710fi
13711 7985
13712
13713
13714
13715
13716
13717
13718
13719if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
13720 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
13721 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
13722 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
13723 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
13724 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
13725fi
13726
13727
13728
13729
13730
13731test "$program_prefix" != NONE &&
13732 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13733# Use a double $ so make ignores it.
13734test "$program_suffix" != NONE &&
13735 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13736# Double any \ or $. echo might interpret backslashes.
13737# By default was `s,x,x', remove it if useless.
13738cat <<\_ACEOF >conftest.sed
13739s/[\\$]/&&/g;s/;s,x,x,$//
13740_ACEOF
13741program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13742rm -f conftest.sed
13743
13744
13745
13746
13747
13748if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13749 include_stdint_h="#include <stdint.h>"
13750else
13751 include_stdint_h="/* #include <stdint.h> */"
13752fi
13753if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13754 include_stdarg_h="#include <cstdarg>"
13755else
13756 include_stdarg_h="/* #include <cstdarg> */"
13757fi
13758if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13759 include_stdlib_h="#include <cstdlib>"
13760else
13761 include_stdlib_h="/* #include <cstdlib> */"
13762fi
13763if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13764 include_unistd_h="#include <unistd.h>"
13765else
13766 include_unistd_h="/* #include <unistd.h> */"
13767fi
13768if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13769 include_string_h="#include <cstring>"
13770else
13771 include_string_h="/* #include <cstring> */"
13772fi
13773if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13774 include_fcntl_h="#include <fcntl.h>"
13775else
13776 include_fcntl_h="/* #include <fcntl.h> */"
13777fi
13778if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13779 include_util_h="#include <util.h>"
13780else
13781 include_util_h="/* #include <util.h> */"
13782fi
13783if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13784 include_assert_h="#include <assert.h>"
13785else
13786 include_assert_h="/* #include <assert.h> */"
13787fi
13788if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13789 include_sys_ioctl_h="#include <sys/ioctl.h>"
13790else
13791 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13792fi
13793if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13794 include_sys_select_h="#include <sys/select.h>"
13795else
13796 include_sys_select_h="/* #include <sys/select.h> */"
13797fi
13798if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13799 include_sys_strredir_h="#include <sys/strredir.h>"
13800else
13801 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13802fi
13803if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13804 include_sys_time_h="#include <sys/time.h>"
13805else
13806 include_sys_time_h="/* #include <sys/time.h> */"
13807fi
13808if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13809 include_time_h="#include <time.h>"
13810else
13811 include_time_h="/* #include <time.h> */"
13812fi
13813
13814ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 7986ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13815 7987
13816cat >confcache <<\_ACEOF 7988cat >confcache <<\_ACEOF
13817# This file is a shell script that caches the results of configure 7989# This file is a shell script that caches the results of configure
13818# tests run on this system so they can be shared between configure 7990# tests run on this system so they can be shared between configure
13819# scripts and configure runs, see configure's option --config-cache. 7991# scripts and configure runs, see configure's option --config-cache.
13838 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8010 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13839 eval ac_val=\$$ac_var 8011 eval ac_val=\$$ac_var
13840 case $ac_val in #( 8012 case $ac_val in #(
13841 *${as_nl}*) 8013 *${as_nl}*)
13842 case $ac_var in #( 8014 case $ac_var in #(
13843 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 8015 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13844echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 8016$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13845 esac 8017 esac
13846 case $ac_var in #( 8018 case $ac_var in #(
13847 _ | IFS | as_nl) ;; #( 8019 _ | IFS | as_nl) ;; #(
13848 *) $as_unset $ac_var ;; 8020 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8021 *) { eval $ac_var=; unset $ac_var;} ;;
13849 esac ;; 8022 esac ;;
13850 esac 8023 esac
13851 done 8024 done
13852 8025
13853 (set) 2>&1 | 8026 (set) 2>&1 |
13854 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8027 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13855 *${as_nl}ac_space=\ *) 8028 *${as_nl}ac_space=\ *)
13856 # `set' does not quote correctly, so add quotes (double-quote 8029 # `set' does not quote correctly, so add quotes: double-quote
13857 # substitution turns \\\\ into \\, and sed turns \\ into \). 8030 # substitution turns \\\\ into \\, and sed turns \\ into \.
13858 sed -n \ 8031 sed -n \
13859 "s/'/'\\\\''/g; 8032 "s/'/'\\\\''/g;
13860 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8033 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13861 ;; #( 8034 ;; #(
13862 *) 8035 *)
13875 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8048 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13876 :end' >>confcache 8049 :end' >>confcache
13877if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8050if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13878 if test -w "$cache_file"; then 8051 if test -w "$cache_file"; then
13879 test "x$cache_file" != "x/dev/null" && 8052 test "x$cache_file" != "x/dev/null" &&
13880 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 8053 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13881echo "$as_me: updating cache $cache_file" >&6;} 8054$as_echo "$as_me: updating cache $cache_file" >&6;}
13882 cat confcache >$cache_file 8055 cat confcache >$cache_file
13883 else 8056 else
13884 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 8057 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13885echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8058$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13886 fi 8059 fi
13887fi 8060fi
13888rm -f confcache 8061rm -f confcache
13889 8062
13890test "x$prefix" = xNONE && prefix=$ac_default_prefix 8063test "x$prefix" = xNONE && prefix=$ac_default_prefix
13893 8066
13894DEFS=-DHAVE_CONFIG_H 8067DEFS=-DHAVE_CONFIG_H
13895 8068
13896ac_libobjs= 8069ac_libobjs=
13897ac_ltlibobjs= 8070ac_ltlibobjs=
8071U=
13898for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8072for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13899 # 1. Remove the extension, and $U if already installed. 8073 # 1. Remove the extension, and $U if already installed.
13900 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8074 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13901 ac_i=`echo "$ac_i" | sed "$ac_script"` 8075 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13902 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8076 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13903 # will be set to the directory where LIBOBJS objects are built. 8077 # will be set to the directory where LIBOBJS objects are built.
13904 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8078 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13905 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 8079 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13906done 8080done
13907LIBOBJS=$ac_libobjs 8081LIBOBJS=$ac_libobjs
13908 8082
13909LTLIBOBJS=$ac_ltlibobjs 8083LTLIBOBJS=$ac_ltlibobjs
13910 8084
13911 8085
13912 8086
13913: ${CONFIG_STATUS=./config.status} 8087: ${CONFIG_STATUS=./config.status}
8088ac_write_fail=0
13914ac_clean_files_save=$ac_clean_files 8089ac_clean_files_save=$ac_clean_files
13915ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8090ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13916{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13917echo "$as_me: creating $CONFIG_STATUS" >&6;} 8092$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13918cat >$CONFIG_STATUS <<_ACEOF 8093as_write_fail=0
8094cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13919#! $SHELL 8095#! $SHELL
13920# Generated by $as_me. 8096# Generated by $as_me.
13921# Run this file to recreate the current configuration. 8097# Run this file to recreate the current configuration.
13922# Compiler output produced by configure, useful for debugging 8098# Compiler output produced by configure, useful for debugging
13923# configure, is in config.log if it exists. 8099# configure, is in config.log if it exists.
13924 8100
13925debug=false 8101debug=false
13926ac_cs_recheck=false 8102ac_cs_recheck=false
13927ac_cs_silent=false 8103ac_cs_silent=false
8104
13928SHELL=\${CONFIG_SHELL-$SHELL} 8105SHELL=\${CONFIG_SHELL-$SHELL}
8106export SHELL
13929_ACEOF 8107_ASEOF
13930 8108cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13931cat >>$CONFIG_STATUS <<\_ACEOF
13932## --------------------- ## 8109## -------------------- ##
13933## M4sh Initialization. ## 8110## M4sh Initialization. ##
13934## --------------------- ## 8111## -------------------- ##
13935 8112
13936# Be more Bourne compatible 8113# Be more Bourne compatible
13937DUALCASE=1; export DUALCASE # for MKS sh 8114DUALCASE=1; export DUALCASE # for MKS sh
13938if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8115if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13939 emulate sh 8116 emulate sh
13940 NULLCMD=: 8117 NULLCMD=:
13941 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8118 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13942 # is contrary to our usage. Disable this feature. 8119 # is contrary to our usage. Disable this feature.
13943 alias -g '${1+"$@"}'='"$@"' 8120 alias -g '${1+"$@"}'='"$@"'
13944 setopt NO_GLOB_SUBST 8121 setopt NO_GLOB_SUBST
13945else 8122else
13946 case `(set -o) 2>/dev/null` in 8123 case `(set -o) 2>/dev/null` in #(
13947 *posix*) set -o posix ;; 8124 *posix*) :
8125 set -o posix ;; #(
8126 *) :
8127 ;;
13948esac 8128esac
13949
13950fi 8129fi
13951 8130
13952 8131
13953 8132as_nl='
13954 8133'
13955# PATH needs CR 8134export as_nl
13956# Avoid depending upon Character Ranges. 8135# Printing a long string crashes Solaris 7 /usr/bin/printf.
13957as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8136as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13958as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8137as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13959as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8138as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13960as_cr_digits='0123456789' 8139# Prefer a ksh shell builtin over an external printf program on Solaris,
13961as_cr_alnum=$as_cr_Letters$as_cr_digits 8140# but without wasting forks for bash or zsh.
8141if test -z "$BASH_VERSION$ZSH_VERSION" \
8142 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8143 as_echo='print -r --'
8144 as_echo_n='print -rn --'
8145elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8146 as_echo='printf %s\n'
8147 as_echo_n='printf %s'
8148else
8149 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8150 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8151 as_echo_n='/usr/ucb/echo -n'
8152 else
8153 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8154 as_echo_n_body='eval
8155 arg=$1;
8156 case $arg in #(
8157 *"$as_nl"*)
8158 expr "X$arg" : "X\\(.*\\)$as_nl";
8159 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8160 esac;
8161 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8162 '
8163 export as_echo_n_body
8164 as_echo_n='sh -c $as_echo_n_body as_echo'
8165 fi
8166 export as_echo_body
8167 as_echo='sh -c $as_echo_body as_echo'
8168fi
13962 8169
13963# The user is always right. 8170# The user is always right.
13964if test "${PATH_SEPARATOR+set}" != set; then 8171if test "${PATH_SEPARATOR+set}" != set; then
13965 echo "#! /bin/sh" >conf$$.sh 8172 PATH_SEPARATOR=:
13966 echo "exit 0" >>conf$$.sh 8173 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13967 chmod +x conf$$.sh 8174 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13968 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13969 PATH_SEPARATOR=';' 8175 PATH_SEPARATOR=';'
13970 else 8176 }
13971 PATH_SEPARATOR=:
13972 fi
13973 rm -f conf$$.sh
13974fi
13975
13976# Support unset when possible.
13977if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13978 as_unset=unset
13979else
13980 as_unset=false
13981fi 8177fi
13982 8178
13983 8179
13984# IFS 8180# IFS
13985# We need space, tab and new line, in precisely that order. Quoting is 8181# We need space, tab and new line, in precisely that order. Quoting is
13986# there to prevent editors from complaining about space-tab. 8182# there to prevent editors from complaining about space-tab.
13987# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8183# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13988# splitting by setting IFS to empty value.) 8184# splitting by setting IFS to empty value.)
13989as_nl='
13990'
13991IFS=" "" $as_nl" 8185IFS=" "" $as_nl"
13992 8186
13993# Find who we are. Look in the path if we contain no directory separator. 8187# Find who we are. Look in the path if we contain no directory separator.
13994case $0 in 8188case $0 in #((
13995 *[\\/]* ) as_myself=$0 ;; 8189 *[\\/]* ) as_myself=$0 ;;
13996 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8190 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13997for as_dir in $PATH 8191for as_dir in $PATH
13998do 8192do
13999 IFS=$as_save_IFS 8193 IFS=$as_save_IFS
14000 test -z "$as_dir" && as_dir=. 8194 test -z "$as_dir" && as_dir=.
14001 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8195 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14002done 8196 done
14003IFS=$as_save_IFS 8197IFS=$as_save_IFS
14004 8198
14005 ;; 8199 ;;
14006esac 8200esac
14007# We did not find ourselves, most probably we were run as `sh COMMAND' 8201# We did not find ourselves, most probably we were run as `sh COMMAND'
14008# in which case we are not to be found in the path. 8202# in which case we are not to be found in the path.
14009if test "x$as_myself" = x; then 8203if test "x$as_myself" = x; then
14010 as_myself=$0 8204 as_myself=$0
14011fi 8205fi
14012if test ! -f "$as_myself"; then 8206if test ! -f "$as_myself"; then
14013 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8207 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14014 { (exit 1); exit 1; } 8208 exit 1
14015fi 8209fi
14016 8210
14017# Work around bugs in pre-3.0 UWIN ksh. 8211# Unset variables that we do not need and which cause bugs (e.g. in
8212# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8213# suppresses any "Segmentation fault" message there. '((' could
8214# trigger a bug in pdksh 5.2.14.
14018for as_var in ENV MAIL MAILPATH 8215for as_var in BASH_ENV ENV MAIL MAILPATH
8216do eval test x\${$as_var+set} = xset \
14019do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8217 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14020done 8218done
14021PS1='$ ' 8219PS1='$ '
14022PS2='> ' 8220PS2='> '
14023PS4='+ ' 8221PS4='+ '
14024 8222
14025# NLS nuisances. 8223# NLS nuisances.
14026for as_var in \ 8224LC_ALL=C
14027 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8225export LC_ALL
14028 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8226LANGUAGE=C
14029 LC_TELEPHONE LC_TIME 8227export LANGUAGE
14030do 8228
14031 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8229# CDPATH.
14032 eval $as_var=C; export $as_var 8230(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8231
8232
8233# as_fn_error STATUS ERROR [LINENO LOG_FD]
8234# ----------------------------------------
8235# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8236# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8237# script with STATUS, using 1 if that was 0.
8238as_fn_error ()
8239{
8240 as_status=$1; test $as_status -eq 0 && as_status=1
8241 if test "$4"; then
8242 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8243 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8244 fi
8245 $as_echo "$as_me: error: $2" >&2
8246 as_fn_exit $as_status
8247} # as_fn_error
8248
8249
8250# as_fn_set_status STATUS
8251# -----------------------
8252# Set $? to STATUS, without forking.
8253as_fn_set_status ()
8254{
8255 return $1
8256} # as_fn_set_status
8257
8258# as_fn_exit STATUS
8259# -----------------
8260# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8261as_fn_exit ()
8262{
8263 set +e
8264 as_fn_set_status $1
8265 exit $1
8266} # as_fn_exit
8267
8268# as_fn_unset VAR
8269# ---------------
8270# Portably unset VAR.
8271as_fn_unset ()
8272{
8273 { eval $1=; unset $1;}
8274}
8275as_unset=as_fn_unset
8276# as_fn_append VAR VALUE
8277# ----------------------
8278# Append the text in VALUE to the end of the definition contained in VAR. Take
8279# advantage of any shell optimizations that allow amortized linear growth over
8280# repeated appends, instead of the typical quadratic growth present in naive
8281# implementations.
8282if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8283 eval 'as_fn_append ()
8284 {
8285 eval $1+=\$2
8286 }'
14033 else 8287else
14034 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8288 as_fn_append ()
14035 fi 8289 {
14036done 8290 eval $1=\$$1\$2
8291 }
8292fi # as_fn_append
14037 8293
14038# Required to use basename. 8294# as_fn_arith ARG...
8295# ------------------
8296# Perform arithmetic evaluation on the ARGs, and store the result in the
8297# global $as_val. Take advantage of shells that can avoid forks. The arguments
8298# must be portable across $(()) and expr.
8299if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8300 eval 'as_fn_arith ()
8301 {
8302 as_val=$(( $* ))
8303 }'
8304else
8305 as_fn_arith ()
8306 {
8307 as_val=`expr "$@" || test $? -eq 1`
8308 }
8309fi # as_fn_arith
8310
8311
14039if expr a : '\(a\)' >/dev/null 2>&1 && 8312if expr a : '\(a\)' >/dev/null 2>&1 &&
14040 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8313 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14041 as_expr=expr 8314 as_expr=expr
14042else 8315else
14043 as_expr=false 8316 as_expr=false
14047 as_basename=basename 8320 as_basename=basename
14048else 8321else
14049 as_basename=false 8322 as_basename=false
14050fi 8323fi
14051 8324
8325if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8326 as_dirname=dirname
8327else
8328 as_dirname=false
8329fi
14052 8330
14053# Name of the executable.
14054as_me=`$as_basename -- "$0" || 8331as_me=`$as_basename -- "$0" ||
14055$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8332$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14056 X"$0" : 'X\(//\)$' \| \ 8333 X"$0" : 'X\(//\)$' \| \
14057 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8334 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14058echo X/"$0" | 8335$as_echo X/"$0" |
14059 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8336 sed '/^.*\/\([^/][^/]*\)\/*$/{
14060 s//\1/ 8337 s//\1/
14061 q 8338 q
14062 } 8339 }
14063 /^X\/\(\/\/\)$/{ 8340 /^X\/\(\/\/\)$/{
14068 s//\1/ 8345 s//\1/
14069 q 8346 q
14070 } 8347 }
14071 s/.*/./; q'` 8348 s/.*/./; q'`
14072 8349
14073# CDPATH. 8350# Avoid depending upon Character Ranges.
14074$as_unset CDPATH 8351as_cr_letters='abcdefghijklmnopqrstuvwxyz'
14075 8352as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
14076 8353as_cr_Letters=$as_cr_letters$as_cr_LETTERS
14077 8354as_cr_digits='0123456789'
14078 as_lineno_1=$LINENO 8355as_cr_alnum=$as_cr_Letters$as_cr_digits
14079 as_lineno_2=$LINENO
14080 test "x$as_lineno_1" != "x$as_lineno_2" &&
14081 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
14082
14083 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
14084 # uniformly replaced by the line number. The first 'sed' inserts a
14085 # line-number line after each line using $LINENO; the second 'sed'
14086 # does the real work. The second script uses 'N' to pair each
14087 # line-number line with the line containing $LINENO, and appends
14088 # trailing '-' during substitution so that $LINENO is not a special
14089 # case at line end.
14090 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
14091 # scripts with optimization help from Paolo Bonzini. Blame Lee
14092 # E. McMahon (1931-1989) for sed's syntax. :-)
14093 sed -n '
14094 p
14095 /[$]LINENO/=
14096 ' <$as_myself |
14097 sed '
14098 s/[$]LINENO.*/&-/
14099 t lineno
14100 b
14101 :lineno
14102 N
14103 :loop
14104 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
14105 t loop
14106 s/-\n.*//
14107 ' >$as_me.lineno &&
14108 chmod +x "$as_me.lineno" ||
14109 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
14110 { (exit 1); exit 1; }; }
14111
14112 # Don't try to exec as it changes $[0], causing all sort of problems
14113 # (the dirname of $[0] is not the place where we might find the
14114 # original and so on. Autoconf is especially sensitive to this).
14115 . "./$as_me.lineno"
14116 # Exit status is that of the last command.
14117 exit
14118}
14119
14120
14121if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14122 as_dirname=dirname
14123else
14124 as_dirname=false
14125fi
14126 8356
14127ECHO_C= ECHO_N= ECHO_T= 8357ECHO_C= ECHO_N= ECHO_T=
14128case `echo -n x` in 8358case `echo -n x` in #(((((
14129-n*) 8359-n*)
14130 case `echo 'x\c'` in 8360 case `echo 'xy\c'` in
14131 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8361 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14132 *) ECHO_C='\c';; 8362 xy) ECHO_C='\c';;
8363 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8364 ECHO_T=' ';;
14133 esac;; 8365 esac;;
14134*) 8366*)
14135 ECHO_N='-n';; 8367 ECHO_N='-n';;
14136esac 8368esac
14137 8369
14138if expr a : '\(a\)' >/dev/null 2>&1 &&
14139 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14140 as_expr=expr
14141else
14142 as_expr=false
14143fi
14144
14145rm -f conf$$ conf$$.exe conf$$.file 8370rm -f conf$$ conf$$.exe conf$$.file
14146if test -d conf$$.dir; then 8371if test -d conf$$.dir; then
14147 rm -f conf$$.dir/conf$$.file 8372 rm -f conf$$.dir/conf$$.file
14148else 8373else
14149 rm -f conf$$.dir 8374 rm -f conf$$.dir
14150 mkdir conf$$.dir 8375 mkdir conf$$.dir 2>/dev/null
14151fi 8376fi
14152echo >conf$$.file 8377if (echo >conf$$.file) 2>/dev/null; then
14153if ln -s conf$$.file conf$$ 2>/dev/null; then 8378 if ln -s conf$$.file conf$$ 2>/dev/null; then
14154 as_ln_s='ln -s' 8379 as_ln_s='ln -s'
14155 # ... but there are two gotchas: 8380 # ... but there are two gotchas:
14156 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8381 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
14157 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8382 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
14158 # In both cases, we have to default to `cp -p'. 8383 # In both cases, we have to default to `cp -p'.
14159 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8384 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8385 as_ln_s='cp -p'
8386 elif ln conf$$.file conf$$ 2>/dev/null; then
8387 as_ln_s=ln
8388 else
14160 as_ln_s='cp -p' 8389 as_ln_s='cp -p'
14161elif ln conf$$.file conf$$ 2>/dev/null; then 8390 fi
14162 as_ln_s=ln
14163else 8391else
14164 as_ln_s='cp -p' 8392 as_ln_s='cp -p'
14165fi 8393fi
14166rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8394rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14167rmdir conf$$.dir 2>/dev/null 8395rmdir conf$$.dir 2>/dev/null
14168 8396
14169if mkdir -p . 2>/dev/null; then 8397
14170 as_mkdir_p=: 8398# as_fn_mkdir_p
14171else 8399# -------------
14172 test -d ./-p && rmdir ./-p 8400# Create "$as_dir" as a directory, including parents if necessary.
14173 as_mkdir_p=false 8401as_fn_mkdir_p ()
14174fi
14175
14176if test -x / >/dev/null 2>&1; then
14177 as_test_x='test -x'
14178else
14179 if ls -dL / >/dev/null 2>&1; then
14180 as_ls_L_option=L
14181 else
14182 as_ls_L_option=
14183 fi
14184 as_test_x='
14185 eval sh -c '\''
14186 if test -d "$1"; then
14187 test -d "$1/.";
14188 else
14189 case $1 in
14190 -*)set "./$1";;
14191 esac;
14192 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14193 ???[sx]*):;;*)false;;esac;fi
14194 '\'' sh
14195 '
14196fi
14197as_executable_p=$as_test_x
14198
14199# Sed expression to map a string onto a valid CPP name.
14200as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
14201
14202# Sed expression to map a string onto a valid variable name.
14203as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14204
14205
14206exec 6>&1
14207
14208# Save the log message, to keep $[0] and so on meaningful, and to
14209# report actual input values of CONFIG_FILES etc. instead of their
14210# values after options handling.
14211ac_log="
14212This file was extended by $as_me, which was
14213generated by GNU Autoconf 2.61. Invocation command line was
14214
14215 CONFIG_FILES = $CONFIG_FILES
14216 CONFIG_HEADERS = $CONFIG_HEADERS
14217 CONFIG_LINKS = $CONFIG_LINKS
14218 CONFIG_COMMANDS = $CONFIG_COMMANDS
14219 $ $0 $@
14220
14221on `(hostname || uname -n) 2>/dev/null | sed 1q`
14222"
14223
14224_ACEOF
14225
14226cat >>$CONFIG_STATUS <<_ACEOF
14227# Files that config.status was made for.
14228config_files="$ac_config_files"
14229config_headers="$ac_config_headers"
14230
14231_ACEOF
14232
14233cat >>$CONFIG_STATUS <<\_ACEOF
14234ac_cs_usage="\
14235\`$as_me' instantiates files from templates according to the
14236current configuration.
14237
14238Usage: $0 [OPTIONS] [FILE]...
14239
14240 -h, --help print this help, then exit
14241 -V, --version print version number and configuration settings, then exit
14242 -q, --quiet do not print progress messages
14243 -d, --debug don't remove temporary files
14244 --recheck update $as_me by reconfiguring in the same conditions
14245 --file=FILE[:TEMPLATE]
14246 instantiate the configuration file FILE
14247 --header=FILE[:TEMPLATE]
14248 instantiate the configuration header FILE
14249
14250Configuration files:
14251$config_files
14252
14253Configuration headers:
14254$config_headers
14255
14256Report bugs to <bug-autoconf@gnu.org>."
14257
14258_ACEOF
14259cat >>$CONFIG_STATUS <<_ACEOF
14260ac_cs_version="\\
14261config.status
14262configured by $0, generated by GNU Autoconf 2.61,
14263 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14264
14265Copyright (C) 2006 Free Software Foundation, Inc.
14266This config.status script is free software; the Free Software Foundation
14267gives unlimited permission to copy, distribute and modify it."
14268
14269ac_pwd='$ac_pwd'
14270srcdir='$srcdir'
14271INSTALL='$INSTALL'
14272_ACEOF
14273
14274cat >>$CONFIG_STATUS <<\_ACEOF
14275# If no file are specified by the user, then we need to provide default
14276# value. By we need to know if files were specified by the user.
14277ac_need_defaults=:
14278while test $# != 0
14279do
14280 case $1 in
14281 --*=*)
14282 ac_option=`expr "X$1" : 'X\([^=]*\)='`
14283 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
14284 ac_shift=:
14285 ;;
14286 *)
14287 ac_option=$1
14288 ac_optarg=$2
14289 ac_shift=shift
14290 ;;
14291 esac
14292
14293 case $ac_option in
14294 # Handling of the options.
14295 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14296 ac_cs_recheck=: ;;
14297 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14298 echo "$ac_cs_version"; exit ;;
14299 --debug | --debu | --deb | --de | --d | -d )
14300 debug=: ;;
14301 --file | --fil | --fi | --f )
14302 $ac_shift
14303 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14304 ac_need_defaults=false;;
14305 --header | --heade | --head | --hea )
14306 $ac_shift
14307 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14308 ac_need_defaults=false;;
14309 --he | --h)
14310 # Conflict between --help and --header
14311 { echo "$as_me: error: ambiguous option: $1
14312Try \`$0 --help' for more information." >&2
14313 { (exit 1); exit 1; }; };;
14314 --help | --hel | -h )
14315 echo "$ac_cs_usage"; exit ;;
14316 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14317 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14318 ac_cs_silent=: ;;
14319
14320 # This is an error.
14321 -*) { echo "$as_me: error: unrecognized option: $1
14322Try \`$0 --help' for more information." >&2
14323 { (exit 1); exit 1; }; } ;;
14324
14325 *) ac_config_targets="$ac_config_targets $1"
14326 ac_need_defaults=false ;;
14327
14328 esac
14329 shift
14330done
14331
14332ac_configure_extra_args=
14333
14334if $ac_cs_silent; then
14335 exec 6>/dev/null
14336 ac_configure_extra_args="$ac_configure_extra_args --silent"
14337fi
14338
14339_ACEOF
14340cat >>$CONFIG_STATUS <<_ACEOF
14341if \$ac_cs_recheck; then
14342 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14343 CONFIG_SHELL=$SHELL
14344 export CONFIG_SHELL
14345 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14346fi
14347
14348_ACEOF
14349cat >>$CONFIG_STATUS <<\_ACEOF
14350exec 5>>config.log
14351{ 8402{
14352 echo
14353 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14354## Running $as_me. ##
14355_ASBOX
14356 echo "$ac_log"
14357} >&5
14358 8403
14359_ACEOF
14360cat >>$CONFIG_STATUS <<_ACEOF
14361_ACEOF
14362
14363cat >>$CONFIG_STATUS <<\_ACEOF
14364
14365# Handling of arguments.
14366for ac_config_target in $ac_config_targets
14367do
14368 case $ac_config_target in
14369 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
14370 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14371 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14372 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14373 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
14374
14375 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14376echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14377 { (exit 1); exit 1; }; };;
14378 esac
14379done
14380
14381
14382# If the user did not use the arguments to specify the items to instantiate,
14383# then the envvar interface is used. Set only those that are not.
14384# We use the long form for the default assignment because of an extremely
14385# bizarre bug on SunOS 4.1.3.
14386if $ac_need_defaults; then
14387 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14388 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14389fi
14390
14391# Have a temporary directory for convenience. Make it in the build tree
14392# simply because there is no reason against having it here, and in addition,
14393# creating and moving files from /tmp can sometimes cause problems.
14394# Hook for its removal unless debugging.
14395# Note that there is a small window in which the directory will not be cleaned:
14396# after its creation but before its name has been assigned to `$tmp'.
14397$debug ||
14398{
14399 tmp=
14400 trap 'exit_status=$?
14401 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14402' 0
14403 trap '{ (exit 1); exit 1; }' 1 2 13 15
14404}
14405# Create a (secure) tmp directory for tmp files.
14406
14407{
14408 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14409 test -n "$tmp" && test -d "$tmp"
14410} ||
14411{
14412 tmp=./conf$$-$RANDOM
14413 (umask 077 && mkdir "$tmp")
14414} ||
14415{
14416 echo "$me: cannot create a temporary directory in ." >&2
14417 { (exit 1); exit 1; }
14418}
14419
14420#
14421# Set up the sed scripts for CONFIG_FILES section.
14422#
14423
14424# No need to generate the scripts if there are no CONFIG_FILES.
14425# This happens for instance when ./config.status config.h
14426if test -n "$CONFIG_FILES"; then
14427
14428_ACEOF
14429
14430
14431
14432ac_delim='%!_!# '
14433for ac_last_try in false false false false false :; do
14434 cat >conf$$subs.sed <<_ACEOF
14435SHELL!$SHELL$ac_delim
14436PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14437PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14438PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14439PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14440PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14441PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14442exec_prefix!$exec_prefix$ac_delim
14443prefix!$prefix$ac_delim
14444program_transform_name!$program_transform_name$ac_delim
14445bindir!$bindir$ac_delim
14446sbindir!$sbindir$ac_delim
14447libexecdir!$libexecdir$ac_delim
14448datarootdir!$datarootdir$ac_delim
14449datadir!$datadir$ac_delim
14450sysconfdir!$sysconfdir$ac_delim
14451sharedstatedir!$sharedstatedir$ac_delim
14452localstatedir!$localstatedir$ac_delim
14453includedir!$includedir$ac_delim
14454oldincludedir!$oldincludedir$ac_delim
14455docdir!$docdir$ac_delim
14456infodir!$infodir$ac_delim
14457htmldir!$htmldir$ac_delim
14458dvidir!$dvidir$ac_delim
14459pdfdir!$pdfdir$ac_delim
14460psdir!$psdir$ac_delim
14461libdir!$libdir$ac_delim
14462localedir!$localedir$ac_delim
14463mandir!$mandir$ac_delim
14464DEFS!$DEFS$ac_delim
14465ECHO_C!$ECHO_C$ac_delim
14466ECHO_N!$ECHO_N$ac_delim
14467ECHO_T!$ECHO_T$ac_delim
14468LIBS!$LIBS$ac_delim
14469build_alias!$build_alias$ac_delim
14470host_alias!$host_alias$ac_delim
14471target_alias!$target_alias$ac_delim
14472build!$build$ac_delim
14473build_cpu!$build_cpu$ac_delim
14474build_vendor!$build_vendor$ac_delim
14475build_os!$build_os$ac_delim
14476host!$host$ac_delim
14477host_cpu!$host_cpu$ac_delim
14478host_vendor!$host_vendor$ac_delim
14479host_os!$host_os$ac_delim
14480VERSION!$VERSION$ac_delim
14481DATE!$DATE$ac_delim
14482LSMDATE!$LSMDATE$ac_delim
14483LIBVERSION!$LIBVERSION$ac_delim
14484CC!$CC$ac_delim
14485CFLAGS!$CFLAGS$ac_delim
14486LDFLAGS!$LDFLAGS$ac_delim
14487CPPFLAGS!$CPPFLAGS$ac_delim
14488ac_ct_CC!$ac_ct_CC$ac_delim
14489EXEEXT!$EXEEXT$ac_delim
14490OBJEXT!$OBJEXT$ac_delim
14491CXX!$CXX$ac_delim
14492CXXFLAGS!$CXXFLAGS$ac_delim
14493ac_ct_CXX!$ac_ct_CXX$ac_delim
14494CPP!$CPP$ac_delim
14495INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14496INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14497INSTALL_DATA!$INSTALL_DATA$ac_delim
14498GREP!$GREP$ac_delim
14499EGREP!$EGREP$ac_delim
14500LINKER!$LINKER$ac_delim
14501INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14502RXVTNAME!$RXVTNAME$ac_delim
14503MV!$MV$ac_delim
14504CP!$CP$ac_delim
14505LN!$LN$ac_delim
14506SED!$SED$ac_delim
14507ECHO!$ECHO$ac_delim
14508CMP!$CMP$ac_delim
14509TIC!$TIC$ac_delim
14510XMKMF!$XMKMF$ac_delim
14511CXXCPP!$CXXCPP$ac_delim
14512X_CFLAGS!$X_CFLAGS$ac_delim
14513X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14514X_LIBS!$X_LIBS$ac_delim
14515X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14516XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim
14517XPM_CFLAGS!$XPM_CFLAGS$ac_delim
14518XPM_LIBS!$XPM_LIBS$ac_delim
14519rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14520rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14521rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14522rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14523rxvt_intp_define!$rxvt_intp_define$ac_delim
14524rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
14525PKG_CONFIG!$PKG_CONFIG$ac_delim
14526XFT_CONFIG!$XFT_CONFIG$ac_delim
14527PERL!$PERL$ac_delim
14528PERLLIB!$PERLLIB$ac_delim
14529PERLFLAGS!$PERLFLAGS$ac_delim
14530PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
14531IF_PERL!$IF_PERL$ac_delim
14532_ACEOF
14533
14534 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14535 break
14536 elif $ac_last_try; then
14537 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14538echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14539 { (exit 1); exit 1; }; }
14540 else
14541 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14542 fi
14543done
14544
14545ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14546if test -n "$ac_eof"; then
14547 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14548 ac_eof=`expr $ac_eof + 1`
14549fi
14550
14551cat >>$CONFIG_STATUS <<_ACEOF
14552cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14553/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14554_ACEOF
14555sed '
14556s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14557s/^/s,@/; s/!/@,|#_!!_#|/
14558:n
14559t n
14560s/'"$ac_delim"'$/,g/; t
14561s/$/\\/; p
14562N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14563' >>$CONFIG_STATUS <conf$$subs.sed
14564rm -f conf$$subs.sed
14565cat >>$CONFIG_STATUS <<_ACEOF
14566CEOF$ac_eof
14567_ACEOF
14568
14569
14570ac_delim='%!_!# '
14571for ac_last_try in false false false false false :; do
14572 cat >conf$$subs.sed <<_ACEOF
14573PERL_O!$PERL_O$ac_delim
14574DEBUG!$DEBUG$ac_delim
14575DINCLUDE!$DINCLUDE$ac_delim
14576DLIB!$DLIB$ac_delim
14577include_stdint_h!$include_stdint_h$ac_delim
14578include_stdarg_h!$include_stdarg_h$ac_delim
14579include_stdlib_h!$include_stdlib_h$ac_delim
14580include_unistd_h!$include_unistd_h$ac_delim
14581include_string_h!$include_string_h$ac_delim
14582include_fcntl_h!$include_fcntl_h$ac_delim
14583include_util_h!$include_util_h$ac_delim
14584include_assert_h!$include_assert_h$ac_delim
14585include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14586include_sys_select_h!$include_sys_select_h$ac_delim
14587include_sys_strredir_h!$include_sys_strredir_h$ac_delim
14588include_sys_time_h!$include_sys_time_h$ac_delim
14589include_time_h!$include_time_h$ac_delim
14590LIBOBJS!$LIBOBJS$ac_delim
14591LTLIBOBJS!$LTLIBOBJS$ac_delim
14592_ACEOF
14593
14594 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 19; then
14595 break
14596 elif $ac_last_try; then
14597 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14598echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14599 { (exit 1); exit 1; }; }
14600 else
14601 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14602 fi
14603done
14604
14605ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14606if test -n "$ac_eof"; then
14607 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14608 ac_eof=`expr $ac_eof + 1`
14609fi
14610
14611cat >>$CONFIG_STATUS <<_ACEOF
14612cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14613/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14614_ACEOF
14615sed '
14616s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14617s/^/s,@/; s/!/@,|#_!!_#|/
14618:n
14619t n
14620s/'"$ac_delim"'$/,g/; t
14621s/$/\\/; p
14622N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14623' >>$CONFIG_STATUS <conf$$subs.sed
14624rm -f conf$$subs.sed
14625cat >>$CONFIG_STATUS <<_ACEOF
14626:end
14627s/|#_!!_#|//g
14628CEOF$ac_eof
14629_ACEOF
14630
14631
14632# VPATH may cause trouble with some makes, so we remove $(srcdir),
14633# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14634# trailing colons and then remove the whole line if VPATH becomes empty
14635# (actually we leave an empty line to preserve line numbers).
14636if test "x$srcdir" = x.; then
14637 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14638s/:*\$(srcdir):*/:/
14639s/:*\${srcdir}:*/:/
14640s/:*@srcdir@:*/:/
14641s/^\([^=]*=[ ]*\):*/\1/
14642s/:*$//
14643s/^[^=]*=[ ]*$//
14644}'
14645fi
14646
14647cat >>$CONFIG_STATUS <<\_ACEOF
14648fi # test -n "$CONFIG_FILES"
14649
14650
14651for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
14652do
14653 case $ac_tag in
14654 :[FHLC]) ac_mode=$ac_tag; continue;;
14655 esac
14656 case $ac_mode$ac_tag in
14657 :[FHL]*:*);;
14658 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14659echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14660 { (exit 1); exit 1; }; };;
14661 :[FH]-) ac_tag=-:-;;
14662 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14663 esac
14664 ac_save_IFS=$IFS
14665 IFS=:
14666 set x $ac_tag
14667 IFS=$ac_save_IFS
14668 shift
14669 ac_file=$1
14670 shift
14671
14672 case $ac_mode in
14673 :L) ac_source=$1;;
14674 :[FH])
14675 ac_file_inputs=
14676 for ac_f
14677 do
14678 case $ac_f in
14679 -) ac_f="$tmp/stdin";;
14680 *) # Look for the file first in the build tree, then in the source tree
14681 # (if the path is not absolute). The absolute path cannot be DOS-style,
14682 # because $ac_f cannot contain `:'.
14683 test -f "$ac_f" ||
14684 case $ac_f in
14685 [\\/$]*) false;;
14686 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14687 esac ||
14688 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14689echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14690 { (exit 1); exit 1; }; };;
14691 esac
14692 ac_file_inputs="$ac_file_inputs $ac_f"
14693 done
14694
14695 # Let's still pretend it is `configure' which instantiates (i.e., don't
14696 # use $as_me), people would be surprised to read:
14697 # /* config.h. Generated by config.status. */
14698 configure_input="Generated from "`IFS=:
14699 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14700 if test x"$ac_file" != x-; then
14701 configure_input="$ac_file. $configure_input"
14702 { echo "$as_me:$LINENO: creating $ac_file" >&5
14703echo "$as_me: creating $ac_file" >&6;}
14704 fi
14705
14706 case $ac_tag in
14707 *:-:* | *:-) cat >"$tmp/stdin";;
14708 esac
14709 ;;
14710 esac
14711
14712 ac_dir=`$as_dirname -- "$ac_file" ||
14713$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14714 X"$ac_file" : 'X\(//\)[^/]' \| \
14715 X"$ac_file" : 'X\(//\)$' \| \
14716 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14717echo X"$ac_file" |
14718 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14719 s//\1/
14720 q
14721 }
14722 /^X\(\/\/\)[^/].*/{
14723 s//\1/
14724 q
14725 }
14726 /^X\(\/\/\)$/{
14727 s//\1/
14728 q
14729 }
14730 /^X\(\/\).*/{
14731 s//\1/
14732 q
14733 }
14734 s/.*/./; q'`
14735 { as_dir="$ac_dir"
14736 case $as_dir in #( 8404 case $as_dir in #(
14737 -*) as_dir=./$as_dir;; 8405 -*) as_dir=./$as_dir;;
14738 esac 8406 esac
14739 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 8407 test -d "$as_dir" || eval $as_mkdir_p || {
14740 as_dirs= 8408 as_dirs=
14741 while :; do 8409 while :; do
14742 case $as_dir in #( 8410 case $as_dir in #(
14743 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 8411 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14744 *) as_qdir=$as_dir;; 8412 *) as_qdir=$as_dir;;
14745 esac 8413 esac
14746 as_dirs="'$as_qdir' $as_dirs" 8414 as_dirs="'$as_qdir' $as_dirs"
14747 as_dir=`$as_dirname -- "$as_dir" || 8415 as_dir=`$as_dirname -- "$as_dir" ||
14748$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8416$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14749 X"$as_dir" : 'X\(//\)[^/]' \| \ 8417 X"$as_dir" : 'X\(//\)[^/]' \| \
14750 X"$as_dir" : 'X\(//\)$' \| \ 8418 X"$as_dir" : 'X\(//\)$' \| \
14751 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8419 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14752echo X"$as_dir" | 8420$as_echo X"$as_dir" |
14753 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8421 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14754 s//\1/ 8422 s//\1/
14755 q 8423 q
14756 } 8424 }
14757 /^X\(\/\/\)[^/].*/{ 8425 /^X\(\/\/\)[^/].*/{
14768 } 8436 }
14769 s/.*/./; q'` 8437 s/.*/./; q'`
14770 test -d "$as_dir" && break 8438 test -d "$as_dir" && break
14771 done 8439 done
14772 test -z "$as_dirs" || eval "mkdir $as_dirs" 8440 test -z "$as_dirs" || eval "mkdir $as_dirs"
14773 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 8441 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14774echo "$as_me: error: cannot create directory $as_dir" >&2;} 8442
14775 { (exit 1); exit 1; }; }; } 8443
8444} # as_fn_mkdir_p
8445if mkdir -p . 2>/dev/null; then
8446 as_mkdir_p='mkdir -p "$as_dir"'
8447else
8448 test -d ./-p && rmdir ./-p
8449 as_mkdir_p=false
8450fi
8451
8452if test -x / >/dev/null 2>&1; then
8453 as_test_x='test -x'
8454else
8455 if ls -dL / >/dev/null 2>&1; then
8456 as_ls_L_option=L
8457 else
8458 as_ls_L_option=
8459 fi
8460 as_test_x='
8461 eval sh -c '\''
8462 if test -d "$1"; then
8463 test -d "$1/.";
8464 else
8465 case $1 in #(
8466 -*)set "./$1";;
8467 esac;
8468 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8469 ???[sx]*):;;*)false;;esac;fi
8470 '\'' sh
8471 '
8472fi
8473as_executable_p=$as_test_x
8474
8475# Sed expression to map a string onto a valid CPP name.
8476as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8477
8478# Sed expression to map a string onto a valid variable name.
8479as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8480
8481
8482exec 6>&1
8483## ----------------------------------- ##
8484## Main body of $CONFIG_STATUS script. ##
8485## ----------------------------------- ##
8486_ASEOF
8487test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8488
8489cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8490# Save the log message, to keep $0 and so on meaningful, and to
8491# report actual input values of CONFIG_FILES etc. instead of their
8492# values after options handling.
8493ac_log="
8494This file was extended by $as_me, which was
8495generated by GNU Autoconf 2.67. Invocation command line was
8496
8497 CONFIG_FILES = $CONFIG_FILES
8498 CONFIG_HEADERS = $CONFIG_HEADERS
8499 CONFIG_LINKS = $CONFIG_LINKS
8500 CONFIG_COMMANDS = $CONFIG_COMMANDS
8501 $ $0 $@
8502
8503on `(hostname || uname -n) 2>/dev/null | sed 1q`
8504"
8505
8506_ACEOF
8507
8508case $ac_config_files in *"
8509"*) set x $ac_config_files; shift; ac_config_files=$*;;
8510esac
8511
8512case $ac_config_headers in *"
8513"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8514esac
8515
8516
8517cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8518# Files that config.status was made for.
8519config_files="$ac_config_files"
8520config_headers="$ac_config_headers"
8521
8522_ACEOF
8523
8524cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8525ac_cs_usage="\
8526\`$as_me' instantiates files and other configuration actions
8527from templates according to the current configuration. Unless the files
8528and actions are specified as TAGs, all are instantiated by default.
8529
8530Usage: $0 [OPTION]... [TAG]...
8531
8532 -h, --help print this help, then exit
8533 -V, --version print version number and configuration settings, then exit
8534 --config print configuration, then exit
8535 -q, --quiet, --silent
8536 do not print progress messages
8537 -d, --debug don't remove temporary files
8538 --recheck update $as_me by reconfiguring in the same conditions
8539 --file=FILE[:TEMPLATE]
8540 instantiate the configuration file FILE
8541 --header=FILE[:TEMPLATE]
8542 instantiate the configuration header FILE
8543
8544Configuration files:
8545$config_files
8546
8547Configuration headers:
8548$config_headers
8549
8550Report bugs to the package provider."
8551
8552_ACEOF
8553cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8554ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8555ac_cs_version="\\
8556config.status
8557configured by $0, generated by GNU Autoconf 2.67,
8558 with options \\"\$ac_cs_config\\"
8559
8560Copyright (C) 2010 Free Software Foundation, Inc.
8561This config.status script is free software; the Free Software Foundation
8562gives unlimited permission to copy, distribute and modify it."
8563
8564ac_pwd='$ac_pwd'
8565srcdir='$srcdir'
8566INSTALL='$INSTALL'
8567test -n "\$AWK" || AWK=awk
8568_ACEOF
8569
8570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8571# The default lists apply if the user does not specify any file.
8572ac_need_defaults=:
8573while test $# != 0
8574do
8575 case $1 in
8576 --*=?*)
8577 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8578 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8579 ac_shift=:
8580 ;;
8581 --*=)
8582 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8583 ac_optarg=
8584 ac_shift=:
8585 ;;
8586 *)
8587 ac_option=$1
8588 ac_optarg=$2
8589 ac_shift=shift
8590 ;;
8591 esac
8592
8593 case $ac_option in
8594 # Handling of the options.
8595 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8596 ac_cs_recheck=: ;;
8597 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8598 $as_echo "$ac_cs_version"; exit ;;
8599 --config | --confi | --conf | --con | --co | --c )
8600 $as_echo "$ac_cs_config"; exit ;;
8601 --debug | --debu | --deb | --de | --d | -d )
8602 debug=: ;;
8603 --file | --fil | --fi | --f )
8604 $ac_shift
8605 case $ac_optarg in
8606 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8607 '') as_fn_error $? "missing file argument" ;;
8608 esac
8609 as_fn_append CONFIG_FILES " '$ac_optarg'"
8610 ac_need_defaults=false;;
8611 --header | --heade | --head | --hea )
8612 $ac_shift
8613 case $ac_optarg in
8614 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8615 esac
8616 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8617 ac_need_defaults=false;;
8618 --he | --h)
8619 # Conflict between --help and --header
8620 as_fn_error $? "ambiguous option: \`$1'
8621Try \`$0 --help' for more information.";;
8622 --help | --hel | -h )
8623 $as_echo "$ac_cs_usage"; exit ;;
8624 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8625 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8626 ac_cs_silent=: ;;
8627
8628 # This is an error.
8629 -*) as_fn_error $? "unrecognized option: \`$1'
8630Try \`$0 --help' for more information." ;;
8631
8632 *) as_fn_append ac_config_targets " $1"
8633 ac_need_defaults=false ;;
8634
8635 esac
8636 shift
8637done
8638
8639ac_configure_extra_args=
8640
8641if $ac_cs_silent; then
8642 exec 6>/dev/null
8643 ac_configure_extra_args="$ac_configure_extra_args --silent"
8644fi
8645
8646_ACEOF
8647cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8648if \$ac_cs_recheck; then
8649 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8650 shift
8651 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8652 CONFIG_SHELL='$SHELL'
8653 export CONFIG_SHELL
8654 exec "\$@"
8655fi
8656
8657_ACEOF
8658cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8659exec 5>>config.log
8660{
8661 echo
8662 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8663## Running $as_me. ##
8664_ASBOX
8665 $as_echo "$ac_log"
8666} >&5
8667
8668_ACEOF
8669cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8670_ACEOF
8671
8672cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8673
8674# Handling of arguments.
8675for ac_config_target in $ac_config_targets
8676do
8677 case $ac_config_target in
8678 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
8679 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8680 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8681 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8682
8683 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
8684 esac
8685done
8686
8687
8688# If the user did not use the arguments to specify the items to instantiate,
8689# then the envvar interface is used. Set only those that are not.
8690# We use the long form for the default assignment because of an extremely
8691# bizarre bug on SunOS 4.1.3.
8692if $ac_need_defaults; then
8693 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8694 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8695fi
8696
8697# Have a temporary directory for convenience. Make it in the build tree
8698# simply because there is no reason against having it here, and in addition,
8699# creating and moving files from /tmp can sometimes cause problems.
8700# Hook for its removal unless debugging.
8701# Note that there is a small window in which the directory will not be cleaned:
8702# after its creation but before its name has been assigned to `$tmp'.
8703$debug ||
8704{
8705 tmp=
8706 trap 'exit_status=$?
8707 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
8708' 0
8709 trap 'as_fn_exit 1' 1 2 13 15
8710}
8711# Create a (secure) tmp directory for tmp files.
8712
8713{
8714 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8715 test -n "$tmp" && test -d "$tmp"
8716} ||
8717{
8718 tmp=./conf$$-$RANDOM
8719 (umask 077 && mkdir "$tmp")
8720} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8721
8722# Set up the scripts for CONFIG_FILES section.
8723# No need to generate them if there are no CONFIG_FILES.
8724# This happens for instance with `./config.status config.h'.
8725if test -n "$CONFIG_FILES"; then
8726
8727
8728ac_cr=`echo X | tr X '\015'`
8729# On cygwin, bash can eat \r inside `` if the user requested igncr.
8730# But we know of no other shell where ac_cr would be empty at this
8731# point, so we can use a bashism as a fallback.
8732if test "x$ac_cr" = x; then
8733 eval ac_cr=\$\'\\r\'
8734fi
8735ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8736if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8737 ac_cs_awk_cr='\\r'
8738else
8739 ac_cs_awk_cr=$ac_cr
8740fi
8741
8742echo 'BEGIN {' >"$tmp/subs1.awk" &&
8743_ACEOF
8744
8745
8746{
8747 echo "cat >conf$$subs.awk <<_ACEOF" &&
8748 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8749 echo "_ACEOF"
8750} >conf$$subs.sh ||
8751 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8752ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8753ac_delim='%!_!# '
8754for ac_last_try in false false false false false :; do
8755 . ./conf$$subs.sh ||
8756 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8757
8758 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8759 if test $ac_delim_n = $ac_delim_num; then
8760 break
8761 elif $ac_last_try; then
8762 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8763 else
8764 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8765 fi
8766done
8767rm -f conf$$subs.sh
8768
8769cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8770cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
8771_ACEOF
8772sed -n '
8773h
8774s/^/S["/; s/!.*/"]=/
8775p
8776g
8777s/^[^!]*!//
8778:repl
8779t repl
8780s/'"$ac_delim"'$//
8781t delim
8782:nl
8783h
8784s/\(.\{148\}\)..*/\1/
8785t more1
8786s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8787p
8788n
8789b repl
8790:more1
8791s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8792p
8793g
8794s/.\{148\}//
8795t nl
8796:delim
8797h
8798s/\(.\{148\}\)..*/\1/
8799t more2
8800s/["\\]/\\&/g; s/^/"/; s/$/"/
8801p
8802b
8803:more2
8804s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8805p
8806g
8807s/.\{148\}//
8808t delim
8809' <conf$$subs.awk | sed '
8810/^[^""]/{
8811 N
8812 s/\n//
8813}
8814' >>$CONFIG_STATUS || ac_write_fail=1
8815rm -f conf$$subs.awk
8816cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8817_ACAWK
8818cat >>"\$tmp/subs1.awk" <<_ACAWK &&
8819 for (key in S) S_is_set[key] = 1
8820 FS = ""
8821
8822}
8823{
8824 line = $ 0
8825 nfields = split(line, field, "@")
8826 substed = 0
8827 len = length(field[1])
8828 for (i = 2; i < nfields; i++) {
8829 key = field[i]
8830 keylen = length(key)
8831 if (S_is_set[key]) {
8832 value = S[key]
8833 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8834 len += length(value) + length(field[++i])
8835 substed = 1
8836 } else
8837 len += 1 + keylen
8838 }
8839
8840 print line
8841}
8842
8843_ACAWK
8844_ACEOF
8845cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8846if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8847 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8848else
8849 cat
8850fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
8851 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8852_ACEOF
8853
8854# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8855# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8856# trailing colons and then remove the whole line if VPATH becomes empty
8857# (actually we leave an empty line to preserve line numbers).
8858if test "x$srcdir" = x.; then
8859 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8860h
8861s///
8862s/^/:/
8863s/[ ]*$/:/
8864s/:\$(srcdir):/:/g
8865s/:\${srcdir}:/:/g
8866s/:@srcdir@:/:/g
8867s/^:*//
8868s/:*$//
8869x
8870s/\(=[ ]*\).*/\1/
8871G
8872s/\n//
8873s/^[^=]*=[ ]*$//
8874}'
8875fi
8876
8877cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8878fi # test -n "$CONFIG_FILES"
8879
8880# Set up the scripts for CONFIG_HEADERS section.
8881# No need to generate them if there are no CONFIG_HEADERS.
8882# This happens for instance with `./config.status Makefile'.
8883if test -n "$CONFIG_HEADERS"; then
8884cat >"$tmp/defines.awk" <<\_ACAWK ||
8885BEGIN {
8886_ACEOF
8887
8888# Transform confdefs.h into an awk script `defines.awk', embedded as
8889# here-document in config.status, that substitutes the proper values into
8890# config.h.in to produce config.h.
8891
8892# Create a delimiter string that does not exist in confdefs.h, to ease
8893# handling of long lines.
8894ac_delim='%!_!# '
8895for ac_last_try in false false :; do
8896 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
8897 if test -z "$ac_t"; then
8898 break
8899 elif $ac_last_try; then
8900 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8901 else
8902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8903 fi
8904done
8905
8906# For the awk script, D is an array of macro values keyed by name,
8907# likewise P contains macro parameters if any. Preserve backslash
8908# newline sequences.
8909
8910ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8911sed -n '
8912s/.\{148\}/&'"$ac_delim"'/g
8913t rset
8914:rset
8915s/^[ ]*#[ ]*define[ ][ ]*/ /
8916t def
8917d
8918:def
8919s/\\$//
8920t bsnl
8921s/["\\]/\\&/g
8922s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8923D["\1"]=" \3"/p
8924s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8925d
8926:bsnl
8927s/["\\]/\\&/g
8928s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8929D["\1"]=" \3\\\\\\n"\\/p
8930t cont
8931s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8932t cont
8933d
8934:cont
8935n
8936s/.\{148\}/&'"$ac_delim"'/g
8937t clear
8938:clear
8939s/\\$//
8940t bsnlc
8941s/["\\]/\\&/g; s/^/"/; s/$/"/p
8942d
8943:bsnlc
8944s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8945b cont
8946' <confdefs.h | sed '
8947s/'"$ac_delim"'/"\\\
8948"/g' >>$CONFIG_STATUS || ac_write_fail=1
8949
8950cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8951 for (key in D) D_is_set[key] = 1
8952 FS = ""
8953}
8954/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8955 line = \$ 0
8956 split(line, arg, " ")
8957 if (arg[1] == "#") {
8958 defundef = arg[2]
8959 mac1 = arg[3]
8960 } else {
8961 defundef = substr(arg[1], 2)
8962 mac1 = arg[2]
8963 }
8964 split(mac1, mac2, "(") #)
8965 macro = mac2[1]
8966 prefix = substr(line, 1, index(line, defundef) - 1)
8967 if (D_is_set[macro]) {
8968 # Preserve the white space surrounding the "#".
8969 print prefix "define", macro P[macro] D[macro]
8970 next
8971 } else {
8972 # Replace #undef with comments. This is necessary, for example,
8973 # in the case of _POSIX_SOURCE, which is predefined and required
8974 # on some systems where configure will not decide to define it.
8975 if (defundef == "undef") {
8976 print "/*", prefix defundef, macro, "*/"
8977 next
8978 }
8979 }
8980}
8981{ print }
8982_ACAWK
8983_ACEOF
8984cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8985 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8986fi # test -n "$CONFIG_HEADERS"
8987
8988
8989eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8990shift
8991for ac_tag
8992do
8993 case $ac_tag in
8994 :[FHLC]) ac_mode=$ac_tag; continue;;
8995 esac
8996 case $ac_mode$ac_tag in
8997 :[FHL]*:*);;
8998 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
8999 :[FH]-) ac_tag=-:-;;
9000 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9001 esac
9002 ac_save_IFS=$IFS
9003 IFS=:
9004 set x $ac_tag
9005 IFS=$ac_save_IFS
9006 shift
9007 ac_file=$1
9008 shift
9009
9010 case $ac_mode in
9011 :L) ac_source=$1;;
9012 :[FH])
9013 ac_file_inputs=
9014 for ac_f
9015 do
9016 case $ac_f in
9017 -) ac_f="$tmp/stdin";;
9018 *) # Look for the file first in the build tree, then in the source tree
9019 # (if the path is not absolute). The absolute path cannot be DOS-style,
9020 # because $ac_f cannot contain `:'.
9021 test -f "$ac_f" ||
9022 case $ac_f in
9023 [\\/$]*) false;;
9024 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9025 esac ||
9026 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
9027 esac
9028 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9029 as_fn_append ac_file_inputs " '$ac_f'"
9030 done
9031
9032 # Let's still pretend it is `configure' which instantiates (i.e., don't
9033 # use $as_me), people would be surprised to read:
9034 # /* config.h. Generated by config.status. */
9035 configure_input='Generated from '`
9036 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9037 `' by configure.'
9038 if test x"$ac_file" != x-; then
9039 configure_input="$ac_file. $configure_input"
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9041$as_echo "$as_me: creating $ac_file" >&6;}
9042 fi
9043 # Neutralize special characters interpreted by sed in replacement strings.
9044 case $configure_input in #(
9045 *\&* | *\|* | *\\* )
9046 ac_sed_conf_input=`$as_echo "$configure_input" |
9047 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9048 *) ac_sed_conf_input=$configure_input;;
9049 esac
9050
9051 case $ac_tag in
9052 *:-:* | *:-) cat >"$tmp/stdin" \
9053 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9054 esac
9055 ;;
9056 esac
9057
9058 ac_dir=`$as_dirname -- "$ac_file" ||
9059$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9060 X"$ac_file" : 'X\(//\)[^/]' \| \
9061 X"$ac_file" : 'X\(//\)$' \| \
9062 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9063$as_echo X"$ac_file" |
9064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9065 s//\1/
9066 q
9067 }
9068 /^X\(\/\/\)[^/].*/{
9069 s//\1/
9070 q
9071 }
9072 /^X\(\/\/\)$/{
9073 s//\1/
9074 q
9075 }
9076 /^X\(\/\).*/{
9077 s//\1/
9078 q
9079 }
9080 s/.*/./; q'`
9081 as_dir="$ac_dir"; as_fn_mkdir_p
14776 ac_builddir=. 9082 ac_builddir=.
14777 9083
14778case "$ac_dir" in 9084case "$ac_dir" in
14779.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9085.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14780*) 9086*)
14781 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9087 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14782 # A ".." for each directory in $ac_dir_suffix. 9088 # A ".." for each directory in $ac_dir_suffix.
14783 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 9089 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14784 case $ac_top_builddir_sub in 9090 case $ac_top_builddir_sub in
14785 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9091 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14786 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9092 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14787 esac ;; 9093 esac ;;
14788esac 9094esac
14818 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9124 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14819 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9125 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14820 esac 9126 esac
14821_ACEOF 9127_ACEOF
14822 9128
14823cat >>$CONFIG_STATUS <<\_ACEOF 9129cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14824# If the template does not know about datarootdir, expand it. 9130# If the template does not know about datarootdir, expand it.
14825# FIXME: This hack should be removed a few years after 2.60. 9131# FIXME: This hack should be removed a few years after 2.60.
14826ac_datarootdir_hack=; ac_datarootdir_seen= 9132ac_datarootdir_hack=; ac_datarootdir_seen=
14827 9133ac_sed_dataroot='
14828case `sed -n '/datarootdir/ { 9134/datarootdir/ {
14829 p 9135 p
14830 q 9136 q
14831} 9137}
14832/@datadir@/p 9138/@datadir@/p
14833/@docdir@/p 9139/@docdir@/p
14834/@infodir@/p 9140/@infodir@/p
14835/@localedir@/p 9141/@localedir@/p
14836/@mandir@/p 9142/@mandir@/p'
14837' $ac_file_inputs` in 9143case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14838*datarootdir*) ac_datarootdir_seen=yes;; 9144*datarootdir*) ac_datarootdir_seen=yes;;
14839*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9145*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14840 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9146 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14841echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9147$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14842_ACEOF 9148_ACEOF
14843cat >>$CONFIG_STATUS <<_ACEOF 9149cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14844 ac_datarootdir_hack=' 9150 ac_datarootdir_hack='
14845 s&@datadir@&$datadir&g 9151 s&@datadir@&$datadir&g
14846 s&@docdir@&$docdir&g 9152 s&@docdir@&$docdir&g
14847 s&@infodir@&$infodir&g 9153 s&@infodir@&$infodir&g
14848 s&@localedir@&$localedir&g 9154 s&@localedir@&$localedir&g
14849 s&@mandir@&$mandir&g 9155 s&@mandir@&$mandir&g
14850 s&\\\${datarootdir}&$datarootdir&g' ;; 9156 s&\\\${datarootdir}&$datarootdir&g' ;;
14851esac 9157esac
14852_ACEOF 9158_ACEOF
14853 9159
14854# Neutralize VPATH when `$srcdir' = `.'. 9160# Neutralize VPATH when `$srcdir' = `.'.
14855# Shell code in configure.ac might set extrasub. 9161# Shell code in configure.ac might set extrasub.
14856# FIXME: do we really want to maintain this feature? 9162# FIXME: do we really want to maintain this feature?
14857cat >>$CONFIG_STATUS <<_ACEOF 9163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14858 sed "$ac_vpsub 9164ac_sed_extra="$ac_vpsub
14859$extrasub 9165$extrasub
14860_ACEOF 9166_ACEOF
14861cat >>$CONFIG_STATUS <<\_ACEOF 9167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14862:t 9168:t
14863/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9169/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14864s&@configure_input@&$configure_input&;t t 9170s|@configure_input@|$ac_sed_conf_input|;t t
14865s&@top_builddir@&$ac_top_builddir_sub&;t t 9171s&@top_builddir@&$ac_top_builddir_sub&;t t
9172s&@top_build_prefix@&$ac_top_build_prefix&;t t
14866s&@srcdir@&$ac_srcdir&;t t 9173s&@srcdir@&$ac_srcdir&;t t
14867s&@abs_srcdir@&$ac_abs_srcdir&;t t 9174s&@abs_srcdir@&$ac_abs_srcdir&;t t
14868s&@top_srcdir@&$ac_top_srcdir&;t t 9175s&@top_srcdir@&$ac_top_srcdir&;t t
14869s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9176s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14870s&@builddir@&$ac_builddir&;t t 9177s&@builddir@&$ac_builddir&;t t
14871s&@abs_builddir@&$ac_abs_builddir&;t t 9178s&@abs_builddir@&$ac_abs_builddir&;t t
14872s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9179s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14873s&@INSTALL@&$ac_INSTALL&;t t 9180s&@INSTALL@&$ac_INSTALL&;t t
14874$ac_datarootdir_hack 9181$ac_datarootdir_hack
14875" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 9182"
9183eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
9184 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14876 9185
14877test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9186test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14878 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 9187 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14879 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 9188 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14880 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14881which seems to be undefined. Please make sure it is defined." >&5 9190which seems to be undefined. Please make sure it is defined" >&5
14882echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9191$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14883which seems to be undefined. Please make sure it is defined." >&2;} 9192which seems to be undefined. Please make sure it is defined" >&2;}
14884 9193
14885 rm -f "$tmp/stdin" 9194 rm -f "$tmp/stdin"
14886 case $ac_file in 9195 case $ac_file in
14887 -) cat "$tmp/out"; rm -f "$tmp/out";; 9196 -) cat "$tmp/out" && rm -f "$tmp/out";;
14888 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 9197 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14889 esac 9198 esac \
9199 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14890 ;; 9200 ;;
14891 :H) 9201 :H)
14892 # 9202 #
14893 # CONFIG_HEADER 9203 # CONFIG_HEADER
14894 # 9204 #
14895_ACEOF
14896
14897# Transform confdefs.h into a sed script `conftest.defines', that
14898# substitutes the proper values into config.h.in to produce config.h.
14899rm -f conftest.defines conftest.tail
14900# First, append a space to every undef/define line, to ease matching.
14901echo 's/$/ /' >conftest.defines
14902# Then, protect against being on the right side of a sed subst, or in
14903# an unquoted here document, in config.status. If some macros were
14904# called several times there might be several #defines for the same
14905# symbol, which is useless. But do not sort them, since the last
14906# AC_DEFINE must be honored.
14907ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14908# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14909# NAME is the cpp macro being defined, VALUE is the value it is being given.
14910# PARAMS is the parameter list in the macro definition--in most cases, it's
14911# just an empty string.
14912ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14913ac_dB='\\)[ (].*,\\1define\\2'
14914ac_dC=' '
14915ac_dD=' ,'
14916
14917uniq confdefs.h |
14918 sed -n '
14919 t rset
14920 :rset
14921 s/^[ ]*#[ ]*define[ ][ ]*//
14922 t ok
14923 d
14924 :ok
14925 s/[\\&,]/\\&/g
14926 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14927 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14928 ' >>conftest.defines
14929
14930# Remove the space that was appended to ease matching.
14931# Then replace #undef with comments. This is necessary, for
14932# example, in the case of _POSIX_SOURCE, which is predefined and required
14933# on some systems where configure will not decide to define it.
14934# (The regexp can be short, since the line contains either #define or #undef.)
14935echo 's/ $//
14936s,^[ #]*u.*,/* & */,' >>conftest.defines
14937
14938# Break up conftest.defines:
14939ac_max_sed_lines=50
14940
14941# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14942# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14943# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14944# et cetera.
14945ac_in='$ac_file_inputs'
14946ac_out='"$tmp/out1"'
14947ac_nxt='"$tmp/out2"'
14948
14949while :
14950do
14951 # Write a here document:
14952 cat >>$CONFIG_STATUS <<_ACEOF
14953 # First, check the format of the line:
14954 cat >"\$tmp/defines.sed" <<\\CEOF
14955/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14956/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14957b
14958:def
14959_ACEOF
14960 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14961 echo 'CEOF
14962 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14963 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14964 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14965 grep . conftest.tail >/dev/null || break
14966 rm -f conftest.defines
14967 mv conftest.tail conftest.defines
14968done
14969rm -f conftest.defines conftest.tail
14970
14971echo "ac_result=$ac_in" >>$CONFIG_STATUS
14972cat >>$CONFIG_STATUS <<\_ACEOF
14973 if test x"$ac_file" != x-; then 9205 if test x"$ac_file" != x-; then
9206 {
14974 echo "/* $configure_input */" >"$tmp/config.h" 9207 $as_echo "/* $configure_input */" \
14975 cat "$ac_result" >>"$tmp/config.h" 9208 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
9209 } >"$tmp/config.h" \
9210 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14976 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 9211 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14977 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9212 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14978echo "$as_me: $ac_file is unchanged" >&6;} 9213$as_echo "$as_me: $ac_file is unchanged" >&6;}
14979 else 9214 else
14980 rm -f $ac_file 9215 rm -f "$ac_file"
14981 mv "$tmp/config.h" $ac_file 9216 mv "$tmp/config.h" "$ac_file" \
9217 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14982 fi 9218 fi
14983 else 9219 else
14984 echo "/* $configure_input */" 9220 $as_echo "/* $configure_input */" \
14985 cat "$ac_result" 9221 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
9222 || as_fn_error $? "could not create -" "$LINENO" 5
14986 fi 9223 fi
14987 rm -f "$tmp/out12"
14988 ;; 9224 ;;
14989 9225
14990 9226
14991 esac 9227 esac
14992 9228
14993done # for ac_tag 9229done # for ac_tag
14994 9230
14995 9231
14996{ (exit 0); exit 0; } 9232as_fn_exit 0
14997_ACEOF 9233_ACEOF
14998chmod +x $CONFIG_STATUS
14999ac_clean_files=$ac_clean_files_save 9234ac_clean_files=$ac_clean_files_save
9235
9236test $ac_write_fail = 0 ||
9237 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
15000 9238
15001 9239
15002# configure is writing to config.log, and then calls config.status. 9240# configure is writing to config.log, and then calls config.status.
15003# config.status does its own redirection, appending to config.log. 9241# config.status does its own redirection, appending to config.log.
15004# Unfortunately, on DOS this fails, as config.log is still kept open 9242# Unfortunately, on DOS this fails, as config.log is still kept open
15015 exec 5>/dev/null 9253 exec 5>/dev/null
15016 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9254 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15017 exec 5>>config.log 9255 exec 5>>config.log
15018 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9256 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15019 # would make configure fail if this is the last instruction. 9257 # would make configure fail if this is the last instruction.
15020 $ac_cs_success || { (exit 1); exit 1; } 9258 $ac_cs_success || as_fn_exit 1
9259fi
9260if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9262$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
15021fi 9263fi
15022 9264
15023 9265
15024echo "Configuration: 9266echo "Configuration:
15025 9267
15028 Install path: ${prefix}/bin 9270 Install path: ${prefix}/bin
15029 Compiler: $CXX 9271 Compiler: $CXX
15030 Compiler flags: $CXXFLAGS 9272 Compiler flags: $CXXFLAGS
15031 Linker: $LINKER" 9273 Linker: $LINKER"
15032 9274
15033if test x$support_xpm = xyes; then
15034 echo " Xpm library: $XPM_LIBS"
15035fi
15036
15037if test x$term != x; then 9275if test x$term != x; then
15038 echo " set TERM to: $term" 9276 echo " set TERM to: $term"
15039fi 9277fi
15040if test x$terminfo != x; then 9278if test x$terminfo != x; then
15041 echo " set TERMINFO to: $terminfo" 9279 echo " set TERMINFO to: $terminfo"
15045if test x$RESFALLBACK != x; then 9283if test x$RESFALLBACK != x; then
15046 echo " resource class fallback: $RESFALLBACK" 9284 echo " resource class fallback: $RESFALLBACK"
15047fi 9285fi
15048echo 9286echo
15049echo " embedded perl: $support_perl" 9287echo " embedded perl: $support_perl"
9288echo " image library: $image_lib"
15050echo 9289echo
15051if test x$support_xpm = xneedsmanualspecification; then
15052 echo ".----------------------------------------------------------------."
15053 echo ". WARNING: --enable-xpm-background was specified however the ."
15054 echo ". XPM includes files and libraries could not be found. ."
15055 echo ". XPM backgrounds are now being DISABLED! If you want ."
15056 echo ". to use them you should rerun configure with the ."
15057 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
15058 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
15059 echo ".----------------------------------------------------------------."
15060fi
15061if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then 9290if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
15062 echo ".----------------------------------------------------------------." 9291 echo ".----------------------------------------------------------------."
15063 echo ". WARNING: --enable-xim was specified however the locale support ." 9292 echo ". WARNING: --enable-xim was specified however the locale support ."
15064 echo ". functions could not be found. ." 9293 echo ". functions could not be found. ."
15065 echo ". XIM is now being DISABLED! ." 9294 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines