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

Comparing rxvt-unicode/configure (file contents):
Revision 1.109 by root, Wed Aug 1 18:38:15 2007 UTC vs.
Revision 1.149 by sf-exg, Sun Nov 27 15:18:44 2011 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.68.
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.
92as_myself=
71case $0 in 93case $0 in #((
72 *[\\/]* ) as_myself=$0 ;; 94 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74for as_dir in $PATH 96for as_dir in $PATH
75do 97do
76 IFS=$as_save_IFS 98 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=. 99 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79done 101 done
80IFS=$as_save_IFS 102IFS=$as_save_IFS
81 103
82 ;; 104 ;;
83esac 105esac
84# We did not find ourselves, most probably we were run as `sh COMMAND' 106# 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. 107# in which case we are not to be found in the path.
86if test "x$as_myself" = x; then 108if test "x$as_myself" = x; then
87 as_myself=$0 109 as_myself=$0
88fi 110fi
89if test ! -f "$as_myself"; then 111if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; } 113 exit 1
92fi 114fi
93 115
94# Work around bugs in pre-3.0 UWIN ksh. 116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
95for as_var in ENV MAIL MAILPATH 120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
96do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
97done 123done
98PS1='$ ' 124PS1='$ '
99PS2='> ' 125PS2='> '
100PS4='+ ' 126PS4='+ '
101 127
102# NLS nuisances. 128# NLS nuisances.
103for as_var in \ 129LC_ALL=C
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 130export LC_ALL
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 131LANGUAGE=C
106 LC_TELEPHONE LC_TIME 132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
139 emulate sh
140 NULLCMD=:
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
144 setopt NO_GLOB_SUBST
145else
146 case \`(set -o) 2>/dev/null\` in #(
147 *posix*) :
148 set -o posix ;; #(
149 *) :
150 ;;
151esac
152fi
153"
154 as_required="as_fn_return () { (exit \$1); }
155as_fn_success () { as_fn_return 0; }
156as_fn_failure () { as_fn_return 1; }
157as_fn_ret_success () { return 0; }
158as_fn_ret_failure () { return 1; }
159
160exitcode=0
161as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
166
167else
168 exitcode=1; echo positional parameters were not saved.
169fi
170test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178else
179 as_have_required=no
180fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
182
183else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185as_found=false
186for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
107do 187do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 188 IFS=$as_save_IFS
109 eval $as_var=C; export $as_var 189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201fi
202fi
203 done;;
204 esac
205 as_found=false
206done
207$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210fi; }
211IFS=$as_save_IFS
212
213
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
219 BASH_ENV=/dev/null
220 ENV=/dev/null
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222 export CONFIG_SHELL
223 case $- in # ((((
224 *v*x* | *x*v* ) as_opts=-vx ;;
225 *v* ) as_opts=-v ;;
226 *x* ) as_opts=-x ;;
227 * ) as_opts= ;;
228 esac
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
230fi
231
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
110 else 238 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run
242$0: the script under such a shell if you do have one."
112 fi 243 fi
113done 244 exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
114 253
115# Required to use basename. 254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262 { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271 return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279 set +e
280 as_fn_set_status $1
281 exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290 case $as_dir in #(
291 -*) as_dir=./$as_dir;;
292 esac
293 test -d "$as_dir" || eval $as_mkdir_p || {
294 as_dirs=
295 while :; do
296 case $as_dir in #(
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298 *) as_qdir=$as_dir;;
299 esac
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\/\)[^/].*/{
312 s//\1/
313 q
314 }
315 /^X\(\/\/\)$/{
316 s//\1/
317 q
318 }
319 /^X\(\/\).*/{
320 s//\1/
321 q
322 }
323 s/.*/./; q'`
324 test -d "$as_dir" && break
325 done
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330} # as_fn_mkdir_p
331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
339 {
340 eval $1+=\$2
341 }'
342else
343 as_fn_append ()
344 {
345 eval $1=\$$1\$2
346 }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355 eval 'as_fn_arith ()
356 {
357 as_val=$(( $* ))
358 }'
359else
360 as_fn_arith ()
361 {
362 as_val=`expr "$@" || test $? -eq 1`
363 }
364fi # as_fn_arith
365
366
367# as_fn_error STATUS ERROR [LINENO LOG_FD]
368# ----------------------------------------
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371# script with STATUS, using 1 if that was 0.
372as_fn_error ()
373{
374 as_status=$1; test $as_status -eq 0 && as_status=1
375 if test "$4"; then
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378 fi
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
381} # as_fn_error
382
116if expr a : '\(a\)' >/dev/null 2>&1 && 383if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then 384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr 385 as_expr=expr
119else 386else
120 as_expr=false 387 as_expr=false
124 as_basename=basename 391 as_basename=basename
125else 392else
126 as_basename=false 393 as_basename=false
127fi 394fi
128 395
396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397 as_dirname=dirname
398else
399 as_dirname=false
400fi
129 401
130# Name of the executable.
131as_me=`$as_basename -- "$0" || 402as_me=`$as_basename -- "$0" ||
132$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \ 404 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null || 405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135echo X/"$0" | 406$as_echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{ 407 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/ 408 s//\1/
138 q 409 q
139 } 410 }
140 /^X\/\(\/\/\)$/{ 411 /^X\/\(\/\/\)$/{
145 s//\1/ 416 s//\1/
146 q 417 q
147 } 418 }
148 s/.*/./; q'` 419 s/.*/./; q'`
149 420
150# CDPATH. 421# Avoid depending upon Character Ranges.
151$as_unset CDPATH 422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
152 427
153 428
154if test "x$CONFIG_SHELL" = x; then 429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
155 if (eval ":") 2>/dev/null; then 430 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" && 431 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" || { 432 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. :-) 433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n ' 434 sed -n '
439 p 435 p
440 /[$]LINENO/= 436 /[$]LINENO/=
441 ' <$as_myself | 437 ' <$as_myself |
442 sed ' 438 sed '
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop 446 t loop
451 s/-\n.*// 447 s/-\n.*//
452 ' >$as_me.lineno && 448 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" || 449 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 450 { $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 451
457 # Don't try to exec as it changes $[0], causing all sort of problems 452 # 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 453 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this). 454 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno" 455 . "./$as_me.lineno"
461 # Exit status is that of the last command. 456 # Exit status is that of the last command.
462 exit 457 exit
463} 458}
464 459
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= 460ECHO_C= ECHO_N= ECHO_T=
473case `echo -n x` in 461case `echo -n x` in #(((((
474-n*) 462-n*)
475 case `echo 'x\c'` in 463 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';; 465 xy) ECHO_C='\c';;
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
467 ECHO_T=' ';;
478 esac;; 468 esac;;
479*) 469*)
480 ECHO_N='-n';; 470 ECHO_N='-n';;
481esac 471esac
482 472
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 473rm -f conf$$ conf$$.exe conf$$.file
491if test -d conf$$.dir; then 474if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file 475 rm -f conf$$.dir/conf$$.file
493else 476else
494 rm -f conf$$.dir 477 rm -f conf$$.dir
495 mkdir conf$$.dir 478 mkdir conf$$.dir 2>/dev/null
496fi 479fi
497echo >conf$$.file 480if (echo >conf$$.file) 2>/dev/null; then
498if ln -s conf$$.file conf$$ 2>/dev/null; then 481 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s' 482 as_ln_s='ln -s'
500 # ... but there are two gotchas: 483 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 484 # 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. 485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'. 486 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488 as_ln_s='cp -p'
489 elif ln conf$$.file conf$$ 2>/dev/null; then
490 as_ln_s=ln
491 else
505 as_ln_s='cp -p' 492 as_ln_s='cp -p'
506elif ln conf$$.file conf$$ 2>/dev/null; then 493 fi
507 as_ln_s=ln
508else 494else
509 as_ln_s='cp -p' 495 as_ln_s='cp -p'
510fi 496fi
511rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512rmdir conf$$.dir 2>/dev/null 498rmdir conf$$.dir 2>/dev/null
513 499
514if mkdir -p . 2>/dev/null; then 500if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=: 501 as_mkdir_p='mkdir -p "$as_dir"'
516else 502else
517 test -d ./-p && rmdir ./-p 503 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false 504 as_mkdir_p=false
519fi 505fi
520 506
527 as_ls_L_option= 513 as_ls_L_option=
528 fi 514 fi
529 as_test_x=' 515 as_test_x='
530 eval sh -c '\'' 516 eval sh -c '\''
531 if test -d "$1"; then 517 if test -d "$1"; then
532 test -d "$1/."; 518 test -d "$1/.";
533 else 519 else
534 case $1 in 520 case $1 in #(
535 -*)set "./$1";; 521 -*)set "./$1";;
536 esac; 522 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
538 ???[sx]*):;;*)false;;esac;fi 524 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh 525 '\'' sh
540 ' 526 '
541fi 527fi
542as_executable_p=$as_test_x 528as_executable_p=$as_test_x
546 532
547# Sed expression to map a string onto a valid variable name. 533# Sed expression to map a string onto a valid variable name.
548as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549 535
550 536
551 537test -n "$DJDIR" || exec 7<&0 </dev/null
552exec 7<&0 </dev/null 6>&1 538exec 6>&1
553 539
554# Name of the host. 540# Name of the host.
555# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 541# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
556# so uname gets run too. 542# so uname gets run too.
557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 543ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558 544
559# 545#
560# Initializations. 546# Initializations.
565LIBOBJS= 551LIBOBJS=
566cross_compiling=no 552cross_compiling=no
567subdirs= 553subdirs=
568MFLAGS= 554MFLAGS=
569MAKEFLAGS= 555MAKEFLAGS=
570SHELL=${CONFIG_SHELL-/bin/sh}
571 556
572# Identity of this package. 557# Identity of this package.
573PACKAGE_NAME= 558PACKAGE_NAME=
574PACKAGE_TARNAME= 559PACKAGE_TARNAME=
575PACKAGE_VERSION= 560PACKAGE_VERSION=
576PACKAGE_STRING= 561PACKAGE_STRING=
577PACKAGE_BUGREPORT= 562PACKAGE_BUGREPORT=
563PACKAGE_URL=
578 564
579ac_unique_file="src/feature.h" 565ac_unique_file="src/feature.h"
580# Factoring default headers for most tests. 566# Factoring default headers for most tests.
581ac_includes_default="\ 567ac_includes_default="\
582#include <stdio.h> 568#include <stdio.h>
611#endif 597#endif
612#ifdef HAVE_UNISTD_H 598#ifdef HAVE_UNISTD_H
613# include <unistd.h> 599# include <unistd.h>
614#endif" 600#endif"
615 601
616ac_subst_vars='SHELL 602ac_subst_vars='LTLIBOBJS
603LIBOBJS
604PERL_O
605IF_PERL
606PERLPRIVLIBEXP
607PERLFLAGS
608PERLLIB
609PERL
610XFT_CONFIG
611AFTERIMAGE_LIBS
612AFTERIMAGE_CFLAGS
613afterimage_config
614STARTUP_NOTIFICATION_LIBS
615STARTUP_NOTIFICATION_CFLAGS
616PIXBUF_LIBS
617PIXBUF_CFLAGS
618PKG_CONFIG
619X_EXTRA_LIBS
620X_LIBS
621X_PRE_LIBS
622X_CFLAGS
623XMKMF
624TIC
625CXXCPP
626RXVTNAME
627LINKER
628EGREP
629GREP
630INSTALL_DATA
631INSTALL_SCRIPT
632INSTALL_PROGRAM
633CPP
634ac_ct_CXX
635CXXFLAGS
636CXX
637OBJEXT
638EXEEXT
639ac_ct_CC
640CPPFLAGS
641LDFLAGS
642CFLAGS
643CC
644DATE
645VERSION
646host_os
647host_vendor
648host_cpu
649host
650build_os
651build_vendor
652build_cpu
653build
654target_alias
655host_alias
656build_alias
657LIBS
658ECHO_T
659ECHO_N
660ECHO_C
661DEFS
662mandir
663localedir
664libdir
665psdir
666pdfdir
667dvidir
668htmldir
669infodir
670docdir
671oldincludedir
672includedir
673localstatedir
674sharedstatedir
675sysconfdir
676datadir
677datarootdir
678libexecdir
679sbindir
680bindir
681program_transform_name
682prefix
683exec_prefix
684PACKAGE_URL
685PACKAGE_BUGREPORT
686PACKAGE_STRING
687PACKAGE_VERSION
688PACKAGE_TARNAME
689PACKAGE_NAME
617PATH_SEPARATOR 690PATH_SEPARATOR
618PACKAGE_NAME 691SHELL'
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
684TIC
685XMKMF
686CXXCPP
687X_CFLAGS
688X_PRE_LIBS
689X_LIBS
690X_EXTRA_LIBS
691afterimage_config
692XPM_CPPFLAGS
693XPM_CFLAGS
694XPM_LIBS
695rxvt_int16_typedef
696rxvt_uint16_typedef
697rxvt_int32_typedef
698rxvt_uint32_typedef
699rxvt_intp_define
700rxvt_u_intp_define
701PKG_CONFIG
702XFT_CONFIG
703PERL
704PERLLIB
705PERLFLAGS
706PERLPRIVLIBEXP
707IF_PERL
708PERL_O
709AFTERIMAGE_CFLAGS
710AFTERIMAGE_LIBS
711include_stdint_h
712include_stdarg_h
713include_stdlib_h
714include_unistd_h
715include_string_h
716include_fcntl_h
717include_util_h
718include_assert_h
719include_sys_ioctl_h
720include_sys_select_h
721include_sys_strredir_h
722include_sys_time_h
723include_time_h
724LIBOBJS
725LTLIBOBJS'
726ac_subst_files='' 692ac_subst_files=''
693ac_user_opts='
694enable_option_checking
695enable_everything
696enable_assert
697enable_warnings
698enable_256_color
699enable_unicode3
700enable_combining
701enable_xft
702enable_font_styles
703enable_afterimage
704with_afterimage_config
705enable_pixbuf
706enable_startup_notification
707enable_transparency
708enable_fading
709enable_rxvt_scroll
710enable_next_scroll
711enable_xterm_scroll
712enable_perl
713with_codesets
714enable_xim
715enable_backspace_key
716enable_delete_key
717enable_resources
718enable_8bitctrls
719enable_fallback
720with_res_name
721with_res_class
722with_name
723enable_swapscreen
724enable_iso14755
725enable_frills
726enable_keepscrolling
727enable_selectionscrolling
728enable_mousewheel
729enable_slipwheeling
730enable_smart_resize
731enable_text_blink
732enable_pointer_blank
733with_term
734with_terminfo
735with_x
736enable_utmp
737enable_wtmp
738enable_lastlog
739'
727 ac_precious_vars='build_alias 740 ac_precious_vars='build_alias
728host_alias 741host_alias
729target_alias 742target_alias
730CC 743CC
731CFLAGS 744CFLAGS
734CPPFLAGS 747CPPFLAGS
735CXX 748CXX
736CXXFLAGS 749CXXFLAGS
737CCC 750CCC
738CPP 751CPP
739XMKMF
740CXXCPP' 752CXXCPP
753XMKMF'
741 754
742 755
743# Initialize some variables set by options. 756# Initialize some variables set by options.
744ac_init_help= 757ac_init_help=
745ac_init_version=false 758ac_init_version=false
759ac_unrecognized_opts=
760ac_unrecognized_sep=
746# The variables have the same names as the options, with 761# The variables have the same names as the options, with
747# dashes changed to underlines. 762# dashes changed to underlines.
748cache_file=/dev/null 763cache_file=/dev/null
749exec_prefix=NONE 764exec_prefix=NONE
750no_create= 765no_create=
796 ac_prev= 811 ac_prev=
797 continue 812 continue
798 fi 813 fi
799 814
800 case $ac_option in 815 case $ac_option in
801 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 816 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 *=) ac_optarg= ;;
802 *) ac_optarg=yes ;; 818 *) ac_optarg=yes ;;
803 esac 819 esac
804 820
805 # Accept the important Cygnus configure options, so we can diagnose typos. 821 # Accept the important Cygnus configure options, so we can diagnose typos.
806 822
807 case $ac_dashdash$ac_option in 823 case $ac_dashdash$ac_option in
839 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 855 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 856 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841 datarootdir=$ac_optarg ;; 857 datarootdir=$ac_optarg ;;
842 858
843 -disable-* | --disable-*) 859 -disable-* | --disable-*)
844 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 860 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845 # Reject names that are not valid shell variable names. 861 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 862 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 863 as_fn_error $? "invalid feature name: $ac_useropt"
848 { (exit 1); exit 1; }; } 864 ac_useropt_orig=$ac_useropt
849 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 865 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
866 case $ac_user_opts in
867 *"
868"enable_$ac_useropt"
869"*) ;;
870 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
871 ac_unrecognized_sep=', ';;
872 esac
850 eval enable_$ac_feature=no ;; 873 eval enable_$ac_useropt=no ;;
851 874
852 -docdir | --docdir | --docdi | --doc | --do) 875 -docdir | --docdir | --docdi | --doc | --do)
853 ac_prev=docdir ;; 876 ac_prev=docdir ;;
854 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 877 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855 docdir=$ac_optarg ;; 878 docdir=$ac_optarg ;;
858 ac_prev=dvidir ;; 881 ac_prev=dvidir ;;
859 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 882 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860 dvidir=$ac_optarg ;; 883 dvidir=$ac_optarg ;;
861 884
862 -enable-* | --enable-*) 885 -enable-* | --enable-*)
863 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 886 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 # Reject names that are not valid shell variable names. 887 # Reject names that are not valid shell variable names.
865 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && 888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
866 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 889 as_fn_error $? "invalid feature name: $ac_useropt"
867 { (exit 1); exit 1; }; } 890 ac_useropt_orig=$ac_useropt
868 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` 891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
893 *"
894"enable_$ac_useropt"
895"*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
869 eval enable_$ac_feature=\$ac_optarg ;; 899 eval enable_$ac_useropt=\$ac_optarg ;;
870 900
871 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 901 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 902 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873 | --exec | --exe | --ex) 903 | --exec | --exe | --ex)
874 ac_prev=exec_prefix ;; 904 ac_prev=exec_prefix ;;
1055 1085
1056 -version | --version | --versio | --versi | --vers | -V) 1086 -version | --version | --versio | --versi | --vers | -V)
1057 ac_init_version=: ;; 1087 ac_init_version=: ;;
1058 1088
1059 -with-* | --with-*) 1089 -with-* | --with-*)
1060 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1090 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names. 1091 # Reject names that are not valid shell variable names.
1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1092 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1063 { echo "$as_me: error: invalid package name: $ac_package" >&2 1093 as_fn_error $? "invalid package name: $ac_useropt"
1064 { (exit 1); exit 1; }; } 1094 ac_useropt_orig=$ac_useropt
1065 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1095 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1096 case $ac_user_opts in
1097 *"
1098"with_$ac_useropt"
1099"*) ;;
1100 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1101 ac_unrecognized_sep=', ';;
1102 esac
1066 eval with_$ac_package=\$ac_optarg ;; 1103 eval with_$ac_useropt=\$ac_optarg ;;
1067 1104
1068 -without-* | --without-*) 1105 -without-* | --without-*)
1069 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1106 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names. 1107 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && 1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2 1109 as_fn_error $? "invalid package name: $ac_useropt"
1073 { (exit 1); exit 1; }; } 1110 ac_useropt_orig=$ac_useropt
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'` 1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1113 *"
1114"with_$ac_useropt"
1115"*) ;;
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1118 esac
1075 eval with_$ac_package=no ;; 1119 eval with_$ac_useropt=no ;;
1076 1120
1077 --x) 1121 --x)
1078 # Obsolete; use --with-x. 1122 # Obsolete; use --with-x.
1079 with_x=yes ;; 1123 with_x=yes ;;
1080 1124
1090 ac_prev=x_libraries ;; 1134 ac_prev=x_libraries ;;
1091 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1135 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1092 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1136 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1093 x_libraries=$ac_optarg ;; 1137 x_libraries=$ac_optarg ;;
1094 1138
1095 -*) { echo "$as_me: error: unrecognized option: $ac_option 1139 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1096Try \`$0 --help' for more information." >&2 1140Try \`$0 --help' for more information"
1097 { (exit 1); exit 1; }; }
1098 ;; 1141 ;;
1099 1142
1100 *=*) 1143 *=*)
1101 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1144 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102 # Reject names that are not valid shell variable names. 1145 # Reject names that are not valid shell variable names.
1103 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1146 case $ac_envvar in #(
1147 '' | [0-9]* | *[!_$as_cr_alnum]* )
1104 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1148 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1105 { (exit 1); exit 1; }; } 1149 esac
1106 eval $ac_envvar=\$ac_optarg 1150 eval $ac_envvar=\$ac_optarg
1107 export $ac_envvar ;; 1151 export $ac_envvar ;;
1108 1152
1109 *) 1153 *)
1110 # FIXME: should be removed in autoconf 3.0. 1154 # FIXME: should be removed in autoconf 3.0.
1111 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1155 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1156 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1157 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1158 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1115 ;; 1159 ;;
1116 1160
1117 esac 1161 esac
1118done 1162done
1119 1163
1120if test -n "$ac_prev"; then 1164if test -n "$ac_prev"; then
1121 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1165 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1122 { echo "$as_me: error: missing argument to $ac_option" >&2 1166 as_fn_error $? "missing argument to $ac_option"
1123 { (exit 1); exit 1; }; }
1124fi 1167fi
1125 1168
1126# Be sure to have absolute directory names. 1169if test -n "$ac_unrecognized_opts"; then
1170 case $enable_option_checking in
1171 no) ;;
1172 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1173 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1174 esac
1175fi
1176
1177# Check all directory arguments for consistency.
1127for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1178for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128 datadir sysconfdir sharedstatedir localstatedir includedir \ 1179 datadir sysconfdir sharedstatedir localstatedir includedir \
1129 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1180 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130 libdir localedir mandir 1181 libdir localedir mandir
1131do 1182do
1132 eval ac_val=\$$ac_var 1183 eval ac_val=\$$ac_var
1184 # Remove trailing slashes.
1185 case $ac_val in
1186 */ )
1187 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1188 eval $ac_var=\$ac_val;;
1189 esac
1190 # Be sure to have absolute directory names.
1133 case $ac_val in 1191 case $ac_val in
1134 [\\/$]* | ?:[\\/]* ) continue;; 1192 [\\/$]* | ?:[\\/]* ) continue;;
1135 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1193 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136 esac 1194 esac
1137 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1195 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1138 { (exit 1); exit 1; }; }
1139done 1196done
1140 1197
1141# There might be people who depend on the old broken behavior: `$host' 1198# There might be people who depend on the old broken behavior: `$host'
1142# used to hold the argument of --host etc. 1199# used to hold the argument of --host etc.
1143# FIXME: To remove some day. 1200# FIXME: To remove some day.
1147 1204
1148# FIXME: To remove some day. 1205# FIXME: To remove some day.
1149if test "x$host_alias" != x; then 1206if test "x$host_alias" != x; then
1150 if test "x$build_alias" = x; then 1207 if test "x$build_alias" = x; then
1151 cross_compiling=maybe 1208 cross_compiling=maybe
1152 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1209 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1153 If a cross compiler is detected then cross compile mode will be used." >&2 1210 If a cross compiler is detected then cross compile mode will be used" >&2
1154 elif test "x$build_alias" != "x$host_alias"; then 1211 elif test "x$build_alias" != "x$host_alias"; then
1155 cross_compiling=yes 1212 cross_compiling=yes
1156 fi 1213 fi
1157fi 1214fi
1158 1215
1163 1220
1164 1221
1165ac_pwd=`pwd` && test -n "$ac_pwd" && 1222ac_pwd=`pwd` && test -n "$ac_pwd" &&
1166ac_ls_di=`ls -di .` && 1223ac_ls_di=`ls -di .` &&
1167ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1224ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1168 { echo "$as_me: error: Working directory cannot be determined" >&2 1225 as_fn_error $? "working directory cannot be determined"
1169 { (exit 1); exit 1; }; }
1170test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1226test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171 { echo "$as_me: error: pwd does not report name of working directory" >&2 1227 as_fn_error $? "pwd does not report name of working directory"
1172 { (exit 1); exit 1; }; }
1173 1228
1174 1229
1175# Find the source files, if location was not specified. 1230# Find the source files, if location was not specified.
1176if test -z "$srcdir"; then 1231if test -z "$srcdir"; then
1177 ac_srcdir_defaulted=yes 1232 ac_srcdir_defaulted=yes
1178 # Try the directory containing this script, then the parent directory. 1233 # Try the directory containing this script, then the parent directory.
1179 ac_confdir=`$as_dirname -- "$0" || 1234 ac_confdir=`$as_dirname -- "$as_myself" ||
1180$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1235$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181 X"$0" : 'X\(//\)[^/]' \| \ 1236 X"$as_myself" : 'X\(//\)[^/]' \| \
1182 X"$0" : 'X\(//\)$' \| \ 1237 X"$as_myself" : 'X\(//\)$' \| \
1183 X"$0" : 'X\(/\)' \| . 2>/dev/null || 1238 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1184echo X"$0" | 1239$as_echo X"$as_myself" |
1185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1240 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186 s//\1/ 1241 s//\1/
1187 q 1242 q
1188 } 1243 }
1189 /^X\(\/\/\)[^/].*/{ 1244 /^X\(\/\/\)[^/].*/{
1206else 1261else
1207 ac_srcdir_defaulted=no 1262 ac_srcdir_defaulted=no
1208fi 1263fi
1209if test ! -r "$srcdir/$ac_unique_file"; then 1264if test ! -r "$srcdir/$ac_unique_file"; then
1210 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1265 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1266 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1212 { (exit 1); exit 1; }; }
1213fi 1267fi
1214ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1268ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215ac_abs_confdir=`( 1269ac_abs_confdir=`(
1216 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 1270 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1217 { (exit 1); exit 1; }; }
1218 pwd)` 1271 pwd)`
1219# When building in place, set srcdir=. 1272# When building in place, set srcdir=.
1220if test "$ac_abs_confdir" = "$ac_pwd"; then 1273if test "$ac_abs_confdir" = "$ac_pwd"; then
1221 srcdir=. 1274 srcdir=.
1222fi 1275fi
1252Configuration: 1305Configuration:
1253 -h, --help display this help and exit 1306 -h, --help display this help and exit
1254 --help=short display options specific to this package 1307 --help=short display options specific to this package
1255 --help=recursive display the short help of all the included packages 1308 --help=recursive display the short help of all the included packages
1256 -V, --version display version information and exit 1309 -V, --version display version information and exit
1257 -q, --quiet, --silent do not print \`checking...' messages 1310 -q, --quiet, --silent do not print \`checking ...' messages
1258 --cache-file=FILE cache test results in FILE [disabled] 1311 --cache-file=FILE cache test results in FILE [disabled]
1259 -C, --config-cache alias for \`--cache-file=config.cache' 1312 -C, --config-cache alias for \`--cache-file=config.cache'
1260 -n, --no-create do not create output files 1313 -n, --no-create do not create output files
1261 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1314 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1262 1315
1263Installation directories: 1316Installation directories:
1264 --prefix=PREFIX install architecture-independent files in PREFIX 1317 --prefix=PREFIX install architecture-independent files in PREFIX
1265 [$ac_default_prefix] 1318 [$ac_default_prefix]
1266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1319 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1267 [PREFIX] 1320 [PREFIX]
1268 1321
1269By default, \`make install' will install all the files in 1322By default, \`make install' will install all the files in
1270\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1323\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1271an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1324an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272for instance \`--prefix=\$HOME'. 1325for instance \`--prefix=\$HOME'.
1273 1326
1274For better control, use the options below. 1327For better control, use the options below.
1275 1328
1276Fine tuning of the installation directories: 1329Fine tuning of the installation directories:
1277 --bindir=DIR user executables [EPREFIX/bin] 1330 --bindir=DIR user executables [EPREFIX/bin]
1278 --sbindir=DIR system admin executables [EPREFIX/sbin] 1331 --sbindir=DIR system admin executables [EPREFIX/sbin]
1279 --libexecdir=DIR program executables [EPREFIX/libexec] 1332 --libexecdir=DIR program executables [EPREFIX/libexec]
1280 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1333 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1281 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1334 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1282 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1335 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1283 --libdir=DIR object code libraries [EPREFIX/lib] 1336 --libdir=DIR object code libraries [EPREFIX/lib]
1284 --includedir=DIR C header files [PREFIX/include] 1337 --includedir=DIR C header files [PREFIX/include]
1285 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1338 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1286 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1339 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1287 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1340 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1288 --infodir=DIR info documentation [DATAROOTDIR/info] 1341 --infodir=DIR info documentation [DATAROOTDIR/info]
1289 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1342 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1290 --mandir=DIR man documentation [DATAROOTDIR/man] 1343 --mandir=DIR man documentation [DATAROOTDIR/man]
1291 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1344 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1292 --htmldir=DIR html documentation [DOCDIR] 1345 --htmldir=DIR html documentation [DOCDIR]
1293 --dvidir=DIR dvi documentation [DOCDIR] 1346 --dvidir=DIR dvi documentation [DOCDIR]
1294 --pdfdir=DIR pdf documentation [DOCDIR] 1347 --pdfdir=DIR pdf documentation [DOCDIR]
1295 --psdir=DIR ps documentation [DOCDIR] 1348 --psdir=DIR ps documentation [DOCDIR]
1296_ACEOF 1349_ACEOF
1297 1350
1298 cat <<\_ACEOF 1351 cat <<\_ACEOF
1299 1352
1300X features: 1353X features:
1301 --x-includes=DIR X include files are in DIR 1354 --x-includes=DIR X include files are in DIR
1302 --x-libraries=DIR X library files are in DIR 1355 --x-libraries=DIR X library files are in DIR
1303 1356
1304Program names:
1305 --program-prefix=PREFIX prepend PREFIX to installed program names
1306 --program-suffix=SUFFIX append SUFFIX to installed program names
1307 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1308
1309System types: 1357System types:
1310 --build=BUILD configure for building on BUILD [guessed] 1358 --build=BUILD configure for building on BUILD [guessed]
1311 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1359 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1312_ACEOF 1360_ACEOF
1313fi 1361fi
1315if test -n "$ac_init_help"; then 1363if test -n "$ac_init_help"; then
1316 1364
1317 cat <<\_ACEOF 1365 cat <<\_ACEOF
1318 1366
1319Optional Features: 1367Optional Features:
1368 --disable-option-checking ignore unrecognized --enable/--with options
1320 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1369 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1321 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1370 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1322 --enable-everything enable standard non-multichoice features 1371 --enable-everything enable standard non-multichoice features
1323 NOTE: this option is order dependent 1372 NOTE: this option is order dependent
1324 NOTE: automatically enabled with --enable-shared 1373 --enable-assert enable assertions
1374 --enable-warnings turn on g++ warnings
1375 --enable-256-color enable 256-color support
1325 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1376 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
1326 --enable-combining enable composition of base and combining characters 1377 --enable-combining enable composition of base and combining characters
1327 --enable-xft enable xft support on systems that have it 1378 --enable-xft enable xft support on systems that have it
1328 --enable-font-styles enable bold and italic support 1379 --enable-font-styles enable bold and italic support
1329 --enable-xpm-background enable background pixmaps
1330 --enable-afterimage enable integration with libAfterImage for background images 1380 --enable-afterimage enable integration with libAfterImage for background images
1381 --enable-pixbuf enable integration with gdk-pixbuf for background images
1382 --enable-startup-notification enable freedesktop startup notification support
1331 --enable-transparency enable transparent backgrounds 1383 --enable-transparency enable transparent backgrounds
1332 --enable-tinting enable tinting of transparent bg
1333 --enable-fading enable colors fading when off focus 1384 --enable-fading enable colors fading when off focus
1334 --enable-rxvt-scroll enable rxvt style scrollbar 1385 --enable-rxvt-scroll enable rxvt style scrollbar
1335 --enable-next-scroll enable NeXT style scrollbar 1386 --enable-next-scroll enable NeXT style scrollbar
1336 --enable-xterm-scroll enable Xterm style scrollbar 1387 --enable-xterm-scroll enable Xterm style scrollbar
1337 --enable-perl enable embedded perl interpreter 1388 --enable-perl enable embedded perl interpreter
1338 --enable-plain-scroll enable plain style scrollbar
1339 --enable-xim XIM (X Input Method) protocol support 1389 --enable-xim XIM (X Input Method) protocol support
1340 --disable-backspace-key disable handling of the backspace key 1390 --disable-backspace-key disable handling of the backspace key
1341 --disable-delete-key disable handling of the delete key 1391 --disable-delete-key disable handling of the delete key
1342 --disable-resources disable all resource checking 1392 --disable-resources disable all resource checking
1343 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1393 --enable-8bitctrls enable 8 bit control sequences (not recommended)
1344 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 1394 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
1345 --disable-swapscreen disable swap screen support 1395 --disable-swapscreen disable swap screen support
1346 --enable-iso14755 enable support for extended ISO 14755 modes 1396 --enable-iso14755 enable support for extended ISO 14755 modes
1347 --enable-frills enable support for rarely used features 1397 --enable-frills enable support for rarely used features
1348 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1398 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
1349 --enable-selectionscrolling enable scrolling during selections 1399 --enable-selectionscrolling enable scrolling during selections
1350 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1400 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
1351 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1401 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
1352 --enable-smart-resize enable smart growth/shrink behaviour 1402 --enable-smart-resize enable smart growth/shrink behaviour
1353 --enable-text-blink enable blinking text 1403 --enable-text-blink enable blinking text
1354 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1404 --enable-pointer-blank enable pointer blanking when typing or inactive
1355 --enable-utmp enable utmp (utmpx) support 1405 --enable-utmp enable utmp (utmpx) support
1356 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1406 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1357 --enable-lastlog enable lastlog support (requires --enable-utmp) 1407 --enable-lastlog enable lastlog support (requires --enable-utmp)
1358 1408
1359Optional Packages: 1409Optional Packages:
1360 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1410 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1361 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1411 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1362 --with-afterimage-config=DIR use libAfterImage config script in DIR 1412 --with-afterimage-config=DIR use libAfterImage config script in DIR
1363 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1413 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
1364 --with-res-name=NAME use this as default resource name (default: urxvt) 1414 --with-res-name=NAME use this as default resource name (default: urxvt)
1365 --with-res-class=CLASS use this as the resource class (default: URxvt) 1415 --with-res-class=CLASS use this as the resource class (default: URxvt)
1366 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1416 --with-name=NAME set the basename for the installed binaries (default: urxvt)
1367 --with-term=NAME set the terminal to NAME (default: rxvt) 1417 --with-term=NAME set the terminal to NAME (default: rxvt)
1368 --with-terminfo=PATH set the path to the terminfo tree to PATH 1418 --with-terminfo=PATH set the path to the terminfo tree to PATH
1369 --with-x use the X Window System 1419 --with-x use the X Window System
1370 --with-xpm-includes=DIR use XPM includes in DIR
1371 --with-xpm-library=DIR use XPM library in DIR
1372 --with-xpm use XPM
1373 1420
1374Some influential environment variables: 1421Some influential environment variables:
1375 CC C compiler command 1422 CC C compiler command
1376 CFLAGS C compiler flags 1423 CFLAGS C compiler flags
1377 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1424 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1378 nonstandard directory <lib dir> 1425 nonstandard directory <lib dir>
1379 LIBS libraries to pass to the linker, e.g. -l<library> 1426 LIBS libraries to pass to the linker, e.g. -l<library>
1380 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1427 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1381 you have headers in a nonstandard directory <include dir> 1428 you have headers in a nonstandard directory <include dir>
1382 CXX C++ compiler command 1429 CXX C++ compiler command
1383 CXXFLAGS C++ compiler flags 1430 CXXFLAGS C++ compiler flags
1384 CPP C preprocessor 1431 CPP C preprocessor
1432 CXXCPP C++ preprocessor
1385 XMKMF Path to xmkmf, Makefile generator for X Window System 1433 XMKMF Path to xmkmf, Makefile generator for X Window System
1386 CXXCPP C++ preprocessor
1387 1434
1388Use these variables to override the choices made by `configure' or to help 1435Use these variables to override the choices made by `configure' or to help
1389it to find libraries and programs with nonstandard names/locations. 1436it to find libraries and programs with nonstandard names/locations.
1390 1437
1438Report bugs to the package provider.
1391_ACEOF 1439_ACEOF
1392ac_status=$? 1440ac_status=$?
1393fi 1441fi
1394 1442
1395if test "$ac_init_help" = "recursive"; then 1443if test "$ac_init_help" = "recursive"; then
1396 # If there are subdirs, report their specific --help. 1444 # If there are subdirs, report their specific --help.
1397 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1445 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1398 test -d "$ac_dir" || continue 1446 test -d "$ac_dir" ||
1447 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1448 continue
1399 ac_builddir=. 1449 ac_builddir=.
1400 1450
1401case "$ac_dir" in 1451case "$ac_dir" in
1402.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1452.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1403*) 1453*)
1404 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1454 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1405 # A ".." for each directory in $ac_dir_suffix. 1455 # A ".." for each directory in $ac_dir_suffix.
1406 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 1456 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1407 case $ac_top_builddir_sub in 1457 case $ac_top_builddir_sub in
1408 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1458 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1459 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1410 esac ;; 1460 esac ;;
1411esac 1461esac
1437 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1487 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1438 elif test -f "$ac_srcdir/configure"; then 1488 elif test -f "$ac_srcdir/configure"; then
1439 echo && 1489 echo &&
1440 $SHELL "$ac_srcdir/configure" --help=recursive 1490 $SHELL "$ac_srcdir/configure" --help=recursive
1441 else 1491 else
1442 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1492 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1443 fi || ac_status=$? 1493 fi || ac_status=$?
1444 cd "$ac_pwd" || { ac_status=$?; break; } 1494 cd "$ac_pwd" || { ac_status=$?; break; }
1445 done 1495 done
1446fi 1496fi
1447 1497
1448test -n "$ac_init_help" && exit $ac_status 1498test -n "$ac_init_help" && exit $ac_status
1449if $ac_init_version; then 1499if $ac_init_version; then
1450 cat <<\_ACEOF 1500 cat <<\_ACEOF
1451configure 1501configure
1452generated by GNU Autoconf 2.61 1502generated by GNU Autoconf 2.68
1453 1503
1454Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1504Copyright (C) 2010 Free Software Foundation, Inc.
14552002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1456This configure script is free software; the Free Software Foundation 1505This configure script is free software; the Free Software Foundation
1457gives unlimited permission to copy, distribute and modify it. 1506gives unlimited permission to copy, distribute and modify it.
1458_ACEOF 1507_ACEOF
1459 exit 1508 exit
1460fi 1509fi
1510
1511## ------------------------ ##
1512## Autoconf initialization. ##
1513## ------------------------ ##
1514
1515# ac_fn_c_try_compile LINENO
1516# --------------------------
1517# Try to compile conftest.$ac_ext, and return whether this succeeded.
1518ac_fn_c_try_compile ()
1519{
1520 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1521 rm -f conftest.$ac_objext
1522 if { { ac_try="$ac_compile"
1523case "(($ac_try" in
1524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1525 *) ac_try_echo=$ac_try;;
1526esac
1527eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1528$as_echo "$ac_try_echo"; } >&5
1529 (eval "$ac_compile") 2>conftest.err
1530 ac_status=$?
1531 if test -s conftest.err; then
1532 grep -v '^ *+' conftest.err >conftest.er1
1533 cat conftest.er1 >&5
1534 mv -f conftest.er1 conftest.err
1535 fi
1536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1537 test $ac_status = 0; } && {
1538 test -z "$ac_c_werror_flag" ||
1539 test ! -s conftest.err
1540 } && test -s conftest.$ac_objext; then :
1541 ac_retval=0
1542else
1543 $as_echo "$as_me: failed program was:" >&5
1544sed 's/^/| /' conftest.$ac_ext >&5
1545
1546 ac_retval=1
1547fi
1548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1549 as_fn_set_status $ac_retval
1550
1551} # ac_fn_c_try_compile
1552
1553# ac_fn_cxx_try_compile LINENO
1554# ----------------------------
1555# Try to compile conftest.$ac_ext, and return whether this succeeded.
1556ac_fn_cxx_try_compile ()
1557{
1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1559 rm -f conftest.$ac_objext
1560 if { { ac_try="$ac_compile"
1561case "(($ac_try" in
1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1563 *) ac_try_echo=$ac_try;;
1564esac
1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1566$as_echo "$ac_try_echo"; } >&5
1567 (eval "$ac_compile") 2>conftest.err
1568 ac_status=$?
1569 if test -s conftest.err; then
1570 grep -v '^ *+' conftest.err >conftest.er1
1571 cat conftest.er1 >&5
1572 mv -f conftest.er1 conftest.err
1573 fi
1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1575 test $ac_status = 0; } && {
1576 test -z "$ac_cxx_werror_flag" ||
1577 test ! -s conftest.err
1578 } && test -s conftest.$ac_objext; then :
1579 ac_retval=0
1580else
1581 $as_echo "$as_me: failed program was:" >&5
1582sed 's/^/| /' conftest.$ac_ext >&5
1583
1584 ac_retval=1
1585fi
1586 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1587 as_fn_set_status $ac_retval
1588
1589} # ac_fn_cxx_try_compile
1590
1591# ac_fn_c_try_cpp LINENO
1592# ----------------------
1593# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1594ac_fn_c_try_cpp ()
1595{
1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1597 if { { ac_try="$ac_cpp conftest.$ac_ext"
1598case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601esac
1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603$as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } > conftest.i && {
1613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 }; then :
1616 ac_retval=0
1617else
1618 $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622fi
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1625
1626} # ac_fn_c_try_cpp
1627
1628# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1629# -------------------------------------------------------
1630# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1631# the include files in INCLUDES and setting the cache variable VAR
1632# accordingly.
1633ac_fn_c_check_header_mongrel ()
1634{
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if eval \${$3+:} false; then :
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1638$as_echo_n "checking for $2... " >&6; }
1639if eval \${$3+:} false; then :
1640 $as_echo_n "(cached) " >&6
1641fi
1642eval ac_res=\$$3
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1644$as_echo "$ac_res" >&6; }
1645else
1646 # Is the header compilable?
1647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1648$as_echo_n "checking $2 usability... " >&6; }
1649cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1650/* end confdefs.h. */
1651$4
1652#include <$2>
1653_ACEOF
1654if ac_fn_c_try_compile "$LINENO"; then :
1655 ac_header_compiler=yes
1656else
1657 ac_header_compiler=no
1658fi
1659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1661$as_echo "$ac_header_compiler" >&6; }
1662
1663# Is the header present?
1664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1665$as_echo_n "checking $2 presence... " >&6; }
1666cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1667/* end confdefs.h. */
1668#include <$2>
1669_ACEOF
1670if ac_fn_c_try_cpp "$LINENO"; then :
1671 ac_header_preproc=yes
1672else
1673 ac_header_preproc=no
1674fi
1675rm -f conftest.err conftest.i conftest.$ac_ext
1676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1677$as_echo "$ac_header_preproc" >&6; }
1678
1679# So? What about this header?
1680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1681 yes:no: )
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1683$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1685$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1686 ;;
1687 no:yes:* )
1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1689$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1691$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1693$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1695$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1697$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1698 ;;
1699esac
1700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1701$as_echo_n "checking for $2... " >&6; }
1702if eval \${$3+:} false; then :
1703 $as_echo_n "(cached) " >&6
1704else
1705 eval "$3=\$ac_header_compiler"
1706fi
1707eval ac_res=\$$3
1708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1709$as_echo "$ac_res" >&6; }
1710fi
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712
1713} # ac_fn_c_check_header_mongrel
1714
1715# ac_fn_c_try_run LINENO
1716# ----------------------
1717# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1718# that executables *can* be run.
1719ac_fn_c_try_run ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_link"
1723case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1733 { { case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_try") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; }; }; then :
1743 ac_retval=0
1744else
1745 $as_echo "$as_me: program exited with status $ac_status" >&5
1746 $as_echo "$as_me: failed program was:" >&5
1747sed 's/^/| /' conftest.$ac_ext >&5
1748
1749 ac_retval=$ac_status
1750fi
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1754
1755} # ac_fn_c_try_run
1756
1757# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1758# -------------------------------------------------------
1759# Tests whether HEADER exists and can be compiled using the include files in
1760# INCLUDES, setting the cache variable VAR accordingly.
1761ac_fn_c_check_header_compile ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1765$as_echo_n "checking for $2... " >&6; }
1766if eval \${$3+:} false; then :
1767 $as_echo_n "(cached) " >&6
1768else
1769 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1770/* end confdefs.h. */
1771$4
1772#include <$2>
1773_ACEOF
1774if ac_fn_c_try_compile "$LINENO"; then :
1775 eval "$3=yes"
1776else
1777 eval "$3=no"
1778fi
1779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1780fi
1781eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783$as_echo "$ac_res" >&6; }
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785
1786} # ac_fn_c_check_header_compile
1787
1788# ac_fn_c_try_link LINENO
1789# -----------------------
1790# Try to link conftest.$ac_ext, and return whether this succeeded.
1791ac_fn_c_try_link ()
1792{
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 rm -f conftest.$ac_objext conftest$ac_exeext
1795 if { { ac_try="$ac_link"
1796case "(($ac_try" in
1797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1798 *) ac_try_echo=$ac_try;;
1799esac
1800eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1801$as_echo "$ac_try_echo"; } >&5
1802 (eval "$ac_link") 2>conftest.err
1803 ac_status=$?
1804 if test -s conftest.err; then
1805 grep -v '^ *+' conftest.err >conftest.er1
1806 cat conftest.er1 >&5
1807 mv -f conftest.er1 conftest.err
1808 fi
1809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1810 test $ac_status = 0; } && {
1811 test -z "$ac_c_werror_flag" ||
1812 test ! -s conftest.err
1813 } && test -s conftest$ac_exeext && {
1814 test "$cross_compiling" = yes ||
1815 $as_test_x conftest$ac_exeext
1816 }; then :
1817 ac_retval=0
1818else
1819 $as_echo "$as_me: failed program was:" >&5
1820sed 's/^/| /' conftest.$ac_ext >&5
1821
1822 ac_retval=1
1823fi
1824 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1825 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1826 # interfere with the next link command; also delete a directory that is
1827 # left behind by Apple's compiler. We do this before executing the actions.
1828 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1829 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1830 as_fn_set_status $ac_retval
1831
1832} # ac_fn_c_try_link
1833
1834# ac_fn_cxx_try_link LINENO
1835# -------------------------
1836# Try to link conftest.$ac_ext, and return whether this succeeded.
1837ac_fn_cxx_try_link ()
1838{
1839 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1840 rm -f conftest.$ac_objext conftest$ac_exeext
1841 if { { ac_try="$ac_link"
1842case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845esac
1846eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847$as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_link") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } && {
1857 test -z "$ac_cxx_werror_flag" ||
1858 test ! -s conftest.err
1859 } && test -s conftest$ac_exeext && {
1860 test "$cross_compiling" = yes ||
1861 $as_test_x conftest$ac_exeext
1862 }; then :
1863 ac_retval=0
1864else
1865 $as_echo "$as_me: failed program was:" >&5
1866sed 's/^/| /' conftest.$ac_ext >&5
1867
1868 ac_retval=1
1869fi
1870 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1871 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1872 # interfere with the next link command; also delete a directory that is
1873 # left behind by Apple's compiler. We do this before executing the actions.
1874 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status $ac_retval
1877
1878} # ac_fn_cxx_try_link
1879
1880# ac_fn_cxx_try_cpp LINENO
1881# ------------------------
1882# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1883ac_fn_cxx_try_cpp ()
1884{
1885 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1886 if { { ac_try="$ac_cpp conftest.$ac_ext"
1887case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890esac
1891eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892$as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1899 fi
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } > conftest.i && {
1902 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1903 test ! -s conftest.err
1904 }; then :
1905 ac_retval=0
1906else
1907 $as_echo "$as_me: failed program was:" >&5
1908sed 's/^/| /' conftest.$ac_ext >&5
1909
1910 ac_retval=1
1911fi
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1914
1915} # ac_fn_cxx_try_cpp
1916
1917# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1918# ---------------------------------------------------------
1919# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1920# the include files in INCLUDES and setting the cache variable VAR
1921# accordingly.
1922ac_fn_cxx_check_header_mongrel ()
1923{
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 if eval \${$3+:} false; then :
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1927$as_echo_n "checking for $2... " >&6; }
1928if eval \${$3+:} false; then :
1929 $as_echo_n "(cached) " >&6
1930fi
1931eval ac_res=\$$3
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1933$as_echo "$ac_res" >&6; }
1934else
1935 # Is the header compilable?
1936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1937$as_echo_n "checking $2 usability... " >&6; }
1938cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939/* end confdefs.h. */
1940$4
1941#include <$2>
1942_ACEOF
1943if ac_fn_cxx_try_compile "$LINENO"; then :
1944 ac_header_compiler=yes
1945else
1946 ac_header_compiler=no
1947fi
1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1950$as_echo "$ac_header_compiler" >&6; }
1951
1952# Is the header present?
1953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1954$as_echo_n "checking $2 presence... " >&6; }
1955cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1956/* end confdefs.h. */
1957#include <$2>
1958_ACEOF
1959if ac_fn_cxx_try_cpp "$LINENO"; then :
1960 ac_header_preproc=yes
1961else
1962 ac_header_preproc=no
1963fi
1964rm -f conftest.err conftest.i conftest.$ac_ext
1965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1966$as_echo "$ac_header_preproc" >&6; }
1967
1968# So? What about this header?
1969case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1970 yes:no: )
1971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1972$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1974$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1975 ;;
1976 no:yes:* )
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1978$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1979 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1980$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1982$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1984$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 ;;
1988esac
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1990$as_echo_n "checking for $2... " >&6; }
1991if eval \${$3+:} false; then :
1992 $as_echo_n "(cached) " >&6
1993else
1994 eval "$3=\$ac_header_compiler"
1995fi
1996eval ac_res=\$$3
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1998$as_echo "$ac_res" >&6; }
1999fi
2000 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2001
2002} # ac_fn_cxx_check_header_mongrel
2003
2004# ac_fn_cxx_check_func LINENO FUNC VAR
2005# ------------------------------------
2006# Tests whether FUNC exists, setting the cache variable VAR accordingly
2007ac_fn_cxx_check_func ()
2008{
2009 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2011$as_echo_n "checking for $2... " >&6; }
2012if eval \${$3+:} false; then :
2013 $as_echo_n "(cached) " >&6
2014else
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016/* end confdefs.h. */
2017/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2019#define $2 innocuous_$2
2020
2021/* System header to define __stub macros and hopefully few prototypes,
2022 which can conflict with char $2 (); below.
2023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2024 <limits.h> exists even on freestanding compilers. */
2025
2026#ifdef __STDC__
2027# include <limits.h>
2028#else
2029# include <assert.h>
2030#endif
2031
2032#undef $2
2033
2034/* Override any GCC internal prototype to avoid an error.
2035 Use char because int might match the return type of a GCC
2036 builtin and then its argument prototype would still apply. */
2037#ifdef __cplusplus
2038extern "C"
2039#endif
2040char $2 ();
2041/* The GNU C library defines this for functions which it implements
2042 to always fail with ENOSYS. Some functions are actually named
2043 something starting with __ and the normal name is an alias. */
2044#if defined __stub_$2 || defined __stub___$2
2045choke me
2046#endif
2047
2048int
2049main ()
2050{
2051return $2 ();
2052 ;
2053 return 0;
2054}
2055_ACEOF
2056if ac_fn_cxx_try_link "$LINENO"; then :
2057 eval "$3=yes"
2058else
2059 eval "$3=no"
2060fi
2061rm -f core conftest.err conftest.$ac_objext \
2062 conftest$ac_exeext conftest.$ac_ext
2063fi
2064eval ac_res=\$$3
2065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2066$as_echo "$ac_res" >&6; }
2067 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2068
2069} # ac_fn_cxx_check_func
2070
2071# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2072# ---------------------------------------------
2073# Tests whether TYPE exists after having included INCLUDES, setting cache
2074# variable VAR accordingly.
2075ac_fn_cxx_check_type ()
2076{
2077 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2079$as_echo_n "checking for $2... " >&6; }
2080if eval \${$3+:} false; then :
2081 $as_echo_n "(cached) " >&6
2082else
2083 eval "$3=no"
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2098/* end confdefs.h. */
2099$4
2100int
2101main ()
2102{
2103if (sizeof (($2)))
2104 return 0;
2105 ;
2106 return 0;
2107}
2108_ACEOF
2109if ac_fn_cxx_try_compile "$LINENO"; then :
2110
2111else
2112 eval "$3=yes"
2113fi
2114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115fi
2116rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2117fi
2118eval ac_res=\$$3
2119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2120$as_echo "$ac_res" >&6; }
2121 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2122
2123} # ac_fn_cxx_check_type
2124
2125# ac_fn_c_find_intX_t LINENO BITS VAR
2126# -----------------------------------
2127# Finds a signed integer type with width BITS, setting cache variable VAR
2128# accordingly.
2129ac_fn_c_find_intX_t ()
2130{
2131 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2133$as_echo_n "checking for int$2_t... " >&6; }
2134if eval \${$3+:} false; then :
2135 $as_echo_n "(cached) " >&6
2136else
2137 eval "$3=no"
2138 # Order is important - never check a type that is potentially smaller
2139 # than half of the expected target width.
2140 for ac_type in int$2_t 'int' 'long int' \
2141 'long long int' 'short int' 'signed char'; do
2142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2143/* end confdefs.h. */
2144$ac_includes_default
2145 enum { N = $2 / 2 - 1 };
2146int
2147main ()
2148{
2149static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2150test_array [0] = 0
2151
2152 ;
2153 return 0;
2154}
2155_ACEOF
2156if ac_fn_cxx_try_compile "$LINENO"; then :
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158/* end confdefs.h. */
2159$ac_includes_default
2160 enum { N = $2 / 2 - 1 };
2161int
2162main ()
2163{
2164static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2165 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2166test_array [0] = 0
2167
2168 ;
2169 return 0;
2170}
2171_ACEOF
2172if ac_fn_cxx_try_compile "$LINENO"; then :
2173
2174else
2175 case $ac_type in #(
2176 int$2_t) :
2177 eval "$3=yes" ;; #(
2178 *) :
2179 eval "$3=\$ac_type" ;;
2180esac
2181fi
2182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2183fi
2184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2185 if eval test \"x\$"$3"\" = x"no"; then :
2186
2187else
2188 break
2189fi
2190 done
2191fi
2192eval ac_res=\$$3
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2194$as_echo "$ac_res" >&6; }
2195 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2196
2197} # ac_fn_c_find_intX_t
2198
2199# ac_fn_c_find_uintX_t LINENO BITS VAR
2200# ------------------------------------
2201# Finds an unsigned integer type with width BITS, setting cache variable VAR
2202# accordingly.
2203ac_fn_c_find_uintX_t ()
2204{
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2207$as_echo_n "checking for uint$2_t... " >&6; }
2208if eval \${$3+:} false; then :
2209 $as_echo_n "(cached) " >&6
2210else
2211 eval "$3=no"
2212 # Order is important - never check a type that is potentially smaller
2213 # than half of the expected target width.
2214 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2215 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217/* end confdefs.h. */
2218$ac_includes_default
2219int
2220main ()
2221{
2222static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2223test_array [0] = 0
2224
2225 ;
2226 return 0;
2227}
2228_ACEOF
2229if ac_fn_cxx_try_compile "$LINENO"; then :
2230 case $ac_type in #(
2231 uint$2_t) :
2232 eval "$3=yes" ;; #(
2233 *) :
2234 eval "$3=\$ac_type" ;;
2235esac
2236fi
2237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2238 if eval test \"x\$"$3"\" = x"no"; then :
2239
2240else
2241 break
2242fi
2243 done
2244fi
2245eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247$as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249
2250} # ac_fn_c_find_uintX_t
2251
2252# ac_fn_cxx_try_run LINENO
2253# ------------------------
2254# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2255# that executables *can* be run.
2256ac_fn_cxx_try_run ()
2257{
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 if { { ac_try="$ac_link"
2260case "(($ac_try" in
2261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2262 *) ac_try_echo=$ac_try;;
2263esac
2264eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2265$as_echo "$ac_try_echo"; } >&5
2266 (eval "$ac_link") 2>&5
2267 ac_status=$?
2268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2270 { { case "(($ac_try" in
2271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2272 *) ac_try_echo=$ac_try;;
2273esac
2274eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2275$as_echo "$ac_try_echo"; } >&5
2276 (eval "$ac_try") 2>&5
2277 ac_status=$?
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; }; }; then :
2280 ac_retval=0
2281else
2282 $as_echo "$as_me: program exited with status $ac_status" >&5
2283 $as_echo "$as_me: failed program was:" >&5
2284sed 's/^/| /' conftest.$ac_ext >&5
2285
2286 ac_retval=$ac_status
2287fi
2288 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2290 as_fn_set_status $ac_retval
2291
2292} # ac_fn_cxx_try_run
1461cat >config.log <<_ACEOF 2293cat >config.log <<_ACEOF
1462This file contains any messages produced by compilers while 2294This file contains any messages produced by compilers while
1463running configure, to aid debugging if configure makes a mistake. 2295running configure, to aid debugging if configure makes a mistake.
1464 2296
1465It was created by $as_me, which was 2297It was created by $as_me, which was
1466generated by GNU Autoconf 2.61. Invocation command line was 2298generated by GNU Autoconf 2.68. Invocation command line was
1467 2299
1468 $ $0 $@ 2300 $ $0 $@
1469 2301
1470_ACEOF 2302_ACEOF
1471exec 5>>config.log 2303exec 5>>config.log
1497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2329as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1498for as_dir in $PATH 2330for as_dir in $PATH
1499do 2331do
1500 IFS=$as_save_IFS 2332 IFS=$as_save_IFS
1501 test -z "$as_dir" && as_dir=. 2333 test -z "$as_dir" && as_dir=.
1502 echo "PATH: $as_dir" 2334 $as_echo "PATH: $as_dir"
1503done 2335 done
1504IFS=$as_save_IFS 2336IFS=$as_save_IFS
1505 2337
1506} >&5 2338} >&5
1507 2339
1508cat >&5 <<_ACEOF 2340cat >&5 <<_ACEOF
1532 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2364 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1533 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2365 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1534 | -silent | --silent | --silen | --sile | --sil) 2366 | -silent | --silent | --silen | --sile | --sil)
1535 continue ;; 2367 continue ;;
1536 *\'*) 2368 *\'*)
1537 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2369 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1538 esac 2370 esac
1539 case $ac_pass in 2371 case $ac_pass in
1540 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2372 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1541 2) 2373 2)
1542 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 2374 as_fn_append ac_configure_args1 " '$ac_arg'"
1543 if test $ac_must_keep_next = true; then 2375 if test $ac_must_keep_next = true; then
1544 ac_must_keep_next=false # Got value, back to normal. 2376 ac_must_keep_next=false # Got value, back to normal.
1545 else 2377 else
1546 case $ac_arg in 2378 case $ac_arg in
1547 *=* | --config-cache | -C | -disable-* | --disable-* \ 2379 *=* | --config-cache | -C | -disable-* | --disable-* \
1553 esac 2385 esac
1554 ;; 2386 ;;
1555 -* ) ac_must_keep_next=true ;; 2387 -* ) ac_must_keep_next=true ;;
1556 esac 2388 esac
1557 fi 2389 fi
1558 ac_configure_args="$ac_configure_args '$ac_arg'" 2390 as_fn_append ac_configure_args " '$ac_arg'"
1559 ;; 2391 ;;
1560 esac 2392 esac
1561 done 2393 done
1562done 2394done
1563$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 2395{ ac_configure_args0=; unset ac_configure_args0;}
1564$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 2396{ ac_configure_args1=; unset ac_configure_args1;}
1565 2397
1566# When interrupted or exit'd, cleanup temporary files, and complete 2398# When interrupted or exit'd, cleanup temporary files, and complete
1567# config.log. We remove comments because anyway the quotes in there 2399# config.log. We remove comments because anyway the quotes in there
1568# would cause problems or look ugly. 2400# would cause problems or look ugly.
1569# WARNING: Use '\'' to represent an apostrophe within the trap. 2401# WARNING: Use '\'' to represent an apostrophe within the trap.
1571trap 'exit_status=$? 2403trap 'exit_status=$?
1572 # Save into config.log some information that might help in debugging. 2404 # Save into config.log some information that might help in debugging.
1573 { 2405 {
1574 echo 2406 echo
1575 2407
1576 cat <<\_ASBOX
1577## ---------------- ## 2408 $as_echo "## ---------------- ##
1578## Cache variables. ## 2409## Cache variables. ##
1579## ---------------- ## 2410## ---------------- ##"
1580_ASBOX
1581 echo 2411 echo
1582 # The following way of writing the cache mishandles newlines in values, 2412 # The following way of writing the cache mishandles newlines in values,
1583( 2413(
1584 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2414 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1585 eval ac_val=\$$ac_var 2415 eval ac_val=\$$ac_var
1586 case $ac_val in #( 2416 case $ac_val in #(
1587 *${as_nl}*) 2417 *${as_nl}*)
1588 case $ac_var in #( 2418 case $ac_var in #(
1589 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 2419 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1590echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 2420$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1591 esac 2421 esac
1592 case $ac_var in #( 2422 case $ac_var in #(
1593 _ | IFS | as_nl) ;; #( 2423 _ | IFS | as_nl) ;; #(
1594 *) $as_unset $ac_var ;; 2424 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2425 *) { eval $ac_var=; unset $ac_var;} ;;
1595 esac ;; 2426 esac ;;
1596 esac 2427 esac
1597 done 2428 done
1598 (set) 2>&1 | 2429 (set) 2>&1 |
1599 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2430 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1608 esac | 2439 esac |
1609 sort 2440 sort
1610) 2441)
1611 echo 2442 echo
1612 2443
1613 cat <<\_ASBOX
1614## ----------------- ## 2444 $as_echo "## ----------------- ##
1615## Output variables. ## 2445## Output variables. ##
1616## ----------------- ## 2446## ----------------- ##"
1617_ASBOX
1618 echo 2447 echo
1619 for ac_var in $ac_subst_vars 2448 for ac_var in $ac_subst_vars
1620 do 2449 do
1621 eval ac_val=\$$ac_var 2450 eval ac_val=\$$ac_var
1622 case $ac_val in 2451 case $ac_val in
1623 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2452 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1624 esac 2453 esac
1625 echo "$ac_var='\''$ac_val'\''" 2454 $as_echo "$ac_var='\''$ac_val'\''"
1626 done | sort 2455 done | sort
1627 echo 2456 echo
1628 2457
1629 if test -n "$ac_subst_files"; then 2458 if test -n "$ac_subst_files"; then
1630 cat <<\_ASBOX
1631## ------------------- ## 2459 $as_echo "## ------------------- ##
1632## File substitutions. ## 2460## File substitutions. ##
1633## ------------------- ## 2461## ------------------- ##"
1634_ASBOX
1635 echo 2462 echo
1636 for ac_var in $ac_subst_files 2463 for ac_var in $ac_subst_files
1637 do 2464 do
1638 eval ac_val=\$$ac_var 2465 eval ac_val=\$$ac_var
1639 case $ac_val in 2466 case $ac_val in
1640 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2467 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1641 esac 2468 esac
1642 echo "$ac_var='\''$ac_val'\''" 2469 $as_echo "$ac_var='\''$ac_val'\''"
1643 done | sort 2470 done | sort
1644 echo 2471 echo
1645 fi 2472 fi
1646 2473
1647 if test -s confdefs.h; then 2474 if test -s confdefs.h; then
1648 cat <<\_ASBOX 2475 $as_echo "## ----------- ##
1649## ----------- ##
1650## confdefs.h. ## 2476## confdefs.h. ##
1651## ----------- ## 2477## ----------- ##"
1652_ASBOX
1653 echo 2478 echo
1654 cat confdefs.h 2479 cat confdefs.h
1655 echo 2480 echo
1656 fi 2481 fi
1657 test "$ac_signal" != 0 && 2482 test "$ac_signal" != 0 &&
1658 echo "$as_me: caught signal $ac_signal" 2483 $as_echo "$as_me: caught signal $ac_signal"
1659 echo "$as_me: exit $exit_status" 2484 $as_echo "$as_me: exit $exit_status"
1660 } >&5 2485 } >&5
1661 rm -f core *.core core.conftest.* && 2486 rm -f core *.core core.conftest.* &&
1662 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2487 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1663 exit $exit_status 2488 exit $exit_status
1664' 0 2489' 0
1665for ac_signal in 1 2 13 15; do 2490for ac_signal in 1 2 13 15; do
1666 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 2491 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1667done 2492done
1668ac_signal=0 2493ac_signal=0
1669 2494
1670# confdefs.h avoids OS command line length limits that DEFS can exceed. 2495# confdefs.h avoids OS command line length limits that DEFS can exceed.
1671rm -f -r conftest* confdefs.h 2496rm -f -r conftest* confdefs.h
1672 2497
2498$as_echo "/* confdefs.h */" > confdefs.h
2499
1673# Predefined preprocessor variables. 2500# Predefined preprocessor variables.
1674 2501
1675cat >>confdefs.h <<_ACEOF 2502cat >>confdefs.h <<_ACEOF
1676#define PACKAGE_NAME "$PACKAGE_NAME" 2503#define PACKAGE_NAME "$PACKAGE_NAME"
1677_ACEOF 2504_ACEOF
1678 2505
1679
1680cat >>confdefs.h <<_ACEOF 2506cat >>confdefs.h <<_ACEOF
1681#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2507#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1682_ACEOF 2508_ACEOF
1683 2509
1684
1685cat >>confdefs.h <<_ACEOF 2510cat >>confdefs.h <<_ACEOF
1686#define PACKAGE_VERSION "$PACKAGE_VERSION" 2511#define PACKAGE_VERSION "$PACKAGE_VERSION"
1687_ACEOF 2512_ACEOF
1688 2513
1689
1690cat >>confdefs.h <<_ACEOF 2514cat >>confdefs.h <<_ACEOF
1691#define PACKAGE_STRING "$PACKAGE_STRING" 2515#define PACKAGE_STRING "$PACKAGE_STRING"
1692_ACEOF 2516_ACEOF
1693 2517
1694
1695cat >>confdefs.h <<_ACEOF 2518cat >>confdefs.h <<_ACEOF
1696#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2519#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1697_ACEOF 2520_ACEOF
1698 2521
2522cat >>confdefs.h <<_ACEOF
2523#define PACKAGE_URL "$PACKAGE_URL"
2524_ACEOF
2525
1699 2526
1700# Let the site file select an alternate cache file if it wants to. 2527# Let the site file select an alternate cache file if it wants to.
1701# Prefer explicitly selected file to automatically selected ones. 2528# Prefer an explicitly selected file to automatically selected ones.
2529ac_site_file1=NONE
2530ac_site_file2=NONE
1702if test -n "$CONFIG_SITE"; then 2531if test -n "$CONFIG_SITE"; then
1703 set x "$CONFIG_SITE" 2532 # We do not want a PATH search for config.site.
2533 case $CONFIG_SITE in #((
2534 -*) ac_site_file1=./$CONFIG_SITE;;
2535 */*) ac_site_file1=$CONFIG_SITE;;
2536 *) ac_site_file1=./$CONFIG_SITE;;
2537 esac
1704elif test "x$prefix" != xNONE; then 2538elif test "x$prefix" != xNONE; then
1705 set x "$prefix/share/config.site" "$prefix/etc/config.site" 2539 ac_site_file1=$prefix/share/config.site
2540 ac_site_file2=$prefix/etc/config.site
1706else 2541else
1707 set x "$ac_default_prefix/share/config.site" \ 2542 ac_site_file1=$ac_default_prefix/share/config.site
1708 "$ac_default_prefix/etc/config.site" 2543 ac_site_file2=$ac_default_prefix/etc/config.site
1709fi 2544fi
1710shift 2545for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1711for ac_site_file
1712do 2546do
1713 if test -r "$ac_site_file"; then 2547 test "x$ac_site_file" = xNONE && continue
2548 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1714 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 2549 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1715echo "$as_me: loading site script $ac_site_file" >&6;} 2550$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1716 sed 's/^/| /' "$ac_site_file" >&5 2551 sed 's/^/| /' "$ac_site_file" >&5
1717 . "$ac_site_file" 2552 . "$ac_site_file" \
2553 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2554$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2555as_fn_error $? "failed to load site script $ac_site_file
2556See \`config.log' for more details" "$LINENO" 5; }
1718 fi 2557 fi
1719done 2558done
1720 2559
1721if test -r "$cache_file"; then 2560if test -r "$cache_file"; then
1722 # Some versions of bash will fail to source /dev/null (special 2561 # Some versions of bash will fail to source /dev/null (special files
1723 # files actually), so we avoid doing that. 2562 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1724 if test -f "$cache_file"; then 2563 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1725 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1726echo "$as_me: loading cache $cache_file" >&6;} 2565$as_echo "$as_me: loading cache $cache_file" >&6;}
1727 case $cache_file in 2566 case $cache_file in
1728 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2567 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1729 *) . "./$cache_file";; 2568 *) . "./$cache_file";;
1730 esac 2569 esac
1731 fi 2570 fi
1732else 2571else
1733 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1734echo "$as_me: creating cache $cache_file" >&6;} 2573$as_echo "$as_me: creating cache $cache_file" >&6;}
1735 >$cache_file 2574 >$cache_file
1736fi 2575fi
1737 2576
1738# Check that the precious variables saved in the cache have kept the same 2577# Check that the precious variables saved in the cache have kept the same
1739# value. 2578# value.
1743 eval ac_new_set=\$ac_env_${ac_var}_set 2582 eval ac_new_set=\$ac_env_${ac_var}_set
1744 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2583 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1745 eval ac_new_val=\$ac_env_${ac_var}_value 2584 eval ac_new_val=\$ac_env_${ac_var}_value
1746 case $ac_old_set,$ac_new_set in 2585 case $ac_old_set,$ac_new_set in
1747 set,) 2586 set,)
1748 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2587 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1749echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2588$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1750 ac_cache_corrupted=: ;; 2589 ac_cache_corrupted=: ;;
1751 ,set) 2590 ,set)
1752 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2591 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1753echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2592$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1754 ac_cache_corrupted=: ;; 2593 ac_cache_corrupted=: ;;
1755 ,);; 2594 ,);;
1756 *) 2595 *)
1757 if test "x$ac_old_val" != "x$ac_new_val"; then 2596 if test "x$ac_old_val" != "x$ac_new_val"; then
2597 # differences in whitespace do not lead to failure.
2598 ac_old_val_w=`echo x $ac_old_val`
2599 ac_new_val_w=`echo x $ac_new_val`
2600 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1758 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1759echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2602$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1760 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1761echo "$as_me: former value: $ac_old_val" >&2;}
1762 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1763echo "$as_me: current value: $ac_new_val" >&2;}
1764 ac_cache_corrupted=: 2603 ac_cache_corrupted=:
2604 else
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2606$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2607 eval $ac_var=\$ac_old_val
2608 fi
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2610$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2612$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1765 fi;; 2613 fi;;
1766 esac 2614 esac
1767 # Pass precious variables to config.status. 2615 # Pass precious variables to config.status.
1768 if test "$ac_new_set" = set; then 2616 if test "$ac_new_set" = set; then
1769 case $ac_new_val in 2617 case $ac_new_val in
1770 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2618 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1771 *) ac_arg=$ac_var=$ac_new_val ;; 2619 *) ac_arg=$ac_var=$ac_new_val ;;
1772 esac 2620 esac
1773 case " $ac_configure_args " in 2621 case " $ac_configure_args " in
1774 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2622 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1775 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2623 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1776 esac 2624 esac
1777 fi 2625 fi
1778done 2626done
1779if $ac_cache_corrupted; then 2627if $ac_cache_corrupted; then
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2629$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1780 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1781echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2631$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1782 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1783echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2632 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1784 { (exit 1); exit 1; }; }
1785fi 2633fi
1786 2634## -------------------- ##
1787 2635## Main body of script. ##
1788 2636## -------------------- ##
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802 2637
1803ac_ext=c 2638ac_ext=c
1804ac_cpp='$CPP $CPPFLAGS' 2639ac_cpp='$CPP $CPPFLAGS'
1805ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2640ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2641ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_install_sh="$ac_aux_dir/shtool install -c" 2662 ac_install_sh="$ac_aux_dir/shtool install -c"
1828 break 2663 break
1829 fi 2664 fi
1830done 2665done
1831if test -z "$ac_aux_dir"; then 2666if test -z "$ac_aux_dir"; then
1832 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1833echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} 2667 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1834 { (exit 1); exit 1; }; }
1835fi 2668fi
1836 2669
1837# These three variables are undocumented and unsupported, 2670# These three variables are undocumented and unsupported,
1838# and are intended to be withdrawn in a future Autoconf release. 2671# and are intended to be withdrawn in a future Autoconf release.
1839# They can cause serious problems if a builder's source tree is in a directory 2672# They can cause serious problems if a builder's source tree is in a directory
1843ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2676ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1844 2677
1845 2678
1846# Make sure we can run config.sub. 2679# Make sure we can run config.sub.
1847$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2680$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1848 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 2681 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1849echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1850 { (exit 1); exit 1; }; }
1851 2682
1852{ echo "$as_me:$LINENO: checking build system type" >&5 2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1853echo $ECHO_N "checking build system type... $ECHO_C" >&6; } 2684$as_echo_n "checking build system type... " >&6; }
1854if test "${ac_cv_build+set}" = set; then 2685if ${ac_cv_build+:} false; then :
1855 echo $ECHO_N "(cached) $ECHO_C" >&6 2686 $as_echo_n "(cached) " >&6
1856else 2687else
1857 ac_build_alias=$build_alias 2688 ac_build_alias=$build_alias
1858test "x$ac_build_alias" = x && 2689test "x$ac_build_alias" = x &&
1859 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2690 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1860test "x$ac_build_alias" = x && 2691test "x$ac_build_alias" = x &&
1861 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2692 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1862echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1863 { (exit 1); exit 1; }; }
1864ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2693ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1865 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1866echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 2694 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1867 { (exit 1); exit 1; }; }
1868 2695
1869fi 2696fi
1870{ echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1871echo "${ECHO_T}$ac_cv_build" >&6; } 2698$as_echo "$ac_cv_build" >&6; }
1872case $ac_cv_build in 2699case $ac_cv_build in
1873*-*-*) ;; 2700*-*-*) ;;
1874*) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 2701*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
1875echo "$as_me: error: invalid value of canonical build" >&2;}
1876 { (exit 1); exit 1; }; };;
1877esac 2702esac
1878build=$ac_cv_build 2703build=$ac_cv_build
1879ac_save_IFS=$IFS; IFS='-' 2704ac_save_IFS=$IFS; IFS='-'
1880set x $ac_cv_build 2705set x $ac_cv_build
1881shift 2706shift
1887build_os=$* 2712build_os=$*
1888IFS=$ac_save_IFS 2713IFS=$ac_save_IFS
1889case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2714case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1890 2715
1891 2716
1892{ echo "$as_me:$LINENO: checking host system type" >&5 2717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1893echo $ECHO_N "checking host system type... $ECHO_C" >&6; } 2718$as_echo_n "checking host system type... " >&6; }
1894if test "${ac_cv_host+set}" = set; then 2719if ${ac_cv_host+:} false; then :
1895 echo $ECHO_N "(cached) $ECHO_C" >&6 2720 $as_echo_n "(cached) " >&6
1896else 2721else
1897 if test "x$host_alias" = x; then 2722 if test "x$host_alias" = x; then
1898 ac_cv_host=$ac_cv_build 2723 ac_cv_host=$ac_cv_build
1899else 2724else
1900 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2725 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1901 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 2726 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1902echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
1903 { (exit 1); exit 1; }; }
1904fi 2727fi
1905 2728
1906fi 2729fi
1907{ echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1908echo "${ECHO_T}$ac_cv_host" >&6; } 2731$as_echo "$ac_cv_host" >&6; }
1909case $ac_cv_host in 2732case $ac_cv_host in
1910*-*-*) ;; 2733*-*-*) ;;
1911*) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 2734*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
1912echo "$as_me: error: invalid value of canonical host" >&2;}
1913 { (exit 1); exit 1; }; };;
1914esac 2735esac
1915host=$ac_cv_host 2736host=$ac_cv_host
1916ac_save_IFS=$IFS; IFS='-' 2737ac_save_IFS=$IFS; IFS='-'
1917set x $ac_cv_host 2738set x $ac_cv_host
1918shift 2739shift
1927 2748
1928 2749
1929 2750
1930VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2751VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1931DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2752DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2753
1932echo "" 2754echo ""
1933echo "configuring for rxvt $VERSION" 2755echo "configuring for rxvt $VERSION"
1934echo "" 2756echo ""
1935 2757
1936orig_CXXFLAGS="$CXXFLAGS" 2758orig_CXXFLAGS="$CXXFLAGS"
1937
1938 2759
1939ac_ext=c 2760ac_ext=c
1940ac_cpp='$CPP $CPPFLAGS' 2761ac_cpp='$CPP $CPPFLAGS'
1941ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2762ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1942ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2763ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1943ac_compiler_gnu=$ac_cv_c_compiler_gnu 2764ac_compiler_gnu=$ac_cv_c_compiler_gnu
1944if test -n "$ac_tool_prefix"; then 2765if test -n "$ac_tool_prefix"; then
1945 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2766 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1946set dummy ${ac_tool_prefix}gcc; ac_word=$2 2767set dummy ${ac_tool_prefix}gcc; ac_word=$2
1947{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1948echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2769$as_echo_n "checking for $ac_word... " >&6; }
1949if test "${ac_cv_prog_CC+set}" = set; then 2770if ${ac_cv_prog_CC+:} false; then :
1950 echo $ECHO_N "(cached) $ECHO_C" >&6 2771 $as_echo_n "(cached) " >&6
1951else 2772else
1952 if test -n "$CC"; then 2773 if test -n "$CC"; then
1953 ac_cv_prog_CC="$CC" # Let the user override the test. 2774 ac_cv_prog_CC="$CC" # Let the user override the test.
1954else 2775else
1955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2776as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1956for as_dir in $PATH 2777for as_dir in $PATH
1957do 2778do
1958 IFS=$as_save_IFS 2779 IFS=$as_save_IFS
1959 test -z "$as_dir" && as_dir=. 2780 test -z "$as_dir" && as_dir=.
1960 for ac_exec_ext in '' $ac_executable_extensions; do 2781 for ac_exec_ext in '' $ac_executable_extensions; do
1961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
1962 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2783 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1963 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1964 break 2 2785 break 2
1965 fi 2786 fi
1966done 2787done
1967done 2788 done
1968IFS=$as_save_IFS 2789IFS=$as_save_IFS
1969 2790
1970fi 2791fi
1971fi 2792fi
1972CC=$ac_cv_prog_CC 2793CC=$ac_cv_prog_CC
1973if test -n "$CC"; then 2794if test -n "$CC"; then
1974 { echo "$as_me:$LINENO: result: $CC" >&5 2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1975echo "${ECHO_T}$CC" >&6; } 2796$as_echo "$CC" >&6; }
1976else 2797else
1977 { echo "$as_me:$LINENO: result: no" >&5 2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1978echo "${ECHO_T}no" >&6; } 2799$as_echo "no" >&6; }
1979fi 2800fi
1980 2801
1981 2802
1982fi 2803fi
1983if test -z "$ac_cv_prog_CC"; then 2804if test -z "$ac_cv_prog_CC"; then
1984 ac_ct_CC=$CC 2805 ac_ct_CC=$CC
1985 # Extract the first word of "gcc", so it can be a program name with args. 2806 # Extract the first word of "gcc", so it can be a program name with args.
1986set dummy gcc; ac_word=$2 2807set dummy gcc; ac_word=$2
1987{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1988echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2809$as_echo_n "checking for $ac_word... " >&6; }
1989if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2810if ${ac_cv_prog_ac_ct_CC+:} false; then :
1990 echo $ECHO_N "(cached) $ECHO_C" >&6 2811 $as_echo_n "(cached) " >&6
1991else 2812else
1992 if test -n "$ac_ct_CC"; then 2813 if test -n "$ac_ct_CC"; then
1993 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2814 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1994else 2815else
1995as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2816as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1996for as_dir in $PATH 2817for as_dir in $PATH
1997do 2818do
1998 IFS=$as_save_IFS 2819 IFS=$as_save_IFS
1999 test -z "$as_dir" && as_dir=. 2820 test -z "$as_dir" && as_dir=.
2000 for ac_exec_ext in '' $ac_executable_extensions; do 2821 for ac_exec_ext in '' $ac_executable_extensions; do
2001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2002 ac_cv_prog_ac_ct_CC="gcc" 2823 ac_cv_prog_ac_ct_CC="gcc"
2003 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2004 break 2 2825 break 2
2005 fi 2826 fi
2006done 2827done
2007done 2828 done
2008IFS=$as_save_IFS 2829IFS=$as_save_IFS
2009 2830
2010fi 2831fi
2011fi 2832fi
2012ac_ct_CC=$ac_cv_prog_ac_ct_CC 2833ac_ct_CC=$ac_cv_prog_ac_ct_CC
2013if test -n "$ac_ct_CC"; then 2834if test -n "$ac_ct_CC"; then
2014 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2015echo "${ECHO_T}$ac_ct_CC" >&6; } 2836$as_echo "$ac_ct_CC" >&6; }
2016else 2837else
2017 { echo "$as_me:$LINENO: result: no" >&5 2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2018echo "${ECHO_T}no" >&6; } 2839$as_echo "no" >&6; }
2019fi 2840fi
2020 2841
2021 if test "x$ac_ct_CC" = x; then 2842 if test "x$ac_ct_CC" = x; then
2022 CC="" 2843 CC=""
2023 else 2844 else
2024 case $cross_compiling:$ac_tool_warned in 2845 case $cross_compiling:$ac_tool_warned in
2025yes:) 2846yes:)
2026{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 2847{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2027whose name does not start with the host triplet. If you think this 2848$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2028configuration is useful to you, please write to autoconf@gnu.org." >&5
2029echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2030whose name does not start with the host triplet. If you think this
2031configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2032ac_tool_warned=yes ;; 2849ac_tool_warned=yes ;;
2033esac 2850esac
2034 CC=$ac_ct_CC 2851 CC=$ac_ct_CC
2035 fi 2852 fi
2036else 2853else
2039 2856
2040if test -z "$CC"; then 2857if test -z "$CC"; then
2041 if test -n "$ac_tool_prefix"; then 2858 if test -n "$ac_tool_prefix"; then
2042 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2859 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2043set dummy ${ac_tool_prefix}cc; ac_word=$2 2860set dummy ${ac_tool_prefix}cc; ac_word=$2
2044{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2045echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2862$as_echo_n "checking for $ac_word... " >&6; }
2046if test "${ac_cv_prog_CC+set}" = set; then 2863if ${ac_cv_prog_CC+:} false; then :
2047 echo $ECHO_N "(cached) $ECHO_C" >&6 2864 $as_echo_n "(cached) " >&6
2048else 2865else
2049 if test -n "$CC"; then 2866 if test -n "$CC"; then
2050 ac_cv_prog_CC="$CC" # Let the user override the test. 2867 ac_cv_prog_CC="$CC" # Let the user override the test.
2051else 2868else
2052as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2053for as_dir in $PATH 2870for as_dir in $PATH
2054do 2871do
2055 IFS=$as_save_IFS 2872 IFS=$as_save_IFS
2056 test -z "$as_dir" && as_dir=. 2873 test -z "$as_dir" && as_dir=.
2057 for ac_exec_ext in '' $ac_executable_extensions; do 2874 for ac_exec_ext in '' $ac_executable_extensions; do
2058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2059 ac_cv_prog_CC="${ac_tool_prefix}cc" 2876 ac_cv_prog_CC="${ac_tool_prefix}cc"
2060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2061 break 2 2878 break 2
2062 fi 2879 fi
2063done 2880done
2064done 2881 done
2065IFS=$as_save_IFS 2882IFS=$as_save_IFS
2066 2883
2067fi 2884fi
2068fi 2885fi
2069CC=$ac_cv_prog_CC 2886CC=$ac_cv_prog_CC
2070if test -n "$CC"; then 2887if test -n "$CC"; then
2071 { echo "$as_me:$LINENO: result: $CC" >&5 2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2072echo "${ECHO_T}$CC" >&6; } 2889$as_echo "$CC" >&6; }
2073else 2890else
2074 { echo "$as_me:$LINENO: result: no" >&5 2891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2075echo "${ECHO_T}no" >&6; } 2892$as_echo "no" >&6; }
2076fi 2893fi
2077 2894
2078 2895
2079 fi 2896 fi
2080fi 2897fi
2081if test -z "$CC"; then 2898if test -z "$CC"; then
2082 # Extract the first word of "cc", so it can be a program name with args. 2899 # Extract the first word of "cc", so it can be a program name with args.
2083set dummy cc; ac_word=$2 2900set dummy cc; ac_word=$2
2084{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2085echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2902$as_echo_n "checking for $ac_word... " >&6; }
2086if test "${ac_cv_prog_CC+set}" = set; then 2903if ${ac_cv_prog_CC+:} false; then :
2087 echo $ECHO_N "(cached) $ECHO_C" >&6 2904 $as_echo_n "(cached) " >&6
2088else 2905else
2089 if test -n "$CC"; then 2906 if test -n "$CC"; then
2090 ac_cv_prog_CC="$CC" # Let the user override the test. 2907 ac_cv_prog_CC="$CC" # Let the user override the test.
2091else 2908else
2092 ac_prog_rejected=no 2909 ac_prog_rejected=no
2093as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2910as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2094for as_dir in $PATH 2911for as_dir in $PATH
2095do 2912do
2096 IFS=$as_save_IFS 2913 IFS=$as_save_IFS
2097 test -z "$as_dir" && as_dir=. 2914 test -z "$as_dir" && as_dir=.
2098 for ac_exec_ext in '' $ac_executable_extensions; do 2915 for ac_exec_ext in '' $ac_executable_extensions; do
2099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2100 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2917 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2101 ac_prog_rejected=yes 2918 ac_prog_rejected=yes
2102 continue 2919 continue
2103 fi 2920 fi
2104 ac_cv_prog_CC="cc" 2921 ac_cv_prog_CC="cc"
2105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2106 break 2 2923 break 2
2107 fi 2924 fi
2108done 2925done
2109done 2926 done
2110IFS=$as_save_IFS 2927IFS=$as_save_IFS
2111 2928
2112if test $ac_prog_rejected = yes; then 2929if test $ac_prog_rejected = yes; then
2113 # We found a bogon in the path, so make sure we never use it. 2930 # We found a bogon in the path, so make sure we never use it.
2114 set dummy $ac_cv_prog_CC 2931 set dummy $ac_cv_prog_CC
2123fi 2940fi
2124fi 2941fi
2125fi 2942fi
2126CC=$ac_cv_prog_CC 2943CC=$ac_cv_prog_CC
2127if test -n "$CC"; then 2944if test -n "$CC"; then
2128 { echo "$as_me:$LINENO: result: $CC" >&5 2945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2129echo "${ECHO_T}$CC" >&6; } 2946$as_echo "$CC" >&6; }
2130else 2947else
2131 { echo "$as_me:$LINENO: result: no" >&5 2948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2132echo "${ECHO_T}no" >&6; } 2949$as_echo "no" >&6; }
2133fi 2950fi
2134 2951
2135 2952
2136fi 2953fi
2137if test -z "$CC"; then 2954if test -z "$CC"; then
2138 if test -n "$ac_tool_prefix"; then 2955 if test -n "$ac_tool_prefix"; then
2139 for ac_prog in cl.exe 2956 for ac_prog in cl.exe
2140 do 2957 do
2141 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2958 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2142set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2959set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2143{ echo "$as_me:$LINENO: checking for $ac_word" >&5 2960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2144echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 2961$as_echo_n "checking for $ac_word... " >&6; }
2145if test "${ac_cv_prog_CC+set}" = set; then 2962if ${ac_cv_prog_CC+:} false; then :
2146 echo $ECHO_N "(cached) $ECHO_C" >&6 2963 $as_echo_n "(cached) " >&6
2147else 2964else
2148 if test -n "$CC"; then 2965 if test -n "$CC"; then
2149 ac_cv_prog_CC="$CC" # Let the user override the test. 2966 ac_cv_prog_CC="$CC" # Let the user override the test.
2150else 2967else
2151as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2152for as_dir in $PATH 2969for as_dir in $PATH
2153do 2970do
2154 IFS=$as_save_IFS 2971 IFS=$as_save_IFS
2155 test -z "$as_dir" && as_dir=. 2972 test -z "$as_dir" && as_dir=.
2156 for ac_exec_ext in '' $ac_executable_extensions; do 2973 for ac_exec_ext in '' $ac_executable_extensions; do
2157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2158 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2975 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2160 break 2 2977 break 2
2161 fi 2978 fi
2162done 2979done
2163done 2980 done
2164IFS=$as_save_IFS 2981IFS=$as_save_IFS
2165 2982
2166fi 2983fi
2167fi 2984fi
2168CC=$ac_cv_prog_CC 2985CC=$ac_cv_prog_CC
2169if test -n "$CC"; then 2986if test -n "$CC"; then
2170 { echo "$as_me:$LINENO: result: $CC" >&5 2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2171echo "${ECHO_T}$CC" >&6; } 2988$as_echo "$CC" >&6; }
2172else 2989else
2173 { echo "$as_me:$LINENO: result: no" >&5 2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2174echo "${ECHO_T}no" >&6; } 2991$as_echo "no" >&6; }
2175fi 2992fi
2176 2993
2177 2994
2178 test -n "$CC" && break 2995 test -n "$CC" && break
2179 done 2996 done
2182 ac_ct_CC=$CC 2999 ac_ct_CC=$CC
2183 for ac_prog in cl.exe 3000 for ac_prog in cl.exe
2184do 3001do
2185 # Extract the first word of "$ac_prog", so it can be a program name with args. 3002 # Extract the first word of "$ac_prog", so it can be a program name with args.
2186set dummy $ac_prog; ac_word=$2 3003set dummy $ac_prog; ac_word=$2
2187{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2188echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3005$as_echo_n "checking for $ac_word... " >&6; }
2189if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3006if ${ac_cv_prog_ac_ct_CC+:} false; then :
2190 echo $ECHO_N "(cached) $ECHO_C" >&6 3007 $as_echo_n "(cached) " >&6
2191else 3008else
2192 if test -n "$ac_ct_CC"; then 3009 if test -n "$ac_ct_CC"; then
2193 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3010 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2194else 3011else
2195as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2196for as_dir in $PATH 3013for as_dir in $PATH
2197do 3014do
2198 IFS=$as_save_IFS 3015 IFS=$as_save_IFS
2199 test -z "$as_dir" && as_dir=. 3016 test -z "$as_dir" && as_dir=.
2200 for ac_exec_ext in '' $ac_executable_extensions; do 3017 for ac_exec_ext in '' $ac_executable_extensions; do
2201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2202 ac_cv_prog_ac_ct_CC="$ac_prog" 3019 ac_cv_prog_ac_ct_CC="$ac_prog"
2203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2204 break 2 3021 break 2
2205 fi 3022 fi
2206done 3023done
2207done 3024 done
2208IFS=$as_save_IFS 3025IFS=$as_save_IFS
2209 3026
2210fi 3027fi
2211fi 3028fi
2212ac_ct_CC=$ac_cv_prog_ac_ct_CC 3029ac_ct_CC=$ac_cv_prog_ac_ct_CC
2213if test -n "$ac_ct_CC"; then 3030if test -n "$ac_ct_CC"; then
2214 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2215echo "${ECHO_T}$ac_ct_CC" >&6; } 3032$as_echo "$ac_ct_CC" >&6; }
2216else 3033else
2217 { echo "$as_me:$LINENO: result: no" >&5 3034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2218echo "${ECHO_T}no" >&6; } 3035$as_echo "no" >&6; }
2219fi 3036fi
2220 3037
2221 3038
2222 test -n "$ac_ct_CC" && break 3039 test -n "$ac_ct_CC" && break
2223done 3040done
2225 if test "x$ac_ct_CC" = x; then 3042 if test "x$ac_ct_CC" = x; then
2226 CC="" 3043 CC=""
2227 else 3044 else
2228 case $cross_compiling:$ac_tool_warned in 3045 case $cross_compiling:$ac_tool_warned in
2229yes:) 3046yes:)
2230{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2231whose name does not start with the host triplet. If you think this 3048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2232configuration is useful to you, please write to autoconf@gnu.org." >&5
2233echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2234whose name does not start with the host triplet. If you think this
2235configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2236ac_tool_warned=yes ;; 3049ac_tool_warned=yes ;;
2237esac 3050esac
2238 CC=$ac_ct_CC 3051 CC=$ac_ct_CC
2239 fi 3052 fi
2240fi 3053fi
2241 3054
2242fi 3055fi
2243 3056
2244 3057
2245test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3058test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2246See \`config.log' for more details." >&5 3059$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2247echo "$as_me: error: no acceptable C compiler found in \$PATH 3060as_fn_error $? "no acceptable C compiler found in \$PATH
2248See \`config.log' for more details." >&2;} 3061See \`config.log' for more details" "$LINENO" 5; }
2249 { (exit 1); exit 1; }; }
2250 3062
2251# Provide some information about the compiler. 3063# Provide some information about the compiler.
2252echo "$as_me:$LINENO: checking for C compiler version" >&5 3064$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2253ac_compiler=`set X $ac_compile; echo $2` 3065set X $ac_compile
3066ac_compiler=$2
3067for ac_option in --version -v -V -qversion; do
2254{ (ac_try="$ac_compiler --version >&5" 3068 { { ac_try="$ac_compiler $ac_option >&5"
2255case "(($ac_try" in 3069case "(($ac_try" in
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;; 3071 *) ac_try_echo=$ac_try;;
2258esac 3072esac
2259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3073eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2260 (eval "$ac_compiler --version >&5") 2>&5 3074$as_echo "$ac_try_echo"; } >&5
3075 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2261 ac_status=$? 3076 ac_status=$?
3077 if test -s conftest.err; then
3078 sed '10a\
3079... rest of stderr output deleted ...
3080 10q' conftest.err >conftest.er1
3081 cat conftest.er1 >&5
3082 fi
3083 rm -f conftest.er1 conftest.err
2262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 (exit $ac_status); } 3085 test $ac_status = 0; }
2264{ (ac_try="$ac_compiler -v >&5" 3086done
3087
3088cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089/* end confdefs.h. */
3090
3091int
3092main ()
3093{
3094
3095 ;
3096 return 0;
3097}
3098_ACEOF
3099ac_clean_files_save=$ac_clean_files
3100ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3101# Try to create an executable without -o first, disregard a.out.
3102# It will help us diagnose broken compilers, and finding out an intuition
3103# of exeext.
3104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3105$as_echo_n "checking whether the C compiler works... " >&6; }
3106ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3107
3108# The possible output files:
3109ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3110
3111ac_rmfiles=
3112for ac_file in $ac_files
3113do
3114 case $ac_file in
3115 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3116 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3117 esac
3118done
3119rm -f $ac_rmfiles
3120
3121if { { ac_try="$ac_link_default"
2265case "(($ac_try" in 3122case "(($ac_try" in
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;; 3124 *) ac_try_echo=$ac_try;;
2268esac 3125esac
2269eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3126eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 (eval "$ac_compiler -v >&5") 2>&5 3127$as_echo "$ac_try_echo"; } >&5
2271 ac_status=$?
2272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2273 (exit $ac_status); }
2274{ (ac_try="$ac_compiler -V >&5"
2275case "(($ac_try" in
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2278esac
2279eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2280 (eval "$ac_compiler -V >&5") 2>&5
2281 ac_status=$?
2282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2283 (exit $ac_status); }
2284
2285cat >conftest.$ac_ext <<_ACEOF
2286/* confdefs.h. */
2287_ACEOF
2288cat confdefs.h >>conftest.$ac_ext
2289cat >>conftest.$ac_ext <<_ACEOF
2290/* end confdefs.h. */
2291
2292int
2293main ()
2294{
2295
2296 ;
2297 return 0;
2298}
2299_ACEOF
2300ac_clean_files_save=$ac_clean_files
2301ac_clean_files="$ac_clean_files a.out a.exe b.out"
2302# Try to create an executable without -o first, disregard a.out.
2303# It will help us diagnose broken compilers, and finding out an intuition
2304# of exeext.
2305{ echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2306echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2307ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2308#
2309# List of possible output files, starting from the most likely.
2310# The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2311# only as a last resort. b.out is created by i960 compilers.
2312ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2313#
2314# The IRIX 6 linker writes into existing files which may not be
2315# executable, retaining their permissions. Remove them first so a
2316# subsequent execution test works.
2317ac_rmfiles=
2318for ac_file in $ac_files
2319do
2320 case $ac_file in
2321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2322 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2323 esac
2324done
2325rm -f $ac_rmfiles
2326
2327if { (ac_try="$ac_link_default"
2328case "(($ac_try" in
2329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2330 *) ac_try_echo=$ac_try;;
2331esac
2332eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2333 (eval "$ac_link_default") 2>&5 3128 (eval "$ac_link_default") 2>&5
2334 ac_status=$? 3129 ac_status=$?
2335 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2336 (exit $ac_status); }; then 3131 test $ac_status = 0; }; then :
2337 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3132 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2338# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3133# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2339# in a Makefile. We should not override ac_cv_exeext if it was cached, 3134# in a Makefile. We should not override ac_cv_exeext if it was cached,
2340# so that the user can short-circuit this test for compilers unknown to 3135# so that the user can short-circuit this test for compilers unknown to
2341# Autoconf. 3136# Autoconf.
2342for ac_file in $ac_files '' 3137for ac_file in $ac_files ''
2343do 3138do
2344 test -f "$ac_file" || continue 3139 test -f "$ac_file" || continue
2345 case $ac_file in 3140 case $ac_file in
2346 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) 3141 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2347 ;; 3142 ;;
2348 [ab].out ) 3143 [ab].out )
2349 # We found the default executable, but exeext='' is most 3144 # We found the default executable, but exeext='' is most
2350 # certainly right. 3145 # certainly right.
2351 break;; 3146 break;;
2352 *.* ) 3147 *.* )
2353 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3148 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2354 then :; else 3149 then :; else
2355 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3150 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2356 fi 3151 fi
2357 # We set ac_cv_exeext here because the later test for it is not 3152 # We set ac_cv_exeext here because the later test for it is not
2358 # safe: cross compilers may not add the suffix if given an `-o' 3153 # safe: cross compilers may not add the suffix if given an `-o'
2367test "$ac_cv_exeext" = no && ac_cv_exeext= 3162test "$ac_cv_exeext" = no && ac_cv_exeext=
2368 3163
2369else 3164else
2370 ac_file='' 3165 ac_file=''
2371fi 3166fi
2372
2373{ echo "$as_me:$LINENO: result: $ac_file" >&5
2374echo "${ECHO_T}$ac_file" >&6; }
2375if test -z "$ac_file"; then 3167if test -z "$ac_file"; then :
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169$as_echo "no" >&6; }
2376 echo "$as_me: failed program was:" >&5 3170$as_echo "$as_me: failed program was:" >&5
2377sed 's/^/| /' conftest.$ac_ext >&5 3171sed 's/^/| /' conftest.$ac_ext >&5
2378 3172
2379{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3173{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2380See \`config.log' for more details." >&5 3174$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2381echo "$as_me: error: C compiler cannot create executables 3175as_fn_error 77 "C compiler cannot create executables
2382See \`config.log' for more details." >&2;} 3176See \`config.log' for more details" "$LINENO" 5; }
2383 { (exit 77); exit 77; }; } 3177else
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3179$as_echo "yes" >&6; }
2384fi 3180fi
2385 3181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3182$as_echo_n "checking for C compiler default output file name... " >&6; }
3183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3184$as_echo "$ac_file" >&6; }
2386ac_exeext=$ac_cv_exeext 3185ac_exeext=$ac_cv_exeext
2387 3186
2388# Check that the compiler produces executables we can run. If not, either
2389# the compiler is broken, or we cross compile.
2390{ echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2391echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2392# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2393# If not cross compiling, check that we can run a simple program.
2394if test "$cross_compiling" != yes; then
2395 if { ac_try='./$ac_file'
2396 { (case "(($ac_try" in
2397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2398 *) ac_try_echo=$ac_try;;
2399esac
2400eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2401 (eval "$ac_try") 2>&5
2402 ac_status=$?
2403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2404 (exit $ac_status); }; }; then
2405 cross_compiling=no
2406 else
2407 if test "$cross_compiling" = maybe; then
2408 cross_compiling=yes
2409 else
2410 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2411If you meant to cross compile, use \`--host'.
2412See \`config.log' for more details." >&5
2413echo "$as_me: error: cannot run C compiled programs.
2414If you meant to cross compile, use \`--host'.
2415See \`config.log' for more details." >&2;}
2416 { (exit 1); exit 1; }; }
2417 fi
2418 fi
2419fi
2420{ echo "$as_me:$LINENO: result: yes" >&5
2421echo "${ECHO_T}yes" >&6; }
2422
2423rm -f a.out a.exe conftest$ac_cv_exeext b.out 3187rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2424ac_clean_files=$ac_clean_files_save 3188ac_clean_files=$ac_clean_files_save
2425# Check that the compiler produces executables we can run. If not, either
2426# the compiler is broken, or we cross compile.
2427{ echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2428echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2429{ echo "$as_me:$LINENO: result: $cross_compiling" >&5
2430echo "${ECHO_T}$cross_compiling" >&6; }
2431
2432{ echo "$as_me:$LINENO: checking for suffix of executables" >&5 3189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2433echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } 3190$as_echo_n "checking for suffix of executables... " >&6; }
2434if { (ac_try="$ac_link" 3191if { { ac_try="$ac_link"
2435case "(($ac_try" in 3192case "(($ac_try" in
2436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2437 *) ac_try_echo=$ac_try;; 3194 *) ac_try_echo=$ac_try;;
2438esac 3195esac
2439eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3197$as_echo "$ac_try_echo"; } >&5
2440 (eval "$ac_link") 2>&5 3198 (eval "$ac_link") 2>&5
2441 ac_status=$? 3199 ac_status=$?
2442 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2443 (exit $ac_status); }; then 3201 test $ac_status = 0; }; then :
2444 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3202 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2445# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3203# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2446# work properly (i.e., refer to `conftest.exe'), while it won't with 3204# work properly (i.e., refer to `conftest.exe'), while it won't with
2447# `rm'. 3205# `rm'.
2448for ac_file in conftest.exe conftest conftest.*; do 3206for ac_file in conftest.exe conftest conftest.*; do
2449 test -f "$ac_file" || continue 3207 test -f "$ac_file" || continue
2450 case $ac_file in 3208 case $ac_file in
2451 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; 3209 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2452 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3210 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2453 break;; 3211 break;;
2454 * ) break;; 3212 * ) break;;
2455 esac 3213 esac
2456done 3214done
2457else 3215else
2458 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3216 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2459See \`config.log' for more details." >&5 3217$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2460echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3218as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2461See \`config.log' for more details." >&2;} 3219See \`config.log' for more details" "$LINENO" 5; }
2462 { (exit 1); exit 1; }; }
2463fi 3220fi
2464
2465rm -f conftest$ac_cv_exeext 3221rm -f conftest conftest$ac_cv_exeext
2466{ echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2467echo "${ECHO_T}$ac_cv_exeext" >&6; } 3223$as_echo "$ac_cv_exeext" >&6; }
2468 3224
2469rm -f conftest.$ac_ext 3225rm -f conftest.$ac_ext
2470EXEEXT=$ac_cv_exeext 3226EXEEXT=$ac_cv_exeext
2471ac_exeext=$EXEEXT 3227ac_exeext=$EXEEXT
2472{ echo "$as_me:$LINENO: checking for suffix of object files" >&5
2473echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2474if test "${ac_cv_objext+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476else
2477 cat >conftest.$ac_ext <<_ACEOF
2478/* confdefs.h. */
2479_ACEOF
2480cat confdefs.h >>conftest.$ac_ext 3228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2481cat >>conftest.$ac_ext <<_ACEOF
2482/* end confdefs.h. */ 3229/* end confdefs.h. */
2483 3230#include <stdio.h>
2484int 3231int
2485main () 3232main ()
2486{ 3233{
3234FILE *f = fopen ("conftest.out", "w");
3235 return ferror (f) || fclose (f) != 0;
2487 3236
2488 ; 3237 ;
2489 return 0; 3238 return 0;
2490} 3239}
2491_ACEOF 3240_ACEOF
2492rm -f conftest.o conftest.obj 3241ac_clean_files="$ac_clean_files conftest.out"
2493if { (ac_try="$ac_compile" 3242# Check that the compiler produces executables we can run. If not, either
3243# the compiler is broken, or we cross compile.
3244{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3245$as_echo_n "checking whether we are cross compiling... " >&6; }
3246if test "$cross_compiling" != yes; then
3247 { { ac_try="$ac_link"
2494case "(($ac_try" in 3248case "(($ac_try" in
2495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2496 *) ac_try_echo=$ac_try;; 3250 *) ac_try_echo=$ac_try;;
2497esac 3251esac
2498eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3252eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3253$as_echo "$ac_try_echo"; } >&5
3254 (eval "$ac_link") 2>&5
3255 ac_status=$?
3256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3257 test $ac_status = 0; }
3258 if { ac_try='./conftest$ac_cv_exeext'
3259 { { case "(($ac_try" in
3260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3261 *) ac_try_echo=$ac_try;;
3262esac
3263eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3264$as_echo "$ac_try_echo"; } >&5
3265 (eval "$ac_try") 2>&5
3266 ac_status=$?
3267 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3268 test $ac_status = 0; }; }; then
3269 cross_compiling=no
3270 else
3271 if test "$cross_compiling" = maybe; then
3272 cross_compiling=yes
3273 else
3274 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3275$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3276as_fn_error $? "cannot run C compiled programs.
3277If you meant to cross compile, use \`--host'.
3278See \`config.log' for more details" "$LINENO" 5; }
3279 fi
3280 fi
3281fi
3282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3283$as_echo "$cross_compiling" >&6; }
3284
3285rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3286ac_clean_files=$ac_clean_files_save
3287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3288$as_echo_n "checking for suffix of object files... " >&6; }
3289if ${ac_cv_objext+:} false; then :
3290 $as_echo_n "(cached) " >&6
3291else
3292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3293/* end confdefs.h. */
3294
3295int
3296main ()
3297{
3298
3299 ;
3300 return 0;
3301}
3302_ACEOF
3303rm -f conftest.o conftest.obj
3304if { { ac_try="$ac_compile"
3305case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308esac
3309eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3310$as_echo "$ac_try_echo"; } >&5
2499 (eval "$ac_compile") 2>&5 3311 (eval "$ac_compile") 2>&5
2500 ac_status=$? 3312 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2502 (exit $ac_status); }; then 3314 test $ac_status = 0; }; then :
2503 for ac_file in conftest.o conftest.obj conftest.*; do 3315 for ac_file in conftest.o conftest.obj conftest.*; do
2504 test -f "$ac_file" || continue; 3316 test -f "$ac_file" || continue;
2505 case $ac_file in 3317 case $ac_file in
2506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; 3318 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2507 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3319 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2508 break;; 3320 break;;
2509 esac 3321 esac
2510done 3322done
2511else 3323else
2512 echo "$as_me: failed program was:" >&5 3324 $as_echo "$as_me: failed program was:" >&5
2513sed 's/^/| /' conftest.$ac_ext >&5 3325sed 's/^/| /' conftest.$ac_ext >&5
2514 3326
2515{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3327{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2516See \`config.log' for more details." >&5 3328$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2517echo "$as_me: error: cannot compute suffix of object files: cannot compile 3329as_fn_error $? "cannot compute suffix of object files: cannot compile
2518See \`config.log' for more details." >&2;} 3330See \`config.log' for more details" "$LINENO" 5; }
2519 { (exit 1); exit 1; }; }
2520fi 3331fi
2521
2522rm -f conftest.$ac_cv_objext conftest.$ac_ext 3332rm -f conftest.$ac_cv_objext conftest.$ac_ext
2523fi 3333fi
2524{ echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2525echo "${ECHO_T}$ac_cv_objext" >&6; } 3335$as_echo "$ac_cv_objext" >&6; }
2526OBJEXT=$ac_cv_objext 3336OBJEXT=$ac_cv_objext
2527ac_objext=$OBJEXT 3337ac_objext=$OBJEXT
2528{ echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2529echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } 3339$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2530if test "${ac_cv_c_compiler_gnu+set}" = set; then 3340if ${ac_cv_c_compiler_gnu+:} false; then :
2531 echo $ECHO_N "(cached) $ECHO_C" >&6 3341 $as_echo_n "(cached) " >&6
2532else 3342else
2533 cat >conftest.$ac_ext <<_ACEOF
2534/* confdefs.h. */
2535_ACEOF
2536cat confdefs.h >>conftest.$ac_ext 3343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2537cat >>conftest.$ac_ext <<_ACEOF
2538/* end confdefs.h. */ 3344/* end confdefs.h. */
2539 3345
2540int 3346int
2541main () 3347main ()
2542{ 3348{
2546 3352
2547 ; 3353 ;
2548 return 0; 3354 return 0;
2549} 3355}
2550_ACEOF 3356_ACEOF
2551rm -f conftest.$ac_objext 3357if ac_fn_c_try_compile "$LINENO"; then :
2552if { (ac_try="$ac_compile"
2553case "(($ac_try" in
2554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2555 *) ac_try_echo=$ac_try;;
2556esac
2557eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2558 (eval "$ac_compile") 2>conftest.er1
2559 ac_status=$?
2560 grep -v '^ *+' conftest.er1 >conftest.err
2561 rm -f conftest.er1
2562 cat conftest.err >&5
2563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2564 (exit $ac_status); } && {
2565 test -z "$ac_c_werror_flag" ||
2566 test ! -s conftest.err
2567 } && test -s conftest.$ac_objext; then
2568 ac_compiler_gnu=yes 3358 ac_compiler_gnu=yes
2569else 3359else
2570 echo "$as_me: failed program was:" >&5
2571sed 's/^/| /' conftest.$ac_ext >&5
2572
2573 ac_compiler_gnu=no 3360 ac_compiler_gnu=no
2574fi 3361fi
2575
2576rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3362rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2577ac_cv_c_compiler_gnu=$ac_compiler_gnu 3363ac_cv_c_compiler_gnu=$ac_compiler_gnu
2578 3364
2579fi 3365fi
2580{ echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2581echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } 3367$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2582GCC=`test $ac_compiler_gnu = yes && echo yes` 3368if test $ac_compiler_gnu = yes; then
3369 GCC=yes
3370else
3371 GCC=
3372fi
2583ac_test_CFLAGS=${CFLAGS+set} 3373ac_test_CFLAGS=${CFLAGS+set}
2584ac_save_CFLAGS=$CFLAGS 3374ac_save_CFLAGS=$CFLAGS
2585{ echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2586echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } 3376$as_echo_n "checking whether $CC accepts -g... " >&6; }
2587if test "${ac_cv_prog_cc_g+set}" = set; then 3377if ${ac_cv_prog_cc_g+:} false; then :
2588 echo $ECHO_N "(cached) $ECHO_C" >&6 3378 $as_echo_n "(cached) " >&6
2589else 3379else
2590 ac_save_c_werror_flag=$ac_c_werror_flag 3380 ac_save_c_werror_flag=$ac_c_werror_flag
2591 ac_c_werror_flag=yes 3381 ac_c_werror_flag=yes
2592 ac_cv_prog_cc_g=no 3382 ac_cv_prog_cc_g=no
2593 CFLAGS="-g" 3383 CFLAGS="-g"
2594 cat >conftest.$ac_ext <<_ACEOF
2595/* confdefs.h. */
2596_ACEOF
2597cat confdefs.h >>conftest.$ac_ext 3384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598cat >>conftest.$ac_ext <<_ACEOF
2599/* end confdefs.h. */ 3385/* end confdefs.h. */
2600 3386
2601int 3387int
2602main () 3388main ()
2603{ 3389{
2604 3390
2605 ; 3391 ;
2606 return 0; 3392 return 0;
2607} 3393}
2608_ACEOF 3394_ACEOF
2609rm -f conftest.$ac_objext 3395if ac_fn_c_try_compile "$LINENO"; then :
2610if { (ac_try="$ac_compile"
2611case "(($ac_try" in
2612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2613 *) ac_try_echo=$ac_try;;
2614esac
2615eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2616 (eval "$ac_compile") 2>conftest.er1
2617 ac_status=$?
2618 grep -v '^ *+' conftest.er1 >conftest.err
2619 rm -f conftest.er1
2620 cat conftest.err >&5
2621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622 (exit $ac_status); } && {
2623 test -z "$ac_c_werror_flag" ||
2624 test ! -s conftest.err
2625 } && test -s conftest.$ac_objext; then
2626 ac_cv_prog_cc_g=yes 3396 ac_cv_prog_cc_g=yes
2627else 3397else
2628 echo "$as_me: failed program was:" >&5
2629sed 's/^/| /' conftest.$ac_ext >&5
2630
2631 CFLAGS="" 3398 CFLAGS=""
2632 cat >conftest.$ac_ext <<_ACEOF
2633/* confdefs.h. */
2634_ACEOF
2635cat confdefs.h >>conftest.$ac_ext 3399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636cat >>conftest.$ac_ext <<_ACEOF
2637/* end confdefs.h. */ 3400/* end confdefs.h. */
2638 3401
2639int 3402int
2640main () 3403main ()
2641{ 3404{
2642 3405
2643 ; 3406 ;
2644 return 0; 3407 return 0;
2645} 3408}
2646_ACEOF 3409_ACEOF
2647rm -f conftest.$ac_objext 3410if ac_fn_c_try_compile "$LINENO"; then :
2648if { (ac_try="$ac_compile"
2649case "(($ac_try" in
2650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2651 *) ac_try_echo=$ac_try;;
2652esac
2653eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2654 (eval "$ac_compile") 2>conftest.er1
2655 ac_status=$?
2656 grep -v '^ *+' conftest.er1 >conftest.err
2657 rm -f conftest.er1
2658 cat conftest.err >&5
2659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2660 (exit $ac_status); } && {
2661 test -z "$ac_c_werror_flag" ||
2662 test ! -s conftest.err
2663 } && test -s conftest.$ac_objext; then
2664 :
2665else
2666 echo "$as_me: failed program was:" >&5
2667sed 's/^/| /' conftest.$ac_ext >&5
2668 3411
3412else
2669 ac_c_werror_flag=$ac_save_c_werror_flag 3413 ac_c_werror_flag=$ac_save_c_werror_flag
2670 CFLAGS="-g" 3414 CFLAGS="-g"
2671 cat >conftest.$ac_ext <<_ACEOF
2672/* confdefs.h. */
2673_ACEOF
2674cat confdefs.h >>conftest.$ac_ext 3415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2675cat >>conftest.$ac_ext <<_ACEOF
2676/* end confdefs.h. */ 3416/* end confdefs.h. */
2677 3417
2678int 3418int
2679main () 3419main ()
2680{ 3420{
2681 3421
2682 ; 3422 ;
2683 return 0; 3423 return 0;
2684} 3424}
2685_ACEOF 3425_ACEOF
2686rm -f conftest.$ac_objext 3426if ac_fn_c_try_compile "$LINENO"; then :
2687if { (ac_try="$ac_compile"
2688case "(($ac_try" in
2689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2690 *) ac_try_echo=$ac_try;;
2691esac
2692eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2693 (eval "$ac_compile") 2>conftest.er1
2694 ac_status=$?
2695 grep -v '^ *+' conftest.er1 >conftest.err
2696 rm -f conftest.er1
2697 cat conftest.err >&5
2698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2699 (exit $ac_status); } && {
2700 test -z "$ac_c_werror_flag" ||
2701 test ! -s conftest.err
2702 } && test -s conftest.$ac_objext; then
2703 ac_cv_prog_cc_g=yes 3427 ac_cv_prog_cc_g=yes
2704else
2705 echo "$as_me: failed program was:" >&5
2706sed 's/^/| /' conftest.$ac_ext >&5
2707
2708
2709fi 3428fi
2710
2711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3429rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2712fi 3430fi
2713
2714rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2715fi 3432fi
2716
2717rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2718 ac_c_werror_flag=$ac_save_c_werror_flag 3434 ac_c_werror_flag=$ac_save_c_werror_flag
2719fi 3435fi
2720{ echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2721echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } 3437$as_echo "$ac_cv_prog_cc_g" >&6; }
2722if test "$ac_test_CFLAGS" = set; then 3438if test "$ac_test_CFLAGS" = set; then
2723 CFLAGS=$ac_save_CFLAGS 3439 CFLAGS=$ac_save_CFLAGS
2724elif test $ac_cv_prog_cc_g = yes; then 3440elif test $ac_cv_prog_cc_g = yes; then
2725 if test "$GCC" = yes; then 3441 if test "$GCC" = yes; then
2726 CFLAGS="-g -O2" 3442 CFLAGS="-g -O2"
2732 CFLAGS="-O2" 3448 CFLAGS="-O2"
2733 else 3449 else
2734 CFLAGS= 3450 CFLAGS=
2735 fi 3451 fi
2736fi 3452fi
2737{ echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2738echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } 3454$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2739if test "${ac_cv_prog_cc_c89+set}" = set; then 3455if ${ac_cv_prog_cc_c89+:} false; then :
2740 echo $ECHO_N "(cached) $ECHO_C" >&6 3456 $as_echo_n "(cached) " >&6
2741else 3457else
2742 ac_cv_prog_cc_c89=no 3458 ac_cv_prog_cc_c89=no
2743ac_save_CC=$CC 3459ac_save_CC=$CC
2744cat >conftest.$ac_ext <<_ACEOF
2745/* confdefs.h. */
2746_ACEOF
2747cat confdefs.h >>conftest.$ac_ext 3460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2748cat >>conftest.$ac_ext <<_ACEOF
2749/* end confdefs.h. */ 3461/* end confdefs.h. */
2750#include <stdarg.h> 3462#include <stdarg.h>
2751#include <stdio.h> 3463#include <stdio.h>
2752#include <sys/types.h> 3464#include <sys/types.h>
2753#include <sys/stat.h> 3465#include <sys/stat.h>
2800_ACEOF 3512_ACEOF
2801for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3513for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2802 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3514 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2803do 3515do
2804 CC="$ac_save_CC $ac_arg" 3516 CC="$ac_save_CC $ac_arg"
2805 rm -f conftest.$ac_objext 3517 if ac_fn_c_try_compile "$LINENO"; then :
2806if { (ac_try="$ac_compile"
2807case "(($ac_try" in
2808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809 *) ac_try_echo=$ac_try;;
2810esac
2811eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2812 (eval "$ac_compile") 2>conftest.er1
2813 ac_status=$?
2814 grep -v '^ *+' conftest.er1 >conftest.err
2815 rm -f conftest.er1
2816 cat conftest.err >&5
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); } && {
2819 test -z "$ac_c_werror_flag" ||
2820 test ! -s conftest.err
2821 } && test -s conftest.$ac_objext; then
2822 ac_cv_prog_cc_c89=$ac_arg 3518 ac_cv_prog_cc_c89=$ac_arg
2823else
2824 echo "$as_me: failed program was:" >&5
2825sed 's/^/| /' conftest.$ac_ext >&5
2826
2827
2828fi 3519fi
2829
2830rm -f core conftest.err conftest.$ac_objext 3520rm -f core conftest.err conftest.$ac_objext
2831 test "x$ac_cv_prog_cc_c89" != "xno" && break 3521 test "x$ac_cv_prog_cc_c89" != "xno" && break
2832done 3522done
2833rm -f conftest.$ac_ext 3523rm -f conftest.$ac_ext
2834CC=$ac_save_CC 3524CC=$ac_save_CC
2835 3525
2836fi 3526fi
2837# AC_CACHE_VAL 3527# AC_CACHE_VAL
2838case "x$ac_cv_prog_cc_c89" in 3528case "x$ac_cv_prog_cc_c89" in
2839 x) 3529 x)
2840 { echo "$as_me:$LINENO: result: none needed" >&5 3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2841echo "${ECHO_T}none needed" >&6; } ;; 3531$as_echo "none needed" >&6; } ;;
2842 xno) 3532 xno)
2843 { echo "$as_me:$LINENO: result: unsupported" >&5 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2844echo "${ECHO_T}unsupported" >&6; } ;; 3534$as_echo "unsupported" >&6; } ;;
2845 *) 3535 *)
2846 CC="$CC $ac_cv_prog_cc_c89" 3536 CC="$CC $ac_cv_prog_cc_c89"
2847 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2848echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; 3538$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2849esac 3539esac
3540if test "x$ac_cv_prog_cc_c89" != xno; then :
2850 3541
3542fi
2851 3543
2852ac_ext=c 3544ac_ext=c
2853ac_cpp='$CPP $CPPFLAGS' 3545ac_cpp='$CPP $CPPFLAGS'
2854ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3546ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2855ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3547ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2867 if test -n "$ac_tool_prefix"; then 3559 if test -n "$ac_tool_prefix"; then
2868 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3560 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2869 do 3561 do
2870 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3562 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2871set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3563set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2872{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2873echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3565$as_echo_n "checking for $ac_word... " >&6; }
2874if test "${ac_cv_prog_CXX+set}" = set; then 3566if ${ac_cv_prog_CXX+:} false; then :
2875 echo $ECHO_N "(cached) $ECHO_C" >&6 3567 $as_echo_n "(cached) " >&6
2876else 3568else
2877 if test -n "$CXX"; then 3569 if test -n "$CXX"; then
2878 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3570 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2879else 3571else
2880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3572as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881for as_dir in $PATH 3573for as_dir in $PATH
2882do 3574do
2883 IFS=$as_save_IFS 3575 IFS=$as_save_IFS
2884 test -z "$as_dir" && as_dir=. 3576 test -z "$as_dir" && as_dir=.
2885 for ac_exec_ext in '' $ac_executable_extensions; do 3577 for ac_exec_ext in '' $ac_executable_extensions; do
2886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2887 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3579 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2888 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2889 break 2 3581 break 2
2890 fi 3582 fi
2891done 3583done
2892done 3584 done
2893IFS=$as_save_IFS 3585IFS=$as_save_IFS
2894 3586
2895fi 3587fi
2896fi 3588fi
2897CXX=$ac_cv_prog_CXX 3589CXX=$ac_cv_prog_CXX
2898if test -n "$CXX"; then 3590if test -n "$CXX"; then
2899 { echo "$as_me:$LINENO: result: $CXX" >&5 3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2900echo "${ECHO_T}$CXX" >&6; } 3592$as_echo "$CXX" >&6; }
2901else 3593else
2902 { echo "$as_me:$LINENO: result: no" >&5 3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2903echo "${ECHO_T}no" >&6; } 3595$as_echo "no" >&6; }
2904fi 3596fi
2905 3597
2906 3598
2907 test -n "$CXX" && break 3599 test -n "$CXX" && break
2908 done 3600 done
2911 ac_ct_CXX=$CXX 3603 ac_ct_CXX=$CXX
2912 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 3604 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2913do 3605do
2914 # Extract the first word of "$ac_prog", so it can be a program name with args. 3606 # Extract the first word of "$ac_prog", so it can be a program name with args.
2915set dummy $ac_prog; ac_word=$2 3607set dummy $ac_prog; ac_word=$2
2916{ echo "$as_me:$LINENO: checking for $ac_word" >&5 3608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2917echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 3609$as_echo_n "checking for $ac_word... " >&6; }
2918if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3610if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2919 echo $ECHO_N "(cached) $ECHO_C" >&6 3611 $as_echo_n "(cached) " >&6
2920else 3612else
2921 if test -n "$ac_ct_CXX"; then 3613 if test -n "$ac_ct_CXX"; then
2922 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3614 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2923else 3615else
2924as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3616as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2925for as_dir in $PATH 3617for as_dir in $PATH
2926do 3618do
2927 IFS=$as_save_IFS 3619 IFS=$as_save_IFS
2928 test -z "$as_dir" && as_dir=. 3620 test -z "$as_dir" && as_dir=.
2929 for ac_exec_ext in '' $ac_executable_extensions; do 3621 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3622 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2931 ac_cv_prog_ac_ct_CXX="$ac_prog" 3623 ac_cv_prog_ac_ct_CXX="$ac_prog"
2932 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3624 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 break 2 3625 break 2
2934 fi 3626 fi
2935done 3627done
2936done 3628 done
2937IFS=$as_save_IFS 3629IFS=$as_save_IFS
2938 3630
2939fi 3631fi
2940fi 3632fi
2941ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3633ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2942if test -n "$ac_ct_CXX"; then 3634if test -n "$ac_ct_CXX"; then
2943 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2944echo "${ECHO_T}$ac_ct_CXX" >&6; } 3636$as_echo "$ac_ct_CXX" >&6; }
2945else 3637else
2946 { echo "$as_me:$LINENO: result: no" >&5 3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2947echo "${ECHO_T}no" >&6; } 3639$as_echo "no" >&6; }
2948fi 3640fi
2949 3641
2950 3642
2951 test -n "$ac_ct_CXX" && break 3643 test -n "$ac_ct_CXX" && break
2952done 3644done
2954 if test "x$ac_ct_CXX" = x; then 3646 if test "x$ac_ct_CXX" = x; then
2955 CXX="g++" 3647 CXX="g++"
2956 else 3648 else
2957 case $cross_compiling:$ac_tool_warned in 3649 case $cross_compiling:$ac_tool_warned in
2958yes:) 3650yes:)
2959{ echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3651{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2960whose name does not start with the host triplet. If you think this 3652$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2961configuration is useful to you, please write to autoconf@gnu.org." >&5
2962echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2963whose name does not start with the host triplet. If you think this
2964configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2965ac_tool_warned=yes ;; 3653ac_tool_warned=yes ;;
2966esac 3654esac
2967 CXX=$ac_ct_CXX 3655 CXX=$ac_ct_CXX
2968 fi 3656 fi
2969fi 3657fi
2970 3658
2971 fi 3659 fi
2972fi 3660fi
2973# Provide some information about the compiler. 3661# Provide some information about the compiler.
2974echo "$as_me:$LINENO: checking for C++ compiler version" >&5 3662$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2975ac_compiler=`set X $ac_compile; echo $2` 3663set X $ac_compile
3664ac_compiler=$2
3665for ac_option in --version -v -V -qversion; do
2976{ (ac_try="$ac_compiler --version >&5" 3666 { { ac_try="$ac_compiler $ac_option >&5"
2977case "(($ac_try" in 3667case "(($ac_try" in
2978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2979 *) ac_try_echo=$ac_try;; 3669 *) ac_try_echo=$ac_try;;
2980esac 3670esac
2981eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 3671eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2982 (eval "$ac_compiler --version >&5") 2>&5 3672$as_echo "$ac_try_echo"; } >&5
3673 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2983 ac_status=$? 3674 ac_status=$?
3675 if test -s conftest.err; then
3676 sed '10a\
3677... rest of stderr output deleted ...
3678 10q' conftest.err >conftest.er1
3679 cat conftest.er1 >&5
3680 fi
3681 rm -f conftest.er1 conftest.err
2984 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2985 (exit $ac_status); } 3683 test $ac_status = 0; }
2986{ (ac_try="$ac_compiler -v >&5" 3684done
2987case "(($ac_try" in
2988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2989 *) ac_try_echo=$ac_try;;
2990esac
2991eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2992 (eval "$ac_compiler -v >&5") 2>&5
2993 ac_status=$?
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); }
2996{ (ac_try="$ac_compiler -V >&5"
2997case "(($ac_try" in
2998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2999 *) ac_try_echo=$ac_try;;
3000esac
3001eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3002 (eval "$ac_compiler -V >&5") 2>&5
3003 ac_status=$?
3004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3005 (exit $ac_status); }
3006 3685
3007{ echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3008echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } 3687$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3009if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3688if ${ac_cv_cxx_compiler_gnu+:} false; then :
3010 echo $ECHO_N "(cached) $ECHO_C" >&6 3689 $as_echo_n "(cached) " >&6
3011else 3690else
3012 cat >conftest.$ac_ext <<_ACEOF
3013/* confdefs.h. */
3014_ACEOF
3015cat confdefs.h >>conftest.$ac_ext 3691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3016cat >>conftest.$ac_ext <<_ACEOF
3017/* end confdefs.h. */ 3692/* end confdefs.h. */
3018 3693
3019int 3694int
3020main () 3695main ()
3021{ 3696{
3025 3700
3026 ; 3701 ;
3027 return 0; 3702 return 0;
3028} 3703}
3029_ACEOF 3704_ACEOF
3030rm -f conftest.$ac_objext 3705if ac_fn_cxx_try_compile "$LINENO"; then :
3031if { (ac_try="$ac_compile"
3032case "(($ac_try" in
3033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3034 *) ac_try_echo=$ac_try;;
3035esac
3036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3037 (eval "$ac_compile") 2>conftest.er1
3038 ac_status=$?
3039 grep -v '^ *+' conftest.er1 >conftest.err
3040 rm -f conftest.er1
3041 cat conftest.err >&5
3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043 (exit $ac_status); } && {
3044 test -z "$ac_cxx_werror_flag" ||
3045 test ! -s conftest.err
3046 } && test -s conftest.$ac_objext; then
3047 ac_compiler_gnu=yes 3706 ac_compiler_gnu=yes
3048else 3707else
3049 echo "$as_me: failed program was:" >&5
3050sed 's/^/| /' conftest.$ac_ext >&5
3051
3052 ac_compiler_gnu=no 3708 ac_compiler_gnu=no
3053fi 3709fi
3054
3055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3710rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3056ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3711ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3057 3712
3058fi 3713fi
3059{ echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3060echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } 3715$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3061GXX=`test $ac_compiler_gnu = yes && echo yes` 3716if test $ac_compiler_gnu = yes; then
3717 GXX=yes
3718else
3719 GXX=
3720fi
3062ac_test_CXXFLAGS=${CXXFLAGS+set} 3721ac_test_CXXFLAGS=${CXXFLAGS+set}
3063ac_save_CXXFLAGS=$CXXFLAGS 3722ac_save_CXXFLAGS=$CXXFLAGS
3064{ echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 3723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3065echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } 3724$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3066if test "${ac_cv_prog_cxx_g+set}" = set; then 3725if ${ac_cv_prog_cxx_g+:} false; then :
3067 echo $ECHO_N "(cached) $ECHO_C" >&6 3726 $as_echo_n "(cached) " >&6
3068else 3727else
3069 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 3728 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3070 ac_cxx_werror_flag=yes 3729 ac_cxx_werror_flag=yes
3071 ac_cv_prog_cxx_g=no 3730 ac_cv_prog_cxx_g=no
3072 CXXFLAGS="-g" 3731 CXXFLAGS="-g"
3073 cat >conftest.$ac_ext <<_ACEOF
3074/* confdefs.h. */
3075_ACEOF
3076cat confdefs.h >>conftest.$ac_ext 3732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3077cat >>conftest.$ac_ext <<_ACEOF
3078/* end confdefs.h. */ 3733/* end confdefs.h. */
3079 3734
3080int 3735int
3081main () 3736main ()
3082{ 3737{
3083 3738
3084 ; 3739 ;
3085 return 0; 3740 return 0;
3086} 3741}
3087_ACEOF 3742_ACEOF
3088rm -f conftest.$ac_objext 3743if ac_fn_cxx_try_compile "$LINENO"; then :
3089if { (ac_try="$ac_compile"
3090case "(($ac_try" in
3091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3092 *) ac_try_echo=$ac_try;;
3093esac
3094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3095 (eval "$ac_compile") 2>conftest.er1
3096 ac_status=$?
3097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } && {
3102 test -z "$ac_cxx_werror_flag" ||
3103 test ! -s conftest.err
3104 } && test -s conftest.$ac_objext; then
3105 ac_cv_prog_cxx_g=yes 3744 ac_cv_prog_cxx_g=yes
3106else 3745else
3107 echo "$as_me: failed program was:" >&5
3108sed 's/^/| /' conftest.$ac_ext >&5
3109
3110 CXXFLAGS="" 3746 CXXFLAGS=""
3111 cat >conftest.$ac_ext <<_ACEOF
3112/* confdefs.h. */
3113_ACEOF
3114cat confdefs.h >>conftest.$ac_ext 3747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3115cat >>conftest.$ac_ext <<_ACEOF
3116/* end confdefs.h. */ 3748/* end confdefs.h. */
3117 3749
3118int 3750int
3119main () 3751main ()
3120{ 3752{
3121 3753
3122 ; 3754 ;
3123 return 0; 3755 return 0;
3124} 3756}
3125_ACEOF 3757_ACEOF
3126rm -f conftest.$ac_objext 3758if ac_fn_cxx_try_compile "$LINENO"; then :
3127if { (ac_try="$ac_compile"
3128case "(($ac_try" in
3129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3130 *) ac_try_echo=$ac_try;;
3131esac
3132eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3133 (eval "$ac_compile") 2>conftest.er1
3134 ac_status=$?
3135 grep -v '^ *+' conftest.er1 >conftest.err
3136 rm -f conftest.er1
3137 cat conftest.err >&5
3138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3139 (exit $ac_status); } && {
3140 test -z "$ac_cxx_werror_flag" ||
3141 test ! -s conftest.err
3142 } && test -s conftest.$ac_objext; then
3143 :
3144else
3145 echo "$as_me: failed program was:" >&5
3146sed 's/^/| /' conftest.$ac_ext >&5
3147 3759
3760else
3148 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3761 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3149 CXXFLAGS="-g" 3762 CXXFLAGS="-g"
3150 cat >conftest.$ac_ext <<_ACEOF
3151/* confdefs.h. */
3152_ACEOF
3153cat confdefs.h >>conftest.$ac_ext 3763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3154cat >>conftest.$ac_ext <<_ACEOF
3155/* end confdefs.h. */ 3764/* end confdefs.h. */
3156 3765
3157int 3766int
3158main () 3767main ()
3159{ 3768{
3160 3769
3161 ; 3770 ;
3162 return 0; 3771 return 0;
3163} 3772}
3164_ACEOF 3773_ACEOF
3165rm -f conftest.$ac_objext 3774if ac_fn_cxx_try_compile "$LINENO"; then :
3166if { (ac_try="$ac_compile"
3167case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170esac
3171eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3172 (eval "$ac_compile") 2>conftest.er1
3173 ac_status=$?
3174 grep -v '^ *+' conftest.er1 >conftest.err
3175 rm -f conftest.er1
3176 cat conftest.err >&5
3177 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3178 (exit $ac_status); } && {
3179 test -z "$ac_cxx_werror_flag" ||
3180 test ! -s conftest.err
3181 } && test -s conftest.$ac_objext; then
3182 ac_cv_prog_cxx_g=yes 3775 ac_cv_prog_cxx_g=yes
3183else
3184 echo "$as_me: failed program was:" >&5
3185sed 's/^/| /' conftest.$ac_ext >&5
3186
3187
3188fi 3776fi
3189
3190rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3777rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3191fi 3778fi
3192
3193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3194fi 3780fi
3195
3196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3781rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3197 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 3782 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3198fi 3783fi
3199{ echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3200echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } 3785$as_echo "$ac_cv_prog_cxx_g" >&6; }
3201if test "$ac_test_CXXFLAGS" = set; then 3786if test "$ac_test_CXXFLAGS" = set; then
3202 CXXFLAGS=$ac_save_CXXFLAGS 3787 CXXFLAGS=$ac_save_CXXFLAGS
3203elif test $ac_cv_prog_cxx_g = yes; then 3788elif test $ac_cv_prog_cxx_g = yes; then
3204 if test "$GXX" = yes; then 3789 if test "$GXX" = yes; then
3205 CXXFLAGS="-g -O2" 3790 CXXFLAGS="-g -O2"
3222ac_ext=c 3807ac_ext=c
3223ac_cpp='$CPP $CPPFLAGS' 3808ac_cpp='$CPP $CPPFLAGS'
3224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3226ac_compiler_gnu=$ac_cv_c_compiler_gnu 3811ac_compiler_gnu=$ac_cv_c_compiler_gnu
3227{ echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3228echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } 3813$as_echo_n "checking how to run the C preprocessor... " >&6; }
3229# On Suns, sometimes $CPP names a directory. 3814# On Suns, sometimes $CPP names a directory.
3230if test -n "$CPP" && test -d "$CPP"; then 3815if test -n "$CPP" && test -d "$CPP"; then
3231 CPP= 3816 CPP=
3232fi 3817fi
3233if test -z "$CPP"; then 3818if test -z "$CPP"; then
3234 if test "${ac_cv_prog_CPP+set}" = set; then 3819 if ${ac_cv_prog_CPP+:} false; then :
3235 echo $ECHO_N "(cached) $ECHO_C" >&6 3820 $as_echo_n "(cached) " >&6
3236else 3821else
3237 # Double quotes because CPP needs to be expanded 3822 # Double quotes because CPP needs to be expanded
3238 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3823 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3239 do 3824 do
3240 ac_preproc_ok=false 3825 ac_preproc_ok=false
3244 # with a fresh cross-compiler works. 3829 # with a fresh cross-compiler works.
3245 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3830 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3246 # <limits.h> exists even on freestanding compilers. 3831 # <limits.h> exists even on freestanding compilers.
3247 # On the NeXT, cc -E runs the code through the compiler's parser, 3832 # On the NeXT, cc -E runs the code through the compiler's parser,
3248 # not just through cpp. "Syntax error" is here to catch this case. 3833 # not just through cpp. "Syntax error" is here to catch this case.
3249 cat >conftest.$ac_ext <<_ACEOF
3250/* confdefs.h. */
3251_ACEOF
3252cat confdefs.h >>conftest.$ac_ext 3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253cat >>conftest.$ac_ext <<_ACEOF
3254/* end confdefs.h. */ 3835/* end confdefs.h. */
3255#ifdef __STDC__ 3836#ifdef __STDC__
3256# include <limits.h> 3837# include <limits.h>
3257#else 3838#else
3258# include <assert.h> 3839# include <assert.h>
3259#endif 3840#endif
3260 Syntax error 3841 Syntax error
3261_ACEOF 3842_ACEOF
3262if { (ac_try="$ac_cpp conftest.$ac_ext" 3843if ac_fn_c_try_cpp "$LINENO"; then :
3263case "(($ac_try" in
3264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3265 *) ac_try_echo=$ac_try;;
3266esac
3267eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3268 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3269 ac_status=$?
3270 grep -v '^ *+' conftest.er1 >conftest.err
3271 rm -f conftest.er1
3272 cat conftest.err >&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } >/dev/null && {
3275 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3276 test ! -s conftest.err
3277 }; then
3278 :
3279else
3280 echo "$as_me: failed program was:" >&5
3281sed 's/^/| /' conftest.$ac_ext >&5
3282 3844
3845else
3283 # Broken: fails on valid input. 3846 # Broken: fails on valid input.
3284continue 3847continue
3285fi 3848fi
3286
3287rm -f conftest.err conftest.$ac_ext 3849rm -f conftest.err conftest.i conftest.$ac_ext
3288 3850
3289 # OK, works on sane cases. Now check whether nonexistent headers 3851 # OK, works on sane cases. Now check whether nonexistent headers
3290 # can be detected and how. 3852 # can be detected and how.
3291 cat >conftest.$ac_ext <<_ACEOF
3292/* confdefs.h. */
3293_ACEOF
3294cat confdefs.h >>conftest.$ac_ext 3853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3295cat >>conftest.$ac_ext <<_ACEOF
3296/* end confdefs.h. */ 3854/* end confdefs.h. */
3297#include <ac_nonexistent.h> 3855#include <ac_nonexistent.h>
3298_ACEOF 3856_ACEOF
3299if { (ac_try="$ac_cpp conftest.$ac_ext" 3857if ac_fn_c_try_cpp "$LINENO"; then :
3300case "(($ac_try" in
3301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3302 *) ac_try_echo=$ac_try;;
3303esac
3304eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3306 ac_status=$?
3307 grep -v '^ *+' conftest.er1 >conftest.err
3308 rm -f conftest.er1
3309 cat conftest.err >&5
3310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3311 (exit $ac_status); } >/dev/null && {
3312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3313 test ! -s conftest.err
3314 }; then
3315 # Broken: success on invalid input. 3858 # Broken: success on invalid input.
3316continue 3859continue
3317else 3860else
3318 echo "$as_me: failed program was:" >&5
3319sed 's/^/| /' conftest.$ac_ext >&5
3320
3321 # Passes both tests. 3861 # Passes both tests.
3322ac_preproc_ok=: 3862ac_preproc_ok=:
3323break 3863break
3324fi 3864fi
3325
3326rm -f conftest.err conftest.$ac_ext 3865rm -f conftest.err conftest.i conftest.$ac_ext
3327 3866
3328done 3867done
3329# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3868# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3330rm -f conftest.err conftest.$ac_ext 3869rm -f conftest.i conftest.err conftest.$ac_ext
3331if $ac_preproc_ok; then 3870if $ac_preproc_ok; then :
3332 break 3871 break
3333fi 3872fi
3334 3873
3335 done 3874 done
3336 ac_cv_prog_CPP=$CPP 3875 ac_cv_prog_CPP=$CPP
3338fi 3877fi
3339 CPP=$ac_cv_prog_CPP 3878 CPP=$ac_cv_prog_CPP
3340else 3879else
3341 ac_cv_prog_CPP=$CPP 3880 ac_cv_prog_CPP=$CPP
3342fi 3881fi
3343{ echo "$as_me:$LINENO: result: $CPP" >&5 3882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3344echo "${ECHO_T}$CPP" >&6; } 3883$as_echo "$CPP" >&6; }
3345ac_preproc_ok=false 3884ac_preproc_ok=false
3346for ac_c_preproc_warn_flag in '' yes 3885for ac_c_preproc_warn_flag in '' yes
3347do 3886do
3348 # Use a header file that comes with gcc, so configuring glibc 3887 # Use a header file that comes with gcc, so configuring glibc
3349 # with a fresh cross-compiler works. 3888 # with a fresh cross-compiler works.
3350 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3351 # <limits.h> exists even on freestanding compilers. 3890 # <limits.h> exists even on freestanding compilers.
3352 # On the NeXT, cc -E runs the code through the compiler's parser, 3891 # On the NeXT, cc -E runs the code through the compiler's parser,
3353 # not just through cpp. "Syntax error" is here to catch this case. 3892 # not just through cpp. "Syntax error" is here to catch this case.
3354 cat >conftest.$ac_ext <<_ACEOF
3355/* confdefs.h. */
3356_ACEOF
3357cat confdefs.h >>conftest.$ac_ext 3893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358cat >>conftest.$ac_ext <<_ACEOF
3359/* end confdefs.h. */ 3894/* end confdefs.h. */
3360#ifdef __STDC__ 3895#ifdef __STDC__
3361# include <limits.h> 3896# include <limits.h>
3362#else 3897#else
3363# include <assert.h> 3898# include <assert.h>
3364#endif 3899#endif
3365 Syntax error 3900 Syntax error
3366_ACEOF 3901_ACEOF
3367if { (ac_try="$ac_cpp conftest.$ac_ext" 3902if ac_fn_c_try_cpp "$LINENO"; then :
3368case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371esac
3372eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3374 ac_status=$?
3375 grep -v '^ *+' conftest.er1 >conftest.err
3376 rm -f conftest.er1
3377 cat conftest.err >&5
3378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3379 (exit $ac_status); } >/dev/null && {
3380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3381 test ! -s conftest.err
3382 }; then
3383 :
3384else
3385 echo "$as_me: failed program was:" >&5
3386sed 's/^/| /' conftest.$ac_ext >&5
3387 3903
3904else
3388 # Broken: fails on valid input. 3905 # Broken: fails on valid input.
3389continue 3906continue
3390fi 3907fi
3391
3392rm -f conftest.err conftest.$ac_ext 3908rm -f conftest.err conftest.i conftest.$ac_ext
3393 3909
3394 # OK, works on sane cases. Now check whether nonexistent headers 3910 # OK, works on sane cases. Now check whether nonexistent headers
3395 # can be detected and how. 3911 # can be detected and how.
3396 cat >conftest.$ac_ext <<_ACEOF
3397/* confdefs.h. */
3398_ACEOF
3399cat confdefs.h >>conftest.$ac_ext 3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3400cat >>conftest.$ac_ext <<_ACEOF
3401/* end confdefs.h. */ 3913/* end confdefs.h. */
3402#include <ac_nonexistent.h> 3914#include <ac_nonexistent.h>
3403_ACEOF 3915_ACEOF
3404if { (ac_try="$ac_cpp conftest.$ac_ext" 3916if ac_fn_c_try_cpp "$LINENO"; then :
3405case "(($ac_try" in
3406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407 *) ac_try_echo=$ac_try;;
3408esac
3409eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3410 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3411 ac_status=$?
3412 grep -v '^ *+' conftest.er1 >conftest.err
3413 rm -f conftest.er1
3414 cat conftest.err >&5
3415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3416 (exit $ac_status); } >/dev/null && {
3417 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3418 test ! -s conftest.err
3419 }; then
3420 # Broken: success on invalid input. 3917 # Broken: success on invalid input.
3421continue 3918continue
3422else 3919else
3423 echo "$as_me: failed program was:" >&5
3424sed 's/^/| /' conftest.$ac_ext >&5
3425
3426 # Passes both tests. 3920 # Passes both tests.
3427ac_preproc_ok=: 3921ac_preproc_ok=:
3428break 3922break
3429fi 3923fi
3430
3431rm -f conftest.err conftest.$ac_ext 3924rm -f conftest.err conftest.i conftest.$ac_ext
3432 3925
3433done 3926done
3434# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3435rm -f conftest.err conftest.$ac_ext 3928rm -f conftest.i conftest.err conftest.$ac_ext
3436if $ac_preproc_ok; then 3929if $ac_preproc_ok; then :
3437 : 3930
3438else 3931else
3439 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 3932 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3440See \`config.log' for more details." >&5 3933$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3441echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 3934as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3442See \`config.log' for more details." >&2;} 3935See \`config.log' for more details" "$LINENO" 5; }
3443 { (exit 1); exit 1; }; }
3444fi 3936fi
3445 3937
3446ac_ext=c 3938ac_ext=c
3447ac_cpp='$CPP $CPPFLAGS' 3939ac_cpp='$CPP $CPPFLAGS'
3448ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3940ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3460# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3952# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3461# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3953# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3462# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3954# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3463# OS/2's system install, which has a completely different semantic 3955# OS/2's system install, which has a completely different semantic
3464# ./install, which can be erroneously created by make from ./install.sh. 3956# ./install, which can be erroneously created by make from ./install.sh.
3957# Reject install programs that cannot install multiple files.
3465{ echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3466echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } 3959$as_echo_n "checking for a BSD-compatible install... " >&6; }
3467if test -z "$INSTALL"; then 3960if test -z "$INSTALL"; then
3468if test "${ac_cv_path_install+set}" = set; then 3961if ${ac_cv_path_install+:} false; then :
3469 echo $ECHO_N "(cached) $ECHO_C" >&6 3962 $as_echo_n "(cached) " >&6
3470else 3963else
3471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3472for as_dir in $PATH 3965for as_dir in $PATH
3473do 3966do
3474 IFS=$as_save_IFS 3967 IFS=$as_save_IFS
3475 test -z "$as_dir" && as_dir=. 3968 test -z "$as_dir" && as_dir=.
3476 # Account for people who put trailing slashes in PATH elements. 3969 # Account for people who put trailing slashes in PATH elements.
3477case $as_dir/ in 3970case $as_dir/ in #((
3478 ./ | .// | /cC/* | \ 3971 ./ | .// | /[cC]/* | \
3479 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3972 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3480 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3973 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3481 /usr/ucb/* ) ;; 3974 /usr/ucb/* ) ;;
3482 *) 3975 *)
3483 # OSF1 and SCO ODT 3.0 have their own names for install. 3976 # OSF1 and SCO ODT 3.0 have their own names for install.
3484 # Don't use installbsd from OSF since it installs stuff as root 3977 # Don't use installbsd from OSF since it installs stuff as root
3485 # by default. 3978 # by default.
3493 elif test $ac_prog = install && 3986 elif test $ac_prog = install &&
3494 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3987 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3495 # program-specific install script used by HP pwplus--don't use. 3988 # program-specific install script used by HP pwplus--don't use.
3496 : 3989 :
3497 else 3990 else
3991 rm -rf conftest.one conftest.two conftest.dir
3992 echo one > conftest.one
3993 echo two > conftest.two
3994 mkdir conftest.dir
3995 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3996 test -s conftest.one && test -s conftest.two &&
3997 test -s conftest.dir/conftest.one &&
3998 test -s conftest.dir/conftest.two
3999 then
3498 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 4000 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3499 break 3 4001 break 3
4002 fi
3500 fi 4003 fi
3501 fi 4004 fi
3502 done 4005 done
3503 done 4006 done
3504 ;; 4007 ;;
3505esac 4008esac
4009
3506done 4010 done
3507IFS=$as_save_IFS 4011IFS=$as_save_IFS
3508 4012
4013rm -rf conftest.one conftest.two conftest.dir
3509 4014
3510fi 4015fi
3511 if test "${ac_cv_path_install+set}" = set; then 4016 if test "${ac_cv_path_install+set}" = set; then
3512 INSTALL=$ac_cv_path_install 4017 INSTALL=$ac_cv_path_install
3513 else 4018 else
3516 # break other packages using the cache if that directory is 4021 # break other packages using the cache if that directory is
3517 # removed, or if the value is a relative name. 4022 # removed, or if the value is a relative name.
3518 INSTALL=$ac_install_sh 4023 INSTALL=$ac_install_sh
3519 fi 4024 fi
3520fi 4025fi
3521{ echo "$as_me:$LINENO: result: $INSTALL" >&5 4026{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3522echo "${ECHO_T}$INSTALL" >&6; } 4027$as_echo "$INSTALL" >&6; }
3523 4028
3524# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 4029# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3525# It thinks the first close brace ends the variable substitution. 4030# It thinks the first close brace ends the variable substitution.
3526test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 4031test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3527 4032
3530test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 4035test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3531 4036
3532 4037
3533 4038
3534 4039
3535{ echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3536echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } 4041$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3537if test "${ac_cv_path_GREP+set}" = set; then 4042if ${ac_cv_path_GREP+:} false; then :
3538 echo $ECHO_N "(cached) $ECHO_C" >&6 4043 $as_echo_n "(cached) " >&6
3539else 4044else
3540 # Extract the first word of "grep ggrep" to use in msg output
3541if test -z "$GREP"; then 4045 if test -z "$GREP"; then
3542set dummy grep ggrep; ac_prog_name=$2
3543if test "${ac_cv_path_GREP+set}" = set; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545else
3546 ac_path_GREP_found=false 4046 ac_path_GREP_found=false
3547# Loop through the user's path and test for each of PROGNAME-LIST 4047 # Loop through the user's path and test for each of PROGNAME-LIST
3548as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3549for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4049for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3550do 4050do
3551 IFS=$as_save_IFS 4051 IFS=$as_save_IFS
3552 test -z "$as_dir" && as_dir=. 4052 test -z "$as_dir" && as_dir=.
3553 for ac_prog in grep ggrep; do 4053 for ac_prog in grep ggrep; do
3554 for ac_exec_ext in '' $ac_executable_extensions; do 4054 for ac_exec_ext in '' $ac_executable_extensions; do
3555 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4055 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3556 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4056 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3557 # Check for GNU ac_path_GREP and select it if it is found. 4057# Check for GNU ac_path_GREP and select it if it is found.
3558 # Check for GNU $ac_path_GREP 4058 # Check for GNU $ac_path_GREP
3559case `"$ac_path_GREP" --version 2>&1` in 4059case `"$ac_path_GREP" --version 2>&1` in
3560*GNU*) 4060*GNU*)
3561 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4061 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3562*) 4062*)
3563 ac_count=0 4063 ac_count=0
3564 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4064 $as_echo_n 0123456789 >"conftest.in"
3565 while : 4065 while :
3566 do 4066 do
3567 cat "conftest.in" "conftest.in" >"conftest.tmp" 4067 cat "conftest.in" "conftest.in" >"conftest.tmp"
3568 mv "conftest.tmp" "conftest.in" 4068 mv "conftest.tmp" "conftest.in"
3569 cp "conftest.in" "conftest.nl" 4069 cp "conftest.in" "conftest.nl"
3570 echo 'GREP' >> "conftest.nl" 4070 $as_echo 'GREP' >> "conftest.nl"
3571 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4071 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4072 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3573 ac_count=`expr $ac_count + 1` 4073 as_fn_arith $ac_count + 1 && ac_count=$as_val
3574 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4074 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3575 # Best one so far, save it but keep looking for a better one 4075 # Best one so far, save it but keep looking for a better one
3576 ac_cv_path_GREP="$ac_path_GREP" 4076 ac_cv_path_GREP="$ac_path_GREP"
3577 ac_path_GREP_max=$ac_count 4077 ac_path_GREP_max=$ac_count
3578 fi 4078 fi
3580 test $ac_count -gt 10 && break 4080 test $ac_count -gt 10 && break
3581 done 4081 done
3582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4082 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3583esac 4083esac
3584 4084
3585
3586 $ac_path_GREP_found && break 3 4085 $ac_path_GREP_found && break 3
4086 done
3587 done 4087 done
3588done 4088 done
3589
3590done
3591IFS=$as_save_IFS 4089IFS=$as_save_IFS
3592
3593
3594fi
3595
3596GREP="$ac_cv_path_GREP"
3597if test -z "$GREP"; then 4090 if test -z "$ac_cv_path_GREP"; then
3598 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4091 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3599echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} 4092 fi
3600 { (exit 1); exit 1; }; }
3601fi
3602
3603else 4093else
3604 ac_cv_path_GREP=$GREP 4094 ac_cv_path_GREP=$GREP
3605fi 4095fi
3606 4096
3607
3608fi 4097fi
3609{ echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3610echo "${ECHO_T}$ac_cv_path_GREP" >&6; } 4099$as_echo "$ac_cv_path_GREP" >&6; }
3611 GREP="$ac_cv_path_GREP" 4100 GREP="$ac_cv_path_GREP"
3612 4101
3613 4102
3614{ echo "$as_me:$LINENO: checking for egrep" >&5 4103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3615echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } 4104$as_echo_n "checking for egrep... " >&6; }
3616if test "${ac_cv_path_EGREP+set}" = set; then 4105if ${ac_cv_path_EGREP+:} false; then :
3617 echo $ECHO_N "(cached) $ECHO_C" >&6 4106 $as_echo_n "(cached) " >&6
3618else 4107else
3619 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4108 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3620 then ac_cv_path_EGREP="$GREP -E" 4109 then ac_cv_path_EGREP="$GREP -E"
3621 else 4110 else
3622 # Extract the first word of "egrep" to use in msg output
3623if test -z "$EGREP"; then 4111 if test -z "$EGREP"; then
3624set dummy egrep; ac_prog_name=$2
3625if test "${ac_cv_path_EGREP+set}" = set; then
3626 echo $ECHO_N "(cached) $ECHO_C" >&6
3627else
3628 ac_path_EGREP_found=false 4112 ac_path_EGREP_found=false
3629# Loop through the user's path and test for each of PROGNAME-LIST 4113 # Loop through the user's path and test for each of PROGNAME-LIST
3630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4115for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3632do 4116do
3633 IFS=$as_save_IFS 4117 IFS=$as_save_IFS
3634 test -z "$as_dir" && as_dir=. 4118 test -z "$as_dir" && as_dir=.
3635 for ac_prog in egrep; do 4119 for ac_prog in egrep; do
3636 for ac_exec_ext in '' $ac_executable_extensions; do 4120 for ac_exec_ext in '' $ac_executable_extensions; do
3637 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4121 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3638 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4122 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3639 # Check for GNU ac_path_EGREP and select it if it is found. 4123# Check for GNU ac_path_EGREP and select it if it is found.
3640 # Check for GNU $ac_path_EGREP 4124 # Check for GNU $ac_path_EGREP
3641case `"$ac_path_EGREP" --version 2>&1` in 4125case `"$ac_path_EGREP" --version 2>&1` in
3642*GNU*) 4126*GNU*)
3643 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4127 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3644*) 4128*)
3645 ac_count=0 4129 ac_count=0
3646 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" 4130 $as_echo_n 0123456789 >"conftest.in"
3647 while : 4131 while :
3648 do 4132 do
3649 cat "conftest.in" "conftest.in" >"conftest.tmp" 4133 cat "conftest.in" "conftest.in" >"conftest.tmp"
3650 mv "conftest.tmp" "conftest.in" 4134 mv "conftest.tmp" "conftest.in"
3651 cp "conftest.in" "conftest.nl" 4135 cp "conftest.in" "conftest.nl"
3652 echo 'EGREP' >> "conftest.nl" 4136 $as_echo 'EGREP' >> "conftest.nl"
3653 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4137 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4138 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3655 ac_count=`expr $ac_count + 1` 4139 as_fn_arith $ac_count + 1 && ac_count=$as_val
3656 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4140 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3657 # Best one so far, save it but keep looking for a better one 4141 # Best one so far, save it but keep looking for a better one
3658 ac_cv_path_EGREP="$ac_path_EGREP" 4142 ac_cv_path_EGREP="$ac_path_EGREP"
3659 ac_path_EGREP_max=$ac_count 4143 ac_path_EGREP_max=$ac_count
3660 fi 4144 fi
3662 test $ac_count -gt 10 && break 4146 test $ac_count -gt 10 && break
3663 done 4147 done
3664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4148 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3665esac 4149esac
3666 4150
3667
3668 $ac_path_EGREP_found && break 3 4151 $ac_path_EGREP_found && break 3
4152 done
3669 done 4153 done
4154 done
4155IFS=$as_save_IFS
4156 if test -z "$ac_cv_path_EGREP"; then
4157 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4158 fi
4159else
4160 ac_cv_path_EGREP=$EGREP
4161fi
4162
4163 fi
4164fi
4165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4166$as_echo "$ac_cv_path_EGREP" >&6; }
4167 EGREP="$ac_cv_path_EGREP"
4168
4169
4170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4171$as_echo_n "checking for ANSI C header files... " >&6; }
4172if ${ac_cv_header_stdc+:} false; then :
4173 $as_echo_n "(cached) " >&6
4174else
4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4176/* end confdefs.h. */
4177#include <stdlib.h>
4178#include <stdarg.h>
4179#include <string.h>
4180#include <float.h>
4181
4182int
4183main ()
4184{
4185
4186 ;
4187 return 0;
4188}
4189_ACEOF
4190if ac_fn_c_try_compile "$LINENO"; then :
4191 ac_cv_header_stdc=yes
4192else
4193 ac_cv_header_stdc=no
4194fi
4195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4196
4197if test $ac_cv_header_stdc = yes; then
4198 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4200/* end confdefs.h. */
4201#include <string.h>
4202
4203_ACEOF
4204if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4205 $EGREP "memchr" >/dev/null 2>&1; then :
4206
4207else
4208 ac_cv_header_stdc=no
4209fi
4210rm -f conftest*
4211
4212fi
4213
4214if test $ac_cv_header_stdc = yes; then
4215 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4217/* end confdefs.h. */
4218#include <stdlib.h>
4219
4220_ACEOF
4221if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4222 $EGREP "free" >/dev/null 2>&1; then :
4223
4224else
4225 ac_cv_header_stdc=no
4226fi
4227rm -f conftest*
4228
4229fi
4230
4231if test $ac_cv_header_stdc = yes; then
4232 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4233 if test "$cross_compiling" = yes; then :
4234 :
4235else
4236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4237/* end confdefs.h. */
4238#include <ctype.h>
4239#include <stdlib.h>
4240#if ((' ' & 0x0FF) == 0x020)
4241# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4242# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4243#else
4244# define ISLOWER(c) \
4245 (('a' <= (c) && (c) <= 'i') \
4246 || ('j' <= (c) && (c) <= 'r') \
4247 || ('s' <= (c) && (c) <= 'z'))
4248# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4249#endif
4250
4251#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4252int
4253main ()
4254{
4255 int i;
4256 for (i = 0; i < 256; i++)
4257 if (XOR (islower (i), ISLOWER (i))
4258 || toupper (i) != TOUPPER (i))
4259 return 2;
4260 return 0;
4261}
4262_ACEOF
4263if ac_fn_c_try_run "$LINENO"; then :
4264
4265else
4266 ac_cv_header_stdc=no
4267fi
4268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4269 conftest.$ac_objext conftest.beam conftest.$ac_ext
4270fi
4271
4272fi
4273fi
4274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4275$as_echo "$ac_cv_header_stdc" >&6; }
4276if test $ac_cv_header_stdc = yes; then
4277
4278$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4279
4280fi
4281
4282# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4283for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4284 inttypes.h stdint.h unistd.h
4285do :
4286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4287ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4288"
4289if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4290 cat >>confdefs.h <<_ACEOF
4291#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4292_ACEOF
4293
4294fi
4295
3670done 4296done
3671 4297
3672done
3673IFS=$as_save_IFS
3674 4298
3675 4299
3676fi 4300 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3677 4301if test "x$ac_cv_header_minix_config_h" = xyes; then :
3678EGREP="$ac_cv_path_EGREP" 4302 MINIX=yes
3679if test -z "$EGREP"; then
3680 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3681echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3682 { (exit 1); exit 1; }; }
3683fi
3684
3685else 4303else
3686 ac_cv_path_EGREP=$EGREP 4304 MINIX=
3687fi 4305fi
3688 4306
3689 4307
4308 if test "$MINIX" = yes; then
4309
4310$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4311
4312
4313$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4314
4315
4316$as_echo "#define _MINIX 1" >>confdefs.h
4317
3690 fi 4318 fi
3691fi
3692{ echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3693echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3694 EGREP="$ac_cv_path_EGREP"
3695 4319
3696 4320
3697 4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3698{ echo "$as_me:$LINENO: checking for AIX" >&5 4322$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3699echo $ECHO_N "checking for AIX... $ECHO_C" >&6; } 4323if ${ac_cv_safe_to_define___extensions__+:} false; then :
3700cat >conftest.$ac_ext <<_ACEOF 4324 $as_echo_n "(cached) " >&6
3701/* confdefs.h. */ 4325else
3702_ACEOF
3703cat confdefs.h >>conftest.$ac_ext 4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3704cat >>conftest.$ac_ext <<_ACEOF
3705/* end confdefs.h. */ 4327/* end confdefs.h. */
3706#ifdef _AIX
3707 yes
3708#endif
3709 4328
3710_ACEOF 4329# define __EXTENSIONS__ 1
3711if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4330 $ac_includes_default
3712 $EGREP "yes" >/dev/null 2>&1; then 4331int
3713 { echo "$as_me:$LINENO: result: yes" >&5 4332main ()
3714echo "${ECHO_T}yes" >&6; } 4333{
3715cat >>confdefs.h <<\_ACEOF
3716#define _ALL_SOURCE 1
3717_ACEOF
3718 4334
4335 ;
4336 return 0;
4337}
4338_ACEOF
4339if ac_fn_c_try_compile "$LINENO"; then :
4340 ac_cv_safe_to_define___extensions__=yes
3719else 4341else
3720 { echo "$as_me:$LINENO: result: no" >&5 4342 ac_cv_safe_to_define___extensions__=no
3721echo "${ECHO_T}no" >&6; }
3722fi 4343fi
3723rm -f conftest* 4344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345fi
4346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4347$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4348 test $ac_cv_safe_to_define___extensions__ = yes &&
4349 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3724 4350
4351 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3725 4352
4353 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4354
4355 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4356
4357 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4358
4359
4360
4361
3726{ echo "$as_me:$LINENO: checking for library containing strerror" >&5 4362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
3727echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6; } 4363$as_echo_n "checking for library containing strerror... " >&6; }
3728if test "${ac_cv_search_strerror+set}" = set; then 4364if ${ac_cv_search_strerror+:} false; then :
3729 echo $ECHO_N "(cached) $ECHO_C" >&6 4365 $as_echo_n "(cached) " >&6
3730else 4366else
3731 ac_func_search_save_LIBS=$LIBS 4367 ac_func_search_save_LIBS=$LIBS
3732cat >conftest.$ac_ext <<_ACEOF
3733/* confdefs.h. */
3734_ACEOF
3735cat confdefs.h >>conftest.$ac_ext 4368cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3736cat >>conftest.$ac_ext <<_ACEOF
3737/* end confdefs.h. */ 4369/* end confdefs.h. */
3738 4370
3739/* Override any GCC internal prototype to avoid an error. 4371/* Override any GCC internal prototype to avoid an error.
3740 Use char because int might match the return type of a GCC 4372 Use char because int might match the return type of a GCC
3741 builtin and then its argument prototype would still apply. */ 4373 builtin and then its argument prototype would still apply. */
3756 ac_res="none required" 4388 ac_res="none required"
3757 else 4389 else
3758 ac_res=-l$ac_lib 4390 ac_res=-l$ac_lib
3759 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 4391 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3760 fi 4392 fi
3761 rm -f conftest.$ac_objext conftest$ac_exeext 4393 if ac_fn_c_try_link "$LINENO"; then :
3762if { (ac_try="$ac_link"
3763case "(($ac_try" in
3764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3765 *) ac_try_echo=$ac_try;;
3766esac
3767eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3768 (eval "$ac_link") 2>conftest.er1
3769 ac_status=$?
3770 grep -v '^ *+' conftest.er1 >conftest.err
3771 rm -f conftest.er1
3772 cat conftest.err >&5
3773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3774 (exit $ac_status); } && {
3775 test -z "$ac_c_werror_flag" ||
3776 test ! -s conftest.err
3777 } && test -s conftest$ac_exeext &&
3778 $as_test_x conftest$ac_exeext; then
3779 ac_cv_search_strerror=$ac_res 4394 ac_cv_search_strerror=$ac_res
3780else
3781 echo "$as_me: failed program was:" >&5
3782sed 's/^/| /' conftest.$ac_ext >&5
3783
3784
3785fi 4395fi
3786
3787rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4396rm -f core conftest.err conftest.$ac_objext \
3788 conftest$ac_exeext 4397 conftest$ac_exeext
3789 if test "${ac_cv_search_strerror+set}" = set; then 4398 if ${ac_cv_search_strerror+:} false; then :
3790 break 4399 break
3791fi 4400fi
3792done 4401done
3793if test "${ac_cv_search_strerror+set}" = set; then 4402if ${ac_cv_search_strerror+:} false; then :
3794 : 4403
3795else 4404else
3796 ac_cv_search_strerror=no 4405 ac_cv_search_strerror=no
3797fi 4406fi
3798rm conftest.$ac_ext 4407rm conftest.$ac_ext
3799LIBS=$ac_func_search_save_LIBS 4408LIBS=$ac_func_search_save_LIBS
3800fi 4409fi
3801{ echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 4410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
3802echo "${ECHO_T}$ac_cv_search_strerror" >&6; } 4411$as_echo "$ac_cv_search_strerror" >&6; }
3803ac_res=$ac_cv_search_strerror 4412ac_res=$ac_cv_search_strerror
3804if test "$ac_res" != no; then 4413if test "$ac_res" != no; then :
3805 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 4414 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3806 4415
3807fi 4416fi
3808 4417
3809ac_ext=cpp 4418ac_ext=cpp
3812ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4421ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3813ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4422ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3814 4423
3815 4424
3816if test x$GCC = xyes && test x$GXX = xyes; then 4425if test x$GCC = xyes && test x$GXX = xyes; then
3817 { echo "$as_me:$LINENO: checking for working libsupc++" >&5 4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
3818echo $ECHO_N "checking for working libsupc++... $ECHO_C" >&6; } 4427$as_echo_n "checking for working libsupc++... " >&6; }
3819 save_CXX="$CXX" 4428 save_CXX="$CXX"
3820 save_LIBS="$LIBS" 4429 save_LIBS="$LIBS"
3821 CXX="$CC" 4430 CXX="$CC"
3822 LIBS="$LIBS -lsupc++" 4431 LIBS="$LIBS -lsupc++"
3823 LINKER="$CC" 4432 LINKER="$CC"
3824 4433
3825cat >conftest.$ac_ext <<_ACEOF
3826/* confdefs.h. */
3827_ACEOF
3828cat confdefs.h >>conftest.$ac_ext 4434cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829cat >>conftest.$ac_ext <<_ACEOF
3830/* end confdefs.h. */ 4435/* end confdefs.h. */
3831struct test { }; void f() try { throw new test; } catch (...) { throw; } 4436struct test { }; void f() try { throw new test; } catch (...) { throw; }
3832int 4437int
3833main () 4438main ()
3834{ 4439{
3835 4440
3836 ; 4441 ;
3837 return 0; 4442 return 0;
3838} 4443}
3839_ACEOF 4444_ACEOF
3840rm -f conftest.$ac_objext conftest$ac_exeext 4445if ac_fn_cxx_try_link "$LINENO"; then :
3841if { (ac_try="$ac_link"
3842case "(($ac_try" in
3843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3844 *) ac_try_echo=$ac_try;;
3845esac
3846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3847 (eval "$ac_link") 2>conftest.er1
3848 ac_status=$?
3849 grep -v '^ *+' conftest.er1 >conftest.err
3850 rm -f conftest.er1
3851 cat conftest.err >&5
3852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3853 (exit $ac_status); } && {
3854 test -z "$ac_cxx_werror_flag" ||
3855 test ! -s conftest.err
3856 } && test -s conftest$ac_exeext &&
3857 $as_test_x conftest$ac_exeext; then
3858 { echo "$as_me:$LINENO: result: ok" >&5 4446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
3859echo "${ECHO_T}ok" >&6; } 4447$as_echo "ok" >&6; }
3860else 4448else
3861 echo "$as_me: failed program was:" >&5
3862sed 's/^/| /' conftest.$ac_ext >&5
3863 4449
3864
3865 { echo "$as_me:$LINENO: result: no, making everything bigger and slower" >&5 4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
3866echo "${ECHO_T}no, making everything bigger and slower" >&6; } 4451$as_echo "no, making everything bigger and slower" >&6; }
3867 LIBS="$save_LIBS" 4452 LIBS="$save_LIBS"
3868 LINKER="$save_CXX" 4453 LINKER="$save_CXX"
3869 4454
3870 4455
3871fi 4456fi
3872
3873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4457rm -f core conftest.err conftest.$ac_objext \
3874 conftest$ac_exeext conftest.$ac_ext 4458 conftest$ac_exeext conftest.$ac_ext
3875 CXX="$save_CXX" 4459 CXX="$save_CXX"
3876fi 4460fi
3877LINKER=$LINKER 4461LINKER=$LINKER
3878 4462
3879 4463
3880if test -z "$orig_CXXFLAGS"; then 4464if test -z "$orig_CXXFLAGS"; then
3881 if test x$GCC = xyes && test "x$GXX" = xyes; then 4465 if test x$GCC = xyes && test "x$GXX" = xyes; then
3882 CXXFLAGS="-g -O3 -fno-threadsafe-statics -fno-enforce-eh-specs" 4466 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
3883 cat >conftest.$ac_ext <<_ACEOF
3884/* confdefs.h. */
3885_ACEOF
3886cat confdefs.h >>conftest.$ac_ext 4467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3887cat >>conftest.$ac_ext <<_ACEOF
3888/* end confdefs.h. */ 4468/* end confdefs.h. */
3889 4469
3890int 4470int
3891main () 4471main ()
3892{ 4472{
3893 4473
3894 ; 4474 ;
3895 return 0; 4475 return 0;
3896} 4476}
3897_ACEOF 4477_ACEOF
3898rm -f conftest.$ac_objext 4478if ac_fn_cxx_try_compile "$LINENO"; then :
3899if { (ac_try="$ac_compile"
3900case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903esac
3904eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_compile") 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } && {
3912 test -z "$ac_cxx_werror_flag" ||
3913 test ! -s conftest.err
3914 } && test -s conftest.$ac_objext; then
3915 :
3916else
3917 echo "$as_me: failed program was:" >&5
3918sed 's/^/| /' conftest.$ac_ext >&5
3919 4479
4480else
3920 CXXFLAGS="-g -O3" 4481 CXXFLAGS="-g -O3"
3921fi 4482fi
3922
3923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4483rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 else 4484 else
3925 CXXFLAGS="-O" 4485 CXXFLAGS="-O"
3926 fi 4486 fi
3927 CFLAGS="$CXXFLAGS" 4487 CFLAGS="$CXXFLAGS"
3928fi 4488fi
3929 4489
3930
3931cat >>confdefs.h <<\_ACEOF
3932#define _GNU_SOURCE 1
3933_ACEOF
3934
3935
3936case $host in 4490case $host in
3937 *-*-solaris* ) 4491 *-*-solaris* )
3938 4492
3939cat >>confdefs.h <<\_ACEOF 4493$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
3940#define _XOPEN_SOURCE 500
3941_ACEOF
3942 4494
3943 ;; 4495 ;;
3944esac 4496esac
3945 4497
3946 4498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
3947{ echo "$as_me:$LINENO: checking for setlocale" >&5 4499$as_echo_n "checking for library containing setlocale... " >&6; }
3948echo $ECHO_N "checking for setlocale... $ECHO_C" >&6; } 4500if ${ac_cv_search_setlocale+:} false; then :
3949if test "${ac_cv_func_setlocale+set}" = set; then 4501 $as_echo_n "(cached) " >&6
3950 echo $ECHO_N "(cached) $ECHO_C" >&6
3951else
3952 cat >conftest.$ac_ext <<_ACEOF
3953/* confdefs.h. */
3954_ACEOF
3955cat confdefs.h >>conftest.$ac_ext
3956cat >>conftest.$ac_ext <<_ACEOF
3957/* end confdefs.h. */
3958/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3960#define setlocale innocuous_setlocale
3961
3962/* System header to define __stub macros and hopefully few prototypes,
3963 which can conflict with char setlocale (); below.
3964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3965 <limits.h> exists even on freestanding compilers. */
3966
3967#ifdef __STDC__
3968# include <limits.h>
3969#else 4502else
3970# include <assert.h> 4503 ac_func_search_save_LIBS=$LIBS
3971#endif
3972
3973#undef setlocale
3974
3975/* Override any GCC internal prototype to avoid an error.
3976 Use char because int might match the return type of a GCC
3977 builtin and then its argument prototype would still apply. */
3978#ifdef __cplusplus
3979extern "C"
3980#endif
3981char setlocale ();
3982/* The GNU C library defines this for functions which it implements
3983 to always fail with ENOSYS. Some functions are actually named
3984 something starting with __ and the normal name is an alias. */
3985#if defined __stub_setlocale || defined __stub___setlocale
3986choke me
3987#endif
3988
3989int
3990main ()
3991{
3992return setlocale ();
3993 ;
3994 return 0;
3995}
3996_ACEOF
3997rm -f conftest.$ac_objext conftest$ac_exeext
3998if { (ac_try="$ac_link"
3999case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002esac
4003eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4004 (eval "$ac_link") 2>conftest.er1
4005 ac_status=$?
4006 grep -v '^ *+' conftest.er1 >conftest.err
4007 rm -f conftest.er1
4008 cat conftest.err >&5
4009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4010 (exit $ac_status); } && {
4011 test -z "$ac_cxx_werror_flag" ||
4012 test ! -s conftest.err
4013 } && test -s conftest$ac_exeext &&
4014 $as_test_x conftest$ac_exeext; then
4015 ac_cv_func_setlocale=yes
4016else
4017 echo "$as_me: failed program was:" >&5
4018sed 's/^/| /' conftest.$ac_ext >&5
4019
4020 ac_cv_func_setlocale=no
4021fi
4022
4023rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4024 conftest$ac_exeext conftest.$ac_ext
4025fi
4026{ echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5
4027echo "${ECHO_T}$ac_cv_func_setlocale" >&6; }
4028if test $ac_cv_func_setlocale = yes; then
4029 :
4030else
4031 { echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
4032echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6; }
4033if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
4034 echo $ECHO_N "(cached) $ECHO_C" >&6
4035else
4036 ac_check_lib_save_LIBS=$LIBS
4037LIBS="-lxpg4 $LIBS"
4038cat >conftest.$ac_ext <<_ACEOF
4039/* confdefs.h. */
4040_ACEOF
4041cat confdefs.h >>conftest.$ac_ext 4504cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4042cat >>conftest.$ac_ext <<_ACEOF
4043/* end confdefs.h. */ 4505/* end confdefs.h. */
4044 4506
4045/* Override any GCC internal prototype to avoid an error. 4507/* Override any GCC internal prototype to avoid an error.
4046 Use char because int might match the return type of a GCC 4508 Use char because int might match the return type of a GCC
4047 builtin and then its argument prototype would still apply. */ 4509 builtin and then its argument prototype would still apply. */
4055return setlocale (); 4517return setlocale ();
4056 ; 4518 ;
4057 return 0; 4519 return 0;
4058} 4520}
4059_ACEOF 4521_ACEOF
4060rm -f conftest.$ac_objext conftest$ac_exeext 4522for ac_lib in '' xpg4; do
4061if { (ac_try="$ac_link" 4523 if test -z "$ac_lib"; then
4062case "(($ac_try" in 4524 ac_res="none required"
4063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4064 *) ac_try_echo=$ac_try;;
4065esac
4066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4067 (eval "$ac_link") 2>conftest.er1
4068 ac_status=$?
4069 grep -v '^ *+' conftest.er1 >conftest.err
4070 rm -f conftest.er1
4071 cat conftest.err >&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); } && {
4074 test -z "$ac_cxx_werror_flag" ||
4075 test ! -s conftest.err
4076 } && test -s conftest$ac_exeext &&
4077 $as_test_x conftest$ac_exeext; then
4078 ac_cv_lib_xpg4_setlocale=yes
4079else 4525 else
4080 echo "$as_me: failed program was:" >&5 4526 ac_res=-l$ac_lib
4081sed 's/^/| /' conftest.$ac_ext >&5 4527 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4082 4528 fi
4083 ac_cv_lib_xpg4_setlocale=no 4529 if ac_fn_cxx_try_link "$LINENO"; then :
4530 ac_cv_search_setlocale=$ac_res
4084fi 4531fi
4085
4086rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4532rm -f core conftest.err conftest.$ac_objext \
4087 conftest$ac_exeext conftest.$ac_ext 4533 conftest$ac_exeext
4088LIBS=$ac_check_lib_save_LIBS 4534 if ${ac_cv_search_setlocale+:} false; then :
4535 break
4089fi 4536fi
4090{ echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5 4537done
4091echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6; } 4538if ${ac_cv_search_setlocale+:} false; then :
4092if test $ac_cv_lib_xpg4_setlocale = yes; then
4093 LIBS="$LIBS -lxpg4"
4094fi
4095 4539
4096fi
4097
4098
4099{ echo "$as_me:$LINENO: checking for gethostbyname" >&5
4100echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
4101if test "${ac_cv_func_gethostbyname+set}" = set; then
4102 echo $ECHO_N "(cached) $ECHO_C" >&6
4103else
4104 cat >conftest.$ac_ext <<_ACEOF
4105/* confdefs.h. */
4106_ACEOF
4107cat confdefs.h >>conftest.$ac_ext
4108cat >>conftest.$ac_ext <<_ACEOF
4109/* end confdefs.h. */
4110/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
4111 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4112#define gethostbyname innocuous_gethostbyname
4113
4114/* System header to define __stub macros and hopefully few prototypes,
4115 which can conflict with char gethostbyname (); below.
4116 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4117 <limits.h> exists even on freestanding compilers. */
4118
4119#ifdef __STDC__
4120# include <limits.h>
4121#else 4540else
4122# include <assert.h> 4541 ac_cv_search_setlocale=no
4123#endif
4124
4125#undef gethostbyname
4126
4127/* Override any GCC internal prototype to avoid an error.
4128 Use char because int might match the return type of a GCC
4129 builtin and then its argument prototype would still apply. */
4130#ifdef __cplusplus
4131extern "C"
4132#endif
4133char gethostbyname ();
4134/* The GNU C library defines this for functions which it implements
4135 to always fail with ENOSYS. Some functions are actually named
4136 something starting with __ and the normal name is an alias. */
4137#if defined __stub_gethostbyname || defined __stub___gethostbyname
4138choke me
4139#endif
4140
4141int
4142main ()
4143{
4144return gethostbyname ();
4145 ;
4146 return 0;
4147}
4148_ACEOF
4149rm -f conftest.$ac_objext conftest$ac_exeext
4150if { (ac_try="$ac_link"
4151case "(($ac_try" in
4152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4153 *) ac_try_echo=$ac_try;;
4154esac
4155eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4156 (eval "$ac_link") 2>conftest.er1
4157 ac_status=$?
4158 grep -v '^ *+' conftest.er1 >conftest.err
4159 rm -f conftest.er1
4160 cat conftest.err >&5
4161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4162 (exit $ac_status); } && {
4163 test -z "$ac_cxx_werror_flag" ||
4164 test ! -s conftest.err
4165 } && test -s conftest$ac_exeext &&
4166 $as_test_x conftest$ac_exeext; then
4167 ac_cv_func_gethostbyname=yes
4168else
4169 echo "$as_me: failed program was:" >&5
4170sed 's/^/| /' conftest.$ac_ext >&5
4171
4172 ac_cv_func_gethostbyname=no
4173fi 4542fi
4174 4543rm conftest.$ac_ext
4175rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4544LIBS=$ac_func_search_save_LIBS
4176 conftest$ac_exeext conftest.$ac_ext
4177fi 4545fi
4178{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 4546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4179echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } 4547$as_echo "$ac_cv_search_setlocale" >&6; }
4180if test $ac_cv_func_gethostbyname = yes; then 4548ac_res=$ac_cv_search_setlocale
4181 : 4549if test "$ac_res" != no; then :
4550 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4551
4552fi
4553
4554
4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4556$as_echo_n "checking for library containing gethostbyname... " >&6; }
4557if ${ac_cv_search_gethostbyname+:} false; then :
4558 $as_echo_n "(cached) " >&6
4182else 4559else
4183 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 4560 ac_func_search_save_LIBS=$LIBS
4184echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; }
4185if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
4186 echo $ECHO_N "(cached) $ECHO_C" >&6
4187else
4188 ac_check_lib_save_LIBS=$LIBS
4189LIBS="-lnsl $LIBS"
4190cat >conftest.$ac_ext <<_ACEOF
4191/* confdefs.h. */
4192_ACEOF
4193cat confdefs.h >>conftest.$ac_ext 4561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194cat >>conftest.$ac_ext <<_ACEOF
4195/* end confdefs.h. */ 4562/* end confdefs.h. */
4196 4563
4197/* Override any GCC internal prototype to avoid an error. 4564/* Override any GCC internal prototype to avoid an error.
4198 Use char because int might match the return type of a GCC 4565 Use char because int might match the return type of a GCC
4199 builtin and then its argument prototype would still apply. */ 4566 builtin and then its argument prototype would still apply. */
4207return gethostbyname (); 4574return gethostbyname ();
4208 ; 4575 ;
4209 return 0; 4576 return 0;
4210} 4577}
4211_ACEOF 4578_ACEOF
4212rm -f conftest.$ac_objext conftest$ac_exeext 4579for ac_lib in '' nsl; do
4213if { (ac_try="$ac_link" 4580 if test -z "$ac_lib"; then
4214case "(($ac_try" in 4581 ac_res="none required"
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217esac
4218eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4219 (eval "$ac_link") 2>conftest.er1
4220 ac_status=$?
4221 grep -v '^ *+' conftest.er1 >conftest.err
4222 rm -f conftest.er1
4223 cat conftest.err >&5
4224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4225 (exit $ac_status); } && {
4226 test -z "$ac_cxx_werror_flag" ||
4227 test ! -s conftest.err
4228 } && test -s conftest$ac_exeext &&
4229 $as_test_x conftest$ac_exeext; then
4230 ac_cv_lib_nsl_gethostbyname=yes
4231else 4582 else
4232 echo "$as_me: failed program was:" >&5 4583 ac_res=-l$ac_lib
4233sed 's/^/| /' conftest.$ac_ext >&5 4584 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4234 4585 fi
4235 ac_cv_lib_nsl_gethostbyname=no 4586 if ac_fn_cxx_try_link "$LINENO"; then :
4587 ac_cv_search_gethostbyname=$ac_res
4236fi 4588fi
4237
4238rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4589rm -f core conftest.err conftest.$ac_objext \
4239 conftest$ac_exeext conftest.$ac_ext 4590 conftest$ac_exeext
4240LIBS=$ac_check_lib_save_LIBS 4591 if ${ac_cv_search_gethostbyname+:} false; then :
4592 break
4241fi 4593fi
4242{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 4594done
4243echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 4595if ${ac_cv_search_gethostbyname+:} false; then :
4244if test $ac_cv_lib_nsl_gethostbyname = yes; then
4245 LIBS="$LIBS -lnsl"
4246fi
4247 4596
4248fi
4249
4250{ echo "$as_me:$LINENO: checking for socket" >&5
4251echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
4252if test "${ac_cv_func_socket+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4254else
4255 cat >conftest.$ac_ext <<_ACEOF
4256/* confdefs.h. */
4257_ACEOF
4258cat confdefs.h >>conftest.$ac_ext
4259cat >>conftest.$ac_ext <<_ACEOF
4260/* end confdefs.h. */
4261/* Define socket to an innocuous variant, in case <limits.h> declares socket.
4262 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4263#define socket innocuous_socket
4264
4265/* System header to define __stub macros and hopefully few prototypes,
4266 which can conflict with char socket (); below.
4267 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4268 <limits.h> exists even on freestanding compilers. */
4269
4270#ifdef __STDC__
4271# include <limits.h>
4272#else 4597else
4273# include <assert.h> 4598 ac_cv_search_gethostbyname=no
4274#endif
4275
4276#undef socket
4277
4278/* Override any GCC internal prototype to avoid an error.
4279 Use char because int might match the return type of a GCC
4280 builtin and then its argument prototype would still apply. */
4281#ifdef __cplusplus
4282extern "C"
4283#endif
4284char socket ();
4285/* The GNU C library defines this for functions which it implements
4286 to always fail with ENOSYS. Some functions are actually named
4287 something starting with __ and the normal name is an alias. */
4288#if defined __stub_socket || defined __stub___socket
4289choke me
4290#endif
4291
4292int
4293main ()
4294{
4295return socket ();
4296 ;
4297 return 0;
4298}
4299_ACEOF
4300rm -f conftest.$ac_objext conftest$ac_exeext
4301if { (ac_try="$ac_link"
4302case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305esac
4306eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_link") 2>conftest.er1
4308 ac_status=$?
4309 grep -v '^ *+' conftest.er1 >conftest.err
4310 rm -f conftest.er1
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } && {
4314 test -z "$ac_cxx_werror_flag" ||
4315 test ! -s conftest.err
4316 } && test -s conftest$ac_exeext &&
4317 $as_test_x conftest$ac_exeext; then
4318 ac_cv_func_socket=yes
4319else
4320 echo "$as_me: failed program was:" >&5
4321sed 's/^/| /' conftest.$ac_ext >&5
4322
4323 ac_cv_func_socket=no
4324fi 4599fi
4325 4600rm conftest.$ac_ext
4326rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4601LIBS=$ac_func_search_save_LIBS
4327 conftest$ac_exeext conftest.$ac_ext
4328fi 4602fi
4329{ echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5 4603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4330echo "${ECHO_T}$ac_cv_func_socket" >&6; } 4604$as_echo "$ac_cv_search_gethostbyname" >&6; }
4331if test $ac_cv_func_socket = yes; then 4605ac_res=$ac_cv_search_gethostbyname
4332 : 4606if test "$ac_res" != no; then :
4607 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4608
4609fi
4610
4611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4612$as_echo_n "checking for library containing socket... " >&6; }
4613if ${ac_cv_search_socket+:} false; then :
4614 $as_echo_n "(cached) " >&6
4333else 4615else
4334 { echo "$as_me:$LINENO: checking for socket in -lsocket" >&5 4616 ac_func_search_save_LIBS=$LIBS
4335echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6; }
4336if test "${ac_cv_lib_socket_socket+set}" = set; then
4337 echo $ECHO_N "(cached) $ECHO_C" >&6
4338else
4339 ac_check_lib_save_LIBS=$LIBS
4340LIBS="-lsocket $LIBS"
4341cat >conftest.$ac_ext <<_ACEOF
4342/* confdefs.h. */
4343_ACEOF
4344cat confdefs.h >>conftest.$ac_ext 4617cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4345cat >>conftest.$ac_ext <<_ACEOF
4346/* end confdefs.h. */ 4618/* end confdefs.h. */
4347 4619
4348/* Override any GCC internal prototype to avoid an error. 4620/* Override any GCC internal prototype to avoid an error.
4349 Use char because int might match the return type of a GCC 4621 Use char because int might match the return type of a GCC
4350 builtin and then its argument prototype would still apply. */ 4622 builtin and then its argument prototype would still apply. */
4358return socket (); 4630return socket ();
4359 ; 4631 ;
4360 return 0; 4632 return 0;
4361} 4633}
4362_ACEOF 4634_ACEOF
4363rm -f conftest.$ac_objext conftest$ac_exeext 4635for ac_lib in '' socket; do
4364if { (ac_try="$ac_link" 4636 if test -z "$ac_lib"; then
4365case "(($ac_try" in 4637 ac_res="none required"
4366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4367 *) ac_try_echo=$ac_try;;
4368esac
4369eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4370 (eval "$ac_link") 2>conftest.er1
4371 ac_status=$?
4372 grep -v '^ *+' conftest.er1 >conftest.err
4373 rm -f conftest.er1
4374 cat conftest.err >&5
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } && {
4377 test -z "$ac_cxx_werror_flag" ||
4378 test ! -s conftest.err
4379 } && test -s conftest$ac_exeext &&
4380 $as_test_x conftest$ac_exeext; then
4381 ac_cv_lib_socket_socket=yes
4382else 4638 else
4383 echo "$as_me: failed program was:" >&5 4639 ac_res=-l$ac_lib
4384sed 's/^/| /' conftest.$ac_ext >&5 4640 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4385 4641 fi
4386 ac_cv_lib_socket_socket=no 4642 if ac_fn_cxx_try_link "$LINENO"; then :
4643 ac_cv_search_socket=$ac_res
4387fi 4644fi
4388
4389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 4645rm -f core conftest.err conftest.$ac_objext \
4390 conftest$ac_exeext conftest.$ac_ext 4646 conftest$ac_exeext
4391LIBS=$ac_check_lib_save_LIBS 4647 if ${ac_cv_search_socket+:} false; then :
4648 break
4392fi 4649fi
4650done
4651if ${ac_cv_search_socket+:} false; then :
4652
4653else
4654 ac_cv_search_socket=no
4655fi
4656rm conftest.$ac_ext
4657LIBS=$ac_func_search_save_LIBS
4658fi
4393{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5 4659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4394echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6; } 4660$as_echo "$ac_cv_search_socket" >&6; }
4395if test $ac_cv_lib_socket_socket = yes; then 4661ac_res=$ac_cv_search_socket
4396 LIBS="$LIBS -lsocket" 4662if test "$ac_res" != no; then :
4397fi 4663 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4398 4664
4399fi 4665fi
4400
4401 4666
4402 4667
4403support_frills=yes 4668support_frills=yes
4404support_inheritpixmap=yes 4669support_inheritpixmap=yes
4405support_tinting=yes
4406support_fading=yes 4670support_fading=yes
4407support_keepscrolling=yes 4671support_keepscrolling=yes
4408support_selectionscrolling=yes 4672support_selectionscrolling=yes
4409support_mousewheel=yes 4673support_mousewheel=yes
4410support_mouseslipwheel=yes 4674support_mouseslipwheel=yes
4411support_text_blink=yes 4675support_text_blink=yes
4412support_pointer_blank=yes 4676support_pointer_blank=yes
4413support_scroll_rxvt=yes 4677support_scroll_rxvt=yes
4414support_scroll_next=yes 4678support_scroll_next=yes
4415support_scroll_xterm=yes 4679support_scroll_xterm=yes
4416support_scroll_plain=yes
4417support_xim=yes 4680support_xim=yes
4418support_xpm=yes 4681support_pixbuf=yes
4682support_startup_notification=yes
4419support_afterimage=yes 4683support_afterimage=yes
4420support_afterstep=yes
4421support_xft=yes 4684support_xft=yes
4422support_unicode3=no 4685support_unicode3=no
4423support_combining=yes 4686support_combining=yes
4424support_8bitctrls=no 4687support_8bitctrls=no
4425support_iso14755=yes 4688support_iso14755=yes
4426support_styles=yes 4689support_styles=yes
4427support_perl=yes 4690support_perl=yes
4428codesets=all 4691codesets=all
4429 4692
4430 4693
4431if test "x$enable_shared" = xyes; then
4432
4433cat >>confdefs.h <<\_ACEOF
4434#define LIBRXVT 1
4435_ACEOF
4436
4437 INSTALL_LIBRXVT=yes
4438fi
4439
4440
4441# Check whether --enable-everything was given. 4694# Check whether --enable-everything was given.
4442if test "${enable_everything+set}" = set; then 4695if test "${enable_everything+set}" = set; then :
4443 enableval=$enable_everything; 4696 enableval=$enable_everything;
4444 if test x$enableval = xno; then 4697 if test x$enableval = xno; then
4445 support_frills=no 4698 support_frills=no
4446 support_inheritpixmap=no 4699 support_inheritpixmap=no
4447 support_tinting=no
4448 support_fading=no 4700 support_fading=no
4449 support_keepscrolling=no 4701 support_keepscrolling=no
4450 support_selectionscrolling=no 4702 support_selectionscrolling=no
4451 support_lastlog=no 4703 support_lastlog=no
4452 support_mousewheel=no 4704 support_mousewheel=no
4454 support_text_blink=no 4706 support_text_blink=no
4455 support_pointer_blank=no 4707 support_pointer_blank=no
4456 support_scroll_rxvt=no 4708 support_scroll_rxvt=no
4457 support_scroll_next=no 4709 support_scroll_next=no
4458 support_scroll_xterm=no 4710 support_scroll_xterm=no
4459 support_scroll_plain=no
4460 support_utmp=no 4711 support_utmp=no
4461 support_wtmp=no 4712 support_wtmp=no
4462 support_xim=no 4713 support_xim=no
4463 support_xpm=no 4714 support_pixbuf=no
4715 support_startup_notification=no
4464 support_afterimage=no 4716 support_afterimage=no
4465 support_afterstep=no
4466 support_xft=no 4717 support_xft=no
4467 support_unicode3=no 4718 support_unicode3=no
4468 support_combining=no 4719 support_combining=no
4469 support_8bitctrls=no 4720 support_8bitctrls=no
4470 support_iso14755=no 4721 support_iso14755=no
4473 codesets= 4724 codesets=
4474 fi 4725 fi
4475 if test x$enableval = xyes; then 4726 if test x$enableval = xyes; then
4476 support_frills=yes 4727 support_frills=yes
4477 support_inheritpixmap=yes 4728 support_inheritpixmap=yes
4478 support_tinting=yes
4479 support_fading=yes 4729 support_fading=yes
4480 support_keepscrolling=yes 4730 support_keepscrolling=yes
4481 support_selectionscrolling=yes 4731 support_selectionscrolling=yes
4482 support_lastlog=yes 4732 support_lastlog=yes
4483 support_mousewheel=yes 4733 support_mousewheel=yes
4485 support_text_blink=yes 4735 support_text_blink=yes
4486 support_pointer_blank=yes 4736 support_pointer_blank=yes
4487 support_scroll_rxvt=yes 4737 support_scroll_rxvt=yes
4488 support_scroll_next=yes 4738 support_scroll_next=yes
4489 support_scroll_xterm=yes 4739 support_scroll_xterm=yes
4490 support_scroll_plain=yes
4491 support_utmp=yes 4740 support_utmp=yes
4492 support_wtmp=yes 4741 support_wtmp=yes
4493 support_xim=yes 4742 support_xim=yes
4494 support_xpm=yes 4743 support_pixbuf=yes
4744 support_startup_notification=yes
4495 support_afterimage=yes 4745 support_afterimage=yes
4496 support_afterstep=yes
4497 support_xft=yes 4746 support_xft=yes
4498 support_unicode3=yes 4747 support_unicode3=yes
4499 support_combining=yes 4748 support_combining=yes
4500 #support_8bitctrls=yes 4749 #support_8bitctrls=yes
4501 support_iso14755=yes 4750 support_iso14755=yes
4505 fi 4754 fi
4506 4755
4507fi 4756fi
4508 4757
4509 4758
4759ASSERTIONS=no
4760# Check whether --enable-assert was given.
4761if test "${enable_assert+set}" = set; then :
4762 enableval=$enable_assert; if test x$enableval = xyes; then
4763 ASSERTIONS=yes
4764 fi
4765fi
4766
4767if test x$ASSERTIONS = xno; then
4768
4769$as_echo "#define NDEBUG 1" >>confdefs.h
4770
4771fi
4772
4773WARNINGS=no
4774# Check whether --enable-warnings was given.
4775if test "${enable_warnings+set}" = set; then :
4776 enableval=$enable_warnings; if test x$enableval = xyes; then
4777 WARNINGS=yes
4778 fi
4779fi
4780
4781if test x$GXX = xyes; then
4782 if test $WARNINGS = yes; then
4783 save_CXXFLAGS="$CXXFLAGS"
4784 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-non-virtual-dtor"
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786/* end confdefs.h. */
4787
4788int
4789main ()
4790{
4791
4792 ;
4793 return 0;
4794}
4795_ACEOF
4796if ac_fn_cxx_try_compile "$LINENO"; then :
4797
4798else
4799 CXXFLAGS="$save_CXXFLAGS"
4800fi
4801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 else
4803 CXXFLAGS="$CXXFLAGS -w"
4804 fi
4805fi
4806
4807support_256_color=no
4808# Check whether --enable-256-color was given.
4809if test "${enable_256_color+set}" = set; then :
4810 enableval=$enable_256_color; if test x$enableval = xyes; then
4811 support_256_color=yes
4812 fi
4813fi
4814
4815if test x$support_256_color = xyes; then
4816
4817$as_echo "#define USE_256_COLORS 1" >>confdefs.h
4818
4819fi
4820
4510# Check whether --enable-unicode3 was given. 4821# Check whether --enable-unicode3 was given.
4511if test "${enable_unicode3+set}" = set; then 4822if test "${enable_unicode3+set}" = set; then :
4512 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then 4823 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4513 support_unicode3=$enableval 4824 support_unicode3=$enableval
4514 fi 4825 fi
4515fi 4826fi
4516 4827
4517 4828
4518# Check whether --enable-combining was given. 4829# Check whether --enable-combining was given.
4519if test "${enable_combining+set}" = set; then 4830if test "${enable_combining+set}" = set; then :
4520 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then 4831 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4521 support_combining=$enableval 4832 support_combining=$enableval
4522 fi 4833 fi
4523fi 4834fi
4524 4835
4525 4836
4526# Check whether --enable-xft was given. 4837# Check whether --enable-xft was given.
4527if test "${enable_xft+set}" = set; then 4838if test "${enable_xft+set}" = set; then :
4528 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then 4839 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4529 support_xft=$enableval 4840 support_xft=$enableval
4530 fi 4841 fi
4531fi 4842fi
4532 4843
4533 4844
4534# Check whether --enable-font-styles was given. 4845# Check whether --enable-font-styles was given.
4535if test "${enable_font_styles+set}" = set; then 4846if test "${enable_font_styles+set}" = set; then :
4536 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then 4847 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4537 support_styles=$enableval 4848 support_styles=$enableval
4538 fi 4849 fi
4539fi 4850fi
4540 4851
4541 4852
4542# Check whether --enable-xpm-background was given.
4543if test "${enable_xpm_background+set}" = set; then
4544 enableval=$enable_xpm_background; if test x$enableval = xyes -o x$enableval = xno; then
4545 support_xpm=$enableval
4546 fi
4547fi
4548
4549
4550# Check whether --enable-afterimage was given. 4853# Check whether --enable-afterimage was given.
4551if test "${enable_afterimage+set}" = set; then 4854if test "${enable_afterimage+set}" = set; then :
4552 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then 4855 enableval=$enable_afterimage; if test x$enableval = xyes -o x$enableval = xno; then
4553 support_afterimage=$enableval 4856 support_afterimage=$enableval
4554 fi 4857 fi
4555fi 4858fi
4556 4859
4557 4860
4558 4861
4559# Check whether --with-afterimage_config was given. 4862# Check whether --with-afterimage_config was given.
4560if test "${with_afterimage_config+set}" = set; then 4863if test "${with_afterimage_config+set}" = set; then :
4561 withval=$with_afterimage_config; if test "x$withval" != x; then 4864 withval=$with_afterimage_config; if test "x$withval" != x; then
4562 afterimage_config=$withval/afterimage-config 4865 afterimage_config=$withval/afterimage-config
4563 fi 4866 fi
4564fi 4867fi
4565 4868
4566 4869
4870# Check whether --enable-pixbuf was given.
4871if test "${enable_pixbuf+set}" = set; then :
4872 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
4873 support_pixbuf=$enableval
4874 fi
4875fi
4876
4877
4878# Check whether --enable-startup-notification was given.
4879if test "${enable_startup_notification+set}" = set; then :
4880 enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then
4881 support_startup_notification=$enableval
4882 fi
4883fi
4884
4567 4885
4568# Check whether --enable-transparency was given. 4886# Check whether --enable-transparency was given.
4569if test "${enable_transparency+set}" = set; then 4887if test "${enable_transparency+set}" = set; then :
4570 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then 4888 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4571 support_inheritpixmap=$enableval 4889 support_inheritpixmap=$enableval
4572 fi 4890 fi
4573fi 4891fi
4574 4892
4575 4893
4576# Check whether --enable-tinting was given.
4577if test "${enable_tinting+set}" = set; then
4578 enableval=$enable_tinting; if test x$enableval = xyes -o x$enableval = xno; then
4579 support_tinting=$enableval
4580 fi
4581fi
4582
4583
4584# Check whether --enable-fading was given. 4894# Check whether --enable-fading was given.
4585if test "${enable_fading+set}" = set; then 4895if test "${enable_fading+set}" = set; then :
4586 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then 4896 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4587 support_fading=$enableval 4897 support_fading=$enableval
4588 fi 4898 fi
4589fi 4899fi
4590 4900
4591 4901
4592# Check whether --enable-rxvt-scroll was given. 4902# Check whether --enable-rxvt-scroll was given.
4593if test "${enable_rxvt_scroll+set}" = set; then 4903if test "${enable_rxvt_scroll+set}" = set; then :
4594 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4904 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4595 support_scroll_rxvt=$enableval 4905 support_scroll_rxvt=$enableval
4596 fi 4906 fi
4597fi 4907fi
4598 4908
4599 4909
4600# Check whether --enable-next-scroll was given. 4910# Check whether --enable-next-scroll was given.
4601if test "${enable_next_scroll+set}" = set; then 4911if test "${enable_next_scroll+set}" = set; then :
4602 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4912 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4603 support_scroll_next=$enableval 4913 support_scroll_next=$enableval
4604 fi 4914 fi
4605fi 4915fi
4606 4916
4607 4917
4608# Check whether --enable-xterm-scroll was given. 4918# Check whether --enable-xterm-scroll was given.
4609if test "${enable_xterm_scroll+set}" = set; then 4919if test "${enable_xterm_scroll+set}" = set; then :
4610 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then 4920 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4611 support_scroll_xterm=$enableval 4921 support_scroll_xterm=$enableval
4612 fi 4922 fi
4613fi 4923fi
4614 4924
4615 4925
4616# Check whether --enable-perl was given. 4926# Check whether --enable-perl was given.
4617if test "${enable_perl+set}" = set; then 4927if test "${enable_perl+set}" = set; then :
4618 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then 4928 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4619 support_perl=$enableval 4929 support_perl=$enableval
4620 fi 4930 fi
4621fi 4931fi
4622 4932
4623 4933
4624# Check whether --enable-plain-scroll was given.
4625if test "${enable_plain_scroll+set}" = set; then
4626 enableval=$enable_plain_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4627 support_scroll_plain=$enableval
4628 fi
4629fi
4630
4631
4632 4934
4633# Check whether --with-codesets was given. 4935# Check whether --with-codesets was given.
4634if test "${with_codesets+set}" = set; then 4936if test "${with_codesets+set}" = set; then :
4635 withval=$with_codesets; codesets="$withval" 4937 withval=$with_codesets; codesets="$withval"
4636fi 4938fi
4637 4939
4638 4940
4639# Check whether --enable-xim was given. 4941# Check whether --enable-xim was given.
4640if test "${enable_xim+set}" = set; then 4942if test "${enable_xim+set}" = set; then :
4641 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then 4943 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4642 support_xim=$enableval 4944 support_xim=$enableval
4643 fi 4945 fi
4644fi 4946fi
4645 4947
4646 4948
4647# Check whether --enable-backspace-key was given. 4949# Check whether --enable-backspace-key was given.
4648if test "${enable_backspace_key+set}" = set; then 4950if test "${enable_backspace_key+set}" = set; then :
4649 enableval=$enable_backspace_key; if test x$enableval = xno; then 4951 enableval=$enable_backspace_key; if test x$enableval = xno; then
4650 4952
4651cat >>confdefs.h <<\_ACEOF 4953$as_echo "#define NO_BACKSPACE_KEY 1" >>confdefs.h
4652#define NO_BACKSPACE_KEY 1
4653_ACEOF
4654 4954
4655 fi 4955 fi
4656fi 4956fi
4657 4957
4658 4958
4659# Check whether --enable-delete-key was given. 4959# Check whether --enable-delete-key was given.
4660if test "${enable_delete_key+set}" = set; then 4960if test "${enable_delete_key+set}" = set; then :
4661 enableval=$enable_delete_key; if test x$enableval = xno; then 4961 enableval=$enable_delete_key; if test x$enableval = xno; then
4662 4962
4663cat >>confdefs.h <<\_ACEOF 4963$as_echo "#define NO_DELETE_KEY 1" >>confdefs.h
4664#define NO_DELETE_KEY 1
4665_ACEOF
4666 4964
4667 fi 4965 fi
4668fi 4966fi
4669 4967
4670 4968
4671# Check whether --enable-resources was given. 4969# Check whether --enable-resources was given.
4672if test "${enable_resources+set}" = set; then 4970if test "${enable_resources+set}" = set; then :
4673 enableval=$enable_resources; if test x$enableval = xno; then 4971 enableval=$enable_resources; if test x$enableval = xno; then
4674 4972
4675cat >>confdefs.h <<\_ACEOF 4973$as_echo "#define NO_RESOURCES 1" >>confdefs.h
4676#define NO_RESOURCES 1
4677_ACEOF
4678 4974
4679 fi 4975 fi
4680fi 4976fi
4681 4977
4682 4978
4683# Check whether --enable-8bitctrls was given. 4979# Check whether --enable-8bitctrls was given.
4684if test "${enable_8bitctrls+set}" = set; then 4980if test "${enable_8bitctrls+set}" = set; then :
4685 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then 4981 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
4686 support_8bitctrls=$enableval 4982 support_8bitctrls=$enableval
4687 fi 4983 fi
4688fi 4984fi
4689 4985
4690 4986
4691RESFALLBACK=Rxvt 4987RESFALLBACK=Rxvt
4692# Check whether --enable-fallback was given. 4988# Check whether --enable-fallback was given.
4693if test "${enable_fallback+set}" = set; then 4989if test "${enable_fallback+set}" = set; then :
4694 enableval=$enable_fallback; 4990 enableval=$enable_fallback;
4695 test x$enableval = xyes && enableval=Rxvt 4991 test x$enableval = xyes && enableval=Rxvt
4696 test x$enableval = xno && enableval= 4992 test x$enableval = xno && enableval=
4697 RESFALLBACK="$enableval" 4993 RESFALLBACK="$enableval"
4698 4994
4708fi 5004fi
4709 5005
4710RESNAME=urxvt 5006RESNAME=urxvt
4711 5007
4712# Check whether --with-res-name was given. 5008# Check whether --with-res-name was given.
4713if test "${with_res_name+set}" = set; then 5009if test "${with_res_name+set}" = set; then :
4714 withval=$with_res_name; RESNAME="$withval" 5010 withval=$with_res_name; RESNAME="$withval"
4715fi 5011fi
4716 5012
4717 5013
4718cat >>confdefs.h <<_ACEOF 5014cat >>confdefs.h <<_ACEOF
4721 5017
4722 5018
4723RESCLASS=URxvt 5019RESCLASS=URxvt
4724 5020
4725# Check whether --with-res-class was given. 5021# Check whether --with-res-class was given.
4726if test "${with_res_class+set}" = set; then 5022if test "${with_res_class+set}" = set; then :
4727 withval=$with_res_class; RESCLASS="$withval" 5023 withval=$with_res_class; RESCLASS="$withval"
4728fi 5024fi
4729 5025
4730 5026
4731cat >>confdefs.h <<_ACEOF 5027cat >>confdefs.h <<_ACEOF
4734 5030
4735 5031
4736RXVTNAME=urxvt 5032RXVTNAME=urxvt
4737 5033
4738# Check whether --with-name was given. 5034# Check whether --with-name was given.
4739if test "${with_name+set}" = set; then 5035if test "${with_name+set}" = set; then :
4740 withval=$with_name; RXVTNAME="$withval" 5036 withval=$with_name; RXVTNAME="$withval"
4741fi 5037fi
4742 5038
4743 5039
4744cat >>confdefs.h <<_ACEOF 5040cat >>confdefs.h <<_ACEOF
4745#define RXVTNAME "$RXVTNAME" 5041#define RXVTNAME "$RXVTNAME"
4746_ACEOF 5042_ACEOF
4747 5043
4748 5044
4749RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4750 5045
4751 5046
4752# Check whether --enable-swapscreen was given. 5047# Check whether --enable-swapscreen was given.
4753if test "${enable_swapscreen+set}" = set; then 5048if test "${enable_swapscreen+set}" = set; then :
4754 enableval=$enable_swapscreen; if test x$enableval = xno; then 5049 enableval=$enable_swapscreen; if test x$enableval = xno; then
4755 5050
4756cat >>confdefs.h <<\_ACEOF 5051$as_echo "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
4757#define NO_SECONDARY_SCREEN 1
4758_ACEOF
4759 5052
4760 fi 5053 fi
4761fi 5054fi
4762 5055
4763 5056
4764# Check whether --enable-iso14755 was given. 5057# Check whether --enable-iso14755 was given.
4765if test "${enable_iso14755+set}" = set; then 5058if test "${enable_iso14755+set}" = set; then :
4766 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then 5059 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
4767 support_iso14755=$enableval 5060 support_iso14755=$enableval
4768 fi 5061 fi
4769fi 5062fi
4770 5063
4771 5064
4772# Check whether --enable-frills was given. 5065# Check whether --enable-frills was given.
4773if test "${enable_frills+set}" = set; then 5066if test "${enable_frills+set}" = set; then :
4774 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then 5067 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
4775 support_frills=$enableval 5068 support_frills=$enableval
4776 fi 5069 fi
4777fi 5070fi
4778 5071
4779 5072
4780# Check whether --enable-keepscrolling was given. 5073# Check whether --enable-keepscrolling was given.
4781if test "${enable_keepscrolling+set}" = set; then 5074if test "${enable_keepscrolling+set}" = set; then :
4782 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5075 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4783 support_keepscrolling=$enableval 5076 support_keepscrolling=$enableval
4784 fi 5077 fi
4785fi 5078fi
4786 5079
4787 5080
4788# Check whether --enable-selectionscrolling was given. 5081# Check whether --enable-selectionscrolling was given.
4789if test "${enable_selectionscrolling+set}" = set; then 5082if test "${enable_selectionscrolling+set}" = set; then :
4790 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then 5083 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
4791 support_selectionscrolling=$enableval 5084 support_selectionscrolling=$enableval
4792 fi 5085 fi
4793fi 5086fi
4794 5087
4795 5088
4796# Check whether --enable-mousewheel was given. 5089# Check whether --enable-mousewheel was given.
4797if test "${enable_mousewheel+set}" = set; then 5090if test "${enable_mousewheel+set}" = set; then :
4798 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then 5091 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
4799 support_mousewheel=$enableval 5092 support_mousewheel=$enableval
4800 fi 5093 fi
4801fi 5094fi
4802 5095
4803 5096
4804# Check whether --enable-slipwheeling was given. 5097# Check whether --enable-slipwheeling was given.
4805if test "${enable_slipwheeling+set}" = set; then 5098if test "${enable_slipwheeling+set}" = set; then :
4806 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then 5099 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
4807 support_mouseslipwheel=$enableval 5100 support_mouseslipwheel=$enableval
4808 fi 5101 fi
4809fi 5102fi
4810 5103
4811 5104
4812# Check whether --enable-smart-resize was given. 5105# Check whether --enable-smart-resize was given.
4813if test "${enable_smart_resize+set}" = set; then 5106if test "${enable_smart_resize+set}" = set; then :
4814 enableval=$enable_smart_resize; if test x$enableval = xyes; then 5107 enableval=$enable_smart_resize; if test x$enableval = xyes; then
4815 5108
4816cat >>confdefs.h <<\_ACEOF 5109$as_echo "#define SMART_RESIZE 1" >>confdefs.h
4817#define SMART_RESIZE 1
4818_ACEOF
4819 5110
4820 fi 5111 fi
4821fi 5112fi
4822 5113
4823 5114
4824# Check whether --enable-text-blink was given. 5115# Check whether --enable-text-blink was given.
4825if test "${enable_text_blink+set}" = set; then 5116if test "${enable_text_blink+set}" = set; then :
4826 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then 5117 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
4827 support_text_blink=$enableval 5118 support_text_blink=$enableval
4828 fi 5119 fi
4829fi 5120fi
4830 5121
4831 5122
4832# Check whether --enable-pointer-blank was given. 5123# Check whether --enable-pointer-blank was given.
4833if test "${enable_pointer_blank+set}" = set; then 5124if test "${enable_pointer_blank+set}" = set; then :
4834 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then 5125 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
4835 support_pointer_blank=$enableval 5126 support_pointer_blank=$enableval
4836 fi 5127 fi
4837fi 5128fi
4838 5129
4839 5130
4840 5131
4841# Check whether --with-term was given. 5132# Check whether --with-term was given.
4842if test "${with_term+set}" = set; then 5133if test "${with_term+set}" = set; then :
4843 withval=$with_term; if test x$withval != x; then 5134 withval=$with_term; if test x$withval != x; then
4844 5135
4845cat >>confdefs.h <<_ACEOF 5136cat >>confdefs.h <<_ACEOF
4846#define TERMENV "$withval" 5137#define TERMENV "$withval"
4847_ACEOF 5138_ACEOF
4850fi 5141fi
4851 5142
4852 5143
4853 5144
4854# Check whether --with-terminfo was given. 5145# Check whether --with-terminfo was given.
4855if test "${with_terminfo+set}" = set; then 5146if test "${with_terminfo+set}" = set; then :
4856 withval=$with_terminfo; if test x$withval != x; then 5147 withval=$with_terminfo; if test x$withval != x; then
4857 5148
4858cat >>confdefs.h <<_ACEOF 5149cat >>confdefs.h <<_ACEOF
4859#define RXVT_TERMINFO "$withval" 5150#define RXVT_TERMINFO "$withval"
4860_ACEOF 5151_ACEOF
4862 fi 5153 fi
4863fi 5154fi
4864 5155
4865 5156
4866 5157
4867# Extract the first word of "tic", so it can be a program name with args. 5158LIBEV_M4_AVOID_LIBRT=1
4868set dummy tic; ac_word=$2
4869{ echo "$as_me:$LINENO: checking for $ac_word" >&5
4870echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4871if test "${ac_cv_path_TIC+set}" = set; then
4872 echo $ECHO_N "(cached) $ECHO_C" >&6
4873else
4874 case $TIC in
4875 [\\/]* | ?:[\\/]*)
4876 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
4877 ;;
4878 *)
4879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880for as_dir in $PATH
4881do
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4886 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
4887 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 break 2
4889 fi
4890done
4891done
4892IFS=$as_save_IFS
4893
4894 ;;
4895esac
4896fi
4897TIC=$ac_cv_path_TIC
4898if test -n "$TIC"; then
4899 { echo "$as_me:$LINENO: result: $TIC" >&5
4900echo "${ECHO_T}$TIC" >&6; }
4901else
4902 { echo "$as_me:$LINENO: result: no" >&5
4903echo "${ECHO_T}no" >&6; }
4904fi
4905
4906
4907
4908
4909 5159
4910ac_ext=cpp 5160ac_ext=cpp
4911ac_cpp='$CXXCPP $CPPFLAGS' 5161ac_cpp='$CXXCPP $CPPFLAGS'
4912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5162ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5163ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5164ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4915{ echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4916echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } 5166$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4917if test -z "$CXXCPP"; then 5167if test -z "$CXXCPP"; then
4918 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5168 if ${ac_cv_prog_CXXCPP+:} false; then :
4919 echo $ECHO_N "(cached) $ECHO_C" >&6 5169 $as_echo_n "(cached) " >&6
4920else 5170else
4921 # Double quotes because CXXCPP needs to be expanded 5171 # Double quotes because CXXCPP needs to be expanded
4922 for CXXCPP in "$CXX -E" "/lib/cpp" 5172 for CXXCPP in "$CXX -E" "/lib/cpp"
4923 do 5173 do
4924 ac_preproc_ok=false 5174 ac_preproc_ok=false
4928 # with a fresh cross-compiler works. 5178 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers. 5180 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser, 5181 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case. 5182 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat >conftest.$ac_ext <<_ACEOF
4934/* confdefs.h. */
4935_ACEOF
4936cat confdefs.h >>conftest.$ac_ext 5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4937cat >>conftest.$ac_ext <<_ACEOF
4938/* end confdefs.h. */ 5184/* end confdefs.h. */
4939#ifdef __STDC__ 5185#ifdef __STDC__
4940# include <limits.h> 5186# include <limits.h>
4941#else 5187#else
4942# include <assert.h> 5188# include <assert.h>
4943#endif 5189#endif
4944 Syntax error 5190 Syntax error
4945_ACEOF 5191_ACEOF
4946if { (ac_try="$ac_cpp conftest.$ac_ext" 5192if ac_fn_cxx_try_cpp "$LINENO"; then :
4947case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950esac
4951eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4953 ac_status=$?
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } >/dev/null && {
4959 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4960 test ! -s conftest.err
4961 }; then
4962 :
4963else
4964 echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966 5193
5194else
4967 # Broken: fails on valid input. 5195 # Broken: fails on valid input.
4968continue 5196continue
4969fi 5197fi
4970
4971rm -f conftest.err conftest.$ac_ext 5198rm -f conftest.err conftest.i conftest.$ac_ext
4972 5199
4973 # OK, works on sane cases. Now check whether nonexistent headers 5200 # OK, works on sane cases. Now check whether nonexistent headers
4974 # can be detected and how. 5201 # can be detected and how.
4975 cat >conftest.$ac_ext <<_ACEOF
4976/* confdefs.h. */
4977_ACEOF
4978cat confdefs.h >>conftest.$ac_ext 5202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979cat >>conftest.$ac_ext <<_ACEOF
4980/* end confdefs.h. */ 5203/* end confdefs.h. */
4981#include <ac_nonexistent.h> 5204#include <ac_nonexistent.h>
4982_ACEOF 5205_ACEOF
4983if { (ac_try="$ac_cpp conftest.$ac_ext" 5206if ac_fn_cxx_try_cpp "$LINENO"; then :
4984case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987esac
4988eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } >/dev/null && {
4996 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
4997 test ! -s conftest.err
4998 }; then
4999 # Broken: success on invalid input. 5207 # Broken: success on invalid input.
5000continue 5208continue
5001else 5209else
5002 echo "$as_me: failed program was:" >&5
5003sed 's/^/| /' conftest.$ac_ext >&5
5004
5005 # Passes both tests. 5210 # Passes both tests.
5006ac_preproc_ok=: 5211ac_preproc_ok=:
5007break 5212break
5008fi 5213fi
5009
5010rm -f conftest.err conftest.$ac_ext 5214rm -f conftest.err conftest.i conftest.$ac_ext
5011 5215
5012done 5216done
5013# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5217# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014rm -f conftest.err conftest.$ac_ext 5218rm -f conftest.i conftest.err conftest.$ac_ext
5015if $ac_preproc_ok; then 5219if $ac_preproc_ok; then :
5016 break 5220 break
5017fi 5221fi
5018 5222
5019 done 5223 done
5020 ac_cv_prog_CXXCPP=$CXXCPP 5224 ac_cv_prog_CXXCPP=$CXXCPP
5022fi 5226fi
5023 CXXCPP=$ac_cv_prog_CXXCPP 5227 CXXCPP=$ac_cv_prog_CXXCPP
5024else 5228else
5025 ac_cv_prog_CXXCPP=$CXXCPP 5229 ac_cv_prog_CXXCPP=$CXXCPP
5026fi 5230fi
5027{ echo "$as_me:$LINENO: result: $CXXCPP" >&5 5231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5028echo "${ECHO_T}$CXXCPP" >&6; } 5232$as_echo "$CXXCPP" >&6; }
5029ac_preproc_ok=false 5233ac_preproc_ok=false
5030for ac_cxx_preproc_warn_flag in '' yes 5234for ac_cxx_preproc_warn_flag in '' yes
5031do 5235do
5032 # Use a header file that comes with gcc, so configuring glibc 5236 # Use a header file that comes with gcc, so configuring glibc
5033 # with a fresh cross-compiler works. 5237 # with a fresh cross-compiler works.
5034 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5238 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5035 # <limits.h> exists even on freestanding compilers. 5239 # <limits.h> exists even on freestanding compilers.
5036 # On the NeXT, cc -E runs the code through the compiler's parser, 5240 # On the NeXT, cc -E runs the code through the compiler's parser,
5037 # not just through cpp. "Syntax error" is here to catch this case. 5241 # not just through cpp. "Syntax error" is here to catch this case.
5038 cat >conftest.$ac_ext <<_ACEOF
5039/* confdefs.h. */
5040_ACEOF
5041cat confdefs.h >>conftest.$ac_ext 5242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5042cat >>conftest.$ac_ext <<_ACEOF
5043/* end confdefs.h. */ 5243/* end confdefs.h. */
5044#ifdef __STDC__ 5244#ifdef __STDC__
5045# include <limits.h> 5245# include <limits.h>
5046#else 5246#else
5047# include <assert.h> 5247# include <assert.h>
5048#endif 5248#endif
5049 Syntax error 5249 Syntax error
5050_ACEOF 5250_ACEOF
5051if { (ac_try="$ac_cpp conftest.$ac_ext" 5251if ac_fn_cxx_try_cpp "$LINENO"; then :
5052case "(($ac_try" in
5053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5054 *) ac_try_echo=$ac_try;;
5055esac
5056eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5057 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5058 ac_status=$?
5059 grep -v '^ *+' conftest.er1 >conftest.err
5060 rm -f conftest.er1
5061 cat conftest.err >&5
5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5063 (exit $ac_status); } >/dev/null && {
5064 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5065 test ! -s conftest.err
5066 }; then
5067 :
5068else
5069 echo "$as_me: failed program was:" >&5
5070sed 's/^/| /' conftest.$ac_ext >&5
5071 5252
5253else
5072 # Broken: fails on valid input. 5254 # Broken: fails on valid input.
5073continue 5255continue
5074fi 5256fi
5075
5076rm -f conftest.err conftest.$ac_ext 5257rm -f conftest.err conftest.i conftest.$ac_ext
5077 5258
5078 # OK, works on sane cases. Now check whether nonexistent headers 5259 # OK, works on sane cases. Now check whether nonexistent headers
5079 # can be detected and how. 5260 # can be detected and how.
5080 cat >conftest.$ac_ext <<_ACEOF
5081/* confdefs.h. */
5082_ACEOF
5083cat confdefs.h >>conftest.$ac_ext 5261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5084cat >>conftest.$ac_ext <<_ACEOF
5085/* end confdefs.h. */ 5262/* end confdefs.h. */
5086#include <ac_nonexistent.h> 5263#include <ac_nonexistent.h>
5087_ACEOF 5264_ACEOF
5088if { (ac_try="$ac_cpp conftest.$ac_ext" 5265if ac_fn_cxx_try_cpp "$LINENO"; then :
5089case "(($ac_try" in
5090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5091 *) ac_try_echo=$ac_try;;
5092esac
5093eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5095 ac_status=$?
5096 grep -v '^ *+' conftest.er1 >conftest.err
5097 rm -f conftest.er1
5098 cat conftest.err >&5
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); } >/dev/null && {
5101 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5102 test ! -s conftest.err
5103 }; then
5104 # Broken: success on invalid input. 5266 # Broken: success on invalid input.
5105continue 5267continue
5106else 5268else
5107 echo "$as_me: failed program was:" >&5
5108sed 's/^/| /' conftest.$ac_ext >&5
5109
5110 # Passes both tests. 5269 # Passes both tests.
5111ac_preproc_ok=: 5270ac_preproc_ok=:
5112break 5271break
5113fi 5272fi
5114
5115rm -f conftest.err conftest.$ac_ext 5273rm -f conftest.err conftest.i conftest.$ac_ext
5116 5274
5117done 5275done
5118# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5276# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5119rm -f conftest.err conftest.$ac_ext 5277rm -f conftest.i conftest.err conftest.$ac_ext
5120if $ac_preproc_ok; then 5278if $ac_preproc_ok; then :
5121 : 5279
5122else 5280else
5123 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5124See \`config.log' for more details." >&5 5282$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5125echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5283as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5126See \`config.log' for more details." >&2;} 5284See \`config.log' for more details" "$LINENO" 5; }
5127 { (exit 1); exit 1; }; }
5128fi 5285fi
5129 5286
5130ac_ext=cpp 5287ac_ext=cpp
5131ac_cpp='$CXXCPP $CPPFLAGS' 5288ac_cpp='$CXXCPP $CPPFLAGS'
5132ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5289ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5290ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5291ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5135 5292
5136 5293
5294for 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
5295do :
5296 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5297ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5298if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5299 cat >>confdefs.h <<_ACEOF
5300#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5301_ACEOF
5302
5303fi
5304
5305done
5306
5307
5308for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5309do :
5310 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5311ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5312if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5313 cat >>confdefs.h <<_ACEOF
5314#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5315_ACEOF
5316
5317fi
5318done
5319
5320
5321for ac_func in clock_gettime
5322do :
5323 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5324if test "x$ac_cv_func_clock_gettime" = xyes; then :
5325 cat >>confdefs.h <<_ACEOF
5326#define HAVE_CLOCK_GETTIME 1
5327_ACEOF
5328
5329else
5330
5331 if test $(uname) = Linux; then
5332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5333$as_echo_n "checking for clock_gettime syscall... " >&6; }
5334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5335/* end confdefs.h. */
5336#include <unistd.h>
5337 #include <sys/syscall.h>
5338 #include <time.h>
5339int
5340main ()
5341{
5342struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5343 ;
5344 return 0;
5345}
5346_ACEOF
5347if ac_fn_cxx_try_link "$LINENO"; then :
5348 ac_have_clock_syscall=1
5349
5350$as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5351
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5353$as_echo "yes" >&6; }
5354else
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5356$as_echo "no" >&6; }
5357fi
5358rm -f core conftest.err conftest.$ac_objext \
5359 conftest$ac_exeext conftest.$ac_ext
5360 fi
5361 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
5362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
5363$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
5364if ${ac_cv_lib_rt_clock_gettime+:} false; then :
5365 $as_echo_n "(cached) " >&6
5366else
5367 ac_check_lib_save_LIBS=$LIBS
5368LIBS="-lrt $LIBS"
5369cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5370/* end confdefs.h. */
5371
5372/* Override any GCC internal prototype to avoid an error.
5373 Use char because int might match the return type of a GCC
5374 builtin and then its argument prototype would still apply. */
5375#ifdef __cplusplus
5376extern "C"
5377#endif
5378char clock_gettime ();
5379int
5380main ()
5381{
5382return clock_gettime ();
5383 ;
5384 return 0;
5385}
5386_ACEOF
5387if ac_fn_cxx_try_link "$LINENO"; then :
5388 ac_cv_lib_rt_clock_gettime=yes
5389else
5390 ac_cv_lib_rt_clock_gettime=no
5391fi
5392rm -f core conftest.err conftest.$ac_objext \
5393 conftest$ac_exeext conftest.$ac_ext
5394LIBS=$ac_check_lib_save_LIBS
5395fi
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5397$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5398if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
5399 cat >>confdefs.h <<_ACEOF
5400#define HAVE_LIBRT 1
5401_ACEOF
5402
5403 LIBS="-lrt $LIBS"
5404
5405fi
5406
5407 unset ac_cv_func_clock_gettime
5408 for ac_func in clock_gettime
5409do :
5410 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5411if test "x$ac_cv_func_clock_gettime" = xyes; then :
5412 cat >>confdefs.h <<_ACEOF
5413#define HAVE_CLOCK_GETTIME 1
5414_ACEOF
5415
5416fi
5417done
5418
5419 fi
5420
5421fi
5422done
5423
5424
5425for ac_func in nanosleep
5426do :
5427 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5428if test "x$ac_cv_func_nanosleep" = xyes; then :
5429 cat >>confdefs.h <<_ACEOF
5430#define HAVE_NANOSLEEP 1
5431_ACEOF
5432
5433else
5434
5435 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5437$as_echo_n "checking for nanosleep in -lrt... " >&6; }
5438if ${ac_cv_lib_rt_nanosleep+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440else
5441 ac_check_lib_save_LIBS=$LIBS
5442LIBS="-lrt $LIBS"
5443cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444/* end confdefs.h. */
5445
5446/* Override any GCC internal prototype to avoid an error.
5447 Use char because int might match the return type of a GCC
5448 builtin and then its argument prototype would still apply. */
5449#ifdef __cplusplus
5450extern "C"
5451#endif
5452char nanosleep ();
5453int
5454main ()
5455{
5456return nanosleep ();
5457 ;
5458 return 0;
5459}
5460_ACEOF
5461if ac_fn_cxx_try_link "$LINENO"; then :
5462 ac_cv_lib_rt_nanosleep=yes
5463else
5464 ac_cv_lib_rt_nanosleep=no
5465fi
5466rm -f core conftest.err conftest.$ac_objext \
5467 conftest$ac_exeext conftest.$ac_ext
5468LIBS=$ac_check_lib_save_LIBS
5469fi
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5471$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
5472if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
5473 cat >>confdefs.h <<_ACEOF
5474#define HAVE_LIBRT 1
5475_ACEOF
5476
5477 LIBS="-lrt $LIBS"
5478
5479fi
5480
5481 unset ac_cv_func_nanosleep
5482 for ac_func in nanosleep
5483do :
5484 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5485if test "x$ac_cv_func_nanosleep" = xyes; then :
5486 cat >>confdefs.h <<_ACEOF
5487#define HAVE_NANOSLEEP 1
5488_ACEOF
5489
5490fi
5491done
5492
5493 fi
5494
5495fi
5496done
5497
5498
5499if test -z "$LIBEV_M4_AVOID_LIBM"; then
5500 LIBM=m
5501fi
5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
5503$as_echo_n "checking for library containing floor... " >&6; }
5504if ${ac_cv_search_floor+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506else
5507 ac_func_search_save_LIBS=$LIBS
5508cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509/* end confdefs.h. */
5510
5511/* Override any GCC internal prototype to avoid an error.
5512 Use char because int might match the return type of a GCC
5513 builtin and then its argument prototype would still apply. */
5514#ifdef __cplusplus
5515extern "C"
5516#endif
5517char floor ();
5518int
5519main ()
5520{
5521return floor ();
5522 ;
5523 return 0;
5524}
5525_ACEOF
5526for ac_lib in '' $LIBM; do
5527 if test -z "$ac_lib"; then
5528 ac_res="none required"
5529 else
5530 ac_res=-l$ac_lib
5531 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5532 fi
5533 if ac_fn_cxx_try_link "$LINENO"; then :
5534 ac_cv_search_floor=$ac_res
5535fi
5536rm -f core conftest.err conftest.$ac_objext \
5537 conftest$ac_exeext
5538 if ${ac_cv_search_floor+:} false; then :
5539 break
5540fi
5541done
5542if ${ac_cv_search_floor+:} false; then :
5543
5544else
5545 ac_cv_search_floor=no
5546fi
5547rm conftest.$ac_ext
5548LIBS=$ac_func_search_save_LIBS
5549fi
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
5551$as_echo "$ac_cv_search_floor" >&6; }
5552ac_res=$ac_cv_search_floor
5553if test "$ac_res" != no; then :
5554 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5555
5556$as_echo "#define HAVE_FLOOR 1" >>confdefs.h
5557
5558fi
5559
5560
5561
5562
5563
5564# Extract the first word of "tic", so it can be a program name with args.
5565set dummy tic; ac_word=$2
5566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5567$as_echo_n "checking for $ac_word... " >&6; }
5568if ${ac_cv_path_TIC+:} false; then :
5569 $as_echo_n "(cached) " >&6
5570else
5571 case $TIC in
5572 [\\/]* | ?:[\\/]*)
5573 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5574 ;;
5575 *)
5576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577for as_dir in $PATH
5578do
5579 IFS=$as_save_IFS
5580 test -z "$as_dir" && as_dir=.
5581 for ac_exec_ext in '' $ac_executable_extensions; do
5582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5583 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5585 break 2
5586 fi
5587done
5588 done
5589IFS=$as_save_IFS
5590
5591 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5592 ;;
5593esac
5594fi
5595TIC=$ac_cv_path_TIC
5596if test -n "$TIC"; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5598$as_echo "$TIC" >&6; }
5599else
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5601$as_echo "no" >&6; }
5602fi
5603
5604
5605
5137{ echo "$as_me:$LINENO: checking for X" >&5 5606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5138echo $ECHO_N "checking for X... $ECHO_C" >&6; } 5607$as_echo_n "checking for X... " >&6; }
5139 5608
5140 5609
5141# Check whether --with-x was given. 5610# Check whether --with-x was given.
5142if test "${with_x+set}" = set; then 5611if test "${with_x+set}" = set; then :
5143 withval=$with_x; 5612 withval=$with_x;
5144fi 5613fi
5145 5614
5146# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5615# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5147if test "x$with_x" = xno; then 5616if test "x$with_x" = xno; then
5148 # The user explicitly disabled X. 5617 # The user explicitly disabled X.
5149 have_x=disabled 5618 have_x=disabled
5150else 5619else
5151 case $x_includes,$x_libraries in #( 5620 case $x_includes,$x_libraries in #(
5152 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 5621 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5153echo "$as_me: error: Cannot use X directory names containing '" >&2;}
5154 { (exit 1); exit 1; }; };; #(
5155 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then 5622 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5156 echo $ECHO_N "(cached) $ECHO_C" >&6 5623 $as_echo_n "(cached) " >&6
5157else 5624else
5158 # One or both of the vars are not set, and there is no cached value. 5625 # One or both of the vars are not set, and there is no cached value.
5159ac_x_includes=no ac_x_libraries=no 5626ac_x_includes=no ac_x_libraries=no
5160rm -f -r conftest.dir 5627rm -f -r conftest.dir
5161if mkdir conftest.dir; then 5628if mkdir conftest.dir; then
5167 @echo usrlibdir='${USRLIBDIR}' 5634 @echo usrlibdir='${USRLIBDIR}'
5168libdir: 5635libdir:
5169 @echo libdir='${LIBDIR}' 5636 @echo libdir='${LIBDIR}'
5170_ACEOF 5637_ACEOF
5171 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 5638 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5172 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5639 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5173 for ac_var in incroot usrlibdir libdir; do 5640 for ac_var in incroot usrlibdir libdir; do
5174 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 5641 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5175 done 5642 done
5176 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 5643 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5177 for ac_extension in a so sl; do 5644 for ac_extension in a so sl dylib la dll; do
5178 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 5645 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5179 test -f "$ac_im_libdir/libX11.$ac_extension"; then 5646 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5180 ac_im_usrlibdir=$ac_im_libdir; break 5647 ac_im_usrlibdir=$ac_im_libdir; break
5181 fi 5648 fi
5182 done 5649 done
5186 case $ac_im_incroot in 5653 case $ac_im_incroot in
5187 /usr/include) ac_x_includes= ;; 5654 /usr/include) ac_x_includes= ;;
5188 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 5655 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5189 esac 5656 esac
5190 case $ac_im_usrlibdir in 5657 case $ac_im_usrlibdir in
5191 /usr/lib | /lib) ;; 5658 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5192 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 5659 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5193 esac 5660 esac
5194 fi 5661 fi
5195 cd .. 5662 cd ..
5196 rm -f -r conftest.dir 5663 rm -f -r conftest.dir
5198 5665
5199# Standard set of common directories for X headers. 5666# Standard set of common directories for X headers.
5200# Check X11 before X11Rn because it is often a symlink to the current release. 5667# Check X11 before X11Rn because it is often a symlink to the current release.
5201ac_x_header_dirs=' 5668ac_x_header_dirs='
5202/usr/X11/include 5669/usr/X11/include
5670/usr/X11R7/include
5203/usr/X11R6/include 5671/usr/X11R6/include
5204/usr/X11R5/include 5672/usr/X11R5/include
5205/usr/X11R4/include 5673/usr/X11R4/include
5206 5674
5207/usr/include/X11 5675/usr/include/X11
5676/usr/include/X11R7
5208/usr/include/X11R6 5677/usr/include/X11R6
5209/usr/include/X11R5 5678/usr/include/X11R5
5210/usr/include/X11R4 5679/usr/include/X11R4
5211 5680
5212/usr/local/X11/include 5681/usr/local/X11/include
5682/usr/local/X11R7/include
5213/usr/local/X11R6/include 5683/usr/local/X11R6/include
5214/usr/local/X11R5/include 5684/usr/local/X11R5/include
5215/usr/local/X11R4/include 5685/usr/local/X11R4/include
5216 5686
5217/usr/local/include/X11 5687/usr/local/include/X11
5688/usr/local/include/X11R7
5218/usr/local/include/X11R6 5689/usr/local/include/X11R6
5219/usr/local/include/X11R5 5690/usr/local/include/X11R5
5220/usr/local/include/X11R4 5691/usr/local/include/X11R4
5221 5692
5222/usr/X386/include 5693/usr/X386/include
5234/usr/openwin/share/include' 5705/usr/openwin/share/include'
5235 5706
5236if test "$ac_x_includes" = no; then 5707if test "$ac_x_includes" = no; then
5237 # Guess where to find include files, by looking for Xlib.h. 5708 # Guess where to find include files, by looking for Xlib.h.
5238 # First, try using that file with no special directory specified. 5709 # First, try using that file with no special directory specified.
5239 cat >conftest.$ac_ext <<_ACEOF
5240/* confdefs.h. */
5241_ACEOF
5242cat confdefs.h >>conftest.$ac_ext 5710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5243cat >>conftest.$ac_ext <<_ACEOF
5244/* end confdefs.h. */ 5711/* end confdefs.h. */
5245#include <X11/Xlib.h> 5712#include <X11/Xlib.h>
5246_ACEOF 5713_ACEOF
5247if { (ac_try="$ac_cpp conftest.$ac_ext" 5714if ac_fn_cxx_try_cpp "$LINENO"; then :
5248case "(($ac_try" in
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5251esac
5252eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } >/dev/null && {
5260 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5261 test ! -s conftest.err
5262 }; then
5263 # We can compile using X headers with no special include directory. 5715 # We can compile using X headers with no special include directory.
5264ac_x_includes= 5716ac_x_includes=
5265else 5717else
5266 echo "$as_me: failed program was:" >&5
5267sed 's/^/| /' conftest.$ac_ext >&5
5268
5269 for ac_dir in $ac_x_header_dirs; do 5718 for ac_dir in $ac_x_header_dirs; do
5270 if test -r "$ac_dir/X11/Xlib.h"; then 5719 if test -r "$ac_dir/X11/Xlib.h"; then
5271 ac_x_includes=$ac_dir 5720 ac_x_includes=$ac_dir
5272 break 5721 break
5273 fi 5722 fi
5274done 5723done
5275fi 5724fi
5276
5277rm -f conftest.err conftest.$ac_ext 5725rm -f conftest.err conftest.i conftest.$ac_ext
5278fi # $ac_x_includes = no 5726fi # $ac_x_includes = no
5279 5727
5280if test "$ac_x_libraries" = no; then 5728if test "$ac_x_libraries" = no; then
5281 # Check for the libraries. 5729 # Check for the libraries.
5282 # See if we find them without any special options. 5730 # See if we find them without any special options.
5283 # Don't add to $LIBS permanently. 5731 # Don't add to $LIBS permanently.
5284 ac_save_LIBS=$LIBS 5732 ac_save_LIBS=$LIBS
5285 LIBS="-lX11 $LIBS" 5733 LIBS="-lX11 $LIBS"
5286 cat >conftest.$ac_ext <<_ACEOF
5287/* confdefs.h. */
5288_ACEOF
5289cat confdefs.h >>conftest.$ac_ext 5734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290cat >>conftest.$ac_ext <<_ACEOF
5291/* end confdefs.h. */ 5735/* end confdefs.h. */
5292#include <X11/Xlib.h> 5736#include <X11/Xlib.h>
5293int 5737int
5294main () 5738main ()
5295{ 5739{
5296XrmInitialize () 5740XrmInitialize ()
5297 ; 5741 ;
5298 return 0; 5742 return 0;
5299} 5743}
5300_ACEOF 5744_ACEOF
5301rm -f conftest.$ac_objext conftest$ac_exeext 5745if ac_fn_cxx_try_link "$LINENO"; then :
5302if { (ac_try="$ac_link"
5303case "(($ac_try" in
5304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5305 *) ac_try_echo=$ac_try;;
5306esac
5307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_link") 2>conftest.er1
5309 ac_status=$?
5310 grep -v '^ *+' conftest.er1 >conftest.err
5311 rm -f conftest.er1
5312 cat conftest.err >&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } && {
5315 test -z "$ac_cxx_werror_flag" ||
5316 test ! -s conftest.err
5317 } && test -s conftest$ac_exeext &&
5318 $as_test_x conftest$ac_exeext; then
5319 LIBS=$ac_save_LIBS 5746 LIBS=$ac_save_LIBS
5320# We can link X programs with no special library path. 5747# We can link X programs with no special library path.
5321ac_x_libraries= 5748ac_x_libraries=
5322else 5749else
5323 echo "$as_me: failed program was:" >&5
5324sed 's/^/| /' conftest.$ac_ext >&5
5325
5326 LIBS=$ac_save_LIBS 5750 LIBS=$ac_save_LIBS
5327for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5751for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5328do 5752do
5329 # Don't even attempt the hair of trying to link an X program! 5753 # Don't even attempt the hair of trying to link an X program!
5330 for ac_extension in a so sl; do 5754 for ac_extension in a so sl dylib la dll; do
5331 if test -r "$ac_dir/libX11.$ac_extension"; then 5755 if test -r "$ac_dir/libX11.$ac_extension"; then
5332 ac_x_libraries=$ac_dir 5756 ac_x_libraries=$ac_dir
5333 break 2 5757 break 2
5334 fi 5758 fi
5335 done 5759 done
5336done 5760done
5337fi 5761fi
5338
5339rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5762rm -f core conftest.err conftest.$ac_objext \
5340 conftest$ac_exeext conftest.$ac_ext 5763 conftest$ac_exeext conftest.$ac_ext
5341fi # $ac_x_libraries = no 5764fi # $ac_x_libraries = no
5342 5765
5343case $ac_x_includes,$ac_x_libraries in #( 5766case $ac_x_includes,$ac_x_libraries in #(
5344 no,* | *,no | *\'*) 5767 no,* | *,no | *\'*)
5345 # Didn't find X, or a directory has "'" in its name. 5768 # Didn't find X, or a directory has "'" in its name.
5356 esac 5779 esac
5357 eval "$ac_cv_have_x" 5780 eval "$ac_cv_have_x"
5358fi # $with_x != no 5781fi # $with_x != no
5359 5782
5360if test "$have_x" != yes; then 5783if test "$have_x" != yes; then
5361 { echo "$as_me:$LINENO: result: $have_x" >&5 5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5362echo "${ECHO_T}$have_x" >&6; } 5785$as_echo "$have_x" >&6; }
5363 no_x=yes 5786 no_x=yes
5364else 5787else
5365 # If each of the values was on the command line, it overrides each guess. 5788 # If each of the values was on the command line, it overrides each guess.
5366 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5789 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5367 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5790 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5368 # Update the cache value to reflect the command line values. 5791 # Update the cache value to reflect the command line values.
5369 ac_cv_have_x="have_x=yes\ 5792 ac_cv_have_x="have_x=yes\
5370 ac_x_includes='$x_includes'\ 5793 ac_x_includes='$x_includes'\
5371 ac_x_libraries='$x_libraries'" 5794 ac_x_libraries='$x_libraries'"
5372 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 5795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5373echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } 5796$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5374fi 5797fi
5375 5798
5376if test "$no_x" = yes; then 5799if test "$no_x" = yes; then
5377 # Not all programs may use this symbol, but it does not hurt to define it. 5800 # Not all programs may use this symbol, but it does not hurt to define it.
5378 5801
5379cat >>confdefs.h <<\_ACEOF 5802$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5380#define X_DISPLAY_MISSING 1
5381_ACEOF
5382 5803
5383 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 5804 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5384else 5805else
5385 if test -n "$x_includes"; then 5806 if test -n "$x_includes"; then
5386 X_CFLAGS="$X_CFLAGS -I$x_includes" 5807 X_CFLAGS="$X_CFLAGS -I$x_includes"
5389 # It would also be nice to do this for all -L options, not just this one. 5810 # It would also be nice to do this for all -L options, not just this one.
5390 if test -n "$x_libraries"; then 5811 if test -n "$x_libraries"; then
5391 X_LIBS="$X_LIBS -L$x_libraries" 5812 X_LIBS="$X_LIBS -L$x_libraries"
5392 # For Solaris; some versions of Sun CC require a space after -R and 5813 # For Solaris; some versions of Sun CC require a space after -R and
5393 # others require no space. Words are not sufficient . . . . 5814 # others require no space. Words are not sufficient . . . .
5394 { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5395echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } 5816$as_echo_n "checking whether -R must be followed by a space... " >&6; }
5396 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 5817 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5397 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 5818 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5398 ac_cxx_werror_flag=yes 5819 ac_cxx_werror_flag=yes
5399 cat >conftest.$ac_ext <<_ACEOF
5400/* confdefs.h. */
5401_ACEOF
5402cat confdefs.h >>conftest.$ac_ext 5820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5403cat >>conftest.$ac_ext <<_ACEOF
5404/* end confdefs.h. */ 5821/* end confdefs.h. */
5405 5822
5406int 5823int
5407main () 5824main ()
5408{ 5825{
5409 5826
5410 ; 5827 ;
5411 return 0; 5828 return 0;
5412} 5829}
5413_ACEOF 5830_ACEOF
5414rm -f conftest.$ac_objext conftest$ac_exeext 5831if ac_fn_cxx_try_link "$LINENO"; then :
5415if { (ac_try="$ac_link"
5416case "(($ac_try" in
5417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5418 *) ac_try_echo=$ac_try;;
5419esac
5420eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5421 (eval "$ac_link") 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } && {
5428 test -z "$ac_cxx_werror_flag" ||
5429 test ! -s conftest.err
5430 } && test -s conftest$ac_exeext &&
5431 $as_test_x conftest$ac_exeext; then
5432 { echo "$as_me:$LINENO: result: no" >&5 5832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5433echo "${ECHO_T}no" >&6; } 5833$as_echo "no" >&6; }
5434 X_LIBS="$X_LIBS -R$x_libraries" 5834 X_LIBS="$X_LIBS -R$x_libraries"
5435else 5835else
5436 echo "$as_me: failed program was:" >&5
5437sed 's/^/| /' conftest.$ac_ext >&5
5438
5439 LIBS="$ac_xsave_LIBS -R $x_libraries" 5836 LIBS="$ac_xsave_LIBS -R $x_libraries"
5440 cat >conftest.$ac_ext <<_ACEOF
5441/* confdefs.h. */
5442_ACEOF
5443cat confdefs.h >>conftest.$ac_ext 5837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5444cat >>conftest.$ac_ext <<_ACEOF
5445/* end confdefs.h. */ 5838/* end confdefs.h. */
5446 5839
5447int 5840int
5448main () 5841main ()
5449{ 5842{
5450 5843
5451 ; 5844 ;
5452 return 0; 5845 return 0;
5453} 5846}
5454_ACEOF 5847_ACEOF
5455rm -f conftest.$ac_objext conftest$ac_exeext 5848if ac_fn_cxx_try_link "$LINENO"; then :
5456if { (ac_try="$ac_link"
5457case "(($ac_try" in
5458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5459 *) ac_try_echo=$ac_try;;
5460esac
5461eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_link") 2>conftest.er1
5463 ac_status=$?
5464 grep -v '^ *+' conftest.er1 >conftest.err
5465 rm -f conftest.er1
5466 cat conftest.err >&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && {
5469 test -z "$ac_cxx_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest$ac_exeext &&
5472 $as_test_x conftest$ac_exeext; then
5473 { echo "$as_me:$LINENO: result: yes" >&5 5849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5474echo "${ECHO_T}yes" >&6; } 5850$as_echo "yes" >&6; }
5475 X_LIBS="$X_LIBS -R $x_libraries" 5851 X_LIBS="$X_LIBS -R $x_libraries"
5476else 5852else
5477 echo "$as_me: failed program was:" >&5
5478sed 's/^/| /' conftest.$ac_ext >&5
5479
5480 { echo "$as_me:$LINENO: result: neither works" >&5 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5481echo "${ECHO_T}neither works" >&6; } 5854$as_echo "neither works" >&6; }
5482fi 5855fi
5483
5484rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5856rm -f core conftest.err conftest.$ac_objext \
5485 conftest$ac_exeext conftest.$ac_ext 5857 conftest$ac_exeext conftest.$ac_ext
5486fi 5858fi
5487
5488rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5859rm -f core conftest.err conftest.$ac_objext \
5489 conftest$ac_exeext conftest.$ac_ext 5860 conftest$ac_exeext conftest.$ac_ext
5490 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 5861 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5491 LIBS=$ac_xsave_LIBS 5862 LIBS=$ac_xsave_LIBS
5492 fi 5863 fi
5493 5864
5494 # Check for system-dependent libraries X programs must link with. 5865 # Check for system-dependent libraries X programs must link with.
5500 else 5871 else
5501 # Martyn Johnson says this is needed for Ultrix, if the X 5872 # Martyn Johnson says this is needed for Ultrix, if the X
5502 # libraries were built with DECnet support. And Karl Berry says 5873 # libraries were built with DECnet support. And Karl Berry says
5503 # the Alpha needs dnet_stub (dnet does not exist). 5874 # the Alpha needs dnet_stub (dnet does not exist).
5504 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 5875 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5505 cat >conftest.$ac_ext <<_ACEOF
5506/* confdefs.h. */
5507_ACEOF
5508cat confdefs.h >>conftest.$ac_ext 5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5509cat >>conftest.$ac_ext <<_ACEOF
5510/* end confdefs.h. */ 5877/* end confdefs.h. */
5511 5878
5512/* Override any GCC internal prototype to avoid an error. 5879/* Override any GCC internal prototype to avoid an error.
5513 Use char because int might match the return type of a GCC 5880 Use char because int might match the return type of a GCC
5514 builtin and then its argument prototype would still apply. */ 5881 builtin and then its argument prototype would still apply. */
5522return XOpenDisplay (); 5889return XOpenDisplay ();
5523 ; 5890 ;
5524 return 0; 5891 return 0;
5525} 5892}
5526_ACEOF 5893_ACEOF
5527rm -f conftest.$ac_objext conftest$ac_exeext 5894if ac_fn_cxx_try_link "$LINENO"; then :
5528if { (ac_try="$ac_link"
5529case "(($ac_try" in
5530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5531 *) ac_try_echo=$ac_try;;
5532esac
5533eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5534 (eval "$ac_link") 2>conftest.er1
5535 ac_status=$?
5536 grep -v '^ *+' conftest.er1 >conftest.err
5537 rm -f conftest.er1
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } && {
5541 test -z "$ac_cxx_werror_flag" ||
5542 test ! -s conftest.err
5543 } && test -s conftest$ac_exeext &&
5544 $as_test_x conftest$ac_exeext; then
5545 :
5546else
5547 echo "$as_me: failed program was:" >&5
5548sed 's/^/| /' conftest.$ac_ext >&5
5549 5895
5896else
5550 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5551echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } 5898$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5552if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 5899if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
5553 echo $ECHO_N "(cached) $ECHO_C" >&6 5900 $as_echo_n "(cached) " >&6
5554else 5901else
5555 ac_check_lib_save_LIBS=$LIBS 5902 ac_check_lib_save_LIBS=$LIBS
5556LIBS="-ldnet $LIBS" 5903LIBS="-ldnet $LIBS"
5557cat >conftest.$ac_ext <<_ACEOF
5558/* confdefs.h. */
5559_ACEOF
5560cat confdefs.h >>conftest.$ac_ext 5904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5561cat >>conftest.$ac_ext <<_ACEOF
5562/* end confdefs.h. */ 5905/* end confdefs.h. */
5563 5906
5564/* Override any GCC internal prototype to avoid an error. 5907/* Override any GCC internal prototype to avoid an error.
5565 Use char because int might match the return type of a GCC 5908 Use char because int might match the return type of a GCC
5566 builtin and then its argument prototype would still apply. */ 5909 builtin and then its argument prototype would still apply. */
5574return dnet_ntoa (); 5917return dnet_ntoa ();
5575 ; 5918 ;
5576 return 0; 5919 return 0;
5577} 5920}
5578_ACEOF 5921_ACEOF
5579rm -f conftest.$ac_objext conftest$ac_exeext 5922if ac_fn_cxx_try_link "$LINENO"; then :
5580if { (ac_try="$ac_link"
5581case "(($ac_try" in
5582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5583 *) ac_try_echo=$ac_try;;
5584esac
5585eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5586 (eval "$ac_link") 2>conftest.er1
5587 ac_status=$?
5588 grep -v '^ *+' conftest.er1 >conftest.err
5589 rm -f conftest.er1
5590 cat conftest.err >&5
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); } && {
5593 test -z "$ac_cxx_werror_flag" ||
5594 test ! -s conftest.err
5595 } && test -s conftest$ac_exeext &&
5596 $as_test_x conftest$ac_exeext; then
5597 ac_cv_lib_dnet_dnet_ntoa=yes 5923 ac_cv_lib_dnet_dnet_ntoa=yes
5598else 5924else
5599 echo "$as_me: failed program was:" >&5
5600sed 's/^/| /' conftest.$ac_ext >&5
5601
5602 ac_cv_lib_dnet_dnet_ntoa=no 5925 ac_cv_lib_dnet_dnet_ntoa=no
5603fi 5926fi
5604
5605rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5927rm -f core conftest.err conftest.$ac_objext \
5606 conftest$ac_exeext conftest.$ac_ext 5928 conftest$ac_exeext conftest.$ac_ext
5607LIBS=$ac_check_lib_save_LIBS 5929LIBS=$ac_check_lib_save_LIBS
5608fi 5930fi
5609{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5610echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } 5932$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5611if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 5933if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
5612 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 5934 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5613fi 5935fi
5614 5936
5615 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 5937 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5616 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 5938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5617echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } 5939$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5618if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 5940if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
5619 echo $ECHO_N "(cached) $ECHO_C" >&6 5941 $as_echo_n "(cached) " >&6
5620else 5942else
5621 ac_check_lib_save_LIBS=$LIBS 5943 ac_check_lib_save_LIBS=$LIBS
5622LIBS="-ldnet_stub $LIBS" 5944LIBS="-ldnet_stub $LIBS"
5623cat >conftest.$ac_ext <<_ACEOF
5624/* confdefs.h. */
5625_ACEOF
5626cat confdefs.h >>conftest.$ac_ext 5945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5627cat >>conftest.$ac_ext <<_ACEOF
5628/* end confdefs.h. */ 5946/* end confdefs.h. */
5629 5947
5630/* Override any GCC internal prototype to avoid an error. 5948/* Override any GCC internal prototype to avoid an error.
5631 Use char because int might match the return type of a GCC 5949 Use char because int might match the return type of a GCC
5632 builtin and then its argument prototype would still apply. */ 5950 builtin and then its argument prototype would still apply. */
5640return dnet_ntoa (); 5958return dnet_ntoa ();
5641 ; 5959 ;
5642 return 0; 5960 return 0;
5643} 5961}
5644_ACEOF 5962_ACEOF
5645rm -f conftest.$ac_objext conftest$ac_exeext 5963if ac_fn_cxx_try_link "$LINENO"; then :
5646if { (ac_try="$ac_link"
5647case "(($ac_try" in
5648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5649 *) ac_try_echo=$ac_try;;
5650esac
5651eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5652 (eval "$ac_link") 2>conftest.er1
5653 ac_status=$?
5654 grep -v '^ *+' conftest.er1 >conftest.err
5655 rm -f conftest.er1
5656 cat conftest.err >&5
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); } && {
5659 test -z "$ac_cxx_werror_flag" ||
5660 test ! -s conftest.err
5661 } && test -s conftest$ac_exeext &&
5662 $as_test_x conftest$ac_exeext; then
5663 ac_cv_lib_dnet_stub_dnet_ntoa=yes 5964 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5664else 5965else
5665 echo "$as_me: failed program was:" >&5
5666sed 's/^/| /' conftest.$ac_ext >&5
5667
5668 ac_cv_lib_dnet_stub_dnet_ntoa=no 5966 ac_cv_lib_dnet_stub_dnet_ntoa=no
5669fi 5967fi
5670
5671rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5968rm -f core conftest.err conftest.$ac_objext \
5672 conftest$ac_exeext conftest.$ac_ext 5969 conftest$ac_exeext conftest.$ac_ext
5673LIBS=$ac_check_lib_save_LIBS 5970LIBS=$ac_check_lib_save_LIBS
5674fi 5971fi
5675{ echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 5972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5676echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 5973$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5677if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 5974if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5678 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 5975 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5679fi 5976fi
5680 5977
5681 fi 5978 fi
5682fi 5979fi
5683
5684rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 5980rm -f core conftest.err conftest.$ac_objext \
5685 conftest$ac_exeext conftest.$ac_ext 5981 conftest$ac_exeext conftest.$ac_ext
5686 LIBS="$ac_xsave_LIBS" 5982 LIBS="$ac_xsave_LIBS"
5687 5983
5688 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 5984 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5689 # to get the SysV transport functions. 5985 # to get the SysV transport functions.
5690 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 5986 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5691 # needs -lnsl. 5987 # needs -lnsl.
5692 # The nsl library prevents programs from opening the X display 5988 # The nsl library prevents programs from opening the X display
5693 # on Irix 5.2, according to T.E. Dickey. 5989 # on Irix 5.2, according to T.E. Dickey.
5694 # The functions gethostbyname, getservbyname, and inet_addr are 5990 # The functions gethostbyname, getservbyname, and inet_addr are
5695 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 5991 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5696 { echo "$as_me:$LINENO: checking for gethostbyname" >&5 5992 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5697echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; }
5698if test "${ac_cv_func_gethostbyname+set}" = set; then 5993if test "x$ac_cv_func_gethostbyname" = xyes; then :
5699 echo $ECHO_N "(cached) $ECHO_C" >&6
5700else
5701 cat >conftest.$ac_ext <<_ACEOF
5702/* confdefs.h. */
5703_ACEOF
5704cat confdefs.h >>conftest.$ac_ext
5705cat >>conftest.$ac_ext <<_ACEOF
5706/* end confdefs.h. */
5707/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5709#define gethostbyname innocuous_gethostbyname
5710 5994
5711/* System header to define __stub macros and hopefully few prototypes,
5712 which can conflict with char gethostbyname (); below.
5713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5714 <limits.h> exists even on freestanding compilers. */
5715
5716#ifdef __STDC__
5717# include <limits.h>
5718#else
5719# include <assert.h>
5720#endif
5721
5722#undef gethostbyname
5723
5724/* Override any GCC internal prototype to avoid an error.
5725 Use char because int might match the return type of a GCC
5726 builtin and then its argument prototype would still apply. */
5727#ifdef __cplusplus
5728extern "C"
5729#endif
5730char gethostbyname ();
5731/* The GNU C library defines this for functions which it implements
5732 to always fail with ENOSYS. Some functions are actually named
5733 something starting with __ and the normal name is an alias. */
5734#if defined __stub_gethostbyname || defined __stub___gethostbyname
5735choke me
5736#endif
5737
5738int
5739main ()
5740{
5741return gethostbyname ();
5742 ;
5743 return 0;
5744}
5745_ACEOF
5746rm -f conftest.$ac_objext conftest$ac_exeext
5747if { (ac_try="$ac_link"
5748case "(($ac_try" in
5749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5750 *) ac_try_echo=$ac_try;;
5751esac
5752eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_link") 2>conftest.er1
5754 ac_status=$?
5755 grep -v '^ *+' conftest.er1 >conftest.err
5756 rm -f conftest.er1
5757 cat conftest.err >&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_cxx_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest$ac_exeext &&
5763 $as_test_x conftest$ac_exeext; then
5764 ac_cv_func_gethostbyname=yes
5765else
5766 echo "$as_me: failed program was:" >&5
5767sed 's/^/| /' conftest.$ac_ext >&5
5768
5769 ac_cv_func_gethostbyname=no
5770fi 5995fi
5771
5772rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5773 conftest$ac_exeext conftest.$ac_ext
5774fi
5775{ echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
5776echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; }
5777 5996
5778 if test $ac_cv_func_gethostbyname = no; then 5997 if test $ac_cv_func_gethostbyname = no; then
5779 { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 5998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
5780echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } 5999$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
5781if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 6000if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
5782 echo $ECHO_N "(cached) $ECHO_C" >&6 6001 $as_echo_n "(cached) " >&6
5783else 6002else
5784 ac_check_lib_save_LIBS=$LIBS 6003 ac_check_lib_save_LIBS=$LIBS
5785LIBS="-lnsl $LIBS" 6004LIBS="-lnsl $LIBS"
5786cat >conftest.$ac_ext <<_ACEOF
5787/* confdefs.h. */
5788_ACEOF
5789cat confdefs.h >>conftest.$ac_ext 6005cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5790cat >>conftest.$ac_ext <<_ACEOF
5791/* end confdefs.h. */ 6006/* end confdefs.h. */
5792 6007
5793/* Override any GCC internal prototype to avoid an error. 6008/* Override any GCC internal prototype to avoid an error.
5794 Use char because int might match the return type of a GCC 6009 Use char because int might match the return type of a GCC
5795 builtin and then its argument prototype would still apply. */ 6010 builtin and then its argument prototype would still apply. */
5803return gethostbyname (); 6018return gethostbyname ();
5804 ; 6019 ;
5805 return 0; 6020 return 0;
5806} 6021}
5807_ACEOF 6022_ACEOF
5808rm -f conftest.$ac_objext conftest$ac_exeext 6023if ac_fn_cxx_try_link "$LINENO"; then :
5809if { (ac_try="$ac_link"
5810case "(($ac_try" in
5811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5812 *) ac_try_echo=$ac_try;;
5813esac
5814eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_link") 2>conftest.er1
5816 ac_status=$?
5817 grep -v '^ *+' conftest.er1 >conftest.err
5818 rm -f conftest.er1
5819 cat conftest.err >&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } && {
5822 test -z "$ac_cxx_werror_flag" ||
5823 test ! -s conftest.err
5824 } && test -s conftest$ac_exeext &&
5825 $as_test_x conftest$ac_exeext; then
5826 ac_cv_lib_nsl_gethostbyname=yes 6024 ac_cv_lib_nsl_gethostbyname=yes
5827else 6025else
5828 echo "$as_me: failed program was:" >&5
5829sed 's/^/| /' conftest.$ac_ext >&5
5830
5831 ac_cv_lib_nsl_gethostbyname=no 6026 ac_cv_lib_nsl_gethostbyname=no
5832fi 6027fi
5833
5834rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6028rm -f core conftest.err conftest.$ac_objext \
5835 conftest$ac_exeext conftest.$ac_ext 6029 conftest$ac_exeext conftest.$ac_ext
5836LIBS=$ac_check_lib_save_LIBS 6030LIBS=$ac_check_lib_save_LIBS
5837fi 6031fi
5838{ echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 6032{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5839echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } 6033$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
5840if test $ac_cv_lib_nsl_gethostbyname = yes; then 6034if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
5841 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 6035 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5842fi 6036fi
5843 6037
5844 if test $ac_cv_lib_nsl_gethostbyname = no; then 6038 if test $ac_cv_lib_nsl_gethostbyname = no; then
5845 { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 6039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5846echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } 6040$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5847if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then 6041if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5848 echo $ECHO_N "(cached) $ECHO_C" >&6 6042 $as_echo_n "(cached) " >&6
5849else 6043else
5850 ac_check_lib_save_LIBS=$LIBS 6044 ac_check_lib_save_LIBS=$LIBS
5851LIBS="-lbsd $LIBS" 6045LIBS="-lbsd $LIBS"
5852cat >conftest.$ac_ext <<_ACEOF
5853/* confdefs.h. */
5854_ACEOF
5855cat confdefs.h >>conftest.$ac_ext 6046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5856cat >>conftest.$ac_ext <<_ACEOF
5857/* end confdefs.h. */ 6047/* end confdefs.h. */
5858 6048
5859/* Override any GCC internal prototype to avoid an error. 6049/* Override any GCC internal prototype to avoid an error.
5860 Use char because int might match the return type of a GCC 6050 Use char because int might match the return type of a GCC
5861 builtin and then its argument prototype would still apply. */ 6051 builtin and then its argument prototype would still apply. */
5869return gethostbyname (); 6059return gethostbyname ();
5870 ; 6060 ;
5871 return 0; 6061 return 0;
5872} 6062}
5873_ACEOF 6063_ACEOF
5874rm -f conftest.$ac_objext conftest$ac_exeext 6064if ac_fn_cxx_try_link "$LINENO"; then :
5875if { (ac_try="$ac_link"
5876case "(($ac_try" in
5877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5878 *) ac_try_echo=$ac_try;;
5879esac
5880eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5881 (eval "$ac_link") 2>conftest.er1
5882 ac_status=$?
5883 grep -v '^ *+' conftest.er1 >conftest.err
5884 rm -f conftest.er1
5885 cat conftest.err >&5
5886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5887 (exit $ac_status); } && {
5888 test -z "$ac_cxx_werror_flag" ||
5889 test ! -s conftest.err
5890 } && test -s conftest$ac_exeext &&
5891 $as_test_x conftest$ac_exeext; then
5892 ac_cv_lib_bsd_gethostbyname=yes 6065 ac_cv_lib_bsd_gethostbyname=yes
5893else 6066else
5894 echo "$as_me: failed program was:" >&5
5895sed 's/^/| /' conftest.$ac_ext >&5
5896
5897 ac_cv_lib_bsd_gethostbyname=no 6067 ac_cv_lib_bsd_gethostbyname=no
5898fi 6068fi
5899
5900rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6069rm -f core conftest.err conftest.$ac_objext \
5901 conftest$ac_exeext conftest.$ac_ext 6070 conftest$ac_exeext conftest.$ac_ext
5902LIBS=$ac_check_lib_save_LIBS 6071LIBS=$ac_check_lib_save_LIBS
5903fi 6072fi
5904{ echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 6073{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
5905echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } 6074$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
5906if test $ac_cv_lib_bsd_gethostbyname = yes; then 6075if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
5907 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6076 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
5908fi 6077fi
5909 6078
5910 fi 6079 fi
5911 fi 6080 fi
5915 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6084 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
5916 # on later versions), says Simon Leinen: it contains gethostby* 6085 # on later versions), says Simon Leinen: it contains gethostby*
5917 # variants that don't use the name server (or something). -lsocket 6086 # variants that don't use the name server (or something). -lsocket
5918 # must be given before -lnsl if both are needed. We assume that 6087 # must be given before -lnsl if both are needed. We assume that
5919 # if connect needs -lnsl, so does gethostbyname. 6088 # if connect needs -lnsl, so does gethostbyname.
5920 { echo "$as_me:$LINENO: checking for connect" >&5 6089 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
5921echo $ECHO_N "checking for connect... $ECHO_C" >&6; }
5922if test "${ac_cv_func_connect+set}" = set; then 6090if test "x$ac_cv_func_connect" = xyes; then :
5923 echo $ECHO_N "(cached) $ECHO_C" >&6
5924else
5925 cat >conftest.$ac_ext <<_ACEOF
5926/* confdefs.h. */
5927_ACEOF
5928cat confdefs.h >>conftest.$ac_ext
5929cat >>conftest.$ac_ext <<_ACEOF
5930/* end confdefs.h. */
5931/* Define connect to an innocuous variant, in case <limits.h> declares connect.
5932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5933#define connect innocuous_connect
5934 6091
5935/* System header to define __stub macros and hopefully few prototypes,
5936 which can conflict with char connect (); below.
5937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5938 <limits.h> exists even on freestanding compilers. */
5939
5940#ifdef __STDC__
5941# include <limits.h>
5942#else
5943# include <assert.h>
5944#endif
5945
5946#undef connect
5947
5948/* Override any GCC internal prototype to avoid an error.
5949 Use char because int might match the return type of a GCC
5950 builtin and then its argument prototype would still apply. */
5951#ifdef __cplusplus
5952extern "C"
5953#endif
5954char connect ();
5955/* The GNU C library defines this for functions which it implements
5956 to always fail with ENOSYS. Some functions are actually named
5957 something starting with __ and the normal name is an alias. */
5958#if defined __stub_connect || defined __stub___connect
5959choke me
5960#endif
5961
5962int
5963main ()
5964{
5965return connect ();
5966 ;
5967 return 0;
5968}
5969_ACEOF
5970rm -f conftest.$ac_objext conftest$ac_exeext
5971if { (ac_try="$ac_link"
5972case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975esac
5976eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_link") 2>conftest.er1
5978 ac_status=$?
5979 grep -v '^ *+' conftest.er1 >conftest.err
5980 rm -f conftest.er1
5981 cat conftest.err >&5
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } && {
5984 test -z "$ac_cxx_werror_flag" ||
5985 test ! -s conftest.err
5986 } && test -s conftest$ac_exeext &&
5987 $as_test_x conftest$ac_exeext; then
5988 ac_cv_func_connect=yes
5989else
5990 echo "$as_me: failed program was:" >&5
5991sed 's/^/| /' conftest.$ac_ext >&5
5992
5993 ac_cv_func_connect=no
5994fi 6092fi
5995
5996rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5997 conftest$ac_exeext conftest.$ac_ext
5998fi
5999{ echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
6000echo "${ECHO_T}$ac_cv_func_connect" >&6; }
6001 6093
6002 if test $ac_cv_func_connect = no; then 6094 if test $ac_cv_func_connect = no; then
6003 { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 6095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6004echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } 6096$as_echo_n "checking for connect in -lsocket... " >&6; }
6005if test "${ac_cv_lib_socket_connect+set}" = set; then 6097if ${ac_cv_lib_socket_connect+:} false; then :
6006 echo $ECHO_N "(cached) $ECHO_C" >&6 6098 $as_echo_n "(cached) " >&6
6007else 6099else
6008 ac_check_lib_save_LIBS=$LIBS 6100 ac_check_lib_save_LIBS=$LIBS
6009LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6101LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6010cat >conftest.$ac_ext <<_ACEOF
6011/* confdefs.h. */
6012_ACEOF
6013cat confdefs.h >>conftest.$ac_ext 6102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6014cat >>conftest.$ac_ext <<_ACEOF
6015/* end confdefs.h. */ 6103/* end confdefs.h. */
6016 6104
6017/* Override any GCC internal prototype to avoid an error. 6105/* Override any GCC internal prototype to avoid an error.
6018 Use char because int might match the return type of a GCC 6106 Use char because int might match the return type of a GCC
6019 builtin and then its argument prototype would still apply. */ 6107 builtin and then its argument prototype would still apply. */
6027return connect (); 6115return connect ();
6028 ; 6116 ;
6029 return 0; 6117 return 0;
6030} 6118}
6031_ACEOF 6119_ACEOF
6032rm -f conftest.$ac_objext conftest$ac_exeext 6120if ac_fn_cxx_try_link "$LINENO"; then :
6033if { (ac_try="$ac_link"
6034case "(($ac_try" in
6035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036 *) ac_try_echo=$ac_try;;
6037esac
6038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039 (eval "$ac_link") 2>conftest.er1
6040 ac_status=$?
6041 grep -v '^ *+' conftest.er1 >conftest.err
6042 rm -f conftest.er1
6043 cat conftest.err >&5
6044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6045 (exit $ac_status); } && {
6046 test -z "$ac_cxx_werror_flag" ||
6047 test ! -s conftest.err
6048 } && test -s conftest$ac_exeext &&
6049 $as_test_x conftest$ac_exeext; then
6050 ac_cv_lib_socket_connect=yes 6121 ac_cv_lib_socket_connect=yes
6051else 6122else
6052 echo "$as_me: failed program was:" >&5
6053sed 's/^/| /' conftest.$ac_ext >&5
6054
6055 ac_cv_lib_socket_connect=no 6123 ac_cv_lib_socket_connect=no
6056fi 6124fi
6057
6058rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6125rm -f core conftest.err conftest.$ac_objext \
6059 conftest$ac_exeext conftest.$ac_ext 6126 conftest$ac_exeext conftest.$ac_ext
6060LIBS=$ac_check_lib_save_LIBS 6127LIBS=$ac_check_lib_save_LIBS
6061fi 6128fi
6062{ echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 6129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6063echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } 6130$as_echo "$ac_cv_lib_socket_connect" >&6; }
6064if test $ac_cv_lib_socket_connect = yes; then 6131if test "x$ac_cv_lib_socket_connect" = xyes; then :
6065 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6132 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6066fi 6133fi
6067 6134
6068 fi 6135 fi
6069 6136
6070 # Guillermo Gomez says -lposix is necessary on A/UX. 6137 # Guillermo Gomez says -lposix is necessary on A/UX.
6071 { echo "$as_me:$LINENO: checking for remove" >&5 6138 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6072echo $ECHO_N "checking for remove... $ECHO_C" >&6; }
6073if test "${ac_cv_func_remove+set}" = set; then 6139if test "x$ac_cv_func_remove" = xyes; then :
6074 echo $ECHO_N "(cached) $ECHO_C" >&6
6075else
6076 cat >conftest.$ac_ext <<_ACEOF
6077/* confdefs.h. */
6078_ACEOF
6079cat confdefs.h >>conftest.$ac_ext
6080cat >>conftest.$ac_ext <<_ACEOF
6081/* end confdefs.h. */
6082/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6083 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6084#define remove innocuous_remove
6085 6140
6086/* System header to define __stub macros and hopefully few prototypes,
6087 which can conflict with char remove (); below.
6088 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6089 <limits.h> exists even on freestanding compilers. */
6090
6091#ifdef __STDC__
6092# include <limits.h>
6093#else
6094# include <assert.h>
6095#endif
6096
6097#undef remove
6098
6099/* Override any GCC internal prototype to avoid an error.
6100 Use char because int might match the return type of a GCC
6101 builtin and then its argument prototype would still apply. */
6102#ifdef __cplusplus
6103extern "C"
6104#endif
6105char remove ();
6106/* The GNU C library defines this for functions which it implements
6107 to always fail with ENOSYS. Some functions are actually named
6108 something starting with __ and the normal name is an alias. */
6109#if defined __stub_remove || defined __stub___remove
6110choke me
6111#endif
6112
6113int
6114main ()
6115{
6116return remove ();
6117 ;
6118 return 0;
6119}
6120_ACEOF
6121rm -f conftest.$ac_objext conftest$ac_exeext
6122if { (ac_try="$ac_link"
6123case "(($ac_try" in
6124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6125 *) ac_try_echo=$ac_try;;
6126esac
6127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6128 (eval "$ac_link") 2>conftest.er1
6129 ac_status=$?
6130 grep -v '^ *+' conftest.er1 >conftest.err
6131 rm -f conftest.er1
6132 cat conftest.err >&5
6133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6134 (exit $ac_status); } && {
6135 test -z "$ac_cxx_werror_flag" ||
6136 test ! -s conftest.err
6137 } && test -s conftest$ac_exeext &&
6138 $as_test_x conftest$ac_exeext; then
6139 ac_cv_func_remove=yes
6140else
6141 echo "$as_me: failed program was:" >&5
6142sed 's/^/| /' conftest.$ac_ext >&5
6143
6144 ac_cv_func_remove=no
6145fi 6141fi
6146
6147rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6148 conftest$ac_exeext conftest.$ac_ext
6149fi
6150{ echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6151echo "${ECHO_T}$ac_cv_func_remove" >&6; }
6152 6142
6153 if test $ac_cv_func_remove = no; then 6143 if test $ac_cv_func_remove = no; then
6154 { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6155echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } 6145$as_echo_n "checking for remove in -lposix... " >&6; }
6156if test "${ac_cv_lib_posix_remove+set}" = set; then 6146if ${ac_cv_lib_posix_remove+:} false; then :
6157 echo $ECHO_N "(cached) $ECHO_C" >&6 6147 $as_echo_n "(cached) " >&6
6158else 6148else
6159 ac_check_lib_save_LIBS=$LIBS 6149 ac_check_lib_save_LIBS=$LIBS
6160LIBS="-lposix $LIBS" 6150LIBS="-lposix $LIBS"
6161cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h. */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext 6151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
6166/* end confdefs.h. */ 6152/* end confdefs.h. */
6167 6153
6168/* Override any GCC internal prototype to avoid an error. 6154/* Override any GCC internal prototype to avoid an error.
6169 Use char because int might match the return type of a GCC 6155 Use char because int might match the return type of a GCC
6170 builtin and then its argument prototype would still apply. */ 6156 builtin and then its argument prototype would still apply. */
6178return remove (); 6164return remove ();
6179 ; 6165 ;
6180 return 0; 6166 return 0;
6181} 6167}
6182_ACEOF 6168_ACEOF
6183rm -f conftest.$ac_objext conftest$ac_exeext 6169if ac_fn_cxx_try_link "$LINENO"; then :
6184if { (ac_try="$ac_link"
6185case "(($ac_try" in
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6188esac
6189eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_link") 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && {
6197 test -z "$ac_cxx_werror_flag" ||
6198 test ! -s conftest.err
6199 } && test -s conftest$ac_exeext &&
6200 $as_test_x conftest$ac_exeext; then
6201 ac_cv_lib_posix_remove=yes 6170 ac_cv_lib_posix_remove=yes
6202else 6171else
6203 echo "$as_me: failed program was:" >&5
6204sed 's/^/| /' conftest.$ac_ext >&5
6205
6206 ac_cv_lib_posix_remove=no 6172 ac_cv_lib_posix_remove=no
6207fi 6173fi
6208
6209rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6174rm -f core conftest.err conftest.$ac_objext \
6210 conftest$ac_exeext conftest.$ac_ext 6175 conftest$ac_exeext conftest.$ac_ext
6211LIBS=$ac_check_lib_save_LIBS 6176LIBS=$ac_check_lib_save_LIBS
6212fi 6177fi
6213{ echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 6178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6214echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } 6179$as_echo "$ac_cv_lib_posix_remove" >&6; }
6215if test $ac_cv_lib_posix_remove = yes; then 6180if test "x$ac_cv_lib_posix_remove" = xyes; then :
6216 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 6181 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6217fi 6182fi
6218 6183
6219 fi 6184 fi
6220 6185
6221 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 6186 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6222 { echo "$as_me:$LINENO: checking for shmat" >&5 6187 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6223echo $ECHO_N "checking for shmat... $ECHO_C" >&6; }
6224if test "${ac_cv_func_shmat+set}" = set; then 6188if test "x$ac_cv_func_shmat" = xyes; then :
6225 echo $ECHO_N "(cached) $ECHO_C" >&6
6226else
6227 cat >conftest.$ac_ext <<_ACEOF
6228/* confdefs.h. */
6229_ACEOF
6230cat confdefs.h >>conftest.$ac_ext
6231cat >>conftest.$ac_ext <<_ACEOF
6232/* end confdefs.h. */
6233/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6235#define shmat innocuous_shmat
6236 6189
6237/* System header to define __stub macros and hopefully few prototypes,
6238 which can conflict with char shmat (); below.
6239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6240 <limits.h> exists even on freestanding compilers. */
6241
6242#ifdef __STDC__
6243# include <limits.h>
6244#else
6245# include <assert.h>
6246#endif
6247
6248#undef shmat
6249
6250/* Override any GCC internal prototype to avoid an error.
6251 Use char because int might match the return type of a GCC
6252 builtin and then its argument prototype would still apply. */
6253#ifdef __cplusplus
6254extern "C"
6255#endif
6256char shmat ();
6257/* The GNU C library defines this for functions which it implements
6258 to always fail with ENOSYS. Some functions are actually named
6259 something starting with __ and the normal name is an alias. */
6260#if defined __stub_shmat || defined __stub___shmat
6261choke me
6262#endif
6263
6264int
6265main ()
6266{
6267return shmat ();
6268 ;
6269 return 0;
6270}
6271_ACEOF
6272rm -f conftest.$ac_objext conftest$ac_exeext
6273if { (ac_try="$ac_link"
6274case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6277esac
6278eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_link") 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && {
6286 test -z "$ac_cxx_werror_flag" ||
6287 test ! -s conftest.err
6288 } && test -s conftest$ac_exeext &&
6289 $as_test_x conftest$ac_exeext; then
6290 ac_cv_func_shmat=yes
6291else
6292 echo "$as_me: failed program was:" >&5
6293sed 's/^/| /' conftest.$ac_ext >&5
6294
6295 ac_cv_func_shmat=no
6296fi 6190fi
6297
6298rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6299 conftest$ac_exeext conftest.$ac_ext
6300fi
6301{ echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6302echo "${ECHO_T}$ac_cv_func_shmat" >&6; }
6303 6191
6304 if test $ac_cv_func_shmat = no; then 6192 if test $ac_cv_func_shmat = no; then
6305 { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6306echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } 6194$as_echo_n "checking for shmat in -lipc... " >&6; }
6307if test "${ac_cv_lib_ipc_shmat+set}" = set; then 6195if ${ac_cv_lib_ipc_shmat+:} false; then :
6308 echo $ECHO_N "(cached) $ECHO_C" >&6 6196 $as_echo_n "(cached) " >&6
6309else 6197else
6310 ac_check_lib_save_LIBS=$LIBS 6198 ac_check_lib_save_LIBS=$LIBS
6311LIBS="-lipc $LIBS" 6199LIBS="-lipc $LIBS"
6312cat >conftest.$ac_ext <<_ACEOF
6313/* confdefs.h. */
6314_ACEOF
6315cat confdefs.h >>conftest.$ac_ext 6200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6316cat >>conftest.$ac_ext <<_ACEOF
6317/* end confdefs.h. */ 6201/* end confdefs.h. */
6318 6202
6319/* Override any GCC internal prototype to avoid an error. 6203/* Override any GCC internal prototype to avoid an error.
6320 Use char because int might match the return type of a GCC 6204 Use char because int might match the return type of a GCC
6321 builtin and then its argument prototype would still apply. */ 6205 builtin and then its argument prototype would still apply. */
6329return shmat (); 6213return shmat ();
6330 ; 6214 ;
6331 return 0; 6215 return 0;
6332} 6216}
6333_ACEOF 6217_ACEOF
6334rm -f conftest.$ac_objext conftest$ac_exeext 6218if ac_fn_cxx_try_link "$LINENO"; then :
6335if { (ac_try="$ac_link"
6336case "(($ac_try" in
6337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6338 *) ac_try_echo=$ac_try;;
6339esac
6340eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6341 (eval "$ac_link") 2>conftest.er1
6342 ac_status=$?
6343 grep -v '^ *+' conftest.er1 >conftest.err
6344 rm -f conftest.er1
6345 cat conftest.err >&5
6346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6347 (exit $ac_status); } && {
6348 test -z "$ac_cxx_werror_flag" ||
6349 test ! -s conftest.err
6350 } && test -s conftest$ac_exeext &&
6351 $as_test_x conftest$ac_exeext; then
6352 ac_cv_lib_ipc_shmat=yes 6219 ac_cv_lib_ipc_shmat=yes
6353else 6220else
6354 echo "$as_me: failed program was:" >&5
6355sed 's/^/| /' conftest.$ac_ext >&5
6356
6357 ac_cv_lib_ipc_shmat=no 6221 ac_cv_lib_ipc_shmat=no
6358fi 6222fi
6359
6360rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6223rm -f core conftest.err conftest.$ac_objext \
6361 conftest$ac_exeext conftest.$ac_ext 6224 conftest$ac_exeext conftest.$ac_ext
6362LIBS=$ac_check_lib_save_LIBS 6225LIBS=$ac_check_lib_save_LIBS
6363fi 6226fi
6364{ echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 6227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6365echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } 6228$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6366if test $ac_cv_lib_ipc_shmat = yes; then 6229if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
6367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6230 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6368fi 6231fi
6369 6232
6370 fi 6233 fi
6371 fi 6234 fi
6377 # check for ICE first), but we must link in the order -lSM -lICE or 6240 # check for ICE first), but we must link in the order -lSM -lICE or
6378 # we get undefined symbols. So assume we have SM if we have ICE. 6241 # we get undefined symbols. So assume we have SM if we have ICE.
6379 # These have to be linked with before -lX11, unlike the other 6242 # These have to be linked with before -lX11, unlike the other
6380 # libraries we check for below, so use a different variable. 6243 # libraries we check for below, so use a different variable.
6381 # John Interrante, Karl Berry 6244 # John Interrante, Karl Berry
6382 { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 6245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6383echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } 6246$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6384if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 6247if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
6385 echo $ECHO_N "(cached) $ECHO_C" >&6 6248 $as_echo_n "(cached) " >&6
6386else 6249else
6387 ac_check_lib_save_LIBS=$LIBS 6250 ac_check_lib_save_LIBS=$LIBS
6388LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6251LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6389cat >conftest.$ac_ext <<_ACEOF
6390/* confdefs.h. */
6391_ACEOF
6392cat confdefs.h >>conftest.$ac_ext 6252cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6393cat >>conftest.$ac_ext <<_ACEOF
6394/* end confdefs.h. */ 6253/* end confdefs.h. */
6395 6254
6396/* Override any GCC internal prototype to avoid an error. 6255/* Override any GCC internal prototype to avoid an error.
6397 Use char because int might match the return type of a GCC 6256 Use char because int might match the return type of a GCC
6398 builtin and then its argument prototype would still apply. */ 6257 builtin and then its argument prototype would still apply. */
6406return IceConnectionNumber (); 6265return IceConnectionNumber ();
6407 ; 6266 ;
6408 return 0; 6267 return 0;
6409} 6268}
6410_ACEOF 6269_ACEOF
6411rm -f conftest.$ac_objext conftest$ac_exeext 6270if ac_fn_cxx_try_link "$LINENO"; then :
6412if { (ac_try="$ac_link" 6271 ac_cv_lib_ICE_IceConnectionNumber=yes
6413case "(($ac_try" in 6272else
6414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6273 ac_cv_lib_ICE_IceConnectionNumber=no
6415 *) ac_try_echo=$ac_try;; 6274fi
6275rm -f core conftest.err conftest.$ac_objext \
6276 conftest$ac_exeext conftest.$ac_ext
6277LIBS=$ac_check_lib_save_LIBS
6278fi
6279{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6280$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6281if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
6282 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6283fi
6284
6285 LDFLAGS=$ac_save_LDFLAGS
6286
6287fi
6288
6289
6290image_lib=none
6291
6292PIXBUF_CFLAGS=
6293PIXBUF_LIBS=
6294
6295if test x$support_pixbuf = xyes; then
6296 support_pixbuf=no
6297 # Extract the first word of "pkg-config", so it can be a program name with args.
6298set dummy pkg-config; ac_word=$2
6299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300$as_echo_n "checking for $ac_word... " >&6; }
6301if ${ac_cv_path_PKG_CONFIG+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303else
6304 case $PKG_CONFIG in
6305 [\\/]* | ?:[\\/]*)
6306 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6307 ;;
6308 *)
6309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6310for as_dir in $PATH
6311do
6312 IFS=$as_save_IFS
6313 test -z "$as_dir" && as_dir=.
6314 for ac_exec_ext in '' $ac_executable_extensions; do
6315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6316 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6318 break 2
6319 fi
6320done
6321 done
6322IFS=$as_save_IFS
6323
6324 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6325 ;;
6416esac 6326esac
6417eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 6327fi
6418 (eval "$ac_link") 2>conftest.er1 6328PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6419 ac_status=$? 6329if test -n "$PKG_CONFIG"; then
6420 grep -v '^ *+' conftest.er1 >conftest.err 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6421 rm -f conftest.er1 6331$as_echo "$PKG_CONFIG" >&6; }
6422 cat conftest.err >&5 6332else
6423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6424 (exit $ac_status); } && { 6334$as_echo "no" >&6; }
6425 test -z "$ac_cxx_werror_flag" || 6335fi
6426 test ! -s conftest.err 6336
6427 } && test -s conftest$ac_exeext && 6337
6428 $as_test_x conftest$ac_exeext; then 6338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf" >&5
6429 ac_cv_lib_ICE_IceConnectionNumber=yes 6339$as_echo_n "checking for gdk-pixbuf... " >&6; }
6340 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
6341 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
6342 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
6343 support_pixbuf=yes
6344 fi
6345
6346 if test x$support_pixbuf = xyes; then
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6348$as_echo "ok" >&6; }
6349 image_lib=gdk-pixbuf
6350 support_afterimage=no
6351
6352$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
6353
6354
6355$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6356
6430else 6357 else
6431 echo "$as_me: failed program was:" >&5 6358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6432sed 's/^/| /' conftest.$ac_ext >&5 6359$as_echo "no" >&6; }
6433 6360 fi
6434 ac_cv_lib_ICE_IceConnectionNumber=no
6435fi 6361fi
6436 6362
6437rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6438 conftest$ac_exeext conftest.$ac_ext
6439LIBS=$ac_check_lib_save_LIBS
6440fi
6441{ echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6442echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6443if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
6444 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6445fi
6446 6363
6447 LDFLAGS=$ac_save_LDFLAGS
6448 6364
6365
6366STARTUP_NOTIFICATION_CFLAGS=
6367STARTUP_NOTIFICATION_LIBS=
6368
6369if test x$support_startup_notification = xyes; then
6370 support_startup_notification=no
6371 # Extract the first word of "pkg-config", so it can be a program name with args.
6372set dummy pkg-config; ac_word=$2
6373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6374$as_echo_n "checking for $ac_word... " >&6; }
6375if ${ac_cv_path_PKG_CONFIG+:} false; then :
6376 $as_echo_n "(cached) " >&6
6377else
6378 case $PKG_CONFIG in
6379 [\\/]* | ?:[\\/]*)
6380 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6381 ;;
6382 *)
6383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6384for as_dir in $PATH
6385do
6386 IFS=$as_save_IFS
6387 test -z "$as_dir" && as_dir=.
6388 for ac_exec_ext in '' $ac_executable_extensions; do
6389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6390 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6392 break 2
6393 fi
6394done
6395 done
6396IFS=$as_save_IFS
6397
6398 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6399 ;;
6400esac
6449fi 6401fi
6402PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6403if test -n "$PKG_CONFIG"; then
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6405$as_echo "$PKG_CONFIG" >&6; }
6406else
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6408$as_echo "no" >&6; }
6409fi
6410
6411
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification" >&5
6413$as_echo_n "checking for libstartup-notification... " >&6; }
6414 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
6415 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`"
6416 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`"
6417 support_startup_notification=yes
6418 fi
6419
6420 if test x$support_startup_notification = xyes; then
6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6422$as_echo "ok" >&6; }
6423
6424$as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
6425
6426 else
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6428$as_echo "no" >&6; }
6429 fi
6430fi
6431
6450 6432
6451 6433
6452 6434
6453AFTERIMAGE_CFLAGS= 6435AFTERIMAGE_CFLAGS=
6454AFTERIMAGE_LIBS= 6436AFTERIMAGE_LIBS=
6458 support_afterimage=no 6440 support_afterimage=no
6459 6441
6460 if test "x$afterimage_config" = "x" ; then 6442 if test "x$afterimage_config" = "x" ; then
6461 # Extract the first word of "afterimage-config", so it can be a program name with args. 6443 # Extract the first word of "afterimage-config", so it can be a program name with args.
6462set dummy afterimage-config; ac_word=$2 6444set dummy afterimage-config; ac_word=$2
6463{ echo "$as_me:$LINENO: checking for $ac_word" >&5 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6464echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 6446$as_echo_n "checking for $ac_word... " >&6; }
6465if test "${ac_cv_path_afterimage_config+set}" = set; then 6447if ${ac_cv_path_afterimage_config+:} false; then :
6466 echo $ECHO_N "(cached) $ECHO_C" >&6 6448 $as_echo_n "(cached) " >&6
6467else 6449else
6468 case $afterimage_config in 6450 case $afterimage_config in
6469 [\\/]* | ?:[\\/]*) 6451 [\\/]* | ?:[\\/]*)
6470 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path. 6452 ac_cv_path_afterimage_config="$afterimage_config" # Let the user override the test with a path.
6471 ;; 6453 ;;
6473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6474for as_dir in $PATH 6456for as_dir in $PATH
6475do 6457do
6476 IFS=$as_save_IFS 6458 IFS=$as_save_IFS
6477 test -z "$as_dir" && as_dir=. 6459 test -z "$as_dir" && as_dir=.
6478 for ac_exec_ext in '' $ac_executable_extensions; do 6460 for ac_exec_ext in '' $ac_executable_extensions; do
6479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6480 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext" 6462 ac_cv_path_afterimage_config="$as_dir/$ac_word$ac_exec_ext"
6481 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 6463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6482 break 2 6464 break 2
6483 fi 6465 fi
6484done 6466done
6485done 6467 done
6486IFS=$as_save_IFS 6468IFS=$as_save_IFS
6487 6469
6488 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no" 6470 test -z "$ac_cv_path_afterimage_config" && ac_cv_path_afterimage_config="no"
6489 ;; 6471 ;;
6490esac 6472esac
6491fi 6473fi
6492afterimage_config=$ac_cv_path_afterimage_config 6474afterimage_config=$ac_cv_path_afterimage_config
6493if test -n "$afterimage_config"; then 6475if test -n "$afterimage_config"; then
6494 { echo "$as_me:$LINENO: result: $afterimage_config" >&5 6476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $afterimage_config" >&5
6495echo "${ECHO_T}$afterimage_config" >&6; } 6477$as_echo "$afterimage_config" >&6; }
6496else 6478else
6497 { echo "$as_me:$LINENO: result: no" >&5 6479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6498echo "${ECHO_T}no" >&6; } 6480$as_echo "no" >&6; }
6499fi 6481fi
6500 6482
6501 6483
6502 fi 6484 fi
6503 if test "x$afterimage_config" != "xno" ; then 6485 if test "x$afterimage_config" != "xno" ; then
6504 { echo "$as_me:$LINENO: checking for libAfterImage version >= 1.15" >&5 6486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libAfterImage version >= 1.15" >&5
6505echo $ECHO_N "checking for libAfterImage version >= 1.15... $ECHO_C" >&6; } 6487$as_echo_n "checking for libAfterImage version >= 1.15... " >&6; }
6506 xAFTERIMAGE_VERSION=`$afterimage_config --version` 6488 xAFTERIMAGE_VERSION=`$afterimage_config --version`
6507 if test -n "$xAFTERIMAGE_VERSION" ; then 6489 if test -n "$xAFTERIMAGE_VERSION" ; then
6508 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags` 6490 xAFTERIMAGE_CFLAGS=`$afterimage_config --cflags`
6509 xAFTERIMAGE_LIBS=`$afterimage_config --libs` 6491 xAFTERIMAGE_LIBS=`$afterimage_config --libs`
6510 if test "x$xAFTERIMAGE_LIBS" != "x"; then 6492 if test "x$xAFTERIMAGE_LIBS" != "x"; then
6517 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION" 6499 AFTERIMAGE_VERSION="$xAFTERIMAGE_VERSION"
6518 fi 6500 fi
6519 fi 6501 fi
6520 fi 6502 fi
6521 if test "x$support_afterimage" = "xyes"; then 6503 if test "x$support_afterimage" = "xyes"; then
6522 { echo "$as_me:$LINENO: result: $AFTERIMAGE_LIBS" >&5 6504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AFTERIMAGE_LIBS" >&5
6523echo "${ECHO_T}$AFTERIMAGE_LIBS" >&6; } 6505$as_echo "$AFTERIMAGE_LIBS" >&6; }
6506 image_lib=libafterimage
6507
6508$as_echo "#define HAVE_AFTERIMAGE 1" >>confdefs.h
6509
6510
6511$as_echo "#define BG_IMAGE_FROM_FILE 1" >>confdefs.h
6512
6524 else 6513 else
6525 { echo "$as_me:$LINENO: result: no" >&5 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526echo "${ECHO_T}no" >&6; } 6515$as_echo "no" >&6; }
6527 fi 6516 fi
6528 fi 6517 fi
6529fi 6518fi
6530 6519
6531if test x$support_afterimage != xyes -a x$support_xpm = xyes ; then
6532 6520
6533 6521
6534 6522
6535# Initialize some more variables set by options. 6523for ac_header in \
6536# The variables have the same names as the options, with 6524 sys/byteorder.h \
6537# dashes changed to underlines. 6525 sys/ioctl.h \
6526 sys/sockio.h \
6527 sys/strredir.h \
6528 stdint.h \
6529 wchar.h \
6530 cwchar \
6538 6531
6539# If we find XPM, set shell vars xpm_includes and xpm_libraries to the 6532do :
6540# paths, otherwise set no_xpm=yes. 6533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6541# Uses ac_ vars as temps to allow command line to override cache and checks. 6534ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6542{ echo "$as_me:$LINENO: checking for libXpm" >&5 6535if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6543echo $ECHO_N "checking for libXpm... $ECHO_C" >&6; } 6536 cat >>confdefs.h <<_ACEOF
6537#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6538_ACEOF
6544 6539
6545
6546# Check whether --with-xpm_includes was given.
6547if test "${with_xpm_includes+set}" = set; then
6548 withval=$with_xpm_includes; xpm_includes="$withval"
6549else
6550 xpm_includes=NO
6551fi 6540fi
6552 6541
6542done
6553 6543
6554# Check whether --with-xpm_library was given.
6555if test "${with_xpm_library+set}" = set; then
6556 withval=$with_xpm_library; xpm_libraries="$withval"
6557else
6558 xpm_libraries=NO
6559fi
6560 6544
6561 6545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6562# --without-xpm overrides everything else, but does not touch the cache. 6546$as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6563 6547if ${rxvt_cv_xlib_illegal_access+:} false; then :
6564# Check whether --with-xpm was given. 6548 $as_echo_n "(cached) " >&6
6565if test "${with_xpm+set}" = set; then
6566 withval=$with_xpm;
6567fi
6568
6569if test "$with_xpm" = no; then
6570 have_xpm=disabled
6571else
6572 if test "${ac_cv_have_xpm+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574else
6575
6576 vt_xpm_include_X11=no
6577 if test -n "$xpm_includes"; then
6578 vt_xpm_includes=$xpm_includes
6579 else 6549else
6580 vt_xpm_includes=NO
6581 fi
6582 if test -n "$xpm_libraries"; then
6583 vt_xpm_libraries=$xpm_libraries
6584 else
6585 vt_xpm_libraries=NO
6586 fi
6587
6588 if test "$vt_xpm_includes" = NO; then
6589 # Guess where to find xpm.h
6590
6591ac_save_CPPFLAGS="$CPPFLAGS"
6592CPPFLAGS="$CPPFLAGS $X_CFLAGS"
6593
6594 # First, try using that file with no special directory specified.
6595cat >conftest.$ac_ext <<_ACEOF
6596/* confdefs.h. */
6597_ACEOF
6598cat confdefs.h >>conftest.$ac_ext 6550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6599cat >>conftest.$ac_ext <<_ACEOF
6600/* end confdefs.h. */ 6551/* end confdefs.h. */
6552
6553#define XLIB_ILLEGAL_ACCESS
6601#include <X11/xpm.h> 6554#include <X11/Xlib.h>
6602_ACEOF
6603if { (ac_try="$ac_cpp conftest.$ac_ext"
6604case "(($ac_try" in
6605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6606 *) ac_try_echo=$ac_try;;
6607esac
6608eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6610 ac_status=$?
6611 grep -v '^ *+' conftest.er1 >conftest.err
6612 rm -f conftest.er1
6613 cat conftest.err >&5
6614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6615 (exit $ac_status); } >/dev/null && {
6616 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6617 test ! -s conftest.err
6618 }; then
6619 # We can compile using X headers with no special include directory.
6620vt_xpm_includes=
6621vt_xpm_include_X11=yes
6622else
6623 echo "$as_me: failed program was:" >&5
6624sed 's/^/| /' conftest.$ac_ext >&5
6625
6626 CPPFLAGS="$ac_save_CPPFLAGS"
6627# Look for the header file in a standard set of common directories.
6628 for ac_dir in \
6629 /usr/X11/include \
6630 /usr/X11R6/include \
6631 /usr/X11R5/include \
6632 /usr/X11R4/include \
6633 \
6634 /usr/include/X11 \
6635 /usr/include/X11R6 \
6636 /usr/include/X11R5 \
6637 /usr/include/X11R4 \
6638 \
6639 /usr/local/X11/include \
6640 /usr/local/X11R6/include \
6641 /usr/local/X11R5/include \
6642 /usr/local/X11R4/include \
6643 \
6644 /usr/local/include/X11 \
6645 /usr/local/include/X11R6 \
6646 /usr/local/include/X11R5 \
6647 /usr/local/include/X11R4 \
6648 \
6649 /usr/X386/include \
6650 /usr/x386/include \
6651 /usr/XFree86/include/X11 \
6652 \
6653 /usr/include \
6654 /usr/local/include \
6655 /usr/unsupported/include \
6656 /usr/athena/include \
6657 /usr/local/x11r5/include \
6658 /usr/lpp/Xamples/include \
6659 \
6660 /usr/openwin/include \
6661 /usr/openwin/share/include \
6662 ; \
6663 do
6664 if test -r "$ac_dir/X11/xpm.h"; then
6665 vt_xpm_includes="$ac_dir"
6666 vt_xpm_include_X11=yes
6667 break
6668 else
6669 if test -r "$ac_dir/xpm.h"; then
6670 vt_xpm_includes=$ac_dir
6671 break
6672 fi
6673 fi
6674 done
6675fi
6676
6677rm -f conftest.err conftest.$ac_ext
6678fi
6679
6680if test "$vt_xpm_libraries" = NO; then
6681 # Check for the libraries.
6682
6683 # See if we find them without any special options.
6684 # Don't add to $LIBS permanently.
6685 ac_save_LIBS="$LIBS"
6686 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6687cat >conftest.$ac_ext <<_ACEOF
6688/* confdefs.h. */
6689_ACEOF
6690cat confdefs.h >>conftest.$ac_ext
6691cat >>conftest.$ac_ext <<_ACEOF
6692/* end confdefs.h. */
6693 6555
6694int 6556int
6695main () 6557main ()
6696{ 6558{
6697XpmReadFileToPixmap() 6559
6560 Display *dpy;
6561 dpy->xdefaults = (char *)0;
6562
6698 ; 6563 ;
6699 return 0; 6564 return 0;
6700} 6565}
6701_ACEOF 6566_ACEOF
6702rm -f conftest.$ac_objext conftest$ac_exeext 6567if ac_fn_cxx_try_compile "$LINENO"; then :
6703if { (ac_try="$ac_link" 6568 rxvt_cv_xlib_illegal_access=yes
6704case "(($ac_try" in
6705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6706 *) ac_try_echo=$ac_try;;
6707esac
6708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6709 (eval "$ac_link") 2>conftest.er1
6710 ac_status=$?
6711 grep -v '^ *+' conftest.er1 >conftest.err
6712 rm -f conftest.er1
6713 cat conftest.err >&5
6714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6715 (exit $ac_status); } && {
6716 test -z "$ac_cxx_werror_flag" ||
6717 test ! -s conftest.err
6718 } && test -s conftest$ac_exeext &&
6719 $as_test_x conftest$ac_exeext; then
6720 LIBS="$ac_save_LIBS"
6721# We can link libXpm with no special library path.
6722vt_xpm_libraries=
6723else 6569else
6724 echo "$as_me: failed program was:" >&5 6570 rxvt_cv_xlib_illegal_access=no
6725sed 's/^/| /' conftest.$ac_ext >&5
6726 6571
6727 LIBS="$ac_save_LIBS"
6728# First see if replacing the include by lib works.
6729for ac_dir in \
6730 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6731 /usr/X11/lib \
6732 /usr/X11R6/lib \
6733 /usr/X11R5/lib \
6734 /usr/X11R4/lib \
6735 \
6736 /usr/lib/X11 \
6737 /usr/lib/X11R6 \
6738 /usr/lib/X11R5 \
6739 /usr/lib/X11R4 \
6740 \
6741 /usr/local/X11/lib \
6742 /usr/local/X11R6/lib \
6743 /usr/local/X11R5/lib \
6744 /usr/local/X11R4/lib \
6745 \
6746 /usr/local/lib/X11 \
6747 /usr/local/lib/X11R6 \
6748 /usr/local/lib/X11R5 \
6749 /usr/local/lib/X11R4 \
6750 \
6751 /usr/X386/lib \
6752 /usr/x386/lib \
6753 /usr/XFree86/lib/X11 \
6754 \
6755 /usr/lib \
6756 /usr/local/lib \
6757 /usr/unsupported/lib \
6758 /usr/athena/lib \
6759 /usr/local/x11r5/lib \
6760 /usr/lpp/Xamples/lib \
6761 \
6762 /usr/openwin/lib \
6763 /usr/openwin/share/lib \
6764 ; \
6765do
6766 for ac_extension in a so sl; do
6767 if test -r $ac_dir/libXpm.$ac_extension; then
6768 vt_xpm_libraries=$ac_dir
6769 break 2
6770 fi
6771 done
6772done
6773fi 6572fi
6774
6775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 6573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6776 conftest$ac_exeext conftest.$ac_ext
6777fi 6574fi
6575{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6576$as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6577if test x$rxvt_cv_xlib_illegal_access = xyes; then
6778 6578
6579$as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6779 6580
6780 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then 6581fi
6781 ac_cv_have_xpm="have_xpm=no" 6582
6583ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6584if test "x$ac_cv_type_mode_t" = xyes; then :
6585
6782 else 6586else
6783 ac_cv_have_xpm="have_xpm=yes \
6784 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6785 vt_xpm_include_X11=$vt_xpm_include_X11"
6786 fi
6787fi
6788 eval "$ac_cv_have_xpm"
6789fi
6790 6587
6791if test "$have_xpm" != yes; then
6792 { echo "$as_me:$LINENO: result: $have_xpm" >&5
6793echo "${ECHO_T}$have_xpm" >&6; }
6794 no_xpm=yes
6795else
6796 if test "$xpm_includes" != NO; then
6797 if test "$xpm_includes" = "$vt_xpm_includes"; then
6798 if test -r "$xpm_includes/X11/xpm.h"; then
6799 vt_xpm_include_X11=yes
6800 fi
6801 else
6802 vt_xpm_include_X11=no
6803 if test -z "$xpm_includes"; then
6804 cat >conftest.$ac_ext <<_ACEOF
6805/* confdefs.h. */
6806_ACEOF
6807cat confdefs.h >>conftest.$ac_ext
6808cat >>conftest.$ac_ext <<_ACEOF
6809/* end confdefs.h. */
6810#include <X11/xpm.h>
6811_ACEOF
6812if { (ac_try="$ac_cpp conftest.$ac_ext"
6813case "(($ac_try" in
6814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6815 *) ac_try_echo=$ac_try;;
6816esac
6817eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6818 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6819 ac_status=$?
6820 grep -v '^ *+' conftest.er1 >conftest.err
6821 rm -f conftest.er1
6822 cat conftest.err >&5
6823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6824 (exit $ac_status); } >/dev/null && {
6825 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
6826 test ! -s conftest.err
6827 }; then
6828 vt_xpm_include_X11=yes
6829else
6830 echo "$as_me: failed program was:" >&5
6831sed 's/^/| /' conftest.$ac_ext >&5
6832
6833
6834fi
6835
6836rm -f conftest.err conftest.$ac_ext
6837 else
6838 if test -r "$xpm_includes/X11/xpm.h"; then
6839 vt_xpm_include_X11=yes
6840 fi
6841 fi
6842 fi
6843 vt_xpm_includes=$xpm_includes
6844 fi
6845 if test "x$xpm_libraries" != xNO; then
6846 vt_xpm_libraries=$xpm_libraries
6847 fi
6848 # Update the cache value to reflect the command line values.
6849 ac_cv_have_xpm="have_xpm=yes \
6850 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6851 vt_xpm_include_X11=$vt_xpm_include_X11"
6852 eval "$ac_cv_have_xpm"
6853 { echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6854echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6; }
6855 if test -n "$vt_xpm_includes"; then
6856 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6857 fi
6858 if test -n "$vt_xpm_includes"; then
6859 XPM_CFLAGS="-I$vt_xpm_includes"
6860 fi
6861 XPM_LIBS="-lXpm"
6862 if test -n "$vt_xpm_libraries"; then
6863 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6864 fi
6865 if test "x$vt_xpm_include_X11" = xyes; then
6866
6867cat >>confdefs.h <<\_ACEOF 6588cat >>confdefs.h <<_ACEOF
6868#define XPM_INC_X11 1 6589#define mode_t int
6869_ACEOF 6590_ACEOF
6870 6591
6871 fi
6872fi 6592fi
6873 6593
6594ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6595if test "x$ac_cv_type_pid_t" = xyes; then :
6874 6596
6875
6876
6877
6878 if test x$no_xpm = xyes; then
6879 support_xpm=needsmanualspecification
6880 fi
6881fi
6882
6883{ echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6884echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6885if test "${ac_cv_header_sys_wait_h+set}" = set; then
6886 echo $ECHO_N "(cached) $ECHO_C" >&6
6887else 6597else
6888 cat >conftest.$ac_ext <<_ACEOF 6598
6889/* confdefs.h. */ 6599cat >>confdefs.h <<_ACEOF
6600#define pid_t int
6890_ACEOF 6601_ACEOF
6602
6603fi
6604
6605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6606$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6607if ${ac_cv_type_uid_t+:} false; then :
6608 $as_echo_n "(cached) " >&6
6609else
6891cat confdefs.h >>conftest.$ac_ext 6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6892cat >>conftest.$ac_ext <<_ACEOF
6893/* end confdefs.h. */ 6611/* end confdefs.h. */
6894#include <sys/types.h> 6612#include <sys/types.h>
6613
6614_ACEOF
6615if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6616 $EGREP "uid_t" >/dev/null 2>&1; then :
6617 ac_cv_type_uid_t=yes
6618else
6619 ac_cv_type_uid_t=no
6620fi
6621rm -f conftest*
6622
6623fi
6624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6625$as_echo "$ac_cv_type_uid_t" >&6; }
6626if test $ac_cv_type_uid_t = no; then
6627
6628$as_echo "#define uid_t int" >>confdefs.h
6629
6630
6631$as_echo "#define gid_t int" >>confdefs.h
6632
6633fi
6634
6635ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6636case $ac_cv_c_int16_t in #(
6637 no|yes) ;; #(
6638 *)
6639
6640cat >>confdefs.h <<_ACEOF
6641#define int16_t $ac_cv_c_int16_t
6642_ACEOF
6643;;
6644esac
6645
6646ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6647case $ac_cv_c_uint16_t in #(
6648 no|yes) ;; #(
6649 *)
6650
6651
6652cat >>confdefs.h <<_ACEOF
6653#define uint16_t $ac_cv_c_uint16_t
6654_ACEOF
6655;;
6656 esac
6657
6658ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
6659case $ac_cv_c_int32_t in #(
6660 no|yes) ;; #(
6661 *)
6662
6663cat >>confdefs.h <<_ACEOF
6664#define int32_t $ac_cv_c_int32_t
6665_ACEOF
6666;;
6667esac
6668
6669ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6670case $ac_cv_c_uint32_t in #(
6671 no|yes) ;; #(
6672 *)
6673
6674$as_echo "#define _UINT32_T 1" >>confdefs.h
6675
6676
6677cat >>confdefs.h <<_ACEOF
6678#define uint32_t $ac_cv_c_uint32_t
6679_ACEOF
6680;;
6681 esac
6682
6683
6684for ac_func in unsetenv
6685do :
6686 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6687if test "x$ac_cv_func_unsetenv" = xyes; then :
6688 cat >>confdefs.h <<_ACEOF
6689#define HAVE_UNSETENV 1
6690_ACEOF
6691
6692fi
6693done
6694
6695
6696
6697support_utmp=yes
6698support_wtmp=yes
6699support_lastlog=yes
6700
6701# Check whether --enable-utmp was given.
6702if test "${enable_utmp+set}" = set; then :
6703 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
6704 support_utmp=$enableval
6705 fi
6706fi
6707
6708
6709# Check whether --enable-wtmp was given.
6710if test "${enable_wtmp+set}" = set; then :
6711 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
6712 support_wtmp=$enableval
6713 fi
6714fi
6715
6716
6717# Check whether --enable-lastlog was given.
6718if test "${enable_lastlog+set}" = set; then :
6719 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
6720 support_lastlog=$enableval
6721 fi
6722fi
6723
6724
6725if test x$support_utmp = xyes; then
6726
6727$as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
6728
6729fi
6730if test x$support_wtmp = xyes; then
6731
6732$as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
6733
6734fi
6735if test x$support_lastlog = xyes; then
6736
6737$as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
6738
6739fi
6740
6741for ac_func in \
6742 updwtmp \
6743 updwtmpx \
6744 updlastlogx \
6745
6746do :
6747 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6748ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
6749if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
6750 cat >>confdefs.h <<_ACEOF
6751#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6752_ACEOF
6753
6754fi
6755done
6756
6757
6758for ac_header in lastlog.h
6759do :
6760 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
6761if test "x$ac_cv_header_lastlog_h" = xyes; then :
6762 cat >>confdefs.h <<_ACEOF
6763#define HAVE_LASTLOG_H 1
6764_ACEOF
6765
6766fi
6767
6768done
6769
6770
6771
6772for ac_header in utmp.h
6773do :
6774 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
6775if test "x$ac_cv_header_utmp_h" = xyes; then :
6776 cat >>confdefs.h <<_ACEOF
6777#define HAVE_UTMP_H 1
6778_ACEOF
6779 ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
6895#include <sys/wait.h> 6780#include <sys/types.h>
6896#ifndef WEXITSTATUS 6781#include <utmp.h>
6897# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6898#endif
6899#ifndef WIFEXITED
6900# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6901#endif
6902 6782
6783"
6784if test "x$ac_cv_type_struct_utmp" = xyes; then :
6785
6786cat >>confdefs.h <<_ACEOF
6787#define HAVE_STRUCT_UTMP 1
6788_ACEOF
6789
6790
6791fi
6792
6793
6794
6795# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
6796# ------------------------------------------------------
6797# Tries to find if the field MEMBER exists in type AGGR, after including
6798# INCLUDES, setting cache variable VAR accordingly.
6799ac_fn_cxx_check_member ()
6800{
6801 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
6803$as_echo_n "checking for $2.$3... " >&6; }
6804if eval \${$4+:} false; then :
6805 $as_echo_n "(cached) " >&6
6806else
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808/* end confdefs.h. */
6809$5
6903int 6810int
6904main () 6811main ()
6905{ 6812{
6906 int s; 6813static $2 ac_aggr;
6907 wait (&s); 6814if (ac_aggr.$3)
6908 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6909 ;
6910 return 0;
6911}
6912_ACEOF
6913rm -f conftest.$ac_objext
6914if { (ac_try="$ac_compile"
6915case "(($ac_try" in
6916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6917 *) ac_try_echo=$ac_try;;
6918esac
6919eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6920 (eval "$ac_compile") 2>conftest.er1
6921 ac_status=$?
6922 grep -v '^ *+' conftest.er1 >conftest.err
6923 rm -f conftest.er1
6924 cat conftest.err >&5
6925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6926 (exit $ac_status); } && {
6927 test -z "$ac_cxx_werror_flag" ||
6928 test ! -s conftest.err
6929 } && test -s conftest.$ac_objext; then
6930 ac_cv_header_sys_wait_h=yes
6931else
6932 echo "$as_me: failed program was:" >&5
6933sed 's/^/| /' conftest.$ac_ext >&5
6934
6935 ac_cv_header_sys_wait_h=no
6936fi
6937
6938rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6939fi
6940{ echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6941echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6942if test $ac_cv_header_sys_wait_h = yes; then
6943
6944cat >>confdefs.h <<\_ACEOF
6945#define HAVE_SYS_WAIT_H 1
6946_ACEOF
6947
6948fi
6949
6950{ echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6951echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6952if test "${ac_cv_header_stdc+set}" = set; then
6953 echo $ECHO_N "(cached) $ECHO_C" >&6
6954else
6955 cat >conftest.$ac_ext <<_ACEOF
6956/* confdefs.h. */
6957_ACEOF
6958cat confdefs.h >>conftest.$ac_ext
6959cat >>conftest.$ac_ext <<_ACEOF
6960/* end confdefs.h. */
6961#include <stdlib.h>
6962#include <stdarg.h>
6963#include <string.h>
6964#include <float.h>
6965
6966int
6967main ()
6968{
6969
6970 ;
6971 return 0;
6972}
6973_ACEOF
6974rm -f conftest.$ac_objext
6975if { (ac_try="$ac_compile"
6976case "(($ac_try" in
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6979esac
6980eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6981 (eval "$ac_compile") 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && {
6988 test -z "$ac_cxx_werror_flag" ||
6989 test ! -s conftest.err
6990 } && test -s conftest.$ac_objext; then
6991 ac_cv_header_stdc=yes
6992else
6993 echo "$as_me: failed program was:" >&5
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 ac_cv_header_stdc=no
6997fi
6998
6999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000
7001if test $ac_cv_header_stdc = yes; then
7002 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7003 cat >conftest.$ac_ext <<_ACEOF
7004/* confdefs.h. */
7005_ACEOF
7006cat confdefs.h >>conftest.$ac_ext
7007cat >>conftest.$ac_ext <<_ACEOF
7008/* end confdefs.h. */
7009#include <string.h>
7010
7011_ACEOF
7012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7013 $EGREP "memchr" >/dev/null 2>&1; then
7014 :
7015else
7016 ac_cv_header_stdc=no
7017fi
7018rm -f conftest*
7019
7020fi
7021
7022if test $ac_cv_header_stdc = yes; then
7023 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7024 cat >conftest.$ac_ext <<_ACEOF
7025/* confdefs.h. */
7026_ACEOF
7027cat confdefs.h >>conftest.$ac_ext
7028cat >>conftest.$ac_ext <<_ACEOF
7029/* end confdefs.h. */
7030#include <stdlib.h>
7031
7032_ACEOF
7033if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7034 $EGREP "free" >/dev/null 2>&1; then
7035 :
7036else
7037 ac_cv_header_stdc=no
7038fi
7039rm -f conftest*
7040
7041fi
7042
7043if test $ac_cv_header_stdc = yes; then
7044 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7045 if test "$cross_compiling" = yes; then
7046 :
7047else
7048 cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h. */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
7053/* end confdefs.h. */
7054#include <ctype.h>
7055#include <stdlib.h>
7056#if ((' ' & 0x0FF) == 0x020)
7057# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7058# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7059#else
7060# define ISLOWER(c) \
7061 (('a' <= (c) && (c) <= 'i') \
7062 || ('j' <= (c) && (c) <= 'r') \
7063 || ('s' <= (c) && (c) <= 'z'))
7064# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7065#endif
7066
7067#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7068int
7069main ()
7070{
7071 int i;
7072 for (i = 0; i < 256; i++)
7073 if (XOR (islower (i), ISLOWER (i))
7074 || toupper (i) != TOUPPER (i))
7075 return 2;
7076 return 0;
7077}
7078_ACEOF
7079rm -f conftest$ac_exeext
7080if { (ac_try="$ac_link"
7081case "(($ac_try" in
7082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7083 *) ac_try_echo=$ac_try;;
7084esac
7085eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7086 (eval "$ac_link") 2>&5
7087 ac_status=$?
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7090 { (case "(($ac_try" in
7091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7092 *) ac_try_echo=$ac_try;;
7093esac
7094eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7095 (eval "$ac_try") 2>&5
7096 ac_status=$?
7097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7098 (exit $ac_status); }; }; then
7099 :
7100else
7101 echo "$as_me: program exited with status $ac_status" >&5
7102echo "$as_me: failed program was:" >&5
7103sed 's/^/| /' conftest.$ac_ext >&5
7104
7105( exit $ac_status )
7106ac_cv_header_stdc=no
7107fi
7108rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7109fi
7110
7111
7112fi
7113fi
7114{ echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7115echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7116if test $ac_cv_header_stdc = yes; then
7117
7118cat >>confdefs.h <<\_ACEOF
7119#define STDC_HEADERS 1
7120_ACEOF
7121
7122fi
7123
7124# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7135 inttypes.h stdint.h unistd.h
7136do
7137as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7138{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7139echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7140if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7141 echo $ECHO_N "(cached) $ECHO_C" >&6
7142else
7143 cat >conftest.$ac_ext <<_ACEOF
7144/* confdefs.h. */
7145_ACEOF
7146cat confdefs.h >>conftest.$ac_ext
7147cat >>conftest.$ac_ext <<_ACEOF
7148/* end confdefs.h. */
7149$ac_includes_default
7150
7151#include <$ac_header>
7152_ACEOF
7153rm -f conftest.$ac_objext
7154if { (ac_try="$ac_compile"
7155case "(($ac_try" in
7156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7157 *) ac_try_echo=$ac_try;;
7158esac
7159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7160 (eval "$ac_compile") 2>conftest.er1
7161 ac_status=$?
7162 grep -v '^ *+' conftest.er1 >conftest.err
7163 rm -f conftest.er1
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } && {
7167 test -z "$ac_cxx_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest.$ac_objext; then
7170 eval "$as_ac_Header=yes"
7171else
7172 echo "$as_me: failed program was:" >&5
7173sed 's/^/| /' conftest.$ac_ext >&5
7174
7175 eval "$as_ac_Header=no"
7176fi
7177
7178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7179fi
7180ac_res=`eval echo '${'$as_ac_Header'}'`
7181 { echo "$as_me:$LINENO: result: $ac_res" >&5
7182echo "${ECHO_T}$ac_res" >&6; }
7183if test `eval echo '${'$as_ac_Header'}'` = yes; then
7184 cat >>confdefs.h <<_ACEOF
7185#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7186_ACEOF
7187
7188fi
7189
7190done
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210for ac_header in \
7211 assert.h \
7212 fcntl.h \
7213 stdarg.h \
7214 stdlib.h \
7215 string.h \
7216 termios.h \
7217 unistd.h \
7218 sys/byteorder.h \
7219 sys/ioctl.h \
7220 sys/select.h \
7221 sys/sockio.h \
7222 sys/strredir.h \
7223 sys/time.h \
7224 stdint.h \
7225 wchar.h \
7226 cwchar \
7227 clocale \
7228
7229do
7230as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7231if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7233echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7234if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7236fi
7237ac_res=`eval echo '${'$as_ac_Header'}'`
7238 { echo "$as_me:$LINENO: result: $ac_res" >&5
7239echo "${ECHO_T}$ac_res" >&6; }
7240else
7241 # Is the header compilable?
7242{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
7243echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7244cat >conftest.$ac_ext <<_ACEOF
7245/* confdefs.h. */
7246_ACEOF
7247cat confdefs.h >>conftest.$ac_ext
7248cat >>conftest.$ac_ext <<_ACEOF
7249/* end confdefs.h. */
7250$ac_includes_default
7251#include <$ac_header>
7252_ACEOF
7253rm -f conftest.$ac_objext
7254if { (ac_try="$ac_compile"
7255case "(($ac_try" in
7256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257 *) ac_try_echo=$ac_try;;
7258esac
7259eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260 (eval "$ac_compile") 2>conftest.er1
7261 ac_status=$?
7262 grep -v '^ *+' conftest.er1 >conftest.err
7263 rm -f conftest.er1
7264 cat conftest.err >&5
7265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7266 (exit $ac_status); } && {
7267 test -z "$ac_cxx_werror_flag" ||
7268 test ! -s conftest.err
7269 } && test -s conftest.$ac_objext; then
7270 ac_header_compiler=yes
7271else
7272 echo "$as_me: failed program was:" >&5
7273sed 's/^/| /' conftest.$ac_ext >&5
7274
7275 ac_header_compiler=no
7276fi
7277
7278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7279{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7280echo "${ECHO_T}$ac_header_compiler" >&6; }
7281
7282# Is the header present?
7283{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
7284echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7285cat >conftest.$ac_ext <<_ACEOF
7286/* confdefs.h. */
7287_ACEOF
7288cat confdefs.h >>conftest.$ac_ext
7289cat >>conftest.$ac_ext <<_ACEOF
7290/* end confdefs.h. */
7291#include <$ac_header>
7292_ACEOF
7293if { (ac_try="$ac_cpp conftest.$ac_ext"
7294case "(($ac_try" in
7295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7296 *) ac_try_echo=$ac_try;;
7297esac
7298eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7300 ac_status=$?
7301 grep -v '^ *+' conftest.er1 >conftest.err
7302 rm -f conftest.er1
7303 cat conftest.err >&5
7304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7305 (exit $ac_status); } >/dev/null && {
7306 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
7307 test ! -s conftest.err
7308 }; then
7309 ac_header_preproc=yes
7310else
7311 echo "$as_me: failed program was:" >&5
7312sed 's/^/| /' conftest.$ac_ext >&5
7313
7314 ac_header_preproc=no
7315fi
7316
7317rm -f conftest.err conftest.$ac_ext
7318{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7319echo "${ECHO_T}$ac_header_preproc" >&6; }
7320
7321# So? What about this header?
7322case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7323 yes:no: )
7324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7325echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7327echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7328 ac_header_preproc=yes
7329 ;;
7330 no:yes:* )
7331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7332echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7334echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7336echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7338echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7340echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7342echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7343
7344 ;;
7345esac
7346{ echo "$as_me:$LINENO: checking for $ac_header" >&5
7347echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7348if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350else
7351 eval "$as_ac_Header=\$ac_header_preproc"
7352fi
7353ac_res=`eval echo '${'$as_ac_Header'}'`
7354 { echo "$as_me:$LINENO: result: $ac_res" >&5
7355echo "${ECHO_T}$ac_res" >&6; }
7356
7357fi
7358if test `eval echo '${'$as_ac_Header'}'` = yes; then
7359 cat >>confdefs.h <<_ACEOF
7360#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7361_ACEOF
7362
7363fi
7364
7365done
7366
7367
7368{ echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7369echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7370if test "${ac_cv_header_time+set}" = set; then
7371 echo $ECHO_N "(cached) $ECHO_C" >&6
7372else
7373 cat >conftest.$ac_ext <<_ACEOF
7374/* confdefs.h. */
7375_ACEOF
7376cat confdefs.h >>conftest.$ac_ext
7377cat >>conftest.$ac_ext <<_ACEOF
7378/* end confdefs.h. */
7379#include <sys/types.h>
7380#include <sys/time.h>
7381#include <time.h>
7382
7383int
7384main ()
7385{
7386if ((struct tm *) 0)
7387return 0; 6815return 0;
7388 ; 6816 ;
7389 return 0; 6817 return 0;
7390} 6818}
7391_ACEOF 6819_ACEOF
7392rm -f conftest.$ac_objext 6820if ac_fn_cxx_try_compile "$LINENO"; then :
7393if { (ac_try="$ac_compile" 6821 eval "$4=yes"
7394case "(($ac_try" in
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7397esac
7398eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
7400 ac_status=$?
7401 grep -v '^ *+' conftest.er1 >conftest.err
7402 rm -f conftest.er1
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && {
7406 test -z "$ac_cxx_werror_flag" ||
7407 test ! -s conftest.err
7408 } && test -s conftest.$ac_objext; then
7409 ac_cv_header_time=yes
7410else 6822else
7411 echo "$as_me: failed program was:" >&5
7412sed 's/^/| /' conftest.$ac_ext >&5
7413
7414 ac_cv_header_time=no
7415fi
7416
7417rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418fi
7419{ echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7420echo "${ECHO_T}$ac_cv_header_time" >&6; }
7421if test $ac_cv_header_time = yes; then
7422
7423cat >>confdefs.h <<\_ACEOF
7424#define TIME_WITH_SYS_TIME 1
7425_ACEOF
7426
7427fi
7428
7429
7430{ echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7431echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6; }
7432if test "${rxvt_cv_header_sysioctl+set}" = set; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7434else
7435 cat >conftest.$ac_ext <<_ACEOF
7436/* confdefs.h. */
7437_ACEOF
7438cat confdefs.h >>conftest.$ac_ext 6823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439cat >>conftest.$ac_ext <<_ACEOF
7440/* end confdefs.h. */ 6824/* end confdefs.h. */
7441#include <stdio.h> 6825$5
7442#include <sys/ioctl.h>
7443#ifdef HAVE_TERMIOS_H
7444#include <termios.h>
7445#endif
7446int 6826int
7447main () 6827main ()
7448{ 6828{
7449int a = ECHO; 6829static $2 ac_aggr;
6830if (sizeof ac_aggr.$3)
6831return 0;
7450 ; 6832 ;
7451 return 0; 6833 return 0;
7452} 6834}
7453_ACEOF 6835_ACEOF
7454rm -f conftest.$ac_objext 6836if ac_fn_cxx_try_compile "$LINENO"; then :
7455if { (ac_try="$ac_compile" 6837 eval "$4=yes"
7456case "(($ac_try" in
7457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7458 *) ac_try_echo=$ac_try;;
7459esac
7460eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7461 (eval "$ac_compile") 2>conftest.er1
7462 ac_status=$?
7463 grep -v '^ *+' conftest.er1 >conftest.err
7464 rm -f conftest.er1
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } && {
7468 test -z "$ac_cxx_werror_flag" ||
7469 test ! -s conftest.err
7470 } && test -s conftest.$ac_objext; then
7471 rxvt_cv_header_sysioctl=yes
7472else 6838else
7473 echo "$as_me: failed program was:" >&5 6839 eval "$4=no"
7474sed 's/^/| /' conftest.$ac_ext >&5
7475
7476 rxvt_cv_header_sysioctl=no
7477fi 6840fi
7478
7479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7480fi 6842fi
7481{ echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7482echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6; }
7483
7484{ echo "$as_me:$LINENO: checking for XPointer" >&5
7485echo $ECHO_N "checking for XPointer... $ECHO_C" >&6; }
7486if test "${rxvt_cv_xpointer+set}" = set; then
7487 echo $ECHO_N "(cached) $ECHO_C" >&6
7488else
7489 cat >conftest.$ac_ext <<_ACEOF
7490/* confdefs.h. */
7491_ACEOF
7492cat confdefs.h >>conftest.$ac_ext
7493cat >>conftest.$ac_ext <<_ACEOF
7494/* end confdefs.h. */
7495#include <X11/Xlib.h>
7496int
7497main ()
7498{
7499XPointer dummy;
7500 ;
7501 return 0;
7502}
7503_ACEOF
7504rm -f conftest.$ac_objext
7505if { (ac_try="$ac_compile"
7506case "(($ac_try" in
7507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7508 *) ac_try_echo=$ac_try;;
7509esac
7510eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7511 (eval "$ac_compile") 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_cxx_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest.$ac_objext; then
7521 rxvt_cv_xpointer=yes
7522else
7523 echo "$as_me: failed program was:" >&5
7524sed 's/^/| /' conftest.$ac_ext >&5
7525
7526 rxvt_cv_xpointer=no
7527fi
7528
7529rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530fi 6844fi
7531{ echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5 6845eval ac_res=\$$4
7532echo "${ECHO_T}$rxvt_cv_xpointer" >&6; }
7533if test x$rxvt_cv_xpointer = xyes; then
7534
7535cat >>confdefs.h <<\_ACEOF
7536#define HAVE_XPOINTER 1
7537_ACEOF
7538
7539fi
7540
7541{ echo "$as_me:$LINENO: checking for XLIB_ILLEGAL_ACCESS" >&5
7542echo $ECHO_N "checking for XLIB_ILLEGAL_ACCESS... $ECHO_C" >&6; }
7543if test "${rxvt_xlib_illegal_access+set}" = set; then
7544 echo $ECHO_N "(cached) $ECHO_C" >&6
7545else
7546 cat >conftest.$ac_ext <<_ACEOF
7547/* confdefs.h. */
7548_ACEOF
7549cat confdefs.h >>conftest.$ac_ext
7550cat >>conftest.$ac_ext <<_ACEOF
7551/* end confdefs.h. */
7552
7553#define XLIB_ILLEGAL_ACCESS
7554#include <X11/Xlib.h>
7555
7556int
7557main ()
7558{
7559
7560 Display *dpy;
7561 dpy->xdefaults = (char *)0;
7562
7563 ;
7564 return 0;
7565}
7566_ACEOF
7567rm -f conftest.$ac_objext
7568if { (ac_try="$ac_compile"
7569case "(($ac_try" in
7570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7571 *) ac_try_echo=$ac_try;;
7572esac
7573eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7574 (eval "$ac_compile") 2>conftest.er1
7575 ac_status=$?
7576 grep -v '^ *+' conftest.er1 >conftest.err
7577 rm -f conftest.er1
7578 cat conftest.err >&5
7579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7580 (exit $ac_status); } && {
7581 test -z "$ac_cxx_werror_flag" ||
7582 test ! -s conftest.err
7583 } && test -s conftest.$ac_objext; then
7584 rxvt_xlib_illegal_access=yes
7585else
7586 echo "$as_me: failed program was:" >&5
7587sed 's/^/| /' conftest.$ac_ext >&5
7588
7589 rxvt_xlib_illegal_access=no
7590
7591fi
7592
7593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7594fi
7595{ echo "$as_me:$LINENO: result: $rxvt_xlib_illegal_access" >&5
7596echo "${ECHO_T}$rxvt_xlib_illegal_access" >&6; }
7597if test x$rxvt_xlib_illegal_access = xyes; then
7598
7599cat >>confdefs.h <<\_ACEOF
7600#define XLIB_ILLEGAL_ACCESS 1
7601_ACEOF
7602
7603fi
7604
7605{ echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7606echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
7607if test "${ac_cv_c_const+set}" = set; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7609else
7610 cat >conftest.$ac_ext <<_ACEOF
7611/* confdefs.h. */
7612_ACEOF
7613cat confdefs.h >>conftest.$ac_ext
7614cat >>conftest.$ac_ext <<_ACEOF
7615/* end confdefs.h. */
7616
7617int
7618main ()
7619{
7620/* FIXME: Include the comments suggested by Paul. */
7621#ifndef __cplusplus
7622 /* Ultrix mips cc rejects this. */
7623 typedef int charset[2];
7624 const charset cs;
7625 /* SunOS 4.1.1 cc rejects this. */
7626 char const *const *pcpcc;
7627 char **ppc;
7628 /* NEC SVR4.0.2 mips cc rejects this. */
7629 struct point {int x, y;};
7630 static struct point const zero = {0,0};
7631 /* AIX XL C 1.02.0.0 rejects this.
7632 It does not let you subtract one const X* pointer from another in
7633 an arm of an if-expression whose if-part is not a constant
7634 expression */
7635 const char *g = "string";
7636 pcpcc = &g + (g ? g-g : 0);
7637 /* HPUX 7.0 cc rejects these. */
7638 ++pcpcc;
7639 ppc = (char**) pcpcc;
7640 pcpcc = (char const *const *) ppc;
7641 { /* SCO 3.2v4 cc rejects this. */
7642 char *t;
7643 char const *s = 0 ? (char *) 0 : (char const *) 0;
7644
7645 *t++ = 0;
7646 if (s) return 0;
7647 }
7648 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7649 int x[] = {25, 17};
7650 const int *foo = &x[0];
7651 ++foo;
7652 }
7653 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7654 typedef const int *iptr;
7655 iptr p = 0;
7656 ++p;
7657 }
7658 { /* AIX XL C 1.02.0.0 rejects this saying
7659 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7660 struct s { int j; const int *ap[3]; };
7661 struct s *b; b->j = 5;
7662 }
7663 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7664 const int foo = 10;
7665 if (!foo) return 0;
7666 }
7667 return !cs[0] && !zero.x;
7668#endif
7669
7670 ;
7671 return 0;
7672}
7673_ACEOF
7674rm -f conftest.$ac_objext
7675if { (ac_try="$ac_compile"
7676case "(($ac_try" in
7677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7678 *) ac_try_echo=$ac_try;;
7679esac
7680eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7681 (eval "$ac_compile") 2>conftest.er1
7682 ac_status=$?
7683 grep -v '^ *+' conftest.er1 >conftest.err
7684 rm -f conftest.er1
7685 cat conftest.err >&5
7686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7687 (exit $ac_status); } && {
7688 test -z "$ac_cxx_werror_flag" ||
7689 test ! -s conftest.err
7690 } && test -s conftest.$ac_objext; then
7691 ac_cv_c_const=yes
7692else
7693 echo "$as_me: failed program was:" >&5
7694sed 's/^/| /' conftest.$ac_ext >&5
7695
7696 ac_cv_c_const=no
7697fi
7698
7699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7700fi
7701{ echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7702echo "${ECHO_T}$ac_cv_c_const" >&6; }
7703if test $ac_cv_c_const = no; then
7704
7705cat >>confdefs.h <<\_ACEOF
7706#define const
7707_ACEOF
7708
7709fi
7710
7711{ echo "$as_me:$LINENO: checking for inline" >&5
7712echo $ECHO_N "checking for inline... $ECHO_C" >&6; }
7713if test "${ac_cv_c_inline+set}" = set; then
7714 echo $ECHO_N "(cached) $ECHO_C" >&6
7715else
7716 ac_cv_c_inline=no
7717for ac_kw in inline __inline__ __inline; do
7718 cat >conftest.$ac_ext <<_ACEOF
7719/* confdefs.h. */
7720_ACEOF
7721cat confdefs.h >>conftest.$ac_ext
7722cat >>conftest.$ac_ext <<_ACEOF
7723/* end confdefs.h. */
7724#ifndef __cplusplus
7725typedef int foo_t;
7726static $ac_kw foo_t static_foo () {return 0; }
7727$ac_kw foo_t foo () {return 0; }
7728#endif
7729
7730_ACEOF
7731rm -f conftest.$ac_objext
7732if { (ac_try="$ac_compile"
7733case "(($ac_try" in
7734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7735 *) ac_try_echo=$ac_try;;
7736esac
7737eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7738 (eval "$ac_compile") 2>conftest.er1
7739 ac_status=$?
7740 grep -v '^ *+' conftest.er1 >conftest.err
7741 rm -f conftest.er1
7742 cat conftest.err >&5
7743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7744 (exit $ac_status); } && {
7745 test -z "$ac_cxx_werror_flag" ||
7746 test ! -s conftest.err
7747 } && test -s conftest.$ac_objext; then
7748 ac_cv_c_inline=$ac_kw
7749else
7750 echo "$as_me: failed program was:" >&5
7751sed 's/^/| /' conftest.$ac_ext >&5
7752
7753
7754fi
7755
7756rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7757 test "$ac_cv_c_inline" != no && break
7758done
7759
7760fi
7761{ echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7762echo "${ECHO_T}$ac_cv_c_inline" >&6; }
7763
7764
7765case $ac_cv_c_inline in
7766 inline | yes) ;;
7767 *)
7768 case $ac_cv_c_inline in
7769 no) ac_val=;;
7770 *) ac_val=$ac_cv_c_inline;;
7771 esac
7772 cat >>confdefs.h <<_ACEOF
7773#ifndef __cplusplus
7774#define inline $ac_val
7775#endif
7776_ACEOF
7777 ;;
7778esac
7779
7780
7781
7782{ echo "$as_me:$LINENO: checking for mode_t" >&5
7783echo $ECHO_N "checking for mode_t... $ECHO_C" >&6; }
7784if test "${ac_cv_type_mode_t+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7786else
7787 cat >conftest.$ac_ext <<_ACEOF
7788/* confdefs.h. */
7789_ACEOF
7790cat confdefs.h >>conftest.$ac_ext
7791cat >>conftest.$ac_ext <<_ACEOF
7792/* end confdefs.h. */
7793$ac_includes_default
7794typedef mode_t ac__type_new_;
7795int
7796main ()
7797{
7798if ((ac__type_new_ *) 0)
7799 return 0;
7800if (sizeof (ac__type_new_))
7801 return 0;
7802 ;
7803 return 0;
7804}
7805_ACEOF
7806rm -f conftest.$ac_objext
7807if { (ac_try="$ac_compile"
7808case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7811esac
7812eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_compile") 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } && {
7820 test -z "$ac_cxx_werror_flag" ||
7821 test ! -s conftest.err
7822 } && test -s conftest.$ac_objext; then
7823 ac_cv_type_mode_t=yes
7824else
7825 echo "$as_me: failed program was:" >&5
7826sed 's/^/| /' conftest.$ac_ext >&5
7827
7828 ac_cv_type_mode_t=no
7829fi
7830
7831rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832fi
7833{ echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7834echo "${ECHO_T}$ac_cv_type_mode_t" >&6; }
7835if test $ac_cv_type_mode_t = yes; then
7836 :
7837else
7838
7839cat >>confdefs.h <<_ACEOF
7840#define mode_t int
7841_ACEOF
7842
7843fi
7844
7845{ echo "$as_me:$LINENO: checking for pid_t" >&5
7846echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
7847if test "${ac_cv_type_pid_t+set}" = set; then
7848 echo $ECHO_N "(cached) $ECHO_C" >&6
7849else
7850 cat >conftest.$ac_ext <<_ACEOF
7851/* confdefs.h. */
7852_ACEOF
7853cat confdefs.h >>conftest.$ac_ext
7854cat >>conftest.$ac_ext <<_ACEOF
7855/* end confdefs.h. */
7856$ac_includes_default
7857typedef pid_t ac__type_new_;
7858int
7859main ()
7860{
7861if ((ac__type_new_ *) 0)
7862 return 0;
7863if (sizeof (ac__type_new_))
7864 return 0;
7865 ;
7866 return 0;
7867}
7868_ACEOF
7869rm -f conftest.$ac_objext
7870if { (ac_try="$ac_compile"
7871case "(($ac_try" in
7872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7873 *) ac_try_echo=$ac_try;;
7874esac
7875eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7876 (eval "$ac_compile") 2>conftest.er1
7877 ac_status=$?
7878 grep -v '^ *+' conftest.er1 >conftest.err
7879 rm -f conftest.er1
7880 cat conftest.err >&5
7881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7882 (exit $ac_status); } && {
7883 test -z "$ac_cxx_werror_flag" ||
7884 test ! -s conftest.err
7885 } && test -s conftest.$ac_objext; then
7886 ac_cv_type_pid_t=yes
7887else
7888 echo "$as_me: failed program was:" >&5
7889sed 's/^/| /' conftest.$ac_ext >&5
7890
7891 ac_cv_type_pid_t=no
7892fi
7893
7894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7895fi
7896{ echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
7897echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
7898if test $ac_cv_type_pid_t = yes; then
7899 :
7900else
7901
7902cat >>confdefs.h <<_ACEOF
7903#define pid_t int
7904_ACEOF
7905
7906fi
7907
7908{ echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
7909echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; }
7910if test "${ac_cv_type_uid_t+set}" = set; then
7911 echo $ECHO_N "(cached) $ECHO_C" >&6
7912else
7913 cat >conftest.$ac_ext <<_ACEOF
7914/* confdefs.h. */
7915_ACEOF
7916cat confdefs.h >>conftest.$ac_ext
7917cat >>conftest.$ac_ext <<_ACEOF
7918/* end confdefs.h. */
7919#include <sys/types.h>
7920
7921_ACEOF
7922if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7923 $EGREP "uid_t" >/dev/null 2>&1; then
7924 ac_cv_type_uid_t=yes
7925else
7926 ac_cv_type_uid_t=no
7927fi
7928rm -f conftest*
7929
7930fi
7931{ echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
7932echo "${ECHO_T}$ac_cv_type_uid_t" >&6; }
7933if test $ac_cv_type_uid_t = no; then
7934
7935cat >>confdefs.h <<\_ACEOF
7936#define uid_t int
7937_ACEOF
7938
7939
7940cat >>confdefs.h <<\_ACEOF
7941#define gid_t int
7942_ACEOF
7943
7944fi
7945
7946
7947{ echo "$as_me:$LINENO: checking for short" >&5
7948echo $ECHO_N "checking for short... $ECHO_C" >&6; }
7949if test "${ac_cv_type_short+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7951else
7952 cat >conftest.$ac_ext <<_ACEOF
7953/* confdefs.h. */
7954_ACEOF
7955cat confdefs.h >>conftest.$ac_ext
7956cat >>conftest.$ac_ext <<_ACEOF
7957/* end confdefs.h. */
7958$ac_includes_default
7959typedef short ac__type_new_;
7960int
7961main ()
7962{
7963if ((ac__type_new_ *) 0)
7964 return 0;
7965if (sizeof (ac__type_new_))
7966 return 0;
7967 ;
7968 return 0;
7969}
7970_ACEOF
7971rm -f conftest.$ac_objext
7972if { (ac_try="$ac_compile"
7973case "(($ac_try" in
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7976esac
7977eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978 (eval "$ac_compile") 2>conftest.er1
7979 ac_status=$?
7980 grep -v '^ *+' conftest.er1 >conftest.err
7981 rm -f conftest.er1
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && {
7985 test -z "$ac_cxx_werror_flag" ||
7986 test ! -s conftest.err
7987 } && test -s conftest.$ac_objext; then
7988 ac_cv_type_short=yes
7989else
7990 echo "$as_me: failed program was:" >&5
7991sed 's/^/| /' conftest.$ac_ext >&5
7992
7993 ac_cv_type_short=no
7994fi
7995
7996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7997fi
7998{ echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
7999echo "${ECHO_T}$ac_cv_type_short" >&6; }
8000
8001# The cast to long int works around a bug in the HP C Compiler
8002# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8003# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8004# This bug is HP SR number 8606223364.
8005{ echo "$as_me:$LINENO: checking size of short" >&5
8006echo $ECHO_N "checking size of short... $ECHO_C" >&6; }
8007if test "${ac_cv_sizeof_short+set}" = set; then
8008 echo $ECHO_N "(cached) $ECHO_C" >&6
8009else
8010 if test "$cross_compiling" = yes; then
8011 # Depending upon the size, compute the lo and hi bounds.
8012cat >conftest.$ac_ext <<_ACEOF
8013/* confdefs.h. */
8014_ACEOF
8015cat confdefs.h >>conftest.$ac_ext
8016cat >>conftest.$ac_ext <<_ACEOF
8017/* end confdefs.h. */
8018$ac_includes_default
8019 typedef short ac__type_sizeof_;
8020int
8021main ()
8022{
8023static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8024test_array [0] = 0
8025
8026 ;
8027 return 0;
8028}
8029_ACEOF
8030rm -f conftest.$ac_objext
8031if { (ac_try="$ac_compile"
8032case "(($ac_try" in
8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8035esac
8036eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8037 (eval "$ac_compile") 2>conftest.er1
8038 ac_status=$?
8039 grep -v '^ *+' conftest.er1 >conftest.err
8040 rm -f conftest.er1
8041 cat conftest.err >&5
8042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8043 (exit $ac_status); } && {
8044 test -z "$ac_cxx_werror_flag" ||
8045 test ! -s conftest.err
8046 } && test -s conftest.$ac_objext; then
8047 ac_lo=0 ac_mid=0
8048 while :; do
8049 cat >conftest.$ac_ext <<_ACEOF
8050/* confdefs.h. */
8051_ACEOF
8052cat confdefs.h >>conftest.$ac_ext
8053cat >>conftest.$ac_ext <<_ACEOF
8054/* end confdefs.h. */
8055$ac_includes_default
8056 typedef short ac__type_sizeof_;
8057int
8058main ()
8059{
8060static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8061test_array [0] = 0
8062
8063 ;
8064 return 0;
8065}
8066_ACEOF
8067rm -f conftest.$ac_objext
8068if { (ac_try="$ac_compile"
8069case "(($ac_try" in
8070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8071 *) ac_try_echo=$ac_try;;
8072esac
8073eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8074 (eval "$ac_compile") 2>conftest.er1
8075 ac_status=$?
8076 grep -v '^ *+' conftest.er1 >conftest.err
8077 rm -f conftest.er1
8078 cat conftest.err >&5
8079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8080 (exit $ac_status); } && {
8081 test -z "$ac_cxx_werror_flag" ||
8082 test ! -s conftest.err
8083 } && test -s conftest.$ac_objext; then
8084 ac_hi=$ac_mid; break
8085else
8086 echo "$as_me: failed program was:" >&5
8087sed 's/^/| /' conftest.$ac_ext >&5
8088
8089 ac_lo=`expr $ac_mid + 1`
8090 if test $ac_lo -le $ac_mid; then
8091 ac_lo= ac_hi=
8092 break
8093 fi
8094 ac_mid=`expr 2 '*' $ac_mid + 1`
8095fi
8096
8097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8098 done
8099else
8100 echo "$as_me: failed program was:" >&5
8101sed 's/^/| /' conftest.$ac_ext >&5
8102
8103 cat >conftest.$ac_ext <<_ACEOF
8104/* confdefs.h. */
8105_ACEOF
8106cat confdefs.h >>conftest.$ac_ext
8107cat >>conftest.$ac_ext <<_ACEOF
8108/* end confdefs.h. */
8109$ac_includes_default
8110 typedef short ac__type_sizeof_;
8111int
8112main ()
8113{
8114static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8115test_array [0] = 0
8116
8117 ;
8118 return 0;
8119}
8120_ACEOF
8121rm -f conftest.$ac_objext
8122if { (ac_try="$ac_compile"
8123case "(($ac_try" in
8124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8125 *) ac_try_echo=$ac_try;;
8126esac
8127eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8128 (eval "$ac_compile") 2>conftest.er1
8129 ac_status=$?
8130 grep -v '^ *+' conftest.er1 >conftest.err
8131 rm -f conftest.er1
8132 cat conftest.err >&5
8133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8134 (exit $ac_status); } && {
8135 test -z "$ac_cxx_werror_flag" ||
8136 test ! -s conftest.err
8137 } && test -s conftest.$ac_objext; then
8138 ac_hi=-1 ac_mid=-1
8139 while :; do
8140 cat >conftest.$ac_ext <<_ACEOF
8141/* confdefs.h. */
8142_ACEOF
8143cat confdefs.h >>conftest.$ac_ext
8144cat >>conftest.$ac_ext <<_ACEOF
8145/* end confdefs.h. */
8146$ac_includes_default
8147 typedef short ac__type_sizeof_;
8148int
8149main ()
8150{
8151static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8152test_array [0] = 0
8153
8154 ;
8155 return 0;
8156}
8157_ACEOF
8158rm -f conftest.$ac_objext
8159if { (ac_try="$ac_compile"
8160case "(($ac_try" in
8161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8163esac
8164eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_compile") 2>conftest.er1
8166 ac_status=$?
8167 grep -v '^ *+' conftest.er1 >conftest.err
8168 rm -f conftest.er1
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_cxx_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest.$ac_objext; then
8175 ac_lo=$ac_mid; break
8176else
8177 echo "$as_me: failed program was:" >&5
8178sed 's/^/| /' conftest.$ac_ext >&5
8179
8180 ac_hi=`expr '(' $ac_mid ')' - 1`
8181 if test $ac_mid -le $ac_hi; then
8182 ac_lo= ac_hi=
8183 break
8184 fi
8185 ac_mid=`expr 2 '*' $ac_mid`
8186fi
8187
8188rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8189 done
8190else
8191 echo "$as_me: failed program was:" >&5
8192sed 's/^/| /' conftest.$ac_ext >&5
8193
8194 ac_lo= ac_hi=
8195fi
8196
8197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8198fi
8199
8200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8201# Binary search between lo and hi bounds.
8202while test "x$ac_lo" != "x$ac_hi"; do
8203 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8204 cat >conftest.$ac_ext <<_ACEOF
8205/* confdefs.h. */
8206_ACEOF
8207cat confdefs.h >>conftest.$ac_ext
8208cat >>conftest.$ac_ext <<_ACEOF
8209/* end confdefs.h. */
8210$ac_includes_default
8211 typedef short ac__type_sizeof_;
8212int
8213main ()
8214{
8215static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8216test_array [0] = 0
8217
8218 ;
8219 return 0;
8220}
8221_ACEOF
8222rm -f conftest.$ac_objext
8223if { (ac_try="$ac_compile"
8224case "(($ac_try" in
8225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8226 *) ac_try_echo=$ac_try;;
8227esac
8228eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8229 (eval "$ac_compile") 2>conftest.er1
8230 ac_status=$?
8231 grep -v '^ *+' conftest.er1 >conftest.err
8232 rm -f conftest.er1
8233 cat conftest.err >&5
8234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8235 (exit $ac_status); } && {
8236 test -z "$ac_cxx_werror_flag" ||
8237 test ! -s conftest.err
8238 } && test -s conftest.$ac_objext; then
8239 ac_hi=$ac_mid
8240else
8241 echo "$as_me: failed program was:" >&5
8242sed 's/^/| /' conftest.$ac_ext >&5
8243
8244 ac_lo=`expr '(' $ac_mid ')' + 1`
8245fi
8246
8247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8248done
8249case $ac_lo in
8250?*) ac_cv_sizeof_short=$ac_lo;;
8251'') if test "$ac_cv_type_short" = yes; then
8252 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8253See \`config.log' for more details." >&5
8254echo "$as_me: error: cannot compute sizeof (short)
8255See \`config.log' for more details." >&2;}
8256 { (exit 77); exit 77; }; }
8257 else
8258 ac_cv_sizeof_short=0
8259 fi ;;
8260esac
8261else
8262 cat >conftest.$ac_ext <<_ACEOF
8263/* confdefs.h. */
8264_ACEOF
8265cat confdefs.h >>conftest.$ac_ext
8266cat >>conftest.$ac_ext <<_ACEOF
8267/* end confdefs.h. */
8268$ac_includes_default
8269 typedef short ac__type_sizeof_;
8270static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8271static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8272#include <stdio.h>
8273#include <stdlib.h>
8274int
8275main ()
8276{
8277
8278 FILE *f = fopen ("conftest.val", "w");
8279 if (! f)
8280 return 1;
8281 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8282 {
8283 long int i = longval ();
8284 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8285 return 1;
8286 fprintf (f, "%ld\n", i);
8287 }
8288 else
8289 {
8290 unsigned long int i = ulongval ();
8291 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8292 return 1;
8293 fprintf (f, "%lu\n", i);
8294 }
8295 return ferror (f) || fclose (f) != 0;
8296
8297 ;
8298 return 0;
8299}
8300_ACEOF
8301rm -f conftest$ac_exeext
8302if { (ac_try="$ac_link"
8303case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306esac
8307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_link") 2>&5
8309 ac_status=$?
8310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8311 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8312 { (case "(($ac_try" in
8313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8314 *) ac_try_echo=$ac_try;;
8315esac
8316eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_try") 2>&5
8318 ac_status=$?
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); }; }; then
8321 ac_cv_sizeof_short=`cat conftest.val`
8322else
8323 echo "$as_me: program exited with status $ac_status" >&5
8324echo "$as_me: failed program was:" >&5
8325sed 's/^/| /' conftest.$ac_ext >&5
8326
8327( exit $ac_status )
8328if test "$ac_cv_type_short" = yes; then
8329 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short)
8330See \`config.log' for more details." >&5
8331echo "$as_me: error: cannot compute sizeof (short)
8332See \`config.log' for more details." >&2;}
8333 { (exit 77); exit 77; }; }
8334 else
8335 ac_cv_sizeof_short=0
8336 fi
8337fi
8338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8339fi
8340rm -f conftest.val
8341fi
8342{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8343echo "${ECHO_T}$ac_cv_sizeof_short" >&6; }
8344
8345
8346
8347cat >>confdefs.h <<_ACEOF
8348#define SIZEOF_SHORT $ac_cv_sizeof_short
8349_ACEOF
8350
8351
8352{ echo "$as_me:$LINENO: checking for int" >&5
8353echo $ECHO_N "checking for int... $ECHO_C" >&6; }
8354if test "${ac_cv_type_int+set}" = set; then
8355 echo $ECHO_N "(cached) $ECHO_C" >&6
8356else
8357 cat >conftest.$ac_ext <<_ACEOF
8358/* confdefs.h. */
8359_ACEOF
8360cat confdefs.h >>conftest.$ac_ext
8361cat >>conftest.$ac_ext <<_ACEOF
8362/* end confdefs.h. */
8363$ac_includes_default
8364typedef int ac__type_new_;
8365int
8366main ()
8367{
8368if ((ac__type_new_ *) 0)
8369 return 0;
8370if (sizeof (ac__type_new_))
8371 return 0;
8372 ;
8373 return 0;
8374}
8375_ACEOF
8376rm -f conftest.$ac_objext
8377if { (ac_try="$ac_compile"
8378case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8381esac
8382eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_compile") 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } && {
8390 test -z "$ac_cxx_werror_flag" ||
8391 test ! -s conftest.err
8392 } && test -s conftest.$ac_objext; then
8393 ac_cv_type_int=yes
8394else
8395 echo "$as_me: failed program was:" >&5
8396sed 's/^/| /' conftest.$ac_ext >&5
8397
8398 ac_cv_type_int=no
8399fi
8400
8401rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8402fi
8403{ echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8404echo "${ECHO_T}$ac_cv_type_int" >&6; }
8405
8406# The cast to long int works around a bug in the HP C Compiler
8407# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8408# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8409# This bug is HP SR number 8606223364.
8410{ echo "$as_me:$LINENO: checking size of int" >&5
8411echo $ECHO_N "checking size of int... $ECHO_C" >&6; }
8412if test "${ac_cv_sizeof_int+set}" = set; then
8413 echo $ECHO_N "(cached) $ECHO_C" >&6
8414else
8415 if test "$cross_compiling" = yes; then
8416 # Depending upon the size, compute the lo and hi bounds.
8417cat >conftest.$ac_ext <<_ACEOF
8418/* confdefs.h. */
8419_ACEOF
8420cat confdefs.h >>conftest.$ac_ext
8421cat >>conftest.$ac_ext <<_ACEOF
8422/* end confdefs.h. */
8423$ac_includes_default
8424 typedef int ac__type_sizeof_;
8425int
8426main ()
8427{
8428static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8429test_array [0] = 0
8430
8431 ;
8432 return 0;
8433}
8434_ACEOF
8435rm -f conftest.$ac_objext
8436if { (ac_try="$ac_compile"
8437case "(($ac_try" in
8438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8439 *) ac_try_echo=$ac_try;;
8440esac
8441eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_compile") 2>conftest.er1
8443 ac_status=$?
8444 grep -v '^ *+' conftest.er1 >conftest.err
8445 rm -f conftest.er1
8446 cat conftest.err >&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_cxx_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest.$ac_objext; then
8452 ac_lo=0 ac_mid=0
8453 while :; do
8454 cat >conftest.$ac_ext <<_ACEOF
8455/* confdefs.h. */
8456_ACEOF
8457cat confdefs.h >>conftest.$ac_ext
8458cat >>conftest.$ac_ext <<_ACEOF
8459/* end confdefs.h. */
8460$ac_includes_default
8461 typedef int ac__type_sizeof_;
8462int
8463main ()
8464{
8465static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8466test_array [0] = 0
8467
8468 ;
8469 return 0;
8470}
8471_ACEOF
8472rm -f conftest.$ac_objext
8473if { (ac_try="$ac_compile"
8474case "(($ac_try" in
8475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8477esac
8478eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_compile") 2>conftest.er1
8480 ac_status=$?
8481 grep -v '^ *+' conftest.er1 >conftest.err
8482 rm -f conftest.er1
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_cxx_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest.$ac_objext; then
8489 ac_hi=$ac_mid; break
8490else
8491 echo "$as_me: failed program was:" >&5
8492sed 's/^/| /' conftest.$ac_ext >&5
8493
8494 ac_lo=`expr $ac_mid + 1`
8495 if test $ac_lo -le $ac_mid; then
8496 ac_lo= ac_hi=
8497 break
8498 fi
8499 ac_mid=`expr 2 '*' $ac_mid + 1`
8500fi
8501
8502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503 done
8504else
8505 echo "$as_me: failed program was:" >&5
8506sed 's/^/| /' conftest.$ac_ext >&5
8507
8508 cat >conftest.$ac_ext <<_ACEOF
8509/* confdefs.h. */
8510_ACEOF
8511cat confdefs.h >>conftest.$ac_ext
8512cat >>conftest.$ac_ext <<_ACEOF
8513/* end confdefs.h. */
8514$ac_includes_default
8515 typedef int ac__type_sizeof_;
8516int
8517main ()
8518{
8519static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8520test_array [0] = 0
8521
8522 ;
8523 return 0;
8524}
8525_ACEOF
8526rm -f conftest.$ac_objext
8527if { (ac_try="$ac_compile"
8528case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531esac
8532eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8533 (eval "$ac_compile") 2>conftest.er1
8534 ac_status=$?
8535 grep -v '^ *+' conftest.er1 >conftest.err
8536 rm -f conftest.er1
8537 cat conftest.err >&5
8538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8539 (exit $ac_status); } && {
8540 test -z "$ac_cxx_werror_flag" ||
8541 test ! -s conftest.err
8542 } && test -s conftest.$ac_objext; then
8543 ac_hi=-1 ac_mid=-1
8544 while :; do
8545 cat >conftest.$ac_ext <<_ACEOF
8546/* confdefs.h. */
8547_ACEOF
8548cat confdefs.h >>conftest.$ac_ext
8549cat >>conftest.$ac_ext <<_ACEOF
8550/* end confdefs.h. */
8551$ac_includes_default
8552 typedef int ac__type_sizeof_;
8553int
8554main ()
8555{
8556static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8557test_array [0] = 0
8558
8559 ;
8560 return 0;
8561}
8562_ACEOF
8563rm -f conftest.$ac_objext
8564if { (ac_try="$ac_compile"
8565case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568esac
8569eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8570 (eval "$ac_compile") 2>conftest.er1
8571 ac_status=$?
8572 grep -v '^ *+' conftest.er1 >conftest.err
8573 rm -f conftest.er1
8574 cat conftest.err >&5
8575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8576 (exit $ac_status); } && {
8577 test -z "$ac_cxx_werror_flag" ||
8578 test ! -s conftest.err
8579 } && test -s conftest.$ac_objext; then
8580 ac_lo=$ac_mid; break
8581else
8582 echo "$as_me: failed program was:" >&5
8583sed 's/^/| /' conftest.$ac_ext >&5
8584
8585 ac_hi=`expr '(' $ac_mid ')' - 1`
8586 if test $ac_mid -le $ac_hi; then
8587 ac_lo= ac_hi=
8588 break
8589 fi
8590 ac_mid=`expr 2 '*' $ac_mid`
8591fi
8592
8593rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 done
8595else
8596 echo "$as_me: failed program was:" >&5
8597sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 ac_lo= ac_hi=
8600fi
8601
8602rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603fi
8604
8605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606# Binary search between lo and hi bounds.
8607while test "x$ac_lo" != "x$ac_hi"; do
8608 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8609 cat >conftest.$ac_ext <<_ACEOF
8610/* confdefs.h. */
8611_ACEOF
8612cat confdefs.h >>conftest.$ac_ext
8613cat >>conftest.$ac_ext <<_ACEOF
8614/* end confdefs.h. */
8615$ac_includes_default
8616 typedef int ac__type_sizeof_;
8617int
8618main ()
8619{
8620static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8621test_array [0] = 0
8622
8623 ;
8624 return 0;
8625}
8626_ACEOF
8627rm -f conftest.$ac_objext
8628if { (ac_try="$ac_compile"
8629case "(($ac_try" in
8630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8631 *) ac_try_echo=$ac_try;;
8632esac
8633eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_compile") 2>conftest.er1
8635 ac_status=$?
8636 grep -v '^ *+' conftest.er1 >conftest.err
8637 rm -f conftest.er1
8638 cat conftest.err >&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } && {
8641 test -z "$ac_cxx_werror_flag" ||
8642 test ! -s conftest.err
8643 } && test -s conftest.$ac_objext; then
8644 ac_hi=$ac_mid
8645else
8646 echo "$as_me: failed program was:" >&5
8647sed 's/^/| /' conftest.$ac_ext >&5
8648
8649 ac_lo=`expr '(' $ac_mid ')' + 1`
8650fi
8651
8652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653done
8654case $ac_lo in
8655?*) ac_cv_sizeof_int=$ac_lo;;
8656'') if test "$ac_cv_type_int" = yes; then
8657 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8658See \`config.log' for more details." >&5
8659echo "$as_me: error: cannot compute sizeof (int)
8660See \`config.log' for more details." >&2;}
8661 { (exit 77); exit 77; }; }
8662 else
8663 ac_cv_sizeof_int=0
8664 fi ;;
8665esac
8666else
8667 cat >conftest.$ac_ext <<_ACEOF
8668/* confdefs.h. */
8669_ACEOF
8670cat confdefs.h >>conftest.$ac_ext
8671cat >>conftest.$ac_ext <<_ACEOF
8672/* end confdefs.h. */
8673$ac_includes_default
8674 typedef int ac__type_sizeof_;
8675static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
8676static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
8677#include <stdio.h>
8678#include <stdlib.h>
8679int
8680main ()
8681{
8682
8683 FILE *f = fopen ("conftest.val", "w");
8684 if (! f)
8685 return 1;
8686 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
8687 {
8688 long int i = longval ();
8689 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8690 return 1;
8691 fprintf (f, "%ld\n", i);
8692 }
8693 else
8694 {
8695 unsigned long int i = ulongval ();
8696 if (i != ((long int) (sizeof (ac__type_sizeof_))))
8697 return 1;
8698 fprintf (f, "%lu\n", i);
8699 }
8700 return ferror (f) || fclose (f) != 0;
8701
8702 ;
8703 return 0;
8704}
8705_ACEOF
8706rm -f conftest$ac_exeext
8707if { (ac_try="$ac_link"
8708case "(($ac_try" in
8709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8710 *) ac_try_echo=$ac_try;;
8711esac
8712eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8713 (eval "$ac_link") 2>&5
8714 ac_status=$?
8715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8717 { (case "(($ac_try" in
8718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8719 *) ac_try_echo=$ac_try;;
8720esac
8721eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8722 (eval "$ac_try") 2>&5
8723 ac_status=$?
8724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8725 (exit $ac_status); }; }; then
8726 ac_cv_sizeof_int=`cat conftest.val`
8727else
8728 echo "$as_me: program exited with status $ac_status" >&5
8729echo "$as_me: failed program was:" >&5
8730sed 's/^/| /' conftest.$ac_ext >&5
8731
8732( exit $ac_status )
8733if test "$ac_cv_type_int" = yes; then
8734 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int)
8735See \`config.log' for more details." >&5
8736echo "$as_me: error: cannot compute sizeof (int)
8737See \`config.log' for more details." >&2;}
8738 { (exit 77); exit 77; }; }
8739 else
8740 ac_cv_sizeof_int=0
8741 fi
8742fi
8743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8744fi
8745rm -f conftest.val
8746fi
8747{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8748echo "${ECHO_T}$ac_cv_sizeof_int" >&6; }
8749
8750
8751
8752cat >>confdefs.h <<_ACEOF
8753#define SIZEOF_INT $ac_cv_sizeof_int
8754_ACEOF
8755
8756
8757{ echo "$as_me:$LINENO: checking for long long" >&5
8758echo $ECHO_N "checking for long long... $ECHO_C" >&6; }
8759if test "${ac_cv_type_long_long+set}" = set; then
8760 echo $ECHO_N "(cached) $ECHO_C" >&6
8761else
8762 cat >conftest.$ac_ext <<_ACEOF
8763/* confdefs.h. */
8764_ACEOF
8765cat confdefs.h >>conftest.$ac_ext
8766cat >>conftest.$ac_ext <<_ACEOF
8767/* end confdefs.h. */
8768$ac_includes_default
8769typedef long long ac__type_new_;
8770int
8771main ()
8772{
8773if ((ac__type_new_ *) 0)
8774 return 0;
8775if (sizeof (ac__type_new_))
8776 return 0;
8777 ;
8778 return 0;
8779}
8780_ACEOF
8781rm -f conftest.$ac_objext
8782if { (ac_try="$ac_compile"
8783case "(($ac_try" in
8784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8785 *) ac_try_echo=$ac_try;;
8786esac
8787eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8788 (eval "$ac_compile") 2>conftest.er1
8789 ac_status=$?
8790 grep -v '^ *+' conftest.er1 >conftest.err
8791 rm -f conftest.er1
8792 cat conftest.err >&5
8793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8794 (exit $ac_status); } && {
8795 test -z "$ac_cxx_werror_flag" ||
8796 test ! -s conftest.err
8797 } && test -s conftest.$ac_objext; then
8798 ac_cv_type_long_long=yes
8799else
8800 echo "$as_me: failed program was:" >&5
8801sed 's/^/| /' conftest.$ac_ext >&5
8802
8803 ac_cv_type_long_long=no
8804fi
8805
8806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8807fi
8808{ echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8809echo "${ECHO_T}$ac_cv_type_long_long" >&6; }
8810
8811# The cast to long int works around a bug in the HP C Compiler
8812# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8813# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8814# This bug is HP SR number 8606223364.
8815{ echo "$as_me:$LINENO: checking size of long long" >&5
8816echo $ECHO_N "checking size of long long... $ECHO_C" >&6; }
8817if test "${ac_cv_sizeof_long_long+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819else
8820 if test "$cross_compiling" = yes; then
8821 # Depending upon the size, compute the lo and hi bounds.
8822cat >conftest.$ac_ext <<_ACEOF
8823/* confdefs.h. */
8824_ACEOF
8825cat confdefs.h >>conftest.$ac_ext
8826cat >>conftest.$ac_ext <<_ACEOF
8827/* end confdefs.h. */
8828$ac_includes_default
8829 typedef long long ac__type_sizeof_;
8830int
8831main ()
8832{
8833static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
8834test_array [0] = 0
8835
8836 ;
8837 return 0;
8838}
8839_ACEOF
8840rm -f conftest.$ac_objext
8841if { (ac_try="$ac_compile"
8842case "(($ac_try" in
8843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8844 *) ac_try_echo=$ac_try;;
8845esac
8846eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8847 (eval "$ac_compile") 2>conftest.er1
8848 ac_status=$?
8849 grep -v '^ *+' conftest.er1 >conftest.err
8850 rm -f conftest.er1
8851 cat conftest.err >&5
8852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8853 (exit $ac_status); } && {
8854 test -z "$ac_cxx_werror_flag" ||
8855 test ! -s conftest.err
8856 } && test -s conftest.$ac_objext; then
8857 ac_lo=0 ac_mid=0
8858 while :; do
8859 cat >conftest.$ac_ext <<_ACEOF
8860/* confdefs.h. */
8861_ACEOF
8862cat confdefs.h >>conftest.$ac_ext
8863cat >>conftest.$ac_ext <<_ACEOF
8864/* end confdefs.h. */
8865$ac_includes_default
8866 typedef long long ac__type_sizeof_;
8867int
8868main ()
8869{
8870static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
8871test_array [0] = 0
8872
8873 ;
8874 return 0;
8875}
8876_ACEOF
8877rm -f conftest.$ac_objext
8878if { (ac_try="$ac_compile"
8879case "(($ac_try" in
8880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8881 *) ac_try_echo=$ac_try;;
8882esac
8883eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8884 (eval "$ac_compile") 2>conftest.er1
8885 ac_status=$?
8886 grep -v '^ *+' conftest.er1 >conftest.err
8887 rm -f conftest.er1
8888 cat conftest.err >&5
8889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8890 (exit $ac_status); } && {
8891 test -z "$ac_cxx_werror_flag" ||
8892 test ! -s conftest.err
8893 } && test -s conftest.$ac_objext; then
8894 ac_hi=$ac_mid; break
8895else
8896 echo "$as_me: failed program was:" >&5
8897sed 's/^/| /' conftest.$ac_ext >&5
8898
8899 ac_lo=`expr $ac_mid + 1`
8900 if test $ac_lo -le $ac_mid; then
8901 ac_lo= ac_hi=
8902 break
8903 fi
8904 ac_mid=`expr 2 '*' $ac_mid + 1`
8905fi
8906
8907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8908 done
8909else
8910 echo "$as_me: failed program was:" >&5
8911sed 's/^/| /' conftest.$ac_ext >&5
8912
8913 cat >conftest.$ac_ext <<_ACEOF
8914/* confdefs.h. */
8915_ACEOF
8916cat confdefs.h >>conftest.$ac_ext
8917cat >>conftest.$ac_ext <<_ACEOF
8918/* end confdefs.h. */
8919$ac_includes_default
8920 typedef long long ac__type_sizeof_;
8921int
8922main ()
8923{
8924static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
8925test_array [0] = 0
8926
8927 ;
8928 return 0;
8929}
8930_ACEOF
8931rm -f conftest.$ac_objext
8932if { (ac_try="$ac_compile"
8933case "(($ac_try" in
8934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8935 *) ac_try_echo=$ac_try;;
8936esac
8937eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8938 (eval "$ac_compile") 2>conftest.er1
8939 ac_status=$?
8940 grep -v '^ *+' conftest.er1 >conftest.err
8941 rm -f conftest.er1
8942 cat conftest.err >&5
8943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8944 (exit $ac_status); } && {
8945 test -z "$ac_cxx_werror_flag" ||
8946 test ! -s conftest.err
8947 } && test -s conftest.$ac_objext; then
8948 ac_hi=-1 ac_mid=-1
8949 while :; do
8950 cat >conftest.$ac_ext <<_ACEOF
8951/* confdefs.h. */
8952_ACEOF
8953cat confdefs.h >>conftest.$ac_ext
8954cat >>conftest.$ac_ext <<_ACEOF
8955/* end confdefs.h. */
8956$ac_includes_default
8957 typedef long long ac__type_sizeof_;
8958int
8959main ()
8960{
8961static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
8962test_array [0] = 0
8963
8964 ;
8965 return 0;
8966}
8967_ACEOF
8968rm -f conftest.$ac_objext
8969if { (ac_try="$ac_compile"
8970case "(($ac_try" in
8971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8973esac
8974eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_compile") 2>conftest.er1
8976 ac_status=$?
8977 grep -v '^ *+' conftest.er1 >conftest.err
8978 rm -f conftest.er1
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } && {
8982 test -z "$ac_cxx_werror_flag" ||
8983 test ! -s conftest.err
8984 } && test -s conftest.$ac_objext; then
8985 ac_lo=$ac_mid; break
8986else
8987 echo "$as_me: failed program was:" >&5
8988sed 's/^/| /' conftest.$ac_ext >&5
8989
8990 ac_hi=`expr '(' $ac_mid ')' - 1`
8991 if test $ac_mid -le $ac_hi; then
8992 ac_lo= ac_hi=
8993 break
8994 fi
8995 ac_mid=`expr 2 '*' $ac_mid`
8996fi
8997
8998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8999 done
9000else
9001 echo "$as_me: failed program was:" >&5
9002sed 's/^/| /' conftest.$ac_ext >&5
9003
9004 ac_lo= ac_hi=
9005fi
9006
9007rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9008fi
9009
9010rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9011# Binary search between lo and hi bounds.
9012while test "x$ac_lo" != "x$ac_hi"; do
9013 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9014 cat >conftest.$ac_ext <<_ACEOF
9015/* confdefs.h. */
9016_ACEOF
9017cat confdefs.h >>conftest.$ac_ext
9018cat >>conftest.$ac_ext <<_ACEOF
9019/* end confdefs.h. */
9020$ac_includes_default
9021 typedef long long ac__type_sizeof_;
9022int
9023main ()
9024{
9025static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9026test_array [0] = 0
9027
9028 ;
9029 return 0;
9030}
9031_ACEOF
9032rm -f conftest.$ac_objext
9033if { (ac_try="$ac_compile"
9034case "(($ac_try" in
9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9037esac
9038eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039 (eval "$ac_compile") 2>conftest.er1
9040 ac_status=$?
9041 grep -v '^ *+' conftest.er1 >conftest.err
9042 rm -f conftest.er1
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } && {
9046 test -z "$ac_cxx_werror_flag" ||
9047 test ! -s conftest.err
9048 } && test -s conftest.$ac_objext; then
9049 ac_hi=$ac_mid
9050else
9051 echo "$as_me: failed program was:" >&5
9052sed 's/^/| /' conftest.$ac_ext >&5
9053
9054 ac_lo=`expr '(' $ac_mid ')' + 1`
9055fi
9056
9057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9058done
9059case $ac_lo in
9060?*) ac_cv_sizeof_long_long=$ac_lo;;
9061'') if test "$ac_cv_type_long_long" = yes; then
9062 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9063See \`config.log' for more details." >&5
9064echo "$as_me: error: cannot compute sizeof (long long)
9065See \`config.log' for more details." >&2;}
9066 { (exit 77); exit 77; }; }
9067 else
9068 ac_cv_sizeof_long_long=0
9069 fi ;;
9070esac
9071else
9072 cat >conftest.$ac_ext <<_ACEOF
9073/* confdefs.h. */
9074_ACEOF
9075cat confdefs.h >>conftest.$ac_ext
9076cat >>conftest.$ac_ext <<_ACEOF
9077/* end confdefs.h. */
9078$ac_includes_default
9079 typedef long long ac__type_sizeof_;
9080static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9081static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9082#include <stdio.h>
9083#include <stdlib.h>
9084int
9085main ()
9086{
9087
9088 FILE *f = fopen ("conftest.val", "w");
9089 if (! f)
9090 return 1;
9091 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9092 {
9093 long int i = longval ();
9094 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9095 return 1;
9096 fprintf (f, "%ld\n", i);
9097 }
9098 else
9099 {
9100 unsigned long int i = ulongval ();
9101 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9102 return 1;
9103 fprintf (f, "%lu\n", i);
9104 }
9105 return ferror (f) || fclose (f) != 0;
9106
9107 ;
9108 return 0;
9109}
9110_ACEOF
9111rm -f conftest$ac_exeext
9112if { (ac_try="$ac_link"
9113case "(($ac_try" in
9114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9115 *) ac_try_echo=$ac_try;;
9116esac
9117eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9118 (eval "$ac_link") 2>&5
9119 ac_status=$?
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9122 { (case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9125esac
9126eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_try") 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; }; then
9131 ac_cv_sizeof_long_long=`cat conftest.val`
9132else
9133 echo "$as_me: program exited with status $ac_status" >&5
9134echo "$as_me: failed program was:" >&5
9135sed 's/^/| /' conftest.$ac_ext >&5
9136
9137( exit $ac_status )
9138if test "$ac_cv_type_long_long" = yes; then
9139 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long)
9140See \`config.log' for more details." >&5
9141echo "$as_me: error: cannot compute sizeof (long long)
9142See \`config.log' for more details." >&2;}
9143 { (exit 77); exit 77; }; }
9144 else
9145 ac_cv_sizeof_long_long=0
9146 fi
9147fi
9148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9149fi
9150rm -f conftest.val
9151fi
9152{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9153echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6; }
9154
9155
9156
9157cat >>confdefs.h <<_ACEOF
9158#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9159_ACEOF
9160
9161
9162{ echo "$as_me:$LINENO: checking for int *" >&5
9163echo $ECHO_N "checking for int *... $ECHO_C" >&6; }
9164if test "${ac_cv_type_int_p+set}" = set; then
9165 echo $ECHO_N "(cached) $ECHO_C" >&6
9166else
9167 cat >conftest.$ac_ext <<_ACEOF
9168/* confdefs.h. */
9169_ACEOF
9170cat confdefs.h >>conftest.$ac_ext
9171cat >>conftest.$ac_ext <<_ACEOF
9172/* end confdefs.h. */
9173$ac_includes_default
9174typedef int * ac__type_new_;
9175int
9176main ()
9177{
9178if ((ac__type_new_ *) 0)
9179 return 0;
9180if (sizeof (ac__type_new_))
9181 return 0;
9182 ;
9183 return 0;
9184}
9185_ACEOF
9186rm -f conftest.$ac_objext
9187if { (ac_try="$ac_compile"
9188case "(($ac_try" in
9189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9190 *) ac_try_echo=$ac_try;;
9191esac
9192eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9193 (eval "$ac_compile") 2>conftest.er1
9194 ac_status=$?
9195 grep -v '^ *+' conftest.er1 >conftest.err
9196 rm -f conftest.er1
9197 cat conftest.err >&5
9198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9199 (exit $ac_status); } && {
9200 test -z "$ac_cxx_werror_flag" ||
9201 test ! -s conftest.err
9202 } && test -s conftest.$ac_objext; then
9203 ac_cv_type_int_p=yes
9204else
9205 echo "$as_me: failed program was:" >&5
9206sed 's/^/| /' conftest.$ac_ext >&5
9207
9208 ac_cv_type_int_p=no
9209fi
9210
9211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9212fi
9213{ echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9214echo "${ECHO_T}$ac_cv_type_int_p" >&6; }
9215
9216# The cast to long int works around a bug in the HP C Compiler
9217# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9218# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9219# This bug is HP SR number 8606223364.
9220{ echo "$as_me:$LINENO: checking size of int *" >&5
9221echo $ECHO_N "checking size of int *... $ECHO_C" >&6; }
9222if test "${ac_cv_sizeof_int_p+set}" = set; then
9223 echo $ECHO_N "(cached) $ECHO_C" >&6
9224else
9225 if test "$cross_compiling" = yes; then
9226 # Depending upon the size, compute the lo and hi bounds.
9227cat >conftest.$ac_ext <<_ACEOF
9228/* confdefs.h. */
9229_ACEOF
9230cat confdefs.h >>conftest.$ac_ext
9231cat >>conftest.$ac_ext <<_ACEOF
9232/* end confdefs.h. */
9233$ac_includes_default
9234 typedef int * ac__type_sizeof_;
9235int
9236main ()
9237{
9238static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= 0)];
9239test_array [0] = 0
9240
9241 ;
9242 return 0;
9243}
9244_ACEOF
9245rm -f conftest.$ac_objext
9246if { (ac_try="$ac_compile"
9247case "(($ac_try" in
9248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9249 *) ac_try_echo=$ac_try;;
9250esac
9251eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9252 (eval "$ac_compile") 2>conftest.er1
9253 ac_status=$?
9254 grep -v '^ *+' conftest.er1 >conftest.err
9255 rm -f conftest.er1
9256 cat conftest.err >&5
9257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9258 (exit $ac_status); } && {
9259 test -z "$ac_cxx_werror_flag" ||
9260 test ! -s conftest.err
9261 } && test -s conftest.$ac_objext; then
9262 ac_lo=0 ac_mid=0
9263 while :; do
9264 cat >conftest.$ac_ext <<_ACEOF
9265/* confdefs.h. */
9266_ACEOF
9267cat confdefs.h >>conftest.$ac_ext
9268cat >>conftest.$ac_ext <<_ACEOF
9269/* end confdefs.h. */
9270$ac_includes_default
9271 typedef int * ac__type_sizeof_;
9272int
9273main ()
9274{
9275static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9276test_array [0] = 0
9277
9278 ;
9279 return 0;
9280}
9281_ACEOF
9282rm -f conftest.$ac_objext
9283if { (ac_try="$ac_compile"
9284case "(($ac_try" in
9285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9286 *) ac_try_echo=$ac_try;;
9287esac
9288eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9289 (eval "$ac_compile") 2>conftest.er1
9290 ac_status=$?
9291 grep -v '^ *+' conftest.er1 >conftest.err
9292 rm -f conftest.er1
9293 cat conftest.err >&5
9294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9295 (exit $ac_status); } && {
9296 test -z "$ac_cxx_werror_flag" ||
9297 test ! -s conftest.err
9298 } && test -s conftest.$ac_objext; then
9299 ac_hi=$ac_mid; break
9300else
9301 echo "$as_me: failed program was:" >&5
9302sed 's/^/| /' conftest.$ac_ext >&5
9303
9304 ac_lo=`expr $ac_mid + 1`
9305 if test $ac_lo -le $ac_mid; then
9306 ac_lo= ac_hi=
9307 break
9308 fi
9309 ac_mid=`expr 2 '*' $ac_mid + 1`
9310fi
9311
9312rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9313 done
9314else
9315 echo "$as_me: failed program was:" >&5
9316sed 's/^/| /' conftest.$ac_ext >&5
9317
9318 cat >conftest.$ac_ext <<_ACEOF
9319/* confdefs.h. */
9320_ACEOF
9321cat confdefs.h >>conftest.$ac_ext
9322cat >>conftest.$ac_ext <<_ACEOF
9323/* end confdefs.h. */
9324$ac_includes_default
9325 typedef int * ac__type_sizeof_;
9326int
9327main ()
9328{
9329static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) < 0)];
9330test_array [0] = 0
9331
9332 ;
9333 return 0;
9334}
9335_ACEOF
9336rm -f conftest.$ac_objext
9337if { (ac_try="$ac_compile"
9338case "(($ac_try" in
9339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9340 *) ac_try_echo=$ac_try;;
9341esac
9342eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9343 (eval "$ac_compile") 2>conftest.er1
9344 ac_status=$?
9345 grep -v '^ *+' conftest.er1 >conftest.err
9346 rm -f conftest.er1
9347 cat conftest.err >&5
9348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9349 (exit $ac_status); } && {
9350 test -z "$ac_cxx_werror_flag" ||
9351 test ! -s conftest.err
9352 } && test -s conftest.$ac_objext; then
9353 ac_hi=-1 ac_mid=-1
9354 while :; do
9355 cat >conftest.$ac_ext <<_ACEOF
9356/* confdefs.h. */
9357_ACEOF
9358cat confdefs.h >>conftest.$ac_ext
9359cat >>conftest.$ac_ext <<_ACEOF
9360/* end confdefs.h. */
9361$ac_includes_default
9362 typedef int * ac__type_sizeof_;
9363int
9364main ()
9365{
9366static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) >= $ac_mid)];
9367test_array [0] = 0
9368
9369 ;
9370 return 0;
9371}
9372_ACEOF
9373rm -f conftest.$ac_objext
9374if { (ac_try="$ac_compile"
9375case "(($ac_try" in
9376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377 *) ac_try_echo=$ac_try;;
9378esac
9379eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380 (eval "$ac_compile") 2>conftest.er1
9381 ac_status=$?
9382 grep -v '^ *+' conftest.er1 >conftest.err
9383 rm -f conftest.er1
9384 cat conftest.err >&5
9385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9386 (exit $ac_status); } && {
9387 test -z "$ac_cxx_werror_flag" ||
9388 test ! -s conftest.err
9389 } && test -s conftest.$ac_objext; then
9390 ac_lo=$ac_mid; break
9391else
9392 echo "$as_me: failed program was:" >&5
9393sed 's/^/| /' conftest.$ac_ext >&5
9394
9395 ac_hi=`expr '(' $ac_mid ')' - 1`
9396 if test $ac_mid -le $ac_hi; then
9397 ac_lo= ac_hi=
9398 break
9399 fi
9400 ac_mid=`expr 2 '*' $ac_mid`
9401fi
9402
9403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9404 done
9405else
9406 echo "$as_me: failed program was:" >&5
9407sed 's/^/| /' conftest.$ac_ext >&5
9408
9409 ac_lo= ac_hi=
9410fi
9411
9412rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9413fi
9414
9415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9416# Binary search between lo and hi bounds.
9417while test "x$ac_lo" != "x$ac_hi"; do
9418 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9419 cat >conftest.$ac_ext <<_ACEOF
9420/* confdefs.h. */
9421_ACEOF
9422cat confdefs.h >>conftest.$ac_ext
9423cat >>conftest.$ac_ext <<_ACEOF
9424/* end confdefs.h. */
9425$ac_includes_default
9426 typedef int * ac__type_sizeof_;
9427int
9428main ()
9429{
9430static int test_array [1 - 2 * !(((long int) (sizeof (ac__type_sizeof_))) <= $ac_mid)];
9431test_array [0] = 0
9432
9433 ;
9434 return 0;
9435}
9436_ACEOF
9437rm -f conftest.$ac_objext
9438if { (ac_try="$ac_compile"
9439case "(($ac_try" in
9440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9441 *) ac_try_echo=$ac_try;;
9442esac
9443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9444 (eval "$ac_compile") 2>conftest.er1
9445 ac_status=$?
9446 grep -v '^ *+' conftest.er1 >conftest.err
9447 rm -f conftest.er1
9448 cat conftest.err >&5
9449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9450 (exit $ac_status); } && {
9451 test -z "$ac_cxx_werror_flag" ||
9452 test ! -s conftest.err
9453 } && test -s conftest.$ac_objext; then
9454 ac_hi=$ac_mid
9455else
9456 echo "$as_me: failed program was:" >&5
9457sed 's/^/| /' conftest.$ac_ext >&5
9458
9459 ac_lo=`expr '(' $ac_mid ')' + 1`
9460fi
9461
9462rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9463done
9464case $ac_lo in
9465?*) ac_cv_sizeof_int_p=$ac_lo;;
9466'') if test "$ac_cv_type_int_p" = yes; then
9467 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9468See \`config.log' for more details." >&5
9469echo "$as_me: error: cannot compute sizeof (int *)
9470See \`config.log' for more details." >&2;}
9471 { (exit 77); exit 77; }; }
9472 else
9473 ac_cv_sizeof_int_p=0
9474 fi ;;
9475esac
9476else
9477 cat >conftest.$ac_ext <<_ACEOF
9478/* confdefs.h. */
9479_ACEOF
9480cat confdefs.h >>conftest.$ac_ext
9481cat >>conftest.$ac_ext <<_ACEOF
9482/* end confdefs.h. */
9483$ac_includes_default
9484 typedef int * ac__type_sizeof_;
9485static long int longval () { return (long int) (sizeof (ac__type_sizeof_)); }
9486static unsigned long int ulongval () { return (long int) (sizeof (ac__type_sizeof_)); }
9487#include <stdio.h>
9488#include <stdlib.h>
9489int
9490main ()
9491{
9492
9493 FILE *f = fopen ("conftest.val", "w");
9494 if (! f)
9495 return 1;
9496 if (((long int) (sizeof (ac__type_sizeof_))) < 0)
9497 {
9498 long int i = longval ();
9499 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9500 return 1;
9501 fprintf (f, "%ld\n", i);
9502 }
9503 else
9504 {
9505 unsigned long int i = ulongval ();
9506 if (i != ((long int) (sizeof (ac__type_sizeof_))))
9507 return 1;
9508 fprintf (f, "%lu\n", i);
9509 }
9510 return ferror (f) || fclose (f) != 0;
9511
9512 ;
9513 return 0;
9514}
9515_ACEOF
9516rm -f conftest$ac_exeext
9517if { (ac_try="$ac_link"
9518case "(($ac_try" in
9519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9520 *) ac_try_echo=$ac_try;;
9521esac
9522eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9523 (eval "$ac_link") 2>&5
9524 ac_status=$?
9525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9527 { (case "(($ac_try" in
9528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9530esac
9531eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_try") 2>&5
9533 ac_status=$?
9534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9535 (exit $ac_status); }; }; then
9536 ac_cv_sizeof_int_p=`cat conftest.val`
9537else
9538 echo "$as_me: program exited with status $ac_status" >&5
9539echo "$as_me: failed program was:" >&5
9540sed 's/^/| /' conftest.$ac_ext >&5
9541
9542( exit $ac_status )
9543if test "$ac_cv_type_int_p" = yes; then
9544 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *)
9545See \`config.log' for more details." >&5
9546echo "$as_me: error: cannot compute sizeof (int *)
9547See \`config.log' for more details." >&2;}
9548 { (exit 77); exit 77; }; }
9549 else
9550 ac_cv_sizeof_int_p=0
9551 fi
9552fi
9553rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9554fi
9555rm -f conftest.val
9556fi
9557{ echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9558echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6; }
9559
9560
9561
9562cat >>confdefs.h <<_ACEOF
9563#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9564_ACEOF
9565
9566
9567
9568
9569{ echo "$as_me:$LINENO: checking for int16_t" >&5
9570echo $ECHO_N "checking for int16_t... $ECHO_C" >&6; }
9571if test "${rxvt_cv_int16_t+set}" = set; then
9572 echo $ECHO_N "(cached) $ECHO_C" >&6
9573else
9574 cat >conftest.$ac_ext <<_ACEOF
9575/* confdefs.h. */
9576_ACEOF
9577cat confdefs.h >>conftest.$ac_ext
9578cat >>conftest.$ac_ext <<_ACEOF
9579/* end confdefs.h. */
9580#include <stdint.h>
9581int
9582main ()
9583{
9584int16_t dummy;
9585 ;
9586 return 0;
9587}
9588_ACEOF
9589rm -f conftest.$ac_objext
9590if { (ac_try="$ac_compile"
9591case "(($ac_try" in
9592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9593 *) ac_try_echo=$ac_try;;
9594esac
9595eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9596 (eval "$ac_compile") 2>conftest.er1
9597 ac_status=$?
9598 grep -v '^ *+' conftest.er1 >conftest.err
9599 rm -f conftest.er1
9600 cat conftest.err >&5
9601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9602 (exit $ac_status); } && {
9603 test -z "$ac_cxx_werror_flag" ||
9604 test ! -s conftest.err
9605 } && test -s conftest.$ac_objext; then
9606 rxvt_cv_int16_t=yes
9607else
9608 echo "$as_me: failed program was:" >&5
9609sed 's/^/| /' conftest.$ac_ext >&5
9610
9611 if test "$ac_cv_sizeof_char" -ge 2; then
9612 rxvt_cv_int16_t=" char"
9613else
9614 if test "$ac_cv_sizeof_short" -ge 2; then
9615 rxvt_cv_int16_t=" short"
9616 else
9617 if test "$ac_cv_sizeof_int" -ge 2; then
9618 rxvt_cv_int16_t=" int"
9619 else
9620 if test "$ac_cv_sizeof_long" -ge 2; then
9621 rxvt_cv_int16_t=" long"
9622 else
9623 if test "$ac_cv_sizeof_long_long" -ge 2; then
9624 rxvt_cv_int16_t=" long long"
9625 else
9626 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9627 fi
9628 fi
9629 fi
9630 fi
9631fi
9632fi
9633
9634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9635fi
9636{ echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9637echo "${ECHO_T}$rxvt_cv_int16_t" >&6; }
9638if test x"$rxvt_cv_int16_t" != xyes; then
9639 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9640else
9641 if test x"" = x; then
9642 rxvt_int16_typedef="/* typedef short int16_t; */"
9643 else
9644 rxvt_int16_typedef="/* typedef short int16_t; */"
9645 fi
9646fi
9647
9648{ echo "$as_me:$LINENO: checking for uint16_t" >&5
9649echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6; }
9650if test "${rxvt_cv_uint16_t+set}" = set; then
9651 echo $ECHO_N "(cached) $ECHO_C" >&6
9652else
9653 cat >conftest.$ac_ext <<_ACEOF
9654/* confdefs.h. */
9655_ACEOF
9656cat confdefs.h >>conftest.$ac_ext
9657cat >>conftest.$ac_ext <<_ACEOF
9658/* end confdefs.h. */
9659#include <stdint.h>
9660int
9661main ()
9662{
9663uint16_t dummy;
9664 ;
9665 return 0;
9666}
9667_ACEOF
9668rm -f conftest.$ac_objext
9669if { (ac_try="$ac_compile"
9670case "(($ac_try" in
9671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9672 *) ac_try_echo=$ac_try;;
9673esac
9674eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9675 (eval "$ac_compile") 2>conftest.er1
9676 ac_status=$?
9677 grep -v '^ *+' conftest.er1 >conftest.err
9678 rm -f conftest.er1
9679 cat conftest.err >&5
9680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9681 (exit $ac_status); } && {
9682 test -z "$ac_cxx_werror_flag" ||
9683 test ! -s conftest.err
9684 } && test -s conftest.$ac_objext; then
9685 rxvt_cv_uint16_t=yes
9686else
9687 echo "$as_me: failed program was:" >&5
9688sed 's/^/| /' conftest.$ac_ext >&5
9689
9690 if test "$ac_cv_sizeof_char" -ge 2; then
9691 rxvt_cv_uint16_t="unsigned char"
9692else
9693 if test "$ac_cv_sizeof_short" -ge 2; then
9694 rxvt_cv_uint16_t="unsigned short"
9695 else
9696 if test "$ac_cv_sizeof_int" -ge 2; then
9697 rxvt_cv_uint16_t="unsigned int"
9698 else
9699 if test "$ac_cv_sizeof_long" -ge 2; then
9700 rxvt_cv_uint16_t="unsigned long"
9701 else
9702 if test "$ac_cv_sizeof_long_long" -ge 2; then
9703 rxvt_cv_uint16_t="unsigned long long"
9704 else
9705 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9706 fi
9707 fi
9708 fi
9709 fi
9710fi
9711fi
9712
9713rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9714fi
9715{ echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9716echo "${ECHO_T}$rxvt_cv_uint16_t" >&6; }
9717if test x"$rxvt_cv_uint16_t" != xyes; then
9718 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9719else
9720 if test x"unsigned" = x; then
9721 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9722 else
9723 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9724 fi
9725fi
9726
9727{ echo "$as_me:$LINENO: checking for int32_t" >&5
9728echo $ECHO_N "checking for int32_t... $ECHO_C" >&6; }
9729if test "${rxvt_cv_int32_t+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731else
9732 cat >conftest.$ac_ext <<_ACEOF
9733/* confdefs.h. */
9734_ACEOF
9735cat confdefs.h >>conftest.$ac_ext
9736cat >>conftest.$ac_ext <<_ACEOF
9737/* end confdefs.h. */
9738#include <stdint.h>
9739int
9740main ()
9741{
9742int32_t dummy;
9743 ;
9744 return 0;
9745}
9746_ACEOF
9747rm -f conftest.$ac_objext
9748if { (ac_try="$ac_compile"
9749case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752esac
9753eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_compile") 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_cxx_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest.$ac_objext; then
9764 rxvt_cv_int32_t=yes
9765else
9766 echo "$as_me: failed program was:" >&5
9767sed 's/^/| /' conftest.$ac_ext >&5
9768
9769 if test "$ac_cv_sizeof_char" -ge 4; then
9770 rxvt_cv_int32_t=" char"
9771else
9772 if test "$ac_cv_sizeof_short" -ge 4; then
9773 rxvt_cv_int32_t=" short"
9774 else
9775 if test "$ac_cv_sizeof_int" -ge 4; then
9776 rxvt_cv_int32_t=" int"
9777 else
9778 if test "$ac_cv_sizeof_long" -ge 4; then
9779 rxvt_cv_int32_t=" long"
9780 else
9781 if test "$ac_cv_sizeof_long_long" -ge 4; then
9782 rxvt_cv_int32_t=" long long"
9783 else
9784 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9785 fi
9786 fi
9787 fi
9788 fi
9789fi
9790fi
9791
9792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9793fi
9794{ echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9795echo "${ECHO_T}$rxvt_cv_int32_t" >&6; }
9796if test x"$rxvt_cv_int32_t" != xyes; then
9797 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9798else
9799 if test x"" = x; then
9800 rxvt_int32_typedef="/* typedef int int32_t; */"
9801 else
9802 rxvt_int32_typedef="/* typedef int int32_t; */"
9803 fi
9804fi
9805
9806{ echo "$as_me:$LINENO: checking for uint32_t" >&5
9807echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6; }
9808if test "${rxvt_cv_uint32_t+set}" = set; then
9809 echo $ECHO_N "(cached) $ECHO_C" >&6
9810else
9811 cat >conftest.$ac_ext <<_ACEOF
9812/* confdefs.h. */
9813_ACEOF
9814cat confdefs.h >>conftest.$ac_ext
9815cat >>conftest.$ac_ext <<_ACEOF
9816/* end confdefs.h. */
9817#include <stdint.h>
9818int
9819main ()
9820{
9821uint32_t dummy;
9822 ;
9823 return 0;
9824}
9825_ACEOF
9826rm -f conftest.$ac_objext
9827if { (ac_try="$ac_compile"
9828case "(($ac_try" in
9829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9830 *) ac_try_echo=$ac_try;;
9831esac
9832eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_compile") 2>conftest.er1
9834 ac_status=$?
9835 grep -v '^ *+' conftest.er1 >conftest.err
9836 rm -f conftest.er1
9837 cat conftest.err >&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } && {
9840 test -z "$ac_cxx_werror_flag" ||
9841 test ! -s conftest.err
9842 } && test -s conftest.$ac_objext; then
9843 rxvt_cv_uint32_t=yes
9844else
9845 echo "$as_me: failed program was:" >&5
9846sed 's/^/| /' conftest.$ac_ext >&5
9847
9848 if test "$ac_cv_sizeof_char" -ge 4; then
9849 rxvt_cv_uint32_t="unsigned char"
9850else
9851 if test "$ac_cv_sizeof_short" -ge 4; then
9852 rxvt_cv_uint32_t="unsigned short"
9853 else
9854 if test "$ac_cv_sizeof_int" -ge 4; then
9855 rxvt_cv_uint32_t="unsigned int"
9856 else
9857 if test "$ac_cv_sizeof_long" -ge 4; then
9858 rxvt_cv_uint32_t="unsigned long"
9859 else
9860 if test "$ac_cv_sizeof_long_long" -ge 4; then
9861 rxvt_cv_uint32_t="unsigned long long"
9862 else
9863 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
9864 fi
9865 fi
9866 fi
9867 fi
9868fi
9869fi
9870
9871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9872fi
9873{ echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
9874echo "${ECHO_T}$rxvt_cv_uint32_t" >&6; }
9875if test x"$rxvt_cv_uint32_t" != xyes; then
9876 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
9877else
9878 if test x"unsigned" = x; then
9879 rxvt_uint32_typedef="/* typedef int uint32_t; */"
9880 else
9881 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
9882 fi
9883fi
9884
9885if test "$ac_cv_sizeof_int_p" -eq 8; then
9886 rxvt_intp_define="#define intp_t int64_t"
9887 rxvt_u_intp_define="#define u_intp_t u_int64_t"
9888else
9889 if test "$ac_cv_sizeof_int_p" -eq 4; then
9890 rxvt_intp_define="#define intp_t int32_t"
9891 rxvt_u_intp_define="#define u_intp_t u_int32_t"
9892 else
9893 if test "$ac_cv_sizeof_int_p" -eq 2; then
9894 rxvt_intp_define="#define intp_t int16_t"
9895 rxvt_u_intp_define="#define u_intp_t u_int16_t"
9896 else
9897 rxvt_intp_define="#error set intp_t"
9898 rxvt_u_intp_define="#error set u_intp_t"
9899 fi
9900 fi
9901fi
9902
9903
9904
9905{ echo "$as_me:$LINENO: checking return type of signal handlers" >&5
9906echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
9907if test "${ac_cv_type_signal+set}" = set; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9909else
9910 cat >conftest.$ac_ext <<_ACEOF
9911/* confdefs.h. */
9912_ACEOF
9913cat confdefs.h >>conftest.$ac_ext
9914cat >>conftest.$ac_ext <<_ACEOF
9915/* end confdefs.h. */
9916#include <sys/types.h>
9917#include <signal.h>
9918
9919int
9920main ()
9921{
9922return *(signal (0, 0)) (0) == 1;
9923 ;
9924 return 0;
9925}
9926_ACEOF
9927rm -f conftest.$ac_objext
9928if { (ac_try="$ac_compile"
9929case "(($ac_try" in
9930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9931 *) ac_try_echo=$ac_try;;
9932esac
9933eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9934 (eval "$ac_compile") 2>conftest.er1
9935 ac_status=$?
9936 grep -v '^ *+' conftest.er1 >conftest.err
9937 rm -f conftest.er1
9938 cat conftest.err >&5
9939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9940 (exit $ac_status); } && {
9941 test -z "$ac_cxx_werror_flag" ||
9942 test ! -s conftest.err
9943 } && test -s conftest.$ac_objext; then
9944 ac_cv_type_signal=int
9945else
9946 echo "$as_me: failed program was:" >&5
9947sed 's/^/| /' conftest.$ac_ext >&5
9948
9949 ac_cv_type_signal=void
9950fi
9951
9952rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953fi
9954{ echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
9955echo "${ECHO_T}$ac_cv_type_signal" >&6; }
9956
9957cat >>confdefs.h <<_ACEOF
9958#define RETSIGTYPE $ac_cv_type_signal
9959_ACEOF
9960
9961
9962
9963
9964
9965
9966for ac_func in \
9967 unsetenv \
9968 setutent \
9969 on_exit \
9970
9971do
9972as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9973{ echo "$as_me:$LINENO: checking for $ac_func" >&5
9974echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9975if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9976 echo $ECHO_N "(cached) $ECHO_C" >&6
9977else
9978 cat >conftest.$ac_ext <<_ACEOF
9979/* confdefs.h. */
9980_ACEOF
9981cat confdefs.h >>conftest.$ac_ext
9982cat >>conftest.$ac_ext <<_ACEOF
9983/* end confdefs.h. */
9984/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9985 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9986#define $ac_func innocuous_$ac_func
9987
9988/* System header to define __stub macros and hopefully few prototypes,
9989 which can conflict with char $ac_func (); below.
9990 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9991 <limits.h> exists even on freestanding compilers. */
9992
9993#ifdef __STDC__
9994# include <limits.h>
9995#else
9996# include <assert.h>
9997#endif
9998
9999#undef $ac_func
10000
10001/* Override any GCC internal prototype to avoid an error.
10002 Use char because int might match the return type of a GCC
10003 builtin and then its argument prototype would still apply. */
10004#ifdef __cplusplus
10005extern "C"
10006#endif
10007char $ac_func ();
10008/* The GNU C library defines this for functions which it implements
10009 to always fail with ENOSYS. Some functions are actually named
10010 something starting with __ and the normal name is an alias. */
10011#if defined __stub_$ac_func || defined __stub___$ac_func
10012choke me
10013#endif
10014
10015int
10016main ()
10017{
10018return $ac_func ();
10019 ;
10020 return 0;
10021}
10022_ACEOF
10023rm -f conftest.$ac_objext conftest$ac_exeext
10024if { (ac_try="$ac_link"
10025case "(($ac_try" in
10026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10028esac
10029eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_link") 2>conftest.er1
10031 ac_status=$?
10032 grep -v '^ *+' conftest.er1 >conftest.err
10033 rm -f conftest.er1
10034 cat conftest.err >&5
10035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10036 (exit $ac_status); } && {
10037 test -z "$ac_cxx_werror_flag" ||
10038 test ! -s conftest.err
10039 } && test -s conftest$ac_exeext &&
10040 $as_test_x conftest$ac_exeext; then
10041 eval "$as_ac_var=yes"
10042else
10043 echo "$as_me: failed program was:" >&5
10044sed 's/^/| /' conftest.$ac_ext >&5
10045
10046 eval "$as_ac_var=no"
10047fi
10048
10049rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10050 conftest$ac_exeext conftest.$ac_ext
10051fi
10052ac_res=`eval echo '${'$as_ac_var'}'`
10053 { echo "$as_me:$LINENO: result: $ac_res" >&5 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
10054echo "${ECHO_T}$ac_res" >&6; } 6847$as_echo "$ac_res" >&6; }
10055if test `eval echo '${'$as_ac_var'}'` = yes; then 6848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
10056 cat >>confdefs.h <<_ACEOF
10057#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10058_ACEOF
10059 6849
10060fi 6850} # ac_fn_cxx_check_member
10061done 6851ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
10062
10063
10064
10065support_utmp=yes
10066support_wtmp=yes
10067support_lastlog=yes
10068
10069# Check whether --enable-utmp was given.
10070if test "${enable_utmp+set}" = set; then
10071 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
10072 support_utmp=$enableval
10073 fi
10074fi
10075
10076
10077# Check whether --enable-wtmp was given.
10078if test "${enable_wtmp+set}" = set; then
10079 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
10080 support_wtmp=$enableval
10081 fi
10082fi
10083
10084
10085# Check whether --enable-lastlog was given.
10086if test "${enable_lastlog+set}" = set; then
10087 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
10088 support_lastlog=$enableval
10089 fi
10090fi
10091
10092
10093if test x$support_utmp = xyes; then
10094
10095cat >>confdefs.h <<\_ACEOF
10096#define UTMP_SUPPORT 1
10097_ACEOF
10098
10099fi
10100if test x$support_wtmp = xyes; then
10101
10102cat >>confdefs.h <<\_ACEOF
10103#define WTMP_SUPPORT 1
10104_ACEOF
10105
10106fi
10107if test x$support_lastlog = xyes; then
10108
10109cat >>confdefs.h <<\_ACEOF
10110#define LASTLOG_SUPPORT 1
10111_ACEOF
10112
10113fi
10114
10115
10116
10117
10118for ac_func in \
10119 ttyslot \
10120 updwtmp \
10121 updwtmpx \
10122
10123do
10124as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10125{ echo "$as_me:$LINENO: checking for $ac_func" >&5
10126echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10127if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10128 echo $ECHO_N "(cached) $ECHO_C" >&6
10129else
10130 cat >conftest.$ac_ext <<_ACEOF
10131/* confdefs.h. */
10132_ACEOF
10133cat confdefs.h >>conftest.$ac_ext
10134cat >>conftest.$ac_ext <<_ACEOF
10135/* end confdefs.h. */
10136/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10138#define $ac_func innocuous_$ac_func
10139
10140/* System header to define __stub macros and hopefully few prototypes,
10141 which can conflict with char $ac_func (); below.
10142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10143 <limits.h> exists even on freestanding compilers. */
10144
10145#ifdef __STDC__
10146# include <limits.h>
10147#else
10148# include <assert.h>
10149#endif
10150
10151#undef $ac_func
10152
10153/* Override any GCC internal prototype to avoid an error.
10154 Use char because int might match the return type of a GCC
10155 builtin and then its argument prototype would still apply. */
10156#ifdef __cplusplus
10157extern "C"
10158#endif
10159char $ac_func ();
10160/* The GNU C library defines this for functions which it implements
10161 to always fail with ENOSYS. Some functions are actually named
10162 something starting with __ and the normal name is an alias. */
10163#if defined __stub_$ac_func || defined __stub___$ac_func
10164choke me
10165#endif
10166
10167int
10168main ()
10169{
10170return $ac_func ();
10171 ;
10172 return 0;
10173}
10174_ACEOF
10175rm -f conftest.$ac_objext conftest$ac_exeext
10176if { (ac_try="$ac_link"
10177case "(($ac_try" in
10178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10179 *) ac_try_echo=$ac_try;;
10180esac
10181eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10182 (eval "$ac_link") 2>conftest.er1
10183 ac_status=$?
10184 grep -v '^ *+' conftest.er1 >conftest.err
10185 rm -f conftest.er1
10186 cat conftest.err >&5
10187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10188 (exit $ac_status); } && {
10189 test -z "$ac_cxx_werror_flag" ||
10190 test ! -s conftest.err
10191 } && test -s conftest$ac_exeext &&
10192 $as_test_x conftest$ac_exeext; then
10193 eval "$as_ac_var=yes"
10194else
10195 echo "$as_me: failed program was:" >&5
10196sed 's/^/| /' conftest.$ac_ext >&5
10197
10198 eval "$as_ac_var=no"
10199fi
10200
10201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10202 conftest$ac_exeext conftest.$ac_ext
10203fi
10204ac_res=`eval echo '${'$as_ac_var'}'`
10205 { echo "$as_me:$LINENO: result: $ac_res" >&5
10206echo "${ECHO_T}$ac_res" >&6; }
10207if test `eval echo '${'$as_ac_var'}'` = yes; then
10208 cat >>confdefs.h <<_ACEOF
10209#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10210_ACEOF
10211
10212fi
10213done
10214
10215
10216
10217
10218
10219for ac_header in \
10220 utmp.h \
10221 utmpx.h \
10222 lastlog.h \
10223
10224do
10225as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10226if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10227 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10228echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10229if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10230 echo $ECHO_N "(cached) $ECHO_C" >&6
10231fi
10232ac_res=`eval echo '${'$as_ac_Header'}'`
10233 { echo "$as_me:$LINENO: result: $ac_res" >&5
10234echo "${ECHO_T}$ac_res" >&6; }
10235else
10236 # Is the header compilable?
10237{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
10238echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10239cat >conftest.$ac_ext <<_ACEOF
10240/* confdefs.h. */
10241_ACEOF
10242cat confdefs.h >>conftest.$ac_ext
10243cat >>conftest.$ac_ext <<_ACEOF
10244/* end confdefs.h. */
10245$ac_includes_default
10246#include <$ac_header>
10247_ACEOF
10248rm -f conftest.$ac_objext
10249if { (ac_try="$ac_compile"
10250case "(($ac_try" in
10251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10252 *) ac_try_echo=$ac_try;;
10253esac
10254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10255 (eval "$ac_compile") 2>conftest.er1
10256 ac_status=$?
10257 grep -v '^ *+' conftest.er1 >conftest.err
10258 rm -f conftest.er1
10259 cat conftest.err >&5
10260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10261 (exit $ac_status); } && {
10262 test -z "$ac_cxx_werror_flag" ||
10263 test ! -s conftest.err
10264 } && test -s conftest.$ac_objext; then
10265 ac_header_compiler=yes
10266else
10267 echo "$as_me: failed program was:" >&5
10268sed 's/^/| /' conftest.$ac_ext >&5
10269
10270 ac_header_compiler=no
10271fi
10272
10273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10274{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10275echo "${ECHO_T}$ac_header_compiler" >&6; }
10276
10277# Is the header present?
10278{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
10279echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10280cat >conftest.$ac_ext <<_ACEOF
10281/* confdefs.h. */
10282_ACEOF
10283cat confdefs.h >>conftest.$ac_ext
10284cat >>conftest.$ac_ext <<_ACEOF
10285/* end confdefs.h. */
10286#include <$ac_header>
10287_ACEOF
10288if { (ac_try="$ac_cpp conftest.$ac_ext"
10289case "(($ac_try" in
10290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10291 *) ac_try_echo=$ac_try;;
10292esac
10293eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10295 ac_status=$?
10296 grep -v '^ *+' conftest.er1 >conftest.err
10297 rm -f conftest.er1
10298 cat conftest.err >&5
10299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10300 (exit $ac_status); } >/dev/null && {
10301 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10302 test ! -s conftest.err
10303 }; then
10304 ac_header_preproc=yes
10305else
10306 echo "$as_me: failed program was:" >&5
10307sed 's/^/| /' conftest.$ac_ext >&5
10308
10309 ac_header_preproc=no
10310fi
10311
10312rm -f conftest.err conftest.$ac_ext
10313{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10314echo "${ECHO_T}$ac_header_preproc" >&6; }
10315
10316# So? What about this header?
10317case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10318 yes:no: )
10319 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10320echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10322echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10323 ac_header_preproc=yes
10324 ;;
10325 no:yes:* )
10326 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10327echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10328 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10329echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10330 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10331echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10332 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10333echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10334 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10335echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10336 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10337echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10338
10339 ;;
10340esac
10341{ echo "$as_me:$LINENO: checking for $ac_header" >&5
10342echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10343if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10344 echo $ECHO_N "(cached) $ECHO_C" >&6
10345else
10346 eval "$as_ac_Header=\$ac_header_preproc"
10347fi
10348ac_res=`eval echo '${'$as_ac_Header'}'`
10349 { echo "$as_me:$LINENO: result: $ac_res" >&5
10350echo "${ECHO_T}$ac_res" >&6; }
10351
10352fi
10353if test `eval echo '${'$as_ac_Header'}'` = yes; then
10354 cat >>confdefs.h <<_ACEOF
10355#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10356_ACEOF
10357
10358fi
10359
10360done
10361
10362
10363
10364if test "${ac_cv_header_utmp_h+set}" = set; then
10365 { echo "$as_me:$LINENO: checking for utmp.h" >&5
10366echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; }
10367if test "${ac_cv_header_utmp_h+set}" = set; then
10368 echo $ECHO_N "(cached) $ECHO_C" >&6
10369fi
10370{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10371echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; }
10372else
10373 # Is the header compilable?
10374{ echo "$as_me:$LINENO: checking utmp.h usability" >&5
10375echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6; }
10376cat >conftest.$ac_ext <<_ACEOF
10377/* confdefs.h. */
10378_ACEOF
10379cat confdefs.h >>conftest.$ac_ext
10380cat >>conftest.$ac_ext <<_ACEOF
10381/* end confdefs.h. */
10382$ac_includes_default
10383#include <utmp.h>
10384_ACEOF
10385rm -f conftest.$ac_objext
10386if { (ac_try="$ac_compile"
10387case "(($ac_try" in
10388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10389 *) ac_try_echo=$ac_try;;
10390esac
10391eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_compile") 2>conftest.er1
10393 ac_status=$?
10394 grep -v '^ *+' conftest.er1 >conftest.err
10395 rm -f conftest.er1
10396 cat conftest.err >&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_cxx_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest.$ac_objext; then
10402 ac_header_compiler=yes
10403else
10404 echo "$as_me: failed program was:" >&5
10405sed 's/^/| /' conftest.$ac_ext >&5
10406
10407 ac_header_compiler=no
10408fi
10409
10410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10411{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10412echo "${ECHO_T}$ac_header_compiler" >&6; }
10413
10414# Is the header present?
10415{ echo "$as_me:$LINENO: checking utmp.h presence" >&5
10416echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6; }
10417cat >conftest.$ac_ext <<_ACEOF
10418/* confdefs.h. */
10419_ACEOF
10420cat confdefs.h >>conftest.$ac_ext
10421cat >>conftest.$ac_ext <<_ACEOF
10422/* end confdefs.h. */
10423#include <utmp.h>
10424_ACEOF
10425if { (ac_try="$ac_cpp conftest.$ac_ext"
10426case "(($ac_try" in
10427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10428 *) ac_try_echo=$ac_try;;
10429esac
10430eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10432 ac_status=$?
10433 grep -v '^ *+' conftest.er1 >conftest.err
10434 rm -f conftest.er1
10435 cat conftest.err >&5
10436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10437 (exit $ac_status); } >/dev/null && {
10438 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10439 test ! -s conftest.err
10440 }; then
10441 ac_header_preproc=yes
10442else
10443 echo "$as_me: failed program was:" >&5
10444sed 's/^/| /' conftest.$ac_ext >&5
10445
10446 ac_header_preproc=no
10447fi
10448
10449rm -f conftest.err conftest.$ac_ext
10450{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10451echo "${ECHO_T}$ac_header_preproc" >&6; }
10452
10453# So? What about this header?
10454case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10455 yes:no: )
10456 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5
10457echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10458 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10459echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10460 ac_header_preproc=yes
10461 ;;
10462 no:yes:* )
10463 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10464echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10465 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10466echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10467 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10468echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10469 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10470echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10471 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10472echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10473 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10474echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10475
10476 ;;
10477esac
10478{ echo "$as_me:$LINENO: checking for utmp.h" >&5
10479echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6; }
10480if test "${ac_cv_header_utmp_h+set}" = set; then
10481 echo $ECHO_N "(cached) $ECHO_C" >&6
10482else
10483 ac_cv_header_utmp_h=$ac_header_preproc
10484fi
10485{ echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10486echo "${ECHO_T}$ac_cv_header_utmp_h" >&6; }
10487
10488fi
10489if test $ac_cv_header_utmp_h = yes; then
10490 { echo "$as_me:$LINENO: checking for struct utmp" >&5
10491echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6; }
10492if test "${struct_utmp+set}" = set; then
10493 echo $ECHO_N "(cached) $ECHO_C" >&6
10494else
10495 cat >conftest.$ac_ext <<_ACEOF
10496/* confdefs.h. */
10497_ACEOF
10498cat confdefs.h >>conftest.$ac_ext
10499cat >>conftest.$ac_ext <<_ACEOF
10500/* end confdefs.h. */
10501#include <sys/types.h> 6852#include <sys/types.h>
10502#include <utmp.h> 6853#include <utmp.h>
10503int
10504main ()
10505{
10506struct utmp ut;
10507 ;
10508 return 0;
10509}
10510_ACEOF
10511rm -f conftest.$ac_objext
10512if { (ac_try="$ac_compile"
10513case "(($ac_try" in
10514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10515 *) ac_try_echo=$ac_try;;
10516esac
10517eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10518 (eval "$ac_compile") 2>conftest.er1
10519 ac_status=$?
10520 grep -v '^ *+' conftest.er1 >conftest.err
10521 rm -f conftest.er1
10522 cat conftest.err >&5
10523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524 (exit $ac_status); } && {
10525 test -z "$ac_cxx_werror_flag" ||
10526 test ! -s conftest.err
10527 } && test -s conftest.$ac_objext; then
10528 struct_utmp=yes
10529else
10530 echo "$as_me: failed program was:" >&5
10531sed 's/^/| /' conftest.$ac_ext >&5
10532 6854
10533 struct_utmp=no 6855"
10534fi 6856if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
10535 6857
10536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6858$as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
10537fi
10538{ echo "$as_me:$LINENO: result: $struct_utmp" >&5
10539echo "${ECHO_T}$struct_utmp" >&6; }
10540if test x$struct_utmp = xyes; then
10541 6859
10542cat >>confdefs.h <<\_ACEOF
10543#define HAVE_STRUCT_UTMP 1
10544_ACEOF
10545
10546fi 6860fi
10547 6861
10548 6862
10549{ echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5 6863ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
10550echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6; }
10551if test "${struct_utmp_host+set}" = set; then
10552 echo $ECHO_N "(cached) $ECHO_C" >&6
10553else
10554 cat >conftest.$ac_ext <<_ACEOF
10555/* confdefs.h. */
10556_ACEOF
10557cat confdefs.h >>conftest.$ac_ext
10558cat >>conftest.$ac_ext <<_ACEOF
10559/* end confdefs.h. */
10560#include <sys/types.h> 6864#include <sys/types.h>
10561#include <utmp.h> 6865#include <utmp.h>
10562int
10563main ()
10564{
10565struct utmp ut; ut.ut_host;
10566 ;
10567 return 0;
10568}
10569_ACEOF
10570rm -f conftest.$ac_objext
10571if { (ac_try="$ac_compile"
10572case "(($ac_try" in
10573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10574 *) ac_try_echo=$ac_try;;
10575esac
10576eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10577 (eval "$ac_compile") 2>conftest.er1
10578 ac_status=$?
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } && {
10584 test -z "$ac_cxx_werror_flag" ||
10585 test ! -s conftest.err
10586 } && test -s conftest.$ac_objext; then
10587 struct_utmp_host=yes
10588else
10589 echo "$as_me: failed program was:" >&5
10590sed 's/^/| /' conftest.$ac_ext >&5
10591 6866
10592 struct_utmp_host=no 6867"
10593fi 6868if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
10594 6869
10595rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6870$as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
10596fi
10597{ echo "$as_me:$LINENO: result: $struct_utmp_host" >&5
10598echo "${ECHO_T}$struct_utmp_host" >&6; }
10599if test x$struct_utmp_host = xyes; then
10600 6871
6872fi
6873
6874
6875fi
6876
6877done
6878
6879
6880for ac_header in utmpx.h
6881do :
6882 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
6883if test "x$ac_cv_header_utmpx_h" = xyes; then :
10601cat >>confdefs.h <<\_ACEOF 6884 cat >>confdefs.h <<_ACEOF
10602#define HAVE_UTMP_HOST 1 6885#define HAVE_UTMPX_H 1
10603_ACEOF 6886_ACEOF
10604 6887 ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
10605fi
10606
10607{ echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5
10608echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6; }
10609if test "${struct_utmp_pid+set}" = set; then
10610 echo $ECHO_N "(cached) $ECHO_C" >&6
10611else
10612 cat >conftest.$ac_ext <<_ACEOF
10613/* confdefs.h. */
10614_ACEOF
10615cat confdefs.h >>conftest.$ac_ext
10616cat >>conftest.$ac_ext <<_ACEOF
10617/* end confdefs.h. */
10618#include <sys/types.h>
10619#include <utmp.h>
10620int
10621main ()
10622{
10623struct utmp ut; ut.ut_pid;
10624 ;
10625 return 0;
10626}
10627_ACEOF
10628rm -f conftest.$ac_objext
10629if { (ac_try="$ac_compile"
10630case "(($ac_try" in
10631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10632 *) ac_try_echo=$ac_try;;
10633esac
10634eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10635 (eval "$ac_compile") 2>conftest.er1
10636 ac_status=$?
10637 grep -v '^ *+' conftest.er1 >conftest.err
10638 rm -f conftest.er1
10639 cat conftest.err >&5
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); } && {
10642 test -z "$ac_cxx_werror_flag" ||
10643 test ! -s conftest.err
10644 } && test -s conftest.$ac_objext; then
10645 struct_utmp_pid=yes
10646else
10647 echo "$as_me: failed program was:" >&5
10648sed 's/^/| /' conftest.$ac_ext >&5
10649
10650 struct_utmp_pid=no
10651fi
10652
10653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10654fi
10655{ echo "$as_me:$LINENO: result: $struct_utmp_pid" >&5
10656echo "${ECHO_T}$struct_utmp_pid" >&6; }
10657if test x$struct_utmp_pid = xyes; then
10658
10659cat >>confdefs.h <<\_ACEOF
10660#define HAVE_UTMP_PID 1
10661_ACEOF
10662
10663fi
10664
10665fi
10666
10667
10668
10669if test "${ac_cv_header_utmpx_h+set}" = set; then
10670 { echo "$as_me:$LINENO: checking for utmpx.h" >&5
10671echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; }
10672if test "${ac_cv_header_utmpx_h+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674fi
10675{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10676echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; }
10677else
10678 # Is the header compilable?
10679{ echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10680echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6; }
10681cat >conftest.$ac_ext <<_ACEOF
10682/* confdefs.h. */
10683_ACEOF
10684cat confdefs.h >>conftest.$ac_ext
10685cat >>conftest.$ac_ext <<_ACEOF
10686/* end confdefs.h. */
10687$ac_includes_default
10688#include <utmpx.h>
10689_ACEOF
10690rm -f conftest.$ac_objext
10691if { (ac_try="$ac_compile"
10692case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10695esac
10696eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_compile") 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && {
10704 test -z "$ac_cxx_werror_flag" ||
10705 test ! -s conftest.err
10706 } && test -s conftest.$ac_objext; then
10707 ac_header_compiler=yes
10708else
10709 echo "$as_me: failed program was:" >&5
10710sed 's/^/| /' conftest.$ac_ext >&5
10711
10712 ac_header_compiler=no
10713fi
10714
10715rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10716{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10717echo "${ECHO_T}$ac_header_compiler" >&6; }
10718
10719# Is the header present?
10720{ echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10721echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6; }
10722cat >conftest.$ac_ext <<_ACEOF
10723/* confdefs.h. */
10724_ACEOF
10725cat confdefs.h >>conftest.$ac_ext
10726cat >>conftest.$ac_ext <<_ACEOF
10727/* end confdefs.h. */
10728#include <utmpx.h>
10729_ACEOF
10730if { (ac_try="$ac_cpp conftest.$ac_ext"
10731case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734esac
10735eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10737 ac_status=$?
10738 grep -v '^ *+' conftest.er1 >conftest.err
10739 rm -f conftest.er1
10740 cat conftest.err >&5
10741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10742 (exit $ac_status); } >/dev/null && {
10743 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
10744 test ! -s conftest.err
10745 }; then
10746 ac_header_preproc=yes
10747else
10748 echo "$as_me: failed program was:" >&5
10749sed 's/^/| /' conftest.$ac_ext >&5
10750
10751 ac_header_preproc=no
10752fi
10753
10754rm -f conftest.err conftest.$ac_ext
10755{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10756echo "${ECHO_T}$ac_header_preproc" >&6; }
10757
10758# So? What about this header?
10759case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10760 yes:no: )
10761 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10762echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10763 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10764echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10765 ac_header_preproc=yes
10766 ;;
10767 no:yes:* )
10768 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10769echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10770 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10771echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10772 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10773echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10774 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10775echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10776 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10777echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10778 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10779echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10780
10781 ;;
10782esac
10783{ echo "$as_me:$LINENO: checking for utmpx.h" >&5
10784echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6; }
10785if test "${ac_cv_header_utmpx_h+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10787else
10788 ac_cv_header_utmpx_h=$ac_header_preproc
10789fi
10790{ echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10791echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6; }
10792
10793fi
10794if test $ac_cv_header_utmpx_h = yes; then
10795 { echo "$as_me:$LINENO: checking for struct utmpx" >&5
10796echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6; }
10797if test "${struct_utmpx+set}" = set; then
10798 echo $ECHO_N "(cached) $ECHO_C" >&6
10799else
10800 cat >conftest.$ac_ext <<_ACEOF
10801/* confdefs.h. */
10802_ACEOF
10803cat confdefs.h >>conftest.$ac_ext
10804cat >>conftest.$ac_ext <<_ACEOF
10805/* end confdefs.h. */
10806#include <sys/types.h> 6888#include <sys/types.h>
10807#include <utmpx.h> 6889#include <utmpx.h>
10808int
10809main ()
10810{
10811struct utmpx ut;
10812 ;
10813 return 0;
10814}
10815_ACEOF
10816rm -f conftest.$ac_objext
10817if { (ac_try="$ac_compile"
10818case "(($ac_try" in
10819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10820 *) ac_try_echo=$ac_try;;
10821esac
10822eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10823 (eval "$ac_compile") 2>conftest.er1
10824 ac_status=$?
10825 grep -v '^ *+' conftest.er1 >conftest.err
10826 rm -f conftest.er1
10827 cat conftest.err >&5
10828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10829 (exit $ac_status); } && {
10830 test -z "$ac_cxx_werror_flag" ||
10831 test ! -s conftest.err
10832 } && test -s conftest.$ac_objext; then
10833 struct_utmpx=yes
10834else
10835 echo "$as_me: failed program was:" >&5
10836sed 's/^/| /' conftest.$ac_ext >&5
10837 6890
10838 struct_utmpx=no 6891"
10839fi
10840
10841rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10842fi
10843{ echo "$as_me:$LINENO: result: $struct_utmpx" >&5
10844echo "${ECHO_T}$struct_utmpx" >&6; }
10845if test x$struct_utmpx = xyes; then 6892if test "x$ac_cv_type_struct_utmpx" = xyes; then :
10846 6893
10847cat >>confdefs.h <<\_ACEOF 6894cat >>confdefs.h <<_ACEOF
10848#define HAVE_STRUCT_UTMPX 1 6895#define HAVE_STRUCT_UTMPX 1
10849_ACEOF 6896_ACEOF
10850 6897
10851fi
10852 6898
6899fi
10853 6900
10854{ echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 6901
10855echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6; } 6902ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
10856if test "${struct_utmpx_host+set}" = set; then
10857 echo $ECHO_N "(cached) $ECHO_C" >&6
10858else
10859 cat >conftest.$ac_ext <<_ACEOF
10860/* confdefs.h. */
10861_ACEOF
10862cat confdefs.h >>conftest.$ac_ext
10863cat >>conftest.$ac_ext <<_ACEOF
10864/* end confdefs.h. */
10865#include <sys/types.h> 6903#include <sys/types.h>
10866#include <utmpx.h> 6904#include <utmpx.h>
10867int
10868main ()
10869{
10870struct utmpx utx; utx.ut_host;
10871 ;
10872 return 0;
10873}
10874_ACEOF
10875rm -f conftest.$ac_objext
10876if { (ac_try="$ac_compile"
10877case "(($ac_try" in
10878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10879 *) ac_try_echo=$ac_try;;
10880esac
10881eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10882 (eval "$ac_compile") 2>conftest.er1
10883 ac_status=$?
10884 grep -v '^ *+' conftest.er1 >conftest.err
10885 rm -f conftest.er1
10886 cat conftest.err >&5
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); } && {
10889 test -z "$ac_cxx_werror_flag" ||
10890 test ! -s conftest.err
10891 } && test -s conftest.$ac_objext; then
10892 struct_utmpx_host=yes
10893else
10894 echo "$as_me: failed program was:" >&5
10895sed 's/^/| /' conftest.$ac_ext >&5
10896 6905
10897 struct_utmpx_host=no 6906"
10898fi
10899
10900rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10901fi
10902{ echo "$as_me:$LINENO: result: $struct_utmpx_host" >&5
10903echo "${ECHO_T}$struct_utmpx_host" >&6; }
10904if test x$struct_utmpx_host = xyes; then 6907if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
10905 6908
10906cat >>confdefs.h <<\_ACEOF 6909$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
10907#define HAVE_UTMPX_HOST 1
10908_ACEOF
10909 6910
10910fi 6911fi
10911 6912
10912{ echo "$as_me:$LINENO: checking for session in utmpx struct" >&5 6913
10913echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6; } 6914ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_session" "ac_cv_member_struct_utmpx_ut_session" "
10914if test "${struct_utmpx_session+set}" = set; then
10915 echo $ECHO_N "(cached) $ECHO_C" >&6
10916else
10917 cat >conftest.$ac_ext <<_ACEOF
10918/* confdefs.h. */
10919_ACEOF
10920cat confdefs.h >>conftest.$ac_ext
10921cat >>conftest.$ac_ext <<_ACEOF
10922/* end confdefs.h. */
10923#include <sys/types.h> 6915#include <sys/types.h>
10924#include <utmpx.h> 6916#include <utmpx.h>
10925int
10926main ()
10927{
10928struct utmpx utx; utx.ut_session;
10929 ;
10930 return 0;
10931}
10932_ACEOF
10933rm -f conftest.$ac_objext
10934if { (ac_try="$ac_compile"
10935case "(($ac_try" in
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10937 *) ac_try_echo=$ac_try;;
10938esac
10939eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10940 (eval "$ac_compile") 2>conftest.er1
10941 ac_status=$?
10942 grep -v '^ *+' conftest.er1 >conftest.err
10943 rm -f conftest.er1
10944 cat conftest.err >&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } && {
10947 test -z "$ac_cxx_werror_flag" ||
10948 test ! -s conftest.err
10949 } && test -s conftest.$ac_objext; then
10950 struct_utmpx_session=yes
10951else
10952 echo "$as_me: failed program was:" >&5
10953sed 's/^/| /' conftest.$ac_ext >&5
10954 6917
10955 struct_utmpx_session=no 6918"
10956fi
10957
10958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10959fi
10960{ echo "$as_me:$LINENO: result: $struct_utmpx_session" >&5
10961echo "${ECHO_T}$struct_utmpx_session" >&6; }
10962if test x$struct_utmpx_session = xyes; then 6919if test "x$ac_cv_member_struct_utmpx_ut_session" = xyes; then :
10963 6920
10964cat >>confdefs.h <<\_ACEOF 6921$as_echo "#define HAVE_UTMPX_SESSION 1" >>confdefs.h
10965#define HAVE_UTMPX_SESSION 1
10966_ACEOF
10967 6922
10968fi 6923fi
10969 6924
10970fi
10971 6925
6926fi
10972 6927
10973{ echo "$as_me:$LINENO: checking for struct lastlog" >&5 6928done
10974echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6; } 6929
10975if test "${struct_lastlog+set}" = set; then 6930ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
10976 echo $ECHO_N "(cached) $ECHO_C" >&6
10977else
10978 cat >conftest.$ac_ext <<_ACEOF
10979/* confdefs.h. */
10980_ACEOF
10981cat confdefs.h >>conftest.$ac_ext
10982cat >>conftest.$ac_ext <<_ACEOF
10983/* end confdefs.h. */
10984#include <sys/types.h> 6931#include <sys/types.h>
10985#include <utmp.h> 6932#include <utmp.h>
10986#ifdef HAVE_LASTLOG_H 6933#ifdef HAVE_LASTLOG_H
10987#include <lastlog.h> 6934#include <lastlog.h>
10988#endif 6935#endif
10989 6936
10990int 6937"
10991main ()
10992{
10993struct lastlog ll;
10994 ;
10995 return 0;
10996}
10997_ACEOF
10998rm -f conftest.$ac_objext
10999if { (ac_try="$ac_compile"
11000case "(($ac_try" in
11001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11002 *) ac_try_echo=$ac_try;;
11003esac
11004eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11005 (eval "$ac_compile") 2>conftest.er1
11006 ac_status=$?
11007 grep -v '^ *+' conftest.er1 >conftest.err
11008 rm -f conftest.er1
11009 cat conftest.err >&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); } && {
11012 test -z "$ac_cxx_werror_flag" ||
11013 test ! -s conftest.err
11014 } && test -s conftest.$ac_objext; then
11015 struct_lastlog=yes
11016else
11017 echo "$as_me: failed program was:" >&5
11018sed 's/^/| /' conftest.$ac_ext >&5
11019
11020 struct_lastlog=no
11021fi
11022
11023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11024fi
11025{ echo "$as_me:$LINENO: result: $struct_lastlog" >&5
11026echo "${ECHO_T}$struct_lastlog" >&6; }
11027if test x$struct_lastlog = xyes; then 6938if test "x$ac_cv_type_struct_lastlog" = xyes; then :
11028 6939
11029cat >>confdefs.h <<\_ACEOF 6940cat >>confdefs.h <<_ACEOF
11030#define HAVE_STRUCT_LASTLOG 1 6941#define HAVE_STRUCT_LASTLOG 1
11031_ACEOF 6942_ACEOF
11032 6943
11033fi
11034 6944
11035{ echo "$as_me:$LINENO: checking for struct lastlogx" >&5 6945fi
11036echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6; } 6946
11037if test "${struct_lastlogx+set}" = set; then 6947
11038 echo $ECHO_N "(cached) $ECHO_C" >&6 6948ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" "
11039else
11040 cat >conftest.$ac_ext <<_ACEOF
11041/* confdefs.h. */
11042_ACEOF
11043cat confdefs.h >>conftest.$ac_ext
11044cat >>conftest.$ac_ext <<_ACEOF
11045/* end confdefs.h. */
11046#include <sys/types.h> 6949#include <sys/types.h>
11047#include <utmpx.h> 6950#include <utmpx.h>
11048#ifdef HAVE_LASTLOG_H 6951#ifdef HAVE_LASTLOG_H
11049#include <lastlog.h> 6952#include <lastlog.h>
11050#endif 6953#endif
11051 6954
11052int 6955"
11053main ()
11054{
11055struct lastlogx ll;
11056 ;
11057 return 0;
11058}
11059_ACEOF
11060rm -f conftest.$ac_objext
11061if { (ac_try="$ac_compile"
11062case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065esac
11066eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_compile") 2>conftest.er1
11068 ac_status=$?
11069 grep -v '^ *+' conftest.er1 >conftest.err
11070 rm -f conftest.er1
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && {
11074 test -z "$ac_cxx_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest.$ac_objext; then
11077 struct_lastlogx=yes
11078else
11079 echo "$as_me: failed program was:" >&5
11080sed 's/^/| /' conftest.$ac_ext >&5
11081
11082 struct_lastlogx=no
11083fi
11084
11085rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11086fi
11087{ echo "$as_me:$LINENO: result: $struct_lastlogx" >&5
11088echo "${ECHO_T}$struct_lastlogx" >&6; }
11089if test x$struct_lastlogx = xyes; then 6956if test "x$ac_cv_type_struct_lastlogx" = xyes; then :
11090 6957
11091cat >>confdefs.h <<\_ACEOF 6958cat >>confdefs.h <<_ACEOF
11092#define HAVE_STRUCT_LASTLOGX 1 6959#define HAVE_STRUCT_LASTLOGX 1
11093_ACEOF 6960_ACEOF
11094 6961
11095fi
11096 6962
6963fi
11097 6964
11098{ echo "$as_me:$LINENO: checking where utmp is located" >&5 6965
11099echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6; } 6966
11100if test "${path_utmp+set}" = set; then 6967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
11101 echo $ECHO_N "(cached) $ECHO_C" >&6 6968$as_echo_n "checking for a fallback location of utmp... " >&6; }
6969if ${pt_cv_path_utmp+:} false; then :
6970 $as_echo_n "(cached) " >&6
11102else 6971else
6972
11103 if test "$cross_compiling" = yes; then 6973if test "$cross_compiling" != yes; then
11104 { echo "$as_me:$LINENO: WARNING: Define UTMP_FILE in config.h manually" >&5
11105echo "$as_me: WARNING: Define UTMP_FILE in config.h manually" >&2;}
11106else
11107 cat >conftest.$ac_ext <<_ACEOF
11108/* confdefs.h. */
11109_ACEOF
11110cat confdefs.h >>conftest.$ac_ext
11111cat >>conftest.$ac_ext <<_ACEOF
11112/* end confdefs.h. */
11113#include <stdio.h>
11114#include <stdlib.h>
11115#include <sys/types.h>
11116#include <utmp.h>
11117#include <errno.h>
11118main()
11119{
11120 char **u, *utmplist[] = {
11121 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL }; 6974 for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
11122 FILE *a, *f=fopen("conftestval", "w"); 6975 if test -f "$file"; then
11123 if (!f) exit(1); 6976 pt_cv_path_utmp=$file
11124#ifdef UTMP_FILE 6977 break
11125 fprintf(f, "%s\n", UTMP_FILE); 6978 fi
11126 exit(0); 6979 done
11127#endif
11128#ifdef _PATH_UTMP
11129 fprintf(f, "%s\n", _PATH_UTMP);
11130 exit(0);
11131#endif
11132 for (u = utmplist; *u; u++) {
11133 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11134 fprintf(f, "%s\n", *u);
11135 exit(0);
11136 }
11137 }
11138 exit(0);
11139}
11140_ACEOF
11141rm -f conftest$ac_exeext
11142if { (ac_try="$ac_link"
11143case "(($ac_try" in
11144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11145 *) ac_try_echo=$ac_try;;
11146esac
11147eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11148 (eval "$ac_link") 2>&5
11149 ac_status=$?
11150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11152 { (case "(($ac_try" in
11153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11154 *) ac_try_echo=$ac_try;;
11155esac
11156eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11157 (eval "$ac_try") 2>&5
11158 ac_status=$?
11159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11160 (exit $ac_status); }; }; then
11161 path_utmp=`cat conftestval`
11162else
11163 echo "$as_me: program exited with status $ac_status" >&5
11164echo "$as_me: failed program was:" >&5
11165sed 's/^/| /' conftest.$ac_ext >&5
11166
11167( exit $ac_status )
11168path_utmp=
11169fi 6980fi
11170rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11171fi 6981fi
11172
11173
11174fi
11175{ echo "$as_me:$LINENO: result: $path_utmp" >&5 6982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
11176echo "${ECHO_T}$path_utmp" >&6; } 6983$as_echo "$pt_cv_path_utmp" >&6; }
11177if test x$path_utmp != x; then 6984if test x$pt_cv_path_utmp != x; then
11178 6985
11179cat >>confdefs.h <<_ACEOF 6986cat >>confdefs.h <<_ACEOF
11180#define UTMP_FILE "$path_utmp" 6987#define PT_UTMP_FILE "$pt_cv_path_utmp"
11181_ACEOF 6988_ACEOF
11182 6989
6990elif test "$cross_compiling" = yes; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
6992$as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
11183fi 6993fi
11184 6994
11185 6995
11186{ echo "$as_me:$LINENO: checking where utmpx is located" >&5 6996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
11187echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6; } 6997$as_echo_n "checking for a fallback location of wtmp... " >&6; }
11188if test "${path_utmpx+set}" = set; then 6998if ${pt_cv_path_wtmp+:} false; then :
11189 echo $ECHO_N "(cached) $ECHO_C" >&6 6999 $as_echo_n "(cached) " >&6
11190else 7000else
7001
11191 if test "$cross_compiling" = yes; then 7002if test "$cross_compiling" != yes; then
11192 { echo "$as_me:$LINENO: WARNING: Define UTMPX_FILE in config.h manually" >&5 7003 for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
11193echo "$as_me: WARNING: Define UTMPX_FILE in config.h manually" >&2;} 7004 if test -f "$file"; then
11194else 7005 pt_cv_path_wtmp=$file
11195 cat >conftest.$ac_ext <<_ACEOF 7006 break
11196/* confdefs.h. */ 7007 fi
11197_ACEOF 7008 done
11198cat confdefs.h >>conftest.$ac_ext
11199cat >>conftest.$ac_ext <<_ACEOF
11200/* end confdefs.h. */
11201#include <stdio.h>
11202#include <stdlib.h>
11203#include <sys/types.h>
11204#include <utmpx.h>
11205#include <errno.h>
11206#include <sys/stat.h>
11207#ifdef HAVE_STRING_H
11208#include <string.h>
11209#endif
11210main()
11211{
11212 char **u, *p, *utmplist[] = {
11213#ifdef UTMPX_FILE
11214 UTMPX_FILE,
11215#endif
11216#ifdef _PATH_UTMPX
11217 _PATH_UTMPX,
11218#endif
11219 "/var/adm/utmpx", "/etc/utmpx", NULL };
11220 FILE *a, *f=fopen("conftestval", "w");
11221 struct stat statu, statux;
11222 if (!f) exit(1);
11223 for (u = utmplist; *u; u++) {
11224 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11225 if (stat(*u, &statux) < 0)
11226 continue;
11227 p = strdup(*u);
11228 p[strlen(p) - 1] = '\0';
11229 if (stat(p, &statu) >= 0
11230 && (statu.st_mtime - statux.st_mtime > 86400))
11231 continue;
11232 fprintf(f, "%s\n", *u);
11233 exit(0);
11234 }
11235 }
11236 exit(0);
11237}
11238_ACEOF
11239rm -f conftest$ac_exeext
11240if { (ac_try="$ac_link"
11241case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244esac
11245eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11246 (eval "$ac_link") 2>&5
11247 ac_status=$?
11248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11249 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11250 { (case "(($ac_try" in
11251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11252 *) ac_try_echo=$ac_try;;
11253esac
11254eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11255 (eval "$ac_try") 2>&5
11256 ac_status=$?
11257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11258 (exit $ac_status); }; }; then
11259 path_utmpx=`cat conftestval`
11260else
11261 echo "$as_me: program exited with status $ac_status" >&5
11262echo "$as_me: failed program was:" >&5
11263sed 's/^/| /' conftest.$ac_ext >&5
11264
11265( exit $ac_status )
11266path_utmpx=
11267fi 7009fi
11268rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11269fi 7010fi
11270
11271
11272fi
11273{ echo "$as_me:$LINENO: result: $path_utmpx" >&5 7011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
11274echo "${ECHO_T}$path_utmpx" >&6; } 7012$as_echo "$pt_cv_path_wtmp" >&6; }
11275if test x$path_utmpx != x; then 7013if test x$pt_cv_path_wtmp != x; then
11276 7014
11277cat >>confdefs.h <<_ACEOF 7015cat >>confdefs.h <<_ACEOF
11278#define UTMPX_FILE "$path_utmpx" 7016#define PT_WTMP_FILE "$pt_cv_path_wtmp"
11279_ACEOF 7017_ACEOF
11280 7018
7019elif test "$cross_compiling" = yes; then
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
7021$as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
11281fi 7022fi
11282 7023
11283 7024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
11284{ echo "$as_me:$LINENO: checking where wtmp is located" >&5 7025$as_echo_n "checking for a fallback location of wtmpx... " >&6; }
11285echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6; } 7026if ${pt_cv_path_wtmpx+:} false; then :
11286if test "${path_wtmp+set}" = set; then 7027 $as_echo_n "(cached) " >&6
11287 echo $ECHO_N "(cached) $ECHO_C" >&6
11288else 7028else
7029
11289 if test "$cross_compiling" = yes; then 7030if test "$cross_compiling" != yes; then
11290 { echo "$as_me:$LINENO: WARNING: Define WTMP_FILE in config.h manually" >&5 7031 for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
11291echo "$as_me: WARNING: Define WTMP_FILE in config.h manually" >&2;} 7032 if test -f "$file"; then
11292else 7033 pt_cv_path_wtmpx=$file
11293 cat >conftest.$ac_ext <<_ACEOF 7034 break
11294/* confdefs.h. */ 7035 fi
11295_ACEOF 7036 done
11296cat confdefs.h >>conftest.$ac_ext
11297cat >>conftest.$ac_ext <<_ACEOF
11298/* end confdefs.h. */
11299#include <stdio.h>
11300#include <stdlib.h>
11301#include <sys/types.h>
11302#ifdef HAVE_UTMP_H
11303#include <utmp.h>
11304#endif
11305#include <errno.h>
11306main()
11307{
11308 char **w, *wtmplist[] = {
11309 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11310 FILE *a, *f=fopen("conftestval", "w");
11311 if (!f) exit(1);
11312#ifdef WTMP_FILE
11313 fprintf(f, "%s\n", WTMP_FILE);
11314 exit(0);
11315#endif
11316#ifdef _PATH_WTMP
11317 fprintf(f, "%s\n", _PATH_WTMP);
11318 exit(0);
11319#endif
11320 for (w = wtmplist; *w; w++) {
11321 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11322 fprintf(f, "%s\n", *w);
11323 exit(0);
11324 }
11325 }
11326 exit(0);
11327}
11328_ACEOF
11329rm -f conftest$ac_exeext
11330if { (ac_try="$ac_link"
11331case "(($ac_try" in
11332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11333 *) ac_try_echo=$ac_try;;
11334esac
11335eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11336 (eval "$ac_link") 2>&5
11337 ac_status=$?
11338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11340 { (case "(($ac_try" in
11341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11343esac
11344eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_try") 2>&5
11346 ac_status=$?
11347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11348 (exit $ac_status); }; }; then
11349 path_wtmp=`cat conftestval`
11350else
11351 echo "$as_me: program exited with status $ac_status" >&5
11352echo "$as_me: failed program was:" >&5
11353sed 's/^/| /' conftest.$ac_ext >&5
11354
11355( exit $ac_status )
11356path_wtmp=
11357fi 7037fi
11358rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11359fi 7038fi
11360
11361
11362fi
11363{ echo "$as_me:$LINENO: result: $path_wtmp" >&5 7039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
11364echo "${ECHO_T}$path_wtmp" >&6; } 7040$as_echo "$pt_cv_path_wtmpx" >&6; }
11365if test x$path_wtmp != x; then 7041if test x$pt_cv_path_wtmpx != x; then
11366 7042
11367cat >>confdefs.h <<_ACEOF 7043cat >>confdefs.h <<_ACEOF
11368#define WTMP_FILE "$path_wtmp" 7044#define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
11369_ACEOF 7045_ACEOF
11370 7046
7047elif test "$cross_compiling" = yes; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
7049$as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
11371fi 7050fi
11372 7051
11373{ echo "$as_me:$LINENO: checking where wtmpx is located" >&5 7052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
11374echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6; } 7053$as_echo_n "checking for a fallback location of lastlog... " >&6; }
11375if test "${path_wtmpx+set}" = set; then 7054if ${pt_cv_path_lastlog+:} false; then :
11376 echo $ECHO_N "(cached) $ECHO_C" >&6 7055 $as_echo_n "(cached) " >&6
11377else 7056else
7057
11378 if test "$cross_compiling" = yes; then 7058if test "$cross_compiling" != yes; then
11379 { echo "$as_me:$LINENO: WARNING: Define WTMPX_FILE in config.h manually" >&5 7059 for file in "/var/log/lastlog"; do
11380echo "$as_me: WARNING: Define WTMPX_FILE in config.h manually" >&2;} 7060 if test -f "$file"; then
11381else 7061 pt_cv_path_lastlog=$file
11382 cat >conftest.$ac_ext <<_ACEOF 7062 break
11383/* confdefs.h. */ 7063 fi
11384_ACEOF 7064 done
11385cat confdefs.h >>conftest.$ac_ext
11386cat >>conftest.$ac_ext <<_ACEOF
11387/* end confdefs.h. */
11388#include <stdio.h>
11389#include <stdlib.h>
11390#ifdef HAVE_UTMPX_H
11391#include <utmpx.h>
11392#endif
11393#include <errno.h>
11394main()
11395{
11396 char **w, *wtmplist[] = {
11397 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11398 FILE *a, *f=fopen("conftestval", "w");
11399 if (!f) exit(1);
11400#ifdef WTMPX_FILE
11401 fprintf(f, "%s\n", WTMPX_FILE);
11402 exit(0);
11403#endif
11404#ifdef _PATH_WTMPX
11405 fprintf(f, "%s\n", _PATH_WTMPX);
11406 exit(0);
11407#endif
11408 for (w = wtmplist; *w; w++) {
11409 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11410 fprintf(f, "%s\n", *w);
11411 exit(0);
11412 }
11413 }
11414 exit(0);
11415}
11416_ACEOF
11417rm -f conftest$ac_exeext
11418if { (ac_try="$ac_link"
11419case "(($ac_try" in
11420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11421 *) ac_try_echo=$ac_try;;
11422esac
11423eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11424 (eval "$ac_link") 2>&5
11425 ac_status=$?
11426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11427 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11428 { (case "(($ac_try" in
11429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11430 *) ac_try_echo=$ac_try;;
11431esac
11432eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11433 (eval "$ac_try") 2>&5
11434 ac_status=$?
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); }; }; then
11437 path_wtmpx=`cat conftestval`
11438else
11439 echo "$as_me: program exited with status $ac_status" >&5
11440echo "$as_me: failed program was:" >&5
11441sed 's/^/| /' conftest.$ac_ext >&5
11442
11443( exit $ac_status )
11444path_wtmpx=
11445fi 7065fi
11446rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11447fi 7066fi
11448 7067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
11449 7068$as_echo "$pt_cv_path_lastlog" >&6; }
11450fi
11451{ echo "$as_me:$LINENO: result: $path_wtmpx" >&5
11452echo "${ECHO_T}$path_wtmpx" >&6; }
11453if test x$path_wtmpx != x; then 7069if test x$pt_cv_path_lastlog != x; then
11454 7070
11455cat >>confdefs.h <<_ACEOF 7071cat >>confdefs.h <<_ACEOF
11456#define WTMPX_FILE "$path_wtmpx" 7072#define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
11457_ACEOF 7073_ACEOF
11458 7074
7075elif test "$cross_compiling" = yes; then
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
7077$as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
11459fi 7078fi
11460 7079
11461{ echo "$as_me:$LINENO: checking where lastlog is located" >&5 7080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
11462echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6; } 7081$as_echo_n "checking for a fallback location of lastlogx... " >&6; }
11463if test "${path_lastlog+set}" = set; then 7082if ${pt_cv_path_lastlogx+:} false; then :
11464 echo $ECHO_N "(cached) $ECHO_C" >&6 7083 $as_echo_n "(cached) " >&6
11465else 7084else
7085
11466 if test "$cross_compiling" = yes; then 7086if test "$cross_compiling" != yes; then
11467 { echo "$as_me:$LINENO: WARNING: Define LASTLOG_FILE in config.h manually" >&5 7087 for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
11468echo "$as_me: WARNING: Define LASTLOG_FILE in config.h manually" >&2;} 7088 if test -f "$file"; then
11469else 7089 pt_cv_path_lastlogx=$file
11470 cat >conftest.$ac_ext <<_ACEOF 7090 break
11471/* confdefs.h. */ 7091 fi
11472_ACEOF 7092 done
11473cat confdefs.h >>conftest.$ac_ext
11474cat >>conftest.$ac_ext <<_ACEOF
11475/* end confdefs.h. */
11476#include <stdio.h>
11477#include <stdlib.h>
11478#include <sys/types.h>
11479#ifdef HAVE_UTMPX_H
11480#include <utmpx.h>
11481#elif defined(HAVE_UTMP_H)
11482#include <utmp.h>
11483#endif
11484#ifdef HAVE_LASTLOG_H
11485#include <lastlog.h>
11486#endif
11487#include <errno.h>
11488main()
11489{
11490 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11491 FILE *a, *f=fopen("conftestval", "w");
11492 if (!f) exit(1);
11493#ifdef LASTLOG_FILE
11494 fprintf(f, "%s\n", LASTLOG_FILE);
11495 exit(0);
11496#endif
11497#ifdef _PATH_LASTLOG
11498 fprintf(f, "%s\n", _PATH_LASTLOG);
11499 exit(0);
11500#endif
11501 for (w = lastloglist; *w; w++) {
11502 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11503 fprintf(f, "%s\n", *w);
11504 exit(0);
11505 }
11506 }
11507 exit(0);
11508}
11509_ACEOF
11510rm -f conftest$ac_exeext
11511if { (ac_try="$ac_link"
11512case "(($ac_try" in
11513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11514 *) ac_try_echo=$ac_try;;
11515esac
11516eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11517 (eval "$ac_link") 2>&5
11518 ac_status=$?
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11521 { (case "(($ac_try" in
11522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11523 *) ac_try_echo=$ac_try;;
11524esac
11525eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11526 (eval "$ac_try") 2>&5
11527 ac_status=$?
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); }; }; then
11530 path_lastlog=`cat conftestval`
11531else
11532 echo "$as_me: program exited with status $ac_status" >&5
11533echo "$as_me: failed program was:" >&5
11534sed 's/^/| /' conftest.$ac_ext >&5
11535
11536( exit $ac_status )
11537path_lastlog=
11538fi 7093fi
11539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11540fi 7094fi
11541
11542
11543fi
11544{ echo "$as_me:$LINENO: result: $path_lastlog" >&5 7095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
11545echo "${ECHO_T}$path_lastlog" >&6; } 7096$as_echo "$pt_cv_path_lastlogx" >&6; }
11546if test x$path_lastlog != x; then 7097if test x$pt_cv_path_lastlogx != x; then
11547 7098
11548cat >>confdefs.h <<_ACEOF 7099cat >>confdefs.h <<_ACEOF
11549#define LASTLOG_FILE "$path_lastlog" 7100#define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
11550_ACEOF 7101_ACEOF
11551 7102
11552 if test -d "$path_lastlog"; then
11553
11554cat >>confdefs.h <<\_ACEOF
11555#define LASTLOG_IS_DIR 1
11556_ACEOF
11557
11558 fi
11559fi
11560
11561{ echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11562echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6; }
11563if test "${path_lastlogx+set}" = set; then
11564 echo $ECHO_N "(cached) $ECHO_C" >&6
11565else
11566 if test "$cross_compiling" = yes; then 7103elif test "$cross_compiling" = yes; then
11567 { echo "$as_me:$LINENO: WARNING: Define LASTLOGX_FILE in config.h manually" >&5 7104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
11568echo "$as_me: WARNING: Define LASTLOGX_FILE in config.h manually" >&2;} 7105$as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
11569else
11570 cat >conftest.$ac_ext <<_ACEOF
11571/* confdefs.h. */
11572_ACEOF
11573cat confdefs.h >>conftest.$ac_ext
11574cat >>conftest.$ac_ext <<_ACEOF
11575/* end confdefs.h. */
11576#include <stdio.h>
11577#include <stdlib.h>
11578#ifdef HAVE_UTMPX_H
11579#include <utmpx.h>
11580#endif
11581#include <errno.h>
11582main()
11583{
11584 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11585 FILE *a, *f=fopen("conftestval", "w");
11586 if (!f) exit(1);
11587#ifdef LASTLOGX_FILE
11588 fprintf(f, "%s\n", LASTLOGX_FILE);
11589 exit(0);
11590#endif
11591#ifdef _PATH_LASTLOGX
11592 fprintf(f, "%s\n", _PATH_LASTLOGX);
11593 exit(0);
11594#endif
11595 for (w = wtmplist; *w; w++) {
11596 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11597 fprintf(f, "%s\n", *w);
11598 exit(0);
11599 }
11600 }
11601 exit(0);
11602}
11603_ACEOF
11604rm -f conftest$ac_exeext
11605if { (ac_try="$ac_link"
11606case "(($ac_try" in
11607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11608 *) ac_try_echo=$ac_try;;
11609esac
11610eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611 (eval "$ac_link") 2>&5
11612 ac_status=$?
11613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11614 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11615 { (case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11618esac
11619eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_try") 2>&5
11621 ac_status=$?
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); }; }; then
11624 path_lastlogx=`cat conftestval`
11625else
11626 echo "$as_me: program exited with status $ac_status" >&5
11627echo "$as_me: failed program was:" >&5
11628sed 's/^/| /' conftest.$ac_ext >&5
11629
11630( exit $ac_status )
11631path_lastlogx=
11632fi 7106fi
11633rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11634fi
11635 7107
11636 7108
11637fi
11638{ echo "$as_me:$LINENO: result: $path_lastlogx" >&5
11639echo "${ECHO_T}$path_lastlogx" >&6; }
11640if test x$path_lastlogx != x; then
11641 7109
11642cat >>confdefs.h <<_ACEOF
11643#define LASTLOGX_FILE "$path_lastlogx"
11644_ACEOF
11645 7110
11646fi
11647
11648
11649
11650{ echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11651echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6; }
11652if test "${rxvt_cv_path_ttytab+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11654else
11655 for ttys_file in /etc/ttys /etc/ttytab;
11656do
11657 if test -f "$ttys_file" ; then
11658 rxvt_cv_path_ttytab=$ttys_file
11659 break
11660 fi
11661done
11662
11663fi
11664{ echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11665echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6; }
11666if test x$rxvt_cv_path_ttytab != x; then
11667
11668cat >>confdefs.h <<_ACEOF
11669#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11670_ACEOF
11671
11672fi
11673
11674
11675ac_save_LIBS=$LIBS 7111save_LIBS=$LIBS
11676ac_save_CFLAGS=$CFLAGS 7112save_CFLAGS=$CFLAGS
11677CFLAGS="$CFLAGS $X_CFLAGS" 7113CFLAGS="$CFLAGS $X_CFLAGS"
11678LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 7114LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7115if test x$support_xim = xyes; then
11679{ echo "$as_me:$LINENO: checking for working Xlocale" >&5 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
11680echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6; } 7117$as_echo_n "checking for working Xlocale... " >&6; }
11681if test "${rxvt_cv_func_xlocale+set}" = set; then 7118if ${rxvt_cv_func_xlocale+:} false; then :
11682 echo $ECHO_N "(cached) $ECHO_C" >&6 7119 $as_echo_n "(cached) " >&6
11683else 7120else
11684 if test "$cross_compiling" = yes; then 7121 if test "$cross_compiling" = yes; then :
11685 : 7122 :
11686else 7123else
11687 cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h. */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext 7124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */ 7125/* end confdefs.h. */
7126
11693#include <X11/Xlib.h> 7127 #include <X11/Xlib.h>
11694#include <stdlib.h> 7128 #include <stdlib.h>
11695main() { 7129 int main() {
11696char *p; 7130 char *p;
11697if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) 7131 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11698exit (XSupportsLocale() ? 0 : 1); 7132 exit (XSupportsLocale() ? 0 : 1);
11699else 7133 else
11700exit (1);} 7134 exit (1);
7135 }
7136
11701_ACEOF 7137_ACEOF
11702rm -f conftest$ac_exeext 7138if ac_fn_cxx_try_run "$LINENO"; then :
11703if { (ac_try="$ac_link"
11704case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707esac
11708eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_link") 2>&5
11710 ac_status=$?
11711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11712 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11713 { (case "(($ac_try" in
11714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11715 *) ac_try_echo=$ac_try;;
11716esac
11717eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11718 (eval "$ac_try") 2>&5
11719 ac_status=$?
11720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11721 (exit $ac_status); }; }; then
11722 rxvt_cv_func_xlocale=yes 7139 rxvt_cv_func_xlocale=yes
11723else 7140else
11724 echo "$as_me: program exited with status $ac_status" >&5
11725echo "$as_me: failed program was:" >&5
11726sed 's/^/| /' conftest.$ac_ext >&5
11727
11728( exit $ac_status )
11729rxvt_cv_func_xlocale=no 7141 rxvt_cv_func_xlocale=no
11730fi 7142fi
11731rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7143rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7144 conftest.$ac_objext conftest.beam conftest.$ac_ext
11732fi 7145fi
11733 7146
11734
11735fi 7147fi
11736{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5 7148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
11737echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6; } 7149$as_echo "$rxvt_cv_func_xlocale" >&6; }
11738if test x$support_xim = xyes; then
11739 if test x$rxvt_cv_func_xlocale = xyes; then 7150 if test x$rxvt_cv_func_xlocale = xyes; then
11740 7151
11741cat >>confdefs.h <<\_ACEOF 7152$as_echo "#define USE_XIM 1" >>confdefs.h
11742#define USE_XIM 1
11743_ACEOF
11744 7153
11745 fi 7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
11746fi 7155$as_echo_n "checking for broken XIM callback... " >&6; }
11747 7156if ${rxvt_cv_broken_ximcb+:} false; then :
11748{ echo "$as_me:$LINENO: checking for working X setlocale" >&5 7157 $as_echo_n "(cached) " >&6
11749echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6; }
11750if test "${rxvt_cv_func_xsetlocale+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11752else 7158else
11753 cat >conftest.$ac_ext <<_ACEOF 7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11754/* confdefs.h. */ 7160/* end confdefs.h. */
7161
7162 #include <X11/Xlib.h>
7163
7164 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
7165
7166 void f() {
7167 XIMCallback cb;
7168 cb.callback = im_destroy_cb;
7169 }
7170
11755_ACEOF 7171_ACEOF
7172if ac_fn_cxx_try_compile "$LINENO"; then :
7173 rxvt_cv_broken_ximcb=yes
7174else
7175 rxvt_cv_broken_ximcb=no
7176fi
7177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178fi
7179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
7180$as_echo "$rxvt_cv_broken_ximcb" >&6; }
7181
7182 if test x$rxvt_cv_broken_ximcb = xyes; then
7183
7184$as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
7185
7186 fi
7187 fi
7188fi
7189
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
7191$as_echo_n "checking for working X setlocale... " >&6; }
7192if ${rxvt_cv_func_xsetlocale+:} false; then :
7193 $as_echo_n "(cached) " >&6
7194else
11756cat confdefs.h >>conftest.$ac_ext 7195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11757cat >>conftest.$ac_ext <<_ACEOF
11758/* end confdefs.h. */ 7196/* end confdefs.h. */
11759#define X_LOCALE 1 7197#define X_LOCALE 1
11760#include <X11/Xlocale.h> 7198#include <X11/Xlocale.h>
11761int 7199int
11762main () 7200main ()
11764setlocale(LC_CTYPE, ""); 7202setlocale(LC_CTYPE, "");
11765 ; 7203 ;
11766 return 0; 7204 return 0;
11767} 7205}
11768_ACEOF 7206_ACEOF
11769rm -f conftest.$ac_objext conftest$ac_exeext 7207if ac_fn_cxx_try_link "$LINENO"; then :
11770if { (ac_try="$ac_link"
11771case "(($ac_try" in
11772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11773 *) ac_try_echo=$ac_try;;
11774esac
11775eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11776 (eval "$ac_link") 2>conftest.er1
11777 ac_status=$?
11778 grep -v '^ *+' conftest.er1 >conftest.err
11779 rm -f conftest.er1
11780 cat conftest.err >&5
11781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11782 (exit $ac_status); } && {
11783 test -z "$ac_cxx_werror_flag" ||
11784 test ! -s conftest.err
11785 } && test -s conftest$ac_exeext &&
11786 $as_test_x conftest$ac_exeext; then
11787 rxvt_cv_func_xsetlocale=yes 7208 rxvt_cv_func_xsetlocale=yes
11788else 7209else
11789 echo "$as_me: failed program was:" >&5
11790sed 's/^/| /' conftest.$ac_ext >&5
11791
11792 rxvt_cv_func_xsetlocale=no 7210 rxvt_cv_func_xsetlocale=no
11793fi 7211fi
11794
11795rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7212rm -f core conftest.err conftest.$ac_objext \
11796 conftest$ac_exeext conftest.$ac_ext 7213 conftest$ac_exeext conftest.$ac_ext
11797fi 7214fi
11798{ echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 7215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
11799echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6; } 7216$as_echo "$rxvt_cv_func_xsetlocale" >&6; }
11800if test x$rxvt_cv_func_xsetlocale = xyes; then 7217if test x$rxvt_cv_func_xsetlocale = xyes; then
11801 7218
11802cat >>confdefs.h <<\_ACEOF 7219$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
11803#define HAVE_XSETLOCALE 1
11804_ACEOF
11805 7220
11806fi 7221fi
11807LIBS=$ac_save_LIBS 7222LIBS=$save_LIBS
11808CFLAGS=$ac_save_CFLAGS 7223CFLAGS=$save_CFLAGS
11809 7224
11810{ echo "$as_me:$LINENO: checking for working plain setlocale" >&5 7225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working plain setlocale" >&5
11811echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6; } 7226$as_echo_n "checking for working plain setlocale... " >&6; }
11812if test "${rxvt_cv_func_setlocale+set}" = set; then 7227if ${rxvt_cv_func_setlocale+:} false; then :
11813 echo $ECHO_N "(cached) $ECHO_C" >&6 7228 $as_echo_n "(cached) " >&6
11814else 7229else
11815 cat >conftest.$ac_ext <<_ACEOF
11816/* confdefs.h. */
11817_ACEOF
11818cat confdefs.h >>conftest.$ac_ext 7230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11819cat >>conftest.$ac_ext <<_ACEOF
11820/* end confdefs.h. */ 7231/* end confdefs.h. */
11821#include <clocale> 7232#include <clocale>
11822int 7233int
11823main () 7234main ()
11824{ 7235{
11825setlocale(LC_CTYPE, ""); 7236setlocale(LC_CTYPE, "");
11826 ; 7237 ;
11827 return 0; 7238 return 0;
11828} 7239}
11829_ACEOF 7240_ACEOF
11830rm -f conftest.$ac_objext conftest$ac_exeext 7241if ac_fn_cxx_try_link "$LINENO"; then :
11831if { (ac_try="$ac_link"
11832case "(($ac_try" in
11833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11834 *) ac_try_echo=$ac_try;;
11835esac
11836eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11837 (eval "$ac_link") 2>conftest.er1
11838 ac_status=$?
11839 grep -v '^ *+' conftest.er1 >conftest.err
11840 rm -f conftest.er1
11841 cat conftest.err >&5
11842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11843 (exit $ac_status); } && {
11844 test -z "$ac_cxx_werror_flag" ||
11845 test ! -s conftest.err
11846 } && test -s conftest$ac_exeext &&
11847 $as_test_x conftest$ac_exeext; then
11848 rxvt_cv_func_setlocale=yes 7242 rxvt_cv_func_setlocale=yes
11849else 7243else
11850 echo "$as_me: failed program was:" >&5
11851sed 's/^/| /' conftest.$ac_ext >&5
11852
11853 rxvt_cv_func_setlocale=no 7244 rxvt_cv_func_setlocale=no
11854fi 7245fi
11855
11856rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7246rm -f core conftest.err conftest.$ac_objext \
11857 conftest$ac_exeext conftest.$ac_ext 7247 conftest$ac_exeext conftest.$ac_ext
11858fi 7248fi
11859{ echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5 7249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_setlocale" >&5
11860echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6; } 7250$as_echo "$rxvt_cv_func_setlocale" >&6; }
11861if test x$rxvt_cv_func_setlocale = xyes; then 7251if test x$rxvt_cv_func_setlocale = xyes; then
11862 7252
11863cat >>confdefs.h <<\_ACEOF 7253$as_echo "#define HAVE_SETLOCALE 1" >>confdefs.h
11864#define HAVE_SETLOCALE 1
11865_ACEOF
11866 7254
11867fi 7255fi
11868 7256
11869{ echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
11870echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6; } 7258$as_echo_n "checking for working nl_langinfo... " >&6; }
11871if test "${rxvt_cv_func_nl_langinfo+set}" = set; then 7259if ${rxvt_cv_func_nl_langinfo+:} false; then :
11872 echo $ECHO_N "(cached) $ECHO_C" >&6 7260 $as_echo_n "(cached) " >&6
11873else 7261else
11874 cat >conftest.$ac_ext <<_ACEOF
11875/* confdefs.h. */
11876_ACEOF
11877cat confdefs.h >>conftest.$ac_ext 7262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11878cat >>conftest.$ac_ext <<_ACEOF
11879/* end confdefs.h. */ 7263/* end confdefs.h. */
11880#include <langinfo.h> 7264#include <langinfo.h>
11881int 7265int
11882main () 7266main ()
11883{ 7267{
11884nl_langinfo(CODESET); 7268nl_langinfo(CODESET);
11885 ; 7269 ;
11886 return 0; 7270 return 0;
11887} 7271}
11888_ACEOF 7272_ACEOF
11889rm -f conftest.$ac_objext conftest$ac_exeext 7273if ac_fn_cxx_try_link "$LINENO"; then :
11890if { (ac_try="$ac_link"
11891case "(($ac_try" in
11892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11893 *) ac_try_echo=$ac_try;;
11894esac
11895eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11896 (eval "$ac_link") 2>conftest.er1
11897 ac_status=$?
11898 grep -v '^ *+' conftest.er1 >conftest.err
11899 rm -f conftest.er1
11900 cat conftest.err >&5
11901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11902 (exit $ac_status); } && {
11903 test -z "$ac_cxx_werror_flag" ||
11904 test ! -s conftest.err
11905 } && test -s conftest$ac_exeext &&
11906 $as_test_x conftest$ac_exeext; then
11907 rxvt_cv_func_nl_langinfo=yes 7274 rxvt_cv_func_nl_langinfo=yes
11908else 7275else
11909 echo "$as_me: failed program was:" >&5
11910sed 's/^/| /' conftest.$ac_ext >&5
11911
11912 rxvt_cv_func_nl_langinfo=no 7276 rxvt_cv_func_nl_langinfo=no
11913fi 7277fi
11914
11915rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7278rm -f core conftest.err conftest.$ac_objext \
11916 conftest$ac_exeext conftest.$ac_ext 7279 conftest$ac_exeext conftest.$ac_ext
11917fi 7280fi
11918{ echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5 7281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
11919echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6; } 7282$as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
11920if test x$rxvt_cv_func_nl_langinfo = xyes; then 7283if test x$rxvt_cv_func_nl_langinfo = xyes; then
11921 7284
11922cat >>confdefs.h <<\_ACEOF 7285$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
11923#define HAVE_NL_LANGINFO 1
11924_ACEOF
11925 7286
11926fi 7287fi
11927 7288
11928 7289
11929{ echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 7290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
11930echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6; } 7291$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
11931if test "${can_pass_fds+set}" = set; then 7292if ${pt_cv_can_pass_fds+:} false; then :
11932 echo $ECHO_N "(cached) $ECHO_C" >&6 7293 $as_echo_n "(cached) " >&6
11933else 7294else
11934 cat >conftest.$ac_ext <<_ACEOF
11935/* confdefs.h. */
11936_ACEOF
11937cat confdefs.h >>conftest.$ac_ext 7295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11938cat >>conftest.$ac_ext <<_ACEOF
11939/* end confdefs.h. */ 7296/* end confdefs.h. */
11940 7297
11941#include <cstddef> // broken bsds (is that redundant?) need this 7298#include <cstddef> // broken bsds (is that redundant?) need this
11942#include <sys/types.h> 7299#include <sys/types.h>
11943#include <sys/socket.h> 7300#include <sys/socket.h>
11973 7330
11974 ; 7331 ;
11975 return 0; 7332 return 0;
11976} 7333}
11977_ACEOF 7334_ACEOF
11978rm -f conftest.$ac_objext conftest$ac_exeext 7335if ac_fn_cxx_try_link "$LINENO"; then :
11979if { (ac_try="$ac_link"
11980case "(($ac_try" in
11981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11982 *) ac_try_echo=$ac_try;;
11983esac
11984eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11985 (eval "$ac_link") 2>conftest.er1
11986 ac_status=$?
11987 grep -v '^ *+' conftest.er1 >conftest.err
11988 rm -f conftest.er1
11989 cat conftest.err >&5
11990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11991 (exit $ac_status); } && {
11992 test -z "$ac_cxx_werror_flag" ||
11993 test ! -s conftest.err
11994 } && test -s conftest$ac_exeext &&
11995 $as_test_x conftest$ac_exeext; then
11996 can_pass_fds=yes 7336 pt_cv_can_pass_fds=yes
11997else 7337else
11998 echo "$as_me: failed program was:" >&5
11999sed 's/^/| /' conftest.$ac_ext >&5
12000
12001 can_pass_fds=no 7338 pt_cv_can_pass_fds=no
12002fi 7339fi
12003
12004rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7340rm -f core conftest.err conftest.$ac_objext \
12005 conftest$ac_exeext conftest.$ac_ext 7341 conftest$ac_exeext conftest.$ac_ext
12006fi 7342fi
12007{ echo "$as_me:$LINENO: result: $can_pass_fds" >&5 7343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
12008echo "${ECHO_T}$can_pass_fds" >&6; } 7344$as_echo "$pt_cv_can_pass_fds" >&6; }
12009if test x$can_pass_fds = xyes; then 7345if test x$pt_cv_can_pass_fds = xyes; then
12010 7346
12011cat >>confdefs.h <<\_ACEOF 7347$as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
12012#define HAVE_UNIX_FDPASS 1
12013_ACEOF
12014 7348
12015else 7349else
12016 { { echo "$as_me:$LINENO: error: libptytty requires unix-compliant filehandle passing ability" >&5
12017echo "$as_me: error: libptytty requires unix-compliant filehandle passing ability" >&2;} 7350 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
12018 { (exit 1); exit 1; }; }
12019fi 7351fi
12020
12021
12022{ echo "$as_me:$LINENO: checking for broken XIM callback" >&5
12023echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6; }
12024if test "${rxvt_broken_ximcb+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026else
12027 cat >conftest.$ac_ext <<_ACEOF
12028
12029#include <X11/Xlib.h>
12030
12031void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
12032
12033void f() {
12034 XIMCallback cb;
12035 cb.callback = im_destroy_cb;
12036}
12037
12038_ACEOF
12039rm -f conftest.$ac_objext
12040if { (ac_try="$ac_compile"
12041case "(($ac_try" in
12042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12043 *) ac_try_echo=$ac_try;;
12044esac
12045eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12046 (eval "$ac_compile") 2>conftest.er1
12047 ac_status=$?
12048 grep -v '^ *+' conftest.er1 >conftest.err
12049 rm -f conftest.er1
12050 cat conftest.err >&5
12051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12052 (exit $ac_status); } && {
12053 test -z "$ac_cxx_werror_flag" ||
12054 test ! -s conftest.err
12055 } && test -s conftest.$ac_objext; then
12056 rxvt_broken_ximcb=yes
12057else
12058 echo "$as_me: failed program was:" >&5
12059sed 's/^/| /' conftest.$ac_ext >&5
12060
12061 rxvt_broken_ximcb=no
12062fi
12063
12064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12065fi
12066{ echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
12067echo "${ECHO_T}$rxvt_broken_ximcb" >&6; }
12068
12069if test x$rxvt_broken_ximcb = xyes; then
12070
12071cat >>confdefs.h <<\_ACEOF
12072#define XIMCB_PROTO_BROKEN 1
12073_ACEOF
12074
12075fi
12076
12077
12078
12079
12080 7352
12081 7353
12082 7354
12083for ac_header in \ 7355for ac_header in \
12084 pty.h \ 7356 pty.h \
12085 util.h \ 7357 util.h \
12086 libutil.h \ 7358 libutil.h \
12087 sys/ioctl.h \ 7359 sys/ioctl.h \
12088 sys/stropts.h \ 7360 sys/stropts.h \
7361 stropts.h \
12089 7362
12090do 7363do :
12091as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7364 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12092if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7365ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12093 { echo "$as_me:$LINENO: checking for $ac_header" >&5 7366if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12094echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12095if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12096 echo $ECHO_N "(cached) $ECHO_C" >&6
12097fi
12098ac_res=`eval echo '${'$as_ac_Header'}'`
12099 { echo "$as_me:$LINENO: result: $ac_res" >&5
12100echo "${ECHO_T}$ac_res" >&6; }
12101else
12102 # Is the header compilable?
12103{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12104echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12105cat >conftest.$ac_ext <<_ACEOF
12106/* confdefs.h. */
12107_ACEOF
12108cat confdefs.h >>conftest.$ac_ext
12109cat >>conftest.$ac_ext <<_ACEOF
12110/* end confdefs.h. */
12111$ac_includes_default
12112#include <$ac_header>
12113_ACEOF
12114rm -f conftest.$ac_objext
12115if { (ac_try="$ac_compile"
12116case "(($ac_try" in
12117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12118 *) ac_try_echo=$ac_try;;
12119esac
12120eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12121 (eval "$ac_compile") 2>conftest.er1
12122 ac_status=$?
12123 grep -v '^ *+' conftest.er1 >conftest.err
12124 rm -f conftest.er1
12125 cat conftest.err >&5
12126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12127 (exit $ac_status); } && {
12128 test -z "$ac_cxx_werror_flag" ||
12129 test ! -s conftest.err
12130 } && test -s conftest.$ac_objext; then
12131 ac_header_compiler=yes
12132else
12133 echo "$as_me: failed program was:" >&5
12134sed 's/^/| /' conftest.$ac_ext >&5
12135
12136 ac_header_compiler=no
12137fi
12138
12139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12140{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12141echo "${ECHO_T}$ac_header_compiler" >&6; }
12142
12143# Is the header present?
12144{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12145echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12146cat >conftest.$ac_ext <<_ACEOF
12147/* confdefs.h. */
12148_ACEOF
12149cat confdefs.h >>conftest.$ac_ext
12150cat >>conftest.$ac_ext <<_ACEOF
12151/* end confdefs.h. */
12152#include <$ac_header>
12153_ACEOF
12154if { (ac_try="$ac_cpp conftest.$ac_ext"
12155case "(($ac_try" in
12156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12157 *) ac_try_echo=$ac_try;;
12158esac
12159eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12160 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12161 ac_status=$?
12162 grep -v '^ *+' conftest.er1 >conftest.err
12163 rm -f conftest.er1
12164 cat conftest.err >&5
12165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12166 (exit $ac_status); } >/dev/null && {
12167 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12168 test ! -s conftest.err
12169 }; then
12170 ac_header_preproc=yes
12171else
12172 echo "$as_me: failed program was:" >&5
12173sed 's/^/| /' conftest.$ac_ext >&5
12174
12175 ac_header_preproc=no
12176fi
12177
12178rm -f conftest.err conftest.$ac_ext
12179{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12180echo "${ECHO_T}$ac_header_preproc" >&6; }
12181
12182# So? What about this header?
12183case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12184 yes:no: )
12185 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12186echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12188echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12189 ac_header_preproc=yes
12190 ;;
12191 no:yes:* )
12192 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12193echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12194 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12195echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12196 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12197echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12198 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12199echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12200 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12201echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12202 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12203echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12204
12205 ;;
12206esac
12207{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12208echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12209if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12210 echo $ECHO_N "(cached) $ECHO_C" >&6
12211else
12212 eval "$as_ac_Header=\$ac_header_preproc"
12213fi
12214ac_res=`eval echo '${'$as_ac_Header'}'`
12215 { echo "$as_me:$LINENO: result: $ac_res" >&5
12216echo "${ECHO_T}$ac_res" >&6; }
12217
12218fi
12219if test `eval echo '${'$as_ac_Header'}'` = yes; then
12220 cat >>confdefs.h <<_ACEOF 7367 cat >>confdefs.h <<_ACEOF
12221#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7368#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12222_ACEOF 7369_ACEOF
12223 7370
12224fi 7371fi
12225 7372
12226done 7373done
12227
12228
12229
12230
12231
12232
12233
12234
12235
12236 7374
12237 7375
12238for ac_func in \ 7376for ac_func in \
12239 revoke \ 7377 revoke \
12240 _getpty \ 7378 _getpty \
12244 setuid \ 7382 setuid \
12245 seteuid \ 7383 seteuid \
12246 setreuid \ 7384 setreuid \
12247 setresuid \ 7385 setresuid \
12248 7386
12249do 7387do :
12250as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7388 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12251{ echo "$as_me:$LINENO: checking for $ac_func" >&5 7389ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12252echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } 7390if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12253if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12254 echo $ECHO_N "(cached) $ECHO_C" >&6
12255else
12256 cat >conftest.$ac_ext <<_ACEOF
12257/* confdefs.h. */
12258_ACEOF
12259cat confdefs.h >>conftest.$ac_ext
12260cat >>conftest.$ac_ext <<_ACEOF
12261/* end confdefs.h. */
12262/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12263 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12264#define $ac_func innocuous_$ac_func
12265
12266/* System header to define __stub macros and hopefully few prototypes,
12267 which can conflict with char $ac_func (); below.
12268 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12269 <limits.h> exists even on freestanding compilers. */
12270
12271#ifdef __STDC__
12272# include <limits.h>
12273#else
12274# include <assert.h>
12275#endif
12276
12277#undef $ac_func
12278
12279/* Override any GCC internal prototype to avoid an error.
12280 Use char because int might match the return type of a GCC
12281 builtin and then its argument prototype would still apply. */
12282#ifdef __cplusplus
12283extern "C"
12284#endif
12285char $ac_func ();
12286/* The GNU C library defines this for functions which it implements
12287 to always fail with ENOSYS. Some functions are actually named
12288 something starting with __ and the normal name is an alias. */
12289#if defined __stub_$ac_func || defined __stub___$ac_func
12290choke me
12291#endif
12292
12293int
12294main ()
12295{
12296return $ac_func ();
12297 ;
12298 return 0;
12299}
12300_ACEOF
12301rm -f conftest.$ac_objext conftest$ac_exeext
12302if { (ac_try="$ac_link"
12303case "(($ac_try" in
12304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12305 *) ac_try_echo=$ac_try;;
12306esac
12307eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12308 (eval "$ac_link") 2>conftest.er1
12309 ac_status=$?
12310 grep -v '^ *+' conftest.er1 >conftest.err
12311 rm -f conftest.er1
12312 cat conftest.err >&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 (exit $ac_status); } && {
12315 test -z "$ac_cxx_werror_flag" ||
12316 test ! -s conftest.err
12317 } && test -s conftest$ac_exeext &&
12318 $as_test_x conftest$ac_exeext; then
12319 eval "$as_ac_var=yes"
12320else
12321 echo "$as_me: failed program was:" >&5
12322sed 's/^/| /' conftest.$ac_ext >&5
12323
12324 eval "$as_ac_var=no"
12325fi
12326
12327rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12328 conftest$ac_exeext conftest.$ac_ext
12329fi
12330ac_res=`eval echo '${'$as_ac_var'}'`
12331 { echo "$as_me:$LINENO: result: $ac_res" >&5
12332echo "${ECHO_T}$ac_res" >&6; }
12333if test `eval echo '${'$as_ac_var'}'` = yes; then
12334 cat >>confdefs.h <<_ACEOF 7391 cat >>confdefs.h <<_ACEOF
12335#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 7392#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12336_ACEOF 7393_ACEOF
12337 7394
12338fi 7395fi
12339done 7396done
12340 7397
12341 7398
12342have_clone=no
12343
12344{ echo "$as_me:$LINENO: checking for /dev/ptym/clone" >&5
12345echo $ECHO_N "checking for /dev/ptym/clone... $ECHO_C" >&6; }
12346if test -e /dev/ptym/clone; then
12347 { echo "$as_me:$LINENO: result: yes" >&5
12348echo "${ECHO_T}yes" >&6; }
12349
12350cat >>confdefs.h <<\_ACEOF
12351#define HAVE_DEV_CLONE 1
12352_ACEOF
12353
12354
12355cat >>confdefs.h <<\_ACEOF
12356#define CLONE_DEVICE "/dev/ptym/clone"
12357_ACEOF
12358
12359 have_clone=yes
12360else
12361 { echo "$as_me:$LINENO: result: no" >&5
12362echo "${ECHO_T}no" >&6; }
12363fi
12364
12365{ echo "$as_me:$LINENO: checking for /dev/ptc" >&5
12366echo $ECHO_N "checking for /dev/ptc... $ECHO_C" >&6; }
12367if test -e /dev/ptc; then
12368 { echo "$as_me:$LINENO: result: yes" >&5
12369echo "${ECHO_T}yes" >&6; }
12370
12371cat >>confdefs.h <<\_ACEOF
12372#define HAVE_DEV_PTC 1
12373_ACEOF
12374
12375
12376cat >>confdefs.h <<\_ACEOF
12377#define CLONE_DEVICE "/dev/ptc"
12378_ACEOF
12379
12380 have_clone=yes
12381else
12382 { echo "$as_me:$LINENO: result: no" >&5
12383echo "${ECHO_T}no" >&6; }
12384fi
12385
12386case $host in
12387 *-*-cygwin*)
12388 have_clone=yes
12389
12390cat >>confdefs.h <<\_ACEOF
12391#define CLONE_DEVICE "/dev/ptmx"
12392_ACEOF
12393
12394 ;;
12395 *)
12396 { echo "$as_me:$LINENO: checking for /dev/ptmx" >&5
12397echo $ECHO_N "checking for /dev/ptmx... $ECHO_C" >&6; }
12398 if test -e /dev/ptmx; then
12399 { echo "$as_me:$LINENO: result: yes" >&5
12400echo "${ECHO_T}yes" >&6; }
12401
12402cat >>confdefs.h <<\_ACEOF
12403#define HAVE_DEV_PTMX 1
12404_ACEOF
12405
12406
12407cat >>confdefs.h <<\_ACEOF
12408#define CLONE_DEVICE "/dev/ptmx"
12409_ACEOF
12410
12411 have_clone=yes
12412 else
12413 { echo "$as_me:$LINENO: result: no" >&5
12414echo "${ECHO_T}no" >&6; }
12415 fi
12416 ;;
12417esac
12418
12419if test x$ac_cv_func_getpt = xyes -o x$ac_cv_func_posix_openpt = xyes -o x$have_clone = xyes; then
12420 { echo "$as_me:$LINENO: checking for UNIX98 ptys" >&5 7399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
12421echo $ECHO_N "checking for UNIX98 ptys... $ECHO_C" >&6; } 7400$as_echo_n "checking for UNIX98 ptys... " >&6; }
12422 cat >conftest.$ac_ext <<_ACEOF
12423/* confdefs.h. */
12424_ACEOF
12425cat confdefs.h >>conftest.$ac_ext 7401cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12426cat >>conftest.$ac_ext <<_ACEOF
12427/* end confdefs.h. */ 7402/* end confdefs.h. */
12428#include <stdlib.h> 7403#include <stdlib.h>
12429int 7404int
12430main () 7405main ()
12431{ 7406{
12432grantpt(0);unlockpt(0);ptsname(0); 7407grantpt(0);unlockpt(0);ptsname(0);
12433 ; 7408 ;
12434 return 0; 7409 return 0;
12435} 7410}
12436_ACEOF 7411_ACEOF
12437rm -f conftest.$ac_objext conftest$ac_exeext 7412if ac_fn_cxx_try_link "$LINENO"; then :
12438if { (ac_try="$ac_link"
12439case "(($ac_try" in
12440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12441 *) ac_try_echo=$ac_try;;
12442esac
12443eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12444 (eval "$ac_link") 2>conftest.er1
12445 ac_status=$?
12446 grep -v '^ *+' conftest.er1 >conftest.err
12447 rm -f conftest.er1
12448 cat conftest.err >&5
12449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12450 (exit $ac_status); } && {
12451 test -z "$ac_cxx_werror_flag" ||
12452 test ! -s conftest.err
12453 } && test -s conftest$ac_exeext &&
12454 $as_test_x conftest$ac_exeext; then
12455 unix98_pty=yes 7413 unix98_pty=yes
12456 7414
12457cat >>confdefs.h <<\_ACEOF 7415$as_echo "#define UNIX98_PTY 1" >>confdefs.h
12458#define UNIX98_PTY 1
12459_ACEOF
12460 7416
12461 { echo "$as_me:$LINENO: result: yes" >&5 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12462echo "${ECHO_T}yes" >&6; } 7418$as_echo "yes" >&6; }
12463else 7419else
12464 echo "$as_me: failed program was:" >&5
12465sed 's/^/| /' conftest.$ac_ext >&5
12466
12467 { echo "$as_me:$LINENO: result: no" >&5 7420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12468echo "${ECHO_T}no" >&6; } 7421$as_echo "no" >&6; }
12469fi 7422fi
12470
12471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7423rm -f core conftest.err conftest.$ac_objext \
12472 conftest$ac_exeext conftest.$ac_ext 7424 conftest$ac_exeext conftest.$ac_ext
12473fi
12474 7425
12475if test -z "$unix98_pty"; then 7426if test -z "$unix98_pty"; then
12476 7427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
12477for ac_func in openpty 7428$as_echo_n "checking for library containing openpty... " >&6; }
12478do 7429if ${ac_cv_search_openpty+:} false; then :
12479as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 7430 $as_echo_n "(cached) " >&6
12480{ echo "$as_me:$LINENO: checking for $ac_func" >&5
12481echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12482if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12483 echo $ECHO_N "(cached) $ECHO_C" >&6
12484else
12485 cat >conftest.$ac_ext <<_ACEOF
12486/* confdefs.h. */
12487_ACEOF
12488cat confdefs.h >>conftest.$ac_ext
12489cat >>conftest.$ac_ext <<_ACEOF
12490/* end confdefs.h. */
12491/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12493#define $ac_func innocuous_$ac_func
12494
12495/* System header to define __stub macros and hopefully few prototypes,
12496 which can conflict with char $ac_func (); below.
12497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12498 <limits.h> exists even on freestanding compilers. */
12499
12500#ifdef __STDC__
12501# include <limits.h>
12502#else 7431else
12503# include <assert.h> 7432 ac_func_search_save_LIBS=$LIBS
12504#endif
12505
12506#undef $ac_func
12507
12508/* Override any GCC internal prototype to avoid an error.
12509 Use char because int might match the return type of a GCC
12510 builtin and then its argument prototype would still apply. */
12511#ifdef __cplusplus
12512extern "C"
12513#endif
12514char $ac_func ();
12515/* The GNU C library defines this for functions which it implements
12516 to always fail with ENOSYS. Some functions are actually named
12517 something starting with __ and the normal name is an alias. */
12518#if defined __stub_$ac_func || defined __stub___$ac_func
12519choke me
12520#endif
12521
12522int
12523main ()
12524{
12525return $ac_func ();
12526 ;
12527 return 0;
12528}
12529_ACEOF
12530rm -f conftest.$ac_objext conftest$ac_exeext
12531if { (ac_try="$ac_link"
12532case "(($ac_try" in
12533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12534 *) ac_try_echo=$ac_try;;
12535esac
12536eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12537 (eval "$ac_link") 2>conftest.er1
12538 ac_status=$?
12539 grep -v '^ *+' conftest.er1 >conftest.err
12540 rm -f conftest.er1
12541 cat conftest.err >&5
12542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12543 (exit $ac_status); } && {
12544 test -z "$ac_cxx_werror_flag" ||
12545 test ! -s conftest.err
12546 } && test -s conftest$ac_exeext &&
12547 $as_test_x conftest$ac_exeext; then
12548 eval "$as_ac_var=yes"
12549else
12550 echo "$as_me: failed program was:" >&5
12551sed 's/^/| /' conftest.$ac_ext >&5
12552
12553 eval "$as_ac_var=no"
12554fi
12555
12556rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12557 conftest$ac_exeext conftest.$ac_ext
12558fi
12559ac_res=`eval echo '${'$as_ac_var'}'`
12560 { echo "$as_me:$LINENO: result: $ac_res" >&5
12561echo "${ECHO_T}$ac_res" >&6; }
12562if test `eval echo '${'$as_ac_var'}'` = yes; then
12563 cat >>confdefs.h <<_ACEOF
12564#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12565_ACEOF
12566
12567else
12568 { echo "$as_me:$LINENO: checking for openpty in -lutil" >&5
12569echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6; }
12570if test "${ac_cv_lib_util_openpty+set}" = set; then
12571 echo $ECHO_N "(cached) $ECHO_C" >&6
12572else
12573 ac_check_lib_save_LIBS=$LIBS
12574LIBS="-lutil $LIBS"
12575cat >conftest.$ac_ext <<_ACEOF
12576/* confdefs.h. */
12577_ACEOF
12578cat confdefs.h >>conftest.$ac_ext 7433cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579cat >>conftest.$ac_ext <<_ACEOF
12580/* end confdefs.h. */ 7434/* end confdefs.h. */
12581 7435
12582/* Override any GCC internal prototype to avoid an error. 7436/* Override any GCC internal prototype to avoid an error.
12583 Use char because int might match the return type of a GCC 7437 Use char because int might match the return type of a GCC
12584 builtin and then its argument prototype would still apply. */ 7438 builtin and then its argument prototype would still apply. */
12592return openpty (); 7446return openpty ();
12593 ; 7447 ;
12594 return 0; 7448 return 0;
12595} 7449}
12596_ACEOF 7450_ACEOF
12597rm -f conftest.$ac_objext conftest$ac_exeext 7451for ac_lib in '' util; do
12598if { (ac_try="$ac_link" 7452 if test -z "$ac_lib"; then
12599case "(($ac_try" in 7453 ac_res="none required"
12600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12601 *) ac_try_echo=$ac_try;;
12602esac
12603eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12604 (eval "$ac_link") 2>conftest.er1
12605 ac_status=$?
12606 grep -v '^ *+' conftest.er1 >conftest.err
12607 rm -f conftest.er1
12608 cat conftest.err >&5
12609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12610 (exit $ac_status); } && {
12611 test -z "$ac_cxx_werror_flag" ||
12612 test ! -s conftest.err
12613 } && test -s conftest$ac_exeext &&
12614 $as_test_x conftest$ac_exeext; then
12615 ac_cv_lib_util_openpty=yes
12616else 7454 else
12617 echo "$as_me: failed program was:" >&5 7455 ac_res=-l$ac_lib
12618sed 's/^/| /' conftest.$ac_ext >&5 7456 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12619 7457 fi
12620 ac_cv_lib_util_openpty=no 7458 if ac_fn_cxx_try_link "$LINENO"; then :
7459 ac_cv_search_openpty=$ac_res
12621fi 7460fi
12622
12623rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7461rm -f core conftest.err conftest.$ac_objext \
12624 conftest$ac_exeext conftest.$ac_ext 7462 conftest$ac_exeext
12625LIBS=$ac_check_lib_save_LIBS 7463 if ${ac_cv_search_openpty+:} false; then :
12626fi 7464 break
12627{ echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5
12628echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6; }
12629if test $ac_cv_lib_util_openpty = yes; then
12630 cat >>confdefs.h <<\_ACEOF
12631#define HAVE_OPENPTY 1
12632_ACEOF
12633 LIBS="$LIBS -lutil"
12634fi
12635
12636fi 7465fi
12637done 7466done
7467if ${ac_cv_search_openpty+:} false; then :
12638 7468
7469else
7470 ac_cv_search_openpty=no
12639fi 7471fi
7472rm conftest.$ac_ext
7473LIBS=$ac_func_search_save_LIBS
7474fi
7475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
7476$as_echo "$ac_cv_search_openpty" >&6; }
7477ac_res=$ac_cv_search_openpty
7478if test "$ac_res" != no; then :
7479 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12640 7480
7481$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
12641 7482
7483fi
12642 7484
7485fi
7486
7487
7488
12643{ echo "$as_me:$LINENO: checking for tty group" >&5 7489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
12644echo $ECHO_N "checking for tty group... $ECHO_C" >&6; } 7490$as_echo_n "checking for tty group... " >&6; }
12645if test "${tty_group+set}" = set; then 7491if ${pt_cv_tty_group+:} false; then :
12646 echo $ECHO_N "(cached) $ECHO_C" >&6 7492 $as_echo_n "(cached) " >&6
12647else 7493else
12648 if test "$cross_compiling" = yes; then 7494 if test "$cross_compiling" = yes; then :
12649 tty_group=no 7495 pt_cv_tty_group=no
12650else 7496else
12651 cat >conftest.$ac_ext <<_ACEOF
12652/* confdefs.h. */
12653_ACEOF
12654cat confdefs.h >>conftest.$ac_ext 7497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12655cat >>conftest.$ac_ext <<_ACEOF
12656/* end confdefs.h. */ 7498/* end confdefs.h. */
12657 7499
12658#include <sys/types.h> 7500#include <sys/types.h>
12659#include <sys/stat.h> 7501#include <sys/stat.h>
12660#include <unistd.h> 7502#include <unistd.h>
12661#include <grp.h> 7503#include <grp.h>
12662 7504
12663main() 7505int main()
12664{ 7506{
12665 struct stat st; 7507 struct stat st;
12666 struct group *gr; 7508 struct group *gr;
12667 char *tty; 7509 char *tty;
12668 gr = getgrnam("tty"); 7510 gr = getgrnam("tty");
12674 return 0; 7516 return 0;
12675 else 7517 else
12676 return 1; 7518 return 1;
12677} 7519}
12678_ACEOF 7520_ACEOF
12679rm -f conftest$ac_exeext 7521if ac_fn_cxx_try_run "$LINENO"; then :
12680if { (ac_try="$ac_link"
12681case "(($ac_try" in
12682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12683 *) ac_try_echo=$ac_try;;
12684esac
12685eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12686 (eval "$ac_link") 2>&5
12687 ac_status=$?
12688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12689 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
12690 { (case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12693esac
12694eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_try") 2>&5
12696 ac_status=$?
12697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12698 (exit $ac_status); }; }; then
12699 tty_group=yes 7522 pt_cv_tty_group=yes
12700else 7523else
12701 echo "$as_me: program exited with status $ac_status" >&5
12702echo "$as_me: failed program was:" >&5
12703sed 's/^/| /' conftest.$ac_ext >&5
12704
12705( exit $ac_status )
12706tty_group=no 7524 pt_cv_tty_group=no
12707fi 7525fi
12708rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7526rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7527 conftest.$ac_objext conftest.beam conftest.$ac_ext
12709fi 7528fi
12710 7529
12711
12712fi 7530fi
12713{ echo "$as_me:$LINENO: result: $tty_group" >&5 7531{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
12714echo "${ECHO_T}$tty_group" >&6; } 7532$as_echo "$pt_cv_tty_group" >&6; }
12715if test x$tty_group = xyes; then 7533if test x$pt_cv_tty_group = xyes; then
12716 7534
12717cat >>confdefs.h <<\_ACEOF 7535$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
12718#define TTY_GID_SUPPORT 1
12719_ACEOF
12720 7536
12721fi 7537fi
12722 7538
12723if test x$support_xft = xyes; then 7539if test x$support_xft = xyes || test x$support_inheritpixmap = xyes; then
7540 rxvt_have_xrender=no
12724 # Extract the first word of "pkg-config", so it can be a program name with args. 7541 # Extract the first word of "pkg-config", so it can be a program name with args.
12725set dummy pkg-config; ac_word=$2 7542set dummy pkg-config; ac_word=$2
12726{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12727echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7544$as_echo_n "checking for $ac_word... " >&6; }
12728if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 7545if ${ac_cv_path_PKG_CONFIG+:} false; then :
12729 echo $ECHO_N "(cached) $ECHO_C" >&6 7546 $as_echo_n "(cached) " >&6
12730else 7547else
12731 case $PKG_CONFIG in 7548 case $PKG_CONFIG in
12732 [\\/]* | ?:[\\/]*) 7549 [\\/]* | ?:[\\/]*)
12733 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7550 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12734 ;; 7551 ;;
12736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12737for as_dir in $PATH 7554for as_dir in $PATH
12738do 7555do
12739 IFS=$as_save_IFS 7556 IFS=$as_save_IFS
12740 test -z "$as_dir" && as_dir=. 7557 test -z "$as_dir" && as_dir=.
12741 for ac_exec_ext in '' $ac_executable_extensions; do 7558 for ac_exec_ext in '' $ac_executable_extensions; do
12742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12743 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7560 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12744 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12745 break 2 7562 break 2
12746 fi 7563 fi
12747done 7564done
12748done 7565 done
12749IFS=$as_save_IFS 7566IFS=$as_save_IFS
12750 7567
12751 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7568 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12752 ;; 7569 ;;
12753esac 7570esac
12754fi 7571fi
12755PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7572PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12756if test -n "$PKG_CONFIG"; then 7573if test -n "$PKG_CONFIG"; then
12757 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 7574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12758echo "${ECHO_T}$PKG_CONFIG" >&6; } 7575$as_echo "$PKG_CONFIG" >&6; }
12759else 7576else
12760 { echo "$as_me:$LINENO: result: no" >&5 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12761echo "${ECHO_T}no" >&6; } 7578$as_echo "no" >&6; }
7579fi
7580
7581
7582 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7583 X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS"
7584 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`"
7585 rxvt_have_xrender=yes
7586
7587 save_LIBS="$LIBS"
7588 LIBS="$LIBS $X_LIBS"
7589 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7590if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
7591
7592else
7593 rxvt_have_xrender=no
7594fi
7595
7596
7597 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7598if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes; then :
7599
7600else
7601 rxvt_have_xrender=no
7602fi
7603
7604 LIBS="$save_LIBS"
7605 fi
7606fi
7607
7608if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
7609 # Extract the first word of "pkg-config", so it can be a program name with args.
7610set dummy pkg-config; ac_word=$2
7611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7612$as_echo_n "checking for $ac_word... " >&6; }
7613if ${ac_cv_path_PKG_CONFIG+:} false; then :
7614 $as_echo_n "(cached) " >&6
7615else
7616 case $PKG_CONFIG in
7617 [\\/]* | ?:[\\/]*)
7618 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7619 ;;
7620 *)
7621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622for as_dir in $PATH
7623do
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7628 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 break 2
7631 fi
7632done
7633 done
7634IFS=$as_save_IFS
7635
7636 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7637 ;;
7638esac
7639fi
7640PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7641if test -n "$PKG_CONFIG"; then
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7643$as_echo "$PKG_CONFIG" >&6; }
7644else
7645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7646$as_echo "no" >&6; }
12762fi 7647fi
12763 7648
12764 7649
12765 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then 7650 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then
12766 LIBS="$LIBS `$PKG_CONFIG xft --libs`" 7651 X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS"
12767 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" 7652 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`"
12768 else 7653 else
12769 # Extract the first word of "xft-config", so it can be a program name with args. 7654 # Extract the first word of "xft-config", so it can be a program name with args.
12770set dummy xft-config; ac_word=$2 7655set dummy xft-config; ac_word=$2
12771{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12772echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7657$as_echo_n "checking for $ac_word... " >&6; }
12773if test "${ac_cv_path_XFT_CONFIG+set}" = set; then 7658if ${ac_cv_path_XFT_CONFIG+:} false; then :
12774 echo $ECHO_N "(cached) $ECHO_C" >&6 7659 $as_echo_n "(cached) " >&6
12775else 7660else
12776 case $XFT_CONFIG in 7661 case $XFT_CONFIG in
12777 [\\/]* | ?:[\\/]*) 7662 [\\/]* | ?:[\\/]*)
12778 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path. 7663 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
12779 ;; 7664 ;;
12781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782for as_dir in $PATH 7667for as_dir in $PATH
12783do 7668do
12784 IFS=$as_save_IFS 7669 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=. 7670 test -z "$as_dir" && as_dir=.
12786 for ac_exec_ext in '' $ac_executable_extensions; do 7671 for ac_exec_ext in '' $ac_executable_extensions; do
12787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12788 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7673 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12789 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790 break 2 7675 break 2
12791 fi 7676 fi
12792done 7677done
12793done 7678 done
12794IFS=$as_save_IFS 7679IFS=$as_save_IFS
12795 7680
12796 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no" 7681 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
12797 ;; 7682 ;;
12798esac 7683esac
12799fi 7684fi
12800XFT_CONFIG=$ac_cv_path_XFT_CONFIG 7685XFT_CONFIG=$ac_cv_path_XFT_CONFIG
12801if test -n "$XFT_CONFIG"; then 7686if test -n "$XFT_CONFIG"; then
12802 { echo "$as_me:$LINENO: result: $XFT_CONFIG" >&5 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
12803echo "${ECHO_T}$XFT_CONFIG" >&6; } 7688$as_echo "$XFT_CONFIG" >&6; }
12804else 7689else
12805 { echo "$as_me:$LINENO: result: no" >&5 7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12806echo "${ECHO_T}no" >&6; } 7691$as_echo "no" >&6; }
12807fi 7692fi
12808 7693
12809 7694
12810 if test $XFT_CONFIG != no; then 7695 if test $XFT_CONFIG != no; then
12811 LIBS="$LIBS `$XFT_CONFIG --libs`" 7696 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
12812 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`" 7697 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
12813 fi 7698 fi
12814 fi 7699 fi
12815 7700
7701 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig; then
7702 X_LIBS="`$PKG_CONFIG fontconfig --libs` $X_LIBS"
7703 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
7704 fi
12816 7705
7706 save_LIBS="$LIBS"
7707 LIBS="$LIBS $X_LIBS"
12817for ac_header in X11/Xft/Xft.h 7708 for ac_header in X11/Xft/Xft.h
12818do 7709do :
12819as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7710 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
12820if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7711if test "x$ac_cv_header_X11_Xft_Xft_h" = xyes; then :
12821 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12822echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12823if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12825fi
12826ac_res=`eval echo '${'$as_ac_Header'}'`
12827 { echo "$as_me:$LINENO: result: $ac_res" >&5
12828echo "${ECHO_T}$ac_res" >&6; }
12829else
12830 # Is the header compilable?
12831{ echo "$as_me:$LINENO: checking $ac_header usability" >&5
12832echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12833cat >conftest.$ac_ext <<_ACEOF
12834/* confdefs.h. */
12835_ACEOF
12836cat confdefs.h >>conftest.$ac_ext
12837cat >>conftest.$ac_ext <<_ACEOF
12838/* end confdefs.h. */
12839$ac_includes_default
12840#include <$ac_header>
12841_ACEOF
12842rm -f conftest.$ac_objext
12843if { (ac_try="$ac_compile"
12844case "(($ac_try" in
12845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12846 *) ac_try_echo=$ac_try;;
12847esac
12848eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12849 (eval "$ac_compile") 2>conftest.er1
12850 ac_status=$?
12851 grep -v '^ *+' conftest.er1 >conftest.err
12852 rm -f conftest.er1
12853 cat conftest.err >&5
12854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855 (exit $ac_status); } && {
12856 test -z "$ac_cxx_werror_flag" ||
12857 test ! -s conftest.err
12858 } && test -s conftest.$ac_objext; then
12859 ac_header_compiler=yes
12860else
12861 echo "$as_me: failed program was:" >&5
12862sed 's/^/| /' conftest.$ac_ext >&5
12863
12864 ac_header_compiler=no
12865fi
12866
12867rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12868{ echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12869echo "${ECHO_T}$ac_header_compiler" >&6; }
12870
12871# Is the header present?
12872{ echo "$as_me:$LINENO: checking $ac_header presence" >&5
12873echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12874cat >conftest.$ac_ext <<_ACEOF
12875/* confdefs.h. */
12876_ACEOF
12877cat confdefs.h >>conftest.$ac_ext
12878cat >>conftest.$ac_ext <<_ACEOF
12879/* end confdefs.h. */
12880#include <$ac_header>
12881_ACEOF
12882if { (ac_try="$ac_cpp conftest.$ac_ext"
12883case "(($ac_try" in
12884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12885 *) ac_try_echo=$ac_try;;
12886esac
12887eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12889 ac_status=$?
12890 grep -v '^ *+' conftest.er1 >conftest.err
12891 rm -f conftest.er1
12892 cat conftest.err >&5
12893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12894 (exit $ac_status); } >/dev/null && {
12895 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
12896 test ! -s conftest.err
12897 }; then
12898 ac_header_preproc=yes
12899else
12900 echo "$as_me: failed program was:" >&5
12901sed 's/^/| /' conftest.$ac_ext >&5
12902
12903 ac_header_preproc=no
12904fi
12905
12906rm -f conftest.err conftest.$ac_ext
12907{ echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12908echo "${ECHO_T}$ac_header_preproc" >&6; }
12909
12910# So? What about this header?
12911case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12912 yes:no: )
12913 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12914echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12915 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12916echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12917 ac_header_preproc=yes
12918 ;;
12919 no:yes:* )
12920 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12921echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12922 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12923echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12924 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12925echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12926 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12927echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12928 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12929echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12930 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12931echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12932
12933 ;;
12934esac
12935{ echo "$as_me:$LINENO: checking for $ac_header" >&5
12936echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12937if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12938 echo $ECHO_N "(cached) $ECHO_C" >&6
12939else
12940 eval "$as_ac_Header=\$ac_header_preproc"
12941fi
12942ac_res=`eval echo '${'$as_ac_Header'}'`
12943 { echo "$as_me:$LINENO: result: $ac_res" >&5
12944echo "${ECHO_T}$ac_res" >&6; }
12945
12946fi
12947if test `eval echo '${'$as_ac_Header'}'` = yes; then
12948 cat >>confdefs.h <<_ACEOF 7712 cat >>confdefs.h <<_ACEOF
12949#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 7713#define HAVE_X11_XFT_XFT_H 1
12950_ACEOF 7714_ACEOF
12951 7715
12952else 7716else
12953 support_xft=no 7717 support_xft=no
12954fi 7718fi
12955 7719
12956done 7720done
12957 7721
12958
12959{ echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5 7722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftDrawString32 in -lXft" >&5
12960echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6; } 7723$as_echo_n "checking for XftDrawString32 in -lXft... " >&6; }
12961if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then 7724if ${ac_cv_lib_Xft_XftDrawString32+:} false; then :
12962 echo $ECHO_N "(cached) $ECHO_C" >&6 7725 $as_echo_n "(cached) " >&6
12963else 7726else
12964 ac_check_lib_save_LIBS=$LIBS 7727 ac_check_lib_save_LIBS=$LIBS
12965LIBS="-lXft $LIBS" 7728LIBS="-lXft $LIBS"
12966cat >conftest.$ac_ext <<_ACEOF
12967/* confdefs.h. */
12968_ACEOF
12969cat confdefs.h >>conftest.$ac_ext 7729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12970cat >>conftest.$ac_ext <<_ACEOF
12971/* end confdefs.h. */ 7730/* end confdefs.h. */
12972 7731
12973/* Override any GCC internal prototype to avoid an error. 7732/* Override any GCC internal prototype to avoid an error.
12974 Use char because int might match the return type of a GCC 7733 Use char because int might match the return type of a GCC
12975 builtin and then its argument prototype would still apply. */ 7734 builtin and then its argument prototype would still apply. */
12983return XftDrawString32 (); 7742return XftDrawString32 ();
12984 ; 7743 ;
12985 return 0; 7744 return 0;
12986} 7745}
12987_ACEOF 7746_ACEOF
12988rm -f conftest.$ac_objext conftest$ac_exeext 7747if ac_fn_cxx_try_link "$LINENO"; then :
12989if { (ac_try="$ac_link"
12990case "(($ac_try" in
12991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12992 *) ac_try_echo=$ac_try;;
12993esac
12994eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12995 (eval "$ac_link") 2>conftest.er1
12996 ac_status=$?
12997 grep -v '^ *+' conftest.er1 >conftest.err
12998 rm -f conftest.er1
12999 cat conftest.err >&5
13000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13001 (exit $ac_status); } && {
13002 test -z "$ac_cxx_werror_flag" ||
13003 test ! -s conftest.err
13004 } && test -s conftest$ac_exeext &&
13005 $as_test_x conftest$ac_exeext; then
13006 ac_cv_lib_Xft_XftDrawString32=yes 7748 ac_cv_lib_Xft_XftDrawString32=yes
13007else 7749else
13008 echo "$as_me: failed program was:" >&5
13009sed 's/^/| /' conftest.$ac_ext >&5
13010
13011 ac_cv_lib_Xft_XftDrawString32=no 7750 ac_cv_lib_Xft_XftDrawString32=no
13012fi 7751fi
13013
13014rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 7752rm -f core conftest.err conftest.$ac_objext \
13015 conftest$ac_exeext conftest.$ac_ext 7753 conftest$ac_exeext conftest.$ac_ext
13016LIBS=$ac_check_lib_save_LIBS 7754LIBS=$ac_check_lib_save_LIBS
13017fi 7755fi
13018{ echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5 7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftDrawString32" >&5
13019echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6; } 7757$as_echo "$ac_cv_lib_Xft_XftDrawString32" >&6; }
13020if test $ac_cv_lib_Xft_XftDrawString32 = yes; then 7758if test "x$ac_cv_lib_Xft_XftDrawString32" = xyes; then :
7759 :
7760else
7761 support_xft=no
7762fi
7763
7764 for ac_header in fontconfig/fontconfig.h
7765do :
7766 ac_fn_cxx_check_header_mongrel "$LINENO" "fontconfig/fontconfig.h" "ac_cv_header_fontconfig_fontconfig_h" "$ac_includes_default"
7767if test "x$ac_cv_header_fontconfig_fontconfig_h" = xyes; then :
13021 cat >>confdefs.h <<_ACEOF 7768 cat >>confdefs.h <<_ACEOF
13022#define HAVE_LIBXFT 1 7769#define HAVE_FONTCONFIG_FONTCONFIG_H 1
13023_ACEOF 7770_ACEOF
13024
13025 LIBS="-lXft $LIBS"
13026 7771
13027else 7772else
13028 support_xft=no 7773 support_xft=no
13029fi 7774fi
13030 7775
7776done
7777
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FcPatternGet in -lfontconfig" >&5
7779$as_echo_n "checking for FcPatternGet in -lfontconfig... " >&6; }
7780if ${ac_cv_lib_fontconfig_FcPatternGet+:} false; then :
7781 $as_echo_n "(cached) " >&6
7782else
7783 ac_check_lib_save_LIBS=$LIBS
7784LIBS="-lfontconfig $LIBS"
7785cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h. */
7787
7788/* Override any GCC internal prototype to avoid an error.
7789 Use char because int might match the return type of a GCC
7790 builtin and then its argument prototype would still apply. */
7791#ifdef __cplusplus
7792extern "C"
7793#endif
7794char FcPatternGet ();
7795int
7796main ()
7797{
7798return FcPatternGet ();
7799 ;
7800 return 0;
7801}
7802_ACEOF
7803if ac_fn_cxx_try_link "$LINENO"; then :
7804 ac_cv_lib_fontconfig_FcPatternGet=yes
7805else
7806 ac_cv_lib_fontconfig_FcPatternGet=no
7807fi
7808rm -f core conftest.err conftest.$ac_objext \
7809 conftest$ac_exeext conftest.$ac_ext
7810LIBS=$ac_check_lib_save_LIBS
7811fi
7812{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fontconfig_FcPatternGet" >&5
7813$as_echo "$ac_cv_lib_fontconfig_FcPatternGet" >&6; }
7814if test "x$ac_cv_lib_fontconfig_FcPatternGet" = xyes; then :
7815 :
7816else
7817 support_xft=no
7818fi
7819
7820 LIBS="$save_LIBS"
13031 7821
13032 if test x$support_xft = xyes; then 7822 if test x$support_xft = xyes; then
13033 7823
13034cat >>confdefs.h <<\_ACEOF 7824$as_echo "#define XFT 1" >>confdefs.h
13035#define XFT 1
13036_ACEOF
13037 7825
13038 fi 7826 fi
13039fi 7827fi
13040if test x$support_styles = xyes; then 7828if test x$support_styles = xyes; then
13041 7829
13042cat >>confdefs.h <<\_ACEOF 7830$as_echo "#define ENABLE_STYLES 1" >>confdefs.h
13043#define ENABLE_STYLES 1
13044_ACEOF
13045 7831
13046fi 7832fi
13047if test x$support_iso14755 = xyes; then 7833if test x$support_iso14755 = xyes; then
13048 7834
13049cat >>confdefs.h <<\_ACEOF 7835$as_echo "#define ISO_14755 1" >>confdefs.h
13050#define ISO_14755 1
13051_ACEOF
13052 7836
13053fi 7837fi
13054if test x$support_8bitctrls = xyes; then 7838if test x$support_8bitctrls = xyes; then
13055 7839
13056cat >>confdefs.h <<\_ACEOF 7840$as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
13057#define EIGHT_BIT_CONTROLS 1
13058_ACEOF
13059 7841
13060fi 7842fi
13061if test x$support_fading = xyes; then 7843if test x$support_fading = xyes; then
13062 7844
13063cat >>confdefs.h <<\_ACEOF 7845$as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
13064#define OFF_FOCUS_FADING 1
13065_ACEOF
13066
13067fi
13068if test x$support_tinting = xyes; then
13069
13070cat >>confdefs.h <<\_ACEOF
13071#define TINTING 1
13072_ACEOF
13073 7846
13074fi 7847fi
13075if test x$support_inheritpixmap = xyes; then 7848if test x$support_inheritpixmap = xyes; then
7849 if test x$rxvt_have_xrender = xyes; then
7850 LIBS="$LIBS -lm"
13076 7851
13077cat >>confdefs.h <<\_ACEOF 7852$as_echo "#define XRENDER 1" >>confdefs.h
13078#define ENABLE_TRANSPARENCY 1 7853
13079_ACEOF 7854 fi
7855
7856$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
13080 7857
13081fi 7858fi
13082if test x$support_keepscrolling = xno; then 7859if test x$support_keepscrolling = xno; then
13083 7860
13084cat >>confdefs.h <<\_ACEOF
13085#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 7861$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
13086_ACEOF
13087 7862
13088fi 7863fi
13089if test x$support_selectionscrolling = xyes; then 7864if test x$support_selectionscrolling = xyes; then
13090 7865
13091cat >>confdefs.h <<\_ACEOF 7866$as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h
13092#define SELECTION_SCROLLING 1 7867
13093_ACEOF 7868fi
7869if test x$support_frills = xyes; then
7870
7871$as_echo "#define ENABLE_FRILLS 1" >>confdefs.h
13094 7872
13095fi 7873fi
13096if test x$support_mousewheel = xyes; then 7874if test x$support_mousewheel = xyes; then
13097 7875
13098cat >>confdefs.h <<\_ACEOF 7876$as_echo "#define MOUSE_WHEEL 1" >>confdefs.h
13099#define MOUSE_WHEEL 1
13100_ACEOF
13101 7877
13102fi 7878fi
13103if test x$support_mouseslipwheel = xyes; then 7879if test x$support_mouseslipwheel = xyes; then
13104 7880
13105cat >>confdefs.h <<\_ACEOF 7881$as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
13106#define MOUSE_SLIP_WHEELING 1
13107_ACEOF
13108 7882
13109fi 7883fi
13110if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then
13111 7884
13112cat >>confdefs.h <<\_ACEOF 7885scrolltypes=plain
13113#define XPM_BACKGROUND 1
13114_ACEOF
13115 7886
13116fi 7887$as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h
13117
13118if test x$support_afterimage = xyes; then
13119
13120cat >>confdefs.h <<\_ACEOF
13121#define HAVE_AFTERIMAGE 1
13122_ACEOF
13123
13124fi
13125 7888
13126 7889
13127if test x$support_scroll_rxvt = xyes; then 7890if test x$support_scroll_rxvt = xyes; then
13128 7891
13129cat >>confdefs.h <<\_ACEOF 7892$as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h
13130#define RXVT_SCROLLBAR 1
13131_ACEOF
13132 7893
13133 scrolltypes="rxvt" 7894 scrolltypes="$scrolltypes rxvt"
13134fi 7895fi
13135if test x$support_scroll_next = xyes; then 7896if test x$support_scroll_next = xyes; then
13136 7897
13137cat >>confdefs.h <<\_ACEOF 7898$as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h
13138#define NEXT_SCROLLBAR 1
13139_ACEOF
13140 7899
13141 scrolltypes="$scrolltypes next" 7900 scrolltypes="$scrolltypes next"
13142fi 7901fi
13143if test x$support_scroll_xterm = xyes; then 7902if test x$support_scroll_xterm = xyes; then
13144 7903
13145cat >>confdefs.h <<\_ACEOF 7904$as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h
13146#define XTERM_SCROLLBAR 1
13147_ACEOF
13148 7905
13149 scrolltypes="$scrolltypes xterm" 7906 scrolltypes="$scrolltypes xterm"
13150fi 7907fi
13151if test x$support_scroll_plain = xyes; then
13152
13153cat >>confdefs.h <<\_ACEOF
13154#define PLAIN_SCROLLBAR 1
13155_ACEOF
13156
13157 scrolltypes="$scrolltypes plain"
13158fi
13159if test x$support_pointer_blank = xyes; then 7908if test x$support_pointer_blank = xyes; then
13160 7909
13161cat >>confdefs.h <<\_ACEOF 7910$as_echo "#define POINTER_BLANK 1" >>confdefs.h
13162#define POINTER_BLANK 1
13163_ACEOF
13164 7911
13165fi 7912fi
13166if test x$support_text_blink = xyes; then 7913if test x$support_text_blink = xyes; then
13167 7914
13168cat >>confdefs.h <<\_ACEOF 7915$as_echo "#define TEXT_BLINK 1" >>confdefs.h
13169#define TEXT_BLINK 1
13170_ACEOF
13171 7916
13172fi 7917fi
13173if test x$support_unicode3 = xyes; then 7918if test x$support_unicode3 = xyes; then
13174 7919
13175cat >>confdefs.h <<\_ACEOF 7920$as_echo "#define UNICODE_3 1" >>confdefs.h
13176#define UNICODE_3 1
13177_ACEOF
13178 7921
13179fi 7922fi
13180if test x$support_combining = xyes; then 7923if test x$support_combining = xyes; then
13181 7924
13182cat >>confdefs.h <<\_ACEOF 7925$as_echo "#define ENABLE_COMBINING 1" >>confdefs.h
13183#define ENABLE_COMBINING 1
13184_ACEOF
13185 7926
13186fi 7927fi
13187if test x$codesets = xall; then 7928if test x$codesets = xall; then
13188 codesets=jp,jp-ext,kr,zh,zh-ext 7929 codesets=jp,jp-ext,kr,zh,zh-ext
13189fi 7930fi
13190 7931
13191cat >>confdefs.h <<\_ACEOF 7932$as_echo "#define ENCODING_EU 1" >>confdefs.h
13192#define ENCODING_EU 1
13193_ACEOF
13194 7933
13195 7934
13196cat >>confdefs.h <<\_ACEOF 7935$as_echo "#define ENCODING_VN 1" >>confdefs.h
13197#define ENCODING_VN 1
13198_ACEOF
13199 7936
13200for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 7937for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
13201 case "$codeset" in 7938 case "$codeset" in
13202 JP ) 7939 JP )
13203cat >>confdefs.h <<\_ACEOF 7940$as_echo "#define ENCODING_JP 1" >>confdefs.h
13204#define ENCODING_JP 1
13205_ACEOF
13206 ;; 7941 ;;
13207 JP_EXT ) 7942 JP_EXT )
13208cat >>confdefs.h <<\_ACEOF 7943$as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h
13209#define ENCODING_JP_EXT 1
13210_ACEOF
13211 ;; 7944 ;;
13212 KR ) 7945 KR )
13213cat >>confdefs.h <<\_ACEOF 7946$as_echo "#define ENCODING_KR 1" >>confdefs.h
13214#define ENCODING_KR 1
13215_ACEOF
13216 ;; 7947 ;;
13217 ZH ) 7948 ZH )
13218cat >>confdefs.h <<\_ACEOF 7949$as_echo "#define ENCODING_ZH 1" >>confdefs.h
13219#define ENCODING_ZH 1
13220_ACEOF
13221 ;; 7950 ;;
13222 ZH_EXT ) 7951 ZH_EXT )
13223cat >>confdefs.h <<\_ACEOF 7952$as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h
13224#define ENCODING_ZH_EXT 1
13225_ACEOF
13226 ;; 7953 ;;
13227 esac 7954 esac
13228done 7955done
13229 7956
13230IF_PERL=\# 7957IF_PERL=\#
13231if test x$support_perl = xyes; then 7958if test x$support_perl = xyes; then
13232 # Extract the first word of "perl5", so it can be a program name with args. 7959 # Extract the first word of "perl5", so it can be a program name with args.
13233set dummy perl5; ac_word=$2 7960set dummy perl5; ac_word=$2
13234{ echo "$as_me:$LINENO: checking for $ac_word" >&5 7961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13235echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 7962$as_echo_n "checking for $ac_word... " >&6; }
13236if test "${ac_cv_path_PERL+set}" = set; then 7963if ${ac_cv_path_PERL+:} false; then :
13237 echo $ECHO_N "(cached) $ECHO_C" >&6 7964 $as_echo_n "(cached) " >&6
13238else 7965else
13239 case $PERL in 7966 case $PERL in
13240 [\\/]* | ?:[\\/]*) 7967 [\\/]* | ?:[\\/]*)
13241 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 7968 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13242 ;; 7969 ;;
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245for as_dir in $PATH 7972for as_dir in $PATH
13246do 7973do
13247 IFS=$as_save_IFS 7974 IFS=$as_save_IFS
13248 test -z "$as_dir" && as_dir=. 7975 test -z "$as_dir" && as_dir=.
13249 for ac_exec_ext in '' $ac_executable_extensions; do 7976 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13251 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 7978 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13253 break 2 7980 break 2
13254 fi 7981 fi
13255done 7982done
13256done 7983 done
13257IFS=$as_save_IFS 7984IFS=$as_save_IFS
13258 7985
13259 ;; 7986 ;;
13260esac 7987esac
13261fi 7988fi
13262PERL=$ac_cv_path_PERL 7989PERL=$ac_cv_path_PERL
13263if test -n "$PERL"; then 7990if test -n "$PERL"; then
13264 { echo "$as_me:$LINENO: result: $PERL" >&5 7991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13265echo "${ECHO_T}$PERL" >&6; } 7992$as_echo "$PERL" >&6; }
13266else 7993else
13267 { echo "$as_me:$LINENO: result: no" >&5 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13268echo "${ECHO_T}no" >&6; } 7995$as_echo "no" >&6; }
13269fi 7996fi
13270 7997
13271 7998
13272 # Extract the first word of "perl", so it can be a program name with args. 7999 # Extract the first word of "perl", so it can be a program name with args.
13273set dummy perl; ac_word=$2 8000set dummy perl; ac_word=$2
13274{ echo "$as_me:$LINENO: checking for $ac_word" >&5 8001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } 8002$as_echo_n "checking for $ac_word... " >&6; }
13276if test "${ac_cv_path_PERL+set}" = set; then 8003if ${ac_cv_path_PERL+:} false; then :
13277 echo $ECHO_N "(cached) $ECHO_C" >&6 8004 $as_echo_n "(cached) " >&6
13278else 8005else
13279 case $PERL in 8006 case $PERL in
13280 [\\/]* | ?:[\\/]*) 8007 [\\/]* | ?:[\\/]*)
13281 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 8008 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
13282 ;; 8009 ;;
13284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13285for as_dir in $PATH 8012for as_dir in $PATH
13286do 8013do
13287 IFS=$as_save_IFS 8014 IFS=$as_save_IFS
13288 test -z "$as_dir" && as_dir=. 8015 test -z "$as_dir" && as_dir=.
13289 for ac_exec_ext in '' $ac_executable_extensions; do 8016 for ac_exec_ext in '' $ac_executable_extensions; do
13290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8017 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13291 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 8018 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
13292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13293 break 2 8020 break 2
13294 fi 8021 fi
13295done 8022done
13296done 8023 done
13297IFS=$as_save_IFS 8024IFS=$as_save_IFS
13298 8025
13299 ;; 8026 ;;
13300esac 8027esac
13301fi 8028fi
13302PERL=$ac_cv_path_PERL 8029PERL=$ac_cv_path_PERL
13303if test -n "$PERL"; then 8030if test -n "$PERL"; then
13304 { echo "$as_me:$LINENO: result: $PERL" >&5 8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
13305echo "${ECHO_T}$PERL" >&6; } 8032$as_echo "$PERL" >&6; }
13306else 8033else
13307 { echo "$as_me:$LINENO: result: no" >&5 8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13308echo "${ECHO_T}no" >&6; } 8035$as_echo "no" >&6; }
13309fi 8036fi
13310 8037
13311 8038
13312 8039
13313 { echo "$as_me:$LINENO: checking for $PERL suitability" >&5 8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
13314echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6; } 8041$as_echo_n "checking for $PERL suitability... " >&6; }
13315 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then 8042 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
13316 8043
13317 save_CXXFLAGS="$CXXFLAGS" 8044 save_CXXFLAGS="$CXXFLAGS"
13318 save_LIBS="$LIBS" 8045 save_LIBS="$LIBS"
13319 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" 8046 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
13320 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" 8047 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
13321 cat >conftest.$ac_ext <<_ACEOF
13322/* confdefs.h. */
13323_ACEOF
13324cat confdefs.h >>conftest.$ac_ext 8048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13325cat >>conftest.$ac_ext <<_ACEOF
13326/* end confdefs.h. */ 8049/* end confdefs.h. */
13327 8050
13328#include <EXTERN.h> 8051#include <EXTERN.h>
13329#include <perl.h> 8052#include <perl.h>
13330#include <XSUB.h> 8053#include <XSUB.h>
13337 8060
13338 ; 8061 ;
13339 return 0; 8062 return 0;
13340} 8063}
13341_ACEOF 8064_ACEOF
13342rm -f conftest.$ac_objext conftest$ac_exeext 8065if ac_fn_cxx_try_link "$LINENO"; then :
13343if { (ac_try="$ac_link"
13344case "(($ac_try" in
13345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13346 *) ac_try_echo=$ac_try;;
13347esac
13348eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13349 (eval "$ac_link") 2>conftest.er1
13350 ac_status=$?
13351 grep -v '^ *+' conftest.er1 >conftest.err
13352 rm -f conftest.er1
13353 cat conftest.err >&5
13354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } && {
13356 test -z "$ac_cxx_werror_flag" ||
13357 test ! -s conftest.err
13358 } && test -s conftest$ac_exeext &&
13359 $as_test_x conftest$ac_exeext; then
13360 rxvt_perl_link=yes 8066 rxvt_perl_link=yes
13361else 8067else
13362 echo "$as_me: failed program was:" >&5
13363sed 's/^/| /' conftest.$ac_ext >&5
13364
13365 rxvt_perl_link=no 8068 rxvt_perl_link=no
13366fi 8069fi
13367
13368rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ 8070rm -f core conftest.err conftest.$ac_objext \
13369 conftest$ac_exeext conftest.$ac_ext 8071 conftest$ac_exeext conftest.$ac_ext
13370 CXXFLAGS="$save_CXXFLAGS" 8072 CXXFLAGS="$save_CXXFLAGS"
13371 LIBS="$save_LIBS" 8073 LIBS="$save_LIBS"
13372 8074
13373 if test x$rxvt_perl_link = xyes; then 8075 if test x$rxvt_perl_link = xyes; then
13374 { echo "$as_me:$LINENO: result: ok" >&5 8076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13375echo "${ECHO_T}ok" >&6; } 8077$as_echo "ok" >&6; }
13376 8078
13377cat >>confdefs.h <<\_ACEOF 8079$as_echo "#define ENABLE_PERL 1" >>confdefs.h
13378#define ENABLE_PERL 1
13379_ACEOF
13380 8080
13381 IF_PERL= 8081 IF_PERL=
13382 PERL_O=rxvtperl.o 8082 PERL_O=rxvtperl.o
13383 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 8083 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
13384 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 8084 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
13385 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 8085 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
13386 else 8086 else
13387 { { echo "$as_me:$LINENO: error: no, unable to link" >&5 8087 as_fn_error $? "no, unable to link" "$LINENO" 5
13388echo "$as_me: error: no, unable to link" >&2;}
13389 { (exit 1); exit 1; }; }
13390 fi 8088 fi
13391 else 8089 else
13392 { { echo "$as_me:$LINENO: error: no working perl found, or perl not version >= 5.8" >&5 8090 as_fn_error $? "no working perl found, or perl not version >= 5.8" "$LINENO" 5
13393echo "$as_me: error: no working perl found, or perl not version >= 5.8" >&2;}
13394 { (exit 1); exit 1; }; }
13395 fi 8091 fi
13396fi 8092fi
13397 8093
13398 8094
13399 8095
13400 8096
13401 8097
13402 8098
13403 8099
13404if test x$support_perl = xyes; then
13405 support_frills=yes
13406fi
13407 8100
13408if test x$support_frills = xyes; then
13409
13410cat >>confdefs.h <<\_ACEOF
13411#define ENABLE_FRILLS 1
13412_ACEOF
13413
13414fi
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428test "$program_prefix" != NONE &&
13429 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13430# Use a double $ so make ignores it.
13431test "$program_suffix" != NONE &&
13432 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13433# Double any \ or $. echo might interpret backslashes.
13434# By default was `s,x,x', remove it if useless.
13435cat <<\_ACEOF >conftest.sed
13436s/[\\$]/&&/g;s/;s,x,x,$//
13437_ACEOF
13438program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
13439rm -f conftest.sed
13440
13441
13442
13443
13444
13445if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
13446 include_stdint_h="#include <stdint.h>"
13447else
13448 include_stdint_h="/* #include <stdint.h> */"
13449fi
13450if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
13451 include_stdarg_h="#include <cstdarg>"
13452else
13453 include_stdarg_h="/* #include <cstdarg> */"
13454fi
13455if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
13456 include_stdlib_h="#include <cstdlib>"
13457else
13458 include_stdlib_h="/* #include <cstdlib> */"
13459fi
13460if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
13461 include_unistd_h="#include <unistd.h>"
13462else
13463 include_unistd_h="/* #include <unistd.h> */"
13464fi
13465if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
13466 include_string_h="#include <cstring>"
13467else
13468 include_string_h="/* #include <cstring> */"
13469fi
13470if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
13471 include_fcntl_h="#include <fcntl.h>"
13472else
13473 include_fcntl_h="/* #include <fcntl.h> */"
13474fi
13475if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
13476 include_util_h="#include <util.h>"
13477else
13478 include_util_h="/* #include <util.h> */"
13479fi
13480if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
13481 include_assert_h="#include <assert.h>"
13482else
13483 include_assert_h="/* #include <assert.h> */"
13484fi
13485if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
13486 include_sys_ioctl_h="#include <sys/ioctl.h>"
13487else
13488 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
13489fi
13490if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
13491 include_sys_select_h="#include <sys/select.h>"
13492else
13493 include_sys_select_h="/* #include <sys/select.h> */"
13494fi
13495if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
13496 include_sys_strredir_h="#include <sys/strredir.h>"
13497else
13498 include_sys_strredir_h="/* #include <sys/strredir.h> */"
13499fi
13500if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
13501 include_sys_time_h="#include <sys/time.h>"
13502else
13503 include_sys_time_h="/* #include <sys/time.h> */"
13504fi
13505if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
13506 include_time_h="#include <time.h>"
13507else
13508 include_time_h="/* #include <time.h> */"
13509fi
13510
13511ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h" 8101ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
13512 8102
13513cat >confcache <<\_ACEOF 8103cat >confcache <<\_ACEOF
13514# This file is a shell script that caches the results of configure 8104# This file is a shell script that caches the results of configure
13515# tests run on this system so they can be shared between configure 8105# tests run on this system so they can be shared between configure
13516# scripts and configure runs, see configure's option --config-cache. 8106# scripts and configure runs, see configure's option --config-cache.
13535 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 8125 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13536 eval ac_val=\$$ac_var 8126 eval ac_val=\$$ac_var
13537 case $ac_val in #( 8127 case $ac_val in #(
13538 *${as_nl}*) 8128 *${as_nl}*)
13539 case $ac_var in #( 8129 case $ac_var in #(
13540 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 8130 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
13541echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 8131$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13542 esac 8132 esac
13543 case $ac_var in #( 8133 case $ac_var in #(
13544 _ | IFS | as_nl) ;; #( 8134 _ | IFS | as_nl) ;; #(
13545 *) $as_unset $ac_var ;; 8135 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8136 *) { eval $ac_var=; unset $ac_var;} ;;
13546 esac ;; 8137 esac ;;
13547 esac 8138 esac
13548 done 8139 done
13549 8140
13550 (set) 2>&1 | 8141 (set) 2>&1 |
13551 case $as_nl`(ac_space=' '; set) 2>&1` in #( 8142 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13552 *${as_nl}ac_space=\ *) 8143 *${as_nl}ac_space=\ *)
13553 # `set' does not quote correctly, so add quotes (double-quote 8144 # `set' does not quote correctly, so add quotes: double-quote
13554 # substitution turns \\\\ into \\, and sed turns \\ into \). 8145 # substitution turns \\\\ into \\, and sed turns \\ into \.
13555 sed -n \ 8146 sed -n \
13556 "s/'/'\\\\''/g; 8147 "s/'/'\\\\''/g;
13557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8148 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13558 ;; #( 8149 ;; #(
13559 *) 8150 *)
13571 t end 8162 t end
13572 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8163 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13573 :end' >>confcache 8164 :end' >>confcache
13574if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 8165if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13575 if test -w "$cache_file"; then 8166 if test -w "$cache_file"; then
13576 test "x$cache_file" != "x/dev/null" && 8167 if test "x$cache_file" != "x/dev/null"; then
13577 { echo "$as_me:$LINENO: updating cache $cache_file" >&5 8168 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
13578echo "$as_me: updating cache $cache_file" >&6;} 8169$as_echo "$as_me: updating cache $cache_file" >&6;}
8170 if test ! -f "$cache_file" || test -h "$cache_file"; then
13579 cat confcache >$cache_file 8171 cat confcache >"$cache_file"
8172 else
8173 case $cache_file in #(
8174 */* | ?:*)
8175 mv -f confcache "$cache_file"$$ &&
8176 mv -f "$cache_file"$$ "$cache_file" ;; #(
8177 *)
8178 mv -f confcache "$cache_file" ;;
8179 esac
8180 fi
8181 fi
13580 else 8182 else
13581 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 8183 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13582echo "$as_me: not updating unwritable cache $cache_file" >&6;} 8184$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13583 fi 8185 fi
13584fi 8186fi
13585rm -f confcache 8187rm -f confcache
13586 8188
13587test "x$prefix" = xNONE && prefix=$ac_default_prefix 8189test "x$prefix" = xNONE && prefix=$ac_default_prefix
13590 8192
13591DEFS=-DHAVE_CONFIG_H 8193DEFS=-DHAVE_CONFIG_H
13592 8194
13593ac_libobjs= 8195ac_libobjs=
13594ac_ltlibobjs= 8196ac_ltlibobjs=
8197U=
13595for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8198for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13596 # 1. Remove the extension, and $U if already installed. 8199 # 1. Remove the extension, and $U if already installed.
13597 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 8200 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13598 ac_i=`echo "$ac_i" | sed "$ac_script"` 8201 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13599 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 8202 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13600 # will be set to the directory where LIBOBJS objects are built. 8203 # will be set to the directory where LIBOBJS objects are built.
13601 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 8204 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13602 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 8205 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13603done 8206done
13604LIBOBJS=$ac_libobjs 8207LIBOBJS=$ac_libobjs
13605 8208
13606LTLIBOBJS=$ac_ltlibobjs 8209LTLIBOBJS=$ac_ltlibobjs
13607 8210
13608 8211
13609 8212
13610: ${CONFIG_STATUS=./config.status} 8213: "${CONFIG_STATUS=./config.status}"
8214ac_write_fail=0
13611ac_clean_files_save=$ac_clean_files 8215ac_clean_files_save=$ac_clean_files
13612ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8216ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13613{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8217{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13614echo "$as_me: creating $CONFIG_STATUS" >&6;} 8218$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13615cat >$CONFIG_STATUS <<_ACEOF 8219as_write_fail=0
8220cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13616#! $SHELL 8221#! $SHELL
13617# Generated by $as_me. 8222# Generated by $as_me.
13618# Run this file to recreate the current configuration. 8223# Run this file to recreate the current configuration.
13619# Compiler output produced by configure, useful for debugging 8224# Compiler output produced by configure, useful for debugging
13620# configure, is in config.log if it exists. 8225# configure, is in config.log if it exists.
13621 8226
13622debug=false 8227debug=false
13623ac_cs_recheck=false 8228ac_cs_recheck=false
13624ac_cs_silent=false 8229ac_cs_silent=false
8230
13625SHELL=\${CONFIG_SHELL-$SHELL} 8231SHELL=\${CONFIG_SHELL-$SHELL}
8232export SHELL
13626_ACEOF 8233_ASEOF
13627 8234cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13628cat >>$CONFIG_STATUS <<\_ACEOF
13629## --------------------- ## 8235## -------------------- ##
13630## M4sh Initialization. ## 8236## M4sh Initialization. ##
13631## --------------------- ## 8237## -------------------- ##
13632 8238
13633# Be more Bourne compatible 8239# Be more Bourne compatible
13634DUALCASE=1; export DUALCASE # for MKS sh 8240DUALCASE=1; export DUALCASE # for MKS sh
13635if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8241if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13636 emulate sh 8242 emulate sh
13637 NULLCMD=: 8243 NULLCMD=:
13638 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8244 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13639 # is contrary to our usage. Disable this feature. 8245 # is contrary to our usage. Disable this feature.
13640 alias -g '${1+"$@"}'='"$@"' 8246 alias -g '${1+"$@"}'='"$@"'
13641 setopt NO_GLOB_SUBST 8247 setopt NO_GLOB_SUBST
13642else 8248else
13643 case `(set -o) 2>/dev/null` in 8249 case `(set -o) 2>/dev/null` in #(
13644 *posix*) set -o posix ;; 8250 *posix*) :
8251 set -o posix ;; #(
8252 *) :
8253 ;;
13645esac 8254esac
13646
13647fi 8255fi
13648 8256
13649 8257
13650 8258as_nl='
13651 8259'
13652# PATH needs CR 8260export as_nl
13653# Avoid depending upon Character Ranges. 8261# Printing a long string crashes Solaris 7 /usr/bin/printf.
13654as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8262as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13655as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8263as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13656as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8264as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13657as_cr_digits='0123456789' 8265# Prefer a ksh shell builtin over an external printf program on Solaris,
13658as_cr_alnum=$as_cr_Letters$as_cr_digits 8266# but without wasting forks for bash or zsh.
8267if test -z "$BASH_VERSION$ZSH_VERSION" \
8268 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8269 as_echo='print -r --'
8270 as_echo_n='print -rn --'
8271elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8272 as_echo='printf %s\n'
8273 as_echo_n='printf %s'
8274else
8275 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8276 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8277 as_echo_n='/usr/ucb/echo -n'
8278 else
8279 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8280 as_echo_n_body='eval
8281 arg=$1;
8282 case $arg in #(
8283 *"$as_nl"*)
8284 expr "X$arg" : "X\\(.*\\)$as_nl";
8285 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8286 esac;
8287 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8288 '
8289 export as_echo_n_body
8290 as_echo_n='sh -c $as_echo_n_body as_echo'
8291 fi
8292 export as_echo_body
8293 as_echo='sh -c $as_echo_body as_echo'
8294fi
13659 8295
13660# The user is always right. 8296# The user is always right.
13661if test "${PATH_SEPARATOR+set}" != set; then 8297if test "${PATH_SEPARATOR+set}" != set; then
13662 echo "#! /bin/sh" >conf$$.sh 8298 PATH_SEPARATOR=:
13663 echo "exit 0" >>conf$$.sh 8299 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
13664 chmod +x conf$$.sh 8300 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
13665 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
13666 PATH_SEPARATOR=';' 8301 PATH_SEPARATOR=';'
13667 else 8302 }
13668 PATH_SEPARATOR=:
13669 fi
13670 rm -f conf$$.sh
13671fi
13672
13673# Support unset when possible.
13674if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
13675 as_unset=unset
13676else
13677 as_unset=false
13678fi 8303fi
13679 8304
13680 8305
13681# IFS 8306# IFS
13682# We need space, tab and new line, in precisely that order. Quoting is 8307# We need space, tab and new line, in precisely that order. Quoting is
13683# there to prevent editors from complaining about space-tab. 8308# there to prevent editors from complaining about space-tab.
13684# (If _AS_PATH_WALK were called with IFS unset, it would disable word 8309# (If _AS_PATH_WALK were called with IFS unset, it would disable word
13685# splitting by setting IFS to empty value.) 8310# splitting by setting IFS to empty value.)
13686as_nl='
13687'
13688IFS=" "" $as_nl" 8311IFS=" "" $as_nl"
13689 8312
13690# Find who we are. Look in the path if we contain no directory separator. 8313# Find who we are. Look in the path if we contain no directory separator.
8314as_myself=
13691case $0 in 8315case $0 in #((
13692 *[\\/]* ) as_myself=$0 ;; 8316 *[\\/]* ) as_myself=$0 ;;
13693 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8317 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13694for as_dir in $PATH 8318for as_dir in $PATH
13695do 8319do
13696 IFS=$as_save_IFS 8320 IFS=$as_save_IFS
13697 test -z "$as_dir" && as_dir=. 8321 test -z "$as_dir" && as_dir=.
13698 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 8322 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13699done 8323 done
13700IFS=$as_save_IFS 8324IFS=$as_save_IFS
13701 8325
13702 ;; 8326 ;;
13703esac 8327esac
13704# We did not find ourselves, most probably we were run as `sh COMMAND' 8328# We did not find ourselves, most probably we were run as `sh COMMAND'
13705# in which case we are not to be found in the path. 8329# in which case we are not to be found in the path.
13706if test "x$as_myself" = x; then 8330if test "x$as_myself" = x; then
13707 as_myself=$0 8331 as_myself=$0
13708fi 8332fi
13709if test ! -f "$as_myself"; then 8333if test ! -f "$as_myself"; then
13710 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 8334 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13711 { (exit 1); exit 1; } 8335 exit 1
13712fi 8336fi
13713 8337
13714# Work around bugs in pre-3.0 UWIN ksh. 8338# Unset variables that we do not need and which cause bugs (e.g. in
8339# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8340# suppresses any "Segmentation fault" message there. '((' could
8341# trigger a bug in pdksh 5.2.14.
13715for as_var in ENV MAIL MAILPATH 8342for as_var in BASH_ENV ENV MAIL MAILPATH
8343do eval test x\${$as_var+set} = xset \
13716do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8344 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13717done 8345done
13718PS1='$ ' 8346PS1='$ '
13719PS2='> ' 8347PS2='> '
13720PS4='+ ' 8348PS4='+ '
13721 8349
13722# NLS nuisances. 8350# NLS nuisances.
13723for as_var in \ 8351LC_ALL=C
13724 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8352export LC_ALL
13725 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8353LANGUAGE=C
13726 LC_TELEPHONE LC_TIME 8354export LANGUAGE
13727do 8355
13728 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8356# CDPATH.
13729 eval $as_var=C; export $as_var 8357(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8358
8359
8360# as_fn_error STATUS ERROR [LINENO LOG_FD]
8361# ----------------------------------------
8362# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8363# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8364# script with STATUS, using 1 if that was 0.
8365as_fn_error ()
8366{
8367 as_status=$1; test $as_status -eq 0 && as_status=1
8368 if test "$4"; then
8369 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8370 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8371 fi
8372 $as_echo "$as_me: error: $2" >&2
8373 as_fn_exit $as_status
8374} # as_fn_error
8375
8376
8377# as_fn_set_status STATUS
8378# -----------------------
8379# Set $? to STATUS, without forking.
8380as_fn_set_status ()
8381{
8382 return $1
8383} # as_fn_set_status
8384
8385# as_fn_exit STATUS
8386# -----------------
8387# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8388as_fn_exit ()
8389{
8390 set +e
8391 as_fn_set_status $1
8392 exit $1
8393} # as_fn_exit
8394
8395# as_fn_unset VAR
8396# ---------------
8397# Portably unset VAR.
8398as_fn_unset ()
8399{
8400 { eval $1=; unset $1;}
8401}
8402as_unset=as_fn_unset
8403# as_fn_append VAR VALUE
8404# ----------------------
8405# Append the text in VALUE to the end of the definition contained in VAR. Take
8406# advantage of any shell optimizations that allow amortized linear growth over
8407# repeated appends, instead of the typical quadratic growth present in naive
8408# implementations.
8409if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8410 eval 'as_fn_append ()
8411 {
8412 eval $1+=\$2
8413 }'
13730 else 8414else
13731 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 8415 as_fn_append ()
13732 fi 8416 {
13733done 8417 eval $1=\$$1\$2
8418 }
8419fi # as_fn_append
13734 8420
13735# Required to use basename. 8421# as_fn_arith ARG...
8422# ------------------
8423# Perform arithmetic evaluation on the ARGs, and store the result in the
8424# global $as_val. Take advantage of shells that can avoid forks. The arguments
8425# must be portable across $(()) and expr.
8426if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8427 eval 'as_fn_arith ()
8428 {
8429 as_val=$(( $* ))
8430 }'
8431else
8432 as_fn_arith ()
8433 {
8434 as_val=`expr "$@" || test $? -eq 1`
8435 }
8436fi # as_fn_arith
8437
8438
13736if expr a : '\(a\)' >/dev/null 2>&1 && 8439if expr a : '\(a\)' >/dev/null 2>&1 &&
13737 test "X`expr 00001 : '.*\(...\)'`" = X001; then 8440 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13738 as_expr=expr 8441 as_expr=expr
13739else 8442else
13740 as_expr=false 8443 as_expr=false
13744 as_basename=basename 8447 as_basename=basename
13745else 8448else
13746 as_basename=false 8449 as_basename=false
13747fi 8450fi
13748 8451
8452if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8453 as_dirname=dirname
8454else
8455 as_dirname=false
8456fi
13749 8457
13750# Name of the executable.
13751as_me=`$as_basename -- "$0" || 8458as_me=`$as_basename -- "$0" ||
13752$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8459$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13753 X"$0" : 'X\(//\)$' \| \ 8460 X"$0" : 'X\(//\)$' \| \
13754 X"$0" : 'X\(/\)' \| . 2>/dev/null || 8461 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13755echo X/"$0" | 8462$as_echo X/"$0" |
13756 sed '/^.*\/\([^/][^/]*\)\/*$/{ 8463 sed '/^.*\/\([^/][^/]*\)\/*$/{
13757 s//\1/ 8464 s//\1/
13758 q 8465 q
13759 } 8466 }
13760 /^X\/\(\/\/\)$/{ 8467 /^X\/\(\/\/\)$/{
13765 s//\1/ 8472 s//\1/
13766 q 8473 q
13767 } 8474 }
13768 s/.*/./; q'` 8475 s/.*/./; q'`
13769 8476
13770# CDPATH. 8477# Avoid depending upon Character Ranges.
13771$as_unset CDPATH 8478as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13772 8479as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13773 8480as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13774 8481as_cr_digits='0123456789'
13775 as_lineno_1=$LINENO 8482as_cr_alnum=$as_cr_Letters$as_cr_digits
13776 as_lineno_2=$LINENO
13777 test "x$as_lineno_1" != "x$as_lineno_2" &&
13778 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
13779
13780 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13781 # uniformly replaced by the line number. The first 'sed' inserts a
13782 # line-number line after each line using $LINENO; the second 'sed'
13783 # does the real work. The second script uses 'N' to pair each
13784 # line-number line with the line containing $LINENO, and appends
13785 # trailing '-' during substitution so that $LINENO is not a special
13786 # case at line end.
13787 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13788 # scripts with optimization help from Paolo Bonzini. Blame Lee
13789 # E. McMahon (1931-1989) for sed's syntax. :-)
13790 sed -n '
13791 p
13792 /[$]LINENO/=
13793 ' <$as_myself |
13794 sed '
13795 s/[$]LINENO.*/&-/
13796 t lineno
13797 b
13798 :lineno
13799 N
13800 :loop
13801 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
13802 t loop
13803 s/-\n.*//
13804 ' >$as_me.lineno &&
13805 chmod +x "$as_me.lineno" ||
13806 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
13807 { (exit 1); exit 1; }; }
13808
13809 # Don't try to exec as it changes $[0], causing all sort of problems
13810 # (the dirname of $[0] is not the place where we might find the
13811 # original and so on. Autoconf is especially sensitive to this).
13812 . "./$as_me.lineno"
13813 # Exit status is that of the last command.
13814 exit
13815}
13816
13817
13818if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13819 as_dirname=dirname
13820else
13821 as_dirname=false
13822fi
13823 8483
13824ECHO_C= ECHO_N= ECHO_T= 8484ECHO_C= ECHO_N= ECHO_T=
13825case `echo -n x` in 8485case `echo -n x` in #(((((
13826-n*) 8486-n*)
13827 case `echo 'x\c'` in 8487 case `echo 'xy\c'` in
13828 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 8488 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13829 *) ECHO_C='\c';; 8489 xy) ECHO_C='\c';;
8490 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8491 ECHO_T=' ';;
13830 esac;; 8492 esac;;
13831*) 8493*)
13832 ECHO_N='-n';; 8494 ECHO_N='-n';;
13833esac 8495esac
13834 8496
13835if expr a : '\(a\)' >/dev/null 2>&1 &&
13836 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13837 as_expr=expr
13838else
13839 as_expr=false
13840fi
13841
13842rm -f conf$$ conf$$.exe conf$$.file 8497rm -f conf$$ conf$$.exe conf$$.file
13843if test -d conf$$.dir; then 8498if test -d conf$$.dir; then
13844 rm -f conf$$.dir/conf$$.file 8499 rm -f conf$$.dir/conf$$.file
13845else 8500else
13846 rm -f conf$$.dir 8501 rm -f conf$$.dir
13847 mkdir conf$$.dir 8502 mkdir conf$$.dir 2>/dev/null
13848fi 8503fi
13849echo >conf$$.file 8504if (echo >conf$$.file) 2>/dev/null; then
13850if ln -s conf$$.file conf$$ 2>/dev/null; then 8505 if ln -s conf$$.file conf$$ 2>/dev/null; then
13851 as_ln_s='ln -s' 8506 as_ln_s='ln -s'
13852 # ... but there are two gotchas: 8507 # ... but there are two gotchas:
13853 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 8508 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
13854 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 8509 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
13855 # In both cases, we have to default to `cp -p'. 8510 # In both cases, we have to default to `cp -p'.
13856 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 8511 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8512 as_ln_s='cp -p'
8513 elif ln conf$$.file conf$$ 2>/dev/null; then
8514 as_ln_s=ln
8515 else
13857 as_ln_s='cp -p' 8516 as_ln_s='cp -p'
13858elif ln conf$$.file conf$$ 2>/dev/null; then 8517 fi
13859 as_ln_s=ln
13860else 8518else
13861 as_ln_s='cp -p' 8519 as_ln_s='cp -p'
13862fi 8520fi
13863rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 8521rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13864rmdir conf$$.dir 2>/dev/null 8522rmdir conf$$.dir 2>/dev/null
13865 8523
13866if mkdir -p . 2>/dev/null; then 8524
13867 as_mkdir_p=: 8525# as_fn_mkdir_p
13868else 8526# -------------
13869 test -d ./-p && rmdir ./-p 8527# Create "$as_dir" as a directory, including parents if necessary.
13870 as_mkdir_p=false 8528as_fn_mkdir_p ()
13871fi
13872
13873if test -x / >/dev/null 2>&1; then
13874 as_test_x='test -x'
13875else
13876 if ls -dL / >/dev/null 2>&1; then
13877 as_ls_L_option=L
13878 else
13879 as_ls_L_option=
13880 fi
13881 as_test_x='
13882 eval sh -c '\''
13883 if test -d "$1"; then
13884 test -d "$1/.";
13885 else
13886 case $1 in
13887 -*)set "./$1";;
13888 esac;
13889 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13890 ???[sx]*):;;*)false;;esac;fi
13891 '\'' sh
13892 '
13893fi
13894as_executable_p=$as_test_x
13895
13896# Sed expression to map a string onto a valid CPP name.
13897as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13898
13899# Sed expression to map a string onto a valid variable name.
13900as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13901
13902
13903exec 6>&1
13904
13905# Save the log message, to keep $[0] and so on meaningful, and to
13906# report actual input values of CONFIG_FILES etc. instead of their
13907# values after options handling.
13908ac_log="
13909This file was extended by $as_me, which was
13910generated by GNU Autoconf 2.61. Invocation command line was
13911
13912 CONFIG_FILES = $CONFIG_FILES
13913 CONFIG_HEADERS = $CONFIG_HEADERS
13914 CONFIG_LINKS = $CONFIG_LINKS
13915 CONFIG_COMMANDS = $CONFIG_COMMANDS
13916 $ $0 $@
13917
13918on `(hostname || uname -n) 2>/dev/null | sed 1q`
13919"
13920
13921_ACEOF
13922
13923cat >>$CONFIG_STATUS <<_ACEOF
13924# Files that config.status was made for.
13925config_files="$ac_config_files"
13926config_headers="$ac_config_headers"
13927
13928_ACEOF
13929
13930cat >>$CONFIG_STATUS <<\_ACEOF
13931ac_cs_usage="\
13932\`$as_me' instantiates files from templates according to the
13933current configuration.
13934
13935Usage: $0 [OPTIONS] [FILE]...
13936
13937 -h, --help print this help, then exit
13938 -V, --version print version number and configuration settings, then exit
13939 -q, --quiet do not print progress messages
13940 -d, --debug don't remove temporary files
13941 --recheck update $as_me by reconfiguring in the same conditions
13942 --file=FILE[:TEMPLATE]
13943 instantiate the configuration file FILE
13944 --header=FILE[:TEMPLATE]
13945 instantiate the configuration header FILE
13946
13947Configuration files:
13948$config_files
13949
13950Configuration headers:
13951$config_headers
13952
13953Report bugs to <bug-autoconf@gnu.org>."
13954
13955_ACEOF
13956cat >>$CONFIG_STATUS <<_ACEOF
13957ac_cs_version="\\
13958config.status
13959configured by $0, generated by GNU Autoconf 2.61,
13960 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13961
13962Copyright (C) 2006 Free Software Foundation, Inc.
13963This config.status script is free software; the Free Software Foundation
13964gives unlimited permission to copy, distribute and modify it."
13965
13966ac_pwd='$ac_pwd'
13967srcdir='$srcdir'
13968INSTALL='$INSTALL'
13969_ACEOF
13970
13971cat >>$CONFIG_STATUS <<\_ACEOF
13972# If no file are specified by the user, then we need to provide default
13973# value. By we need to know if files were specified by the user.
13974ac_need_defaults=:
13975while test $# != 0
13976do
13977 case $1 in
13978 --*=*)
13979 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13980 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13981 ac_shift=:
13982 ;;
13983 *)
13984 ac_option=$1
13985 ac_optarg=$2
13986 ac_shift=shift
13987 ;;
13988 esac
13989
13990 case $ac_option in
13991 # Handling of the options.
13992 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13993 ac_cs_recheck=: ;;
13994 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13995 echo "$ac_cs_version"; exit ;;
13996 --debug | --debu | --deb | --de | --d | -d )
13997 debug=: ;;
13998 --file | --fil | --fi | --f )
13999 $ac_shift
14000 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
14001 ac_need_defaults=false;;
14002 --header | --heade | --head | --hea )
14003 $ac_shift
14004 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
14005 ac_need_defaults=false;;
14006 --he | --h)
14007 # Conflict between --help and --header
14008 { echo "$as_me: error: ambiguous option: $1
14009Try \`$0 --help' for more information." >&2
14010 { (exit 1); exit 1; }; };;
14011 --help | --hel | -h )
14012 echo "$ac_cs_usage"; exit ;;
14013 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14014 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14015 ac_cs_silent=: ;;
14016
14017 # This is an error.
14018 -*) { echo "$as_me: error: unrecognized option: $1
14019Try \`$0 --help' for more information." >&2
14020 { (exit 1); exit 1; }; } ;;
14021
14022 *) ac_config_targets="$ac_config_targets $1"
14023 ac_need_defaults=false ;;
14024
14025 esac
14026 shift
14027done
14028
14029ac_configure_extra_args=
14030
14031if $ac_cs_silent; then
14032 exec 6>/dev/null
14033 ac_configure_extra_args="$ac_configure_extra_args --silent"
14034fi
14035
14036_ACEOF
14037cat >>$CONFIG_STATUS <<_ACEOF
14038if \$ac_cs_recheck; then
14039 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
14040 CONFIG_SHELL=$SHELL
14041 export CONFIG_SHELL
14042 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
14043fi
14044
14045_ACEOF
14046cat >>$CONFIG_STATUS <<\_ACEOF
14047exec 5>>config.log
14048{ 8529{
14049 echo
14050 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
14051## Running $as_me. ##
14052_ASBOX
14053 echo "$ac_log"
14054} >&5
14055 8530
14056_ACEOF
14057cat >>$CONFIG_STATUS <<_ACEOF
14058_ACEOF
14059
14060cat >>$CONFIG_STATUS <<\_ACEOF
14061
14062# Handling of arguments.
14063for ac_config_target in $ac_config_targets
14064do
14065 case $ac_config_target in
14066 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
14067 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
14068 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
14069 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
14070 "src/rxvtlib.h") CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;;
14071
14072 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
14073echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
14074 { (exit 1); exit 1; }; };;
14075 esac
14076done
14077
14078
14079# If the user did not use the arguments to specify the items to instantiate,
14080# then the envvar interface is used. Set only those that are not.
14081# We use the long form for the default assignment because of an extremely
14082# bizarre bug on SunOS 4.1.3.
14083if $ac_need_defaults; then
14084 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
14085 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
14086fi
14087
14088# Have a temporary directory for convenience. Make it in the build tree
14089# simply because there is no reason against having it here, and in addition,
14090# creating and moving files from /tmp can sometimes cause problems.
14091# Hook for its removal unless debugging.
14092# Note that there is a small window in which the directory will not be cleaned:
14093# after its creation but before its name has been assigned to `$tmp'.
14094$debug ||
14095{
14096 tmp=
14097 trap 'exit_status=$?
14098 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14099' 0
14100 trap '{ (exit 1); exit 1; }' 1 2 13 15
14101}
14102# Create a (secure) tmp directory for tmp files.
14103
14104{
14105 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14106 test -n "$tmp" && test -d "$tmp"
14107} ||
14108{
14109 tmp=./conf$$-$RANDOM
14110 (umask 077 && mkdir "$tmp")
14111} ||
14112{
14113 echo "$me: cannot create a temporary directory in ." >&2
14114 { (exit 1); exit 1; }
14115}
14116
14117#
14118# Set up the sed scripts for CONFIG_FILES section.
14119#
14120
14121# No need to generate the scripts if there are no CONFIG_FILES.
14122# This happens for instance when ./config.status config.h
14123if test -n "$CONFIG_FILES"; then
14124
14125_ACEOF
14126
14127
14128
14129ac_delim='%!_!# '
14130for ac_last_try in false false false false false :; do
14131 cat >conf$$subs.sed <<_ACEOF
14132SHELL!$SHELL$ac_delim
14133PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
14134PACKAGE_NAME!$PACKAGE_NAME$ac_delim
14135PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
14136PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
14137PACKAGE_STRING!$PACKAGE_STRING$ac_delim
14138PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
14139exec_prefix!$exec_prefix$ac_delim
14140prefix!$prefix$ac_delim
14141program_transform_name!$program_transform_name$ac_delim
14142bindir!$bindir$ac_delim
14143sbindir!$sbindir$ac_delim
14144libexecdir!$libexecdir$ac_delim
14145datarootdir!$datarootdir$ac_delim
14146datadir!$datadir$ac_delim
14147sysconfdir!$sysconfdir$ac_delim
14148sharedstatedir!$sharedstatedir$ac_delim
14149localstatedir!$localstatedir$ac_delim
14150includedir!$includedir$ac_delim
14151oldincludedir!$oldincludedir$ac_delim
14152docdir!$docdir$ac_delim
14153infodir!$infodir$ac_delim
14154htmldir!$htmldir$ac_delim
14155dvidir!$dvidir$ac_delim
14156pdfdir!$pdfdir$ac_delim
14157psdir!$psdir$ac_delim
14158libdir!$libdir$ac_delim
14159localedir!$localedir$ac_delim
14160mandir!$mandir$ac_delim
14161DEFS!$DEFS$ac_delim
14162ECHO_C!$ECHO_C$ac_delim
14163ECHO_N!$ECHO_N$ac_delim
14164ECHO_T!$ECHO_T$ac_delim
14165LIBS!$LIBS$ac_delim
14166build_alias!$build_alias$ac_delim
14167host_alias!$host_alias$ac_delim
14168target_alias!$target_alias$ac_delim
14169build!$build$ac_delim
14170build_cpu!$build_cpu$ac_delim
14171build_vendor!$build_vendor$ac_delim
14172build_os!$build_os$ac_delim
14173host!$host$ac_delim
14174host_cpu!$host_cpu$ac_delim
14175host_vendor!$host_vendor$ac_delim
14176host_os!$host_os$ac_delim
14177VERSION!$VERSION$ac_delim
14178DATE!$DATE$ac_delim
14179LSMDATE!$LSMDATE$ac_delim
14180LIBVERSION!$LIBVERSION$ac_delim
14181CC!$CC$ac_delim
14182CFLAGS!$CFLAGS$ac_delim
14183LDFLAGS!$LDFLAGS$ac_delim
14184CPPFLAGS!$CPPFLAGS$ac_delim
14185ac_ct_CC!$ac_ct_CC$ac_delim
14186EXEEXT!$EXEEXT$ac_delim
14187OBJEXT!$OBJEXT$ac_delim
14188CXX!$CXX$ac_delim
14189CXXFLAGS!$CXXFLAGS$ac_delim
14190ac_ct_CXX!$ac_ct_CXX$ac_delim
14191CPP!$CPP$ac_delim
14192INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
14193INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
14194INSTALL_DATA!$INSTALL_DATA$ac_delim
14195GREP!$GREP$ac_delim
14196EGREP!$EGREP$ac_delim
14197LINKER!$LINKER$ac_delim
14198INSTALL_LIBRXVT!$INSTALL_LIBRXVT$ac_delim
14199RXVTNAME!$RXVTNAME$ac_delim
14200TIC!$TIC$ac_delim
14201XMKMF!$XMKMF$ac_delim
14202CXXCPP!$CXXCPP$ac_delim
14203X_CFLAGS!$X_CFLAGS$ac_delim
14204X_PRE_LIBS!$X_PRE_LIBS$ac_delim
14205X_LIBS!$X_LIBS$ac_delim
14206X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim
14207afterimage_config!$afterimage_config$ac_delim
14208XPM_CPPFLAGS!$XPM_CPPFLAGS$ac_delim
14209XPM_CFLAGS!$XPM_CFLAGS$ac_delim
14210XPM_LIBS!$XPM_LIBS$ac_delim
14211rxvt_int16_typedef!$rxvt_int16_typedef$ac_delim
14212rxvt_uint16_typedef!$rxvt_uint16_typedef$ac_delim
14213rxvt_int32_typedef!$rxvt_int32_typedef$ac_delim
14214rxvt_uint32_typedef!$rxvt_uint32_typedef$ac_delim
14215rxvt_intp_define!$rxvt_intp_define$ac_delim
14216rxvt_u_intp_define!$rxvt_u_intp_define$ac_delim
14217PKG_CONFIG!$PKG_CONFIG$ac_delim
14218XFT_CONFIG!$XFT_CONFIG$ac_delim
14219PERL!$PERL$ac_delim
14220PERLLIB!$PERLLIB$ac_delim
14221PERLFLAGS!$PERLFLAGS$ac_delim
14222PERLPRIVLIBEXP!$PERLPRIVLIBEXP$ac_delim
14223IF_PERL!$IF_PERL$ac_delim
14224PERL_O!$PERL_O$ac_delim
14225AFTERIMAGE_CFLAGS!$AFTERIMAGE_CFLAGS$ac_delim
14226AFTERIMAGE_LIBS!$AFTERIMAGE_LIBS$ac_delim
14227include_stdint_h!$include_stdint_h$ac_delim
14228include_stdarg_h!$include_stdarg_h$ac_delim
14229_ACEOF
14230
14231 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
14232 break
14233 elif $ac_last_try; then
14234 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14235echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14236 { (exit 1); exit 1; }; }
14237 else
14238 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14239 fi
14240done
14241
14242ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14243if test -n "$ac_eof"; then
14244 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14245 ac_eof=`expr $ac_eof + 1`
14246fi
14247
14248cat >>$CONFIG_STATUS <<_ACEOF
14249cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
14250/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14251_ACEOF
14252sed '
14253s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14254s/^/s,@/; s/!/@,|#_!!_#|/
14255:n
14256t n
14257s/'"$ac_delim"'$/,g/; t
14258s/$/\\/; p
14259N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14260' >>$CONFIG_STATUS <conf$$subs.sed
14261rm -f conf$$subs.sed
14262cat >>$CONFIG_STATUS <<_ACEOF
14263CEOF$ac_eof
14264_ACEOF
14265
14266
14267ac_delim='%!_!# '
14268for ac_last_try in false false false false false :; do
14269 cat >conf$$subs.sed <<_ACEOF
14270include_stdlib_h!$include_stdlib_h$ac_delim
14271include_unistd_h!$include_unistd_h$ac_delim
14272include_string_h!$include_string_h$ac_delim
14273include_fcntl_h!$include_fcntl_h$ac_delim
14274include_util_h!$include_util_h$ac_delim
14275include_assert_h!$include_assert_h$ac_delim
14276include_sys_ioctl_h!$include_sys_ioctl_h$ac_delim
14277include_sys_select_h!$include_sys_select_h$ac_delim
14278include_sys_strredir_h!$include_sys_strredir_h$ac_delim
14279include_sys_time_h!$include_sys_time_h$ac_delim
14280include_time_h!$include_time_h$ac_delim
14281LIBOBJS!$LIBOBJS$ac_delim
14282LTLIBOBJS!$LTLIBOBJS$ac_delim
14283_ACEOF
14284
14285 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
14286 break
14287 elif $ac_last_try; then
14288 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14289echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14290 { (exit 1); exit 1; }; }
14291 else
14292 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14293 fi
14294done
14295
14296ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
14297if test -n "$ac_eof"; then
14298 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
14299 ac_eof=`expr $ac_eof + 1`
14300fi
14301
14302cat >>$CONFIG_STATUS <<_ACEOF
14303cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
14304/@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
14305_ACEOF
14306sed '
14307s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
14308s/^/s,@/; s/!/@,|#_!!_#|/
14309:n
14310t n
14311s/'"$ac_delim"'$/,g/; t
14312s/$/\\/; p
14313N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
14314' >>$CONFIG_STATUS <conf$$subs.sed
14315rm -f conf$$subs.sed
14316cat >>$CONFIG_STATUS <<_ACEOF
14317:end
14318s/|#_!!_#|//g
14319CEOF$ac_eof
14320_ACEOF
14321
14322
14323# VPATH may cause trouble with some makes, so we remove $(srcdir),
14324# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14325# trailing colons and then remove the whole line if VPATH becomes empty
14326# (actually we leave an empty line to preserve line numbers).
14327if test "x$srcdir" = x.; then
14328 ac_vpsub='/^[ ]*VPATH[ ]*=/{
14329s/:*\$(srcdir):*/:/
14330s/:*\${srcdir}:*/:/
14331s/:*@srcdir@:*/:/
14332s/^\([^=]*=[ ]*\):*/\1/
14333s/:*$//
14334s/^[^=]*=[ ]*$//
14335}'
14336fi
14337
14338cat >>$CONFIG_STATUS <<\_ACEOF
14339fi # test -n "$CONFIG_FILES"
14340
14341
14342for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS
14343do
14344 case $ac_tag in
14345 :[FHLC]) ac_mode=$ac_tag; continue;;
14346 esac
14347 case $ac_mode$ac_tag in
14348 :[FHL]*:*);;
14349 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
14350echo "$as_me: error: Invalid tag $ac_tag." >&2;}
14351 { (exit 1); exit 1; }; };;
14352 :[FH]-) ac_tag=-:-;;
14353 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14354 esac
14355 ac_save_IFS=$IFS
14356 IFS=:
14357 set x $ac_tag
14358 IFS=$ac_save_IFS
14359 shift
14360 ac_file=$1
14361 shift
14362
14363 case $ac_mode in
14364 :L) ac_source=$1;;
14365 :[FH])
14366 ac_file_inputs=
14367 for ac_f
14368 do
14369 case $ac_f in
14370 -) ac_f="$tmp/stdin";;
14371 *) # Look for the file first in the build tree, then in the source tree
14372 # (if the path is not absolute). The absolute path cannot be DOS-style,
14373 # because $ac_f cannot contain `:'.
14374 test -f "$ac_f" ||
14375 case $ac_f in
14376 [\\/$]*) false;;
14377 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14378 esac ||
14379 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
14380echo "$as_me: error: cannot find input file: $ac_f" >&2;}
14381 { (exit 1); exit 1; }; };;
14382 esac
14383 ac_file_inputs="$ac_file_inputs $ac_f"
14384 done
14385
14386 # Let's still pretend it is `configure' which instantiates (i.e., don't
14387 # use $as_me), people would be surprised to read:
14388 # /* config.h. Generated by config.status. */
14389 configure_input="Generated from "`IFS=:
14390 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
14391 if test x"$ac_file" != x-; then
14392 configure_input="$ac_file. $configure_input"
14393 { echo "$as_me:$LINENO: creating $ac_file" >&5
14394echo "$as_me: creating $ac_file" >&6;}
14395 fi
14396
14397 case $ac_tag in
14398 *:-:* | *:-) cat >"$tmp/stdin";;
14399 esac
14400 ;;
14401 esac
14402
14403 ac_dir=`$as_dirname -- "$ac_file" ||
14404$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14405 X"$ac_file" : 'X\(//\)[^/]' \| \
14406 X"$ac_file" : 'X\(//\)$' \| \
14407 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
14408echo X"$ac_file" |
14409 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14410 s//\1/
14411 q
14412 }
14413 /^X\(\/\/\)[^/].*/{
14414 s//\1/
14415 q
14416 }
14417 /^X\(\/\/\)$/{
14418 s//\1/
14419 q
14420 }
14421 /^X\(\/\).*/{
14422 s//\1/
14423 q
14424 }
14425 s/.*/./; q'`
14426 { as_dir="$ac_dir"
14427 case $as_dir in #( 8531 case $as_dir in #(
14428 -*) as_dir=./$as_dir;; 8532 -*) as_dir=./$as_dir;;
14429 esac 8533 esac
14430 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { 8534 test -d "$as_dir" || eval $as_mkdir_p || {
14431 as_dirs= 8535 as_dirs=
14432 while :; do 8536 while :; do
14433 case $as_dir in #( 8537 case $as_dir in #(
14434 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( 8538 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14435 *) as_qdir=$as_dir;; 8539 *) as_qdir=$as_dir;;
14436 esac 8540 esac
14437 as_dirs="'$as_qdir' $as_dirs" 8541 as_dirs="'$as_qdir' $as_dirs"
14438 as_dir=`$as_dirname -- "$as_dir" || 8542 as_dir=`$as_dirname -- "$as_dir" ||
14439$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 8543$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14440 X"$as_dir" : 'X\(//\)[^/]' \| \ 8544 X"$as_dir" : 'X\(//\)[^/]' \| \
14441 X"$as_dir" : 'X\(//\)$' \| \ 8545 X"$as_dir" : 'X\(//\)$' \| \
14442 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 8546 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14443echo X"$as_dir" | 8547$as_echo X"$as_dir" |
14444 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 8548 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14445 s//\1/ 8549 s//\1/
14446 q 8550 q
14447 } 8551 }
14448 /^X\(\/\/\)[^/].*/{ 8552 /^X\(\/\/\)[^/].*/{
14459 } 8563 }
14460 s/.*/./; q'` 8564 s/.*/./; q'`
14461 test -d "$as_dir" && break 8565 test -d "$as_dir" && break
14462 done 8566 done
14463 test -z "$as_dirs" || eval "mkdir $as_dirs" 8567 test -z "$as_dirs" || eval "mkdir $as_dirs"
14464 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 8568 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
14465echo "$as_me: error: cannot create directory $as_dir" >&2;} 8569
14466 { (exit 1); exit 1; }; }; } 8570
8571} # as_fn_mkdir_p
8572if mkdir -p . 2>/dev/null; then
8573 as_mkdir_p='mkdir -p "$as_dir"'
8574else
8575 test -d ./-p && rmdir ./-p
8576 as_mkdir_p=false
8577fi
8578
8579if test -x / >/dev/null 2>&1; then
8580 as_test_x='test -x'
8581else
8582 if ls -dL / >/dev/null 2>&1; then
8583 as_ls_L_option=L
8584 else
8585 as_ls_L_option=
8586 fi
8587 as_test_x='
8588 eval sh -c '\''
8589 if test -d "$1"; then
8590 test -d "$1/.";
8591 else
8592 case $1 in #(
8593 -*)set "./$1";;
8594 esac;
8595 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
8596 ???[sx]*):;;*)false;;esac;fi
8597 '\'' sh
8598 '
8599fi
8600as_executable_p=$as_test_x
8601
8602# Sed expression to map a string onto a valid CPP name.
8603as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8604
8605# Sed expression to map a string onto a valid variable name.
8606as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8607
8608
8609exec 6>&1
8610## ----------------------------------- ##
8611## Main body of $CONFIG_STATUS script. ##
8612## ----------------------------------- ##
8613_ASEOF
8614test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8615
8616cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8617# Save the log message, to keep $0 and so on meaningful, and to
8618# report actual input values of CONFIG_FILES etc. instead of their
8619# values after options handling.
8620ac_log="
8621This file was extended by $as_me, which was
8622generated by GNU Autoconf 2.68. Invocation command line was
8623
8624 CONFIG_FILES = $CONFIG_FILES
8625 CONFIG_HEADERS = $CONFIG_HEADERS
8626 CONFIG_LINKS = $CONFIG_LINKS
8627 CONFIG_COMMANDS = $CONFIG_COMMANDS
8628 $ $0 $@
8629
8630on `(hostname || uname -n) 2>/dev/null | sed 1q`
8631"
8632
8633_ACEOF
8634
8635case $ac_config_files in *"
8636"*) set x $ac_config_files; shift; ac_config_files=$*;;
8637esac
8638
8639case $ac_config_headers in *"
8640"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8641esac
8642
8643
8644cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8645# Files that config.status was made for.
8646config_files="$ac_config_files"
8647config_headers="$ac_config_headers"
8648
8649_ACEOF
8650
8651cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8652ac_cs_usage="\
8653\`$as_me' instantiates files and other configuration actions
8654from templates according to the current configuration. Unless the files
8655and actions are specified as TAGs, all are instantiated by default.
8656
8657Usage: $0 [OPTION]... [TAG]...
8658
8659 -h, --help print this help, then exit
8660 -V, --version print version number and configuration settings, then exit
8661 --config print configuration, then exit
8662 -q, --quiet, --silent
8663 do not print progress messages
8664 -d, --debug don't remove temporary files
8665 --recheck update $as_me by reconfiguring in the same conditions
8666 --file=FILE[:TEMPLATE]
8667 instantiate the configuration file FILE
8668 --header=FILE[:TEMPLATE]
8669 instantiate the configuration header FILE
8670
8671Configuration files:
8672$config_files
8673
8674Configuration headers:
8675$config_headers
8676
8677Report bugs to the package provider."
8678
8679_ACEOF
8680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8681ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8682ac_cs_version="\\
8683config.status
8684configured by $0, generated by GNU Autoconf 2.68,
8685 with options \\"\$ac_cs_config\\"
8686
8687Copyright (C) 2010 Free Software Foundation, Inc.
8688This config.status script is free software; the Free Software Foundation
8689gives unlimited permission to copy, distribute and modify it."
8690
8691ac_pwd='$ac_pwd'
8692srcdir='$srcdir'
8693INSTALL='$INSTALL'
8694test -n "\$AWK" || AWK=awk
8695_ACEOF
8696
8697cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8698# The default lists apply if the user does not specify any file.
8699ac_need_defaults=:
8700while test $# != 0
8701do
8702 case $1 in
8703 --*=?*)
8704 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8705 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8706 ac_shift=:
8707 ;;
8708 --*=)
8709 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8710 ac_optarg=
8711 ac_shift=:
8712 ;;
8713 *)
8714 ac_option=$1
8715 ac_optarg=$2
8716 ac_shift=shift
8717 ;;
8718 esac
8719
8720 case $ac_option in
8721 # Handling of the options.
8722 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8723 ac_cs_recheck=: ;;
8724 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8725 $as_echo "$ac_cs_version"; exit ;;
8726 --config | --confi | --conf | --con | --co | --c )
8727 $as_echo "$ac_cs_config"; exit ;;
8728 --debug | --debu | --deb | --de | --d | -d )
8729 debug=: ;;
8730 --file | --fil | --fi | --f )
8731 $ac_shift
8732 case $ac_optarg in
8733 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8734 '') as_fn_error $? "missing file argument" ;;
8735 esac
8736 as_fn_append CONFIG_FILES " '$ac_optarg'"
8737 ac_need_defaults=false;;
8738 --header | --heade | --head | --hea )
8739 $ac_shift
8740 case $ac_optarg in
8741 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8742 esac
8743 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8744 ac_need_defaults=false;;
8745 --he | --h)
8746 # Conflict between --help and --header
8747 as_fn_error $? "ambiguous option: \`$1'
8748Try \`$0 --help' for more information.";;
8749 --help | --hel | -h )
8750 $as_echo "$ac_cs_usage"; exit ;;
8751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8752 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8753 ac_cs_silent=: ;;
8754
8755 # This is an error.
8756 -*) as_fn_error $? "unrecognized option: \`$1'
8757Try \`$0 --help' for more information." ;;
8758
8759 *) as_fn_append ac_config_targets " $1"
8760 ac_need_defaults=false ;;
8761
8762 esac
8763 shift
8764done
8765
8766ac_configure_extra_args=
8767
8768if $ac_cs_silent; then
8769 exec 6>/dev/null
8770 ac_configure_extra_args="$ac_configure_extra_args --silent"
8771fi
8772
8773_ACEOF
8774cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8775if \$ac_cs_recheck; then
8776 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8777 shift
8778 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8779 CONFIG_SHELL='$SHELL'
8780 export CONFIG_SHELL
8781 exec "\$@"
8782fi
8783
8784_ACEOF
8785cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8786exec 5>>config.log
8787{
8788 echo
8789 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8790## Running $as_me. ##
8791_ASBOX
8792 $as_echo "$ac_log"
8793} >&5
8794
8795_ACEOF
8796cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8797_ACEOF
8798
8799cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8800
8801# Handling of arguments.
8802for ac_config_target in $ac_config_targets
8803do
8804 case $ac_config_target in
8805 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
8806 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8807 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
8808 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8809
8810 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8811 esac
8812done
8813
8814
8815# If the user did not use the arguments to specify the items to instantiate,
8816# then the envvar interface is used. Set only those that are not.
8817# We use the long form for the default assignment because of an extremely
8818# bizarre bug on SunOS 4.1.3.
8819if $ac_need_defaults; then
8820 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
8821 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
8822fi
8823
8824# Have a temporary directory for convenience. Make it in the build tree
8825# simply because there is no reason against having it here, and in addition,
8826# creating and moving files from /tmp can sometimes cause problems.
8827# Hook for its removal unless debugging.
8828# Note that there is a small window in which the directory will not be cleaned:
8829# after its creation but before its name has been assigned to `$tmp'.
8830$debug ||
8831{
8832 tmp= ac_tmp=
8833 trap 'exit_status=$?
8834 : "${ac_tmp:=$tmp}"
8835 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8836' 0
8837 trap 'as_fn_exit 1' 1 2 13 15
8838}
8839# Create a (secure) tmp directory for tmp files.
8840
8841{
8842 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
8843 test -d "$tmp"
8844} ||
8845{
8846 tmp=./conf$$-$RANDOM
8847 (umask 077 && mkdir "$tmp")
8848} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8849ac_tmp=$tmp
8850
8851# Set up the scripts for CONFIG_FILES section.
8852# No need to generate them if there are no CONFIG_FILES.
8853# This happens for instance with `./config.status config.h'.
8854if test -n "$CONFIG_FILES"; then
8855
8856
8857ac_cr=`echo X | tr X '\015'`
8858# On cygwin, bash can eat \r inside `` if the user requested igncr.
8859# But we know of no other shell where ac_cr would be empty at this
8860# point, so we can use a bashism as a fallback.
8861if test "x$ac_cr" = x; then
8862 eval ac_cr=\$\'\\r\'
8863fi
8864ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8865if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8866 ac_cs_awk_cr='\\r'
8867else
8868 ac_cs_awk_cr=$ac_cr
8869fi
8870
8871echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8872_ACEOF
8873
8874
8875{
8876 echo "cat >conf$$subs.awk <<_ACEOF" &&
8877 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8878 echo "_ACEOF"
8879} >conf$$subs.sh ||
8880 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8881ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8882ac_delim='%!_!# '
8883for ac_last_try in false false false false false :; do
8884 . ./conf$$subs.sh ||
8885 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8886
8887 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8888 if test $ac_delim_n = $ac_delim_num; then
8889 break
8890 elif $ac_last_try; then
8891 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8892 else
8893 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8894 fi
8895done
8896rm -f conf$$subs.sh
8897
8898cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8899cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8900_ACEOF
8901sed -n '
8902h
8903s/^/S["/; s/!.*/"]=/
8904p
8905g
8906s/^[^!]*!//
8907:repl
8908t repl
8909s/'"$ac_delim"'$//
8910t delim
8911:nl
8912h
8913s/\(.\{148\}\)..*/\1/
8914t more1
8915s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8916p
8917n
8918b repl
8919:more1
8920s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8921p
8922g
8923s/.\{148\}//
8924t nl
8925:delim
8926h
8927s/\(.\{148\}\)..*/\1/
8928t more2
8929s/["\\]/\\&/g; s/^/"/; s/$/"/
8930p
8931b
8932:more2
8933s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8934p
8935g
8936s/.\{148\}//
8937t delim
8938' <conf$$subs.awk | sed '
8939/^[^""]/{
8940 N
8941 s/\n//
8942}
8943' >>$CONFIG_STATUS || ac_write_fail=1
8944rm -f conf$$subs.awk
8945cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8946_ACAWK
8947cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8948 for (key in S) S_is_set[key] = 1
8949 FS = ""
8950
8951}
8952{
8953 line = $ 0
8954 nfields = split(line, field, "@")
8955 substed = 0
8956 len = length(field[1])
8957 for (i = 2; i < nfields; i++) {
8958 key = field[i]
8959 keylen = length(key)
8960 if (S_is_set[key]) {
8961 value = S[key]
8962 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8963 len += length(value) + length(field[++i])
8964 substed = 1
8965 } else
8966 len += 1 + keylen
8967 }
8968
8969 print line
8970}
8971
8972_ACAWK
8973_ACEOF
8974cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8975if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8976 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8977else
8978 cat
8979fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8980 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8981_ACEOF
8982
8983# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8984# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8985# trailing colons and then remove the whole line if VPATH becomes empty
8986# (actually we leave an empty line to preserve line numbers).
8987if test "x$srcdir" = x.; then
8988 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8989h
8990s///
8991s/^/:/
8992s/[ ]*$/:/
8993s/:\$(srcdir):/:/g
8994s/:\${srcdir}:/:/g
8995s/:@srcdir@:/:/g
8996s/^:*//
8997s/:*$//
8998x
8999s/\(=[ ]*\).*/\1/
9000G
9001s/\n//
9002s/^[^=]*=[ ]*$//
9003}'
9004fi
9005
9006cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9007fi # test -n "$CONFIG_FILES"
9008
9009# Set up the scripts for CONFIG_HEADERS section.
9010# No need to generate them if there are no CONFIG_HEADERS.
9011# This happens for instance with `./config.status Makefile'.
9012if test -n "$CONFIG_HEADERS"; then
9013cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9014BEGIN {
9015_ACEOF
9016
9017# Transform confdefs.h into an awk script `defines.awk', embedded as
9018# here-document in config.status, that substitutes the proper values into
9019# config.h.in to produce config.h.
9020
9021# Create a delimiter string that does not exist in confdefs.h, to ease
9022# handling of long lines.
9023ac_delim='%!_!# '
9024for ac_last_try in false false :; do
9025 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9026 if test -z "$ac_tt"; then
9027 break
9028 elif $ac_last_try; then
9029 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9030 else
9031 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9032 fi
9033done
9034
9035# For the awk script, D is an array of macro values keyed by name,
9036# likewise P contains macro parameters if any. Preserve backslash
9037# newline sequences.
9038
9039ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9040sed -n '
9041s/.\{148\}/&'"$ac_delim"'/g
9042t rset
9043:rset
9044s/^[ ]*#[ ]*define[ ][ ]*/ /
9045t def
9046d
9047:def
9048s/\\$//
9049t bsnl
9050s/["\\]/\\&/g
9051s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9052D["\1"]=" \3"/p
9053s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9054d
9055:bsnl
9056s/["\\]/\\&/g
9057s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9058D["\1"]=" \3\\\\\\n"\\/p
9059t cont
9060s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9061t cont
9062d
9063:cont
9064n
9065s/.\{148\}/&'"$ac_delim"'/g
9066t clear
9067:clear
9068s/\\$//
9069t bsnlc
9070s/["\\]/\\&/g; s/^/"/; s/$/"/p
9071d
9072:bsnlc
9073s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9074b cont
9075' <confdefs.h | sed '
9076s/'"$ac_delim"'/"\\\
9077"/g' >>$CONFIG_STATUS || ac_write_fail=1
9078
9079cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9080 for (key in D) D_is_set[key] = 1
9081 FS = ""
9082}
9083/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9084 line = \$ 0
9085 split(line, arg, " ")
9086 if (arg[1] == "#") {
9087 defundef = arg[2]
9088 mac1 = arg[3]
9089 } else {
9090 defundef = substr(arg[1], 2)
9091 mac1 = arg[2]
9092 }
9093 split(mac1, mac2, "(") #)
9094 macro = mac2[1]
9095 prefix = substr(line, 1, index(line, defundef) - 1)
9096 if (D_is_set[macro]) {
9097 # Preserve the white space surrounding the "#".
9098 print prefix "define", macro P[macro] D[macro]
9099 next
9100 } else {
9101 # Replace #undef with comments. This is necessary, for example,
9102 # in the case of _POSIX_SOURCE, which is predefined and required
9103 # on some systems where configure will not decide to define it.
9104 if (defundef == "undef") {
9105 print "/*", prefix defundef, macro, "*/"
9106 next
9107 }
9108 }
9109}
9110{ print }
9111_ACAWK
9112_ACEOF
9113cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9114 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9115fi # test -n "$CONFIG_HEADERS"
9116
9117
9118eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
9119shift
9120for ac_tag
9121do
9122 case $ac_tag in
9123 :[FHLC]) ac_mode=$ac_tag; continue;;
9124 esac
9125 case $ac_mode$ac_tag in
9126 :[FHL]*:*);;
9127 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9128 :[FH]-) ac_tag=-:-;;
9129 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9130 esac
9131 ac_save_IFS=$IFS
9132 IFS=:
9133 set x $ac_tag
9134 IFS=$ac_save_IFS
9135 shift
9136 ac_file=$1
9137 shift
9138
9139 case $ac_mode in
9140 :L) ac_source=$1;;
9141 :[FH])
9142 ac_file_inputs=
9143 for ac_f
9144 do
9145 case $ac_f in
9146 -) ac_f="$ac_tmp/stdin";;
9147 *) # Look for the file first in the build tree, then in the source tree
9148 # (if the path is not absolute). The absolute path cannot be DOS-style,
9149 # because $ac_f cannot contain `:'.
9150 test -f "$ac_f" ||
9151 case $ac_f in
9152 [\\/$]*) false;;
9153 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9154 esac ||
9155 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9156 esac
9157 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9158 as_fn_append ac_file_inputs " '$ac_f'"
9159 done
9160
9161 # Let's still pretend it is `configure' which instantiates (i.e., don't
9162 # use $as_me), people would be surprised to read:
9163 # /* config.h. Generated by config.status. */
9164 configure_input='Generated from '`
9165 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9166 `' by configure.'
9167 if test x"$ac_file" != x-; then
9168 configure_input="$ac_file. $configure_input"
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9170$as_echo "$as_me: creating $ac_file" >&6;}
9171 fi
9172 # Neutralize special characters interpreted by sed in replacement strings.
9173 case $configure_input in #(
9174 *\&* | *\|* | *\\* )
9175 ac_sed_conf_input=`$as_echo "$configure_input" |
9176 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9177 *) ac_sed_conf_input=$configure_input;;
9178 esac
9179
9180 case $ac_tag in
9181 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9182 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9183 esac
9184 ;;
9185 esac
9186
9187 ac_dir=`$as_dirname -- "$ac_file" ||
9188$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9189 X"$ac_file" : 'X\(//\)[^/]' \| \
9190 X"$ac_file" : 'X\(//\)$' \| \
9191 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9192$as_echo X"$ac_file" |
9193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9194 s//\1/
9195 q
9196 }
9197 /^X\(\/\/\)[^/].*/{
9198 s//\1/
9199 q
9200 }
9201 /^X\(\/\/\)$/{
9202 s//\1/
9203 q
9204 }
9205 /^X\(\/\).*/{
9206 s//\1/
9207 q
9208 }
9209 s/.*/./; q'`
9210 as_dir="$ac_dir"; as_fn_mkdir_p
14467 ac_builddir=. 9211 ac_builddir=.
14468 9212
14469case "$ac_dir" in 9213case "$ac_dir" in
14470.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 9214.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14471*) 9215*)
14472 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9216 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
14473 # A ".." for each directory in $ac_dir_suffix. 9217 # A ".." for each directory in $ac_dir_suffix.
14474 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` 9218 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
14475 case $ac_top_builddir_sub in 9219 case $ac_top_builddir_sub in
14476 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 9220 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
14477 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 9221 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
14478 esac ;; 9222 esac ;;
14479esac 9223esac
14509 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9253 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
14510 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 9254 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
14511 esac 9255 esac
14512_ACEOF 9256_ACEOF
14513 9257
14514cat >>$CONFIG_STATUS <<\_ACEOF 9258cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14515# If the template does not know about datarootdir, expand it. 9259# If the template does not know about datarootdir, expand it.
14516# FIXME: This hack should be removed a few years after 2.60. 9260# FIXME: This hack should be removed a few years after 2.60.
14517ac_datarootdir_hack=; ac_datarootdir_seen= 9261ac_datarootdir_hack=; ac_datarootdir_seen=
14518 9262ac_sed_dataroot='
14519case `sed -n '/datarootdir/ { 9263/datarootdir/ {
14520 p 9264 p
14521 q 9265 q
14522} 9266}
14523/@datadir@/p 9267/@datadir@/p
14524/@docdir@/p 9268/@docdir@/p
14525/@infodir@/p 9269/@infodir@/p
14526/@localedir@/p 9270/@localedir@/p
14527/@mandir@/p 9271/@mandir@/p'
14528' $ac_file_inputs` in 9272case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14529*datarootdir*) ac_datarootdir_seen=yes;; 9273*datarootdir*) ac_datarootdir_seen=yes;;
14530*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 9274*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14531 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 9275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14532echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 9276$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14533_ACEOF 9277_ACEOF
14534cat >>$CONFIG_STATUS <<_ACEOF 9278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14535 ac_datarootdir_hack=' 9279 ac_datarootdir_hack='
14536 s&@datadir@&$datadir&g 9280 s&@datadir@&$datadir&g
14537 s&@docdir@&$docdir&g 9281 s&@docdir@&$docdir&g
14538 s&@infodir@&$infodir&g 9282 s&@infodir@&$infodir&g
14539 s&@localedir@&$localedir&g 9283 s&@localedir@&$localedir&g
14540 s&@mandir@&$mandir&g 9284 s&@mandir@&$mandir&g
14541 s&\\\${datarootdir}&$datarootdir&g' ;; 9285 s&\\\${datarootdir}&$datarootdir&g' ;;
14542esac 9286esac
14543_ACEOF 9287_ACEOF
14544 9288
14545# Neutralize VPATH when `$srcdir' = `.'. 9289# Neutralize VPATH when `$srcdir' = `.'.
14546# Shell code in configure.ac might set extrasub. 9290# Shell code in configure.ac might set extrasub.
14547# FIXME: do we really want to maintain this feature? 9291# FIXME: do we really want to maintain this feature?
14548cat >>$CONFIG_STATUS <<_ACEOF 9292cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14549 sed "$ac_vpsub 9293ac_sed_extra="$ac_vpsub
14550$extrasub 9294$extrasub
14551_ACEOF 9295_ACEOF
14552cat >>$CONFIG_STATUS <<\_ACEOF 9296cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14553:t 9297:t
14554/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9298/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
14555s&@configure_input@&$configure_input&;t t 9299s|@configure_input@|$ac_sed_conf_input|;t t
14556s&@top_builddir@&$ac_top_builddir_sub&;t t 9300s&@top_builddir@&$ac_top_builddir_sub&;t t
9301s&@top_build_prefix@&$ac_top_build_prefix&;t t
14557s&@srcdir@&$ac_srcdir&;t t 9302s&@srcdir@&$ac_srcdir&;t t
14558s&@abs_srcdir@&$ac_abs_srcdir&;t t 9303s&@abs_srcdir@&$ac_abs_srcdir&;t t
14559s&@top_srcdir@&$ac_top_srcdir&;t t 9304s&@top_srcdir@&$ac_top_srcdir&;t t
14560s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 9305s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
14561s&@builddir@&$ac_builddir&;t t 9306s&@builddir@&$ac_builddir&;t t
14562s&@abs_builddir@&$ac_abs_builddir&;t t 9307s&@abs_builddir@&$ac_abs_builddir&;t t
14563s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 9308s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
14564s&@INSTALL@&$ac_INSTALL&;t t 9309s&@INSTALL@&$ac_INSTALL&;t t
14565$ac_datarootdir_hack 9310$ac_datarootdir_hack
14566" $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out 9311"
9312eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9313 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14567 9314
14568test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 9315test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14569 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 9316 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
14570 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 9317 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9318 "$ac_tmp/out"`; test -z "$ac_out"; } &&
14571 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14572which seems to be undefined. Please make sure it is defined." >&5 9320which seems to be undefined. Please make sure it is defined" >&5
14573echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 9321$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14574which seems to be undefined. Please make sure it is defined." >&2;} 9322which seems to be undefined. Please make sure it is defined" >&2;}
14575 9323
14576 rm -f "$tmp/stdin" 9324 rm -f "$ac_tmp/stdin"
14577 case $ac_file in 9325 case $ac_file in
14578 -) cat "$tmp/out"; rm -f "$tmp/out";; 9326 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
14579 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; 9327 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
14580 esac 9328 esac \
9329 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14581 ;; 9330 ;;
14582 :H) 9331 :H)
14583 # 9332 #
14584 # CONFIG_HEADER 9333 # CONFIG_HEADER
14585 # 9334 #
14586_ACEOF
14587
14588# Transform confdefs.h into a sed script `conftest.defines', that
14589# substitutes the proper values into config.h.in to produce config.h.
14590rm -f conftest.defines conftest.tail
14591# First, append a space to every undef/define line, to ease matching.
14592echo 's/$/ /' >conftest.defines
14593# Then, protect against being on the right side of a sed subst, or in
14594# an unquoted here document, in config.status. If some macros were
14595# called several times there might be several #defines for the same
14596# symbol, which is useless. But do not sort them, since the last
14597# AC_DEFINE must be honored.
14598ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
14599# These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
14600# NAME is the cpp macro being defined, VALUE is the value it is being given.
14601# PARAMS is the parameter list in the macro definition--in most cases, it's
14602# just an empty string.
14603ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
14604ac_dB='\\)[ (].*,\\1define\\2'
14605ac_dC=' '
14606ac_dD=' ,'
14607
14608uniq confdefs.h |
14609 sed -n '
14610 t rset
14611 :rset
14612 s/^[ ]*#[ ]*define[ ][ ]*//
14613 t ok
14614 d
14615 :ok
14616 s/[\\&,]/\\&/g
14617 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
14618 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
14619 ' >>conftest.defines
14620
14621# Remove the space that was appended to ease matching.
14622# Then replace #undef with comments. This is necessary, for
14623# example, in the case of _POSIX_SOURCE, which is predefined and required
14624# on some systems where configure will not decide to define it.
14625# (The regexp can be short, since the line contains either #define or #undef.)
14626echo 's/ $//
14627s,^[ #]*u.*,/* & */,' >>conftest.defines
14628
14629# Break up conftest.defines:
14630ac_max_sed_lines=50
14631
14632# First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
14633# Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
14634# Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
14635# et cetera.
14636ac_in='$ac_file_inputs'
14637ac_out='"$tmp/out1"'
14638ac_nxt='"$tmp/out2"'
14639
14640while :
14641do
14642 # Write a here document:
14643 cat >>$CONFIG_STATUS <<_ACEOF
14644 # First, check the format of the line:
14645 cat >"\$tmp/defines.sed" <<\\CEOF
14646/^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
14647/^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
14648b
14649:def
14650_ACEOF
14651 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
14652 echo 'CEOF
14653 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
14654 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
14655 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
14656 grep . conftest.tail >/dev/null || break
14657 rm -f conftest.defines
14658 mv conftest.tail conftest.defines
14659done
14660rm -f conftest.defines conftest.tail
14661
14662echo "ac_result=$ac_in" >>$CONFIG_STATUS
14663cat >>$CONFIG_STATUS <<\_ACEOF
14664 if test x"$ac_file" != x-; then 9335 if test x"$ac_file" != x-; then
9336 {
14665 echo "/* $configure_input */" >"$tmp/config.h" 9337 $as_echo "/* $configure_input */" \
14666 cat "$ac_result" >>"$tmp/config.h" 9338 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9339 } >"$ac_tmp/config.h" \
9340 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14667 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then 9341 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14668 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9342 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14669echo "$as_me: $ac_file is unchanged" >&6;} 9343$as_echo "$as_me: $ac_file is unchanged" >&6;}
14670 else 9344 else
14671 rm -f $ac_file 9345 rm -f "$ac_file"
14672 mv "$tmp/config.h" $ac_file 9346 mv "$ac_tmp/config.h" "$ac_file" \
9347 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14673 fi 9348 fi
14674 else 9349 else
14675 echo "/* $configure_input */" 9350 $as_echo "/* $configure_input */" \
14676 cat "$ac_result" 9351 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9352 || as_fn_error $? "could not create -" "$LINENO" 5
14677 fi 9353 fi
14678 rm -f "$tmp/out12"
14679 ;; 9354 ;;
14680 9355
14681 9356
14682 esac 9357 esac
14683 9358
14684done # for ac_tag 9359done # for ac_tag
14685 9360
14686 9361
14687{ (exit 0); exit 0; } 9362as_fn_exit 0
14688_ACEOF 9363_ACEOF
14689chmod +x $CONFIG_STATUS
14690ac_clean_files=$ac_clean_files_save 9364ac_clean_files=$ac_clean_files_save
9365
9366test $ac_write_fail = 0 ||
9367 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14691 9368
14692 9369
14693# configure is writing to config.log, and then calls config.status. 9370# configure is writing to config.log, and then calls config.status.
14694# config.status does its own redirection, appending to config.log. 9371# config.status does its own redirection, appending to config.log.
14695# Unfortunately, on DOS this fails, as config.log is still kept open 9372# Unfortunately, on DOS this fails, as config.log is still kept open
14706 exec 5>/dev/null 9383 exec 5>/dev/null
14707 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9384 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14708 exec 5>>config.log 9385 exec 5>>config.log
14709 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9386 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14710 # would make configure fail if this is the last instruction. 9387 # would make configure fail if this is the last instruction.
14711 $ac_cs_success || { (exit 1); exit 1; } 9388 $ac_cs_success || as_fn_exit 1
9389fi
9390if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9392$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14712fi 9393fi
14713 9394
14714 9395
14715echo "Configuration: 9396echo "Configuration:
14716 9397
14719 Install path: ${prefix}/bin 9400 Install path: ${prefix}/bin
14720 Compiler: $CXX 9401 Compiler: $CXX
14721 Compiler flags: $CXXFLAGS 9402 Compiler flags: $CXXFLAGS
14722 Linker: $LINKER" 9403 Linker: $LINKER"
14723 9404
14724if test x$support_xpm = xyes; then
14725 echo " Xpm library: $XPM_LIBS"
14726fi
14727
14728if test x$support_afterimage = xyes; then
14729 echo " AfterImage support: yes"
14730fi
14731
14732
14733if test x$term != x; then 9405if test x$term != x; then
14734 echo " set TERM to: $term" 9406 echo " set TERM to: $term"
14735fi 9407fi
14736if test x$terminfo != x; then 9408if test x$terminfo != x; then
14737 echo " set TERMINFO to: $terminfo" 9409 echo " set TERMINFO to: $terminfo"
14741if test x$RESFALLBACK != x; then 9413if test x$RESFALLBACK != x; then
14742 echo " resource class fallback: $RESFALLBACK" 9414 echo " resource class fallback: $RESFALLBACK"
14743fi 9415fi
14744echo 9416echo
14745echo " embedded perl: $support_perl" 9417echo " embedded perl: $support_perl"
14746echo " libafterimage: $support_afterimage" 9418echo " image library: $image_lib"
14747echo 9419echo
14748if test x$support_xpm = xneedsmanualspecification; then
14749 echo ".----------------------------------------------------------------."
14750 echo ". WARNING: --enable-xpm-background was specified however the ."
14751 echo ". XPM includes files and libraries could not be found. ."
14752 echo ". XPM backgrounds are now being DISABLED! If you want ."
14753 echo ". to use them you should rerun configure with the ."
14754 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14755 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14756 echo ".----------------------------------------------------------------."
14757fi
14758if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then 9420if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14759 echo ".----------------------------------------------------------------." 9421 echo ".----------------------------------------------------------------."
14760 echo ". WARNING: --enable-xim was specified however the locale support ." 9422 echo ". WARNING: --enable-xim was specified however the locale support ."
14761 echo ". functions could not be found. ." 9423 echo ". functions could not be found. ."
14762 echo ". XIM is now being DISABLED! ." 9424 echo ". XIM is now being DISABLED! ."

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines