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

Comparing rxvt-unicode/configure (file contents):
Revision 1.75 by root, Tue Jan 17 11:53:07 2006 UTC vs.
Revision 1.164 by root, Thu Jun 20 23:07:42 2019 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.59. 3# Generated by GNU Autoconf 2.69.
4# 4#
5#
5# Copyright (C) 2003 Free Software Foundation, Inc. 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7#
8#
6# This configure script is free software; the Free Software Foundation 9# This configure script is free software; the Free Software Foundation
7# gives unlimited permission to copy, distribute and modify it. 10# gives unlimited permission to copy, distribute and modify it.
8## --------------------- ## 11## -------------------- ##
9## M4sh Initialization. ## 12## M4sh Initialization. ##
10## --------------------- ## 13## -------------------- ##
11 14
12# Be Bourne compatible 15# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh
13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
14 emulate sh 18 emulate sh
15 NULLCMD=: 19 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature. 21 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"' 22 alias -g '${1+"$@"}'='"$@"'
19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 23 setopt NO_GLOB_SUBST
24else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
20 set -o posix 27 set -o posix ;; #(
28 *) :
29 ;;
30esac
21fi 31fi
22DUALCASE=1; export DUALCASE # for MKS sh
23 32
24# Support unset when possible. 33
25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 34as_nl='
26 as_unset=unset 35'
36export as_nl
37# Printing a long string crashes Solaris 7 /usr/bin/printf.
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41# Prefer a ksh shell builtin over an external printf program on Solaris,
42# but without wasting forks for bash or zsh.
43if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
27else 54 else
28 as_unset=false 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
29fi 70fi
30 71
72# The user is always right.
73if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79fi
31 80
32# Work around bugs in pre-3.0 UWIN ksh. 81
33$as_unset ENV MAIL MAILPATH 82# IFS
83# We need space, tab and new line, in precisely that order. Quoting is
84# there to prevent editors from complaining about space-tab.
85# (If _AS_PATH_WALK were called with IFS unset, it would disable word
86# splitting by setting IFS to empty value.)
87IFS=" "" $as_nl"
88
89# Find who we are. Look in the path if we contain no directory separator.
90as_myself=
91case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94for as_dir in $PATH
95do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100IFS=$as_save_IFS
101
102 ;;
103esac
104# We did not find ourselves, most probably we were run as `sh COMMAND'
105# in which case we are not to be found in the path.
106if test "x$as_myself" = x; then
107 as_myself=$0
108fi
109if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112fi
113
114# Unset variables that we do not need and which cause bugs (e.g. in
115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116# suppresses any "Segmentation fault" message there. '((' could
117# trigger a bug in pdksh 5.2.14.
118for as_var in BASH_ENV ENV MAIL MAILPATH
119do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121done
34PS1='$ ' 122PS1='$ '
35PS2='> ' 123PS2='> '
36PS4='+ ' 124PS4='+ '
37 125
38# NLS nuisances. 126# NLS nuisances.
39for as_var in \ 127LC_ALL=C
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 128export LC_ALL
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 129LANGUAGE=C
42 LC_TELEPHONE LC_TIME 130export LANGUAGE
131
132# CDPATH.
133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135# Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140# neutralization value for shells without unset; and this also
141# works around shells that cannot unset nonexistent variables.
142# Preserve -v and -x to the replacement shell.
143BASH_ENV=/dev/null
144ENV=/dev/null
145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151esac
152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153# Admittedly, this is quite paranoid, since all the known shells bail
154# out after a failed `exec'.
155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174esac
175fi
176"
177 as_required="as_fn_return () { (exit \$1); }
178as_fn_success () { as_fn_return 0; }
179as_fn_failure () { as_fn_return 1; }
180as_fn_ret_success () { return 0; }
181as_fn_ret_failure () { return 1; }
182
183exitcode=0
184as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190else
191 exitcode=1; echo positional parameters were not saved.
192fi
193test x\$exitcode = x0 || exit 1
194test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202else
203 as_have_required=no
204fi
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
206
207else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209as_found=false
210for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
43do 211do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 212 IFS=$as_save_IFS
45 eval $as_var=C; export $as_var 213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
216 /*)
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
225fi
226fi
227 done;;
228 esac
229 as_found=false
230done
231$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234fi; }
235IFS=$as_save_IFS
236
237
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241# neutralization value for shells without unset; and this also
242# works around shells that cannot unset nonexistent variables.
243# Preserve -v and -x to the replacement shell.
244BASH_ENV=/dev/null
245ENV=/dev/null
246(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252esac
253exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254# Admittedly, this is quite paranoid, since all the known shells bail
255# out after a failed `exec'.
256$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257exit 255
258fi
259
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
46 else 266 else
47 $as_unset $as_var 267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268$0: including any error possibly output before this
269$0: message. Then install a modern shell, or manually run
270$0: the script under such a shell if you do have one."
48 fi 271 fi
49done 272 exit 1
273fi
274fi
275fi
276SHELL=${CONFIG_SHELL-/bin/sh}
277export SHELL
278# Unset more variables known to interfere with behavior of common tools.
279CLICOLOR_FORCE= GREP_OPTIONS=
280unset CLICOLOR_FORCE GREP_OPTIONS
50 281
51# Required to use basename. 282## --------------------- ##
283## M4sh Shell Functions. ##
284## --------------------- ##
285# as_fn_unset VAR
286# ---------------
287# Portably unset VAR.
288as_fn_unset ()
289{
290 { eval $1=; unset $1;}
291}
292as_unset=as_fn_unset
293
294# as_fn_set_status STATUS
295# -----------------------
296# Set $? to STATUS, without forking.
297as_fn_set_status ()
298{
299 return $1
300} # as_fn_set_status
301
302# as_fn_exit STATUS
303# -----------------
304# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305as_fn_exit ()
306{
307 set +e
308 as_fn_set_status $1
309 exit $1
310} # as_fn_exit
311
312# as_fn_mkdir_p
313# -------------
314# Create "$as_dir" as a directory, including parents if necessary.
315as_fn_mkdir_p ()
316{
317
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334$as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
337 q
338 }
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
341 q
342 }
343 /^X\(\/\/\)$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\).*/{
348 s//\1/
349 q
350 }
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
356
357
358} # as_fn_mkdir_p
359
360# as_fn_executable_p FILE
361# -----------------------
362# Test if FILE is an executable regular file.
363as_fn_executable_p ()
364{
365 test -f "$1" && test -x "$1"
366} # as_fn_executable_p
367# as_fn_append VAR VALUE
368# ----------------------
369# Append the text in VALUE to the end of the definition contained in VAR. Take
370# advantage of any shell optimizations that allow amortized linear growth over
371# repeated appends, instead of the typical quadratic growth present in naive
372# implementations.
373if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
375 {
376 eval $1+=\$2
377 }'
378else
379 as_fn_append ()
380 {
381 eval $1=\$$1\$2
382 }
383fi # as_fn_append
384
385# as_fn_arith ARG...
386# ------------------
387# Perform arithmetic evaluation on the ARGs, and store the result in the
388# global $as_val. Take advantage of shells that can avoid forks. The arguments
389# must be portable across $(()) and expr.
390if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
392 {
393 as_val=$(( $* ))
394 }'
395else
396 as_fn_arith ()
397 {
398 as_val=`expr "$@" || test $? -eq 1`
399 }
400fi # as_fn_arith
401
402
403# as_fn_error STATUS ERROR [LINENO LOG_FD]
404# ----------------------------------------
405# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407# script with STATUS, using 1 if that was 0.
408as_fn_error ()
409{
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
414 fi
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417} # as_fn_error
418
52if expr a : '\(a\)' >/dev/null 2>&1; then 419if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
53 as_expr=expr 421 as_expr=expr
54else 422else
55 as_expr=false 423 as_expr=false
56fi 424fi
57 425
58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 426if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
59 as_basename=basename 427 as_basename=basename
60else 428else
61 as_basename=false 429 as_basename=false
62fi 430fi
63 431
432if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434else
435 as_dirname=false
436fi
64 437
65# Name of the executable.
66as_me=`$as_basename "$0" || 438as_me=`$as_basename -- "$0" ||
67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 439$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \ 440 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \ 441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
70 . : '\(.\)' 2>/dev/null ||
71echo X/"$0" | 442$as_echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 443 sed '/^.*\/\([^/][^/]*\)\/*$/{
73 /^X\/\(\/\/\)$/{ s//\1/; q; } 444 s//\1/
74 /^X\/\(\/\).*/{ s//\1/; q; } 445 q
446 }
447 /^X\/\(\/\/\)$/{
448 s//\1/
449 q
450 }
451 /^X\/\(\/\).*/{
452 s//\1/
453 q
454 }
75 s/.*/./; q'` 455 s/.*/./; q'`
76 456
77
78# PATH needs CR, and LINENO needs CR and PATH.
79# Avoid depending upon Character Ranges. 457# Avoid depending upon Character Ranges.
80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 458as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 459as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 460as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83as_cr_digits='0123456789' 461as_cr_digits='0123456789'
84as_cr_alnum=$as_cr_Letters$as_cr_digits 462as_cr_alnum=$as_cr_Letters$as_cr_digits
85 463
86# The user is always right.
87if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97fi
98 464
99 465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
100 as_lineno_1=$LINENO 466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" && 467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || { 468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
105 # Find who we are. Look in the path if we contain no path at all 469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
106 # relative or not. 470 sed -n '
107 case $0 in 471 p
108 *[\\/]* ) as_myself=$0 ;; 472 /[$]LINENO/=
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110for as_dir in $PATH
111do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152done
153;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself | 473 ' <$as_myself |
165 sed ' 474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
477 b
478 :lineno
166 N 479 N
167 s,$,-,
168 : loop 480 :loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
170 t loop 482 t loop
171 s,-$,, 483 s/-\n.*//
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno && 484 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno || 485 chmod +x "$as_me.lineno" ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
176 { (exit 1); exit 1; }; }
177 487
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
178 # Don't try to exec as it changes $[0], causing all sort of problems 492 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the 493 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this). 494 # original and so on. Autoconf is especially sensitive to this).
181 . ./$as_me.lineno 495 . "./$as_me.lineno"
182 # Exit status is that of the last command. 496 # Exit status is that of the last command.
183 exit 497 exit
184} 498}
185 499
186 500ECHO_C= ECHO_N= ECHO_T=
187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 501case `echo -n x` in #(((((
188 *c*,-n*) ECHO_N= ECHO_C=' 502-n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
189' ECHO_T=' ' ;; 507 ECHO_T=' ';;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 508 esac;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 509*)
510 ECHO_N='-n';;
192esac 511esac
193 512
194if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196else
197 as_expr=false
198fi
199
200rm -f conf$$ conf$$.exe conf$$.file 513rm -f conf$$ conf$$.exe conf$$.file
201echo >conf$$.file 514if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
519fi
520if (echo >conf$$.file) 2>/dev/null; then
202if ln -s conf$$.file conf$$ 2>/dev/null; then 521 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic 522 as_ln_s='ln -s'
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 523 # ... but there are two gotchas:
205 if test -f conf$$.exe; then 524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
206 # Don't use ln at all; we don't have any links 525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
207 as_ln_s='cp -p' 528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
208 else 531 else
209 as_ln_s='ln -s' 532 as_ln_s='cp -pR'
210 fi 533 fi
211elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213else 534else
214 as_ln_s='cp -p' 535 as_ln_s='cp -pR'
215fi 536fi
216rm -f conf$$ conf$$.exe conf$$.file 537rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538rmdir conf$$.dir 2>/dev/null
217 539
218if mkdir -p . 2>/dev/null; then 540if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=: 541 as_mkdir_p='mkdir -p "$as_dir"'
220else 542else
221 test -d ./-p && rmdir ./-p 543 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false 544 as_mkdir_p=false
223fi 545fi
224 546
225as_executable_p="test -f" 547as_test_x='test -x'
548as_executable_p=as_fn_executable_p
226 549
227# Sed expression to map a string onto a valid CPP name. 550# Sed expression to map a string onto a valid CPP name.
228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 551as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229 552
230# Sed expression to map a string onto a valid variable name. 553# Sed expression to map a string onto a valid variable name.
231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 554as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232 555
233 556
234# IFS 557test -n "$DJDIR" || exec 7<&0 </dev/null
235# We need space, tab and new line, in precisely that order. 558exec 6>&1
236as_nl='
237'
238IFS=" $as_nl"
239
240# CDPATH.
241$as_unset CDPATH
242
243 559
244# Name of the host. 560# Name of the host.
245# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 561# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
246# so uname gets run too. 562# so uname gets run too.
247ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 563ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249exec 6>&1
250 564
251# 565#
252# Initializations. 566# Initializations.
253# 567#
254ac_default_prefix=/usr/local 568ac_default_prefix=/usr/local
569ac_clean_files=
255ac_config_libobj_dir=. 570ac_config_libobj_dir=.
571LIBOBJS=
256cross_compiling=no 572cross_compiling=no
257subdirs= 573subdirs=
258MFLAGS= 574MFLAGS=
259MAKEFLAGS= 575MAKEFLAGS=
260SHELL=${CONFIG_SHELL-/bin/sh}
261
262# Maximum number of lines to put in a shell here document.
263# This variable seems obsolete. It should probably be removed, and
264# only ac_max_sed_lines should be used.
265: ${ac_max_here_lines=38}
266 576
267# Identity of this package. 577# Identity of this package.
268PACKAGE_NAME= 578PACKAGE_NAME=
269PACKAGE_TARNAME= 579PACKAGE_TARNAME=
270PACKAGE_VERSION= 580PACKAGE_VERSION=
271PACKAGE_STRING= 581PACKAGE_STRING=
272PACKAGE_BUGREPORT= 582PACKAGE_BUGREPORT=
583PACKAGE_URL=
273 584
274ac_unique_file="src/feature.h" 585ac_unique_file="src/feature.h"
275# Factoring default headers for most tests. 586# Factoring default headers for most tests.
276ac_includes_default="\ 587ac_includes_default="\
277#include <stdio.h> 588#include <stdio.h>
278#if HAVE_SYS_TYPES_H 589#ifdef HAVE_SYS_TYPES_H
279# include <sys/types.h> 590# include <sys/types.h>
280#endif 591#endif
281#if HAVE_SYS_STAT_H 592#ifdef HAVE_SYS_STAT_H
282# include <sys/stat.h> 593# include <sys/stat.h>
283#endif 594#endif
284#if STDC_HEADERS 595#ifdef STDC_HEADERS
285# include <stdlib.h> 596# include <stdlib.h>
286# include <stddef.h> 597# include <stddef.h>
287#else 598#else
288# if HAVE_STDLIB_H 599# ifdef HAVE_STDLIB_H
289# include <stdlib.h> 600# include <stdlib.h>
290# endif 601# endif
291#endif 602#endif
292#if HAVE_STRING_H 603#ifdef HAVE_STRING_H
293# if !STDC_HEADERS && HAVE_MEMORY_H 604# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
294# include <memory.h> 605# include <memory.h>
295# endif 606# endif
296# include <string.h> 607# include <string.h>
297#endif 608#endif
298#if HAVE_STRINGS_H 609#ifdef HAVE_STRINGS_H
299# include <strings.h> 610# include <strings.h>
300#endif 611#endif
301#if HAVE_INTTYPES_H 612#ifdef HAVE_INTTYPES_H
302# include <inttypes.h> 613# include <inttypes.h>
303#else
304# if HAVE_STDINT_H
305# include <stdint.h>
306# endif
307#endif 614#endif
615#ifdef HAVE_STDINT_H
616# include <stdint.h>
617#endif
308#if HAVE_UNISTD_H 618#ifdef HAVE_UNISTD_H
309# include <unistd.h> 619# include <unistd.h>
310#endif" 620#endif"
311 621
312ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os VERSION DATE LSMDATE LIBVERSION CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX CPP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA AWK LINKER CXXCPP EGREP INSTALL_LIBRXVT RXVTNAME MV RM CP LN SED ECHO CMP TBL TIC X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XPM_CPPFLAGS XPM_CFLAGS XPM_LIBS rxvt_int16_typedef rxvt_uint16_typedef rxvt_int32_typedef rxvt_uint32_typedef rxvt_intp_define rxvt_u_intp_define PERL PERLLIB PERLFLAGS PERLPRIVLIBEXP IF_PERL PERL_O DEBUG DINCLUDE DLIB include_stdint_h include_stdarg_h include_stdlib_h include_unistd_h include_string_h include_fcntl_h include_util_h include_assert_h include_sys_ioctl_h include_sys_select_h include_sys_strredir_h include_sys_time_h include_time_h LIBOBJS LTLIBOBJS' 622ac_subst_vars='LTLIBOBJS
623LIBOBJS
624PERL_O
625IF_PERL
626PERLPRIVLIBEXP
627PERLFLAGS
628PERLLIB
629PERL
630XFT_CONFIG
631STARTUP_NOTIFICATION_LIBS
632STARTUP_NOTIFICATION_CFLAGS
633PIXBUF_LIBS
634PIXBUF_CFLAGS
635PKG_CONFIG
636X_EXTRA_LIBS
637X_LIBS
638X_PRE_LIBS
639X_CFLAGS
640XMKMF
641TIC
642CXXCPP
643RXVTNAME
644LINKER
645EGREP
646GREP
647CPP
648INSTALL_DATA
649INSTALL_SCRIPT
650INSTALL_PROGRAM
651ac_ct_CXX
652CXXFLAGS
653CXX
654OBJEXT
655EXEEXT
656ac_ct_CC
657CPPFLAGS
658LDFLAGS
659CFLAGS
660CC
661DATE
662VERSION
663host_os
664host_vendor
665host_cpu
666host
667build_os
668build_vendor
669build_cpu
670build
671target_alias
672host_alias
673build_alias
674LIBS
675ECHO_T
676ECHO_N
677ECHO_C
678DEFS
679mandir
680localedir
681libdir
682psdir
683pdfdir
684dvidir
685htmldir
686infodir
687docdir
688oldincludedir
689includedir
690runstatedir
691localstatedir
692sharedstatedir
693sysconfdir
694datadir
695datarootdir
696libexecdir
697sbindir
698bindir
699program_transform_name
700prefix
701exec_prefix
702PACKAGE_URL
703PACKAGE_BUGREPORT
704PACKAGE_STRING
705PACKAGE_VERSION
706PACKAGE_TARNAME
707PACKAGE_NAME
708PATH_SEPARATOR
709SHELL'
313ac_subst_files='' 710ac_subst_files=''
711ac_user_opts='
712enable_option_checking
713enable_everything
714enable_assert
715enable_warnings
716enable_256_color
717enable_unicode3
718enable_combining
719enable_xft
720enable_font_styles
721enable_pixbuf
722enable_startup_notification
723enable_transparency
724enable_fading
725enable_rxvt_scroll
726enable_next_scroll
727enable_xterm_scroll
728enable_perl
729with_codesets
730enable_xim
731enable_backspace_key
732enable_delete_key
733enable_resources
734enable_8bitctrls
735enable_fallback
736with_res_name
737with_res_class
738with_name
739enable_swapscreen
740enable_iso14755
741enable_frills
742enable_keepscrolling
743enable_selectionscrolling
744enable_mousewheel
745enable_slipwheeling
746enable_smart_resize
747enable_text_blink
748enable_pointer_blank
749with_term
750with_terminfo
751with_x
752enable_utmp
753enable_wtmp
754enable_lastlog
755'
756 ac_precious_vars='build_alias
757host_alias
758target_alias
759CC
760CFLAGS
761LDFLAGS
762LIBS
763CPPFLAGS
764CXX
765CXXFLAGS
766CCC
767CPP
768CXXCPP
769XMKMF'
770
314 771
315# Initialize some variables set by options. 772# Initialize some variables set by options.
316ac_init_help= 773ac_init_help=
317ac_init_version=false 774ac_init_version=false
775ac_unrecognized_opts=
776ac_unrecognized_sep=
318# The variables have the same names as the options, with 777# The variables have the same names as the options, with
319# dashes changed to underlines. 778# dashes changed to underlines.
320cache_file=/dev/null 779cache_file=/dev/null
321exec_prefix=NONE 780exec_prefix=NONE
322no_create= 781no_create=
335# Installation directory options. 794# Installation directory options.
336# These are left unexpanded so users can "make install exec_prefix=/foo" 795# These are left unexpanded so users can "make install exec_prefix=/foo"
337# and all the variables that are supposed to be based on exec_prefix 796# and all the variables that are supposed to be based on exec_prefix
338# by default will actually change. 797# by default will actually change.
339# Use braces instead of parens because sh, perl, etc. also accept them. 798# Use braces instead of parens because sh, perl, etc. also accept them.
799# (The list follows the same order as the GNU Coding Standards.)
340bindir='${exec_prefix}/bin' 800bindir='${exec_prefix}/bin'
341sbindir='${exec_prefix}/sbin' 801sbindir='${exec_prefix}/sbin'
342libexecdir='${exec_prefix}/libexec' 802libexecdir='${exec_prefix}/libexec'
343datadir='${prefix}/share' 803datarootdir='${prefix}/share'
804datadir='${datarootdir}'
344sysconfdir='${prefix}/etc' 805sysconfdir='${prefix}/etc'
345sharedstatedir='${prefix}/com' 806sharedstatedir='${prefix}/com'
346localstatedir='${prefix}/var' 807localstatedir='${prefix}/var'
347libdir='${exec_prefix}/lib' 808runstatedir='${localstatedir}/run'
348includedir='${prefix}/include' 809includedir='${prefix}/include'
349oldincludedir='/usr/include' 810oldincludedir='/usr/include'
811docdir='${datarootdir}/doc/${PACKAGE}'
350infodir='${prefix}/info' 812infodir='${datarootdir}/info'
351mandir='${prefix}/man' 813htmldir='${docdir}'
814dvidir='${docdir}'
815pdfdir='${docdir}'
816psdir='${docdir}'
817libdir='${exec_prefix}/lib'
818localedir='${datarootdir}/locale'
819mandir='${datarootdir}/man'
352 820
353ac_prev= 821ac_prev=
822ac_dashdash=
354for ac_option 823for ac_option
355do 824do
356 # If the previous option needs an argument, assign it. 825 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then 826 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option" 827 eval $ac_prev=\$ac_option
359 ac_prev= 828 ac_prev=
360 continue 829 continue
361 fi 830 fi
362 831
832 case $ac_option in
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 833 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
834 *=) ac_optarg= ;;
835 *) ac_optarg=yes ;;
836 esac
364 837
365 # Accept the important Cygnus configure options, so we can diagnose typos. 838 # Accept the important Cygnus configure options, so we can diagnose typos.
366 839
367 case $ac_option in 840 case $ac_dashdash$ac_option in
841 --)
842 ac_dashdash=yes ;;
368 843
369 -bindir | --bindir | --bindi | --bind | --bin | --bi) 844 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;; 845 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 846 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;; 847 bindir=$ac_optarg ;;
384 cache_file=$ac_optarg ;; 859 cache_file=$ac_optarg ;;
385 860
386 --config-cache | -C) 861 --config-cache | -C)
387 cache_file=config.cache ;; 862 cache_file=config.cache ;;
388 863
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 864 -datadir | --datadir | --datadi | --datad)
390 ac_prev=datadir ;; 865 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 866 -datadir=* | --datadir=* | --datadi=* | --datad=*)
392 | --da=*)
393 datadir=$ac_optarg ;; 867 datadir=$ac_optarg ;;
394 868
869 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
870 | --dataroo | --dataro | --datar)
871 ac_prev=datarootdir ;;
872 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
873 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
874 datarootdir=$ac_optarg ;;
875
395 -disable-* | --disable-*) 876 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 877 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names. 878 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 879 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 880 as_fn_error $? "invalid feature name: $ac_useropt"
400 { (exit 1); exit 1; }; } 881 ac_useropt_orig=$ac_useropt
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 882 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
883 case $ac_user_opts in
884 *"
885"enable_$ac_useropt"
886"*) ;;
887 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
888 ac_unrecognized_sep=', ';;
889 esac
402 eval "enable_$ac_feature=no" ;; 890 eval enable_$ac_useropt=no ;;
891
892 -docdir | --docdir | --docdi | --doc | --do)
893 ac_prev=docdir ;;
894 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
895 docdir=$ac_optarg ;;
896
897 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
898 ac_prev=dvidir ;;
899 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
900 dvidir=$ac_optarg ;;
403 901
404 -enable-* | --enable-*) 902 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 903 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names. 904 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 905 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 906 as_fn_error $? "invalid feature name: $ac_useropt"
409 { (exit 1); exit 1; }; } 907 ac_useropt_orig=$ac_useropt
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 908 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
411 case $ac_option in 909 case $ac_user_opts in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 910 *"
413 *) ac_optarg=yes ;; 911"enable_$ac_useropt"
912"*) ;;
913 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
914 ac_unrecognized_sep=', ';;
414 esac 915 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;; 916 eval enable_$ac_useropt=\$ac_optarg ;;
416 917
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 918 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 919 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex) 920 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;; 921 ac_prev=exec_prefix ;;
437 -host | --host | --hos | --ho) 938 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;; 939 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*) 940 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;; 941 host_alias=$ac_optarg ;;
441 942
943 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
944 ac_prev=htmldir ;;
945 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
946 | --ht=*)
947 htmldir=$ac_optarg ;;
948
442 -includedir | --includedir | --includedi | --included | --include \ 949 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc) 950 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;; 951 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 952 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*) 953 | --includ=* | --inclu=* | --incl=* | --inc=*)
461 ac_prev=libexecdir ;; 968 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 969 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*) 970 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;; 971 libexecdir=$ac_optarg ;;
465 972
973 -localedir | --localedir | --localedi | --localed | --locale)
974 ac_prev=localedir ;;
975 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
976 localedir=$ac_optarg ;;
977
466 -localstatedir | --localstatedir | --localstatedi | --localstated \ 978 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \ 979 | --localstate | --localstat | --localsta | --localst | --locals)
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;; 980 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 981 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 982 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;; 983 localstatedir=$ac_optarg ;;
474 984
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 985 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;; 986 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 987 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
532 | --program-transfo=* | --program-transf=* \ 1042 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \ 1043 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*) 1044 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;; 1045 program_transform_name=$ac_optarg ;;
536 1046
1047 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1048 ac_prev=pdfdir ;;
1049 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1050 pdfdir=$ac_optarg ;;
1051
1052 -psdir | --psdir | --psdi | --psd | --ps)
1053 ac_prev=psdir ;;
1054 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1055 psdir=$ac_optarg ;;
1056
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil) 1058 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;; 1059 silent=yes ;;
1060
1061 -runstatedir | --runstatedir | --runstatedi | --runstated \
1062 | --runstate | --runstat | --runsta | --runst | --runs \
1063 | --run | --ru | --r)
1064 ac_prev=runstatedir ;;
1065 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1066 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1067 | --run=* | --ru=* | --r=*)
1068 runstatedir=$ac_optarg ;;
540 1069
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;; 1071 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*) 1073 | --sbi=* | --sb=*)
582 1111
583 -version | --version | --versio | --versi | --vers | -V) 1112 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;; 1113 ac_init_version=: ;;
585 1114
586 -with-* | --with-*) 1115 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names. 1117 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2 1119 as_fn_error $? "invalid package name: $ac_useropt"
591 { (exit 1); exit 1; }; } 1120 ac_useropt_orig=$ac_useropt
592 ac_package=`echo $ac_package| sed 's/-/_/g'` 1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
593 case $ac_option in 1122 case $ac_user_opts in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 1123 *"
595 *) ac_optarg=yes ;; 1124"with_$ac_useropt"
1125"*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
596 esac 1128 esac
597 eval "with_$ac_package='$ac_optarg'" ;; 1129 eval with_$ac_useropt=\$ac_optarg ;;
598 1130
599 -without-* | --without-*) 1131 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names. 1133 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2 1135 as_fn_error $? "invalid package name: $ac_useropt"
604 { (exit 1); exit 1; }; } 1136 ac_useropt_orig=$ac_useropt
605 ac_package=`echo $ac_package | sed 's/-/_/g'` 1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1139 *"
1140"with_$ac_useropt"
1141"*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
606 eval "with_$ac_package=no" ;; 1145 eval with_$ac_useropt=no ;;
607 1146
608 --x) 1147 --x)
609 # Obsolete; use --with-x. 1148 # Obsolete; use --with-x.
610 with_x=yes ;; 1149 with_x=yes ;;
611 1150
621 ac_prev=x_libraries ;; 1160 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;; 1163 x_libraries=$ac_optarg ;;
625 1164
626 -*) { echo "$as_me: error: unrecognized option: $ac_option 1165 -*) as_fn_error $? "unrecognized option: \`$ac_option'
627Try \`$0 --help' for more information." >&2 1166Try \`$0 --help' for more information"
628 { (exit 1); exit 1; }; }
629 ;; 1167 ;;
630 1168
631 *=*) 1169 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names. 1171 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1174 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
636 { (exit 1); exit 1; }; } 1175 esac
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'" 1176 eval $ac_envvar=\$ac_optarg
639 export $ac_envvar ;; 1177 export $ac_envvar ;;
640 1178
641 *) 1179 *)
642 # FIXME: should be removed in autoconf 3.0. 1180 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1184 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
647 ;; 1185 ;;
648 1186
649 esac 1187 esac
650done 1188done
651 1189
652if test -n "$ac_prev"; then 1190if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2 1192 as_fn_error $? "missing argument to $ac_option"
655 { (exit 1); exit 1; }; }
656fi 1193fi
657 1194
658# Be sure to have absolute paths. 1195if test -n "$ac_unrecognized_opts"; then
659for ac_var in exec_prefix prefix 1196 case $enable_option_checking in
1197 no) ;;
1198 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1201fi
1202
1203# Check all directory arguments for consistency.
1204for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir runstatedir
660do 1208do
661 eval ac_val=$`echo $ac_var` 1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
662 case $ac_val in 1211 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 1212 */ )
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
665 { (exit 1); exit 1; }; };; 1214 eval $ac_var=\$ac_val;;
666 esac 1215 esac
667done
668
669# Be sure to have absolute paths. 1216 # Be sure to have absolute directory names.
670for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
672do
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in 1217 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;; 1218 [\\/$]* | ?:[\\/]* ) continue;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
677 { (exit 1); exit 1; }; };;
678 esac 1220 esac
1221 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
679done 1222done
680 1223
681# There might be people who depend on the old broken behavior: `$host' 1224# There might be people who depend on the old broken behavior: `$host'
682# used to hold the argument of --host etc. 1225# used to hold the argument of --host etc.
683# FIXME: To remove some day. 1226# FIXME: To remove some day.
687 1230
688# FIXME: To remove some day. 1231# FIXME: To remove some day.
689if test "x$host_alias" != x; then 1232if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then 1233 if test "x$build_alias" = x; then
691 cross_compiling=maybe 1234 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then 1235 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes 1236 cross_compiling=yes
696 fi 1237 fi
697fi 1238fi
698 1239
699ac_tool_prefix= 1240ac_tool_prefix=
700test -n "$host_alias" && ac_tool_prefix=$host_alias- 1241test -n "$host_alias" && ac_tool_prefix=$host_alias-
701 1242
702test "$silent" = yes && exec 6>/dev/null 1243test "$silent" = yes && exec 6>/dev/null
1244
1245
1246ac_pwd=`pwd` && test -n "$ac_pwd" &&
1247ac_ls_di=`ls -di .` &&
1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1249 as_fn_error $? "working directory cannot be determined"
1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1251 as_fn_error $? "pwd does not report name of working directory"
703 1252
704 1253
705# Find the source files, if location was not specified. 1254# Find the source files, if location was not specified.
706if test -z "$srcdir"; then 1255if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes 1256 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent. 1257 # Try the directory containing this script, then the parent directory.
709 ac_confdir=`(dirname "$0") 2>/dev/null || 1258 ac_confdir=`$as_dirname -- "$as_myself" ||
710$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \ 1260 X"$as_myself" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \ 1261 X"$as_myself" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \ 1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
714 . : '\(.\)' 2>/dev/null || 1263$as_echo X"$as_myself" |
715echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 1265 s//\1/
718 /^X\(\/\/\)$/{ s//\1/; q; } 1266 q
719 /^X\(\/\).*/{ s//\1/; q; } 1267 }
1268 /^X\(\/\/\)[^/].*/{
1269 s//\1/
1270 q
1271 }
1272 /^X\(\/\/\)$/{
1273 s//\1/
1274 q
1275 }
1276 /^X\(\/\).*/{
1277 s//\1/
1278 q
1279 }
720 s/.*/./; q'` 1280 s/.*/./; q'`
721 srcdir=$ac_confdir 1281 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then 1282 if test ! -r "$srcdir/$ac_unique_file"; then
723 srcdir=.. 1283 srcdir=..
724 fi 1284 fi
725else 1285else
726 ac_srcdir_defaulted=no 1286 ac_srcdir_defaulted=no
727fi 1287fi
728if test ! -r $srcdir/$ac_unique_file; then 1288if test ! -r "$srcdir/$ac_unique_file"; then
729 if test "$ac_srcdir_defaulted" = yes; then 1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
734 { (exit 1); exit 1; }; }
735 fi
736fi 1291fi
737(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
739 { (exit 1); exit 1; }; } 1293ac_abs_confdir=`(
740srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
741ac_env_build_alias_set=${build_alias+set} 1295 pwd)`
742ac_env_build_alias_value=$build_alias 1296# When building in place, set srcdir=.
743ac_cv_env_build_alias_set=${build_alias+set} 1297if test "$ac_abs_confdir" = "$ac_pwd"; then
744ac_cv_env_build_alias_value=$build_alias 1298 srcdir=.
745ac_env_host_alias_set=${host_alias+set} 1299fi
746ac_env_host_alias_value=$host_alias 1300# Remove unnecessary trailing slashes from srcdir.
747ac_cv_env_host_alias_set=${host_alias+set} 1301# Double slashes in file names in object file debugging info
748ac_cv_env_host_alias_value=$host_alias 1302# mess up M-x gdb in Emacs.
749ac_env_target_alias_set=${target_alias+set} 1303case $srcdir in
750ac_env_target_alias_value=$target_alias 1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
751ac_cv_env_target_alias_set=${target_alias+set} 1305esac
752ac_cv_env_target_alias_value=$target_alias 1306for ac_var in $ac_precious_vars; do
753ac_env_CC_set=${CC+set} 1307 eval ac_env_${ac_var}_set=\${${ac_var}+set}
754ac_env_CC_value=$CC 1308 eval ac_env_${ac_var}_value=\$${ac_var}
755ac_cv_env_CC_set=${CC+set} 1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
756ac_cv_env_CC_value=$CC 1310 eval ac_cv_env_${ac_var}_value=\$${ac_var}
757ac_env_CFLAGS_set=${CFLAGS+set} 1311done
758ac_env_CFLAGS_value=$CFLAGS
759ac_cv_env_CFLAGS_set=${CFLAGS+set}
760ac_cv_env_CFLAGS_value=$CFLAGS
761ac_env_LDFLAGS_set=${LDFLAGS+set}
762ac_env_LDFLAGS_value=$LDFLAGS
763ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764ac_cv_env_LDFLAGS_value=$LDFLAGS
765ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766ac_env_CPPFLAGS_value=$CPPFLAGS
767ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769ac_env_CXX_set=${CXX+set}
770ac_env_CXX_value=$CXX
771ac_cv_env_CXX_set=${CXX+set}
772ac_cv_env_CXX_value=$CXX
773ac_env_CXXFLAGS_set=${CXXFLAGS+set}
774ac_env_CXXFLAGS_value=$CXXFLAGS
775ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
776ac_cv_env_CXXFLAGS_value=$CXXFLAGS
777ac_env_CPP_set=${CPP+set}
778ac_env_CPP_value=$CPP
779ac_cv_env_CPP_set=${CPP+set}
780ac_cv_env_CPP_value=$CPP
781ac_env_CXXCPP_set=${CXXCPP+set}
782ac_env_CXXCPP_value=$CXXCPP
783ac_cv_env_CXXCPP_set=${CXXCPP+set}
784ac_cv_env_CXXCPP_value=$CXXCPP
785 1312
786# 1313#
787# Report the --help message. 1314# Report the --help message.
788# 1315#
789if test "$ac_init_help" = "long"; then 1316if test "$ac_init_help" = "long"; then
802Configuration: 1329Configuration:
803 -h, --help display this help and exit 1330 -h, --help display this help and exit
804 --help=short display options specific to this package 1331 --help=short display options specific to this package
805 --help=recursive display the short help of all the included packages 1332 --help=recursive display the short help of all the included packages
806 -V, --version display version information and exit 1333 -V, --version display version information and exit
807 -q, --quiet, --silent do not print \`checking...' messages 1334 -q, --quiet, --silent do not print \`checking ...' messages
808 --cache-file=FILE cache test results in FILE [disabled] 1335 --cache-file=FILE cache test results in FILE [disabled]
809 -C, --config-cache alias for \`--cache-file=config.cache' 1336 -C, --config-cache alias for \`--cache-file=config.cache'
810 -n, --no-create do not create output files 1337 -n, --no-create do not create output files
811 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1338 --srcdir=DIR find the sources in DIR [configure dir or \`..']
812 1339
813_ACEOF
814
815 cat <<_ACEOF
816Installation directories: 1340Installation directories:
817 --prefix=PREFIX install architecture-independent files in PREFIX 1341 --prefix=PREFIX install architecture-independent files in PREFIX
818 [$ac_default_prefix] 1342 [$ac_default_prefix]
819 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
820 [PREFIX] 1344 [PREFIX]
821 1345
822By default, \`make install' will install all the files in 1346By default, \`make install' will install all the files in
823\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
824an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1348an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825for instance \`--prefix=\$HOME'. 1349for instance \`--prefix=\$HOME'.
826 1350
827For better control, use the options below. 1351For better control, use the options below.
828 1352
829Fine tuning of the installation directories: 1353Fine tuning of the installation directories:
830 --bindir=DIR user executables [EPREFIX/bin] 1354 --bindir=DIR user executables [EPREFIX/bin]
831 --sbindir=DIR system admin executables [EPREFIX/sbin] 1355 --sbindir=DIR system admin executables [EPREFIX/sbin]
832 --libexecdir=DIR program executables [EPREFIX/libexec] 1356 --libexecdir=DIR program executables [EPREFIX/libexec]
833 --datadir=DIR read-only architecture-independent data [PREFIX/share]
834 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
835 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
836 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1360 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
837 --libdir=DIR object code libraries [EPREFIX/lib] 1361 --libdir=DIR object code libraries [EPREFIX/lib]
838 --includedir=DIR C header files [PREFIX/include] 1362 --includedir=DIR C header files [PREFIX/include]
839 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1363 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1364 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1365 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
840 --infodir=DIR info documentation [PREFIX/info] 1366 --infodir=DIR info documentation [DATAROOTDIR/info]
1367 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
841 --mandir=DIR man documentation [PREFIX/man] 1368 --mandir=DIR man documentation [DATAROOTDIR/man]
1369 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1370 --htmldir=DIR html documentation [DOCDIR]
1371 --dvidir=DIR dvi documentation [DOCDIR]
1372 --pdfdir=DIR pdf documentation [DOCDIR]
1373 --psdir=DIR ps documentation [DOCDIR]
842_ACEOF 1374_ACEOF
843 1375
844 cat <<\_ACEOF 1376 cat <<\_ACEOF
845 1377
846X features: 1378X features:
847 --x-includes=DIR X include files are in DIR 1379 --x-includes=DIR X include files are in DIR
848 --x-libraries=DIR X library files are in DIR 1380 --x-libraries=DIR X library files are in DIR
849 1381
850Program names:
851 --program-prefix=PREFIX prepend PREFIX to installed program names
852 --program-suffix=SUFFIX append SUFFIX to installed program names
853 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
854
855System types: 1382System types:
856 --build=BUILD configure for building on BUILD [guessed] 1383 --build=BUILD configure for building on BUILD [guessed]
857 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1384 --host=HOST cross-compile to build programs to run on HOST [BUILD]
858_ACEOF 1385_ACEOF
859fi 1386fi
861if test -n "$ac_init_help"; then 1388if test -n "$ac_init_help"; then
862 1389
863 cat <<\_ACEOF 1390 cat <<\_ACEOF
864 1391
865Optional Features: 1392Optional Features:
1393 --disable-option-checking ignore unrecognized --enable/--with options
866 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1394 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
867 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1395 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
868 --enable-everything enable standard non-multichoice features 1396 --enable-everything enable standard non-multichoice features
869 NOTE: this option is order dependent 1397 NOTE: this option is order dependent
870 NOTE: automatically enabled with --enable-shared 1398 --enable-assert enable assertions
1399 --enable-warnings turn on g++ warnings
1400 --enable-256-color enable 256-color support
871 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters 1401 --enable-unicode3 use 21 instead of 16 bits to represent unicode characters
872 --enable-combining enable composition of base and combining characters 1402 --enable-combining enable composition of base and combining characters
873 --enable-xft enable xft support on systems that have it 1403 --enable-xft enable xft support on systems that have it
874 --enable-font-styles enable bold and italic support 1404 --enable-font-styles enable bold and italic support
875 --enable-utmp enable utmp (utmpx) support 1405 --enable-pixbuf enable integration with gdk-pixbuf for background images
876 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp) 1406 --enable-startup-notification enable freedesktop startup notification support
877 --enable-lastlog enable lastlog support (requires --enable-utmp)
878 --enable-xpm-background enable XPM background pixmaps
879 --enable-transparency enable transparent backgrounds 1407 --enable-transparency enable transparent backgrounds
880 --enable-tinting enable tinting of transparent bg
881 --enable-fading enable colors fading when off focus 1408 --enable-fading enable colors fading when off focus
882 --enable-rxvt-scroll enable rxvt style scrollbar 1409 --enable-rxvt-scroll enable rxvt style scrollbar
883 --enable-next-scroll enable NeXT style scrollbar 1410 --enable-next-scroll enable NeXT style scrollbar
884 --enable-xterm-scroll enable Xterm style scrollbar 1411 --enable-xterm-scroll enable Xterm style scrollbar
885 --enable-perl enable embedded perl interpreter 1412 --enable-perl enable embedded perl interpreter
886 --enable-plain-scroll enable plain style scrollbar
887 --enable-xim XIM (X Input Method) protocol support 1413 --enable-xim XIM (X Input Method) protocol support
888 --enable-ttygid enable tty setting to group named "tty"
889 --disable-backspace-key disable handling of the backspace key 1414 --disable-backspace-key disable handling of the backspace key
890 --disable-delete-key disable handling of the delete key 1415 --disable-delete-key disable handling of the delete key
891 --disable-resources disable all resource checking 1416 --disable-resources disable all resource checking
892 --enable-8bitctrls enable 8 bit control sequences (not recommended) 1417 --enable-8bitctrls enable 8 bit control sequences (not recommended)
893 --enable-fallback(=CLASS) fall back on CLASS resources in addition to URxvt ones (default: Rxvt) 1418 --enable-fallback[=CLASS] fall back on CLASS resources in addition to URxvt ones (default: Rxvt)
894 --disable-swapscreen disable swap screen support 1419 --disable-swapscreen disable swap screen support
895 --enable-iso14755 enable support for extended ISO 14755 modes 1420 --enable-iso14755 enable support for extended ISO 14755 modes
896 --enable-frills enable support for rarely used features 1421 --enable-frills enable support for rarely used features
897 --enable-24bit enable support for using 24bit visuals if available
898 --enable-keepscrolling enable continual scrolling on scrollbar arrow press 1422 --enable-keepscrolling enable continual scrolling on scrollbar arrow press
899 --enable-selectionscrolling enable scrolling during selections 1423 --enable-selectionscrolling enable scrolling during selections
900 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5 1424 --enable-mousewheel enable scrolling via mouse wheel or buttons 4 & 5
901 --enable-slipwheeling enable slip wheel scrolling (requires previous) 1425 --enable-slipwheeling enable slip wheel scrolling (requires --enable-mousewheel)
902 --enable-dmalloc enable Gray Watson's malloc - for debugging use
903 --enable-dlmalloc enable Doug Lea's malloc - for production use
904 NOTE: enable only one malloc package
905 --enable-smart-resize enable smart growth/shrink behaviour 1426 --enable-smart-resize enable smart growth/shrink behaviour
906 --enable-text-blink enable blinking text 1427 --enable-text-blink enable blinking text
907 --enable-pointer-blank enable pointer blank when typing or inactive pointer 1428 --enable-pointer-blank enable pointer blanking when typing or inactive
1429 --enable-utmp enable utmp (utmpx) support
1430 --enable-wtmp enable wtmp (wtmpx) support (requires --enable-utmp)
1431 --enable-lastlog enable lastlog support (requires --enable-utmp)
908 1432
909Optional Packages: 1433Optional Packages:
910 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1434 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
911 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1435 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
912 --with-codesets=NAME,.. compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all) 1436 --with-codesets=CS,... compile in additional codesets (jp,jp_ext,kr,zh,zh_ext,all)
913 --with-res-name=NAME use this as default resource name (default: urxvt) 1437 --with-res-name=NAME use this as default resource name (default: urxvt)
914 --with-res-class=CLASS use this as the resource class (default: URxvt) 1438 --with-res-class=CLASS use this as the resource class (default: URxvt)
915 --with-name=NAME set the basename for the installed binaries (default: urxvt) 1439 --with-name=NAME set the basename for the installed binaries (default: urxvt)
916 --with-term=NAME set the terminal to NAME (default: rxvt) 1440 --with-term=NAME set the terminal to NAME (default: rxvt)
917 --with-terminfo=PATH set the path to the terminfo tree to PATH 1441 --with-terminfo=PATH set the path to the terminfo tree to PATH
918 --with-x use the X Window System 1442 --with-x use the X Window System
919 --with-xpm-includes=DIR use XPM includes in DIR
920 --with-xpm-library=DIR use XPM library in DIR
921 --with-xpm use XPM
922 1443
923Some influential environment variables: 1444Some influential environment variables:
924 CC C compiler command 1445 CC C compiler command
925 CFLAGS C compiler flags 1446 CFLAGS C compiler flags
926 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1447 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
927 nonstandard directory <lib dir> 1448 nonstandard directory <lib dir>
1449 LIBS libraries to pass to the linker, e.g. -l<library>
928 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1450 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
929 headers in a nonstandard directory <include dir> 1451 you have headers in a nonstandard directory <include dir>
930 CXX C++ compiler command 1452 CXX C++ compiler command
931 CXXFLAGS C++ compiler flags 1453 CXXFLAGS C++ compiler flags
932 CPP C preprocessor 1454 CPP C preprocessor
933 CXXCPP C++ preprocessor 1455 CXXCPP C++ preprocessor
1456 XMKMF Path to xmkmf, Makefile generator for X Window System
934 1457
935Use these variables to override the choices made by `configure' or to help 1458Use these variables to override the choices made by `configure' or to help
936it to find libraries and programs with nonstandard names/locations. 1459it to find libraries and programs with nonstandard names/locations.
937 1460
1461Report bugs to the package provider.
938_ACEOF 1462_ACEOF
1463ac_status=$?
939fi 1464fi
940 1465
941if test "$ac_init_help" = "recursive"; then 1466if test "$ac_init_help" = "recursive"; then
942 # If there are subdirs, report their specific --help. 1467 # If there are subdirs, report their specific --help.
943 ac_popdir=`pwd`
944 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
945 test -d $ac_dir || continue 1469 test -d "$ac_dir" ||
1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1471 continue
946 ac_builddir=. 1472 ac_builddir=.
947 1473
948if test "$ac_dir" != .; then 1474case "$ac_dir" in
1475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476*)
949 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
950 # A "../" for each directory in $ac_dir_suffix. 1478 # A ".." for each directory in $ac_dir_suffix.
951 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
952else 1480 case $ac_top_builddir_sub in
953 ac_dir_suffix= ac_top_builddir= 1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
954fi 1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1483 esac ;;
1484esac
1485ac_abs_top_builddir=$ac_pwd
1486ac_abs_builddir=$ac_pwd$ac_dir_suffix
1487# for backward compatibility:
1488ac_top_builddir=$ac_top_build_prefix
955 1489
956case $srcdir in 1490case $srcdir in
957 .) # No --srcdir option. We are building in place. 1491 .) # We are building in place.
958 ac_srcdir=. 1492 ac_srcdir=.
959 if test -z "$ac_top_builddir"; then 1493 ac_top_srcdir=$ac_top_builddir_sub
1494 ac_abs_top_srcdir=$ac_pwd ;;
1495 [\\/]* | ?:[\\/]* ) # Absolute name.
1496 ac_srcdir=$srcdir$ac_dir_suffix;
960 ac_top_srcdir=. 1497 ac_top_srcdir=$srcdir
1498 ac_abs_top_srcdir=$srcdir ;;
1499 *) # Relative name.
1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1501 ac_top_srcdir=$ac_top_build_prefix$srcdir
1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1503esac
1504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1505
1506 cd "$ac_dir" || { ac_status=$?; continue; }
1507 # Check for guested configure.
1508 if test -f "$ac_srcdir/configure.gnu"; then
1509 echo &&
1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1511 elif test -f "$ac_srcdir/configure"; then
1512 echo &&
1513 $SHELL "$ac_srcdir/configure" --help=recursive
961 else 1514 else
962 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
963 fi ;;
964 [\\/]* | ?:[\\/]* ) # Absolute path.
965 ac_srcdir=$srcdir$ac_dir_suffix;
966 ac_top_srcdir=$srcdir ;;
967 *) # Relative path.
968 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
969 ac_top_srcdir=$ac_top_builddir$srcdir ;;
970esac
971
972# Do not use `cd foo && pwd` to compute absolute paths, because
973# the directories may not exist.
974case `pwd` in
975.) ac_abs_builddir="$ac_dir";;
976*)
977 case "$ac_dir" in
978 .) ac_abs_builddir=`pwd`;;
979 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
980 *) ac_abs_builddir=`pwd`/"$ac_dir";;
981 esac;;
982esac
983case $ac_abs_builddir in
984.) ac_abs_top_builddir=${ac_top_builddir}.;;
985*)
986 case ${ac_top_builddir}. in
987 .) ac_abs_top_builddir=$ac_abs_builddir;;
988 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
989 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
990 esac;;
991esac
992case $ac_abs_builddir in
993.) ac_abs_srcdir=$ac_srcdir;;
994*)
995 case $ac_srcdir in
996 .) ac_abs_srcdir=$ac_abs_builddir;;
997 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
998 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
999 esac;;
1000esac
1001case $ac_abs_builddir in
1002.) ac_abs_top_srcdir=$ac_top_srcdir;;
1003*)
1004 case $ac_top_srcdir in
1005 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1006 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1007 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1008 esac;;
1009esac
1010
1011 cd $ac_dir
1012 # Check for guested configure; otherwise get Cygnus style configure.
1013 if test -f $ac_srcdir/configure.gnu; then
1014 echo
1015 $SHELL $ac_srcdir/configure.gnu --help=recursive
1016 elif test -f $ac_srcdir/configure; then
1017 echo
1018 $SHELL $ac_srcdir/configure --help=recursive
1019 elif test -f $ac_srcdir/configure.ac ||
1020 test -f $ac_srcdir/configure.in; then
1021 echo
1022 $ac_configure --help
1023 else
1024 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1025 fi 1516 fi || ac_status=$?
1026 cd "$ac_popdir" 1517 cd "$ac_pwd" || { ac_status=$?; break; }
1027 done 1518 done
1028fi 1519fi
1029 1520
1030test -n "$ac_init_help" && exit 0 1521test -n "$ac_init_help" && exit $ac_status
1031if $ac_init_version; then 1522if $ac_init_version; then
1032 cat <<\_ACEOF 1523 cat <<\_ACEOF
1524configure
1525generated by GNU Autoconf 2.69
1033 1526
1034Copyright (C) 2003 Free Software Foundation, Inc. 1527Copyright (C) 2012 Free Software Foundation, Inc.
1035This configure script is free software; the Free Software Foundation 1528This configure script is free software; the Free Software Foundation
1036gives unlimited permission to copy, distribute and modify it. 1529gives unlimited permission to copy, distribute and modify it.
1037_ACEOF 1530_ACEOF
1038 exit 0 1531 exit
1039fi 1532fi
1040exec 5>config.log 1533
1041cat >&5 <<_ACEOF 1534## ------------------------ ##
1535## Autoconf initialization. ##
1536## ------------------------ ##
1537
1538# ac_fn_c_try_compile LINENO
1539# --------------------------
1540# Try to compile conftest.$ac_ext, and return whether this succeeded.
1541ac_fn_c_try_compile ()
1542{
1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1544 rm -f conftest.$ac_objext
1545 if { { ac_try="$ac_compile"
1546case "(($ac_try" in
1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1548 *) ac_try_echo=$ac_try;;
1549esac
1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1551$as_echo "$ac_try_echo"; } >&5
1552 (eval "$ac_compile") 2>conftest.err
1553 ac_status=$?
1554 if test -s conftest.err; then
1555 grep -v '^ *+' conftest.err >conftest.er1
1556 cat conftest.er1 >&5
1557 mv -f conftest.er1 conftest.err
1558 fi
1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1560 test $ac_status = 0; } && {
1561 test -z "$ac_c_werror_flag" ||
1562 test ! -s conftest.err
1563 } && test -s conftest.$ac_objext; then :
1564 ac_retval=0
1565else
1566 $as_echo "$as_me: failed program was:" >&5
1567sed 's/^/| /' conftest.$ac_ext >&5
1568
1569 ac_retval=1
1570fi
1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1572 as_fn_set_status $ac_retval
1573
1574} # ac_fn_c_try_compile
1575
1576# ac_fn_cxx_try_compile LINENO
1577# ----------------------------
1578# Try to compile conftest.$ac_ext, and return whether this succeeded.
1579ac_fn_cxx_try_compile ()
1580{
1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1582 rm -f conftest.$ac_objext
1583 if { { ac_try="$ac_compile"
1584case "(($ac_try" in
1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1586 *) ac_try_echo=$ac_try;;
1587esac
1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1589$as_echo "$ac_try_echo"; } >&5
1590 (eval "$ac_compile") 2>conftest.err
1591 ac_status=$?
1592 if test -s conftest.err; then
1593 grep -v '^ *+' conftest.err >conftest.er1
1594 cat conftest.er1 >&5
1595 mv -f conftest.er1 conftest.err
1596 fi
1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1598 test $ac_status = 0; } && {
1599 test -z "$ac_cxx_werror_flag" ||
1600 test ! -s conftest.err
1601 } && test -s conftest.$ac_objext; then :
1602 ac_retval=0
1603else
1604 $as_echo "$as_me: failed program was:" >&5
1605sed 's/^/| /' conftest.$ac_ext >&5
1606
1607 ac_retval=1
1608fi
1609 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1610 as_fn_set_status $ac_retval
1611
1612} # ac_fn_cxx_try_compile
1613
1614# ac_fn_c_try_cpp LINENO
1615# ----------------------
1616# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1617ac_fn_c_try_cpp ()
1618{
1619 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1620 if { { ac_try="$ac_cpp conftest.$ac_ext"
1621case "(($ac_try" in
1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623 *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1628 ac_status=$?
1629 if test -s conftest.err; then
1630 grep -v '^ *+' conftest.err >conftest.er1
1631 cat conftest.er1 >&5
1632 mv -f conftest.er1 conftest.err
1633 fi
1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635 test $ac_status = 0; } > conftest.i && {
1636 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1637 test ! -s conftest.err
1638 }; then :
1639 ac_retval=0
1640else
1641 $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644 ac_retval=1
1645fi
1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647 as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_cpp
1650
1651# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1652# -------------------------------------------------------
1653# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1654# the include files in INCLUDES and setting the cache variable VAR
1655# accordingly.
1656ac_fn_c_check_header_mongrel ()
1657{
1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1659 if eval \${$3+:} false; then :
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1661$as_echo_n "checking for $2... " >&6; }
1662if eval \${$3+:} false; then :
1663 $as_echo_n "(cached) " >&6
1664fi
1665eval ac_res=\$$3
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1667$as_echo "$ac_res" >&6; }
1668else
1669 # Is the header compilable?
1670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1671$as_echo_n "checking $2 usability... " >&6; }
1672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1673/* end confdefs.h. */
1674$4
1675#include <$2>
1676_ACEOF
1677if ac_fn_c_try_compile "$LINENO"; then :
1678 ac_header_compiler=yes
1679else
1680 ac_header_compiler=no
1681fi
1682rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1684$as_echo "$ac_header_compiler" >&6; }
1685
1686# Is the header present?
1687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1688$as_echo_n "checking $2 presence... " >&6; }
1689cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1690/* end confdefs.h. */
1691#include <$2>
1692_ACEOF
1693if ac_fn_c_try_cpp "$LINENO"; then :
1694 ac_header_preproc=yes
1695else
1696 ac_header_preproc=no
1697fi
1698rm -f conftest.err conftest.i conftest.$ac_ext
1699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1700$as_echo "$ac_header_preproc" >&6; }
1701
1702# So? What about this header?
1703case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1704 yes:no: )
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1706$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1708$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1709 ;;
1710 no:yes:* )
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1712$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1714$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1716$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1718$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1720$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1721 ;;
1722esac
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724$as_echo_n "checking for $2... " >&6; }
1725if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727else
1728 eval "$3=\$ac_header_compiler"
1729fi
1730eval ac_res=\$$3
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1732$as_echo "$ac_res" >&6; }
1733fi
1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1735
1736} # ac_fn_c_check_header_mongrel
1737
1738# ac_fn_c_try_run LINENO
1739# ----------------------
1740# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1741# that executables *can* be run.
1742ac_fn_c_try_run ()
1743{
1744 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1745 if { { ac_try="$ac_link"
1746case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749esac
1750eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751$as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_link") 2>&5
1753 ac_status=$?
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1756 { { case "(($ac_try" in
1757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1758 *) ac_try_echo=$ac_try;;
1759esac
1760eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1761$as_echo "$ac_try_echo"; } >&5
1762 (eval "$ac_try") 2>&5
1763 ac_status=$?
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; }; }; then :
1766 ac_retval=0
1767else
1768 $as_echo "$as_me: program exited with status $ac_status" >&5
1769 $as_echo "$as_me: failed program was:" >&5
1770sed 's/^/| /' conftest.$ac_ext >&5
1771
1772 ac_retval=$ac_status
1773fi
1774 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1775 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1776 as_fn_set_status $ac_retval
1777
1778} # ac_fn_c_try_run
1779
1780# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1781# -------------------------------------------------------
1782# Tests whether HEADER exists and can be compiled using the include files in
1783# INCLUDES, setting the cache variable VAR accordingly.
1784ac_fn_c_check_header_compile ()
1785{
1786 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1788$as_echo_n "checking for $2... " >&6; }
1789if eval \${$3+:} false; then :
1790 $as_echo_n "(cached) " >&6
1791else
1792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1793/* end confdefs.h. */
1794$4
1795#include <$2>
1796_ACEOF
1797if ac_fn_c_try_compile "$LINENO"; then :
1798 eval "$3=yes"
1799else
1800 eval "$3=no"
1801fi
1802rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1803fi
1804eval ac_res=\$$3
1805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1806$as_echo "$ac_res" >&6; }
1807 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808
1809} # ac_fn_c_check_header_compile
1810
1811# ac_fn_c_try_link LINENO
1812# -----------------------
1813# Try to link conftest.$ac_ext, and return whether this succeeded.
1814ac_fn_c_try_link ()
1815{
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 rm -f conftest.$ac_objext conftest$ac_exeext
1818 if { { ac_try="$ac_link"
1819case "(($ac_try" in
1820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1821 *) ac_try_echo=$ac_try;;
1822esac
1823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1824$as_echo "$ac_try_echo"; } >&5
1825 (eval "$ac_link") 2>conftest.err
1826 ac_status=$?
1827 if test -s conftest.err; then
1828 grep -v '^ *+' conftest.err >conftest.er1
1829 cat conftest.er1 >&5
1830 mv -f conftest.er1 conftest.err
1831 fi
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && {
1834 test -z "$ac_c_werror_flag" ||
1835 test ! -s conftest.err
1836 } && test -s conftest$ac_exeext && {
1837 test "$cross_compiling" = yes ||
1838 test -x conftest$ac_exeext
1839 }; then :
1840 ac_retval=0
1841else
1842 $as_echo "$as_me: failed program was:" >&5
1843sed 's/^/| /' conftest.$ac_ext >&5
1844
1845 ac_retval=1
1846fi
1847 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1848 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1849 # interfere with the next link command; also delete a directory that is
1850 # left behind by Apple's compiler. We do this before executing the actions.
1851 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1854
1855} # ac_fn_c_try_link
1856
1857# ac_fn_cxx_try_link LINENO
1858# -------------------------
1859# Try to link conftest.$ac_ext, and return whether this succeeded.
1860ac_fn_cxx_try_link ()
1861{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 rm -f conftest.$ac_objext conftest$ac_exeext
1864 if { { ac_try="$ac_link"
1865case "(($ac_try" in
1866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1867 *) ac_try_echo=$ac_try;;
1868esac
1869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870$as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_link") 2>conftest.err
1872 ac_status=$?
1873 if test -s conftest.err; then
1874 grep -v '^ *+' conftest.err >conftest.er1
1875 cat conftest.er1 >&5
1876 mv -f conftest.er1 conftest.err
1877 fi
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && {
1880 test -z "$ac_cxx_werror_flag" ||
1881 test ! -s conftest.err
1882 } && test -s conftest$ac_exeext && {
1883 test "$cross_compiling" = yes ||
1884 test -x conftest$ac_exeext
1885 }; then :
1886 ac_retval=0
1887else
1888 $as_echo "$as_me: failed program was:" >&5
1889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891 ac_retval=1
1892fi
1893 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1894 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1895 # interfere with the next link command; also delete a directory that is
1896 # left behind by Apple's compiler. We do this before executing the actions.
1897 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1898 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 as_fn_set_status $ac_retval
1900
1901} # ac_fn_cxx_try_link
1902
1903# ac_fn_cxx_try_cpp LINENO
1904# ------------------------
1905# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1906ac_fn_cxx_try_cpp ()
1907{
1908 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1909 if { { ac_try="$ac_cpp conftest.$ac_ext"
1910case "(($ac_try" in
1911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1912 *) ac_try_echo=$ac_try;;
1913esac
1914eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1915$as_echo "$ac_try_echo"; } >&5
1916 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1917 ac_status=$?
1918 if test -s conftest.err; then
1919 grep -v '^ *+' conftest.err >conftest.er1
1920 cat conftest.er1 >&5
1921 mv -f conftest.er1 conftest.err
1922 fi
1923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1924 test $ac_status = 0; } > conftest.i && {
1925 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1926 test ! -s conftest.err
1927 }; then :
1928 ac_retval=0
1929else
1930 $as_echo "$as_me: failed program was:" >&5
1931sed 's/^/| /' conftest.$ac_ext >&5
1932
1933 ac_retval=1
1934fi
1935 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1936 as_fn_set_status $ac_retval
1937
1938} # ac_fn_cxx_try_cpp
1939
1940# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1941# ---------------------------------------------------------
1942# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1943# the include files in INCLUDES and setting the cache variable VAR
1944# accordingly.
1945ac_fn_cxx_check_header_mongrel ()
1946{
1947 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1948 if eval \${$3+:} false; then :
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1950$as_echo_n "checking for $2... " >&6; }
1951if eval \${$3+:} false; then :
1952 $as_echo_n "(cached) " >&6
1953fi
1954eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956$as_echo "$ac_res" >&6; }
1957else
1958 # Is the header compilable?
1959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1960$as_echo_n "checking $2 usability... " >&6; }
1961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962/* end confdefs.h. */
1963$4
1964#include <$2>
1965_ACEOF
1966if ac_fn_cxx_try_compile "$LINENO"; then :
1967 ac_header_compiler=yes
1968else
1969 ac_header_compiler=no
1970fi
1971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1973$as_echo "$ac_header_compiler" >&6; }
1974
1975# Is the header present?
1976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1977$as_echo_n "checking $2 presence... " >&6; }
1978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1979/* end confdefs.h. */
1980#include <$2>
1981_ACEOF
1982if ac_fn_cxx_try_cpp "$LINENO"; then :
1983 ac_header_preproc=yes
1984else
1985 ac_header_preproc=no
1986fi
1987rm -f conftest.err conftest.i conftest.$ac_ext
1988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1989$as_echo "$ac_header_preproc" >&6; }
1990
1991# So? What about this header?
1992case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1993 yes:no: )
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1995$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1997$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1998 ;;
1999 no:yes:* )
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2001$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2003$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2005$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2007$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2009$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2010 ;;
2011esac
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2013$as_echo_n "checking for $2... " >&6; }
2014if eval \${$3+:} false; then :
2015 $as_echo_n "(cached) " >&6
2016else
2017 eval "$3=\$ac_header_compiler"
2018fi
2019eval ac_res=\$$3
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2021$as_echo "$ac_res" >&6; }
2022fi
2023 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2024
2025} # ac_fn_cxx_check_header_mongrel
2026
2027# ac_fn_cxx_check_func LINENO FUNC VAR
2028# ------------------------------------
2029# Tests whether FUNC exists, setting the cache variable VAR accordingly
2030ac_fn_cxx_check_func ()
2031{
2032 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2034$as_echo_n "checking for $2... " >&6; }
2035if eval \${$3+:} false; then :
2036 $as_echo_n "(cached) " >&6
2037else
2038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2039/* end confdefs.h. */
2040/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2041 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2042#define $2 innocuous_$2
2043
2044/* System header to define __stub macros and hopefully few prototypes,
2045 which can conflict with char $2 (); below.
2046 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2047 <limits.h> exists even on freestanding compilers. */
2048
2049#ifdef __STDC__
2050# include <limits.h>
2051#else
2052# include <assert.h>
2053#endif
2054
2055#undef $2
2056
2057/* Override any GCC internal prototype to avoid an error.
2058 Use char because int might match the return type of a GCC
2059 builtin and then its argument prototype would still apply. */
2060#ifdef __cplusplus
2061extern "C"
2062#endif
2063char $2 ();
2064/* The GNU C library defines this for functions which it implements
2065 to always fail with ENOSYS. Some functions are actually named
2066 something starting with __ and the normal name is an alias. */
2067#if defined __stub_$2 || defined __stub___$2
2068choke me
2069#endif
2070
2071int
2072main ()
2073{
2074return $2 ();
2075 ;
2076 return 0;
2077}
2078_ACEOF
2079if ac_fn_cxx_try_link "$LINENO"; then :
2080 eval "$3=yes"
2081else
2082 eval "$3=no"
2083fi
2084rm -f core conftest.err conftest.$ac_objext \
2085 conftest$ac_exeext conftest.$ac_ext
2086fi
2087eval ac_res=\$$3
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2089$as_echo "$ac_res" >&6; }
2090 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2091
2092} # ac_fn_cxx_check_func
2093
2094# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2095# ---------------------------------------------
2096# Tests whether TYPE exists after having included INCLUDES, setting cache
2097# variable VAR accordingly.
2098ac_fn_cxx_check_type ()
2099{
2100 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2102$as_echo_n "checking for $2... " >&6; }
2103if eval \${$3+:} false; then :
2104 $as_echo_n "(cached) " >&6
2105else
2106 eval "$3=no"
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108/* end confdefs.h. */
2109$4
2110int
2111main ()
2112{
2113if (sizeof ($2))
2114 return 0;
2115 ;
2116 return 0;
2117}
2118_ACEOF
2119if ac_fn_cxx_try_compile "$LINENO"; then :
2120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2121/* end confdefs.h. */
2122$4
2123int
2124main ()
2125{
2126if (sizeof (($2)))
2127 return 0;
2128 ;
2129 return 0;
2130}
2131_ACEOF
2132if ac_fn_cxx_try_compile "$LINENO"; then :
2133
2134else
2135 eval "$3=yes"
2136fi
2137rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138fi
2139rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140fi
2141eval ac_res=\$$3
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2143$as_echo "$ac_res" >&6; }
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145
2146} # ac_fn_cxx_check_type
2147
2148# ac_fn_c_find_intX_t LINENO BITS VAR
2149# -----------------------------------
2150# Finds a signed integer type with width BITS, setting cache variable VAR
2151# accordingly.
2152ac_fn_c_find_intX_t ()
2153{
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2156$as_echo_n "checking for int$2_t... " >&6; }
2157if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2159else
2160 eval "$3=no"
2161 # Order is important - never check a type that is potentially smaller
2162 # than half of the expected target width.
2163 for ac_type in int$2_t 'int' 'long int' \
2164 'long long int' 'short int' 'signed char'; do
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166/* end confdefs.h. */
2167$ac_includes_default
2168 enum { N = $2 / 2 - 1 };
2169int
2170main ()
2171{
2172static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
2173test_array [0] = 0;
2174return test_array [0];
2175
2176 ;
2177 return 0;
2178}
2179_ACEOF
2180if ac_fn_cxx_try_compile "$LINENO"; then :
2181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2182/* end confdefs.h. */
2183$ac_includes_default
2184 enum { N = $2 / 2 - 1 };
2185int
2186main ()
2187{
2188static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2189 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
2190test_array [0] = 0;
2191return test_array [0];
2192
2193 ;
2194 return 0;
2195}
2196_ACEOF
2197if ac_fn_cxx_try_compile "$LINENO"; then :
2198
2199else
2200 case $ac_type in #(
2201 int$2_t) :
2202 eval "$3=yes" ;; #(
2203 *) :
2204 eval "$3=\$ac_type" ;;
2205esac
2206fi
2207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2208fi
2209rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2210 if eval test \"x\$"$3"\" = x"no"; then :
2211
2212else
2213 break
2214fi
2215 done
2216fi
2217eval ac_res=\$$3
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2219$as_echo "$ac_res" >&6; }
2220 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2221
2222} # ac_fn_c_find_intX_t
2223
2224# ac_fn_c_find_uintX_t LINENO BITS VAR
2225# ------------------------------------
2226# Finds an unsigned integer type with width BITS, setting cache variable VAR
2227# accordingly.
2228ac_fn_c_find_uintX_t ()
2229{
2230 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2232$as_echo_n "checking for uint$2_t... " >&6; }
2233if eval \${$3+:} false; then :
2234 $as_echo_n "(cached) " >&6
2235else
2236 eval "$3=no"
2237 # Order is important - never check a type that is potentially smaller
2238 # than half of the expected target width.
2239 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2240 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2242/* end confdefs.h. */
2243$ac_includes_default
2244int
2245main ()
2246{
2247static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2248test_array [0] = 0;
2249return test_array [0];
2250
2251 ;
2252 return 0;
2253}
2254_ACEOF
2255if ac_fn_cxx_try_compile "$LINENO"; then :
2256 case $ac_type in #(
2257 uint$2_t) :
2258 eval "$3=yes" ;; #(
2259 *) :
2260 eval "$3=\$ac_type" ;;
2261esac
2262fi
2263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 if eval test \"x\$"$3"\" = x"no"; then :
2265
2266else
2267 break
2268fi
2269 done
2270fi
2271eval ac_res=\$$3
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2273$as_echo "$ac_res" >&6; }
2274 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2275
2276} # ac_fn_c_find_uintX_t
2277
2278# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES
2279# ------------------------------------------------------
2280# Tries to find if the field MEMBER exists in type AGGR, after including
2281# INCLUDES, setting cache variable VAR accordingly.
2282ac_fn_cxx_check_member ()
2283{
2284 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2286$as_echo_n "checking for $2.$3... " >&6; }
2287if eval \${$4+:} false; then :
2288 $as_echo_n "(cached) " >&6
2289else
2290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2291/* end confdefs.h. */
2292$5
2293int
2294main ()
2295{
2296static $2 ac_aggr;
2297if (ac_aggr.$3)
2298return 0;
2299 ;
2300 return 0;
2301}
2302_ACEOF
2303if ac_fn_cxx_try_compile "$LINENO"; then :
2304 eval "$4=yes"
2305else
2306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2307/* end confdefs.h. */
2308$5
2309int
2310main ()
2311{
2312static $2 ac_aggr;
2313if (sizeof ac_aggr.$3)
2314return 0;
2315 ;
2316 return 0;
2317}
2318_ACEOF
2319if ac_fn_cxx_try_compile "$LINENO"; then :
2320 eval "$4=yes"
2321else
2322 eval "$4=no"
2323fi
2324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2325fi
2326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327fi
2328eval ac_res=\$$4
2329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330$as_echo "$ac_res" >&6; }
2331 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2332
2333} # ac_fn_cxx_check_member
2334
2335# ac_fn_cxx_try_run LINENO
2336# ------------------------
2337# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2338# that executables *can* be run.
2339ac_fn_cxx_try_run ()
2340{
2341 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2342 if { { ac_try="$ac_link"
2343case "(($ac_try" in
2344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2345 *) ac_try_echo=$ac_try;;
2346esac
2347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2348$as_echo "$ac_try_echo"; } >&5
2349 (eval "$ac_link") 2>&5
2350 ac_status=$?
2351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2352 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2353 { { case "(($ac_try" in
2354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2355 *) ac_try_echo=$ac_try;;
2356esac
2357eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2358$as_echo "$ac_try_echo"; } >&5
2359 (eval "$ac_try") 2>&5
2360 ac_status=$?
2361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2362 test $ac_status = 0; }; }; then :
2363 ac_retval=0
2364else
2365 $as_echo "$as_me: program exited with status $ac_status" >&5
2366 $as_echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368
2369 ac_retval=$ac_status
2370fi
2371 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373 as_fn_set_status $ac_retval
2374
2375} # ac_fn_cxx_try_run
2376cat >config.log <<_ACEOF
1042This file contains any messages produced by compilers while 2377This file contains any messages produced by compilers while
1043running configure, to aid debugging if configure makes a mistake. 2378running configure, to aid debugging if configure makes a mistake.
1044 2379
1045It was created by $as_me, which was 2380It was created by $as_me, which was
1046generated by GNU Autoconf 2.59. Invocation command line was 2381generated by GNU Autoconf 2.69. Invocation command line was
1047 2382
1048 $ $0 $@ 2383 $ $0 $@
1049 2384
1050_ACEOF 2385_ACEOF
2386exec 5>>config.log
1051{ 2387{
1052cat <<_ASUNAME 2388cat <<_ASUNAME
1053## --------- ## 2389## --------- ##
1054## Platform. ## 2390## Platform. ##
1055## --------- ## 2391## --------- ##
1064/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2400/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1065 2401
1066/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2402/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1067/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2403/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1068/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2404/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1069hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 2405/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1070/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2406/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1071/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2407/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1072/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2408/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1073 2409
1074_ASUNAME 2410_ASUNAME
1076as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1077for as_dir in $PATH 2413for as_dir in $PATH
1078do 2414do
1079 IFS=$as_save_IFS 2415 IFS=$as_save_IFS
1080 test -z "$as_dir" && as_dir=. 2416 test -z "$as_dir" && as_dir=.
1081 echo "PATH: $as_dir" 2417 $as_echo "PATH: $as_dir"
1082done 2418 done
2419IFS=$as_save_IFS
1083 2420
1084} >&5 2421} >&5
1085 2422
1086cat >&5 <<_ACEOF 2423cat >&5 <<_ACEOF
1087 2424
1099# Also quote any args containing shell meta-characters. 2436# Also quote any args containing shell meta-characters.
1100# Make two passes to allow for proper duplicate-argument suppression. 2437# Make two passes to allow for proper duplicate-argument suppression.
1101ac_configure_args= 2438ac_configure_args=
1102ac_configure_args0= 2439ac_configure_args0=
1103ac_configure_args1= 2440ac_configure_args1=
1104ac_sep=
1105ac_must_keep_next=false 2441ac_must_keep_next=false
1106for ac_pass in 1 2 2442for ac_pass in 1 2
1107do 2443do
1108 for ac_arg 2444 for ac_arg
1109 do 2445 do
1110 case $ac_arg in 2446 case $ac_arg in
1111 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2447 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1113 | -silent | --silent | --silen | --sile | --sil) 2449 | -silent | --silent | --silen | --sile | --sil)
1114 continue ;; 2450 continue ;;
1115 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 2451 *\'*)
1116 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2452 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1117 esac 2453 esac
1118 case $ac_pass in 2454 case $ac_pass in
1119 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2455 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1120 2) 2456 2)
1121 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 2457 as_fn_append ac_configure_args1 " '$ac_arg'"
1122 if test $ac_must_keep_next = true; then 2458 if test $ac_must_keep_next = true; then
1123 ac_must_keep_next=false # Got value, back to normal. 2459 ac_must_keep_next=false # Got value, back to normal.
1124 else 2460 else
1125 case $ac_arg in 2461 case $ac_arg in
1126 *=* | --config-cache | -C | -disable-* | --disable-* \ 2462 *=* | --config-cache | -C | -disable-* | --disable-* \
1132 esac 2468 esac
1133 ;; 2469 ;;
1134 -* ) ac_must_keep_next=true ;; 2470 -* ) ac_must_keep_next=true ;;
1135 esac 2471 esac
1136 fi 2472 fi
1137 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 2473 as_fn_append ac_configure_args " '$ac_arg'"
1138 # Get rid of the leading space.
1139 ac_sep=" "
1140 ;; 2474 ;;
1141 esac 2475 esac
1142 done 2476 done
1143done 2477done
1144$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 2478{ ac_configure_args0=; unset ac_configure_args0;}
1145$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 2479{ ac_configure_args1=; unset ac_configure_args1;}
1146 2480
1147# When interrupted or exit'd, cleanup temporary files, and complete 2481# When interrupted or exit'd, cleanup temporary files, and complete
1148# config.log. We remove comments because anyway the quotes in there 2482# config.log. We remove comments because anyway the quotes in there
1149# would cause problems or look ugly. 2483# would cause problems or look ugly.
1150# WARNING: Be sure not to use single quotes in there, as some shells, 2484# WARNING: Use '\'' to represent an apostrophe within the trap.
1151# such as our DU 5.0 friend, will then `close' the trap. 2485# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1152trap 'exit_status=$? 2486trap 'exit_status=$?
1153 # Save into config.log some information that might help in debugging. 2487 # Save into config.log some information that might help in debugging.
1154 { 2488 {
1155 echo 2489 echo
1156 2490
1157 cat <<\_ASBOX
1158## ---------------- ## 2491 $as_echo "## ---------------- ##
1159## Cache variables. ## 2492## Cache variables. ##
1160## ---------------- ## 2493## ---------------- ##"
1161_ASBOX
1162 echo 2494 echo
1163 # The following way of writing the cache mishandles newlines in values, 2495 # The following way of writing the cache mishandles newlines in values,
1164{ 2496(
2497 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2498 eval ac_val=\$$ac_var
2499 case $ac_val in #(
2500 *${as_nl}*)
2501 case $ac_var in #(
2502 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2503$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2504 esac
2505 case $ac_var in #(
2506 _ | IFS | as_nl) ;; #(
2507 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2508 *) { eval $ac_var=; unset $ac_var;} ;;
2509 esac ;;
2510 esac
2511 done
1165 (set) 2>&1 | 2512 (set) 2>&1 |
1166 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 2513 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1167 *ac_space=\ *) 2514 *${as_nl}ac_space=\ *)
1168 sed -n \ 2515 sed -n \
1169 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 2516 "s/'\''/'\''\\\\'\'''\''/g;
1170 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 2517 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2518 ;; #(
2519 *)
2520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1171 ;; 2521 ;;
1172 *)
1173 sed -n \
1174 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1175 ;;
1176 esac; 2522 esac |
1177} 2523 sort
2524)
1178 echo 2525 echo
1179 2526
1180 cat <<\_ASBOX
1181## ----------------- ## 2527 $as_echo "## ----------------- ##
1182## Output variables. ## 2528## Output variables. ##
1183## ----------------- ## 2529## ----------------- ##"
1184_ASBOX
1185 echo 2530 echo
1186 for ac_var in $ac_subst_vars 2531 for ac_var in $ac_subst_vars
1187 do 2532 do
1188 eval ac_val=$`echo $ac_var` 2533 eval ac_val=\$$ac_var
2534 case $ac_val in
2535 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2536 esac
1189 echo "$ac_var='"'"'$ac_val'"'"'" 2537 $as_echo "$ac_var='\''$ac_val'\''"
1190 done | sort 2538 done | sort
1191 echo 2539 echo
1192 2540
1193 if test -n "$ac_subst_files"; then 2541 if test -n "$ac_subst_files"; then
1194 cat <<\_ASBOX 2542 $as_echo "## ------------------- ##
2543## File substitutions. ##
1195## ------------- ## 2544## ------------------- ##"
1196## Output files. ##
1197## ------------- ##
1198_ASBOX
1199 echo 2545 echo
1200 for ac_var in $ac_subst_files 2546 for ac_var in $ac_subst_files
1201 do 2547 do
1202 eval ac_val=$`echo $ac_var` 2548 eval ac_val=\$$ac_var
2549 case $ac_val in
2550 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2551 esac
1203 echo "$ac_var='"'"'$ac_val'"'"'" 2552 $as_echo "$ac_var='\''$ac_val'\''"
1204 done | sort 2553 done | sort
1205 echo 2554 echo
1206 fi 2555 fi
1207 2556
1208 if test -s confdefs.h; then 2557 if test -s confdefs.h; then
1209 cat <<\_ASBOX 2558 $as_echo "## ----------- ##
1210## ----------- ##
1211## confdefs.h. ## 2559## confdefs.h. ##
1212## ----------- ## 2560## ----------- ##"
1213_ASBOX
1214 echo 2561 echo
1215 sed "/^$/d" confdefs.h | sort 2562 cat confdefs.h
1216 echo 2563 echo
1217 fi 2564 fi
1218 test "$ac_signal" != 0 && 2565 test "$ac_signal" != 0 &&
1219 echo "$as_me: caught signal $ac_signal" 2566 $as_echo "$as_me: caught signal $ac_signal"
1220 echo "$as_me: exit $exit_status" 2567 $as_echo "$as_me: exit $exit_status"
1221 } >&5 2568 } >&5
1222 rm -f core *.core && 2569 rm -f core *.core core.conftest.* &&
1223 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 2570 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1224 exit $exit_status 2571 exit $exit_status
1225 ' 0 2572' 0
1226for ac_signal in 1 2 13 15; do 2573for ac_signal in 1 2 13 15; do
1227 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 2574 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1228done 2575done
1229ac_signal=0 2576ac_signal=0
1230 2577
1231# confdefs.h avoids OS command line length limits that DEFS can exceed. 2578# confdefs.h avoids OS command line length limits that DEFS can exceed.
1232rm -rf conftest* confdefs.h 2579rm -f -r conftest* confdefs.h
1233# AIX cpp loses on an empty file, so make sure it contains at least a newline. 2580
1234echo >confdefs.h 2581$as_echo "/* confdefs.h */" > confdefs.h
1235 2582
1236# Predefined preprocessor variables. 2583# Predefined preprocessor variables.
1237 2584
1238cat >>confdefs.h <<_ACEOF 2585cat >>confdefs.h <<_ACEOF
1239#define PACKAGE_NAME "$PACKAGE_NAME" 2586#define PACKAGE_NAME "$PACKAGE_NAME"
1240_ACEOF 2587_ACEOF
1241 2588
1242
1243cat >>confdefs.h <<_ACEOF 2589cat >>confdefs.h <<_ACEOF
1244#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2590#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1245_ACEOF 2591_ACEOF
1246 2592
1247
1248cat >>confdefs.h <<_ACEOF 2593cat >>confdefs.h <<_ACEOF
1249#define PACKAGE_VERSION "$PACKAGE_VERSION" 2594#define PACKAGE_VERSION "$PACKAGE_VERSION"
1250_ACEOF 2595_ACEOF
1251 2596
1252
1253cat >>confdefs.h <<_ACEOF 2597cat >>confdefs.h <<_ACEOF
1254#define PACKAGE_STRING "$PACKAGE_STRING" 2598#define PACKAGE_STRING "$PACKAGE_STRING"
1255_ACEOF 2599_ACEOF
1256 2600
1257
1258cat >>confdefs.h <<_ACEOF 2601cat >>confdefs.h <<_ACEOF
1259#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2602#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1260_ACEOF 2603_ACEOF
1261 2604
2605cat >>confdefs.h <<_ACEOF
2606#define PACKAGE_URL "$PACKAGE_URL"
2607_ACEOF
2608
1262 2609
1263# Let the site file select an alternate cache file if it wants to. 2610# Let the site file select an alternate cache file if it wants to.
1264# Prefer explicitly selected file to automatically selected ones. 2611# Prefer an explicitly selected file to automatically selected ones.
2612ac_site_file1=NONE
2613ac_site_file2=NONE
1265if test -z "$CONFIG_SITE"; then 2614if test -n "$CONFIG_SITE"; then
2615 # We do not want a PATH search for config.site.
2616 case $CONFIG_SITE in #((
2617 -*) ac_site_file1=./$CONFIG_SITE;;
2618 */*) ac_site_file1=$CONFIG_SITE;;
2619 *) ac_site_file1=./$CONFIG_SITE;;
2620 esac
1266 if test "x$prefix" != xNONE; then 2621elif test "x$prefix" != xNONE; then
1267 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 2622 ac_site_file1=$prefix/share/config.site
2623 ac_site_file2=$prefix/etc/config.site
1268 else 2624else
1269 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 2625 ac_site_file1=$ac_default_prefix/share/config.site
1270 fi 2626 ac_site_file2=$ac_default_prefix/etc/config.site
1271fi 2627fi
1272for ac_site_file in $CONFIG_SITE; do 2628for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1273 if test -r "$ac_site_file"; then 2629do
2630 test "x$ac_site_file" = xNONE && continue
2631 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1274 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1275echo "$as_me: loading site script $ac_site_file" >&6;} 2633$as_echo "$as_me: loading site script $ac_site_file" >&6;}
1276 sed 's/^/| /' "$ac_site_file" >&5 2634 sed 's/^/| /' "$ac_site_file" >&5
1277 . "$ac_site_file" 2635 . "$ac_site_file" \
2636 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2638as_fn_error $? "failed to load site script $ac_site_file
2639See \`config.log' for more details" "$LINENO" 5; }
1278 fi 2640 fi
1279done 2641done
1280 2642
1281if test -r "$cache_file"; then 2643if test -r "$cache_file"; then
1282 # Some versions of bash will fail to source /dev/null (special 2644 # Some versions of bash will fail to source /dev/null (special files
1283 # files actually), so we avoid doing that. 2645 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1284 if test -f "$cache_file"; then 2646 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1285 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 2647 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1286echo "$as_me: loading cache $cache_file" >&6;} 2648$as_echo "$as_me: loading cache $cache_file" >&6;}
1287 case $cache_file in 2649 case $cache_file in
1288 [\\/]* | ?:[\\/]* ) . $cache_file;; 2650 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1289 *) . ./$cache_file;; 2651 *) . "./$cache_file";;
1290 esac 2652 esac
1291 fi 2653 fi
1292else 2654else
1293 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 2655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1294echo "$as_me: creating cache $cache_file" >&6;} 2656$as_echo "$as_me: creating cache $cache_file" >&6;}
1295 >$cache_file 2657 >$cache_file
1296fi 2658fi
1297 2659
1298# Check that the precious variables saved in the cache have kept the same 2660# Check that the precious variables saved in the cache have kept the same
1299# value. 2661# value.
1300ac_cache_corrupted=false 2662ac_cache_corrupted=false
1301for ac_var in `(set) 2>&1 | 2663for ac_var in $ac_precious_vars; do
1302 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1303 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2664 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1304 eval ac_new_set=\$ac_env_${ac_var}_set 2665 eval ac_new_set=\$ac_env_${ac_var}_set
1305 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 2666 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1306 eval ac_new_val="\$ac_env_${ac_var}_value" 2667 eval ac_new_val=\$ac_env_${ac_var}_value
1307 case $ac_old_set,$ac_new_set in 2668 case $ac_old_set,$ac_new_set in
1308 set,) 2669 set,)
1309 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1310echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2671$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1311 ac_cache_corrupted=: ;; 2672 ac_cache_corrupted=: ;;
1312 ,set) 2673 ,set)
1313 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1314echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2675$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1315 ac_cache_corrupted=: ;; 2676 ac_cache_corrupted=: ;;
1316 ,);; 2677 ,);;
1317 *) 2678 *)
1318 if test "x$ac_old_val" != "x$ac_new_val"; then 2679 if test "x$ac_old_val" != "x$ac_new_val"; then
2680 # differences in whitespace do not lead to failure.
2681 ac_old_val_w=`echo x $ac_old_val`
2682 ac_new_val_w=`echo x $ac_new_val`
2683 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1319 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1320echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2685$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1321 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1322echo "$as_me: former value: $ac_old_val" >&2;}
1323 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1324echo "$as_me: current value: $ac_new_val" >&2;}
1325 ac_cache_corrupted=: 2686 ac_cache_corrupted=:
2687 else
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2689$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2690 eval $ac_var=\$ac_old_val
2691 fi
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2693$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2695$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1326 fi;; 2696 fi;;
1327 esac 2697 esac
1328 # Pass precious variables to config.status. 2698 # Pass precious variables to config.status.
1329 if test "$ac_new_set" = set; then 2699 if test "$ac_new_set" = set; then
1330 case $ac_new_val in 2700 case $ac_new_val in
1331 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1332 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2701 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1333 *) ac_arg=$ac_var=$ac_new_val ;; 2702 *) ac_arg=$ac_var=$ac_new_val ;;
1334 esac 2703 esac
1335 case " $ac_configure_args " in 2704 case " $ac_configure_args " in
1336 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2705 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1337 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2706 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1338 esac 2707 esac
1339 fi 2708 fi
1340done 2709done
1341if $ac_cache_corrupted; then 2710if $ac_cache_corrupted; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1342 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1343echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2714$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1344 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1345echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2715 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1346 { (exit 1); exit 1; }; }
1347fi 2716fi
2717## -------------------- ##
2718## Main body of script. ##
2719## -------------------- ##
1348 2720
1349ac_ext=c 2721ac_ext=c
1350ac_cpp='$CPP $CPPFLAGS' 2722ac_cpp='$CPP $CPPFLAGS'
1351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1353ac_compiler_gnu=$ac_cv_c_compiler_gnu 2725ac_compiler_gnu=$ac_cv_c_compiler_gnu
1354 2726
1355 2727
1356 2728
1357 2729
1358 2730ac_config_headers="$ac_config_headers config.h:config.h.in"
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373 2731
1374 2732
1375ac_aux_dir= 2733ac_aux_dir=
1376for ac_dir in autoconf $srcdir/autoconf; do 2734for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1377 if test -f $ac_dir/install-sh; then 2735 if test -f "$ac_dir/install-sh"; then
1378 ac_aux_dir=$ac_dir 2736 ac_aux_dir=$ac_dir
1379 ac_install_sh="$ac_aux_dir/install-sh -c" 2737 ac_install_sh="$ac_aux_dir/install-sh -c"
1380 break 2738 break
1381 elif test -f $ac_dir/install.sh; then 2739 elif test -f "$ac_dir/install.sh"; then
1382 ac_aux_dir=$ac_dir 2740 ac_aux_dir=$ac_dir
1383 ac_install_sh="$ac_aux_dir/install.sh -c" 2741 ac_install_sh="$ac_aux_dir/install.sh -c"
1384 break 2742 break
1385 elif test -f $ac_dir/shtool; then 2743 elif test -f "$ac_dir/shtool"; then
1386 ac_aux_dir=$ac_dir 2744 ac_aux_dir=$ac_dir
1387 ac_install_sh="$ac_aux_dir/shtool install -c" 2745 ac_install_sh="$ac_aux_dir/shtool install -c"
1388 break 2746 break
1389 fi 2747 fi
1390done 2748done
1391if test -z "$ac_aux_dir"; then 2749if test -z "$ac_aux_dir"; then
1392 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&5 2750 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1393echo "$as_me: error: cannot find install-sh or install.sh in autoconf $srcdir/autoconf" >&2;}
1394 { (exit 1); exit 1; }; }
1395fi 2751fi
2752
2753# These three variables are undocumented and unsupported,
2754# and are intended to be withdrawn in a future Autoconf release.
2755# They can cause serious problems if a builder's source tree is in a directory
2756# whose full name contains unusual characters.
1396ac_config_guess="$SHELL $ac_aux_dir/config.guess" 2757ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1397ac_config_sub="$SHELL $ac_aux_dir/config.sub" 2758ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1398ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 2759ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1399
1400 ac_config_headers="$ac_config_headers config.h:autoconf/config.h.in"
1401 2760
1402 2761
1403# Make sure we can run config.sub. 2762# Make sure we can run config.sub.
1404$ac_config_sub sun4 >/dev/null 2>&1 || 2763$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1405 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 2764 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
1406echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1407 { (exit 1); exit 1; }; }
1408 2765
1409echo "$as_me:$LINENO: checking build system type" >&5 2766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
1410echo $ECHO_N "checking build system type... $ECHO_C" >&6 2767$as_echo_n "checking build system type... " >&6; }
1411if test "${ac_cv_build+set}" = set; then 2768if ${ac_cv_build+:} false; then :
1412 echo $ECHO_N "(cached) $ECHO_C" >&6 2769 $as_echo_n "(cached) " >&6
1413else 2770else
1414 ac_cv_build_alias=$build_alias 2771 ac_build_alias=$build_alias
1415test -z "$ac_cv_build_alias" && 2772test "x$ac_build_alias" = x &&
1416 ac_cv_build_alias=`$ac_config_guess` 2773 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1417test -z "$ac_cv_build_alias" && 2774test "x$ac_build_alias" = x &&
1418 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 2775 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
1419echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1420 { (exit 1); exit 1; }; }
1421ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 2776ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1422 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 2777 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
1423echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1424 { (exit 1); exit 1; }; }
1425 2778
1426fi 2779fi
1427echo "$as_me:$LINENO: result: $ac_cv_build" >&5 2780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
1428echo "${ECHO_T}$ac_cv_build" >&6 2781$as_echo "$ac_cv_build" >&6; }
2782case $ac_cv_build in
2783*-*-*) ;;
2784*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2785esac
1429build=$ac_cv_build 2786build=$ac_cv_build
1430build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2787ac_save_IFS=$IFS; IFS='-'
1431build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2788set x $ac_cv_build
1432build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2789shift
2790build_cpu=$1
2791build_vendor=$2
2792shift; shift
2793# Remember, the first character of IFS is used to create $*,
2794# except with old shells:
2795build_os=$*
2796IFS=$ac_save_IFS
2797case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
1433 2798
1434 2799
1435echo "$as_me:$LINENO: checking host system type" >&5 2800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
1436echo $ECHO_N "checking host system type... $ECHO_C" >&6 2801$as_echo_n "checking host system type... " >&6; }
1437if test "${ac_cv_host+set}" = set; then 2802if ${ac_cv_host+:} false; then :
1438 echo $ECHO_N "(cached) $ECHO_C" >&6 2803 $as_echo_n "(cached) " >&6
1439else 2804else
1440 ac_cv_host_alias=$host_alias 2805 if test "x$host_alias" = x; then
1441test -z "$ac_cv_host_alias" &&
1442 ac_cv_host_alias=$ac_cv_build_alias 2806 ac_cv_host=$ac_cv_build
2807else
1443ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 2808 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
1444 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 2809 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
1445echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1446 { (exit 1); exit 1; }; }
1447
1448fi 2810fi
2811
2812fi
1449echo "$as_me:$LINENO: result: $ac_cv_host" >&5 2813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
1450echo "${ECHO_T}$ac_cv_host" >&6 2814$as_echo "$ac_cv_host" >&6; }
2815case $ac_cv_host in
2816*-*-*) ;;
2817*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2818esac
1451host=$ac_cv_host 2819host=$ac_cv_host
1452host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 2820ac_save_IFS=$IFS; IFS='-'
1453host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 2821set x $ac_cv_host
1454host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 2822shift
2823host_cpu=$1
2824host_vendor=$2
2825shift; shift
2826# Remember, the first character of IFS is used to create $*,
2827# except with old shells:
2828host_os=$*
2829IFS=$ac_save_IFS
2830case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
1455 2831
1456 2832
1457 2833
1458VERSION=`sed -n -e 's/^.*[ \t]VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2834VERSION=`sed -n -e 's/^.* VERSION.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
1459DATE=`sed -n -e 's/^.*[ \t]DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h` 2835DATE=`sed -n -e 's/^.* DATE.*"\(.*\)"$/\1/p' ${srcdir}/src/version.h`
2836
1460echo "" 2837echo ""
1461echo "configuring for rxvt $VERSION" 2838echo "configuring for rxvt $VERSION"
1462echo "" 2839echo ""
1463 2840
1464orig_CXXFLAGS="$CXXFLAGS" 2841orig_CXXFLAGS="$CXXFLAGS"
1465
1466 2842
1467ac_ext=c 2843ac_ext=c
1468ac_cpp='$CPP $CPPFLAGS' 2844ac_cpp='$CPP $CPPFLAGS'
1469ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1470ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1471ac_compiler_gnu=$ac_cv_c_compiler_gnu 2847ac_compiler_gnu=$ac_cv_c_compiler_gnu
1472if test -n "$ac_tool_prefix"; then 2848if test -n "$ac_tool_prefix"; then
1473 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2849 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1474set dummy ${ac_tool_prefix}gcc; ac_word=$2 2850set dummy ${ac_tool_prefix}gcc; ac_word=$2
1475echo "$as_me:$LINENO: checking for $ac_word" >&5 2851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1476echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2852$as_echo_n "checking for $ac_word... " >&6; }
1477if test "${ac_cv_prog_CC+set}" = set; then 2853if ${ac_cv_prog_CC+:} false; then :
1478 echo $ECHO_N "(cached) $ECHO_C" >&6 2854 $as_echo_n "(cached) " >&6
1479else 2855else
1480 if test -n "$CC"; then 2856 if test -n "$CC"; then
1481 ac_cv_prog_CC="$CC" # Let the user override the test. 2857 ac_cv_prog_CC="$CC" # Let the user override the test.
1482else 2858else
1483as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1484for as_dir in $PATH 2860for as_dir in $PATH
1485do 2861do
1486 IFS=$as_save_IFS 2862 IFS=$as_save_IFS
1487 test -z "$as_dir" && as_dir=. 2863 test -z "$as_dir" && as_dir=.
1488 for ac_exec_ext in '' $ac_executable_extensions; do 2864 for ac_exec_ext in '' $ac_executable_extensions; do
1489 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1490 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2866 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1491 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1492 break 2 2868 break 2
1493 fi 2869 fi
1494done 2870done
1495done 2871 done
2872IFS=$as_save_IFS
1496 2873
1497fi 2874fi
1498fi 2875fi
1499CC=$ac_cv_prog_CC 2876CC=$ac_cv_prog_CC
1500if test -n "$CC"; then 2877if test -n "$CC"; then
1501 echo "$as_me:$LINENO: result: $CC" >&5 2878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1502echo "${ECHO_T}$CC" >&6 2879$as_echo "$CC" >&6; }
1503else 2880else
1504 echo "$as_me:$LINENO: result: no" >&5 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1505echo "${ECHO_T}no" >&6 2882$as_echo "no" >&6; }
1506fi 2883fi
2884
1507 2885
1508fi 2886fi
1509if test -z "$ac_cv_prog_CC"; then 2887if test -z "$ac_cv_prog_CC"; then
1510 ac_ct_CC=$CC 2888 ac_ct_CC=$CC
1511 # Extract the first word of "gcc", so it can be a program name with args. 2889 # Extract the first word of "gcc", so it can be a program name with args.
1512set dummy gcc; ac_word=$2 2890set dummy gcc; ac_word=$2
1513echo "$as_me:$LINENO: checking for $ac_word" >&5 2891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1514echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2892$as_echo_n "checking for $ac_word... " >&6; }
1515if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2893if ${ac_cv_prog_ac_ct_CC+:} false; then :
1516 echo $ECHO_N "(cached) $ECHO_C" >&6 2894 $as_echo_n "(cached) " >&6
1517else 2895else
1518 if test -n "$ac_ct_CC"; then 2896 if test -n "$ac_ct_CC"; then
1519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2897 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1520else 2898else
1521as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2899as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1522for as_dir in $PATH 2900for as_dir in $PATH
1523do 2901do
1524 IFS=$as_save_IFS 2902 IFS=$as_save_IFS
1525 test -z "$as_dir" && as_dir=. 2903 test -z "$as_dir" && as_dir=.
1526 for ac_exec_ext in '' $ac_executable_extensions; do 2904 for ac_exec_ext in '' $ac_executable_extensions; do
1527 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1528 ac_cv_prog_ac_ct_CC="gcc" 2906 ac_cv_prog_ac_ct_CC="gcc"
1529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1530 break 2 2908 break 2
1531 fi 2909 fi
1532done 2910done
1533done 2911 done
2912IFS=$as_save_IFS
1534 2913
1535fi 2914fi
1536fi 2915fi
1537ac_ct_CC=$ac_cv_prog_ac_ct_CC 2916ac_ct_CC=$ac_cv_prog_ac_ct_CC
1538if test -n "$ac_ct_CC"; then 2917if test -n "$ac_ct_CC"; then
1539 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1540echo "${ECHO_T}$ac_ct_CC" >&6 2919$as_echo "$ac_ct_CC" >&6; }
1541else 2920else
1542 echo "$as_me:$LINENO: result: no" >&5 2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1543echo "${ECHO_T}no" >&6 2922$as_echo "no" >&6; }
1544fi 2923fi
1545 2924
2925 if test "x$ac_ct_CC" = x; then
2926 CC=""
2927 else
2928 case $cross_compiling:$ac_tool_warned in
2929yes:)
2930{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932ac_tool_warned=yes ;;
2933esac
1546 CC=$ac_ct_CC 2934 CC=$ac_ct_CC
2935 fi
1547else 2936else
1548 CC="$ac_cv_prog_CC" 2937 CC="$ac_cv_prog_CC"
1549fi 2938fi
1550 2939
1551if test -z "$CC"; then 2940if test -z "$CC"; then
1552 if test -n "$ac_tool_prefix"; then 2941 if test -n "$ac_tool_prefix"; then
1553 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2942 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1554set dummy ${ac_tool_prefix}cc; ac_word=$2 2943set dummy ${ac_tool_prefix}cc; ac_word=$2
1555echo "$as_me:$LINENO: checking for $ac_word" >&5 2944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1556echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2945$as_echo_n "checking for $ac_word... " >&6; }
1557if test "${ac_cv_prog_CC+set}" = set; then 2946if ${ac_cv_prog_CC+:} false; then :
1558 echo $ECHO_N "(cached) $ECHO_C" >&6 2947 $as_echo_n "(cached) " >&6
1559else 2948else
1560 if test -n "$CC"; then 2949 if test -n "$CC"; then
1561 ac_cv_prog_CC="$CC" # Let the user override the test. 2950 ac_cv_prog_CC="$CC" # Let the user override the test.
1562else 2951else
1563as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2952as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564for as_dir in $PATH 2953for as_dir in $PATH
1565do 2954do
1566 IFS=$as_save_IFS 2955 IFS=$as_save_IFS
1567 test -z "$as_dir" && as_dir=. 2956 test -z "$as_dir" && as_dir=.
1568 for ac_exec_ext in '' $ac_executable_extensions; do 2957 for ac_exec_ext in '' $ac_executable_extensions; do
1569 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2958 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570 ac_cv_prog_CC="${ac_tool_prefix}cc" 2959 ac_cv_prog_CC="${ac_tool_prefix}cc"
1571 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2960 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1572 break 2 2961 break 2
1573 fi 2962 fi
1574done 2963done
1575done 2964 done
2965IFS=$as_save_IFS
1576 2966
1577fi 2967fi
1578fi 2968fi
1579CC=$ac_cv_prog_CC 2969CC=$ac_cv_prog_CC
1580if test -n "$CC"; then 2970if test -n "$CC"; then
1581 echo "$as_me:$LINENO: result: $CC" >&5 2971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1582echo "${ECHO_T}$CC" >&6 2972$as_echo "$CC" >&6; }
1583else 2973else
1584 echo "$as_me:$LINENO: result: no" >&5 2974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1585echo "${ECHO_T}no" >&6 2975$as_echo "no" >&6; }
1586fi 2976fi
1587 2977
1588fi
1589if test -z "$ac_cv_prog_CC"; then
1590 ac_ct_CC=$CC
1591 # Extract the first word of "cc", so it can be a program name with args.
1592set dummy cc; ac_word=$2
1593echo "$as_me:$LINENO: checking for $ac_word" >&5
1594echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1595if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1596 echo $ECHO_N "(cached) $ECHO_C" >&6
1597else
1598 if test -n "$ac_ct_CC"; then
1599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1600else
1601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1602for as_dir in $PATH
1603do
1604 IFS=$as_save_IFS
1605 test -z "$as_dir" && as_dir=.
1606 for ac_exec_ext in '' $ac_executable_extensions; do
1607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1608 ac_cv_prog_ac_ct_CC="cc"
1609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1610 break 2
1611 fi
1612done
1613done
1614 2978
1615fi 2979 fi
1616fi
1617ac_ct_CC=$ac_cv_prog_ac_ct_CC
1618if test -n "$ac_ct_CC"; then
1619 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1620echo "${ECHO_T}$ac_ct_CC" >&6
1621else
1622 echo "$as_me:$LINENO: result: no" >&5
1623echo "${ECHO_T}no" >&6
1624fi
1625
1626 CC=$ac_ct_CC
1627else
1628 CC="$ac_cv_prog_CC"
1629fi
1630
1631fi 2980fi
1632if test -z "$CC"; then 2981if test -z "$CC"; then
1633 # Extract the first word of "cc", so it can be a program name with args. 2982 # Extract the first word of "cc", so it can be a program name with args.
1634set dummy cc; ac_word=$2 2983set dummy cc; ac_word=$2
1635echo "$as_me:$LINENO: checking for $ac_word" >&5 2984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1636echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2985$as_echo_n "checking for $ac_word... " >&6; }
1637if test "${ac_cv_prog_CC+set}" = set; then 2986if ${ac_cv_prog_CC+:} false; then :
1638 echo $ECHO_N "(cached) $ECHO_C" >&6 2987 $as_echo_n "(cached) " >&6
1639else 2988else
1640 if test -n "$CC"; then 2989 if test -n "$CC"; then
1641 ac_cv_prog_CC="$CC" # Let the user override the test. 2990 ac_cv_prog_CC="$CC" # Let the user override the test.
1642else 2991else
1643 ac_prog_rejected=no 2992 ac_prog_rejected=no
1644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645for as_dir in $PATH 2994for as_dir in $PATH
1646do 2995do
1647 IFS=$as_save_IFS 2996 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=. 2997 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do 2998 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3000 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1652 ac_prog_rejected=yes 3001 ac_prog_rejected=yes
1653 continue 3002 continue
1654 fi 3003 fi
1655 ac_cv_prog_CC="cc" 3004 ac_cv_prog_CC="cc"
1656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1657 break 2 3006 break 2
1658 fi 3007 fi
1659done 3008done
1660done 3009 done
3010IFS=$as_save_IFS
1661 3011
1662if test $ac_prog_rejected = yes; then 3012if test $ac_prog_rejected = yes; then
1663 # We found a bogon in the path, so make sure we never use it. 3013 # We found a bogon in the path, so make sure we never use it.
1664 set dummy $ac_cv_prog_CC 3014 set dummy $ac_cv_prog_CC
1665 shift 3015 shift
1673fi 3023fi
1674fi 3024fi
1675fi 3025fi
1676CC=$ac_cv_prog_CC 3026CC=$ac_cv_prog_CC
1677if test -n "$CC"; then 3027if test -n "$CC"; then
1678 echo "$as_me:$LINENO: result: $CC" >&5 3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1679echo "${ECHO_T}$CC" >&6 3029$as_echo "$CC" >&6; }
1680else 3030else
1681 echo "$as_me:$LINENO: result: no" >&5 3031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1682echo "${ECHO_T}no" >&6 3032$as_echo "no" >&6; }
1683fi 3033fi
3034
1684 3035
1685fi 3036fi
1686if test -z "$CC"; then 3037if test -z "$CC"; then
1687 if test -n "$ac_tool_prefix"; then 3038 if test -n "$ac_tool_prefix"; then
1688 for ac_prog in cl 3039 for ac_prog in cl.exe
1689 do 3040 do
1690 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3041 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1691set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3042set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1692echo "$as_me:$LINENO: checking for $ac_word" >&5 3043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1693echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3044$as_echo_n "checking for $ac_word... " >&6; }
1694if test "${ac_cv_prog_CC+set}" = set; then 3045if ${ac_cv_prog_CC+:} false; then :
1695 echo $ECHO_N "(cached) $ECHO_C" >&6 3046 $as_echo_n "(cached) " >&6
1696else 3047else
1697 if test -n "$CC"; then 3048 if test -n "$CC"; then
1698 ac_cv_prog_CC="$CC" # Let the user override the test. 3049 ac_cv_prog_CC="$CC" # Let the user override the test.
1699else 3050else
1700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3051as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1701for as_dir in $PATH 3052for as_dir in $PATH
1702do 3053do
1703 IFS=$as_save_IFS 3054 IFS=$as_save_IFS
1704 test -z "$as_dir" && as_dir=. 3055 test -z "$as_dir" && as_dir=.
1705 for ac_exec_ext in '' $ac_executable_extensions; do 3056 for ac_exec_ext in '' $ac_executable_extensions; do
1706 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1707 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3058 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1708 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1709 break 2 3060 break 2
1710 fi 3061 fi
1711done 3062done
1712done 3063 done
3064IFS=$as_save_IFS
1713 3065
1714fi 3066fi
1715fi 3067fi
1716CC=$ac_cv_prog_CC 3068CC=$ac_cv_prog_CC
1717if test -n "$CC"; then 3069if test -n "$CC"; then
1718 echo "$as_me:$LINENO: result: $CC" >&5 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
1719echo "${ECHO_T}$CC" >&6 3071$as_echo "$CC" >&6; }
1720else 3072else
1721 echo "$as_me:$LINENO: result: no" >&5 3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1722echo "${ECHO_T}no" >&6 3074$as_echo "no" >&6; }
1723fi 3075fi
3076
1724 3077
1725 test -n "$CC" && break 3078 test -n "$CC" && break
1726 done 3079 done
1727fi 3080fi
1728if test -z "$CC"; then 3081if test -z "$CC"; then
1729 ac_ct_CC=$CC 3082 ac_ct_CC=$CC
1730 for ac_prog in cl 3083 for ac_prog in cl.exe
1731do 3084do
1732 # Extract the first word of "$ac_prog", so it can be a program name with args. 3085 # Extract the first word of "$ac_prog", so it can be a program name with args.
1733set dummy $ac_prog; ac_word=$2 3086set dummy $ac_prog; ac_word=$2
1734echo "$as_me:$LINENO: checking for $ac_word" >&5 3087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
1735echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3088$as_echo_n "checking for $ac_word... " >&6; }
1736if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3089if ${ac_cv_prog_ac_ct_CC+:} false; then :
1737 echo $ECHO_N "(cached) $ECHO_C" >&6 3090 $as_echo_n "(cached) " >&6
1738else 3091else
1739 if test -n "$ac_ct_CC"; then 3092 if test -n "$ac_ct_CC"; then
1740 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3093 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1741else 3094else
1742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3095as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1743for as_dir in $PATH 3096for as_dir in $PATH
1744do 3097do
1745 IFS=$as_save_IFS 3098 IFS=$as_save_IFS
1746 test -z "$as_dir" && as_dir=. 3099 test -z "$as_dir" && as_dir=.
1747 for ac_exec_ext in '' $ac_executable_extensions; do 3100 for ac_exec_ext in '' $ac_executable_extensions; do
1748 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1749 ac_cv_prog_ac_ct_CC="$ac_prog" 3102 ac_cv_prog_ac_ct_CC="$ac_prog"
1750 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
1751 break 2 3104 break 2
1752 fi 3105 fi
1753done 3106done
1754done 3107 done
3108IFS=$as_save_IFS
1755 3109
1756fi 3110fi
1757fi 3111fi
1758ac_ct_CC=$ac_cv_prog_ac_ct_CC 3112ac_ct_CC=$ac_cv_prog_ac_ct_CC
1759if test -n "$ac_ct_CC"; then 3113if test -n "$ac_ct_CC"; then
1760 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
1761echo "${ECHO_T}$ac_ct_CC" >&6 3115$as_echo "$ac_ct_CC" >&6; }
1762else 3116else
1763 echo "$as_me:$LINENO: result: no" >&5 3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
1764echo "${ECHO_T}no" >&6 3118$as_echo "no" >&6; }
1765fi 3119fi
3120
1766 3121
1767 test -n "$ac_ct_CC" && break 3122 test -n "$ac_ct_CC" && break
1768done 3123done
1769 3124
3125 if test "x$ac_ct_CC" = x; then
3126 CC=""
3127 else
3128 case $cross_compiling:$ac_tool_warned in
3129yes:)
3130{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3131$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3132ac_tool_warned=yes ;;
3133esac
1770 CC=$ac_ct_CC 3134 CC=$ac_ct_CC
3135 fi
1771fi 3136fi
1772 3137
1773fi 3138fi
1774 3139
1775 3140
1776test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3141test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1777See \`config.log' for more details." >&5 3142$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1778echo "$as_me: error: no acceptable C compiler found in \$PATH 3143as_fn_error $? "no acceptable C compiler found in \$PATH
1779See \`config.log' for more details." >&2;} 3144See \`config.log' for more details" "$LINENO" 5; }
1780 { (exit 1); exit 1; }; }
1781 3145
1782# Provide some information about the compiler. 3146# Provide some information about the compiler.
1783echo "$as_me:$LINENO:" \ 3147$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
1784 "checking for C compiler version" >&5 3148set X $ac_compile
1785ac_compiler=`set X $ac_compile; echo $2` 3149ac_compiler=$2
1786{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3150for ac_option in --version -v -V -qversion; do
1787 (eval $ac_compiler --version </dev/null >&5) 2>&5 3151 { { ac_try="$ac_compiler $ac_option >&5"
3152case "(($ac_try" in
3153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154 *) ac_try_echo=$ac_try;;
3155esac
3156eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3157$as_echo "$ac_try_echo"; } >&5
3158 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
1788 ac_status=$? 3159 ac_status=$?
3160 if test -s conftest.err; then
3161 sed '10a\
3162... rest of stderr output deleted ...
3163 10q' conftest.err >conftest.er1
3164 cat conftest.er1 >&5
3165 fi
3166 rm -f conftest.er1 conftest.err
1789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1790 (exit $ac_status); } 3168 test $ac_status = 0; }
1791{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3169done
1792 (eval $ac_compiler -v </dev/null >&5) 2>&5
1793 ac_status=$?
1794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1795 (exit $ac_status); }
1796{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1797 (eval $ac_compiler -V </dev/null >&5) 2>&5
1798 ac_status=$?
1799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1800 (exit $ac_status); }
1801 3170
1802cat >conftest.$ac_ext <<_ACEOF
1803/* confdefs.h. */
1804_ACEOF
1805cat confdefs.h >>conftest.$ac_ext 3171cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1806cat >>conftest.$ac_ext <<_ACEOF
1807/* end confdefs.h. */ 3172/* end confdefs.h. */
1808 3173
1809int 3174int
1810main () 3175main ()
1811{ 3176{
1813 ; 3178 ;
1814 return 0; 3179 return 0;
1815} 3180}
1816_ACEOF 3181_ACEOF
1817ac_clean_files_save=$ac_clean_files 3182ac_clean_files_save=$ac_clean_files
1818ac_clean_files="$ac_clean_files a.out a.exe b.out" 3183ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
1819# Try to create an executable without -o first, disregard a.out. 3184# Try to create an executable without -o first, disregard a.out.
1820# It will help us diagnose broken compilers, and finding out an intuition 3185# It will help us diagnose broken compilers, and finding out an intuition
1821# of exeext. 3186# of exeext.
1822echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
1823echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 3188$as_echo_n "checking whether the C compiler works... " >&6; }
1824ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3189ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1825if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 3190
3191# The possible output files:
3192ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3193
3194ac_rmfiles=
3195for ac_file in $ac_files
3196do
3197 case $ac_file in
3198 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3199 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3200 esac
3201done
3202rm -f $ac_rmfiles
3203
3204if { { ac_try="$ac_link_default"
3205case "(($ac_try" in
3206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207 *) ac_try_echo=$ac_try;;
3208esac
3209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3210$as_echo "$ac_try_echo"; } >&5
1826 (eval $ac_link_default) 2>&5 3211 (eval "$ac_link_default") 2>&5
1827 ac_status=$? 3212 ac_status=$?
1828 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 (exit $ac_status); }; then 3214 test $ac_status = 0; }; then :
1830 # Find the output, starting from the most likely. This scheme is 3215 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
1831# not robust to junk in `.', hence go to wildcards (a.*) only as a last 3216# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
1832# resort. 3217# in a Makefile. We should not override ac_cv_exeext if it was cached,
1833 3218# so that the user can short-circuit this test for compilers unknown to
1834# Be careful to initialize this variable, since it used to be cached. 3219# Autoconf.
1835# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 3220for ac_file in $ac_files ''
1836ac_cv_exeext=
1837# b.out is created by i960 compilers.
1838for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1839do 3221do
1840 test -f "$ac_file" || continue 3222 test -f "$ac_file" || continue
1841 case $ac_file in 3223 case $ac_file in
1842 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 3224 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
1843 ;;
1844 conftest.$ac_ext )
1845 # This is the source file.
1846 ;; 3225 ;;
1847 [ab].out ) 3226 [ab].out )
1848 # We found the default executable, but exeext='' is most 3227 # We found the default executable, but exeext='' is most
1849 # certainly right. 3228 # certainly right.
1850 break;; 3229 break;;
1851 *.* ) 3230 *.* )
3231 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3232 then :; else
1852 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3233 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1853 # FIXME: I believe we export ac_cv_exeext for Libtool, 3234 fi
1854 # but it would be cool to find out if it's true. Does anybody 3235 # We set ac_cv_exeext here because the later test for it is not
1855 # maintain Libtool? --akim. 3236 # safe: cross compilers may not add the suffix if given an `-o'
1856 export ac_cv_exeext 3237 # argument, so we may need to know it at that point already.
3238 # Even if this section looks crufty: it has the advantage of
3239 # actually working.
1857 break;; 3240 break;;
1858 * ) 3241 * )
1859 break;; 3242 break;;
1860 esac 3243 esac
1861done 3244done
3245test "$ac_cv_exeext" = no && ac_cv_exeext=
3246
1862else 3247else
3248 ac_file=''
3249fi
3250if test -z "$ac_file"; then :
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252$as_echo "no" >&6; }
1863 echo "$as_me: failed program was:" >&5 3253$as_echo "$as_me: failed program was:" >&5
1864sed 's/^/| /' conftest.$ac_ext >&5 3254sed 's/^/| /' conftest.$ac_ext >&5
1865 3255
1866{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 3256{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1867See \`config.log' for more details." >&5 3257$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1868echo "$as_me: error: C compiler cannot create executables 3258as_fn_error 77 "C compiler cannot create executables
1869See \`config.log' for more details." >&2;} 3259See \`config.log' for more details" "$LINENO" 5; }
1870 { (exit 77); exit 77; }; } 3260else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3262$as_echo "yes" >&6; }
1871fi 3263fi
1872 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3265$as_echo_n "checking for C compiler default output file name... " >&6; }
3266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3267$as_echo "$ac_file" >&6; }
1873ac_exeext=$ac_cv_exeext 3268ac_exeext=$ac_cv_exeext
1874echo "$as_me:$LINENO: result: $ac_file" >&5
1875echo "${ECHO_T}$ac_file" >&6
1876 3269
1877# Check the compiler produces executables we can run. If not, either 3270rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
1878# the compiler is broken, or we cross compile. 3271ac_clean_files=$ac_clean_files_save
1879echo "$as_me:$LINENO: checking whether the C compiler works" >&5 3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
1880echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 3273$as_echo_n "checking for suffix of executables... " >&6; }
1881# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 3274if { { ac_try="$ac_link"
1882# If not cross compiling, check that we can run a simple program. 3275case "(($ac_try" in
1883if test "$cross_compiling" != yes; then 3276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1884 if { ac_try='./$ac_file' 3277 *) ac_try_echo=$ac_try;;
1885 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3278esac
3279eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3280$as_echo "$ac_try_echo"; } >&5
1886 (eval $ac_try) 2>&5 3281 (eval "$ac_link") 2>&5
1887 ac_status=$? 3282 ac_status=$?
1888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 (exit $ac_status); }; }; then
1890 cross_compiling=no
1891 else
1892 if test "$cross_compiling" = maybe; then
1893 cross_compiling=yes
1894 else
1895 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1896If you meant to cross compile, use \`--host'.
1897See \`config.log' for more details." >&5
1898echo "$as_me: error: cannot run C compiled programs.
1899If you meant to cross compile, use \`--host'.
1900See \`config.log' for more details." >&2;}
1901 { (exit 1); exit 1; }; }
1902 fi
1903 fi
1904fi
1905echo "$as_me:$LINENO: result: yes" >&5
1906echo "${ECHO_T}yes" >&6
1907
1908rm -f a.out a.exe conftest$ac_cv_exeext b.out
1909ac_clean_files=$ac_clean_files_save
1910# Check the compiler produces executables we can run. If not, either
1911# the compiler is broken, or we cross compile.
1912echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1913echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1914echo "$as_me:$LINENO: result: $cross_compiling" >&5
1915echo "${ECHO_T}$cross_compiling" >&6
1916
1917echo "$as_me:$LINENO: checking for suffix of executables" >&5
1918echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1919if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1920 (eval $ac_link) 2>&5
1921 ac_status=$?
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }; then 3284 test $ac_status = 0; }; then :
1924 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3285 # If both `conftest.exe' and `conftest' are `present' (well, observable)
1925# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3286# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
1926# work properly (i.e., refer to `conftest.exe'), while it won't with 3287# work properly (i.e., refer to `conftest.exe'), while it won't with
1927# `rm'. 3288# `rm'.
1928for ac_file in conftest.exe conftest conftest.*; do 3289for ac_file in conftest.exe conftest conftest.*; do
1929 test -f "$ac_file" || continue 3290 test -f "$ac_file" || continue
1930 case $ac_file in 3291 case $ac_file in
1931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 3292 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
1932 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3293 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1933 export ac_cv_exeext
1934 break;; 3294 break;;
1935 * ) break;; 3295 * ) break;;
1936 esac 3296 esac
1937done 3297done
1938else 3298else
1939 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3299 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1940See \`config.log' for more details." >&5 3300$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1941echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3301as_fn_error $? "cannot compute suffix of executables: cannot compile and link
1942See \`config.log' for more details." >&2;} 3302See \`config.log' for more details" "$LINENO" 5; }
1943 { (exit 1); exit 1; }; }
1944fi 3303fi
1945
1946rm -f conftest$ac_cv_exeext 3304rm -f conftest conftest$ac_cv_exeext
1947echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
1948echo "${ECHO_T}$ac_cv_exeext" >&6 3306$as_echo "$ac_cv_exeext" >&6; }
1949 3307
1950rm -f conftest.$ac_ext 3308rm -f conftest.$ac_ext
1951EXEEXT=$ac_cv_exeext 3309EXEEXT=$ac_cv_exeext
1952ac_exeext=$EXEEXT 3310ac_exeext=$EXEEXT
1953echo "$as_me:$LINENO: checking for suffix of object files" >&5
1954echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1955if test "${ac_cv_objext+set}" = set; then
1956 echo $ECHO_N "(cached) $ECHO_C" >&6
1957else
1958 cat >conftest.$ac_ext <<_ACEOF
1959/* confdefs.h. */
1960_ACEOF
1961cat confdefs.h >>conftest.$ac_ext 3311cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962cat >>conftest.$ac_ext <<_ACEOF
1963/* end confdefs.h. */ 3312/* end confdefs.h. */
1964 3313#include <stdio.h>
1965int 3314int
1966main () 3315main ()
1967{ 3316{
3317FILE *f = fopen ("conftest.out", "w");
3318 return ferror (f) || fclose (f) != 0;
1968 3319
1969 ; 3320 ;
1970 return 0; 3321 return 0;
1971} 3322}
1972_ACEOF 3323_ACEOF
3324ac_clean_files="$ac_clean_files conftest.out"
3325# Check that the compiler produces executables we can run. If not, either
3326# the compiler is broken, or we cross compile.
3327{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3328$as_echo_n "checking whether we are cross compiling... " >&6; }
3329if test "$cross_compiling" != yes; then
3330 { { ac_try="$ac_link"
3331case "(($ac_try" in
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3334esac
3335eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3336$as_echo "$ac_try_echo"; } >&5
3337 (eval "$ac_link") 2>&5
3338 ac_status=$?
3339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3340 test $ac_status = 0; }
3341 if { ac_try='./conftest$ac_cv_exeext'
3342 { { case "(($ac_try" in
3343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3344 *) ac_try_echo=$ac_try;;
3345esac
3346eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3347$as_echo "$ac_try_echo"; } >&5
3348 (eval "$ac_try") 2>&5
3349 ac_status=$?
3350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3351 test $ac_status = 0; }; }; then
3352 cross_compiling=no
3353 else
3354 if test "$cross_compiling" = maybe; then
3355 cross_compiling=yes
3356 else
3357 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3359as_fn_error $? "cannot run C compiled programs.
3360If you meant to cross compile, use \`--host'.
3361See \`config.log' for more details" "$LINENO" 5; }
3362 fi
3363 fi
3364fi
3365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3366$as_echo "$cross_compiling" >&6; }
3367
3368rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3369ac_clean_files=$ac_clean_files_save
3370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3371$as_echo_n "checking for suffix of object files... " >&6; }
3372if ${ac_cv_objext+:} false; then :
3373 $as_echo_n "(cached) " >&6
3374else
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376/* end confdefs.h. */
3377
3378int
3379main ()
3380{
3381
3382 ;
3383 return 0;
3384}
3385_ACEOF
1973rm -f conftest.o conftest.obj 3386rm -f conftest.o conftest.obj
1974if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3387if { { ac_try="$ac_compile"
3388case "(($ac_try" in
3389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3390 *) ac_try_echo=$ac_try;;
3391esac
3392eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3393$as_echo "$ac_try_echo"; } >&5
1975 (eval $ac_compile) 2>&5 3394 (eval "$ac_compile") 2>&5
1976 ac_status=$? 3395 ac_status=$?
1977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 (exit $ac_status); }; then 3397 test $ac_status = 0; }; then :
1979 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 3398 for ac_file in conftest.o conftest.obj conftest.*; do
3399 test -f "$ac_file" || continue;
1980 case $ac_file in 3400 case $ac_file in
1981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 3401 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
1982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3402 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1983 break;; 3403 break;;
1984 esac 3404 esac
1985done 3405done
1986else 3406else
1987 echo "$as_me: failed program was:" >&5 3407 $as_echo "$as_me: failed program was:" >&5
1988sed 's/^/| /' conftest.$ac_ext >&5 3408sed 's/^/| /' conftest.$ac_ext >&5
1989 3409
1990{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3410{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1991See \`config.log' for more details." >&5 3411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1992echo "$as_me: error: cannot compute suffix of object files: cannot compile 3412as_fn_error $? "cannot compute suffix of object files: cannot compile
1993See \`config.log' for more details." >&2;} 3413See \`config.log' for more details" "$LINENO" 5; }
1994 { (exit 1); exit 1; }; }
1995fi 3414fi
1996
1997rm -f conftest.$ac_cv_objext conftest.$ac_ext 3415rm -f conftest.$ac_cv_objext conftest.$ac_ext
1998fi 3416fi
1999echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2000echo "${ECHO_T}$ac_cv_objext" >&6 3418$as_echo "$ac_cv_objext" >&6; }
2001OBJEXT=$ac_cv_objext 3419OBJEXT=$ac_cv_objext
2002ac_objext=$OBJEXT 3420ac_objext=$OBJEXT
2003echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2004echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 3422$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2005if test "${ac_cv_c_compiler_gnu+set}" = set; then 3423if ${ac_cv_c_compiler_gnu+:} false; then :
2006 echo $ECHO_N "(cached) $ECHO_C" >&6 3424 $as_echo_n "(cached) " >&6
2007else 3425else
2008 cat >conftest.$ac_ext <<_ACEOF
2009/* confdefs.h. */
2010_ACEOF
2011cat confdefs.h >>conftest.$ac_ext 3426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2012cat >>conftest.$ac_ext <<_ACEOF
2013/* end confdefs.h. */ 3427/* end confdefs.h. */
2014 3428
2015int 3429int
2016main () 3430main ()
2017{ 3431{
2021 3435
2022 ; 3436 ;
2023 return 0; 3437 return 0;
2024} 3438}
2025_ACEOF 3439_ACEOF
2026rm -f conftest.$ac_objext 3440if ac_fn_c_try_compile "$LINENO"; then :
2027if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2028 (eval $ac_compile) 2>conftest.er1
2029 ac_status=$?
2030 grep -v '^ *+' conftest.er1 >conftest.err
2031 rm -f conftest.er1
2032 cat conftest.err >&5
2033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2034 (exit $ac_status); } &&
2035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2037 (eval $ac_try) 2>&5
2038 ac_status=$?
2039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2040 (exit $ac_status); }; } &&
2041 { ac_try='test -s conftest.$ac_objext'
2042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2043 (eval $ac_try) 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; }; then
2047 ac_compiler_gnu=yes 3441 ac_compiler_gnu=yes
2048else 3442else
2049 echo "$as_me: failed program was:" >&5
2050sed 's/^/| /' conftest.$ac_ext >&5
2051
2052ac_compiler_gnu=no 3443 ac_compiler_gnu=no
2053fi 3444fi
2054rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2055ac_cv_c_compiler_gnu=$ac_compiler_gnu 3446ac_cv_c_compiler_gnu=$ac_compiler_gnu
2056 3447
2057fi 3448fi
2058echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2059echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 3450$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2060GCC=`test $ac_compiler_gnu = yes && echo yes` 3451if test $ac_compiler_gnu = yes; then
3452 GCC=yes
3453else
3454 GCC=
3455fi
2061ac_test_CFLAGS=${CFLAGS+set} 3456ac_test_CFLAGS=${CFLAGS+set}
2062ac_save_CFLAGS=$CFLAGS 3457ac_save_CFLAGS=$CFLAGS
3458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3459$as_echo_n "checking whether $CC accepts -g... " >&6; }
3460if ${ac_cv_prog_cc_g+:} false; then :
3461 $as_echo_n "(cached) " >&6
3462else
3463 ac_save_c_werror_flag=$ac_c_werror_flag
3464 ac_c_werror_flag=yes
3465 ac_cv_prog_cc_g=no
2063CFLAGS="-g" 3466 CFLAGS="-g"
2064echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2065echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2066if test "${ac_cv_prog_cc_g+set}" = set; then
2067 echo $ECHO_N "(cached) $ECHO_C" >&6
2068else
2069 cat >conftest.$ac_ext <<_ACEOF
2070/* confdefs.h. */
2071_ACEOF
2072cat confdefs.h >>conftest.$ac_ext 3467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2073cat >>conftest.$ac_ext <<_ACEOF
2074/* end confdefs.h. */ 3468/* end confdefs.h. */
2075 3469
2076int 3470int
2077main () 3471main ()
2078{ 3472{
2079 3473
2080 ; 3474 ;
2081 return 0; 3475 return 0;
2082} 3476}
2083_ACEOF 3477_ACEOF
2084rm -f conftest.$ac_objext 3478if ac_fn_c_try_compile "$LINENO"; then :
2085if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2086 (eval $ac_compile) 2>conftest.er1
2087 ac_status=$?
2088 grep -v '^ *+' conftest.er1 >conftest.err
2089 rm -f conftest.er1
2090 cat conftest.err >&5
2091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2092 (exit $ac_status); } &&
2093 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2095 (eval $ac_try) 2>&5
2096 ac_status=$?
2097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2098 (exit $ac_status); }; } &&
2099 { ac_try='test -s conftest.$ac_objext'
2100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2101 (eval $ac_try) 2>&5
2102 ac_status=$?
2103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2104 (exit $ac_status); }; }; then
2105 ac_cv_prog_cc_g=yes 3479 ac_cv_prog_cc_g=yes
2106else 3480else
2107 echo "$as_me: failed program was:" >&5 3481 CFLAGS=""
2108sed 's/^/| /' conftest.$ac_ext >&5 3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483/* end confdefs.h. */
2109 3484
3485int
3486main ()
3487{
3488
3489 ;
3490 return 0;
3491}
3492_ACEOF
3493if ac_fn_c_try_compile "$LINENO"; then :
3494
3495else
3496 ac_c_werror_flag=$ac_save_c_werror_flag
3497 CFLAGS="-g"
3498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3499/* end confdefs.h. */
3500
3501int
3502main ()
3503{
3504
3505 ;
3506 return 0;
3507}
3508_ACEOF
3509if ac_fn_c_try_compile "$LINENO"; then :
2110ac_cv_prog_cc_g=no 3510 ac_cv_prog_cc_g=yes
2111fi 3511fi
2112rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113fi 3513fi
3514rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515fi
3516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3517 ac_c_werror_flag=$ac_save_c_werror_flag
3518fi
2114echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 3519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2115echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 3520$as_echo "$ac_cv_prog_cc_g" >&6; }
2116if test "$ac_test_CFLAGS" = set; then 3521if test "$ac_test_CFLAGS" = set; then
2117 CFLAGS=$ac_save_CFLAGS 3522 CFLAGS=$ac_save_CFLAGS
2118elif test $ac_cv_prog_cc_g = yes; then 3523elif test $ac_cv_prog_cc_g = yes; then
2119 if test "$GCC" = yes; then 3524 if test "$GCC" = yes; then
2120 CFLAGS="-g -O2" 3525 CFLAGS="-g -O2"
2126 CFLAGS="-O2" 3531 CFLAGS="-O2"
2127 else 3532 else
2128 CFLAGS= 3533 CFLAGS=
2129 fi 3534 fi
2130fi 3535fi
2131echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 3536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2132echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 3537$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2133if test "${ac_cv_prog_cc_stdc+set}" = set; then 3538if ${ac_cv_prog_cc_c89+:} false; then :
2134 echo $ECHO_N "(cached) $ECHO_C" >&6 3539 $as_echo_n "(cached) " >&6
2135else 3540else
2136 ac_cv_prog_cc_stdc=no 3541 ac_cv_prog_cc_c89=no
2137ac_save_CC=$CC 3542ac_save_CC=$CC
2138cat >conftest.$ac_ext <<_ACEOF
2139/* confdefs.h. */
2140_ACEOF
2141cat confdefs.h >>conftest.$ac_ext 3543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142cat >>conftest.$ac_ext <<_ACEOF
2143/* end confdefs.h. */ 3544/* end confdefs.h. */
2144#include <stdarg.h> 3545#include <stdarg.h>
2145#include <stdio.h> 3546#include <stdio.h>
2146#include <sys/types.h> 3547struct stat;
2147#include <sys/stat.h>
2148/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3548/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2149struct buf { int x; }; 3549struct buf { int x; };
2150FILE * (*rcsopen) (struct buf *, struct stat *, int); 3550FILE * (*rcsopen) (struct buf *, struct stat *, int);
2151static char *e (p, i) 3551static char *e (p, i)
2152 char **p; 3552 char **p;
2165} 3565}
2166 3566
2167/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3567/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2168 function prototypes and stuff, but not '\xHH' hex character constants. 3568 function prototypes and stuff, but not '\xHH' hex character constants.
2169 These don't provoke an error unfortunately, instead are silently treated 3569 These don't provoke an error unfortunately, instead are silently treated
2170 as 'x'. The following induces an error, until -std1 is added to get 3570 as 'x'. The following induces an error, until -std is added to get
2171 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3571 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2172 array size at least. It's necessary to write '\x00'==0 to get something 3572 array size at least. It's necessary to write '\x00'==0 to get something
2173 that's true only with -std1. */ 3573 that's true only with -std. */
2174int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3574int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3575
3576/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3577 inside strings and character constants. */
3578#define FOO(x) 'x'
3579int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2175 3580
2176int test (int i, double x); 3581int test (int i, double x);
2177struct s1 {int (*f) (int a);}; 3582struct s1 {int (*f) (int a);};
2178struct s2 {int (*f) (double a);}; 3583struct s2 {int (*f) (double a);};
2179int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3584int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2185return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3590return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2186 ; 3591 ;
2187 return 0; 3592 return 0;
2188} 3593}
2189_ACEOF 3594_ACEOF
2190# Don't try gcc -ansi; that turns off useful extensions and 3595for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2191# breaks some systems' header files. 3596 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2192# AIX -qlanglvl=ansi
2193# Ultrix and OSF/1 -std1
2194# HP-UX 10.20 and later -Ae
2195# HP-UX older versions -Aa -D_HPUX_SOURCE
2196# SVR4 -Xc -D__EXTENSIONS__
2197for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2198do 3597do
2199 CC="$ac_save_CC $ac_arg" 3598 CC="$ac_save_CC $ac_arg"
2200 rm -f conftest.$ac_objext 3599 if ac_fn_c_try_compile "$LINENO"; then :
2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2202 (eval $ac_compile) 2>conftest.er1
2203 ac_status=$?
2204 grep -v '^ *+' conftest.er1 >conftest.err
2205 rm -f conftest.er1
2206 cat conftest.err >&5
2207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2208 (exit $ac_status); } &&
2209 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2211 (eval $ac_try) 2>&5
2212 ac_status=$?
2213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2214 (exit $ac_status); }; } &&
2215 { ac_try='test -s conftest.$ac_objext'
2216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2217 (eval $ac_try) 2>&5
2218 ac_status=$?
2219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2220 (exit $ac_status); }; }; then
2221 ac_cv_prog_cc_stdc=$ac_arg 3600 ac_cv_prog_cc_c89=$ac_arg
2222break
2223else
2224 echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227fi 3601fi
2228rm -f conftest.err conftest.$ac_objext 3602rm -f core conftest.err conftest.$ac_objext
3603 test "x$ac_cv_prog_cc_c89" != "xno" && break
2229done 3604done
2230rm -f conftest.$ac_ext conftest.$ac_objext 3605rm -f conftest.$ac_ext
2231CC=$ac_save_CC 3606CC=$ac_save_CC
2232 3607
2233fi 3608fi
2234 3609# AC_CACHE_VAL
2235case "x$ac_cv_prog_cc_stdc" in 3610case "x$ac_cv_prog_cc_c89" in
3611 x)
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3613$as_echo "none needed" >&6; } ;;
2236 x|xno) 3614 xno)
2237 echo "$as_me:$LINENO: result: none needed" >&5 3615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2238echo "${ECHO_T}none needed" >&6 ;; 3616$as_echo "unsupported" >&6; } ;;
2239 *) 3617 *)
2240 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2241echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2242 CC="$CC $ac_cv_prog_cc_stdc" ;; 3618 CC="$CC $ac_cv_prog_cc_c89"
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3620$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2243esac 3621esac
3622if test "x$ac_cv_prog_cc_c89" != xno; then :
2244 3623
2245# Some people use a C++ compiler to compile C. Since we use `exit',
2246# in C++ we need to declare it. In case someone uses the same compiler
2247# for both compiling C and C++ we need to have the C++ compiler decide
2248# the declaration of exit, since it's the most demanding environment.
2249cat >conftest.$ac_ext <<_ACEOF
2250#ifndef __cplusplus
2251 choke me
2252#endif
2253_ACEOF
2254rm -f conftest.$ac_objext
2255if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2256 (eval $ac_compile) 2>conftest.er1
2257 ac_status=$?
2258 grep -v '^ *+' conftest.er1 >conftest.err
2259 rm -f conftest.er1
2260 cat conftest.err >&5
2261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2262 (exit $ac_status); } &&
2263 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2265 (eval $ac_try) 2>&5
2266 ac_status=$?
2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2268 (exit $ac_status); }; } &&
2269 { ac_try='test -s conftest.$ac_objext'
2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2271 (eval $ac_try) 2>&5
2272 ac_status=$?
2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2274 (exit $ac_status); }; }; then
2275 for ac_declaration in \
2276 '' \
2277 'extern "C" void std::exit (int) throw (); using std::exit;' \
2278 'extern "C" void std::exit (int); using std::exit;' \
2279 'extern "C" void exit (int) throw ();' \
2280 'extern "C" void exit (int);' \
2281 'void exit (int);'
2282do
2283 cat >conftest.$ac_ext <<_ACEOF
2284/* confdefs.h. */
2285_ACEOF
2286cat confdefs.h >>conftest.$ac_ext
2287cat >>conftest.$ac_ext <<_ACEOF
2288/* end confdefs.h. */
2289$ac_declaration
2290#include <stdlib.h>
2291int
2292main ()
2293{
2294exit (42);
2295 ;
2296 return 0;
2297}
2298_ACEOF
2299rm -f conftest.$ac_objext
2300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2301 (eval $ac_compile) 2>conftest.er1
2302 ac_status=$?
2303 grep -v '^ *+' conftest.er1 >conftest.err
2304 rm -f conftest.er1
2305 cat conftest.err >&5
2306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307 (exit $ac_status); } &&
2308 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310 (eval $ac_try) 2>&5
2311 ac_status=$?
2312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313 (exit $ac_status); }; } &&
2314 { ac_try='test -s conftest.$ac_objext'
2315 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2316 (eval $ac_try) 2>&5
2317 ac_status=$?
2318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2319 (exit $ac_status); }; }; then
2320 :
2321else
2322 echo "$as_me: failed program was:" >&5
2323sed 's/^/| /' conftest.$ac_ext >&5
2324
2325continue
2326fi 3624fi
2327rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2328 cat >conftest.$ac_ext <<_ACEOF
2329/* confdefs.h. */
2330_ACEOF
2331cat confdefs.h >>conftest.$ac_ext
2332cat >>conftest.$ac_ext <<_ACEOF
2333/* end confdefs.h. */
2334$ac_declaration
2335int
2336main ()
2337{
2338exit (42);
2339 ;
2340 return 0;
2341}
2342_ACEOF
2343rm -f conftest.$ac_objext
2344if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2345 (eval $ac_compile) 2>conftest.er1
2346 ac_status=$?
2347 grep -v '^ *+' conftest.er1 >conftest.err
2348 rm -f conftest.er1
2349 cat conftest.err >&5
2350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2351 (exit $ac_status); } &&
2352 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2354 (eval $ac_try) 2>&5
2355 ac_status=$?
2356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2357 (exit $ac_status); }; } &&
2358 { ac_try='test -s conftest.$ac_objext'
2359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2360 (eval $ac_try) 2>&5
2361 ac_status=$?
2362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2363 (exit $ac_status); }; }; then
2364 break
2365else
2366 echo "$as_me: failed program was:" >&5
2367sed 's/^/| /' conftest.$ac_ext >&5
2368 3625
2369fi
2370rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2371done
2372rm -f conftest*
2373if test -n "$ac_declaration"; then
2374 echo '#ifdef __cplusplus' >>confdefs.h
2375 echo $ac_declaration >>confdefs.h
2376 echo '#endif' >>confdefs.h
2377fi
2378
2379else
2380 echo "$as_me: failed program was:" >&5
2381sed 's/^/| /' conftest.$ac_ext >&5
2382
2383fi
2384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2385ac_ext=c 3626ac_ext=c
2386ac_cpp='$CPP $CPPFLAGS' 3627ac_cpp='$CPP $CPPFLAGS'
2387ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3628ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2388ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3629ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2389ac_compiler_gnu=$ac_cv_c_compiler_gnu 3630ac_compiler_gnu=$ac_cv_c_compiler_gnu
2390 3631
2391ac_ext=cc 3632ac_ext=cpp
2392ac_cpp='$CXXCPP $CPPFLAGS' 3633ac_cpp='$CXXCPP $CPPFLAGS'
2393ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3634ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2394ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3635ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2395ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 3636ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3637if test -z "$CXX"; then
3638 if test -n "$CCC"; then
3639 CXX=$CCC
3640 else
2396if test -n "$ac_tool_prefix"; then 3641 if test -n "$ac_tool_prefix"; then
2397 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3642 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2398 do 3643 do
2399 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3644 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2400set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3645set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2401echo "$as_me:$LINENO: checking for $ac_word" >&5 3646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2402echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3647$as_echo_n "checking for $ac_word... " >&6; }
2403if test "${ac_cv_prog_CXX+set}" = set; then 3648if ${ac_cv_prog_CXX+:} false; then :
2404 echo $ECHO_N "(cached) $ECHO_C" >&6 3649 $as_echo_n "(cached) " >&6
2405else 3650else
2406 if test -n "$CXX"; then 3651 if test -n "$CXX"; then
2407 ac_cv_prog_CXX="$CXX" # Let the user override the test. 3652 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2408else 3653else
2409as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410for as_dir in $PATH 3655for as_dir in $PATH
2411do 3656do
2412 IFS=$as_save_IFS 3657 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=. 3658 test -z "$as_dir" && as_dir=.
2414 for ac_exec_ext in '' $ac_executable_extensions; do 3659 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2416 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 3661 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2417 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2418 break 2 3663 break 2
2419 fi 3664 fi
2420done 3665done
2421done 3666 done
3667IFS=$as_save_IFS
2422 3668
2423fi 3669fi
2424fi 3670fi
2425CXX=$ac_cv_prog_CXX 3671CXX=$ac_cv_prog_CXX
2426if test -n "$CXX"; then 3672if test -n "$CXX"; then
2427 echo "$as_me:$LINENO: result: $CXX" >&5 3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2428echo "${ECHO_T}$CXX" >&6 3674$as_echo "$CXX" >&6; }
2429else 3675else
2430 echo "$as_me:$LINENO: result: no" >&5 3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2431echo "${ECHO_T}no" >&6 3677$as_echo "no" >&6; }
2432fi 3678fi
3679
2433 3680
2434 test -n "$CXX" && break 3681 test -n "$CXX" && break
2435 done 3682 done
2436fi 3683fi
2437if test -z "$CXX"; then 3684if test -z "$CXX"; then
2438 ac_ct_CXX=$CXX 3685 ac_ct_CXX=$CXX
2439 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 3686 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2440do 3687do
2441 # Extract the first word of "$ac_prog", so it can be a program name with args. 3688 # Extract the first word of "$ac_prog", so it can be a program name with args.
2442set dummy $ac_prog; ac_word=$2 3689set dummy $ac_prog; ac_word=$2
2443echo "$as_me:$LINENO: checking for $ac_word" >&5 3690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2444echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3691$as_echo_n "checking for $ac_word... " >&6; }
2445if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 3692if ${ac_cv_prog_ac_ct_CXX+:} false; then :
2446 echo $ECHO_N "(cached) $ECHO_C" >&6 3693 $as_echo_n "(cached) " >&6
2447else 3694else
2448 if test -n "$ac_ct_CXX"; then 3695 if test -n "$ac_ct_CXX"; then
2449 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 3696 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2450else 3697else
2451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3698as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2452for as_dir in $PATH 3699for as_dir in $PATH
2453do 3700do
2454 IFS=$as_save_IFS 3701 IFS=$as_save_IFS
2455 test -z "$as_dir" && as_dir=. 3702 test -z "$as_dir" && as_dir=.
2456 for ac_exec_ext in '' $ac_executable_extensions; do 3703 for ac_exec_ext in '' $ac_executable_extensions; do
2457 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2458 ac_cv_prog_ac_ct_CXX="$ac_prog" 3705 ac_cv_prog_ac_ct_CXX="$ac_prog"
2459 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2460 break 2 3707 break 2
2461 fi 3708 fi
2462done 3709done
2463done 3710 done
3711IFS=$as_save_IFS
2464 3712
2465fi 3713fi
2466fi 3714fi
2467ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 3715ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2468if test -n "$ac_ct_CXX"; then 3716if test -n "$ac_ct_CXX"; then
2469 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 3717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2470echo "${ECHO_T}$ac_ct_CXX" >&6 3718$as_echo "$ac_ct_CXX" >&6; }
2471else 3719else
2472 echo "$as_me:$LINENO: result: no" >&5 3720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2473echo "${ECHO_T}no" >&6 3721$as_echo "no" >&6; }
2474fi 3722fi
3723
2475 3724
2476 test -n "$ac_ct_CXX" && break 3725 test -n "$ac_ct_CXX" && break
2477done 3726done
2478test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
2479 3727
3728 if test "x$ac_ct_CXX" = x; then
3729 CXX="g++"
3730 else
3731 case $cross_compiling:$ac_tool_warned in
3732yes:)
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3734$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3735ac_tool_warned=yes ;;
3736esac
2480 CXX=$ac_ct_CXX 3737 CXX=$ac_ct_CXX
3738 fi
2481fi 3739fi
2482 3740
2483 3741 fi
3742fi
2484# Provide some information about the compiler. 3743# Provide some information about the compiler.
2485echo "$as_me:$LINENO:" \ 3744$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
2486 "checking for C++ compiler version" >&5 3745set X $ac_compile
2487ac_compiler=`set X $ac_compile; echo $2` 3746ac_compiler=$2
2488{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 3747for ac_option in --version -v -V -qversion; do
2489 (eval $ac_compiler --version </dev/null >&5) 2>&5 3748 { { ac_try="$ac_compiler $ac_option >&5"
3749case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752esac
3753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754$as_echo "$ac_try_echo"; } >&5
3755 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2490 ac_status=$? 3756 ac_status=$?
3757 if test -s conftest.err; then
3758 sed '10a\
3759... rest of stderr output deleted ...
3760 10q' conftest.err >conftest.er1
3761 cat conftest.er1 >&5
3762 fi
3763 rm -f conftest.er1 conftest.err
2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2492 (exit $ac_status); } 3765 test $ac_status = 0; }
2493{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 3766done
2494 (eval $ac_compiler -v </dev/null >&5) 2>&5
2495 ac_status=$?
2496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2497 (exit $ac_status); }
2498{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2499 (eval $ac_compiler -V </dev/null >&5) 2>&5
2500 ac_status=$?
2501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2502 (exit $ac_status); }
2503 3767
2504echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
2505echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 3769$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
2506if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 3770if ${ac_cv_cxx_compiler_gnu+:} false; then :
2507 echo $ECHO_N "(cached) $ECHO_C" >&6 3771 $as_echo_n "(cached) " >&6
2508else 3772else
2509 cat >conftest.$ac_ext <<_ACEOF
2510/* confdefs.h. */
2511_ACEOF
2512cat confdefs.h >>conftest.$ac_ext 3773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2513cat >>conftest.$ac_ext <<_ACEOF
2514/* end confdefs.h. */ 3774/* end confdefs.h. */
2515 3775
2516int 3776int
2517main () 3777main ()
2518{ 3778{
2522 3782
2523 ; 3783 ;
2524 return 0; 3784 return 0;
2525} 3785}
2526_ACEOF 3786_ACEOF
2527rm -f conftest.$ac_objext 3787if ac_fn_cxx_try_compile "$LINENO"; then :
2528if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2529 (eval $ac_compile) 2>conftest.er1
2530 ac_status=$?
2531 grep -v '^ *+' conftest.er1 >conftest.err
2532 rm -f conftest.er1
2533 cat conftest.err >&5
2534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2535 (exit $ac_status); } &&
2536 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2538 (eval $ac_try) 2>&5
2539 ac_status=$?
2540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2541 (exit $ac_status); }; } &&
2542 { ac_try='test -s conftest.$ac_objext'
2543 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2544 (eval $ac_try) 2>&5
2545 ac_status=$?
2546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2547 (exit $ac_status); }; }; then
2548 ac_compiler_gnu=yes 3788 ac_compiler_gnu=yes
2549else 3789else
2550 echo "$as_me: failed program was:" >&5
2551sed 's/^/| /' conftest.$ac_ext >&5
2552
2553ac_compiler_gnu=no 3790 ac_compiler_gnu=no
2554fi 3791fi
2555rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3792rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2556ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 3793ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2557 3794
2558fi 3795fi
2559echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 3796{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
2560echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 3797$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
2561GXX=`test $ac_compiler_gnu = yes && echo yes` 3798if test $ac_compiler_gnu = yes; then
3799 GXX=yes
3800else
3801 GXX=
3802fi
2562ac_test_CXXFLAGS=${CXXFLAGS+set} 3803ac_test_CXXFLAGS=${CXXFLAGS+set}
2563ac_save_CXXFLAGS=$CXXFLAGS 3804ac_save_CXXFLAGS=$CXXFLAGS
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3806$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3807if ${ac_cv_prog_cxx_g+:} false; then :
3808 $as_echo_n "(cached) " >&6
3809else
3810 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3811 ac_cxx_werror_flag=yes
3812 ac_cv_prog_cxx_g=no
2564CXXFLAGS="-g" 3813 CXXFLAGS="-g"
2565echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2566echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
2567if test "${ac_cv_prog_cxx_g+set}" = set; then
2568 echo $ECHO_N "(cached) $ECHO_C" >&6
2569else
2570 cat >conftest.$ac_ext <<_ACEOF
2571/* confdefs.h. */
2572_ACEOF
2573cat confdefs.h >>conftest.$ac_ext 3814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2574cat >>conftest.$ac_ext <<_ACEOF
2575/* end confdefs.h. */ 3815/* end confdefs.h. */
2576 3816
2577int 3817int
2578main () 3818main ()
2579{ 3819{
2580 3820
2581 ; 3821 ;
2582 return 0; 3822 return 0;
2583} 3823}
2584_ACEOF 3824_ACEOF
2585rm -f conftest.$ac_objext 3825if ac_fn_cxx_try_compile "$LINENO"; then :
2586if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2587 (eval $ac_compile) 2>conftest.er1
2588 ac_status=$?
2589 grep -v '^ *+' conftest.er1 >conftest.err
2590 rm -f conftest.er1
2591 cat conftest.err >&5
2592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2593 (exit $ac_status); } &&
2594 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2596 (eval $ac_try) 2>&5
2597 ac_status=$?
2598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2599 (exit $ac_status); }; } &&
2600 { ac_try='test -s conftest.$ac_objext'
2601 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2602 (eval $ac_try) 2>&5
2603 ac_status=$?
2604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2605 (exit $ac_status); }; }; then
2606 ac_cv_prog_cxx_g=yes 3826 ac_cv_prog_cxx_g=yes
2607else 3827else
2608 echo "$as_me: failed program was:" >&5 3828 CXXFLAGS=""
2609sed 's/^/| /' conftest.$ac_ext >&5 3829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3830/* end confdefs.h. */
2610 3831
3832int
3833main ()
3834{
3835
3836 ;
3837 return 0;
3838}
3839_ACEOF
3840if ac_fn_cxx_try_compile "$LINENO"; then :
3841
3842else
3843 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3844 CXXFLAGS="-g"
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846/* end confdefs.h. */
3847
3848int
3849main ()
3850{
3851
3852 ;
3853 return 0;
3854}
3855_ACEOF
3856if ac_fn_cxx_try_compile "$LINENO"; then :
2611ac_cv_prog_cxx_g=no 3857 ac_cv_prog_cxx_g=yes
2612fi 3858fi
2613rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3859rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2614fi 3860fi
3861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3862fi
3863rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3864 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3865fi
2615echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
2616echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 3867$as_echo "$ac_cv_prog_cxx_g" >&6; }
2617if test "$ac_test_CXXFLAGS" = set; then 3868if test "$ac_test_CXXFLAGS" = set; then
2618 CXXFLAGS=$ac_save_CXXFLAGS 3869 CXXFLAGS=$ac_save_CXXFLAGS
2619elif test $ac_cv_prog_cxx_g = yes; then 3870elif test $ac_cv_prog_cxx_g = yes; then
2620 if test "$GXX" = yes; then 3871 if test "$GXX" = yes; then
2621 CXXFLAGS="-g -O2" 3872 CXXFLAGS="-g -O2"
2627 CXXFLAGS="-O2" 3878 CXXFLAGS="-O2"
2628 else 3879 else
2629 CXXFLAGS= 3880 CXXFLAGS=
2630 fi 3881 fi
2631fi 3882fi
2632for ac_declaration in \
2633 '' \
2634 'extern "C" void std::exit (int) throw (); using std::exit;' \
2635 'extern "C" void std::exit (int); using std::exit;' \
2636 'extern "C" void exit (int) throw ();' \
2637 'extern "C" void exit (int);' \
2638 'void exit (int);'
2639do
2640 cat >conftest.$ac_ext <<_ACEOF
2641/* confdefs.h. */
2642_ACEOF
2643cat confdefs.h >>conftest.$ac_ext
2644cat >>conftest.$ac_ext <<_ACEOF
2645/* end confdefs.h. */
2646$ac_declaration
2647#include <stdlib.h>
2648int
2649main ()
2650{
2651exit (42);
2652 ;
2653 return 0;
2654}
2655_ACEOF
2656rm -f conftest.$ac_objext
2657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2658 (eval $ac_compile) 2>conftest.er1
2659 ac_status=$?
2660 grep -v '^ *+' conftest.er1 >conftest.err
2661 rm -f conftest.er1
2662 cat conftest.err >&5
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); } &&
2665 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2667 (eval $ac_try) 2>&5
2668 ac_status=$?
2669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2670 (exit $ac_status); }; } &&
2671 { ac_try='test -s conftest.$ac_objext'
2672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2673 (eval $ac_try) 2>&5
2674 ac_status=$?
2675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2676 (exit $ac_status); }; }; then
2677 :
2678else
2679 echo "$as_me: failed program was:" >&5
2680sed 's/^/| /' conftest.$ac_ext >&5
2681
2682continue
2683fi
2684rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2685 cat >conftest.$ac_ext <<_ACEOF
2686/* confdefs.h. */
2687_ACEOF
2688cat confdefs.h >>conftest.$ac_ext
2689cat >>conftest.$ac_ext <<_ACEOF
2690/* end confdefs.h. */
2691$ac_declaration
2692int
2693main ()
2694{
2695exit (42);
2696 ;
2697 return 0;
2698}
2699_ACEOF
2700rm -f conftest.$ac_objext
2701if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2702 (eval $ac_compile) 2>conftest.er1
2703 ac_status=$?
2704 grep -v '^ *+' conftest.er1 >conftest.err
2705 rm -f conftest.er1
2706 cat conftest.err >&5
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); } &&
2709 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2711 (eval $ac_try) 2>&5
2712 ac_status=$?
2713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2714 (exit $ac_status); }; } &&
2715 { ac_try='test -s conftest.$ac_objext'
2716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2717 (eval $ac_try) 2>&5
2718 ac_status=$?
2719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720 (exit $ac_status); }; }; then
2721 break
2722else
2723 echo "$as_me: failed program was:" >&5
2724sed 's/^/| /' conftest.$ac_ext >&5
2725
2726fi
2727rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2728done
2729rm -f conftest*
2730if test -n "$ac_declaration"; then
2731 echo '#ifdef __cplusplus' >>confdefs.h
2732 echo $ac_declaration >>confdefs.h
2733 echo '#endif' >>confdefs.h
2734fi
2735
2736ac_ext=c
2737ac_cpp='$CPP $CPPFLAGS'
2738ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2739ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2740ac_compiler_gnu=$ac_cv_c_compiler_gnu
2741
2742ac_ext=c
2743ac_cpp='$CPP $CPPFLAGS'
2744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2746ac_compiler_gnu=$ac_cv_c_compiler_gnu
2747echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2748echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2749# On Suns, sometimes $CPP names a directory.
2750if test -n "$CPP" && test -d "$CPP"; then
2751 CPP=
2752fi
2753if test -z "$CPP"; then
2754 if test "${ac_cv_prog_CPP+set}" = set; then
2755 echo $ECHO_N "(cached) $ECHO_C" >&6
2756else
2757 # Double quotes because CPP needs to be expanded
2758 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2759 do
2760 ac_preproc_ok=false
2761for ac_c_preproc_warn_flag in '' yes
2762do
2763 # Use a header file that comes with gcc, so configuring glibc
2764 # with a fresh cross-compiler works.
2765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2766 # <limits.h> exists even on freestanding compilers.
2767 # On the NeXT, cc -E runs the code through the compiler's parser,
2768 # not just through cpp. "Syntax error" is here to catch this case.
2769 cat >conftest.$ac_ext <<_ACEOF
2770/* confdefs.h. */
2771_ACEOF
2772cat confdefs.h >>conftest.$ac_ext
2773cat >>conftest.$ac_ext <<_ACEOF
2774/* end confdefs.h. */
2775#ifdef __STDC__
2776# include <limits.h>
2777#else
2778# include <assert.h>
2779#endif
2780 Syntax error
2781_ACEOF
2782if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2783 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2784 ac_status=$?
2785 grep -v '^ *+' conftest.er1 >conftest.err
2786 rm -f conftest.er1
2787 cat conftest.err >&5
2788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2789 (exit $ac_status); } >/dev/null; then
2790 if test -s conftest.err; then
2791 ac_cpp_err=$ac_c_preproc_warn_flag
2792 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2793 else
2794 ac_cpp_err=
2795 fi
2796else
2797 ac_cpp_err=yes
2798fi
2799if test -z "$ac_cpp_err"; then
2800 :
2801else
2802 echo "$as_me: failed program was:" >&5
2803sed 's/^/| /' conftest.$ac_ext >&5
2804
2805 # Broken: fails on valid input.
2806continue
2807fi
2808rm -f conftest.err conftest.$ac_ext
2809
2810 # OK, works on sane cases. Now check whether non-existent headers
2811 # can be detected and how.
2812 cat >conftest.$ac_ext <<_ACEOF
2813/* confdefs.h. */
2814_ACEOF
2815cat confdefs.h >>conftest.$ac_ext
2816cat >>conftest.$ac_ext <<_ACEOF
2817/* end confdefs.h. */
2818#include <ac_nonexistent.h>
2819_ACEOF
2820if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2821 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2822 ac_status=$?
2823 grep -v '^ *+' conftest.er1 >conftest.err
2824 rm -f conftest.er1
2825 cat conftest.err >&5
2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2827 (exit $ac_status); } >/dev/null; then
2828 if test -s conftest.err; then
2829 ac_cpp_err=$ac_c_preproc_warn_flag
2830 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2831 else
2832 ac_cpp_err=
2833 fi
2834else
2835 ac_cpp_err=yes
2836fi
2837if test -z "$ac_cpp_err"; then
2838 # Broken: success on invalid input.
2839continue
2840else
2841 echo "$as_me: failed program was:" >&5
2842sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 # Passes both tests.
2845ac_preproc_ok=:
2846break
2847fi
2848rm -f conftest.err conftest.$ac_ext
2849
2850done
2851# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2852rm -f conftest.err conftest.$ac_ext
2853if $ac_preproc_ok; then
2854 break
2855fi
2856
2857 done
2858 ac_cv_prog_CPP=$CPP
2859
2860fi
2861 CPP=$ac_cv_prog_CPP
2862else
2863 ac_cv_prog_CPP=$CPP
2864fi
2865echo "$as_me:$LINENO: result: $CPP" >&5
2866echo "${ECHO_T}$CPP" >&6
2867ac_preproc_ok=false
2868for ac_c_preproc_warn_flag in '' yes
2869do
2870 # Use a header file that comes with gcc, so configuring glibc
2871 # with a fresh cross-compiler works.
2872 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2873 # <limits.h> exists even on freestanding compilers.
2874 # On the NeXT, cc -E runs the code through the compiler's parser,
2875 # not just through cpp. "Syntax error" is here to catch this case.
2876 cat >conftest.$ac_ext <<_ACEOF
2877/* confdefs.h. */
2878_ACEOF
2879cat confdefs.h >>conftest.$ac_ext
2880cat >>conftest.$ac_ext <<_ACEOF
2881/* end confdefs.h. */
2882#ifdef __STDC__
2883# include <limits.h>
2884#else
2885# include <assert.h>
2886#endif
2887 Syntax error
2888_ACEOF
2889if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2890 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2891 ac_status=$?
2892 grep -v '^ *+' conftest.er1 >conftest.err
2893 rm -f conftest.er1
2894 cat conftest.err >&5
2895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2896 (exit $ac_status); } >/dev/null; then
2897 if test -s conftest.err; then
2898 ac_cpp_err=$ac_c_preproc_warn_flag
2899 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2900 else
2901 ac_cpp_err=
2902 fi
2903else
2904 ac_cpp_err=yes
2905fi
2906if test -z "$ac_cpp_err"; then
2907 :
2908else
2909 echo "$as_me: failed program was:" >&5
2910sed 's/^/| /' conftest.$ac_ext >&5
2911
2912 # Broken: fails on valid input.
2913continue
2914fi
2915rm -f conftest.err conftest.$ac_ext
2916
2917 # OK, works on sane cases. Now check whether non-existent headers
2918 # can be detected and how.
2919 cat >conftest.$ac_ext <<_ACEOF
2920/* confdefs.h. */
2921_ACEOF
2922cat confdefs.h >>conftest.$ac_ext
2923cat >>conftest.$ac_ext <<_ACEOF
2924/* end confdefs.h. */
2925#include <ac_nonexistent.h>
2926_ACEOF
2927if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2928 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2929 ac_status=$?
2930 grep -v '^ *+' conftest.er1 >conftest.err
2931 rm -f conftest.er1
2932 cat conftest.err >&5
2933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2934 (exit $ac_status); } >/dev/null; then
2935 if test -s conftest.err; then
2936 ac_cpp_err=$ac_c_preproc_warn_flag
2937 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2938 else
2939 ac_cpp_err=
2940 fi
2941else
2942 ac_cpp_err=yes
2943fi
2944if test -z "$ac_cpp_err"; then
2945 # Broken: success on invalid input.
2946continue
2947else
2948 echo "$as_me: failed program was:" >&5
2949sed 's/^/| /' conftest.$ac_ext >&5
2950
2951 # Passes both tests.
2952ac_preproc_ok=:
2953break
2954fi
2955rm -f conftest.err conftest.$ac_ext
2956
2957done
2958# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2959rm -f conftest.err conftest.$ac_ext
2960if $ac_preproc_ok; then
2961 :
2962else
2963 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2964See \`config.log' for more details." >&5
2965echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2966See \`config.log' for more details." >&2;}
2967 { (exit 1); exit 1; }; }
2968fi
2969
2970ac_ext=c 3883ac_ext=c
2971ac_cpp='$CPP $CPPFLAGS' 3884ac_cpp='$CPP $CPPFLAGS'
2972ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2973ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2974ac_compiler_gnu=$ac_cv_c_compiler_gnu 3887ac_compiler_gnu=$ac_cv_c_compiler_gnu
2984# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3897# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2985# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3898# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2986# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3899# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2987# OS/2's system install, which has a completely different semantic 3900# OS/2's system install, which has a completely different semantic
2988# ./install, which can be erroneously created by make from ./install.sh. 3901# ./install, which can be erroneously created by make from ./install.sh.
3902# Reject install programs that cannot install multiple files.
2989echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2990echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3904$as_echo_n "checking for a BSD-compatible install... " >&6; }
2991if test -z "$INSTALL"; then 3905if test -z "$INSTALL"; then
2992if test "${ac_cv_path_install+set}" = set; then 3906if ${ac_cv_path_install+:} false; then :
2993 echo $ECHO_N "(cached) $ECHO_C" >&6 3907 $as_echo_n "(cached) " >&6
2994else 3908else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996for as_dir in $PATH 3910for as_dir in $PATH
2997do 3911do
2998 IFS=$as_save_IFS 3912 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=. 3913 test -z "$as_dir" && as_dir=.
3000 # Account for people who put trailing slashes in PATH elements. 3914 # Account for people who put trailing slashes in PATH elements.
3001case $as_dir/ in 3915case $as_dir/ in #((
3002 ./ | .// | /cC/* | \ 3916 ./ | .// | /[cC]/* | \
3003 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3917 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3004 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3918 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3005 /usr/ucb/* ) ;; 3919 /usr/ucb/* ) ;;
3006 *) 3920 *)
3007 # OSF1 and SCO ODT 3.0 have their own names for install. 3921 # OSF1 and SCO ODT 3.0 have their own names for install.
3008 # Don't use installbsd from OSF since it installs stuff as root 3922 # Don't use installbsd from OSF since it installs stuff as root
3009 # by default. 3923 # by default.
3010 for ac_prog in ginstall scoinst install; do 3924 for ac_prog in ginstall scoinst install; do
3011 for ac_exec_ext in '' $ac_executable_extensions; do 3925 for ac_exec_ext in '' $ac_executable_extensions; do
3012 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3926 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3013 if test $ac_prog = install && 3927 if test $ac_prog = install &&
3014 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3928 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3015 # AIX install. It has an incompatible calling convention. 3929 # AIX install. It has an incompatible calling convention.
3016 : 3930 :
3017 elif test $ac_prog = install && 3931 elif test $ac_prog = install &&
3018 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3932 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3019 # program-specific install script used by HP pwplus--don't use. 3933 # program-specific install script used by HP pwplus--don't use.
3020 : 3934 :
3021 else 3935 else
3936 rm -rf conftest.one conftest.two conftest.dir
3937 echo one > conftest.one
3938 echo two > conftest.two
3939 mkdir conftest.dir
3940 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3941 test -s conftest.one && test -s conftest.two &&
3942 test -s conftest.dir/conftest.one &&
3943 test -s conftest.dir/conftest.two
3944 then
3022 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3945 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3023 break 3 3946 break 3
3947 fi
3024 fi 3948 fi
3025 fi 3949 fi
3026 done 3950 done
3027 done 3951 done
3028 ;; 3952 ;;
3029esac 3953esac
3954
3030done 3955 done
3956IFS=$as_save_IFS
3031 3957
3958rm -rf conftest.one conftest.two conftest.dir
3032 3959
3033fi 3960fi
3034 if test "${ac_cv_path_install+set}" = set; then 3961 if test "${ac_cv_path_install+set}" = set; then
3035 INSTALL=$ac_cv_path_install 3962 INSTALL=$ac_cv_path_install
3036 else 3963 else
3037 # As a last resort, use the slow shell script. We don't cache a 3964 # As a last resort, use the slow shell script. Don't cache a
3038 # path for INSTALL within a source directory, because that will 3965 # value for INSTALL within a source directory, because that will
3039 # break other packages using the cache if that directory is 3966 # break other packages using the cache if that directory is
3040 # removed, or if the path is relative. 3967 # removed, or if the value is a relative name.
3041 INSTALL=$ac_install_sh 3968 INSTALL=$ac_install_sh
3042 fi 3969 fi
3043fi 3970fi
3044echo "$as_me:$LINENO: result: $INSTALL" >&5 3971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3045echo "${ECHO_T}$INSTALL" >&6 3972$as_echo "$INSTALL" >&6; }
3046 3973
3047# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3974# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3048# It thinks the first close brace ends the variable substitution. 3975# It thinks the first close brace ends the variable substitution.
3049test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3976test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3050 3977
3051test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3978test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3052 3979
3053test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3980test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3054 3981
3055for ac_prog in gawk mawk nawk awk
3056do
3057 # Extract the first word of "$ac_prog", so it can be a program name with args.
3058set dummy $ac_prog; ac_word=$2
3059echo "$as_me:$LINENO: checking for $ac_word" >&5
3060echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3061if test "${ac_cv_prog_AWK+set}" = set; then
3062 echo $ECHO_N "(cached) $ECHO_C" >&6
3063else
3064 if test -n "$AWK"; then
3065 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3066else
3067as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3068for as_dir in $PATH
3069do
3070 IFS=$as_save_IFS
3071 test -z "$as_dir" && as_dir=.
3072 for ac_exec_ext in '' $ac_executable_extensions; do
3073 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3074 ac_cv_prog_AWK="$ac_prog"
3075 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3076 break 2
3077 fi
3078done
3079done
3080
3081fi
3082fi
3083AWK=$ac_cv_prog_AWK
3084if test -n "$AWK"; then
3085 echo "$as_me:$LINENO: result: $AWK" >&5
3086echo "${ECHO_T}$AWK" >&6
3087else
3088 echo "$as_me:$LINENO: result: no" >&5
3089echo "${ECHO_T}no" >&6
3090fi
3091
3092 test -n "$AWK" && break
3093done
3094 3982
3095 3983
3096ac_ext=c 3984ac_ext=c
3097ac_cpp='$CPP $CPPFLAGS' 3985ac_cpp='$CPP $CPPFLAGS'
3098ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3986ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3099ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3987ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3100ac_compiler_gnu=$ac_cv_c_compiler_gnu 3988ac_compiler_gnu=$ac_cv_c_compiler_gnu
3101 3989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3102 3990$as_echo_n "checking how to run the C preprocessor... " >&6; }
3991# On Suns, sometimes $CPP names a directory.
3992if test -n "$CPP" && test -d "$CPP"; then
3993 CPP=
3994fi
3103if test -z "$orig_CXXFLAGS"; then 3995if test -z "$CPP"; then
3104 if test x$GCC = xyes && test "x$GXX" = xyes; then 3996 if ${ac_cv_prog_CPP+:} false; then :
3105 CXXFLAGS="-g -O3" 3997 $as_echo_n "(cached) " >&6
3106 else 3998else
3107 CXXFLAGS="-O" 3999 # Double quotes because CPP needs to be expanded
3108 fi 4000 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3109 CFLAGS="$CXXFLAGS" 4001 do
3110fi 4002 ac_preproc_ok=false
3111 4003for ac_c_preproc_warn_flag in '' yes
3112LINKER="$CXX" 4004do
3113if test x$GCC = xyes && test x$GXX = xyes; then 4005 # Use a header file that comes with gcc, so configuring glibc
3114 4006 # with a fresh cross-compiler works.
3115echo "$as_me:$LINENO: checking for main in -lsupc++" >&5 4007 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3116echo $ECHO_N "checking for main in -lsupc++... $ECHO_C" >&6 4008 # <limits.h> exists even on freestanding compilers.
3117if test "${ac_cv_lib_supcpp_main+set}" = set; then 4009 # On the NeXT, cc -E runs the code through the compiler's parser,
3118 echo $ECHO_N "(cached) $ECHO_C" >&6 4010 # not just through cpp. "Syntax error" is here to catch this case.
3119else
3120 ac_check_lib_save_LIBS=$LIBS
3121LIBS="-lsupc++ $LIBS"
3122cat >conftest.$ac_ext <<_ACEOF
3123/* confdefs.h. */
3124_ACEOF
3125cat confdefs.h >>conftest.$ac_ext 4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3126cat >>conftest.$ac_ext <<_ACEOF
3127/* end confdefs.h. */ 4012/* end confdefs.h. */
4013#ifdef __STDC__
4014# include <limits.h>
4015#else
4016# include <assert.h>
4017#endif
4018 Syntax error
4019_ACEOF
4020if ac_fn_c_try_cpp "$LINENO"; then :
3128 4021
4022else
4023 # Broken: fails on valid input.
4024continue
4025fi
4026rm -f conftest.err conftest.i conftest.$ac_ext
4027
4028 # OK, works on sane cases. Now check whether nonexistent headers
4029 # can be detected and how.
4030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4031/* end confdefs.h. */
4032#include <ac_nonexistent.h>
4033_ACEOF
4034if ac_fn_c_try_cpp "$LINENO"; then :
4035 # Broken: success on invalid input.
4036continue
4037else
4038 # Passes both tests.
4039ac_preproc_ok=:
4040break
4041fi
4042rm -f conftest.err conftest.i conftest.$ac_ext
4043
4044done
4045# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4046rm -f conftest.i conftest.err conftest.$ac_ext
4047if $ac_preproc_ok; then :
4048 break
4049fi
4050
4051 done
4052 ac_cv_prog_CPP=$CPP
4053
4054fi
4055 CPP=$ac_cv_prog_CPP
4056else
4057 ac_cv_prog_CPP=$CPP
4058fi
4059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4060$as_echo "$CPP" >&6; }
4061ac_preproc_ok=false
4062for ac_c_preproc_warn_flag in '' yes
4063do
4064 # Use a header file that comes with gcc, so configuring glibc
4065 # with a fresh cross-compiler works.
4066 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4067 # <limits.h> exists even on freestanding compilers.
4068 # On the NeXT, cc -E runs the code through the compiler's parser,
4069 # not just through cpp. "Syntax error" is here to catch this case.
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071/* end confdefs.h. */
4072#ifdef __STDC__
4073# include <limits.h>
4074#else
4075# include <assert.h>
4076#endif
4077 Syntax error
4078_ACEOF
4079if ac_fn_c_try_cpp "$LINENO"; then :
4080
4081else
4082 # Broken: fails on valid input.
4083continue
4084fi
4085rm -f conftest.err conftest.i conftest.$ac_ext
4086
4087 # OK, works on sane cases. Now check whether nonexistent headers
4088 # can be detected and how.
4089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4090/* end confdefs.h. */
4091#include <ac_nonexistent.h>
4092_ACEOF
4093if ac_fn_c_try_cpp "$LINENO"; then :
4094 # Broken: success on invalid input.
4095continue
4096else
4097 # Passes both tests.
4098ac_preproc_ok=:
4099break
4100fi
4101rm -f conftest.err conftest.i conftest.$ac_ext
4102
4103done
4104# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4105rm -f conftest.i conftest.err conftest.$ac_ext
4106if $ac_preproc_ok; then :
4107
4108else
4109 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4110$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4111as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4112See \`config.log' for more details" "$LINENO" 5; }
4113fi
4114
4115ac_ext=c
4116ac_cpp='$CPP $CPPFLAGS'
4117ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4118ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4119ac_compiler_gnu=$ac_cv_c_compiler_gnu
4120
4121
4122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4123$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4124if ${ac_cv_path_GREP+:} false; then :
4125 $as_echo_n "(cached) " >&6
4126else
4127 if test -z "$GREP"; then
4128 ac_path_GREP_found=false
4129 # Loop through the user's path and test for each of PROGNAME-LIST
4130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4131for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4132do
4133 IFS=$as_save_IFS
4134 test -z "$as_dir" && as_dir=.
4135 for ac_prog in grep ggrep; do
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4138 as_fn_executable_p "$ac_path_GREP" || continue
4139# Check for GNU ac_path_GREP and select it if it is found.
4140 # Check for GNU $ac_path_GREP
4141case `"$ac_path_GREP" --version 2>&1` in
4142*GNU*)
4143 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4144*)
4145 ac_count=0
4146 $as_echo_n 0123456789 >"conftest.in"
4147 while :
4148 do
4149 cat "conftest.in" "conftest.in" >"conftest.tmp"
4150 mv "conftest.tmp" "conftest.in"
4151 cp "conftest.in" "conftest.nl"
4152 $as_echo 'GREP' >> "conftest.nl"
4153 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4154 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4155 as_fn_arith $ac_count + 1 && ac_count=$as_val
4156 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4157 # Best one so far, save it but keep looking for a better one
4158 ac_cv_path_GREP="$ac_path_GREP"
4159 ac_path_GREP_max=$ac_count
4160 fi
4161 # 10*(2^10) chars as input seems more than enough
4162 test $ac_count -gt 10 && break
4163 done
4164 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4165esac
4166
4167 $ac_path_GREP_found && break 3
4168 done
4169 done
4170 done
4171IFS=$as_save_IFS
4172 if test -z "$ac_cv_path_GREP"; then
4173 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4174 fi
4175else
4176 ac_cv_path_GREP=$GREP
4177fi
4178
4179fi
4180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4181$as_echo "$ac_cv_path_GREP" >&6; }
4182 GREP="$ac_cv_path_GREP"
4183
4184
4185{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4186$as_echo_n "checking for egrep... " >&6; }
4187if ${ac_cv_path_EGREP+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189else
4190 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4191 then ac_cv_path_EGREP="$GREP -E"
4192 else
4193 if test -z "$EGREP"; then
4194 ac_path_EGREP_found=false
4195 # Loop through the user's path and test for each of PROGNAME-LIST
4196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4197for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4198do
4199 IFS=$as_save_IFS
4200 test -z "$as_dir" && as_dir=.
4201 for ac_prog in egrep; do
4202 for ac_exec_ext in '' $ac_executable_extensions; do
4203 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4204 as_fn_executable_p "$ac_path_EGREP" || continue
4205# Check for GNU ac_path_EGREP and select it if it is found.
4206 # Check for GNU $ac_path_EGREP
4207case `"$ac_path_EGREP" --version 2>&1` in
4208*GNU*)
4209 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4210*)
4211 ac_count=0
4212 $as_echo_n 0123456789 >"conftest.in"
4213 while :
4214 do
4215 cat "conftest.in" "conftest.in" >"conftest.tmp"
4216 mv "conftest.tmp" "conftest.in"
4217 cp "conftest.in" "conftest.nl"
4218 $as_echo 'EGREP' >> "conftest.nl"
4219 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4220 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4221 as_fn_arith $ac_count + 1 && ac_count=$as_val
4222 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4223 # Best one so far, save it but keep looking for a better one
4224 ac_cv_path_EGREP="$ac_path_EGREP"
4225 ac_path_EGREP_max=$ac_count
4226 fi
4227 # 10*(2^10) chars as input seems more than enough
4228 test $ac_count -gt 10 && break
4229 done
4230 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4231esac
4232
4233 $ac_path_EGREP_found && break 3
4234 done
4235 done
4236 done
4237IFS=$as_save_IFS
4238 if test -z "$ac_cv_path_EGREP"; then
4239 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4240 fi
4241else
4242 ac_cv_path_EGREP=$EGREP
4243fi
4244
4245 fi
4246fi
4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4248$as_echo "$ac_cv_path_EGREP" >&6; }
4249 EGREP="$ac_cv_path_EGREP"
4250
4251
4252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4253$as_echo_n "checking for ANSI C header files... " >&6; }
4254if ${ac_cv_header_stdc+:} false; then :
4255 $as_echo_n "(cached) " >&6
4256else
4257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4258/* end confdefs.h. */
4259#include <stdlib.h>
4260#include <stdarg.h>
4261#include <string.h>
4262#include <float.h>
3129 4263
3130int 4264int
3131main () 4265main ()
3132{ 4266{
3133main (); 4267
3134 ; 4268 ;
3135 return 0; 4269 return 0;
3136} 4270}
3137_ACEOF 4271_ACEOF
4272if ac_fn_c_try_compile "$LINENO"; then :
4273 ac_cv_header_stdc=yes
4274else
4275 ac_cv_header_stdc=no
4276fi
3138rm -f conftest.$ac_objext conftest$ac_exeext 4277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3139if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4278
3140 (eval $ac_link) 2>conftest.er1 4279if test $ac_cv_header_stdc = yes; then
3141 ac_status=$? 4280 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3142 grep -v '^ *+' conftest.er1 >conftest.err 4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282/* end confdefs.h. */
4283#include <string.h>
4284
4285_ACEOF
4286if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4287 $EGREP "memchr" >/dev/null 2>&1; then :
4288
4289else
4290 ac_cv_header_stdc=no
4291fi
3143 rm -f conftest.er1 4292rm -f conftest*
3144 cat conftest.err >&5 4293
3145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4294fi
3146 (exit $ac_status); } && 4295
3147 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' 4296if test $ac_cv_header_stdc = yes; then
3148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4297 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3149 (eval $ac_try) 2>&5 4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 ac_status=$? 4299/* end confdefs.h. */
3151 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4300#include <stdlib.h>
3152 (exit $ac_status); }; } && 4301
3153 { ac_try='test -s conftest$ac_exeext' 4302_ACEOF
3154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4303if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3155 (eval $ac_try) 2>&5 4304 $EGREP "free" >/dev/null 2>&1; then :
3156 ac_status=$? 4305
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4306else
3158 (exit $ac_status); }; }; then 4307 ac_cv_header_stdc=no
3159 ac_cv_lib_supcpp_main=yes 4308fi
4309rm -f conftest*
4310
4311fi
4312
4313if test $ac_cv_header_stdc = yes; then
4314 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4315 if test "$cross_compiling" = yes; then :
4316 :
4317else
4318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4319/* end confdefs.h. */
4320#include <ctype.h>
4321#include <stdlib.h>
4322#if ((' ' & 0x0FF) == 0x020)
4323# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4324# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3160else 4325#else
3161 echo "$as_me: failed program was:" >&5 4326# define ISLOWER(c) \
3162sed 's/^/| /' conftest.$ac_ext >&5 4327 (('a' <= (c) && (c) <= 'i') \
4328 || ('j' <= (c) && (c) <= 'r') \
4329 || ('s' <= (c) && (c) <= 'z'))
4330# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4331#endif
3163 4332
3164ac_cv_lib_supcpp_main=no 4333#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4334int
4335main ()
4336{
4337 int i;
4338 for (i = 0; i < 256; i++)
4339 if (XOR (islower (i), ISLOWER (i))
4340 || toupper (i) != TOUPPER (i))
4341 return 2;
4342 return 0;
4343}
4344_ACEOF
4345if ac_fn_c_try_run "$LINENO"; then :
4346
4347else
4348 ac_cv_header_stdc=no
3165fi 4349fi
3166rm -f conftest.err conftest.$ac_objext \ 4350rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3167 conftest$ac_exeext conftest.$ac_ext 4351 conftest.$ac_objext conftest.beam conftest.$ac_ext
3168LIBS=$ac_check_lib_save_LIBS
3169fi 4352fi
3170echo "$as_me:$LINENO: result: $ac_cv_lib_supcpp_main" >&5 4353
3171echo "${ECHO_T}$ac_cv_lib_supcpp_main" >&6 4354fi
4355fi
4356{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4357$as_echo "$ac_cv_header_stdc" >&6; }
3172if test $ac_cv_lib_supcpp_main = yes; then 4358if test $ac_cv_header_stdc = yes; then
3173 4359
3174 LINKER="$CC" 4360$as_echo "#define STDC_HEADERS 1" >>confdefs.h
3175 LIBS="$LIBS -lsupc++"
3176 4361
3177fi 4362fi
3178 4363
3179fi 4364# On IRIX 5.3, sys/types and inttypes.h are conflicting.
3180LINKER=$LINKER 4365for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3181 4366 inttypes.h stdint.h unistd.h
3182 4367do :
3183 4368 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4369ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4370"
4371if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3184cat >>confdefs.h <<\_ACEOF 4372 cat >>confdefs.h <<_ACEOF
3185#define _GNU_SOURCE 1 4373#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3186_ACEOF 4374_ACEOF
3187 4375
4376fi
3188 4377
3189case $host in 4378done
3190 *-*-solaris* )
3191 4379
3192cat >>confdefs.h <<\_ACEOF
3193#define _XOPEN_SOURCE_EXTENDED 1
3194_ACEOF
3195 4380
3196 4381
3197cat >>confdefs.h <<\_ACEOF 4382 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3198#define _XOPEN_SOURCE 2 4383if test "x$ac_cv_header_minix_config_h" = xyes; then :
3199_ACEOF 4384 MINIX=yes
4385else
4386 MINIX=
4387fi
3200 4388
3201 4389
3202cat >>confdefs.h <<\_ACEOF 4390 if test "$MINIX" = yes; then
4391
4392$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4393
4394
4395$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4396
4397
4398$as_echo "#define _MINIX 1" >>confdefs.h
4399
4400 fi
4401
4402
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4404$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4405if ${ac_cv_safe_to_define___extensions__+:} false; then :
4406 $as_echo_n "(cached) " >&6
4407else
4408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4409/* end confdefs.h. */
4410
3203#define __EXTENSIONS__ 1 4411# define __EXTENSIONS__ 1
3204_ACEOF 4412 $ac_includes_default
4413int
4414main ()
4415{
3205 4416
3206 ;; 4417 ;
3207esac 4418 return 0;
4419}
4420_ACEOF
4421if ac_fn_c_try_compile "$LINENO"; then :
4422 ac_cv_safe_to_define___extensions__=yes
4423else
4424 ac_cv_safe_to_define___extensions__=no
4425fi
4426rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4427fi
4428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4429$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4430 test $ac_cv_safe_to_define___extensions__ = yes &&
4431 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3208 4432
4433 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3209 4434
4435 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4436
4437 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4438
4439 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4440
4441
4442
4443
4444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4445$as_echo_n "checking for library containing strerror... " >&6; }
4446if ${ac_cv_search_strerror+:} false; then :
4447 $as_echo_n "(cached) " >&6
4448else
4449 ac_func_search_save_LIBS=$LIBS
4450cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4451/* end confdefs.h. */
4452
4453/* Override any GCC internal prototype to avoid an error.
4454 Use char because int might match the return type of a GCC
4455 builtin and then its argument prototype would still apply. */
4456#ifdef __cplusplus
4457extern "C"
4458#endif
4459char strerror ();
4460int
4461main ()
4462{
4463return strerror ();
4464 ;
4465 return 0;
4466}
4467_ACEOF
4468for ac_lib in '' cposix; do
4469 if test -z "$ac_lib"; then
4470 ac_res="none required"
4471 else
4472 ac_res=-l$ac_lib
4473 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4474 fi
4475 if ac_fn_c_try_link "$LINENO"; then :
4476 ac_cv_search_strerror=$ac_res
4477fi
4478rm -f core conftest.err conftest.$ac_objext \
4479 conftest$ac_exeext
4480 if ${ac_cv_search_strerror+:} false; then :
4481 break
4482fi
4483done
4484if ${ac_cv_search_strerror+:} false; then :
4485
4486else
4487 ac_cv_search_strerror=no
4488fi
4489rm conftest.$ac_ext
4490LIBS=$ac_func_search_save_LIBS
4491fi
4492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4493$as_echo "$ac_cv_search_strerror" >&6; }
4494ac_res=$ac_cv_search_strerror
4495if test "$ac_res" != no; then :
4496 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4497
4498fi
4499
3210ac_ext=cc 4500ac_ext=cpp
3211ac_cpp='$CXXCPP $CPPFLAGS' 4501ac_cpp='$CXXCPP $CPPFLAGS'
3212ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3213ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3214ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3215 4505
3216 4506
4507LINKER="$CXX"
4508if test x$GCC = xyes && test x$GXX = xyes; then
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working libsupc++" >&5
4510$as_echo_n "checking for working libsupc++... " >&6; }
4511 save_CXX="$CXX"
4512 save_LIBS="$LIBS"
4513 CXX="$CC"
4514 LIBS="$LIBS -lsupc++"
3217 4515
4516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4517/* end confdefs.h. */
4518struct test { }; void f() try { throw new test; } catch (...) { throw; }
4519int
4520main ()
4521{
4522
4523 ;
4524 return 0;
4525}
4526_ACEOF
4527if ac_fn_cxx_try_link "$LINENO"; then :
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
4529$as_echo "ok" >&6; }
4530 LINKER="$CC"
4531else
4532
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, making everything bigger and slower" >&5
4534$as_echo "no, making everything bigger and slower" >&6; }
4535 LIBS="$save_LIBS"
4536
4537
4538fi
4539rm -f core conftest.err conftest.$ac_objext \
4540 conftest$ac_exeext conftest.$ac_ext
4541 CXX="$save_CXX"
4542fi
4543LINKER=$LINKER
4544
4545
4546if test -z "$orig_CXXFLAGS"; then
4547 if test x$GCC = xyes && test "x$GXX" = xyes; then
4548 CXXFLAGS="-g -O3 -fno-rtti -fvisibility-inlines-hidden -fno-threadsafe-statics -fno-enforce-eh-specs"
4549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4550/* end confdefs.h. */
4551
4552int
4553main ()
4554{
4555
4556 ;
4557 return 0;
4558}
4559_ACEOF
4560if ac_fn_cxx_try_compile "$LINENO"; then :
4561
4562else
4563 CXXFLAGS="-g -O3"
4564fi
4565rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4566 else
4567 CXXFLAGS="-O"
4568 fi
4569 CFLAGS="$CXXFLAGS"
4570fi
4571
4572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setlocale" >&5
4573$as_echo_n "checking for library containing setlocale... " >&6; }
4574if ${ac_cv_search_setlocale+:} false; then :
4575 $as_echo_n "(cached) " >&6
4576else
4577 ac_func_search_save_LIBS=$LIBS
4578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579/* end confdefs.h. */
4580
4581/* Override any GCC internal prototype to avoid an error.
4582 Use char because int might match the return type of a GCC
4583 builtin and then its argument prototype would still apply. */
4584#ifdef __cplusplus
4585extern "C"
4586#endif
4587char setlocale ();
4588int
4589main ()
4590{
4591return setlocale ();
4592 ;
4593 return 0;
4594}
4595_ACEOF
4596for ac_lib in '' xpg4; do
4597 if test -z "$ac_lib"; then
4598 ac_res="none required"
4599 else
4600 ac_res=-l$ac_lib
4601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4602 fi
4603 if ac_fn_cxx_try_link "$LINENO"; then :
4604 ac_cv_search_setlocale=$ac_res
4605fi
4606rm -f core conftest.err conftest.$ac_objext \
4607 conftest$ac_exeext
4608 if ${ac_cv_search_setlocale+:} false; then :
4609 break
4610fi
4611done
4612if ${ac_cv_search_setlocale+:} false; then :
4613
4614else
4615 ac_cv_search_setlocale=no
4616fi
4617rm conftest.$ac_ext
4618LIBS=$ac_func_search_save_LIBS
4619fi
4620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setlocale" >&5
4621$as_echo "$ac_cv_search_setlocale" >&6; }
4622ac_res=$ac_cv_search_setlocale
4623if test "$ac_res" != no; then :
4624 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4625
4626fi
4627
4628
4629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4630$as_echo_n "checking for library containing gethostbyname... " >&6; }
4631if ${ac_cv_search_gethostbyname+:} false; then :
4632 $as_echo_n "(cached) " >&6
4633else
4634 ac_func_search_save_LIBS=$LIBS
4635cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4636/* end confdefs.h. */
4637
4638/* Override any GCC internal prototype to avoid an error.
4639 Use char because int might match the return type of a GCC
4640 builtin and then its argument prototype would still apply. */
4641#ifdef __cplusplus
4642extern "C"
4643#endif
4644char gethostbyname ();
4645int
4646main ()
4647{
4648return gethostbyname ();
4649 ;
4650 return 0;
4651}
4652_ACEOF
4653for ac_lib in '' nsl; do
4654 if test -z "$ac_lib"; then
4655 ac_res="none required"
4656 else
4657 ac_res=-l$ac_lib
4658 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4659 fi
4660 if ac_fn_cxx_try_link "$LINENO"; then :
4661 ac_cv_search_gethostbyname=$ac_res
4662fi
4663rm -f core conftest.err conftest.$ac_objext \
4664 conftest$ac_exeext
4665 if ${ac_cv_search_gethostbyname+:} false; then :
4666 break
4667fi
4668done
4669if ${ac_cv_search_gethostbyname+:} false; then :
4670
4671else
4672 ac_cv_search_gethostbyname=no
4673fi
4674rm conftest.$ac_ext
4675LIBS=$ac_func_search_save_LIBS
4676fi
4677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4678$as_echo "$ac_cv_search_gethostbyname" >&6; }
4679ac_res=$ac_cv_search_gethostbyname
4680if test "$ac_res" != no; then :
4681 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4682
4683fi
4684
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4686$as_echo_n "checking for library containing socket... " >&6; }
4687if ${ac_cv_search_socket+:} false; then :
4688 $as_echo_n "(cached) " >&6
4689else
4690 ac_func_search_save_LIBS=$LIBS
4691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692/* end confdefs.h. */
4693
4694/* Override any GCC internal prototype to avoid an error.
4695 Use char because int might match the return type of a GCC
4696 builtin and then its argument prototype would still apply. */
4697#ifdef __cplusplus
4698extern "C"
4699#endif
4700char socket ();
4701int
4702main ()
4703{
4704return socket ();
4705 ;
4706 return 0;
4707}
4708_ACEOF
4709for ac_lib in '' socket; do
4710 if test -z "$ac_lib"; then
4711 ac_res="none required"
4712 else
4713 ac_res=-l$ac_lib
4714 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4715 fi
4716 if ac_fn_cxx_try_link "$LINENO"; then :
4717 ac_cv_search_socket=$ac_res
4718fi
4719rm -f core conftest.err conftest.$ac_objext \
4720 conftest$ac_exeext
4721 if ${ac_cv_search_socket+:} false; then :
4722 break
4723fi
4724done
4725if ${ac_cv_search_socket+:} false; then :
4726
4727else
4728 ac_cv_search_socket=no
4729fi
4730rm conftest.$ac_ext
4731LIBS=$ac_func_search_save_LIBS
4732fi
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4734$as_echo "$ac_cv_search_socket" >&6; }
4735ac_res=$ac_cv_search_socket
4736if test "$ac_res" != no; then :
4737 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4738
4739fi
4740
4741
4742support_frills=yes
4743support_inheritpixmap=yes
4744support_fading=yes
4745support_keepscrolling=yes
4746support_selectionscrolling=yes
4747support_mousewheel=yes
4748support_mouseslipwheel=yes
4749support_text_blink=yes
4750support_pointer_blank=yes
4751support_scroll_rxvt=yes
4752support_scroll_next=yes
4753support_scroll_xterm=yes
4754support_xim=yes
4755support_pixbuf=yes
4756support_startup_notification=yes
4757support_xft=yes
4758support_unicode3=no
4759support_combining=yes
4760support_8bitctrls=no
4761support_iso14755=yes
4762support_styles=yes
4763support_perl=yes
4764codesets=all
4765
4766
4767# Check whether --enable-everything was given.
4768if test "${enable_everything+set}" = set; then :
4769 enableval=$enable_everything;
4770 if test x$enableval = xno; then
4771 support_frills=no
4772 support_inheritpixmap=no
4773 support_fading=no
4774 support_keepscrolling=no
4775 support_selectionscrolling=no
4776 support_lastlog=no
4777 support_mousewheel=no
4778 support_mouseslipwheel=no
4779 support_text_blink=no
4780 support_pointer_blank=no
4781 support_scroll_rxvt=no
4782 support_scroll_next=no
4783 support_scroll_xterm=no
4784 support_utmp=no
4785 support_wtmp=no
4786 support_xim=no
4787 support_pixbuf=no
4788 support_startup_notification=no
4789 support_xft=no
4790 support_unicode3=no
4791 support_combining=no
4792 support_8bitctrls=no
4793 support_iso14755=no
4794 support_styles=no
4795 support_perl=no
4796 codesets=
4797 fi
4798 if test x$enableval = xyes; then
4799 support_frills=yes
4800 support_inheritpixmap=yes
4801 support_fading=yes
4802 support_keepscrolling=yes
4803 support_selectionscrolling=yes
4804 support_lastlog=yes
4805 support_mousewheel=yes
4806 support_mouseslipwheel=yes
4807 support_text_blink=yes
4808 support_pointer_blank=yes
4809 support_scroll_rxvt=yes
4810 support_scroll_next=yes
4811 support_scroll_xterm=yes
4812 support_utmp=yes
4813 support_wtmp=yes
4814 support_xim=yes
4815 support_pixbuf=yes
4816 support_startup_notification=yes
4817 support_xft=yes
4818 support_unicode3=yes
4819 support_combining=yes
4820 #support_8bitctrls=yes
4821 support_iso14755=yes
4822 support_styles=yes
4823 support_perl=yes
4824 codesets=all
4825 fi
4826
4827fi
4828
4829
4830support_assertions=no
4831# Check whether --enable-assert was given.
4832if test "${enable_assert+set}" = set; then :
4833 enableval=$enable_assert; if test x$enableval = xyes; then
4834 support_assertions=yes
4835 fi
4836fi
4837
4838if test x$support_assertions = xno; then
4839
4840$as_echo "#define NDEBUG 1" >>confdefs.h
4841
4842fi
4843
4844support_warnings=no
4845# Check whether --enable-warnings was given.
4846if test "${enable_warnings+set}" = set; then :
4847 enableval=$enable_warnings; if test x$enableval = xyes; then
4848 support_warnings=yes
4849 fi
4850fi
4851
4852if test x$GXX = xyes; then
4853 if test $support_warnings = yes; then
4854 save_CXXFLAGS="$CXXFLAGS"
4855 CXXFLAGS="$CXXFLAGS -Wall -Wno-sign-compare -Wno-reorder -Wno-unused-value"
4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4857/* end confdefs.h. */
4858
4859int
4860main ()
4861{
4862
4863 ;
4864 return 0;
4865}
4866_ACEOF
4867if ac_fn_cxx_try_compile "$LINENO"; then :
4868
4869else
4870 CXXFLAGS="$save_CXXFLAGS"
4871fi
4872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 else
4874 CXXFLAGS="$CXXFLAGS -w"
4875 fi
4876fi
4877
4878support_256_color=no
4879# Check whether --enable-256-color was given.
4880if test "${enable_256_color+set}" = set; then :
4881 enableval=$enable_256_color; if test x$enableval = xyes; then
4882 support_256_color=yes
4883 fi
4884fi
4885
4886if test x$support_256_color = xyes; then
4887
4888$as_echo "#define USE_256_COLORS 1" >>confdefs.h
4889
4890fi
4891
4892# Check whether --enable-unicode3 was given.
4893if test "${enable_unicode3+set}" = set; then :
4894 enableval=$enable_unicode3; if test x$enableval = xyes -o x$enableval = xno; then
4895 support_unicode3=$enableval
4896 fi
4897fi
4898
4899
4900# Check whether --enable-combining was given.
4901if test "${enable_combining+set}" = set; then :
4902 enableval=$enable_combining; if test x$enableval = xyes -o x$enableval = xno; then
4903 support_combining=$enableval
4904 fi
4905fi
4906
4907
4908# Check whether --enable-xft was given.
4909if test "${enable_xft+set}" = set; then :
4910 enableval=$enable_xft; if test x$enableval = xyes -o x$enableval = xno; then
4911 support_xft=$enableval
4912 fi
4913fi
4914
4915
4916# Check whether --enable-font-styles was given.
4917if test "${enable_font_styles+set}" = set; then :
4918 enableval=$enable_font_styles; if test x$enableval = xyes -o x$enableval = xno; then
4919 support_styles=$enableval
4920 fi
4921fi
4922
4923
4924# Check whether --enable-pixbuf was given.
4925if test "${enable_pixbuf+set}" = set; then :
4926 enableval=$enable_pixbuf; if test x$enableval = xyes -o x$enableval = xno; then
4927 support_pixbuf=$enableval
4928 fi
4929fi
4930
4931
4932# Check whether --enable-startup-notification was given.
4933if test "${enable_startup_notification+set}" = set; then :
4934 enableval=$enable_startup_notification; if test x$enableval = xyes -o x$enableval = xno; then
4935 support_startup_notification=$enableval
4936 fi
4937fi
4938
4939
4940# Check whether --enable-transparency was given.
4941if test "${enable_transparency+set}" = set; then :
4942 enableval=$enable_transparency; if test x$enableval = xyes -o x$enableval = xno; then
4943 support_inheritpixmap=$enableval
4944 fi
4945fi
4946
4947
4948# Check whether --enable-fading was given.
4949if test "${enable_fading+set}" = set; then :
4950 enableval=$enable_fading; if test x$enableval = xyes -o x$enableval = xno; then
4951 support_fading=$enableval
4952 fi
4953fi
4954
4955
4956# Check whether --enable-rxvt-scroll was given.
4957if test "${enable_rxvt_scroll+set}" = set; then :
4958 enableval=$enable_rxvt_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4959 support_scroll_rxvt=$enableval
4960 fi
4961fi
4962
4963
4964# Check whether --enable-next-scroll was given.
4965if test "${enable_next_scroll+set}" = set; then :
4966 enableval=$enable_next_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4967 support_scroll_next=$enableval
4968 fi
4969fi
4970
4971
4972# Check whether --enable-xterm-scroll was given.
4973if test "${enable_xterm_scroll+set}" = set; then :
4974 enableval=$enable_xterm_scroll; if test x$enableval = xyes -o x$enableval = xno; then
4975 support_scroll_xterm=$enableval
4976 fi
4977fi
4978
4979
4980# Check whether --enable-perl was given.
4981if test "${enable_perl+set}" = set; then :
4982 enableval=$enable_perl; if test x$enableval = xyes -o x$enableval = xno; then
4983 support_perl=$enableval
4984 fi
4985fi
4986
4987
4988
4989# Check whether --with-codesets was given.
4990if test "${with_codesets+set}" = set; then :
4991 withval=$with_codesets; codesets="$withval"
4992fi
4993
4994
4995# Check whether --enable-xim was given.
4996if test "${enable_xim+set}" = set; then :
4997 enableval=$enable_xim; if test x$enableval = xyes -o x$enableval = xno; then
4998 support_xim=$enableval
4999 fi
5000fi
5001
5002
5003# Check whether --enable-backspace-key was given.
5004if test "${enable_backspace_key+set}" = set; then :
5005 enableval=$enable_backspace_key; if test x$enableval = xno; then
5006
5007$as_echo "#define NO_BACKSPACE_KEY 1" >>confdefs.h
5008
5009 fi
5010fi
5011
5012
5013# Check whether --enable-delete-key was given.
5014if test "${enable_delete_key+set}" = set; then :
5015 enableval=$enable_delete_key; if test x$enableval = xno; then
5016
5017$as_echo "#define NO_DELETE_KEY 1" >>confdefs.h
5018
5019 fi
5020fi
5021
5022
5023support_resources=yes
5024# Check whether --enable-resources was given.
5025if test "${enable_resources+set}" = set; then :
5026 enableval=$enable_resources; if test x$enableval = xno; then
5027 support_resources=no
5028 fi
5029fi
5030
5031
5032# Check whether --enable-8bitctrls was given.
5033if test "${enable_8bitctrls+set}" = set; then :
5034 enableval=$enable_8bitctrls; if test x$enableval = xyes -o x$enableval = xno; then
5035 support_8bitctrls=$enableval
5036 fi
5037fi
5038
5039
5040RESFALLBACK=Rxvt
5041# Check whether --enable-fallback was given.
5042if test "${enable_fallback+set}" = set; then :
5043 enableval=$enable_fallback;
5044 test x$enableval = xyes && enableval=Rxvt
5045 test x$enableval = xno && enableval=
5046 RESFALLBACK="$enableval"
5047
5048fi
5049
5050
5051if test x$RESFALLBACK != x; then
5052
5053cat >>confdefs.h <<_ACEOF
5054#define RESFALLBACK "$RESFALLBACK"
5055_ACEOF
5056
5057fi
5058
5059RESNAME=urxvt
5060
5061# Check whether --with-res-name was given.
5062if test "${with_res_name+set}" = set; then :
5063 withval=$with_res_name; RESNAME="$withval"
5064fi
5065
5066
5067cat >>confdefs.h <<_ACEOF
5068#define RESNAME "$RESNAME"
5069_ACEOF
5070
5071
5072RESCLASS=URxvt
5073
5074# Check whether --with-res-class was given.
5075if test "${with_res_class+set}" = set; then :
5076 withval=$with_res_class; RESCLASS="$withval"
5077fi
5078
5079
5080cat >>confdefs.h <<_ACEOF
5081#define RESCLASS "$RESCLASS"
5082_ACEOF
5083
5084
5085RXVTNAME=urxvt
5086
5087# Check whether --with-name was given.
5088if test "${with_name+set}" = set; then :
5089 withval=$with_name; RXVTNAME="$withval"
5090fi
5091
5092
5093cat >>confdefs.h <<_ACEOF
5094#define RXVTNAME "$RXVTNAME"
5095_ACEOF
5096
5097
5098
5099
5100# Check whether --enable-swapscreen was given.
5101if test "${enable_swapscreen+set}" = set; then :
5102 enableval=$enable_swapscreen; if test x$enableval = xno; then
5103
5104$as_echo "#define NO_SECONDARY_SCREEN 1" >>confdefs.h
5105
5106 fi
5107fi
5108
5109
5110# Check whether --enable-iso14755 was given.
5111if test "${enable_iso14755+set}" = set; then :
5112 enableval=$enable_iso14755; if test x$enableval = xyes -o x$enableval = xno; then
5113 support_iso14755=$enableval
5114 fi
5115fi
5116
5117
5118# Check whether --enable-frills was given.
5119if test "${enable_frills+set}" = set; then :
5120 enableval=$enable_frills; if test x$enableval = xyes -o x$enableval = xno; then
5121 support_frills=$enableval
5122 fi
5123fi
5124
5125
5126# Check whether --enable-keepscrolling was given.
5127if test "${enable_keepscrolling+set}" = set; then :
5128 enableval=$enable_keepscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5129 support_keepscrolling=$enableval
5130 fi
5131fi
5132
5133
5134# Check whether --enable-selectionscrolling was given.
5135if test "${enable_selectionscrolling+set}" = set; then :
5136 enableval=$enable_selectionscrolling; if test x$enableval = xyes -o x$enableval = xno; then
5137 support_selectionscrolling=$enableval
5138 fi
5139fi
5140
5141
5142# Check whether --enable-mousewheel was given.
5143if test "${enable_mousewheel+set}" = set; then :
5144 enableval=$enable_mousewheel; if test x$enableval = xyes -o x$enableval = xno; then
5145 support_mousewheel=$enableval
5146 fi
5147fi
5148
5149
5150# Check whether --enable-slipwheeling was given.
5151if test "${enable_slipwheeling+set}" = set; then :
5152 enableval=$enable_slipwheeling; if test x$enableval = xyes -o x$enableval = xno; then
5153 support_mouseslipwheel=$enableval
5154 fi
5155fi
5156
5157
5158# Check whether --enable-smart-resize was given.
5159if test "${enable_smart_resize+set}" = set; then :
5160 enableval=$enable_smart_resize; if test x$enableval = xyes; then
5161
5162$as_echo "#define SMART_RESIZE 1" >>confdefs.h
5163
5164 fi
5165fi
5166
5167
5168# Check whether --enable-text-blink was given.
5169if test "${enable_text_blink+set}" = set; then :
5170 enableval=$enable_text_blink; if test x$enableval = xyes -o x$enableval = xno; then
5171 support_text_blink=$enableval
5172 fi
5173fi
5174
5175
5176# Check whether --enable-pointer-blank was given.
5177if test "${enable_pointer_blank+set}" = set; then :
5178 enableval=$enable_pointer_blank; if test x$enableval = xyes -o x$enableval = xno; then
5179 support_pointer_blank=$enableval
5180 fi
5181fi
5182
5183
5184
5185# Check whether --with-term was given.
5186if test "${with_term+set}" = set; then :
5187 withval=$with_term; if test x$withval != x; then
5188
5189cat >>confdefs.h <<_ACEOF
5190#define TERMENV "$withval"
5191_ACEOF
5192 term="$withval"
5193 fi
5194fi
5195
5196
5197
5198# Check whether --with-terminfo was given.
5199if test "${with_terminfo+set}" = set; then :
5200 withval=$with_terminfo; if test x$withval != x; then
5201
5202cat >>confdefs.h <<_ACEOF
5203#define RXVT_TERMINFO "$withval"
5204_ACEOF
5205 terminfo="$withval"
5206 fi
5207fi
5208
5209
5210if test x$support_resources = xno; then
5211 if test x$support_frills = xyes || test x$support_perl = xyes; then
5212 as_fn_error $? "--disable-resources requires --disable-frills --disable-perl" "$LINENO" 5
5213 fi
5214
5215
5216$as_echo "#define NO_RESOURCES 1" >>confdefs.h
5217
5218fi
5219
5220
5221LIBEV_M4_AVOID_LIBRT=1
5222
3218ac_ext=cc 5223ac_ext=cpp
3219ac_cpp='$CXXCPP $CPPFLAGS' 5224ac_cpp='$CXXCPP $CPPFLAGS'
3220ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5225ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3221ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5226ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3222ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5227ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3223echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 5228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
3224echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 5229$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
3225if test -z "$CXXCPP"; then 5230if test -z "$CXXCPP"; then
3226 if test "${ac_cv_prog_CXXCPP+set}" = set; then 5231 if ${ac_cv_prog_CXXCPP+:} false; then :
3227 echo $ECHO_N "(cached) $ECHO_C" >&6 5232 $as_echo_n "(cached) " >&6
3228else 5233else
3229 # Double quotes because CXXCPP needs to be expanded 5234 # Double quotes because CXXCPP needs to be expanded
3230 for CXXCPP in "$CXX -E" "/lib/cpp" 5235 for CXXCPP in "$CXX -E" "/lib/cpp"
3231 do 5236 do
3232 ac_preproc_ok=false 5237 ac_preproc_ok=false
3236 # with a fresh cross-compiler works. 5241 # with a fresh cross-compiler works.
3237 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5242 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3238 # <limits.h> exists even on freestanding compilers. 5243 # <limits.h> exists even on freestanding compilers.
3239 # On the NeXT, cc -E runs the code through the compiler's parser, 5244 # On the NeXT, cc -E runs the code through the compiler's parser,
3240 # not just through cpp. "Syntax error" is here to catch this case. 5245 # not just through cpp. "Syntax error" is here to catch this case.
3241 cat >conftest.$ac_ext <<_ACEOF
3242/* confdefs.h. */
3243_ACEOF
3244cat confdefs.h >>conftest.$ac_ext 5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245cat >>conftest.$ac_ext <<_ACEOF
3246/* end confdefs.h. */ 5247/* end confdefs.h. */
3247#ifdef __STDC__ 5248#ifdef __STDC__
3248# include <limits.h> 5249# include <limits.h>
3249#else 5250#else
3250# include <assert.h> 5251# include <assert.h>
3251#endif 5252#endif
3252 Syntax error 5253 Syntax error
3253_ACEOF 5254_ACEOF
3254if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5255if ac_fn_cxx_try_cpp "$LINENO"; then :
3255 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5256
3256 ac_status=$?
3257 grep -v '^ *+' conftest.er1 >conftest.err
3258 rm -f conftest.er1
3259 cat conftest.err >&5
3260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3261 (exit $ac_status); } >/dev/null; then
3262 if test -s conftest.err; then
3263 ac_cpp_err=$ac_cxx_preproc_warn_flag
3264 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3265 else 5257else
3266 ac_cpp_err=
3267 fi
3268else
3269 ac_cpp_err=yes
3270fi
3271if test -z "$ac_cpp_err"; then
3272 :
3273else
3274 echo "$as_me: failed program was:" >&5
3275sed 's/^/| /' conftest.$ac_ext >&5
3276
3277 # Broken: fails on valid input. 5258 # Broken: fails on valid input.
3278continue 5259continue
3279fi 5260fi
3280rm -f conftest.err conftest.$ac_ext 5261rm -f conftest.err conftest.i conftest.$ac_ext
3281 5262
3282 # OK, works on sane cases. Now check whether non-existent headers 5263 # OK, works on sane cases. Now check whether nonexistent headers
3283 # can be detected and how. 5264 # can be detected and how.
3284 cat >conftest.$ac_ext <<_ACEOF
3285/* confdefs.h. */
3286_ACEOF
3287cat confdefs.h >>conftest.$ac_ext 5265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3288cat >>conftest.$ac_ext <<_ACEOF
3289/* end confdefs.h. */ 5266/* end confdefs.h. */
3290#include <ac_nonexistent.h> 5267#include <ac_nonexistent.h>
3291_ACEOF 5268_ACEOF
3292if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5269if ac_fn_cxx_try_cpp "$LINENO"; then :
3293 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3294 ac_status=$?
3295 grep -v '^ *+' conftest.er1 >conftest.err
3296 rm -f conftest.er1
3297 cat conftest.err >&5
3298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3299 (exit $ac_status); } >/dev/null; then
3300 if test -s conftest.err; then
3301 ac_cpp_err=$ac_cxx_preproc_warn_flag
3302 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3303 else
3304 ac_cpp_err=
3305 fi
3306else
3307 ac_cpp_err=yes
3308fi
3309if test -z "$ac_cpp_err"; then
3310 # Broken: success on invalid input. 5270 # Broken: success on invalid input.
3311continue 5271continue
3312else 5272else
3313 echo "$as_me: failed program was:" >&5
3314sed 's/^/| /' conftest.$ac_ext >&5
3315
3316 # Passes both tests. 5273 # Passes both tests.
3317ac_preproc_ok=: 5274ac_preproc_ok=:
3318break 5275break
3319fi 5276fi
3320rm -f conftest.err conftest.$ac_ext 5277rm -f conftest.err conftest.i conftest.$ac_ext
3321 5278
3322done 5279done
3323# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5280# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3324rm -f conftest.err conftest.$ac_ext 5281rm -f conftest.i conftest.err conftest.$ac_ext
3325if $ac_preproc_ok; then 5282if $ac_preproc_ok; then :
3326 break 5283 break
3327fi 5284fi
3328 5285
3329 done 5286 done
3330 ac_cv_prog_CXXCPP=$CXXCPP 5287 ac_cv_prog_CXXCPP=$CXXCPP
3332fi 5289fi
3333 CXXCPP=$ac_cv_prog_CXXCPP 5290 CXXCPP=$ac_cv_prog_CXXCPP
3334else 5291else
3335 ac_cv_prog_CXXCPP=$CXXCPP 5292 ac_cv_prog_CXXCPP=$CXXCPP
3336fi 5293fi
3337echo "$as_me:$LINENO: result: $CXXCPP" >&5 5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
3338echo "${ECHO_T}$CXXCPP" >&6 5295$as_echo "$CXXCPP" >&6; }
3339ac_preproc_ok=false 5296ac_preproc_ok=false
3340for ac_cxx_preproc_warn_flag in '' yes 5297for ac_cxx_preproc_warn_flag in '' yes
3341do 5298do
3342 # Use a header file that comes with gcc, so configuring glibc 5299 # Use a header file that comes with gcc, so configuring glibc
3343 # with a fresh cross-compiler works. 5300 # with a fresh cross-compiler works.
3344 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5301 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3345 # <limits.h> exists even on freestanding compilers. 5302 # <limits.h> exists even on freestanding compilers.
3346 # On the NeXT, cc -E runs the code through the compiler's parser, 5303 # On the NeXT, cc -E runs the code through the compiler's parser,
3347 # not just through cpp. "Syntax error" is here to catch this case. 5304 # not just through cpp. "Syntax error" is here to catch this case.
3348 cat >conftest.$ac_ext <<_ACEOF
3349/* confdefs.h. */
3350_ACEOF
3351cat confdefs.h >>conftest.$ac_ext 5305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3352cat >>conftest.$ac_ext <<_ACEOF
3353/* end confdefs.h. */ 5306/* end confdefs.h. */
3354#ifdef __STDC__ 5307#ifdef __STDC__
3355# include <limits.h> 5308# include <limits.h>
3356#else 5309#else
3357# include <assert.h> 5310# include <assert.h>
3358#endif 5311#endif
3359 Syntax error 5312 Syntax error
3360_ACEOF 5313_ACEOF
3361if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5314if ac_fn_cxx_try_cpp "$LINENO"; then :
3362 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5315
3363 ac_status=$?
3364 grep -v '^ *+' conftest.er1 >conftest.err
3365 rm -f conftest.er1
3366 cat conftest.err >&5
3367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3368 (exit $ac_status); } >/dev/null; then
3369 if test -s conftest.err; then
3370 ac_cpp_err=$ac_cxx_preproc_warn_flag
3371 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3372 else 5316else
3373 ac_cpp_err=
3374 fi
3375else
3376 ac_cpp_err=yes
3377fi
3378if test -z "$ac_cpp_err"; then
3379 :
3380else
3381 echo "$as_me: failed program was:" >&5
3382sed 's/^/| /' conftest.$ac_ext >&5
3383
3384 # Broken: fails on valid input. 5317 # Broken: fails on valid input.
3385continue 5318continue
3386fi 5319fi
3387rm -f conftest.err conftest.$ac_ext 5320rm -f conftest.err conftest.i conftest.$ac_ext
3388 5321
3389 # OK, works on sane cases. Now check whether non-existent headers 5322 # OK, works on sane cases. Now check whether nonexistent headers
3390 # can be detected and how. 5323 # can be detected and how.
3391 cat >conftest.$ac_ext <<_ACEOF
3392/* confdefs.h. */
3393_ACEOF
3394cat confdefs.h >>conftest.$ac_ext 5324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3395cat >>conftest.$ac_ext <<_ACEOF
3396/* end confdefs.h. */ 5325/* end confdefs.h. */
3397#include <ac_nonexistent.h> 5326#include <ac_nonexistent.h>
3398_ACEOF 5327_ACEOF
3399if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5328if ac_fn_cxx_try_cpp "$LINENO"; then :
3400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3401 ac_status=$?
3402 grep -v '^ *+' conftest.er1 >conftest.err
3403 rm -f conftest.er1
3404 cat conftest.err >&5
3405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3406 (exit $ac_status); } >/dev/null; then
3407 if test -s conftest.err; then
3408 ac_cpp_err=$ac_cxx_preproc_warn_flag
3409 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
3410 else
3411 ac_cpp_err=
3412 fi
3413else
3414 ac_cpp_err=yes
3415fi
3416if test -z "$ac_cpp_err"; then
3417 # Broken: success on invalid input. 5329 # Broken: success on invalid input.
3418continue 5330continue
3419else 5331else
3420 echo "$as_me: failed program was:" >&5
3421sed 's/^/| /' conftest.$ac_ext >&5
3422
3423 # Passes both tests. 5332 # Passes both tests.
3424ac_preproc_ok=: 5333ac_preproc_ok=:
3425break 5334break
3426fi 5335fi
3427rm -f conftest.err conftest.$ac_ext 5336rm -f conftest.err conftest.i conftest.$ac_ext
3428 5337
3429done 5338done
3430# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5339# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3431rm -f conftest.err conftest.$ac_ext 5340rm -f conftest.i conftest.err conftest.$ac_ext
3432if $ac_preproc_ok; then 5341if $ac_preproc_ok; then :
3433 : 5342
3434else 5343else
3435 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3436See \`config.log' for more details." >&5 5345$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3437echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 5346as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
3438See \`config.log' for more details." >&2;} 5347See \`config.log' for more details" "$LINENO" 5; }
3439 { (exit 1); exit 1; }; }
3440fi 5348fi
3441 5349
3442ac_ext=cc 5350ac_ext=cpp
3443ac_cpp='$CXXCPP $CPPFLAGS' 5351ac_cpp='$CXXCPP $CPPFLAGS'
3444ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3445ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3446ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3447 5355
3448 5356
3449echo "$as_me:$LINENO: checking for egrep" >&5 5357for ac_header in sys/inotify.h sys/epoll.h sys/event.h port.h poll.h
3450echo $ECHO_N "checking for egrep... $ECHO_C" >&6 5358do :
3451if test "${ac_cv_prog_egrep+set}" = set; then 5359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3452 echo $ECHO_N "(cached) $ECHO_C" >&6 5360ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
3453else 5361if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3454 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 5362 cat >>confdefs.h <<_ACEOF
3455 then ac_cv_prog_egrep='grep -E' 5363#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3456 else ac_cv_prog_egrep='egrep'
3457 fi
3458fi
3459echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3460echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3461 EGREP=$ac_cv_prog_egrep
3462
3463
3464
3465echo "$as_me:$LINENO: checking for AIX" >&5
3466echo $ECHO_N "checking for AIX... $ECHO_C" >&6
3467cat >conftest.$ac_ext <<_ACEOF
3468/* confdefs.h. */
3469_ACEOF 5364_ACEOF
5365
5366fi
5367
5368done
5369
5370for ac_header in sys/select.h sys/eventfd.h sys/signalfd.h linux/aio_abi.h
5371do :
5372 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5373ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5374if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5375 cat >>confdefs.h <<_ACEOF
5376#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5377_ACEOF
5378
5379fi
5380
5381done
5382
5383
5384for ac_func in inotify_init epoll_ctl kqueue port_create poll select eventfd signalfd
5385do :
5386 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5387ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5388if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5389 cat >>confdefs.h <<_ACEOF
5390#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5391_ACEOF
5392
5393fi
5394done
5395
5396
5397for ac_func in clock_gettime
5398do :
5399 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5400if test "x$ac_cv_func_clock_gettime" = xyes; then :
5401 cat >>confdefs.h <<_ACEOF
5402#define HAVE_CLOCK_GETTIME 1
5403_ACEOF
5404
5405else
5406
5407 if test $(uname) = Linux; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5409$as_echo_n "checking for clock_gettime syscall... " >&6; }
3470cat confdefs.h >>conftest.$ac_ext 5410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3471cat >>conftest.$ac_ext <<_ACEOF
3472/* end confdefs.h. */ 5411/* end confdefs.h. */
3473#ifdef _AIX 5412#include <unistd.h>
3474 yes 5413 #include <sys/syscall.h>
3475#endif 5414 #include <time.h>
3476 5415int
5416main ()
5417{
5418struct timespec ts; int status = syscall (SYS_clock_gettime, CLOCK_REALTIME, &ts)
5419 ;
5420 return 0;
5421}
3477_ACEOF 5422_ACEOF
3478if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5423if ac_fn_cxx_try_link "$LINENO"; then :
3479 $EGREP "yes" >/dev/null 2>&1; then 5424 ac_have_clock_syscall=1
3480 echo "$as_me:$LINENO: result: yes" >&5
3481echo "${ECHO_T}yes" >&6
3482cat >>confdefs.h <<\_ACEOF
3483#define _ALL_SOURCE 1
3484_ACEOF
3485 5425
5426$as_echo "#define HAVE_CLOCK_SYSCALL 1" >>confdefs.h
5427
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429$as_echo "yes" >&6; }
3486else 5430else
3487 echo "$as_me:$LINENO: result: no" >&5 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3488echo "${ECHO_T}no" >&6 5432$as_echo "no" >&6; }
3489fi 5433fi
3490rm -f conftest* 5434rm -f core conftest.err conftest.$ac_objext \
3491 5435 conftest$ac_exeext conftest.$ac_ext
3492 5436 fi
3493echo "$as_me:$LINENO: checking for library containing strerror" >&5 5437 if test -z "$LIBEV_M4_AVOID_LIBRT" && test -z "$ac_have_clock_syscall"; then
3494echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
3495if test "${ac_cv_search_strerror+set}" = set; then 5439$as_echo_n "checking for clock_gettime in -lrt... " >&6; }
3496 echo $ECHO_N "(cached) $ECHO_C" >&6 5440if ${ac_cv_lib_rt_clock_gettime+:} false; then :
5441 $as_echo_n "(cached) " >&6
3497else 5442else
3498 ac_func_search_save_LIBS=$LIBS 5443 ac_check_lib_save_LIBS=$LIBS
3499ac_cv_search_strerror=no 5444LIBS="-lrt $LIBS"
3500cat >conftest.$ac_ext <<_ACEOF
3501/* confdefs.h. */
3502_ACEOF
3503cat confdefs.h >>conftest.$ac_ext 5445cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3504cat >>conftest.$ac_ext <<_ACEOF
3505/* end confdefs.h. */ 5446/* end confdefs.h. */
3506 5447
3507/* Override any gcc2 internal prototype to avoid an error. */ 5448/* Override any GCC internal prototype to avoid an error.
5449 Use char because int might match the return type of a GCC
5450 builtin and then its argument prototype would still apply. */
3508#ifdef __cplusplus 5451#ifdef __cplusplus
3509extern "C" 5452extern "C"
3510#endif 5453#endif
3511/* We use char because int might match the return type of a gcc2 5454char clock_gettime ();
3512 builtin and then its argument prototype would still apply. */
3513char strerror ();
3514int 5455int
3515main () 5456main ()
3516{ 5457{
3517strerror (); 5458return clock_gettime ();
3518 ; 5459 ;
3519 return 0; 5460 return 0;
3520} 5461}
3521_ACEOF 5462_ACEOF
3522rm -f conftest.$ac_objext conftest$ac_exeext 5463if ac_fn_cxx_try_link "$LINENO"; then :
3523if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5464 ac_cv_lib_rt_clock_gettime=yes
3524 (eval $ac_link) 2>conftest.er1
3525 ac_status=$?
3526 grep -v '^ *+' conftest.er1 >conftest.err
3527 rm -f conftest.er1
3528 cat conftest.err >&5
3529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3530 (exit $ac_status); } &&
3531 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3533 (eval $ac_try) 2>&5
3534 ac_status=$?
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); }; } &&
3537 { ac_try='test -s conftest$ac_exeext'
3538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3539 (eval $ac_try) 2>&5
3540 ac_status=$?
3541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3542 (exit $ac_status); }; }; then
3543 ac_cv_search_strerror="none required"
3544else 5465else
3545 echo "$as_me: failed program was:" >&5 5466 ac_cv_lib_rt_clock_gettime=no
3546sed 's/^/| /' conftest.$ac_ext >&5
3547
3548fi 5467fi
3549rm -f conftest.err conftest.$ac_objext \ 5468rm -f core conftest.err conftest.$ac_objext \
3550 conftest$ac_exeext conftest.$ac_ext 5469 conftest$ac_exeext conftest.$ac_ext
3551if test "$ac_cv_search_strerror" = no; then 5470LIBS=$ac_check_lib_save_LIBS
3552 for ac_lib in cposix; do 5471fi
3553 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 5472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
5473$as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
5474if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
3554 cat >conftest.$ac_ext <<_ACEOF 5475 cat >>confdefs.h <<_ACEOF
3555/* confdefs.h. */ 5476#define HAVE_LIBRT 1
3556_ACEOF 5477_ACEOF
5478
5479 LIBS="-lrt $LIBS"
5480
5481fi
5482
5483 unset ac_cv_func_clock_gettime
5484 for ac_func in clock_gettime
5485do :
5486 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5487if test "x$ac_cv_func_clock_gettime" = xyes; then :
5488 cat >>confdefs.h <<_ACEOF
5489#define HAVE_CLOCK_GETTIME 1
5490_ACEOF
5491
5492fi
5493done
5494
5495 fi
5496
5497fi
5498done
5499
5500
5501for ac_func in nanosleep
5502do :
5503 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5504if test "x$ac_cv_func_nanosleep" = xyes; then :
5505 cat >>confdefs.h <<_ACEOF
5506#define HAVE_NANOSLEEP 1
5507_ACEOF
5508
5509else
5510
5511 if test -z "$LIBEV_M4_AVOID_LIBRT"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
5513$as_echo_n "checking for nanosleep in -lrt... " >&6; }
5514if ${ac_cv_lib_rt_nanosleep+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516else
5517 ac_check_lib_save_LIBS=$LIBS
5518LIBS="-lrt $LIBS"
3557cat confdefs.h >>conftest.$ac_ext 5519cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558cat >>conftest.$ac_ext <<_ACEOF
3559/* end confdefs.h. */ 5520/* end confdefs.h. */
3560 5521
3561/* Override any gcc2 internal prototype to avoid an error. */ 5522/* Override any GCC internal prototype to avoid an error.
5523 Use char because int might match the return type of a GCC
5524 builtin and then its argument prototype would still apply. */
3562#ifdef __cplusplus 5525#ifdef __cplusplus
3563extern "C" 5526extern "C"
3564#endif 5527#endif
3565/* We use char because int might match the return type of a gcc2 5528char nanosleep ();
3566 builtin and then its argument prototype would still apply. */
3567char strerror ();
3568int 5529int
3569main () 5530main ()
3570{ 5531{
3571strerror (); 5532return nanosleep ();
3572 ; 5533 ;
3573 return 0; 5534 return 0;
3574} 5535}
3575_ACEOF 5536_ACEOF
3576rm -f conftest.$ac_objext conftest$ac_exeext 5537if ac_fn_cxx_try_link "$LINENO"; then :
3577if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5538 ac_cv_lib_rt_nanosleep=yes
3578 (eval $ac_link) 2>conftest.er1
3579 ac_status=$?
3580 grep -v '^ *+' conftest.er1 >conftest.err
3581 rm -f conftest.er1
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); } &&
3585 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3587 (eval $ac_try) 2>&5
3588 ac_status=$?
3589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3590 (exit $ac_status); }; } &&
3591 { ac_try='test -s conftest$ac_exeext'
3592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3593 (eval $ac_try) 2>&5
3594 ac_status=$?
3595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3596 (exit $ac_status); }; }; then
3597 ac_cv_search_strerror="-l$ac_lib"
3598break
3599else 5539else
3600 echo "$as_me: failed program was:" >&5 5540 ac_cv_lib_rt_nanosleep=no
3601sed 's/^/| /' conftest.$ac_ext >&5
3602
3603fi 5541fi
3604rm -f conftest.err conftest.$ac_objext \ 5542rm -f core conftest.err conftest.$ac_objext \
3605 conftest$ac_exeext conftest.$ac_ext 5543 conftest$ac_exeext conftest.$ac_ext
5544LIBS=$ac_check_lib_save_LIBS
5545fi
5546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
5547$as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
5548if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
5549 cat >>confdefs.h <<_ACEOF
5550#define HAVE_LIBRT 1
5551_ACEOF
5552
5553 LIBS="-lrt $LIBS"
5554
5555fi
5556
5557 unset ac_cv_func_nanosleep
5558 for ac_func in nanosleep
5559do :
5560 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5561if test "x$ac_cv_func_nanosleep" = xyes; then :
5562 cat >>confdefs.h <<_ACEOF
5563#define HAVE_NANOSLEEP 1
5564_ACEOF
5565
5566fi
3606 done 5567done
5568
5569 fi
5570
3607fi 5571fi
5572done
5573
5574
5575if test -z "$LIBEV_M4_AVOID_LIBM"; then
5576 LIBM=m
5577fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing floor" >&5
5579$as_echo_n "checking for library containing floor... " >&6; }
5580if ${ac_cv_search_floor+:} false; then :
5581 $as_echo_n "(cached) " >&6
5582else
3608LIBS=$ac_func_search_save_LIBS 5583 ac_func_search_save_LIBS=$LIBS
3609fi
3610echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3611echo "${ECHO_T}$ac_cv_search_strerror" >&6
3612if test "$ac_cv_search_strerror" != no; then
3613 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3614
3615fi
3616
3617
3618echo "$as_me:$LINENO: checking for setlocale" >&5
3619echo $ECHO_N "checking for setlocale... $ECHO_C" >&6
3620if test "${ac_cv_func_setlocale+set}" = set; then
3621 echo $ECHO_N "(cached) $ECHO_C" >&6
3622else
3623 cat >conftest.$ac_ext <<_ACEOF
3624/* confdefs.h. */
3625_ACEOF
3626cat confdefs.h >>conftest.$ac_ext 5584cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627cat >>conftest.$ac_ext <<_ACEOF
3628/* end confdefs.h. */ 5585/* end confdefs.h. */
3629/* Define setlocale to an innocuous variant, in case <limits.h> declares setlocale.
3630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3631#define setlocale innocuous_setlocale
3632 5586
3633/* System header to define __stub macros and hopefully few prototypes,
3634 which can conflict with char setlocale (); below.
3635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3636 <limits.h> exists even on freestanding compilers. */
3637
3638#ifdef __STDC__
3639# include <limits.h>
3640#else
3641# include <assert.h>
3642#endif
3643
3644#undef setlocale
3645
3646/* Override any gcc2 internal prototype to avoid an error. */ 5587/* Override any GCC internal prototype to avoid an error.
5588 Use char because int might match the return type of a GCC
5589 builtin and then its argument prototype would still apply. */
3647#ifdef __cplusplus 5590#ifdef __cplusplus
3648extern "C" 5591extern "C"
3649{
3650#endif 5592#endif
3651/* We use char because int might match the return type of a gcc2 5593char floor ();
3652 builtin and then its argument prototype would still apply. */
3653char setlocale ();
3654/* The GNU C library defines this for functions which it implements
3655 to always fail with ENOSYS. Some functions are actually named
3656 something starting with __ and the normal name is an alias. */
3657#if defined (__stub_setlocale) || defined (__stub___setlocale)
3658choke me
3659#else
3660char (*f) () = setlocale;
3661#endif
3662#ifdef __cplusplus
3663}
3664#endif
3665
3666int 5594int
3667main () 5595main ()
3668{ 5596{
3669return f != setlocale; 5597return floor ();
3670 ; 5598 ;
3671 return 0; 5599 return 0;
3672} 5600}
3673_ACEOF 5601_ACEOF
3674rm -f conftest.$ac_objext conftest$ac_exeext 5602for ac_lib in '' $LIBM; do
3675if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5603 if test -z "$ac_lib"; then
3676 (eval $ac_link) 2>conftest.er1 5604 ac_res="none required"
3677 ac_status=$?
3678 grep -v '^ *+' conftest.er1 >conftest.err
3679 rm -f conftest.er1
3680 cat conftest.err >&5
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); } &&
3683 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3684 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3685 (eval $ac_try) 2>&5
3686 ac_status=$?
3687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3688 (exit $ac_status); }; } &&
3689 { ac_try='test -s conftest$ac_exeext'
3690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3691 (eval $ac_try) 2>&5
3692 ac_status=$?
3693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3694 (exit $ac_status); }; }; then
3695 ac_cv_func_setlocale=yes
3696else 5605 else
3697 echo "$as_me: failed program was:" >&5 5606 ac_res=-l$ac_lib
3698sed 's/^/| /' conftest.$ac_ext >&5 5607 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3699 5608 fi
3700ac_cv_func_setlocale=no 5609 if ac_fn_cxx_try_link "$LINENO"; then :
5610 ac_cv_search_floor=$ac_res
3701fi 5611fi
3702rm -f conftest.err conftest.$ac_objext \ 5612rm -f core conftest.err conftest.$ac_objext \
3703 conftest$ac_exeext conftest.$ac_ext 5613 conftest$ac_exeext
3704fi 5614 if ${ac_cv_search_floor+:} false; then :
3705echo "$as_me:$LINENO: result: $ac_cv_func_setlocale" >&5 5615 break
3706echo "${ECHO_T}$ac_cv_func_setlocale" >&6
3707if test $ac_cv_func_setlocale = yes; then
3708 :
3709else
3710 echo "$as_me:$LINENO: checking for setlocale in -lxpg4" >&5
3711echo $ECHO_N "checking for setlocale in -lxpg4... $ECHO_C" >&6
3712if test "${ac_cv_lib_xpg4_setlocale+set}" = set; then
3713 echo $ECHO_N "(cached) $ECHO_C" >&6
3714else
3715 ac_check_lib_save_LIBS=$LIBS
3716LIBS="-lxpg4 $LIBS"
3717cat >conftest.$ac_ext <<_ACEOF
3718/* confdefs.h. */
3719_ACEOF
3720cat confdefs.h >>conftest.$ac_ext
3721cat >>conftest.$ac_ext <<_ACEOF
3722/* end confdefs.h. */
3723
3724/* Override any gcc2 internal prototype to avoid an error. */
3725#ifdef __cplusplus
3726extern "C"
3727#endif
3728/* We use char because int might match the return type of a gcc2
3729 builtin and then its argument prototype would still apply. */
3730char setlocale ();
3731int
3732main ()
3733{
3734setlocale ();
3735 ;
3736 return 0;
3737}
3738_ACEOF
3739rm -f conftest.$ac_objext conftest$ac_exeext
3740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3741 (eval $ac_link) 2>conftest.er1
3742 ac_status=$?
3743 grep -v '^ *+' conftest.er1 >conftest.err
3744 rm -f conftest.er1
3745 cat conftest.err >&5
3746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } &&
3748 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3750 (eval $ac_try) 2>&5
3751 ac_status=$?
3752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3753 (exit $ac_status); }; } &&
3754 { ac_try='test -s conftest$ac_exeext'
3755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3756 (eval $ac_try) 2>&5
3757 ac_status=$?
3758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3759 (exit $ac_status); }; }; then
3760 ac_cv_lib_xpg4_setlocale=yes
3761else
3762 echo "$as_me: failed program was:" >&5
3763sed 's/^/| /' conftest.$ac_ext >&5
3764
3765ac_cv_lib_xpg4_setlocale=no
3766fi
3767rm -f conftest.err conftest.$ac_objext \
3768 conftest$ac_exeext conftest.$ac_ext
3769LIBS=$ac_check_lib_save_LIBS
3770fi
3771echo "$as_me:$LINENO: result: $ac_cv_lib_xpg4_setlocale" >&5
3772echo "${ECHO_T}$ac_cv_lib_xpg4_setlocale" >&6
3773if test $ac_cv_lib_xpg4_setlocale = yes; then
3774 LIBS="$LIBS -lxpg4"
3775fi
3776
3777fi
3778
3779
3780echo "$as_me:$LINENO: checking for gethostbyname" >&5
3781echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
3782if test "${ac_cv_func_gethostbyname+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784else
3785 cat >conftest.$ac_ext <<_ACEOF
3786/* confdefs.h. */
3787_ACEOF
3788cat confdefs.h >>conftest.$ac_ext
3789cat >>conftest.$ac_ext <<_ACEOF
3790/* end confdefs.h. */
3791/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
3792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3793#define gethostbyname innocuous_gethostbyname
3794
3795/* System header to define __stub macros and hopefully few prototypes,
3796 which can conflict with char gethostbyname (); below.
3797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3798 <limits.h> exists even on freestanding compilers. */
3799
3800#ifdef __STDC__
3801# include <limits.h>
3802#else
3803# include <assert.h>
3804#endif
3805
3806#undef gethostbyname
3807
3808/* Override any gcc2 internal prototype to avoid an error. */
3809#ifdef __cplusplus
3810extern "C"
3811{
3812#endif
3813/* We use char because int might match the return type of a gcc2
3814 builtin and then its argument prototype would still apply. */
3815char gethostbyname ();
3816/* The GNU C library defines this for functions which it implements
3817 to always fail with ENOSYS. Some functions are actually named
3818 something starting with __ and the normal name is an alias. */
3819#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3820choke me
3821#else
3822char (*f) () = gethostbyname;
3823#endif
3824#ifdef __cplusplus
3825}
3826#endif
3827
3828int
3829main ()
3830{
3831return f != gethostbyname;
3832 ;
3833 return 0;
3834}
3835_ACEOF
3836rm -f conftest.$ac_objext conftest$ac_exeext
3837if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3838 (eval $ac_link) 2>conftest.er1
3839 ac_status=$?
3840 grep -v '^ *+' conftest.er1 >conftest.err
3841 rm -f conftest.er1
3842 cat conftest.err >&5
3843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3844 (exit $ac_status); } &&
3845 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3847 (eval $ac_try) 2>&5
3848 ac_status=$?
3849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3850 (exit $ac_status); }; } &&
3851 { ac_try='test -s conftest$ac_exeext'
3852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3853 (eval $ac_try) 2>&5
3854 ac_status=$?
3855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3856 (exit $ac_status); }; }; then
3857 ac_cv_func_gethostbyname=yes
3858else
3859 echo "$as_me: failed program was:" >&5
3860sed 's/^/| /' conftest.$ac_ext >&5
3861
3862ac_cv_func_gethostbyname=no
3863fi
3864rm -f conftest.err conftest.$ac_objext \
3865 conftest$ac_exeext conftest.$ac_ext
3866fi
3867echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
3868echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
3869if test $ac_cv_func_gethostbyname = yes; then
3870 :
3871else
3872 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
3873echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
3874if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
3875 echo $ECHO_N "(cached) $ECHO_C" >&6
3876else
3877 ac_check_lib_save_LIBS=$LIBS
3878LIBS="-lnsl $LIBS"
3879cat >conftest.$ac_ext <<_ACEOF
3880/* confdefs.h. */
3881_ACEOF
3882cat confdefs.h >>conftest.$ac_ext
3883cat >>conftest.$ac_ext <<_ACEOF
3884/* end confdefs.h. */
3885
3886/* Override any gcc2 internal prototype to avoid an error. */
3887#ifdef __cplusplus
3888extern "C"
3889#endif
3890/* We use char because int might match the return type of a gcc2
3891 builtin and then its argument prototype would still apply. */
3892char gethostbyname ();
3893int
3894main ()
3895{
3896gethostbyname ();
3897 ;
3898 return 0;
3899}
3900_ACEOF
3901rm -f conftest.$ac_objext conftest$ac_exeext
3902if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3903 (eval $ac_link) 2>conftest.er1
3904 ac_status=$?
3905 grep -v '^ *+' conftest.er1 >conftest.err
3906 rm -f conftest.er1
3907 cat conftest.err >&5
3908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3909 (exit $ac_status); } &&
3910 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
3911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 (eval $ac_try) 2>&5
3913 ac_status=$?
3914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); }; } &&
3916 { ac_try='test -s conftest$ac_exeext'
3917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3918 (eval $ac_try) 2>&5
3919 ac_status=$?
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); }; }; then
3922 ac_cv_lib_nsl_gethostbyname=yes
3923else
3924 echo "$as_me: failed program was:" >&5
3925sed 's/^/| /' conftest.$ac_ext >&5
3926
3927ac_cv_lib_nsl_gethostbyname=no
3928fi
3929rm -f conftest.err conftest.$ac_objext \
3930 conftest$ac_exeext conftest.$ac_ext
3931LIBS=$ac_check_lib_save_LIBS
3932fi
3933echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
3934echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
3935if test $ac_cv_lib_nsl_gethostbyname = yes; then
3936 LIBS="$LIBS -lnsl"
3937fi
3938
3939fi
3940
3941echo "$as_me:$LINENO: checking for socket" >&5
3942echo $ECHO_N "checking for socket... $ECHO_C" >&6
3943if test "${ac_cv_func_socket+set}" = set; then
3944 echo $ECHO_N "(cached) $ECHO_C" >&6
3945else
3946 cat >conftest.$ac_ext <<_ACEOF
3947/* confdefs.h. */
3948_ACEOF
3949cat confdefs.h >>conftest.$ac_ext
3950cat >>conftest.$ac_ext <<_ACEOF
3951/* end confdefs.h. */
3952/* Define socket to an innocuous variant, in case <limits.h> declares socket.
3953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
3954#define socket innocuous_socket
3955
3956/* System header to define __stub macros and hopefully few prototypes,
3957 which can conflict with char socket (); below.
3958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3959 <limits.h> exists even on freestanding compilers. */
3960
3961#ifdef __STDC__
3962# include <limits.h>
3963#else
3964# include <assert.h>
3965#endif
3966
3967#undef socket
3968
3969/* Override any gcc2 internal prototype to avoid an error. */
3970#ifdef __cplusplus
3971extern "C"
3972{
3973#endif
3974/* We use char because int might match the return type of a gcc2
3975 builtin and then its argument prototype would still apply. */
3976char socket ();
3977/* The GNU C library defines this for functions which it implements
3978 to always fail with ENOSYS. Some functions are actually named
3979 something starting with __ and the normal name is an alias. */
3980#if defined (__stub_socket) || defined (__stub___socket)
3981choke me
3982#else
3983char (*f) () = socket;
3984#endif
3985#ifdef __cplusplus
3986}
3987#endif
3988
3989int
3990main ()
3991{
3992return f != socket;
3993 ;
3994 return 0;
3995}
3996_ACEOF
3997rm -f conftest.$ac_objext conftest$ac_exeext
3998if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3999 (eval $ac_link) 2>conftest.er1
4000 ac_status=$?
4001 grep -v '^ *+' conftest.er1 >conftest.err
4002 rm -f conftest.er1
4003 cat conftest.err >&5
4004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4005 (exit $ac_status); } &&
4006 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4008 (eval $ac_try) 2>&5
4009 ac_status=$?
4010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4011 (exit $ac_status); }; } &&
4012 { ac_try='test -s conftest$ac_exeext'
4013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4014 (eval $ac_try) 2>&5
4015 ac_status=$?
4016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4017 (exit $ac_status); }; }; then
4018 ac_cv_func_socket=yes
4019else
4020 echo "$as_me: failed program was:" >&5
4021sed 's/^/| /' conftest.$ac_ext >&5
4022
4023ac_cv_func_socket=no
4024fi
4025rm -f conftest.err conftest.$ac_objext \
4026 conftest$ac_exeext conftest.$ac_ext
4027fi
4028echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
4029echo "${ECHO_T}$ac_cv_func_socket" >&6
4030if test $ac_cv_func_socket = yes; then
4031 :
4032else
4033 echo "$as_me:$LINENO: checking for socket in -lsocket" >&5
4034echo $ECHO_N "checking for socket in -lsocket... $ECHO_C" >&6
4035if test "${ac_cv_lib_socket_socket+set}" = set; then
4036 echo $ECHO_N "(cached) $ECHO_C" >&6
4037else
4038 ac_check_lib_save_LIBS=$LIBS
4039LIBS="-lsocket $LIBS"
4040cat >conftest.$ac_ext <<_ACEOF
4041/* confdefs.h. */
4042_ACEOF
4043cat confdefs.h >>conftest.$ac_ext
4044cat >>conftest.$ac_ext <<_ACEOF
4045/* end confdefs.h. */
4046
4047/* Override any gcc2 internal prototype to avoid an error. */
4048#ifdef __cplusplus
4049extern "C"
4050#endif
4051/* We use char because int might match the return type of a gcc2
4052 builtin and then its argument prototype would still apply. */
4053char socket ();
4054int
4055main ()
4056{
4057socket ();
4058 ;
4059 return 0;
4060}
4061_ACEOF
4062rm -f conftest.$ac_objext conftest$ac_exeext
4063if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4064 (eval $ac_link) 2>conftest.er1
4065 ac_status=$?
4066 grep -v '^ *+' conftest.er1 >conftest.err
4067 rm -f conftest.er1
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } &&
4071 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4073 (eval $ac_try) 2>&5
4074 ac_status=$?
4075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4076 (exit $ac_status); }; } &&
4077 { ac_try='test -s conftest$ac_exeext'
4078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4079 (eval $ac_try) 2>&5
4080 ac_status=$?
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); }; }; then
4083 ac_cv_lib_socket_socket=yes
4084else
4085 echo "$as_me: failed program was:" >&5
4086sed 's/^/| /' conftest.$ac_ext >&5
4087
4088ac_cv_lib_socket_socket=no
4089fi
4090rm -f conftest.err conftest.$ac_objext \
4091 conftest$ac_exeext conftest.$ac_ext
4092LIBS=$ac_check_lib_save_LIBS
4093fi
4094echo "$as_me:$LINENO: result: $ac_cv_lib_socket_socket" >&5
4095echo "${ECHO_T}$ac_cv_lib_socket_socket" >&6
4096if test $ac_cv_lib_socket_socket = yes; then
4097 LIBS="$LIBS -lsocket"
4098fi
4099
4100fi
4101
4102
4103echo "$as_me:$LINENO: checking for sched_yield" >&5
4104echo $ECHO_N "checking for sched_yield... $ECHO_C" >&6
4105if test "${ac_cv_func_sched_yield+set}" = set; then
4106 echo $ECHO_N "(cached) $ECHO_C" >&6
4107else
4108 cat >conftest.$ac_ext <<_ACEOF
4109/* confdefs.h. */
4110_ACEOF
4111cat confdefs.h >>conftest.$ac_ext
4112cat >>conftest.$ac_ext <<_ACEOF
4113/* end confdefs.h. */
4114/* Define sched_yield to an innocuous variant, in case <limits.h> declares sched_yield.
4115 For example, HP-UX 11i <limits.h> declares gettimeofday. */
4116#define sched_yield innocuous_sched_yield
4117
4118/* System header to define __stub macros and hopefully few prototypes,
4119 which can conflict with char sched_yield (); below.
4120 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4121 <limits.h> exists even on freestanding compilers. */
4122
4123#ifdef __STDC__
4124# include <limits.h>
4125#else
4126# include <assert.h>
4127#endif
4128
4129#undef sched_yield
4130
4131/* Override any gcc2 internal prototype to avoid an error. */
4132#ifdef __cplusplus
4133extern "C"
4134{
4135#endif
4136/* We use char because int might match the return type of a gcc2
4137 builtin and then its argument prototype would still apply. */
4138char sched_yield ();
4139/* The GNU C library defines this for functions which it implements
4140 to always fail with ENOSYS. Some functions are actually named
4141 something starting with __ and the normal name is an alias. */
4142#if defined (__stub_sched_yield) || defined (__stub___sched_yield)
4143choke me
4144#else
4145char (*f) () = sched_yield;
4146#endif
4147#ifdef __cplusplus
4148}
4149#endif
4150
4151int
4152main ()
4153{
4154return f != sched_yield;
4155 ;
4156 return 0;
4157}
4158_ACEOF
4159rm -f conftest.$ac_objext conftest$ac_exeext
4160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4161 (eval $ac_link) 2>conftest.er1
4162 ac_status=$?
4163 grep -v '^ *+' conftest.er1 >conftest.err
4164 rm -f conftest.er1
4165 cat conftest.err >&5
4166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4167 (exit $ac_status); } &&
4168 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4170 (eval $ac_try) 2>&5
4171 ac_status=$?
4172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4173 (exit $ac_status); }; } &&
4174 { ac_try='test -s conftest$ac_exeext'
4175 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4176 (eval $ac_try) 2>&5
4177 ac_status=$?
4178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179 (exit $ac_status); }; }; then
4180 ac_cv_func_sched_yield=yes
4181else
4182 echo "$as_me: failed program was:" >&5
4183sed 's/^/| /' conftest.$ac_ext >&5
4184
4185ac_cv_func_sched_yield=no
4186fi
4187rm -f conftest.err conftest.$ac_objext \
4188 conftest$ac_exeext conftest.$ac_ext
4189fi
4190echo "$as_me:$LINENO: result: $ac_cv_func_sched_yield" >&5
4191echo "${ECHO_T}$ac_cv_func_sched_yield" >&6
4192if test $ac_cv_func_sched_yield = yes; then
4193 :
4194else
4195 echo "$as_me:$LINENO: checking for sched_yield in -lrt" >&5
4196echo $ECHO_N "checking for sched_yield in -lrt... $ECHO_C" >&6
4197if test "${ac_cv_lib_rt_sched_yield+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199else
4200 ac_check_lib_save_LIBS=$LIBS
4201LIBS="-lrt $LIBS"
4202cat >conftest.$ac_ext <<_ACEOF
4203/* confdefs.h. */
4204_ACEOF
4205cat confdefs.h >>conftest.$ac_ext
4206cat >>conftest.$ac_ext <<_ACEOF
4207/* end confdefs.h. */
4208
4209/* Override any gcc2 internal prototype to avoid an error. */
4210#ifdef __cplusplus
4211extern "C"
4212#endif
4213/* We use char because int might match the return type of a gcc2
4214 builtin and then its argument prototype would still apply. */
4215char sched_yield ();
4216int
4217main ()
4218{
4219sched_yield ();
4220 ;
4221 return 0;
4222}
4223_ACEOF
4224rm -f conftest.$ac_objext conftest$ac_exeext
4225if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4226 (eval $ac_link) 2>conftest.er1
4227 ac_status=$?
4228 grep -v '^ *+' conftest.er1 >conftest.err
4229 rm -f conftest.er1
4230 cat conftest.err >&5
4231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4232 (exit $ac_status); } &&
4233 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4235 (eval $ac_try) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }; } &&
4239 { ac_try='test -s conftest$ac_exeext'
4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4241 (eval $ac_try) 2>&5
4242 ac_status=$?
4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4244 (exit $ac_status); }; }; then
4245 ac_cv_lib_rt_sched_yield=yes
4246else
4247 echo "$as_me: failed program was:" >&5
4248sed 's/^/| /' conftest.$ac_ext >&5
4249
4250ac_cv_lib_rt_sched_yield=no
4251fi
4252rm -f conftest.err conftest.$ac_objext \
4253 conftest$ac_exeext conftest.$ac_ext
4254LIBS=$ac_check_lib_save_LIBS
4255fi
4256echo "$as_me:$LINENO: result: $ac_cv_lib_rt_sched_yield" >&5
4257echo "${ECHO_T}$ac_cv_lib_rt_sched_yield" >&6
4258if test $ac_cv_lib_rt_sched_yield = yes; then
4259 LIBS="$LIBS -lrt"
4260fi
4261
4262fi
4263
4264
4265echo "$as_me:$LINENO: checking for sched_yield support" >&5
4266echo $ECHO_N "checking for sched_yield support... $ECHO_C" >&6
4267cat >conftest.$ac_ext <<_ACEOF
4268/* confdefs.h. */
4269_ACEOF
4270cat confdefs.h >>conftest.$ac_ext
4271cat >>conftest.$ac_ext <<_ACEOF
4272/* end confdefs.h. */
4273#include <sched.h>
4274int
4275main ()
4276{
4277sched_yield ()
4278 ;
4279 return 0;
4280}
4281_ACEOF
4282rm -f conftest.$ac_objext conftest$ac_exeext
4283if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4284 (eval $ac_link) 2>conftest.er1
4285 ac_status=$?
4286 grep -v '^ *+' conftest.er1 >conftest.err
4287 rm -f conftest.er1
4288 cat conftest.err >&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } &&
4291 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4293 (eval $ac_try) 2>&5
4294 ac_status=$?
4295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4296 (exit $ac_status); }; } &&
4297 { ac_try='test -s conftest$ac_exeext'
4298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4299 (eval $ac_try) 2>&5
4300 ac_status=$?
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); }; }; then
4303 echo "$as_me:$LINENO: result: yes" >&5
4304echo "${ECHO_T}yes" >&6
4305
4306cat >>confdefs.h <<\_ACEOF
4307#define HAVE_SCHED_YIELD 1
4308_ACEOF
4309
4310else
4311 echo "$as_me: failed program was:" >&5
4312sed 's/^/| /' conftest.$ac_ext >&5
4313
4314echo "$as_me:$LINENO: result: no" >&5
4315echo "${ECHO_T}no" >&6
4316fi
4317rm -f conftest.err conftest.$ac_objext \
4318 conftest$ac_exeext conftest.$ac_ext
4319
4320
4321MALLOC_TYPE=S
4322
4323support_frills=yes
4324support_inheritpixmap=yes
4325support_tinting=yes
4326support_fading=yes
4327support_keepscrolling=yes
4328support_selectionscrolling=yes
4329support_mousewheel=yes
4330support_mouseslipwheel=yes
4331support_utmp=yes
4332support_wtmp=yes
4333support_lastlog=yes
4334support_text_blink=yes
4335support_pointer_blank=yes
4336support_scroll_rxvt=yes
4337support_scroll_next=yes
4338support_scroll_xterm=yes
4339support_scroll_plain=yes
4340support_xim=yes
4341support_xpm=yes
4342support_xft=yes
4343support_unicode3=no
4344support_combining=yes
4345support_8bitctrls=no
4346support_iso14755=yes
4347support_styles=yes
4348support_perl=yes
4349codesets=all
4350
4351
4352if test "x$enable_shared" = xyes; then
4353
4354cat >>confdefs.h <<\_ACEOF
4355#define LIBRXVT 1
4356_ACEOF
4357
4358 INSTALL_LIBRXVT=yes
4359fi
4360
4361
4362# Check whether --enable-everything or --disable-everything was given.
4363if test "${enable_everything+set}" = set; then
4364 enableval="$enable_everything"
4365
4366 if test x$enableval = xno; then
4367 support_24bit=no
4368 support_frills=no
4369 support_inheritpixmap=no
4370 support_tinting=no
4371 support_fading=no
4372 support_keepscrolling=no
4373 support_selectionscrolling=no
4374 support_lastlog=no
4375 support_mousewheel=no
4376 support_mouseslipwheel=no
4377 support_text_blink=no
4378 support_pointer_blank=no
4379 support_scroll_rxvt=no
4380 support_scroll_next=no
4381 support_scroll_xterm=no
4382 support_scroll_plain=no
4383 support_utmp=no
4384 support_wtmp=no
4385 support_xim=no
4386 support_xpm=no
4387 support_xft=no
4388 support_unicode3=no
4389 support_combining=no
4390 support_8bitctrls=no
4391 support_iso14755=no
4392 support_styles=no
4393 support_perl=no
4394 codesets=
4395 fi
4396 if test x$enableval = xyes; then
4397 support_24bit=yes
4398 support_frills=yes
4399 support_inheritpixmap=yes
4400 support_tinting=yes
4401 support_fading=yes
4402 support_keepscrolling=yes
4403 support_selectionscrolling=yes
4404 support_lastlog=yes
4405 support_mousewheel=yes
4406 support_mouseslipwheel=yes
4407 support_text_blink=yes
4408 support_pointer_blank=yes
4409 support_scroll_rxvt=yes
4410 support_scroll_next=yes
4411 support_scroll_xterm=yes
4412 support_scroll_plain=yes
4413 support_utmp=yes
4414 support_wtmp=yes
4415 support_xim=yes
4416 support_xpm=yes
4417 support_xft=yes
4418 support_unicode3=yes
4419 support_combining=yes
4420 #support_8bitctrls=yes
4421 support_iso14755=yes
4422 support_styles=yes
4423 support_perl=yes
4424 codesets=all
4425 fi
4426
4427fi; 5616fi
4428
4429# Check whether --enable-unicode3 or --disable-unicode3 was given.
4430if test "${enable_unicode3+set}" = set; then
4431 enableval="$enable_unicode3"
4432 if test x$enableval = xyes -o x$enableval = xno; then
4433 support_unicode3=$enableval
4434 fi
4435fi;
4436
4437# Check whether --enable-combining or --disable-combining was given.
4438if test "${enable_combining+set}" = set; then
4439 enableval="$enable_combining"
4440 if test x$enableval = xyes -o x$enableval = xno; then
4441 support_combining=$enableval
4442 fi
4443fi;
4444
4445# Check whether --enable-xft or --disable-xft was given.
4446if test "${enable_xft+set}" = set; then
4447 enableval="$enable_xft"
4448 if test x$enableval = xyes -o x$enableval = xno; then
4449 support_xft=$enableval
4450 fi
4451fi;
4452
4453# Check whether --enable-font-styles or --disable-font-styles was given.
4454if test "${enable_font_styles+set}" = set; then
4455 enableval="$enable_font_styles"
4456 if test x$enableval = xyes -o x$enableval = xno; then
4457 support_styles=$enableval
4458 fi
4459fi;
4460
4461# Check whether --enable-utmp or --disable-utmp was given.
4462if test "${enable_utmp+set}" = set; then
4463 enableval="$enable_utmp"
4464 if test x$enableval = xyes -o x$enableval = xno; then
4465 support_utmp=$enableval
4466 fi
4467fi;
4468
4469# Check whether --enable-wtmp or --disable-wtmp was given.
4470if test "${enable_wtmp+set}" = set; then
4471 enableval="$enable_wtmp"
4472 if test x$enableval = xyes -o x$enableval = xno; then
4473 support_wtmp=$enableval
4474 fi
4475fi;
4476
4477# Check whether --enable-lastlog or --disable-lastlog was given.
4478if test "${enable_lastlog+set}" = set; then
4479 enableval="$enable_lastlog"
4480 if test x$enableval = xyes -o x$enableval = xno; then
4481 support_lastlog=$enableval
4482 fi
4483fi;
4484
4485# Check whether --enable-xpm-background or --disable-xpm-background was given.
4486if test "${enable_xpm_background+set}" = set; then
4487 enableval="$enable_xpm_background"
4488 if test x$enableval = xyes -o x$enableval = xno; then
4489 support_xpm=$enableval
4490 fi
4491fi;
4492
4493# Check whether --enable-transparency or --disable-transparency was given.
4494if test "${enable_transparency+set}" = set; then
4495 enableval="$enable_transparency"
4496 if test x$enableval = xyes -o x$enableval = xno; then
4497 support_inheritpixmap=$enableval
4498 fi
4499fi;
4500
4501# Check whether --enable-tinting or --disable-tinting was given.
4502if test "${enable_tinting+set}" = set; then
4503 enableval="$enable_tinting"
4504 if test x$enableval = xyes -o x$enableval = xno; then
4505 support_tinting=$enableval
4506 fi
4507fi;
4508
4509# Check whether --enable-fading or --disable-fading was given.
4510if test "${enable_fading+set}" = set; then
4511 enableval="$enable_fading"
4512 if test x$enableval = xyes -o x$enableval = xno; then
4513 support_fading=$enableval
4514 fi
4515fi;
4516
4517# Check whether --enable-rxvt-scroll or --disable-rxvt-scroll was given.
4518if test "${enable_rxvt_scroll+set}" = set; then
4519 enableval="$enable_rxvt_scroll"
4520 if test x$enableval = xyes -o x$enableval = xno; then
4521 support_scroll_rxvt=$enableval
4522 fi
4523fi;
4524
4525# Check whether --enable-next-scroll or --disable-next-scroll was given.
4526if test "${enable_next_scroll+set}" = set; then
4527 enableval="$enable_next_scroll"
4528 if test x$enableval = xyes -o x$enableval = xno; then
4529 support_scroll_next=$enableval
4530 fi
4531fi;
4532
4533# Check whether --enable-xterm-scroll or --disable-xterm-scroll was given.
4534if test "${enable_xterm_scroll+set}" = set; then
4535 enableval="$enable_xterm_scroll"
4536 if test x$enableval = xyes -o x$enableval = xno; then
4537 support_scroll_xterm=$enableval
4538 fi
4539fi;
4540
4541# Check whether --enable-perl or --disable-perl was given.
4542if test "${enable_perl+set}" = set; then
4543 enableval="$enable_perl"
4544 if test x$enableval = xyes -o x$enableval = xno; then
4545 support_perl=$enableval
4546 fi
4547fi;
4548
4549# Check whether --enable-plain-scroll or --disable-plain-scroll was given.
4550if test "${enable_plain_scroll+set}" = set; then
4551 enableval="$enable_plain_scroll"
4552 if test x$enableval = xyes -o x$enableval = xno; then
4553 support_scroll_plain=$enableval
4554 fi
4555fi;
4556
4557
4558
4559# Check whether --with-codesets or --without-codesets was given.
4560if test "${with_codesets+set}" = set; then
4561 withval="$with_codesets"
4562 codesets="$withval"
4563fi;
4564
4565# Check whether --enable-xim or --disable-xim was given.
4566if test "${enable_xim+set}" = set; then
4567 enableval="$enable_xim"
4568 if test x$enableval = xyes -o x$enableval = xno; then
4569 support_xim=$enableval
4570 fi
4571fi;
4572
4573# Check whether --enable-ttygid or --disable-ttygid was given.
4574if test "${enable_ttygid+set}" = set; then
4575 enableval="$enable_ttygid"
4576 if test x$enableval = xyes; then
4577
4578cat >>confdefs.h <<\_ACEOF
4579#define TTY_GID_SUPPORT 1
4580_ACEOF
4581
4582 fi
4583fi;
4584
4585# Check whether --enable-backspace-key or --disable-backspace-key was given.
4586if test "${enable_backspace_key+set}" = set; then
4587 enableval="$enable_backspace_key"
4588 if test x$enableval = xno; then
4589
4590cat >>confdefs.h <<\_ACEOF
4591#define NO_BACKSPACE_KEY 1
4592_ACEOF
4593
4594 fi
4595fi;
4596
4597# Check whether --enable-delete-key or --disable-delete-key was given.
4598if test "${enable_delete_key+set}" = set; then
4599 enableval="$enable_delete_key"
4600 if test x$enableval = xno; then
4601
4602cat >>confdefs.h <<\_ACEOF
4603#define NO_DELETE_KEY 1
4604_ACEOF
4605
4606 fi
4607fi;
4608
4609# Check whether --enable-resources or --disable-resources was given.
4610if test "${enable_resources+set}" = set; then
4611 enableval="$enable_resources"
4612 if test x$enableval = xno; then
4613
4614cat >>confdefs.h <<\_ACEOF
4615#define NO_RESOURCES 1
4616_ACEOF
4617
4618 fi
4619fi;
4620
4621# Check whether --enable-8bitctrls or --disable-8bitctrls was given.
4622if test "${enable_8bitctrls+set}" = set; then
4623 enableval="$enable_8bitctrls"
4624 if test x$enableval = xyes -o x$enableval = xno; then
4625 support_8bitctrls=$enableval
4626 fi
4627fi;
4628
4629RESFALLBACK=Rxvt
4630# Check whether --enable-fallback or --disable-fallback was given.
4631if test "${enable_fallback+set}" = set; then
4632 enableval="$enable_fallback"
4633
4634 test x$enableval = xyes && enableval=Rxvt
4635 test x$enableval = xno && enableval=
4636 RESFALLBACK="$enableval"
4637
4638fi;
4639
4640if test x$RESFALLBACK != x; then
4641
4642cat >>confdefs.h <<_ACEOF
4643#define RESFALLBACK "$RESFALLBACK"
4644_ACEOF
4645
4646fi
4647
4648RESNAME=urxvt
4649
4650# Check whether --with-res-name or --without-res-name was given.
4651if test "${with_res_name+set}" = set; then
4652 withval="$with_res_name"
4653 RESNAME="$withval"
4654fi;
4655
4656cat >>confdefs.h <<_ACEOF
4657#define RESNAME "$RESNAME"
4658_ACEOF
4659
4660
4661RESCLASS=URxvt
4662
4663# Check whether --with-res-class or --without-res-class was given.
4664if test "${with_res_class+set}" = set; then
4665 withval="$with_res_class"
4666 RESCLASS="$withval"
4667fi;
4668
4669cat >>confdefs.h <<_ACEOF
4670#define RESCLASS "$RESCLASS"
4671_ACEOF
4672
4673
4674RXVTNAME=urxvt
4675
4676# Check whether --with-name or --without-name was given.
4677if test "${with_name+set}" = set; then
4678 withval="$with_name"
4679 RXVTNAME="$withval"
4680fi;
4681
4682cat >>confdefs.h <<_ACEOF
4683#define RXVTNAME "$RXVTNAME"
4684_ACEOF
4685
4686
4687RXVTNAME=`echo "$RXVTNAME"|sed "$program_transform_name"`
4688
4689
4690# Check whether --enable-swapscreen or --disable-swapscreen was given.
4691if test "${enable_swapscreen+set}" = set; then
4692 enableval="$enable_swapscreen"
4693 if test x$enableval = xno; then
4694
4695cat >>confdefs.h <<\_ACEOF
4696#define NO_SECONDARY_SCREEN 1
4697_ACEOF
4698
4699 fi
4700fi;
4701
4702# Check whether --enable-iso14755 or --disable-iso14755 was given.
4703if test "${enable_iso14755+set}" = set; then
4704 enableval="$enable_iso14755"
4705 if test x$enableval = xyes -o x$enableval = xno; then
4706 support_iso14755=$enableval
4707 fi
4708fi;
4709
4710# Check whether --enable-frills or --disable-frills was given.
4711if test "${enable_frills+set}" = set; then
4712 enableval="$enable_frills"
4713 if test x$enableval = xyes -o x$enableval = xno; then
4714 support_frills=$enableval
4715 fi
4716fi;
4717
4718# Check whether --enable-24bit or --disable-24bit was given.
4719if test "${enable_24bit+set}" = set; then
4720 enableval="$enable_24bit"
4721 if test x$enableval = xyes -o x$enableval = xno; then
4722 support_24bit=$enableval
4723 fi
4724fi;
4725
4726# Check whether --enable-keepscrolling or --disable-keepscrolling was given.
4727if test "${enable_keepscrolling+set}" = set; then
4728 enableval="$enable_keepscrolling"
4729 if test x$enableval = xyes -o x$enableval = xno; then
4730 support_keepscrolling=$enableval
4731 fi
4732fi;
4733
4734# Check whether --enable-selectionscrolling or --disable-selectionscrolling was given.
4735if test "${enable_selectionscrolling+set}" = set; then
4736 enableval="$enable_selectionscrolling"
4737 if test x$enableval = xyes -o x$enableval = xno; then
4738 support_selectionscrolling=$enableval
4739 fi
4740fi;
4741
4742# Check whether --enable-mousewheel or --disable-mousewheel was given.
4743if test "${enable_mousewheel+set}" = set; then
4744 enableval="$enable_mousewheel"
4745 if test x$enableval = xyes -o x$enableval = xno; then
4746 support_mousewheel=$enableval
4747 fi
4748fi;
4749
4750# Check whether --enable-slipwheeling or --disable-slipwheeling was given.
4751if test "${enable_slipwheeling+set}" = set; then
4752 enableval="$enable_slipwheeling"
4753 if test x$enableval = xyes -o x$enableval = xno; then
4754 support_mouseslipwheel=$enableval
4755 fi
4756fi;
4757
4758# Check whether --enable-dmalloc or --disable-dmalloc was given.
4759if test "${enable_dmalloc+set}" = set; then
4760 enableval="$enable_dmalloc"
4761 if test x$enableval = xyes; then
4762 MALLOC_TYPE=G
4763 DEBUG=-DDEBUG_MALLOC
4764 DLIB="-L/usr/local/lib -ldmalloc"
4765 DINCLUDE=-I/usr/local/include
4766 fi
4767fi;
4768
4769# Check whether --enable-dlmalloc or --disable-dlmalloc was given.
4770if test "${enable_dlmalloc+set}" = set; then
4771 enableval="$enable_dlmalloc"
4772 if test x$enableval = xyes; then
4773 MALLOC_TYPE=D
4774 DEBUG=
4775 DLIB="-L/usr/local/lib -ldlmalloc"
4776 DINCLUDE=
4777 fi
4778fi;
4779
4780# Check whether --enable-smart-resize or --disable-smart-resize was given.
4781if test "${enable_smart_resize+set}" = set; then
4782 enableval="$enable_smart_resize"
4783 if test x$enableval = xyes; then
4784
4785cat >>confdefs.h <<\_ACEOF
4786#define SMART_RESIZE 1
4787_ACEOF
4788
4789 fi
4790fi;
4791
4792# Check whether --enable-text-blink or --disable-text-blink was given.
4793if test "${enable_text_blink+set}" = set; then
4794 enableval="$enable_text_blink"
4795 if test x$enableval = xyes -o x$enableval = xno; then
4796 support_text_blink=$enableval
4797 fi
4798fi;
4799
4800# Check whether --enable-pointer-blank or --disable-pointer-blank was given.
4801if test "${enable_pointer_blank+set}" = set; then
4802 enableval="$enable_pointer_blank"
4803 if test x$enableval = xyes -o x$enableval = xno; then
4804 support_pointer_blank=$enableval
4805 fi
4806fi;
4807
4808
4809# Check whether --with-term or --without-term was given.
4810if test "${with_term+set}" = set; then
4811 withval="$with_term"
4812 if test x$withval != x; then
4813
4814cat >>confdefs.h <<_ACEOF
4815#define TERMENV "$withval"
4816_ACEOF
4817 term="$withval"
4818 fi
4819fi;
4820
4821
4822# Check whether --with-terminfo or --without-terminfo was given.
4823if test "${with_terminfo+set}" = set; then
4824 withval="$with_terminfo"
4825 if test x$withval != x; then
4826
4827cat >>confdefs.h <<_ACEOF
4828#define RXVT_TERMINFO "$withval"
4829_ACEOF
4830 terminfo="$withval"
4831 fi
4832fi;
4833
4834
4835
4836cat >>confdefs.h <<\_ACEOF
4837#define PROTOTYPES 1
4838_ACEOF
4839
4840
4841# Extract the first word of "mv", so it can be a program name with args.
4842set dummy mv; ac_word=$2
4843echo "$as_me:$LINENO: checking for $ac_word" >&5
4844echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4845if test "${ac_cv_path_MV+set}" = set; then
4846 echo $ECHO_N "(cached) $ECHO_C" >&6
4847else
4848 case $MV in
4849 [\\/]* | ?:[\\/]*)
4850 ac_cv_path_MV="$MV" # Let the user override the test with a path.
4851 ;;
4852 *)
4853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4854for as_dir in $PATH
4855do
4856 IFS=$as_save_IFS
4857 test -z "$as_dir" && as_dir=.
4858 for ac_exec_ext in '' $ac_executable_extensions; do
4859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4860 ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
4861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4862 break 2
4863 fi
4864done 5617done
4865done 5618if ${ac_cv_search_floor+:} false; then :
4866 5619
4867 test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
4868 ;;
4869esac
4870fi
4871MV=$ac_cv_path_MV
4872
4873if test -n "$MV"; then
4874 echo "$as_me:$LINENO: result: $MV" >&5
4875echo "${ECHO_T}$MV" >&6
4876else 5620else
4877 echo "$as_me:$LINENO: result: no" >&5 5621 ac_cv_search_floor=no
4878echo "${ECHO_T}no" >&6
4879fi 5622fi
4880 5623rm conftest.$ac_ext
4881# Extract the first word of "rm", so it can be a program name with args. 5624LIBS=$ac_func_search_save_LIBS
4882set dummy rm; ac_word=$2
4883echo "$as_me:$LINENO: checking for $ac_word" >&5
4884echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4885if test "${ac_cv_path_RM+set}" = set; then
4886 echo $ECHO_N "(cached) $ECHO_C" >&6
4887else
4888 case $RM in
4889 [\\/]* | ?:[\\/]*)
4890 ac_cv_path_RM="$RM" # Let the user override the test with a path.
4891 ;;
4892 *)
4893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4894for as_dir in $PATH
4895do
4896 IFS=$as_save_IFS
4897 test -z "$as_dir" && as_dir=.
4898 for ac_exec_ext in '' $ac_executable_extensions; do
4899 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4900 ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4902 break 2
4903 fi
4904done
4905done
4906
4907 test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
4908 ;;
4909esac
4910fi 5625fi
4911RM=$ac_cv_path_RM 5626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_floor" >&5
5627$as_echo "$ac_cv_search_floor" >&6; }
5628ac_res=$ac_cv_search_floor
5629if test "$ac_res" != no; then :
5630 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4912 5631
4913if test -n "$RM"; then 5632$as_echo "#define HAVE_FLOOR 1" >>confdefs.h
4914 echo "$as_me:$LINENO: result: $RM" >&5
4915echo "${ECHO_T}$RM" >&6
4916else
4917 echo "$as_me:$LINENO: result: no" >&5
4918echo "${ECHO_T}no" >&6
4919fi
4920 5633
4921# Extract the first word of "cp", so it can be a program name with args.
4922set dummy cp; ac_word=$2
4923echo "$as_me:$LINENO: checking for $ac_word" >&5
4924echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4925if test "${ac_cv_path_CP+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4927else
4928 case $CP in
4929 [\\/]* | ?:[\\/]*)
4930 ac_cv_path_CP="$CP" # Let the user override the test with a path.
4931 ;;
4932 *)
4933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4934for as_dir in $PATH
4935do
4936 IFS=$as_save_IFS
4937 test -z "$as_dir" && as_dir=.
4938 for ac_exec_ext in '' $ac_executable_extensions; do
4939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4940 ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
4941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4942 break 2
4943 fi
4944done
4945done
4946
4947 test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
4948 ;;
4949esac
4950fi 5634fi
4951CP=$ac_cv_path_CP
4952 5635
4953if test -n "$CP"; then
4954 echo "$as_me:$LINENO: result: $CP" >&5
4955echo "${ECHO_T}$CP" >&6
4956else
4957 echo "$as_me:$LINENO: result: no" >&5
4958echo "${ECHO_T}no" >&6
4959fi
4960 5636
4961# Extract the first word of "ln", so it can be a program name with args.
4962set dummy ln; ac_word=$2
4963echo "$as_me:$LINENO: checking for $ac_word" >&5
4964echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4965if test "${ac_cv_path_LN+set}" = set; then
4966 echo $ECHO_N "(cached) $ECHO_C" >&6
4967else
4968 case $LN in
4969 [\\/]* | ?:[\\/]*)
4970 ac_cv_path_LN="$LN" # Let the user override the test with a path.
4971 ;;
4972 *)
4973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4974for as_dir in $PATH
4975do
4976 IFS=$as_save_IFS
4977 test -z "$as_dir" && as_dir=.
4978 for ac_exec_ext in '' $ac_executable_extensions; do
4979 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4980 ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4982 break 2
4983 fi
4984done
4985done
4986 5637
4987 test -z "$ac_cv_path_LN" && ac_cv_path_LN="ln"
4988 ;;
4989esac
4990fi
4991LN=$ac_cv_path_LN
4992 5638
4993if test -n "$LN"; then
4994 echo "$as_me:$LINENO: result: $LN" >&5
4995echo "${ECHO_T}$LN" >&6
4996else
4997 echo "$as_me:$LINENO: result: no" >&5
4998echo "${ECHO_T}no" >&6
4999fi
5000
5001# Extract the first word of "sed", so it can be a program name with args.
5002set dummy sed; ac_word=$2
5003echo "$as_me:$LINENO: checking for $ac_word" >&5
5004echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5005if test "${ac_cv_path_SED+set}" = set; then
5006 echo $ECHO_N "(cached) $ECHO_C" >&6
5007else
5008 case $SED in
5009 [\\/]* | ?:[\\/]*)
5010 ac_cv_path_SED="$SED" # Let the user override the test with a path.
5011 ;;
5012 *)
5013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5014for as_dir in $PATH
5015do
5016 IFS=$as_save_IFS
5017 test -z "$as_dir" && as_dir=.
5018 for ac_exec_ext in '' $ac_executable_extensions; do
5019 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5020 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5022 break 2
5023 fi
5024done
5025done
5026
5027 test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
5028 ;;
5029esac
5030fi
5031SED=$ac_cv_path_SED
5032
5033if test -n "$SED"; then
5034 echo "$as_me:$LINENO: result: $SED" >&5
5035echo "${ECHO_T}$SED" >&6
5036else
5037 echo "$as_me:$LINENO: result: no" >&5
5038echo "${ECHO_T}no" >&6
5039fi
5040
5041# Extract the first word of "echo", so it can be a program name with args.
5042set dummy echo; ac_word=$2
5043echo "$as_me:$LINENO: checking for $ac_word" >&5
5044echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5045if test "${ac_cv_path_ECHO+set}" = set; then
5046 echo $ECHO_N "(cached) $ECHO_C" >&6
5047else
5048 case $ECHO in
5049 [\\/]* | ?:[\\/]*)
5050 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
5051 ;;
5052 *)
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054for as_dir in $PATH
5055do
5056 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5060 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
5061 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 break 2
5063 fi
5064done
5065done
5066
5067 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="echo"
5068 ;;
5069esac
5070fi
5071ECHO=$ac_cv_path_ECHO
5072
5073if test -n "$ECHO"; then
5074 echo "$as_me:$LINENO: result: $ECHO" >&5
5075echo "${ECHO_T}$ECHO" >&6
5076else
5077 echo "$as_me:$LINENO: result: no" >&5
5078echo "${ECHO_T}no" >&6
5079fi
5080
5081# Extract the first word of "cmp", so it can be a program name with args.
5082set dummy cmp; ac_word=$2
5083echo "$as_me:$LINENO: checking for $ac_word" >&5
5084echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5085if test "${ac_cv_path_CMP+set}" = set; then
5086 echo $ECHO_N "(cached) $ECHO_C" >&6
5087else
5088 case $CMP in
5089 [\\/]* | ?:[\\/]*)
5090 ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
5091 ;;
5092 *)
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094for as_dir in $PATH
5095do
5096 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5100 ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
5101 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2
5103 fi
5104done
5105done
5106
5107 test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
5108 ;;
5109esac
5110fi
5111CMP=$ac_cv_path_CMP
5112
5113if test -n "$CMP"; then
5114 echo "$as_me:$LINENO: result: $CMP" >&5
5115echo "${ECHO_T}$CMP" >&6
5116else
5117 echo "$as_me:$LINENO: result: no" >&5
5118echo "${ECHO_T}no" >&6
5119fi
5120
5121# Extract the first word of "tbl", so it can be a program name with args.
5122set dummy tbl; ac_word=$2
5123echo "$as_me:$LINENO: checking for $ac_word" >&5
5124echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5125if test "${ac_cv_path_TBL+set}" = set; then
5126 echo $ECHO_N "(cached) $ECHO_C" >&6
5127else
5128 case $TBL in
5129 [\\/]* | ?:[\\/]*)
5130 ac_cv_path_TBL="$TBL" # Let the user override the test with a path.
5131 ;;
5132 *)
5133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134for as_dir in $PATH
5135do
5136 IFS=$as_save_IFS
5137 test -z "$as_dir" && as_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5140 ac_cv_path_TBL="$as_dir/$ac_word$ac_exec_ext"
5141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5142 break 2
5143 fi
5144done
5145done
5146
5147 ;;
5148esac
5149fi
5150TBL=$ac_cv_path_TBL
5151
5152if test -n "$TBL"; then
5153 echo "$as_me:$LINENO: result: $TBL" >&5
5154echo "${ECHO_T}$TBL" >&6
5155else
5156 echo "$as_me:$LINENO: result: no" >&5
5157echo "${ECHO_T}no" >&6
5158fi
5159 5639
5160# Extract the first word of "tic", so it can be a program name with args. 5640# Extract the first word of "tic", so it can be a program name with args.
5161set dummy tic; ac_word=$2 5641set dummy tic; ac_word=$2
5162echo "$as_me:$LINENO: checking for $ac_word" >&5 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5643$as_echo_n "checking for $ac_word... " >&6; }
5164if test "${ac_cv_path_TIC+set}" = set; then 5644if ${ac_cv_path_TIC+:} false; then :
5165 echo $ECHO_N "(cached) $ECHO_C" >&6 5645 $as_echo_n "(cached) " >&6
5166else 5646else
5167 case $TIC in 5647 case $TIC in
5168 [\\/]* | ?:[\\/]*) 5648 [\\/]* | ?:[\\/]*)
5169 ac_cv_path_TIC="$TIC" # Let the user override the test with a path. 5649 ac_cv_path_TIC="$TIC" # Let the user override the test with a path.
5170 ;; 5650 ;;
5172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5173for as_dir in $PATH 5653for as_dir in $PATH
5174do 5654do
5175 IFS=$as_save_IFS 5655 IFS=$as_save_IFS
5176 test -z "$as_dir" && as_dir=. 5656 test -z "$as_dir" && as_dir=.
5177 for ac_exec_ext in '' $ac_executable_extensions; do 5657 for ac_exec_ext in '' $ac_executable_extensions; do
5178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5179 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext" 5659 ac_cv_path_TIC="$as_dir/$ac_word$ac_exec_ext"
5180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5181 break 2 5661 break 2
5182 fi 5662 fi
5183done 5663done
5184done 5664 done
5665IFS=$as_save_IFS
5185 5666
5667 test -z "$ac_cv_path_TIC" && ac_cv_path_TIC=":"
5186 ;; 5668 ;;
5187esac 5669esac
5188fi 5670fi
5189TIC=$ac_cv_path_TIC 5671TIC=$ac_cv_path_TIC
5190
5191if test -n "$TIC"; then 5672if test -n "$TIC"; then
5192 echo "$as_me:$LINENO: result: $TIC" >&5 5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TIC" >&5
5193echo "${ECHO_T}$TIC" >&6 5674$as_echo "$TIC" >&6; }
5194else 5675else
5195 echo "$as_me:$LINENO: result: no" >&5 5676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196echo "${ECHO_T}no" >&6 5677$as_echo "no" >&6; }
5197fi 5678fi
5198 5679
5199 5680
5200 5681
5201
5202
5203if test "x$ac_path_x_has_been_run" != xyes; then
5204 echo "$as_me:$LINENO: checking for X" >&5 5682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
5205echo $ECHO_N "checking for X... $ECHO_C" >&6 5683$as_echo_n "checking for X... " >&6; }
5206 5684
5207ac_path_x_has_been_run=yes
5208 5685
5209# Check whether --with-x or --without-x was given. 5686# Check whether --with-x was given.
5210if test "${with_x+set}" = set; then 5687if test "${with_x+set}" = set; then :
5211 withval="$with_x" 5688 withval=$with_x;
5212
5213fi; 5689fi
5690
5214# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 5691# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
5215if test "x$with_x" = xno; then 5692if test "x$with_x" = xno; then
5216 # The user explicitly disabled X. 5693 # The user explicitly disabled X.
5217 have_x=disabled 5694 have_x=disabled
5218else 5695else
5219 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then 5696 case $x_includes,$x_libraries in #(
5220 # Both variables are already set. 5697 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
5221 have_x=yes 5698 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
5222 else 5699 $as_echo_n "(cached) " >&6
5223 if test "${ac_cv_have_x+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225else 5700else
5226 # One or both of the vars are not set, and there is no cached value. 5701 # One or both of the vars are not set, and there is no cached value.
5227ac_x_includes=no ac_x_libraries=no 5702ac_x_includes=no ac_x_libraries=no
5228rm -fr conftest.dir 5703rm -f -r conftest.dir
5229if mkdir conftest.dir; then 5704if mkdir conftest.dir; then
5230 cd conftest.dir 5705 cd conftest.dir
5231 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
5232 cat >Imakefile <<'_ACEOF' 5706 cat >Imakefile <<'_ACEOF'
5233acfindx: 5707incroot:
5234 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"' 5708 @echo incroot='${INCROOT}'
5709usrlibdir:
5710 @echo usrlibdir='${USRLIBDIR}'
5711libdir:
5712 @echo libdir='${LIBDIR}'
5235_ACEOF 5713_ACEOF
5236 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then 5714 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
5237 # GNU make sometimes prints "make[1]: Entering...", which would confuse us. 5715 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5238 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make` 5716 for ac_var in incroot usrlibdir libdir; do
5717 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
5718 done
5239 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 5719 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
5240 for ac_extension in a so sl; do 5720 for ac_extension in a so sl dylib la dll; do
5241 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension && 5721 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
5242 test -f $ac_im_libdir/libX11.$ac_extension; then 5722 test -f "$ac_im_libdir/libX11.$ac_extension"; then
5243 ac_im_usrlibdir=$ac_im_libdir; break 5723 ac_im_usrlibdir=$ac_im_libdir; break
5244 fi 5724 fi
5245 done 5725 done
5246 # Screen out bogus values from the imake configuration. They are 5726 # Screen out bogus values from the imake configuration. They are
5247 # bogus both because they are the default anyway, and because 5727 # bogus both because they are the default anyway, and because
5248 # using them would break gcc on systems where it needs fixed includes. 5728 # using them would break gcc on systems where it needs fixed includes.
5249 case $ac_im_incroot in 5729 case $ac_im_incroot in
5250 /usr/include) ;; 5730 /usr/include) ac_x_includes= ;;
5251 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 5731 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
5252 esac 5732 esac
5253 case $ac_im_usrlibdir in 5733 case $ac_im_usrlibdir in
5254 /usr/lib | /lib) ;; 5734 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
5255 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 5735 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
5256 esac 5736 esac
5257 fi 5737 fi
5258 cd .. 5738 cd ..
5259 rm -fr conftest.dir 5739 rm -f -r conftest.dir
5260fi 5740fi
5261 5741
5262# Standard set of common directories for X headers. 5742# Standard set of common directories for X headers.
5263# Check X11 before X11Rn because it is often a symlink to the current release. 5743# Check X11 before X11Rn because it is often a symlink to the current release.
5264ac_x_header_dirs=' 5744ac_x_header_dirs='
5265/usr/X11/include 5745/usr/X11/include
5746/usr/X11R7/include
5266/usr/X11R6/include 5747/usr/X11R6/include
5267/usr/X11R5/include 5748/usr/X11R5/include
5268/usr/X11R4/include 5749/usr/X11R4/include
5269 5750
5270/usr/include/X11 5751/usr/include/X11
5752/usr/include/X11R7
5271/usr/include/X11R6 5753/usr/include/X11R6
5272/usr/include/X11R5 5754/usr/include/X11R5
5273/usr/include/X11R4 5755/usr/include/X11R4
5274 5756
5275/usr/local/X11/include 5757/usr/local/X11/include
5758/usr/local/X11R7/include
5276/usr/local/X11R6/include 5759/usr/local/X11R6/include
5277/usr/local/X11R5/include 5760/usr/local/X11R5/include
5278/usr/local/X11R4/include 5761/usr/local/X11R4/include
5279 5762
5280/usr/local/include/X11 5763/usr/local/include/X11
5764/usr/local/include/X11R7
5281/usr/local/include/X11R6 5765/usr/local/include/X11R6
5282/usr/local/include/X11R5 5766/usr/local/include/X11R5
5283/usr/local/include/X11R4 5767/usr/local/include/X11R4
5284 5768
5285/usr/X386/include 5769/usr/X386/include
5295 5779
5296/usr/openwin/include 5780/usr/openwin/include
5297/usr/openwin/share/include' 5781/usr/openwin/share/include'
5298 5782
5299if test "$ac_x_includes" = no; then 5783if test "$ac_x_includes" = no; then
5300 # Guess where to find include files, by looking for a specified header file. 5784 # Guess where to find include files, by looking for Xlib.h.
5301 # First, try using that file with no special directory specified. 5785 # First, try using that file with no special directory specified.
5302 cat >conftest.$ac_ext <<_ACEOF
5303/* confdefs.h. */
5304_ACEOF
5305cat confdefs.h >>conftest.$ac_ext 5786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5306cat >>conftest.$ac_ext <<_ACEOF
5307/* end confdefs.h. */ 5787/* end confdefs.h. */
5308#include <X11/Xlib.h> 5788#include <X11/Xlib.h>
5309_ACEOF 5789_ACEOF
5310if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5790if ac_fn_cxx_try_cpp "$LINENO"; then :
5311 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5312 ac_status=$?
5313 grep -v '^ *+' conftest.er1 >conftest.err
5314 rm -f conftest.er1
5315 cat conftest.err >&5
5316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5317 (exit $ac_status); } >/dev/null; then
5318 if test -s conftest.err; then
5319 ac_cpp_err=$ac_cxx_preproc_warn_flag
5320 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5321 else
5322 ac_cpp_err=
5323 fi
5324else
5325 ac_cpp_err=yes
5326fi
5327if test -z "$ac_cpp_err"; then
5328 # We can compile using X headers with no special include directory. 5791 # We can compile using X headers with no special include directory.
5329ac_x_includes= 5792ac_x_includes=
5330else 5793else
5331 echo "$as_me: failed program was:" >&5
5332sed 's/^/| /' conftest.$ac_ext >&5
5333
5334 for ac_dir in $ac_x_header_dirs; do 5794 for ac_dir in $ac_x_header_dirs; do
5335 if test -r "$ac_dir/X11/Xlib.h"; then 5795 if test -r "$ac_dir/X11/Xlib.h"; then
5336 ac_x_includes=$ac_dir 5796 ac_x_includes=$ac_dir
5337 break 5797 break
5338 fi 5798 fi
5339done 5799done
5340fi 5800fi
5341rm -f conftest.err conftest.$ac_ext 5801rm -f conftest.err conftest.i conftest.$ac_ext
5342fi # $ac_x_includes = no 5802fi # $ac_x_includes = no
5343 5803
5344if test "$ac_x_libraries" = no; then 5804if test "$ac_x_libraries" = no; then
5345 # Check for the libraries. 5805 # Check for the libraries.
5346 # See if we find them without any special options. 5806 # See if we find them without any special options.
5347 # Don't add to $LIBS permanently. 5807 # Don't add to $LIBS permanently.
5348 ac_save_LIBS=$LIBS 5808 ac_save_LIBS=$LIBS
5349 LIBS="-lX11 $LIBS" 5809 LIBS="-lX11 $LIBS"
5350 cat >conftest.$ac_ext <<_ACEOF
5351/* confdefs.h. */
5352_ACEOF
5353cat confdefs.h >>conftest.$ac_ext 5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5354cat >>conftest.$ac_ext <<_ACEOF
5355/* end confdefs.h. */ 5811/* end confdefs.h. */
5356#include <X11/Xlib.h> 5812#include <X11/Xlib.h>
5357int 5813int
5358main () 5814main ()
5359{ 5815{
5360XrmInitialize () 5816XrmInitialize ()
5361 ; 5817 ;
5362 return 0; 5818 return 0;
5363} 5819}
5364_ACEOF 5820_ACEOF
5365rm -f conftest.$ac_objext conftest$ac_exeext 5821if ac_fn_cxx_try_link "$LINENO"; then :
5366if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5367 (eval $ac_link) 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; } &&
5380 { ac_try='test -s conftest$ac_exeext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 (eval $ac_try) 2>&5
5383 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5386 LIBS=$ac_save_LIBS 5822 LIBS=$ac_save_LIBS
5387# We can link X programs with no special library path. 5823# We can link X programs with no special library path.
5388ac_x_libraries= 5824ac_x_libraries=
5389else 5825else
5390 echo "$as_me: failed program was:" >&5
5391sed 's/^/| /' conftest.$ac_ext >&5
5392
5393LIBS=$ac_save_LIBS 5826 LIBS=$ac_save_LIBS
5394for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 5827for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
5395do 5828do
5396 # Don't even attempt the hair of trying to link an X program! 5829 # Don't even attempt the hair of trying to link an X program!
5397 for ac_extension in a so sl; do 5830 for ac_extension in a so sl dylib la dll; do
5398 if test -r $ac_dir/libX11.$ac_extension; then 5831 if test -r "$ac_dir/libX11.$ac_extension"; then
5399 ac_x_libraries=$ac_dir 5832 ac_x_libraries=$ac_dir
5400 break 2 5833 break 2
5401 fi 5834 fi
5402 done 5835 done
5403done 5836done
5404fi 5837fi
5405rm -f conftest.err conftest.$ac_objext \ 5838rm -f core conftest.err conftest.$ac_objext \
5406 conftest$ac_exeext conftest.$ac_ext 5839 conftest$ac_exeext conftest.$ac_ext
5407fi # $ac_x_libraries = no 5840fi # $ac_x_libraries = no
5408 5841
5409if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then 5842case $ac_x_includes,$ac_x_libraries in #(
5410 # Didn't find X anywhere. Cache the known absence of X. 5843 no,* | *,no | *\'*)
5844 # Didn't find X, or a directory has "'" in its name.
5411 ac_cv_have_x="have_x=no" 5845 ac_cv_have_x="have_x=no";; #(
5412else 5846 *)
5413 # Record where we found X for the cache. 5847 # Record where we found X for the cache.
5414 ac_cv_have_x="have_x=yes \ 5848 ac_cv_have_x="have_x=yes\
5415 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries" 5849 ac_x_includes='$ac_x_includes'\
5850 ac_x_libraries='$ac_x_libraries'"
5851esac
5416fi 5852fi
5417fi 5853;; #(
5418 5854 *) have_x=yes;;
5419 fi 5855 esac
5420 eval "$ac_cv_have_x" 5856 eval "$ac_cv_have_x"
5421fi # $with_x != no 5857fi # $with_x != no
5422 5858
5423if test "$have_x" != yes; then 5859if test "$have_x" != yes; then
5424 echo "$as_me:$LINENO: result: $have_x" >&5 5860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
5425echo "${ECHO_T}$have_x" >&6 5861$as_echo "$have_x" >&6; }
5426 no_x=yes 5862 no_x=yes
5427else 5863else
5428 # If each of the values was on the command line, it overrides each guess. 5864 # If each of the values was on the command line, it overrides each guess.
5429 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 5865 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
5430 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 5866 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
5431 # Update the cache value to reflect the command line values. 5867 # Update the cache value to reflect the command line values.
5432 ac_cv_have_x="have_x=yes \ 5868 ac_cv_have_x="have_x=yes\
5433 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
5434 # It might be that x_includes is empty (headers are found in the
5435 # standard search path. Then output the corresponding message
5436 ac_out_x_includes=$x_includes 5869 ac_x_includes='$x_includes'\
5437 test "x$x_includes" = x && ac_out_x_includes="in standard search path" 5870 ac_x_libraries='$x_libraries'"
5438 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $ac_out_x_includes" >&5 5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
5439echo "${ECHO_T}libraries $x_libraries, headers $ac_out_x_includes" >&6 5872$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
5440fi 5873fi
5441 5874
5442fi
5443if test "$no_x" = yes; then 5875if test "$no_x" = yes; then
5444 # Not all programs may use this symbol, but it does not hurt to define it. 5876 # Not all programs may use this symbol, but it does not hurt to define it.
5445 5877
5446cat >>confdefs.h <<\_ACEOF 5878$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
5447#define X_DISPLAY_MISSING 1
5448_ACEOF
5449 5879
5450 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 5880 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
5451else 5881else
5452 if test -n "$x_includes"; then 5882 if test -n "$x_includes"; then
5453 X_CFLAGS="$X_CFLAGS -I$x_includes" 5883 X_CFLAGS="$X_CFLAGS -I$x_includes"
5456 # It would also be nice to do this for all -L options, not just this one. 5886 # It would also be nice to do this for all -L options, not just this one.
5457 if test -n "$x_libraries"; then 5887 if test -n "$x_libraries"; then
5458 X_LIBS="$X_LIBS -L$x_libraries" 5888 X_LIBS="$X_LIBS -L$x_libraries"
5459 # For Solaris; some versions of Sun CC require a space after -R and 5889 # For Solaris; some versions of Sun CC require a space after -R and
5460 # others require no space. Words are not sufficient . . . . 5890 # others require no space. Words are not sufficient . . . .
5461 case `(uname -sr) 2>/dev/null` in
5462 "SunOS 5"*)
5463 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 5891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
5464echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6 5892$as_echo_n "checking whether -R must be followed by a space... " >&6; }
5465 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 5893 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
5466 cat >conftest.$ac_ext <<_ACEOF 5894 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
5467/* confdefs.h. */ 5895 ac_cxx_werror_flag=yes
5468_ACEOF
5469cat confdefs.h >>conftest.$ac_ext 5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5470cat >>conftest.$ac_ext <<_ACEOF
5471/* end confdefs.h. */ 5897/* end confdefs.h. */
5472 5898
5473int 5899int
5474main () 5900main ()
5475{ 5901{
5476 5902
5477 ; 5903 ;
5478 return 0; 5904 return 0;
5479} 5905}
5480_ACEOF 5906_ACEOF
5481rm -f conftest.$ac_objext conftest$ac_exeext 5907if ac_fn_cxx_try_link "$LINENO"; then :
5482if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5483 (eval $ac_link) 2>conftest.er1
5484 ac_status=$?
5485 grep -v '^ *+' conftest.er1 >conftest.err
5486 rm -f conftest.er1
5487 cat conftest.err >&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } &&
5490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5492 (eval $ac_try) 2>&5
5493 ac_status=$?
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); }; } &&
5496 { ac_try='test -s conftest$ac_exeext'
5497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5498 (eval $ac_try) 2>&5
5499 ac_status=$?
5500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5501 (exit $ac_status); }; }; then
5502 ac_R_nospace=yes
5503else
5504 echo "$as_me: failed program was:" >&5
5505sed 's/^/| /' conftest.$ac_ext >&5
5506
5507ac_R_nospace=no
5508fi
5509rm -f conftest.err conftest.$ac_objext \
5510 conftest$ac_exeext conftest.$ac_ext
5511 if test $ac_R_nospace = yes; then
5512 echo "$as_me:$LINENO: result: no" >&5 5908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513echo "${ECHO_T}no" >&6 5909$as_echo "no" >&6; }
5514 X_LIBS="$X_LIBS -R$x_libraries" 5910 X_LIBS="$X_LIBS -R$x_libraries"
5515 else 5911else
5516 LIBS="$ac_xsave_LIBS -R $x_libraries" 5912 LIBS="$ac_xsave_LIBS -R $x_libraries"
5517 cat >conftest.$ac_ext <<_ACEOF
5518/* confdefs.h. */
5519_ACEOF
5520cat confdefs.h >>conftest.$ac_ext 5913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5521cat >>conftest.$ac_ext <<_ACEOF
5522/* end confdefs.h. */ 5914/* end confdefs.h. */
5523 5915
5524int 5916int
5525main () 5917main ()
5526{ 5918{
5527 5919
5528 ; 5920 ;
5529 return 0; 5921 return 0;
5530} 5922}
5531_ACEOF 5923_ACEOF
5532rm -f conftest.$ac_objext conftest$ac_exeext 5924if ac_fn_cxx_try_link "$LINENO"; then :
5533if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5534 (eval $ac_link) 2>conftest.er1
5535 ac_status=$?
5536 grep -v '^ *+' conftest.er1 >conftest.err
5537 rm -f conftest.er1
5538 cat conftest.err >&5
5539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5540 (exit $ac_status); } &&
5541 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5543 (eval $ac_try) 2>&5
5544 ac_status=$?
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); }; } &&
5547 { ac_try='test -s conftest$ac_exeext'
5548 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5549 (eval $ac_try) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }; }; then
5553 ac_R_space=yes
5554else
5555 echo "$as_me: failed program was:" >&5
5556sed 's/^/| /' conftest.$ac_ext >&5
5557
5558ac_R_space=no
5559fi
5560rm -f conftest.err conftest.$ac_objext \
5561 conftest$ac_exeext conftest.$ac_ext
5562 if test $ac_R_space = yes; then
5563 echo "$as_me:$LINENO: result: yes" >&5 5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5564echo "${ECHO_T}yes" >&6 5926$as_echo "yes" >&6; }
5565 X_LIBS="$X_LIBS -R $x_libraries" 5927 X_LIBS="$X_LIBS -R $x_libraries"
5566 else 5928else
5567 echo "$as_me:$LINENO: result: neither works" >&5 5929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
5568echo "${ECHO_T}neither works" >&6 5930$as_echo "neither works" >&6; }
5569 fi 5931fi
5570 fi 5932rm -f core conftest.err conftest.$ac_objext \
5933 conftest$ac_exeext conftest.$ac_ext
5934fi
5935rm -f core conftest.err conftest.$ac_objext \
5936 conftest$ac_exeext conftest.$ac_ext
5937 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
5571 LIBS=$ac_xsave_LIBS 5938 LIBS=$ac_xsave_LIBS
5572 esac
5573 fi 5939 fi
5574 5940
5575 # Check for system-dependent libraries X programs must link with. 5941 # Check for system-dependent libraries X programs must link with.
5576 # Do this before checking for the system-independent R6 libraries 5942 # Do this before checking for the system-independent R6 libraries
5577 # (-lICE), since we may need -lsocket or whatever for X linking. 5943 # (-lICE), since we may need -lsocket or whatever for X linking.
5581 else 5947 else
5582 # Martyn Johnson says this is needed for Ultrix, if the X 5948 # Martyn Johnson says this is needed for Ultrix, if the X
5583 # libraries were built with DECnet support. And Karl Berry says 5949 # libraries were built with DECnet support. And Karl Berry says
5584 # the Alpha needs dnet_stub (dnet does not exist). 5950 # the Alpha needs dnet_stub (dnet does not exist).
5585 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 5951 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
5586 cat >conftest.$ac_ext <<_ACEOF
5587/* confdefs.h. */
5588_ACEOF
5589cat confdefs.h >>conftest.$ac_ext 5952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5590cat >>conftest.$ac_ext <<_ACEOF
5591/* end confdefs.h. */ 5953/* end confdefs.h. */
5592 5954
5593/* Override any gcc2 internal prototype to avoid an error. */ 5955/* Override any GCC internal prototype to avoid an error.
5956 Use char because int might match the return type of a GCC
5957 builtin and then its argument prototype would still apply. */
5594#ifdef __cplusplus 5958#ifdef __cplusplus
5595extern "C" 5959extern "C"
5596#endif 5960#endif
5597/* We use char because int might match the return type of a gcc2
5598 builtin and then its argument prototype would still apply. */
5599char XOpenDisplay (); 5961char XOpenDisplay ();
5600int 5962int
5601main () 5963main ()
5602{ 5964{
5603XOpenDisplay (); 5965return XOpenDisplay ();
5604 ; 5966 ;
5605 return 0; 5967 return 0;
5606} 5968}
5607_ACEOF 5969_ACEOF
5608rm -f conftest.$ac_objext conftest$ac_exeext 5970if ac_fn_cxx_try_link "$LINENO"; then :
5609if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5610 (eval $ac_link) 2>conftest.er1
5611 ac_status=$?
5612 grep -v '^ *+' conftest.er1 >conftest.err
5613 rm -f conftest.er1
5614 cat conftest.err >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } &&
5617 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5618 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5619 (eval $ac_try) 2>&5
5620 ac_status=$?
5621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5622 (exit $ac_status); }; } &&
5623 { ac_try='test -s conftest$ac_exeext'
5624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5625 (eval $ac_try) 2>&5
5626 ac_status=$?
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); }; }; then
5629 :
5630else
5631 echo "$as_me: failed program was:" >&5
5632sed 's/^/| /' conftest.$ac_ext >&5
5633 5971
5972else
5634echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
5635echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6 5974$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
5636if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 5975if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
5637 echo $ECHO_N "(cached) $ECHO_C" >&6 5976 $as_echo_n "(cached) " >&6
5638else 5977else
5639 ac_check_lib_save_LIBS=$LIBS 5978 ac_check_lib_save_LIBS=$LIBS
5640LIBS="-ldnet $LIBS" 5979LIBS="-ldnet $LIBS"
5641cat >conftest.$ac_ext <<_ACEOF
5642/* confdefs.h. */
5643_ACEOF
5644cat confdefs.h >>conftest.$ac_ext 5980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5645cat >>conftest.$ac_ext <<_ACEOF
5646/* end confdefs.h. */ 5981/* end confdefs.h. */
5647 5982
5648/* Override any gcc2 internal prototype to avoid an error. */ 5983/* Override any GCC internal prototype to avoid an error.
5984 Use char because int might match the return type of a GCC
5985 builtin and then its argument prototype would still apply. */
5649#ifdef __cplusplus 5986#ifdef __cplusplus
5650extern "C" 5987extern "C"
5651#endif 5988#endif
5652/* We use char because int might match the return type of a gcc2
5653 builtin and then its argument prototype would still apply. */
5654char dnet_ntoa (); 5989char dnet_ntoa ();
5655int 5990int
5656main () 5991main ()
5657{ 5992{
5658dnet_ntoa (); 5993return dnet_ntoa ();
5659 ; 5994 ;
5660 return 0; 5995 return 0;
5661} 5996}
5662_ACEOF 5997_ACEOF
5663rm -f conftest.$ac_objext conftest$ac_exeext 5998if ac_fn_cxx_try_link "$LINENO"; then :
5664if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5665 (eval $ac_link) 2>conftest.er1
5666 ac_status=$?
5667 grep -v '^ *+' conftest.er1 >conftest.err
5668 rm -f conftest.er1
5669 cat conftest.err >&5
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } &&
5672 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5674 (eval $ac_try) 2>&5
5675 ac_status=$?
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); }; } &&
5678 { ac_try='test -s conftest$ac_exeext'
5679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5680 (eval $ac_try) 2>&5
5681 ac_status=$?
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); }; }; then
5684 ac_cv_lib_dnet_dnet_ntoa=yes 5999 ac_cv_lib_dnet_dnet_ntoa=yes
5685else 6000else
5686 echo "$as_me: failed program was:" >&5
5687sed 's/^/| /' conftest.$ac_ext >&5
5688
5689ac_cv_lib_dnet_dnet_ntoa=no 6001 ac_cv_lib_dnet_dnet_ntoa=no
5690fi 6002fi
5691rm -f conftest.err conftest.$ac_objext \ 6003rm -f core conftest.err conftest.$ac_objext \
5692 conftest$ac_exeext conftest.$ac_ext 6004 conftest$ac_exeext conftest.$ac_ext
5693LIBS=$ac_check_lib_save_LIBS 6005LIBS=$ac_check_lib_save_LIBS
5694fi 6006fi
5695echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 6007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
5696echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6 6008$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
5697if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 6009if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
5698 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 6010 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
5699fi 6011fi
5700 6012
5701 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 6013 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
5702 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 6014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
5703echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6 6015$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
5704if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then 6016if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
5705 echo $ECHO_N "(cached) $ECHO_C" >&6 6017 $as_echo_n "(cached) " >&6
5706else 6018else
5707 ac_check_lib_save_LIBS=$LIBS 6019 ac_check_lib_save_LIBS=$LIBS
5708LIBS="-ldnet_stub $LIBS" 6020LIBS="-ldnet_stub $LIBS"
5709cat >conftest.$ac_ext <<_ACEOF
5710/* confdefs.h. */
5711_ACEOF
5712cat confdefs.h >>conftest.$ac_ext 6021cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5713cat >>conftest.$ac_ext <<_ACEOF
5714/* end confdefs.h. */ 6022/* end confdefs.h. */
5715 6023
5716/* Override any gcc2 internal prototype to avoid an error. */ 6024/* Override any GCC internal prototype to avoid an error.
6025 Use char because int might match the return type of a GCC
6026 builtin and then its argument prototype would still apply. */
5717#ifdef __cplusplus 6027#ifdef __cplusplus
5718extern "C" 6028extern "C"
5719#endif 6029#endif
5720/* We use char because int might match the return type of a gcc2
5721 builtin and then its argument prototype would still apply. */
5722char dnet_ntoa (); 6030char dnet_ntoa ();
5723int 6031int
5724main () 6032main ()
5725{ 6033{
5726dnet_ntoa (); 6034return dnet_ntoa ();
5727 ; 6035 ;
5728 return 0; 6036 return 0;
5729} 6037}
5730_ACEOF 6038_ACEOF
5731rm -f conftest.$ac_objext conftest$ac_exeext 6039if ac_fn_cxx_try_link "$LINENO"; then :
5732if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5733 (eval $ac_link) 2>conftest.er1
5734 ac_status=$?
5735 grep -v '^ *+' conftest.er1 >conftest.err
5736 rm -f conftest.er1
5737 cat conftest.err >&5
5738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5739 (exit $ac_status); } &&
5740 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5742 (eval $ac_try) 2>&5
5743 ac_status=$?
5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5745 (exit $ac_status); }; } &&
5746 { ac_try='test -s conftest$ac_exeext'
5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5748 (eval $ac_try) 2>&5
5749 ac_status=$?
5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5751 (exit $ac_status); }; }; then
5752 ac_cv_lib_dnet_stub_dnet_ntoa=yes 6040 ac_cv_lib_dnet_stub_dnet_ntoa=yes
5753else 6041else
5754 echo "$as_me: failed program was:" >&5
5755sed 's/^/| /' conftest.$ac_ext >&5
5756
5757ac_cv_lib_dnet_stub_dnet_ntoa=no 6042 ac_cv_lib_dnet_stub_dnet_ntoa=no
5758fi 6043fi
5759rm -f conftest.err conftest.$ac_objext \ 6044rm -f core conftest.err conftest.$ac_objext \
5760 conftest$ac_exeext conftest.$ac_ext 6045 conftest$ac_exeext conftest.$ac_ext
5761LIBS=$ac_check_lib_save_LIBS 6046LIBS=$ac_check_lib_save_LIBS
5762fi 6047fi
5763echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 6048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
5764echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6 6049$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
5765if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then 6050if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
5766 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 6051 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
5767fi 6052fi
5768 6053
5769 fi 6054 fi
5770fi 6055fi
5771rm -f conftest.err conftest.$ac_objext \ 6056rm -f core conftest.err conftest.$ac_objext \
5772 conftest$ac_exeext conftest.$ac_ext 6057 conftest$ac_exeext conftest.$ac_ext
5773 LIBS="$ac_xsave_LIBS" 6058 LIBS="$ac_xsave_LIBS"
5774 6059
5775 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 6060 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
5776 # to get the SysV transport functions. 6061 # to get the SysV transport functions.
5777 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 6062 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
5778 # needs -lnsl. 6063 # needs -lnsl.
5779 # The nsl library prevents programs from opening the X display 6064 # The nsl library prevents programs from opening the X display
5780 # on Irix 5.2, according to T.E. Dickey. 6065 # on Irix 5.2, according to T.E. Dickey.
5781 # The functions gethostbyname, getservbyname, and inet_addr are 6066 # The functions gethostbyname, getservbyname, and inet_addr are
5782 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 6067 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
5783 echo "$as_me:$LINENO: checking for gethostbyname" >&5 6068 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5784echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6 6069if test "x$ac_cv_func_gethostbyname" = xyes; then :
6070
6071fi
6072
5785if test "${ac_cv_func_gethostbyname+set}" = set; then 6073 if test $ac_cv_func_gethostbyname = no; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6 6074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
6075$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
6076if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
6077 $as_echo_n "(cached) " >&6
5787else 6078else
5788 cat >conftest.$ac_ext <<_ACEOF 6079 ac_check_lib_save_LIBS=$LIBS
5789/* confdefs.h. */ 6080LIBS="-lnsl $LIBS"
5790_ACEOF
5791cat confdefs.h >>conftest.$ac_ext 6081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5792cat >>conftest.$ac_ext <<_ACEOF
5793/* end confdefs.h. */ 6082/* end confdefs.h. */
5794/* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
5795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
5796#define gethostbyname innocuous_gethostbyname
5797 6083
5798/* System header to define __stub macros and hopefully few prototypes,
5799 which can conflict with char gethostbyname (); below.
5800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5801 <limits.h> exists even on freestanding compilers. */
5802
5803#ifdef __STDC__
5804# include <limits.h>
5805#else
5806# include <assert.h>
5807#endif
5808
5809#undef gethostbyname
5810
5811/* Override any gcc2 internal prototype to avoid an error. */ 6084/* Override any GCC internal prototype to avoid an error.
6085 Use char because int might match the return type of a GCC
6086 builtin and then its argument prototype would still apply. */
5812#ifdef __cplusplus 6087#ifdef __cplusplus
5813extern "C" 6088extern "C"
5814{
5815#endif 6089#endif
5816/* We use char because int might match the return type of a gcc2
5817 builtin and then its argument prototype would still apply. */
5818char gethostbyname (); 6090char gethostbyname ();
5819/* The GNU C library defines this for functions which it implements
5820 to always fail with ENOSYS. Some functions are actually named
5821 something starting with __ and the normal name is an alias. */
5822#if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
5823choke me
5824#else
5825char (*f) () = gethostbyname;
5826#endif
5827#ifdef __cplusplus
5828}
5829#endif
5830
5831int 6091int
5832main () 6092main ()
5833{ 6093{
5834return f != gethostbyname; 6094return gethostbyname ();
5835 ; 6095 ;
5836 return 0; 6096 return 0;
5837} 6097}
5838_ACEOF 6098_ACEOF
5839rm -f conftest.$ac_objext conftest$ac_exeext 6099if ac_fn_cxx_try_link "$LINENO"; then :
5840if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5841 (eval $ac_link) 2>conftest.er1
5842 ac_status=$?
5843 grep -v '^ *+' conftest.er1 >conftest.err
5844 rm -f conftest.er1
5845 cat conftest.err >&5
5846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5847 (exit $ac_status); } &&
5848 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5850 (eval $ac_try) 2>&5
5851 ac_status=$?
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); }; } &&
5854 { ac_try='test -s conftest$ac_exeext'
5855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5856 (eval $ac_try) 2>&5
5857 ac_status=$?
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); }; }; then
5860 ac_cv_func_gethostbyname=yes 6100 ac_cv_lib_nsl_gethostbyname=yes
5861else 6101else
5862 echo "$as_me: failed program was:" >&5
5863sed 's/^/| /' conftest.$ac_ext >&5
5864
5865ac_cv_func_gethostbyname=no 6102 ac_cv_lib_nsl_gethostbyname=no
5866fi 6103fi
5867rm -f conftest.err conftest.$ac_objext \ 6104rm -f core conftest.err conftest.$ac_objext \
5868 conftest$ac_exeext conftest.$ac_ext 6105 conftest$ac_exeext conftest.$ac_ext
6106LIBS=$ac_check_lib_save_LIBS
5869fi 6107fi
5870echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 6108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
5871echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6 6109$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
6110if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
6111 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
6112fi
5872 6113
5873 if test $ac_cv_func_gethostbyname = no; then 6114 if test $ac_cv_lib_nsl_gethostbyname = no; then
5874 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 6115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
5875echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 6116$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
5876if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then 6117if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
5877 echo $ECHO_N "(cached) $ECHO_C" >&6 6118 $as_echo_n "(cached) " >&6
5878else 6119else
5879 ac_check_lib_save_LIBS=$LIBS 6120 ac_check_lib_save_LIBS=$LIBS
5880LIBS="-lnsl $LIBS" 6121LIBS="-lbsd $LIBS"
5881cat >conftest.$ac_ext <<_ACEOF
5882/* confdefs.h. */
5883_ACEOF
5884cat confdefs.h >>conftest.$ac_ext 6122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5885cat >>conftest.$ac_ext <<_ACEOF
5886/* end confdefs.h. */ 6123/* end confdefs.h. */
5887 6124
5888/* Override any gcc2 internal prototype to avoid an error. */ 6125/* Override any GCC internal prototype to avoid an error.
6126 Use char because int might match the return type of a GCC
6127 builtin and then its argument prototype would still apply. */
5889#ifdef __cplusplus 6128#ifdef __cplusplus
5890extern "C" 6129extern "C"
5891#endif 6130#endif
5892/* We use char because int might match the return type of a gcc2
5893 builtin and then its argument prototype would still apply. */
5894char gethostbyname (); 6131char gethostbyname ();
5895int 6132int
5896main () 6133main ()
5897{ 6134{
5898gethostbyname (); 6135return gethostbyname ();
5899 ; 6136 ;
5900 return 0; 6137 return 0;
5901} 6138}
5902_ACEOF 6139_ACEOF
5903rm -f conftest.$ac_objext conftest$ac_exeext 6140if ac_fn_cxx_try_link "$LINENO"; then :
5904if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5905 (eval $ac_link) 2>conftest.er1
5906 ac_status=$?
5907 grep -v '^ *+' conftest.er1 >conftest.err
5908 rm -f conftest.er1
5909 cat conftest.err >&5
5910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911 (exit $ac_status); } &&
5912 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5914 (eval $ac_try) 2>&5
5915 ac_status=$?
5916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5917 (exit $ac_status); }; } &&
5918 { ac_try='test -s conftest$ac_exeext'
5919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5920 (eval $ac_try) 2>&5
5921 ac_status=$?
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); }; }; then
5924 ac_cv_lib_nsl_gethostbyname=yes 6141 ac_cv_lib_bsd_gethostbyname=yes
5925else 6142else
5926 echo "$as_me: failed program was:" >&5
5927sed 's/^/| /' conftest.$ac_ext >&5
5928
5929ac_cv_lib_nsl_gethostbyname=no 6143 ac_cv_lib_bsd_gethostbyname=no
5930fi 6144fi
5931rm -f conftest.err conftest.$ac_objext \ 6145rm -f core conftest.err conftest.$ac_objext \
5932 conftest$ac_exeext conftest.$ac_ext 6146 conftest$ac_exeext conftest.$ac_ext
5933LIBS=$ac_check_lib_save_LIBS 6147LIBS=$ac_check_lib_save_LIBS
5934fi 6148fi
5935echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
5936echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
5937if test $ac_cv_lib_nsl_gethostbyname = yes; then
5938 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
5939fi
5940
5941 if test $ac_cv_lib_nsl_gethostbyname = no; then
5942 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
5943echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
5944if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
5945 echo $ECHO_N "(cached) $ECHO_C" >&6
5946else
5947 ac_check_lib_save_LIBS=$LIBS
5948LIBS="-lbsd $LIBS"
5949cat >conftest.$ac_ext <<_ACEOF
5950/* confdefs.h. */
5951_ACEOF
5952cat confdefs.h >>conftest.$ac_ext
5953cat >>conftest.$ac_ext <<_ACEOF
5954/* end confdefs.h. */
5955
5956/* Override any gcc2 internal prototype to avoid an error. */
5957#ifdef __cplusplus
5958extern "C"
5959#endif
5960/* We use char because int might match the return type of a gcc2
5961 builtin and then its argument prototype would still apply. */
5962char gethostbyname ();
5963int
5964main ()
5965{
5966gethostbyname ();
5967 ;
5968 return 0;
5969}
5970_ACEOF
5971rm -f conftest.$ac_objext conftest$ac_exeext
5972if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5973 (eval $ac_link) 2>conftest.er1
5974 ac_status=$?
5975 grep -v '^ *+' conftest.er1 >conftest.err
5976 rm -f conftest.er1
5977 cat conftest.err >&5
5978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5979 (exit $ac_status); } &&
5980 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5982 (eval $ac_try) 2>&5
5983 ac_status=$?
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); }; } &&
5986 { ac_try='test -s conftest$ac_exeext'
5987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5988 (eval $ac_try) 2>&5
5989 ac_status=$?
5990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); }; }; then
5992 ac_cv_lib_bsd_gethostbyname=yes
5993else
5994 echo "$as_me: failed program was:" >&5
5995sed 's/^/| /' conftest.$ac_ext >&5
5996
5997ac_cv_lib_bsd_gethostbyname=no
5998fi
5999rm -f conftest.err conftest.$ac_objext \
6000 conftest$ac_exeext conftest.$ac_ext
6001LIBS=$ac_check_lib_save_LIBS
6002fi
6003echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 6149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
6004echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6 6150$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
6005if test $ac_cv_lib_bsd_gethostbyname = yes; then 6151if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
6006 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 6152 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
6007fi 6153fi
6008 6154
6009 fi 6155 fi
6010 fi 6156 fi
6014 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 6160 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
6015 # on later versions), says Simon Leinen: it contains gethostby* 6161 # on later versions), says Simon Leinen: it contains gethostby*
6016 # variants that don't use the name server (or something). -lsocket 6162 # variants that don't use the name server (or something). -lsocket
6017 # must be given before -lnsl if both are needed. We assume that 6163 # must be given before -lnsl if both are needed. We assume that
6018 # if connect needs -lnsl, so does gethostbyname. 6164 # if connect needs -lnsl, so does gethostbyname.
6019 echo "$as_me:$LINENO: checking for connect" >&5 6165 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
6020echo $ECHO_N "checking for connect... $ECHO_C" >&6 6166if test "x$ac_cv_func_connect" = xyes; then :
6167
6168fi
6169
6021if test "${ac_cv_func_connect+set}" = set; then 6170 if test $ac_cv_func_connect = no; then
6022 echo $ECHO_N "(cached) $ECHO_C" >&6 6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
6172$as_echo_n "checking for connect in -lsocket... " >&6; }
6173if ${ac_cv_lib_socket_connect+:} false; then :
6174 $as_echo_n "(cached) " >&6
6023else 6175else
6024 cat >conftest.$ac_ext <<_ACEOF 6176 ac_check_lib_save_LIBS=$LIBS
6025/* confdefs.h. */ 6177LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
6026_ACEOF
6027cat confdefs.h >>conftest.$ac_ext 6178cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6028cat >>conftest.$ac_ext <<_ACEOF
6029/* end confdefs.h. */ 6179/* end confdefs.h. */
6030/* Define connect to an innocuous variant, in case <limits.h> declares connect.
6031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6032#define connect innocuous_connect
6033 6180
6034/* System header to define __stub macros and hopefully few prototypes,
6035 which can conflict with char connect (); below.
6036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6037 <limits.h> exists even on freestanding compilers. */
6038
6039#ifdef __STDC__
6040# include <limits.h>
6041#else
6042# include <assert.h>
6043#endif
6044
6045#undef connect
6046
6047/* Override any gcc2 internal prototype to avoid an error. */ 6181/* Override any GCC internal prototype to avoid an error.
6182 Use char because int might match the return type of a GCC
6183 builtin and then its argument prototype would still apply. */
6048#ifdef __cplusplus 6184#ifdef __cplusplus
6049extern "C" 6185extern "C"
6050{
6051#endif 6186#endif
6052/* We use char because int might match the return type of a gcc2
6053 builtin and then its argument prototype would still apply. */
6054char connect (); 6187char connect ();
6055/* The GNU C library defines this for functions which it implements
6056 to always fail with ENOSYS. Some functions are actually named
6057 something starting with __ and the normal name is an alias. */
6058#if defined (__stub_connect) || defined (__stub___connect)
6059choke me
6060#else
6061char (*f) () = connect;
6062#endif
6063#ifdef __cplusplus
6064}
6065#endif
6066
6067int 6188int
6068main () 6189main ()
6069{ 6190{
6070return f != connect; 6191return connect ();
6071 ; 6192 ;
6072 return 0; 6193 return 0;
6073} 6194}
6074_ACEOF 6195_ACEOF
6075rm -f conftest.$ac_objext conftest$ac_exeext 6196if ac_fn_cxx_try_link "$LINENO"; then :
6076if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6077 (eval $ac_link) 2>conftest.er1
6078 ac_status=$?
6079 grep -v '^ *+' conftest.er1 >conftest.err
6080 rm -f conftest.er1
6081 cat conftest.err >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); } &&
6084 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6086 (eval $ac_try) 2>&5
6087 ac_status=$?
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); }; } &&
6090 { ac_try='test -s conftest$ac_exeext'
6091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6092 (eval $ac_try) 2>&5
6093 ac_status=$?
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; }; then
6096 ac_cv_func_connect=yes 6197 ac_cv_lib_socket_connect=yes
6097else 6198else
6098 echo "$as_me: failed program was:" >&5 6199 ac_cv_lib_socket_connect=no
6099sed 's/^/| /' conftest.$ac_ext >&5
6100
6101ac_cv_func_connect=no
6102fi 6200fi
6103rm -f conftest.err conftest.$ac_objext \ 6201rm -f core conftest.err conftest.$ac_objext \
6104 conftest$ac_exeext conftest.$ac_ext 6202 conftest$ac_exeext conftest.$ac_ext
6203LIBS=$ac_check_lib_save_LIBS
6105fi 6204fi
6106echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 6205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
6107echo "${ECHO_T}$ac_cv_func_connect" >&6 6206$as_echo "$ac_cv_lib_socket_connect" >&6; }
6207if test "x$ac_cv_lib_socket_connect" = xyes; then :
6208 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
6209fi
6108 6210
6211 fi
6212
6213 # Guillermo Gomez says -lposix is necessary on A/UX.
6214 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
6215if test "x$ac_cv_func_remove" = xyes; then :
6216
6217fi
6218
6109 if test $ac_cv_func_connect = no; then 6219 if test $ac_cv_func_remove = no; then
6110 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
6111echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6 6221$as_echo_n "checking for remove in -lposix... " >&6; }
6112if test "${ac_cv_lib_socket_connect+set}" = set; then 6222if ${ac_cv_lib_posix_remove+:} false; then :
6113 echo $ECHO_N "(cached) $ECHO_C" >&6 6223 $as_echo_n "(cached) " >&6
6114else 6224else
6115 ac_check_lib_save_LIBS=$LIBS 6225 ac_check_lib_save_LIBS=$LIBS
6116LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 6226LIBS="-lposix $LIBS"
6117cat >conftest.$ac_ext <<_ACEOF
6118/* confdefs.h. */
6119_ACEOF
6120cat confdefs.h >>conftest.$ac_ext 6227cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6121cat >>conftest.$ac_ext <<_ACEOF
6122/* end confdefs.h. */ 6228/* end confdefs.h. */
6123 6229
6124/* Override any gcc2 internal prototype to avoid an error. */ 6230/* Override any GCC internal prototype to avoid an error.
6231 Use char because int might match the return type of a GCC
6232 builtin and then its argument prototype would still apply. */
6125#ifdef __cplusplus 6233#ifdef __cplusplus
6126extern "C" 6234extern "C"
6127#endif 6235#endif
6128/* We use char because int might match the return type of a gcc2 6236char remove ();
6129 builtin and then its argument prototype would still apply. */
6130char connect ();
6131int 6237int
6132main () 6238main ()
6133{ 6239{
6134connect (); 6240return remove ();
6135 ; 6241 ;
6136 return 0; 6242 return 0;
6137} 6243}
6138_ACEOF 6244_ACEOF
6139rm -f conftest.$ac_objext conftest$ac_exeext 6245if ac_fn_cxx_try_link "$LINENO"; then :
6140if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6246 ac_cv_lib_posix_remove=yes
6141 (eval $ac_link) 2>conftest.er1
6142 ac_status=$?
6143 grep -v '^ *+' conftest.er1 >conftest.err
6144 rm -f conftest.er1
6145 cat conftest.err >&5
6146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6147 (exit $ac_status); } &&
6148 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6150 (eval $ac_try) 2>&5
6151 ac_status=$?
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); }; } &&
6154 { ac_try='test -s conftest$ac_exeext'
6155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6156 (eval $ac_try) 2>&5
6157 ac_status=$?
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); }; }; then
6160 ac_cv_lib_socket_connect=yes
6161else 6247else
6162 echo "$as_me: failed program was:" >&5 6248 ac_cv_lib_posix_remove=no
6163sed 's/^/| /' conftest.$ac_ext >&5
6164
6165ac_cv_lib_socket_connect=no
6166fi 6249fi
6167rm -f conftest.err conftest.$ac_objext \ 6250rm -f core conftest.err conftest.$ac_objext \
6168 conftest$ac_exeext conftest.$ac_ext 6251 conftest$ac_exeext conftest.$ac_ext
6169LIBS=$ac_check_lib_save_LIBS 6252LIBS=$ac_check_lib_save_LIBS
6170fi 6253fi
6171echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 6254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
6172echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6 6255$as_echo "$ac_cv_lib_posix_remove" >&6; }
6173if test $ac_cv_lib_socket_connect = yes; then 6256if test "x$ac_cv_lib_posix_remove" = xyes; then :
6174 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 6257 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6175fi 6258fi
6176 6259
6177 fi 6260 fi
6178 6261
6179 # Guillermo Gomez says -lposix is necessary on A/UX. 6262 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6180 echo "$as_me:$LINENO: checking for remove" >&5 6263 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
6181echo $ECHO_N "checking for remove... $ECHO_C" >&6 6264if test "x$ac_cv_func_shmat" = xyes; then :
6182if test "${ac_cv_func_remove+set}" = set; then 6265
6183 echo $ECHO_N "(cached) $ECHO_C" >&6 6266fi
6267
6268 if test $ac_cv_func_shmat = no; then
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
6270$as_echo_n "checking for shmat in -lipc... " >&6; }
6271if ${ac_cv_lib_ipc_shmat+:} false; then :
6272 $as_echo_n "(cached) " >&6
6184else 6273else
6185 cat >conftest.$ac_ext <<_ACEOF 6274 ac_check_lib_save_LIBS=$LIBS
6186/* confdefs.h. */ 6275LIBS="-lipc $LIBS"
6187_ACEOF
6188cat confdefs.h >>conftest.$ac_ext 6276cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6189cat >>conftest.$ac_ext <<_ACEOF
6190/* end confdefs.h. */ 6277/* end confdefs.h. */
6191/* Define remove to an innocuous variant, in case <limits.h> declares remove.
6192 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6193#define remove innocuous_remove
6194 6278
6195/* System header to define __stub macros and hopefully few prototypes,
6196 which can conflict with char remove (); below.
6197 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6198 <limits.h> exists even on freestanding compilers. */
6199
6200#ifdef __STDC__
6201# include <limits.h>
6202#else
6203# include <assert.h>
6204#endif
6205
6206#undef remove
6207
6208/* Override any gcc2 internal prototype to avoid an error. */ 6279/* Override any GCC internal prototype to avoid an error.
6280 Use char because int might match the return type of a GCC
6281 builtin and then its argument prototype would still apply. */
6209#ifdef __cplusplus 6282#ifdef __cplusplus
6210extern "C" 6283extern "C"
6211{
6212#endif 6284#endif
6213/* We use char because int might match the return type of a gcc2 6285char shmat ();
6214 builtin and then its argument prototype would still apply. */
6215char remove ();
6216/* The GNU C library defines this for functions which it implements
6217 to always fail with ENOSYS. Some functions are actually named
6218 something starting with __ and the normal name is an alias. */
6219#if defined (__stub_remove) || defined (__stub___remove)
6220choke me
6221#else
6222char (*f) () = remove;
6223#endif
6224#ifdef __cplusplus
6225}
6226#endif
6227
6228int 6286int
6229main () 6287main ()
6230{ 6288{
6231return f != remove; 6289return shmat ();
6232 ; 6290 ;
6233 return 0; 6291 return 0;
6234} 6292}
6235_ACEOF 6293_ACEOF
6236rm -f conftest.$ac_objext conftest$ac_exeext 6294if ac_fn_cxx_try_link "$LINENO"; then :
6237if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6295 ac_cv_lib_ipc_shmat=yes
6238 (eval $ac_link) 2>conftest.er1
6239 ac_status=$?
6240 grep -v '^ *+' conftest.er1 >conftest.err
6241 rm -f conftest.er1
6242 cat conftest.err >&5
6243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6244 (exit $ac_status); } &&
6245 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6247 (eval $ac_try) 2>&5
6248 ac_status=$?
6249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6250 (exit $ac_status); }; } &&
6251 { ac_try='test -s conftest$ac_exeext'
6252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6253 (eval $ac_try) 2>&5
6254 ac_status=$?
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); }; }; then
6257 ac_cv_func_remove=yes
6258else 6296else
6259 echo "$as_me: failed program was:" >&5 6297 ac_cv_lib_ipc_shmat=no
6260sed 's/^/| /' conftest.$ac_ext >&5
6261
6262ac_cv_func_remove=no
6263fi 6298fi
6264rm -f conftest.err conftest.$ac_objext \ 6299rm -f core conftest.err conftest.$ac_objext \
6265 conftest$ac_exeext conftest.$ac_ext 6300 conftest$ac_exeext conftest.$ac_ext
6266fi
6267echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
6268echo "${ECHO_T}$ac_cv_func_remove" >&6
6269
6270 if test $ac_cv_func_remove = no; then
6271 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
6272echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
6273if test "${ac_cv_lib_posix_remove+set}" = set; then
6274 echo $ECHO_N "(cached) $ECHO_C" >&6
6275else
6276 ac_check_lib_save_LIBS=$LIBS
6277LIBS="-lposix $LIBS"
6278cat >conftest.$ac_ext <<_ACEOF
6279/* confdefs.h. */
6280_ACEOF
6281cat confdefs.h >>conftest.$ac_ext
6282cat >>conftest.$ac_ext <<_ACEOF
6283/* end confdefs.h. */
6284
6285/* Override any gcc2 internal prototype to avoid an error. */
6286#ifdef __cplusplus
6287extern "C"
6288#endif
6289/* We use char because int might match the return type of a gcc2
6290 builtin and then its argument prototype would still apply. */
6291char remove ();
6292int
6293main ()
6294{
6295remove ();
6296 ;
6297 return 0;
6298}
6299_ACEOF
6300rm -f conftest.$ac_objext conftest$ac_exeext
6301if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6302 (eval $ac_link) 2>conftest.er1
6303 ac_status=$?
6304 grep -v '^ *+' conftest.er1 >conftest.err
6305 rm -f conftest.er1
6306 cat conftest.err >&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); } &&
6309 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6311 (eval $ac_try) 2>&5
6312 ac_status=$?
6313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6314 (exit $ac_status); }; } &&
6315 { ac_try='test -s conftest$ac_exeext'
6316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6317 (eval $ac_try) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }; }; then
6321 ac_cv_lib_posix_remove=yes
6322else
6323 echo "$as_me: failed program was:" >&5
6324sed 's/^/| /' conftest.$ac_ext >&5
6325
6326ac_cv_lib_posix_remove=no
6327fi
6328rm -f conftest.err conftest.$ac_objext \
6329 conftest$ac_exeext conftest.$ac_ext
6330LIBS=$ac_check_lib_save_LIBS 6301LIBS=$ac_check_lib_save_LIBS
6331fi 6302fi
6332echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
6333echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
6334if test $ac_cv_lib_posix_remove = yes; then
6335 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
6336fi
6337
6338 fi
6339
6340 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
6341 echo "$as_me:$LINENO: checking for shmat" >&5
6342echo $ECHO_N "checking for shmat... $ECHO_C" >&6
6343if test "${ac_cv_func_shmat+set}" = set; then
6344 echo $ECHO_N "(cached) $ECHO_C" >&6
6345else
6346 cat >conftest.$ac_ext <<_ACEOF
6347/* confdefs.h. */
6348_ACEOF
6349cat confdefs.h >>conftest.$ac_ext
6350cat >>conftest.$ac_ext <<_ACEOF
6351/* end confdefs.h. */
6352/* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
6353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
6354#define shmat innocuous_shmat
6355
6356/* System header to define __stub macros and hopefully few prototypes,
6357 which can conflict with char shmat (); below.
6358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6359 <limits.h> exists even on freestanding compilers. */
6360
6361#ifdef __STDC__
6362# include <limits.h>
6363#else
6364# include <assert.h>
6365#endif
6366
6367#undef shmat
6368
6369/* Override any gcc2 internal prototype to avoid an error. */
6370#ifdef __cplusplus
6371extern "C"
6372{
6373#endif
6374/* We use char because int might match the return type of a gcc2
6375 builtin and then its argument prototype would still apply. */
6376char shmat ();
6377/* The GNU C library defines this for functions which it implements
6378 to always fail with ENOSYS. Some functions are actually named
6379 something starting with __ and the normal name is an alias. */
6380#if defined (__stub_shmat) || defined (__stub___shmat)
6381choke me
6382#else
6383char (*f) () = shmat;
6384#endif
6385#ifdef __cplusplus
6386}
6387#endif
6388
6389int
6390main ()
6391{
6392return f != shmat;
6393 ;
6394 return 0;
6395}
6396_ACEOF
6397rm -f conftest.$ac_objext conftest$ac_exeext
6398if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6399 (eval $ac_link) 2>conftest.er1
6400 ac_status=$?
6401 grep -v '^ *+' conftest.er1 >conftest.err
6402 rm -f conftest.er1
6403 cat conftest.err >&5
6404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6405 (exit $ac_status); } &&
6406 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6408 (eval $ac_try) 2>&5
6409 ac_status=$?
6410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6411 (exit $ac_status); }; } &&
6412 { ac_try='test -s conftest$ac_exeext'
6413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6414 (eval $ac_try) 2>&5
6415 ac_status=$?
6416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417 (exit $ac_status); }; }; then
6418 ac_cv_func_shmat=yes
6419else
6420 echo "$as_me: failed program was:" >&5
6421sed 's/^/| /' conftest.$ac_ext >&5
6422
6423ac_cv_func_shmat=no
6424fi
6425rm -f conftest.err conftest.$ac_objext \
6426 conftest$ac_exeext conftest.$ac_ext
6427fi
6428echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
6429echo "${ECHO_T}$ac_cv_func_shmat" >&6
6430
6431 if test $ac_cv_func_shmat = no; then
6432 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
6433echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
6434if test "${ac_cv_lib_ipc_shmat+set}" = set; then
6435 echo $ECHO_N "(cached) $ECHO_C" >&6
6436else
6437 ac_check_lib_save_LIBS=$LIBS
6438LIBS="-lipc $LIBS"
6439cat >conftest.$ac_ext <<_ACEOF
6440/* confdefs.h. */
6441_ACEOF
6442cat confdefs.h >>conftest.$ac_ext
6443cat >>conftest.$ac_ext <<_ACEOF
6444/* end confdefs.h. */
6445
6446/* Override any gcc2 internal prototype to avoid an error. */
6447#ifdef __cplusplus
6448extern "C"
6449#endif
6450/* We use char because int might match the return type of a gcc2
6451 builtin and then its argument prototype would still apply. */
6452char shmat ();
6453int
6454main ()
6455{
6456shmat ();
6457 ;
6458 return 0;
6459}
6460_ACEOF
6461rm -f conftest.$ac_objext conftest$ac_exeext
6462if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6463 (eval $ac_link) 2>conftest.er1
6464 ac_status=$?
6465 grep -v '^ *+' conftest.er1 >conftest.err
6466 rm -f conftest.er1
6467 cat conftest.err >&5
6468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6469 (exit $ac_status); } &&
6470 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6472 (eval $ac_try) 2>&5
6473 ac_status=$?
6474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475 (exit $ac_status); }; } &&
6476 { ac_try='test -s conftest$ac_exeext'
6477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6478 (eval $ac_try) 2>&5
6479 ac_status=$?
6480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; }; then
6482 ac_cv_lib_ipc_shmat=yes
6483else
6484 echo "$as_me: failed program was:" >&5
6485sed 's/^/| /' conftest.$ac_ext >&5
6486
6487ac_cv_lib_ipc_shmat=no
6488fi
6489rm -f conftest.err conftest.$ac_objext \
6490 conftest$ac_exeext conftest.$ac_ext
6491LIBS=$ac_check_lib_save_LIBS
6492fi
6493echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 6303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
6494echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6 6304$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
6495if test $ac_cv_lib_ipc_shmat = yes; then 6305if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
6496 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 6306 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
6497fi 6307fi
6498 6308
6499 fi 6309 fi
6500 fi 6310 fi
6506 # check for ICE first), but we must link in the order -lSM -lICE or 6316 # check for ICE first), but we must link in the order -lSM -lICE or
6507 # we get undefined symbols. So assume we have SM if we have ICE. 6317 # we get undefined symbols. So assume we have SM if we have ICE.
6508 # These have to be linked with before -lX11, unlike the other 6318 # These have to be linked with before -lX11, unlike the other
6509 # libraries we check for below, so use a different variable. 6319 # libraries we check for below, so use a different variable.
6510 # John Interrante, Karl Berry 6320 # John Interrante, Karl Berry
6511 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 6321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
6512echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6 6322$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
6513if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then 6323if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
6514 echo $ECHO_N "(cached) $ECHO_C" >&6 6324 $as_echo_n "(cached) " >&6
6515else 6325else
6516 ac_check_lib_save_LIBS=$LIBS 6326 ac_check_lib_save_LIBS=$LIBS
6517LIBS="-lICE $X_EXTRA_LIBS $LIBS" 6327LIBS="-lICE $X_EXTRA_LIBS $LIBS"
6518cat >conftest.$ac_ext <<_ACEOF
6519/* confdefs.h. */
6520_ACEOF
6521cat confdefs.h >>conftest.$ac_ext 6328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6522cat >>conftest.$ac_ext <<_ACEOF
6523/* end confdefs.h. */ 6329/* end confdefs.h. */
6524 6330
6525/* Override any gcc2 internal prototype to avoid an error. */ 6331/* Override any GCC internal prototype to avoid an error.
6332 Use char because int might match the return type of a GCC
6333 builtin and then its argument prototype would still apply. */
6526#ifdef __cplusplus 6334#ifdef __cplusplus
6527extern "C" 6335extern "C"
6528#endif 6336#endif
6529/* We use char because int might match the return type of a gcc2
6530 builtin and then its argument prototype would still apply. */
6531char IceConnectionNumber (); 6337char IceConnectionNumber ();
6532int 6338int
6533main () 6339main ()
6534{ 6340{
6535IceConnectionNumber (); 6341return IceConnectionNumber ();
6536 ; 6342 ;
6537 return 0; 6343 return 0;
6538} 6344}
6539_ACEOF 6345_ACEOF
6540rm -f conftest.$ac_objext conftest$ac_exeext 6346if ac_fn_cxx_try_link "$LINENO"; then :
6541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6542 (eval $ac_link) 2>conftest.er1
6543 ac_status=$?
6544 grep -v '^ *+' conftest.er1 >conftest.err
6545 rm -f conftest.er1
6546 cat conftest.err >&5
6547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6548 (exit $ac_status); } &&
6549 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6550 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6551 (eval $ac_try) 2>&5
6552 ac_status=$?
6553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6554 (exit $ac_status); }; } &&
6555 { ac_try='test -s conftest$ac_exeext'
6556 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6557 (eval $ac_try) 2>&5
6558 ac_status=$?
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); }; }; then
6561 ac_cv_lib_ICE_IceConnectionNumber=yes 6347 ac_cv_lib_ICE_IceConnectionNumber=yes
6562else 6348else
6563 echo "$as_me: failed program was:" >&5
6564sed 's/^/| /' conftest.$ac_ext >&5
6565
6566ac_cv_lib_ICE_IceConnectionNumber=no 6349 ac_cv_lib_ICE_IceConnectionNumber=no
6567fi 6350fi
6568rm -f conftest.err conftest.$ac_objext \ 6351rm -f core conftest.err conftest.$ac_objext \
6569 conftest$ac_exeext conftest.$ac_ext 6352 conftest$ac_exeext conftest.$ac_ext
6570LIBS=$ac_check_lib_save_LIBS 6353LIBS=$ac_check_lib_save_LIBS
6571fi 6354fi
6572echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 6355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
6573echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6 6356$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
6574if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then 6357if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
6575 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 6358 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
6576fi 6359fi
6577 6360
6578 LDFLAGS=$ac_save_LDFLAGS 6361 LDFLAGS=$ac_save_LDFLAGS
6579 6362
6580fi 6363fi
6581 6364
6582 6365
6583 6366if test -n "$ac_tool_prefix"; then
6584if test x$support_xpm = xyes; then 6367 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6585 6368set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6586 6369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6587 6370$as_echo_n "checking for $ac_word... " >&6; }
6588# Initialize some more variables set by options. 6371if ${ac_cv_path_PKG_CONFIG+:} false; then :
6589# The variables have the same names as the options, with 6372 $as_echo_n "(cached) " >&6
6590# dashes changed to underlines.
6591
6592# If we find XPM, set shell vars xpm_includes and xpm_libraries to the
6593# paths, otherwise set no_xpm=yes.
6594# Uses ac_ vars as temps to allow command line to override cache and checks.
6595echo "$as_me:$LINENO: checking for libXpm" >&5
6596echo $ECHO_N "checking for libXpm... $ECHO_C" >&6
6597
6598
6599# Check whether --with-xpm_includes or --without-xpm_includes was given.
6600if test "${with_xpm_includes+set}" = set; then
6601 withval="$with_xpm_includes"
6602 xpm_includes="$withval"
6603else 6373else
6604 xpm_includes=NO 6374 case $PKG_CONFIG in
6375 [\\/]* | ?:[\\/]*)
6376 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6377 ;;
6378 *)
6379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6380for as_dir in $PATH
6381do
6382 IFS=$as_save_IFS
6383 test -z "$as_dir" && as_dir=.
6384 for ac_exec_ext in '' $ac_executable_extensions; do
6385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6386 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6388 break 2
6389 fi
6390done
6391 done
6392IFS=$as_save_IFS
6393
6394 ;;
6395esac
6605fi; 6396fi
6606 6397PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6607# Check whether --with-xpm_library or --without-xpm_library was given. 6398if test -n "$PKG_CONFIG"; then
6608if test "${with_xpm_library+set}" = set; then 6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6609 withval="$with_xpm_library" 6400$as_echo "$PKG_CONFIG" >&6; }
6610 xpm_libraries="$withval"
6611else 6401else
6612 xpm_libraries=NO 6402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6403$as_echo "no" >&6; }
6613fi; 6404fi
6614 6405
6615# --without-xpm overrides everything else, but does not touch the cache.
6616 6406
6617# Check whether --with-xpm or --without-xpm was given.
6618if test "${with_xpm+set}" = set; then
6619 withval="$with_xpm"
6620
6621fi; 6407fi
6622if test "$with_xpm" = no; then 6408if test -z "$ac_cv_path_PKG_CONFIG"; then
6623 have_xpm=disabled 6409 ac_pt_PKG_CONFIG=$PKG_CONFIG
6410 # Extract the first word of "pkg-config", so it can be a program name with args.
6411set dummy pkg-config; ac_word=$2
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6413$as_echo_n "checking for $ac_word... " >&6; }
6414if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
6415 $as_echo_n "(cached) " >&6
6624else 6416else
6625 if test "${ac_cv_have_xpm+set}" = set; then 6417 case $ac_pt_PKG_CONFIG in
6626 echo $ECHO_N "(cached) $ECHO_C" >&6 6418 [\\/]* | ?:[\\/]*)
6627else 6419 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6420 ;;
6421 *)
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423for as_dir in $PATH
6424do
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6432 fi
6433done
6434 done
6435IFS=$as_save_IFS
6628 6436
6629 vt_xpm_include_X11=no 6437 ;;
6630 if test -n "$xpm_includes"; then 6438esac
6631 vt_xpm_includes=$xpm_includes 6439fi
6440ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6441if test -n "$ac_pt_PKG_CONFIG"; then
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6443$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6444else
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6446$as_echo "no" >&6; }
6447fi
6448
6449 if test "x$ac_pt_PKG_CONFIG" = x; then
6450 PKG_CONFIG="no"
6632 else 6451 else
6633 vt_xpm_includes=NO 6452 case $cross_compiling:$ac_tool_warned in
6453yes:)
6454{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6455$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6456ac_tool_warned=yes ;;
6457esac
6458 PKG_CONFIG=$ac_pt_PKG_CONFIG
6634 fi 6459 fi
6635 if test -n "$xpm_libraries"; then 6460else
6636 vt_xpm_libraries=$xpm_libraries 6461 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6462fi
6463
6464
6465image_lib=none
6466
6467PIXBUF_CFLAGS=
6468PIXBUF_LIBS=
6469
6470if test x$support_pixbuf = xyes; then
6471
6472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-pixbuf-2.0" >&5
6473$as_echo_n "checking for gdk-pixbuf-2.0... " >&6; }
6474 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
6475 PIXBUF_CFLAGS="`$PKG_CONFIG --cflags gdk-pixbuf-2.0`"
6476 PIXBUF_LIBS="`$PKG_CONFIG --libs gdk-pixbuf-2.0`"
6477
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6479$as_echo "ok" >&6; }
6480
6481 image_lib=gdk-pixbuf
6482
6483$as_echo "#define HAVE_PIXBUF 1" >>confdefs.h
6484
6485
6637 else 6486 else
6638 vt_xpm_libraries=NO 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6488$as_echo "no" >&6; }
6489 :
6639 fi 6490 fi
6640 6491
6641 if test "$vt_xpm_includes" = NO; then 6492fi
6642 # Guess where to find xpm.h
6643 6493
6644ac_save_CPPFLAGS="$CPPFLAGS" 6494
6495
6496
6497STARTUP_NOTIFICATION_CFLAGS=
6498STARTUP_NOTIFICATION_LIBS=
6499
6500if test x$support_startup_notification = xyes; then
6501
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstartup-notification-1.0" >&5
6503$as_echo_n "checking for libstartup-notification-1.0... " >&6; }
6504 if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then
6505 STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG --cflags libstartup-notification-1.0`"
6506 STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG --libs libstartup-notification-1.0`"
6507
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6509$as_echo "ok" >&6; }
6510
6511
6512$as_echo "#define HAVE_STARTUP_NOTIFICATION 1" >>confdefs.h
6513
6514
6515 else
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6517$as_echo "no" >&6; }
6518 :
6519 fi
6520
6521fi
6522
6523
6524
6525
6526if test x$support_frills = xyes; then
6527
6528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmu" >&5
6529$as_echo_n "checking for xmu... " >&6; }
6530 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xmu; then
6531 XMU_CFLAGS="`$PKG_CONFIG --cflags xmu`"
6532 XMU_LIBS="`$PKG_CONFIG --libs xmu`"
6533
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6535$as_echo "ok" >&6; }
6536
6537 X_LIBS="$XMU_LIBS $X_LIBS"
6645CPPFLAGS="$CPPFLAGS $X_CFLAGS" 6538 CPPFLAGS="$CPPFLAGS $XMU_CFLAGS"
6646 6539
6647 # First, try using that file with no special directory specified. 6540$as_echo "#define HAVE_XMU 1" >>confdefs.h
6648cat >conftest.$ac_ext <<_ACEOF 6541
6649/* confdefs.h. */ 6542
6543 else
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6545$as_echo "no" >&6; }
6546 :
6547 fi
6548
6549fi
6550
6551for ac_header in \
6552 sys/byteorder.h \
6553 sys/ioctl.h \
6554 sys/sockio.h \
6555 sys/strredir.h \
6556 stdint.h \
6557 wchar.h \
6558
6559do :
6560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6561ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6562if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6563 cat >>confdefs.h <<_ACEOF
6564#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6650_ACEOF 6565_ACEOF
6566
6567fi
6568
6569done
6570
6571
6572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XLIB_ILLEGAL_ACCESS" >&5
6573$as_echo_n "checking for XLIB_ILLEGAL_ACCESS... " >&6; }
6574if ${rxvt_cv_xlib_illegal_access+:} false; then :
6575 $as_echo_n "(cached) " >&6
6576else
6651cat confdefs.h >>conftest.$ac_ext 6577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652cat >>conftest.$ac_ext <<_ACEOF
6653/* end confdefs.h. */ 6578/* end confdefs.h. */
6579
6580#define XLIB_ILLEGAL_ACCESS
6654#include <X11/xpm.h> 6581#include <X11/Xlib.h>
6655_ACEOF
6656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6658 ac_status=$?
6659 grep -v '^ *+' conftest.er1 >conftest.err
6660 rm -f conftest.er1
6661 cat conftest.err >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } >/dev/null; then
6664 if test -s conftest.err; then
6665 ac_cpp_err=$ac_cxx_preproc_warn_flag
6666 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6667 else
6668 ac_cpp_err=
6669 fi
6670else
6671 ac_cpp_err=yes
6672fi
6673if test -z "$ac_cpp_err"; then
6674 # We can compile using X headers with no special include directory.
6675vt_xpm_includes=
6676vt_xpm_include_X11=yes
6677else
6678 echo "$as_me: failed program was:" >&5
6679sed 's/^/| /' conftest.$ac_ext >&5
6680
6681 CPPFLAGS="$ac_save_CPPFLAGS"
6682# Look for the header file in a standard set of common directories.
6683 for ac_dir in \
6684 /usr/X11/include \
6685 /usr/X11R6/include \
6686 /usr/X11R5/include \
6687 /usr/X11R4/include \
6688 \
6689 /usr/include/X11 \
6690 /usr/include/X11R6 \
6691 /usr/include/X11R5 \
6692 /usr/include/X11R4 \
6693 \
6694 /usr/local/X11/include \
6695 /usr/local/X11R6/include \
6696 /usr/local/X11R5/include \
6697 /usr/local/X11R4/include \
6698 \
6699 /usr/local/include/X11 \
6700 /usr/local/include/X11R6 \
6701 /usr/local/include/X11R5 \
6702 /usr/local/include/X11R4 \
6703 \
6704 /usr/X386/include \
6705 /usr/x386/include \
6706 /usr/XFree86/include/X11 \
6707 \
6708 /usr/include \
6709 /usr/local/include \
6710 /usr/unsupported/include \
6711 /usr/athena/include \
6712 /usr/local/x11r5/include \
6713 /usr/lpp/Xamples/include \
6714 \
6715 /usr/openwin/include \
6716 /usr/openwin/share/include \
6717 ; \
6718 do
6719 if test -r "$ac_dir/X11/xpm.h"; then
6720 vt_xpm_includes="$ac_dir"
6721 vt_xpm_include_X11=yes
6722 break
6723 else
6724 if test -r "$ac_dir/xpm.h"; then
6725 vt_xpm_includes=$ac_dir
6726 break
6727 fi
6728 fi
6729 done
6730fi
6731rm -f conftest.err conftest.$ac_ext
6732fi
6733
6734if test "$vt_xpm_libraries" = NO; then
6735 # Check for the libraries.
6736
6737 # See if we find them without any special options.
6738 # Don't add to $LIBS permanently.
6739 ac_save_LIBS="$LIBS"
6740 LIBS="$LIBS $X_LIBS -lXpm -lX11"
6741cat >conftest.$ac_ext <<_ACEOF
6742/* confdefs.h. */
6743_ACEOF
6744cat confdefs.h >>conftest.$ac_ext
6745cat >>conftest.$ac_ext <<_ACEOF
6746/* end confdefs.h. */
6747 6582
6748int 6583int
6749main () 6584main ()
6750{ 6585{
6751XpmReadFileToPixmap() 6586
6587 Display *dpy;
6588 dpy->xdefaults = (char *)0;
6589
6752 ; 6590 ;
6753 return 0; 6591 return 0;
6754} 6592}
6755_ACEOF 6593_ACEOF
6756rm -f conftest.$ac_objext conftest$ac_exeext 6594if ac_fn_cxx_try_compile "$LINENO"; then :
6757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6595 rxvt_cv_xlib_illegal_access=yes
6758 (eval $ac_link) 2>conftest.er1
6759 ac_status=$?
6760 grep -v '^ *+' conftest.er1 >conftest.err
6761 rm -f conftest.er1
6762 cat conftest.err >&5
6763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6764 (exit $ac_status); } &&
6765 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6766 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6767 (eval $ac_try) 2>&5
6768 ac_status=$?
6769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6770 (exit $ac_status); }; } &&
6771 { ac_try='test -s conftest$ac_exeext'
6772 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6773 (eval $ac_try) 2>&5
6774 ac_status=$?
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 LIBS="$ac_save_LIBS"
6778# We can link libXpm with no special library path.
6779vt_xpm_libraries=
6780else
6781 echo "$as_me: failed program was:" >&5
6782sed 's/^/| /' conftest.$ac_ext >&5
6783
6784LIBS="$ac_save_LIBS"
6785# First see if replacing the include by lib works.
6786for ac_dir in \
6787 `echo "$vt_xpm_includes" | sed 's,include/X11,lib,;s,include,lib,'` \
6788 /usr/X11/lib \
6789 /usr/X11R6/lib \
6790 /usr/X11R5/lib \
6791 /usr/X11R4/lib \
6792 \
6793 /usr/lib/X11 \
6794 /usr/lib/X11R6 \
6795 /usr/lib/X11R5 \
6796 /usr/lib/X11R4 \
6797 \
6798 /usr/local/X11/lib \
6799 /usr/local/X11R6/lib \
6800 /usr/local/X11R5/lib \
6801 /usr/local/X11R4/lib \
6802 \
6803 /usr/local/lib/X11 \
6804 /usr/local/lib/X11R6 \
6805 /usr/local/lib/X11R5 \
6806 /usr/local/lib/X11R4 \
6807 \
6808 /usr/X386/lib \
6809 /usr/x386/lib \
6810 /usr/XFree86/lib/X11 \
6811 \
6812 /usr/lib \
6813 /usr/local/lib \
6814 /usr/unsupported/lib \
6815 /usr/athena/lib \
6816 /usr/local/x11r5/lib \
6817 /usr/lpp/Xamples/lib \
6818 \
6819 /usr/openwin/lib \
6820 /usr/openwin/share/lib \
6821 ; \
6822do
6823 for ac_extension in a so sl; do
6824 if test -r $ac_dir/libXpm.$ac_extension; then
6825 vt_xpm_libraries=$ac_dir
6826 break 2
6827 fi
6828 done
6829done
6830fi
6831rm -f conftest.err conftest.$ac_objext \
6832 conftest$ac_exeext conftest.$ac_ext
6833fi
6834
6835
6836 if test "$vt_xpm_includes" = NO -o "$vt_xpm_libraries" = NO; then
6837 ac_cv_have_xpm="have_xpm=no"
6838 else 6596else
6839 ac_cv_have_xpm="have_xpm=yes \ 6597 rxvt_cv_xlib_illegal_access=no
6840 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6841 vt_xpm_include_X11=$vt_xpm_include_X11"
6842 fi
6843fi
6844 eval "$ac_cv_have_xpm"
6845fi
6846 6598
6847if test "$have_xpm" != yes; then 6599fi
6848 echo "$as_me:$LINENO: result: $have_xpm" >&5 6600rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6849echo "${ECHO_T}$have_xpm" >&6 6601fi
6850 no_xpm=yes 6602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_xlib_illegal_access" >&5
6851else 6603$as_echo "$rxvt_cv_xlib_illegal_access" >&6; }
6852 if test "$xpm_includes" != NO; then 6604if test x$rxvt_cv_xlib_illegal_access = xyes; then
6853 if test "$xpm_includes" = "$vt_xpm_includes"; then 6605
6854 if test -r "$xpm_includes/X11/xpm.h"; then 6606$as_echo "#define XLIB_ILLEGAL_ACCESS 1" >>confdefs.h
6855 vt_xpm_include_X11=yes 6607
6856 fi 6608fi
6857 else 6609
6858 vt_xpm_include_X11=no 6610ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
6859 if test -z "$xpm_includes"; then 6611if test "x$ac_cv_type_mode_t" = xyes; then :
6860 cat >conftest.$ac_ext <<_ACEOF 6612
6861/* confdefs.h. */
6862_ACEOF
6863cat confdefs.h >>conftest.$ac_ext
6864cat >>conftest.$ac_ext <<_ACEOF
6865/* end confdefs.h. */
6866#include <X11/xpm.h>
6867_ACEOF
6868if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6869 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6870 ac_status=$?
6871 grep -v '^ *+' conftest.er1 >conftest.err
6872 rm -f conftest.er1
6873 cat conftest.err >&5
6874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6875 (exit $ac_status); } >/dev/null; then
6876 if test -s conftest.err; then
6877 ac_cpp_err=$ac_cxx_preproc_warn_flag
6878 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6879 else 6613else
6880 ac_cpp_err=
6881 fi
6882else
6883 ac_cpp_err=yes
6884fi
6885if test -z "$ac_cpp_err"; then
6886 vt_xpm_include_X11=yes
6887else
6888 echo "$as_me: failed program was:" >&5
6889sed 's/^/| /' conftest.$ac_ext >&5
6890 6614
6891
6892fi
6893rm -f conftest.err conftest.$ac_ext
6894 else
6895 if test -r "$xpm_includes/X11/xpm.h"; then
6896 vt_xpm_include_X11=yes
6897 fi
6898 fi
6899 fi
6900 vt_xpm_includes=$xpm_includes
6901 fi
6902 if test "x$xpm_libraries" != xNO; then
6903 vt_xpm_libraries=$xpm_libraries
6904 fi
6905 # Update the cache value to reflect the command line values.
6906 ac_cv_have_xpm="have_xpm=yes \
6907 vt_xpm_includes=$vt_xpm_includes vt_xpm_libraries=$vt_xpm_libraries \
6908 vt_xpm_include_X11=$vt_xpm_include_X11"
6909 eval "$ac_cv_have_xpm"
6910 echo "$as_me:$LINENO: result: -I$vt_xpm_includes, -L$vt_xpm_libraries" >&5
6911echo "${ECHO_T}-I$vt_xpm_includes, -L$vt_xpm_libraries" >&6
6912 if test -n "$vt_xpm_includes"; then
6913 XPM_CPPFLAGS="-DHAVE_LIBXPM"
6914 fi
6915 if test -n "$vt_xpm_includes"; then
6916 XPM_CFLAGS="-I$vt_xpm_includes"
6917 fi
6918 XPM_LIBS="-lXpm"
6919 if test -n "$vt_xpm_libraries"; then
6920 XPM_LIBS="-L$vt_xpm_libraries $XPM_LIBS"
6921 fi
6922 if test "x$vt_xpm_include_X11" = xyes; then
6923
6924cat >>confdefs.h <<\_ACEOF 6615cat >>confdefs.h <<_ACEOF
6925#define XPM_INC_X11 1 6616#define mode_t int
6926_ACEOF 6617_ACEOF
6927 6618
6928 fi
6929fi 6619fi
6930 6620
6621ac_fn_cxx_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
6622if test "x$ac_cv_type_pid_t" = xyes; then :
6931 6623
6932
6933
6934
6935 if test x$no_xpm = xyes; then
6936 support_xpm=needsmanualspecification
6937 fi
6938fi
6939
6940echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6941echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
6942if test "${ac_cv_header_sys_wait_h+set}" = set; then
6943 echo $ECHO_N "(cached) $ECHO_C" >&6
6944else 6624else
6945 cat >conftest.$ac_ext <<_ACEOF 6625
6946/* confdefs.h. */ 6626cat >>confdefs.h <<_ACEOF
6627#define pid_t int
6947_ACEOF 6628_ACEOF
6629
6630fi
6631
6632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
6633$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
6634if ${ac_cv_type_uid_t+:} false; then :
6635 $as_echo_n "(cached) " >&6
6636else
6948cat confdefs.h >>conftest.$ac_ext 6637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949cat >>conftest.$ac_ext <<_ACEOF
6950/* end confdefs.h. */ 6638/* end confdefs.h. */
6951#include <sys/types.h> 6639#include <sys/types.h>
6952#include <sys/wait.h>
6953#ifndef WEXITSTATUS
6954# define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
6955#endif
6956#ifndef WIFEXITED
6957# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6958#endif
6959
6960int
6961main ()
6962{
6963 int s;
6964 wait (&s);
6965 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6966 ;
6967 return 0;
6968}
6969_ACEOF
6970rm -f conftest.$ac_objext
6971if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6972 (eval $ac_compile) 2>conftest.er1
6973 ac_status=$?
6974 grep -v '^ *+' conftest.er1 >conftest.err
6975 rm -f conftest.er1
6976 cat conftest.err >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } &&
6979 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6981 (eval $ac_try) 2>&5
6982 ac_status=$?
6983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6984 (exit $ac_status); }; } &&
6985 { ac_try='test -s conftest.$ac_objext'
6986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6987 (eval $ac_try) 2>&5
6988 ac_status=$?
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); }; }; then
6991 ac_cv_header_sys_wait_h=yes
6992else
6993 echo "$as_me: failed program was:" >&5
6994sed 's/^/| /' conftest.$ac_ext >&5
6995
6996ac_cv_header_sys_wait_h=no
6997fi
6998rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6999fi
7000echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7001echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
7002if test $ac_cv_header_sys_wait_h = yes; then
7003
7004cat >>confdefs.h <<\_ACEOF
7005#define HAVE_SYS_WAIT_H 1
7006_ACEOF
7007
7008fi
7009
7010echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7011echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
7012if test "${ac_cv_header_stdc+set}" = set; then
7013 echo $ECHO_N "(cached) $ECHO_C" >&6
7014else
7015 cat >conftest.$ac_ext <<_ACEOF
7016/* confdefs.h. */
7017_ACEOF
7018cat confdefs.h >>conftest.$ac_ext
7019cat >>conftest.$ac_ext <<_ACEOF
7020/* end confdefs.h. */
7021#include <stdlib.h>
7022#include <stdarg.h>
7023#include <string.h>
7024#include <float.h>
7025
7026int
7027main ()
7028{
7029
7030 ;
7031 return 0;
7032}
7033_ACEOF
7034rm -f conftest.$ac_objext
7035if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7036 (eval $ac_compile) 2>conftest.er1
7037 ac_status=$?
7038 grep -v '^ *+' conftest.er1 >conftest.err
7039 rm -f conftest.er1
7040 cat conftest.err >&5
7041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7042 (exit $ac_status); } &&
7043 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7045 (eval $ac_try) 2>&5
7046 ac_status=$?
7047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7048 (exit $ac_status); }; } &&
7049 { ac_try='test -s conftest.$ac_objext'
7050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7051 (eval $ac_try) 2>&5
7052 ac_status=$?
7053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7054 (exit $ac_status); }; }; then
7055 ac_cv_header_stdc=yes
7056else
7057 echo "$as_me: failed program was:" >&5
7058sed 's/^/| /' conftest.$ac_ext >&5
7059
7060ac_cv_header_stdc=no
7061fi
7062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7063
7064if test $ac_cv_header_stdc = yes; then
7065 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7066 cat >conftest.$ac_ext <<_ACEOF
7067/* confdefs.h. */
7068_ACEOF
7069cat confdefs.h >>conftest.$ac_ext
7070cat >>conftest.$ac_ext <<_ACEOF
7071/* end confdefs.h. */
7072#include <string.h>
7073 6640
7074_ACEOF 6641_ACEOF
7075if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6642if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7076 $EGREP "memchr" >/dev/null 2>&1; then 6643 $EGREP "uid_t" >/dev/null 2>&1; then :
7077 : 6644 ac_cv_type_uid_t=yes
7078else 6645else
7079 ac_cv_header_stdc=no 6646 ac_cv_type_uid_t=no
7080fi 6647fi
7081rm -f conftest* 6648rm -f conftest*
7082 6649
7083fi 6650fi
7084 6651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
6652$as_echo "$ac_cv_type_uid_t" >&6; }
7085if test $ac_cv_header_stdc = yes; then 6653if test $ac_cv_type_uid_t = no; then
7086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7087 cat >conftest.$ac_ext <<_ACEOF
7088/* confdefs.h. */
7089_ACEOF
7090cat confdefs.h >>conftest.$ac_ext
7091cat >>conftest.$ac_ext <<_ACEOF
7092/* end confdefs.h. */
7093#include <stdlib.h>
7094 6654
7095_ACEOF 6655$as_echo "#define uid_t int" >>confdefs.h
7096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7097 $EGREP "free" >/dev/null 2>&1; then
7098 :
7099else
7100 ac_cv_header_stdc=no
7101fi
7102rm -f conftest*
7103 6656
7104fi
7105 6657
7106if test $ac_cv_header_stdc = yes; then 6658$as_echo "#define gid_t int" >>confdefs.h
7107 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7108 if test "$cross_compiling" = yes; then
7109 :
7110else
7111 cat >conftest.$ac_ext <<_ACEOF
7112/* confdefs.h. */
7113_ACEOF
7114cat confdefs.h >>conftest.$ac_ext
7115cat >>conftest.$ac_ext <<_ACEOF
7116/* end confdefs.h. */
7117#include <ctype.h>
7118#if ((' ' & 0x0FF) == 0x020)
7119# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7120# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7121#else
7122# define ISLOWER(c) \
7123 (('a' <= (c) && (c) <= 'i') \
7124 || ('j' <= (c) && (c) <= 'r') \
7125 || ('s' <= (c) && (c) <= 'z'))
7126# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7127#endif
7128 6659
7129#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7130int
7131main ()
7132{
7133 int i;
7134 for (i = 0; i < 256; i++)
7135 if (XOR (islower (i), ISLOWER (i))
7136 || toupper (i) != TOUPPER (i))
7137 exit(2);
7138 exit (0);
7139}
7140_ACEOF
7141rm -f conftest$ac_exeext
7142if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7143 (eval $ac_link) 2>&5
7144 ac_status=$?
7145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7146 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 (eval $ac_try) 2>&5
7149 ac_status=$?
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
7152 :
7153else
7154 echo "$as_me: program exited with status $ac_status" >&5
7155echo "$as_me: failed program was:" >&5
7156sed 's/^/| /' conftest.$ac_ext >&5
7157
7158( exit $ac_status )
7159ac_cv_header_stdc=no
7160fi 6660fi
7161rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7162fi
7163fi
7164fi
7165echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7166echo "${ECHO_T}$ac_cv_header_stdc" >&6
7167if test $ac_cv_header_stdc = yes; then
7168 6661
6662ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
6663case $ac_cv_c_int16_t in #(
6664 no|yes) ;; #(
6665 *)
6666
7169cat >>confdefs.h <<\_ACEOF 6667cat >>confdefs.h <<_ACEOF
7170#define STDC_HEADERS 1 6668#define int16_t $ac_cv_c_int16_t
7171_ACEOF 6669_ACEOF
6670;;
6671esac
7172 6672
7173fi 6673ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
6674case $ac_cv_c_uint16_t in #(
6675 no|yes) ;; #(
6676 *)
7174 6677
7175# On IRIX 5.3, sys/types and inttypes.h are conflicting.
7176 6678
7177
7178
7179
7180
7181
7182
7183
7184
7185for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7186 inttypes.h stdint.h unistd.h
7187do
7188as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7189echo "$as_me:$LINENO: checking for $ac_header" >&5
7190echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7191if eval "test \"\${$as_ac_Header+set}\" = set"; then
7192 echo $ECHO_N "(cached) $ECHO_C" >&6
7193else
7194 cat >conftest.$ac_ext <<_ACEOF
7195/* confdefs.h. */
7196_ACEOF
7197cat confdefs.h >>conftest.$ac_ext
7198cat >>conftest.$ac_ext <<_ACEOF 6679cat >>confdefs.h <<_ACEOF
7199/* end confdefs.h. */ 6680#define uint16_t $ac_cv_c_uint16_t
7200$ac_includes_default
7201
7202#include <$ac_header>
7203_ACEOF 6681_ACEOF
7204rm -f conftest.$ac_objext 6682;;
7205if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 6683 esac
7206 (eval $ac_compile) 2>conftest.er1
7207 ac_status=$?
7208 grep -v '^ *+' conftest.er1 >conftest.err
7209 rm -f conftest.er1
7210 cat conftest.err >&5
7211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7212 (exit $ac_status); } &&
7213 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7215 (eval $ac_try) 2>&5
7216 ac_status=$?
7217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7218 (exit $ac_status); }; } &&
7219 { ac_try='test -s conftest.$ac_objext'
7220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7221 (eval $ac_try) 2>&5
7222 ac_status=$?
7223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7224 (exit $ac_status); }; }; then
7225 eval "$as_ac_Header=yes"
7226else
7227 echo "$as_me: failed program was:" >&5
7228sed 's/^/| /' conftest.$ac_ext >&5
7229 6684
7230eval "$as_ac_Header=no" 6685ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
7231fi 6686case $ac_cv_c_int32_t in #(
7232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6687 no|yes) ;; #(
7233fi 6688 *)
7234echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 6689
7235echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 6690cat >>confdefs.h <<_ACEOF
7236if test `eval echo '${'$as_ac_Header'}'` = yes; then 6691#define int32_t $ac_cv_c_int32_t
6692_ACEOF
6693;;
6694esac
6695
6696ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
6697case $ac_cv_c_uint32_t in #(
6698 no|yes) ;; #(
6699 *)
6700
6701$as_echo "#define _UINT32_T 1" >>confdefs.h
6702
6703
6704cat >>confdefs.h <<_ACEOF
6705#define uint32_t $ac_cv_c_uint32_t
6706_ACEOF
6707;;
6708 esac
6709
6710
6711for ac_func in unsetenv
6712do :
6713 ac_fn_cxx_check_func "$LINENO" "unsetenv" "ac_cv_func_unsetenv"
6714if test "x$ac_cv_func_unsetenv" = xyes; then :
7237 cat >>confdefs.h <<_ACEOF 6715 cat >>confdefs.h <<_ACEOF
7238#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 6716#define HAVE_UNSETENV 1
7239_ACEOF 6717_ACEOF
7240 6718
7241fi 6719fi
7242
7243done 6720done
7244 6721
7245 6722
7246 6723
6724support_utmp=yes
6725support_wtmp=yes
6726support_lastlog=yes
7247 6727
7248 6728# Check whether --enable-utmp was given.
7249
7250
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272for ac_header in \
7273 assert.h \
7274 fcntl.h \
7275 grp.h \
7276 libc.h \
7277 lastlog.h \
7278 stdarg.h \
7279 stdlib.h \
7280 string.h \
7281 termios.h \
7282 unistd.h \
7283 sys/byteorder.h \
7284 sys/ioctl.h \
7285 sys/select.h \
7286 sys/sockio.h \
7287 sys/strredir.h \
7288 sys/stropts.h \
7289 sys/time.h \
7290 utmp.h \
7291 utmpx.h \
7292 stdint.h \
7293 pty.h \
7294 util.h \
7295 libutil.h \
7296 wchar.h \
7297 cwchar \
7298 clocale \
7299
7300do
7301as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7302if eval "test \"\${$as_ac_Header+set}\" = set"; then
7303 echo "$as_me:$LINENO: checking for $ac_header" >&5
7304echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7305if eval "test \"\${$as_ac_Header+set}\" = set"; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307fi
7308echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7309echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7310else
7311 # Is the header compilable?
7312echo "$as_me:$LINENO: checking $ac_header usability" >&5
7313echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
7314cat >conftest.$ac_ext <<_ACEOF
7315/* confdefs.h. */
7316_ACEOF
7317cat confdefs.h >>conftest.$ac_ext
7318cat >>conftest.$ac_ext <<_ACEOF
7319/* end confdefs.h. */
7320$ac_includes_default
7321#include <$ac_header>
7322_ACEOF
7323rm -f conftest.$ac_objext
7324if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7325 (eval $ac_compile) 2>conftest.er1
7326 ac_status=$?
7327 grep -v '^ *+' conftest.er1 >conftest.err
7328 rm -f conftest.er1
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } &&
7332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7334 (eval $ac_try) 2>&5
7335 ac_status=$?
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); }; } &&
7338 { ac_try='test -s conftest.$ac_objext'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7340 (eval $ac_try) 2>&5
7341 ac_status=$?
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; }; then
7344 ac_header_compiler=yes
7345else
7346 echo "$as_me: failed program was:" >&5
7347sed 's/^/| /' conftest.$ac_ext >&5
7348
7349ac_header_compiler=no
7350fi
7351rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7352echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7353echo "${ECHO_T}$ac_header_compiler" >&6
7354
7355# Is the header present?
7356echo "$as_me:$LINENO: checking $ac_header presence" >&5
7357echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
7358cat >conftest.$ac_ext <<_ACEOF
7359/* confdefs.h. */
7360_ACEOF
7361cat confdefs.h >>conftest.$ac_ext
7362cat >>conftest.$ac_ext <<_ACEOF
7363/* end confdefs.h. */
7364#include <$ac_header>
7365_ACEOF
7366if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7367 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7368 ac_status=$?
7369 grep -v '^ *+' conftest.er1 >conftest.err
7370 rm -f conftest.er1
7371 cat conftest.err >&5
7372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7373 (exit $ac_status); } >/dev/null; then
7374 if test -s conftest.err; then
7375 ac_cpp_err=$ac_cxx_preproc_warn_flag
7376 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7377 else
7378 ac_cpp_err=
7379 fi
7380else
7381 ac_cpp_err=yes
7382fi
7383if test -z "$ac_cpp_err"; then
7384 ac_header_preproc=yes
7385else
7386 echo "$as_me: failed program was:" >&5
7387sed 's/^/| /' conftest.$ac_ext >&5
7388
7389 ac_header_preproc=no
7390fi
7391rm -f conftest.err conftest.$ac_ext
7392echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7393echo "${ECHO_T}$ac_header_preproc" >&6
7394
7395# So? What about this header?
7396case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7397 yes:no: )
7398 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7399echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7401echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7402 ac_header_preproc=yes
7403 ;;
7404 no:yes:* )
7405 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7406echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7407 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7408echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7409 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7410echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7411 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7412echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7414echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7415 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7416echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7417 (
7418 cat <<\_ASBOX
7419## ------------------------------------------ ##
7420## Report this to the AC_PACKAGE_NAME lists. ##
7421## ------------------------------------------ ##
7422_ASBOX
7423 ) |
7424 sed "s/^/$as_me: WARNING: /" >&2
7425 ;;
7426esac
7427echo "$as_me:$LINENO: checking for $ac_header" >&5
7428echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7429if eval "test \"\${$as_ac_Header+set}\" = set"; then
7430 echo $ECHO_N "(cached) $ECHO_C" >&6
7431else
7432 eval "$as_ac_Header=\$ac_header_preproc"
7433fi
7434echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7435echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7436
7437fi
7438if test `eval echo '${'$as_ac_Header'}'` = yes; then
7439 cat >>confdefs.h <<_ACEOF
7440#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7441_ACEOF
7442
7443fi
7444
7445done
7446
7447
7448echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7449echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
7450if test "${ac_cv_header_time+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7452else
7453 cat >conftest.$ac_ext <<_ACEOF
7454/* confdefs.h. */
7455_ACEOF
7456cat confdefs.h >>conftest.$ac_ext
7457cat >>conftest.$ac_ext <<_ACEOF
7458/* end confdefs.h. */
7459#include <sys/types.h>
7460#include <sys/time.h>
7461#include <time.h>
7462
7463int
7464main ()
7465{
7466if ((struct tm *) 0)
7467return 0;
7468 ;
7469 return 0;
7470}
7471_ACEOF
7472rm -f conftest.$ac_objext
7473if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7474 (eval $ac_compile) 2>conftest.er1
7475 ac_status=$?
7476 grep -v '^ *+' conftest.er1 >conftest.err
7477 rm -f conftest.er1
7478 cat conftest.err >&5
7479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } &&
7481 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7483 (eval $ac_try) 2>&5
7484 ac_status=$?
7485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7486 (exit $ac_status); }; } &&
7487 { ac_try='test -s conftest.$ac_objext'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 (eval $ac_try) 2>&5
7490 ac_status=$?
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; }; then
7493 ac_cv_header_time=yes
7494else
7495 echo "$as_me: failed program was:" >&5
7496sed 's/^/| /' conftest.$ac_ext >&5
7497
7498ac_cv_header_time=no
7499fi
7500rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7501fi
7502echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7503echo "${ECHO_T}$ac_cv_header_time" >&6
7504if test $ac_cv_header_time = yes; then
7505
7506cat >>confdefs.h <<\_ACEOF
7507#define TIME_WITH_SYS_TIME 1
7508_ACEOF
7509
7510fi
7511
7512
7513echo "$as_me:$LINENO: checking whether termios.h and sys/ioctl.h may both be included" >&5
7514echo $ECHO_N "checking whether termios.h and sys/ioctl.h may both be included... $ECHO_C" >&6
7515if test "${rxvt_cv_header_sysioctl+set}" = set; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7517else
7518 cat >conftest.$ac_ext <<_ACEOF
7519/* confdefs.h. */
7520_ACEOF
7521cat confdefs.h >>conftest.$ac_ext
7522cat >>conftest.$ac_ext <<_ACEOF
7523/* end confdefs.h. */
7524#include <stdio.h>
7525#include <sys/ioctl.h>
7526#ifdef HAVE_TERMIOS_H
7527#include <termios.h>
7528#endif
7529int
7530main ()
7531{
7532int a = ECHO;
7533 ;
7534 return 0;
7535}
7536_ACEOF
7537rm -f conftest.$ac_objext
7538if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7539 (eval $ac_compile) 2>conftest.er1
7540 ac_status=$?
7541 grep -v '^ *+' conftest.er1 >conftest.err
7542 rm -f conftest.er1
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } &&
7546 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7548 (eval $ac_try) 2>&5
7549 ac_status=$?
7550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); }; } &&
7552 { ac_try='test -s conftest.$ac_objext'
7553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7554 (eval $ac_try) 2>&5
7555 ac_status=$?
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); }; }; then
7558 rxvt_cv_header_sysioctl=yes
7559else
7560 echo "$as_me: failed program was:" >&5
7561sed 's/^/| /' conftest.$ac_ext >&5
7562
7563rxvt_cv_header_sysioctl=no
7564fi
7565rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7566fi
7567echo "$as_me:$LINENO: result: $rxvt_cv_header_sysioctl" >&5
7568echo "${ECHO_T}$rxvt_cv_header_sysioctl" >&6
7569
7570if test -n "$GCC"; then
7571 LDARG="-Wl,"
7572else
7573 LDARG=""
7574fi
7575R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-rpath '$LDARG'\1/g'
7576
7577ac_save_CFLAGS=$CFLAGS
7578ac_save_LIBS=$LIBS
7579CFLAGS="$CFLAGS $X_CFLAGS"
7580LIBS=`echo "$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7581echo "$as_me:$LINENO: checking for -rpath dynamic library path recording" >&5
7582echo $ECHO_N "checking for -rpath dynamic library path recording... $ECHO_C" >&6
7583if test "${rxvt_cv_rpath+set}" = set; then
7584 echo $ECHO_N "(cached) $ECHO_C" >&6
7585else
7586 if test "$cross_compiling" = yes; then
7587 { echo "$as_me:$LINENO: WARNING: You may need to check the LIBS line" >&5
7588echo "$as_me: WARNING: You may need to check the LIBS line" >&2;}
7589else
7590 cat >conftest.$ac_ext <<_ACEOF
7591/* confdefs.h. */
7592_ACEOF
7593cat confdefs.h >>conftest.$ac_ext
7594cat >>conftest.$ac_ext <<_ACEOF
7595/* end confdefs.h. */
7596
7597main()
7598{
7599 exit(0);
7600 (void) XOpenDisplay("foobar");
7601}
7602_ACEOF
7603rm -f conftest$ac_exeext
7604if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7605 (eval $ac_link) 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 (eval $ac_try) 2>&5
7611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7614 rxvt_cv_rpath=yes
7615else
7616 echo "$as_me: program exited with status $ac_status" >&5
7617echo "$as_me: failed program was:" >&5
7618sed 's/^/| /' conftest.$ac_ext >&5
7619
7620( exit $ac_status )
7621rxvt_cv_rpath=no
7622fi
7623rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7624fi
7625fi
7626echo "$as_me:$LINENO: result: $rxvt_cv_rpath" >&5
7627echo "${ECHO_T}$rxvt_cv_rpath" >&6
7628if test x$rxvt_cv_rpath != xyes; then
7629 R_TRANSLATE='s/-L\([^ ]*\)/-L\1 '$LDARG'-R\1/g'
7630 LIBS=`echo "$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11" | sed "$R_TRANSLATE"`
7631 echo "$as_me:$LINENO: checking for -R dynamic library path recording" >&5
7632echo $ECHO_N "checking for -R dynamic library path recording... $ECHO_C" >&6
7633if test "${rxvt_cv_R+set}" = set; then
7634 echo $ECHO_N "(cached) $ECHO_C" >&6
7635else
7636 if test "$cross_compiling" = yes; then
7637 rxvt_cv_R=no
7638else
7639 cat >conftest.$ac_ext <<_ACEOF
7640/* confdefs.h. */
7641_ACEOF
7642cat confdefs.h >>conftest.$ac_ext
7643cat >>conftest.$ac_ext <<_ACEOF
7644/* end confdefs.h. */
7645
7646main()
7647{
7648 exit(0);
7649 (void) XOpenDisplay("foobar");
7650}
7651_ACEOF
7652rm -f conftest$ac_exeext
7653if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7654 (eval $ac_link) 2>&5
7655 ac_status=$?
7656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7659 (eval $ac_try) 2>&5
7660 ac_status=$?
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; }; then
7663 rxvt_cv_R=yes
7664else
7665 echo "$as_me: program exited with status $ac_status" >&5
7666echo "$as_me: failed program was:" >&5
7667sed 's/^/| /' conftest.$ac_ext >&5
7668
7669( exit $ac_status )
7670rxvt_cv_R=no
7671fi
7672rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7673fi
7674fi
7675echo "$as_me:$LINENO: result: $rxvt_cv_R" >&5
7676echo "${ECHO_T}$rxvt_cv_R" >&6
7677 if test x$rxvt_cv_R != xyes; then
7678 LIBS="$ac_save_LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7679 fi
7680fi
7681
7682echo "$as_me:$LINENO: checking for XPointer" >&5
7683echo $ECHO_N "checking for XPointer... $ECHO_C" >&6
7684if test "${rxvt_cv_xpointer+set}" = set; then
7685 echo $ECHO_N "(cached) $ECHO_C" >&6
7686else
7687 cat >conftest.$ac_ext <<_ACEOF
7688/* confdefs.h. */
7689_ACEOF
7690cat confdefs.h >>conftest.$ac_ext
7691cat >>conftest.$ac_ext <<_ACEOF
7692/* end confdefs.h. */
7693#include <X11/Xlib.h>
7694int
7695main ()
7696{
7697XPointer dummy;
7698 ;
7699 return 0;
7700}
7701_ACEOF
7702rm -f conftest.$ac_objext
7703if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7704 (eval $ac_compile) 2>conftest.er1
7705 ac_status=$?
7706 grep -v '^ *+' conftest.er1 >conftest.err
7707 rm -f conftest.er1
7708 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } &&
7711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7713 (eval $ac_try) 2>&5
7714 ac_status=$?
7715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7716 (exit $ac_status); }; } &&
7717 { ac_try='test -s conftest.$ac_objext'
7718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7719 (eval $ac_try) 2>&5
7720 ac_status=$?
7721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7722 (exit $ac_status); }; }; then
7723 rxvt_cv_xpointer=yes
7724else
7725 echo "$as_me: failed program was:" >&5
7726sed 's/^/| /' conftest.$ac_ext >&5
7727
7728rxvt_cv_xpointer=no
7729fi
7730rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7731fi
7732echo "$as_me:$LINENO: result: $rxvt_cv_xpointer" >&5
7733echo "${ECHO_T}$rxvt_cv_xpointer" >&6
7734if test x$rxvt_cv_xpointer = xyes; then
7735
7736cat >>confdefs.h <<\_ACEOF
7737#define HAVE_XPOINTER 1
7738_ACEOF
7739
7740fi
7741LIBS=$ac_save_LIBS
7742CFLAGS=$ac_save_CFLAGS
7743
7744
7745echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
7746echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
7747if test "${ac_cv_c_const+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749else
7750 cat >conftest.$ac_ext <<_ACEOF
7751/* confdefs.h. */
7752_ACEOF
7753cat confdefs.h >>conftest.$ac_ext
7754cat >>conftest.$ac_ext <<_ACEOF
7755/* end confdefs.h. */
7756
7757int
7758main ()
7759{
7760/* FIXME: Include the comments suggested by Paul. */
7761#ifndef __cplusplus
7762 /* Ultrix mips cc rejects this. */
7763 typedef int charset[2];
7764 const charset x;
7765 /* SunOS 4.1.1 cc rejects this. */
7766 char const *const *ccp;
7767 char **p;
7768 /* NEC SVR4.0.2 mips cc rejects this. */
7769 struct point {int x, y;};
7770 static struct point const zero = {0,0};
7771 /* AIX XL C 1.02.0.0 rejects this.
7772 It does not let you subtract one const X* pointer from another in
7773 an arm of an if-expression whose if-part is not a constant
7774 expression */
7775 const char *g = "string";
7776 ccp = &g + (g ? g-g : 0);
7777 /* HPUX 7.0 cc rejects these. */
7778 ++ccp;
7779 p = (char**) ccp;
7780 ccp = (char const *const *) p;
7781 { /* SCO 3.2v4 cc rejects this. */
7782 char *t;
7783 char const *s = 0 ? (char *) 0 : (char const *) 0;
7784
7785 *t++ = 0;
7786 }
7787 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
7788 int x[] = {25, 17};
7789 const int *foo = &x[0];
7790 ++foo;
7791 }
7792 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
7793 typedef const int *iptr;
7794 iptr p = 0;
7795 ++p;
7796 }
7797 { /* AIX XL C 1.02.0.0 rejects this saying
7798 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
7799 struct s { int j; const int *ap[3]; };
7800 struct s *b; b->j = 5;
7801 }
7802 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
7803 const int foo = 10;
7804 }
7805#endif
7806
7807 ;
7808 return 0;
7809}
7810_ACEOF
7811rm -f conftest.$ac_objext
7812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7813 (eval $ac_compile) 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } &&
7820 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7822 (eval $ac_try) 2>&5
7823 ac_status=$?
7824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); }; } &&
7826 { ac_try='test -s conftest.$ac_objext'
7827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7828 (eval $ac_try) 2>&5
7829 ac_status=$?
7830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7831 (exit $ac_status); }; }; then
7832 ac_cv_c_const=yes
7833else
7834 echo "$as_me: failed program was:" >&5
7835sed 's/^/| /' conftest.$ac_ext >&5
7836
7837ac_cv_c_const=no
7838fi
7839rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7840fi
7841echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
7842echo "${ECHO_T}$ac_cv_c_const" >&6
7843if test $ac_cv_c_const = no; then
7844
7845cat >>confdefs.h <<\_ACEOF
7846#define const
7847_ACEOF
7848
7849fi
7850
7851echo "$as_me:$LINENO: checking for inline" >&5
7852echo $ECHO_N "checking for inline... $ECHO_C" >&6
7853if test "${ac_cv_c_inline+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855else
7856 ac_cv_c_inline=no
7857for ac_kw in inline __inline__ __inline; do
7858 cat >conftest.$ac_ext <<_ACEOF
7859/* confdefs.h. */
7860_ACEOF
7861cat confdefs.h >>conftest.$ac_ext
7862cat >>conftest.$ac_ext <<_ACEOF
7863/* end confdefs.h. */
7864#ifndef __cplusplus
7865typedef int foo_t;
7866static $ac_kw foo_t static_foo () {return 0; }
7867$ac_kw foo_t foo () {return 0; }
7868#endif
7869
7870_ACEOF
7871rm -f conftest.$ac_objext
7872if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7873 (eval $ac_compile) 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } &&
7880 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7882 (eval $ac_try) 2>&5
7883 ac_status=$?
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); }; } &&
7886 { ac_try='test -s conftest.$ac_objext'
7887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7888 (eval $ac_try) 2>&5
7889 ac_status=$?
7890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7891 (exit $ac_status); }; }; then
7892 ac_cv_c_inline=$ac_kw; break
7893else
7894 echo "$as_me: failed program was:" >&5
7895sed 's/^/| /' conftest.$ac_ext >&5
7896
7897fi
7898rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7899done
7900
7901fi
7902echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
7903echo "${ECHO_T}$ac_cv_c_inline" >&6
7904
7905
7906case $ac_cv_c_inline in
7907 inline | yes) ;;
7908 *)
7909 case $ac_cv_c_inline in
7910 no) ac_val=;;
7911 *) ac_val=$ac_cv_c_inline;;
7912 esac
7913 cat >>confdefs.h <<_ACEOF
7914#ifndef __cplusplus
7915#define inline $ac_val
7916#endif
7917_ACEOF
7918 ;;
7919esac
7920
7921
7922
7923echo "$as_me:$LINENO: checking for mode_t" >&5
7924echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
7925if test "${ac_cv_type_mode_t+set}" = set; then
7926 echo $ECHO_N "(cached) $ECHO_C" >&6
7927else
7928 cat >conftest.$ac_ext <<_ACEOF
7929/* confdefs.h. */
7930_ACEOF
7931cat confdefs.h >>conftest.$ac_ext
7932cat >>conftest.$ac_ext <<_ACEOF
7933/* end confdefs.h. */
7934$ac_includes_default
7935int
7936main ()
7937{
7938if ((mode_t *) 0)
7939 return 0;
7940if (sizeof (mode_t))
7941 return 0;
7942 ;
7943 return 0;
7944}
7945_ACEOF
7946rm -f conftest.$ac_objext
7947if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7948 (eval $ac_compile) 2>conftest.er1
7949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } &&
7955 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7957 (eval $ac_try) 2>&5
7958 ac_status=$?
7959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7960 (exit $ac_status); }; } &&
7961 { ac_try='test -s conftest.$ac_objext'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 (eval $ac_try) 2>&5
7964 ac_status=$?
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; }; then
7967 ac_cv_type_mode_t=yes
7968else
7969 echo "$as_me: failed program was:" >&5
7970sed 's/^/| /' conftest.$ac_ext >&5
7971
7972ac_cv_type_mode_t=no
7973fi
7974rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7975fi
7976echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
7977echo "${ECHO_T}$ac_cv_type_mode_t" >&6
7978if test $ac_cv_type_mode_t = yes; then
7979 :
7980else
7981
7982cat >>confdefs.h <<_ACEOF
7983#define mode_t int
7984_ACEOF
7985
7986fi
7987
7988echo "$as_me:$LINENO: checking for pid_t" >&5
7989echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
7990if test "${ac_cv_type_pid_t+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992else
7993 cat >conftest.$ac_ext <<_ACEOF
7994/* confdefs.h. */
7995_ACEOF
7996cat confdefs.h >>conftest.$ac_ext
7997cat >>conftest.$ac_ext <<_ACEOF
7998/* end confdefs.h. */
7999$ac_includes_default
8000int
8001main ()
8002{
8003if ((pid_t *) 0)
8004 return 0;
8005if (sizeof (pid_t))
8006 return 0;
8007 ;
8008 return 0;
8009}
8010_ACEOF
8011rm -f conftest.$ac_objext
8012if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8013 (eval $ac_compile) 2>conftest.er1
8014 ac_status=$?
8015 grep -v '^ *+' conftest.er1 >conftest.err
8016 rm -f conftest.er1
8017 cat conftest.err >&5
8018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8019 (exit $ac_status); } &&
8020 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8022 (eval $ac_try) 2>&5
8023 ac_status=$?
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); }; } &&
8026 { ac_try='test -s conftest.$ac_objext'
8027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8028 (eval $ac_try) 2>&5
8029 ac_status=$?
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); }; }; then
8032 ac_cv_type_pid_t=yes
8033else
8034 echo "$as_me: failed program was:" >&5
8035sed 's/^/| /' conftest.$ac_ext >&5
8036
8037ac_cv_type_pid_t=no
8038fi
8039rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8040fi
8041echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
8042echo "${ECHO_T}$ac_cv_type_pid_t" >&6
8043if test $ac_cv_type_pid_t = yes; then
8044 :
8045else
8046
8047cat >>confdefs.h <<_ACEOF
8048#define pid_t int
8049_ACEOF
8050
8051fi
8052
8053echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5
8054echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6
8055if test "${ac_cv_type_uid_t+set}" = set; then 6729if test "${enable_utmp+set}" = set; then :
8056 echo $ECHO_N "(cached) $ECHO_C" >&6 6730 enableval=$enable_utmp; if test x$enableval = xyes -o x$enableval = xno; then
8057else 6731 support_utmp=$enableval
8058 cat >conftest.$ac_ext <<_ACEOF
8059/* confdefs.h. */
8060_ACEOF
8061cat confdefs.h >>conftest.$ac_ext
8062cat >>conftest.$ac_ext <<_ACEOF
8063/* end confdefs.h. */
8064#include <sys/types.h>
8065
8066_ACEOF
8067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8068 $EGREP "uid_t" >/dev/null 2>&1; then
8069 ac_cv_type_uid_t=yes
8070else
8071 ac_cv_type_uid_t=no
8072fi
8073rm -f conftest*
8074
8075fi
8076echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5
8077echo "${ECHO_T}$ac_cv_type_uid_t" >&6
8078if test $ac_cv_type_uid_t = no; then
8079
8080cat >>confdefs.h <<\_ACEOF
8081#define uid_t int
8082_ACEOF
8083
8084
8085cat >>confdefs.h <<\_ACEOF
8086#define gid_t int
8087_ACEOF
8088
8089fi
8090
8091
8092echo "$as_me:$LINENO: checking for short" >&5
8093echo $ECHO_N "checking for short... $ECHO_C" >&6
8094if test "${ac_cv_type_short+set}" = set; then
8095 echo $ECHO_N "(cached) $ECHO_C" >&6
8096else
8097 cat >conftest.$ac_ext <<_ACEOF
8098/* confdefs.h. */
8099_ACEOF
8100cat confdefs.h >>conftest.$ac_ext
8101cat >>conftest.$ac_ext <<_ACEOF
8102/* end confdefs.h. */
8103$ac_includes_default
8104int
8105main ()
8106{
8107if ((short *) 0)
8108 return 0;
8109if (sizeof (short))
8110 return 0;
8111 ;
8112 return 0;
8113}
8114_ACEOF
8115rm -f conftest.$ac_objext
8116if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8117 (eval $ac_compile) 2>conftest.er1
8118 ac_status=$?
8119 grep -v '^ *+' conftest.er1 >conftest.err
8120 rm -f conftest.er1
8121 cat conftest.err >&5
8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8123 (exit $ac_status); } &&
8124 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8126 (eval $ac_try) 2>&5
8127 ac_status=$?
8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8129 (exit $ac_status); }; } &&
8130 { ac_try='test -s conftest.$ac_objext'
8131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8132 (eval $ac_try) 2>&5
8133 ac_status=$?
8134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8135 (exit $ac_status); }; }; then
8136 ac_cv_type_short=yes
8137else
8138 echo "$as_me: failed program was:" >&5
8139sed 's/^/| /' conftest.$ac_ext >&5
8140
8141ac_cv_type_short=no
8142fi
8143rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8144fi
8145echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
8146echo "${ECHO_T}$ac_cv_type_short" >&6
8147
8148echo "$as_me:$LINENO: checking size of short" >&5
8149echo $ECHO_N "checking size of short... $ECHO_C" >&6
8150if test "${ac_cv_sizeof_short+set}" = set; then
8151 echo $ECHO_N "(cached) $ECHO_C" >&6
8152else
8153 if test "$ac_cv_type_short" = yes; then
8154 # The cast to unsigned long works around a bug in the HP C Compiler
8155 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8156 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8157 # This bug is HP SR number 8606223364.
8158 if test "$cross_compiling" = yes; then
8159 # Depending upon the size, compute the lo and hi bounds.
8160cat >conftest.$ac_ext <<_ACEOF
8161/* confdefs.h. */
8162_ACEOF
8163cat confdefs.h >>conftest.$ac_ext
8164cat >>conftest.$ac_ext <<_ACEOF
8165/* end confdefs.h. */
8166$ac_includes_default
8167int
8168main ()
8169{
8170static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
8171test_array [0] = 0
8172
8173 ;
8174 return 0;
8175}
8176_ACEOF
8177rm -f conftest.$ac_objext
8178if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8179 (eval $ac_compile) 2>conftest.er1
8180 ac_status=$?
8181 grep -v '^ *+' conftest.er1 >conftest.err
8182 rm -f conftest.er1
8183 cat conftest.err >&5
8184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8185 (exit $ac_status); } &&
8186 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8187 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8188 (eval $ac_try) 2>&5
8189 ac_status=$?
8190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8191 (exit $ac_status); }; } &&
8192 { ac_try='test -s conftest.$ac_objext'
8193 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8194 (eval $ac_try) 2>&5
8195 ac_status=$?
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); }; }; then
8198 ac_lo=0 ac_mid=0
8199 while :; do
8200 cat >conftest.$ac_ext <<_ACEOF
8201/* confdefs.h. */
8202_ACEOF
8203cat confdefs.h >>conftest.$ac_ext
8204cat >>conftest.$ac_ext <<_ACEOF
8205/* end confdefs.h. */
8206$ac_includes_default
8207int
8208main ()
8209{
8210static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8211test_array [0] = 0
8212
8213 ;
8214 return 0;
8215}
8216_ACEOF
8217rm -f conftest.$ac_objext
8218if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8219 (eval $ac_compile) 2>conftest.er1
8220 ac_status=$?
8221 grep -v '^ *+' conftest.er1 >conftest.err
8222 rm -f conftest.er1
8223 cat conftest.err >&5
8224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8225 (exit $ac_status); } &&
8226 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8227 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8228 (eval $ac_try) 2>&5
8229 ac_status=$?
8230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8231 (exit $ac_status); }; } &&
8232 { ac_try='test -s conftest.$ac_objext'
8233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8234 (eval $ac_try) 2>&5
8235 ac_status=$?
8236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8237 (exit $ac_status); }; }; then
8238 ac_hi=$ac_mid; break
8239else
8240 echo "$as_me: failed program was:" >&5
8241sed 's/^/| /' conftest.$ac_ext >&5
8242
8243ac_lo=`expr $ac_mid + 1`
8244 if test $ac_lo -le $ac_mid; then
8245 ac_lo= ac_hi=
8246 break
8247 fi
8248 ac_mid=`expr 2 '*' $ac_mid + 1`
8249fi
8250rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8251 done
8252else
8253 echo "$as_me: failed program was:" >&5
8254sed 's/^/| /' conftest.$ac_ext >&5
8255
8256cat >conftest.$ac_ext <<_ACEOF
8257/* confdefs.h. */
8258_ACEOF
8259cat confdefs.h >>conftest.$ac_ext
8260cat >>conftest.$ac_ext <<_ACEOF
8261/* end confdefs.h. */
8262$ac_includes_default
8263int
8264main ()
8265{
8266static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
8267test_array [0] = 0
8268
8269 ;
8270 return 0;
8271}
8272_ACEOF
8273rm -f conftest.$ac_objext
8274if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8275 (eval $ac_compile) 2>conftest.er1
8276 ac_status=$?
8277 grep -v '^ *+' conftest.er1 >conftest.err
8278 rm -f conftest.er1
8279 cat conftest.err >&5
8280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8281 (exit $ac_status); } &&
8282 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8283 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8284 (eval $ac_try) 2>&5
8285 ac_status=$?
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); }; } &&
8288 { ac_try='test -s conftest.$ac_objext'
8289 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8290 (eval $ac_try) 2>&5
8291 ac_status=$?
8292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8293 (exit $ac_status); }; }; then
8294 ac_hi=-1 ac_mid=-1
8295 while :; do
8296 cat >conftest.$ac_ext <<_ACEOF
8297/* confdefs.h. */
8298_ACEOF
8299cat confdefs.h >>conftest.$ac_ext
8300cat >>conftest.$ac_ext <<_ACEOF
8301/* end confdefs.h. */
8302$ac_includes_default
8303int
8304main ()
8305{
8306static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
8307test_array [0] = 0
8308
8309 ;
8310 return 0;
8311}
8312_ACEOF
8313rm -f conftest.$ac_objext
8314if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8315 (eval $ac_compile) 2>conftest.er1
8316 ac_status=$?
8317 grep -v '^ *+' conftest.er1 >conftest.err
8318 rm -f conftest.er1
8319 cat conftest.err >&5
8320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8321 (exit $ac_status); } &&
8322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8324 (eval $ac_try) 2>&5
8325 ac_status=$?
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); }; } &&
8328 { ac_try='test -s conftest.$ac_objext'
8329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8330 (eval $ac_try) 2>&5
8331 ac_status=$?
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); }; }; then
8334 ac_lo=$ac_mid; break
8335else
8336 echo "$as_me: failed program was:" >&5
8337sed 's/^/| /' conftest.$ac_ext >&5
8338
8339ac_hi=`expr '(' $ac_mid ')' - 1`
8340 if test $ac_mid -le $ac_hi; then
8341 ac_lo= ac_hi=
8342 break
8343 fi
8344 ac_mid=`expr 2 '*' $ac_mid`
8345fi
8346rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8347 done
8348else
8349 echo "$as_me: failed program was:" >&5
8350sed 's/^/| /' conftest.$ac_ext >&5
8351
8352ac_lo= ac_hi=
8353fi
8354rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8355fi
8356rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8357# Binary search between lo and hi bounds.
8358while test "x$ac_lo" != "x$ac_hi"; do
8359 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8360 cat >conftest.$ac_ext <<_ACEOF
8361/* confdefs.h. */
8362_ACEOF
8363cat confdefs.h >>conftest.$ac_ext
8364cat >>conftest.$ac_ext <<_ACEOF
8365/* end confdefs.h. */
8366$ac_includes_default
8367int
8368main ()
8369{
8370static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
8371test_array [0] = 0
8372
8373 ;
8374 return 0;
8375}
8376_ACEOF
8377rm -f conftest.$ac_objext
8378if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8379 (eval $ac_compile) 2>conftest.er1
8380 ac_status=$?
8381 grep -v '^ *+' conftest.er1 >conftest.err
8382 rm -f conftest.er1
8383 cat conftest.err >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); } &&
8386 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8388 (eval $ac_try) 2>&5
8389 ac_status=$?
8390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8391 (exit $ac_status); }; } &&
8392 { ac_try='test -s conftest.$ac_objext'
8393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8394 (eval $ac_try) 2>&5
8395 ac_status=$?
8396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8397 (exit $ac_status); }; }; then
8398 ac_hi=$ac_mid
8399else
8400 echo "$as_me: failed program was:" >&5
8401sed 's/^/| /' conftest.$ac_ext >&5
8402
8403ac_lo=`expr '(' $ac_mid ')' + 1`
8404fi
8405rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8406done
8407case $ac_lo in
8408?*) ac_cv_sizeof_short=$ac_lo;;
8409'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8410See \`config.log' for more details." >&5
8411echo "$as_me: error: cannot compute sizeof (short), 77
8412See \`config.log' for more details." >&2;}
8413 { (exit 1); exit 1; }; } ;;
8414esac
8415else
8416 if test "$cross_compiling" = yes; then
8417 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8418echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8419 { (exit 1); exit 1; }; }
8420else
8421 cat >conftest.$ac_ext <<_ACEOF
8422/* confdefs.h. */
8423_ACEOF
8424cat confdefs.h >>conftest.$ac_ext
8425cat >>conftest.$ac_ext <<_ACEOF
8426/* end confdefs.h. */
8427$ac_includes_default
8428long longval () { return (long) (sizeof (short)); }
8429unsigned long ulongval () { return (long) (sizeof (short)); }
8430#include <stdio.h>
8431#include <stdlib.h>
8432int
8433main ()
8434{
8435
8436 FILE *f = fopen ("conftest.val", "w");
8437 if (! f)
8438 exit (1);
8439 if (((long) (sizeof (short))) < 0)
8440 {
8441 long i = longval ();
8442 if (i != ((long) (sizeof (short))))
8443 exit (1);
8444 fprintf (f, "%ld\n", i);
8445 }
8446 else
8447 {
8448 unsigned long i = ulongval ();
8449 if (i != ((long) (sizeof (short))))
8450 exit (1);
8451 fprintf (f, "%lu\n", i);
8452 }
8453 exit (ferror (f) || fclose (f) != 0);
8454
8455 ;
8456 return 0;
8457}
8458_ACEOF
8459rm -f conftest$ac_exeext
8460if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8461 (eval $ac_link) 2>&5
8462 ac_status=$?
8463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8464 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8465 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8466 (eval $ac_try) 2>&5
8467 ac_status=$?
8468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8469 (exit $ac_status); }; }; then
8470 ac_cv_sizeof_short=`cat conftest.val`
8471else
8472 echo "$as_me: program exited with status $ac_status" >&5
8473echo "$as_me: failed program was:" >&5
8474sed 's/^/| /' conftest.$ac_ext >&5
8475
8476( exit $ac_status )
8477{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
8478See \`config.log' for more details." >&5
8479echo "$as_me: error: cannot compute sizeof (short), 77
8480See \`config.log' for more details." >&2;}
8481 { (exit 1); exit 1; }; }
8482fi
8483rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8484fi
8485fi
8486rm -f conftest.val
8487else
8488 ac_cv_sizeof_short=0
8489fi
8490fi
8491echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
8492echo "${ECHO_T}$ac_cv_sizeof_short" >&6
8493cat >>confdefs.h <<_ACEOF
8494#define SIZEOF_SHORT $ac_cv_sizeof_short
8495_ACEOF
8496
8497
8498echo "$as_me:$LINENO: checking for int" >&5
8499echo $ECHO_N "checking for int... $ECHO_C" >&6
8500if test "${ac_cv_type_int+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8502else
8503 cat >conftest.$ac_ext <<_ACEOF
8504/* confdefs.h. */
8505_ACEOF
8506cat confdefs.h >>conftest.$ac_ext
8507cat >>conftest.$ac_ext <<_ACEOF
8508/* end confdefs.h. */
8509$ac_includes_default
8510int
8511main ()
8512{
8513if ((int *) 0)
8514 return 0;
8515if (sizeof (int))
8516 return 0;
8517 ;
8518 return 0;
8519}
8520_ACEOF
8521rm -f conftest.$ac_objext
8522if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8523 (eval $ac_compile) 2>conftest.er1
8524 ac_status=$?
8525 grep -v '^ *+' conftest.er1 >conftest.err
8526 rm -f conftest.er1
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } &&
8530 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8532 (eval $ac_try) 2>&5
8533 ac_status=$?
8534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8535 (exit $ac_status); }; } &&
8536 { ac_try='test -s conftest.$ac_objext'
8537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8538 (eval $ac_try) 2>&5
8539 ac_status=$?
8540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8541 (exit $ac_status); }; }; then
8542 ac_cv_type_int=yes
8543else
8544 echo "$as_me: failed program was:" >&5
8545sed 's/^/| /' conftest.$ac_ext >&5
8546
8547ac_cv_type_int=no
8548fi
8549rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8550fi
8551echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
8552echo "${ECHO_T}$ac_cv_type_int" >&6
8553
8554echo "$as_me:$LINENO: checking size of int" >&5
8555echo $ECHO_N "checking size of int... $ECHO_C" >&6
8556if test "${ac_cv_sizeof_int+set}" = set; then
8557 echo $ECHO_N "(cached) $ECHO_C" >&6
8558else
8559 if test "$ac_cv_type_int" = yes; then
8560 # The cast to unsigned long works around a bug in the HP C Compiler
8561 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8562 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8563 # This bug is HP SR number 8606223364.
8564 if test "$cross_compiling" = yes; then
8565 # Depending upon the size, compute the lo and hi bounds.
8566cat >conftest.$ac_ext <<_ACEOF
8567/* confdefs.h. */
8568_ACEOF
8569cat confdefs.h >>conftest.$ac_ext
8570cat >>conftest.$ac_ext <<_ACEOF
8571/* end confdefs.h. */
8572$ac_includes_default
8573int
8574main ()
8575{
8576static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
8577test_array [0] = 0
8578
8579 ;
8580 return 0;
8581}
8582_ACEOF
8583rm -f conftest.$ac_objext
8584if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8585 (eval $ac_compile) 2>conftest.er1
8586 ac_status=$?
8587 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -f conftest.er1
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } &&
8592 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8594 (eval $ac_try) 2>&5
8595 ac_status=$?
8596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8597 (exit $ac_status); }; } &&
8598 { ac_try='test -s conftest.$ac_objext'
8599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8600 (eval $ac_try) 2>&5
8601 ac_status=$?
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); }; }; then
8604 ac_lo=0 ac_mid=0
8605 while :; do
8606 cat >conftest.$ac_ext <<_ACEOF
8607/* confdefs.h. */
8608_ACEOF
8609cat confdefs.h >>conftest.$ac_ext
8610cat >>conftest.$ac_ext <<_ACEOF
8611/* end confdefs.h. */
8612$ac_includes_default
8613int
8614main ()
8615{
8616static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8617test_array [0] = 0
8618
8619 ;
8620 return 0;
8621}
8622_ACEOF
8623rm -f conftest.$ac_objext
8624if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8625 (eval $ac_compile) 2>conftest.er1
8626 ac_status=$?
8627 grep -v '^ *+' conftest.er1 >conftest.err
8628 rm -f conftest.er1
8629 cat conftest.err >&5
8630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8631 (exit $ac_status); } &&
8632 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8634 (eval $ac_try) 2>&5
8635 ac_status=$?
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); }; } &&
8638 { ac_try='test -s conftest.$ac_objext'
8639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8640 (eval $ac_try) 2>&5
8641 ac_status=$?
8642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8643 (exit $ac_status); }; }; then
8644 ac_hi=$ac_mid; break
8645else
8646 echo "$as_me: failed program was:" >&5
8647sed 's/^/| /' conftest.$ac_ext >&5
8648
8649ac_lo=`expr $ac_mid + 1`
8650 if test $ac_lo -le $ac_mid; then
8651 ac_lo= ac_hi=
8652 break
8653 fi
8654 ac_mid=`expr 2 '*' $ac_mid + 1`
8655fi
8656rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8657 done
8658else
8659 echo "$as_me: failed program was:" >&5
8660sed 's/^/| /' conftest.$ac_ext >&5
8661
8662cat >conftest.$ac_ext <<_ACEOF
8663/* confdefs.h. */
8664_ACEOF
8665cat confdefs.h >>conftest.$ac_ext
8666cat >>conftest.$ac_ext <<_ACEOF
8667/* end confdefs.h. */
8668$ac_includes_default
8669int
8670main ()
8671{
8672static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
8673test_array [0] = 0
8674
8675 ;
8676 return 0;
8677}
8678_ACEOF
8679rm -f conftest.$ac_objext
8680if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8681 (eval $ac_compile) 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8689 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8690 (eval $ac_try) 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; } &&
8694 { ac_try='test -s conftest.$ac_objext'
8695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8696 (eval $ac_try) 2>&5
8697 ac_status=$?
8698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8699 (exit $ac_status); }; }; then
8700 ac_hi=-1 ac_mid=-1
8701 while :; do
8702 cat >conftest.$ac_ext <<_ACEOF
8703/* confdefs.h. */
8704_ACEOF
8705cat confdefs.h >>conftest.$ac_ext
8706cat >>conftest.$ac_ext <<_ACEOF
8707/* end confdefs.h. */
8708$ac_includes_default
8709int
8710main ()
8711{
8712static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
8713test_array [0] = 0
8714
8715 ;
8716 return 0;
8717}
8718_ACEOF
8719rm -f conftest.$ac_objext
8720if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8721 (eval $ac_compile) 2>conftest.er1
8722 ac_status=$?
8723 grep -v '^ *+' conftest.er1 >conftest.err
8724 rm -f conftest.er1
8725 cat conftest.err >&5
8726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8727 (exit $ac_status); } &&
8728 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8730 (eval $ac_try) 2>&5
8731 ac_status=$?
8732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8733 (exit $ac_status); }; } &&
8734 { ac_try='test -s conftest.$ac_objext'
8735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8736 (eval $ac_try) 2>&5
8737 ac_status=$?
8738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8739 (exit $ac_status); }; }; then
8740 ac_lo=$ac_mid; break
8741else
8742 echo "$as_me: failed program was:" >&5
8743sed 's/^/| /' conftest.$ac_ext >&5
8744
8745ac_hi=`expr '(' $ac_mid ')' - 1`
8746 if test $ac_mid -le $ac_hi; then
8747 ac_lo= ac_hi=
8748 break
8749 fi
8750 ac_mid=`expr 2 '*' $ac_mid`
8751fi
8752rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8753 done
8754else
8755 echo "$as_me: failed program was:" >&5
8756sed 's/^/| /' conftest.$ac_ext >&5
8757
8758ac_lo= ac_hi=
8759fi
8760rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8761fi
8762rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8763# Binary search between lo and hi bounds.
8764while test "x$ac_lo" != "x$ac_hi"; do
8765 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
8766 cat >conftest.$ac_ext <<_ACEOF
8767/* confdefs.h. */
8768_ACEOF
8769cat confdefs.h >>conftest.$ac_ext
8770cat >>conftest.$ac_ext <<_ACEOF
8771/* end confdefs.h. */
8772$ac_includes_default
8773int
8774main ()
8775{
8776static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
8777test_array [0] = 0
8778
8779 ;
8780 return 0;
8781}
8782_ACEOF
8783rm -f conftest.$ac_objext
8784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8785 (eval $ac_compile) 2>conftest.er1
8786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } &&
8792 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8794 (eval $ac_try) 2>&5
8795 ac_status=$?
8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8797 (exit $ac_status); }; } &&
8798 { ac_try='test -s conftest.$ac_objext'
8799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8800 (eval $ac_try) 2>&5
8801 ac_status=$?
8802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803 (exit $ac_status); }; }; then
8804 ac_hi=$ac_mid
8805else
8806 echo "$as_me: failed program was:" >&5
8807sed 's/^/| /' conftest.$ac_ext >&5
8808
8809ac_lo=`expr '(' $ac_mid ')' + 1`
8810fi
8811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8812done
8813case $ac_lo in
8814?*) ac_cv_sizeof_int=$ac_lo;;
8815'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8816See \`config.log' for more details." >&5
8817echo "$as_me: error: cannot compute sizeof (int), 77
8818See \`config.log' for more details." >&2;}
8819 { (exit 1); exit 1; }; } ;;
8820esac
8821else
8822 if test "$cross_compiling" = yes; then
8823 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
8824echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
8825 { (exit 1); exit 1; }; }
8826else
8827 cat >conftest.$ac_ext <<_ACEOF
8828/* confdefs.h. */
8829_ACEOF
8830cat confdefs.h >>conftest.$ac_ext
8831cat >>conftest.$ac_ext <<_ACEOF
8832/* end confdefs.h. */
8833$ac_includes_default
8834long longval () { return (long) (sizeof (int)); }
8835unsigned long ulongval () { return (long) (sizeof (int)); }
8836#include <stdio.h>
8837#include <stdlib.h>
8838int
8839main ()
8840{
8841
8842 FILE *f = fopen ("conftest.val", "w");
8843 if (! f)
8844 exit (1);
8845 if (((long) (sizeof (int))) < 0)
8846 {
8847 long i = longval ();
8848 if (i != ((long) (sizeof (int))))
8849 exit (1);
8850 fprintf (f, "%ld\n", i);
8851 }
8852 else
8853 {
8854 unsigned long i = ulongval ();
8855 if (i != ((long) (sizeof (int))))
8856 exit (1);
8857 fprintf (f, "%lu\n", i);
8858 }
8859 exit (ferror (f) || fclose (f) != 0);
8860
8861 ;
8862 return 0;
8863}
8864_ACEOF
8865rm -f conftest$ac_exeext
8866if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8867 (eval $ac_link) 2>&5
8868 ac_status=$?
8869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8870 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8872 (eval $ac_try) 2>&5
8873 ac_status=$?
8874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8875 (exit $ac_status); }; }; then
8876 ac_cv_sizeof_int=`cat conftest.val`
8877else
8878 echo "$as_me: program exited with status $ac_status" >&5
8879echo "$as_me: failed program was:" >&5
8880sed 's/^/| /' conftest.$ac_ext >&5
8881
8882( exit $ac_status )
8883{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
8884See \`config.log' for more details." >&5
8885echo "$as_me: error: cannot compute sizeof (int), 77
8886See \`config.log' for more details." >&2;}
8887 { (exit 1); exit 1; }; }
8888fi
8889rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8890fi
8891fi
8892rm -f conftest.val
8893else
8894 ac_cv_sizeof_int=0
8895fi
8896fi
8897echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
8898echo "${ECHO_T}$ac_cv_sizeof_int" >&6
8899cat >>confdefs.h <<_ACEOF
8900#define SIZEOF_INT $ac_cv_sizeof_int
8901_ACEOF
8902
8903
8904echo "$as_me:$LINENO: checking for long long" >&5
8905echo $ECHO_N "checking for long long... $ECHO_C" >&6
8906if test "${ac_cv_type_long_long+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8908else
8909 cat >conftest.$ac_ext <<_ACEOF
8910/* confdefs.h. */
8911_ACEOF
8912cat confdefs.h >>conftest.$ac_ext
8913cat >>conftest.$ac_ext <<_ACEOF
8914/* end confdefs.h. */
8915$ac_includes_default
8916int
8917main ()
8918{
8919if ((long long *) 0)
8920 return 0;
8921if (sizeof (long long))
8922 return 0;
8923 ;
8924 return 0;
8925}
8926_ACEOF
8927rm -f conftest.$ac_objext
8928if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8929 (eval $ac_compile) 2>conftest.er1
8930 ac_status=$?
8931 grep -v '^ *+' conftest.er1 >conftest.err
8932 rm -f conftest.er1
8933 cat conftest.err >&5
8934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8935 (exit $ac_status); } &&
8936 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8938 (eval $ac_try) 2>&5
8939 ac_status=$?
8940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8941 (exit $ac_status); }; } &&
8942 { ac_try='test -s conftest.$ac_objext'
8943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8944 (eval $ac_try) 2>&5
8945 ac_status=$?
8946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947 (exit $ac_status); }; }; then
8948 ac_cv_type_long_long=yes
8949else
8950 echo "$as_me: failed program was:" >&5
8951sed 's/^/| /' conftest.$ac_ext >&5
8952
8953ac_cv_type_long_long=no
8954fi
8955rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8956fi
8957echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
8958echo "${ECHO_T}$ac_cv_type_long_long" >&6
8959
8960echo "$as_me:$LINENO: checking size of long long" >&5
8961echo $ECHO_N "checking size of long long... $ECHO_C" >&6
8962if test "${ac_cv_sizeof_long_long+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8964else
8965 if test "$ac_cv_type_long_long" = yes; then
8966 # The cast to unsigned long works around a bug in the HP C Compiler
8967 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
8968 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
8969 # This bug is HP SR number 8606223364.
8970 if test "$cross_compiling" = yes; then
8971 # Depending upon the size, compute the lo and hi bounds.
8972cat >conftest.$ac_ext <<_ACEOF
8973/* confdefs.h. */
8974_ACEOF
8975cat confdefs.h >>conftest.$ac_ext
8976cat >>conftest.$ac_ext <<_ACEOF
8977/* end confdefs.h. */
8978$ac_includes_default
8979int
8980main ()
8981{
8982static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= 0)];
8983test_array [0] = 0
8984
8985 ;
8986 return 0;
8987}
8988_ACEOF
8989rm -f conftest.$ac_objext
8990if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8991 (eval $ac_compile) 2>conftest.er1
8992 ac_status=$?
8993 grep -v '^ *+' conftest.er1 >conftest.err
8994 rm -f conftest.er1
8995 cat conftest.err >&5
8996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8997 (exit $ac_status); } &&
8998 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9000 (eval $ac_try) 2>&5
9001 ac_status=$?
9002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9003 (exit $ac_status); }; } &&
9004 { ac_try='test -s conftest.$ac_objext'
9005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9006 (eval $ac_try) 2>&5
9007 ac_status=$?
9008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9009 (exit $ac_status); }; }; then
9010 ac_lo=0 ac_mid=0
9011 while :; do
9012 cat >conftest.$ac_ext <<_ACEOF
9013/* confdefs.h. */
9014_ACEOF
9015cat confdefs.h >>conftest.$ac_ext
9016cat >>conftest.$ac_ext <<_ACEOF
9017/* end confdefs.h. */
9018$ac_includes_default
9019int
9020main ()
9021{
9022static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9023test_array [0] = 0
9024
9025 ;
9026 return 0;
9027}
9028_ACEOF
9029rm -f conftest.$ac_objext
9030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9031 (eval $ac_compile) 2>conftest.er1
9032 ac_status=$?
9033 grep -v '^ *+' conftest.er1 >conftest.err
9034 rm -f conftest.er1
9035 cat conftest.err >&5
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); } &&
9038 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9040 (eval $ac_try) 2>&5
9041 ac_status=$?
9042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9043 (exit $ac_status); }; } &&
9044 { ac_try='test -s conftest.$ac_objext'
9045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9046 (eval $ac_try) 2>&5
9047 ac_status=$?
9048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); }; }; then
9050 ac_hi=$ac_mid; break
9051else
9052 echo "$as_me: failed program was:" >&5
9053sed 's/^/| /' conftest.$ac_ext >&5
9054
9055ac_lo=`expr $ac_mid + 1`
9056 if test $ac_lo -le $ac_mid; then
9057 ac_lo= ac_hi=
9058 break
9059 fi
9060 ac_mid=`expr 2 '*' $ac_mid + 1`
9061fi
9062rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9063 done
9064else
9065 echo "$as_me: failed program was:" >&5
9066sed 's/^/| /' conftest.$ac_ext >&5
9067
9068cat >conftest.$ac_ext <<_ACEOF
9069/* confdefs.h. */
9070_ACEOF
9071cat confdefs.h >>conftest.$ac_ext
9072cat >>conftest.$ac_ext <<_ACEOF
9073/* end confdefs.h. */
9074$ac_includes_default
9075int
9076main ()
9077{
9078static int test_array [1 - 2 * !(((long) (sizeof (long long))) < 0)];
9079test_array [0] = 0
9080
9081 ;
9082 return 0;
9083}
9084_ACEOF
9085rm -f conftest.$ac_objext
9086if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9087 (eval $ac_compile) 2>conftest.er1
9088 ac_status=$?
9089 grep -v '^ *+' conftest.er1 >conftest.err
9090 rm -f conftest.er1
9091 cat conftest.err >&5
9092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9093 (exit $ac_status); } &&
9094 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9096 (eval $ac_try) 2>&5
9097 ac_status=$?
9098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9099 (exit $ac_status); }; } &&
9100 { ac_try='test -s conftest.$ac_objext'
9101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9102 (eval $ac_try) 2>&5
9103 ac_status=$?
9104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9105 (exit $ac_status); }; }; then
9106 ac_hi=-1 ac_mid=-1
9107 while :; do
9108 cat >conftest.$ac_ext <<_ACEOF
9109/* confdefs.h. */
9110_ACEOF
9111cat confdefs.h >>conftest.$ac_ext
9112cat >>conftest.$ac_ext <<_ACEOF
9113/* end confdefs.h. */
9114$ac_includes_default
9115int
9116main ()
9117{
9118static int test_array [1 - 2 * !(((long) (sizeof (long long))) >= $ac_mid)];
9119test_array [0] = 0
9120
9121 ;
9122 return 0;
9123}
9124_ACEOF
9125rm -f conftest.$ac_objext
9126if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9127 (eval $ac_compile) 2>conftest.er1
9128 ac_status=$?
9129 grep -v '^ *+' conftest.er1 >conftest.err
9130 rm -f conftest.er1
9131 cat conftest.err >&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } &&
9134 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9136 (eval $ac_try) 2>&5
9137 ac_status=$?
9138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9139 (exit $ac_status); }; } &&
9140 { ac_try='test -s conftest.$ac_objext'
9141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9142 (eval $ac_try) 2>&5
9143 ac_status=$?
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); }; }; then
9146 ac_lo=$ac_mid; break
9147else
9148 echo "$as_me: failed program was:" >&5
9149sed 's/^/| /' conftest.$ac_ext >&5
9150
9151ac_hi=`expr '(' $ac_mid ')' - 1`
9152 if test $ac_mid -le $ac_hi; then
9153 ac_lo= ac_hi=
9154 break
9155 fi
9156 ac_mid=`expr 2 '*' $ac_mid`
9157fi
9158rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9159 done
9160else
9161 echo "$as_me: failed program was:" >&5
9162sed 's/^/| /' conftest.$ac_ext >&5
9163
9164ac_lo= ac_hi=
9165fi
9166rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9167fi
9168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9169# Binary search between lo and hi bounds.
9170while test "x$ac_lo" != "x$ac_hi"; do
9171 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9172 cat >conftest.$ac_ext <<_ACEOF
9173/* confdefs.h. */
9174_ACEOF
9175cat confdefs.h >>conftest.$ac_ext
9176cat >>conftest.$ac_ext <<_ACEOF
9177/* end confdefs.h. */
9178$ac_includes_default
9179int
9180main ()
9181{
9182static int test_array [1 - 2 * !(((long) (sizeof (long long))) <= $ac_mid)];
9183test_array [0] = 0
9184
9185 ;
9186 return 0;
9187}
9188_ACEOF
9189rm -f conftest.$ac_objext
9190if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9191 (eval $ac_compile) 2>conftest.er1
9192 ac_status=$?
9193 grep -v '^ *+' conftest.er1 >conftest.err
9194 rm -f conftest.er1
9195 cat conftest.err >&5
9196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9197 (exit $ac_status); } &&
9198 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9200 (eval $ac_try) 2>&5
9201 ac_status=$?
9202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9203 (exit $ac_status); }; } &&
9204 { ac_try='test -s conftest.$ac_objext'
9205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9206 (eval $ac_try) 2>&5
9207 ac_status=$?
9208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9209 (exit $ac_status); }; }; then
9210 ac_hi=$ac_mid
9211else
9212 echo "$as_me: failed program was:" >&5
9213sed 's/^/| /' conftest.$ac_ext >&5
9214
9215ac_lo=`expr '(' $ac_mid ')' + 1`
9216fi
9217rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9218done
9219case $ac_lo in
9220?*) ac_cv_sizeof_long_long=$ac_lo;;
9221'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9222See \`config.log' for more details." >&5
9223echo "$as_me: error: cannot compute sizeof (long long), 77
9224See \`config.log' for more details." >&2;}
9225 { (exit 1); exit 1; }; } ;;
9226esac
9227else
9228 if test "$cross_compiling" = yes; then
9229 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9230echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9231 { (exit 1); exit 1; }; }
9232else
9233 cat >conftest.$ac_ext <<_ACEOF
9234/* confdefs.h. */
9235_ACEOF
9236cat confdefs.h >>conftest.$ac_ext
9237cat >>conftest.$ac_ext <<_ACEOF
9238/* end confdefs.h. */
9239$ac_includes_default
9240long longval () { return (long) (sizeof (long long)); }
9241unsigned long ulongval () { return (long) (sizeof (long long)); }
9242#include <stdio.h>
9243#include <stdlib.h>
9244int
9245main ()
9246{
9247
9248 FILE *f = fopen ("conftest.val", "w");
9249 if (! f)
9250 exit (1);
9251 if (((long) (sizeof (long long))) < 0)
9252 {
9253 long i = longval ();
9254 if (i != ((long) (sizeof (long long))))
9255 exit (1);
9256 fprintf (f, "%ld\n", i);
9257 }
9258 else
9259 {
9260 unsigned long i = ulongval ();
9261 if (i != ((long) (sizeof (long long))))
9262 exit (1);
9263 fprintf (f, "%lu\n", i);
9264 }
9265 exit (ferror (f) || fclose (f) != 0);
9266
9267 ;
9268 return 0;
9269}
9270_ACEOF
9271rm -f conftest$ac_exeext
9272if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9273 (eval $ac_link) 2>&5
9274 ac_status=$?
9275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9276 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9277 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9278 (eval $ac_try) 2>&5
9279 ac_status=$?
9280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9281 (exit $ac_status); }; }; then
9282 ac_cv_sizeof_long_long=`cat conftest.val`
9283else
9284 echo "$as_me: program exited with status $ac_status" >&5
9285echo "$as_me: failed program was:" >&5
9286sed 's/^/| /' conftest.$ac_ext >&5
9287
9288( exit $ac_status )
9289{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long long), 77
9290See \`config.log' for more details." >&5
9291echo "$as_me: error: cannot compute sizeof (long long), 77
9292See \`config.log' for more details." >&2;}
9293 { (exit 1); exit 1; }; }
9294fi
9295rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9296fi
9297fi
9298rm -f conftest.val
9299else
9300 ac_cv_sizeof_long_long=0
9301fi
9302fi
9303echo "$as_me:$LINENO: result: $ac_cv_sizeof_long_long" >&5
9304echo "${ECHO_T}$ac_cv_sizeof_long_long" >&6
9305cat >>confdefs.h <<_ACEOF
9306#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
9307_ACEOF
9308
9309
9310echo "$as_me:$LINENO: checking for int *" >&5
9311echo $ECHO_N "checking for int *... $ECHO_C" >&6
9312if test "${ac_cv_type_int_p+set}" = set; then
9313 echo $ECHO_N "(cached) $ECHO_C" >&6
9314else
9315 cat >conftest.$ac_ext <<_ACEOF
9316/* confdefs.h. */
9317_ACEOF
9318cat confdefs.h >>conftest.$ac_ext
9319cat >>conftest.$ac_ext <<_ACEOF
9320/* end confdefs.h. */
9321$ac_includes_default
9322int
9323main ()
9324{
9325if ((int * *) 0)
9326 return 0;
9327if (sizeof (int *))
9328 return 0;
9329 ;
9330 return 0;
9331}
9332_ACEOF
9333rm -f conftest.$ac_objext
9334if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9335 (eval $ac_compile) 2>conftest.er1
9336 ac_status=$?
9337 grep -v '^ *+' conftest.er1 >conftest.err
9338 rm -f conftest.er1
9339 cat conftest.err >&5
9340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9341 (exit $ac_status); } &&
9342 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9344 (eval $ac_try) 2>&5
9345 ac_status=$?
9346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9347 (exit $ac_status); }; } &&
9348 { ac_try='test -s conftest.$ac_objext'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9350 (eval $ac_try) 2>&5
9351 ac_status=$?
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; }; then
9354 ac_cv_type_int_p=yes
9355else
9356 echo "$as_me: failed program was:" >&5
9357sed 's/^/| /' conftest.$ac_ext >&5
9358
9359ac_cv_type_int_p=no
9360fi
9361rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9362fi
9363echo "$as_me:$LINENO: result: $ac_cv_type_int_p" >&5
9364echo "${ECHO_T}$ac_cv_type_int_p" >&6
9365
9366echo "$as_me:$LINENO: checking size of int *" >&5
9367echo $ECHO_N "checking size of int *... $ECHO_C" >&6
9368if test "${ac_cv_sizeof_int_p+set}" = set; then
9369 echo $ECHO_N "(cached) $ECHO_C" >&6
9370else
9371 if test "$ac_cv_type_int_p" = yes; then
9372 # The cast to unsigned long works around a bug in the HP C Compiler
9373 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
9374 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
9375 # This bug is HP SR number 8606223364.
9376 if test "$cross_compiling" = yes; then
9377 # Depending upon the size, compute the lo and hi bounds.
9378cat >conftest.$ac_ext <<_ACEOF
9379/* confdefs.h. */
9380_ACEOF
9381cat confdefs.h >>conftest.$ac_ext
9382cat >>conftest.$ac_ext <<_ACEOF
9383/* end confdefs.h. */
9384$ac_includes_default
9385int
9386main ()
9387{
9388static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= 0)];
9389test_array [0] = 0
9390
9391 ;
9392 return 0;
9393}
9394_ACEOF
9395rm -f conftest.$ac_objext
9396if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9397 (eval $ac_compile) 2>conftest.er1
9398 ac_status=$?
9399 grep -v '^ *+' conftest.er1 >conftest.err
9400 rm -f conftest.er1
9401 cat conftest.err >&5
9402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9403 (exit $ac_status); } &&
9404 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9406 (eval $ac_try) 2>&5
9407 ac_status=$?
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); }; } &&
9410 { ac_try='test -s conftest.$ac_objext'
9411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9412 (eval $ac_try) 2>&5
9413 ac_status=$?
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); }; }; then
9416 ac_lo=0 ac_mid=0
9417 while :; do
9418 cat >conftest.$ac_ext <<_ACEOF
9419/* confdefs.h. */
9420_ACEOF
9421cat confdefs.h >>conftest.$ac_ext
9422cat >>conftest.$ac_ext <<_ACEOF
9423/* end confdefs.h. */
9424$ac_includes_default
9425int
9426main ()
9427{
9428static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9429test_array [0] = 0
9430
9431 ;
9432 return 0;
9433}
9434_ACEOF
9435rm -f conftest.$ac_objext
9436if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9437 (eval $ac_compile) 2>conftest.er1
9438 ac_status=$?
9439 grep -v '^ *+' conftest.er1 >conftest.err
9440 rm -f conftest.er1
9441 cat conftest.err >&5
9442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9443 (exit $ac_status); } &&
9444 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9446 (eval $ac_try) 2>&5
9447 ac_status=$?
9448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9449 (exit $ac_status); }; } &&
9450 { ac_try='test -s conftest.$ac_objext'
9451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9452 (eval $ac_try) 2>&5
9453 ac_status=$?
9454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9455 (exit $ac_status); }; }; then
9456 ac_hi=$ac_mid; break
9457else
9458 echo "$as_me: failed program was:" >&5
9459sed 's/^/| /' conftest.$ac_ext >&5
9460
9461ac_lo=`expr $ac_mid + 1`
9462 if test $ac_lo -le $ac_mid; then
9463 ac_lo= ac_hi=
9464 break
9465 fi
9466 ac_mid=`expr 2 '*' $ac_mid + 1`
9467fi
9468rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9469 done
9470else
9471 echo "$as_me: failed program was:" >&5
9472sed 's/^/| /' conftest.$ac_ext >&5
9473
9474cat >conftest.$ac_ext <<_ACEOF
9475/* confdefs.h. */
9476_ACEOF
9477cat confdefs.h >>conftest.$ac_ext
9478cat >>conftest.$ac_ext <<_ACEOF
9479/* end confdefs.h. */
9480$ac_includes_default
9481int
9482main ()
9483{
9484static int test_array [1 - 2 * !(((long) (sizeof (int *))) < 0)];
9485test_array [0] = 0
9486
9487 ;
9488 return 0;
9489}
9490_ACEOF
9491rm -f conftest.$ac_objext
9492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9493 (eval $ac_compile) 2>conftest.er1
9494 ac_status=$?
9495 grep -v '^ *+' conftest.er1 >conftest.err
9496 rm -f conftest.er1
9497 cat conftest.err >&5
9498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9499 (exit $ac_status); } &&
9500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9502 (eval $ac_try) 2>&5
9503 ac_status=$?
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); }; } &&
9506 { ac_try='test -s conftest.$ac_objext'
9507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9508 (eval $ac_try) 2>&5
9509 ac_status=$?
9510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9511 (exit $ac_status); }; }; then
9512 ac_hi=-1 ac_mid=-1
9513 while :; do
9514 cat >conftest.$ac_ext <<_ACEOF
9515/* confdefs.h. */
9516_ACEOF
9517cat confdefs.h >>conftest.$ac_ext
9518cat >>conftest.$ac_ext <<_ACEOF
9519/* end confdefs.h. */
9520$ac_includes_default
9521int
9522main ()
9523{
9524static int test_array [1 - 2 * !(((long) (sizeof (int *))) >= $ac_mid)];
9525test_array [0] = 0
9526
9527 ;
9528 return 0;
9529}
9530_ACEOF
9531rm -f conftest.$ac_objext
9532if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9533 (eval $ac_compile) 2>conftest.er1
9534 ac_status=$?
9535 grep -v '^ *+' conftest.er1 >conftest.err
9536 rm -f conftest.er1
9537 cat conftest.err >&5
9538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9539 (exit $ac_status); } &&
9540 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9542 (eval $ac_try) 2>&5
9543 ac_status=$?
9544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9545 (exit $ac_status); }; } &&
9546 { ac_try='test -s conftest.$ac_objext'
9547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9548 (eval $ac_try) 2>&5
9549 ac_status=$?
9550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9551 (exit $ac_status); }; }; then
9552 ac_lo=$ac_mid; break
9553else
9554 echo "$as_me: failed program was:" >&5
9555sed 's/^/| /' conftest.$ac_ext >&5
9556
9557ac_hi=`expr '(' $ac_mid ')' - 1`
9558 if test $ac_mid -le $ac_hi; then
9559 ac_lo= ac_hi=
9560 break
9561 fi
9562 ac_mid=`expr 2 '*' $ac_mid`
9563fi
9564rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9565 done
9566else
9567 echo "$as_me: failed program was:" >&5
9568sed 's/^/| /' conftest.$ac_ext >&5
9569
9570ac_lo= ac_hi=
9571fi
9572rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9573fi
9574rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9575# Binary search between lo and hi bounds.
9576while test "x$ac_lo" != "x$ac_hi"; do
9577 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
9578 cat >conftest.$ac_ext <<_ACEOF
9579/* confdefs.h. */
9580_ACEOF
9581cat confdefs.h >>conftest.$ac_ext
9582cat >>conftest.$ac_ext <<_ACEOF
9583/* end confdefs.h. */
9584$ac_includes_default
9585int
9586main ()
9587{
9588static int test_array [1 - 2 * !(((long) (sizeof (int *))) <= $ac_mid)];
9589test_array [0] = 0
9590
9591 ;
9592 return 0;
9593}
9594_ACEOF
9595rm -f conftest.$ac_objext
9596if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9597 (eval $ac_compile) 2>conftest.er1
9598 ac_status=$?
9599 grep -v '^ *+' conftest.er1 >conftest.err
9600 rm -f conftest.er1
9601 cat conftest.err >&5
9602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9603 (exit $ac_status); } &&
9604 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9606 (eval $ac_try) 2>&5
9607 ac_status=$?
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); }; } &&
9610 { ac_try='test -s conftest.$ac_objext'
9611 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9612 (eval $ac_try) 2>&5
9613 ac_status=$?
9614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9615 (exit $ac_status); }; }; then
9616 ac_hi=$ac_mid
9617else
9618 echo "$as_me: failed program was:" >&5
9619sed 's/^/| /' conftest.$ac_ext >&5
9620
9621ac_lo=`expr '(' $ac_mid ')' + 1`
9622fi
9623rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9624done
9625case $ac_lo in
9626?*) ac_cv_sizeof_int_p=$ac_lo;;
9627'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9628See \`config.log' for more details." >&5
9629echo "$as_me: error: cannot compute sizeof (int *), 77
9630See \`config.log' for more details." >&2;}
9631 { (exit 1); exit 1; }; } ;;
9632esac
9633else
9634 if test "$cross_compiling" = yes; then
9635 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
9636echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
9637 { (exit 1); exit 1; }; }
9638else
9639 cat >conftest.$ac_ext <<_ACEOF
9640/* confdefs.h. */
9641_ACEOF
9642cat confdefs.h >>conftest.$ac_ext
9643cat >>conftest.$ac_ext <<_ACEOF
9644/* end confdefs.h. */
9645$ac_includes_default
9646long longval () { return (long) (sizeof (int *)); }
9647unsigned long ulongval () { return (long) (sizeof (int *)); }
9648#include <stdio.h>
9649#include <stdlib.h>
9650int
9651main ()
9652{
9653
9654 FILE *f = fopen ("conftest.val", "w");
9655 if (! f)
9656 exit (1);
9657 if (((long) (sizeof (int *))) < 0)
9658 {
9659 long i = longval ();
9660 if (i != ((long) (sizeof (int *))))
9661 exit (1);
9662 fprintf (f, "%ld\n", i);
9663 }
9664 else
9665 {
9666 unsigned long i = ulongval ();
9667 if (i != ((long) (sizeof (int *))))
9668 exit (1);
9669 fprintf (f, "%lu\n", i);
9670 }
9671 exit (ferror (f) || fclose (f) != 0);
9672
9673 ;
9674 return 0;
9675}
9676_ACEOF
9677rm -f conftest$ac_exeext
9678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9679 (eval $ac_link) 2>&5
9680 ac_status=$?
9681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9682 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9683 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9684 (eval $ac_try) 2>&5
9685 ac_status=$?
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); }; }; then
9688 ac_cv_sizeof_int_p=`cat conftest.val`
9689else
9690 echo "$as_me: program exited with status $ac_status" >&5
9691echo "$as_me: failed program was:" >&5
9692sed 's/^/| /' conftest.$ac_ext >&5
9693
9694( exit $ac_status )
9695{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int *), 77
9696See \`config.log' for more details." >&5
9697echo "$as_me: error: cannot compute sizeof (int *), 77
9698See \`config.log' for more details." >&2;}
9699 { (exit 1); exit 1; }; }
9700fi
9701rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9702fi
9703fi
9704rm -f conftest.val
9705else
9706 ac_cv_sizeof_int_p=0
9707fi
9708fi
9709echo "$as_me:$LINENO: result: $ac_cv_sizeof_int_p" >&5
9710echo "${ECHO_T}$ac_cv_sizeof_int_p" >&6
9711cat >>confdefs.h <<_ACEOF
9712#define SIZEOF_INT_P $ac_cv_sizeof_int_p
9713_ACEOF
9714
9715
9716
9717
9718echo "$as_me:$LINENO: checking for int16_t" >&5
9719echo $ECHO_N "checking for int16_t... $ECHO_C" >&6
9720if test "${rxvt_cv_int16_t+set}" = set; then
9721 echo $ECHO_N "(cached) $ECHO_C" >&6
9722else
9723 cat >conftest.$ac_ext <<_ACEOF
9724/* confdefs.h. */
9725_ACEOF
9726cat confdefs.h >>conftest.$ac_ext
9727cat >>conftest.$ac_ext <<_ACEOF
9728/* end confdefs.h. */
9729#include <stdint.h>
9730int
9731main ()
9732{
9733int16_t dummy;
9734 ;
9735 return 0;
9736}
9737_ACEOF
9738rm -f conftest.$ac_objext
9739if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9740 (eval $ac_compile) 2>conftest.er1
9741 ac_status=$?
9742 grep -v '^ *+' conftest.er1 >conftest.err
9743 rm -f conftest.er1
9744 cat conftest.err >&5
9745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9746 (exit $ac_status); } &&
9747 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9749 (eval $ac_try) 2>&5
9750 ac_status=$?
9751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9752 (exit $ac_status); }; } &&
9753 { ac_try='test -s conftest.$ac_objext'
9754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9755 (eval $ac_try) 2>&5
9756 ac_status=$?
9757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9758 (exit $ac_status); }; }; then
9759 rxvt_cv_int16_t=yes
9760else
9761 echo "$as_me: failed program was:" >&5
9762sed 's/^/| /' conftest.$ac_ext >&5
9763
9764if test "$ac_cv_sizeof_char" -ge 2; then
9765 rxvt_cv_int16_t=" char"
9766else
9767 if test "$ac_cv_sizeof_short" -ge 2; then
9768 rxvt_cv_int16_t=" short"
9769 else
9770 if test "$ac_cv_sizeof_int" -ge 2; then
9771 rxvt_cv_int16_t=" int"
9772 else
9773 if test "$ac_cv_sizeof_long" -ge 2; then
9774 rxvt_cv_int16_t=" long"
9775 else
9776 if test "$ac_cv_sizeof_long_long" -ge 2; then
9777 rxvt_cv_int16_t=" long long"
9778 else
9779 rxvt_cv_int16_t=" short" # we _must_ have a (possibly wrong) default
9780 fi
9781 fi
9782 fi 6732 fi
9783 fi
9784fi 6733fi
9785fi
9786rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9787fi
9788echo "$as_me:$LINENO: result: $rxvt_cv_int16_t" >&5
9789echo "${ECHO_T}$rxvt_cv_int16_t" >&6
9790if test x"$rxvt_cv_int16_t" != xyes; then
9791 rxvt_int16_typedef="typedef $rxvt_cv_int16_t int16_t;"
9792else
9793 if test x"" = x; then
9794 rxvt_int16_typedef="/* typedef short int16_t; */"
9795 else
9796 rxvt_int16_typedef="/* typedef short int16_t; */"
9797 fi
9798fi
9799 6734
9800echo "$as_me:$LINENO: checking for uint16_t" >&5
9801echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
9802if test "${rxvt_cv_uint16_t+set}" = set; then
9803 echo $ECHO_N "(cached) $ECHO_C" >&6
9804else
9805 cat >conftest.$ac_ext <<_ACEOF
9806/* confdefs.h. */
9807_ACEOF
9808cat confdefs.h >>conftest.$ac_ext
9809cat >>conftest.$ac_ext <<_ACEOF
9810/* end confdefs.h. */
9811#include <stdint.h>
9812int
9813main ()
9814{
9815uint16_t dummy;
9816 ;
9817 return 0;
9818}
9819_ACEOF
9820rm -f conftest.$ac_objext
9821if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9822 (eval $ac_compile) 2>conftest.er1
9823 ac_status=$?
9824 grep -v '^ *+' conftest.er1 >conftest.err
9825 rm -f conftest.er1
9826 cat conftest.err >&5
9827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9828 (exit $ac_status); } &&
9829 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9831 (eval $ac_try) 2>&5
9832 ac_status=$?
9833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9834 (exit $ac_status); }; } &&
9835 { ac_try='test -s conftest.$ac_objext'
9836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9837 (eval $ac_try) 2>&5
9838 ac_status=$?
9839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9840 (exit $ac_status); }; }; then
9841 rxvt_cv_uint16_t=yes
9842else
9843 echo "$as_me: failed program was:" >&5
9844sed 's/^/| /' conftest.$ac_ext >&5
9845 6735
9846if test "$ac_cv_sizeof_char" -ge 2; then 6736# Check whether --enable-wtmp was given.
9847 rxvt_cv_uint16_t="unsigned char" 6737if test "${enable_wtmp+set}" = set; then :
9848else 6738 enableval=$enable_wtmp; if test x$enableval = xyes -o x$enableval = xno; then
9849 if test "$ac_cv_sizeof_short" -ge 2; then 6739 support_wtmp=$enableval
9850 rxvt_cv_uint16_t="unsigned short"
9851 else
9852 if test "$ac_cv_sizeof_int" -ge 2; then
9853 rxvt_cv_uint16_t="unsigned int"
9854 else
9855 if test "$ac_cv_sizeof_long" -ge 2; then
9856 rxvt_cv_uint16_t="unsigned long"
9857 else
9858 if test "$ac_cv_sizeof_long_long" -ge 2; then
9859 rxvt_cv_uint16_t="unsigned long long"
9860 else
9861 rxvt_cv_uint16_t="unsigned short" # we _must_ have a (possibly wrong) default
9862 fi
9863 fi
9864 fi 6740 fi
9865 fi
9866fi 6741fi
9867fi
9868rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9869fi
9870echo "$as_me:$LINENO: result: $rxvt_cv_uint16_t" >&5
9871echo "${ECHO_T}$rxvt_cv_uint16_t" >&6
9872if test x"$rxvt_cv_uint16_t" != xyes; then
9873 rxvt_uint16_typedef="typedef $rxvt_cv_uint16_t uint16_t;"
9874else
9875 if test x"unsigned" = x; then
9876 rxvt_uint16_typedef="/* typedef short uint16_t; */"
9877 else
9878 rxvt_uint16_typedef="/* typedef unsigned short uint16_t; */"
9879 fi
9880fi
9881 6742
9882echo "$as_me:$LINENO: checking for int32_t" >&5
9883echo $ECHO_N "checking for int32_t... $ECHO_C" >&6
9884if test "${rxvt_cv_int32_t+set}" = set; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9886else
9887 cat >conftest.$ac_ext <<_ACEOF
9888/* confdefs.h. */
9889_ACEOF
9890cat confdefs.h >>conftest.$ac_ext
9891cat >>conftest.$ac_ext <<_ACEOF
9892/* end confdefs.h. */
9893#include <stdint.h>
9894int
9895main ()
9896{
9897int32_t dummy;
9898 ;
9899 return 0;
9900}
9901_ACEOF
9902rm -f conftest.$ac_objext
9903if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9904 (eval $ac_compile) 2>conftest.er1
9905 ac_status=$?
9906 grep -v '^ *+' conftest.er1 >conftest.err
9907 rm -f conftest.er1
9908 cat conftest.err >&5
9909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9910 (exit $ac_status); } &&
9911 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9913 (eval $ac_try) 2>&5
9914 ac_status=$?
9915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9916 (exit $ac_status); }; } &&
9917 { ac_try='test -s conftest.$ac_objext'
9918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9919 (eval $ac_try) 2>&5
9920 ac_status=$?
9921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9922 (exit $ac_status); }; }; then
9923 rxvt_cv_int32_t=yes
9924else
9925 echo "$as_me: failed program was:" >&5
9926sed 's/^/| /' conftest.$ac_ext >&5
9927 6743
9928if test "$ac_cv_sizeof_char" -ge 4; then 6744# Check whether --enable-lastlog was given.
9929 rxvt_cv_int32_t=" char" 6745if test "${enable_lastlog+set}" = set; then :
9930else 6746 enableval=$enable_lastlog; if test x$enableval = xyes -o x$enableval = xno; then
9931 if test "$ac_cv_sizeof_short" -ge 4; then 6747 support_lastlog=$enableval
9932 rxvt_cv_int32_t=" short"
9933 else
9934 if test "$ac_cv_sizeof_int" -ge 4; then
9935 rxvt_cv_int32_t=" int"
9936 else
9937 if test "$ac_cv_sizeof_long" -ge 4; then
9938 rxvt_cv_int32_t=" long"
9939 else
9940 if test "$ac_cv_sizeof_long_long" -ge 4; then
9941 rxvt_cv_int32_t=" long long"
9942 else
9943 rxvt_cv_int32_t=" int" # we _must_ have a (possibly wrong) default
9944 fi
9945 fi
9946 fi 6748 fi
9947 fi
9948fi 6749fi
9949fi
9950rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9951fi
9952echo "$as_me:$LINENO: result: $rxvt_cv_int32_t" >&5
9953echo "${ECHO_T}$rxvt_cv_int32_t" >&6
9954if test x"$rxvt_cv_int32_t" != xyes; then
9955 rxvt_int32_typedef="typedef $rxvt_cv_int32_t int32_t;"
9956else
9957 if test x"" = x; then
9958 rxvt_int32_typedef="/* typedef int int32_t; */"
9959 else
9960 rxvt_int32_typedef="/* typedef int int32_t; */"
9961 fi
9962fi
9963 6750
9964echo "$as_me:$LINENO: checking for uint32_t" >&5
9965echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
9966if test "${rxvt_cv_uint32_t+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9968else
9969 cat >conftest.$ac_ext <<_ACEOF
9970/* confdefs.h. */
9971_ACEOF
9972cat confdefs.h >>conftest.$ac_ext
9973cat >>conftest.$ac_ext <<_ACEOF
9974/* end confdefs.h. */
9975#include <stdint.h>
9976int
9977main ()
9978{
9979uint32_t dummy;
9980 ;
9981 return 0;
9982}
9983_ACEOF
9984rm -f conftest.$ac_objext
9985if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9986 (eval $ac_compile) 2>conftest.er1
9987 ac_status=$?
9988 grep -v '^ *+' conftest.er1 >conftest.err
9989 rm -f conftest.er1
9990 cat conftest.err >&5
9991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9992 (exit $ac_status); } &&
9993 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
9994 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9995 (eval $ac_try) 2>&5
9996 ac_status=$?
9997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9998 (exit $ac_status); }; } &&
9999 { ac_try='test -s conftest.$ac_objext'
10000 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10001 (eval $ac_try) 2>&5
10002 ac_status=$?
10003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10004 (exit $ac_status); }; }; then
10005 rxvt_cv_uint32_t=yes
10006else
10007 echo "$as_me: failed program was:" >&5
10008sed 's/^/| /' conftest.$ac_ext >&5
10009 6751
10010if test "$ac_cv_sizeof_char" -ge 4; then 6752if test x$support_utmp = xyes; then
10011 rxvt_cv_uint32_t="unsigned char"
10012else
10013 if test "$ac_cv_sizeof_short" -ge 4; then
10014 rxvt_cv_uint32_t="unsigned short"
10015 else
10016 if test "$ac_cv_sizeof_int" -ge 4; then
10017 rxvt_cv_uint32_t="unsigned int"
10018 else
10019 if test "$ac_cv_sizeof_long" -ge 4; then
10020 rxvt_cv_uint32_t="unsigned long"
10021 else
10022 if test "$ac_cv_sizeof_long_long" -ge 4; then
10023 rxvt_cv_uint32_t="unsigned long long"
10024 else
10025 rxvt_cv_uint32_t="unsigned int" # we _must_ have a (possibly wrong) default
10026 fi
10027 fi
10028 fi
10029 fi
10030fi
10031fi
10032rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10033fi
10034echo "$as_me:$LINENO: result: $rxvt_cv_uint32_t" >&5
10035echo "${ECHO_T}$rxvt_cv_uint32_t" >&6
10036if test x"$rxvt_cv_uint32_t" != xyes; then
10037 rxvt_uint32_typedef="typedef $rxvt_cv_uint32_t uint32_t;"
10038else
10039 if test x"unsigned" = x; then
10040 rxvt_uint32_typedef="/* typedef int uint32_t; */"
10041 else
10042 rxvt_uint32_typedef="/* typedef unsigned int uint32_t; */"
10043 fi
10044fi
10045 6753
10046if test "$ac_cv_sizeof_int_p" -eq 8; then 6754$as_echo "#define UTMP_SUPPORT 1" >>confdefs.h
10047 rxvt_intp_define="#define intp_t int64_t"
10048 rxvt_u_intp_define="#define u_intp_t u_int64_t"
10049else
10050 if test "$ac_cv_sizeof_int_p" -eq 4; then
10051 rxvt_intp_define="#define intp_t int32_t"
10052 rxvt_u_intp_define="#define u_intp_t u_int32_t"
10053 else
10054 if test "$ac_cv_sizeof_int_p" -eq 2; then
10055 rxvt_intp_define="#define intp_t int16_t"
10056 rxvt_u_intp_define="#define u_intp_t u_int16_t"
10057 else
10058 rxvt_intp_define="#error set intp_t"
10059 rxvt_u_intp_define="#error set u_intp_t"
10060 fi
10061 fi
10062fi
10063 6755
10064
10065
10066echo "$as_me:$LINENO: checking return type of signal handlers" >&5
10067echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
10068if test "${ac_cv_type_signal+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10070else
10071 cat >conftest.$ac_ext <<_ACEOF
10072/* confdefs.h. */
10073_ACEOF
10074cat confdefs.h >>conftest.$ac_ext
10075cat >>conftest.$ac_ext <<_ACEOF
10076/* end confdefs.h. */
10077#include <sys/types.h>
10078#include <signal.h>
10079#ifdef signal
10080# undef signal
10081#endif
10082#ifdef __cplusplus
10083extern "C" void (*signal (int, void (*)(int)))(int);
10084#else
10085void (*signal ()) ();
10086#endif
10087
10088int
10089main ()
10090{
10091int i;
10092 ;
10093 return 0;
10094}
10095_ACEOF
10096rm -f conftest.$ac_objext
10097if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10098 (eval $ac_compile) 2>conftest.er1
10099 ac_status=$?
10100 grep -v '^ *+' conftest.er1 >conftest.err
10101 rm -f conftest.er1
10102 cat conftest.err >&5
10103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10104 (exit $ac_status); } &&
10105 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10107 (eval $ac_try) 2>&5
10108 ac_status=$?
10109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10110 (exit $ac_status); }; } &&
10111 { ac_try='test -s conftest.$ac_objext'
10112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10113 (eval $ac_try) 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); }; }; then
10117 ac_cv_type_signal=void
10118else
10119 echo "$as_me: failed program was:" >&5
10120sed 's/^/| /' conftest.$ac_ext >&5
10121
10122ac_cv_type_signal=int
10123fi 6756fi
10124rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 6757if test x$support_wtmp = xyes; then
10125fi
10126echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
10127echo "${ECHO_T}$ac_cv_type_signal" >&6
10128 6758
10129cat >>confdefs.h <<_ACEOF 6759$as_echo "#define WTMP_SUPPORT 1" >>confdefs.h
10130#define RETSIGTYPE $ac_cv_type_signal
10131_ACEOF
10132 6760
6761fi
6762if test x$support_lastlog = xyes; then
10133 6763
6764$as_echo "#define LASTLOG_SUPPORT 1" >>confdefs.h
10134 6765
10135 6766fi
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150 6767
10151for ac_func in \ 6768for ac_func in \
10152 revoke \
10153 unsetenv \
10154 setutent \
10155 seteuid \
10156 setreuid \
10157 _getpty \
10158 getpt \
10159 posix_openpt \
10160 grantpt \
10161 unlockpt \
10162 isastream \
10163 on_exit \
10164 nanosleep \
10165 updwtmp \ 6769 updwtmp \
10166 updwtmpx \ 6770 updwtmpx \
10167 ttyslot \ 6771 updlastlogx \
10168 6772
10169do 6773do :
10170as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 6774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10171echo "$as_me:$LINENO: checking for $ac_func" >&5 6775ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
10172echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10173if eval "test \"\${$as_ac_var+set}\" = set"; then 6776if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10174 echo $ECHO_N "(cached) $ECHO_C" >&6
10175else
10176 cat >conftest.$ac_ext <<_ACEOF
10177/* confdefs.h. */
10178_ACEOF
10179cat confdefs.h >>conftest.$ac_ext
10180cat >>conftest.$ac_ext <<_ACEOF
10181/* end confdefs.h. */
10182/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10184#define $ac_func innocuous_$ac_func
10185
10186/* System header to define __stub macros and hopefully few prototypes,
10187 which can conflict with char $ac_func (); below.
10188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10189 <limits.h> exists even on freestanding compilers. */
10190
10191#ifdef __STDC__
10192# include <limits.h>
10193#else
10194# include <assert.h>
10195#endif
10196
10197#undef $ac_func
10198
10199/* Override any gcc2 internal prototype to avoid an error. */
10200#ifdef __cplusplus
10201extern "C"
10202{
10203#endif
10204/* We use char because int might match the return type of a gcc2
10205 builtin and then its argument prototype would still apply. */
10206char $ac_func ();
10207/* The GNU C library defines this for functions which it implements
10208 to always fail with ENOSYS. Some functions are actually named
10209 something starting with __ and the normal name is an alias. */
10210#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10211choke me
10212#else
10213char (*f) () = $ac_func;
10214#endif
10215#ifdef __cplusplus
10216}
10217#endif
10218
10219int
10220main ()
10221{
10222return f != $ac_func;
10223 ;
10224 return 0;
10225}
10226_ACEOF
10227rm -f conftest.$ac_objext conftest$ac_exeext
10228if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10229 (eval $ac_link) 2>conftest.er1
10230 ac_status=$?
10231 grep -v '^ *+' conftest.er1 >conftest.err
10232 rm -f conftest.er1
10233 cat conftest.err >&5
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); } &&
10236 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10238 (eval $ac_try) 2>&5
10239 ac_status=$?
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); }; } &&
10242 { ac_try='test -s conftest$ac_exeext'
10243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10244 (eval $ac_try) 2>&5
10245 ac_status=$?
10246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10247 (exit $ac_status); }; }; then
10248 eval "$as_ac_var=yes"
10249else
10250 echo "$as_me: failed program was:" >&5
10251sed 's/^/| /' conftest.$ac_ext >&5
10252
10253eval "$as_ac_var=no"
10254fi
10255rm -f conftest.err conftest.$ac_objext \
10256 conftest$ac_exeext conftest.$ac_ext
10257fi
10258echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10259echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10260if test `eval echo '${'$as_ac_var'}'` = yes; then
10261 cat >>confdefs.h <<_ACEOF 6777 cat >>confdefs.h <<_ACEOF
10262#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 6778#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10263_ACEOF 6779_ACEOF
10264 6780
10265fi 6781fi
10266done 6782done
10267 6783
10268 6784
10269 6785for ac_header in lastlog.h
10270if test "${ac_cv_header_utmp_h+set}" = set; then 6786do :
10271 echo "$as_me:$LINENO: checking for utmp.h" >&5 6787 ac_fn_cxx_check_header_mongrel "$LINENO" "lastlog.h" "ac_cv_header_lastlog_h" "$ac_includes_default"
10272echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6 6788if test "x$ac_cv_header_lastlog_h" = xyes; then :
10273if test "${ac_cv_header_utmp_h+set}" = set; then
10274 echo $ECHO_N "(cached) $ECHO_C" >&6
10275fi
10276echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10277echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10278else
10279 # Is the header compilable?
10280echo "$as_me:$LINENO: checking utmp.h usability" >&5
10281echo $ECHO_N "checking utmp.h usability... $ECHO_C" >&6
10282cat >conftest.$ac_ext <<_ACEOF
10283/* confdefs.h. */
10284_ACEOF
10285cat confdefs.h >>conftest.$ac_ext
10286cat >>conftest.$ac_ext <<_ACEOF 6789 cat >>confdefs.h <<_ACEOF
10287/* end confdefs.h. */ 6790#define HAVE_LASTLOG_H 1
10288$ac_includes_default
10289#include <utmp.h>
10290_ACEOF 6791_ACEOF
10291rm -f conftest.$ac_objext
10292if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10293 (eval $ac_compile) 2>conftest.er1
10294 ac_status=$?
10295 grep -v '^ *+' conftest.er1 >conftest.err
10296 rm -f conftest.er1
10297 cat conftest.err >&5
10298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10299 (exit $ac_status); } &&
10300 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10301 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10302 (eval $ac_try) 2>&5
10303 ac_status=$?
10304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); }; } &&
10306 { ac_try='test -s conftest.$ac_objext'
10307 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10308 (eval $ac_try) 2>&5
10309 ac_status=$?
10310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10311 (exit $ac_status); }; }; then
10312 ac_header_compiler=yes
10313else
10314 echo "$as_me: failed program was:" >&5
10315sed 's/^/| /' conftest.$ac_ext >&5
10316 6792
10317ac_header_compiler=no
10318fi 6793fi
10319rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10320echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10321echo "${ECHO_T}$ac_header_compiler" >&6
10322 6794
10323# Is the header present? 6795done
10324echo "$as_me:$LINENO: checking utmp.h presence" >&5
10325echo $ECHO_N "checking utmp.h presence... $ECHO_C" >&6
10326cat >conftest.$ac_ext <<_ACEOF
10327/* confdefs.h. */
10328_ACEOF
10329cat confdefs.h >>conftest.$ac_ext
10330cat >>conftest.$ac_ext <<_ACEOF
10331/* end confdefs.h. */
10332#include <utmp.h>
10333_ACEOF
10334if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10335 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10336 ac_status=$?
10337 grep -v '^ *+' conftest.er1 >conftest.err
10338 rm -f conftest.er1
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } >/dev/null; then
10342 if test -s conftest.err; then
10343 ac_cpp_err=$ac_cxx_preproc_warn_flag
10344 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10345 else
10346 ac_cpp_err=
10347 fi
10348else
10349 ac_cpp_err=yes
10350fi
10351if test -z "$ac_cpp_err"; then
10352 ac_header_preproc=yes
10353else
10354 echo "$as_me: failed program was:" >&5
10355sed 's/^/| /' conftest.$ac_ext >&5
10356 6796
10357 ac_header_preproc=no
10358fi
10359rm -f conftest.err conftest.$ac_ext
10360echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10361echo "${ECHO_T}$ac_header_preproc" >&6
10362 6797
10363# So? What about this header? 6798case $host in
10364case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in 6799 *-*-solaris*)
10365 yes:no: ) 6800
10366 { echo "$as_me:$LINENO: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&5 6801$as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
10367echo "$as_me: WARNING: utmp.h: accepted by the compiler, rejected by the preprocessor!" >&2;} 6802
10368 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the compiler's result" >&5
10369echo "$as_me: WARNING: utmp.h: proceeding with the compiler's result" >&2;}
10370 ac_header_preproc=yes
10371 ;; 6803 ;;
10372 no:yes:* )
10373 { echo "$as_me:$LINENO: WARNING: utmp.h: present but cannot be compiled" >&5
10374echo "$as_me: WARNING: utmp.h: present but cannot be compiled" >&2;}
10375 { echo "$as_me:$LINENO: WARNING: utmp.h: check for missing prerequisite headers?" >&5
10376echo "$as_me: WARNING: utmp.h: check for missing prerequisite headers?" >&2;}
10377 { echo "$as_me:$LINENO: WARNING: utmp.h: see the Autoconf documentation" >&5
10378echo "$as_me: WARNING: utmp.h: see the Autoconf documentation" >&2;}
10379 { echo "$as_me:$LINENO: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&5
10380echo "$as_me: WARNING: utmp.h: section \"Present But Cannot Be Compiled\"" >&2;}
10381 { echo "$as_me:$LINENO: WARNING: utmp.h: proceeding with the preprocessor's result" >&5
10382echo "$as_me: WARNING: utmp.h: proceeding with the preprocessor's result" >&2;}
10383 { echo "$as_me:$LINENO: WARNING: utmp.h: in the future, the compiler will take precedence" >&5
10384echo "$as_me: WARNING: utmp.h: in the future, the compiler will take precedence" >&2;}
10385 (
10386 cat <<\_ASBOX
10387## ------------------------------------------ ##
10388## Report this to the AC_PACKAGE_NAME lists. ##
10389## ------------------------------------------ ##
10390_ASBOX
10391 ) |
10392 sed "s/^/$as_me: WARNING: /" >&2
10393 ;;
10394esac 6804esac
10395echo "$as_me:$LINENO: checking for utmp.h" >&5
10396echo $ECHO_N "checking for utmp.h... $ECHO_C" >&6
10397if test "${ac_cv_header_utmp_h+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10399else
10400 ac_cv_header_utmp_h=$ac_header_preproc
10401fi
10402echo "$as_me:$LINENO: result: $ac_cv_header_utmp_h" >&5
10403echo "${ECHO_T}$ac_cv_header_utmp_h" >&6
10404 6805
10405fi 6806
6807for ac_header in utmp.h
6808do :
6809 ac_fn_cxx_check_header_mongrel "$LINENO" "utmp.h" "ac_cv_header_utmp_h" "$ac_includes_default"
10406if test $ac_cv_header_utmp_h = yes; then 6810if test "x$ac_cv_header_utmp_h" = xyes; then :
10407 echo "$as_me:$LINENO: checking for struct utmp" >&5
10408echo $ECHO_N "checking for struct utmp... $ECHO_C" >&6
10409if test "${rxvt_cv_struct_utmp+set}" = set; then
10410 echo $ECHO_N "(cached) $ECHO_C" >&6
10411else
10412 cat >conftest.$ac_ext <<_ACEOF
10413/* confdefs.h. */
10414_ACEOF
10415cat confdefs.h >>conftest.$ac_ext
10416cat >>conftest.$ac_ext <<_ACEOF
10417/* end confdefs.h. */
10418#include <sys/types.h>
10419#include <stdint.h>
10420#include <utmp.h>
10421int
10422main ()
10423{
10424struct utmp ut;
10425 ;
10426 return 0;
10427}
10428_ACEOF
10429rm -f conftest.$ac_objext
10430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10431 (eval $ac_compile) 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); } &&
10438 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10440 (eval $ac_try) 2>&5
10441 ac_status=$?
10442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10443 (exit $ac_status); }; } &&
10444 { ac_try='test -s conftest.$ac_objext'
10445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10446 (eval $ac_try) 2>&5
10447 ac_status=$?
10448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10449 (exit $ac_status); }; }; then
10450 rxvt_cv_struct_utmp=yes
10451else
10452 echo "$as_me: failed program was:" >&5
10453sed 's/^/| /' conftest.$ac_ext >&5
10454
10455rxvt_cv_struct_utmp=no
10456fi
10457rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10458fi
10459echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp" >&5
10460echo "${ECHO_T}$rxvt_cv_struct_utmp" >&6
10461if test x$rxvt_cv_struct_utmp = xyes; then
10462
10463cat >>confdefs.h <<\_ACEOF 6811 cat >>confdefs.h <<_ACEOF
10464#define HAVE_STRUCT_UTMP 1 6812#define HAVE_UTMP_H 1
10465_ACEOF 6813_ACEOF
10466 6814
10467fi 6815ac_fn_cxx_check_type "$LINENO" "struct utmp" "ac_cv_type_struct_utmp" "
10468
10469
10470echo "$as_me:$LINENO: checking for ut_host in utmp struct" >&5
10471echo $ECHO_N "checking for ut_host in utmp struct... $ECHO_C" >&6
10472if test "${rxvt_cv_struct_utmp_host+set}" = set; then
10473 echo $ECHO_N "(cached) $ECHO_C" >&6
10474else
10475 cat >conftest.$ac_ext <<_ACEOF
10476/* confdefs.h. */
10477_ACEOF
10478cat confdefs.h >>conftest.$ac_ext
10479cat >>conftest.$ac_ext <<_ACEOF
10480/* end confdefs.h. */
10481#include <sys/types.h> 6816#include <sys/types.h>
10482#include <utmp.h> 6817#include <utmp.h>
10483int
10484main ()
10485{
10486struct utmp ut; ut.ut_host;
10487 ;
10488 return 0;
10489}
10490_ACEOF
10491rm -f conftest.$ac_objext
10492if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10493 (eval $ac_compile) 2>conftest.er1
10494 ac_status=$?
10495 grep -v '^ *+' conftest.er1 >conftest.err
10496 rm -f conftest.er1
10497 cat conftest.err >&5
10498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10499 (exit $ac_status); } &&
10500 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10502 (eval $ac_try) 2>&5
10503 ac_status=$?
10504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10505 (exit $ac_status); }; } &&
10506 { ac_try='test -s conftest.$ac_objext'
10507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10508 (eval $ac_try) 2>&5
10509 ac_status=$?
10510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10511 (exit $ac_status); }; }; then
10512 rxvt_cv_struct_utmp_host=yes
10513else
10514 echo "$as_me: failed program was:" >&5
10515sed 's/^/| /' conftest.$ac_ext >&5
10516 6818
10517rxvt_cv_struct_utmp_host=no 6819"
10518fi
10519rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10520fi
10521echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_host" >&5
10522echo "${ECHO_T}$rxvt_cv_struct_utmp_host" >&6
10523if test x$rxvt_cv_struct_utmp_host = xyes; then 6820if test "x$ac_cv_type_struct_utmp" = xyes; then :
10524 6821
10525cat >>confdefs.h <<\_ACEOF 6822cat >>confdefs.h <<_ACEOF
10526#define HAVE_UTMP_HOST 1 6823#define HAVE_STRUCT_UTMP 1
10527_ACEOF 6824_ACEOF
10528 6825
10529fi
10530 6826
10531echo "$as_me:$LINENO: checking for ut_pid in utmp struct" >&5 6827fi
10532echo $ECHO_N "checking for ut_pid in utmp struct... $ECHO_C" >&6 6828
10533if test "${rxvt_cv_struct_utmp_pid+set}" = set; then 6829
10534 echo $ECHO_N "(cached) $ECHO_C" >&6 6830ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_host" "ac_cv_member_struct_utmp_ut_host" "
10535else
10536 cat >conftest.$ac_ext <<_ACEOF
10537/* confdefs.h. */
10538_ACEOF
10539cat confdefs.h >>conftest.$ac_ext
10540cat >>conftest.$ac_ext <<_ACEOF
10541/* end confdefs.h. */
10542#include <sys/types.h> 6831#include <sys/types.h>
10543#include <utmp.h> 6832#include <utmp.h>
10544int
10545main ()
10546{
10547struct utmp ut; ut.ut_pid;
10548 ;
10549 return 0;
10550}
10551_ACEOF
10552rm -f conftest.$ac_objext
10553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10554 (eval $ac_compile) 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } &&
10561 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10562 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10563 (eval $ac_try) 2>&5
10564 ac_status=$?
10565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10566 (exit $ac_status); }; } &&
10567 { ac_try='test -s conftest.$ac_objext'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10570 ac_status=$?
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; }; then
10573 rxvt_cv_struct_utmp_pid=yes
10574else
10575 echo "$as_me: failed program was:" >&5
10576sed 's/^/| /' conftest.$ac_ext >&5
10577 6833
10578rxvt_cv_struct_utmp_pid=no 6834"
10579fi 6835if test "x$ac_cv_member_struct_utmp_ut_host" = xyes; then :
10580rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10581fi
10582echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmp_pid" >&5
10583echo "${ECHO_T}$rxvt_cv_struct_utmp_pid" >&6
10584if test x$rxvt_cv_struct_utmp_pid = xyes; then
10585 6836
10586cat >>confdefs.h <<\_ACEOF 6837$as_echo "#define HAVE_UTMP_HOST 1" >>confdefs.h
10587#define HAVE_UTMP_PID 1
10588_ACEOF
10589 6838
10590fi 6839fi
10591 6840
10592fi
10593 6841
10594 6842ac_fn_cxx_check_member "$LINENO" "struct utmp" "ut_pid" "ac_cv_member_struct_utmp_ut_pid" "
10595 6843#include <sys/types.h>
10596if test "${ac_cv_header_utmpx_h+set}" = set; then
10597 echo "$as_me:$LINENO: checking for utmpx.h" >&5
10598echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10599if test "${ac_cv_header_utmpx_h+set}" = set; then
10600 echo $ECHO_N "(cached) $ECHO_C" >&6
10601fi
10602echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10603echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10604else
10605 # Is the header compilable?
10606echo "$as_me:$LINENO: checking utmpx.h usability" >&5
10607echo $ECHO_N "checking utmpx.h usability... $ECHO_C" >&6
10608cat >conftest.$ac_ext <<_ACEOF
10609/* confdefs.h. */
10610_ACEOF
10611cat confdefs.h >>conftest.$ac_ext
10612cat >>conftest.$ac_ext <<_ACEOF
10613/* end confdefs.h. */
10614$ac_includes_default
10615#include <utmpx.h> 6844#include <utmp.h>
10616_ACEOF
10617rm -f conftest.$ac_objext
10618if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10619 (eval $ac_compile) 2>conftest.er1
10620 ac_status=$?
10621 grep -v '^ *+' conftest.er1 >conftest.err
10622 rm -f conftest.er1
10623 cat conftest.err >&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } &&
10626 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10628 (eval $ac_try) 2>&5
10629 ac_status=$?
10630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10631 (exit $ac_status); }; } &&
10632 { ac_try='test -s conftest.$ac_objext'
10633 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10634 (eval $ac_try) 2>&5
10635 ac_status=$?
10636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10637 (exit $ac_status); }; }; then
10638 ac_header_compiler=yes
10639else
10640 echo "$as_me: failed program was:" >&5
10641sed 's/^/| /' conftest.$ac_ext >&5
10642 6845
10643ac_header_compiler=no 6846"
10644fi 6847if test "x$ac_cv_member_struct_utmp_ut_pid" = xyes; then :
10645rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10646echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10647echo "${ECHO_T}$ac_header_compiler" >&6
10648 6848
10649# Is the header present? 6849$as_echo "#define HAVE_UTMP_PID 1" >>confdefs.h
10650echo "$as_me:$LINENO: checking utmpx.h presence" >&5
10651echo $ECHO_N "checking utmpx.h presence... $ECHO_C" >&6
10652cat >conftest.$ac_ext <<_ACEOF
10653/* confdefs.h. */
10654_ACEOF
10655cat confdefs.h >>conftest.$ac_ext
10656cat >>conftest.$ac_ext <<_ACEOF
10657/* end confdefs.h. */
10658#include <utmpx.h>
10659_ACEOF
10660if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10661 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10662 ac_status=$?
10663 grep -v '^ *+' conftest.er1 >conftest.err
10664 rm -f conftest.er1
10665 cat conftest.err >&5
10666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10667 (exit $ac_status); } >/dev/null; then
10668 if test -s conftest.err; then
10669 ac_cpp_err=$ac_cxx_preproc_warn_flag
10670 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
10671 else
10672 ac_cpp_err=
10673 fi
10674else
10675 ac_cpp_err=yes
10676fi
10677if test -z "$ac_cpp_err"; then
10678 ac_header_preproc=yes
10679else
10680 echo "$as_me: failed program was:" >&5
10681sed 's/^/| /' conftest.$ac_ext >&5
10682 6850
10683 ac_header_preproc=no
10684fi 6851fi
10685rm -f conftest.err conftest.$ac_ext
10686echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10687echo "${ECHO_T}$ac_header_preproc" >&6
10688 6852
10689# So? What about this header?
10690case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
10691 yes:no: )
10692 { echo "$as_me:$LINENO: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&5
10693echo "$as_me: WARNING: utmpx.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10694 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the compiler's result" >&5
10695echo "$as_me: WARNING: utmpx.h: proceeding with the compiler's result" >&2;}
10696 ac_header_preproc=yes
10697 ;;
10698 no:yes:* )
10699 { echo "$as_me:$LINENO: WARNING: utmpx.h: present but cannot be compiled" >&5
10700echo "$as_me: WARNING: utmpx.h: present but cannot be compiled" >&2;}
10701 { echo "$as_me:$LINENO: WARNING: utmpx.h: check for missing prerequisite headers?" >&5
10702echo "$as_me: WARNING: utmpx.h: check for missing prerequisite headers?" >&2;}
10703 { echo "$as_me:$LINENO: WARNING: utmpx.h: see the Autoconf documentation" >&5
10704echo "$as_me: WARNING: utmpx.h: see the Autoconf documentation" >&2;}
10705 { echo "$as_me:$LINENO: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&5
10706echo "$as_me: WARNING: utmpx.h: section \"Present But Cannot Be Compiled\"" >&2;}
10707 { echo "$as_me:$LINENO: WARNING: utmpx.h: proceeding with the preprocessor's result" >&5
10708echo "$as_me: WARNING: utmpx.h: proceeding with the preprocessor's result" >&2;}
10709 { echo "$as_me:$LINENO: WARNING: utmpx.h: in the future, the compiler will take precedence" >&5
10710echo "$as_me: WARNING: utmpx.h: in the future, the compiler will take precedence" >&2;}
10711 (
10712 cat <<\_ASBOX
10713## ------------------------------------------ ##
10714## Report this to the AC_PACKAGE_NAME lists. ##
10715## ------------------------------------------ ##
10716_ASBOX
10717 ) |
10718 sed "s/^/$as_me: WARNING: /" >&2
10719 ;;
10720esac
10721echo "$as_me:$LINENO: checking for utmpx.h" >&5
10722echo $ECHO_N "checking for utmpx.h... $ECHO_C" >&6
10723if test "${ac_cv_header_utmpx_h+set}" = set; then
10724 echo $ECHO_N "(cached) $ECHO_C" >&6
10725else
10726 ac_cv_header_utmpx_h=$ac_header_preproc
10727fi
10728echo "$as_me:$LINENO: result: $ac_cv_header_utmpx_h" >&5
10729echo "${ECHO_T}$ac_cv_header_utmpx_h" >&6
10730 6853
10731fi 6854fi
6855
6856done
6857
6858
6859for ac_header in utmpx.h
6860do :
6861 ac_fn_cxx_check_header_mongrel "$LINENO" "utmpx.h" "ac_cv_header_utmpx_h" "$ac_includes_default"
10732if test $ac_cv_header_utmpx_h = yes; then 6862if test "x$ac_cv_header_utmpx_h" = xyes; then :
10733 echo "$as_me:$LINENO: checking for struct utmpx" >&5
10734echo $ECHO_N "checking for struct utmpx... $ECHO_C" >&6
10735if test "${rxvt_cv_struct_utmpx+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10737else
10738 cat >conftest.$ac_ext <<_ACEOF 6863 cat >>confdefs.h <<_ACEOF
10739/* confdefs.h. */ 6864#define HAVE_UTMPX_H 1
10740_ACEOF 6865_ACEOF
10741cat confdefs.h >>conftest.$ac_ext 6866
10742cat >>conftest.$ac_ext <<_ACEOF 6867ac_fn_cxx_check_type "$LINENO" "struct utmpx" "ac_cv_type_struct_utmpx" "
10743/* end confdefs.h. */
10744#include <sys/types.h> 6868#include <sys/types.h>
10745#include <utmpx.h> 6869#include <utmpx.h>
10746int
10747main ()
10748{
10749struct utmpx ut;
10750 ;
10751 return 0;
10752}
10753_ACEOF
10754rm -f conftest.$ac_objext
10755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10756 (eval $ac_compile) 2>conftest.er1
10757 ac_status=$?
10758 grep -v '^ *+' conftest.er1 >conftest.err
10759 rm -f conftest.er1
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } &&
10763 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10765 (eval $ac_try) 2>&5
10766 ac_status=$?
10767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10768 (exit $ac_status); }; } &&
10769 { ac_try='test -s conftest.$ac_objext'
10770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10771 (eval $ac_try) 2>&5
10772 ac_status=$?
10773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10774 (exit $ac_status); }; }; then
10775 rxvt_cv_struct_utmpx=yes
10776else
10777 echo "$as_me: failed program was:" >&5
10778sed 's/^/| /' conftest.$ac_ext >&5
10779 6870
10780rxvt_cv_struct_utmpx=no 6871"
10781fi
10782rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10783fi
10784echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx" >&5
10785echo "${ECHO_T}$rxvt_cv_struct_utmpx" >&6
10786if test x$rxvt_cv_struct_utmpx = xyes; then 6872if test "x$ac_cv_type_struct_utmpx" = xyes; then :
10787 6873
10788cat >>confdefs.h <<\_ACEOF 6874cat >>confdefs.h <<_ACEOF
10789#define HAVE_STRUCT_UTMPX 1 6875#define HAVE_STRUCT_UTMPX 1
10790_ACEOF 6876_ACEOF
10791 6877
10792fi
10793 6878
6879fi
10794 6880
10795echo "$as_me:$LINENO: checking for host in utmpx struct" >&5 6881
10796echo $ECHO_N "checking for host in utmpx struct... $ECHO_C" >&6 6882ac_fn_cxx_check_member "$LINENO" "struct utmpx" "ut_host" "ac_cv_member_struct_utmpx_ut_host" "
10797if test "${rxvt_cv_struct_utmpx_host+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> 6883#include <sys/types.h>
10807#include <utmpx.h> 6884#include <utmpx.h>
10808int
10809main ()
10810{
10811struct utmpx utx; utx.ut_host;
10812 ;
10813 return 0;
10814}
10815_ACEOF
10816rm -f conftest.$ac_objext
10817if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10818 (eval $ac_compile) 2>conftest.er1
10819 ac_status=$?
10820 grep -v '^ *+' conftest.er1 >conftest.err
10821 rm -f conftest.er1
10822 cat conftest.err >&5
10823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10824 (exit $ac_status); } &&
10825 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10827 (eval $ac_try) 2>&5
10828 ac_status=$?
10829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10830 (exit $ac_status); }; } &&
10831 { ac_try='test -s conftest.$ac_objext'
10832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10833 (eval $ac_try) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); }; }; then
10837 rxvt_cv_struct_utmpx_host=yes
10838else
10839 echo "$as_me: failed program was:" >&5
10840sed 's/^/| /' conftest.$ac_ext >&5
10841 6885
10842rxvt_cv_struct_utmpx_host=no 6886"
10843fi
10844rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10845fi
10846echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_host" >&5
10847echo "${ECHO_T}$rxvt_cv_struct_utmpx_host" >&6
10848if test x$rxvt_cv_struct_utmpx_host = xyes; then 6887if test "x$ac_cv_member_struct_utmpx_ut_host" = xyes; then :
10849 6888
10850cat >>confdefs.h <<\_ACEOF 6889$as_echo "#define HAVE_UTMPX_HOST 1" >>confdefs.h
10851#define HAVE_UTMPX_HOST 1
10852_ACEOF
10853 6890
10854fi 6891fi
10855 6892
10856echo "$as_me:$LINENO: checking for session in utmpx struct" >&5
10857echo $ECHO_N "checking for session in utmpx struct... $ECHO_C" >&6
10858if test "${rxvt_cv_struct_utmpx_session+set}" = set; then
10859 echo $ECHO_N "(cached) $ECHO_C" >&6
10860else
10861 cat >conftest.$ac_ext <<_ACEOF
10862/* confdefs.h. */
10863_ACEOF
10864cat confdefs.h >>conftest.$ac_ext
10865cat >>conftest.$ac_ext <<_ACEOF
10866/* end confdefs.h. */
10867#include <sys/types.h>
10868#include <utmpx.h>
10869int
10870main ()
10871{
10872struct utmpx utx; utx.ut_session;
10873 ;
10874 return 0;
10875}
10876_ACEOF
10877rm -f conftest.$ac_objext
10878if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10879 (eval $ac_compile) 2>conftest.er1
10880 ac_status=$?
10881 grep -v '^ *+' conftest.er1 >conftest.err
10882 rm -f conftest.er1
10883 cat conftest.err >&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } &&
10886 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10888 (eval $ac_try) 2>&5
10889 ac_status=$?
10890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10891 (exit $ac_status); }; } &&
10892 { ac_try='test -s conftest.$ac_objext'
10893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10894 (eval $ac_try) 2>&5
10895 ac_status=$?
10896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10897 (exit $ac_status); }; }; then
10898 rxvt_cv_struct_utmpx_session=yes
10899else
10900 echo "$as_me: failed program was:" >&5
10901sed 's/^/| /' conftest.$ac_ext >&5
10902 6893
10903rxvt_cv_struct_utmpx_session=no
10904fi 6894fi
10905rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10906fi
10907echo "$as_me:$LINENO: result: $rxvt_cv_struct_utmpx_session" >&5
10908echo "${ECHO_T}$rxvt_cv_struct_utmpx_session" >&6
10909if test x$rxvt_cv_struct_utmpx_session = xyes; then
10910 6895
10911cat >>confdefs.h <<\_ACEOF 6896done
10912#define HAVE_UTMPX_SESSION 1
10913_ACEOF
10914 6897
10915fi 6898ac_fn_cxx_check_type "$LINENO" "struct lastlog" "ac_cv_type_struct_lastlog" "
10916
10917fi
10918
10919
10920echo "$as_me:$LINENO: checking for struct lastlog" >&5
10921echo $ECHO_N "checking for struct lastlog... $ECHO_C" >&6
10922if test "${rxvt_cv_struct_lastlog+set}" = set; then
10923 echo $ECHO_N "(cached) $ECHO_C" >&6
10924else
10925 cat >conftest.$ac_ext <<_ACEOF
10926/* confdefs.h. */
10927_ACEOF
10928cat confdefs.h >>conftest.$ac_ext
10929cat >>conftest.$ac_ext <<_ACEOF
10930/* end confdefs.h. */
10931#include <sys/types.h> 6899#include <sys/types.h>
10932#include <utmp.h> 6900#include <utmp.h>
10933#ifdef HAVE_LASTLOG_H 6901#ifdef HAVE_LASTLOG_H
10934#include <lastlog.h> 6902#include <lastlog.h>
10935#endif 6903#endif
10936 6904
10937int 6905"
10938main ()
10939{
10940struct lastlog ll;
10941 ;
10942 return 0;
10943}
10944_ACEOF
10945rm -f conftest.$ac_objext
10946if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10947 (eval $ac_compile) 2>conftest.er1
10948 ac_status=$?
10949 grep -v '^ *+' conftest.er1 >conftest.err
10950 rm -f conftest.er1
10951 cat conftest.err >&5
10952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10953 (exit $ac_status); } &&
10954 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
10955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10956 (eval $ac_try) 2>&5
10957 ac_status=$?
10958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10959 (exit $ac_status); }; } &&
10960 { ac_try='test -s conftest.$ac_objext'
10961 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10962 (eval $ac_try) 2>&5
10963 ac_status=$?
10964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10965 (exit $ac_status); }; }; then
10966 rxvt_cv_struct_lastlog=yes
10967else
10968 echo "$as_me: failed program was:" >&5
10969sed 's/^/| /' conftest.$ac_ext >&5
10970
10971rxvt_cv_struct_lastlog=no
10972fi
10973rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10974fi
10975echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlog" >&5
10976echo "${ECHO_T}$rxvt_cv_struct_lastlog" >&6
10977if test x$rxvt_cv_struct_lastlog = xyes; then 6906if test "x$ac_cv_type_struct_lastlog" = xyes; then :
10978 6907
10979cat >>confdefs.h <<\_ACEOF 6908cat >>confdefs.h <<_ACEOF
10980#define HAVE_STRUCT_LASTLOG 1 6909#define HAVE_STRUCT_LASTLOG 1
10981_ACEOF 6910_ACEOF
10982 6911
10983fi
10984 6912
10985echo "$as_me:$LINENO: checking for struct lastlogx" >&5 6913fi
10986echo $ECHO_N "checking for struct lastlogx... $ECHO_C" >&6 6914
10987if test "${rxvt_cv_struct_lastlogx+set}" = set; then 6915
10988 echo $ECHO_N "(cached) $ECHO_C" >&6 6916ac_fn_cxx_check_type "$LINENO" "struct lastlogx" "ac_cv_type_struct_lastlogx" "
10989else
10990 cat >conftest.$ac_ext <<_ACEOF
10991/* confdefs.h. */
10992_ACEOF
10993cat confdefs.h >>conftest.$ac_ext
10994cat >>conftest.$ac_ext <<_ACEOF
10995/* end confdefs.h. */
10996#include <sys/types.h> 6917#include <sys/types.h>
10997#include <utmpx.h> 6918#include <utmpx.h>
10998#ifdef HAVE_LASTLOG_H 6919#ifdef HAVE_LASTLOG_H
10999#include <lastlog.h> 6920#include <lastlog.h>
11000#endif 6921#endif
11001 6922
11002int 6923"
11003main ()
11004{
11005struct lastlogx ll;
11006 ;
11007 return 0;
11008}
11009_ACEOF
11010rm -f conftest.$ac_objext
11011if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11012 (eval $ac_compile) 2>conftest.er1
11013 ac_status=$?
11014 grep -v '^ *+' conftest.er1 >conftest.err
11015 rm -f conftest.er1
11016 cat conftest.err >&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } &&
11019 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11021 (eval $ac_try) 2>&5
11022 ac_status=$?
11023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11024 (exit $ac_status); }; } &&
11025 { ac_try='test -s conftest.$ac_objext'
11026 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11027 (eval $ac_try) 2>&5
11028 ac_status=$?
11029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11030 (exit $ac_status); }; }; then
11031 rxvt_cv_struct_lastlogx=yes
11032else
11033 echo "$as_me: failed program was:" >&5
11034sed 's/^/| /' conftest.$ac_ext >&5
11035
11036rxvt_cv_struct_lastlogx=no
11037fi
11038rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11039fi
11040echo "$as_me:$LINENO: result: $rxvt_cv_struct_lastlogx" >&5
11041echo "${ECHO_T}$rxvt_cv_struct_lastlogx" >&6
11042if test x$rxvt_cv_struct_lastlogx = xyes; then 6924if test "x$ac_cv_type_struct_lastlogx" = xyes; then :
11043 6925
11044cat >>confdefs.h <<\_ACEOF 6926cat >>confdefs.h <<_ACEOF
11045#define HAVE_STRUCT_LASTLOGX 1 6927#define HAVE_STRUCT_LASTLOGX 1
11046_ACEOF 6928_ACEOF
11047 6929
11048fi
11049 6930
6931fi
11050 6932
11051echo "$as_me:$LINENO: checking where utmp is located" >&5 6933
11052echo $ECHO_N "checking where utmp is located... $ECHO_C" >&6 6934
6935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of utmp" >&5
6936$as_echo_n "checking for a fallback location of utmp... " >&6; }
6937if ${pt_cv_path_utmp+:} false; then :
6938 $as_echo_n "(cached) " >&6
6939else
6940
6941if test "$cross_compiling" != yes; then
6942 for file in "/var/run/utmp" "/var/adm/utmp" "/etc/utmp" "/usr/etc/utmp" "/usr/adm/utmp"; do
6943 if test -f "$file"; then
6944 pt_cv_path_utmp=$file
6945 break
6946 fi
6947 done
6948fi
6949fi
6950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_utmp" >&5
6951$as_echo "$pt_cv_path_utmp" >&6; }
11053if test "${rxvt_cv_path_utmp+set}" = set; then 6952if test x$pt_cv_path_utmp != x; then
11054 echo $ECHO_N "(cached) $ECHO_C" >&6 6953
6954cat >>confdefs.h <<_ACEOF
6955#define PT_UTMP_FILE "$pt_cv_path_utmp"
6956_ACEOF
6957
6958elif test "$cross_compiling" = yes; then
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_UTMP_FILE in config.h manually" >&5
6960$as_echo "$as_me: WARNING: Define PT_UTMP_FILE in config.h manually" >&2;}
6961fi
6962
6963
6964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmp" >&5
6965$as_echo_n "checking for a fallback location of wtmp... " >&6; }
6966if ${pt_cv_path_wtmp+:} false; then :
6967 $as_echo_n "(cached) " >&6
11055else 6968else
6969
6970if test "$cross_compiling" != yes; then
6971 for file in "/var/log/wtmp" "/var/adm/wtmp" "/etc/wtmp" "/usr/etc/wtmp" "/usr/adm/wtmp"; do
6972 if test -f "$file"; then
6973 pt_cv_path_wtmp=$file
6974 break
6975 fi
6976 done
6977fi
6978fi
6979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmp" >&5
6980$as_echo "$pt_cv_path_wtmp" >&6; }
6981if test x$pt_cv_path_wtmp != x; then
6982
6983cat >>confdefs.h <<_ACEOF
6984#define PT_WTMP_FILE "$pt_cv_path_wtmp"
6985_ACEOF
6986
6987elif test "$cross_compiling" = yes; then
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMP_FILE in config.h manually" >&5
6989$as_echo "$as_me: WARNING: Define PT_WTMP_FILE in config.h manually" >&2;}
6990fi
6991
6992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of wtmpx" >&5
6993$as_echo_n "checking for a fallback location of wtmpx... " >&6; }
6994if ${pt_cv_path_wtmpx+:} false; then :
6995 $as_echo_n "(cached) " >&6
6996else
6997
6998if test "$cross_compiling" != yes; then
6999 for file in "/var/log/wtmpx" "/var/adm/wtmpx"; do
7000 if test -f "$file"; then
7001 pt_cv_path_wtmpx=$file
7002 break
7003 fi
7004 done
7005fi
7006fi
7007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_wtmpx" >&5
7008$as_echo "$pt_cv_path_wtmpx" >&6; }
7009if test x$pt_cv_path_wtmpx != x; then
7010
7011cat >>confdefs.h <<_ACEOF
7012#define PT_WTMPX_FILE "$pt_cv_path_wtmpx"
7013_ACEOF
7014
7015elif test "$cross_compiling" = yes; then
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_WTMPX_FILE in config.h manually" >&5
7017$as_echo "$as_me: WARNING: Define PT_WTMPX_FILE in config.h manually" >&2;}
7018fi
7019
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlog" >&5
7021$as_echo_n "checking for a fallback location of lastlog... " >&6; }
7022if ${pt_cv_path_lastlog+:} false; then :
7023 $as_echo_n "(cached) " >&6
7024else
7025
7026if test "$cross_compiling" != yes; then
7027 for file in "/var/log/lastlog" "/var/adm/lastlog"; do
7028 if test -f "$file"; then
7029 pt_cv_path_lastlog=$file
7030 break
7031 fi
7032 done
7033fi
7034fi
7035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlog" >&5
7036$as_echo "$pt_cv_path_lastlog" >&6; }
7037if test x$pt_cv_path_lastlog != x; then
7038
7039cat >>confdefs.h <<_ACEOF
7040#define PT_LASTLOG_FILE "$pt_cv_path_lastlog"
7041_ACEOF
7042
7043elif test "$cross_compiling" = yes; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&5
7045$as_echo "$as_me: WARNING: Define PT_LASTLOG_FILE in config.h manually" >&2;}
7046fi
7047
7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a fallback location of lastlogx" >&5
7049$as_echo_n "checking for a fallback location of lastlogx... " >&6; }
7050if ${pt_cv_path_lastlogx+:} false; then :
7051 $as_echo_n "(cached) " >&6
7052else
7053
7054if test "$cross_compiling" != yes; then
7055 for file in "/var/log/lastlogx" "/var/adm/lastlogx"; do
7056 if test -f "$file"; then
7057 pt_cv_path_lastlogx=$file
7058 break
7059 fi
7060 done
7061fi
7062fi
7063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_path_lastlogx" >&5
7064$as_echo "$pt_cv_path_lastlogx" >&6; }
7065if test x$pt_cv_path_lastlogx != x; then
7066
7067cat >>confdefs.h <<_ACEOF
7068#define PT_LASTLOGX_FILE "$pt_cv_path_lastlogx"
7069_ACEOF
7070
7071elif test "$cross_compiling" = yes; then
7072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&5
7073$as_echo "$as_me: WARNING: Define PT_LASTLOGX_FILE in config.h manually" >&2;}
7074fi
7075
7076
7077
7078
7079save_LIBS=$LIBS
7080save_CXXFLAGS=$CXXFLAGS
7081CXXFLAGS="$CXXFLAGS $X_CFLAGS"
7082LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
7083if test x$support_xim = xyes; then
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xlocale" >&5
7085$as_echo_n "checking for working Xlocale... " >&6; }
7086if ${rxvt_cv_func_xlocale+:} false; then :
7087 $as_echo_n "(cached) " >&6
7088else
11056 if test "$cross_compiling" = yes; then 7089 if test "$cross_compiling" = yes; then :
11057 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&5 7090 :
11058echo "$as_me: WARNING: Define RXVT_UTMP_FILE in config.h manually" >&2;}
11059else 7091else
11060 cat >conftest.$ac_ext <<_ACEOF
11061/* confdefs.h. */
11062_ACEOF
11063cat confdefs.h >>conftest.$ac_ext 7092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11064cat >>conftest.$ac_ext <<_ACEOF
11065/* end confdefs.h. */ 7093/* end confdefs.h. */
7094
7095 #include <X11/Xlib.h>
11066#include <stdio.h> 7096 #include <stdlib.h>
11067#include <sys/types.h> 7097 int main() {
11068#include <utmp.h> 7098 char *p;
11069#include <errno.h> 7099 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11070main() 7100 exit (XSupportsLocale() ? 0 : 1);
11071{ 7101 else
11072 char **u, *utmplist[] = {
11073 "/var/run/utmp", "/var/adm/utmp", "/etc/utmp", "/usr/etc/utmp", "/usr/adm/utmp", NULL };
11074 FILE *a, *f=fopen("conftestval", "w");
11075 if (!f) exit(1);
11076#ifdef UTMP_FILE
11077 fprintf(f, "%s\n", UTMP_FILE);
11078 exit(0); 7102 exit (1);
11079#endif 7103 }
11080#ifdef _PATH_UTMP 7104
11081 fprintf(f, "%s\n", _PATH_UTMP); 7105_ACEOF
11082 exit(0); 7106if ac_fn_cxx_try_run "$LINENO"; then :
11083#endif 7107 rxvt_cv_func_xlocale=yes
11084 for (u = utmplist; *u; u++) { 7108else
11085 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) { 7109 rxvt_cv_func_xlocale=no
11086 fprintf(f, "%s\n", *u); 7110fi
11087 exit(0); 7111rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11088 } 7112 conftest.$ac_objext conftest.beam conftest.$ac_ext
7113fi
7114
7115fi
7116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xlocale" >&5
7117$as_echo "$rxvt_cv_func_xlocale" >&6; }
7118 if test x$rxvt_cv_func_xlocale = xyes; then
7119
7120$as_echo "#define USE_XIM 1" >>confdefs.h
7121
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken XIM callback" >&5
7123$as_echo_n "checking for broken XIM callback... " >&6; }
7124if ${rxvt_cv_broken_ximcb+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126else
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128/* end confdefs.h. */
7129
7130 #include <X11/Xlib.h>
7131
7132 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
7133
7134 void f() {
7135 XIMCallback cb;
7136 cb.callback = im_destroy_cb;
11089 } 7137 }
11090 exit(0);
11091}
11092_ACEOF
11093rm -f conftest$ac_exeext
11094if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11095 (eval $ac_link) 2>&5
11096 ac_status=$?
11097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11098 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11100 (eval $ac_try) 2>&5
11101 ac_status=$?
11102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11103 (exit $ac_status); }; }; then
11104 rxvt_cv_path_utmp=`cat conftestval`
11105else
11106 echo "$as_me: program exited with status $ac_status" >&5
11107echo "$as_me: failed program was:" >&5
11108sed 's/^/| /' conftest.$ac_ext >&5
11109 7138
11110( exit $ac_status ) 7139_ACEOF
11111rxvt_cv_path_utmp= 7140if ac_fn_cxx_try_compile "$LINENO"; then :
7141 rxvt_cv_broken_ximcb=yes
7142else
7143 rxvt_cv_broken_ximcb=no
11112fi 7144fi
11113rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 7145rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11114fi 7146fi
11115fi 7147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_broken_ximcb" >&5
11116echo "$as_me:$LINENO: result: $rxvt_cv_path_utmp" >&5 7148$as_echo "$rxvt_cv_broken_ximcb" >&6; }
11117echo "${ECHO_T}$rxvt_cv_path_utmp" >&6
11118if test x$rxvt_cv_path_utmp != x; then
11119 7149
11120cat >>confdefs.h <<_ACEOF 7150 if test x$rxvt_cv_broken_ximcb = xyes; then
11121#define RXVT_UTMP_FILE "$rxvt_cv_path_utmp"
11122_ACEOF
11123 7151
11124fi 7152$as_echo "#define XIMCB_PROTO_BROKEN 1" >>confdefs.h
11125 7153
11126
11127echo "$as_me:$LINENO: checking where utmpx is located" >&5
11128echo $ECHO_N "checking where utmpx is located... $ECHO_C" >&6
11129if test "${rxvt_cv_path_utmpx+set}" = set; then
11130 echo $ECHO_N "(cached) $ECHO_C" >&6
11131else
11132 if test "$cross_compiling" = yes; then
11133 { echo "$as_me:$LINENO: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&5
11134echo "$as_me: WARNING: Define RXVT_UTMPX_FILE in config.h manually" >&2;}
11135else
11136 cat >conftest.$ac_ext <<_ACEOF
11137/* confdefs.h. */
11138_ACEOF
11139cat confdefs.h >>conftest.$ac_ext
11140cat >>conftest.$ac_ext <<_ACEOF
11141/* end confdefs.h. */
11142#include <stdio.h>
11143#include <sys/types.h>
11144#include <utmpx.h>
11145#include <errno.h>
11146#include <sys/stat.h>
11147#ifdef HAVE_STRING_H
11148#include <string.h>
11149#endif
11150main()
11151{
11152 char **u, *p, *utmplist[] = {
11153#ifdef UTMPX_FILE
11154 UTMPX_FILE,
11155#endif
11156#ifdef _PATH_UTMPX
11157 _PATH_UTMPX,
11158#endif
11159 "/var/adm/utmpx", "/etc/utmpx", NULL };
11160 FILE *a, *f=fopen("conftestval", "w");
11161 struct stat statu, statux;
11162 if (!f) exit(1);
11163 for (u = utmplist; *u; u++) {
11164 if ((a = fopen(*u, "r")) != NULL || errno == EACCES) {
11165 if (stat(*u, &statux) < 0)
11166 continue;
11167 p = strdup(*u);
11168 p[strlen(p) - 1] = '\0';
11169 if (stat(p, &statu) >= 0
11170 && (statu.st_mtime - statux.st_mtime > 86400))
11171 continue;
11172 fprintf(f, "%s\n", *u);
11173 exit(0);
11174 }
11175 }
11176 exit(0);
11177}
11178_ACEOF
11179rm -f conftest$ac_exeext
11180if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11181 (eval $ac_link) 2>&5
11182 ac_status=$?
11183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11184 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11186 (eval $ac_try) 2>&5
11187 ac_status=$?
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); }; }; then
11190 rxvt_cv_path_utmpx=`cat conftestval`
11191else
11192 echo "$as_me: program exited with status $ac_status" >&5
11193echo "$as_me: failed program was:" >&5
11194sed 's/^/| /' conftest.$ac_ext >&5
11195
11196( exit $ac_status )
11197rxvt_cv_path_utmpx=
11198fi
11199rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11200fi
11201fi
11202echo "$as_me:$LINENO: result: $rxvt_cv_path_utmpx" >&5
11203echo "${ECHO_T}$rxvt_cv_path_utmpx" >&6
11204if test x$rxvt_cv_path_utmpx != x; then
11205
11206cat >>confdefs.h <<_ACEOF
11207#define RXVT_UTMPX_FILE "$rxvt_cv_path_utmpx"
11208_ACEOF
11209
11210fi
11211
11212
11213echo "$as_me:$LINENO: checking where wtmp is located" >&5
11214echo $ECHO_N "checking where wtmp is located... $ECHO_C" >&6
11215if test "${rxvt_cv_path_wtmp+set}" = set; then
11216 echo $ECHO_N "(cached) $ECHO_C" >&6
11217else
11218 if test "$cross_compiling" = yes; then
11219 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&5
11220echo "$as_me: WARNING: Define RXVT_WTMP_FILE in config.h manually" >&2;}
11221else
11222 cat >conftest.$ac_ext <<_ACEOF
11223/* confdefs.h. */
11224_ACEOF
11225cat confdefs.h >>conftest.$ac_ext
11226cat >>conftest.$ac_ext <<_ACEOF
11227/* end confdefs.h. */
11228#include <stdio.h>
11229#include <sys/types.h>
11230#ifdef HAVE_UTMP_H
11231#include <utmp.h>
11232#endif
11233#include <errno.h>
11234main()
11235{
11236 char **w, *wtmplist[] = {
11237 "/var/log/wtmp", "/var/adm/wtmp", "/etc/wtmp", "/usr/etc/wtmp", "/usr/adm/wtmp", NULL };
11238 FILE *a, *f=fopen("conftestval", "w");
11239 if (!f) exit(1);
11240#ifdef WTMP_FILE
11241 fprintf(f, "%s\n", WTMP_FILE);
11242 exit(0);
11243#endif
11244#ifdef _PATH_WTMP
11245 fprintf(f, "%s\n", _PATH_WTMP);
11246 exit(0);
11247#endif
11248 for (w = wtmplist; *w; w++) {
11249 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11250 fprintf(f, "%s\n", *w);
11251 exit(0);
11252 }
11253 }
11254 exit(0);
11255}
11256_ACEOF
11257rm -f conftest$ac_exeext
11258if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11259 (eval $ac_link) 2>&5
11260 ac_status=$?
11261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11262 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11264 (eval $ac_try) 2>&5
11265 ac_status=$?
11266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11267 (exit $ac_status); }; }; then
11268 rxvt_cv_path_wtmp=`cat conftestval`
11269else
11270 echo "$as_me: program exited with status $ac_status" >&5
11271echo "$as_me: failed program was:" >&5
11272sed 's/^/| /' conftest.$ac_ext >&5
11273
11274( exit $ac_status )
11275rxvt_cv_path_wtmp=
11276fi
11277rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11278fi
11279fi
11280echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmp" >&5
11281echo "${ECHO_T}$rxvt_cv_path_wtmp" >&6
11282if test x$rxvt_cv_path_wtmp != x; then
11283
11284cat >>confdefs.h <<_ACEOF
11285#define RXVT_WTMP_FILE "$rxvt_cv_path_wtmp"
11286_ACEOF
11287
11288fi
11289
11290echo "$as_me:$LINENO: checking where wtmpx is located" >&5
11291echo $ECHO_N "checking where wtmpx is located... $ECHO_C" >&6
11292if test "${rxvt_cv_path_wtmpx+set}" = set; then
11293 echo $ECHO_N "(cached) $ECHO_C" >&6
11294else
11295 if test "$cross_compiling" = yes; then
11296 { echo "$as_me:$LINENO: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&5
11297echo "$as_me: WARNING: Define RXVT_WTMPX_FILE in config.h manually" >&2;}
11298else
11299 cat >conftest.$ac_ext <<_ACEOF
11300/* confdefs.h. */
11301_ACEOF
11302cat confdefs.h >>conftest.$ac_ext
11303cat >>conftest.$ac_ext <<_ACEOF
11304/* end confdefs.h. */
11305#include <stdio.h>
11306#ifdef HAVE_UTMPX_H
11307#include <utmpx.h>
11308#endif
11309#include <errno.h>
11310main()
11311{
11312 char **w, *wtmplist[] = {
11313 "/var/log/wtmpx", "/var/adm/wtmpx", NULL };
11314 FILE *a, *f=fopen("conftestval", "w");
11315 if (!f) exit(1);
11316#ifdef WTMPX_FILE
11317 fprintf(f, "%s\n", WTMPX_FILE);
11318 exit(0);
11319#endif
11320#ifdef _PATH_WTMPX
11321 fprintf(f, "%s\n", _PATH_WTMPX);
11322 exit(0);
11323#endif
11324 for (w = wtmplist; *w; w++) {
11325 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11326 fprintf(f, "%s\n", *w);
11327 exit(0);
11328 }
11329 }
11330 exit(0);
11331}
11332_ACEOF
11333rm -f conftest$ac_exeext
11334if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11335 (eval $ac_link) 2>&5
11336 ac_status=$?
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11340 (eval $ac_try) 2>&5
11341 ac_status=$?
11342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11343 (exit $ac_status); }; }; then
11344 rxvt_cv_path_wtmpx=`cat conftestval`
11345else
11346 echo "$as_me: program exited with status $ac_status" >&5
11347echo "$as_me: failed program was:" >&5
11348sed 's/^/| /' conftest.$ac_ext >&5
11349
11350( exit $ac_status )
11351rxvt_cv_path_wtmpx=
11352fi
11353rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11354fi
11355fi
11356echo "$as_me:$LINENO: result: $rxvt_cv_path_wtmpx" >&5
11357echo "${ECHO_T}$rxvt_cv_path_wtmpx" >&6
11358if test x$rxvt_cv_path_wtmpx != x; then
11359
11360cat >>confdefs.h <<_ACEOF
11361#define RXVT_WTMPX_FILE "$rxvt_cv_path_wtmpx"
11362_ACEOF
11363
11364fi
11365
11366echo "$as_me:$LINENO: checking where lastlog is located" >&5
11367echo $ECHO_N "checking where lastlog is located... $ECHO_C" >&6
11368if test "${rxvt_cv_path_lastlog+set}" = set; then
11369 echo $ECHO_N "(cached) $ECHO_C" >&6
11370else
11371 if test "$cross_compiling" = yes; then
11372 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&5
11373echo "$as_me: WARNING: Define RXVT_LASTLOG_FILE in config.h manually" >&2;}
11374else
11375 cat >conftest.$ac_ext <<_ACEOF
11376/* confdefs.h. */
11377_ACEOF
11378cat confdefs.h >>conftest.$ac_ext
11379cat >>conftest.$ac_ext <<_ACEOF
11380/* end confdefs.h. */
11381#include <stdio.h>
11382#include <sys/types.h>
11383#ifdef HAVE_UTMPX_H
11384#include <utmpx.h>
11385#elif defined(HAVE_UTMP_H)
11386#include <utmp.h>
11387#endif
11388#ifdef HAVE_LASTLOG_H
11389#include <lastlog.h>
11390#endif
11391#include <errno.h>
11392main()
11393{
11394 char **w, *lastloglist[] = { "/var/log/lastlog", NULL };
11395 FILE *a, *f=fopen("conftestval", "w");
11396 if (!f) exit(1);
11397#ifdef LASTLOG_FILE
11398 fprintf(f, "%s\n", LASTLOG_FILE);
11399 exit(0);
11400#endif
11401#ifdef _PATH_LASTLOG
11402 fprintf(f, "%s\n", _PATH_LASTLOG);
11403 exit(0);
11404#endif
11405 for (w = lastloglist; *w; w++) {
11406 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11407 fprintf(f, "%s\n", *w);
11408 exit(0);
11409 }
11410 }
11411 exit(0);
11412}
11413_ACEOF
11414rm -f conftest$ac_exeext
11415if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11416 (eval $ac_link) 2>&5
11417 ac_status=$?
11418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11419 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11421 (eval $ac_try) 2>&5
11422 ac_status=$?
11423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11424 (exit $ac_status); }; }; then
11425 rxvt_cv_path_lastlog=`cat conftestval`
11426else
11427 echo "$as_me: program exited with status $ac_status" >&5
11428echo "$as_me: failed program was:" >&5
11429sed 's/^/| /' conftest.$ac_ext >&5
11430
11431( exit $ac_status )
11432rxvt_cv_path_lastlog=
11433fi
11434rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11435fi
11436fi
11437echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlog" >&5
11438echo "${ECHO_T}$rxvt_cv_path_lastlog" >&6
11439if test x$rxvt_cv_path_lastlog != x; then
11440
11441cat >>confdefs.h <<_ACEOF
11442#define RXVT_LASTLOG_FILE "$rxvt_cv_path_lastlog"
11443_ACEOF
11444
11445 if test -d "$rxvt_cv_path_lastlog"; then
11446
11447cat >>confdefs.h <<\_ACEOF
11448#define LASTLOG_IS_DIR 1
11449_ACEOF
11450
11451 fi 7154 fi
11452fi
11453
11454echo "$as_me:$LINENO: checking where lastlogx is located" >&5
11455echo $ECHO_N "checking where lastlogx is located... $ECHO_C" >&6
11456if test "${rxvt_cv_path_lastlogx+set}" = set; then
11457 echo $ECHO_N "(cached) $ECHO_C" >&6
11458else
11459 if test "$cross_compiling" = yes; then
11460 { echo "$as_me:$LINENO: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&5
11461echo "$as_me: WARNING: Define RXVT_LASTLOGX_FILE in config.h manually" >&2;}
11462else
11463 cat >conftest.$ac_ext <<_ACEOF
11464/* confdefs.h. */
11465_ACEOF
11466cat confdefs.h >>conftest.$ac_ext
11467cat >>conftest.$ac_ext <<_ACEOF
11468/* end confdefs.h. */
11469#include <stdio.h>
11470#ifdef HAVE_UTMPX_H
11471#include <utmpx.h>
11472#endif
11473#include <errno.h>
11474main()
11475{
11476 char **w, *wtmplist[] = { "/var/log/lastlogx", "/var/adm/lastlogx", NULL };
11477 FILE *a, *f=fopen("conftestval", "w");
11478 if (!f) exit(1);
11479#ifdef LASTLOGX_FILE
11480 fprintf(f, "%s\n", LASTLOGX_FILE);
11481 exit(0);
11482#endif
11483#ifdef _PATH_LASTLOGX
11484 fprintf(f, "%s\n", _PATH_LASTLOGX);
11485 exit(0);
11486#endif
11487 for (w = wtmplist; *w; w++) {
11488 if ((a = fopen(*w, "r")) != NULL || errno == EACCES) {
11489 fprintf(f, "%s\n", *w);
11490 exit(0);
11491 }
11492 }
11493 exit(0);
11494}
11495_ACEOF
11496rm -f conftest$ac_exeext
11497if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11498 (eval $ac_link) 2>&5
11499 ac_status=$?
11500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11501 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11503 (eval $ac_try) 2>&5
11504 ac_status=$?
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); }; }; then
11507 rxvt_cv_path_lastlogx=`cat conftestval`
11508else
11509 echo "$as_me: program exited with status $ac_status" >&5
11510echo "$as_me: failed program was:" >&5
11511sed 's/^/| /' conftest.$ac_ext >&5
11512
11513( exit $ac_status )
11514rxvt_cv_path_lastlogx=
11515fi
11516rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11517fi
11518fi
11519echo "$as_me:$LINENO: result: $rxvt_cv_path_lastlogx" >&5
11520echo "${ECHO_T}$rxvt_cv_path_lastlogx" >&6
11521if test x$rxvt_cv_path_lastlogx != x; then
11522
11523cat >>confdefs.h <<_ACEOF
11524#define RXVT_LASTLOGX_FILE "$rxvt_cv_path_lastlogx"
11525_ACEOF
11526
11527fi
11528
11529
11530echo "$as_me:$LINENO: checking where ttys/ttytab is located" >&5
11531echo $ECHO_N "checking where ttys/ttytab is located... $ECHO_C" >&6
11532if test "${rxvt_cv_path_ttytab+set}" = set; then
11533 echo $ECHO_N "(cached) $ECHO_C" >&6
11534else
11535 for ttys_file in /etc/ttys /etc/ttytab;
11536do
11537 if test -f "$ttys_file" ; then
11538 rxvt_cv_path_ttytab=$ttys_file
11539 break
11540 fi 7155 fi
11541done
11542
11543fi 7156fi
11544echo "$as_me:$LINENO: result: $rxvt_cv_path_ttytab" >&5
11545echo "${ECHO_T}$rxvt_cv_path_ttytab" >&6
11546if test x$rxvt_cv_path_ttytab != x; then
11547 7157
11548cat >>confdefs.h <<_ACEOF
11549#define TTYTAB_FILENAME "$rxvt_cv_path_ttytab"
11550_ACEOF
11551
11552fi
11553
11554
11555ac_save_LIBS=$LIBS
11556ac_save_CFLAGS=$CFLAGS
11557CFLAGS="$CFLAGS $X_CFLAGS"
11558LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
11559if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
11560 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
11561fi
11562echo "$as_me:$LINENO: checking for working Xlocale" >&5
11563echo $ECHO_N "checking for working Xlocale... $ECHO_C" >&6
11564if test "${rxvt_cv_func_xlocale+set}" = set; then
11565 echo $ECHO_N "(cached) $ECHO_C" >&6
11566else
11567 if test "$cross_compiling" = yes; then
11568 { echo "$as_me:$LINENO: WARNING: Define NO_XLOCALE in config.h manually" >&5
11569echo "$as_me: WARNING: Define NO_XLOCALE in config.h manually" >&2;}
11570else
11571 cat >conftest.$ac_ext <<_ACEOF
11572/* confdefs.h. */
11573_ACEOF
11574cat confdefs.h >>conftest.$ac_ext
11575cat >>conftest.$ac_ext <<_ACEOF
11576/* end confdefs.h. */
11577#include <X11/Xlib.h>
11578main() {
11579char *p;
11580if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
11581exit (XSupportsLocale() ? 0 : 1);
11582else
11583exit (1);}
11584_ACEOF
11585rm -f conftest$ac_exeext
11586if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11587 (eval $ac_link) 2>&5
11588 ac_status=$?
11589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11590 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11592 (eval $ac_try) 2>&5
11593 ac_status=$?
11594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11595 (exit $ac_status); }; }; then
11596 rxvt_cv_func_xlocale=yes
11597else
11598 echo "$as_me: program exited with status $ac_status" >&5
11599echo "$as_me: failed program was:" >&5
11600sed 's/^/| /' conftest.$ac_ext >&5
11601
11602( exit $ac_status )
11603rxvt_cv_func_xlocale=no
11604fi
11605rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11606fi
11607fi
11608echo "$as_me:$LINENO: result: $rxvt_cv_func_xlocale" >&5
11609echo "${ECHO_T}$rxvt_cv_func_xlocale" >&6
11610if test x$rxvt_cv_func_xlocale = xyes; then
11611
11612cat >>confdefs.h <<\_ACEOF
11613#define HAVE_XLOCALE 1
11614_ACEOF
11615
11616fi
11617
11618echo "$as_me:$LINENO: checking for working X setlocale" >&5 7158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working X setlocale" >&5
11619echo $ECHO_N "checking for working X setlocale... $ECHO_C" >&6 7159$as_echo_n "checking for working X setlocale... " >&6; }
11620if test "${rxvt_cv_func_xsetlocale+set}" = set; then 7160if ${rxvt_cv_func_xsetlocale+:} false; then :
11621 echo $ECHO_N "(cached) $ECHO_C" >&6 7161 $as_echo_n "(cached) " >&6
11622else 7162else
11623 cat >conftest.$ac_ext <<_ACEOF
11624/* confdefs.h. */
11625_ACEOF
11626cat confdefs.h >>conftest.$ac_ext 7163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11627cat >>conftest.$ac_ext <<_ACEOF
11628/* end confdefs.h. */ 7164/* end confdefs.h. */
11629#define X_LOCALE 1 7165#define X_LOCALE 1
11630#include <X11/Xlocale.h> 7166#include <X11/Xlocale.h>
11631int 7167int
11632main () 7168main ()
11634setlocale(LC_CTYPE, ""); 7170setlocale(LC_CTYPE, "");
11635 ; 7171 ;
11636 return 0; 7172 return 0;
11637} 7173}
11638_ACEOF 7174_ACEOF
11639rm -f conftest.$ac_objext conftest$ac_exeext 7175if ac_fn_cxx_try_link "$LINENO"; then :
11640if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11641 (eval $ac_link) 2>conftest.er1
11642 ac_status=$?
11643 grep -v '^ *+' conftest.er1 >conftest.err
11644 rm -f conftest.er1
11645 cat conftest.err >&5
11646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11647 (exit $ac_status); } &&
11648 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11650 (eval $ac_try) 2>&5
11651 ac_status=$?
11652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11653 (exit $ac_status); }; } &&
11654 { ac_try='test -s conftest$ac_exeext'
11655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11656 (eval $ac_try) 2>&5
11657 ac_status=$?
11658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11659 (exit $ac_status); }; }; then
11660 rxvt_cv_func_xsetlocale=yes 7176 rxvt_cv_func_xsetlocale=yes
11661else 7177else
11662 echo "$as_me: failed program was:" >&5
11663sed 's/^/| /' conftest.$ac_ext >&5
11664
11665rxvt_cv_func_xsetlocale=no 7178 rxvt_cv_func_xsetlocale=no
11666fi 7179fi
11667rm -f conftest.err conftest.$ac_objext \ 7180rm -f core conftest.err conftest.$ac_objext \
11668 conftest$ac_exeext conftest.$ac_ext 7181 conftest$ac_exeext conftest.$ac_ext
11669fi 7182fi
11670echo "$as_me:$LINENO: result: $rxvt_cv_func_xsetlocale" >&5 7183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_xsetlocale" >&5
11671echo "${ECHO_T}$rxvt_cv_func_xsetlocale" >&6 7184$as_echo "$rxvt_cv_func_xsetlocale" >&6; }
11672if test x$rxvt_cv_func_xsetlocale = xyes; then 7185if test x$rxvt_cv_func_xsetlocale = xyes; then
11673 7186
11674cat >>confdefs.h <<\_ACEOF 7187$as_echo "#define HAVE_XSETLOCALE 1" >>confdefs.h
11675#define HAVE_XSETLOCALE 1
11676_ACEOF
11677 7188
11678fi 7189fi
11679LIBS=$ac_save_LIBS 7190LIBS=$save_LIBS
11680CFLAGS=$ac_save_CFLAGS 7191CXXFLAGS=$save_CXXFLAGS
11681 7192
11682echo "$as_me:$LINENO: checking for working plain setlocale" >&5
11683echo $ECHO_N "checking for working plain setlocale... $ECHO_C" >&6
11684if test "${rxvt_cv_func_setlocale+set}" = set; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11686else
11687 cat >conftest.$ac_ext <<_ACEOF
11688/* confdefs.h. */
11689_ACEOF
11690cat confdefs.h >>conftest.$ac_ext
11691cat >>conftest.$ac_ext <<_ACEOF
11692/* end confdefs.h. */
11693#include <clocale>
11694int
11695main ()
11696{
11697setlocale(LC_CTYPE, "");
11698 ;
11699 return 0;
11700}
11701_ACEOF
11702rm -f conftest.$ac_objext conftest$ac_exeext
11703if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11704 (eval $ac_link) 2>conftest.er1
11705 ac_status=$?
11706 grep -v '^ *+' conftest.er1 >conftest.err
11707 rm -f conftest.er1
11708 cat conftest.err >&5
11709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11710 (exit $ac_status); } &&
11711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11713 (eval $ac_try) 2>&5
11714 ac_status=$?
11715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11716 (exit $ac_status); }; } &&
11717 { ac_try='test -s conftest$ac_exeext'
11718 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11719 (eval $ac_try) 2>&5
11720 ac_status=$?
11721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11722 (exit $ac_status); }; }; then
11723 rxvt_cv_func_setlocale=yes
11724else
11725 echo "$as_me: failed program was:" >&5
11726sed 's/^/| /' conftest.$ac_ext >&5
11727
11728rxvt_cv_func_setlocale=no
11729fi
11730rm -f conftest.err conftest.$ac_objext \
11731 conftest$ac_exeext conftest.$ac_ext
11732fi
11733echo "$as_me:$LINENO: result: $rxvt_cv_func_setlocale" >&5
11734echo "${ECHO_T}$rxvt_cv_func_setlocale" >&6
11735if test x$rxvt_cv_func_setlocale = xyes; then
11736
11737cat >>confdefs.h <<\_ACEOF
11738#define HAVE_SETLOCALE 1
11739_ACEOF
11740
11741fi
11742
11743echo "$as_me:$LINENO: checking for working nl_langinfo" >&5 7193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working nl_langinfo" >&5
11744echo $ECHO_N "checking for working nl_langinfo... $ECHO_C" >&6 7194$as_echo_n "checking for working nl_langinfo... " >&6; }
11745if test "${rxvt_cv_func_nl_langinfo+set}" = set; then 7195if ${rxvt_cv_func_nl_langinfo+:} false; then :
11746 echo $ECHO_N "(cached) $ECHO_C" >&6 7196 $as_echo_n "(cached) " >&6
11747else 7197else
11748 cat >conftest.$ac_ext <<_ACEOF
11749/* confdefs.h. */
11750_ACEOF
11751cat confdefs.h >>conftest.$ac_ext 7198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11752cat >>conftest.$ac_ext <<_ACEOF
11753/* end confdefs.h. */ 7199/* end confdefs.h. */
11754#include <langinfo.h> 7200#include <langinfo.h>
11755int 7201int
11756main () 7202main ()
11757{ 7203{
11758nl_langinfo(CODESET); 7204nl_langinfo(CODESET);
11759 ; 7205 ;
11760 return 0; 7206 return 0;
11761} 7207}
11762_ACEOF 7208_ACEOF
11763rm -f conftest.$ac_objext conftest$ac_exeext 7209if ac_fn_cxx_try_link "$LINENO"; then :
11764if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11765 (eval $ac_link) 2>conftest.er1
11766 ac_status=$?
11767 grep -v '^ *+' conftest.er1 >conftest.err
11768 rm -f conftest.er1
11769 cat conftest.err >&5
11770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11771 (exit $ac_status); } &&
11772 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11774 (eval $ac_try) 2>&5
11775 ac_status=$?
11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11777 (exit $ac_status); }; } &&
11778 { ac_try='test -s conftest$ac_exeext'
11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11780 (eval $ac_try) 2>&5
11781 ac_status=$?
11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11783 (exit $ac_status); }; }; then
11784 rxvt_cv_func_nl_langinfo=yes 7210 rxvt_cv_func_nl_langinfo=yes
11785else 7211else
11786 echo "$as_me: failed program was:" >&5
11787sed 's/^/| /' conftest.$ac_ext >&5
11788
11789rxvt_cv_func_nl_langinfo=no 7212 rxvt_cv_func_nl_langinfo=no
11790fi 7213fi
11791rm -f conftest.err conftest.$ac_objext \ 7214rm -f core conftest.err conftest.$ac_objext \
11792 conftest$ac_exeext conftest.$ac_ext 7215 conftest$ac_exeext conftest.$ac_ext
11793fi 7216fi
11794echo "$as_me:$LINENO: result: $rxvt_cv_func_nl_langinfo" >&5 7217{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $rxvt_cv_func_nl_langinfo" >&5
11795echo "${ECHO_T}$rxvt_cv_func_nl_langinfo" >&6 7218$as_echo "$rxvt_cv_func_nl_langinfo" >&6; }
11796if test x$rxvt_cv_func_nl_langinfo = xyes; then 7219if test x$rxvt_cv_func_nl_langinfo = xyes; then
11797 7220
11798cat >>confdefs.h <<\_ACEOF 7221$as_echo "#define HAVE_NL_LANGINFO 1" >>confdefs.h
11799#define HAVE_NL_LANGINFO 1
11800_ACEOF
11801 7222
11802fi 7223fi
11803 7224
11804echo "$as_me:$LINENO: checking for unix-compliant filehandle passing ability" >&5 7225
11805echo $ECHO_N "checking for unix-compliant filehandle passing ability... $ECHO_C" >&6 7226
11806if test "${rxvt_can_pass_fds+set}" = set; then 7227case $host in
11807 echo $ECHO_N "(cached) $ECHO_C" >&6 7228 *-*-solaris*)
11808else
11809 cat >conftest.$ac_ext <<_ACEOF
11810/* confdefs.h. */
11811_ACEOF
11812cat confdefs.h >>conftest.$ac_ext 7229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11813cat >>conftest.$ac_ext <<_ACEOF
11814/* end confdefs.h. */ 7230/* end confdefs.h. */
11815 7231
7232#if __STDC_VERSION__ >= 199901L
7233error
7234#endif
7235
7236int
7237main ()
7238{
7239
7240 ;
7241 return 0;
7242}
7243_ACEOF
7244if ac_fn_cxx_try_compile "$LINENO"; then :
7245 $as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
7246
7247else
7248 $as_echo "#define _XOPEN_SOURCE 600" >>confdefs.h
7249
7250fi
7251rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sendmsg" >&5
7253$as_echo_n "checking for library containing sendmsg... " >&6; }
7254if ${ac_cv_search_sendmsg+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256else
7257 ac_func_search_save_LIBS=$LIBS
7258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7259/* end confdefs.h. */
7260
7261/* Override any GCC internal prototype to avoid an error.
7262 Use char because int might match the return type of a GCC
7263 builtin and then its argument prototype would still apply. */
7264#ifdef __cplusplus
7265extern "C"
7266#endif
7267char sendmsg ();
7268int
7269main ()
7270{
7271return sendmsg ();
7272 ;
7273 return 0;
7274}
7275_ACEOF
7276for ac_lib in '' socket; do
7277 if test -z "$ac_lib"; then
7278 ac_res="none required"
7279 else
7280 ac_res=-l$ac_lib
7281 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
7282 fi
7283 if ac_fn_cxx_try_link "$LINENO"; then :
7284 ac_cv_search_sendmsg=$ac_res
7285fi
7286rm -f core conftest.err conftest.$ac_objext \
7287 conftest$ac_exeext
7288 if ${ac_cv_search_sendmsg+:} false; then :
7289 break
7290fi
7291done
7292if ${ac_cv_search_sendmsg+:} false; then :
7293
7294else
7295 ac_cv_search_sendmsg=no
7296fi
7297rm conftest.$ac_ext
7298LIBS=$ac_func_search_save_LIBS
7299fi
7300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sendmsg" >&5
7301$as_echo "$ac_cv_search_sendmsg" >&6; }
7302ac_res=$ac_cv_search_sendmsg
7303if test "$ac_res" != no; then :
7304 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
7305
7306fi
7307
7308 ;;
7309esac
7310
7311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unix-compliant filehandle passing ability" >&5
7312$as_echo_n "checking for unix-compliant filehandle passing ability... " >&6; }
7313if ${pt_cv_can_pass_fds+:} false; then :
7314 $as_echo_n "(cached) " >&6
7315else
7316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7317/* end confdefs.h. */
7318
7319#include <stddef.h> // broken bsds (is that redundant?) need this
11816#include <sys/types.h> 7320#include <sys/types.h>
11817#include <sys/socket.h> 7321#include <sys/socket.h>
7322#include <sys/uio.h>
11818 7323
11819int 7324int
11820main () 7325main ()
11821{ 7326{
11822 7327
11846 7351
11847 ; 7352 ;
11848 return 0; 7353 return 0;
11849} 7354}
11850_ACEOF 7355_ACEOF
11851rm -f conftest.$ac_objext conftest$ac_exeext 7356if ac_fn_cxx_try_link "$LINENO"; then :
11852if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11853 (eval $ac_link) 2>conftest.er1
11854 ac_status=$?
11855 grep -v '^ *+' conftest.er1 >conftest.err
11856 rm -f conftest.er1
11857 cat conftest.err >&5
11858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11859 (exit $ac_status); } &&
11860 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11862 (eval $ac_try) 2>&5
11863 ac_status=$?
11864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11865 (exit $ac_status); }; } &&
11866 { ac_try='test -s conftest$ac_exeext'
11867 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11868 (eval $ac_try) 2>&5
11869 ac_status=$?
11870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11871 (exit $ac_status); }; }; then
11872 rxvt_can_pass_fds=yes 7357 pt_cv_can_pass_fds=yes
11873else 7358else
11874 echo "$as_me: failed program was:" >&5
11875sed 's/^/| /' conftest.$ac_ext >&5
11876
11877rxvt_can_pass_fds=no 7359 pt_cv_can_pass_fds=no
11878fi 7360fi
11879rm -f conftest.err conftest.$ac_objext \ 7361rm -f core conftest.err conftest.$ac_objext \
11880 conftest$ac_exeext conftest.$ac_ext 7362 conftest$ac_exeext conftest.$ac_ext
11881fi 7363fi
11882echo "$as_me:$LINENO: result: $rxvt_can_pass_fds" >&5 7364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_can_pass_fds" >&5
11883echo "${ECHO_T}$rxvt_can_pass_fds" >&6 7365$as_echo "$pt_cv_can_pass_fds" >&6; }
11884if test x$rxvt_can_pass_fds = xyes; then 7366if test x$pt_cv_can_pass_fds = xyes; then
11885 7367
7368$as_echo "#define HAVE_UNIX_FDPASS 1" >>confdefs.h
7369
7370else
7371 as_fn_error $? "libptytty requires unix-compliant filehandle passing ability" "$LINENO" 5
7372fi
7373
7374
7375
7376for ac_header in \
7377 pty.h \
7378 util.h \
7379 libutil.h \
7380 sys/ioctl.h \
7381 stropts.h \
7382
7383do :
7384 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7385ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7386if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
11886cat >>confdefs.h <<\_ACEOF 7387 cat >>confdefs.h <<_ACEOF
11887#define HAVE_UNIX_FDPASS 1 7388#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11888_ACEOF 7389_ACEOF
11889 7390
11890fi 7391fi
11891 7392
11892echo "$as_me:$LINENO: checking for broken XIM callback" >&5 7393done
11893echo $ECHO_N "checking for broken XIM callback... $ECHO_C" >&6
11894if test "${rxvt_broken_ximcb+set}" = set; then
11895 echo $ECHO_N "(cached) $ECHO_C" >&6
11896else
11897 cat >conftest.$ac_ext <<_ACEOF
11898 7394
11899#include <X11/Xlib.h>
11900 7395
11901void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); 7396for ac_func in \
7397 revoke \
7398 _getpty \
7399 getpt \
7400 posix_openpt \
7401 isastream \
7402 setuid \
7403 seteuid \
7404 setreuid \
7405 setresuid \
11902 7406
11903void f() { 7407do :
11904 XIMCallback cb; 7408 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11905 cb.callback = im_destroy_cb; 7409ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
11906} 7410if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11907
11908_ACEOF
11909rm -f conftest.$ac_objext
11910if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11911 (eval $ac_compile) 2>conftest.er1
11912 ac_status=$?
11913 grep -v '^ *+' conftest.er1 >conftest.err
11914 rm -f conftest.er1
11915 cat conftest.err >&5
11916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11917 (exit $ac_status); } &&
11918 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11920 (eval $ac_try) 2>&5
11921 ac_status=$?
11922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11923 (exit $ac_status); }; } &&
11924 { ac_try='test -s conftest.$ac_objext'
11925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11926 (eval $ac_try) 2>&5
11927 ac_status=$?
11928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11929 (exit $ac_status); }; }; then
11930 rxvt_broken_ximcb=yes
11931else
11932 echo "$as_me: failed program was:" >&5
11933sed 's/^/| /' conftest.$ac_ext >&5
11934
11935rxvt_broken_ximcb=no
11936fi
11937rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11938fi
11939echo "$as_me:$LINENO: result: $rxvt_broken_ximcb" >&5
11940echo "${ECHO_T}$rxvt_broken_ximcb" >&6
11941
11942if test x$rxvt_broken_ximcb = xyes; then
11943
11944cat >>confdefs.h <<\_ACEOF 7411 cat >>confdefs.h <<_ACEOF
11945#define XIMCB_PROTO_BROKEN 1 7412#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11946_ACEOF 7413_ACEOF
11947 7414
11948fi 7415fi
7416done
11949 7417
11950if test x$ac_cv_func_getpt = xno -a x$ac_cv_func_posix_openpt = xno; then 7418
11951 echo "$as_me:$LINENO: checking for openpty" >&5 7419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for UNIX98 ptys" >&5
11952echo $ECHO_N "checking for openpty... $ECHO_C" >&6 7420$as_echo_n "checking for UNIX98 ptys... " >&6; }
11953if test "${ac_cv_func_openpty+set}" = set; then
11954 echo $ECHO_N "(cached) $ECHO_C" >&6
11955else
11956 cat >conftest.$ac_ext <<_ACEOF
11957/* confdefs.h. */
11958_ACEOF
11959cat confdefs.h >>conftest.$ac_ext 7421cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11960cat >>conftest.$ac_ext <<_ACEOF
11961/* end confdefs.h. */ 7422/* end confdefs.h. */
11962/* Define openpty to an innocuous variant, in case <limits.h> declares openpty.
11963 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11964#define openpty innocuous_openpty
11965
11966/* System header to define __stub macros and hopefully few prototypes,
11967 which can conflict with char openpty (); below.
11968 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11969 <limits.h> exists even on freestanding compilers. */
11970
11971#ifdef __STDC__
11972# include <limits.h> 7423#include <stdlib.h>
11973#else
11974# include <assert.h>
11975#endif
11976
11977#undef openpty
11978
11979/* Override any gcc2 internal prototype to avoid an error. */
11980#ifdef __cplusplus
11981extern "C"
11982{
11983#endif
11984/* We use char because int might match the return type of a gcc2
11985 builtin and then its argument prototype would still apply. */
11986char openpty ();
11987/* The GNU C library defines this for functions which it implements
11988 to always fail with ENOSYS. Some functions are actually named
11989 something starting with __ and the normal name is an alias. */
11990#if defined (__stub_openpty) || defined (__stub___openpty)
11991choke me
11992#else
11993char (*f) () = openpty;
11994#endif
11995#ifdef __cplusplus
11996}
11997#endif
11998
11999int 7424int
12000main () 7425main ()
12001{ 7426{
12002return f != openpty; 7427grantpt(0);unlockpt(0);ptsname(0);
12003 ; 7428 ;
12004 return 0; 7429 return 0;
12005} 7430}
12006_ACEOF 7431_ACEOF
12007rm -f conftest.$ac_objext conftest$ac_exeext 7432if ac_fn_cxx_try_link "$LINENO"; then :
12008if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7433 unix98_pty=yes
12009 (eval $ac_link) 2>conftest.er1
12010 ac_status=$?
12011 grep -v '^ *+' conftest.er1 >conftest.err
12012 rm -f conftest.er1
12013 cat conftest.err >&5
12014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12015 (exit $ac_status); } &&
12016 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12017 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12018 (eval $ac_try) 2>&5
12019 ac_status=$?
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); }; } &&
12022 { ac_try='test -s conftest$ac_exeext'
12023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12024 (eval $ac_try) 2>&5
12025 ac_status=$?
12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); }; }; then
12028 ac_cv_func_openpty=yes
12029else
12030 echo "$as_me: failed program was:" >&5
12031sed 's/^/| /' conftest.$ac_ext >&5
12032 7434
12033ac_cv_func_openpty=no 7435$as_echo "#define UNIX98_PTY 1" >>confdefs.h
7436
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7438$as_echo "yes" >&6; }
7439else
7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7441$as_echo "no" >&6; }
12034fi 7442fi
12035rm -f conftest.err conftest.$ac_objext \ 7443rm -f core conftest.err conftest.$ac_objext \
12036 conftest$ac_exeext conftest.$ac_ext 7444 conftest$ac_exeext conftest.$ac_ext
12037fi 7445
12038echo "$as_me:$LINENO: result: $ac_cv_func_openpty" >&5 7446if test -z "$unix98_pty"; then
12039echo "${ECHO_T}$ac_cv_func_openpty" >&6 7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing openpty" >&5
12040if test $ac_cv_func_openpty = yes; then 7448$as_echo_n "checking for library containing openpty... " >&6; }
12041 : 7449if ${ac_cv_search_openpty+:} false; then :
7450 $as_echo_n "(cached) " >&6
12042else 7451else
12043 echo "$as_me:$LINENO: checking for openpty in -lutil" >&5 7452 ac_func_search_save_LIBS=$LIBS
12044echo $ECHO_N "checking for openpty in -lutil... $ECHO_C" >&6
12045if test "${ac_cv_lib_util_openpty+set}" = set; then
12046 echo $ECHO_N "(cached) $ECHO_C" >&6
12047else
12048 ac_check_lib_save_LIBS=$LIBS
12049LIBS="-lutil $LIBS"
12050cat >conftest.$ac_ext <<_ACEOF
12051/* confdefs.h. */
12052_ACEOF
12053cat confdefs.h >>conftest.$ac_ext 7453cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12054cat >>conftest.$ac_ext <<_ACEOF
12055/* end confdefs.h. */ 7454/* end confdefs.h. */
12056 7455
12057/* Override any gcc2 internal prototype to avoid an error. */ 7456/* Override any GCC internal prototype to avoid an error.
7457 Use char because int might match the return type of a GCC
7458 builtin and then its argument prototype would still apply. */
12058#ifdef __cplusplus 7459#ifdef __cplusplus
12059extern "C" 7460extern "C"
12060#endif 7461#endif
12061/* We use char because int might match the return type of a gcc2
12062 builtin and then its argument prototype would still apply. */
12063char openpty (); 7462char openpty ();
12064int 7463int
12065main () 7464main ()
12066{ 7465{
12067openpty (); 7466return openpty ();
12068 ; 7467 ;
12069 return 0; 7468 return 0;
12070} 7469}
12071_ACEOF 7470_ACEOF
12072rm -f conftest.$ac_objext conftest$ac_exeext 7471for ac_lib in '' util; do
12073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7472 if test -z "$ac_lib"; then
12074 (eval $ac_link) 2>conftest.er1 7473 ac_res="none required"
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } &&
12081 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12083 (eval $ac_try) 2>&5
12084 ac_status=$?
12085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12086 (exit $ac_status); }; } &&
12087 { ac_try='test -s conftest$ac_exeext'
12088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12089 (eval $ac_try) 2>&5
12090 ac_status=$?
12091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092 (exit $ac_status); }; }; then
12093 ac_cv_lib_util_openpty=yes
12094else 7474 else
12095 echo "$as_me: failed program was:" >&5 7475 ac_res=-l$ac_lib
12096sed 's/^/| /' conftest.$ac_ext >&5 7476 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12097 7477 fi
12098ac_cv_lib_util_openpty=no 7478 if ac_fn_cxx_try_link "$LINENO"; then :
7479 ac_cv_search_openpty=$ac_res
12099fi 7480fi
12100rm -f conftest.err conftest.$ac_objext \ 7481rm -f core conftest.err conftest.$ac_objext \
12101 conftest$ac_exeext conftest.$ac_ext 7482 conftest$ac_exeext
12102LIBS=$ac_check_lib_save_LIBS 7483 if ${ac_cv_search_openpty+:} false; then :
7484 break
12103fi 7485fi
7486done
7487if ${ac_cv_search_openpty+:} false; then :
7488
7489else
7490 ac_cv_search_openpty=no
7491fi
7492rm conftest.$ac_ext
7493LIBS=$ac_func_search_save_LIBS
7494fi
12104echo "$as_me:$LINENO: result: $ac_cv_lib_util_openpty" >&5 7495{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_openpty" >&5
12105echo "${ECHO_T}$ac_cv_lib_util_openpty" >&6 7496$as_echo "$ac_cv_search_openpty" >&6; }
12106if test $ac_cv_lib_util_openpty = yes; then 7497ac_res=$ac_cv_search_openpty
12107 LIBS="$LIBS -lutil" 7498if test "$ac_res" != no; then :
12108fi 7499 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12109 7500
12110fi 7501$as_echo "#define HAVE_OPENPTY 1" >>confdefs.h
12111 7502
12112fi 7503fi
12113 7504
7505fi
7506
7507
7508
12114echo "$as_me:$LINENO: checking for pty/tty type" >&5 7509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tty group" >&5
12115echo $ECHO_N "checking for pty/tty type... $ECHO_C" >&6 7510$as_echo_n "checking for tty group... " >&6; }
12116if test "${rxvt_cv_ptys+set}" = set; then 7511if ${pt_cv_tty_group+:} false; then :
12117 echo $ECHO_N "(cached) $ECHO_C" >&6 7512 $as_echo_n "(cached) " >&6
12118else 7513else
12119 if test x$ac_cv_func_openpty = xyes -o x$ac_cv_lib_util_openpty = xyes; then 7514 if test "$cross_compiling" = yes; then :
12120 rxvt_cv_ptys=OPENPTY 7515 pt_cv_tty_group=no
12121 else if test x$ac_cv_func_getpt = xyes; then 7516else
12122 rxvt_cv_ptys=GLIBC 7517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12123 else if test x$ac_cv_func_posix_openpt = xyes; then 7518/* end confdefs.h. */
12124 rxvt_cv_ptys=POSIX 7519
12125 else if test x$ac_cv_func__getpty = xyes; then 7520#include <sys/types.h>
12126 rxvt_cv_ptys=SGI4 7521#include <sys/stat.h>
12127 else if test -c /dev/ttyp20; then 7522#include <unistd.h>
12128 rxvt_cv_ptys=SCO 7523#include <grp.h>
12129 else if test -c /dev/ptym/clone; then 7524
12130 rxvt_cv_ptys=HPUX 7525int main()
12131 else if test -c /dev/ptc -a -c /dev/pts; then 7526{
12132 rxvt_cv_ptys=PTC 7527 struct stat st;
12133 else if test -c /dev/ptc -a -d /dev/pts; then 7528 struct group *gr;
12134 rxvt_cv_ptys=PTC 7529 char *tty;
12135 else if test -c /dev/ptmx -a -c /dev/pts/0; then 7530 gr = getgrnam("tty");
12136 rxvt_cv_ptys=STREAMS 7531 tty = ttyname(0);
12137 else if test x$ac_cv_func_grantpt = xyes && test x$ac_cv_func_unlockpt = xyes; then 7532 if (gr != 0
12138 rxvt_cv_ptys=STREAMS 7533 && tty != 0
7534 && (stat(tty, &st)) == 0
7535 && st.st_gid == gr->gr_gid)
7536 return 0;
12139 else 7537 else
12140 rxvt_cv_ptys=BSD 7538 return 1;
12141fi 7539}
12142fi
12143fi
12144fi
12145fi
12146fi
12147fi
12148fi
12149fi
12150fi
12151
12152fi
12153echo "$as_me:$LINENO: result: $rxvt_cv_ptys" >&5
12154echo "${ECHO_T}$rxvt_cv_ptys" >&6
12155
12156if test x$rxvt_cv_ptys = xGLIBC; then
12157
12158cat >>confdefs.h <<\_ACEOF
12159#define PTYS_ARE_GETPT 1
12160_ACEOF 7540_ACEOF
12161 7541if ac_fn_cxx_try_run "$LINENO"; then :
7542 pt_cv_tty_group=yes
7543else
7544 pt_cv_tty_group=no
12162fi 7545fi
12163if test x$rxvt_cv_ptys = xPOSIX; then 7546rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12164 7547 conftest.$ac_objext conftest.beam conftest.$ac_ext
12165cat >>confdefs.h <<\_ACEOF
12166#define PTYS_ARE_POSIX 1
12167_ACEOF
12168
12169fi 7548fi
12170if test x$rxvt_cv_ptys = xOPENPTY; then
12171 7549
12172cat >>confdefs.h <<\_ACEOF
12173#define PTYS_ARE_OPENPTY 1
12174_ACEOF
12175
12176fi 7550fi
12177if test x$rxvt_cv_ptys = xSCO; then 7551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pt_cv_tty_group" >&5
7552$as_echo "$pt_cv_tty_group" >&6; }
7553if test x$pt_cv_tty_group = xyes; then
12178 7554
12179cat >>confdefs.h <<\_ACEOF 7555$as_echo "#define TTY_GID_SUPPORT 1" >>confdefs.h
12180#define PTYS_ARE_NUMERIC 1
12181_ACEOF
12182 7556
12183fi 7557fi
12184if test x$rxvt_cv_ptys = xSTREAMS; then
12185 7558
12186cat >>confdefs.h <<\_ACEOF 7559support_image=no
12187#define PTYS_ARE_PTMX 1 7560if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then
12188_ACEOF 7561 support_image=yes
12189
12190fi 7562fi
12191if test x$rxvt_cv_ptys = xPTC; then 7563if test x$support_xft = xyes || test x$support_image = xyes; then
7564 rxvt_have_xrender=no
12192 7565
12193cat >>confdefs.h <<\_ACEOF 7566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xrender" >&5
12194#define PTYS_ARE_PTC 1 7567$as_echo_n "checking for xrender... " >&6; }
12195_ACEOF 7568 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
7569 XRENDER_CFLAGS="`$PKG_CONFIG --cflags xrender`"
7570 XRENDER_LIBS="`$PKG_CONFIG --libs xrender`"
12196 7571
12197fi 7572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12198if test x$rxvt_cv_ptys = xSGI4; then 7573$as_echo "ok" >&6; }
12199 7574
12200cat >>confdefs.h <<\_ACEOF 7575 X_LIBS="$XRENDER_LIBS $X_LIBS"
12201#define PTYS_ARE__GETPTY 1 7576 CPPFLAGS="$CPPFLAGS $XRENDER_CFLAGS"
12202_ACEOF 7577 rxvt_have_xrender=yes
12203 7578
12204fi 7579 save_LIBS="$LIBS"
12205if test x$rxvt_cv_ptys = xHPUX; then 7580 LIBS="$LIBS $X_LIBS"
7581 ac_fn_cxx_check_header_mongrel "$LINENO" "X11/extensions/Xrender.h" "ac_cv_header_X11_extensions_Xrender_h" "$ac_includes_default"
7582if test "x$ac_cv_header_X11_extensions_Xrender_h" = xyes; then :
12206 7583
12207cat >>confdefs.h <<\_ACEOF 7584else
12208#define PTYS_ARE_CLONE 1 7585 rxvt_have_xrender=no
12209_ACEOF
12210
12211fi 7586fi
12212if test x$rxvt_cv_ptys = xBSD -o x$rxvt_cv_ptys = xHPUX -o x$rxvt_cv_ptys = xPOSIX; then
12213 7587
12214cat >>confdefs.h <<\_ACEOF
12215#define PTYS_ARE_SEARCHED 1
12216_ACEOF
12217 7588
12218fi 7589 ac_fn_cxx_check_func "$LINENO" "XRenderFindStandardFormat" "ac_cv_func_XRenderFindStandardFormat"
7590if test "x$ac_cv_func_XRenderFindStandardFormat" = xyes; then :
12219 7591
12220 7592else
12221{ echo "$as_me:$LINENO: checking for pty ranges..." >&5 7593 rxvt_have_xrender=no
12222echo "$as_me: checking for pty ranges..." >&6;}
12223ptys=`echo /dev/pty??`
12224pch1=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\).$/\1/g' | sort -u | tr -d '\012'`
12225pch2=`echo $ptys | tr ' ' '\012' | sed -e 's/^.*\(.\)$/\1/g' | sort -u | tr -d '\012'`
12226if test x$pch1 != x; then
12227
12228cat >>confdefs.h <<_ACEOF
12229#define PTYCHAR1 "$pch1"
12230_ACEOF
12231
12232fi 7594fi
12233if test x$pch2 != x; then
12234 7595
12235cat >>confdefs.h <<_ACEOF 7596 LIBS="$save_LIBS"
12236#define PTYCHAR2 "$pch2"
12237_ACEOF
12238 7597
12239fi 7598 else
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7600$as_echo "no" >&6; }
7601 :
7602 fi
12240 7603
12241if test x$support_xft = xyes; then 7604fi
12242 LIBS="$LIBS `pkg-config xft --libs`"
12243 CPPFLAGS="$CPPFLAGS `pkg-config xft --cflags`"
12244 7605
7606if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then
12245 7607
12246for ac_header in X11/Xft/Xft.h 7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig xft" >&5
7609$as_echo_n "checking for fontconfig xft... " >&6; }
7610 if test $PKG_CONFIG != no && $PKG_CONFIG --exists fontconfig xft; then
7611 XFT_CFLAGS="`$PKG_CONFIG --cflags fontconfig xft`"
7612 XFT_LIBS="`$PKG_CONFIG --libs fontconfig xft`"
7613
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7615$as_echo "ok" >&6; }
7616
7617 X_LIBS="$XFT_LIBS $X_LIBS"
7618 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
7619
7620 else
7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7622$as_echo "no" >&6; }
7623
7624 # Extract the first word of "xft-config", so it can be a program name with args.
7625set dummy xft-config; ac_word=$2
7626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7627$as_echo_n "checking for $ac_word... " >&6; }
7628if ${ac_cv_path_XFT_CONFIG+:} false; then :
7629 $as_echo_n "(cached) " >&6
7630else
7631 case $XFT_CONFIG in
7632 [\\/]* | ?:[\\/]*)
7633 ac_cv_path_XFT_CONFIG="$XFT_CONFIG" # Let the user override the test with a path.
7634 ;;
7635 *)
7636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7637for as_dir in $PATH
12247do 7638do
7639 IFS=$as_save_IFS
7640 test -z "$as_dir" && as_dir=.
7641 for ac_exec_ext in '' $ac_executable_extensions; do
7642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7643 ac_cv_path_XFT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7645 break 2
7646 fi
7647done
7648 done
7649IFS=$as_save_IFS
7650
7651 test -z "$ac_cv_path_XFT_CONFIG" && ac_cv_path_XFT_CONFIG="no"
7652 ;;
7653esac
7654fi
7655XFT_CONFIG=$ac_cv_path_XFT_CONFIG
7656if test -n "$XFT_CONFIG"; then
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CONFIG" >&5
7658$as_echo "$XFT_CONFIG" >&6; }
7659else
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7661$as_echo "no" >&6; }
7662fi
7663
7664
7665 if test $XFT_CONFIG != no; then
7666 X_LIBS="`$XFT_CONFIG --libs` $X_LIBS"
7667 CPPFLAGS="$CPPFLAGS `$XFT_CONFIG --cflags`"
7668 fi
7669
7670 fi
7671
7672
7673 save_LIBS="$LIBS"
7674 LIBS="$LIBS $X_LIBS"
7675 for ac_header in X11/Xft/Xft.h fontconfig/fontconfig.h
7676do :
12248as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 7677 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7678ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
12249if eval "test \"\${$as_ac_Header+set}\" = set"; then 7679if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12250 echo "$as_me:$LINENO: checking for $ac_header" >&5 7680 cat >>confdefs.h <<_ACEOF
12251echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 7681#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7682_ACEOF
7683
7684else
7685 support_xft=no
7686fi
7687
7688done
7689
7690 for ac_func in XftDrawString32 FcPatternGet
7691do :
7692 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7693ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
12252if eval "test \"\${$as_ac_Header+set}\" = set"; then 7694if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12253 echo $ECHO_N "(cached) $ECHO_C" >&6 7695 cat >>confdefs.h <<_ACEOF
12254fi 7696#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12255echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12256echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12257else
12258 # Is the header compilable?
12259echo "$as_me:$LINENO: checking $ac_header usability" >&5
12260echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
12261cat >conftest.$ac_ext <<_ACEOF
12262/* confdefs.h. */
12263_ACEOF 7697_ACEOF
7698
7699else
7700 support_xft=no
7701fi
7702done
7703
7704 LIBS="$save_LIBS"
7705
7706 if test x$support_xft = xyes; then
7707
7708$as_echo "#define XFT 1" >>confdefs.h
7709
7710 fi
7711fi
7712
7713if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then
7714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Render >= 0.11" >&5
7715$as_echo_n "checking for Render >= 0.11... " >&6; }
12264cat confdefs.h >>conftest.$ac_ext 7716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12265cat >>conftest.$ac_ext <<_ACEOF
12266/* end confdefs.h. */ 7717/* end confdefs.h. */
12267$ac_includes_default
12268#include <$ac_header>
12269_ACEOF
12270rm -f conftest.$ac_objext
12271if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12272 (eval $ac_compile) 2>conftest.er1
12273 ac_status=$?
12274 grep -v '^ *+' conftest.er1 >conftest.err
12275 rm -f conftest.er1
12276 cat conftest.err >&5
12277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12278 (exit $ac_status); } &&
12279 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12281 (eval $ac_try) 2>&5
12282 ac_status=$?
12283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12284 (exit $ac_status); }; } &&
12285 { ac_try='test -s conftest.$ac_objext'
12286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12287 (eval $ac_try) 2>&5
12288 ac_status=$?
12289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12290 (exit $ac_status); }; }; then
12291 ac_header_compiler=yes
12292else
12293 echo "$as_me: failed program was:" >&5
12294sed 's/^/| /' conftest.$ac_ext >&5
12295 7718
12296ac_header_compiler=no 7719#include <X11/extensions/Xrender.h>
12297fi 7720#if RENDER_MAJOR == 0 && RENDER_MINOR <= 10
12298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 7721error
12299echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12300echo "${ECHO_T}$ac_header_compiler" >&6
12301
12302# Is the header present?
12303echo "$as_me:$LINENO: checking $ac_header presence" >&5
12304echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
12305cat >conftest.$ac_ext <<_ACEOF
12306/* confdefs.h. */
12307_ACEOF
12308cat confdefs.h >>conftest.$ac_ext
12309cat >>conftest.$ac_ext <<_ACEOF
12310/* end confdefs.h. */
12311#include <$ac_header>
12312_ACEOF
12313if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12314 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12315 ac_status=$?
12316 grep -v '^ *+' conftest.er1 >conftest.err
12317 rm -f conftest.er1
12318 cat conftest.err >&5
12319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12320 (exit $ac_status); } >/dev/null; then
12321 if test -s conftest.err; then
12322 ac_cpp_err=$ac_cxx_preproc_warn_flag
12323 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12324 else
12325 ac_cpp_err=
12326 fi
12327else
12328 ac_cpp_err=yes
12329fi
12330if test -z "$ac_cpp_err"; then
12331 ac_header_preproc=yes
12332else
12333 echo "$as_me: failed program was:" >&5
12334sed 's/^/| /' conftest.$ac_ext >&5
12335
12336 ac_header_preproc=no
12337fi
12338rm -f conftest.err conftest.$ac_ext
12339echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12340echo "${ECHO_T}$ac_header_preproc" >&6
12341
12342# So? What about this header?
12343case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12344 yes:no: )
12345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12346echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12348echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12349 ac_header_preproc=yes
12350 ;;
12351 no:yes:* )
12352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12353echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12355echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12357echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12359echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12361echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12363echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12364 (
12365 cat <<\_ASBOX
12366## ------------------------------------------ ##
12367## Report this to the AC_PACKAGE_NAME lists. ##
12368## ------------------------------------------ ##
12369_ASBOX
12370 ) |
12371 sed "s/^/$as_me: WARNING: /" >&2
12372 ;;
12373esac
12374echo "$as_me:$LINENO: checking for $ac_header" >&5
12375echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
12376if eval "test \"\${$as_ac_Header+set}\" = set"; then
12377 echo $ECHO_N "(cached) $ECHO_C" >&6
12378else
12379 eval "$as_ac_Header=\$ac_header_preproc"
12380fi
12381echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
12382echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
12383
12384fi
12385if test `eval echo '${'$as_ac_Header'}'` = yes; then
12386 cat >>confdefs.h <<_ACEOF
12387#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12388_ACEOF
12389
12390else
12391 support_xft=no
12392fi
12393
12394done
12395
12396
12397echo "$as_me:$LINENO: checking for XftDrawString32 in -lXft" >&5
12398echo $ECHO_N "checking for XftDrawString32 in -lXft... $ECHO_C" >&6
12399if test "${ac_cv_lib_Xft_XftDrawString32+set}" = set; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12401else
12402 ac_check_lib_save_LIBS=$LIBS
12403LIBS="-lXft $LIBS"
12404cat >conftest.$ac_ext <<_ACEOF
12405/* confdefs.h. */
12406_ACEOF
12407cat confdefs.h >>conftest.$ac_ext
12408cat >>conftest.$ac_ext <<_ACEOF
12409/* end confdefs.h. */
12410
12411/* Override any gcc2 internal prototype to avoid an error. */
12412#ifdef __cplusplus
12413extern "C"
12414#endif 7722#endif
12415/* We use char because int might match the return type of a gcc2 7723
12416 builtin and then its argument prototype would still apply. */
12417char XftDrawString32 ();
12418int 7724int
12419main () 7725main ()
12420{ 7726{
12421XftDrawString32 (); 7727
12422 ; 7728 ;
12423 return 0; 7729 return 0;
12424} 7730}
12425_ACEOF 7731_ACEOF
7732if ac_fn_cxx_try_compile "$LINENO"; then :
7733
7734else
7735 support_image=no
7736fi
12426rm -f conftest.$ac_objext conftest$ac_exeext 7737rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12427if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12428 (eval $ac_link) 2>conftest.er1
12429 ac_status=$?
12430 grep -v '^ *+' conftest.er1 >conftest.err
12431 rm -f conftest.er1
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } &&
12435 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12437 (eval $ac_try) 2>&5
12438 ac_status=$?
12439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12440 (exit $ac_status); }; } &&
12441 { ac_try='test -s conftest$ac_exeext'
12442 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12443 (eval $ac_try) 2>&5
12444 ac_status=$?
12445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12446 (exit $ac_status); }; }; then
12447 ac_cv_lib_Xft_XftDrawString32=yes
12448else
12449 echo "$as_me: failed program was:" >&5
12450sed 's/^/| /' conftest.$ac_ext >&5
12451
12452ac_cv_lib_Xft_XftDrawString32=no
12453fi
12454rm -f conftest.err conftest.$ac_objext \
12455 conftest$ac_exeext conftest.$ac_ext
12456LIBS=$ac_check_lib_save_LIBS
12457fi
12458echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftDrawString32" >&5
12459echo "${ECHO_T}$ac_cv_lib_Xft_XftDrawString32" >&6
12460if test $ac_cv_lib_Xft_XftDrawString32 = yes; then
12461 cat >>confdefs.h <<_ACEOF
12462#define HAVE_LIBXFT 1
12463_ACEOF
12464
12465 LIBS="-lXft $LIBS"
12466
12467else
12468 support_xft=no
12469fi
12470
12471
12472 if test x$support_xft = xyes; then 7738 if test x$support_image = xyes; then
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7740$as_echo "ok" >&6; }
7741 LIBS="$LIBS -lm"
12473 7742
12474cat >>confdefs.h <<\_ACEOF 7743$as_echo "#define XRENDER 1" >>confdefs.h
12475#define XFT 1
12476_ACEOF
12477 7744
7745
7746 if test x$support_inheritpixmap = xyes; then
7747
7748$as_echo "#define ENABLE_TRANSPARENCY 1" >>confdefs.h
7749
12478 fi 7750 fi
7751 else
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7753$as_echo "no" >&6; }
7754 fi
12479fi 7755fi
7756
12480if test x$support_styles = xyes; then 7757if test x$support_styles = xyes; then
12481 7758
12482cat >>confdefs.h <<\_ACEOF 7759$as_echo "#define ENABLE_STYLES 1" >>confdefs.h
12483#define ENABLE_STYLES 1
12484_ACEOF
12485 7760
12486fi 7761fi
12487if test x$support_iso14755 = xyes; then 7762if test x$support_iso14755 = xyes; then
12488 7763
12489cat >>confdefs.h <<\_ACEOF 7764$as_echo "#define ISO_14755 1" >>confdefs.h
12490#define ISO_14755 1
12491_ACEOF
12492 7765
12493fi 7766fi
12494if test x$support_8bitctrls = xyes; then 7767if test x$support_8bitctrls = xyes; then
12495 7768
12496cat >>confdefs.h <<\_ACEOF 7769$as_echo "#define EIGHT_BIT_CONTROLS 1" >>confdefs.h
12497#define EIGHT_BIT_CONTROLS 1
12498_ACEOF
12499 7770
12500fi 7771fi
12501if test x$support_fading = xyes; then 7772if test x$support_fading = xyes; then
12502 7773
12503cat >>confdefs.h <<\_ACEOF 7774$as_echo "#define OFF_FOCUS_FADING 1" >>confdefs.h
12504#define OFF_FOCUS_FADING 1
12505_ACEOF
12506
12507fi
12508if test x$support_tinting = xyes; then
12509
12510cat >>confdefs.h <<\_ACEOF
12511#define TINTING 1
12512_ACEOF
12513
12514fi
12515if test x$support_inheritpixmap = xyes; then
12516
12517cat >>confdefs.h <<\_ACEOF
12518#define TRANSPARENT 1
12519_ACEOF
12520 7775
12521fi 7776fi
12522if test x$support_keepscrolling = xno; then 7777if test x$support_keepscrolling = xno; then
12523 7778
12524cat >>confdefs.h <<\_ACEOF
12525#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1 7779$as_echo "#define NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING 1" >>confdefs.h
12526_ACEOF
12527 7780
12528fi 7781fi
12529if test x$support_selectionscrolling = xyes; then 7782if test x$support_selectionscrolling = xyes; then
12530 7783
12531cat >>confdefs.h <<\_ACEOF 7784$as_echo "#define SELECTION_SCROLLING 1" >>confdefs.h
12532#define SELECTION_SCROLLING 1
12533_ACEOF
12534 7785
12535fi 7786fi
12536if test x$support_frills = xyes; then 7787if test x$support_frills = xyes; then
12537 7788
12538cat >>confdefs.h <<\_ACEOF 7789$as_echo "#define ENABLE_FRILLS 1" >>confdefs.h
12539#define ENABLE_FRILLS 1
12540_ACEOF
12541
12542fi
12543if test x$support_24bit = xyes; then
12544
12545cat >>confdefs.h <<\_ACEOF
12546#define PREFER_24BIT 1
12547_ACEOF
12548 7790
12549fi 7791fi
12550if test x$support_mousewheel = xyes; then 7792if test x$support_mousewheel = xyes; then
12551 7793
12552cat >>confdefs.h <<\_ACEOF 7794$as_echo "#define MOUSE_WHEEL 1" >>confdefs.h
12553#define MOUSE_WHEEL 1
12554_ACEOF
12555 7795
12556fi 7796fi
12557if test x$support_mouseslipwheel = xyes; then 7797if test x$support_mouseslipwheel = xyes; then
12558 7798
12559cat >>confdefs.h <<\_ACEOF 7799$as_echo "#define MOUSE_SLIP_WHEELING 1" >>confdefs.h
12560#define MOUSE_SLIP_WHEELING 1
12561_ACEOF
12562 7800
12563fi 7801fi
12564if test x$support_utmp = xyes; then
12565 7802
12566cat >>confdefs.h <<\_ACEOF 7803scrolltypes=plain
12567#define UTMP_SUPPORT 1
12568_ACEOF
12569 7804
12570fi 7805$as_echo "#define PLAIN_SCROLLBAR 1" >>confdefs.h
12571if test x$support_wtmp = xyes; then
12572 7806
12573cat >>confdefs.h <<\_ACEOF
12574#define WTMP_SUPPORT 1
12575_ACEOF
12576 7807
12577fi
12578if test x$support_lastlog = xyes; then
12579
12580cat >>confdefs.h <<\_ACEOF
12581#define LASTLOG_SUPPORT 1
12582_ACEOF
12583
12584fi
12585if test x$support_xim = xyes -o x$multichar_set = xyes; then
12586 if test x$rxvt_cv_func_xlocale = xyes; then
12587
12588cat >>confdefs.h <<\_ACEOF
12589#define USE_XIM 1
12590_ACEOF
12591
12592 fi
12593fi
12594if test x$support_xpm = xyes; then
12595
12596cat >>confdefs.h <<\_ACEOF
12597#define XPM_BACKGROUND 1
12598_ACEOF
12599
12600fi
12601if test x$support_scroll_rxvt = xyes; then 7808if test x$support_scroll_rxvt = xyes; then
12602 7809
12603cat >>confdefs.h <<\_ACEOF 7810$as_echo "#define RXVT_SCROLLBAR 1" >>confdefs.h
12604#define RXVT_SCROLLBAR 1
12605_ACEOF
12606 7811
12607 scrolltypes="rxvt" 7812 scrolltypes="$scrolltypes rxvt"
12608fi 7813fi
12609if test x$support_scroll_next = xyes; then 7814if test x$support_scroll_next = xyes; then
12610 7815
12611cat >>confdefs.h <<\_ACEOF 7816$as_echo "#define NEXT_SCROLLBAR 1" >>confdefs.h
12612#define NEXT_SCROLLBAR 1
12613_ACEOF
12614 7817
12615 scrolltypes="$scrolltypes next" 7818 scrolltypes="$scrolltypes next"
12616fi 7819fi
12617if test x$support_scroll_xterm = xyes; then 7820if test x$support_scroll_xterm = xyes; then
12618 7821
12619cat >>confdefs.h <<\_ACEOF 7822$as_echo "#define XTERM_SCROLLBAR 1" >>confdefs.h
12620#define XTERM_SCROLLBAR 1
12621_ACEOF
12622 7823
12623 scrolltypes="$scrolltypes xterm" 7824 scrolltypes="$scrolltypes xterm"
12624fi 7825fi
12625if test x$support_scroll_plain = xyes; then
12626
12627cat >>confdefs.h <<\_ACEOF
12628#define PLAIN_SCROLLBAR 1
12629_ACEOF
12630
12631 scrolltypes="$scrolltypes plain"
12632fi
12633if test x$support_pointer_blank = xyes; then 7826if test x$support_pointer_blank = xyes; then
12634 7827
12635cat >>confdefs.h <<\_ACEOF 7828$as_echo "#define POINTER_BLANK 1" >>confdefs.h
12636#define POINTER_BLANK 1
12637_ACEOF
12638 7829
12639fi 7830fi
12640if test x$support_text_blink = xyes; then 7831if test x$support_text_blink = xyes; then
12641 7832
12642cat >>confdefs.h <<\_ACEOF 7833$as_echo "#define TEXT_BLINK 1" >>confdefs.h
12643#define TEXT_BLINK 1
12644_ACEOF
12645 7834
12646fi 7835fi
12647if test x$support_unicode3 = xyes; then 7836if test x$support_unicode3 = xyes; then
12648 7837
12649cat >>confdefs.h <<\_ACEOF 7838$as_echo "#define UNICODE_3 1" >>confdefs.h
12650#define UNICODE_3 1
12651_ACEOF
12652 7839
12653fi 7840fi
12654if test x$support_combining = xyes; then 7841if test x$support_combining = xyes; then
12655 7842
12656cat >>confdefs.h <<\_ACEOF 7843$as_echo "#define ENABLE_COMBINING 1" >>confdefs.h
12657#define ENABLE_COMBINING 1
12658_ACEOF
12659 7844
12660fi 7845fi
12661if test x$codesets = xall; then 7846if test x$codesets = xall; then
12662 codesets=jp,jp-ext,kr,zh,zh-ext 7847 codesets=jp,jp-ext,kr,zh,zh-ext
12663fi 7848fi
12664 7849
12665cat >>confdefs.h <<\_ACEOF 7850$as_echo "#define ENCODING_EU 1" >>confdefs.h
12666#define ENCODING_EU 1
12667_ACEOF
12668 7851
12669 7852
12670cat >>confdefs.h <<\_ACEOF 7853$as_echo "#define ENCODING_VN 1" >>confdefs.h
12671#define ENCODING_VN 1
12672_ACEOF
12673 7854
12674for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do 7855for codeset in `echo $codesets | tr "a-z,\\-" "A-Z _"`; do
12675 case "$codeset" in 7856 case "$codeset" in
12676 JP ) 7857 JP )
12677cat >>confdefs.h <<\_ACEOF 7858$as_echo "#define ENCODING_JP 1" >>confdefs.h
12678#define ENCODING_JP 1
12679_ACEOF
12680 ;; 7859 ;;
12681 JP_EXT ) 7860 JP_EXT )
12682cat >>confdefs.h <<\_ACEOF 7861$as_echo "#define ENCODING_JP_EXT 1" >>confdefs.h
12683#define ENCODING_JP_EXT 1
12684_ACEOF
12685 ;; 7862 ;;
12686 KR ) 7863 KR )
12687cat >>confdefs.h <<\_ACEOF 7864$as_echo "#define ENCODING_KR 1" >>confdefs.h
12688#define ENCODING_KR 1
12689_ACEOF
12690 ;; 7865 ;;
12691 ZH ) 7866 ZH )
12692cat >>confdefs.h <<\_ACEOF 7867$as_echo "#define ENCODING_ZH 1" >>confdefs.h
12693#define ENCODING_ZH 1
12694_ACEOF
12695 ;; 7868 ;;
12696 ZH_EXT ) 7869 ZH_EXT )
12697cat >>confdefs.h <<\_ACEOF 7870$as_echo "#define ENCODING_ZH_EXT 1" >>confdefs.h
12698#define ENCODING_ZH_EXT 1
12699_ACEOF
12700 ;; 7871 ;;
12701 esac 7872 esac
12702done 7873done
12703 7874
12704IF_PERL=\# 7875IF_PERL=\#
12705if test x$support_perl = xyes; then 7876if test x$support_perl = xyes; then
12706 # Extract the first word of "perl5", so it can be a program name with args. 7877 # Extract the first word of "perl5", so it can be a program name with args.
12707set dummy perl5; ac_word=$2 7878set dummy perl5; ac_word=$2
12708echo "$as_me:$LINENO: checking for $ac_word" >&5 7879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12709echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 7880$as_echo_n "checking for $ac_word... " >&6; }
12710if test "${ac_cv_path_PERL+set}" = set; then 7881if ${ac_cv_path_PERL+:} false; then :
12711 echo $ECHO_N "(cached) $ECHO_C" >&6 7882 $as_echo_n "(cached) " >&6
12712else 7883else
12713 case $PERL in 7884 case $PERL in
12714 [\\/]* | ?:[\\/]*) 7885 [\\/]* | ?:[\\/]*)
12715 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 7886 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12716 ;; 7887 ;;
12718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12719for as_dir in $PATH 7890for as_dir in $PATH
12720do 7891do
12721 IFS=$as_save_IFS 7892 IFS=$as_save_IFS
12722 test -z "$as_dir" && as_dir=. 7893 test -z "$as_dir" && as_dir=.
12723 for ac_exec_ext in '' $ac_executable_extensions; do 7894 for ac_exec_ext in '' $ac_executable_extensions; do
12724 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12725 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 7896 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12726 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12727 break 2 7898 break 2
12728 fi 7899 fi
12729done 7900done
12730done 7901 done
7902IFS=$as_save_IFS
12731 7903
7904 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl"
12732 ;; 7905 ;;
12733esac 7906esac
12734fi 7907fi
12735PERL=$ac_cv_path_PERL 7908PERL=$ac_cv_path_PERL
12736
12737if test -n "$PERL"; then 7909if test -n "$PERL"; then
12738 echo "$as_me:$LINENO: result: $PERL" >&5 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
12739echo "${ECHO_T}$PERL" >&6 7911$as_echo "$PERL" >&6; }
12740else 7912else
12741 echo "$as_me:$LINENO: result: no" >&5 7913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12742echo "${ECHO_T}no" >&6 7914$as_echo "no" >&6; }
12743fi 7915fi
12744 7916
12745 # Extract the first word of "perl", so it can be a program name with args.
12746set dummy perl; ac_word=$2
12747echo "$as_me:$LINENO: checking for $ac_word" >&5
12748echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12749if test "${ac_cv_path_PERL+set}" = set; then
12750 echo $ECHO_N "(cached) $ECHO_C" >&6
12751else
12752 case $PERL in
12753 [\\/]* | ?:[\\/]*)
12754 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
12755 ;;
12756 *)
12757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12758for as_dir in $PATH
12759do
12760 IFS=$as_save_IFS
12761 test -z "$as_dir" && as_dir=.
12762 for ac_exec_ext in '' $ac_executable_extensions; do
12763 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12764 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
12765 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12766 break 2
12767 fi
12768done
12769done
12770 7917
12771 ;;
12772esac
12773fi
12774PERL=$ac_cv_path_PERL
12775 7918
12776if test -n "$PERL"; then
12777 echo "$as_me:$LINENO: result: $PERL" >&5
12778echo "${ECHO_T}$PERL" >&6
12779else
12780 echo "$as_me:$LINENO: result: no" >&5
12781echo "${ECHO_T}no" >&6
12782fi
12783
12784
12785 echo "$as_me:$LINENO: checking for $PERL suitability" >&5 7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $PERL suitability" >&5
12786echo $ECHO_N "checking for $PERL suitability... $ECHO_C" >&6 7920$as_echo_n "checking for $PERL suitability... " >&6; }
12787 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then 7921 if $PERL -MExtUtils::Embed -e "use v5.8" >/dev/null 2>/dev/null; then
12788 7922
12789 save_CXXFLAGS="$CXXFLAGS" 7923 save_CXXFLAGS="$CXXFLAGS"
12790 save_LIBS="$LIBS" 7924 save_LIBS="$LIBS"
12791 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`" 7925 CXXFLAGS="$CXXFLAGS `$PERL -MExtUtils::Embed -e ccopts`"
12792 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`" 7926 LIBS="$LIBS `$PERL -MExtUtils::Embed -e ldopts`"
12793 cat >conftest.$ac_ext <<_ACEOF
12794/* confdefs.h. */
12795_ACEOF
12796cat confdefs.h >>conftest.$ac_ext 7927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12797cat >>conftest.$ac_ext <<_ACEOF
12798/* end confdefs.h. */ 7928/* end confdefs.h. */
12799 7929
12800#include <EXTERN.h> 7930#include <EXTERN.h>
12801#include <perl.h> 7931#include <perl.h>
12802#include <XSUB.h> 7932#include <XSUB.h>
12809 7939
12810 ; 7940 ;
12811 return 0; 7941 return 0;
12812} 7942}
12813_ACEOF 7943_ACEOF
12814rm -f conftest.$ac_objext conftest$ac_exeext 7944if ac_fn_cxx_try_link "$LINENO"; then :
12815if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12816 (eval $ac_link) 2>conftest.er1
12817 ac_status=$?
12818 grep -v '^ *+' conftest.er1 >conftest.err
12819 rm -f conftest.er1
12820 cat conftest.err >&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } &&
12823 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12825 (eval $ac_try) 2>&5
12826 ac_status=$?
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); }; } &&
12829 { ac_try='test -s conftest$ac_exeext'
12830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12831 (eval $ac_try) 2>&5
12832 ac_status=$?
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); }; }; then
12835 rxvt_perl_link=yes 7945 rxvt_perl_link=yes
12836else 7946else
12837 echo "$as_me: failed program was:" >&5
12838sed 's/^/| /' conftest.$ac_ext >&5
12839
12840rxvt_perl_link=no 7947 rxvt_perl_link=no
12841fi 7948fi
12842rm -f conftest.err conftest.$ac_objext \ 7949rm -f core conftest.err conftest.$ac_objext \
12843 conftest$ac_exeext conftest.$ac_ext 7950 conftest$ac_exeext conftest.$ac_ext
12844 CXXFLAGS="$save_CXXFLAGS" 7951 CXXFLAGS="$save_CXXFLAGS"
12845 LIBS="$save_LIBS" 7952 LIBS="$save_LIBS"
12846 7953
12847 if test x$rxvt_perl_link = xyes; then 7954 if test x$rxvt_perl_link = xyes; then
12848 echo "$as_me:$LINENO: result: ok" >&5 7955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12849echo "${ECHO_T}ok" >&6 7956$as_echo "ok" >&6; }
12850 7957
12851cat >>confdefs.h <<\_ACEOF 7958$as_echo "#define ENABLE_PERL 1" >>confdefs.h
12852#define ENABLE_PERL 1
12853_ACEOF
12854 7959
12855 IF_PERL= 7960 IF_PERL=
12856 PERL_O=rxvtperl.o 7961 PERL_O=rxvtperl.o
12857 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`" 7962 PERLFLAGS="`$PERL -MExtUtils::Embed -e ccopts`"
12858 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`" 7963 PERLLIB="`$PERL -MExtUtils::Embed -e ldopts`"
12859 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`" 7964 PERLPRIVLIBEXP="`$PERL -MConfig -e 'print $Config{privlibexp}'`"
12860 else 7965 else
12861 support_perl=no 7966 as_fn_error $? "no, unable to link" "$LINENO" 5
12862 echo "$as_me:$LINENO: result: no, unable to link" >&5
12863echo "${ECHO_T}no, unable to link" >&6
12864 fi 7967 fi
12865 else 7968 else
12866 { { echo "$as_me:$LINENO: error: no working perl found" >&5 7969 as_fn_error $? "no working perl found, or perl not version >= 5.8" "$LINENO" 5
12867echo "$as_me: error: no working perl found" >&2;}
12868 { (exit or perl not version >= 5.8); exit or perl not version >= 5.8; }; }
12869 support_perl=no
12870 fi 7970 fi
12871fi 7971fi
12872 7972
12873 7973
12874 7974
12875 7975
12876 7976
12877 7977
12878 7978
12879if test x$support_perl = xyes; then
12880 support_frills=yes
12881fi
12882 7979
12883 7980ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile"
12884CFLAGS=${CFLAGS--O}
12885LDFLAGS=${LDFLAGS--O}
12886
12887CPPFLAGS="$CPPFLAGS"
12888
12889
12890
12891
12892
12893
12894
12895if test x$rxvt_cv_rpath = xyes -o x$rxvt_cv_R = xyes; then
12896 DLIB=`echo $DLIB | sed "$R_TRANSLATE"`
12897 LIBS=`echo $LIBS | sed "$R_TRANSLATE"`
12898 X_LIBS=`echo $X_LIBS | sed "$R_TRANSLATE"`
12899 X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed "$R_TRANSLATE"`
12900 XPM_LIBS=`echo $XPM_LIBS | sed "$R_TRANSLATE"`
12901fi
12902
12903
12904
12905
12906
12907test "$program_prefix" != NONE &&
12908 program_transform_name="s,^,$program_prefix,;$program_transform_name"
12909# Use a double $ so make ignores it.
12910test "$program_suffix" != NONE &&
12911 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
12912# Double any \ or $. echo might interpret backslashes.
12913# By default was `s,x,x', remove it if useless.
12914cat <<\_ACEOF >conftest.sed
12915s/[\\$]/&&/g;s/;s,x,x,$//
12916_ACEOF
12917program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
12918rm conftest.sed
12919
12920
12921
12922
12923
12924if test "$ac_cv_header_stdint_h" = "yes" -o "$notset" = "dontmatch"; then
12925 include_stdint_h="#include <stdint.h>"
12926else
12927 include_stdint_h="/* #include <stdint.h> */"
12928fi
12929if test "$ac_cv_header_stdarg_h" = "yes" -o "$notset" = "dontmatch"; then
12930 include_stdarg_h="#include <cstdarg>"
12931else
12932 include_stdarg_h="/* #include <cstdarg> */"
12933fi
12934if test "$ac_cv_header_stdlib_h" = "yes" -o "$notset" = "dontmatch"; then
12935 include_stdlib_h="#include <cstdlib>"
12936else
12937 include_stdlib_h="/* #include <cstdlib> */"
12938fi
12939if test "$ac_cv_header_unistd_h" = "yes" -o "$notset" = "dontmatch"; then
12940 include_unistd_h="#include <unistd.h>"
12941else
12942 include_unistd_h="/* #include <unistd.h> */"
12943fi
12944if test "$ac_cv_header_string_h" = "yes" -o "$notset" = "dontmatch"; then
12945 include_string_h="#include <cstring>"
12946else
12947 include_string_h="/* #include <cstring> */"
12948fi
12949if test "$ac_cv_header_fcntl_h" = "yes" -o "$notset" = "dontmatch"; then
12950 include_fcntl_h="#include <fcntl.h>"
12951else
12952 include_fcntl_h="/* #include <fcntl.h> */"
12953fi
12954if test "$ac_cv_header_util_h" = "yes" -o "$notset" = "dontmatch"; then
12955 include_util_h="#include <util.h>"
12956else
12957 include_util_h="/* #include <util.h> */"
12958fi
12959if test "$ac_cv_header_assert_h" = "yes" -o "$notset" = "dontmatch"; then
12960 include_assert_h="#include <assert.h>"
12961else
12962 include_assert_h="/* #include <assert.h> */"
12963fi
12964if test "$rxvt_cv_header_sysioctl" = "yes" -o "$notset" = "dontmatch"; then
12965 include_sys_ioctl_h="#include <sys/ioctl.h>"
12966else
12967 include_sys_ioctl_h="/* #include <sys/ioctl.h> */"
12968fi
12969if test "$ac_cv_header_sys_select_h" = "yes" -o "$notset" = "dontmatch"; then
12970 include_sys_select_h="#include <sys/select.h>"
12971else
12972 include_sys_select_h="/* #include <sys/select.h> */"
12973fi
12974if test "$ac_cv_header_sys_strredir_h" = "yes" -o "$notset" = "dontmatch"; then
12975 include_sys_strredir_h="#include <sys/strredir.h>"
12976else
12977 include_sys_strredir_h="/* #include <sys/strredir.h> */"
12978fi
12979if test "$ac_cv_header_sys_time_h" = "yes" -o "$notset" = "dontmatch"; then
12980 include_sys_time_h="#include <sys/time.h>"
12981else
12982 include_sys_time_h="/* #include <sys/time.h> */"
12983fi
12984if test "$ac_cv_header_sys_time_h" = "no" -o "$ac_cv_header_time" = "yes"; then
12985 include_time_h="#include <time.h>"
12986else
12987 include_time_h="/* #include <time.h> */"
12988fi
12989
12990 ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile src/rxvtlib.h"
12991 7981
12992cat >confcache <<\_ACEOF 7982cat >confcache <<\_ACEOF
12993# This file is a shell script that caches the results of configure 7983# This file is a shell script that caches the results of configure
12994# tests run on this system so they can be shared between configure 7984# tests run on this system so they can be shared between configure
12995# scripts and configure runs, see configure's option --config-cache. 7985# scripts and configure runs, see configure's option --config-cache.
13005 7995
13006_ACEOF 7996_ACEOF
13007 7997
13008# The following way of writing the cache mishandles newlines in values, 7998# The following way of writing the cache mishandles newlines in values,
13009# but we know of no workaround that is simple, portable, and efficient. 7999# but we know of no workaround that is simple, portable, and efficient.
13010# So, don't put newlines in cache variables' values. 8000# So, we kill variables containing newlines.
13011# Ultrix sh set writes to stderr and can't be redirected directly, 8001# Ultrix sh set writes to stderr and can't be redirected directly,
13012# and sets the high bit in the cache file unless we assign to the vars. 8002# and sets the high bit in the cache file unless we assign to the vars.
13013{ 8003(
8004 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8005 eval ac_val=\$$ac_var
8006 case $ac_val in #(
8007 *${as_nl}*)
8008 case $ac_var in #(
8009 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8010$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8011 esac
8012 case $ac_var in #(
8013 _ | IFS | as_nl) ;; #(
8014 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8015 *) { eval $ac_var=; unset $ac_var;} ;;
8016 esac ;;
8017 esac
8018 done
8019
13014 (set) 2>&1 | 8020 (set) 2>&1 |
13015 case `(ac_space=' '; set | grep ac_space) 2>&1` in 8021 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13016 *ac_space=\ *) 8022 *${as_nl}ac_space=\ *)
13017 # `set' does not quote correctly, so add quotes (double-quote 8023 # `set' does not quote correctly, so add quotes: double-quote
13018 # substitution turns \\\\ into \\, and sed turns \\ into \). 8024 # substitution turns \\\\ into \\, and sed turns \\ into \.
13019 sed -n \ 8025 sed -n \
13020 "s/'/'\\\\''/g; 8026 "s/'/'\\\\''/g;
13021 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 8027 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13022 ;; 8028 ;; #(
13023 *) 8029 *)
13024 # `set' quotes correctly as required by POSIX, so do not add quotes. 8030 # `set' quotes correctly as required by POSIX, so do not add quotes.
13025 sed -n \ 8031 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
13026 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
13027 ;; 8032 ;;
13028 esac; 8033 esac |
13029} | 8034 sort
8035) |
13030 sed ' 8036 sed '
8037 /^ac_cv_env_/b end
13031 t clear 8038 t clear
13032 : clear 8039 :clear
13033 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 8040 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
13034 t end 8041 t end
13035 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 8042 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13036 : end' >>confcache 8043 :end' >>confcache
13037if diff $cache_file confcache >/dev/null 2>&1; then :; else 8044if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13038 if test -w $cache_file; then 8045 if test -w "$cache_file"; then
13039 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 8046 if test "x$cache_file" != "x/dev/null"; then
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8048$as_echo "$as_me: updating cache $cache_file" >&6;}
8049 if test ! -f "$cache_file" || test -h "$cache_file"; then
13040 cat confcache >$cache_file 8050 cat confcache >"$cache_file"
8051 else
8052 case $cache_file in #(
8053 */* | ?:*)
8054 mv -f confcache "$cache_file"$$ &&
8055 mv -f "$cache_file"$$ "$cache_file" ;; #(
8056 *)
8057 mv -f confcache "$cache_file" ;;
8058 esac
8059 fi
8060 fi
13041 else 8061 else
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
13042 echo "not updating unwritable cache $cache_file" 8063$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13043 fi 8064 fi
13044fi 8065fi
13045rm -f confcache 8066rm -f confcache
13046 8067
13047test "x$prefix" = xNONE && prefix=$ac_default_prefix 8068test "x$prefix" = xNONE && prefix=$ac_default_prefix
13048# Let make expand exec_prefix. 8069# Let make expand exec_prefix.
13049test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 8070test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
13050 8071
13051# VPATH may cause trouble with some makes, so we remove $(srcdir),
13052# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
13053# trailing colons and then remove the whole line if VPATH becomes empty
13054# (actually we leave an empty line to preserve line numbers).
13055if test "x$srcdir" = x.; then
13056 ac_vpsub='/^[ ]*VPATH[ ]*=/{
13057s/:*\$(srcdir):*/:/;
13058s/:*\${srcdir}:*/:/;
13059s/:*@srcdir@:*/:/;
13060s/^\([^=]*=[ ]*\):*/\1/;
13061s/:*$//;
13062s/^[^=]*=[ ]*$//;
13063}'
13064fi
13065
13066DEFS=-DHAVE_CONFIG_H 8072DEFS=-DHAVE_CONFIG_H
13067 8073
13068ac_libobjs= 8074ac_libobjs=
13069ac_ltlibobjs= 8075ac_ltlibobjs=
8076U=
13070for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 8077for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13071 # 1. Remove the extension, and $U if already installed. 8078 # 1. Remove the extension, and $U if already installed.
13072 ac_i=`echo "$ac_i" |
13073 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 8079 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13074 # 2. Add them. 8080 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13075 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 8081 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13076 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 8082 # will be set to the directory where LIBOBJS objects are built.
8083 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8084 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
13077done 8085done
13078LIBOBJS=$ac_libobjs 8086LIBOBJS=$ac_libobjs
13079 8087
13080LTLIBOBJS=$ac_ltlibobjs 8088LTLIBOBJS=$ac_ltlibobjs
13081 8089
13082 8090
13083 8091
13084: ${CONFIG_STATUS=./config.status} 8092: "${CONFIG_STATUS=./config.status}"
8093ac_write_fail=0
13085ac_clean_files_save=$ac_clean_files 8094ac_clean_files_save=$ac_clean_files
13086ac_clean_files="$ac_clean_files $CONFIG_STATUS" 8095ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13087{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 8096{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
13088echo "$as_me: creating $CONFIG_STATUS" >&6;} 8097$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13089cat >$CONFIG_STATUS <<_ACEOF 8098as_write_fail=0
8099cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13090#! $SHELL 8100#! $SHELL
13091# Generated by $as_me. 8101# Generated by $as_me.
13092# Run this file to recreate the current configuration. 8102# Run this file to recreate the current configuration.
13093# Compiler output produced by configure, useful for debugging 8103# Compiler output produced by configure, useful for debugging
13094# configure, is in config.log if it exists. 8104# configure, is in config.log if it exists.
13095 8105
13096debug=false 8106debug=false
13097ac_cs_recheck=false 8107ac_cs_recheck=false
13098ac_cs_silent=false 8108ac_cs_silent=false
8109
13099SHELL=\${CONFIG_SHELL-$SHELL} 8110SHELL=\${CONFIG_SHELL-$SHELL}
8111export SHELL
13100_ACEOF 8112_ASEOF
13101 8113cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
13102cat >>$CONFIG_STATUS <<\_ACEOF
13103## --------------------- ## 8114## -------------------- ##
13104## M4sh Initialization. ## 8115## M4sh Initialization. ##
13105## --------------------- ## 8116## -------------------- ##
13106 8117
13107# Be Bourne compatible 8118# Be more Bourne compatible
8119DUALCASE=1; export DUALCASE # for MKS sh
13108if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 8120if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13109 emulate sh 8121 emulate sh
13110 NULLCMD=: 8122 NULLCMD=:
13111 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 8123 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
13112 # is contrary to our usage. Disable this feature. 8124 # is contrary to our usage. Disable this feature.
13113 alias -g '${1+"$@"}'='"$@"' 8125 alias -g '${1+"$@"}'='"$@"'
13114elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 8126 setopt NO_GLOB_SUBST
8127else
8128 case `(set -o) 2>/dev/null` in #(
8129 *posix*) :
13115 set -o posix 8130 set -o posix ;; #(
8131 *) :
8132 ;;
8133esac
13116fi 8134fi
13117DUALCASE=1; export DUALCASE # for MKS sh
13118 8135
13119# Support unset when possible. 8136
13120if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 8137as_nl='
13121 as_unset=unset 8138'
8139export as_nl
8140# Printing a long string crashes Solaris 7 /usr/bin/printf.
8141as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8142as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8143as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8144# Prefer a ksh shell builtin over an external printf program on Solaris,
8145# but without wasting forks for bash or zsh.
8146if test -z "$BASH_VERSION$ZSH_VERSION" \
8147 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8148 as_echo='print -r --'
8149 as_echo_n='print -rn --'
8150elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8151 as_echo='printf %s\n'
8152 as_echo_n='printf %s'
8153else
8154 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8155 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8156 as_echo_n='/usr/ucb/echo -n'
13122else 8157 else
13123 as_unset=false 8158 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8159 as_echo_n_body='eval
8160 arg=$1;
8161 case $arg in #(
8162 *"$as_nl"*)
8163 expr "X$arg" : "X\\(.*\\)$as_nl";
8164 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8165 esac;
8166 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8167 '
8168 export as_echo_n_body
8169 as_echo_n='sh -c $as_echo_n_body as_echo'
8170 fi
8171 export as_echo_body
8172 as_echo='sh -c $as_echo_body as_echo'
13124fi 8173fi
13125 8174
8175# The user is always right.
8176if test "${PATH_SEPARATOR+set}" != set; then
8177 PATH_SEPARATOR=:
8178 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8179 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8180 PATH_SEPARATOR=';'
8181 }
8182fi
13126 8183
13127# Work around bugs in pre-3.0 UWIN ksh. 8184
13128$as_unset ENV MAIL MAILPATH 8185# IFS
8186# We need space, tab and new line, in precisely that order. Quoting is
8187# there to prevent editors from complaining about space-tab.
8188# (If _AS_PATH_WALK were called with IFS unset, it would disable word
8189# splitting by setting IFS to empty value.)
8190IFS=" "" $as_nl"
8191
8192# Find who we are. Look in the path if we contain no directory separator.
8193as_myself=
8194case $0 in #((
8195 *[\\/]* ) as_myself=$0 ;;
8196 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8197for as_dir in $PATH
8198do
8199 IFS=$as_save_IFS
8200 test -z "$as_dir" && as_dir=.
8201 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8202 done
8203IFS=$as_save_IFS
8204
8205 ;;
8206esac
8207# We did not find ourselves, most probably we were run as `sh COMMAND'
8208# in which case we are not to be found in the path.
8209if test "x$as_myself" = x; then
8210 as_myself=$0
8211fi
8212if test ! -f "$as_myself"; then
8213 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8214 exit 1
8215fi
8216
8217# Unset variables that we do not need and which cause bugs (e.g. in
8218# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8219# suppresses any "Segmentation fault" message there. '((' could
8220# trigger a bug in pdksh 5.2.14.
8221for as_var in BASH_ENV ENV MAIL MAILPATH
8222do eval test x\${$as_var+set} = xset \
8223 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8224done
13129PS1='$ ' 8225PS1='$ '
13130PS2='> ' 8226PS2='> '
13131PS4='+ ' 8227PS4='+ '
13132 8228
13133# NLS nuisances. 8229# NLS nuisances.
13134for as_var in \ 8230LC_ALL=C
13135 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 8231export LC_ALL
13136 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 8232LANGUAGE=C
13137 LC_TELEPHONE LC_TIME 8233export LANGUAGE
13138do 8234
13139 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 8235# CDPATH.
13140 eval $as_var=C; export $as_var 8236(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8237
8238
8239# as_fn_error STATUS ERROR [LINENO LOG_FD]
8240# ----------------------------------------
8241# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8242# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8243# script with STATUS, using 1 if that was 0.
8244as_fn_error ()
8245{
8246 as_status=$1; test $as_status -eq 0 && as_status=1
8247 if test "$4"; then
8248 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8249 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8250 fi
8251 $as_echo "$as_me: error: $2" >&2
8252 as_fn_exit $as_status
8253} # as_fn_error
8254
8255
8256# as_fn_set_status STATUS
8257# -----------------------
8258# Set $? to STATUS, without forking.
8259as_fn_set_status ()
8260{
8261 return $1
8262} # as_fn_set_status
8263
8264# as_fn_exit STATUS
8265# -----------------
8266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8267as_fn_exit ()
8268{
8269 set +e
8270 as_fn_set_status $1
8271 exit $1
8272} # as_fn_exit
8273
8274# as_fn_unset VAR
8275# ---------------
8276# Portably unset VAR.
8277as_fn_unset ()
8278{
8279 { eval $1=; unset $1;}
8280}
8281as_unset=as_fn_unset
8282# as_fn_append VAR VALUE
8283# ----------------------
8284# Append the text in VALUE to the end of the definition contained in VAR. Take
8285# advantage of any shell optimizations that allow amortized linear growth over
8286# repeated appends, instead of the typical quadratic growth present in naive
8287# implementations.
8288if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8289 eval 'as_fn_append ()
8290 {
8291 eval $1+=\$2
8292 }'
13141 else 8293else
13142 $as_unset $as_var 8294 as_fn_append ()
13143 fi 8295 {
13144done 8296 eval $1=\$$1\$2
8297 }
8298fi # as_fn_append
13145 8299
13146# Required to use basename. 8300# as_fn_arith ARG...
8301# ------------------
8302# Perform arithmetic evaluation on the ARGs, and store the result in the
8303# global $as_val. Take advantage of shells that can avoid forks. The arguments
8304# must be portable across $(()) and expr.
8305if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8306 eval 'as_fn_arith ()
8307 {
8308 as_val=$(( $* ))
8309 }'
8310else
8311 as_fn_arith ()
8312 {
8313 as_val=`expr "$@" || test $? -eq 1`
8314 }
8315fi # as_fn_arith
8316
8317
13147if expr a : '\(a\)' >/dev/null 2>&1; then 8318if expr a : '\(a\)' >/dev/null 2>&1 &&
8319 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13148 as_expr=expr 8320 as_expr=expr
13149else 8321else
13150 as_expr=false 8322 as_expr=false
13151fi 8323fi
13152 8324
13153if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 8325if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
13154 as_basename=basename 8326 as_basename=basename
13155else 8327else
13156 as_basename=false 8328 as_basename=false
13157fi 8329fi
13158 8330
8331if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8332 as_dirname=dirname
8333else
8334 as_dirname=false
8335fi
13159 8336
13160# Name of the executable.
13161as_me=`$as_basename "$0" || 8337as_me=`$as_basename -- "$0" ||
13162$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 8338$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13163 X"$0" : 'X\(//\)$' \| \ 8339 X"$0" : 'X\(//\)$' \| \
13164 X"$0" : 'X\(/\)$' \| \ 8340 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
13165 . : '\(.\)' 2>/dev/null ||
13166echo X/"$0" | 8341$as_echo X/"$0" |
13167 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 8342 sed '/^.*\/\([^/][^/]*\)\/*$/{
13168 /^X\/\(\/\/\)$/{ s//\1/; q; } 8343 s//\1/
13169 /^X\/\(\/\).*/{ s//\1/; q; } 8344 q
8345 }
8346 /^X\/\(\/\/\)$/{
8347 s//\1/
8348 q
8349 }
8350 /^X\/\(\/\).*/{
8351 s//\1/
8352 q
8353 }
13170 s/.*/./; q'` 8354 s/.*/./; q'`
13171 8355
13172
13173# PATH needs CR, and LINENO needs CR and PATH.
13174# Avoid depending upon Character Ranges. 8356# Avoid depending upon Character Ranges.
13175as_cr_letters='abcdefghijklmnopqrstuvwxyz' 8357as_cr_letters='abcdefghijklmnopqrstuvwxyz'
13176as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 8358as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
13177as_cr_Letters=$as_cr_letters$as_cr_LETTERS 8359as_cr_Letters=$as_cr_letters$as_cr_LETTERS
13178as_cr_digits='0123456789' 8360as_cr_digits='0123456789'
13179as_cr_alnum=$as_cr_Letters$as_cr_digits 8361as_cr_alnum=$as_cr_Letters$as_cr_digits
13180 8362
13181# The user is always right. 8363ECHO_C= ECHO_N= ECHO_T=
13182if test "${PATH_SEPARATOR+set}" != set; then 8364case `echo -n x` in #(((((
13183 echo "#! /bin/sh" >conf$$.sh 8365-n*)
13184 echo "exit 0" >>conf$$.sh 8366 case `echo 'xy\c'` in
13185 chmod +x conf$$.sh 8367 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13186 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 8368 xy) ECHO_C='\c';;
13187 PATH_SEPARATOR=';' 8369 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8370 ECHO_T=' ';;
8371 esac;;
8372*)
8373 ECHO_N='-n';;
8374esac
8375
8376rm -f conf$$ conf$$.exe conf$$.file
8377if test -d conf$$.dir; then
8378 rm -f conf$$.dir/conf$$.file
8379else
8380 rm -f conf$$.dir
8381 mkdir conf$$.dir 2>/dev/null
8382fi
8383if (echo >conf$$.file) 2>/dev/null; then
8384 if ln -s conf$$.file conf$$ 2>/dev/null; then
8385 as_ln_s='ln -s'
8386 # ... but there are two gotchas:
8387 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8388 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8389 # In both cases, we have to default to `cp -pR'.
8390 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8391 as_ln_s='cp -pR'
8392 elif ln conf$$.file conf$$ 2>/dev/null; then
8393 as_ln_s=ln
13188 else 8394 else
13189 PATH_SEPARATOR=: 8395 as_ln_s='cp -pR'
13190 fi 8396 fi
13191 rm -f conf$$.sh 8397else
8398 as_ln_s='cp -pR'
13192fi 8399fi
8400rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8401rmdir conf$$.dir 2>/dev/null
13193 8402
13194 8403
13195 as_lineno_1=$LINENO 8404# as_fn_mkdir_p
13196 as_lineno_2=$LINENO 8405# -------------
13197 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8406# Create "$as_dir" as a directory, including parents if necessary.
13198 test "x$as_lineno_1" != "x$as_lineno_2" && 8407as_fn_mkdir_p ()
13199 test "x$as_lineno_3" = "x$as_lineno_2" || { 8408{
13200 # Find who we are. Look in the path if we contain no path at all
13201 # relative or not.
13202 case $0 in
13203 *[\\/]* ) as_myself=$0 ;;
13204 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205for as_dir in $PATH
13206do
13207 IFS=$as_save_IFS
13208 test -z "$as_dir" && as_dir=.
13209 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13210done
13211 8409
13212 ;; 8410 case $as_dir in #(
8411 -*) as_dir=./$as_dir;;
13213 esac 8412 esac
13214 # We did not find ourselves, most probably we were run as `sh COMMAND' 8413 test -d "$as_dir" || eval $as_mkdir_p || {
13215 # in which case we are not to be found in the path. 8414 as_dirs=
13216 if test "x$as_myself" = x; then 8415 while :; do
13217 as_myself=$0
13218 fi
13219 if test ! -f "$as_myself"; then
13220 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
13221echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
13222 { (exit 1); exit 1; }; }
13223 fi
13224 case $CONFIG_SHELL in
13225 '')
13226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13227for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
13228do
13229 IFS=$as_save_IFS
13230 test -z "$as_dir" && as_dir=.
13231 for as_base in sh bash ksh sh5; do
13232 case $as_dir in 8416 case $as_dir in #(
13233 /*) 8417 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13234 if ("$as_dir/$as_base" -c ' 8418 *) as_qdir=$as_dir;;
13235 as_lineno_1=$LINENO 8419 esac
13236 as_lineno_2=$LINENO 8420 as_dirs="'$as_qdir' $as_dirs"
13237 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 8421 as_dir=`$as_dirname -- "$as_dir" ||
13238 test "x$as_lineno_1" != "x$as_lineno_2" && 8422$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13239 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 8423 X"$as_dir" : 'X\(//\)[^/]' \| \
13240 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 8424 X"$as_dir" : 'X\(//\)$' \| \
13241 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 8425 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13242 CONFIG_SHELL=$as_dir/$as_base 8426$as_echo X"$as_dir" |
13243 export CONFIG_SHELL 8427 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13244 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 8428 s//\1/
13245 fi;; 8429 q
13246 esac 8430 }
8431 /^X\(\/\/\)[^/].*/{
8432 s//\1/
8433 q
8434 }
8435 /^X\(\/\/\)$/{
8436 s//\1/
8437 q
8438 }
8439 /^X\(\/\).*/{
8440 s//\1/
8441 q
8442 }
8443 s/.*/./; q'`
8444 test -d "$as_dir" && break
13247 done 8445 done
13248done 8446 test -z "$as_dirs" || eval "mkdir $as_dirs"
13249;; 8447 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
13250 esac
13251 8448
13252 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
13253 # uniformly replaced by the line number. The first 'sed' inserts a
13254 # line-number line before each line; the second 'sed' does the real
13255 # work. The second script uses 'N' to pair each line-number line
13256 # with the numbered line, and appends trailing '-' during
13257 # substitution so that $LINENO is not a special case at line end.
13258 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
13259 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
13260 sed '=' <$as_myself |
13261 sed '
13262 N
13263 s,$,-,
13264 : loop
13265 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
13266 t loop
13267 s,-$,,
13268 s,^['$as_cr_digits']*\n,,
13269 ' >$as_me.lineno &&
13270 chmod +x $as_me.lineno ||
13271 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
13272echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
13273 { (exit 1); exit 1; }; }
13274 8449
13275 # Don't try to exec as it changes $[0], causing all sort of problems 8450} # as_fn_mkdir_p
13276 # (the dirname of $[0] is not the place where we might find the
13277 # original and so on. Autoconf is especially sensible to this).
13278 . ./$as_me.lineno
13279 # Exit status is that of the last command.
13280 exit
13281}
13282
13283
13284case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
13285 *c*,-n*) ECHO_N= ECHO_C='
13286' ECHO_T=' ' ;;
13287 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
13288 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
13289esac
13290
13291if expr a : '\(a\)' >/dev/null 2>&1; then
13292 as_expr=expr
13293else
13294 as_expr=false
13295fi
13296
13297rm -f conf$$ conf$$.exe conf$$.file
13298echo >conf$$.file
13299if ln -s conf$$.file conf$$ 2>/dev/null; then
13300 # We could just check for DJGPP; but this test a) works b) is more generic
13301 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
13302 if test -f conf$$.exe; then
13303 # Don't use ln at all; we don't have any links
13304 as_ln_s='cp -p'
13305 else
13306 as_ln_s='ln -s'
13307 fi
13308elif ln conf$$.file conf$$ 2>/dev/null; then
13309 as_ln_s=ln
13310else
13311 as_ln_s='cp -p'
13312fi
13313rm -f conf$$ conf$$.exe conf$$.file
13314
13315if mkdir -p . 2>/dev/null; then 8451if mkdir -p . 2>/dev/null; then
13316 as_mkdir_p=: 8452 as_mkdir_p='mkdir -p "$as_dir"'
13317else 8453else
13318 test -d ./-p && rmdir ./-p 8454 test -d ./-p && rmdir ./-p
13319 as_mkdir_p=false 8455 as_mkdir_p=false
13320fi 8456fi
13321 8457
13322as_executable_p="test -f" 8458
8459# as_fn_executable_p FILE
8460# -----------------------
8461# Test if FILE is an executable regular file.
8462as_fn_executable_p ()
8463{
8464 test -f "$1" && test -x "$1"
8465} # as_fn_executable_p
8466as_test_x='test -x'
8467as_executable_p=as_fn_executable_p
13323 8468
13324# Sed expression to map a string onto a valid CPP name. 8469# Sed expression to map a string onto a valid CPP name.
13325as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 8470as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
13326 8471
13327# Sed expression to map a string onto a valid variable name. 8472# Sed expression to map a string onto a valid variable name.
13328as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 8473as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13329 8474
13330 8475
13331# IFS
13332# We need space, tab and new line, in precisely that order.
13333as_nl='
13334'
13335IFS=" $as_nl"
13336
13337# CDPATH.
13338$as_unset CDPATH
13339
13340exec 6>&1 8476exec 6>&1
8477## ----------------------------------- ##
8478## Main body of $CONFIG_STATUS script. ##
8479## ----------------------------------- ##
8480_ASEOF
8481test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13341 8482
8483cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13342# Open the log real soon, to keep \$[0] and so on meaningful, and to 8484# Save the log message, to keep $0 and so on meaningful, and to
13343# report actual input values of CONFIG_FILES etc. instead of their 8485# report actual input values of CONFIG_FILES etc. instead of their
13344# values after options handling. Logging --version etc. is OK. 8486# values after options handling.
13345exec 5>>config.log 8487ac_log="
13346{
13347 echo
13348 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
13349## Running $as_me. ##
13350_ASBOX
13351} >&5
13352cat >&5 <<_CSEOF
13353
13354This file was extended by $as_me, which was 8488This file was extended by $as_me, which was
13355generated by GNU Autoconf 2.59. Invocation command line was 8489generated by GNU Autoconf 2.69. Invocation command line was
13356 8490
13357 CONFIG_FILES = $CONFIG_FILES 8491 CONFIG_FILES = $CONFIG_FILES
13358 CONFIG_HEADERS = $CONFIG_HEADERS 8492 CONFIG_HEADERS = $CONFIG_HEADERS
13359 CONFIG_LINKS = $CONFIG_LINKS 8493 CONFIG_LINKS = $CONFIG_LINKS
13360 CONFIG_COMMANDS = $CONFIG_COMMANDS 8494 CONFIG_COMMANDS = $CONFIG_COMMANDS
13361 $ $0 $@ 8495 $ $0 $@
13362 8496
13363_CSEOF
13364echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 8497on `(hostname || uname -n) 2>/dev/null | sed 1q`
13365echo >&5 8498"
13366_ACEOF
13367 8499
8500_ACEOF
8501
8502case $ac_config_files in *"
8503"*) set x $ac_config_files; shift; ac_config_files=$*;;
8504esac
8505
8506case $ac_config_headers in *"
8507"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8508esac
8509
8510
8511cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13368# Files that config.status was made for. 8512# Files that config.status was made for.
13369if test -n "$ac_config_files"; then 8513config_files="$ac_config_files"
13370 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 8514config_headers="$ac_config_headers"
13371fi
13372 8515
13373if test -n "$ac_config_headers"; then 8516_ACEOF
13374 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
13375fi
13376 8517
13377if test -n "$ac_config_links"; then
13378 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
13379fi
13380
13381if test -n "$ac_config_commands"; then
13382 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
13383fi
13384
13385cat >>$CONFIG_STATUS <<\_ACEOF 8518cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13386
13387ac_cs_usage="\ 8519ac_cs_usage="\
13388\`$as_me' instantiates files from templates according to the 8520\`$as_me' instantiates files and other configuration actions
13389current configuration. 8521from templates according to the current configuration. Unless the files
8522and actions are specified as TAGs, all are instantiated by default.
13390 8523
13391Usage: $0 [OPTIONS] [FILE]... 8524Usage: $0 [OPTION]... [TAG]...
13392 8525
13393 -h, --help print this help, then exit 8526 -h, --help print this help, then exit
13394 -V, --version print version number, then exit 8527 -V, --version print version number and configuration settings, then exit
8528 --config print configuration, then exit
8529 -q, --quiet, --silent
13395 -q, --quiet do not print progress messages 8530 do not print progress messages
13396 -d, --debug don't remove temporary files 8531 -d, --debug don't remove temporary files
13397 --recheck update $as_me by reconfiguring in the same conditions 8532 --recheck update $as_me by reconfiguring in the same conditions
13398 --file=FILE[:TEMPLATE] 8533 --file=FILE[:TEMPLATE]
13399 instantiate the configuration file FILE 8534 instantiate the configuration file FILE
13400 --header=FILE[:TEMPLATE] 8535 --header=FILE[:TEMPLATE]
13401 instantiate the configuration header FILE 8536 instantiate the configuration header FILE
13402 8537
13403Configuration files: 8538Configuration files:
13404$config_files 8539$config_files
13405 8540
13406Configuration headers: 8541Configuration headers:
13407$config_headers 8542$config_headers
13408 8543
13409Report bugs to <bug-autoconf@gnu.org>." 8544Report bugs to the package provider."
13410_ACEOF
13411 8545
8546_ACEOF
13412cat >>$CONFIG_STATUS <<_ACEOF 8547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8548ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
13413ac_cs_version="\\ 8549ac_cs_version="\\
13414config.status 8550config.status
13415configured by $0, generated by GNU Autoconf 2.59, 8551configured by $0, generated by GNU Autoconf 2.69,
13416 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 8552 with options \\"\$ac_cs_config\\"
13417 8553
13418Copyright (C) 2003 Free Software Foundation, Inc. 8554Copyright (C) 2012 Free Software Foundation, Inc.
13419This config.status script is free software; the Free Software Foundation 8555This config.status script is free software; the Free Software Foundation
13420gives unlimited permission to copy, distribute and modify it." 8556gives unlimited permission to copy, distribute and modify it."
8557
8558ac_pwd='$ac_pwd'
13421srcdir=$srcdir 8559srcdir='$srcdir'
13422INSTALL="$INSTALL" 8560INSTALL='$INSTALL'
8561test -n "\$AWK" || AWK=awk
13423_ACEOF 8562_ACEOF
13424 8563
13425cat >>$CONFIG_STATUS <<\_ACEOF 8564cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13426# If no file are specified by the user, then we need to provide default 8565# The default lists apply if the user does not specify any file.
13427# value. By we need to know if files were specified by the user.
13428ac_need_defaults=: 8566ac_need_defaults=:
13429while test $# != 0 8567while test $# != 0
13430do 8568do
13431 case $1 in 8569 case $1 in
13432 --*=*) 8570 --*=?*)
13433 ac_option=`expr "x$1" : 'x\([^=]*\)='` 8571 ac_option=`expr "X$1" : 'X\([^=]*\)='`
13434 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 8572 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
13435 ac_shift=: 8573 ac_shift=:
13436 ;; 8574 ;;
8575 --*=)
8576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8577 ac_optarg=
8578 ac_shift=:
8579 ;;
13437 -*) 8580 *)
13438 ac_option=$1 8581 ac_option=$1
13439 ac_optarg=$2 8582 ac_optarg=$2
13440 ac_shift=shift 8583 ac_shift=shift
13441 ;; 8584 ;;
13442 *) # This is not an option, so the user has probably given explicit
13443 # arguments.
13444 ac_option=$1
13445 ac_need_defaults=false;;
13446 esac 8585 esac
13447 8586
13448 case $ac_option in 8587 case $ac_option in
13449 # Handling of the options. 8588 # Handling of the options.
13450_ACEOF
13451cat >>$CONFIG_STATUS <<\_ACEOF
13452 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 8589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
13453 ac_cs_recheck=: ;; 8590 ac_cs_recheck=: ;;
13454 --version | --vers* | -V ) 8591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
13455 echo "$ac_cs_version"; exit 0 ;; 8592 $as_echo "$ac_cs_version"; exit ;;
13456 --he | --h) 8593 --config | --confi | --conf | --con | --co | --c )
13457 # Conflict between --help and --header
13458 { { echo "$as_me:$LINENO: error: ambiguous option: $1
13459Try \`$0 --help' for more information." >&5
13460echo "$as_me: error: ambiguous option: $1
13461Try \`$0 --help' for more information." >&2;}
13462 { (exit 1); exit 1; }; };;
13463 --help | --hel | -h )
13464 echo "$ac_cs_usage"; exit 0 ;; 8594 $as_echo "$ac_cs_config"; exit ;;
13465 --debug | --d* | -d ) 8595 --debug | --debu | --deb | --de | --d | -d )
13466 debug=: ;; 8596 debug=: ;;
13467 --file | --fil | --fi | --f ) 8597 --file | --fil | --fi | --f )
13468 $ac_shift 8598 $ac_shift
13469 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 8599 case $ac_optarg in
8600 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8601 '') as_fn_error $? "missing file argument" ;;
8602 esac
8603 as_fn_append CONFIG_FILES " '$ac_optarg'"
13470 ac_need_defaults=false;; 8604 ac_need_defaults=false;;
13471 --header | --heade | --head | --hea ) 8605 --header | --heade | --head | --hea )
13472 $ac_shift 8606 $ac_shift
13473 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 8607 case $ac_optarg in
8608 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8609 esac
8610 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
13474 ac_need_defaults=false;; 8611 ac_need_defaults=false;;
8612 --he | --h)
8613 # Conflict between --help and --header
8614 as_fn_error $? "ambiguous option: \`$1'
8615Try \`$0 --help' for more information.";;
8616 --help | --hel | -h )
8617 $as_echo "$ac_cs_usage"; exit ;;
13475 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 8618 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
13476 | -silent | --silent | --silen | --sile | --sil | --si | --s) 8619 | -silent | --silent | --silen | --sile | --sil | --si | --s)
13477 ac_cs_silent=: ;; 8620 ac_cs_silent=: ;;
13478 8621
13479 # This is an error. 8622 # This is an error.
13480 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 8623 -*) as_fn_error $? "unrecognized option: \`$1'
13481Try \`$0 --help' for more information." >&5
13482echo "$as_me: error: unrecognized option: $1
13483Try \`$0 --help' for more information." >&2;} 8624Try \`$0 --help' for more information." ;;
13484 { (exit 1); exit 1; }; } ;;
13485 8625
13486 *) ac_config_targets="$ac_config_targets $1" ;; 8626 *) as_fn_append ac_config_targets " $1"
8627 ac_need_defaults=false ;;
13487 8628
13488 esac 8629 esac
13489 shift 8630 shift
13490done 8631done
13491 8632
13495 exec 6>/dev/null 8636 exec 6>/dev/null
13496 ac_configure_extra_args="$ac_configure_extra_args --silent" 8637 ac_configure_extra_args="$ac_configure_extra_args --silent"
13497fi 8638fi
13498 8639
13499_ACEOF 8640_ACEOF
13500cat >>$CONFIG_STATUS <<_ACEOF 8641cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13501if \$ac_cs_recheck; then 8642if \$ac_cs_recheck; then
13502 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
13503 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 8643 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8644 shift
8645 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8646 CONFIG_SHELL='$SHELL'
8647 export CONFIG_SHELL
8648 exec "\$@"
13504fi 8649fi
13505 8650
13506_ACEOF 8651_ACEOF
13507
13508
13509
13510
13511
13512cat >>$CONFIG_STATUS <<\_ACEOF 8652cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8653exec 5>>config.log
8654{
8655 echo
8656 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8657## Running $as_me. ##
8658_ASBOX
8659 $as_echo "$ac_log"
8660} >&5
8661
8662_ACEOF
8663cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8664_ACEOF
8665
8666cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8667
8668# Handling of arguments.
13513for ac_config_target in $ac_config_targets 8669for ac_config_target in $ac_config_targets
13514do 8670do
13515 case "$ac_config_target" in 8671 case $ac_config_target in
13516 # Handling of arguments. 8672 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.h.in" ;;
13517 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 8673 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
13518 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 8674 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
13519 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 8675 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
13520 "src/rxvtlib.h" ) CONFIG_FILES="$CONFIG_FILES src/rxvtlib.h" ;; 8676
13521 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:autoconf/config.h.in" ;; 8677 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
13522 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
13523echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
13524 { (exit 1); exit 1; }; };;
13525 esac 8678 esac
13526done 8679done
8680
13527 8681
13528# If the user did not use the arguments to specify the items to instantiate, 8682# If the user did not use the arguments to specify the items to instantiate,
13529# then the envvar interface is used. Set only those that are not. 8683# then the envvar interface is used. Set only those that are not.
13530# We use the long form for the default assignment because of an extremely 8684# We use the long form for the default assignment because of an extremely
13531# bizarre bug on SunOS 4.1.3. 8685# bizarre bug on SunOS 4.1.3.
13533 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 8687 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
13534 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 8688 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
13535fi 8689fi
13536 8690
13537# Have a temporary directory for convenience. Make it in the build tree 8691# Have a temporary directory for convenience. Make it in the build tree
13538# simply because there is no reason to put it here, and in addition, 8692# simply because there is no reason against having it here, and in addition,
13539# creating and moving files from /tmp can sometimes cause problems. 8693# creating and moving files from /tmp can sometimes cause problems.
13540# Create a temporary directory, and hook for its removal unless debugging. 8694# Hook for its removal unless debugging.
8695# Note that there is a small window in which the directory will not be cleaned:
8696# after its creation but before its name has been assigned to `$tmp'.
13541$debug || 8697$debug ||
13542{ 8698{
13543 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 8699 tmp= ac_tmp=
13544 trap '{ (exit 1); exit 1; }' 1 2 13 15 8700 trap 'exit_status=$?
8701 : "${ac_tmp:=$tmp}"
8702 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
8703' 0
8704 trap 'as_fn_exit 1' 1 2 13 15
13545} 8705}
13546
13547# Create a (secure) tmp directory for tmp files. 8706# Create a (secure) tmp directory for tmp files.
13548 8707
13549{ 8708{
13550 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 8709 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
13551 test -n "$tmp" && test -d "$tmp" 8710 test -d "$tmp"
13552} || 8711} ||
13553{ 8712{
13554 tmp=./confstat$$-$RANDOM 8713 tmp=./conf$$-$RANDOM
13555 (umask 077 && mkdir $tmp) 8714 (umask 077 && mkdir "$tmp")
13556} || 8715} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
8716ac_tmp=$tmp
8717
8718# Set up the scripts for CONFIG_FILES section.
8719# No need to generate them if there are no CONFIG_FILES.
8720# This happens for instance with `./config.status config.h'.
8721if test -n "$CONFIG_FILES"; then
8722
8723
8724ac_cr=`echo X | tr X '\015'`
8725# On cygwin, bash can eat \r inside `` if the user requested igncr.
8726# But we know of no other shell where ac_cr would be empty at this
8727# point, so we can use a bashism as a fallback.
8728if test "x$ac_cr" = x; then
8729 eval ac_cr=\$\'\\r\'
8730fi
8731ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
8732if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
8733 ac_cs_awk_cr='\\r'
8734else
8735 ac_cs_awk_cr=$ac_cr
8736fi
8737
8738echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
8739_ACEOF
8740
8741
13557{ 8742{
13558 echo "$me: cannot create a temporary directory in ." >&2 8743 echo "cat >conf$$subs.awk <<_ACEOF" &&
13559 { (exit 1); exit 1; } 8744 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
8745 echo "_ACEOF"
8746} >conf$$subs.sh ||
8747 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8748ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
8749ac_delim='%!_!# '
8750for ac_last_try in false false false false false :; do
8751 . ./conf$$subs.sh ||
8752 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8753
8754 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
8755 if test $ac_delim_n = $ac_delim_num; then
8756 break
8757 elif $ac_last_try; then
8758 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
8759 else
8760 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8761 fi
8762done
8763rm -f conf$$subs.sh
8764
8765cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8766cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
8767_ACEOF
8768sed -n '
8769h
8770s/^/S["/; s/!.*/"]=/
8771p
8772g
8773s/^[^!]*!//
8774:repl
8775t repl
8776s/'"$ac_delim"'$//
8777t delim
8778:nl
8779h
8780s/\(.\{148\}\)..*/\1/
8781t more1
8782s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
8783p
8784n
8785b repl
8786:more1
8787s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8788p
8789g
8790s/.\{148\}//
8791t nl
8792:delim
8793h
8794s/\(.\{148\}\)..*/\1/
8795t more2
8796s/["\\]/\\&/g; s/^/"/; s/$/"/
8797p
8798b
8799:more2
8800s/["\\]/\\&/g; s/^/"/; s/$/"\\/
8801p
8802g
8803s/.\{148\}//
8804t delim
8805' <conf$$subs.awk | sed '
8806/^[^""]/{
8807 N
8808 s/\n//
13560} 8809}
13561 8810' >>$CONFIG_STATUS || ac_write_fail=1
13562_ACEOF 8811rm -f conf$$subs.awk
13563
13564cat >>$CONFIG_STATUS <<_ACEOF 8812cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8813_ACAWK
8814cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
8815 for (key in S) S_is_set[key] = 1
8816 FS = ""
13565 8817
13566# 8818}
13567# CONFIG_FILES section. 8819{
13568# 8820 line = $ 0
13569 8821 nfields = split(line, field, "@")
13570# No need to generate the scripts if there are no CONFIG_FILES. 8822 substed = 0
13571# This happens for instance when ./config.status config.h 8823 len = length(field[1])
13572if test -n "\$CONFIG_FILES"; then 8824 for (i = 2; i < nfields; i++) {
13573 # Protect against being on the right side of a sed subst in config.status. 8825 key = field[i]
13574 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 8826 keylen = length(key)
13575 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 8827 if (S_is_set[key]) {
13576s,@SHELL@,$SHELL,;t t 8828 value = S[key]
13577s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 8829 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
13578s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 8830 len += length(value) + length(field[++i])
13579s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 8831 substed = 1
13580s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
13581s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
13582s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
13583s,@exec_prefix@,$exec_prefix,;t t
13584s,@prefix@,$prefix,;t t
13585s,@program_transform_name@,$program_transform_name,;t t
13586s,@bindir@,$bindir,;t t
13587s,@sbindir@,$sbindir,;t t
13588s,@libexecdir@,$libexecdir,;t t
13589s,@datadir@,$datadir,;t t
13590s,@sysconfdir@,$sysconfdir,;t t
13591s,@sharedstatedir@,$sharedstatedir,;t t
13592s,@localstatedir@,$localstatedir,;t t
13593s,@libdir@,$libdir,;t t
13594s,@includedir@,$includedir,;t t
13595s,@oldincludedir@,$oldincludedir,;t t
13596s,@infodir@,$infodir,;t t
13597s,@mandir@,$mandir,;t t
13598s,@build_alias@,$build_alias,;t t
13599s,@host_alias@,$host_alias,;t t
13600s,@target_alias@,$target_alias,;t t
13601s,@DEFS@,$DEFS,;t t
13602s,@ECHO_C@,$ECHO_C,;t t
13603s,@ECHO_N@,$ECHO_N,;t t
13604s,@ECHO_T@,$ECHO_T,;t t
13605s,@LIBS@,$LIBS,;t t
13606s,@build@,$build,;t t
13607s,@build_cpu@,$build_cpu,;t t
13608s,@build_vendor@,$build_vendor,;t t
13609s,@build_os@,$build_os,;t t
13610s,@host@,$host,;t t
13611s,@host_cpu@,$host_cpu,;t t
13612s,@host_vendor@,$host_vendor,;t t
13613s,@host_os@,$host_os,;t t
13614s,@VERSION@,$VERSION,;t t
13615s,@DATE@,$DATE,;t t
13616s,@LSMDATE@,$LSMDATE,;t t
13617s,@LIBVERSION@,$LIBVERSION,;t t
13618s,@CC@,$CC,;t t
13619s,@CFLAGS@,$CFLAGS,;t t
13620s,@LDFLAGS@,$LDFLAGS,;t t
13621s,@CPPFLAGS@,$CPPFLAGS,;t t
13622s,@ac_ct_CC@,$ac_ct_CC,;t t
13623s,@EXEEXT@,$EXEEXT,;t t
13624s,@OBJEXT@,$OBJEXT,;t t
13625s,@CXX@,$CXX,;t t
13626s,@CXXFLAGS@,$CXXFLAGS,;t t
13627s,@ac_ct_CXX@,$ac_ct_CXX,;t t
13628s,@CPP@,$CPP,;t t
13629s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
13630s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
13631s,@INSTALL_DATA@,$INSTALL_DATA,;t t
13632s,@AWK@,$AWK,;t t
13633s,@LINKER@,$LINKER,;t t
13634s,@CXXCPP@,$CXXCPP,;t t
13635s,@EGREP@,$EGREP,;t t
13636s,@INSTALL_LIBRXVT@,$INSTALL_LIBRXVT,;t t
13637s,@RXVTNAME@,$RXVTNAME,;t t
13638s,@MV@,$MV,;t t
13639s,@RM@,$RM,;t t
13640s,@CP@,$CP,;t t
13641s,@LN@,$LN,;t t
13642s,@SED@,$SED,;t t
13643s,@ECHO@,$ECHO,;t t
13644s,@CMP@,$CMP,;t t
13645s,@TBL@,$TBL,;t t
13646s,@TIC@,$TIC,;t t
13647s,@X_CFLAGS@,$X_CFLAGS,;t t
13648s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
13649s,@X_LIBS@,$X_LIBS,;t t
13650s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
13651s,@XPM_CPPFLAGS@,$XPM_CPPFLAGS,;t t
13652s,@XPM_CFLAGS@,$XPM_CFLAGS,;t t
13653s,@XPM_LIBS@,$XPM_LIBS,;t t
13654s,@rxvt_int16_typedef@,$rxvt_int16_typedef,;t t
13655s,@rxvt_uint16_typedef@,$rxvt_uint16_typedef,;t t
13656s,@rxvt_int32_typedef@,$rxvt_int32_typedef,;t t
13657s,@rxvt_uint32_typedef@,$rxvt_uint32_typedef,;t t
13658s,@rxvt_intp_define@,$rxvt_intp_define,;t t
13659s,@rxvt_u_intp_define@,$rxvt_u_intp_define,;t t
13660s,@PERL@,$PERL,;t t
13661s,@PERLLIB@,$PERLLIB,;t t
13662s,@PERLFLAGS@,$PERLFLAGS,;t t
13663s,@PERLPRIVLIBEXP@,$PERLPRIVLIBEXP,;t t
13664s,@IF_PERL@,$IF_PERL,;t t
13665s,@PERL_O@,$PERL_O,;t t
13666s,@DEBUG@,$DEBUG,;t t
13667s,@DINCLUDE@,$DINCLUDE,;t t
13668s,@DLIB@,$DLIB,;t t
13669s,@include_stdint_h@,$include_stdint_h,;t t
13670s,@include_stdarg_h@,$include_stdarg_h,;t t
13671s,@include_stdlib_h@,$include_stdlib_h,;t t
13672s,@include_unistd_h@,$include_unistd_h,;t t
13673s,@include_string_h@,$include_string_h,;t t
13674s,@include_fcntl_h@,$include_fcntl_h,;t t
13675s,@include_util_h@,$include_util_h,;t t
13676s,@include_assert_h@,$include_assert_h,;t t
13677s,@include_sys_ioctl_h@,$include_sys_ioctl_h,;t t
13678s,@include_sys_select_h@,$include_sys_select_h,;t t
13679s,@include_sys_strredir_h@,$include_sys_strredir_h,;t t
13680s,@include_sys_time_h@,$include_sys_time_h,;t t
13681s,@include_time_h@,$include_time_h,;t t
13682s,@LIBOBJS@,$LIBOBJS,;t t
13683s,@LTLIBOBJS@,$LTLIBOBJS,;t t
13684CEOF
13685
13686_ACEOF
13687
13688 cat >>$CONFIG_STATUS <<\_ACEOF
13689 # Split the substitutions into bite-sized pieces for seds with
13690 # small command number limits, like on Digital OSF/1 and HP-UX.
13691 ac_max_sed_lines=48
13692 ac_sed_frag=1 # Number of current file.
13693 ac_beg=1 # First line for current file.
13694 ac_end=$ac_max_sed_lines # Line after last line for current file.
13695 ac_more_lines=:
13696 ac_sed_cmds=
13697 while $ac_more_lines; do
13698 if test $ac_beg -gt 1; then
13699 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
13700 else 8832 } else
13701 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 8833 len += 1 + keylen
8834 }
8835
8836 print line
8837}
8838
8839_ACAWK
8840_ACEOF
8841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8842if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8843 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8844else
8845 cat
8846fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8847 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8848_ACEOF
8849
8850# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8851# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8852# trailing colons and then remove the whole line if VPATH becomes empty
8853# (actually we leave an empty line to preserve line numbers).
8854if test "x$srcdir" = x.; then
8855 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8856h
8857s///
8858s/^/:/
8859s/[ ]*$/:/
8860s/:\$(srcdir):/:/g
8861s/:\${srcdir}:/:/g
8862s/:@srcdir@:/:/g
8863s/^:*//
8864s/:*$//
8865x
8866s/\(=[ ]*\).*/\1/
8867G
8868s/\n//
8869s/^[^=]*=[ ]*$//
8870}'
8871fi
8872
8873cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8874fi # test -n "$CONFIG_FILES"
8875
8876# Set up the scripts for CONFIG_HEADERS section.
8877# No need to generate them if there are no CONFIG_HEADERS.
8878# This happens for instance with `./config.status Makefile'.
8879if test -n "$CONFIG_HEADERS"; then
8880cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8881BEGIN {
8882_ACEOF
8883
8884# Transform confdefs.h into an awk script `defines.awk', embedded as
8885# here-document in config.status, that substitutes the proper values into
8886# config.h.in to produce config.h.
8887
8888# Create a delimiter string that does not exist in confdefs.h, to ease
8889# handling of long lines.
8890ac_delim='%!_!# '
8891for ac_last_try in false false :; do
8892 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8893 if test -z "$ac_tt"; then
8894 break
8895 elif $ac_last_try; then
8896 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8897 else
8898 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8899 fi
8900done
8901
8902# For the awk script, D is an array of macro values keyed by name,
8903# likewise P contains macro parameters if any. Preserve backslash
8904# newline sequences.
8905
8906ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8907sed -n '
8908s/.\{148\}/&'"$ac_delim"'/g
8909t rset
8910:rset
8911s/^[ ]*#[ ]*define[ ][ ]*/ /
8912t def
8913d
8914:def
8915s/\\$//
8916t bsnl
8917s/["\\]/\\&/g
8918s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8919D["\1"]=" \3"/p
8920s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8921d
8922:bsnl
8923s/["\\]/\\&/g
8924s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8925D["\1"]=" \3\\\\\\n"\\/p
8926t cont
8927s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8928t cont
8929d
8930:cont
8931n
8932s/.\{148\}/&'"$ac_delim"'/g
8933t clear
8934:clear
8935s/\\$//
8936t bsnlc
8937s/["\\]/\\&/g; s/^/"/; s/$/"/p
8938d
8939:bsnlc
8940s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8941b cont
8942' <confdefs.h | sed '
8943s/'"$ac_delim"'/"\\\
8944"/g' >>$CONFIG_STATUS || ac_write_fail=1
8945
8946cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8947 for (key in D) D_is_set[key] = 1
8948 FS = ""
8949}
8950/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8951 line = \$ 0
8952 split(line, arg, " ")
8953 if (arg[1] == "#") {
8954 defundef = arg[2]
8955 mac1 = arg[3]
8956 } else {
8957 defundef = substr(arg[1], 2)
8958 mac1 = arg[2]
8959 }
8960 split(mac1, mac2, "(") #)
8961 macro = mac2[1]
8962 prefix = substr(line, 1, index(line, defundef) - 1)
8963 if (D_is_set[macro]) {
8964 # Preserve the white space surrounding the "#".
8965 print prefix "define", macro P[macro] D[macro]
8966 next
8967 } else {
8968 # Replace #undef with comments. This is necessary, for example,
8969 # in the case of _POSIX_SOURCE, which is predefined and required
8970 # on some systems where configure will not decide to define it.
8971 if (defundef == "undef") {
8972 print "/*", prefix defundef, macro, "*/"
8973 next
8974 }
8975 }
8976}
8977{ print }
8978_ACAWK
8979_ACEOF
8980cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8981 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8982fi # test -n "$CONFIG_HEADERS"
8983
8984
8985eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
8986shift
8987for ac_tag
8988do
8989 case $ac_tag in
8990 :[FHLC]) ac_mode=$ac_tag; continue;;
8991 esac
8992 case $ac_mode$ac_tag in
8993 :[FHL]*:*);;
8994 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8995 :[FH]-) ac_tag=-:-;;
8996 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8997 esac
8998 ac_save_IFS=$IFS
8999 IFS=:
9000 set x $ac_tag
9001 IFS=$ac_save_IFS
9002 shift
9003 ac_file=$1
9004 shift
9005
9006 case $ac_mode in
9007 :L) ac_source=$1;;
9008 :[FH])
9009 ac_file_inputs=
9010 for ac_f
9011 do
9012 case $ac_f in
9013 -) ac_f="$ac_tmp/stdin";;
9014 *) # Look for the file first in the build tree, then in the source tree
9015 # (if the path is not absolute). The absolute path cannot be DOS-style,
9016 # because $ac_f cannot contain `:'.
9017 test -f "$ac_f" ||
9018 case $ac_f in
9019 [\\/$]*) false;;
9020 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9021 esac ||
9022 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9023 esac
9024 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9025 as_fn_append ac_file_inputs " '$ac_f'"
9026 done
9027
9028 # Let's still pretend it is `configure' which instantiates (i.e., don't
9029 # use $as_me), people would be surprised to read:
9030 # /* config.h. Generated by config.status. */
9031 configure_input='Generated from '`
9032 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9033 `' by configure.'
9034 if test x"$ac_file" != x-; then
9035 configure_input="$ac_file. $configure_input"
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9037$as_echo "$as_me: creating $ac_file" >&6;}
13702 fi 9038 fi
13703 if test ! -s $tmp/subs.frag; then 9039 # Neutralize special characters interpreted by sed in replacement strings.
13704 ac_more_lines=false 9040 case $configure_input in #(
9041 *\&* | *\|* | *\\* )
9042 ac_sed_conf_input=`$as_echo "$configure_input" |
9043 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9044 *) ac_sed_conf_input=$configure_input;;
13705 else 9045 esac
13706 # The purpose of the label and of the branching condition is to
13707 # speed up the sed processing (if there are no `@' at all, there
13708 # is no need to browse any of the substitutions).
13709 # These are the two extra sed commands mentioned above.
13710 (echo ':t
13711 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
13712 if test -z "$ac_sed_cmds"; then
13713 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
13714 else
13715 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
13716 fi
13717 ac_sed_frag=`expr $ac_sed_frag + 1`
13718 ac_beg=$ac_end
13719 ac_end=`expr $ac_end + $ac_max_sed_lines`
13720 fi
13721 done
13722 if test -z "$ac_sed_cmds"; then
13723 ac_sed_cmds=cat
13724 fi
13725fi # test -n "$CONFIG_FILES"
13726 9046
13727_ACEOF
13728cat >>$CONFIG_STATUS <<\_ACEOF
13729for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
13730 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13731 case $ac_file in 9047 case $ac_tag in
13732 - | *:- | *:-:* ) # input from stdin 9048 *:-:* | *:-) cat >"$ac_tmp/stdin" \
13733 cat >$tmp/stdin 9049 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
13734 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 9050 esac
13735 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 9051 ;;
13736 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13737 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13738 * ) ac_file_in=$ac_file.in ;;
13739 esac 9052 esac
13740 9053
13741 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 9054 ac_dir=`$as_dirname -- "$ac_file" ||
13742 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
13743$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 9055$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13744 X"$ac_file" : 'X\(//\)[^/]' \| \ 9056 X"$ac_file" : 'X\(//\)[^/]' \| \
13745 X"$ac_file" : 'X\(//\)$' \| \ 9057 X"$ac_file" : 'X\(//\)$' \| \
13746 X"$ac_file" : 'X\(/\)' \| \ 9058 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
13747 . : '\(.\)' 2>/dev/null ||
13748echo X"$ac_file" | 9059$as_echo X"$ac_file" |
13749 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 9060 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13750 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 9061 s//\1/
13751 /^X\(\/\/\)$/{ s//\1/; q; } 9062 q
13752 /^X\(\/\).*/{ s//\1/; q; } 9063 }
9064 /^X\(\/\/\)[^/].*/{
9065 s//\1/
9066 q
9067 }
9068 /^X\(\/\/\)$/{
9069 s//\1/
9070 q
9071 }
9072 /^X\(\/\).*/{
9073 s//\1/
9074 q
9075 }
13753 s/.*/./; q'` 9076 s/.*/./; q'`
13754 { if $as_mkdir_p; then 9077 as_dir="$ac_dir"; as_fn_mkdir_p
13755 mkdir -p "$ac_dir"
13756 else
13757 as_dir="$ac_dir"
13758 as_dirs=
13759 while test ! -d "$as_dir"; do
13760 as_dirs="$as_dir $as_dirs"
13761 as_dir=`(dirname "$as_dir") 2>/dev/null ||
13762$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13763 X"$as_dir" : 'X\(//\)[^/]' \| \
13764 X"$as_dir" : 'X\(//\)$' \| \
13765 X"$as_dir" : 'X\(/\)' \| \
13766 . : '\(.\)' 2>/dev/null ||
13767echo X"$as_dir" |
13768 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
13769 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
13770 /^X\(\/\/\)$/{ s//\1/; q; }
13771 /^X\(\/\).*/{ s//\1/; q; }
13772 s/.*/./; q'`
13773 done
13774 test ! -n "$as_dirs" || mkdir $as_dirs
13775 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
13776echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
13777 { (exit 1); exit 1; }; }; }
13778
13779 ac_builddir=. 9078 ac_builddir=.
13780 9079
13781if test "$ac_dir" != .; then 9080case "$ac_dir" in
9081.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9082*)
13782 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 9083 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
13783 # A "../" for each directory in $ac_dir_suffix. 9084 # A ".." for each directory in $ac_dir_suffix.
13784 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 9085 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
13785else 9086 case $ac_top_builddir_sub in
13786 ac_dir_suffix= ac_top_builddir= 9087 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
13787fi 9088 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9089 esac ;;
9090esac
9091ac_abs_top_builddir=$ac_pwd
9092ac_abs_builddir=$ac_pwd$ac_dir_suffix
9093# for backward compatibility:
9094ac_top_builddir=$ac_top_build_prefix
13788 9095
13789case $srcdir in 9096case $srcdir in
13790 .) # No --srcdir option. We are building in place. 9097 .) # We are building in place.
13791 ac_srcdir=. 9098 ac_srcdir=.
13792 if test -z "$ac_top_builddir"; then 9099 ac_top_srcdir=$ac_top_builddir_sub
13793 ac_top_srcdir=. 9100 ac_abs_top_srcdir=$ac_pwd ;;
13794 else
13795 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
13796 fi ;;
13797 [\\/]* | ?:[\\/]* ) # Absolute path. 9101 [\\/]* | ?:[\\/]* ) # Absolute name.
13798 ac_srcdir=$srcdir$ac_dir_suffix; 9102 ac_srcdir=$srcdir$ac_dir_suffix;
13799 ac_top_srcdir=$srcdir ;; 9103 ac_top_srcdir=$srcdir
9104 ac_abs_top_srcdir=$srcdir ;;
13800 *) # Relative path. 9105 *) # Relative name.
13801 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 9106 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
13802 ac_top_srcdir=$ac_top_builddir$srcdir ;; 9107 ac_top_srcdir=$ac_top_build_prefix$srcdir
9108 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
13803esac 9109esac
9110ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
13804 9111
13805# Do not use `cd foo && pwd` to compute absolute paths, because 9112
13806# the directories may not exist.
13807case `pwd` in
13808.) ac_abs_builddir="$ac_dir";;
13809*)
13810 case "$ac_dir" in 9113 case $ac_mode in
13811 .) ac_abs_builddir=`pwd`;; 9114 :F)
13812 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 9115 #
13813 *) ac_abs_builddir=`pwd`/"$ac_dir";; 9116 # CONFIG_FILE
13814 esac;; 9117 #
13815esac
13816case $ac_abs_builddir in
13817.) ac_abs_top_builddir=${ac_top_builddir}.;;
13818*)
13819 case ${ac_top_builddir}. in
13820 .) ac_abs_top_builddir=$ac_abs_builddir;;
13821 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
13822 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
13823 esac;;
13824esac
13825case $ac_abs_builddir in
13826.) ac_abs_srcdir=$ac_srcdir;;
13827*)
13828 case $ac_srcdir in
13829 .) ac_abs_srcdir=$ac_abs_builddir;;
13830 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
13831 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
13832 esac;;
13833esac
13834case $ac_abs_builddir in
13835.) ac_abs_top_srcdir=$ac_top_srcdir;;
13836*)
13837 case $ac_top_srcdir in
13838 .) ac_abs_top_srcdir=$ac_abs_builddir;;
13839 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
13840 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
13841 esac;;
13842esac
13843
13844 9118
13845 case $INSTALL in 9119 case $INSTALL in
13846 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 9120 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
13847 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 9121 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
13848 esac 9122 esac
13849
13850 # Let's still pretend it is `configure' which instantiates (i.e., don't
13851 # use $as_me), people would be surprised to read:
13852 # /* config.h. Generated by config.status. */
13853 if test x"$ac_file" = x-; then
13854 configure_input=
13855 else
13856 configure_input="$ac_file. "
13857 fi
13858 configure_input=$configure_input"Generated from `echo $ac_file_in |
13859 sed 's,.*/,,'` by configure."
13860
13861 # First look for the input files in the build tree, otherwise in the
13862 # src tree.
13863 ac_file_inputs=`IFS=:
13864 for f in $ac_file_in; do
13865 case $f in
13866 -) echo $tmp/stdin ;;
13867 [\\/$]*)
13868 # Absolute (can't be DOS-style, as IFS=:)
13869 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13870echo "$as_me: error: cannot find input file: $f" >&2;}
13871 { (exit 1); exit 1; }; }
13872 echo "$f";;
13873 *) # Relative
13874 if test -f "$f"; then
13875 # Build tree
13876 echo "$f"
13877 elif test -f "$srcdir/$f"; then
13878 # Source tree
13879 echo "$srcdir/$f"
13880 else
13881 # /dev/null tree
13882 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13883echo "$as_me: error: cannot find input file: $f" >&2;}
13884 { (exit 1); exit 1; }; }
13885 fi;;
13886 esac
13887 done` || { (exit 1); exit 1; }
13888
13889 if test x"$ac_file" != x-; then
13890 { echo "$as_me:$LINENO: creating $ac_file" >&5
13891echo "$as_me: creating $ac_file" >&6;}
13892 rm -f "$ac_file"
13893 fi
13894_ACEOF 9123_ACEOF
9124
9125cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9126# If the template does not know about datarootdir, expand it.
9127# FIXME: This hack should be removed a few years after 2.60.
9128ac_datarootdir_hack=; ac_datarootdir_seen=
9129ac_sed_dataroot='
9130/datarootdir/ {
9131 p
9132 q
9133}
9134/@datadir@/p
9135/@docdir@/p
9136/@infodir@/p
9137/@localedir@/p
9138/@mandir@/p'
9139case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9140*datarootdir*) ac_datarootdir_seen=yes;;
9141*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9143$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9144_ACEOF
13895cat >>$CONFIG_STATUS <<_ACEOF 9145cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13896 sed "$ac_vpsub 9146 ac_datarootdir_hack='
9147 s&@datadir@&$datadir&g
9148 s&@docdir@&$docdir&g
9149 s&@infodir@&$infodir&g
9150 s&@localedir@&$localedir&g
9151 s&@mandir@&$mandir&g
9152 s&\\\${datarootdir}&$datarootdir&g' ;;
9153esac
9154_ACEOF
9155
9156# Neutralize VPATH when `$srcdir' = `.'.
9157# Shell code in configure.ac might set extrasub.
9158# FIXME: do we really want to maintain this feature?
9159cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9160ac_sed_extra="$ac_vpsub
13897$extrasub 9161$extrasub
13898_ACEOF 9162_ACEOF
13899cat >>$CONFIG_STATUS <<\_ACEOF 9163cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13900:t 9164:t
13901/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 9165/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
13902s,@configure_input@,$configure_input,;t t 9166s|@configure_input@|$ac_sed_conf_input|;t t
9167s&@top_builddir@&$ac_top_builddir_sub&;t t
9168s&@top_build_prefix@&$ac_top_build_prefix&;t t
13903s,@srcdir@,$ac_srcdir,;t t 9169s&@srcdir@&$ac_srcdir&;t t
13904s,@abs_srcdir@,$ac_abs_srcdir,;t t 9170s&@abs_srcdir@&$ac_abs_srcdir&;t t
13905s,@top_srcdir@,$ac_top_srcdir,;t t 9171s&@top_srcdir@&$ac_top_srcdir&;t t
13906s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 9172s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
13907s,@builddir@,$ac_builddir,;t t 9173s&@builddir@&$ac_builddir&;t t
13908s,@abs_builddir@,$ac_abs_builddir,;t t 9174s&@abs_builddir@&$ac_abs_builddir&;t t
13909s,@top_builddir@,$ac_top_builddir,;t t
13910s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 9175s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
13911s,@INSTALL@,$ac_INSTALL,;t t 9176s&@INSTALL@&$ac_INSTALL&;t t
13912" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 9177$ac_datarootdir_hack
9178"
9179eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9180 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9181
9182test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9183 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9184 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9185 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9187which seems to be undefined. Please make sure it is defined" >&5
9188$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9189which seems to be undefined. Please make sure it is defined" >&2;}
9190
13913 rm -f $tmp/stdin 9191 rm -f "$ac_tmp/stdin"
9192 case $ac_file in
9193 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9194 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9195 esac \
9196 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9197 ;;
9198 :H)
9199 #
9200 # CONFIG_HEADER
9201 #
13914 if test x"$ac_file" != x-; then 9202 if test x"$ac_file" != x-; then
13915 mv $tmp/out $ac_file 9203 {
13916 else 9204 $as_echo "/* $configure_input */" \
13917 cat $tmp/out 9205 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
13918 rm -f $tmp/out 9206 } >"$ac_tmp/config.h" \
13919 fi 9207 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
13920
13921done
13922_ACEOF
13923cat >>$CONFIG_STATUS <<\_ACEOF
13924
13925#
13926# CONFIG_HEADER section.
13927#
13928
13929# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
13930# NAME is the cpp macro being defined and VALUE is the value it is being given.
13931#
13932# ac_d sets the value in "#define NAME VALUE" lines.
13933ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
13934ac_dB='[ ].*$,\1#\2'
13935ac_dC=' '
13936ac_dD=',;t'
13937# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
13938ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
13939ac_uB='$,\1#\2define\3'
13940ac_uC=' '
13941ac_uD=',;t'
13942
13943for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
13944 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
13945 case $ac_file in
13946 - | *:- | *:-:* ) # input from stdin
13947 cat >$tmp/stdin
13948 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13949 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13950 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
13951 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
13952 * ) ac_file_in=$ac_file.in ;;
13953 esac
13954
13955 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
13956echo "$as_me: creating $ac_file" >&6;}
13957
13958 # First look for the input files in the build tree, otherwise in the
13959 # src tree.
13960 ac_file_inputs=`IFS=:
13961 for f in $ac_file_in; do
13962 case $f in
13963 -) echo $tmp/stdin ;;
13964 [\\/$]*)
13965 # Absolute (can't be DOS-style, as IFS=:)
13966 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13967echo "$as_me: error: cannot find input file: $f" >&2;}
13968 { (exit 1); exit 1; }; }
13969 # Do quote $f, to prevent DOS paths from being IFS'd.
13970 echo "$f";;
13971 *) # Relative
13972 if test -f "$f"; then
13973 # Build tree
13974 echo "$f"
13975 elif test -f "$srcdir/$f"; then
13976 # Source tree
13977 echo "$srcdir/$f"
13978 else
13979 # /dev/null tree
13980 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
13981echo "$as_me: error: cannot find input file: $f" >&2;}
13982 { (exit 1); exit 1; }; }
13983 fi;;
13984 esac
13985 done` || { (exit 1); exit 1; }
13986 # Remove the trailing spaces.
13987 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
13988
13989_ACEOF
13990
13991# Transform confdefs.h into two sed scripts, `conftest.defines' and
13992# `conftest.undefs', that substitutes the proper values into
13993# config.h.in to produce config.h. The first handles `#define'
13994# templates, and the second `#undef' templates.
13995# And first: Protect against being on the right side of a sed subst in
13996# config.status. Protect against being in an unquoted here document
13997# in config.status.
13998rm -f conftest.defines conftest.undefs
13999# Using a here document instead of a string reduces the quoting nightmare.
14000# Putting comments in sed scripts is not portable.
14001#
14002# `end' is used to avoid that the second main sed command (meant for
14003# 0-ary CPP macros) applies to n-ary macro definitions.
14004# See the Autoconf documentation for `clear'.
14005cat >confdef2sed.sed <<\_ACEOF
14006s/[\\&,]/\\&/g
14007s,[\\$`],\\&,g
14008t clear
14009: clear
14010s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
14011t end
14012s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
14013: end
14014_ACEOF
14015# If some macros were called several times there might be several times
14016# the same #defines, which is useless. Nevertheless, we may not want to
14017# sort them, since we want the *last* AC-DEFINE to be honored.
14018uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
14019sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
14020rm -f confdef2sed.sed
14021
14022# This sed command replaces #undef with comments. This is necessary, for
14023# example, in the case of _POSIX_SOURCE, which is predefined and required
14024# on some systems where configure will not decide to define it.
14025cat >>conftest.undefs <<\_ACEOF
14026s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
14027_ACEOF
14028
14029# Break up conftest.defines because some shells have a limit on the size
14030# of here documents, and old seds have small limits too (100 cmds).
14031echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
14032echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
14033echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
14034echo ' :' >>$CONFIG_STATUS
14035rm -f conftest.tail
14036while grep . conftest.defines >/dev/null
14037do
14038 # Write a limited-size here document to $tmp/defines.sed.
14039 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
14040 # Speed up: don't consider the non `#define' lines.
14041 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
14042 # Work around the forget-to-reset-the-flag bug.
14043 echo 't clr' >>$CONFIG_STATUS
14044 echo ': clr' >>$CONFIG_STATUS
14045 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
14046 echo 'CEOF
14047 sed -f $tmp/defines.sed $tmp/in >$tmp/out
14048 rm -f $tmp/in
14049 mv $tmp/out $tmp/in
14050' >>$CONFIG_STATUS
14051 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
14052 rm -f conftest.defines
14053 mv conftest.tail conftest.defines
14054done
14055rm -f conftest.defines
14056echo ' fi # grep' >>$CONFIG_STATUS
14057echo >>$CONFIG_STATUS
14058
14059# Break up conftest.undefs because some shells have a limit on the size
14060# of here documents, and old seds have small limits too (100 cmds).
14061echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
14062rm -f conftest.tail
14063while grep . conftest.undefs >/dev/null
14064do
14065 # Write a limited-size here document to $tmp/undefs.sed.
14066 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
14067 # Speed up: don't consider the non `#undef'
14068 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
14069 # Work around the forget-to-reset-the-flag bug.
14070 echo 't clr' >>$CONFIG_STATUS
14071 echo ': clr' >>$CONFIG_STATUS
14072 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
14073 echo 'CEOF
14074 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
14075 rm -f $tmp/in
14076 mv $tmp/out $tmp/in
14077' >>$CONFIG_STATUS
14078 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
14079 rm -f conftest.undefs
14080 mv conftest.tail conftest.undefs
14081done
14082rm -f conftest.undefs
14083
14084cat >>$CONFIG_STATUS <<\_ACEOF
14085 # Let's still pretend it is `configure' which instantiates (i.e., don't
14086 # use $as_me), people would be surprised to read:
14087 # /* config.h. Generated by config.status. */
14088 if test x"$ac_file" = x-; then
14089 echo "/* Generated by configure. */" >$tmp/config.h
14090 else
14091 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
14092 fi
14093 cat $tmp/in >>$tmp/config.h
14094 rm -f $tmp/in
14095 if test x"$ac_file" != x-; then
14096 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 9208 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
14097 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
14098echo "$as_me: $ac_file is unchanged" >&6;} 9210$as_echo "$as_me: $ac_file is unchanged" >&6;}
14099 else 9211 else
14100 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
14101$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14102 X"$ac_file" : 'X\(//\)[^/]' \| \
14103 X"$ac_file" : 'X\(//\)$' \| \
14104 X"$ac_file" : 'X\(/\)' \| \
14105 . : '\(.\)' 2>/dev/null ||
14106echo X"$ac_file" |
14107 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14108 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14109 /^X\(\/\/\)$/{ s//\1/; q; }
14110 /^X\(\/\).*/{ s//\1/; q; }
14111 s/.*/./; q'`
14112 { if $as_mkdir_p; then
14113 mkdir -p "$ac_dir"
14114 else
14115 as_dir="$ac_dir"
14116 as_dirs=
14117 while test ! -d "$as_dir"; do
14118 as_dirs="$as_dir $as_dirs"
14119 as_dir=`(dirname "$as_dir") 2>/dev/null ||
14120$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14121 X"$as_dir" : 'X\(//\)[^/]' \| \
14122 X"$as_dir" : 'X\(//\)$' \| \
14123 X"$as_dir" : 'X\(/\)' \| \
14124 . : '\(.\)' 2>/dev/null ||
14125echo X"$as_dir" |
14126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
14127 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
14128 /^X\(\/\/\)$/{ s//\1/; q; }
14129 /^X\(\/\).*/{ s//\1/; q; }
14130 s/.*/./; q'`
14131 done
14132 test ! -n "$as_dirs" || mkdir $as_dirs
14133 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
14134echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
14135 { (exit 1); exit 1; }; }; }
14136
14137 rm -f $ac_file 9212 rm -f "$ac_file"
14138 mv $tmp/config.h $ac_file 9213 mv "$ac_tmp/config.h" "$ac_file" \
9214 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
14139 fi 9215 fi
14140 else 9216 else
14141 cat $tmp/config.h 9217 $as_echo "/* $configure_input */" \
14142 rm -f $tmp/config.h 9218 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9219 || as_fn_error $? "could not create -" "$LINENO" 5
14143 fi 9220 fi
14144done 9221 ;;
14145_ACEOF
14146 9222
14147cat >>$CONFIG_STATUS <<\_ACEOF
14148 9223
14149{ (exit 0); exit 0; } 9224 esac
9225
9226done # for ac_tag
9227
9228
9229as_fn_exit 0
14150_ACEOF 9230_ACEOF
14151chmod +x $CONFIG_STATUS
14152ac_clean_files=$ac_clean_files_save 9231ac_clean_files=$ac_clean_files_save
9232
9233test $ac_write_fail = 0 ||
9234 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
14153 9235
14154 9236
14155# configure is writing to config.log, and then calls config.status. 9237# configure is writing to config.log, and then calls config.status.
14156# config.status does its own redirection, appending to config.log. 9238# config.status does its own redirection, appending to config.log.
14157# Unfortunately, on DOS this fails, as config.log is still kept open 9239# Unfortunately, on DOS this fails, as config.log is still kept open
14168 exec 5>/dev/null 9250 exec 5>/dev/null
14169 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 9251 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
14170 exec 5>>config.log 9252 exec 5>>config.log
14171 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 9253 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14172 # would make configure fail if this is the last instruction. 9254 # would make configure fail if this is the last instruction.
14173 $ac_cs_success || { (exit 1); exit 1; } 9255 $ac_cs_success || as_fn_exit 1
9256fi
9257if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9259$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
14174fi 9260fi
14175 9261
14176 9262
14177echo "Configuration: 9263echo "Configuration:
14178 9264
14179 Rxvt version: $VERSION : $DATE 9265 Rxvt version: $VERSION : $DATE
14180 Source code location: $srcdir 9266 Source code location: $srcdir
14181 Install path: ${prefix}/bin 9267 Install path: ${prefix}/bin
14182 Compiler: $CXX 9268 Compiler: $CXX
14183 Compiler flags: $CFLAGS 9269 Compiler flags: $CXXFLAGS
14184 Linker: $LINKER" 9270 Linker: $LINKER"
14185 9271
14186if test "$MALLOC_TYPE" = S; then
14187 echo " malloc support: system default"
14188fi
14189if test "$MALLOC_TYPE" = G; then
14190 echo " malloc support: Gray Watson's dmalloc"
14191fi
14192if test "$MALLOC_TYPE" = D; then
14193 echo " malloc support: Doug Lea's malloc"
14194fi
14195
14196if test x$support_xpm = xyes; then
14197 echo " Xpm library: $XPM_LIBS"
14198fi
14199
14200echo "
14201The following are set in config.h
14202"
14203echo " pty/tty type: "$rxvt_cv_ptys
14204if test x$support_utmp != xyes; then
14205 echo " utmp support: disabled"
14206 echo
14207else
14208 echo " utmp support: enabled
14209 utmp file: $rxvt_cv_path_utmp
14210 utmpx file: $rxvt_cv_path_utmpx
14211 wtmp file: $rxvt_cv_path_wtmp
14212 wtmpx file: $rxvt_cv_path_wtmpx
14213 lastlog file: $rxvt_cv_path_lastlog
14214 ttys/ttytab file: $rxvt_cv_path_ttytab
14215 embedded perl: $support_perl"
14216 echo
14217fi
14218if test x$term != x; then 9272if test x$term != x; then
14219 echo " set TERM to: $term" 9273 echo " set TERM to: $term"
14220fi 9274fi
14221if test x$terminfo != x; then 9275if test x$terminfo != x; then
14222 echo " set TERMINFO to: $terminfo" 9276 echo " set TERMINFO to: $terminfo"
14225echo " resource class: $RESCLASS" 9279echo " resource class: $RESCLASS"
14226if test x$RESFALLBACK != x; then 9280if test x$RESFALLBACK != x; then
14227 echo " resource class fallback: $RESFALLBACK" 9281 echo " resource class fallback: $RESFALLBACK"
14228fi 9282fi
14229echo 9283echo
14230if test x$rxvt_cv_ptys = xUNKNOWN; then 9284echo " embedded perl: $support_perl"
14231 echo ".----------------------------------------------------------------." 9285echo " image library: $image_lib"
14232 echo ". WARNING: could not determine pty/tty type. Do not build until ." 9286echo
14233 echo ". the appropriate PTYS_ARE_* is defined in config.h ."
14234 echo ".----------------------------------------------------------------."
14235fi
14236if test x$support_xpm = xneedsmanualspecification; then
14237 echo ".----------------------------------------------------------------."
14238 echo ". WARNING: --enable-xpm-background was specified however the ."
14239 echo ". XPM includes files and libraries could not be found. ."
14240 echo ". XPM backgrounds are now being DISABLED! If you want ."
14241 echo ". to use them you should rerun configure with the ."
14242 echo ". appropriate --with-xpm-includes=/path/to/xpm/includes ."
14243 echo ". and --with-xpm-library=/path/to/xpm/library lines. ."
14244 echo ".----------------------------------------------------------------."
14245fi
14246if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then 9287if test x$support_xim = xyes -a x$rxvt_cv_func_xlocale = xno; then
14247 echo ".----------------------------------------------------------------." 9288 echo ".----------------------------------------------------------------."
14248 echo ". WARNING: --enable-xim was specified however the locale support ." 9289 echo ". WARNING: --enable-xim was specified however the locale support ."
14249 echo ". functions could not be found. ." 9290 echo ". functions could not be found. ."
14250 echo ". XIM is now being DISABLED! ." 9291 echo ". XIM is now being DISABLED! ."
14251 echo ".----------------------------------------------------------------." 9292 echo ".----------------------------------------------------------------."
14252fi 9293fi
14253 9294
14254echo " *** Optionally check src/feature.h for further options ***" 9295echo "*** Optionally check src/feature.h for further, rarely used options ***"
14255echo 9296echo
14256 9297
14257echo ".----------------------------------------------------------------."
14258echo ". NOTE: some features are disabled by default, try ."
14259echo ". configure --help to get an idea of the optional features, ."
14260echo ". or read ./README.configure ."
14261echo ". ."
14262echo ". The script ./reconf gives a reasonable baseline, try it if ."
14263echo ". you do not want to read documentation and still want some ."
14264echo ". useful features. ."
14265echo ".----------------------------------------------------------------."
14266echo
14267

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines