aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure18925
1 files changed, 15759 insertions, 3166 deletions
diff --git a/configure b/configure
index f6c1d2f60ab..be0d2cf080b 100755
--- a/configure
+++ b/configure
@@ -1,20 +1,18 @@
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.64 for emacs 24.0.50. 3# Generated by GNU Autoconf 2.62 for emacs 24.0.50.
4# 4#
5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
7# Foundation, Inc.
8#
9# This configure script is free software; the Free Software Foundation 7# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it. 8# gives unlimited permission to copy, distribute and modify it.
11## -------------------- ## 9## --------------------- ##
12## M4sh Initialization. ## 10## M4sh Initialization. ##
13## -------------------- ## 11## --------------------- ##
14 12
15# Be more Bourne compatible 13# Be more Bourne compatible
16DUALCASE=1; export DUALCASE # for MKS sh 14DUALCASE=1; export DUALCASE # for MKS sh
17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh 16 emulate sh
19 NULLCMD=: 17 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
@@ -22,15 +20,23 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 alias -g '${1+"$@"}'='"$@"' 20 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST 21 setopt NO_GLOB_SUBST
24else 22else
25 case `(set -o) 2>/dev/null` in #( 23 case `(set -o) 2>/dev/null` in
26 *posix*) : 24 *posix*) set -o posix ;;
27 set -o posix ;; #(
28 *) :
29 ;;
30esac 25esac
26
31fi 27fi
32 28
33 29
30
31
32# PATH needs CR
33# Avoid depending upon Character Ranges.
34as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37as_cr_digits='0123456789'
38as_cr_alnum=$as_cr_Letters$as_cr_digits
39
34as_nl=' 40as_nl='
35' 41'
36export as_nl 42export as_nl
@@ -38,13 +44,7 @@ export as_nl
38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 45as_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 46as_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, 47if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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' 48 as_echo='printf %s\n'
49 as_echo_n='printf %s' 49 as_echo_n='printf %s'
50else 50else
@@ -55,7 +55,7 @@ else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval 56 as_echo_n_body='eval
57 arg=$1; 57 arg=$1;
58 case $arg in #( 58 case $arg in
59 *"$as_nl"*) 59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl"; 60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
@@ -78,6 +78,13 @@ if test "${PATH_SEPARATOR+set}" != set; then
78 } 78 }
79fi 79fi
80 80
81# Support unset when possible.
82if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84else
85 as_unset=false
86fi
87
81 88
82# IFS 89# IFS
83# We need space, tab and new line, in precisely that order. Quoting is 90# We need space, tab and new line, in precisely that order. Quoting is
@@ -87,15 +94,15 @@ fi
87IFS=" "" $as_nl" 94IFS=" "" $as_nl"
88 95
89# Find who we are. Look in the path if we contain no directory separator. 96# Find who we are. Look in the path if we contain no directory separator.
90case $0 in #(( 97case $0 in
91 *[\\/]* ) as_myself=$0 ;; 98 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93for as_dir in $PATH 100for as_dir in $PATH
94do 101do
95 IFS=$as_save_IFS 102 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=. 103 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done 105done
99IFS=$as_save_IFS 106IFS=$as_save_IFS
100 107
101 ;; 108 ;;
@@ -107,16 +114,12 @@ if test "x$as_myself" = x; then
107fi 114fi
108if test ! -f "$as_myself"; then 115if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1 117 { (exit 1); exit 1; }
111fi 118fi
112 119
113# Unset variables that we do not need and which cause bugs (e.g. in 120# Work around bugs in pre-3.0 UWIN ksh.
114# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 121for as_var in ENV MAIL MAILPATH
115# suppresses any "Segmentation fault" message there. '((' could 122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
116# trigger a bug in pdksh 5.2.14.
117for as_var in BASH_ENV ENV MAIL MAILPATH
118do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120done 123done
121PS1='$ ' 124PS1='$ '
122PS2='> ' 125PS2='> '
@@ -128,299 +131,330 @@ export LC_ALL
128LANGUAGE=C 131LANGUAGE=C
129export LANGUAGE 132export LANGUAGE
130 133
134# Required to use basename.
135if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr
138else
139 as_expr=false
140fi
141
142if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
143 as_basename=basename
144else
145 as_basename=false
146fi
147
148
149# Name of the executable.
150as_me=`$as_basename -- "$0" ||
151$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154$as_echo X/"$0" |
155 sed '/^.*\/\([^/][^/]*\)\/*$/{
156 s//\1/
157 q
158 }
159 /^X\/\(\/\/\)$/{
160 s//\1/
161 q
162 }
163 /^X\/\(\/\).*/{
164 s//\1/
165 q
166 }
167 s/.*/./; q'`
168
131# CDPATH. 169# CDPATH.
132(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 170$as_unset CDPATH
171
133 172
134if test "x$CONFIG_SHELL" = x; then 173if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 174 if (eval ":") 2>/dev/null; then
136 emulate sh 175 as_have_required=yes
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142else 176else
143 case \`(set -o) 2>/dev/null\` in #( 177 as_have_required=no
144 *posix*) :
145 set -o posix ;; #(
146 *) :
147 ;;
148esac
149fi 178fi
150" 179
151 as_required="as_fn_return () { (exit \$1); } 180 if test $as_have_required = yes && (eval ":
152as_fn_success () { as_fn_return 0; } 181(as_func_return () {
153as_fn_failure () { as_fn_return 1; } 182 (exit \$1)
154as_fn_ret_success () { return 0; } 183}
155as_fn_ret_failure () { return 1; } 184as_func_success () {
185 as_func_return 0
186}
187as_func_failure () {
188 as_func_return 1
189}
190as_func_ret_success () {
191 return 0
192}
193as_func_ret_failure () {
194 return 1
195}
156 196
157exitcode=0 197exitcode=0
158as_fn_success || { exitcode=1; echo as_fn_success failed.; } 198if as_func_success; then
159as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 199 :
160as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
163
164else
165 exitcode=1; echo positional parameters were not saved.
166fi
167test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172test \$(( 1 + 1 )) = 2 || exit 1"
173 if (eval "$as_required") 2>/dev/null; then :
174 as_have_required=yes
175else 200else
176 as_have_required=no 201 exitcode=1
202 echo as_func_success failed.
177fi 203fi
178 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
179 204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
180else 212else
181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 213 exitcode=1
182as_found=false 214 echo as_func_ret_success failed.
215fi
216
217if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220fi
221
222if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224else
225 exitcode=1
226 echo positional parameters were not saved.
227fi
228
229test \$exitcode = 0) || { (exit 1); exit 1; }
230
231(
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236") 2> /dev/null; then
237 :
238else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
183for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
184do 242do
185 IFS=$as_save_IFS 243 IFS=$as_save_IFS
186 test -z "$as_dir" && as_dir=. 244 test -z "$as_dir" && as_dir=.
187 as_found=: 245 case $as_dir in
188 case $as_dir in #(
189 /*) 246 /*)
190 for as_base in sh bash ksh sh5; do 247 for as_base in sh bash ksh sh5; do
191 # Try only shells that exist, to save several forks. 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
192 as_shell=$as_dir/$as_base
193 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
194 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
195 CONFIG_SHELL=$as_shell as_have_required=yes
196 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 break 2
198fi
199fi
200 done;; 249 done;;
201 esac 250 esac
202 as_found=false
203done 251done
204$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
205 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
206 CONFIG_SHELL=$SHELL as_have_required=yes
207fi; }
208IFS=$as_save_IFS 252IFS=$as_save_IFS
209 253
210 254
211 if test "x$CONFIG_SHELL" != x; then : 255 for as_shell in $as_candidate_shells $SHELL; do
212 # We cannot yet assume a decent shell, so we have to provide a 256 # Try only shells that exist, to save several forks.
213 # neutralization value for shells without unset; and this also 257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
214 # works around shells that cannot unset nonexistent variables. 258 { ("$as_shell") 2> /dev/null <<\_ASEOF
215 BASH_ENV=/dev/null 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
216 ENV=/dev/null 260 emulate sh
217 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 261 NULLCMD=:
218 export CONFIG_SHELL 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
219 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 263 # is contrary to our usage. Disable this feature.
220fi 264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
221 270
222 if test x$as_have_required = xno; then :
223 $as_echo "$0: This script requires a shell more modern than all"
224 $as_echo "$0: the shells that I found on your system."
225 if test x${ZSH_VERSION+set} = xset ; then
226 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
227 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
228 else
229 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
230$0: including any error possibly output before this
231$0: message. Then install a modern shell, or manually run
232$0: the script under such a shell if you do have one."
233 fi
234 exit 1
235fi
236fi 271fi
272
273
274:
275_ASEOF
276}; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290esac
291
237fi 292fi
238SHELL=${CONFIG_SHELL-/bin/sh}
239export SHELL
240# Unset more variables known to interfere with behavior of common tools.
241CLICOLOR_FORCE= GREP_OPTIONS=
242unset CLICOLOR_FORCE GREP_OPTIONS
243 293
244## --------------------- ##
245## M4sh Shell Functions. ##
246## --------------------- ##
247# as_fn_unset VAR
248# ---------------
249# Portably unset VAR.
250as_fn_unset ()
251{
252 { eval $1=; unset $1;}
253}
254as_unset=as_fn_unset
255 294
256# as_fn_set_status STATUS 295:
257# ----------------------- 296(as_func_return () {
258# Set $? to STATUS, without forking. 297 (exit $1)
259as_fn_set_status () 298}
260{ 299as_func_success () {
261 return $1 300 as_func_return 0
262} # as_fn_set_status 301}
302as_func_failure () {
303 as_func_return 1
304}
305as_func_ret_success () {
306 return 0
307}
308as_func_ret_failure () {
309 return 1
310}
263 311
264# as_fn_exit STATUS 312exitcode=0
265# ----------------- 313if as_func_success; then
266# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 :
267as_fn_exit () 315else
268{ 316 exitcode=1
269 set +e 317 echo as_func_success failed.
270 as_fn_set_status $1 318fi
271 exit $1
272} # as_fn_exit
273 319
274# as_fn_mkdir_p 320if as_func_failure; then
275# ------------- 321 exitcode=1
276# Create "$as_dir" as a directory, including parents if necessary. 322 echo as_func_failure succeeded.
277as_fn_mkdir_p () 323fi
278{
279 324
280 case $as_dir in #( 325if as_func_ret_success; then
281 -*) as_dir=./$as_dir;; 326 :
282 esac
283 test -d "$as_dir" || eval $as_mkdir_p || {
284 as_dirs=
285 while :; do
286 case $as_dir in #(
287 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
288 *) as_qdir=$as_dir;;
289 esac
290 as_dirs="'$as_qdir' $as_dirs"
291 as_dir=`$as_dirname -- "$as_dir" ||
292$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
293 X"$as_dir" : 'X\(//\)[^/]' \| \
294 X"$as_dir" : 'X\(//\)$' \| \
295 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
296$as_echo X"$as_dir" |
297 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
298 s//\1/
299 q
300 }
301 /^X\(\/\/\)[^/].*/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)$/{
306 s//\1/
307 q
308 }
309 /^X\(\/\).*/{
310 s//\1/
311 q
312 }
313 s/.*/./; q'`
314 test -d "$as_dir" && break
315 done
316 test -z "$as_dirs" || eval "mkdir $as_dirs"
317 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
318
319
320} # as_fn_mkdir_p
321# as_fn_append VAR VALUE
322# ----------------------
323# Append the text in VALUE to the end of the definition contained in VAR. Take
324# advantage of any shell optimizations that allow amortized linear growth over
325# repeated appends, instead of the typical quadratic growth present in naive
326# implementations.
327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
328 eval 'as_fn_append ()
329 {
330 eval $1+=\$2
331 }'
332else 327else
333 as_fn_append () 328 exitcode=1
334 { 329 echo as_func_ret_success failed.
335 eval $1=\$$1\$2 330fi
336 } 331
337fi # as_fn_append 332if as_func_ret_failure; then
338 333 exitcode=1
339# as_fn_arith ARG... 334 echo as_func_ret_failure succeeded.
340# ------------------ 335fi
341# Perform arithmetic evaluation on the ARGs, and store the result in the 336
342# global $as_val. Take advantage of shells that can avoid forks. The arguments 337if ( set x; as_func_ret_success y && test x = "$1" ); then
343# must be portable across $(()) and expr. 338 :
344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
345 eval 'as_fn_arith ()
346 {
347 as_val=$(( $* ))
348 }'
349else 339else
350 as_fn_arith () 340 exitcode=1
351 { 341 echo positional parameters were not saved.
352 as_val=`expr "$@" || test $? -eq 1` 342fi
353 }
354fi # as_fn_arith
355 343
344test $exitcode = 0) || { (exit 1); exit 1; }
356 345
357# as_fn_error ERROR [LINENO LOG_FD] 346(
358# --------------------------------- 347 as_lineno_1=$LINENO
359# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 348 as_lineno_2=$LINENO
360# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
361# script with status $?, using 1 if that was 0. 350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
362as_fn_error ()
363{
364 as_status=$?; test $as_status -eq 0 && as_status=1
365 if test "$3"; then
366 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
367 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
368 fi
369 $as_echo "$as_me: error: $1" >&2
370 as_fn_exit $as_status
371} # as_fn_error
372 351
373if expr a : '\(a\)' >/dev/null 2>&1 && 352_ASEOF
374 test "X`expr 00001 : '.*\(...\)'`" = X001; then 353}; then
375 as_expr=expr 354 break
355fi
356
357fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376fi
377
378
379fi
380
381fi
382
383
384
385(eval "as_func_return () {
386 (exit \$1)
387}
388as_func_success () {
389 as_func_return 0
390}
391as_func_failure () {
392 as_func_return 1
393}
394as_func_ret_success () {
395 return 0
396}
397as_func_ret_failure () {
398 return 1
399}
400
401exitcode=0
402if as_func_success; then
403 :
376else 404else
377 as_expr=false 405 exitcode=1
406 echo as_func_success failed.
378fi 407fi
379 408
380if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 409if as_func_failure; then
381 as_basename=basename 410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
382else 416else
383 as_basename=false 417 exitcode=1
418 echo as_func_ret_success failed.
384fi 419fi
385 420
386if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 421if as_func_ret_failure; then
387 as_dirname=dirname 422 exitcode=1
423 echo as_func_ret_failure succeeded.
424fi
425
426if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
388else 428else
389 as_dirname=false 429 exitcode=1
430 echo positional parameters were not saved.
390fi 431fi
391 432
392as_me=`$as_basename -- "$0" || 433test \$exitcode = 0") || {
393$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 434 echo No shell found that supports shell functions.
394 X"$0" : 'X\(//\)$' \| \ 435 echo Please tell bug-autoconf@gnu.org about your system,
395 X"$0" : 'X\(/\)' \| . 2>/dev/null || 436 echo including any error possibly output before this message.
396$as_echo X/"$0" | 437 echo This can help us improve future autoconf versions.
397 sed '/^.*\/\([^/][^/]*\)\/*$/{ 438 echo Configuration will now proceed without shell functions.
398 s//\1/ 439}
399 q 440
400 }
401 /^X\/\(\/\/\)$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\).*/{
406 s//\1/
407 q
408 }
409 s/.*/./; q'`
410 441
411# Avoid depending upon Character Ranges.
412as_cr_letters='abcdefghijklmnopqrstuvwxyz'
413as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
414as_cr_Letters=$as_cr_letters$as_cr_LETTERS
415as_cr_digits='0123456789'
416as_cr_alnum=$as_cr_Letters$as_cr_digits
417 442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
418 447
419 as_lineno_1=$LINENO as_lineno_1a=$LINENO 448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
420 as_lineno_2=$LINENO as_lineno_2a=$LINENO 449 # uniformly replaced by the line number. The first 'sed' inserts a
421 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 450 # line-number line after each line using $LINENO; the second 'sed'
422 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 451 # does the real work. The second script uses 'N' to pair each
423 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
424 sed -n ' 458 sed -n '
425 p 459 p
426 /[$]LINENO/= 460 /[$]LINENO/=
@@ -437,7 +471,8 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
437 s/-\n.*// 471 s/-\n.*//
438 ' >$as_me.lineno && 472 ' >$as_me.lineno &&
439 chmod +x "$as_me.lineno" || 473 chmod +x "$as_me.lineno" ||
440 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
441 476
442 # Don't try to exec as it changes $[0], causing all sort of problems 477 # Don't try to exec as it changes $[0], causing all sort of problems
443 # (the dirname of $[0] is not the place where we might find the 478 # (the dirname of $[0] is not the place where we might find the
@@ -447,18 +482,29 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
447 exit 482 exit
448} 483}
449 484
485
486if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488else
489 as_dirname=false
490fi
491
450ECHO_C= ECHO_N= ECHO_T= 492ECHO_C= ECHO_N= ECHO_T=
451case `echo -n x` in #((((( 493case `echo -n x` in
452-n*) 494-n*)
453 case `echo 'xy\c'` in 495 case `echo 'x\c'` in
454 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
455 xy) ECHO_C='\c';; 497 *) ECHO_C='\c';;
456 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
457 ECHO_T=' ';;
458 esac;; 498 esac;;
459*) 499*)
460 ECHO_N='-n';; 500 ECHO_N='-n';;
461esac 501esac
502if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505else
506 as_expr=false
507fi
462 508
463rm -f conf$$ conf$$.exe conf$$.file 509rm -f conf$$ conf$$.exe conf$$.file
464if test -d conf$$.dir; then 510if test -d conf$$.dir; then
@@ -488,7 +534,7 @@ rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
488rmdir conf$$.dir 2>/dev/null 534rmdir conf$$.dir 2>/dev/null
489 535
490if mkdir -p . 2>/dev/null; then 536if mkdir -p . 2>/dev/null; then
491 as_mkdir_p='mkdir -p "$as_dir"' 537 as_mkdir_p=:
492else 538else
493 test -d ./-p && rmdir ./-p 539 test -d ./-p && rmdir ./-p
494 as_mkdir_p=false 540 as_mkdir_p=false
@@ -507,10 +553,10 @@ else
507 if test -d "$1"; then 553 if test -d "$1"; then
508 test -d "$1/."; 554 test -d "$1/.";
509 else 555 else
510 case $1 in #( 556 case $1 in
511 -*)set "./$1";; 557 -*)set "./$1";;
512 esac; 558 esac;
513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
514 ???[sx]*):;;*)false;;esac;fi 560 ???[sx]*):;;*)false;;esac;fi
515 '\'' sh 561 '\'' sh
516 ' 562 '
@@ -524,6 +570,7 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
525 571
526 572
573
527exec 7<&0 </dev/null 6>&1 574exec 7<&0 </dev/null 6>&1
528 575
529# Name of the host. 576# Name of the host.
@@ -542,6 +589,7 @@ cross_compiling=no
542subdirs= 589subdirs=
543MFLAGS= 590MFLAGS=
544MAKEFLAGS= 591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
545 593
546# Identity of this package. 594# Identity of this package.
547PACKAGE_NAME='emacs' 595PACKAGE_NAME='emacs'
@@ -549,7 +597,6 @@ PACKAGE_TARNAME='emacs'
549PACKAGE_VERSION='24.0.50' 597PACKAGE_VERSION='24.0.50'
550PACKAGE_STRING='emacs 24.0.50' 598PACKAGE_STRING='emacs 24.0.50'
551PACKAGE_BUGREPORT='' 599PACKAGE_BUGREPORT=''
552PACKAGE_URL=''
553 600
554ac_unique_file="src/lisp.h" 601ac_unique_file="src/lisp.h"
555# Factoring default headers for most tests. 602# Factoring default headers for most tests.
@@ -591,137 +638,150 @@ ac_includes_default="\
591ac_config_libobj_dir=src 638ac_config_libobj_dir=src
592ac_header_list= 639ac_header_list=
593ac_func_list= 640ac_func_list=
594ac_subst_vars='LTLIBOBJS 641ac_subst_vars='SHELL
595OTHER_FILES
596LIB_SRC_EXTRA_INSTALLABLES
597GNU_OBJC_CFLAGS
598GNUSTEP_SYSTEM_LIBRARIES
599GNUSTEP_SYSTEM_HEADERS
600GNUSTEP_MAKEFILES
601ns_appsrc
602ns_appresdir
603ns_appbindir
604ns_appdir
605opsysfile
606machfile
607X_TOOLKIT_TYPE
608C_SWITCH_X_SITE
609LD_SWITCH_X_SITE_AUX
610LD_SWITCH_X_SITE
611c_switch_machine
612c_switch_system
613gameuser
614gamedir
615bitmapdir
616archlibdir
617etcdir
618x_default_search_path
619lisppath
620locallisppath
621lispdir
622srcdir
623canonical
624configuration
625version
626GETOPTOBJS
627GETOPT_H
628GETLOADAVG_LIBS
629KMEM_GROUP
630NEED_SETGID
631LIBOBJS
632liblockfile
633ALLOCA
634FREETYPE_LIBS
635FREETYPE_CFLAGS
636M17N_FLT_LIBS
637M17N_FLT_CFLAGS
638LIBOTF_LIBS
639LIBOTF_CFLAGS
640XFT_LIBS
641XFT_CFLAGS
642FONTCONFIG_LIBS
643FONTCONFIG_CFLAGS
644GCONF_LIBS
645GCONF_CFLAGS
646DBUS_LIBS
647DBUS_CFLAGS
648GTK_LIBS
649GTK_CFLAGS
650RSVG_LIBS
651RSVG_CFLAGS
652HAVE_XSERVER
653XMKMF
654SET_MAKE
655CFLAGS_SOUND
656ALSA_LIBS
657ALSA_CFLAGS
658PKG_CONFIG
659LIBSOUND
660MAKEINFO
661GZIP_PROG
662INSTALL_INFO
663RANLIB
664INSTALL_DATA
665INSTALL_SCRIPT
666INSTALL_PROGRAM
667LN_S
668EGREP
669GREP
670CPP
671OBJEXT
672EXEEXT
673ac_ct_CC
674CPPFLAGS
675LDFLAGS
676CFLAGS
677CC
678host_os
679host_vendor
680host_cpu
681host
682build_os
683build_vendor
684build_cpu
685build
686MAINT
687target_alias
688host_alias
689build_alias
690LIBS
691ECHO_T
692ECHO_N
693ECHO_C
694DEFS
695mandir
696localedir
697libdir
698psdir
699pdfdir
700dvidir
701htmldir
702infodir
703docdir
704oldincludedir
705includedir
706localstatedir
707sharedstatedir
708sysconfdir
709datadir
710datarootdir
711libexecdir
712sbindir
713bindir
714program_transform_name
715prefix
716exec_prefix
717PACKAGE_URL
718PACKAGE_BUGREPORT
719PACKAGE_STRING
720PACKAGE_VERSION
721PACKAGE_TARNAME
722PACKAGE_NAME
723PATH_SEPARATOR 642PATH_SEPARATOR
724SHELL' 643PACKAGE_NAME
644PACKAGE_TARNAME
645PACKAGE_VERSION
646PACKAGE_STRING
647PACKAGE_BUGREPORT
648exec_prefix
649prefix
650program_transform_name
651bindir
652sbindir
653libexecdir
654datarootdir
655datadir
656sysconfdir
657sharedstatedir
658localstatedir
659includedir
660oldincludedir
661docdir
662infodir
663htmldir
664dvidir
665pdfdir
666psdir
667libdir
668localedir
669mandir
670DEFS
671ECHO_C
672ECHO_N
673ECHO_T
674LIBS
675build_alias
676host_alias
677target_alias
678MAINT
679build
680build_cpu
681build_vendor
682build_os
683host
684host_cpu
685host_vendor
686host_os
687CC
688CFLAGS
689LDFLAGS
690CPPFLAGS
691ac_ct_CC
692EXEEXT
693OBJEXT
694CPP
695GREP
696EGREP
697LN_S
698INSTALL_PROGRAM
699INSTALL_SCRIPT
700INSTALL_DATA
701RANLIB
702INSTALL_INFO
703GZIP_PROG
704MAKEINFO
705LIBSOUND
706PKG_CONFIG
707ALSA_CFLAGS
708ALSA_LIBS
709CFLAGS_SOUND
710SET_MAKE
711XMKMF
712HAVE_XSERVER
713RSVG_CFLAGS
714RSVG_LIBS
715GTK_CFLAGS
716GTK_LIBS
717DBUS_CFLAGS
718DBUS_LIBS
719GCONF_CFLAGS
720GCONF_LIBS
721FONTCONFIG_CFLAGS
722FONTCONFIG_LIBS
723XFT_CFLAGS
724XFT_LIBS
725LIBOTF_CFLAGS
726LIBOTF_LIBS
727M17N_FLT_CFLAGS
728M17N_FLT_LIBS
729FREETYPE_CFLAGS
730FREETYPE_LIBS
731LIBXPM
732LIBJPEG
733LIBPNG
734LIBTIFF
735LIBGIF
736LIBGPM
737ALLOCA
738liblockfile
739LIBS_MAIL
740LIBOBJS
741NEED_SETGID
742KMEM_GROUP
743GETLOADAVG_LIBS
744GETOPT_H
745GETOPTOBJS
746LIBHESIOD
747LIBRESOLV
748COM_ERRLIB
749CRYPTOLIB
750KRB5LIB
751DESLIB
752KRB4LIB
753version
754configuration
755canonical
756srcdir
757lispdir
758locallisppath
759lisppath
760x_default_search_path
761etcdir
762archlibdir
763bitmapdir
764gamedir
765gameuser
766c_switch_system
767c_switch_machine
768LD_SWITCH_X_SITE
769LD_SWITCH_X_SITE_AUX
770C_SWITCH_X_SITE
771X_TOOLKIT_TYPE
772machfile
773opsysfile
774ns_appdir
775ns_appbindir
776ns_appresdir
777ns_appsrc
778GNUSTEP_MAKEFILES
779GNUSTEP_SYSTEM_HEADERS
780GNUSTEP_SYSTEM_LIBRARIES
781GNU_OBJC_CFLAGS
782LIB_SRC_EXTRA_INSTALLABLES
783OTHER_FILES
784LTLIBOBJS'
725ac_subst_files='' 785ac_subst_files=''
726ac_user_opts=' 786ac_user_opts='
727enable_option_checking 787enable_option_checking
@@ -729,6 +789,9 @@ with_pop
729with_kerberos 789with_kerberos
730with_kerberos5 790with_kerberos5
731with_hesiod 791with_hesiod
792with_mmdf
793with_mail_unlink
794with_mailhost
732with_sound 795with_sound
733with_sync_input 796with_sync_input
734with_x_toolkit 797with_x_toolkit
@@ -881,7 +944,8 @@ do
881 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 944 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
882 # Reject names that are not valid shell variable names. 945 # Reject names that are not valid shell variable names.
883 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 946 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
884 as_fn_error "invalid feature name: $ac_useropt" 947 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
948 { (exit 1); exit 1; }; }
885 ac_useropt_orig=$ac_useropt 949 ac_useropt_orig=$ac_useropt
886 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 950 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
887 case $ac_user_opts in 951 case $ac_user_opts in
@@ -907,7 +971,8 @@ do
907 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 971 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
908 # Reject names that are not valid shell variable names. 972 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 973 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error "invalid feature name: $ac_useropt" 974 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
975 { (exit 1); exit 1; }; }
911 ac_useropt_orig=$ac_useropt 976 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 977 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in 978 case $ac_user_opts in
@@ -1111,7 +1176,8 @@ do
1111 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1176 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1112 # Reject names that are not valid shell variable names. 1177 # Reject names that are not valid shell variable names.
1113 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1178 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1114 as_fn_error "invalid package name: $ac_useropt" 1179 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1180 { (exit 1); exit 1; }; }
1115 ac_useropt_orig=$ac_useropt 1181 ac_useropt_orig=$ac_useropt
1116 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1117 case $ac_user_opts in 1183 case $ac_user_opts in
@@ -1127,7 +1193,8 @@ do
1127 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1193 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1128 # Reject names that are not valid shell variable names. 1194 # Reject names that are not valid shell variable names.
1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1130 as_fn_error "invalid package name: $ac_useropt" 1196 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1197 { (exit 1); exit 1; }; }
1131 ac_useropt_orig=$ac_useropt 1198 ac_useropt_orig=$ac_useropt
1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1199 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1133 case $ac_user_opts in 1200 case $ac_user_opts in
@@ -1157,17 +1224,17 @@ do
1157 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1224 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1158 x_libraries=$ac_optarg ;; 1225 x_libraries=$ac_optarg ;;
1159 1226
1160 -*) as_fn_error "unrecognized option: \`$ac_option' 1227 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1161Try \`$0 --help' for more information." 1228Try \`$0 --help' for more information." >&2
1229 { (exit 1); exit 1; }; }
1162 ;; 1230 ;;
1163 1231
1164 *=*) 1232 *=*)
1165 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1233 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1166 # Reject names that are not valid shell variable names. 1234 # Reject names that are not valid shell variable names.
1167 case $ac_envvar in #( 1235 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1168 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1236 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1169 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1237 { (exit 1); exit 1; }; }
1170 esac
1171 eval $ac_envvar=\$ac_optarg 1238 eval $ac_envvar=\$ac_optarg
1172 export $ac_envvar ;; 1239 export $ac_envvar ;;
1173 1240
@@ -1184,14 +1251,16 @@ done
1184 1251
1185if test -n "$ac_prev"; then 1252if test -n "$ac_prev"; then
1186 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1253 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1187 as_fn_error "missing argument to $ac_option" 1254 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1255 { (exit 1); exit 1; }; }
1188fi 1256fi
1189 1257
1190if test -n "$ac_unrecognized_opts"; then 1258if test -n "$ac_unrecognized_opts"; then
1191 case $enable_option_checking in 1259 case $enable_option_checking in
1192 no) ;; 1260 no) ;;
1193 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1261 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1194 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1262 { (exit 1); exit 1; }; } ;;
1263 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 esac 1264 esac
1196fi 1265fi
1197 1266
@@ -1213,7 +1282,8 @@ do
1213 [\\/$]* | ?:[\\/]* ) continue;; 1282 [\\/$]* | ?:[\\/]* ) continue;;
1214 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1283 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215 esac 1284 esac
1216 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1285 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1286 { (exit 1); exit 1; }; }
1217done 1287done
1218 1288
1219# There might be people who depend on the old broken behavior: `$host' 1289# There might be people who depend on the old broken behavior: `$host'
@@ -1243,9 +1313,11 @@ test "$silent" = yes && exec 6>/dev/null
1243ac_pwd=`pwd` && test -n "$ac_pwd" && 1313ac_pwd=`pwd` && test -n "$ac_pwd" &&
1244ac_ls_di=`ls -di .` && 1314ac_ls_di=`ls -di .` &&
1245ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1315ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1246 as_fn_error "working directory cannot be determined" 1316 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1317 { (exit 1); exit 1; }; }
1247test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1318test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1248 as_fn_error "pwd does not report name of working directory" 1319 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1320 { (exit 1); exit 1; }; }
1249 1321
1250 1322
1251# Find the source files, if location was not specified. 1323# Find the source files, if location was not specified.
@@ -1284,11 +1356,13 @@ else
1284fi 1356fi
1285if test ! -r "$srcdir/$ac_unique_file"; then 1357if test ! -r "$srcdir/$ac_unique_file"; then
1286 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1358 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1287 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1359 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1360 { (exit 1); exit 1; }; }
1288fi 1361fi
1289ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1362ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1290ac_abs_confdir=`( 1363ac_abs_confdir=`(
1291 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1364 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1365 { (exit 1); exit 1; }; }
1292 pwd)` 1366 pwd)`
1293# When building in place, set srcdir=. 1367# When building in place, set srcdir=.
1294if test "$ac_abs_confdir" = "$ac_pwd"; then 1368if test "$ac_abs_confdir" = "$ac_pwd"; then
@@ -1424,10 +1498,14 @@ Optional Packages:
1424 --with-kerberos support Kerberos-authenticated POP 1498 --with-kerberos support Kerberos-authenticated POP
1425 --with-kerberos5 support Kerberos version 5 authenticated POP 1499 --with-kerberos5 support Kerberos version 5 authenticated POP
1426 --with-hesiod support Hesiod to get the POP server host 1500 --with-hesiod support Hesiod to get the POP server host
1501 --with-mmdf support MMDF mailboxes
1502 --with-mail-unlink unlink, rather than empty, mail spool after reading
1503 --with-mailhost=HOSTNAME
1504 string giving default POP mail host
1427 --without-sound don't compile with sound support 1505 --without-sound don't compile with sound support
1428 --without-sync-input process async input synchronously 1506 --without-sync-input process async input synchronously
1429 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena, 1507 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes or gtk, lucid or
1430 motif, gtk, no) 1508 athena, motif, no)
1431 --without-xpm don't compile with XPM image support 1509 --without-xpm don't compile with XPM image support
1432 --without-jpeg don't compile with JPEG image support 1510 --without-jpeg don't compile with JPEG image support
1433 --without-tiff don't compile with TIFF image support 1511 --without-tiff don't compile with TIFF image support
@@ -1469,7 +1547,6 @@ Some influential environment variables:
1469Use these variables to override the choices made by `configure' or to help 1547Use these variables to override the choices made by `configure' or to help
1470it to find libraries and programs with nonstandard names/locations. 1548it to find libraries and programs with nonstandard names/locations.
1471 1549
1472Report bugs to the package provider.
1473_ACEOF 1550_ACEOF
1474ac_status=$? 1551ac_status=$?
1475fi 1552fi
@@ -1533,551 +1610,21 @@ test -n "$ac_init_help" && exit $ac_status
1533if $ac_init_version; then 1610if $ac_init_version; then
1534 cat <<\_ACEOF 1611 cat <<\_ACEOF
1535emacs configure 24.0.50 1612emacs configure 24.0.50
1536generated by GNU Autoconf 2.64 1613generated by GNU Autoconf 2.62
1537 1614
1538Copyright (C) 2009 Free Software Foundation, Inc. 1615Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16162002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1539This configure script is free software; the Free Software Foundation 1617This configure script is free software; the Free Software Foundation
1540gives unlimited permission to copy, distribute and modify it. 1618gives unlimited permission to copy, distribute and modify it.
1541_ACEOF 1619_ACEOF
1542 exit 1620 exit
1543fi 1621fi
1544
1545## ------------------------ ##
1546## Autoconf initialization. ##
1547## ------------------------ ##
1548
1549# ac_fn_c_try_compile LINENO
1550# --------------------------
1551# Try to compile conftest.$ac_ext, and return whether this succeeded.
1552ac_fn_c_try_compile ()
1553{
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext
1556 if { { ac_try="$ac_compile"
1557case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560esac
1561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562$as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_compile") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1569 fi
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest.$ac_objext; then :
1575 ac_retval=0
1576else
1577 $as_echo "$as_me: failed program was:" >&5
1578sed 's/^/| /' conftest.$ac_ext >&5
1579
1580 ac_retval=1
1581fi
1582 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1583 return $ac_retval
1584
1585} # ac_fn_c_try_compile
1586
1587# ac_fn_c_try_link LINENO
1588# -----------------------
1589# Try to link conftest.$ac_ext, and return whether this succeeded.
1590ac_fn_c_try_link ()
1591{
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext conftest$ac_exeext
1594 if { { ac_try="$ac_link"
1595case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598esac
1599eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600$as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_link") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1607 fi
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest$ac_exeext && {
1613 test "$cross_compiling" = yes ||
1614 $as_test_x conftest$ac_exeext
1615 }; then :
1616 ac_retval=0
1617else
1618 $as_echo "$as_me: failed program was:" >&5
1619sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622fi
1623 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1624 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1625 # interfere with the next link command; also delete a directory that is
1626 # left behind by Apple's compiler. We do this before executing the actions.
1627 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1628 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1629 return $ac_retval
1630
1631} # ac_fn_c_try_link
1632
1633# ac_fn_c_try_cpp LINENO
1634# ----------------------
1635# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1636ac_fn_c_try_cpp ()
1637{
1638 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1639 if { { ac_try="$ac_cpp conftest.$ac_ext"
1640case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643esac
1644eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645$as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } >/dev/null && {
1655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 }; then :
1658 ac_retval=0
1659else
1660 $as_echo "$as_me: failed program was:" >&5
1661sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664fi
1665 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1666 return $ac_retval
1667
1668} # ac_fn_c_try_cpp
1669
1670# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1671# -------------------------------------------------------
1672# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1673# the include files in INCLUDES and setting the cache variable VAR
1674# accordingly.
1675ac_fn_c_check_header_mongrel ()
1676{
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680$as_echo_n "checking for $2... " >&6; }
1681if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1683fi
1684eval ac_res=\$$3
1685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1686$as_echo "$ac_res" >&6; }
1687else
1688 # Is the header compilable?
1689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1690$as_echo_n "checking $2 usability... " >&6; }
1691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1692/* end confdefs.h. */
1693$4
1694#include <$2>
1695_ACEOF
1696if ac_fn_c_try_compile "$LINENO"; then :
1697 ac_header_compiler=yes
1698else
1699 ac_header_compiler=no
1700fi
1701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1703$as_echo "$ac_header_compiler" >&6; }
1704
1705# Is the header present?
1706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1707$as_echo_n "checking $2 presence... " >&6; }
1708cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1709/* end confdefs.h. */
1710#include <$2>
1711_ACEOF
1712if ac_fn_c_try_cpp "$LINENO"; then :
1713 ac_header_preproc=yes
1714else
1715 ac_header_preproc=no
1716fi
1717rm -f conftest.err conftest.$ac_ext
1718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1719$as_echo "$ac_header_preproc" >&6; }
1720
1721# So? What about this header?
1722case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1723 yes:no: )
1724 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1725$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1727$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1728 ;;
1729 no:yes:* )
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1731$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1733$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1735$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1737$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1739$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1740 ;;
1741esac
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1743$as_echo_n "checking for $2... " >&6; }
1744if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1745 $as_echo_n "(cached) " >&6
1746else
1747 eval "$3=\$ac_header_compiler"
1748fi
1749eval ac_res=\$$3
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1751$as_echo "$ac_res" >&6; }
1752fi
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1754
1755} # ac_fn_c_check_header_mongrel
1756
1757# ac_fn_c_try_run LINENO
1758# ----------------------
1759# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1760# that executables *can* be run.
1761ac_fn_c_try_run ()
1762{
1763 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1764 if { { ac_try="$ac_link"
1765case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768esac
1769eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770$as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_link") 2>&5
1772 ac_status=$?
1773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1774 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1775 { { case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778esac
1779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780$as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_try") 2>&5
1782 ac_status=$?
1783 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1784 test $ac_status = 0; }; }; then :
1785 ac_retval=0
1786else
1787 $as_echo "$as_me: program exited with status $ac_status" >&5
1788 $as_echo "$as_me: failed program was:" >&5
1789sed 's/^/| /' conftest.$ac_ext >&5
1790
1791 ac_retval=$ac_status
1792fi
1793 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795 return $ac_retval
1796
1797} # ac_fn_c_try_run
1798
1799# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1800# -------------------------------------------------------
1801# Tests whether HEADER exists and can be compiled using the include files in
1802# INCLUDES, setting the cache variable VAR accordingly.
1803ac_fn_c_check_header_compile ()
1804{
1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1807$as_echo_n "checking for $2... " >&6; }
1808if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1809 $as_echo_n "(cached) " >&6
1810else
1811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1812/* end confdefs.h. */
1813$4
1814#include <$2>
1815_ACEOF
1816if ac_fn_c_try_compile "$LINENO"; then :
1817 eval "$3=yes"
1818else
1819 eval "$3=no"
1820fi
1821rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1822fi
1823eval ac_res=\$$3
1824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1825$as_echo "$ac_res" >&6; }
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827
1828} # ac_fn_c_check_header_compile
1829
1830# ac_fn_c_check_header_preproc LINENO HEADER VAR
1831# ----------------------------------------------
1832# Tests whether HEADER is present, setting the cache variable VAR accordingly.
1833ac_fn_c_check_header_preproc ()
1834{
1835 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1837$as_echo_n "checking for $2... " >&6; }
1838if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1839 $as_echo_n "(cached) " >&6
1840else
1841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1842/* end confdefs.h. */
1843#include <$2>
1844_ACEOF
1845if ac_fn_c_try_cpp "$LINENO"; then :
1846 eval "$3=yes"
1847else
1848 eval "$3=no"
1849fi
1850rm -f conftest.err conftest.$ac_ext
1851fi
1852eval ac_res=\$$3
1853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1854$as_echo "$ac_res" >&6; }
1855 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1856
1857} # ac_fn_c_check_header_preproc
1858
1859# ac_fn_c_check_decl LINENO SYMBOL VAR
1860# ------------------------------------
1861# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1862ac_fn_c_check_decl ()
1863{
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1866$as_echo_n "checking whether $2 is declared... " >&6; }
1867if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1869else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871/* end confdefs.h. */
1872$4
1873int
1874main ()
1875{
1876#ifndef $2
1877 (void) $2;
1878#endif
1879
1880 ;
1881 return 0;
1882}
1883_ACEOF
1884if ac_fn_c_try_compile "$LINENO"; then :
1885 eval "$3=yes"
1886else
1887 eval "$3=no"
1888fi
1889rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1890fi
1891eval ac_res=\$$3
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1893$as_echo "$ac_res" >&6; }
1894 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1895
1896} # ac_fn_c_check_decl
1897
1898# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1899# ----------------------------------------------------
1900# Tries to find if the field MEMBER exists in type AGGR, after including
1901# INCLUDES, setting cache variable VAR accordingly.
1902ac_fn_c_check_member ()
1903{
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1906$as_echo_n "checking for $2.$3... " >&6; }
1907if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1908 $as_echo_n "(cached) " >&6
1909else
1910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1911/* end confdefs.h. */
1912$5
1913int
1914main ()
1915{
1916static $2 ac_aggr;
1917if (ac_aggr.$3)
1918return 0;
1919 ;
1920 return 0;
1921}
1922_ACEOF
1923if ac_fn_c_try_compile "$LINENO"; then :
1924 eval "$4=yes"
1925else
1926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1927/* end confdefs.h. */
1928$5
1929int
1930main ()
1931{
1932static $2 ac_aggr;
1933if (sizeof ac_aggr.$3)
1934return 0;
1935 ;
1936 return 0;
1937}
1938_ACEOF
1939if ac_fn_c_try_compile "$LINENO"; then :
1940 eval "$4=yes"
1941else
1942 eval "$4=no"
1943fi
1944rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1945fi
1946rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1947fi
1948eval ac_res=\$$4
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950$as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1952
1953} # ac_fn_c_check_member
1954
1955# ac_fn_c_check_func LINENO FUNC VAR
1956# ----------------------------------
1957# Tests whether FUNC exists, setting the cache variable VAR accordingly
1958ac_fn_c_check_func ()
1959{
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1962$as_echo_n "checking for $2... " >&6; }
1963if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1964 $as_echo_n "(cached) " >&6
1965else
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967/* end confdefs.h. */
1968/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1970#define $2 innocuous_$2
1971
1972/* System header to define __stub macros and hopefully few prototypes,
1973 which can conflict with char $2 (); below.
1974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1975 <limits.h> exists even on freestanding compilers. */
1976
1977#ifdef __STDC__
1978# include <limits.h>
1979#else
1980# include <assert.h>
1981#endif
1982
1983#undef $2
1984
1985/* Override any GCC internal prototype to avoid an error.
1986 Use char because int might match the return type of a GCC
1987 builtin and then its argument prototype would still apply. */
1988#ifdef __cplusplus
1989extern "C"
1990#endif
1991char $2 ();
1992/* The GNU C library defines this for functions which it implements
1993 to always fail with ENOSYS. Some functions are actually named
1994 something starting with __ and the normal name is an alias. */
1995#if defined __stub_$2 || defined __stub___$2
1996choke me
1997#endif
1998
1999int
2000main ()
2001{
2002return $2 ();
2003 ;
2004 return 0;
2005}
2006_ACEOF
2007if ac_fn_c_try_link "$LINENO"; then :
2008 eval "$3=yes"
2009else
2010 eval "$3=no"
2011fi
2012rm -f core conftest.err conftest.$ac_objext \
2013 conftest$ac_exeext conftest.$ac_ext
2014fi
2015eval ac_res=\$$3
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2017$as_echo "$ac_res" >&6; }
2018 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019
2020} # ac_fn_c_check_func
2021
2022# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2023# -------------------------------------------
2024# Tests whether TYPE exists after having included INCLUDES, setting cache
2025# variable VAR accordingly.
2026ac_fn_c_check_type ()
2027{
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030$as_echo_n "checking for $2... " >&6; }
2031if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2032 $as_echo_n "(cached) " >&6
2033else
2034 eval "$3=no"
2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2036/* end confdefs.h. */
2037$4
2038int
2039main ()
2040{
2041if (sizeof ($2))
2042 return 0;
2043 ;
2044 return 0;
2045}
2046_ACEOF
2047if ac_fn_c_try_compile "$LINENO"; then :
2048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2049/* end confdefs.h. */
2050$4
2051int
2052main ()
2053{
2054if (sizeof (($2)))
2055 return 0;
2056 ;
2057 return 0;
2058}
2059_ACEOF
2060if ac_fn_c_try_compile "$LINENO"; then :
2061
2062else
2063 eval "$3=yes"
2064fi
2065rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2066fi
2067rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2068fi
2069eval ac_res=\$$3
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2071$as_echo "$ac_res" >&6; }
2072 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2073
2074} # ac_fn_c_check_type
2075cat >config.log <<_ACEOF 1622cat >config.log <<_ACEOF
2076This file contains any messages produced by compilers while 1623This file contains any messages produced by compilers while
2077running configure, to aid debugging if configure makes a mistake. 1624running configure, to aid debugging if configure makes a mistake.
2078 1625
2079It was created by emacs $as_me 24.0.50, which was 1626It was created by emacs $as_me 24.0.50, which was
2080generated by GNU Autoconf 2.64. Invocation command line was 1627generated by GNU Autoconf 2.62. Invocation command line was
2081 1628
2082 $ $0 $@ 1629 $ $0 $@
2083 1630
@@ -2113,8 +1660,8 @@ for as_dir in $PATH
2113do 1660do
2114 IFS=$as_save_IFS 1661 IFS=$as_save_IFS
2115 test -z "$as_dir" && as_dir=. 1662 test -z "$as_dir" && as_dir=.
2116 $as_echo "PATH: $as_dir" 1663 $as_echo "PATH: $as_dir"
2117 done 1664done
2118IFS=$as_save_IFS 1665IFS=$as_save_IFS
2119 1666
2120} >&5 1667} >&5
@@ -2151,9 +1698,9 @@ do
2151 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1698 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2152 esac 1699 esac
2153 case $ac_pass in 1700 case $ac_pass in
2154 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1701 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2155 2) 1702 2)
2156 as_fn_append ac_configure_args1 " '$ac_arg'" 1703 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2157 if test $ac_must_keep_next = true; then 1704 if test $ac_must_keep_next = true; then
2158 ac_must_keep_next=false # Got value, back to normal. 1705 ac_must_keep_next=false # Got value, back to normal.
2159 else 1706 else
@@ -2169,13 +1716,13 @@ do
2169 -* ) ac_must_keep_next=true ;; 1716 -* ) ac_must_keep_next=true ;;
2170 esac 1717 esac
2171 fi 1718 fi
2172 as_fn_append ac_configure_args " '$ac_arg'" 1719 ac_configure_args="$ac_configure_args '$ac_arg'"
2173 ;; 1720 ;;
2174 esac 1721 esac
2175 done 1722 done
2176done 1723done
2177{ ac_configure_args0=; unset ac_configure_args0;} 1724$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2178{ ac_configure_args1=; unset ac_configure_args1;} 1725$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2179 1726
2180# When interrupted or exit'd, cleanup temporary files, and complete 1727# When interrupted or exit'd, cleanup temporary files, and complete
2181# config.log. We remove comments because anyway the quotes in there 1728# config.log. We remove comments because anyway the quotes in there
@@ -2200,13 +1747,13 @@ _ASBOX
2200 case $ac_val in #( 1747 case $ac_val in #(
2201 *${as_nl}*) 1748 *${as_nl}*)
2202 case $ac_var in #( 1749 case $ac_var in #(
2203 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1750 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2204$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1751$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2205 esac 1752 esac
2206 case $ac_var in #( 1753 case $ac_var in #(
2207 _ | IFS | as_nl) ;; #( 1754 _ | IFS | as_nl) ;; #(
2208 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1755 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2209 *) { eval $ac_var=; unset $ac_var;} ;; 1756 *) $as_unset $ac_var ;;
2210 esac ;; 1757 esac ;;
2211 esac 1758 esac
2212 done 1759 done
@@ -2278,39 +1825,37 @@ _ASBOX
2278 exit $exit_status 1825 exit $exit_status
2279' 0 1826' 0
2280for ac_signal in 1 2 13 15; do 1827for ac_signal in 1 2 13 15; do
2281 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1828 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2282done 1829done
2283ac_signal=0 1830ac_signal=0
2284 1831
2285# confdefs.h avoids OS command line length limits that DEFS can exceed. 1832# confdefs.h avoids OS command line length limits that DEFS can exceed.
2286rm -f -r conftest* confdefs.h 1833rm -f -r conftest* confdefs.h
2287 1834
2288$as_echo "/* confdefs.h */" > confdefs.h
2289
2290# Predefined preprocessor variables. 1835# Predefined preprocessor variables.
2291 1836
2292cat >>confdefs.h <<_ACEOF 1837cat >>confdefs.h <<_ACEOF
2293#define PACKAGE_NAME "$PACKAGE_NAME" 1838#define PACKAGE_NAME "$PACKAGE_NAME"
2294_ACEOF 1839_ACEOF
2295 1840
1841
2296cat >>confdefs.h <<_ACEOF 1842cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1843#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2298_ACEOF 1844_ACEOF
2299 1845
1846
2300cat >>confdefs.h <<_ACEOF 1847cat >>confdefs.h <<_ACEOF
2301#define PACKAGE_VERSION "$PACKAGE_VERSION" 1848#define PACKAGE_VERSION "$PACKAGE_VERSION"
2302_ACEOF 1849_ACEOF
2303 1850
1851
2304cat >>confdefs.h <<_ACEOF 1852cat >>confdefs.h <<_ACEOF
2305#define PACKAGE_STRING "$PACKAGE_STRING" 1853#define PACKAGE_STRING "$PACKAGE_STRING"
2306_ACEOF 1854_ACEOF
2307 1855
2308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2310_ACEOF
2311 1856
2312cat >>confdefs.h <<_ACEOF 1857cat >>confdefs.h <<_ACEOF
2313#define PACKAGE_URL "$PACKAGE_URL" 1858#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2314_ACEOF 1859_ACEOF
2315 1860
2316 1861
@@ -2331,7 +1876,7 @@ for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2331do 1876do
2332 test "x$ac_site_file" = xNONE && continue 1877 test "x$ac_site_file" = xNONE && continue
2333 if test -r "$ac_site_file"; then 1878 if test -r "$ac_site_file"; then
2334 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1879 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2335$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1880$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2336 sed 's/^/| /' "$ac_site_file" >&5 1881 sed 's/^/| /' "$ac_site_file" >&5
2337 . "$ac_site_file" 1882 . "$ac_site_file"
@@ -2342,7 +1887,7 @@ if test -r "$cache_file"; then
2342 # Some versions of bash will fail to source /dev/null (special 1887 # Some versions of bash will fail to source /dev/null (special
2343 # files actually), so we avoid doing that. 1888 # files actually), so we avoid doing that.
2344 if test -f "$cache_file"; then 1889 if test -f "$cache_file"; then
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1890 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2346$as_echo "$as_me: loading cache $cache_file" >&6;} 1891$as_echo "$as_me: loading cache $cache_file" >&6;}
2347 case $cache_file in 1892 case $cache_file in
2348 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1893 [\\/]* | ?:[\\/]* ) . "$cache_file";;
@@ -2350,14 +1895,14 @@ $as_echo "$as_me: loading cache $cache_file" >&6;}
2350 esac 1895 esac
2351 fi 1896 fi
2352else 1897else
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1898 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2354$as_echo "$as_me: creating cache $cache_file" >&6;} 1899$as_echo "$as_me: creating cache $cache_file" >&6;}
2355 >$cache_file 1900 >$cache_file
2356fi 1901fi
2357 1902
2358as_fn_append ac_header_list " sys/time.h" 1903ac_header_list="$ac_header_list sys/time.h"
2359as_fn_append ac_header_list " unistd.h" 1904ac_header_list="$ac_header_list unistd.h"
2360as_fn_append ac_func_list " alarm" 1905ac_func_list="$ac_func_list alarm"
2361# Check that the precious variables saved in the cache have kept the same 1906# Check that the precious variables saved in the cache have kept the same
2362# value. 1907# value.
2363ac_cache_corrupted=false 1908ac_cache_corrupted=false
@@ -2368,11 +1913,11 @@ for ac_var in $ac_precious_vars; do
2368 eval ac_new_val=\$ac_env_${ac_var}_value 1913 eval ac_new_val=\$ac_env_${ac_var}_value
2369 case $ac_old_set,$ac_new_set in 1914 case $ac_old_set,$ac_new_set in
2370 set,) 1915 set,)
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1916 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2372$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1917$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2373 ac_cache_corrupted=: ;; 1918 ac_cache_corrupted=: ;;
2374 ,set) 1919 ,set)
2375 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1920 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2376$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1921$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2377 ac_cache_corrupted=: ;; 1922 ac_cache_corrupted=: ;;
2378 ,);; 1923 ,);;
@@ -2382,17 +1927,17 @@ $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2382 ac_old_val_w=`echo x $ac_old_val` 1927 ac_old_val_w=`echo x $ac_old_val`
2383 ac_new_val_w=`echo x $ac_new_val` 1928 ac_new_val_w=`echo x $ac_new_val`
2384 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1929 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1930 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2386$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1931$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2387 ac_cache_corrupted=: 1932 ac_cache_corrupted=:
2388 else 1933 else
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1934 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2390$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1935$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2391 eval $ac_var=\$ac_old_val 1936 eval $ac_var=\$ac_old_val
2392 fi 1937 fi
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1938 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2394$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1939$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1940 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2396$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1941$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2397 fi;; 1942 fi;;
2398 esac 1943 esac
@@ -2404,20 +1949,41 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2404 esac 1949 esac
2405 case " $ac_configure_args " in 1950 case " $ac_configure_args " in
2406 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1951 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2407 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1952 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2408 esac 1953 esac
2409 fi 1954 fi
2410done 1955done
2411if $ac_cache_corrupted; then 1956if $ac_cache_corrupted; then
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1957 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2413$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2415$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1958$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2416 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 1959 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1960$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1961 { (exit 1); exit 1; }; }
2417fi 1962fi
2418## -------------------- ## 1963
2419## Main body of script. ## 1964
2420## -------------------- ## 1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
2421 1987
2422ac_ext=c 1988ac_ext=c
2423ac_cpp='$CPP $CPPFLAGS' 1989ac_cpp='$CPP $CPPFLAGS'
@@ -2456,33 +2022,39 @@ gameuser=games
2456 2022
2457 2023
2458# Check whether --with-pop was given. 2024# Check whether --with-pop was given.
2459if test "${with_pop+set}" = set; then : 2025if test "${with_pop+set}" = set; then
2460 withval=$with_pop; 2026 withval=$with_pop;
2461else 2027else
2462 with_pop=yes 2028 with_pop=yes
2463fi 2029fi
2464 2030
2465if test "$with_pop" = yes; then 2031if test "$with_pop" = yes; then
2466 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h 2032 cat >>confdefs.h <<\_ACEOF
2033#define MAIL_USE_POP 1
2034_ACEOF
2467 2035
2468fi 2036fi
2469 2037
2470 2038
2039
2471# Check whether --with-kerberos was given. 2040# Check whether --with-kerberos was given.
2472if test "${with_kerberos+set}" = set; then : 2041if test "${with_kerberos+set}" = set; then
2473 withval=$with_kerberos; 2042 withval=$with_kerberos;
2474else 2043else
2475 with_kerberos=no 2044 with_kerberos=no
2476fi 2045fi
2477 2046
2478if test "$with_kerberos" != no; then 2047if test "$with_kerberos" != no; then
2479 $as_echo "#define KERBEROS 1" >>confdefs.h 2048 cat >>confdefs.h <<\_ACEOF
2049#define KERBEROS 1
2050_ACEOF
2480 2051
2481fi 2052fi
2482 2053
2483 2054
2055
2484# Check whether --with-kerberos5 was given. 2056# Check whether --with-kerberos5 was given.
2485if test "${with_kerberos5+set}" = set; then : 2057if test "${with_kerberos5+set}" = set; then
2486 withval=$with_kerberos5; 2058 withval=$with_kerberos5;
2487else 2059else
2488 with_kerberos5=no 2060 with_kerberos5=no
@@ -2491,17 +2063,21 @@ fi
2491if test "${with_kerberos5}" != no; then 2063if test "${with_kerberos5}" != no; then
2492 if test "${with_kerberos}" = no; then 2064 if test "${with_kerberos}" = no; then
2493 with_kerberos=yes 2065 with_kerberos=yes
2494 $as_echo "#define KERBEROS 1" >>confdefs.h 2066 cat >>confdefs.h <<\_ACEOF
2067#define KERBEROS 1
2068_ACEOF
2495 2069
2496 fi 2070 fi
2497 2071
2498$as_echo "#define KERBEROS5 1" >>confdefs.h 2072cat >>confdefs.h <<\_ACEOF
2073#define KERBEROS5 1
2074_ACEOF
2499 2075
2500fi 2076fi
2501 2077
2502 2078
2503# Check whether --with-hesiod was given. 2079# Check whether --with-hesiod was given.
2504if test "${with_hesiod+set}" = set; then : 2080if test "${with_hesiod+set}" = set; then
2505 withval=$with_hesiod; 2081 withval=$with_hesiod;
2506else 2082else
2507 with_hesiod=no 2083 with_hesiod=no
@@ -2509,13 +2085,58 @@ fi
2509 2085
2510if test "$with_hesiod" != no; then 2086if test "$with_hesiod" != no; then
2511 2087
2512$as_echo "#define HESIOD 1" >>confdefs.h 2088cat >>confdefs.h <<\_ACEOF
2089#define HESIOD 1
2090_ACEOF
2091
2092fi
2093
2094
2095# Check whether --with-mmdf was given.
2096if test "${with_mmdf+set}" = set; then
2097 withval=$with_mmdf;
2098else
2099 with_mmdf=no
2100fi
2101
2102if test "$with_mmdf" != no; then
2103
2104cat >>confdefs.h <<\_ACEOF
2105#define MAIL_USE_MMDF 1
2106_ACEOF
2107
2108fi
2109
2110
2111# Check whether --with-mail-unlink was given.
2112if test "${with_mail_unlink+set}" = set; then
2113 withval=$with_mail_unlink;
2114else
2115 with_mail_unlink=no
2116fi
2117
2118if test "$with_mail_unlink" != no; then
2119
2120cat >>confdefs.h <<\_ACEOF
2121#define MAIL_UNLINK_SPOOL 1
2122_ACEOF
2123
2124fi
2125
2126
2127# Check whether --with-mailhost was given.
2128if test "${with_mailhost+set}" = set; then
2129 withval=$with_mailhost;
2130cat >>confdefs.h <<_ACEOF
2131#define MAILHOST "$withval"
2132_ACEOF
2513 2133
2514fi 2134fi
2515 2135
2516 2136
2137
2517# Check whether --with-sound was given. 2138# Check whether --with-sound was given.
2518if test "${with_sound+set}" = set; then : 2139if test "${with_sound+set}" = set; then
2519 withval=$with_sound; 2140 withval=$with_sound;
2520else 2141else
2521 with_sound=yes 2142 with_sound=yes
@@ -2524,7 +2145,7 @@ fi
2524 2145
2525 2146
2526# Check whether --with-sync-input was given. 2147# Check whether --with-sync-input was given.
2527if test "${with_sync_input+set}" = set; then : 2148if test "${with_sync_input+set}" = set; then
2528 withval=$with_sync_input; 2149 withval=$with_sync_input;
2529else 2150else
2530 with_sync_input=yes 2151 with_sync_input=yes
@@ -2532,13 +2153,15 @@ fi
2532 2153
2533if test "$with_sync_input" = yes; then 2154if test "$with_sync_input" = yes; then
2534 2155
2535$as_echo "#define SYNC_INPUT 1" >>confdefs.h 2156cat >>confdefs.h <<\_ACEOF
2157#define SYNC_INPUT 1
2158_ACEOF
2536 2159
2537fi 2160fi
2538 2161
2539 2162
2540# Check whether --with-x-toolkit was given. 2163# Check whether --with-x-toolkit was given.
2541if test "${with_x_toolkit+set}" = set; then : 2164if test "${with_x_toolkit+set}" = set; then
2542 withval=$with_x_toolkit; case "${withval}" in 2165 withval=$with_x_toolkit; case "${withval}" in
2543 y | ye | yes ) val=gtk ;; 2166 y | ye | yes ) val=gtk ;;
2544 n | no ) val=no ;; 2167 n | no ) val=no ;;
@@ -2547,9 +2170,13 @@ if test "${with_x_toolkit+set}" = set; then :
2547 m | mo | mot | moti | motif ) val=motif ;; 2170 m | mo | mot | moti | motif ) val=motif ;;
2548 g | gt | gtk ) val=gtk ;; 2171 g | gt | gtk ) val=gtk ;;
2549 * ) 2172 * )
2550as_fn_error "\`--with-x-toolkit=$withval' is invalid; 2173{ { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2551this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. 2174this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2552\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 2175\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2176$as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2177this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2178\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2179 { (exit 1); exit 1; }; }
2553 ;; 2180 ;;
2554 esac 2181 esac
2555 with_x_toolkit=$val 2182 with_x_toolkit=$val
@@ -2559,7 +2186,7 @@ fi
2559 2186
2560 2187
2561# Check whether --with-xpm was given. 2188# Check whether --with-xpm was given.
2562if test "${with_xpm+set}" = set; then : 2189if test "${with_xpm+set}" = set; then
2563 withval=$with_xpm; 2190 withval=$with_xpm;
2564else 2191else
2565 with_xpm=yes 2192 with_xpm=yes
@@ -2567,7 +2194,7 @@ fi
2567 2194
2568 2195
2569# Check whether --with-jpeg was given. 2196# Check whether --with-jpeg was given.
2570if test "${with_jpeg+set}" = set; then : 2197if test "${with_jpeg+set}" = set; then
2571 withval=$with_jpeg; 2198 withval=$with_jpeg;
2572else 2199else
2573 with_jpeg=yes 2200 with_jpeg=yes
@@ -2575,7 +2202,7 @@ fi
2575 2202
2576 2203
2577# Check whether --with-tiff was given. 2204# Check whether --with-tiff was given.
2578if test "${with_tiff+set}" = set; then : 2205if test "${with_tiff+set}" = set; then
2579 withval=$with_tiff; 2206 withval=$with_tiff;
2580else 2207else
2581 with_tiff=yes 2208 with_tiff=yes
@@ -2583,7 +2210,7 @@ fi
2583 2210
2584 2211
2585# Check whether --with-gif was given. 2212# Check whether --with-gif was given.
2586if test "${with_gif+set}" = set; then : 2213if test "${with_gif+set}" = set; then
2587 withval=$with_gif; 2214 withval=$with_gif;
2588else 2215else
2589 with_gif=yes 2216 with_gif=yes
@@ -2591,7 +2218,7 @@ fi
2591 2218
2592 2219
2593# Check whether --with-png was given. 2220# Check whether --with-png was given.
2594if test "${with_png+set}" = set; then : 2221if test "${with_png+set}" = set; then
2595 withval=$with_png; 2222 withval=$with_png;
2596else 2223else
2597 with_png=yes 2224 with_png=yes
@@ -2599,7 +2226,7 @@ fi
2599 2226
2600 2227
2601# Check whether --with-rsvg was given. 2228# Check whether --with-rsvg was given.
2602if test "${with_rsvg+set}" = set; then : 2229if test "${with_rsvg+set}" = set; then
2603 withval=$with_rsvg; 2230 withval=$with_rsvg;
2604else 2231else
2605 with_rsvg=yes 2232 with_rsvg=yes
@@ -2608,7 +2235,7 @@ fi
2608 2235
2609 2236
2610# Check whether --with-xft was given. 2237# Check whether --with-xft was given.
2611if test "${with_xft+set}" = set; then : 2238if test "${with_xft+set}" = set; then
2612 withval=$with_xft; 2239 withval=$with_xft;
2613else 2240else
2614 with_xft=yes 2241 with_xft=yes
@@ -2616,7 +2243,7 @@ fi
2616 2243
2617 2244
2618# Check whether --with-libotf was given. 2245# Check whether --with-libotf was given.
2619if test "${with_libotf+set}" = set; then : 2246if test "${with_libotf+set}" = set; then
2620 withval=$with_libotf; 2247 withval=$with_libotf;
2621else 2248else
2622 with_libotf=yes 2249 with_libotf=yes
@@ -2624,7 +2251,7 @@ fi
2624 2251
2625 2252
2626# Check whether --with-m17n-flt was given. 2253# Check whether --with-m17n-flt was given.
2627if test "${with_m17n_flt+set}" = set; then : 2254if test "${with_m17n_flt+set}" = set; then
2628 withval=$with_m17n_flt; 2255 withval=$with_m17n_flt;
2629else 2256else
2630 with_m17n_flt=yes 2257 with_m17n_flt=yes
@@ -2633,7 +2260,7 @@ fi
2633 2260
2634 2261
2635# Check whether --with-toolkit-scroll-bars was given. 2262# Check whether --with-toolkit-scroll-bars was given.
2636if test "${with_toolkit_scroll_bars+set}" = set; then : 2263if test "${with_toolkit_scroll_bars+set}" = set; then
2637 withval=$with_toolkit_scroll_bars; 2264 withval=$with_toolkit_scroll_bars;
2638else 2265else
2639 with_toolkit_scroll_bars=yes 2266 with_toolkit_scroll_bars=yes
@@ -2641,7 +2268,7 @@ fi
2641 2268
2642 2269
2643# Check whether --with-xaw3d was given. 2270# Check whether --with-xaw3d was given.
2644if test "${with_xaw3d+set}" = set; then : 2271if test "${with_xaw3d+set}" = set; then
2645 withval=$with_xaw3d; 2272 withval=$with_xaw3d;
2646else 2273else
2647 with_xaw3d=yes 2274 with_xaw3d=yes
@@ -2649,7 +2276,7 @@ fi
2649 2276
2650 2277
2651# Check whether --with-xim was given. 2278# Check whether --with-xim was given.
2652if test "${with_xim+set}" = set; then : 2279if test "${with_xim+set}" = set; then
2653 withval=$with_xim; 2280 withval=$with_xim;
2654else 2281else
2655 with_xim=yes 2282 with_xim=yes
@@ -2657,7 +2284,7 @@ fi
2657 2284
2658 2285
2659# Check whether --with-ns was given. 2286# Check whether --with-ns was given.
2660if test "${with_ns+set}" = set; then : 2287if test "${with_ns+set}" = set; then
2661 withval=$with_ns; 2288 withval=$with_ns;
2662else 2289else
2663 with_ns=no 2290 with_ns=no
@@ -2666,7 +2293,7 @@ fi
2666 2293
2667 2294
2668# Check whether --with-gpm was given. 2295# Check whether --with-gpm was given.
2669if test "${with_gpm+set}" = set; then : 2296if test "${with_gpm+set}" = set; then
2670 withval=$with_gpm; 2297 withval=$with_gpm;
2671else 2298else
2672 with_gpm=yes 2299 with_gpm=yes
@@ -2674,7 +2301,7 @@ fi
2674 2301
2675 2302
2676# Check whether --with-dbus was given. 2303# Check whether --with-dbus was given.
2677if test "${with_dbus+set}" = set; then : 2304if test "${with_dbus+set}" = set; then
2678 withval=$with_dbus; 2305 withval=$with_dbus;
2679else 2306else
2680 with_dbus=yes 2307 with_dbus=yes
@@ -2682,7 +2309,7 @@ fi
2682 2309
2683 2310
2684# Check whether --with-gconf was given. 2311# Check whether --with-gconf was given.
2685if test "${with_gconf+set}" = set; then : 2312if test "${with_gconf+set}" = set; then
2686 withval=$with_gconf; 2313 withval=$with_gconf;
2687else 2314else
2688 with_gconf=yes 2315 with_gconf=yes
@@ -2693,7 +2320,7 @@ fi
2693## a suitable makeinfo, and can live without the manuals. 2320## a suitable makeinfo, and can live without the manuals.
2694 2321
2695# Check whether --with-makeinfo was given. 2322# Check whether --with-makeinfo was given.
2696if test "${with_makeinfo+set}" = set; then : 2323if test "${with_makeinfo+set}" = set; then
2697 withval=$with_makeinfo; 2324 withval=$with_makeinfo;
2698else 2325else
2699 with_makeinfo=yes 2326 with_makeinfo=yes
@@ -2702,23 +2329,29 @@ fi
2702 2329
2703 2330
2704# Check whether --with-gtk was given. 2331# Check whether --with-gtk was given.
2705if test "${with_gtk+set}" = set; then : 2332if test "${with_gtk+set}" = set; then
2706 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to 2333 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2707specify a toolkit." "$LINENO" 5 2334specify a toolkit." >&5
2335$as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2336specify a toolkit." >&2;}
2337 { (exit 1); exit 1; }; }
2708fi 2338fi
2709 2339
2710 2340
2711 2341
2712# Check whether --with-gcc was given. 2342# Check whether --with-gcc was given.
2713if test "${with_gcc+set}" = set; then : 2343if test "${with_gcc+set}" = set; then
2714 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment 2344 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2715variable to specify a compiler." "$LINENO" 5 2345variable to specify a compiler." >&5
2346$as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2347variable to specify a compiler." >&2;}
2348 { (exit 1); exit 1; }; }
2716fi 2349fi
2717 2350
2718 2351
2719 2352
2720# Check whether --with-pkg-config-prog was given. 2353# Check whether --with-pkg-config-prog was given.
2721if test "${with_pkg_config_prog+set}" = set; then : 2354if test "${with_pkg_config_prog+set}" = set; then
2722 withval=$with_pkg_config_prog; 2355 withval=$with_pkg_config_prog;
2723fi 2356fi
2724 2357
@@ -2730,7 +2363,7 @@ fi
2730 2363
2731 2364
2732# Check whether --with-gnustep-conf was given. 2365# Check whether --with-gnustep-conf was given.
2733if test "${with_gnustep_conf+set}" = set; then : 2366if test "${with_gnustep_conf+set}" = set; then
2734 withval=$with_gnustep_conf; 2367 withval=$with_gnustep_conf;
2735fi 2368fi
2736 2369
@@ -2740,7 +2373,7 @@ test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2740 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf 2373 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2741 2374
2742# Check whether --enable-ns-self-contained was given. 2375# Check whether --enable-ns-self-contained was given.
2743if test "${enable_ns_self_contained+set}" = set; then : 2376if test "${enable_ns_self_contained+set}" = set; then
2744 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval 2377 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2745else 2378else
2746 EN_NS_SELF_CONTAINED=yes 2379 EN_NS_SELF_CONTAINED=yes
@@ -2748,7 +2381,7 @@ fi
2748 2381
2749 2382
2750# Check whether --enable-asserts was given. 2383# Check whether --enable-asserts was given.
2751if test "${enable_asserts+set}" = set; then : 2384if test "${enable_asserts+set}" = set; then
2752 enableval=$enable_asserts; USE_XASSERTS=$enableval 2385 enableval=$enable_asserts; USE_XASSERTS=$enableval
2753else 2386else
2754 USE_XASSERTS=no 2387 USE_XASSERTS=no
@@ -2756,7 +2389,7 @@ fi
2756 2389
2757 2390
2758# Check whether --enable-maintainer-mode was given. 2391# Check whether --enable-maintainer-mode was given.
2759if test "${enable_maintainer_mode+set}" = set; then : 2392if test "${enable_maintainer_mode+set}" = set; then
2760 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2393 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2761else 2394else
2762 USE_MAINTAINER_MODE=no 2395 USE_MAINTAINER_MODE=no
@@ -2770,7 +2403,7 @@ fi
2770 2403
2771 2404
2772# Check whether --enable-locallisppath was given. 2405# Check whether --enable-locallisppath was given.
2773if test "${enable_locallisppath+set}" = set; then : 2406if test "${enable_locallisppath+set}" = set; then
2774 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then 2407 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2775 locallisppath= 2408 locallisppath=
2776elif test "${enableval}" != "yes"; then 2409elif test "${enableval}" != "yes"; then
@@ -2780,7 +2413,7 @@ fi
2780 2413
2781 2414
2782# Check whether --enable-checking was given. 2415# Check whether --enable-checking was given.
2783if test "${enable_checking+set}" = set; then : 2416if test "${enable_checking+set}" = set; then
2784 enableval=$enable_checking; ac_checking_flags="${enableval}" 2417 enableval=$enable_checking; ac_checking_flags="${enableval}"
2785fi 2418fi
2786 2419
@@ -2808,44 +2441,58 @@ do
2808 stringfreelist) ac_gc_check_string_free_list=1 ;; 2441 stringfreelist) ac_gc_check_string_free_list=1 ;;
2809 xmallocoverrun) ac_xmalloc_overrun=1 ;; 2442 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2810 conslist) ac_gc_check_cons_list=1 ;; 2443 conslist) ac_gc_check_cons_list=1 ;;
2811 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;; 2444 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2445$as_echo "$as_me: error: unknown check category $check" >&2;}
2446 { (exit 1); exit 1; }; } ;;
2812 esac 2447 esac
2813done 2448done
2814IFS="$ac_save_IFS" 2449IFS="$ac_save_IFS"
2815 2450
2816if test x$ac_enable_checking != x ; then 2451if test x$ac_enable_checking != x ; then
2817 2452
2818$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h 2453cat >>confdefs.h <<\_ACEOF
2454#define ENABLE_CHECKING 1
2455_ACEOF
2819 2456
2820fi 2457fi
2821if test x$ac_gc_check_stringbytes != x ; then 2458if test x$ac_gc_check_stringbytes != x ; then
2822 2459
2823$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h 2460cat >>confdefs.h <<\_ACEOF
2461#define GC_CHECK_STRING_BYTES 1
2462_ACEOF
2824 2463
2825fi 2464fi
2826if test x$ac_gc_check_stringoverrun != x ; then 2465if test x$ac_gc_check_stringoverrun != x ; then
2827 2466
2828$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h 2467cat >>confdefs.h <<\_ACEOF
2468#define GC_CHECK_STRING_OVERRUN 1
2469_ACEOF
2829 2470
2830fi 2471fi
2831if test x$ac_gc_check_string_free_list != x ; then 2472if test x$ac_gc_check_string_free_list != x ; then
2832 2473
2833$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h 2474cat >>confdefs.h <<\_ACEOF
2475#define GC_CHECK_STRING_FREE_LIST 1
2476_ACEOF
2834 2477
2835fi 2478fi
2836if test x$ac_xmalloc_overrun != x ; then 2479if test x$ac_xmalloc_overrun != x ; then
2837 2480
2838$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h 2481cat >>confdefs.h <<\_ACEOF
2482#define XMALLOC_OVERRUN_CHECK 1
2483_ACEOF
2839 2484
2840fi 2485fi
2841if test x$ac_gc_check_cons_list != x ; then 2486if test x$ac_gc_check_cons_list != x ; then
2842 2487
2843$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h 2488cat >>confdefs.h <<\_ACEOF
2489#define GC_CHECK_CONS_LIST 1
2490_ACEOF
2844 2491
2845fi 2492fi
2846 2493
2847# Check whether --enable-profiling was given. 2494# Check whether --enable-profiling was given.
2848if test "${enable_profiling+set}" = set; then : 2495if test "${enable_profiling+set}" = set; then
2849 enableval=$enable_profiling; ac_enable_profiling="${enableval}" 2496 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2850fi 2497fi
2851 2498
@@ -2858,7 +2505,7 @@ else
2858fi 2505fi
2859 2506
2860# Check whether --enable-autodepend was given. 2507# Check whether --enable-autodepend was given.
2861if test "${enable_autodepend+set}" = set; then : 2508if test "${enable_autodepend+set}" = set; then
2862 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" 2509 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2863else 2510else
2864 ac_enable_autodepend=yes 2511 ac_enable_autodepend=yes
@@ -2892,7 +2539,7 @@ esac
2892#### Check if the source directory already has a configured system in it. 2539#### Check if the source directory already has a configured system in it.
2893if test `pwd` != `(cd ${srcdir} && pwd)` \ 2540if test `pwd` != `(cd ${srcdir} && pwd)` \
2894 && test -f "${srcdir}/src/config.h" ; then 2541 && test -f "${srcdir}/src/config.h" ; then
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used 2542 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2896 as a build directory right now; it has been configured in its own 2543 as a build directory right now; it has been configured in its own
2897 right. To configure in another directory as well, you MUST 2544 right. To configure in another directory as well, you MUST
2898 use GNU make. If you do not have GNU make, then you must 2545 use GNU make. If you do not have GNU make, then you must
@@ -2913,16 +2560,24 @@ fi
2913 2560
2914ac_aux_dir= 2561ac_aux_dir=
2915for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2562for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2916 for ac_t in install-sh install.sh shtool; do 2563 if test -f "$ac_dir/install-sh"; then
2917 if test -f "$ac_dir/$ac_t"; then 2564 ac_aux_dir=$ac_dir
2918 ac_aux_dir=$ac_dir 2565 ac_install_sh="$ac_aux_dir/install-sh -c"
2919 ac_install_sh="$ac_aux_dir/$ac_t -c" 2566 break
2920 break 2 2567 elif test -f "$ac_dir/install.sh"; then
2921 fi 2568 ac_aux_dir=$ac_dir
2922 done 2569 ac_install_sh="$ac_aux_dir/install.sh -c"
2570 break
2571 elif test -f "$ac_dir/shtool"; then
2572 ac_aux_dir=$ac_dir
2573 ac_install_sh="$ac_aux_dir/shtool install -c"
2574 break
2575 fi
2923done 2576done
2924if test -z "$ac_aux_dir"; then 2577if test -z "$ac_aux_dir"; then
2925 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2578 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2579$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2580 { (exit 1); exit 1; }; }
2926fi 2581fi
2927 2582
2928# These three variables are undocumented and unsupported, 2583# These three variables are undocumented and unsupported,
@@ -2936,27 +2591,35 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2936 2591
2937# Make sure we can run config.sub. 2592# Make sure we can run config.sub.
2938$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2593$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2939 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2594 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2595$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2596 { (exit 1); exit 1; }; }
2940 2597
2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2598{ $as_echo "$as_me:$LINENO: checking build system type" >&5
2942$as_echo_n "checking build system type... " >&6; } 2599$as_echo_n "checking build system type... " >&6; }
2943if test "${ac_cv_build+set}" = set; then : 2600if test "${ac_cv_build+set}" = set; then
2944 $as_echo_n "(cached) " >&6 2601 $as_echo_n "(cached) " >&6
2945else 2602else
2946 ac_build_alias=$build_alias 2603 ac_build_alias=$build_alias
2947test "x$ac_build_alias" = x && 2604test "x$ac_build_alias" = x &&
2948 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2605 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2949test "x$ac_build_alias" = x && 2606test "x$ac_build_alias" = x &&
2950 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2607 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2608$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2609 { (exit 1); exit 1; }; }
2951ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2610ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2952 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2611 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2612$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2613 { (exit 1); exit 1; }; }
2953 2614
2954fi 2615fi
2955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2616{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2956$as_echo "$ac_cv_build" >&6; } 2617$as_echo "$ac_cv_build" >&6; }
2957case $ac_cv_build in 2618case $ac_cv_build in
2958*-*-*) ;; 2619*-*-*) ;;
2959*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2620*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2621$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2622 { (exit 1); exit 1; }; };;
2960esac 2623esac
2961build=$ac_cv_build 2624build=$ac_cv_build
2962ac_save_IFS=$IFS; IFS='-' 2625ac_save_IFS=$IFS; IFS='-'
@@ -2972,24 +2635,28 @@ IFS=$ac_save_IFS
2972case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2635case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2973 2636
2974 2637
2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2638{ $as_echo "$as_me:$LINENO: checking host system type" >&5
2976$as_echo_n "checking host system type... " >&6; } 2639$as_echo_n "checking host system type... " >&6; }
2977if test "${ac_cv_host+set}" = set; then : 2640if test "${ac_cv_host+set}" = set; then
2978 $as_echo_n "(cached) " >&6 2641 $as_echo_n "(cached) " >&6
2979else 2642else
2980 if test "x$host_alias" = x; then 2643 if test "x$host_alias" = x; then
2981 ac_cv_host=$ac_cv_build 2644 ac_cv_host=$ac_cv_build
2982else 2645else
2983 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2646 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2984 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2647 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2648$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2649 { (exit 1); exit 1; }; }
2985fi 2650fi
2986 2651
2987fi 2652fi
2988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2653{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2989$as_echo "$ac_cv_host" >&6; } 2654$as_echo "$ac_cv_host" >&6; }
2990case $ac_cv_host in 2655case $ac_cv_host in
2991*-*-*) ;; 2656*-*-*) ;;
2992*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2657*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2658$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2659 { (exit 1); exit 1; }; };;
2993esac 2660esac
2994host=$ac_cv_host 2661host=$ac_cv_host
2995ac_save_IFS=$IFS; IFS='-' 2662ac_save_IFS=$IFS; IFS='-'
@@ -3069,7 +2736,9 @@ case "${canonical}" in
3069 opsys=netbsd 2736 opsys=netbsd
3070 if test -f /usr/lib/crti.o; then 2737 if test -f /usr/lib/crti.o; then
3071 2738
3072$as_echo "#define HAVE_CRTIN /**/" >>confdefs.h 2739cat >>confdefs.h <<\_ACEOF
2740#define HAVE_CRTIN /**/
2741_ACEOF
3073 2742
3074 fi 2743 fi
3075 2744
@@ -3335,8 +3004,11 @@ fi
3335 3004
3336 3005
3337if test $unported = yes; then 3006if test $unported = yes; then
3338 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems. 3007 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3339Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 3008Check \`etc/MACHINES' for recognized configuration names." >&5
3009$as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3010Check \`etc/MACHINES' for recognized configuration names." >&2;}
3011 { (exit 1); exit 1; }; }
3340fi 3012fi
3341 3013
3342machfile="m/${machine}.h" 3014machfile="m/${machine}.h"
@@ -3357,9 +3029,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
3357if test -n "$ac_tool_prefix"; then 3029if test -n "$ac_tool_prefix"; then
3358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3030 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3359set dummy ${ac_tool_prefix}gcc; ac_word=$2 3031set dummy ${ac_tool_prefix}gcc; ac_word=$2
3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3032{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3361$as_echo_n "checking for $ac_word... " >&6; } 3033$as_echo_n "checking for $ac_word... " >&6; }
3362if test "${ac_cv_prog_CC+set}" = set; then : 3034if test "${ac_cv_prog_CC+set}" = set; then
3363 $as_echo_n "(cached) " >&6 3035 $as_echo_n "(cached) " >&6
3364else 3036else
3365 if test -n "$CC"; then 3037 if test -n "$CC"; then
@@ -3370,24 +3042,24 @@ for as_dir in $PATH
3370do 3042do
3371 IFS=$as_save_IFS 3043 IFS=$as_save_IFS
3372 test -z "$as_dir" && as_dir=. 3044 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do 3045 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3046 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3375 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3047 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3048 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3377 break 2 3049 break 2
3378 fi 3050 fi
3379done 3051done
3380 done 3052done
3381IFS=$as_save_IFS 3053IFS=$as_save_IFS
3382 3054
3383fi 3055fi
3384fi 3056fi
3385CC=$ac_cv_prog_CC 3057CC=$ac_cv_prog_CC
3386if test -n "$CC"; then 3058if test -n "$CC"; then
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3059 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3388$as_echo "$CC" >&6; } 3060$as_echo "$CC" >&6; }
3389else 3061else
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3062 { $as_echo "$as_me:$LINENO: result: no" >&5
3391$as_echo "no" >&6; } 3063$as_echo "no" >&6; }
3392fi 3064fi
3393 3065
@@ -3397,9 +3069,9 @@ if test -z "$ac_cv_prog_CC"; then
3397 ac_ct_CC=$CC 3069 ac_ct_CC=$CC
3398 # Extract the first word of "gcc", so it can be a program name with args. 3070 # Extract the first word of "gcc", so it can be a program name with args.
3399set dummy gcc; ac_word=$2 3071set dummy gcc; ac_word=$2
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3072{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3401$as_echo_n "checking for $ac_word... " >&6; } 3073$as_echo_n "checking for $ac_word... " >&6; }
3402if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3074if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3403 $as_echo_n "(cached) " >&6 3075 $as_echo_n "(cached) " >&6
3404else 3076else
3405 if test -n "$ac_ct_CC"; then 3077 if test -n "$ac_ct_CC"; then
@@ -3410,24 +3082,24 @@ for as_dir in $PATH
3410do 3082do
3411 IFS=$as_save_IFS 3083 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=. 3084 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do 3085 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3086 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_ac_ct_CC="gcc" 3087 ac_cv_prog_ac_ct_CC="gcc"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3088 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2 3089 break 2
3418 fi 3090 fi
3419done 3091done
3420 done 3092done
3421IFS=$as_save_IFS 3093IFS=$as_save_IFS
3422 3094
3423fi 3095fi
3424fi 3096fi
3425ac_ct_CC=$ac_cv_prog_ac_ct_CC 3097ac_ct_CC=$ac_cv_prog_ac_ct_CC
3426if test -n "$ac_ct_CC"; then 3098if test -n "$ac_ct_CC"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3099 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3428$as_echo "$ac_ct_CC" >&6; } 3100$as_echo "$ac_ct_CC" >&6; }
3429else 3101else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3102 { $as_echo "$as_me:$LINENO: result: no" >&5
3431$as_echo "no" >&6; } 3103$as_echo "no" >&6; }
3432fi 3104fi
3433 3105
@@ -3436,8 +3108,12 @@ fi
3436 else 3108 else
3437 case $cross_compiling:$ac_tool_warned in 3109 case $cross_compiling:$ac_tool_warned in
3438yes:) 3110yes:)
3439{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3111{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3440$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3112whose name does not start with the host triplet. If you think this
3113configuration is useful to you, please write to autoconf@gnu.org." >&5
3114$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3115whose name does not start with the host triplet. If you think this
3116configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3441ac_tool_warned=yes ;; 3117ac_tool_warned=yes ;;
3442esac 3118esac
3443 CC=$ac_ct_CC 3119 CC=$ac_ct_CC
@@ -3450,9 +3126,9 @@ if test -z "$CC"; then
3450 if test -n "$ac_tool_prefix"; then 3126 if test -n "$ac_tool_prefix"; then
3451 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3127 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3452set dummy ${ac_tool_prefix}cc; ac_word=$2 3128set dummy ${ac_tool_prefix}cc; ac_word=$2
3453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3129{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3454$as_echo_n "checking for $ac_word... " >&6; } 3130$as_echo_n "checking for $ac_word... " >&6; }
3455if test "${ac_cv_prog_CC+set}" = set; then : 3131if test "${ac_cv_prog_CC+set}" = set; then
3456 $as_echo_n "(cached) " >&6 3132 $as_echo_n "(cached) " >&6
3457else 3133else
3458 if test -n "$CC"; then 3134 if test -n "$CC"; then
@@ -3463,24 +3139,24 @@ for as_dir in $PATH
3463do 3139do
3464 IFS=$as_save_IFS 3140 IFS=$as_save_IFS
3465 test -z "$as_dir" && as_dir=. 3141 test -z "$as_dir" && as_dir=.
3466 for ac_exec_ext in '' $ac_executable_extensions; do 3142 for ac_exec_ext in '' $ac_executable_extensions; do
3467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3468 ac_cv_prog_CC="${ac_tool_prefix}cc" 3144 ac_cv_prog_CC="${ac_tool_prefix}cc"
3469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3145 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3470 break 2 3146 break 2
3471 fi 3147 fi
3472done 3148done
3473 done 3149done
3474IFS=$as_save_IFS 3150IFS=$as_save_IFS
3475 3151
3476fi 3152fi
3477fi 3153fi
3478CC=$ac_cv_prog_CC 3154CC=$ac_cv_prog_CC
3479if test -n "$CC"; then 3155if test -n "$CC"; then
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3156 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3481$as_echo "$CC" >&6; } 3157$as_echo "$CC" >&6; }
3482else 3158else
3483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3159 { $as_echo "$as_me:$LINENO: result: no" >&5
3484$as_echo "no" >&6; } 3160$as_echo "no" >&6; }
3485fi 3161fi
3486 3162
@@ -3490,9 +3166,9 @@ fi
3490if test -z "$CC"; then 3166if test -z "$CC"; then
3491 # Extract the first word of "cc", so it can be a program name with args. 3167 # Extract the first word of "cc", so it can be a program name with args.
3492set dummy cc; ac_word=$2 3168set dummy cc; ac_word=$2
3493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3169{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3494$as_echo_n "checking for $ac_word... " >&6; } 3170$as_echo_n "checking for $ac_word... " >&6; }
3495if test "${ac_cv_prog_CC+set}" = set; then : 3171if test "${ac_cv_prog_CC+set}" = set; then
3496 $as_echo_n "(cached) " >&6 3172 $as_echo_n "(cached) " >&6
3497else 3173else
3498 if test -n "$CC"; then 3174 if test -n "$CC"; then
@@ -3504,18 +3180,18 @@ for as_dir in $PATH
3504do 3180do
3505 IFS=$as_save_IFS 3181 IFS=$as_save_IFS
3506 test -z "$as_dir" && as_dir=. 3182 test -z "$as_dir" && as_dir=.
3507 for ac_exec_ext in '' $ac_executable_extensions; do 3183 for ac_exec_ext in '' $ac_executable_extensions; do
3508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3185 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3510 ac_prog_rejected=yes 3186 ac_prog_rejected=yes
3511 continue 3187 continue
3512 fi 3188 fi
3513 ac_cv_prog_CC="cc" 3189 ac_cv_prog_CC="cc"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3190 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3515 break 2 3191 break 2
3516 fi 3192 fi
3517done 3193done
3518 done 3194done
3519IFS=$as_save_IFS 3195IFS=$as_save_IFS
3520 3196
3521if test $ac_prog_rejected = yes; then 3197if test $ac_prog_rejected = yes; then
@@ -3534,10 +3210,10 @@ fi
3534fi 3210fi
3535CC=$ac_cv_prog_CC 3211CC=$ac_cv_prog_CC
3536if test -n "$CC"; then 3212if test -n "$CC"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3213 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3538$as_echo "$CC" >&6; } 3214$as_echo "$CC" >&6; }
3539else 3215else
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3216 { $as_echo "$as_me:$LINENO: result: no" >&5
3541$as_echo "no" >&6; } 3217$as_echo "no" >&6; }
3542fi 3218fi
3543 3219
@@ -3549,9 +3225,9 @@ if test -z "$CC"; then
3549 do 3225 do
3550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3226 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3551set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3227set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3228{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3553$as_echo_n "checking for $ac_word... " >&6; } 3229$as_echo_n "checking for $ac_word... " >&6; }
3554if test "${ac_cv_prog_CC+set}" = set; then : 3230if test "${ac_cv_prog_CC+set}" = set; then
3555 $as_echo_n "(cached) " >&6 3231 $as_echo_n "(cached) " >&6
3556else 3232else
3557 if test -n "$CC"; then 3233 if test -n "$CC"; then
@@ -3562,24 +3238,24 @@ for as_dir in $PATH
3562do 3238do
3563 IFS=$as_save_IFS 3239 IFS=$as_save_IFS
3564 test -z "$as_dir" && as_dir=. 3240 test -z "$as_dir" && as_dir=.
3565 for ac_exec_ext in '' $ac_executable_extensions; do 3241 for ac_exec_ext in '' $ac_executable_extensions; do
3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3242 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3567 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3243 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3244 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3569 break 2 3245 break 2
3570 fi 3246 fi
3571done 3247done
3572 done 3248done
3573IFS=$as_save_IFS 3249IFS=$as_save_IFS
3574 3250
3575fi 3251fi
3576fi 3252fi
3577CC=$ac_cv_prog_CC 3253CC=$ac_cv_prog_CC
3578if test -n "$CC"; then 3254if test -n "$CC"; then
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3255 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3580$as_echo "$CC" >&6; } 3256$as_echo "$CC" >&6; }
3581else 3257else
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3258 { $as_echo "$as_me:$LINENO: result: no" >&5
3583$as_echo "no" >&6; } 3259$as_echo "no" >&6; }
3584fi 3260fi
3585 3261
@@ -3593,9 +3269,9 @@ if test -z "$CC"; then
3593do 3269do
3594 # Extract the first word of "$ac_prog", so it can be a program name with args. 3270 # Extract the first word of "$ac_prog", so it can be a program name with args.
3595set dummy $ac_prog; ac_word=$2 3271set dummy $ac_prog; ac_word=$2
3596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3272{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3597$as_echo_n "checking for $ac_word... " >&6; } 3273$as_echo_n "checking for $ac_word... " >&6; }
3598if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3274if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3599 $as_echo_n "(cached) " >&6 3275 $as_echo_n "(cached) " >&6
3600else 3276else
3601 if test -n "$ac_ct_CC"; then 3277 if test -n "$ac_ct_CC"; then
@@ -3606,24 +3282,24 @@ for as_dir in $PATH
3606do 3282do
3607 IFS=$as_save_IFS 3283 IFS=$as_save_IFS
3608 test -z "$as_dir" && as_dir=. 3284 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do 3285 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3611 ac_cv_prog_ac_ct_CC="$ac_prog" 3287 ac_cv_prog_ac_ct_CC="$ac_prog"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3613 break 2 3289 break 2
3614 fi 3290 fi
3615done 3291done
3616 done 3292done
3617IFS=$as_save_IFS 3293IFS=$as_save_IFS
3618 3294
3619fi 3295fi
3620fi 3296fi
3621ac_ct_CC=$ac_cv_prog_ac_ct_CC 3297ac_ct_CC=$ac_cv_prog_ac_ct_CC
3622if test -n "$ac_ct_CC"; then 3298if test -n "$ac_ct_CC"; then
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3299 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3624$as_echo "$ac_ct_CC" >&6; } 3300$as_echo "$ac_ct_CC" >&6; }
3625else 3301else
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3302 { $as_echo "$as_me:$LINENO: result: no" >&5
3627$as_echo "no" >&6; } 3303$as_echo "no" >&6; }
3628fi 3304fi
3629 3305
@@ -3636,8 +3312,12 @@ done
3636 else 3312 else
3637 case $cross_compiling:$ac_tool_warned in 3313 case $cross_compiling:$ac_tool_warned in
3638yes:) 3314yes:)
3639{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3315{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3640$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3316whose name does not start with the host triplet. If you think this
3317configuration is useful to you, please write to autoconf@gnu.org." >&5
3318$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3319whose name does not start with the host triplet. If you think this
3320configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3641ac_tool_warned=yes ;; 3321ac_tool_warned=yes ;;
3642esac 3322esac
3643 CC=$ac_ct_CC 3323 CC=$ac_ct_CC
@@ -3647,55 +3327,71 @@ fi
3647fi 3327fi
3648 3328
3649 3329
3650test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3330test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3331See \`config.log' for more details." >&5
3652as_fn_error "no acceptable C compiler found in \$PATH 3332$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3653See \`config.log' for more details." "$LINENO" 5; } 3333See \`config.log' for more details." >&2;}
3334 { (exit 1); exit 1; }; }
3654 3335
3655# Provide some information about the compiler. 3336# Provide some information about the compiler.
3656$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3337$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3657set X $ac_compile 3338set X $ac_compile
3658ac_compiler=$2 3339ac_compiler=$2
3659for ac_option in --version -v -V -qversion; do 3340{ (ac_try="$ac_compiler --version >&5"
3660 { { ac_try="$ac_compiler $ac_option >&5"
3661case "(($ac_try" in 3341case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;; 3343 *) ac_try_echo=$ac_try;;
3664esac 3344esac
3665eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3666$as_echo "$ac_try_echo"; } >&5 3346$as_echo "$ac_try_echo") >&5
3667 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3347 (eval "$ac_compiler --version >&5") 2>&5
3668 ac_status=$? 3348 ac_status=$?
3669 if test -s conftest.err; then 3349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3670 sed '10a\ 3350 (exit $ac_status); }
3671... rest of stderr output deleted ... 3351{ (ac_try="$ac_compiler -v >&5"
3672 10q' conftest.err >conftest.er1 3352case "(($ac_try" in
3673 cat conftest.er1 >&5 3353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 rm -f conftest.er1 conftest.err 3354 *) ac_try_echo=$ac_try;;
3675 fi 3355esac
3676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3356eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3677 test $ac_status = 0; } 3357$as_echo "$ac_try_echo") >&5
3678done 3358 (eval "$ac_compiler -v >&5") 2>&5
3359 ac_status=$?
3360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3361 (exit $ac_status); }
3362{ (ac_try="$ac_compiler -V >&5"
3363case "(($ac_try" in
3364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3365 *) ac_try_echo=$ac_try;;
3366esac
3367eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3368$as_echo "$ac_try_echo") >&5
3369 (eval "$ac_compiler -V >&5") 2>&5
3370 ac_status=$?
3371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3372 (exit $ac_status); }
3679 3373
3680cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3374cat >conftest.$ac_ext <<_ACEOF
3375/* confdefs.h. */
3376_ACEOF
3377cat confdefs.h >>conftest.$ac_ext
3378cat >>conftest.$ac_ext <<_ACEOF
3681/* end confdefs.h. */ 3379/* end confdefs.h. */
3682#include <stdio.h> 3380
3683int 3381int
3684main () 3382main ()
3685{ 3383{
3686FILE *f = fopen ("conftest.out", "w");
3687 return ferror (f) || fclose (f) != 0;
3688 3384
3689 ; 3385 ;
3690 return 0; 3386 return 0;
3691} 3387}
3692_ACEOF 3388_ACEOF
3693ac_clean_files_save=$ac_clean_files 3389ac_clean_files_save=$ac_clean_files
3694ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3390ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3695# Try to create an executable without -o first, disregard a.out. 3391# Try to create an executable without -o first, disregard a.out.
3696# It will help us diagnose broken compilers, and finding out an intuition 3392# It will help us diagnose broken compilers, and finding out an intuition
3697# of exeext. 3393# of exeext.
3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3394{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3699$as_echo_n "checking for C compiler default output file name... " >&6; } 3395$as_echo_n "checking for C compiler default output file name... " >&6; }
3700ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3396ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3701 3397
@@ -3712,17 +3408,17 @@ do
3712done 3408done
3713rm -f $ac_rmfiles 3409rm -f $ac_rmfiles
3714 3410
3715if { { ac_try="$ac_link_default" 3411if { (ac_try="$ac_link_default"
3716case "(($ac_try" in 3412case "(($ac_try" in
3717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3718 *) ac_try_echo=$ac_try;; 3414 *) ac_try_echo=$ac_try;;
3719esac 3415esac
3720eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3721$as_echo "$ac_try_echo"; } >&5 3417$as_echo "$ac_try_echo") >&5
3722 (eval "$ac_link_default") 2>&5 3418 (eval "$ac_link_default") 2>&5
3723 ac_status=$? 3419 ac_status=$?
3724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3725 test $ac_status = 0; }; then : 3421 (exit $ac_status); }; then
3726 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3422 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3727# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3423# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3728# in a Makefile. We should not override ac_cv_exeext if it was cached, 3424# in a Makefile. We should not override ac_cv_exeext if it was cached,
@@ -3739,7 +3435,7 @@ do
3739 # certainly right. 3435 # certainly right.
3740 break;; 3436 break;;
3741 *.* ) 3437 *.* )
3742 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3438 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3743 then :; else 3439 then :; else
3744 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3440 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3745 fi 3441 fi
@@ -3758,75 +3454,80 @@ test "$ac_cv_exeext" = no && ac_cv_exeext=
3758else 3454else
3759 ac_file='' 3455 ac_file=''
3760fi 3456fi
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3457
3458{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3762$as_echo "$ac_file" >&6; } 3459$as_echo "$ac_file" >&6; }
3763if test -z "$ac_file"; then : 3460if test -z "$ac_file"; then
3764 $as_echo "$as_me: failed program was:" >&5 3461 $as_echo "$as_me: failed program was:" >&5
3765sed 's/^/| /' conftest.$ac_ext >&5 3462sed 's/^/| /' conftest.$ac_ext >&5
3766 3463
3767{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3464{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3768$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3465See \`config.log' for more details." >&5
3769{ as_fn_set_status 77 3466$as_echo "$as_me: error: C compiler cannot create executables
3770as_fn_error "C compiler cannot create executables 3467See \`config.log' for more details." >&2;}
3771See \`config.log' for more details." "$LINENO" 5; }; } 3468 { (exit 77); exit 77; }; }
3772fi 3469fi
3470
3773ac_exeext=$ac_cv_exeext 3471ac_exeext=$ac_cv_exeext
3774 3472
3775# Check that the compiler produces executables we can run. If not, either 3473# Check that the compiler produces executables we can run. If not, either
3776# the compiler is broken, or we cross compile. 3474# the compiler is broken, or we cross compile.
3777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3475{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3778$as_echo_n "checking whether the C compiler works... " >&6; } 3476$as_echo_n "checking whether the C compiler works... " >&6; }
3477# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3779# If not cross compiling, check that we can run a simple program. 3478# If not cross compiling, check that we can run a simple program.
3780if test "$cross_compiling" != yes; then 3479if test "$cross_compiling" != yes; then
3781 if { ac_try='./$ac_file' 3480 if { ac_try='./$ac_file'
3782 { { case "(($ac_try" in 3481 { (case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;; 3483 *) ac_try_echo=$ac_try;;
3785esac 3484esac
3786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787$as_echo "$ac_try_echo"; } >&5 3486$as_echo "$ac_try_echo") >&5
3788 (eval "$ac_try") 2>&5 3487 (eval "$ac_try") 2>&5
3789 ac_status=$? 3488 ac_status=$?
3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 test $ac_status = 0; }; }; then 3490 (exit $ac_status); }; }; then
3792 cross_compiling=no 3491 cross_compiling=no
3793 else 3492 else
3794 if test "$cross_compiling" = maybe; then 3493 if test "$cross_compiling" = maybe; then
3795 cross_compiling=yes 3494 cross_compiling=yes
3796 else 3495 else
3797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3496 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3798$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3799as_fn_error "cannot run C compiled programs.
3800If you meant to cross compile, use \`--host'. 3497If you meant to cross compile, use \`--host'.
3801See \`config.log' for more details." "$LINENO" 5; } 3498See \`config.log' for more details." >&5
3499$as_echo "$as_me: error: cannot run C compiled programs.
3500If you meant to cross compile, use \`--host'.
3501See \`config.log' for more details." >&2;}
3502 { (exit 1); exit 1; }; }
3802 fi 3503 fi
3803 fi 3504 fi
3804fi 3505fi
3805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3506{ $as_echo "$as_me:$LINENO: result: yes" >&5
3806$as_echo "yes" >&6; } 3507$as_echo "yes" >&6; }
3807 3508
3808rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3509rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3809ac_clean_files=$ac_clean_files_save 3510ac_clean_files=$ac_clean_files_save
3810# Check that the compiler produces executables we can run. If not, either 3511# Check that the compiler produces executables we can run. If not, either
3811# the compiler is broken, or we cross compile. 3512# the compiler is broken, or we cross compile.
3812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3513{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3813$as_echo_n "checking whether we are cross compiling... " >&6; } 3514$as_echo_n "checking whether we are cross compiling... " >&6; }
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3515{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3815$as_echo "$cross_compiling" >&6; } 3516$as_echo "$cross_compiling" >&6; }
3816 3517
3817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3518{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3818$as_echo_n "checking for suffix of executables... " >&6; } 3519$as_echo_n "checking for suffix of executables... " >&6; }
3819if { { ac_try="$ac_link" 3520if { (ac_try="$ac_link"
3820case "(($ac_try" in 3521case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;; 3523 *) ac_try_echo=$ac_try;;
3823esac 3524esac
3824eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3825$as_echo "$ac_try_echo"; } >&5 3526$as_echo "$ac_try_echo") >&5
3826 (eval "$ac_link") 2>&5 3527 (eval "$ac_link") 2>&5
3827 ac_status=$? 3528 ac_status=$?
3828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3829 test $ac_status = 0; }; then : 3530 (exit $ac_status); }; then
3830 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3531 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3831# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3532# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3832# work properly (i.e., refer to `conftest.exe'), while it won't with 3533# work properly (i.e., refer to `conftest.exe'), while it won't with
@@ -3841,24 +3542,30 @@ for ac_file in conftest.exe conftest conftest.*; do
3841 esac 3542 esac
3842done 3543done
3843else 3544else
3844 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3545 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3546See \`config.log' for more details." >&5
3846as_fn_error "cannot compute suffix of executables: cannot compile and link 3547$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3847See \`config.log' for more details." "$LINENO" 5; } 3548See \`config.log' for more details." >&2;}
3549 { (exit 1); exit 1; }; }
3848fi 3550fi
3551
3849rm -f conftest$ac_cv_exeext 3552rm -f conftest$ac_cv_exeext
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3553{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3851$as_echo "$ac_cv_exeext" >&6; } 3554$as_echo "$ac_cv_exeext" >&6; }
3852 3555
3853rm -f conftest.$ac_ext 3556rm -f conftest.$ac_ext
3854EXEEXT=$ac_cv_exeext 3557EXEEXT=$ac_cv_exeext
3855ac_exeext=$EXEEXT 3558ac_exeext=$EXEEXT
3856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3559{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3857$as_echo_n "checking for suffix of object files... " >&6; } 3560$as_echo_n "checking for suffix of object files... " >&6; }
3858if test "${ac_cv_objext+set}" = set; then : 3561if test "${ac_cv_objext+set}" = set; then
3859 $as_echo_n "(cached) " >&6 3562 $as_echo_n "(cached) " >&6
3860else 3563else
3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564 cat >conftest.$ac_ext <<_ACEOF
3565/* confdefs.h. */
3566_ACEOF
3567cat confdefs.h >>conftest.$ac_ext
3568cat >>conftest.$ac_ext <<_ACEOF
3862/* end confdefs.h. */ 3569/* end confdefs.h. */
3863 3570
3864int 3571int
@@ -3870,17 +3577,17 @@ main ()
3870} 3577}
3871_ACEOF 3578_ACEOF
3872rm -f conftest.o conftest.obj 3579rm -f conftest.o conftest.obj
3873if { { ac_try="$ac_compile" 3580if { (ac_try="$ac_compile"
3874case "(($ac_try" in 3581case "(($ac_try" in
3875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3876 *) ac_try_echo=$ac_try;; 3583 *) ac_try_echo=$ac_try;;
3877esac 3584esac
3878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3585eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3879$as_echo "$ac_try_echo"; } >&5 3586$as_echo "$ac_try_echo") >&5
3880 (eval "$ac_compile") 2>&5 3587 (eval "$ac_compile") 2>&5
3881 ac_status=$? 3588 ac_status=$?
3882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3589 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3883 test $ac_status = 0; }; then : 3590 (exit $ac_status); }; then
3884 for ac_file in conftest.o conftest.obj conftest.*; do 3591 for ac_file in conftest.o conftest.obj conftest.*; do
3885 test -f "$ac_file" || continue; 3592 test -f "$ac_file" || continue;
3886 case $ac_file in 3593 case $ac_file in
@@ -3893,23 +3600,29 @@ else
3893 $as_echo "$as_me: failed program was:" >&5 3600 $as_echo "$as_me: failed program was:" >&5
3894sed 's/^/| /' conftest.$ac_ext >&5 3601sed 's/^/| /' conftest.$ac_ext >&5
3895 3602
3896{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3603{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3897$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3604See \`config.log' for more details." >&5
3898as_fn_error "cannot compute suffix of object files: cannot compile 3605$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3899See \`config.log' for more details." "$LINENO" 5; } 3606See \`config.log' for more details." >&2;}
3607 { (exit 1); exit 1; }; }
3900fi 3608fi
3609
3901rm -f conftest.$ac_cv_objext conftest.$ac_ext 3610rm -f conftest.$ac_cv_objext conftest.$ac_ext
3902fi 3611fi
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3612{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3904$as_echo "$ac_cv_objext" >&6; } 3613$as_echo "$ac_cv_objext" >&6; }
3905OBJEXT=$ac_cv_objext 3614OBJEXT=$ac_cv_objext
3906ac_objext=$OBJEXT 3615ac_objext=$OBJEXT
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3616{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3908$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3617$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3909if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3618if test "${ac_cv_c_compiler_gnu+set}" = set; then
3910 $as_echo_n "(cached) " >&6 3619 $as_echo_n "(cached) " >&6
3911else 3620else
3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3621 cat >conftest.$ac_ext <<_ACEOF
3622/* confdefs.h. */
3623_ACEOF
3624cat confdefs.h >>conftest.$ac_ext
3625cat >>conftest.$ac_ext <<_ACEOF
3913/* end confdefs.h. */ 3626/* end confdefs.h. */
3914 3627
3915int 3628int
@@ -3923,16 +3636,37 @@ main ()
3923 return 0; 3636 return 0;
3924} 3637}
3925_ACEOF 3638_ACEOF
3926if ac_fn_c_try_compile "$LINENO"; then : 3639rm -f conftest.$ac_objext
3640if { (ac_try="$ac_compile"
3641case "(($ac_try" in
3642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3643 *) ac_try_echo=$ac_try;;
3644esac
3645eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3646$as_echo "$ac_try_echo") >&5
3647 (eval "$ac_compile") 2>conftest.er1
3648 ac_status=$?
3649 grep -v '^ *+' conftest.er1 >conftest.err
3650 rm -f conftest.er1
3651 cat conftest.err >&5
3652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3653 (exit $ac_status); } && {
3654 test -z "$ac_c_werror_flag" ||
3655 test ! -s conftest.err
3656 } && test -s conftest.$ac_objext; then
3927 ac_compiler_gnu=yes 3657 ac_compiler_gnu=yes
3928else 3658else
3929 ac_compiler_gnu=no 3659 $as_echo "$as_me: failed program was:" >&5
3660sed 's/^/| /' conftest.$ac_ext >&5
3661
3662 ac_compiler_gnu=no
3930fi 3663fi
3664
3931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3665rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3932ac_cv_c_compiler_gnu=$ac_compiler_gnu 3666ac_cv_c_compiler_gnu=$ac_compiler_gnu
3933 3667
3934fi 3668fi
3935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3669{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3936$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3670$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3937if test $ac_compiler_gnu = yes; then 3671if test $ac_compiler_gnu = yes; then
3938 GCC=yes 3672 GCC=yes
@@ -3941,16 +3675,20 @@ else
3941fi 3675fi
3942ac_test_CFLAGS=${CFLAGS+set} 3676ac_test_CFLAGS=${CFLAGS+set}
3943ac_save_CFLAGS=$CFLAGS 3677ac_save_CFLAGS=$CFLAGS
3944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3678{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3945$as_echo_n "checking whether $CC accepts -g... " >&6; } 3679$as_echo_n "checking whether $CC accepts -g... " >&6; }
3946if test "${ac_cv_prog_cc_g+set}" = set; then : 3680if test "${ac_cv_prog_cc_g+set}" = set; then
3947 $as_echo_n "(cached) " >&6 3681 $as_echo_n "(cached) " >&6
3948else 3682else
3949 ac_save_c_werror_flag=$ac_c_werror_flag 3683 ac_save_c_werror_flag=$ac_c_werror_flag
3950 ac_c_werror_flag=yes 3684 ac_c_werror_flag=yes
3951 ac_cv_prog_cc_g=no 3685 ac_cv_prog_cc_g=no
3952 CFLAGS="-g" 3686 CFLAGS="-g"
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3687 cat >conftest.$ac_ext <<_ACEOF
3688/* confdefs.h. */
3689_ACEOF
3690cat confdefs.h >>conftest.$ac_ext
3691cat >>conftest.$ac_ext <<_ACEOF
3954/* end confdefs.h. */ 3692/* end confdefs.h. */
3955 3693
3956int 3694int
@@ -3961,11 +3699,35 @@ main ()
3961 return 0; 3699 return 0;
3962} 3700}
3963_ACEOF 3701_ACEOF
3964if ac_fn_c_try_compile "$LINENO"; then : 3702rm -f conftest.$ac_objext
3703if { (ac_try="$ac_compile"
3704case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707esac
3708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3709$as_echo "$ac_try_echo") >&5
3710 (eval "$ac_compile") 2>conftest.er1
3711 ac_status=$?
3712 grep -v '^ *+' conftest.er1 >conftest.err
3713 rm -f conftest.er1
3714 cat conftest.err >&5
3715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3716 (exit $ac_status); } && {
3717 test -z "$ac_c_werror_flag" ||
3718 test ! -s conftest.err
3719 } && test -s conftest.$ac_objext; then
3965 ac_cv_prog_cc_g=yes 3720 ac_cv_prog_cc_g=yes
3966else 3721else
3967 CFLAGS="" 3722 $as_echo "$as_me: failed program was:" >&5
3968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3723sed 's/^/| /' conftest.$ac_ext >&5
3724
3725 CFLAGS=""
3726 cat >conftest.$ac_ext <<_ACEOF
3727/* confdefs.h. */
3728_ACEOF
3729cat confdefs.h >>conftest.$ac_ext
3730cat >>conftest.$ac_ext <<_ACEOF
3969/* end confdefs.h. */ 3731/* end confdefs.h. */
3970 3732
3971int 3733int
@@ -3976,12 +3738,36 @@ main ()
3976 return 0; 3738 return 0;
3977} 3739}
3978_ACEOF 3740_ACEOF
3979if ac_fn_c_try_compile "$LINENO"; then : 3741rm -f conftest.$ac_objext
3980 3742if { (ac_try="$ac_compile"
3743case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746esac
3747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3748$as_echo "$ac_try_echo") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3750 ac_status=$?
3751 grep -v '^ *+' conftest.er1 >conftest.err
3752 rm -f conftest.er1
3753 cat conftest.err >&5
3754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3759 :
3981else 3760else
3982 ac_c_werror_flag=$ac_save_c_werror_flag 3761 $as_echo "$as_me: failed program was:" >&5
3762sed 's/^/| /' conftest.$ac_ext >&5
3763
3764 ac_c_werror_flag=$ac_save_c_werror_flag
3983 CFLAGS="-g" 3765 CFLAGS="-g"
3984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3766 cat >conftest.$ac_ext <<_ACEOF
3767/* confdefs.h. */
3768_ACEOF
3769cat confdefs.h >>conftest.$ac_ext
3770cat >>conftest.$ac_ext <<_ACEOF
3985/* end confdefs.h. */ 3771/* end confdefs.h. */
3986 3772
3987int 3773int
@@ -3992,17 +3778,42 @@ main ()
3992 return 0; 3778 return 0;
3993} 3779}
3994_ACEOF 3780_ACEOF
3995if ac_fn_c_try_compile "$LINENO"; then : 3781rm -f conftest.$ac_objext
3782if { (ac_try="$ac_compile"
3783case "(($ac_try" in
3784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3785 *) ac_try_echo=$ac_try;;
3786esac
3787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3788$as_echo "$ac_try_echo") >&5
3789 (eval "$ac_compile") 2>conftest.er1
3790 ac_status=$?
3791 grep -v '^ *+' conftest.er1 >conftest.err
3792 rm -f conftest.er1
3793 cat conftest.err >&5
3794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3795 (exit $ac_status); } && {
3796 test -z "$ac_c_werror_flag" ||
3797 test ! -s conftest.err
3798 } && test -s conftest.$ac_objext; then
3996 ac_cv_prog_cc_g=yes 3799 ac_cv_prog_cc_g=yes
3800else
3801 $as_echo "$as_me: failed program was:" >&5
3802sed 's/^/| /' conftest.$ac_ext >&5
3803
3804
3997fi 3805fi
3806
3998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3807rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999fi 3808fi
3809
4000rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4001fi 3811fi
3812
4002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 ac_c_werror_flag=$ac_save_c_werror_flag 3814 ac_c_werror_flag=$ac_save_c_werror_flag
4004fi 3815fi
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3816{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4006$as_echo "$ac_cv_prog_cc_g" >&6; } 3817$as_echo "$ac_cv_prog_cc_g" >&6; }
4007if test "$ac_test_CFLAGS" = set; then 3818if test "$ac_test_CFLAGS" = set; then
4008 CFLAGS=$ac_save_CFLAGS 3819 CFLAGS=$ac_save_CFLAGS
@@ -4019,14 +3830,18 @@ else
4019 CFLAGS= 3830 CFLAGS=
4020 fi 3831 fi
4021fi 3832fi
4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3833{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4023$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3834$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4024if test "${ac_cv_prog_cc_c89+set}" = set; then : 3835if test "${ac_cv_prog_cc_c89+set}" = set; then
4025 $as_echo_n "(cached) " >&6 3836 $as_echo_n "(cached) " >&6
4026else 3837else
4027 ac_cv_prog_cc_c89=no 3838 ac_cv_prog_cc_c89=no
4028ac_save_CC=$CC 3839ac_save_CC=$CC
4029cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3840cat >conftest.$ac_ext <<_ACEOF
3841/* confdefs.h. */
3842_ACEOF
3843cat confdefs.h >>conftest.$ac_ext
3844cat >>conftest.$ac_ext <<_ACEOF
4030/* end confdefs.h. */ 3845/* end confdefs.h. */
4031#include <stdarg.h> 3846#include <stdarg.h>
4032#include <stdio.h> 3847#include <stdio.h>
@@ -4083,9 +3898,32 @@ for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4083 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3898 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4084do 3899do
4085 CC="$ac_save_CC $ac_arg" 3900 CC="$ac_save_CC $ac_arg"
4086 if ac_fn_c_try_compile "$LINENO"; then : 3901 rm -f conftest.$ac_objext
3902if { (ac_try="$ac_compile"
3903case "(($ac_try" in
3904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3905 *) ac_try_echo=$ac_try;;
3906esac
3907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3908$as_echo "$ac_try_echo") >&5
3909 (eval "$ac_compile") 2>conftest.er1
3910 ac_status=$?
3911 grep -v '^ *+' conftest.er1 >conftest.err
3912 rm -f conftest.er1
3913 cat conftest.err >&5
3914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3915 (exit $ac_status); } && {
3916 test -z "$ac_c_werror_flag" ||
3917 test ! -s conftest.err
3918 } && test -s conftest.$ac_objext; then
4087 ac_cv_prog_cc_c89=$ac_arg 3919 ac_cv_prog_cc_c89=$ac_arg
3920else
3921 $as_echo "$as_me: failed program was:" >&5
3922sed 's/^/| /' conftest.$ac_ext >&5
3923
3924
4088fi 3925fi
3926
4089rm -f core conftest.err conftest.$ac_objext 3927rm -f core conftest.err conftest.$ac_objext
4090 test "x$ac_cv_prog_cc_c89" != "xno" && break 3928 test "x$ac_cv_prog_cc_c89" != "xno" && break
4091done 3929done
@@ -4096,19 +3934,17 @@ fi
4096# AC_CACHE_VAL 3934# AC_CACHE_VAL
4097case "x$ac_cv_prog_cc_c89" in 3935case "x$ac_cv_prog_cc_c89" in
4098 x) 3936 x)
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3937 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4100$as_echo "none needed" >&6; } ;; 3938$as_echo "none needed" >&6; } ;;
4101 xno) 3939 xno)
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3940 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4103$as_echo "unsupported" >&6; } ;; 3941$as_echo "unsupported" >&6; } ;;
4104 *) 3942 *)
4105 CC="$CC $ac_cv_prog_cc_c89" 3943 CC="$CC $ac_cv_prog_cc_c89"
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3944 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4107$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3945$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4108esac 3946esac
4109if test "x$ac_cv_prog_cc_c89" != xno; then :
4110 3947
4111fi
4112 3948
4113ac_ext=c 3949ac_ext=c
4114ac_cpp='$CPP $CPPFLAGS' 3950ac_cpp='$CPP $CPPFLAGS'
@@ -4126,13 +3962,17 @@ fi
4126## using a Sun compiler, which needs -Xs to prevent whitespace. 3962## using a Sun compiler, which needs -Xs to prevent whitespace.
4127if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ 3963if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4128 test x"$CPP" = x; then 3964 test x"$CPP" = x; then
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5 3965 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4130$as_echo_n "checking whether we are using a Sun C compiler... " >&6; } 3966$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4131 3967
4132if test "${emacs_cv_sunpro_c+set}" = set; then : 3968if test "${emacs_cv_sunpro_c+set}" = set; then
4133 $as_echo_n "(cached) " >&6 3969 $as_echo_n "(cached) " >&6
4134else 3970else
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3971 cat >conftest.$ac_ext <<_ACEOF
3972/* confdefs.h. */
3973_ACEOF
3974cat confdefs.h >>conftest.$ac_ext
3975cat >>conftest.$ac_ext <<_ACEOF
4136/* end confdefs.h. */ 3976/* end confdefs.h. */
4137 3977
4138int 3978int
@@ -4146,16 +3986,41 @@ fail;
4146 return 0; 3986 return 0;
4147} 3987}
4148_ACEOF 3988_ACEOF
4149if ac_fn_c_try_link "$LINENO"; then : 3989rm -f conftest.$ac_objext conftest$ac_exeext
3990if { (ac_try="$ac_link"
3991case "(($ac_try" in
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3994esac
3995eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3996$as_echo "$ac_try_echo") >&5
3997 (eval "$ac_link") 2>conftest.er1
3998 ac_status=$?
3999 grep -v '^ *+' conftest.er1 >conftest.err
4000 rm -f conftest.er1
4001 cat conftest.err >&5
4002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4003 (exit $ac_status); } && {
4004 test -z "$ac_c_werror_flag" ||
4005 test ! -s conftest.err
4006 } && test -s conftest$ac_exeext && {
4007 test "$cross_compiling" = yes ||
4008 $as_test_x conftest$ac_exeext
4009 }; then
4150 emacs_cv_sunpro_c=yes 4010 emacs_cv_sunpro_c=yes
4151else 4011else
4152 emacs_cv_sunpro_c=no 4012 $as_echo "$as_me: failed program was:" >&5
4013sed 's/^/| /' conftest.$ac_ext >&5
4014
4015 emacs_cv_sunpro_c=no
4153fi 4016fi
4154rm -f core conftest.err conftest.$ac_objext \ 4017
4155 conftest$ac_exeext conftest.$ac_ext 4018rm -rf conftest.dSYM
4019rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4020 conftest$ac_exeext conftest.$ac_ext
4156fi 4021fi
4157 4022
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5 4023 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4159$as_echo "$emacs_cv_sunpro_c" >&6; } 4024$as_echo "$emacs_cv_sunpro_c" >&6; }
4160 4025
4161 if test x"$emacs_cv_sunpro_c" = xyes; then 4026 if test x"$emacs_cv_sunpro_c" = xyes; then
@@ -4195,14 +4060,14 @@ ac_cpp='$CPP $CPPFLAGS'
4195ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4060ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4196ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4061ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4197ac_compiler_gnu=$ac_cv_c_compiler_gnu 4062ac_compiler_gnu=$ac_cv_c_compiler_gnu
4198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4063{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4199$as_echo_n "checking how to run the C preprocessor... " >&6; } 4064$as_echo_n "checking how to run the C preprocessor... " >&6; }
4200# On Suns, sometimes $CPP names a directory. 4065# On Suns, sometimes $CPP names a directory.
4201if test -n "$CPP" && test -d "$CPP"; then 4066if test -n "$CPP" && test -d "$CPP"; then
4202 CPP= 4067 CPP=
4203fi 4068fi
4204if test -z "$CPP"; then 4069if test -z "$CPP"; then
4205 if test "${ac_cv_prog_CPP+set}" = set; then : 4070 if test "${ac_cv_prog_CPP+set}" = set; then
4206 $as_echo_n "(cached) " >&6 4071 $as_echo_n "(cached) " >&6
4207else 4072else
4208 # Double quotes because CPP needs to be expanded 4073 # Double quotes because CPP needs to be expanded
@@ -4217,7 +4082,11 @@ do
4217 # <limits.h> exists even on freestanding compilers. 4082 # <limits.h> exists even on freestanding compilers.
4218 # On the NeXT, cc -E runs the code through the compiler's parser, 4083 # On the NeXT, cc -E runs the code through the compiler's parser,
4219 # not just through cpp. "Syntax error" is here to catch this case. 4084 # not just through cpp. "Syntax error" is here to catch this case.
4220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4085 cat >conftest.$ac_ext <<_ACEOF
4086/* confdefs.h. */
4087_ACEOF
4088cat confdefs.h >>conftest.$ac_ext
4089cat >>conftest.$ac_ext <<_ACEOF
4221/* end confdefs.h. */ 4090/* end confdefs.h. */
4222#ifdef __STDC__ 4091#ifdef __STDC__
4223# include <limits.h> 4092# include <limits.h>
@@ -4226,34 +4095,78 @@ do
4226#endif 4095#endif
4227 Syntax error 4096 Syntax error
4228_ACEOF 4097_ACEOF
4229if ac_fn_c_try_cpp "$LINENO"; then : 4098if { (ac_try="$ac_cpp conftest.$ac_ext"
4230 4099case "(($ac_try" in
4100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4101 *) ac_try_echo=$ac_try;;
4102esac
4103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4104$as_echo "$ac_try_echo") >&5
4105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4106 ac_status=$?
4107 grep -v '^ *+' conftest.er1 >conftest.err
4108 rm -f conftest.er1
4109 cat conftest.err >&5
4110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4111 (exit $ac_status); } >/dev/null && {
4112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4113 test ! -s conftest.err
4114 }; then
4115 :
4231else 4116else
4117 $as_echo "$as_me: failed program was:" >&5
4118sed 's/^/| /' conftest.$ac_ext >&5
4119
4232 # Broken: fails on valid input. 4120 # Broken: fails on valid input.
4233continue 4121continue
4234fi 4122fi
4123
4235rm -f conftest.err conftest.$ac_ext 4124rm -f conftest.err conftest.$ac_ext
4236 4125
4237 # OK, works on sane cases. Now check whether nonexistent headers 4126 # OK, works on sane cases. Now check whether nonexistent headers
4238 # can be detected and how. 4127 # can be detected and how.
4239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4128 cat >conftest.$ac_ext <<_ACEOF
4129/* confdefs.h. */
4130_ACEOF
4131cat confdefs.h >>conftest.$ac_ext
4132cat >>conftest.$ac_ext <<_ACEOF
4240/* end confdefs.h. */ 4133/* end confdefs.h. */
4241#include <ac_nonexistent.h> 4134#include <ac_nonexistent.h>
4242_ACEOF 4135_ACEOF
4243if ac_fn_c_try_cpp "$LINENO"; then : 4136if { (ac_try="$ac_cpp conftest.$ac_ext"
4137case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140esac
4141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4142$as_echo "$ac_try_echo") >&5
4143 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4144 ac_status=$?
4145 grep -v '^ *+' conftest.er1 >conftest.err
4146 rm -f conftest.er1
4147 cat conftest.err >&5
4148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4149 (exit $ac_status); } >/dev/null && {
4150 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4151 test ! -s conftest.err
4152 }; then
4244 # Broken: success on invalid input. 4153 # Broken: success on invalid input.
4245continue 4154continue
4246else 4155else
4156 $as_echo "$as_me: failed program was:" >&5
4157sed 's/^/| /' conftest.$ac_ext >&5
4158
4247 # Passes both tests. 4159 # Passes both tests.
4248ac_preproc_ok=: 4160ac_preproc_ok=:
4249break 4161break
4250fi 4162fi
4163
4251rm -f conftest.err conftest.$ac_ext 4164rm -f conftest.err conftest.$ac_ext
4252 4165
4253done 4166done
4254# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4167# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4255rm -f conftest.err conftest.$ac_ext 4168rm -f conftest.err conftest.$ac_ext
4256if $ac_preproc_ok; then : 4169if $ac_preproc_ok; then
4257 break 4170 break
4258fi 4171fi
4259 4172
@@ -4265,7 +4178,7 @@ fi
4265else 4178else
4266 ac_cv_prog_CPP=$CPP 4179 ac_cv_prog_CPP=$CPP
4267fi 4180fi
4268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4181{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4269$as_echo "$CPP" >&6; } 4182$as_echo "$CPP" >&6; }
4270ac_preproc_ok=false 4183ac_preproc_ok=false
4271for ac_c_preproc_warn_flag in '' yes 4184for ac_c_preproc_warn_flag in '' yes
@@ -4276,7 +4189,11 @@ do
4276 # <limits.h> exists even on freestanding compilers. 4189 # <limits.h> exists even on freestanding compilers.
4277 # On the NeXT, cc -E runs the code through the compiler's parser, 4190 # On the NeXT, cc -E runs the code through the compiler's parser,
4278 # not just through cpp. "Syntax error" is here to catch this case. 4191 # not just through cpp. "Syntax error" is here to catch this case.
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4192 cat >conftest.$ac_ext <<_ACEOF
4193/* confdefs.h. */
4194_ACEOF
4195cat confdefs.h >>conftest.$ac_ext
4196cat >>conftest.$ac_ext <<_ACEOF
4280/* end confdefs.h. */ 4197/* end confdefs.h. */
4281#ifdef __STDC__ 4198#ifdef __STDC__
4282# include <limits.h> 4199# include <limits.h>
@@ -4285,40 +4202,85 @@ do
4285#endif 4202#endif
4286 Syntax error 4203 Syntax error
4287_ACEOF 4204_ACEOF
4288if ac_fn_c_try_cpp "$LINENO"; then : 4205if { (ac_try="$ac_cpp conftest.$ac_ext"
4289 4206case "(($ac_try" in
4207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4208 *) ac_try_echo=$ac_try;;
4209esac
4210eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4211$as_echo "$ac_try_echo") >&5
4212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } >/dev/null && {
4219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4221 }; then
4222 :
4290else 4223else
4224 $as_echo "$as_me: failed program was:" >&5
4225sed 's/^/| /' conftest.$ac_ext >&5
4226
4291 # Broken: fails on valid input. 4227 # Broken: fails on valid input.
4292continue 4228continue
4293fi 4229fi
4230
4294rm -f conftest.err conftest.$ac_ext 4231rm -f conftest.err conftest.$ac_ext
4295 4232
4296 # OK, works on sane cases. Now check whether nonexistent headers 4233 # OK, works on sane cases. Now check whether nonexistent headers
4297 # can be detected and how. 4234 # can be detected and how.
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4235 cat >conftest.$ac_ext <<_ACEOF
4236/* confdefs.h. */
4237_ACEOF
4238cat confdefs.h >>conftest.$ac_ext
4239cat >>conftest.$ac_ext <<_ACEOF
4299/* end confdefs.h. */ 4240/* end confdefs.h. */
4300#include <ac_nonexistent.h> 4241#include <ac_nonexistent.h>
4301_ACEOF 4242_ACEOF
4302if ac_fn_c_try_cpp "$LINENO"; then : 4243if { (ac_try="$ac_cpp conftest.$ac_ext"
4244case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247esac
4248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4249$as_echo "$ac_try_echo") >&5
4250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4251 ac_status=$?
4252 grep -v '^ *+' conftest.er1 >conftest.err
4253 rm -f conftest.er1
4254 cat conftest.err >&5
4255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4256 (exit $ac_status); } >/dev/null && {
4257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4258 test ! -s conftest.err
4259 }; then
4303 # Broken: success on invalid input. 4260 # Broken: success on invalid input.
4304continue 4261continue
4305else 4262else
4263 $as_echo "$as_me: failed program was:" >&5
4264sed 's/^/| /' conftest.$ac_ext >&5
4265
4306 # Passes both tests. 4266 # Passes both tests.
4307ac_preproc_ok=: 4267ac_preproc_ok=:
4308break 4268break
4309fi 4269fi
4270
4310rm -f conftest.err conftest.$ac_ext 4271rm -f conftest.err conftest.$ac_ext
4311 4272
4312done 4273done
4313# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4274# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4314rm -f conftest.err conftest.$ac_ext 4275rm -f conftest.err conftest.$ac_ext
4315if $ac_preproc_ok; then : 4276if $ac_preproc_ok; then
4316 4277 :
4317else 4278else
4318 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4279 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4319$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4280See \`config.log' for more details." >&5
4320as_fn_error "C preprocessor \"$CPP\" fails sanity check 4281$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4321See \`config.log' for more details." "$LINENO" 5; } 4282See \`config.log' for more details." >&2;}
4283 { (exit 1); exit 1; }; }
4322fi 4284fi
4323 4285
4324ac_ext=c 4286ac_ext=c
@@ -4328,9 +4290,9 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
4328ac_compiler_gnu=$ac_cv_c_compiler_gnu 4290ac_compiler_gnu=$ac_cv_c_compiler_gnu
4329 4291
4330 4292
4331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4293{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4332$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4294$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4333if test "${ac_cv_path_GREP+set}" = set; then : 4295if test "${ac_cv_path_GREP+set}" = set; then
4334 $as_echo_n "(cached) " >&6 4296 $as_echo_n "(cached) " >&6
4335else 4297else
4336 if test -z "$GREP"; then 4298 if test -z "$GREP"; then
@@ -4341,7 +4303,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4341do 4303do
4342 IFS=$as_save_IFS 4304 IFS=$as_save_IFS
4343 test -z "$as_dir" && as_dir=. 4305 test -z "$as_dir" && as_dir=.
4344 for ac_prog in grep ggrep; do 4306 for ac_prog in grep ggrep; do
4345 for ac_exec_ext in '' $ac_executable_extensions; do 4307 for ac_exec_ext in '' $ac_executable_extensions; do
4346 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4308 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4347 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4309 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
@@ -4361,7 +4323,7 @@ case `"$ac_path_GREP" --version 2>&1` in
4361 $as_echo 'GREP' >> "conftest.nl" 4323 $as_echo 'GREP' >> "conftest.nl"
4362 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4324 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4363 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4325 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4364 as_fn_arith $ac_count + 1 && ac_count=$as_val 4326 ac_count=`expr $ac_count + 1`
4365 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4327 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4366 # Best one so far, save it but keep looking for a better one 4328 # Best one so far, save it but keep looking for a better one
4367 ac_cv_path_GREP="$ac_path_GREP" 4329 ac_cv_path_GREP="$ac_path_GREP"
@@ -4376,24 +4338,26 @@ esac
4376 $ac_path_GREP_found && break 3 4338 $ac_path_GREP_found && break 3
4377 done 4339 done
4378 done 4340 done
4379 done 4341done
4380IFS=$as_save_IFS 4342IFS=$as_save_IFS
4381 if test -z "$ac_cv_path_GREP"; then 4343 if test -z "$ac_cv_path_GREP"; then
4382 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4344 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4345$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4346 { (exit 1); exit 1; }; }
4383 fi 4347 fi
4384else 4348else
4385 ac_cv_path_GREP=$GREP 4349 ac_cv_path_GREP=$GREP
4386fi 4350fi
4387 4351
4388fi 4352fi
4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4353{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4390$as_echo "$ac_cv_path_GREP" >&6; } 4354$as_echo "$ac_cv_path_GREP" >&6; }
4391 GREP="$ac_cv_path_GREP" 4355 GREP="$ac_cv_path_GREP"
4392 4356
4393 4357
4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4358{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4395$as_echo_n "checking for egrep... " >&6; } 4359$as_echo_n "checking for egrep... " >&6; }
4396if test "${ac_cv_path_EGREP+set}" = set; then : 4360if test "${ac_cv_path_EGREP+set}" = set; then
4397 $as_echo_n "(cached) " >&6 4361 $as_echo_n "(cached) " >&6
4398else 4362else
4399 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4363 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
@@ -4407,7 +4371,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4407do 4371do
4408 IFS=$as_save_IFS 4372 IFS=$as_save_IFS
4409 test -z "$as_dir" && as_dir=. 4373 test -z "$as_dir" && as_dir=.
4410 for ac_prog in egrep; do 4374 for ac_prog in egrep; do
4411 for ac_exec_ext in '' $ac_executable_extensions; do 4375 for ac_exec_ext in '' $ac_executable_extensions; do
4412 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4376 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4413 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4377 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
@@ -4427,7 +4391,7 @@ case `"$ac_path_EGREP" --version 2>&1` in
4427 $as_echo 'EGREP' >> "conftest.nl" 4391 $as_echo 'EGREP' >> "conftest.nl"
4428 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4429 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4430 as_fn_arith $ac_count + 1 && ac_count=$as_val 4394 ac_count=`expr $ac_count + 1`
4431 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4432 # Best one so far, save it but keep looking for a better one 4396 # Best one so far, save it but keep looking for a better one
4433 ac_cv_path_EGREP="$ac_path_EGREP" 4397 ac_cv_path_EGREP="$ac_path_EGREP"
@@ -4442,10 +4406,12 @@ esac
4442 $ac_path_EGREP_found && break 3 4406 $ac_path_EGREP_found && break 3
4443 done 4407 done
4444 done 4408 done
4445 done 4409done
4446IFS=$as_save_IFS 4410IFS=$as_save_IFS
4447 if test -z "$ac_cv_path_EGREP"; then 4411 if test -z "$ac_cv_path_EGREP"; then
4448 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4412 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4413$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4414 { (exit 1); exit 1; }; }
4449 fi 4415 fi
4450else 4416else
4451 ac_cv_path_EGREP=$EGREP 4417 ac_cv_path_EGREP=$EGREP
@@ -4453,17 +4419,21 @@ fi
4453 4419
4454 fi 4420 fi
4455fi 4421fi
4456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4422{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4457$as_echo "$ac_cv_path_EGREP" >&6; } 4423$as_echo "$ac_cv_path_EGREP" >&6; }
4458 EGREP="$ac_cv_path_EGREP" 4424 EGREP="$ac_cv_path_EGREP"
4459 4425
4460 4426
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4427{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4462$as_echo_n "checking for ANSI C header files... " >&6; } 4428$as_echo_n "checking for ANSI C header files... " >&6; }
4463if test "${ac_cv_header_stdc+set}" = set; then : 4429if test "${ac_cv_header_stdc+set}" = set; then
4464 $as_echo_n "(cached) " >&6 4430 $as_echo_n "(cached) " >&6
4465else 4431else
4466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4432 cat >conftest.$ac_ext <<_ACEOF
4433/* confdefs.h. */
4434_ACEOF
4435cat confdefs.h >>conftest.$ac_ext
4436cat >>conftest.$ac_ext <<_ACEOF
4467/* end confdefs.h. */ 4437/* end confdefs.h. */
4468#include <stdlib.h> 4438#include <stdlib.h>
4469#include <stdarg.h> 4439#include <stdarg.h>
@@ -4478,23 +4448,48 @@ main ()
4478 return 0; 4448 return 0;
4479} 4449}
4480_ACEOF 4450_ACEOF
4481if ac_fn_c_try_compile "$LINENO"; then : 4451rm -f conftest.$ac_objext
4452if { (ac_try="$ac_compile"
4453case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456esac
4457eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4458$as_echo "$ac_try_echo") >&5
4459 (eval "$ac_compile") 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } && {
4466 test -z "$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 } && test -s conftest.$ac_objext; then
4482 ac_cv_header_stdc=yes 4469 ac_cv_header_stdc=yes
4483else 4470else
4484 ac_cv_header_stdc=no 4471 $as_echo "$as_me: failed program was:" >&5
4472sed 's/^/| /' conftest.$ac_ext >&5
4473
4474 ac_cv_header_stdc=no
4485fi 4475fi
4476
4486rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4477rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4487 4478
4488if test $ac_cv_header_stdc = yes; then 4479if test $ac_cv_header_stdc = yes; then
4489 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4480 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4481 cat >conftest.$ac_ext <<_ACEOF
4482/* confdefs.h. */
4483_ACEOF
4484cat confdefs.h >>conftest.$ac_ext
4485cat >>conftest.$ac_ext <<_ACEOF
4491/* end confdefs.h. */ 4486/* end confdefs.h. */
4492#include <string.h> 4487#include <string.h>
4493 4488
4494_ACEOF 4489_ACEOF
4495if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4490if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4496 $EGREP "memchr" >/dev/null 2>&1; then : 4491 $EGREP "memchr" >/dev/null 2>&1; then
4497 4492 :
4498else 4493else
4499 ac_cv_header_stdc=no 4494 ac_cv_header_stdc=no
4500fi 4495fi
@@ -4504,14 +4499,18 @@ fi
4504 4499
4505if test $ac_cv_header_stdc = yes; then 4500if test $ac_cv_header_stdc = yes; then
4506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4501 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4502 cat >conftest.$ac_ext <<_ACEOF
4503/* confdefs.h. */
4504_ACEOF
4505cat confdefs.h >>conftest.$ac_ext
4506cat >>conftest.$ac_ext <<_ACEOF
4508/* end confdefs.h. */ 4507/* end confdefs.h. */
4509#include <stdlib.h> 4508#include <stdlib.h>
4510 4509
4511_ACEOF 4510_ACEOF
4512if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4511if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4513 $EGREP "free" >/dev/null 2>&1; then : 4512 $EGREP "free" >/dev/null 2>&1; then
4514 4513 :
4515else 4514else
4516 ac_cv_header_stdc=no 4515 ac_cv_header_stdc=no
4517fi 4516fi
@@ -4521,10 +4520,14 @@ fi
4521 4520
4522if test $ac_cv_header_stdc = yes; then 4521if test $ac_cv_header_stdc = yes; then
4523 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4524 if test "$cross_compiling" = yes; then : 4523 if test "$cross_compiling" = yes; then
4525 : 4524 :
4526else 4525else
4527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4526 cat >conftest.$ac_ext <<_ACEOF
4527/* confdefs.h. */
4528_ACEOF
4529cat confdefs.h >>conftest.$ac_ext
4530cat >>conftest.$ac_ext <<_ACEOF
4528/* end confdefs.h. */ 4531/* end confdefs.h. */
4529#include <ctype.h> 4532#include <ctype.h>
4530#include <stdlib.h> 4533#include <stdlib.h>
@@ -4551,34 +4554,117 @@ main ()
4551 return 0; 4554 return 0;
4552} 4555}
4553_ACEOF 4556_ACEOF
4554if ac_fn_c_try_run "$LINENO"; then : 4557rm -f conftest$ac_exeext
4555 4558if { (ac_try="$ac_link"
4559case "(($ac_try" in
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4562esac
4563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4564$as_echo "$ac_try_echo") >&5
4565 (eval "$ac_link") 2>&5
4566 ac_status=$?
4567 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4569 { (case "(($ac_try" in
4570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4571 *) ac_try_echo=$ac_try;;
4572esac
4573eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4574$as_echo "$ac_try_echo") >&5
4575 (eval "$ac_try") 2>&5
4576 ac_status=$?
4577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4578 (exit $ac_status); }; }; then
4579 :
4556else 4580else
4557 ac_cv_header_stdc=no 4581 $as_echo "$as_me: program exited with status $ac_status" >&5
4582$as_echo "$as_me: failed program was:" >&5
4583sed 's/^/| /' conftest.$ac_ext >&5
4584
4585( exit $ac_status )
4586ac_cv_header_stdc=no
4558fi 4587fi
4559rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4588rm -rf conftest.dSYM
4560 conftest.$ac_objext conftest.beam conftest.$ac_ext 4589rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4561fi 4590fi
4562 4591
4592
4563fi 4593fi
4564fi 4594fi
4565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4595{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4566$as_echo "$ac_cv_header_stdc" >&6; } 4596$as_echo "$ac_cv_header_stdc" >&6; }
4567if test $ac_cv_header_stdc = yes; then 4597if test $ac_cv_header_stdc = yes; then
4568 4598
4569$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4599cat >>confdefs.h <<\_ACEOF
4600#define STDC_HEADERS 1
4601_ACEOF
4570 4602
4571fi 4603fi
4572 4604
4573# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4605# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4606
4607
4608
4609
4610
4611
4612
4613
4614
4574for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4615for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4575 inttypes.h stdint.h unistd.h 4616 inttypes.h stdint.h unistd.h
4576do : 4617do
4577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4618as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4578ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4619{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4579" 4620$as_echo_n "checking for $ac_header... " >&6; }
4580eval as_val=\$$as_ac_Header 4621if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4581 if test "x$as_val" = x""yes; then : 4622 $as_echo_n "(cached) " >&6
4623else
4624 cat >conftest.$ac_ext <<_ACEOF
4625/* confdefs.h. */
4626_ACEOF
4627cat confdefs.h >>conftest.$ac_ext
4628cat >>conftest.$ac_ext <<_ACEOF
4629/* end confdefs.h. */
4630$ac_includes_default
4631
4632#include <$ac_header>
4633_ACEOF
4634rm -f conftest.$ac_objext
4635if { (ac_try="$ac_compile"
4636case "(($ac_try" in
4637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4638 *) ac_try_echo=$ac_try;;
4639esac
4640eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4641$as_echo "$ac_try_echo") >&5
4642 (eval "$ac_compile") 2>conftest.er1
4643 ac_status=$?
4644 grep -v '^ *+' conftest.er1 >conftest.err
4645 rm -f conftest.er1
4646 cat conftest.err >&5
4647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4648 (exit $ac_status); } && {
4649 test -z "$ac_c_werror_flag" ||
4650 test ! -s conftest.err
4651 } && test -s conftest.$ac_objext; then
4652 eval "$as_ac_Header=yes"
4653else
4654 $as_echo "$as_me: failed program was:" >&5
4655sed 's/^/| /' conftest.$ac_ext >&5
4656
4657 eval "$as_ac_Header=no"
4658fi
4659
4660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4661fi
4662ac_res=`eval 'as_val=${'$as_ac_Header'}
4663 $as_echo "$as_val"'`
4664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4665$as_echo "$ac_res" >&6; }
4666if test `eval 'as_val=${'$as_ac_Header'}
4667 $as_echo "$as_val"'` = yes; then
4582 cat >>confdefs.h <<_ACEOF 4668 cat >>confdefs.h <<_ACEOF
4583#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4669#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4584_ACEOF 4670_ACEOF
@@ -4589,8 +4675,134 @@ done
4589 4675
4590 4676
4591 4677
4592 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4678 if test "${ac_cv_header_minix_config_h+set}" = set; then
4593if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4679 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4680$as_echo_n "checking for minix/config.h... " >&6; }
4681if test "${ac_cv_header_minix_config_h+set}" = set; then
4682 $as_echo_n "(cached) " >&6
4683fi
4684{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4685$as_echo "$ac_cv_header_minix_config_h" >&6; }
4686else
4687 # Is the header compilable?
4688{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4689$as_echo_n "checking minix/config.h usability... " >&6; }
4690cat >conftest.$ac_ext <<_ACEOF
4691/* confdefs.h. */
4692_ACEOF
4693cat confdefs.h >>conftest.$ac_ext
4694cat >>conftest.$ac_ext <<_ACEOF
4695/* end confdefs.h. */
4696$ac_includes_default
4697#include <minix/config.h>
4698_ACEOF
4699rm -f conftest.$ac_objext
4700if { (ac_try="$ac_compile"
4701case "(($ac_try" in
4702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4703 *) ac_try_echo=$ac_try;;
4704esac
4705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4706$as_echo "$ac_try_echo") >&5
4707 (eval "$ac_compile") 2>conftest.er1
4708 ac_status=$?
4709 grep -v '^ *+' conftest.er1 >conftest.err
4710 rm -f conftest.er1
4711 cat conftest.err >&5
4712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); } && {
4714 test -z "$ac_c_werror_flag" ||
4715 test ! -s conftest.err
4716 } && test -s conftest.$ac_objext; then
4717 ac_header_compiler=yes
4718else
4719 $as_echo "$as_me: failed program was:" >&5
4720sed 's/^/| /' conftest.$ac_ext >&5
4721
4722 ac_header_compiler=no
4723fi
4724
4725rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4727$as_echo "$ac_header_compiler" >&6; }
4728
4729# Is the header present?
4730{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4731$as_echo_n "checking minix/config.h presence... " >&6; }
4732cat >conftest.$ac_ext <<_ACEOF
4733/* confdefs.h. */
4734_ACEOF
4735cat confdefs.h >>conftest.$ac_ext
4736cat >>conftest.$ac_ext <<_ACEOF
4737/* end confdefs.h. */
4738#include <minix/config.h>
4739_ACEOF
4740if { (ac_try="$ac_cpp conftest.$ac_ext"
4741case "(($ac_try" in
4742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4744esac
4745eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4746$as_echo "$ac_try_echo") >&5
4747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4748 ac_status=$?
4749 grep -v '^ *+' conftest.er1 >conftest.err
4750 rm -f conftest.er1
4751 cat conftest.err >&5
4752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4753 (exit $ac_status); } >/dev/null && {
4754 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4755 test ! -s conftest.err
4756 }; then
4757 ac_header_preproc=yes
4758else
4759 $as_echo "$as_me: failed program was:" >&5
4760sed 's/^/| /' conftest.$ac_ext >&5
4761
4762 ac_header_preproc=no
4763fi
4764
4765rm -f conftest.err conftest.$ac_ext
4766{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4767$as_echo "$ac_header_preproc" >&6; }
4768
4769# So? What about this header?
4770case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4771 yes:no: )
4772 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4773$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4774 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4775$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4776 ac_header_preproc=yes
4777 ;;
4778 no:yes:* )
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4780$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4782$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4783 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4784$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4785 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4786$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4787 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4788$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4789 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4790$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4791
4792 ;;
4793esac
4794{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4795$as_echo_n "checking for minix/config.h... " >&6; }
4796if test "${ac_cv_header_minix_config_h+set}" = set; then
4797 $as_echo_n "(cached) " >&6
4798else
4799 ac_cv_header_minix_config_h=$ac_header_preproc
4800fi
4801{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4802$as_echo "$ac_cv_header_minix_config_h" >&6; }
4803
4804fi
4805if test $ac_cv_header_minix_config_h = yes; then
4594 MINIX=yes 4806 MINIX=yes
4595else 4807else
4596 MINIX= 4808 MINIX=
@@ -4599,23 +4811,34 @@ fi
4599 4811
4600 if test "$MINIX" = yes; then 4812 if test "$MINIX" = yes; then
4601 4813
4602$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4814cat >>confdefs.h <<\_ACEOF
4815#define _POSIX_SOURCE 1
4816_ACEOF
4603 4817
4604 4818
4605$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4819cat >>confdefs.h <<\_ACEOF
4820#define _POSIX_1_SOURCE 2
4821_ACEOF
4606 4822
4607 4823
4608$as_echo "#define _MINIX 1" >>confdefs.h 4824cat >>confdefs.h <<\_ACEOF
4825#define _MINIX 1
4826_ACEOF
4609 4827
4610 fi 4828 fi
4611 4829
4612 4830
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4831
4832 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4614$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4833$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4615if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4834if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4616 $as_echo_n "(cached) " >&6 4835 $as_echo_n "(cached) " >&6
4617else 4836else
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4837 cat >conftest.$ac_ext <<_ACEOF
4838/* confdefs.h. */
4839_ACEOF
4840cat confdefs.h >>conftest.$ac_ext
4841cat >>conftest.$ac_ext <<_ACEOF
4619/* end confdefs.h. */ 4842/* end confdefs.h. */
4620 4843
4621# define __EXTENSIONS__ 1 4844# define __EXTENSIONS__ 1
@@ -4628,34 +4851,69 @@ main ()
4628 return 0; 4851 return 0;
4629} 4852}
4630_ACEOF 4853_ACEOF
4631if ac_fn_c_try_compile "$LINENO"; then : 4854rm -f conftest.$ac_objext
4855if { (ac_try="$ac_compile"
4856case "(($ac_try" in
4857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4858 *) ac_try_echo=$ac_try;;
4859esac
4860eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4861$as_echo "$ac_try_echo") >&5
4862 (eval "$ac_compile") 2>conftest.er1
4863 ac_status=$?
4864 grep -v '^ *+' conftest.er1 >conftest.err
4865 rm -f conftest.er1
4866 cat conftest.err >&5
4867 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4868 (exit $ac_status); } && {
4869 test -z "$ac_c_werror_flag" ||
4870 test ! -s conftest.err
4871 } && test -s conftest.$ac_objext; then
4632 ac_cv_safe_to_define___extensions__=yes 4872 ac_cv_safe_to_define___extensions__=yes
4633else 4873else
4634 ac_cv_safe_to_define___extensions__=no 4874 $as_echo "$as_me: failed program was:" >&5
4875sed 's/^/| /' conftest.$ac_ext >&5
4876
4877 ac_cv_safe_to_define___extensions__=no
4635fi 4878fi
4879
4636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4637fi 4881fi
4638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4882{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4639$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4883$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4640 test $ac_cv_safe_to_define___extensions__ = yes && 4884 test $ac_cv_safe_to_define___extensions__ = yes &&
4641 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4885 cat >>confdefs.h <<\_ACEOF
4886#define __EXTENSIONS__ 1
4887_ACEOF
4642 4888
4643 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4889 cat >>confdefs.h <<\_ACEOF
4890#define _ALL_SOURCE 1
4891_ACEOF
4644 4892
4645 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4893 cat >>confdefs.h <<\_ACEOF
4894#define _GNU_SOURCE 1
4895_ACEOF
4646 4896
4647 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4897 cat >>confdefs.h <<\_ACEOF
4898#define _POSIX_PTHREAD_SEMANTICS 1
4899_ACEOF
4648 4900
4649 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4901 cat >>confdefs.h <<\_ACEOF
4902#define _TANDEM_SOURCE 1
4903_ACEOF
4650 4904
4651 4905
4652 4906
4653### Use -Wno-pointer-sign if the compiler supports it 4907### Use -Wno-pointer-sign if the compiler supports it
4654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5 4908{ $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4655$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; } 4909$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4656SAVE_CFLAGS="$CFLAGS" 4910SAVE_CFLAGS="$CFLAGS"
4657CFLAGS="$CFLAGS -Wno-pointer-sign" 4911CFLAGS="$CFLAGS -Wno-pointer-sign"
4658cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4912cat >conftest.$ac_ext <<_ACEOF
4913/* confdefs.h. */
4914_ACEOF
4915cat confdefs.h >>conftest.$ac_ext
4916cat >>conftest.$ac_ext <<_ACEOF
4659/* end confdefs.h. */ 4917/* end confdefs.h. */
4660 4918
4661int 4919int
@@ -4666,27 +4924,52 @@ main ()
4666 return 0; 4924 return 0;
4667} 4925}
4668_ACEOF 4926_ACEOF
4669if ac_fn_c_try_compile "$LINENO"; then : 4927rm -f conftest.$ac_objext
4928if { (ac_try="$ac_compile"
4929case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932esac
4933eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4934$as_echo "$ac_try_echo") >&5
4935 (eval "$ac_compile") 2>conftest.er1
4936 ac_status=$?
4937 grep -v '^ *+' conftest.er1 >conftest.err
4938 rm -f conftest.er1
4939 cat conftest.err >&5
4940 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4941 (exit $ac_status); } && {
4942 test -z "$ac_c_werror_flag" ||
4943 test ! -s conftest.err
4944 } && test -s conftest.$ac_objext; then
4670 has_option=yes 4945 has_option=yes
4671else 4946else
4672 has_option=no 4947 $as_echo "$as_me: failed program was:" >&5
4948sed 's/^/| /' conftest.$ac_ext >&5
4949
4950 has_option=no
4673fi 4951fi
4952
4674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4953rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4675if test $has_option = yes; then 4954if test $has_option = yes; then
4676 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" 4955 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4677fi 4956fi
4678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 4957{ $as_echo "$as_me:$LINENO: result: $has_option" >&5
4679$as_echo "$has_option" >&6; } 4958$as_echo "$has_option" >&6; }
4680CFLAGS="$SAVE_CFLAGS" 4959CFLAGS="$SAVE_CFLAGS"
4681unset has_option 4960unset has_option
4682unset SAVE_CFLAGS 4961unset SAVE_CFLAGS
4683 4962
4684### Use -Wdeclaration-after-statement if the compiler supports it 4963### Use -Wdeclaration-after-statement if the compiler supports it
4685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5 4964{ $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4686$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } 4965$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4687SAVE_CFLAGS="$CFLAGS" 4966SAVE_CFLAGS="$CFLAGS"
4688CFLAGS="$CFLAGS -Wdeclaration-after-statement" 4967CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4689cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4968cat >conftest.$ac_ext <<_ACEOF
4969/* confdefs.h. */
4970_ACEOF
4971cat confdefs.h >>conftest.$ac_ext
4972cat >>conftest.$ac_ext <<_ACEOF
4690/* end confdefs.h. */ 4973/* end confdefs.h. */
4691 4974
4692int 4975int
@@ -4697,16 +4980,37 @@ main ()
4697 return 0; 4980 return 0;
4698} 4981}
4699_ACEOF 4982_ACEOF
4700if ac_fn_c_try_compile "$LINENO"; then : 4983rm -f conftest.$ac_objext
4984if { (ac_try="$ac_compile"
4985case "(($ac_try" in
4986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4987 *) ac_try_echo=$ac_try;;
4988esac
4989eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4990$as_echo "$ac_try_echo") >&5
4991 (eval "$ac_compile") 2>conftest.er1
4992 ac_status=$?
4993 grep -v '^ *+' conftest.er1 >conftest.err
4994 rm -f conftest.er1
4995 cat conftest.err >&5
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } && {
4998 test -z "$ac_c_werror_flag" ||
4999 test ! -s conftest.err
5000 } && test -s conftest.$ac_objext; then
4701 has_option=yes 5001 has_option=yes
4702else 5002else
4703 has_option=no 5003 $as_echo "$as_me: failed program was:" >&5
5004sed 's/^/| /' conftest.$ac_ext >&5
5005
5006 has_option=no
4704fi 5007fi
5008
4705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4706if test $has_option = yes; then 5010if test $has_option = yes; then
4707 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" 5011 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4708fi 5012fi
4709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 5013{ $as_echo "$as_me:$LINENO: result: $has_option" >&5
4710$as_echo "$has_option" >&6; } 5014$as_echo "$has_option" >&6; }
4711CFLAGS="$SAVE_CFLAGS" 5015CFLAGS="$SAVE_CFLAGS"
4712unset has_option 5016unset has_option
@@ -4714,14 +5018,14 @@ unset SAVE_CFLAGS
4714 5018
4715#### Some other nice autoconf tests. 5019#### Some other nice autoconf tests.
4716 5020
4717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5021{ $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4718$as_echo_n "checking whether ln -s works... " >&6; } 5022$as_echo_n "checking whether ln -s works... " >&6; }
4719LN_S=$as_ln_s 5023LN_S=$as_ln_s
4720if test "$LN_S" = "ln -s"; then 5024if test "$LN_S" = "ln -s"; then
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5025 { $as_echo "$as_me:$LINENO: result: yes" >&5
4722$as_echo "yes" >&6; } 5026$as_echo "yes" >&6; }
4723else 5027else
4724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5028 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4725$as_echo "no, using $LN_S" >&6; } 5029$as_echo "no, using $LN_S" >&6; }
4726fi 5030fi
4727 5031
@@ -4730,14 +5034,14 @@ ac_cpp='$CPP $CPPFLAGS'
4730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4732ac_compiler_gnu=$ac_cv_c_compiler_gnu 5036ac_compiler_gnu=$ac_cv_c_compiler_gnu
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5037{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4734$as_echo_n "checking how to run the C preprocessor... " >&6; } 5038$as_echo_n "checking how to run the C preprocessor... " >&6; }
4735# On Suns, sometimes $CPP names a directory. 5039# On Suns, sometimes $CPP names a directory.
4736if test -n "$CPP" && test -d "$CPP"; then 5040if test -n "$CPP" && test -d "$CPP"; then
4737 CPP= 5041 CPP=
4738fi 5042fi
4739if test -z "$CPP"; then 5043if test -z "$CPP"; then
4740 if test "${ac_cv_prog_CPP+set}" = set; then : 5044 if test "${ac_cv_prog_CPP+set}" = set; then
4741 $as_echo_n "(cached) " >&6 5045 $as_echo_n "(cached) " >&6
4742else 5046else
4743 # Double quotes because CPP needs to be expanded 5047 # Double quotes because CPP needs to be expanded
@@ -4752,7 +5056,11 @@ do
4752 # <limits.h> exists even on freestanding compilers. 5056 # <limits.h> exists even on freestanding compilers.
4753 # On the NeXT, cc -E runs the code through the compiler's parser, 5057 # On the NeXT, cc -E runs the code through the compiler's parser,
4754 # not just through cpp. "Syntax error" is here to catch this case. 5058 # not just through cpp. "Syntax error" is here to catch this case.
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5059 cat >conftest.$ac_ext <<_ACEOF
5060/* confdefs.h. */
5061_ACEOF
5062cat confdefs.h >>conftest.$ac_ext
5063cat >>conftest.$ac_ext <<_ACEOF
4756/* end confdefs.h. */ 5064/* end confdefs.h. */
4757#ifdef __STDC__ 5065#ifdef __STDC__
4758# include <limits.h> 5066# include <limits.h>
@@ -4761,34 +5069,78 @@ do
4761#endif 5069#endif
4762 Syntax error 5070 Syntax error
4763_ACEOF 5071_ACEOF
4764if ac_fn_c_try_cpp "$LINENO"; then : 5072if { (ac_try="$ac_cpp conftest.$ac_ext"
4765 5073case "(($ac_try" in
5074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5075 *) ac_try_echo=$ac_try;;
5076esac
5077eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5078$as_echo "$ac_try_echo") >&5
5079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5080 ac_status=$?
5081 grep -v '^ *+' conftest.er1 >conftest.err
5082 rm -f conftest.er1
5083 cat conftest.err >&5
5084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5085 (exit $ac_status); } >/dev/null && {
5086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5087 test ! -s conftest.err
5088 }; then
5089 :
4766else 5090else
5091 $as_echo "$as_me: failed program was:" >&5
5092sed 's/^/| /' conftest.$ac_ext >&5
5093
4767 # Broken: fails on valid input. 5094 # Broken: fails on valid input.
4768continue 5095continue
4769fi 5096fi
5097
4770rm -f conftest.err conftest.$ac_ext 5098rm -f conftest.err conftest.$ac_ext
4771 5099
4772 # OK, works on sane cases. Now check whether nonexistent headers 5100 # OK, works on sane cases. Now check whether nonexistent headers
4773 # can be detected and how. 5101 # can be detected and how.
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5102 cat >conftest.$ac_ext <<_ACEOF
5103/* confdefs.h. */
5104_ACEOF
5105cat confdefs.h >>conftest.$ac_ext
5106cat >>conftest.$ac_ext <<_ACEOF
4775/* end confdefs.h. */ 5107/* end confdefs.h. */
4776#include <ac_nonexistent.h> 5108#include <ac_nonexistent.h>
4777_ACEOF 5109_ACEOF
4778if ac_fn_c_try_cpp "$LINENO"; then : 5110if { (ac_try="$ac_cpp conftest.$ac_ext"
5111case "(($ac_try" in
5112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5113 *) ac_try_echo=$ac_try;;
5114esac
5115eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5116$as_echo "$ac_try_echo") >&5
5117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5118 ac_status=$?
5119 grep -v '^ *+' conftest.er1 >conftest.err
5120 rm -f conftest.er1
5121 cat conftest.err >&5
5122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5123 (exit $ac_status); } >/dev/null && {
5124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5125 test ! -s conftest.err
5126 }; then
4779 # Broken: success on invalid input. 5127 # Broken: success on invalid input.
4780continue 5128continue
4781else 5129else
5130 $as_echo "$as_me: failed program was:" >&5
5131sed 's/^/| /' conftest.$ac_ext >&5
5132
4782 # Passes both tests. 5133 # Passes both tests.
4783ac_preproc_ok=: 5134ac_preproc_ok=:
4784break 5135break
4785fi 5136fi
5137
4786rm -f conftest.err conftest.$ac_ext 5138rm -f conftest.err conftest.$ac_ext
4787 5139
4788done 5140done
4789# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5141# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4790rm -f conftest.err conftest.$ac_ext 5142rm -f conftest.err conftest.$ac_ext
4791if $ac_preproc_ok; then : 5143if $ac_preproc_ok; then
4792 break 5144 break
4793fi 5145fi
4794 5146
@@ -4800,7 +5152,7 @@ fi
4800else 5152else
4801 ac_cv_prog_CPP=$CPP 5153 ac_cv_prog_CPP=$CPP
4802fi 5154fi
4803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5155{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4804$as_echo "$CPP" >&6; } 5156$as_echo "$CPP" >&6; }
4805ac_preproc_ok=false 5157ac_preproc_ok=false
4806for ac_c_preproc_warn_flag in '' yes 5158for ac_c_preproc_warn_flag in '' yes
@@ -4811,7 +5163,11 @@ do
4811 # <limits.h> exists even on freestanding compilers. 5163 # <limits.h> exists even on freestanding compilers.
4812 # On the NeXT, cc -E runs the code through the compiler's parser, 5164 # On the NeXT, cc -E runs the code through the compiler's parser,
4813 # not just through cpp. "Syntax error" is here to catch this case. 5165 # not just through cpp. "Syntax error" is here to catch this case.
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5166 cat >conftest.$ac_ext <<_ACEOF
5167/* confdefs.h. */
5168_ACEOF
5169cat confdefs.h >>conftest.$ac_ext
5170cat >>conftest.$ac_ext <<_ACEOF
4815/* end confdefs.h. */ 5171/* end confdefs.h. */
4816#ifdef __STDC__ 5172#ifdef __STDC__
4817# include <limits.h> 5173# include <limits.h>
@@ -4820,40 +5176,85 @@ do
4820#endif 5176#endif
4821 Syntax error 5177 Syntax error
4822_ACEOF 5178_ACEOF
4823if ac_fn_c_try_cpp "$LINENO"; then : 5179if { (ac_try="$ac_cpp conftest.$ac_ext"
4824 5180case "(($ac_try" in
5181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5182 *) ac_try_echo=$ac_try;;
5183esac
5184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5185$as_echo "$ac_try_echo") >&5
5186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } >/dev/null && {
5193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5195 }; then
5196 :
4825else 5197else
5198 $as_echo "$as_me: failed program was:" >&5
5199sed 's/^/| /' conftest.$ac_ext >&5
5200
4826 # Broken: fails on valid input. 5201 # Broken: fails on valid input.
4827continue 5202continue
4828fi 5203fi
5204
4829rm -f conftest.err conftest.$ac_ext 5205rm -f conftest.err conftest.$ac_ext
4830 5206
4831 # OK, works on sane cases. Now check whether nonexistent headers 5207 # OK, works on sane cases. Now check whether nonexistent headers
4832 # can be detected and how. 5208 # can be detected and how.
4833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5209 cat >conftest.$ac_ext <<_ACEOF
5210/* confdefs.h. */
5211_ACEOF
5212cat confdefs.h >>conftest.$ac_ext
5213cat >>conftest.$ac_ext <<_ACEOF
4834/* end confdefs.h. */ 5214/* end confdefs.h. */
4835#include <ac_nonexistent.h> 5215#include <ac_nonexistent.h>
4836_ACEOF 5216_ACEOF
4837if ac_fn_c_try_cpp "$LINENO"; then : 5217if { (ac_try="$ac_cpp conftest.$ac_ext"
5218case "(($ac_try" in
5219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5220 *) ac_try_echo=$ac_try;;
5221esac
5222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5223$as_echo "$ac_try_echo") >&5
5224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5225 ac_status=$?
5226 grep -v '^ *+' conftest.er1 >conftest.err
5227 rm -f conftest.er1
5228 cat conftest.err >&5
5229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5230 (exit $ac_status); } >/dev/null && {
5231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5232 test ! -s conftest.err
5233 }; then
4838 # Broken: success on invalid input. 5234 # Broken: success on invalid input.
4839continue 5235continue
4840else 5236else
5237 $as_echo "$as_me: failed program was:" >&5
5238sed 's/^/| /' conftest.$ac_ext >&5
5239
4841 # Passes both tests. 5240 # Passes both tests.
4842ac_preproc_ok=: 5241ac_preproc_ok=:
4843break 5242break
4844fi 5243fi
5244
4845rm -f conftest.err conftest.$ac_ext 5245rm -f conftest.err conftest.$ac_ext
4846 5246
4847done 5247done
4848# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5248# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4849rm -f conftest.err conftest.$ac_ext 5249rm -f conftest.err conftest.$ac_ext
4850if $ac_preproc_ok; then : 5250if $ac_preproc_ok; then
4851 5251 :
4852else 5252else
4853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5253 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4854$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5254See \`config.log' for more details." >&5
4855as_fn_error "C preprocessor \"$CPP\" fails sanity check 5255$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4856See \`config.log' for more details." "$LINENO" 5; } 5256See \`config.log' for more details." >&2;}
5257 { (exit 1); exit 1; }; }
4857fi 5258fi
4858 5259
4859ac_ext=c 5260ac_ext=c
@@ -4876,10 +5277,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
4876# OS/2's system install, which has a completely different semantic 5277# OS/2's system install, which has a completely different semantic
4877# ./install, which can be erroneously created by make from ./install.sh. 5278# ./install, which can be erroneously created by make from ./install.sh.
4878# Reject install programs that cannot install multiple files. 5279# Reject install programs that cannot install multiple files.
4879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5280{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4880$as_echo_n "checking for a BSD-compatible install... " >&6; } 5281$as_echo_n "checking for a BSD-compatible install... " >&6; }
4881if test -z "$INSTALL"; then 5282if test -z "$INSTALL"; then
4882if test "${ac_cv_path_install+set}" = set; then : 5283if test "${ac_cv_path_install+set}" = set; then
4883 $as_echo_n "(cached) " >&6 5284 $as_echo_n "(cached) " >&6
4884else 5285else
4885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@@ -4887,11 +5288,11 @@ for as_dir in $PATH
4887do 5288do
4888 IFS=$as_save_IFS 5289 IFS=$as_save_IFS
4889 test -z "$as_dir" && as_dir=. 5290 test -z "$as_dir" && as_dir=.
4890 # Account for people who put trailing slashes in PATH elements. 5291 # Account for people who put trailing slashes in PATH elements.
4891case $as_dir/ in #(( 5292case $as_dir/ in
4892 ./ | .// | /[cC]/* | \ 5293 ./ | .// | /cC/* | \
4893 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5294 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4894 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5295 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4895 /usr/ucb/* ) ;; 5296 /usr/ucb/* ) ;;
4896 *) 5297 *)
4897 # OSF1 and SCO ODT 3.0 have their own names for install. 5298 # OSF1 and SCO ODT 3.0 have their own names for install.
@@ -4928,7 +5329,7 @@ case $as_dir/ in #((
4928 ;; 5329 ;;
4929esac 5330esac
4930 5331
4931 done 5332done
4932IFS=$as_save_IFS 5333IFS=$as_save_IFS
4933 5334
4934rm -rf conftest.one conftest.two conftest.dir 5335rm -rf conftest.one conftest.two conftest.dir
@@ -4944,7 +5345,7 @@ fi
4944 INSTALL=$ac_install_sh 5345 INSTALL=$ac_install_sh
4945 fi 5346 fi
4946fi 5347fi
4947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5348{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
4948$as_echo "$INSTALL" >&6; } 5349$as_echo "$INSTALL" >&6; }
4949 5350
4950# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5351# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
@@ -4959,9 +5360,9 @@ if test "x$RANLIB" = x; then
4959 if test -n "$ac_tool_prefix"; then 5360 if test -n "$ac_tool_prefix"; then
4960 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5361 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4961set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5362set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5363{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4963$as_echo_n "checking for $ac_word... " >&6; } 5364$as_echo_n "checking for $ac_word... " >&6; }
4964if test "${ac_cv_prog_RANLIB+set}" = set; then : 5365if test "${ac_cv_prog_RANLIB+set}" = set; then
4965 $as_echo_n "(cached) " >&6 5366 $as_echo_n "(cached) " >&6
4966else 5367else
4967 if test -n "$RANLIB"; then 5368 if test -n "$RANLIB"; then
@@ -4972,24 +5373,24 @@ for as_dir in $PATH
4972do 5373do
4973 IFS=$as_save_IFS 5374 IFS=$as_save_IFS
4974 test -z "$as_dir" && as_dir=. 5375 test -z "$as_dir" && as_dir=.
4975 for ac_exec_ext in '' $ac_executable_extensions; do 5376 for ac_exec_ext in '' $ac_executable_extensions; do
4976 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5377 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4977 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5378 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5379 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4979 break 2 5380 break 2
4980 fi 5381 fi
4981done 5382done
4982 done 5383done
4983IFS=$as_save_IFS 5384IFS=$as_save_IFS
4984 5385
4985fi 5386fi
4986fi 5387fi
4987RANLIB=$ac_cv_prog_RANLIB 5388RANLIB=$ac_cv_prog_RANLIB
4988if test -n "$RANLIB"; then 5389if test -n "$RANLIB"; then
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5390 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4990$as_echo "$RANLIB" >&6; } 5391$as_echo "$RANLIB" >&6; }
4991else 5392else
4992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5393 { $as_echo "$as_me:$LINENO: result: no" >&5
4993$as_echo "no" >&6; } 5394$as_echo "no" >&6; }
4994fi 5395fi
4995 5396
@@ -4999,9 +5400,9 @@ if test -z "$ac_cv_prog_RANLIB"; then
4999 ac_ct_RANLIB=$RANLIB 5400 ac_ct_RANLIB=$RANLIB
5000 # Extract the first word of "ranlib", so it can be a program name with args. 5401 # Extract the first word of "ranlib", so it can be a program name with args.
5001set dummy ranlib; ac_word=$2 5402set dummy ranlib; ac_word=$2
5002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5403{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5003$as_echo_n "checking for $ac_word... " >&6; } 5404$as_echo_n "checking for $ac_word... " >&6; }
5004if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5405if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5005 $as_echo_n "(cached) " >&6 5406 $as_echo_n "(cached) " >&6
5006else 5407else
5007 if test -n "$ac_ct_RANLIB"; then 5408 if test -n "$ac_ct_RANLIB"; then
@@ -5012,24 +5413,24 @@ for as_dir in $PATH
5012do 5413do
5013 IFS=$as_save_IFS 5414 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=. 5415 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do 5416 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_ac_ct_RANLIB="ranlib" 5418 ac_cv_prog_ac_ct_RANLIB="ranlib"
5018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5419 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 break 2 5420 break 2
5020 fi 5421 fi
5021done 5422done
5022 done 5423done
5023IFS=$as_save_IFS 5424IFS=$as_save_IFS
5024 5425
5025fi 5426fi
5026fi 5427fi
5027ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5428ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5028if test -n "$ac_ct_RANLIB"; then 5429if test -n "$ac_ct_RANLIB"; then
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5430 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5030$as_echo "$ac_ct_RANLIB" >&6; } 5431$as_echo "$ac_ct_RANLIB" >&6; }
5031else 5432else
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5433 { $as_echo "$as_me:$LINENO: result: no" >&5
5033$as_echo "no" >&6; } 5434$as_echo "no" >&6; }
5034fi 5435fi
5035 5436
@@ -5038,8 +5439,12 @@ fi
5038 else 5439 else
5039 case $cross_compiling:$ac_tool_warned in 5440 case $cross_compiling:$ac_tool_warned in
5040yes:) 5441yes:)
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5442{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5443whose name does not start with the host triplet. If you think this
5444configuration is useful to you, please write to autoconf@gnu.org." >&5
5445$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5446whose name does not start with the host triplet. If you think this
5447configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5043ac_tool_warned=yes ;; 5448ac_tool_warned=yes ;;
5044esac 5449esac
5045 RANLIB=$ac_ct_RANLIB 5450 RANLIB=$ac_ct_RANLIB
@@ -5051,9 +5456,9 @@ fi
5051fi 5456fi
5052# Extract the first word of "install-info", so it can be a program name with args. 5457# Extract the first word of "install-info", so it can be a program name with args.
5053set dummy install-info; ac_word=$2 5458set dummy install-info; ac_word=$2
5054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5459{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5055$as_echo_n "checking for $ac_word... " >&6; } 5460$as_echo_n "checking for $ac_word... " >&6; }
5056if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5461if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5057 $as_echo_n "(cached) " >&6 5462 $as_echo_n "(cached) " >&6
5058else 5463else
5059 case $INSTALL_INFO in 5464 case $INSTALL_INFO in
@@ -5066,14 +5471,14 @@ for as_dir in $PATH
5066do 5471do
5067 IFS=$as_save_IFS 5472 IFS=$as_save_IFS
5068 test -z "$as_dir" && as_dir=. 5473 test -z "$as_dir" && as_dir=.
5069 for ac_exec_ext in '' $ac_executable_extensions; do 5474 for ac_exec_ext in '' $ac_executable_extensions; do
5070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5071 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5476 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5477 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5073 break 2 5478 break 2
5074 fi 5479 fi
5075done 5480done
5076 done 5481done
5077IFS=$as_save_IFS 5482IFS=$as_save_IFS
5078 5483
5079 ;; 5484 ;;
@@ -5081,19 +5486,19 @@ esac
5081fi 5486fi
5082INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5487INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5083if test -n "$INSTALL_INFO"; then 5488if test -n "$INSTALL_INFO"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5489 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5085$as_echo "$INSTALL_INFO" >&6; } 5490$as_echo "$INSTALL_INFO" >&6; }
5086else 5491else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5492 { $as_echo "$as_me:$LINENO: result: no" >&5
5088$as_echo "no" >&6; } 5493$as_echo "no" >&6; }
5089fi 5494fi
5090 5495
5091 5496
5092# Extract the first word of "install-info", so it can be a program name with args. 5497# Extract the first word of "install-info", so it can be a program name with args.
5093set dummy install-info; ac_word=$2 5498set dummy install-info; ac_word=$2
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5499{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5095$as_echo_n "checking for $ac_word... " >&6; } 5500$as_echo_n "checking for $ac_word... " >&6; }
5096if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5501if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5097 $as_echo_n "(cached) " >&6 5502 $as_echo_n "(cached) " >&6
5098else 5503else
5099 case $INSTALL_INFO in 5504 case $INSTALL_INFO in
@@ -5106,14 +5511,14 @@ for as_dir in /usr/sbin
5106do 5511do
5107 IFS=$as_save_IFS 5512 IFS=$as_save_IFS
5108 test -z "$as_dir" && as_dir=. 5513 test -z "$as_dir" && as_dir=.
5109 for ac_exec_ext in '' $ac_executable_extensions; do 5514 for ac_exec_ext in '' $ac_executable_extensions; do
5110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5111 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5516 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5517 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5113 break 2 5518 break 2
5114 fi 5519 fi
5115done 5520done
5116 done 5521done
5117IFS=$as_save_IFS 5522IFS=$as_save_IFS
5118 5523
5119 ;; 5524 ;;
@@ -5121,19 +5526,19 @@ esac
5121fi 5526fi
5122INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5527INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5123if test -n "$INSTALL_INFO"; then 5528if test -n "$INSTALL_INFO"; then
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5529 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5125$as_echo "$INSTALL_INFO" >&6; } 5530$as_echo "$INSTALL_INFO" >&6; }
5126else 5531else
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5532 { $as_echo "$as_me:$LINENO: result: no" >&5
5128$as_echo "no" >&6; } 5533$as_echo "no" >&6; }
5129fi 5534fi
5130 5535
5131 5536
5132# Extract the first word of "install-info", so it can be a program name with args. 5537# Extract the first word of "install-info", so it can be a program name with args.
5133set dummy install-info; ac_word=$2 5538set dummy install-info; ac_word=$2
5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5539{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5135$as_echo_n "checking for $ac_word... " >&6; } 5540$as_echo_n "checking for $ac_word... " >&6; }
5136if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5541if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5137 $as_echo_n "(cached) " >&6 5542 $as_echo_n "(cached) " >&6
5138else 5543else
5139 case $INSTALL_INFO in 5544 case $INSTALL_INFO in
@@ -5146,14 +5551,14 @@ for as_dir in /sbin
5146do 5551do
5147 IFS=$as_save_IFS 5552 IFS=$as_save_IFS
5148 test -z "$as_dir" && as_dir=. 5553 test -z "$as_dir" && as_dir=.
5149 for ac_exec_ext in '' $ac_executable_extensions; do 5554 for ac_exec_ext in '' $ac_executable_extensions; do
5150 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5151 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5556 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5153 break 2 5558 break 2
5154 fi 5559 fi
5155done 5560done
5156 done 5561done
5157IFS=$as_save_IFS 5562IFS=$as_save_IFS
5158 5563
5159 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" 5564 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
@@ -5162,19 +5567,19 @@ esac
5162fi 5567fi
5163INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5568INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5164if test -n "$INSTALL_INFO"; then 5569if test -n "$INSTALL_INFO"; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5570 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5166$as_echo "$INSTALL_INFO" >&6; } 5571$as_echo "$INSTALL_INFO" >&6; }
5167else 5572else
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5573 { $as_echo "$as_me:$LINENO: result: no" >&5
5169$as_echo "no" >&6; } 5574$as_echo "no" >&6; }
5170fi 5575fi
5171 5576
5172 5577
5173# Extract the first word of "gzip", so it can be a program name with args. 5578# Extract the first word of "gzip", so it can be a program name with args.
5174set dummy gzip; ac_word=$2 5579set dummy gzip; ac_word=$2
5175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5580{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5176$as_echo_n "checking for $ac_word... " >&6; } 5581$as_echo_n "checking for $ac_word... " >&6; }
5177if test "${ac_cv_path_GZIP_PROG+set}" = set; then : 5582if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5178 $as_echo_n "(cached) " >&6 5583 $as_echo_n "(cached) " >&6
5179else 5584else
5180 case $GZIP_PROG in 5585 case $GZIP_PROG in
@@ -5187,14 +5592,14 @@ for as_dir in $PATH
5187do 5592do
5188 IFS=$as_save_IFS 5593 IFS=$as_save_IFS
5189 test -z "$as_dir" && as_dir=. 5594 test -z "$as_dir" && as_dir=.
5190 for ac_exec_ext in '' $ac_executable_extensions; do 5595 for ac_exec_ext in '' $ac_executable_extensions; do
5191 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5192 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" 5597 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5598 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5194 break 2 5599 break 2
5195 fi 5600 fi
5196done 5601done
5197 done 5602done
5198IFS=$as_save_IFS 5603IFS=$as_save_IFS
5199 5604
5200 ;; 5605 ;;
@@ -5202,10 +5607,10 @@ esac
5202fi 5607fi
5203GZIP_PROG=$ac_cv_path_GZIP_PROG 5608GZIP_PROG=$ac_cv_path_GZIP_PROG
5204if test -n "$GZIP_PROG"; then 5609if test -n "$GZIP_PROG"; then
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5 5610 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5206$as_echo "$GZIP_PROG" >&6; } 5611$as_echo "$GZIP_PROG" >&6; }
5207else 5612else
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5613 { $as_echo "$as_me:$LINENO: result: no" >&5
5209$as_echo "no" >&6; } 5614$as_echo "no" >&6; }
5210fi 5615fi
5211 5616
@@ -5215,9 +5620,9 @@ fi
5215## Need makeinfo >= 4.6 (?) to build the manuals. 5620## Need makeinfo >= 4.6 (?) to build the manuals.
5216# Extract the first word of "makeinfo", so it can be a program name with args. 5621# Extract the first word of "makeinfo", so it can be a program name with args.
5217set dummy makeinfo; ac_word=$2 5622set dummy makeinfo; ac_word=$2
5218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5623{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5219$as_echo_n "checking for $ac_word... " >&6; } 5624$as_echo_n "checking for $ac_word... " >&6; }
5220if test "${ac_cv_path_MAKEINFO+set}" = set; then : 5625if test "${ac_cv_path_MAKEINFO+set}" = set; then
5221 $as_echo_n "(cached) " >&6 5626 $as_echo_n "(cached) " >&6
5222else 5627else
5223 case $MAKEINFO in 5628 case $MAKEINFO in
@@ -5230,14 +5635,14 @@ for as_dir in $PATH
5230do 5635do
5231 IFS=$as_save_IFS 5636 IFS=$as_save_IFS
5232 test -z "$as_dir" && as_dir=. 5637 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do 5638 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5639 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5235 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" 5640 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5641 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5237 break 2 5642 break 2
5238 fi 5643 fi
5239done 5644done
5240 done 5645done
5241IFS=$as_save_IFS 5646IFS=$as_save_IFS
5242 5647
5243 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" 5648 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
@@ -5246,10 +5651,10 @@ esac
5246fi 5651fi
5247MAKEINFO=$ac_cv_path_MAKEINFO 5652MAKEINFO=$ac_cv_path_MAKEINFO
5248if test -n "$MAKEINFO"; then 5653if test -n "$MAKEINFO"; then
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 5654 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5250$as_echo "$MAKEINFO" >&6; } 5655$as_echo "$MAKEINFO" >&6; }
5251else 5656else
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5657 { $as_echo "$as_me:$LINENO: result: no" >&5
5253$as_echo "no" >&6; } 5658$as_echo "no" >&6; }
5254fi 5659fi
5255 5660
@@ -5263,19 +5668,24 @@ fi
5263## pre-built, and not deleted by the normal clean rules. makeinfo is 5668## pre-built, and not deleted by the normal clean rules. makeinfo is
5264## therefore in the category of "special tools" not normally required, which 5669## therefore in the category of "special tools" not normally required, which
5265## configure does not have to check for (eg autoconf itself). 5670## configure does not have to check for (eg autoconf itself).
5266## In a Bazaar checkout on the other hand, the manuals are not included. 5671## In a CVS checkout on the other hand, the manuals are not included.
5267## So makeinfo is a requirement to build from Bazaar, and configure 5672## So makeinfo is a requirement to build from CVS, and configure
5268## should test for it as it does for any other build requirement. 5673## should test for it as it does for any other build requirement.
5269## We use the presence of $srcdir/info/emacs to distinguish a release, 5674## We use the presence of $srcdir/info/emacs to distinguish a release,
5270## with pre-built manuals, from a Bazaar checkout. 5675## with pre-built manuals, from a CVS checkout.
5271if test "$MAKEINFO" = "no"; then 5676if test "$MAKEINFO" = "no"; then
5272 if test "x${with_makeinfo}" = "xno"; then 5677 if test "x${with_makeinfo}" = "xno"; then
5273 MAKEINFO=off 5678 MAKEINFO=off
5274 elif ! test -e $srcdir/info/emacs; then 5679 elif ! test -e $srcdir/info/emacs; then
5275 as_fn_error "You do not seem to have makeinfo >= 4.6, and your 5680 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5681source tree does not seem to have pre-built manuals in the \`info' directory.
5682Either install a suitable version of makeinfo, or re-run configure
5683with the \`--without-makeinfo' option to build without the manuals. " >&5
5684$as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5276source tree does not seem to have pre-built manuals in the \`info' directory. 5685source tree does not seem to have pre-built manuals in the \`info' directory.
5277Either install a suitable version of makeinfo, or re-run configure 5686Either install a suitable version of makeinfo, or re-run configure
5278with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 5687with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5688 { (exit 1); exit 1; }; }
5279 fi 5689 fi
5280fi 5690fi
5281 5691
@@ -5298,26 +5708,50 @@ else
5298 LDFLAGS="$LDFLAGS -znocombreloc" 5708 LDFLAGS="$LDFLAGS -znocombreloc"
5299fi 5709fi
5300 5710
5301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5 5711{ $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5302$as_echo_n "checking for -znocombreloc... " >&6; } 5712$as_echo_n "checking for -znocombreloc... " >&6; }
5303cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5713cat >conftest.$ac_ext <<_ACEOF
5304/* end confdefs.h. */
5305main(){return 0;} 5714main(){return 0;}
5306_ACEOF 5715_ACEOF
5307if ac_fn_c_try_link "$LINENO"; then : 5716rm -f conftest.$ac_objext conftest$ac_exeext
5308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5717if { (ac_try="$ac_link"
5718case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721esac
5722eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5723$as_echo "$ac_try_echo") >&5
5724 (eval "$ac_link") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest$ac_exeext && {
5734 test "$cross_compiling" = yes ||
5735 $as_test_x conftest$ac_exeext
5736 }; then
5737 { $as_echo "$as_me:$LINENO: result: yes" >&5
5309$as_echo "yes" >&6; } 5738$as_echo "yes" >&6; }
5310else 5739else
5311 LDFLAGS=$late_LDFLAGS 5740 $as_echo "$as_me: failed program was:" >&5
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5741sed 's/^/| /' conftest.$ac_ext >&5
5742
5743 LDFLAGS=$late_LDFLAGS
5744 { $as_echo "$as_me:$LINENO: result: no" >&5
5313$as_echo "no" >&6; } 5745$as_echo "no" >&6; }
5314fi 5746fi
5315rm -f core conftest.err conftest.$ac_objext \ 5747
5316 conftest$ac_exeext conftest.$ac_ext 5748rm -rf conftest.dSYM
5749rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5750 conftest$ac_exeext conftest.$ac_ext
5317 5751
5318#### Extract some information from the operating system and machine files. 5752#### Extract some information from the operating system and machine files.
5319 5753
5320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out 5754{ $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5321 - which libraries the lib-src programs will want, and 5755 - which libraries the lib-src programs will want, and
5322 - whether the GNU malloc routines are usable..." >&5 5756 - whether the GNU malloc routines are usable..." >&5
5323$as_echo "$as_me: checking the machine- and system-dependent files to find out 5757$as_echo "$as_me: checking the machine- and system-dependent files to find out
@@ -5465,15 +5899,15 @@ fi
5465 5899
5466 5900
5467# Check whether --enable-largefile was given. 5901# Check whether --enable-largefile was given.
5468if test "${enable_largefile+set}" = set; then : 5902if test "${enable_largefile+set}" = set; then
5469 enableval=$enable_largefile; 5903 enableval=$enable_largefile;
5470fi 5904fi
5471 5905
5472if test "$enable_largefile" != no; then 5906if test "$enable_largefile" != no; then
5473 5907
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 5908 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5475$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5909$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5476if test "${ac_cv_sys_largefile_CC+set}" = set; then : 5910if test "${ac_cv_sys_largefile_CC+set}" = set; then
5477 $as_echo_n "(cached) " >&6 5911 $as_echo_n "(cached) " >&6
5478else 5912else
5479 ac_cv_sys_largefile_CC=no 5913 ac_cv_sys_largefile_CC=no
@@ -5482,7 +5916,11 @@ else
5482 while :; do 5916 while :; do
5483 # IRIX 6.2 and later do not support large files by default, 5917 # IRIX 6.2 and later do not support large files by default,
5484 # so use the C compiler's -n32 option if that helps. 5918 # so use the C compiler's -n32 option if that helps.
5485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5919 cat >conftest.$ac_ext <<_ACEOF
5920/* confdefs.h. */
5921_ACEOF
5922cat confdefs.h >>conftest.$ac_ext
5923cat >>conftest.$ac_ext <<_ACEOF
5486/* end confdefs.h. */ 5924/* end confdefs.h. */
5487#include <sys/types.h> 5925#include <sys/types.h>
5488 /* Check that off_t can represent 2**63 - 1 correctly. 5926 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5501,14 +5939,60 @@ main ()
5501 return 0; 5939 return 0;
5502} 5940}
5503_ACEOF 5941_ACEOF
5504 if ac_fn_c_try_compile "$LINENO"; then : 5942 rm -f conftest.$ac_objext
5943if { (ac_try="$ac_compile"
5944case "(($ac_try" in
5945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5946 *) ac_try_echo=$ac_try;;
5947esac
5948eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5949$as_echo "$ac_try_echo") >&5
5950 (eval "$ac_compile") 2>conftest.er1
5951 ac_status=$?
5952 grep -v '^ *+' conftest.er1 >conftest.err
5953 rm -f conftest.er1
5954 cat conftest.err >&5
5955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5956 (exit $ac_status); } && {
5957 test -z "$ac_c_werror_flag" ||
5958 test ! -s conftest.err
5959 } && test -s conftest.$ac_objext; then
5505 break 5960 break
5961else
5962 $as_echo "$as_me: failed program was:" >&5
5963sed 's/^/| /' conftest.$ac_ext >&5
5964
5965
5506fi 5966fi
5967
5507rm -f core conftest.err conftest.$ac_objext 5968rm -f core conftest.err conftest.$ac_objext
5508 CC="$CC -n32" 5969 CC="$CC -n32"
5509 if ac_fn_c_try_compile "$LINENO"; then : 5970 rm -f conftest.$ac_objext
5971if { (ac_try="$ac_compile"
5972case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975esac
5976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5977$as_echo "$ac_try_echo") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5979 ac_status=$?
5980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest.$ac_objext; then
5510 ac_cv_sys_largefile_CC=' -n32'; break 5988 ac_cv_sys_largefile_CC=' -n32'; break
5989else
5990 $as_echo "$as_me: failed program was:" >&5
5991sed 's/^/| /' conftest.$ac_ext >&5
5992
5993
5511fi 5994fi
5995
5512rm -f core conftest.err conftest.$ac_objext 5996rm -f core conftest.err conftest.$ac_objext
5513 break 5997 break
5514 done 5998 done
@@ -5516,19 +6000,23 @@ rm -f core conftest.err conftest.$ac_objext
5516 rm -f conftest.$ac_ext 6000 rm -f conftest.$ac_ext
5517 fi 6001 fi
5518fi 6002fi
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6003{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5520$as_echo "$ac_cv_sys_largefile_CC" >&6; } 6004$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5521 if test "$ac_cv_sys_largefile_CC" != no; then 6005 if test "$ac_cv_sys_largefile_CC" != no; then
5522 CC=$CC$ac_cv_sys_largefile_CC 6006 CC=$CC$ac_cv_sys_largefile_CC
5523 fi 6007 fi
5524 6008
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6009 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5526$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6010$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5527if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 6011if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5528 $as_echo_n "(cached) " >&6 6012 $as_echo_n "(cached) " >&6
5529else 6013else
5530 while :; do 6014 while :; do
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6015 cat >conftest.$ac_ext <<_ACEOF
6016/* confdefs.h. */
6017_ACEOF
6018cat confdefs.h >>conftest.$ac_ext
6019cat >>conftest.$ac_ext <<_ACEOF
5532/* end confdefs.h. */ 6020/* end confdefs.h. */
5533#include <sys/types.h> 6021#include <sys/types.h>
5534 /* Check that off_t can represent 2**63 - 1 correctly. 6022 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5547,11 +6035,38 @@ main ()
5547 return 0; 6035 return 0;
5548} 6036}
5549_ACEOF 6037_ACEOF
5550if ac_fn_c_try_compile "$LINENO"; then : 6038rm -f conftest.$ac_objext
6039if { (ac_try="$ac_compile"
6040case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043esac
6044eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6045$as_echo "$ac_try_echo") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_c_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.$ac_objext; then
5551 ac_cv_sys_file_offset_bits=no; break 6056 ac_cv_sys_file_offset_bits=no; break
6057else
6058 $as_echo "$as_me: failed program was:" >&5
6059sed 's/^/| /' conftest.$ac_ext >&5
6060
6061
5552fi 6062fi
6063
5553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6065 cat >conftest.$ac_ext <<_ACEOF
6066/* confdefs.h. */
6067_ACEOF
6068cat confdefs.h >>conftest.$ac_ext
6069cat >>conftest.$ac_ext <<_ACEOF
5555/* end confdefs.h. */ 6070/* end confdefs.h. */
5556#define _FILE_OFFSET_BITS 64 6071#define _FILE_OFFSET_BITS 64
5557#include <sys/types.h> 6072#include <sys/types.h>
@@ -5571,15 +6086,38 @@ main ()
5571 return 0; 6086 return 0;
5572} 6087}
5573_ACEOF 6088_ACEOF
5574if ac_fn_c_try_compile "$LINENO"; then : 6089rm -f conftest.$ac_objext
6090if { (ac_try="$ac_compile"
6091case "(($ac_try" in
6092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6093 *) ac_try_echo=$ac_try;;
6094esac
6095eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6096$as_echo "$ac_try_echo") >&5
6097 (eval "$ac_compile") 2>conftest.er1
6098 ac_status=$?
6099 grep -v '^ *+' conftest.er1 >conftest.err
6100 rm -f conftest.er1
6101 cat conftest.err >&5
6102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); } && {
6104 test -z "$ac_c_werror_flag" ||
6105 test ! -s conftest.err
6106 } && test -s conftest.$ac_objext; then
5575 ac_cv_sys_file_offset_bits=64; break 6107 ac_cv_sys_file_offset_bits=64; break
6108else
6109 $as_echo "$as_me: failed program was:" >&5
6110sed 's/^/| /' conftest.$ac_ext >&5
6111
6112
5576fi 6113fi
6114
5577rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5578 ac_cv_sys_file_offset_bits=unknown 6116 ac_cv_sys_file_offset_bits=unknown
5579 break 6117 break
5580done 6118done
5581fi 6119fi
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6120{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5583$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6121$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5584case $ac_cv_sys_file_offset_bits in #( 6122case $ac_cv_sys_file_offset_bits in #(
5585 no | unknown) ;; 6123 no | unknown) ;;
@@ -5591,13 +6129,17 @@ _ACEOF
5591esac 6129esac
5592rm -rf conftest* 6130rm -rf conftest*
5593 if test $ac_cv_sys_file_offset_bits = unknown; then 6131 if test $ac_cv_sys_file_offset_bits = unknown; then
5594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6132 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5595$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6133$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5596if test "${ac_cv_sys_large_files+set}" = set; then : 6134if test "${ac_cv_sys_large_files+set}" = set; then
5597 $as_echo_n "(cached) " >&6 6135 $as_echo_n "(cached) " >&6
5598else 6136else
5599 while :; do 6137 while :; do
5600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6138 cat >conftest.$ac_ext <<_ACEOF
6139/* confdefs.h. */
6140_ACEOF
6141cat confdefs.h >>conftest.$ac_ext
6142cat >>conftest.$ac_ext <<_ACEOF
5601/* end confdefs.h. */ 6143/* end confdefs.h. */
5602#include <sys/types.h> 6144#include <sys/types.h>
5603 /* Check that off_t can represent 2**63 - 1 correctly. 6145 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5616,11 +6158,38 @@ main ()
5616 return 0; 6158 return 0;
5617} 6159}
5618_ACEOF 6160_ACEOF
5619if ac_fn_c_try_compile "$LINENO"; then : 6161rm -f conftest.$ac_objext
6162if { (ac_try="$ac_compile"
6163case "(($ac_try" in
6164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6166esac
6167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6168$as_echo "$ac_try_echo") >&5
6169 (eval "$ac_compile") 2>conftest.er1
6170 ac_status=$?
6171 grep -v '^ *+' conftest.er1 >conftest.err
6172 rm -f conftest.er1
6173 cat conftest.err >&5
6174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175 (exit $ac_status); } && {
6176 test -z "$ac_c_werror_flag" ||
6177 test ! -s conftest.err
6178 } && test -s conftest.$ac_objext; then
5620 ac_cv_sys_large_files=no; break 6179 ac_cv_sys_large_files=no; break
6180else
6181 $as_echo "$as_me: failed program was:" >&5
6182sed 's/^/| /' conftest.$ac_ext >&5
6183
6184
5621fi 6185fi
6186
5622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6187rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6188 cat >conftest.$ac_ext <<_ACEOF
6189/* confdefs.h. */
6190_ACEOF
6191cat confdefs.h >>conftest.$ac_ext
6192cat >>conftest.$ac_ext <<_ACEOF
5624/* end confdefs.h. */ 6193/* end confdefs.h. */
5625#define _LARGE_FILES 1 6194#define _LARGE_FILES 1
5626#include <sys/types.h> 6195#include <sys/types.h>
@@ -5640,15 +6209,38 @@ main ()
5640 return 0; 6209 return 0;
5641} 6210}
5642_ACEOF 6211_ACEOF
5643if ac_fn_c_try_compile "$LINENO"; then : 6212rm -f conftest.$ac_objext
6213if { (ac_try="$ac_compile"
6214case "(($ac_try" in
6215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6216 *) ac_try_echo=$ac_try;;
6217esac
6218eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6219$as_echo "$ac_try_echo") >&5
6220 (eval "$ac_compile") 2>conftest.er1
6221 ac_status=$?
6222 grep -v '^ *+' conftest.er1 >conftest.err
6223 rm -f conftest.er1
6224 cat conftest.err >&5
6225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && {
6227 test -z "$ac_c_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest.$ac_objext; then
5644 ac_cv_sys_large_files=1; break 6230 ac_cv_sys_large_files=1; break
6231else
6232 $as_echo "$as_me: failed program was:" >&5
6233sed 's/^/| /' conftest.$ac_ext >&5
6234
6235
5645fi 6236fi
6237
5646rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5647 ac_cv_sys_large_files=unknown 6239 ac_cv_sys_large_files=unknown
5648 break 6240 break
5649done 6241done
5650fi 6242fi
5651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6243{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5652$as_echo "$ac_cv_sys_large_files" >&6; } 6244$as_echo "$ac_cv_sys_large_files" >&6; }
5653case $ac_cv_sys_large_files in #( 6245case $ac_cv_sys_large_files in #(
5654 no | unknown) ;; 6246 no | unknown) ;;
@@ -5672,7 +6264,9 @@ case "${canonical}" in
5672 x86_64-*-linux-gnu* | s390x-*-linux-gnu* ) 6264 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5673 if test -e /usr/lib64/crtn.o; then 6265 if test -e /usr/lib64/crtn.o; then
5674 6266
5675$as_echo "#define HAVE_LIB64_DIR 1" >>confdefs.h 6267cat >>confdefs.h <<\_ACEOF
6268#define HAVE_LIB64_DIR 1
6269_ACEOF
5676 6270
5677fi 6271fi
5678esac 6272esac
@@ -5682,12 +6276,145 @@ esac
5682 6276
5683if test "${with_sound}" != "no"; then 6277if test "${with_sound}" != "no"; then
5684 # Sound support for GNU/Linux and the free BSDs. 6278 # Sound support for GNU/Linux and the free BSDs.
5685 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h 6279
5686do : 6280
5687 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6281
5688ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6282for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5689eval as_val=\$$as_ac_Header 6283do
5690 if test "x$as_val" = x""yes; then : 6284as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6285if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6287$as_echo_n "checking for $ac_header... " >&6; }
6288if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6289 $as_echo_n "(cached) " >&6
6290fi
6291ac_res=`eval 'as_val=${'$as_ac_Header'}
6292 $as_echo "$as_val"'`
6293 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6294$as_echo "$ac_res" >&6; }
6295else
6296 # Is the header compilable?
6297{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6298$as_echo_n "checking $ac_header usability... " >&6; }
6299cat >conftest.$ac_ext <<_ACEOF
6300/* confdefs.h. */
6301_ACEOF
6302cat confdefs.h >>conftest.$ac_ext
6303cat >>conftest.$ac_ext <<_ACEOF
6304/* end confdefs.h. */
6305$ac_includes_default
6306#include <$ac_header>
6307_ACEOF
6308rm -f conftest.$ac_objext
6309if { (ac_try="$ac_compile"
6310case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313esac
6314eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6315$as_echo "$ac_try_echo") >&5
6316 (eval "$ac_compile") 2>conftest.er1
6317 ac_status=$?
6318 grep -v '^ *+' conftest.er1 >conftest.err
6319 rm -f conftest.er1
6320 cat conftest.err >&5
6321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6322 (exit $ac_status); } && {
6323 test -z "$ac_c_werror_flag" ||
6324 test ! -s conftest.err
6325 } && test -s conftest.$ac_objext; then
6326 ac_header_compiler=yes
6327else
6328 $as_echo "$as_me: failed program was:" >&5
6329sed 's/^/| /' conftest.$ac_ext >&5
6330
6331 ac_header_compiler=no
6332fi
6333
6334rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6335{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6336$as_echo "$ac_header_compiler" >&6; }
6337
6338# Is the header present?
6339{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6340$as_echo_n "checking $ac_header presence... " >&6; }
6341cat >conftest.$ac_ext <<_ACEOF
6342/* confdefs.h. */
6343_ACEOF
6344cat confdefs.h >>conftest.$ac_ext
6345cat >>conftest.$ac_ext <<_ACEOF
6346/* end confdefs.h. */
6347#include <$ac_header>
6348_ACEOF
6349if { (ac_try="$ac_cpp conftest.$ac_ext"
6350case "(($ac_try" in
6351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6352 *) ac_try_echo=$ac_try;;
6353esac
6354eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6355$as_echo "$ac_try_echo") >&5
6356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } >/dev/null && {
6363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6364 test ! -s conftest.err
6365 }; then
6366 ac_header_preproc=yes
6367else
6368 $as_echo "$as_me: failed program was:" >&5
6369sed 's/^/| /' conftest.$ac_ext >&5
6370
6371 ac_header_preproc=no
6372fi
6373
6374rm -f conftest.err conftest.$ac_ext
6375{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6376$as_echo "$ac_header_preproc" >&6; }
6377
6378# So? What about this header?
6379case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6380 yes:no: )
6381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6382$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6383 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6384$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6385 ac_header_preproc=yes
6386 ;;
6387 no:yes:* )
6388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6389$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6391$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6393$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6395$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6397$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6399$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6400
6401 ;;
6402esac
6403{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6404$as_echo_n "checking for $ac_header... " >&6; }
6405if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6406 $as_echo_n "(cached) " >&6
6407else
6408 eval "$as_ac_Header=\$ac_header_preproc"
6409fi
6410ac_res=`eval 'as_val=${'$as_ac_Header'}
6411 $as_echo "$as_val"'`
6412 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6413$as_echo "$ac_res" >&6; }
6414
6415fi
6416if test `eval 'as_val=${'$as_ac_Header'}
6417 $as_echo "$as_val"'` = yes; then
5691 cat >>confdefs.h <<_ACEOF 6418 cat >>confdefs.h <<_ACEOF
5692#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6419#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5693_ACEOF 6420_ACEOF
@@ -5697,14 +6424,18 @@ fi
5697done 6424done
5698 6425
5699 # Emulation library used on NetBSD. 6426 # Emulation library used on NetBSD.
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 6427 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5701$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } 6428$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5702if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : 6429if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5703 $as_echo_n "(cached) " >&6 6430 $as_echo_n "(cached) " >&6
5704else 6431else
5705 ac_check_lib_save_LIBS=$LIBS 6432 ac_check_lib_save_LIBS=$LIBS
5706LIBS="-lossaudio $LIBS" 6433LIBS="-lossaudio $LIBS"
5707cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6434cat >conftest.$ac_ext <<_ACEOF
6435/* confdefs.h. */
6436_ACEOF
6437cat confdefs.h >>conftest.$ac_ext
6438cat >>conftest.$ac_ext <<_ACEOF
5708/* end confdefs.h. */ 6439/* end confdefs.h. */
5709 6440
5710/* Override any GCC internal prototype to avoid an error. 6441/* Override any GCC internal prototype to avoid an error.
@@ -5722,18 +6453,43 @@ return _oss_ioctl ();
5722 return 0; 6453 return 0;
5723} 6454}
5724_ACEOF 6455_ACEOF
5725if ac_fn_c_try_link "$LINENO"; then : 6456rm -f conftest.$ac_objext conftest$ac_exeext
6457if { (ac_try="$ac_link"
6458case "(($ac_try" in
6459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6460 *) ac_try_echo=$ac_try;;
6461esac
6462eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6463$as_echo "$ac_try_echo") >&5
6464 (eval "$ac_link") 2>conftest.er1
6465 ac_status=$?
6466 grep -v '^ *+' conftest.er1 >conftest.err
6467 rm -f conftest.er1
6468 cat conftest.err >&5
6469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6470 (exit $ac_status); } && {
6471 test -z "$ac_c_werror_flag" ||
6472 test ! -s conftest.err
6473 } && test -s conftest$ac_exeext && {
6474 test "$cross_compiling" = yes ||
6475 $as_test_x conftest$ac_exeext
6476 }; then
5726 ac_cv_lib_ossaudio__oss_ioctl=yes 6477 ac_cv_lib_ossaudio__oss_ioctl=yes
5727else 6478else
5728 ac_cv_lib_ossaudio__oss_ioctl=no 6479 $as_echo "$as_me: failed program was:" >&5
6480sed 's/^/| /' conftest.$ac_ext >&5
6481
6482 ac_cv_lib_ossaudio__oss_ioctl=no
5729fi 6483fi
5730rm -f core conftest.err conftest.$ac_objext \ 6484
5731 conftest$ac_exeext conftest.$ac_ext 6485rm -rf conftest.dSYM
6486rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6487 conftest$ac_exeext conftest.$ac_ext
5732LIBS=$ac_check_lib_save_LIBS 6488LIBS=$ac_check_lib_save_LIBS
5733fi 6489fi
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 6490{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5735$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } 6491$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5736if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then : 6492if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5737 LIBSOUND=-lossaudio 6493 LIBSOUND=-lossaudio
5738else 6494else
5739 LIBSOUND= 6495 LIBSOUND=
@@ -5748,9 +6504,9 @@ fi
5748 6504
5749 # Extract the first word of "pkg-config", so it can be a program name with args. 6505 # Extract the first word of "pkg-config", so it can be a program name with args.
5750set dummy pkg-config; ac_word=$2 6506set dummy pkg-config; ac_word=$2
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6507{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5752$as_echo_n "checking for $ac_word... " >&6; } 6508$as_echo_n "checking for $ac_word... " >&6; }
5753if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 6509if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5754 $as_echo_n "(cached) " >&6 6510 $as_echo_n "(cached) " >&6
5755else 6511else
5756 case $PKG_CONFIG in 6512 case $PKG_CONFIG in
@@ -5763,14 +6519,14 @@ for as_dir in $PATH
5763do 6519do
5764 IFS=$as_save_IFS 6520 IFS=$as_save_IFS
5765 test -z "$as_dir" && as_dir=. 6521 test -z "$as_dir" && as_dir=.
5766 for ac_exec_ext in '' $ac_executable_extensions; do 6522 for ac_exec_ext in '' $ac_executable_extensions; do
5767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5768 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6524 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6525 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5770 break 2 6526 break 2
5771 fi 6527 fi
5772done 6528done
5773 done 6529done
5774IFS=$as_save_IFS 6530IFS=$as_save_IFS
5775 6531
5776 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 6532 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -5779,10 +6535,10 @@ esac
5779fi 6535fi
5780PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6536PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5781if test -n "$PKG_CONFIG"; then 6537if test -n "$PKG_CONFIG"; then
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6538 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5783$as_echo "$PKG_CONFIG" >&6; } 6539$as_echo "$PKG_CONFIG" >&6; }
5784else 6540else
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6541 { $as_echo "$as_me:$LINENO: result: no" >&5
5786$as_echo "no" >&6; } 6542$as_echo "no" >&6; }
5787fi 6543fi
5788 6544
@@ -5793,27 +6549,27 @@ fi
5793 else 6549 else
5794 PKG_CONFIG_MIN_VERSION=0.9.0 6550 PKG_CONFIG_MIN_VERSION=0.9.0
5795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 6551 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5 6552 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5797$as_echo_n "checking for $ALSA_MODULES... " >&6; } 6553$as_echo_n "checking for $ALSA_MODULES... " >&6; }
5798 6554
5799 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then 6555 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6556 { $as_echo "$as_me:$LINENO: result: yes" >&5
5801$as_echo "yes" >&6; } 6557$as_echo "yes" >&6; }
5802 succeeded=yes 6558 succeeded=yes
5803 6559
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5 6560 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5805$as_echo_n "checking ALSA_CFLAGS... " >&6; } 6561$as_echo_n "checking ALSA_CFLAGS... " >&6; }
5806 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` 6562 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5 6563 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5808$as_echo "$ALSA_CFLAGS" >&6; } 6564$as_echo "$ALSA_CFLAGS" >&6; }
5809 6565
5810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5 6566 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5811$as_echo_n "checking ALSA_LIBS... " >&6; } 6567$as_echo_n "checking ALSA_LIBS... " >&6; }
5812 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` 6568 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5 6569 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5814$as_echo "$ALSA_LIBS" >&6; } 6570$as_echo "$ALSA_LIBS" >&6; }
5815 else 6571 else
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6572 { $as_echo "$as_me:$LINENO: result: no" >&5
5817$as_echo "no" >&6; } 6573$as_echo "no" >&6; }
5818 ALSA_CFLAGS="" 6574 ALSA_CFLAGS=""
5819 ALSA_LIBS="" 6575 ALSA_LIBS=""
@@ -5842,7 +6598,11 @@ $as_echo "no" >&6; }
5842 SAVE_LDFLAGS="$LDFLAGS" 6598 SAVE_LDFLAGS="$LDFLAGS"
5843 CFLAGS="$ALSA_CFLAGS $CFLAGS" 6599 CFLAGS="$ALSA_CFLAGS $CFLAGS"
5844 LDFLAGS="$ALSA_LIBS $LDFLAGS" 6600 LDFLAGS="$ALSA_LIBS $LDFLAGS"
5845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6601 cat >conftest.$ac_ext <<_ACEOF
6602/* confdefs.h. */
6603_ACEOF
6604cat confdefs.h >>conftest.$ac_ext
6605cat >>conftest.$ac_ext <<_ACEOF
5846/* end confdefs.h. */ 6606/* end confdefs.h. */
5847#include <asoundlib.h> 6607#include <asoundlib.h>
5848int 6608int
@@ -5853,14 +6613,39 @@ snd_lib_error_set_handler (0);
5853 return 0; 6613 return 0;
5854} 6614}
5855_ACEOF 6615_ACEOF
5856if ac_fn_c_try_compile "$LINENO"; then : 6616rm -f conftest.$ac_objext
6617if { (ac_try="$ac_compile"
6618case "(($ac_try" in
6619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6620 *) ac_try_echo=$ac_try;;
6621esac
6622eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6623$as_echo "$ac_try_echo") >&5
6624 (eval "$ac_compile") 2>conftest.er1
6625 ac_status=$?
6626 grep -v '^ *+' conftest.er1 >conftest.err
6627 rm -f conftest.er1
6628 cat conftest.err >&5
6629 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6630 (exit $ac_status); } && {
6631 test -z "$ac_c_werror_flag" ||
6632 test ! -s conftest.err
6633 } && test -s conftest.$ac_objext; then
5857 emacs_alsa_normal=yes 6634 emacs_alsa_normal=yes
5858else 6635else
5859 emacs_alsa_normal=no 6636 $as_echo "$as_me: failed program was:" >&5
6637sed 's/^/| /' conftest.$ac_ext >&5
6638
6639 emacs_alsa_normal=no
5860fi 6640fi
6641
5861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5862 if test "$emacs_alsa_normal" != yes; then 6643 if test "$emacs_alsa_normal" != yes; then
5863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6644 cat >conftest.$ac_ext <<_ACEOF
6645/* confdefs.h. */
6646_ACEOF
6647cat confdefs.h >>conftest.$ac_ext
6648cat >>conftest.$ac_ext <<_ACEOF
5864/* end confdefs.h. */ 6649/* end confdefs.h. */
5865#include <alsa/asoundlib.h> 6650#include <alsa/asoundlib.h>
5866int 6651int
@@ -5871,14 +6656,37 @@ snd_lib_error_set_handler (0);
5871 return 0; 6656 return 0;
5872} 6657}
5873_ACEOF 6658_ACEOF
5874if ac_fn_c_try_compile "$LINENO"; then : 6659rm -f conftest.$ac_objext
6660if { (ac_try="$ac_compile"
6661case "(($ac_try" in
6662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6663 *) ac_try_echo=$ac_try;;
6664esac
6665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6666$as_echo "$ac_try_echo") >&5
6667 (eval "$ac_compile") 2>conftest.er1
6668 ac_status=$?
6669 grep -v '^ *+' conftest.er1 >conftest.err
6670 rm -f conftest.er1
6671 cat conftest.err >&5
6672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6673 (exit $ac_status); } && {
6674 test -z "$ac_c_werror_flag" ||
6675 test ! -s conftest.err
6676 } && test -s conftest.$ac_objext; then
5875 emacs_alsa_subdir=yes 6677 emacs_alsa_subdir=yes
5876else 6678else
5877 emacs_alsa_subdir=no 6679 $as_echo "$as_me: failed program was:" >&5
6680sed 's/^/| /' conftest.$ac_ext >&5
6681
6682 emacs_alsa_subdir=no
5878fi 6683fi
6684
5879rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5880 if test "$emacs_alsa_subdir" != yes; then 6686 if test "$emacs_alsa_subdir" != yes; then
5881 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 6687 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6688$as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6689 { (exit 1); exit 1; }; }
5882 fi 6690 fi
5883 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" 6691 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
5884 fi 6692 fi
@@ -5888,22 +6696,179 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5888 LIBSOUND="$LIBSOUND $ALSA_LIBS" 6696 LIBSOUND="$LIBSOUND $ALSA_LIBS"
5889 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" 6697 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
5890 6698
5891$as_echo "#define HAVE_ALSA 1" >>confdefs.h 6699cat >>confdefs.h <<\_ACEOF
6700#define HAVE_ALSA 1
6701_ACEOF
5892 6702
5893 fi 6703 fi
5894 6704
5895fi 6705fi
5896 6706
6707
6708
6709
6710
6711
6712
6713
6714
6715
6716
6717
6718
6719
6720
6721
6722
6723
6724
6725
6726
6727
6728
6729
6730
6731
5897for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ 6732for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
5898 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 6733 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
5899 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ 6734 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
5900 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ 6735 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
5901 sys/utsname.h pwd.h utmp.h 6736 sys/utsname.h pwd.h utmp.h
5902do : 6737do
5903 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6738as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5904ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5905eval as_val=\$$as_ac_Header 6740 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5906 if test "x$as_val" = x""yes; then : 6741$as_echo_n "checking for $ac_header... " >&6; }
6742if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6743 $as_echo_n "(cached) " >&6
6744fi
6745ac_res=`eval 'as_val=${'$as_ac_Header'}
6746 $as_echo "$as_val"'`
6747 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6748$as_echo "$ac_res" >&6; }
6749else
6750 # Is the header compilable?
6751{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6752$as_echo_n "checking $ac_header usability... " >&6; }
6753cat >conftest.$ac_ext <<_ACEOF
6754/* confdefs.h. */
6755_ACEOF
6756cat confdefs.h >>conftest.$ac_ext
6757cat >>conftest.$ac_ext <<_ACEOF
6758/* end confdefs.h. */
6759$ac_includes_default
6760#include <$ac_header>
6761_ACEOF
6762rm -f conftest.$ac_objext
6763if { (ac_try="$ac_compile"
6764case "(($ac_try" in
6765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6766 *) ac_try_echo=$ac_try;;
6767esac
6768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6769$as_echo "$ac_try_echo") >&5
6770 (eval "$ac_compile") 2>conftest.er1
6771 ac_status=$?
6772 grep -v '^ *+' conftest.er1 >conftest.err
6773 rm -f conftest.er1
6774 cat conftest.err >&5
6775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); } && {
6777 test -z "$ac_c_werror_flag" ||
6778 test ! -s conftest.err
6779 } && test -s conftest.$ac_objext; then
6780 ac_header_compiler=yes
6781else
6782 $as_echo "$as_me: failed program was:" >&5
6783sed 's/^/| /' conftest.$ac_ext >&5
6784
6785 ac_header_compiler=no
6786fi
6787
6788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6789{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6790$as_echo "$ac_header_compiler" >&6; }
6791
6792# Is the header present?
6793{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6794$as_echo_n "checking $ac_header presence... " >&6; }
6795cat >conftest.$ac_ext <<_ACEOF
6796/* confdefs.h. */
6797_ACEOF
6798cat confdefs.h >>conftest.$ac_ext
6799cat >>conftest.$ac_ext <<_ACEOF
6800/* end confdefs.h. */
6801#include <$ac_header>
6802_ACEOF
6803if { (ac_try="$ac_cpp conftest.$ac_ext"
6804case "(($ac_try" in
6805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6806 *) ac_try_echo=$ac_try;;
6807esac
6808eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6809$as_echo "$ac_try_echo") >&5
6810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6811 ac_status=$?
6812 grep -v '^ *+' conftest.er1 >conftest.err
6813 rm -f conftest.er1
6814 cat conftest.err >&5
6815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6816 (exit $ac_status); } >/dev/null && {
6817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6818 test ! -s conftest.err
6819 }; then
6820 ac_header_preproc=yes
6821else
6822 $as_echo "$as_me: failed program was:" >&5
6823sed 's/^/| /' conftest.$ac_ext >&5
6824
6825 ac_header_preproc=no
6826fi
6827
6828rm -f conftest.err conftest.$ac_ext
6829{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6830$as_echo "$ac_header_preproc" >&6; }
6831
6832# So? What about this header?
6833case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6834 yes:no: )
6835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6836$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6838$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6839 ac_header_preproc=yes
6840 ;;
6841 no:yes:* )
6842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6843$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6845$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6847$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6849$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6851$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6853$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6854
6855 ;;
6856esac
6857{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6858$as_echo_n "checking for $ac_header... " >&6; }
6859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6860 $as_echo_n "(cached) " >&6
6861else
6862 eval "$as_ac_Header=\$ac_header_preproc"
6863fi
6864ac_res=`eval 'as_val=${'$as_ac_Header'}
6865 $as_echo "$as_val"'`
6866 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6867$as_echo "$ac_res" >&6; }
6868
6869fi
6870if test `eval 'as_val=${'$as_ac_Header'}
6871 $as_echo "$as_val"'` = yes; then
5907 cat >>confdefs.h <<_ACEOF 6872 cat >>confdefs.h <<_ACEOF
5908#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6873#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5909_ACEOF 6874_ACEOF
@@ -5913,9 +6878,13 @@ fi
5913done 6878done
5914 6879
5915 6880
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5 6881{ $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
5917$as_echo_n "checking if personality LINUX32 can be set... " >&6; } 6882$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
5918cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6883cat >conftest.$ac_ext <<_ACEOF
6884/* confdefs.h. */
6885_ACEOF
6886cat confdefs.h >>conftest.$ac_ext
6887cat >>conftest.$ac_ext <<_ACEOF
5919/* end confdefs.h. */ 6888/* end confdefs.h. */
5920#include <sys/personality.h> 6889#include <sys/personality.h>
5921int 6890int
@@ -5926,39 +6895,112 @@ personality (PER_LINUX32)
5926 return 0; 6895 return 0;
5927} 6896}
5928_ACEOF 6897_ACEOF
5929if ac_fn_c_try_compile "$LINENO"; then : 6898rm -f conftest.$ac_objext
6899if { (ac_try="$ac_compile"
6900case "(($ac_try" in
6901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6902 *) ac_try_echo=$ac_try;;
6903esac
6904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6905$as_echo "$ac_try_echo") >&5
6906 (eval "$ac_compile") 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } && {
6913 test -z "$ac_c_werror_flag" ||
6914 test ! -s conftest.err
6915 } && test -s conftest.$ac_objext; then
5930 emacs_cv_personality_linux32=yes 6916 emacs_cv_personality_linux32=yes
5931else 6917else
5932 emacs_cv_personality_linux32=no 6918 $as_echo "$as_me: failed program was:" >&5
6919sed 's/^/| /' conftest.$ac_ext >&5
6920
6921 emacs_cv_personality_linux32=no
5933fi 6922fi
6923
5934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5 6925{ $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
5936$as_echo "$emacs_cv_personality_linux32" >&6; } 6926$as_echo "$emacs_cv_personality_linux32" >&6; }
5937 6927
5938if test $emacs_cv_personality_linux32 = yes; then 6928if test $emacs_cv_personality_linux32 = yes; then
5939 6929
5940$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h 6930cat >>confdefs.h <<\_ACEOF
6931#define HAVE_PERSONALITY_LINUX32 1
6932_ACEOF
5941 6933
5942fi 6934fi
5943 6935
6936
5944for ac_header in term.h 6937for ac_header in term.h
5945do : 6938do
5946 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" 6939as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5947if test "x$ac_cv_header_term_h" = x""yes; then : 6940{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6941$as_echo_n "checking for $ac_header... " >&6; }
6942if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6943 $as_echo_n "(cached) " >&6
6944else
6945 cat >conftest.$ac_ext <<_ACEOF
6946/* confdefs.h. */
6947_ACEOF
6948cat confdefs.h >>conftest.$ac_ext
6949cat >>conftest.$ac_ext <<_ACEOF
6950/* end confdefs.h. */
6951#include <$ac_header>
6952_ACEOF
6953if { (ac_try="$ac_cpp conftest.$ac_ext"
6954case "(($ac_try" in
6955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6956 *) ac_try_echo=$ac_try;;
6957esac
6958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6959$as_echo "$ac_try_echo") >&5
6960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6961 ac_status=$?
6962 grep -v '^ *+' conftest.er1 >conftest.err
6963 rm -f conftest.er1
6964 cat conftest.err >&5
6965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6966 (exit $ac_status); } >/dev/null && {
6967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6968 test ! -s conftest.err
6969 }; then
6970 eval "$as_ac_Header=yes"
6971else
6972 $as_echo "$as_me: failed program was:" >&5
6973sed 's/^/| /' conftest.$ac_ext >&5
6974
6975 eval "$as_ac_Header=no"
6976fi
6977
6978rm -f conftest.err conftest.$ac_ext
6979fi
6980ac_res=`eval 'as_val=${'$as_ac_Header'}
6981 $as_echo "$as_val"'`
6982 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6983$as_echo "$ac_res" >&6; }
6984if test `eval 'as_val=${'$as_ac_Header'}
6985 $as_echo "$as_val"'` = yes; then
5948 cat >>confdefs.h <<_ACEOF 6986 cat >>confdefs.h <<_ACEOF
5949#define HAVE_TERM_H 1 6987#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5950_ACEOF 6988_ACEOF
5951 6989
5952fi 6990fi
5953 6991
5954done 6992done
5955 6993
5956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 6994{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5957$as_echo_n "checking for ANSI C header files... " >&6; } 6995$as_echo_n "checking for ANSI C header files... " >&6; }
5958if test "${ac_cv_header_stdc+set}" = set; then : 6996if test "${ac_cv_header_stdc+set}" = set; then
5959 $as_echo_n "(cached) " >&6 6997 $as_echo_n "(cached) " >&6
5960else 6998else
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6999 cat >conftest.$ac_ext <<_ACEOF
7000/* confdefs.h. */
7001_ACEOF
7002cat confdefs.h >>conftest.$ac_ext
7003cat >>conftest.$ac_ext <<_ACEOF
5962/* end confdefs.h. */ 7004/* end confdefs.h. */
5963#include <stdlib.h> 7005#include <stdlib.h>
5964#include <stdarg.h> 7006#include <stdarg.h>
@@ -5973,23 +7015,48 @@ main ()
5973 return 0; 7015 return 0;
5974} 7016}
5975_ACEOF 7017_ACEOF
5976if ac_fn_c_try_compile "$LINENO"; then : 7018rm -f conftest.$ac_objext
7019if { (ac_try="$ac_compile"
7020case "(($ac_try" in
7021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7022 *) ac_try_echo=$ac_try;;
7023esac
7024eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7025$as_echo "$ac_try_echo") >&5
7026 (eval "$ac_compile") 2>conftest.er1
7027 ac_status=$?
7028 grep -v '^ *+' conftest.er1 >conftest.err
7029 rm -f conftest.er1
7030 cat conftest.err >&5
7031 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7032 (exit $ac_status); } && {
7033 test -z "$ac_c_werror_flag" ||
7034 test ! -s conftest.err
7035 } && test -s conftest.$ac_objext; then
5977 ac_cv_header_stdc=yes 7036 ac_cv_header_stdc=yes
5978else 7037else
5979 ac_cv_header_stdc=no 7038 $as_echo "$as_me: failed program was:" >&5
7039sed 's/^/| /' conftest.$ac_ext >&5
7040
7041 ac_cv_header_stdc=no
5980fi 7042fi
7043
5981rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5982 7045
5983if test $ac_cv_header_stdc = yes; then 7046if test $ac_cv_header_stdc = yes; then
5984 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7047 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7048 cat >conftest.$ac_ext <<_ACEOF
7049/* confdefs.h. */
7050_ACEOF
7051cat confdefs.h >>conftest.$ac_ext
7052cat >>conftest.$ac_ext <<_ACEOF
5986/* end confdefs.h. */ 7053/* end confdefs.h. */
5987#include <string.h> 7054#include <string.h>
5988 7055
5989_ACEOF 7056_ACEOF
5990if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7057if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5991 $EGREP "memchr" >/dev/null 2>&1; then : 7058 $EGREP "memchr" >/dev/null 2>&1; then
5992 7059 :
5993else 7060else
5994 ac_cv_header_stdc=no 7061 ac_cv_header_stdc=no
5995fi 7062fi
@@ -5999,14 +7066,18 @@ fi
5999 7066
6000if test $ac_cv_header_stdc = yes; then 7067if test $ac_cv_header_stdc = yes; then
6001 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7068 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7069 cat >conftest.$ac_ext <<_ACEOF
7070/* confdefs.h. */
7071_ACEOF
7072cat confdefs.h >>conftest.$ac_ext
7073cat >>conftest.$ac_ext <<_ACEOF
6003/* end confdefs.h. */ 7074/* end confdefs.h. */
6004#include <stdlib.h> 7075#include <stdlib.h>
6005 7076
6006_ACEOF 7077_ACEOF
6007if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7078if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6008 $EGREP "free" >/dev/null 2>&1; then : 7079 $EGREP "free" >/dev/null 2>&1; then
6009 7080 :
6010else 7081else
6011 ac_cv_header_stdc=no 7082 ac_cv_header_stdc=no
6012fi 7083fi
@@ -6016,10 +7087,14 @@ fi
6016 7087
6017if test $ac_cv_header_stdc = yes; then 7088if test $ac_cv_header_stdc = yes; then
6018 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7089 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6019 if test "$cross_compiling" = yes; then : 7090 if test "$cross_compiling" = yes; then
6020 : 7091 :
6021else 7092else
6022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7093 cat >conftest.$ac_ext <<_ACEOF
7094/* confdefs.h. */
7095_ACEOF
7096cat confdefs.h >>conftest.$ac_ext
7097cat >>conftest.$ac_ext <<_ACEOF
6023/* end confdefs.h. */ 7098/* end confdefs.h. */
6024#include <ctype.h> 7099#include <ctype.h>
6025#include <stdlib.h> 7100#include <stdlib.h>
@@ -6046,31 +7121,64 @@ main ()
6046 return 0; 7121 return 0;
6047} 7122}
6048_ACEOF 7123_ACEOF
6049if ac_fn_c_try_run "$LINENO"; then : 7124rm -f conftest$ac_exeext
6050 7125if { (ac_try="$ac_link"
7126case "(($ac_try" in
7127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7128 *) ac_try_echo=$ac_try;;
7129esac
7130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7131$as_echo "$ac_try_echo") >&5
7132 (eval "$ac_link") 2>&5
7133 ac_status=$?
7134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7135 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7136 { (case "(($ac_try" in
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7139esac
7140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7141$as_echo "$ac_try_echo") >&5
7142 (eval "$ac_try") 2>&5
7143 ac_status=$?
7144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; }; then
7146 :
6051else 7147else
6052 ac_cv_header_stdc=no 7148 $as_echo "$as_me: program exited with status $ac_status" >&5
7149$as_echo "$as_me: failed program was:" >&5
7150sed 's/^/| /' conftest.$ac_ext >&5
7151
7152( exit $ac_status )
7153ac_cv_header_stdc=no
6053fi 7154fi
6054rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7155rm -rf conftest.dSYM
6055 conftest.$ac_objext conftest.beam conftest.$ac_ext 7156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6056fi 7157fi
6057 7158
7159
6058fi 7160fi
6059fi 7161fi
6060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7162{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6061$as_echo "$ac_cv_header_stdc" >&6; } 7163$as_echo "$ac_cv_header_stdc" >&6; }
6062if test $ac_cv_header_stdc = yes; then 7164if test $ac_cv_header_stdc = yes; then
6063 7165
6064$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7166cat >>confdefs.h <<\_ACEOF
7167#define STDC_HEADERS 1
7168_ACEOF
6065 7169
6066fi 7170fi
6067 7171
6068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 7172{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6069$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 7173$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6070if test "${ac_cv_header_time+set}" = set; then : 7174if test "${ac_cv_header_time+set}" = set; then
6071 $as_echo_n "(cached) " >&6 7175 $as_echo_n "(cached) " >&6
6072else 7176else
6073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7177 cat >conftest.$ac_ext <<_ACEOF
7178/* confdefs.h. */
7179_ACEOF
7180cat confdefs.h >>conftest.$ac_ext
7181cat >>conftest.$ac_ext <<_ACEOF
6074/* end confdefs.h. */ 7182/* end confdefs.h. */
6075#include <sys/types.h> 7183#include <sys/types.h>
6076#include <sys/time.h> 7184#include <sys/time.h>
@@ -6085,57 +7193,202 @@ return 0;
6085 return 0; 7193 return 0;
6086} 7194}
6087_ACEOF 7195_ACEOF
6088if ac_fn_c_try_compile "$LINENO"; then : 7196rm -f conftest.$ac_objext
7197if { (ac_try="$ac_compile"
7198case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7201esac
7202eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7203$as_echo "$ac_try_echo") >&5
7204 (eval "$ac_compile") 2>conftest.er1
7205 ac_status=$?
7206 grep -v '^ *+' conftest.er1 >conftest.err
7207 rm -f conftest.er1
7208 cat conftest.err >&5
7209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } && {
7211 test -z "$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 } && test -s conftest.$ac_objext; then
6089 ac_cv_header_time=yes 7214 ac_cv_header_time=yes
6090else 7215else
6091 ac_cv_header_time=no 7216 $as_echo "$as_me: failed program was:" >&5
7217sed 's/^/| /' conftest.$ac_ext >&5
7218
7219 ac_cv_header_time=no
6092fi 7220fi
7221
6093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6094fi 7223fi
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 7224{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6096$as_echo "$ac_cv_header_time" >&6; } 7225$as_echo "$ac_cv_header_time" >&6; }
6097if test $ac_cv_header_time = yes; then 7226if test $ac_cv_header_time = yes; then
6098 7227
6099$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 7228cat >>confdefs.h <<\_ACEOF
7229#define TIME_WITH_SYS_TIME 1
7230_ACEOF
6100 7231
6101fi 7232fi
6102 7233
6103ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default" 7234{ $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6104if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then : 7235$as_echo_n "checking whether sys_siglist is declared... " >&6; }
6105 ac_have_decl=1 7236if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7237 $as_echo_n "(cached) " >&6
7238else
7239 cat >conftest.$ac_ext <<_ACEOF
7240/* confdefs.h. */
7241_ACEOF
7242cat confdefs.h >>conftest.$ac_ext
7243cat >>conftest.$ac_ext <<_ACEOF
7244/* end confdefs.h. */
7245$ac_includes_default
7246int
7247main ()
7248{
7249#ifndef sys_siglist
7250 (void) sys_siglist;
7251#endif
7252
7253 ;
7254 return 0;
7255}
7256_ACEOF
7257rm -f conftest.$ac_objext
7258if { (ac_try="$ac_compile"
7259case "(($ac_try" in
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7262esac
7263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7264$as_echo "$ac_try_echo") >&5
7265 (eval "$ac_compile") 2>conftest.er1
7266 ac_status=$?
7267 grep -v '^ *+' conftest.er1 >conftest.err
7268 rm -f conftest.er1
7269 cat conftest.err >&5
7270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7271 (exit $ac_status); } && {
7272 test -z "$ac_c_werror_flag" ||
7273 test ! -s conftest.err
7274 } && test -s conftest.$ac_objext; then
7275 ac_cv_have_decl_sys_siglist=yes
6106else 7276else
6107 ac_have_decl=0 7277 $as_echo "$as_me: failed program was:" >&5
7278sed 's/^/| /' conftest.$ac_ext >&5
7279
7280 ac_cv_have_decl_sys_siglist=no
6108fi 7281fi
6109 7282
7283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7284fi
7285{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7286$as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7287if test $ac_cv_have_decl_sys_siglist = yes; then
7288
6110cat >>confdefs.h <<_ACEOF 7289cat >>confdefs.h <<_ACEOF
6111#define HAVE_DECL_SYS_SIGLIST $ac_have_decl 7290#define HAVE_DECL_SYS_SIGLIST 1
7291_ACEOF
7292
7293
7294else
7295 cat >>confdefs.h <<_ACEOF
7296#define HAVE_DECL_SYS_SIGLIST 0
6112_ACEOF 7297_ACEOF
6113 7298
7299
7300fi
7301
7302
6114if test $ac_cv_have_decl_sys_siglist != yes; then 7303if test $ac_cv_have_decl_sys_siglist != yes; then
6115 # For Tru64, at least: 7304 # For Tru64, at least:
6116 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default" 7305 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6117if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then : 7306$as_echo_n "checking whether __sys_siglist is declared... " >&6; }
6118 ac_have_decl=1 7307if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7308 $as_echo_n "(cached) " >&6
7309else
7310 cat >conftest.$ac_ext <<_ACEOF
7311/* confdefs.h. */
7312_ACEOF
7313cat confdefs.h >>conftest.$ac_ext
7314cat >>conftest.$ac_ext <<_ACEOF
7315/* end confdefs.h. */
7316$ac_includes_default
7317int
7318main ()
7319{
7320#ifndef __sys_siglist
7321 (void) __sys_siglist;
7322#endif
7323
7324 ;
7325 return 0;
7326}
7327_ACEOF
7328rm -f conftest.$ac_objext
7329if { (ac_try="$ac_compile"
7330case "(($ac_try" in
7331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7332 *) ac_try_echo=$ac_try;;
7333esac
7334eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7335$as_echo "$ac_try_echo") >&5
7336 (eval "$ac_compile") 2>conftest.er1
7337 ac_status=$?
7338 grep -v '^ *+' conftest.er1 >conftest.err
7339 rm -f conftest.er1
7340 cat conftest.err >&5
7341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7342 (exit $ac_status); } && {
7343 test -z "$ac_c_werror_flag" ||
7344 test ! -s conftest.err
7345 } && test -s conftest.$ac_objext; then
7346 ac_cv_have_decl___sys_siglist=yes
6119else 7347else
6120 ac_have_decl=0 7348 $as_echo "$as_me: failed program was:" >&5
7349sed 's/^/| /' conftest.$ac_ext >&5
7350
7351 ac_cv_have_decl___sys_siglist=no
6121fi 7352fi
6122 7353
7354rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7355fi
7356{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7357$as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7358if test $ac_cv_have_decl___sys_siglist = yes; then
7359
6123cat >>confdefs.h <<_ACEOF 7360cat >>confdefs.h <<_ACEOF
6124#define HAVE_DECL___SYS_SIGLIST $ac_have_decl 7361#define HAVE_DECL___SYS_SIGLIST 1
7362_ACEOF
7363
7364
7365else
7366 cat >>confdefs.h <<_ACEOF
7367#define HAVE_DECL___SYS_SIGLIST 0
6125_ACEOF 7368_ACEOF
6126 7369
7370
7371fi
7372
7373
6127 if test $ac_cv_have_decl___sys_siglist = yes; then 7374 if test $ac_cv_have_decl___sys_siglist = yes; then
6128 7375
6129$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h 7376cat >>confdefs.h <<\_ACEOF
7377#define sys_siglist __sys_siglist
7378_ACEOF
6130 7379
6131 fi 7380 fi
6132fi 7381fi
6133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 7382{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6134$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 7383$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6135if test "${ac_cv_header_sys_wait_h+set}" = set; then : 7384if test "${ac_cv_header_sys_wait_h+set}" = set; then
6136 $as_echo_n "(cached) " >&6 7385 $as_echo_n "(cached) " >&6
6137else 7386else
6138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7387 cat >conftest.$ac_ext <<_ACEOF
7388/* confdefs.h. */
7389_ACEOF
7390cat confdefs.h >>conftest.$ac_ext
7391cat >>conftest.$ac_ext <<_ACEOF
6139/* end confdefs.h. */ 7392/* end confdefs.h. */
6140#include <sys/types.h> 7393#include <sys/types.h>
6141#include <sys/wait.h> 7394#include <sys/wait.h>
@@ -6156,28 +7409,55 @@ main ()
6156 return 0; 7409 return 0;
6157} 7410}
6158_ACEOF 7411_ACEOF
6159if ac_fn_c_try_compile "$LINENO"; then : 7412rm -f conftest.$ac_objext
7413if { (ac_try="$ac_compile"
7414case "(($ac_try" in
7415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7417esac
7418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7419$as_echo "$ac_try_echo") >&5
7420 (eval "$ac_compile") 2>conftest.er1
7421 ac_status=$?
7422 grep -v '^ *+' conftest.er1 >conftest.err
7423 rm -f conftest.er1
7424 cat conftest.err >&5
7425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7426 (exit $ac_status); } && {
7427 test -z "$ac_c_werror_flag" ||
7428 test ! -s conftest.err
7429 } && test -s conftest.$ac_objext; then
6160 ac_cv_header_sys_wait_h=yes 7430 ac_cv_header_sys_wait_h=yes
6161else 7431else
6162 ac_cv_header_sys_wait_h=no 7432 $as_echo "$as_me: failed program was:" >&5
7433sed 's/^/| /' conftest.$ac_ext >&5
7434
7435 ac_cv_header_sys_wait_h=no
6163fi 7436fi
7437
6164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7438rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6165fi 7439fi
6166{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 7440{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6167$as_echo "$ac_cv_header_sys_wait_h" >&6; } 7441$as_echo "$ac_cv_header_sys_wait_h" >&6; }
6168if test $ac_cv_header_sys_wait_h = yes; then 7442if test $ac_cv_header_sys_wait_h = yes; then
6169 7443
6170$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 7444cat >>confdefs.h <<\_ACEOF
7445#define HAVE_SYS_WAIT_H 1
7446_ACEOF
6171 7447
6172fi 7448fi
6173 7449
6174 7450
6175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5 7451{ $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6176$as_echo_n "checking for struct utimbuf... " >&6; } 7452$as_echo_n "checking for struct utimbuf... " >&6; }
6177if test "${emacs_cv_struct_utimbuf+set}" = set; then : 7453if test "${emacs_cv_struct_utimbuf+set}" = set; then
6178 $as_echo_n "(cached) " >&6 7454 $as_echo_n "(cached) " >&6
6179else 7455else
6180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7456 cat >conftest.$ac_ext <<_ACEOF
7457/* confdefs.h. */
7458_ACEOF
7459cat confdefs.h >>conftest.$ac_ext
7460cat >>conftest.$ac_ext <<_ACEOF
6181/* end confdefs.h. */ 7461/* end confdefs.h. */
6182#ifdef TIME_WITH_SYS_TIME 7462#ifdef TIME_WITH_SYS_TIME
6183#include <sys/time.h> 7463#include <sys/time.h>
@@ -6200,27 +7480,54 @@ static struct utimbuf x; x.actime = x.modtime;
6200 return 0; 7480 return 0;
6201} 7481}
6202_ACEOF 7482_ACEOF
6203if ac_fn_c_try_compile "$LINENO"; then : 7483rm -f conftest.$ac_objext
7484if { (ac_try="$ac_compile"
7485case "(($ac_try" in
7486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7487 *) ac_try_echo=$ac_try;;
7488esac
7489eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7490$as_echo "$ac_try_echo") >&5
7491 (eval "$ac_compile") 2>conftest.er1
7492 ac_status=$?
7493 grep -v '^ *+' conftest.er1 >conftest.err
7494 rm -f conftest.er1
7495 cat conftest.err >&5
7496 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7497 (exit $ac_status); } && {
7498 test -z "$ac_c_werror_flag" ||
7499 test ! -s conftest.err
7500 } && test -s conftest.$ac_objext; then
6204 emacs_cv_struct_utimbuf=yes 7501 emacs_cv_struct_utimbuf=yes
6205else 7502else
6206 emacs_cv_struct_utimbuf=no 7503 $as_echo "$as_me: failed program was:" >&5
7504sed 's/^/| /' conftest.$ac_ext >&5
7505
7506 emacs_cv_struct_utimbuf=no
6207fi 7507fi
7508
6208rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7509rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6209fi 7510fi
6210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5 7511{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6211$as_echo "$emacs_cv_struct_utimbuf" >&6; } 7512$as_echo "$emacs_cv_struct_utimbuf" >&6; }
6212if test $emacs_cv_struct_utimbuf = yes; then 7513if test $emacs_cv_struct_utimbuf = yes; then
6213 7514
6214$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h 7515cat >>confdefs.h <<\_ACEOF
7516#define HAVE_STRUCT_UTIMBUF 1
7517_ACEOF
6215 7518
6216fi 7519fi
6217 7520
6218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 7521{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6219$as_echo_n "checking return type of signal handlers... " >&6; } 7522$as_echo_n "checking return type of signal handlers... " >&6; }
6220if test "${ac_cv_type_signal+set}" = set; then : 7523if test "${ac_cv_type_signal+set}" = set; then
6221 $as_echo_n "(cached) " >&6 7524 $as_echo_n "(cached) " >&6
6222else 7525else
6223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7526 cat >conftest.$ac_ext <<_ACEOF
7527/* confdefs.h. */
7528_ACEOF
7529cat confdefs.h >>conftest.$ac_ext
7530cat >>conftest.$ac_ext <<_ACEOF
6224/* end confdefs.h. */ 7531/* end confdefs.h. */
6225#include <sys/types.h> 7532#include <sys/types.h>
6226#include <signal.h> 7533#include <signal.h>
@@ -6233,14 +7540,35 @@ return *(signal (0, 0)) (0) == 1;
6233 return 0; 7540 return 0;
6234} 7541}
6235_ACEOF 7542_ACEOF
6236if ac_fn_c_try_compile "$LINENO"; then : 7543rm -f conftest.$ac_objext
7544if { (ac_try="$ac_compile"
7545case "(($ac_try" in
7546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7547 *) ac_try_echo=$ac_try;;
7548esac
7549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7550$as_echo "$ac_try_echo") >&5
7551 (eval "$ac_compile") 2>conftest.er1
7552 ac_status=$?
7553 grep -v '^ *+' conftest.er1 >conftest.err
7554 rm -f conftest.er1
7555 cat conftest.err >&5
7556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } && {
7558 test -z "$ac_c_werror_flag" ||
7559 test ! -s conftest.err
7560 } && test -s conftest.$ac_objext; then
6237 ac_cv_type_signal=int 7561 ac_cv_type_signal=int
6238else 7562else
6239 ac_cv_type_signal=void 7563 $as_echo "$as_me: failed program was:" >&5
7564sed 's/^/| /' conftest.$ac_ext >&5
7565
7566 ac_cv_type_signal=void
6240fi 7567fi
7568
6241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7569rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6242fi 7570fi
6243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 7571{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6244$as_echo "$ac_cv_type_signal" >&6; } 7572$as_echo "$ac_cv_type_signal" >&6; }
6245 7573
6246cat >>confdefs.h <<_ACEOF 7574cat >>confdefs.h <<_ACEOF
@@ -6249,12 +7577,16 @@ _ACEOF
6249 7577
6250 7578
6251 7579
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5 7580{ $as_echo "$as_me:$LINENO: checking for speed_t" >&5
6253$as_echo_n "checking for speed_t... " >&6; } 7581$as_echo_n "checking for speed_t... " >&6; }
6254if test "${emacs_cv_speed_t+set}" = set; then : 7582if test "${emacs_cv_speed_t+set}" = set; then
6255 $as_echo_n "(cached) " >&6 7583 $as_echo_n "(cached) " >&6
6256else 7584else
6257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7585 cat >conftest.$ac_ext <<_ACEOF
7586/* confdefs.h. */
7587_ACEOF
7588cat confdefs.h >>conftest.$ac_ext
7589cat >>conftest.$ac_ext <<_ACEOF
6258/* end confdefs.h. */ 7590/* end confdefs.h. */
6259#include <termios.h> 7591#include <termios.h>
6260int 7592int
@@ -6265,27 +7597,54 @@ speed_t x = 1;
6265 return 0; 7597 return 0;
6266} 7598}
6267_ACEOF 7599_ACEOF
6268if ac_fn_c_try_compile "$LINENO"; then : 7600rm -f conftest.$ac_objext
7601if { (ac_try="$ac_compile"
7602case "(($ac_try" in
7603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7605esac
7606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7607$as_echo "$ac_try_echo") >&5
7608 (eval "$ac_compile") 2>conftest.er1
7609 ac_status=$?
7610 grep -v '^ *+' conftest.er1 >conftest.err
7611 rm -f conftest.er1
7612 cat conftest.err >&5
7613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } && {
7615 test -z "$ac_c_werror_flag" ||
7616 test ! -s conftest.err
7617 } && test -s conftest.$ac_objext; then
6269 emacs_cv_speed_t=yes 7618 emacs_cv_speed_t=yes
6270else 7619else
6271 emacs_cv_speed_t=no 7620 $as_echo "$as_me: failed program was:" >&5
7621sed 's/^/| /' conftest.$ac_ext >&5
7622
7623 emacs_cv_speed_t=no
6272fi 7624fi
7625
6273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6274fi 7627fi
6275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5 7628{ $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6276$as_echo "$emacs_cv_speed_t" >&6; } 7629$as_echo "$emacs_cv_speed_t" >&6; }
6277if test $emacs_cv_speed_t = yes; then 7630if test $emacs_cv_speed_t = yes; then
6278 7631
6279$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h 7632cat >>confdefs.h <<\_ACEOF
7633#define HAVE_SPEED_T 1
7634_ACEOF
6280 7635
6281fi 7636fi
6282 7637
6283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 7638{ $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
6284$as_echo_n "checking for struct timeval... " >&6; } 7639$as_echo_n "checking for struct timeval... " >&6; }
6285if test "${emacs_cv_struct_timeval+set}" = set; then : 7640if test "${emacs_cv_struct_timeval+set}" = set; then
6286 $as_echo_n "(cached) " >&6 7641 $as_echo_n "(cached) " >&6
6287else 7642else
6288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7643 cat >conftest.$ac_ext <<_ACEOF
7644/* confdefs.h. */
7645_ACEOF
7646cat confdefs.h >>conftest.$ac_ext
7647cat >>conftest.$ac_ext <<_ACEOF
6289/* end confdefs.h. */ 7648/* end confdefs.h. */
6290#ifdef TIME_WITH_SYS_TIME 7649#ifdef TIME_WITH_SYS_TIME
6291#include <sys/time.h> 7650#include <sys/time.h>
@@ -6305,28 +7664,55 @@ static struct timeval x; x.tv_sec = x.tv_usec;
6305 return 0; 7664 return 0;
6306} 7665}
6307_ACEOF 7666_ACEOF
6308if ac_fn_c_try_compile "$LINENO"; then : 7667rm -f conftest.$ac_objext
7668if { (ac_try="$ac_compile"
7669case "(($ac_try" in
7670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7671 *) ac_try_echo=$ac_try;;
7672esac
7673eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7674$as_echo "$ac_try_echo") >&5
7675 (eval "$ac_compile") 2>conftest.er1
7676 ac_status=$?
7677 grep -v '^ *+' conftest.er1 >conftest.err
7678 rm -f conftest.er1
7679 cat conftest.err >&5
7680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } && {
7682 test -z "$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest.$ac_objext; then
6309 emacs_cv_struct_timeval=yes 7685 emacs_cv_struct_timeval=yes
6310else 7686else
6311 emacs_cv_struct_timeval=no 7687 $as_echo "$as_me: failed program was:" >&5
7688sed 's/^/| /' conftest.$ac_ext >&5
7689
7690 emacs_cv_struct_timeval=no
6312fi 7691fi
7692
6313rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6314fi 7694fi
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5 7695{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6316$as_echo "$emacs_cv_struct_timeval" >&6; } 7696$as_echo "$emacs_cv_struct_timeval" >&6; }
6317HAVE_TIMEVAL=$emacs_cv_struct_timeval 7697HAVE_TIMEVAL=$emacs_cv_struct_timeval
6318if test $emacs_cv_struct_timeval = yes; then 7698if test $emacs_cv_struct_timeval = yes; then
6319 7699
6320$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h 7700cat >>confdefs.h <<\_ACEOF
7701#define HAVE_TIMEVAL 1
7702_ACEOF
6321 7703
6322fi 7704fi
6323 7705
6324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5 7706{ $as_echo "$as_me:$LINENO: checking for struct exception" >&5
6325$as_echo_n "checking for struct exception... " >&6; } 7707$as_echo_n "checking for struct exception... " >&6; }
6326if test "${emacs_cv_struct_exception+set}" = set; then : 7708if test "${emacs_cv_struct_exception+set}" = set; then
6327 $as_echo_n "(cached) " >&6 7709 $as_echo_n "(cached) " >&6
6328else 7710else
6329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7711 cat >conftest.$ac_ext <<_ACEOF
7712/* confdefs.h. */
7713_ACEOF
7714cat confdefs.h >>conftest.$ac_ext
7715cat >>conftest.$ac_ext <<_ACEOF
6330/* end confdefs.h. */ 7716/* end confdefs.h. */
6331#include <math.h> 7717#include <math.h>
6332int 7718int
@@ -6337,44 +7723,248 @@ static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6337 return 0; 7723 return 0;
6338} 7724}
6339_ACEOF 7725_ACEOF
6340if ac_fn_c_try_compile "$LINENO"; then : 7726rm -f conftest.$ac_objext
7727if { (ac_try="$ac_compile"
7728case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7731esac
7732eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7733$as_echo "$ac_try_echo") >&5
7734 (eval "$ac_compile") 2>conftest.er1
7735 ac_status=$?
7736 grep -v '^ *+' conftest.er1 >conftest.err
7737 rm -f conftest.er1
7738 cat conftest.err >&5
7739 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7740 (exit $ac_status); } && {
7741 test -z "$ac_c_werror_flag" ||
7742 test ! -s conftest.err
7743 } && test -s conftest.$ac_objext; then
6341 emacs_cv_struct_exception=yes 7744 emacs_cv_struct_exception=yes
6342else 7745else
6343 emacs_cv_struct_exception=no 7746 $as_echo "$as_me: failed program was:" >&5
7747sed 's/^/| /' conftest.$ac_ext >&5
7748
7749 emacs_cv_struct_exception=no
6344fi 7750fi
7751
6345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7752rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6346fi 7753fi
6347{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5 7754{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6348$as_echo "$emacs_cv_struct_exception" >&6; } 7755$as_echo "$emacs_cv_struct_exception" >&6; }
6349HAVE_EXCEPTION=$emacs_cv_struct_exception 7756HAVE_EXCEPTION=$emacs_cv_struct_exception
6350if test $emacs_cv_struct_exception != yes; then 7757if test $emacs_cv_struct_exception != yes; then
6351 7758
6352$as_echo "#define NO_MATHERR 1" >>confdefs.h 7759cat >>confdefs.h <<\_ACEOF
7760#define NO_MATHERR 1
7761_ACEOF
6353 7762
6354fi 7763fi
6355 7764
7765
6356for ac_header in sys/socket.h 7766for ac_header in sys/socket.h
6357do : 7767do
6358 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 7768as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6359if test "x$ac_cv_header_sys_socket_h" = x""yes; then : 7769if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7770 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7771$as_echo_n "checking for $ac_header... " >&6; }
7772if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7773 $as_echo_n "(cached) " >&6
7774fi
7775ac_res=`eval 'as_val=${'$as_ac_Header'}
7776 $as_echo "$as_val"'`
7777 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7778$as_echo "$ac_res" >&6; }
7779else
7780 # Is the header compilable?
7781{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7782$as_echo_n "checking $ac_header usability... " >&6; }
7783cat >conftest.$ac_ext <<_ACEOF
7784/* confdefs.h. */
7785_ACEOF
7786cat confdefs.h >>conftest.$ac_ext
7787cat >>conftest.$ac_ext <<_ACEOF
7788/* end confdefs.h. */
7789$ac_includes_default
7790#include <$ac_header>
7791_ACEOF
7792rm -f conftest.$ac_objext
7793if { (ac_try="$ac_compile"
7794case "(($ac_try" in
7795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7796 *) ac_try_echo=$ac_try;;
7797esac
7798eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7799$as_echo "$ac_try_echo") >&5
7800 (eval "$ac_compile") 2>conftest.er1
7801 ac_status=$?
7802 grep -v '^ *+' conftest.er1 >conftest.err
7803 rm -f conftest.er1
7804 cat conftest.err >&5
7805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7806 (exit $ac_status); } && {
7807 test -z "$ac_c_werror_flag" ||
7808 test ! -s conftest.err
7809 } && test -s conftest.$ac_objext; then
7810 ac_header_compiler=yes
7811else
7812 $as_echo "$as_me: failed program was:" >&5
7813sed 's/^/| /' conftest.$ac_ext >&5
7814
7815 ac_header_compiler=no
7816fi
7817
7818rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7820$as_echo "$ac_header_compiler" >&6; }
7821
7822# Is the header present?
7823{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7824$as_echo_n "checking $ac_header presence... " >&6; }
7825cat >conftest.$ac_ext <<_ACEOF
7826/* confdefs.h. */
7827_ACEOF
7828cat confdefs.h >>conftest.$ac_ext
7829cat >>conftest.$ac_ext <<_ACEOF
7830/* end confdefs.h. */
7831#include <$ac_header>
7832_ACEOF
7833if { (ac_try="$ac_cpp conftest.$ac_ext"
7834case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837esac
7838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7839$as_echo "$ac_try_echo") >&5
7840 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7841 ac_status=$?
7842 grep -v '^ *+' conftest.er1 >conftest.err
7843 rm -f conftest.er1
7844 cat conftest.err >&5
7845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7846 (exit $ac_status); } >/dev/null && {
7847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7848 test ! -s conftest.err
7849 }; then
7850 ac_header_preproc=yes
7851else
7852 $as_echo "$as_me: failed program was:" >&5
7853sed 's/^/| /' conftest.$ac_ext >&5
7854
7855 ac_header_preproc=no
7856fi
7857
7858rm -f conftest.err conftest.$ac_ext
7859{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7860$as_echo "$ac_header_preproc" >&6; }
7861
7862# So? What about this header?
7863case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7864 yes:no: )
7865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7866$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7868$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7869 ac_header_preproc=yes
7870 ;;
7871 no:yes:* )
7872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7873$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7874 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7875$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7876 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7877$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7878 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7879$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7881$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7883$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7884
7885 ;;
7886esac
7887{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7888$as_echo_n "checking for $ac_header... " >&6; }
7889if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7890 $as_echo_n "(cached) " >&6
7891else
7892 eval "$as_ac_Header=\$ac_header_preproc"
7893fi
7894ac_res=`eval 'as_val=${'$as_ac_Header'}
7895 $as_echo "$as_val"'`
7896 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7897$as_echo "$ac_res" >&6; }
7898
7899fi
7900if test `eval 'as_val=${'$as_ac_Header'}
7901 $as_echo "$as_val"'` = yes; then
6360 cat >>confdefs.h <<_ACEOF 7902 cat >>confdefs.h <<_ACEOF
6361#define HAVE_SYS_SOCKET_H 1 7903#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6362_ACEOF 7904_ACEOF
6363 7905
6364fi 7906fi
6365 7907
6366done 7908done
6367 7909
7910
6368for ac_header in net/if.h 7911for ac_header in net/if.h
6369do : 7912do
6370 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 7913as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7914{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7915$as_echo_n "checking for $ac_header... " >&6; }
7916if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7917 $as_echo_n "(cached) " >&6
7918else
7919 cat >conftest.$ac_ext <<_ACEOF
7920/* confdefs.h. */
7921_ACEOF
7922cat confdefs.h >>conftest.$ac_ext
7923cat >>conftest.$ac_ext <<_ACEOF
7924/* end confdefs.h. */
7925$ac_includes_default
6371#if HAVE_SYS_SOCKET_H 7926#if HAVE_SYS_SOCKET_H
6372#include <sys/socket.h> 7927#include <sys/socket.h>
6373#endif 7928#endif
6374" 7929
6375if test "x$ac_cv_header_net_if_h" = x""yes; then : 7930#include <$ac_header>
7931_ACEOF
7932rm -f conftest.$ac_objext
7933if { (ac_try="$ac_compile"
7934case "(($ac_try" in
7935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7936 *) ac_try_echo=$ac_try;;
7937esac
7938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7939$as_echo "$ac_try_echo") >&5
7940 (eval "$ac_compile") 2>conftest.er1
7941 ac_status=$?
7942 grep -v '^ *+' conftest.er1 >conftest.err
7943 rm -f conftest.er1
7944 cat conftest.err >&5
7945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } && {
7947 test -z "$ac_c_werror_flag" ||
7948 test ! -s conftest.err
7949 } && test -s conftest.$ac_objext; then
7950 eval "$as_ac_Header=yes"
7951else
7952 $as_echo "$as_me: failed program was:" >&5
7953sed 's/^/| /' conftest.$ac_ext >&5
7954
7955 eval "$as_ac_Header=no"
7956fi
7957
7958rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7959fi
7960ac_res=`eval 'as_val=${'$as_ac_Header'}
7961 $as_echo "$as_val"'`
7962 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7963$as_echo "$ac_res" >&6; }
7964if test `eval 'as_val=${'$as_ac_Header'}
7965 $as_echo "$as_val"'` = yes; then
6376 cat >>confdefs.h <<_ACEOF 7966 cat >>confdefs.h <<_ACEOF
6377#define HAVE_NET_IF_H 1 7967#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6378_ACEOF 7968_ACEOF
6379 7969
6380fi 7970fi
@@ -6382,12 +7972,16 @@ fi
6382done 7972done
6383 7973
6384 7974
6385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 7975{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6386$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 7976$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6387if test "${ac_cv_struct_tm+set}" = set; then : 7977if test "${ac_cv_struct_tm+set}" = set; then
6388 $as_echo_n "(cached) " >&6 7978 $as_echo_n "(cached) " >&6
6389else 7979else
6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7980 cat >conftest.$ac_ext <<_ACEOF
7981/* confdefs.h. */
7982_ACEOF
7983cat confdefs.h >>conftest.$ac_ext
7984cat >>conftest.$ac_ext <<_ACEOF
6391/* end confdefs.h. */ 7985/* end confdefs.h. */
6392#include <sys/types.h> 7986#include <sys/types.h>
6393#include <time.h> 7987#include <time.h>
@@ -6402,26 +7996,146 @@ struct tm tm;
6402 return 0; 7996 return 0;
6403} 7997}
6404_ACEOF 7998_ACEOF
6405if ac_fn_c_try_compile "$LINENO"; then : 7999rm -f conftest.$ac_objext
8000if { (ac_try="$ac_compile"
8001case "(($ac_try" in
8002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8003 *) ac_try_echo=$ac_try;;
8004esac
8005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8006$as_echo "$ac_try_echo") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8008 ac_status=$?
8009 grep -v '^ *+' conftest.er1 >conftest.err
8010 rm -f conftest.er1
8011 cat conftest.err >&5
8012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest.$ac_objext; then
6406 ac_cv_struct_tm=time.h 8017 ac_cv_struct_tm=time.h
6407else 8018else
6408 ac_cv_struct_tm=sys/time.h 8019 $as_echo "$as_me: failed program was:" >&5
8020sed 's/^/| /' conftest.$ac_ext >&5
8021
8022 ac_cv_struct_tm=sys/time.h
6409fi 8023fi
8024
6410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8025rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6411fi 8026fi
6412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 8027{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6413$as_echo "$ac_cv_struct_tm" >&6; } 8028$as_echo "$ac_cv_struct_tm" >&6; }
6414if test $ac_cv_struct_tm = sys/time.h; then 8029if test $ac_cv_struct_tm = sys/time.h; then
6415 8030
6416$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 8031cat >>confdefs.h <<\_ACEOF
8032#define TM_IN_SYS_TIME 1
8033_ACEOF
6417 8034
6418fi 8035fi
6419 8036
6420ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 8037{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8038$as_echo_n "checking for struct tm.tm_zone... " >&6; }
8039if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8040 $as_echo_n "(cached) " >&6
8041else
8042 cat >conftest.$ac_ext <<_ACEOF
8043/* confdefs.h. */
8044_ACEOF
8045cat confdefs.h >>conftest.$ac_ext
8046cat >>conftest.$ac_ext <<_ACEOF
8047/* end confdefs.h. */
8048#include <sys/types.h>
6421#include <$ac_cv_struct_tm> 8049#include <$ac_cv_struct_tm>
6422 8050
6423" 8051
6424if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : 8052int
8053main ()
8054{
8055static struct tm ac_aggr;
8056if (ac_aggr.tm_zone)
8057return 0;
8058 ;
8059 return 0;
8060}
8061_ACEOF
8062rm -f conftest.$ac_objext
8063if { (ac_try="$ac_compile"
8064case "(($ac_try" in
8065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8067esac
8068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8069$as_echo "$ac_try_echo") >&5
8070 (eval "$ac_compile") 2>conftest.er1
8071 ac_status=$?
8072 grep -v '^ *+' conftest.er1 >conftest.err
8073 rm -f conftest.er1
8074 cat conftest.err >&5
8075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); } && {
8077 test -z "$ac_c_werror_flag" ||
8078 test ! -s conftest.err
8079 } && test -s conftest.$ac_objext; then
8080 ac_cv_member_struct_tm_tm_zone=yes
8081else
8082 $as_echo "$as_me: failed program was:" >&5
8083sed 's/^/| /' conftest.$ac_ext >&5
8084
8085 cat >conftest.$ac_ext <<_ACEOF
8086/* confdefs.h. */
8087_ACEOF
8088cat confdefs.h >>conftest.$ac_ext
8089cat >>conftest.$ac_ext <<_ACEOF
8090/* end confdefs.h. */
8091#include <sys/types.h>
8092#include <$ac_cv_struct_tm>
8093
8094
8095int
8096main ()
8097{
8098static struct tm ac_aggr;
8099if (sizeof ac_aggr.tm_zone)
8100return 0;
8101 ;
8102 return 0;
8103}
8104_ACEOF
8105rm -f conftest.$ac_objext
8106if { (ac_try="$ac_compile"
8107case "(($ac_try" in
8108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8109 *) ac_try_echo=$ac_try;;
8110esac
8111eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8112$as_echo "$ac_try_echo") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest.$ac_objext; then
8123 ac_cv_member_struct_tm_tm_zone=yes
8124else
8125 $as_echo "$as_me: failed program was:" >&5
8126sed 's/^/| /' conftest.$ac_ext >&5
8127
8128 ac_cv_member_struct_tm_tm_zone=no
8129fi
8130
8131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132fi
8133
8134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8135fi
8136{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8137$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8138if test $ac_cv_member_struct_tm_tm_zone = yes; then
6425 8139
6426cat >>confdefs.h <<_ACEOF 8140cat >>confdefs.h <<_ACEOF
6427#define HAVE_STRUCT_TM_TM_ZONE 1 8141#define HAVE_STRUCT_TM_TM_ZONE 1
@@ -6432,27 +8146,91 @@ fi
6432 8146
6433if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 8147if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6434 8148
6435$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 8149cat >>confdefs.h <<\_ACEOF
8150#define HAVE_TM_ZONE 1
8151_ACEOF
6436 8152
6437else 8153else
6438 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 8154 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6439" 8155$as_echo_n "checking whether tzname is declared... " >&6; }
6440if test "x$ac_cv_have_decl_tzname" = x""yes; then : 8156if test "${ac_cv_have_decl_tzname+set}" = set; then
6441 ac_have_decl=1 8157 $as_echo_n "(cached) " >&6
6442else 8158else
6443 ac_have_decl=0 8159 cat >conftest.$ac_ext <<_ACEOF
8160/* confdefs.h. */
8161_ACEOF
8162cat confdefs.h >>conftest.$ac_ext
8163cat >>conftest.$ac_ext <<_ACEOF
8164/* end confdefs.h. */
8165#include <time.h>
8166
8167int
8168main ()
8169{
8170#ifndef tzname
8171 (void) tzname;
8172#endif
8173
8174 ;
8175 return 0;
8176}
8177_ACEOF
8178rm -f conftest.$ac_objext
8179if { (ac_try="$ac_compile"
8180case "(($ac_try" in
8181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8182 *) ac_try_echo=$ac_try;;
8183esac
8184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8185$as_echo "$ac_try_echo") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8187 ac_status=$?
8188 grep -v '^ *+' conftest.er1 >conftest.err
8189 rm -f conftest.er1
8190 cat conftest.err >&5
8191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.$ac_objext; then
8196 ac_cv_have_decl_tzname=yes
8197else
8198 $as_echo "$as_me: failed program was:" >&5
8199sed 's/^/| /' conftest.$ac_ext >&5
8200
8201 ac_cv_have_decl_tzname=no
8202fi
8203
8204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6444fi 8205fi
8206{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8207$as_echo "$ac_cv_have_decl_tzname" >&6; }
8208if test $ac_cv_have_decl_tzname = yes; then
6445 8209
6446cat >>confdefs.h <<_ACEOF 8210cat >>confdefs.h <<_ACEOF
6447#define HAVE_DECL_TZNAME $ac_have_decl 8211#define HAVE_DECL_TZNAME 1
6448_ACEOF 8212_ACEOF
6449 8213
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 8214
8215else
8216 cat >>confdefs.h <<_ACEOF
8217#define HAVE_DECL_TZNAME 0
8218_ACEOF
8219
8220
8221fi
8222
8223
8224 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
6451$as_echo_n "checking for tzname... " >&6; } 8225$as_echo_n "checking for tzname... " >&6; }
6452if test "${ac_cv_var_tzname+set}" = set; then : 8226if test "${ac_cv_var_tzname+set}" = set; then
6453 $as_echo_n "(cached) " >&6 8227 $as_echo_n "(cached) " >&6
6454else 8228else
6455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8229 cat >conftest.$ac_ext <<_ACEOF
8230/* confdefs.h. */
8231_ACEOF
8232cat confdefs.h >>conftest.$ac_ext
8233cat >>conftest.$ac_ext <<_ACEOF
6456/* end confdefs.h. */ 8234/* end confdefs.h. */
6457#include <time.h> 8235#include <time.h>
6458#if !HAVE_DECL_TZNAME 8236#if !HAVE_DECL_TZNAME
@@ -6467,40 +8245,265 @@ return tzname[0][0];
6467 return 0; 8245 return 0;
6468} 8246}
6469_ACEOF 8247_ACEOF
6470if ac_fn_c_try_link "$LINENO"; then : 8248rm -f conftest.$ac_objext conftest$ac_exeext
8249if { (ac_try="$ac_link"
8250case "(($ac_try" in
8251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8253esac
8254eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8255$as_echo "$ac_try_echo") >&5
8256 (eval "$ac_link") 2>conftest.er1
8257 ac_status=$?
8258 grep -v '^ *+' conftest.er1 >conftest.err
8259 rm -f conftest.er1
8260 cat conftest.err >&5
8261 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); } && {
8263 test -z "$ac_c_werror_flag" ||
8264 test ! -s conftest.err
8265 } && test -s conftest$ac_exeext && {
8266 test "$cross_compiling" = yes ||
8267 $as_test_x conftest$ac_exeext
8268 }; then
6471 ac_cv_var_tzname=yes 8269 ac_cv_var_tzname=yes
6472else 8270else
6473 ac_cv_var_tzname=no 8271 $as_echo "$as_me: failed program was:" >&5
8272sed 's/^/| /' conftest.$ac_ext >&5
8273
8274 ac_cv_var_tzname=no
6474fi 8275fi
6475rm -f core conftest.err conftest.$ac_objext \ 8276
6476 conftest$ac_exeext conftest.$ac_ext 8277rm -rf conftest.dSYM
8278rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8279 conftest$ac_exeext conftest.$ac_ext
6477fi 8280fi
6478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 8281{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6479$as_echo "$ac_cv_var_tzname" >&6; } 8282$as_echo "$ac_cv_var_tzname" >&6; }
6480 if test $ac_cv_var_tzname = yes; then 8283 if test $ac_cv_var_tzname = yes; then
6481 8284
6482$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 8285cat >>confdefs.h <<\_ACEOF
8286#define HAVE_TZNAME 1
8287_ACEOF
6483 8288
6484 fi 8289 fi
6485fi 8290fi
6486 8291
6487ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 8292{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6488" 8293$as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
6489if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : 8294if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8295 $as_echo_n "(cached) " >&6
8296else
8297 cat >conftest.$ac_ext <<_ACEOF
8298/* confdefs.h. */
8299_ACEOF
8300cat confdefs.h >>conftest.$ac_ext
8301cat >>conftest.$ac_ext <<_ACEOF
8302/* end confdefs.h. */
8303#include <time.h>
8304
8305int
8306main ()
8307{
8308static struct tm ac_aggr;
8309if (ac_aggr.tm_gmtoff)
8310return 0;
8311 ;
8312 return 0;
8313}
8314_ACEOF
8315rm -f conftest.$ac_objext
8316if { (ac_try="$ac_compile"
8317case "(($ac_try" in
8318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8319 *) ac_try_echo=$ac_try;;
8320esac
8321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8322$as_echo "$ac_try_echo") >&5
8323 (eval "$ac_compile") 2>conftest.er1
8324 ac_status=$?
8325 grep -v '^ *+' conftest.er1 >conftest.err
8326 rm -f conftest.er1
8327 cat conftest.err >&5
8328 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8329 (exit $ac_status); } && {
8330 test -z "$ac_c_werror_flag" ||
8331 test ! -s conftest.err
8332 } && test -s conftest.$ac_objext; then
8333 ac_cv_member_struct_tm_tm_gmtoff=yes
8334else
8335 $as_echo "$as_me: failed program was:" >&5
8336sed 's/^/| /' conftest.$ac_ext >&5
8337
8338 cat >conftest.$ac_ext <<_ACEOF
8339/* confdefs.h. */
8340_ACEOF
8341cat confdefs.h >>conftest.$ac_ext
8342cat >>conftest.$ac_ext <<_ACEOF
8343/* end confdefs.h. */
8344#include <time.h>
8345
8346int
8347main ()
8348{
8349static struct tm ac_aggr;
8350if (sizeof ac_aggr.tm_gmtoff)
8351return 0;
8352 ;
8353 return 0;
8354}
8355_ACEOF
8356rm -f conftest.$ac_objext
8357if { (ac_try="$ac_compile"
8358case "(($ac_try" in
8359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8360 *) ac_try_echo=$ac_try;;
8361esac
8362eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8363$as_echo "$ac_try_echo") >&5
8364 (eval "$ac_compile") 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } && {
8371 test -z "$ac_c_werror_flag" ||
8372 test ! -s conftest.err
8373 } && test -s conftest.$ac_objext; then
8374 ac_cv_member_struct_tm_tm_gmtoff=yes
8375else
8376 $as_echo "$as_me: failed program was:" >&5
8377sed 's/^/| /' conftest.$ac_ext >&5
8378
8379 ac_cv_member_struct_tm_tm_gmtoff=no
8380fi
8381
8382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8383fi
8384
8385rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8386fi
8387{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8388$as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8389if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
6490 8390
6491$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h 8391cat >>confdefs.h <<\_ACEOF
8392#define HAVE_TM_GMTOFF 1
8393_ACEOF
6492 8394
6493fi 8395fi
6494 8396
6495ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default 8397{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8398$as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8399if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8400 $as_echo_n "(cached) " >&6
8401else
8402 cat >conftest.$ac_ext <<_ACEOF
8403/* confdefs.h. */
8404_ACEOF
8405cat confdefs.h >>conftest.$ac_ext
8406cat >>conftest.$ac_ext <<_ACEOF
8407/* end confdefs.h. */
8408$ac_includes_default
6496#if HAVE_SYS_SOCKET_H 8409#if HAVE_SYS_SOCKET_H
6497#include <sys/socket.h> 8410#include <sys/socket.h>
6498#endif 8411#endif
6499#if HAVE_NET_IF_H 8412#if HAVE_NET_IF_H
6500#include <net/if.h> 8413#include <net/if.h>
6501#endif 8414#endif
6502" 8415
6503if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then : 8416int
8417main ()
8418{
8419static struct ifreq ac_aggr;
8420if (ac_aggr.ifr_flags)
8421return 0;
8422 ;
8423 return 0;
8424}
8425_ACEOF
8426rm -f conftest.$ac_objext
8427if { (ac_try="$ac_compile"
8428case "(($ac_try" in
8429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8430 *) ac_try_echo=$ac_try;;
8431esac
8432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8433$as_echo "$ac_try_echo") >&5
8434 (eval "$ac_compile") 2>conftest.er1
8435 ac_status=$?
8436 grep -v '^ *+' conftest.er1 >conftest.err
8437 rm -f conftest.er1
8438 cat conftest.err >&5
8439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8440 (exit $ac_status); } && {
8441 test -z "$ac_c_werror_flag" ||
8442 test ! -s conftest.err
8443 } && test -s conftest.$ac_objext; then
8444 ac_cv_member_struct_ifreq_ifr_flags=yes
8445else
8446 $as_echo "$as_me: failed program was:" >&5
8447sed 's/^/| /' conftest.$ac_ext >&5
8448
8449 cat >conftest.$ac_ext <<_ACEOF
8450/* confdefs.h. */
8451_ACEOF
8452cat confdefs.h >>conftest.$ac_ext
8453cat >>conftest.$ac_ext <<_ACEOF
8454/* end confdefs.h. */
8455$ac_includes_default
8456#if HAVE_SYS_SOCKET_H
8457#include <sys/socket.h>
8458#endif
8459#if HAVE_NET_IF_H
8460#include <net/if.h>
8461#endif
8462
8463int
8464main ()
8465{
8466static struct ifreq ac_aggr;
8467if (sizeof ac_aggr.ifr_flags)
8468return 0;
8469 ;
8470 return 0;
8471}
8472_ACEOF
8473rm -f conftest.$ac_objext
8474if { (ac_try="$ac_compile"
8475case "(($ac_try" in
8476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8477 *) ac_try_echo=$ac_try;;
8478esac
8479eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8480$as_echo "$ac_try_echo") >&5
8481 (eval "$ac_compile") 2>conftest.er1
8482 ac_status=$?
8483 grep -v '^ *+' conftest.er1 >conftest.err
8484 rm -f conftest.er1
8485 cat conftest.err >&5
8486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } && {
8488 test -z "$ac_c_werror_flag" ||
8489 test ! -s conftest.err
8490 } && test -s conftest.$ac_objext; then
8491 ac_cv_member_struct_ifreq_ifr_flags=yes
8492else
8493 $as_echo "$as_me: failed program was:" >&5
8494sed 's/^/| /' conftest.$ac_ext >&5
8495
8496 ac_cv_member_struct_ifreq_ifr_flags=no
8497fi
8498
8499rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8500fi
8501
8502rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8503fi
8504{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8505$as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8506if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6504 8507
6505cat >>confdefs.h <<_ACEOF 8508cat >>confdefs.h <<_ACEOF
6506#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 8509#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
@@ -6508,15 +8511,116 @@ _ACEOF
6508 8511
6509 8512
6510fi 8513fi
6511ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default 8514{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8515$as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8516if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8517 $as_echo_n "(cached) " >&6
8518else
8519 cat >conftest.$ac_ext <<_ACEOF
8520/* confdefs.h. */
8521_ACEOF
8522cat confdefs.h >>conftest.$ac_ext
8523cat >>conftest.$ac_ext <<_ACEOF
8524/* end confdefs.h. */
8525$ac_includes_default
6512#if HAVE_SYS_SOCKET_H 8526#if HAVE_SYS_SOCKET_H
6513#include <sys/socket.h> 8527#include <sys/socket.h>
6514#endif 8528#endif
6515#if HAVE_NET_IF_H 8529#if HAVE_NET_IF_H
6516#include <net/if.h> 8530#include <net/if.h>
6517#endif 8531#endif
6518" 8532
6519if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then : 8533int
8534main ()
8535{
8536static struct ifreq ac_aggr;
8537if (ac_aggr.ifr_hwaddr)
8538return 0;
8539 ;
8540 return 0;
8541}
8542_ACEOF
8543rm -f conftest.$ac_objext
8544if { (ac_try="$ac_compile"
8545case "(($ac_try" in
8546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8547 *) ac_try_echo=$ac_try;;
8548esac
8549eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8550$as_echo "$ac_try_echo") >&5
8551 (eval "$ac_compile") 2>conftest.er1
8552 ac_status=$?
8553 grep -v '^ *+' conftest.er1 >conftest.err
8554 rm -f conftest.er1
8555 cat conftest.err >&5
8556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); } && {
8558 test -z "$ac_c_werror_flag" ||
8559 test ! -s conftest.err
8560 } && test -s conftest.$ac_objext; then
8561 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8562else
8563 $as_echo "$as_me: failed program was:" >&5
8564sed 's/^/| /' conftest.$ac_ext >&5
8565
8566 cat >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
8573#if HAVE_SYS_SOCKET_H
8574#include <sys/socket.h>
8575#endif
8576#if HAVE_NET_IF_H
8577#include <net/if.h>
8578#endif
8579
8580int
8581main ()
8582{
8583static struct ifreq ac_aggr;
8584if (sizeof ac_aggr.ifr_hwaddr)
8585return 0;
8586 ;
8587 return 0;
8588}
8589_ACEOF
8590rm -f conftest.$ac_objext
8591if { (ac_try="$ac_compile"
8592case "(($ac_try" in
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8595esac
8596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8597$as_echo "$ac_try_echo") >&5
8598 (eval "$ac_compile") 2>conftest.er1
8599 ac_status=$?
8600 grep -v '^ *+' conftest.er1 >conftest.err
8601 rm -f conftest.er1
8602 cat conftest.err >&5
8603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8604 (exit $ac_status); } && {
8605 test -z "$ac_c_werror_flag" ||
8606 test ! -s conftest.err
8607 } && test -s conftest.$ac_objext; then
8608 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8609else
8610 $as_echo "$as_me: failed program was:" >&5
8611sed 's/^/| /' conftest.$ac_ext >&5
8612
8613 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8614fi
8615
8616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617fi
8618
8619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8620fi
8621{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8622$as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8623if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6520 8624
6521cat >>confdefs.h <<_ACEOF 8625cat >>confdefs.h <<_ACEOF
6522#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 8626#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
@@ -6524,15 +8628,116 @@ _ACEOF
6524 8628
6525 8629
6526fi 8630fi
6527ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default 8631{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8632$as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8633if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8634 $as_echo_n "(cached) " >&6
8635else
8636 cat >conftest.$ac_ext <<_ACEOF
8637/* confdefs.h. */
8638_ACEOF
8639cat confdefs.h >>conftest.$ac_ext
8640cat >>conftest.$ac_ext <<_ACEOF
8641/* end confdefs.h. */
8642$ac_includes_default
8643#if HAVE_SYS_SOCKET_H
8644#include <sys/socket.h>
8645#endif
8646#if HAVE_NET_IF_H
8647#include <net/if.h>
8648#endif
8649
8650int
8651main ()
8652{
8653static struct ifreq ac_aggr;
8654if (ac_aggr.ifr_netmask)
8655return 0;
8656 ;
8657 return 0;
8658}
8659_ACEOF
8660rm -f conftest.$ac_objext
8661if { (ac_try="$ac_compile"
8662case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665esac
8666eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8667$as_echo "$ac_try_echo") >&5
8668 (eval "$ac_compile") 2>conftest.er1
8669 ac_status=$?
8670 grep -v '^ *+' conftest.er1 >conftest.err
8671 rm -f conftest.er1
8672 cat conftest.err >&5
8673 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8674 (exit $ac_status); } && {
8675 test -z "$ac_c_werror_flag" ||
8676 test ! -s conftest.err
8677 } && test -s conftest.$ac_objext; then
8678 ac_cv_member_struct_ifreq_ifr_netmask=yes
8679else
8680 $as_echo "$as_me: failed program was:" >&5
8681sed 's/^/| /' conftest.$ac_ext >&5
8682
8683 cat >conftest.$ac_ext <<_ACEOF
8684/* confdefs.h. */
8685_ACEOF
8686cat confdefs.h >>conftest.$ac_ext
8687cat >>conftest.$ac_ext <<_ACEOF
8688/* end confdefs.h. */
8689$ac_includes_default
6528#if HAVE_SYS_SOCKET_H 8690#if HAVE_SYS_SOCKET_H
6529#include <sys/socket.h> 8691#include <sys/socket.h>
6530#endif 8692#endif
6531#if HAVE_NET_IF_H 8693#if HAVE_NET_IF_H
6532#include <net/if.h> 8694#include <net/if.h>
6533#endif 8695#endif
6534" 8696
6535if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then : 8697int
8698main ()
8699{
8700static struct ifreq ac_aggr;
8701if (sizeof ac_aggr.ifr_netmask)
8702return 0;
8703 ;
8704 return 0;
8705}
8706_ACEOF
8707rm -f conftest.$ac_objext
8708if { (ac_try="$ac_compile"
8709case "(($ac_try" in
8710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8711 *) ac_try_echo=$ac_try;;
8712esac
8713eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8714$as_echo "$ac_try_echo") >&5
8715 (eval "$ac_compile") 2>conftest.er1
8716 ac_status=$?
8717 grep -v '^ *+' conftest.er1 >conftest.err
8718 rm -f conftest.er1
8719 cat conftest.err >&5
8720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8721 (exit $ac_status); } && {
8722 test -z "$ac_c_werror_flag" ||
8723 test ! -s conftest.err
8724 } && test -s conftest.$ac_objext; then
8725 ac_cv_member_struct_ifreq_ifr_netmask=yes
8726else
8727 $as_echo "$as_me: failed program was:" >&5
8728sed 's/^/| /' conftest.$ac_ext >&5
8729
8730 ac_cv_member_struct_ifreq_ifr_netmask=no
8731fi
8732
8733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8734fi
8735
8736rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8737fi
8738{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8739$as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8740if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6536 8741
6537cat >>confdefs.h <<_ACEOF 8742cat >>confdefs.h <<_ACEOF
6538#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 8743#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
@@ -6540,15 +8745,116 @@ _ACEOF
6540 8745
6541 8746
6542fi 8747fi
6543ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default 8748{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8749$as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8750if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8751 $as_echo_n "(cached) " >&6
8752else
8753 cat >conftest.$ac_ext <<_ACEOF
8754/* confdefs.h. */
8755_ACEOF
8756cat confdefs.h >>conftest.$ac_ext
8757cat >>conftest.$ac_ext <<_ACEOF
8758/* end confdefs.h. */
8759$ac_includes_default
6544#if HAVE_SYS_SOCKET_H 8760#if HAVE_SYS_SOCKET_H
6545#include <sys/socket.h> 8761#include <sys/socket.h>
6546#endif 8762#endif
6547#if HAVE_NET_IF_H 8763#if HAVE_NET_IF_H
6548#include <net/if.h> 8764#include <net/if.h>
6549#endif 8765#endif
6550" 8766
6551if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then : 8767int
8768main ()
8769{
8770static struct ifreq ac_aggr;
8771if (ac_aggr.ifr_broadaddr)
8772return 0;
8773 ;
8774 return 0;
8775}
8776_ACEOF
8777rm -f conftest.$ac_objext
8778if { (ac_try="$ac_compile"
8779case "(($ac_try" in
8780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8781 *) ac_try_echo=$ac_try;;
8782esac
8783eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8784$as_echo "$ac_try_echo") >&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 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } && {
8792 test -z "$ac_c_werror_flag" ||
8793 test ! -s conftest.err
8794 } && test -s conftest.$ac_objext; then
8795 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8796else
8797 $as_echo "$as_me: failed program was:" >&5
8798sed 's/^/| /' conftest.$ac_ext >&5
8799
8800 cat >conftest.$ac_ext <<_ACEOF
8801/* confdefs.h. */
8802_ACEOF
8803cat confdefs.h >>conftest.$ac_ext
8804cat >>conftest.$ac_ext <<_ACEOF
8805/* end confdefs.h. */
8806$ac_includes_default
8807#if HAVE_SYS_SOCKET_H
8808#include <sys/socket.h>
8809#endif
8810#if HAVE_NET_IF_H
8811#include <net/if.h>
8812#endif
8813
8814int
8815main ()
8816{
8817static struct ifreq ac_aggr;
8818if (sizeof ac_aggr.ifr_broadaddr)
8819return 0;
8820 ;
8821 return 0;
8822}
8823_ACEOF
8824rm -f conftest.$ac_objext
8825if { (ac_try="$ac_compile"
8826case "(($ac_try" in
8827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8828 *) ac_try_echo=$ac_try;;
8829esac
8830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8831$as_echo "$ac_try_echo") >&5
8832 (eval "$ac_compile") 2>conftest.er1
8833 ac_status=$?
8834 grep -v '^ *+' conftest.er1 >conftest.err
8835 rm -f conftest.er1
8836 cat conftest.err >&5
8837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838 (exit $ac_status); } && {
8839 test -z "$ac_c_werror_flag" ||
8840 test ! -s conftest.err
8841 } && test -s conftest.$ac_objext; then
8842 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8843else
8844 $as_echo "$as_me: failed program was:" >&5
8845sed 's/^/| /' conftest.$ac_ext >&5
8846
8847 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8848fi
8849
8850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8851fi
8852
8853rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8854fi
8855{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8856$as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8857if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
6552 8858
6553cat >>confdefs.h <<_ACEOF 8859cat >>confdefs.h <<_ACEOF
6554#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 8860#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
@@ -6556,15 +8862,116 @@ _ACEOF
6556 8862
6557 8863
6558fi 8864fi
6559ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default 8865{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8866$as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8867if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8868 $as_echo_n "(cached) " >&6
8869else
8870 cat >conftest.$ac_ext <<_ACEOF
8871/* confdefs.h. */
8872_ACEOF
8873cat confdefs.h >>conftest.$ac_ext
8874cat >>conftest.$ac_ext <<_ACEOF
8875/* end confdefs.h. */
8876$ac_includes_default
6560#if HAVE_SYS_SOCKET_H 8877#if HAVE_SYS_SOCKET_H
6561#include <sys/socket.h> 8878#include <sys/socket.h>
6562#endif 8879#endif
6563#if HAVE_NET_IF_H 8880#if HAVE_NET_IF_H
6564#include <net/if.h> 8881#include <net/if.h>
6565#endif 8882#endif
6566" 8883
6567if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then : 8884int
8885main ()
8886{
8887static struct ifreq ac_aggr;
8888if (ac_aggr.ifr_addr)
8889return 0;
8890 ;
8891 return 0;
8892}
8893_ACEOF
8894rm -f conftest.$ac_objext
8895if { (ac_try="$ac_compile"
8896case "(($ac_try" in
8897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8898 *) ac_try_echo=$ac_try;;
8899esac
8900eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8901$as_echo "$ac_try_echo") >&5
8902 (eval "$ac_compile") 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } && {
8909 test -z "$ac_c_werror_flag" ||
8910 test ! -s conftest.err
8911 } && test -s conftest.$ac_objext; then
8912 ac_cv_member_struct_ifreq_ifr_addr=yes
8913else
8914 $as_echo "$as_me: failed program was:" >&5
8915sed 's/^/| /' conftest.$ac_ext >&5
8916
8917 cat >conftest.$ac_ext <<_ACEOF
8918/* confdefs.h. */
8919_ACEOF
8920cat confdefs.h >>conftest.$ac_ext
8921cat >>conftest.$ac_ext <<_ACEOF
8922/* end confdefs.h. */
8923$ac_includes_default
8924#if HAVE_SYS_SOCKET_H
8925#include <sys/socket.h>
8926#endif
8927#if HAVE_NET_IF_H
8928#include <net/if.h>
8929#endif
8930
8931int
8932main ()
8933{
8934static struct ifreq ac_aggr;
8935if (sizeof ac_aggr.ifr_addr)
8936return 0;
8937 ;
8938 return 0;
8939}
8940_ACEOF
8941rm -f conftest.$ac_objext
8942if { (ac_try="$ac_compile"
8943case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946esac
8947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8948$as_echo "$ac_try_echo") >&5
8949 (eval "$ac_compile") 2>conftest.er1
8950 ac_status=$?
8951 grep -v '^ *+' conftest.er1 >conftest.err
8952 rm -f conftest.er1
8953 cat conftest.err >&5
8954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8955 (exit $ac_status); } && {
8956 test -z "$ac_c_werror_flag" ||
8957 test ! -s conftest.err
8958 } && test -s conftest.$ac_objext; then
8959 ac_cv_member_struct_ifreq_ifr_addr=yes
8960else
8961 $as_echo "$as_me: failed program was:" >&5
8962sed 's/^/| /' conftest.$ac_ext >&5
8963
8964 ac_cv_member_struct_ifreq_ifr_addr=no
8965fi
8966
8967rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8968fi
8969
8970rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8971fi
8972{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8973$as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8974if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
6568 8975
6569cat >>confdefs.h <<_ACEOF 8976cat >>confdefs.h <<_ACEOF
6570#define HAVE_STRUCT_IFREQ_IFR_ADDR 1 8977#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
@@ -6575,28 +8982,36 @@ fi
6575 8982
6576 8983
6577 8984
6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 8985{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6579$as_echo_n "checking for function prototypes... " >&6; } 8986$as_echo_n "checking for function prototypes... " >&6; }
6580if test "$ac_cv_prog_cc_c89" != no; then 8987if test "$ac_cv_prog_cc_c89" != no; then
6581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8988 { $as_echo "$as_me:$LINENO: result: yes" >&5
6582$as_echo "yes" >&6; } 8989$as_echo "yes" >&6; }
6583 8990
6584$as_echo "#define PROTOTYPES 1" >>confdefs.h 8991cat >>confdefs.h <<\_ACEOF
8992#define PROTOTYPES 1
8993_ACEOF
6585 8994
6586 8995
6587$as_echo "#define __PROTOTYPES 1" >>confdefs.h 8996cat >>confdefs.h <<\_ACEOF
8997#define __PROTOTYPES 1
8998_ACEOF
6588 8999
6589else 9000else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9001 { $as_echo "$as_me:$LINENO: result: no" >&5
6591$as_echo "no" >&6; } 9002$as_echo "no" >&6; }
6592fi 9003fi
6593 9004
6594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 9005{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
6595$as_echo_n "checking for working volatile... " >&6; } 9006$as_echo_n "checking for working volatile... " >&6; }
6596if test "${ac_cv_c_volatile+set}" = set; then : 9007if test "${ac_cv_c_volatile+set}" = set; then
6597 $as_echo_n "(cached) " >&6 9008 $as_echo_n "(cached) " >&6
6598else 9009else
6599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9010 cat >conftest.$ac_ext <<_ACEOF
9011/* confdefs.h. */
9012_ACEOF
9013cat confdefs.h >>conftest.$ac_ext
9014cat >>conftest.$ac_ext <<_ACEOF
6600/* end confdefs.h. */ 9015/* end confdefs.h. */
6601 9016
6602int 9017int
@@ -6610,27 +9025,54 @@ return !x && !y;
6610 return 0; 9025 return 0;
6611} 9026}
6612_ACEOF 9027_ACEOF
6613if ac_fn_c_try_compile "$LINENO"; then : 9028rm -f conftest.$ac_objext
9029if { (ac_try="$ac_compile"
9030case "(($ac_try" in
9031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9032 *) ac_try_echo=$ac_try;;
9033esac
9034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9035$as_echo "$ac_try_echo") >&5
9036 (eval "$ac_compile") 2>conftest.er1
9037 ac_status=$?
9038 grep -v '^ *+' conftest.er1 >conftest.err
9039 rm -f conftest.er1
9040 cat conftest.err >&5
9041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9042 (exit $ac_status); } && {
9043 test -z "$ac_c_werror_flag" ||
9044 test ! -s conftest.err
9045 } && test -s conftest.$ac_objext; then
6614 ac_cv_c_volatile=yes 9046 ac_cv_c_volatile=yes
6615else 9047else
6616 ac_cv_c_volatile=no 9048 $as_echo "$as_me: failed program was:" >&5
9049sed 's/^/| /' conftest.$ac_ext >&5
9050
9051 ac_cv_c_volatile=no
6617fi 9052fi
9053
6618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619fi 9055fi
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 9056{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6621$as_echo "$ac_cv_c_volatile" >&6; } 9057$as_echo "$ac_cv_c_volatile" >&6; }
6622if test $ac_cv_c_volatile = no; then 9058if test $ac_cv_c_volatile = no; then
6623 9059
6624$as_echo "#define volatile /**/" >>confdefs.h 9060cat >>confdefs.h <<\_ACEOF
9061#define volatile /**/
9062_ACEOF
6625 9063
6626fi 9064fi
6627 9065
6628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 9066{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6629$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 9067$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6630if test "${ac_cv_c_const+set}" = set; then : 9068if test "${ac_cv_c_const+set}" = set; then
6631 $as_echo_n "(cached) " >&6 9069 $as_echo_n "(cached) " >&6
6632else 9070else
6633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9071 cat >conftest.$ac_ext <<_ACEOF
9072/* confdefs.h. */
9073_ACEOF
9074cat confdefs.h >>conftest.$ac_ext
9075cat >>conftest.$ac_ext <<_ACEOF
6634/* end confdefs.h. */ 9076/* end confdefs.h. */
6635 9077
6636int 9078int
@@ -6690,27 +9132,54 @@ main ()
6690 return 0; 9132 return 0;
6691} 9133}
6692_ACEOF 9134_ACEOF
6693if ac_fn_c_try_compile "$LINENO"; then : 9135rm -f conftest.$ac_objext
9136if { (ac_try="$ac_compile"
9137case "(($ac_try" in
9138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9139 *) ac_try_echo=$ac_try;;
9140esac
9141eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9142$as_echo "$ac_try_echo") >&5
9143 (eval "$ac_compile") 2>conftest.er1
9144 ac_status=$?
9145 grep -v '^ *+' conftest.er1 >conftest.err
9146 rm -f conftest.er1
9147 cat conftest.err >&5
9148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9149 (exit $ac_status); } && {
9150 test -z "$ac_c_werror_flag" ||
9151 test ! -s conftest.err
9152 } && test -s conftest.$ac_objext; then
6694 ac_cv_c_const=yes 9153 ac_cv_c_const=yes
6695else 9154else
6696 ac_cv_c_const=no 9155 $as_echo "$as_me: failed program was:" >&5
9156sed 's/^/| /' conftest.$ac_ext >&5
9157
9158 ac_cv_c_const=no
6697fi 9159fi
9160
6698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6699fi 9162fi
6700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 9163{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6701$as_echo "$ac_cv_c_const" >&6; } 9164$as_echo "$ac_cv_c_const" >&6; }
6702if test $ac_cv_c_const = no; then 9165if test $ac_cv_c_const = no; then
6703 9166
6704$as_echo "#define const /**/" >>confdefs.h 9167cat >>confdefs.h <<\_ACEOF
9168#define const /**/
9169_ACEOF
6705 9170
6706fi 9171fi
6707 9172
6708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5 9173{ $as_echo "$as_me:$LINENO: checking for void * support" >&5
6709$as_echo_n "checking for void * support... " >&6; } 9174$as_echo_n "checking for void * support... " >&6; }
6710if test "${emacs_cv_void_star+set}" = set; then : 9175if test "${emacs_cv_void_star+set}" = set; then
6711 $as_echo_n "(cached) " >&6 9176 $as_echo_n "(cached) " >&6
6712else 9177else
6713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9178 cat >conftest.$ac_ext <<_ACEOF
9179/* confdefs.h. */
9180_ACEOF
9181cat confdefs.h >>conftest.$ac_ext
9182cat >>conftest.$ac_ext <<_ACEOF
6714/* end confdefs.h. */ 9183/* end confdefs.h. */
6715 9184
6716int 9185int
@@ -6721,31 +9190,57 @@ void * foo;
6721 return 0; 9190 return 0;
6722} 9191}
6723_ACEOF 9192_ACEOF
6724if ac_fn_c_try_compile "$LINENO"; then : 9193rm -f conftest.$ac_objext
9194if { (ac_try="$ac_compile"
9195case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9198esac
9199eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9200$as_echo "$ac_try_echo") >&5
9201 (eval "$ac_compile") 2>conftest.er1
9202 ac_status=$?
9203 grep -v '^ *+' conftest.er1 >conftest.err
9204 rm -f conftest.er1
9205 cat conftest.err >&5
9206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9207 (exit $ac_status); } && {
9208 test -z "$ac_c_werror_flag" ||
9209 test ! -s conftest.err
9210 } && test -s conftest.$ac_objext; then
6725 emacs_cv_void_star=yes 9211 emacs_cv_void_star=yes
6726else 9212else
6727 emacs_cv_void_star=no 9213 $as_echo "$as_me: failed program was:" >&5
9214sed 's/^/| /' conftest.$ac_ext >&5
9215
9216 emacs_cv_void_star=no
6728fi 9217fi
9218
6729rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9219rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730fi 9220fi
6731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5 9221{ $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6732$as_echo "$emacs_cv_void_star" >&6; } 9222$as_echo "$emacs_cv_void_star" >&6; }
6733if test $emacs_cv_void_star = yes; then 9223if test $emacs_cv_void_star = yes; then
6734 $as_echo "#define POINTER_TYPE void" >>confdefs.h 9224 cat >>confdefs.h <<\_ACEOF
9225#define POINTER_TYPE void
9226_ACEOF
6735 9227
6736else 9228else
6737 $as_echo "#define POINTER_TYPE char" >>confdefs.h 9229 cat >>confdefs.h <<\_ACEOF
9230#define POINTER_TYPE char
9231_ACEOF
6738 9232
6739fi 9233fi
6740 9234
6741 9235
6742 9236
6743 9237
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 9238
9239{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6745$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 9240$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6746set x ${MAKE-make} 9241set x ${MAKE-make}
6747ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 9242ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6748if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 9243if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6749 $as_echo_n "(cached) " >&6 9244 $as_echo_n "(cached) " >&6
6750else 9245else
6751 cat >conftest.make <<\_ACEOF 9246 cat >conftest.make <<\_ACEOF
@@ -6763,18 +9258,18 @@ esac
6763rm -f conftest.make 9258rm -f conftest.make
6764fi 9259fi
6765if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 9260if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9261 { $as_echo "$as_me:$LINENO: result: yes" >&5
6767$as_echo "yes" >&6; } 9262$as_echo "yes" >&6; }
6768 SET_MAKE= 9263 SET_MAKE=
6769else 9264else
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9265 { $as_echo "$as_me:$LINENO: result: no" >&5
6771$as_echo "no" >&6; } 9266$as_echo "no" >&6; }
6772 SET_MAKE="MAKE=${MAKE-make}" 9267 SET_MAKE="MAKE=${MAKE-make}"
6773fi 9268fi
6774 9269
6775 9270
6776if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then 9271if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5 9272 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
6778$as_echo_n "checking whether we are using GNU Make... " >&6; } 9273$as_echo_n "checking whether we are using GNU Make... " >&6; }
6779 HAVE_GNU_MAKE=no 9274 HAVE_GNU_MAKE=no
6780 testval=`make --version 2>/dev/null | grep 'GNU Make'` 9275 testval=`make --version 2>/dev/null | grep 'GNU Make'`
@@ -6783,14 +9278,18 @@ $as_echo_n "checking whether we are using GNU Make... " >&6; }
6783 else 9278 else
6784 ac_enable_autodepend=no 9279 ac_enable_autodepend=no
6785 fi 9280 fi
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5 9281 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
6787$as_echo "$HAVE_GNU_MAKE" >&6; } 9282$as_echo "$HAVE_GNU_MAKE" >&6; }
6788 if test $HAVE_GNU_MAKE = yes; then 9283 if test $HAVE_GNU_MAKE = yes; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5 9284 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
6790$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } 9285$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6791 SAVE_CFLAGS="$CFLAGS" 9286 SAVE_CFLAGS="$CFLAGS"
6792 CFLAGS="$CFLAGS -MMD -MF deps.d" 9287 CFLAGS="$CFLAGS -MMD -MF deps.d"
6793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9288 cat >conftest.$ac_ext <<_ACEOF
9289/* confdefs.h. */
9290_ACEOF
9291cat confdefs.h >>conftest.$ac_ext
9292cat >>conftest.$ac_ext <<_ACEOF
6794/* end confdefs.h. */ 9293/* end confdefs.h. */
6795 9294
6796int 9295int
@@ -6801,28 +9300,51 @@ main ()
6801 return 0; 9300 return 0;
6802} 9301}
6803_ACEOF 9302_ACEOF
6804if ac_fn_c_try_compile "$LINENO"; then : 9303rm -f conftest.$ac_objext
6805 9304if { (ac_try="$ac_compile"
9305case "(($ac_try" in
9306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9307 *) ac_try_echo=$ac_try;;
9308esac
9309eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9310$as_echo "$ac_try_echo") >&5
9311 (eval "$ac_compile") 2>conftest.er1
9312 ac_status=$?
9313 grep -v '^ *+' conftest.er1 >conftest.err
9314 rm -f conftest.er1
9315 cat conftest.err >&5
9316 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9317 (exit $ac_status); } && {
9318 test -z "$ac_c_werror_flag" ||
9319 test ! -s conftest.err
9320 } && test -s conftest.$ac_objext; then
9321 :
6806else 9322else
6807 ac_enable_autodepend=no 9323 $as_echo "$as_me: failed program was:" >&5
9324sed 's/^/| /' conftest.$ac_ext >&5
9325
9326 ac_enable_autodepend=no
6808fi 9327fi
9328
6809rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9329rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6810 CFLAGS="$SAVE_CFLAGS" 9330 CFLAGS="$SAVE_CFLAGS"
6811 test -f deps.d || ac_enable_autodepend=no 9331 test -f deps.d || ac_enable_autodepend=no
6812 rm -rf deps.d 9332 rm -rf deps.d
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5 9333 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
6814$as_echo "$ac_enable_autodepend" >&6; } 9334$as_echo "$ac_enable_autodepend" >&6; }
6815 fi 9335 fi
6816 if test $ac_enable_autodepend = yes; then 9336 if test $ac_enable_autodepend = yes; then
6817 9337
6818$as_echo "#define AUTO_DEPEND 1" >>confdefs.h 9338cat >>confdefs.h <<\_ACEOF
9339#define AUTO_DEPEND 1
9340_ACEOF
6819 9341
6820 fi 9342 fi
6821fi 9343fi
6822 9344
6823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 9345{ $as_echo "$as_me:$LINENO: checking for long file names" >&5
6824$as_echo_n "checking for long file names... " >&6; } 9346$as_echo_n "checking for long file names... " >&6; }
6825if test "${ac_cv_sys_long_file_names+set}" = set; then : 9347if test "${ac_cv_sys_long_file_names+set}" = set; then
6826 $as_echo_n "(cached) " >&6 9348 $as_echo_n "(cached) " >&6
6827else 9349else
6828 ac_cv_sys_long_file_names=yes 9350 ac_cv_sys_long_file_names=yes
@@ -6852,23 +9374,25 @@ for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib
6852 test $ac_cv_sys_long_file_names = no && break 9374 test $ac_cv_sys_long_file_names = no && break
6853done 9375done
6854fi 9376fi
6855{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 9377{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
6856$as_echo "$ac_cv_sys_long_file_names" >&6; } 9378$as_echo "$ac_cv_sys_long_file_names" >&6; }
6857if test $ac_cv_sys_long_file_names = yes; then 9379if test $ac_cv_sys_long_file_names = yes; then
6858 9380
6859$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h 9381cat >>confdefs.h <<\_ACEOF
9382#define HAVE_LONG_FILE_NAMES 1
9383_ACEOF
6860 9384
6861fi 9385fi
6862 9386
6863 9387
6864#### Choose a window system. 9388#### Choose a window system.
6865 9389
6866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 9390{ $as_echo "$as_me:$LINENO: checking for X" >&5
6867$as_echo_n "checking for X... " >&6; } 9391$as_echo_n "checking for X... " >&6; }
6868 9392
6869 9393
6870# Check whether --with-x was given. 9394# Check whether --with-x was given.
6871if test "${with_x+set}" = set; then : 9395if test "${with_x+set}" = set; then
6872 withval=$with_x; 9396 withval=$with_x;
6873fi 9397fi
6874 9398
@@ -6878,8 +9402,10 @@ if test "x$with_x" = xno; then
6878 have_x=disabled 9402 have_x=disabled
6879else 9403else
6880 case $x_includes,$x_libraries in #( 9404 case $x_includes,$x_libraries in #(
6881 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 9405 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
6882 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 9406$as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9407 { (exit 1); exit 1; }; };; #(
9408 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
6883 $as_echo_n "(cached) " >&6 9409 $as_echo_n "(cached) " >&6
6884else 9410else
6885 # One or both of the vars are not set, and there is no cached value. 9411 # One or both of the vars are not set, and there is no cached value.
@@ -6915,7 +9441,7 @@ _ACEOF
6915 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 9441 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
6916 esac 9442 esac
6917 case $ac_im_usrlibdir in 9443 case $ac_im_usrlibdir in
6918 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 9444 /usr/lib | /lib) ;;
6919 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 9445 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
6920 esac 9446 esac
6921 fi 9447 fi
@@ -6927,25 +9453,21 @@ fi
6927# Check X11 before X11Rn because it is often a symlink to the current release. 9453# Check X11 before X11Rn because it is often a symlink to the current release.
6928ac_x_header_dirs=' 9454ac_x_header_dirs='
6929/usr/X11/include 9455/usr/X11/include
6930/usr/X11R7/include
6931/usr/X11R6/include 9456/usr/X11R6/include
6932/usr/X11R5/include 9457/usr/X11R5/include
6933/usr/X11R4/include 9458/usr/X11R4/include
6934 9459
6935/usr/include/X11 9460/usr/include/X11
6936/usr/include/X11R7
6937/usr/include/X11R6 9461/usr/include/X11R6
6938/usr/include/X11R5 9462/usr/include/X11R5
6939/usr/include/X11R4 9463/usr/include/X11R4
6940 9464
6941/usr/local/X11/include 9465/usr/local/X11/include
6942/usr/local/X11R7/include
6943/usr/local/X11R6/include 9466/usr/local/X11R6/include
6944/usr/local/X11R5/include 9467/usr/local/X11R5/include
6945/usr/local/X11R4/include 9468/usr/local/X11R4/include
6946 9469
6947/usr/local/include/X11 9470/usr/local/include/X11
6948/usr/local/include/X11R7
6949/usr/local/include/X11R6 9471/usr/local/include/X11R6
6950/usr/local/include/X11R5 9472/usr/local/include/X11R5
6951/usr/local/include/X11R4 9473/usr/local/include/X11R4
@@ -6967,14 +9489,37 @@ ac_x_header_dirs='
6967if test "$ac_x_includes" = no; then 9489if test "$ac_x_includes" = no; then
6968 # Guess where to find include files, by looking for Xlib.h. 9490 # Guess where to find include files, by looking for Xlib.h.
6969 # First, try using that file with no special directory specified. 9491 # First, try using that file with no special directory specified.
6970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9492 cat >conftest.$ac_ext <<_ACEOF
9493/* confdefs.h. */
9494_ACEOF
9495cat confdefs.h >>conftest.$ac_ext
9496cat >>conftest.$ac_ext <<_ACEOF
6971/* end confdefs.h. */ 9497/* end confdefs.h. */
6972#include <X11/Xlib.h> 9498#include <X11/Xlib.h>
6973_ACEOF 9499_ACEOF
6974if ac_fn_c_try_cpp "$LINENO"; then : 9500if { (ac_try="$ac_cpp conftest.$ac_ext"
9501case "(($ac_try" in
9502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9503 *) ac_try_echo=$ac_try;;
9504esac
9505eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9506$as_echo "$ac_try_echo") >&5
9507 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9508 ac_status=$?
9509 grep -v '^ *+' conftest.er1 >conftest.err
9510 rm -f conftest.er1
9511 cat conftest.err >&5
9512 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9513 (exit $ac_status); } >/dev/null && {
9514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9515 test ! -s conftest.err
9516 }; then
6975 # We can compile using X headers with no special include directory. 9517 # We can compile using X headers with no special include directory.
6976ac_x_includes= 9518ac_x_includes=
6977else 9519else
9520 $as_echo "$as_me: failed program was:" >&5
9521sed 's/^/| /' conftest.$ac_ext >&5
9522
6978 for ac_dir in $ac_x_header_dirs; do 9523 for ac_dir in $ac_x_header_dirs; do
6979 if test -r "$ac_dir/X11/Xlib.h"; then 9524 if test -r "$ac_dir/X11/Xlib.h"; then
6980 ac_x_includes=$ac_dir 9525 ac_x_includes=$ac_dir
@@ -6982,6 +9527,7 @@ else
6982 fi 9527 fi
6983done 9528done
6984fi 9529fi
9530
6985rm -f conftest.err conftest.$ac_ext 9531rm -f conftest.err conftest.$ac_ext
6986fi # $ac_x_includes = no 9532fi # $ac_x_includes = no
6987 9533
@@ -6991,7 +9537,11 @@ if test "$ac_x_libraries" = no; then
6991 # Don't add to $LIBS permanently. 9537 # Don't add to $LIBS permanently.
6992 ac_save_LIBS=$LIBS 9538 ac_save_LIBS=$LIBS
6993 LIBS="-lX11 $LIBS" 9539 LIBS="-lX11 $LIBS"
6994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9540 cat >conftest.$ac_ext <<_ACEOF
9541/* confdefs.h. */
9542_ACEOF
9543cat confdefs.h >>conftest.$ac_ext
9544cat >>conftest.$ac_ext <<_ACEOF
6995/* end confdefs.h. */ 9545/* end confdefs.h. */
6996#include <X11/Xlib.h> 9546#include <X11/Xlib.h>
6997int 9547int
@@ -7002,12 +9552,35 @@ XrmInitialize ()
7002 return 0; 9552 return 0;
7003} 9553}
7004_ACEOF 9554_ACEOF
7005if ac_fn_c_try_link "$LINENO"; then : 9555rm -f conftest.$ac_objext conftest$ac_exeext
9556if { (ac_try="$ac_link"
9557case "(($ac_try" in
9558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559 *) ac_try_echo=$ac_try;;
9560esac
9561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9562$as_echo "$ac_try_echo") >&5
9563 (eval "$ac_link") 2>conftest.er1
9564 ac_status=$?
9565 grep -v '^ *+' conftest.er1 >conftest.err
9566 rm -f conftest.er1
9567 cat conftest.err >&5
9568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9569 (exit $ac_status); } && {
9570 test -z "$ac_c_werror_flag" ||
9571 test ! -s conftest.err
9572 } && test -s conftest$ac_exeext && {
9573 test "$cross_compiling" = yes ||
9574 $as_test_x conftest$ac_exeext
9575 }; then
7006 LIBS=$ac_save_LIBS 9576 LIBS=$ac_save_LIBS
7007# We can link X programs with no special library path. 9577# We can link X programs with no special library path.
7008ac_x_libraries= 9578ac_x_libraries=
7009else 9579else
7010 LIBS=$ac_save_LIBS 9580 $as_echo "$as_me: failed program was:" >&5
9581sed 's/^/| /' conftest.$ac_ext >&5
9582
9583 LIBS=$ac_save_LIBS
7011for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 9584for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7012do 9585do
7013 # Don't even attempt the hair of trying to link an X program! 9586 # Don't even attempt the hair of trying to link an X program!
@@ -7019,8 +9592,10 @@ do
7019 done 9592 done
7020done 9593done
7021fi 9594fi
7022rm -f core conftest.err conftest.$ac_objext \ 9595
7023 conftest$ac_exeext conftest.$ac_ext 9596rm -rf conftest.dSYM
9597rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9598 conftest$ac_exeext conftest.$ac_ext
7024fi # $ac_x_libraries = no 9599fi # $ac_x_libraries = no
7025 9600
7026case $ac_x_includes,$ac_x_libraries in #( 9601case $ac_x_includes,$ac_x_libraries in #(
@@ -7041,7 +9616,7 @@ fi
7041fi # $with_x != no 9616fi # $with_x != no
7042 9617
7043if test "$have_x" != yes; then 9618if test "$have_x" != yes; then
7044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 9619 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
7045$as_echo "$have_x" >&6; } 9620$as_echo "$have_x" >&6; }
7046 no_x=yes 9621 no_x=yes
7047else 9622else
@@ -7052,7 +9627,7 @@ else
7052 ac_cv_have_x="have_x=yes\ 9627 ac_cv_have_x="have_x=yes\
7053 ac_x_includes='$x_includes'\ 9628 ac_x_includes='$x_includes'\
7054 ac_x_libraries='$x_libraries'" 9629 ac_x_libraries='$x_libraries'"
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 9630 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7056$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 9631$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7057fi 9632fi
7058 9633
@@ -7148,17 +9723,150 @@ if test "${with_ns}" != no; then
7148 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 9723 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7149 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" 9724 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7150 fi 9725 fi
7151 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" 9726 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
7152if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : 9727 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9728$as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9729if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9730 $as_echo_n "(cached) " >&6
9731fi
9732{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9733$as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9734else
9735 # Is the header compilable?
9736{ $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9737$as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9738cat >conftest.$ac_ext <<_ACEOF
9739/* confdefs.h. */
9740_ACEOF
9741cat confdefs.h >>conftest.$ac_ext
9742cat >>conftest.$ac_ext <<_ACEOF
9743/* end confdefs.h. */
9744$ac_includes_default
9745#include <AppKit/AppKit.h>
9746_ACEOF
9747rm -f conftest.$ac_objext
9748if { (ac_try="$ac_compile"
9749case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752esac
9753eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9754$as_echo "$ac_try_echo") >&5
9755 (eval "$ac_compile") 2>conftest.er1
9756 ac_status=$?
9757 grep -v '^ *+' conftest.er1 >conftest.err
9758 rm -f conftest.er1
9759 cat conftest.err >&5
9760 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9761 (exit $ac_status); } && {
9762 test -z "$ac_c_werror_flag" ||
9763 test ! -s conftest.err
9764 } && test -s conftest.$ac_objext; then
9765 ac_header_compiler=yes
9766else
9767 $as_echo "$as_me: failed program was:" >&5
9768sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 ac_header_compiler=no
9771fi
9772
9773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9774{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9775$as_echo "$ac_header_compiler" >&6; }
9776
9777# Is the header present?
9778{ $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9779$as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9780cat >conftest.$ac_ext <<_ACEOF
9781/* confdefs.h. */
9782_ACEOF
9783cat confdefs.h >>conftest.$ac_ext
9784cat >>conftest.$ac_ext <<_ACEOF
9785/* end confdefs.h. */
9786#include <AppKit/AppKit.h>
9787_ACEOF
9788if { (ac_try="$ac_cpp conftest.$ac_ext"
9789case "(($ac_try" in
9790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9792esac
9793eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9794$as_echo "$ac_try_echo") >&5
9795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9796 ac_status=$?
9797 grep -v '^ *+' conftest.er1 >conftest.err
9798 rm -f conftest.er1
9799 cat conftest.err >&5
9800 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9801 (exit $ac_status); } >/dev/null && {
9802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9803 test ! -s conftest.err
9804 }; then
9805 ac_header_preproc=yes
9806else
9807 $as_echo "$as_me: failed program was:" >&5
9808sed 's/^/| /' conftest.$ac_ext >&5
9809
9810 ac_header_preproc=no
9811fi
9812
9813rm -f conftest.err conftest.$ac_ext
9814{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9815$as_echo "$ac_header_preproc" >&6; }
9816
9817# So? What about this header?
9818case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9819 yes:no: )
9820 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9821$as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9822 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9823$as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9824 ac_header_preproc=yes
9825 ;;
9826 no:yes:* )
9827 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9828$as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9829 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9830$as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9831 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9832$as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9833 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9834$as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9835 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9836$as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9837 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9838$as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9839
9840 ;;
9841esac
9842{ $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9843$as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9844if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9845 $as_echo_n "(cached) " >&6
9846else
9847 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9848fi
9849{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9850$as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9851
9852fi
9853if test $ac_cv_header_AppKit_AppKit_h = yes; then
7153 HAVE_NS=yes 9854 HAVE_NS=yes
7154else 9855else
7155 as_fn_error "\`--with-ns' was specified, but the include 9856 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
7156 files are missing or cannot be compiled." "$LINENO" 5 9857 files are missing or cannot be compiled." >&5
9858$as_echo "$as_me: error: \`--with-ns' was specified, but the include
9859 files are missing or cannot be compiled." >&2;}
9860 { (exit 1); exit 1; }; }
7157fi 9861fi
7158 9862
7159 9863
7160 NS_HAVE_NSINTEGER=yes 9864 NS_HAVE_NSINTEGER=yes
7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9865 cat >conftest.$ac_ext <<_ACEOF
9866/* confdefs.h. */
9867_ACEOF
9868cat confdefs.h >>conftest.$ac_ext
9869cat >>conftest.$ac_ext <<_ACEOF
7162/* end confdefs.h. */ 9870/* end confdefs.h. */
7163#include <Foundation/NSObjCRuntime.h> 9871#include <Foundation/NSObjCRuntime.h>
7164int 9872int
@@ -7169,11 +9877,32 @@ NSInteger i;
7169 return 0; 9877 return 0;
7170} 9878}
7171_ACEOF 9879_ACEOF
7172if ac_fn_c_try_compile "$LINENO"; then : 9880rm -f conftest.$ac_objext
9881if { (ac_try="$ac_compile"
9882case "(($ac_try" in
9883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9884 *) ac_try_echo=$ac_try;;
9885esac
9886eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9887$as_echo "$ac_try_echo") >&5
9888 (eval "$ac_compile") 2>conftest.er1
9889 ac_status=$?
9890 grep -v '^ *+' conftest.er1 >conftest.err
9891 rm -f conftest.er1
9892 cat conftest.err >&5
9893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9894 (exit $ac_status); } && {
9895 test -z "$ac_c_werror_flag" ||
9896 test ! -s conftest.err
9897 } && test -s conftest.$ac_objext; then
7173 ns_have_nsinteger=yes 9898 ns_have_nsinteger=yes
7174else 9899else
7175 ns_have_nsinteger=no 9900 $as_echo "$as_me: failed program was:" >&5
9901sed 's/^/| /' conftest.$ac_ext >&5
9902
9903 ns_have_nsinteger=no
7176fi 9904fi
9905
7177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9906rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 if test $ns_have_nsinteger = no; then 9907 if test $ns_have_nsinteger = no; then
7179 NS_HAVE_NSINTEGER=no 9908 NS_HAVE_NSINTEGER=no
@@ -7215,9 +9944,9 @@ esac
7215if test "$window_system" = none && test "X$with_x" != "Xno"; then 9944if test "$window_system" = none && test "X$with_x" != "Xno"; then
7216 # Extract the first word of "X", so it can be a program name with args. 9945 # Extract the first word of "X", so it can be a program name with args.
7217set dummy X; ac_word=$2 9946set dummy X; ac_word=$2
7218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9947{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7219$as_echo_n "checking for $ac_word... " >&6; } 9948$as_echo_n "checking for $ac_word... " >&6; }
7220if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then : 9949if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
7221 $as_echo_n "(cached) " >&6 9950 $as_echo_n "(cached) " >&6
7222else 9951else
7223 if test -n "$HAVE_XSERVER"; then 9952 if test -n "$HAVE_XSERVER"; then
@@ -7228,14 +9957,14 @@ for as_dir in $PATH
7228do 9957do
7229 IFS=$as_save_IFS 9958 IFS=$as_save_IFS
7230 test -z "$as_dir" && as_dir=. 9959 test -z "$as_dir" && as_dir=.
7231 for ac_exec_ext in '' $ac_executable_extensions; do 9960 for ac_exec_ext in '' $ac_executable_extensions; do
7232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9961 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7233 ac_cv_prog_HAVE_XSERVER="true" 9962 ac_cv_prog_HAVE_XSERVER="true"
7234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9963 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7235 break 2 9964 break 2
7236 fi 9965 fi
7237done 9966done
7238 done 9967done
7239IFS=$as_save_IFS 9968IFS=$as_save_IFS
7240 9969
7241 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" 9970 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
@@ -7243,10 +9972,10 @@ fi
7243fi 9972fi
7244HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER 9973HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7245if test -n "$HAVE_XSERVER"; then 9974if test -n "$HAVE_XSERVER"; then
7246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5 9975 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
7247$as_echo "$HAVE_XSERVER" >&6; } 9976$as_echo "$HAVE_XSERVER" >&6; }
7248else 9977else
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9978 { $as_echo "$as_me:$LINENO: result: no" >&5
7250$as_echo "no" >&6; } 9979$as_echo "no" >&6; }
7251fi 9980fi
7252 9981
@@ -7254,14 +9983,23 @@ fi
7254 if test "$HAVE_XSERVER" = true || 9983 if test "$HAVE_XSERVER" = true ||
7255 test -n "$DISPLAY" || 9984 test -n "$DISPLAY" ||
7256 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then 9985 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7257 as_fn_error "You seem to be running X, but no X development libraries 9986 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
7258were found. You should install the relevant development files for X 9987were found. You should install the relevant development files for X
7259and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make 9988and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7260sure you have development files for image handling, i.e. 9989sure you have development files for image handling, i.e.
7261tiff, gif, jpeg, png and xpm. 9990tiff, gif, jpeg, png and xpm.
7262If you are sure you want Emacs compiled without X window support, pass 9991If you are sure you want Emacs compiled without X window support, pass
7263 --without-x 9992 --without-x
7264to configure." "$LINENO" 5 9993to configure." >&5
9994$as_echo "$as_me: error: You seem to be running X, but no X development libraries
9995were found. You should install the relevant development files for X
9996and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9997sure you have development files for image handling, i.e.
9998tiff, gif, jpeg, png and xpm.
9999If you are sure you want Emacs compiled without X window support, pass
10000 --without-x
10001to configure." >&2;}
10002 { (exit 1); exit 1; }; }
7265 fi 10003 fi
7266fi 10004fi
7267 10005
@@ -7275,26 +10013,198 @@ esac
7275# Assume not, until told otherwise. 10013# Assume not, until told otherwise.
7276GNU_MALLOC=yes 10014GNU_MALLOC=yes
7277doug_lea_malloc=yes 10015doug_lea_malloc=yes
7278ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state" 10016{ $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7279if test "x$ac_cv_func_malloc_get_state" = x""yes; then : 10017$as_echo_n "checking for malloc_get_state... " >&6; }
10018if test "${ac_cv_func_malloc_get_state+set}" = set; then
10019 $as_echo_n "(cached) " >&6
10020else
10021 cat >conftest.$ac_ext <<_ACEOF
10022/* confdefs.h. */
10023_ACEOF
10024cat confdefs.h >>conftest.$ac_ext
10025cat >>conftest.$ac_ext <<_ACEOF
10026/* end confdefs.h. */
10027/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10029#define malloc_get_state innocuous_malloc_get_state
10030
10031/* System header to define __stub macros and hopefully few prototypes,
10032 which can conflict with char malloc_get_state (); below.
10033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10034 <limits.h> exists even on freestanding compilers. */
10035
10036#ifdef __STDC__
10037# include <limits.h>
10038#else
10039# include <assert.h>
10040#endif
10041
10042#undef malloc_get_state
10043
10044/* Override any GCC internal prototype to avoid an error.
10045 Use char because int might match the return type of a GCC
10046 builtin and then its argument prototype would still apply. */
10047#ifdef __cplusplus
10048extern "C"
10049#endif
10050char malloc_get_state ();
10051/* The GNU C library defines this for functions which it implements
10052 to always fail with ENOSYS. Some functions are actually named
10053 something starting with __ and the normal name is an alias. */
10054#if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10055choke me
10056#endif
10057
10058int
10059main ()
10060{
10061return malloc_get_state ();
10062 ;
10063 return 0;
10064}
10065_ACEOF
10066rm -f conftest.$ac_objext conftest$ac_exeext
10067if { (ac_try="$ac_link"
10068case "(($ac_try" in
10069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10070 *) ac_try_echo=$ac_try;;
10071esac
10072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10073$as_echo "$ac_try_echo") >&5
10074 (eval "$ac_link") 2>conftest.er1
10075 ac_status=$?
10076 grep -v '^ *+' conftest.er1 >conftest.err
10077 rm -f conftest.er1
10078 cat conftest.err >&5
10079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10080 (exit $ac_status); } && {
10081 test -z "$ac_c_werror_flag" ||
10082 test ! -s conftest.err
10083 } && test -s conftest$ac_exeext && {
10084 test "$cross_compiling" = yes ||
10085 $as_test_x conftest$ac_exeext
10086 }; then
10087 ac_cv_func_malloc_get_state=yes
10088else
10089 $as_echo "$as_me: failed program was:" >&5
10090sed 's/^/| /' conftest.$ac_ext >&5
10091
10092 ac_cv_func_malloc_get_state=no
10093fi
7280 10094
10095rm -rf conftest.dSYM
10096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10097 conftest$ac_exeext conftest.$ac_ext
10098fi
10099{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10100$as_echo "$ac_cv_func_malloc_get_state" >&6; }
10101if test $ac_cv_func_malloc_get_state = yes; then
10102 :
7281else 10103else
7282 doug_lea_malloc=no 10104 doug_lea_malloc=no
7283fi 10105fi
7284 10106
7285ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state" 10107{ $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7286if test "x$ac_cv_func_malloc_set_state" = x""yes; then : 10108$as_echo_n "checking for malloc_set_state... " >&6; }
10109if test "${ac_cv_func_malloc_set_state+set}" = set; then
10110 $as_echo_n "(cached) " >&6
10111else
10112 cat >conftest.$ac_ext <<_ACEOF
10113/* confdefs.h. */
10114_ACEOF
10115cat confdefs.h >>conftest.$ac_ext
10116cat >>conftest.$ac_ext <<_ACEOF
10117/* end confdefs.h. */
10118/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10120#define malloc_set_state innocuous_malloc_set_state
10121
10122/* System header to define __stub macros and hopefully few prototypes,
10123 which can conflict with char malloc_set_state (); below.
10124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10125 <limits.h> exists even on freestanding compilers. */
10126
10127#ifdef __STDC__
10128# include <limits.h>
10129#else
10130# include <assert.h>
10131#endif
10132
10133#undef malloc_set_state
10134
10135/* Override any GCC internal prototype to avoid an error.
10136 Use char because int might match the return type of a GCC
10137 builtin and then its argument prototype would still apply. */
10138#ifdef __cplusplus
10139extern "C"
10140#endif
10141char malloc_set_state ();
10142/* The GNU C library defines this for functions which it implements
10143 to always fail with ENOSYS. Some functions are actually named
10144 something starting with __ and the normal name is an alias. */
10145#if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10146choke me
10147#endif
10148
10149int
10150main ()
10151{
10152return malloc_set_state ();
10153 ;
10154 return 0;
10155}
10156_ACEOF
10157rm -f conftest.$ac_objext conftest$ac_exeext
10158if { (ac_try="$ac_link"
10159case "(($ac_try" in
10160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10161 *) ac_try_echo=$ac_try;;
10162esac
10163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10164$as_echo "$ac_try_echo") >&5
10165 (eval "$ac_link") 2>conftest.er1
10166 ac_status=$?
10167 grep -v '^ *+' conftest.er1 >conftest.err
10168 rm -f conftest.er1
10169 cat conftest.err >&5
10170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10171 (exit $ac_status); } && {
10172 test -z "$ac_c_werror_flag" ||
10173 test ! -s conftest.err
10174 } && test -s conftest$ac_exeext && {
10175 test "$cross_compiling" = yes ||
10176 $as_test_x conftest$ac_exeext
10177 }; then
10178 ac_cv_func_malloc_set_state=yes
10179else
10180 $as_echo "$as_me: failed program was:" >&5
10181sed 's/^/| /' conftest.$ac_ext >&5
10182
10183 ac_cv_func_malloc_set_state=no
10184fi
7287 10185
10186rm -rf conftest.dSYM
10187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10188 conftest$ac_exeext conftest.$ac_ext
10189fi
10190{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10191$as_echo "$ac_cv_func_malloc_set_state" >&6; }
10192if test $ac_cv_func_malloc_set_state = yes; then
10193 :
7288else 10194else
7289 doug_lea_malloc=no 10195 doug_lea_malloc=no
7290fi 10196fi
7291 10197
7292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5 10198{ $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7293$as_echo_n "checking whether __after_morecore_hook exists... " >&6; } 10199$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7294if test "${emacs_cv_var___after_morecore_hook+set}" = set; then : 10200if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7295 $as_echo_n "(cached) " >&6 10201 $as_echo_n "(cached) " >&6
7296else 10202else
7297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10203 cat >conftest.$ac_ext <<_ACEOF
10204/* confdefs.h. */
10205_ACEOF
10206cat confdefs.h >>conftest.$ac_ext
10207cat >>conftest.$ac_ext <<_ACEOF
7298/* end confdefs.h. */ 10208/* end confdefs.h. */
7299extern void (* __after_morecore_hook)(); 10209extern void (* __after_morecore_hook)();
7300int 10210int
@@ -7305,15 +10215,40 @@ __after_morecore_hook = 0
7305 return 0; 10215 return 0;
7306} 10216}
7307_ACEOF 10217_ACEOF
7308if ac_fn_c_try_link "$LINENO"; then : 10218rm -f conftest.$ac_objext conftest$ac_exeext
10219if { (ac_try="$ac_link"
10220case "(($ac_try" in
10221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10222 *) ac_try_echo=$ac_try;;
10223esac
10224eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10225$as_echo "$ac_try_echo") >&5
10226 (eval "$ac_link") 2>conftest.er1
10227 ac_status=$?
10228 grep -v '^ *+' conftest.er1 >conftest.err
10229 rm -f conftest.er1
10230 cat conftest.err >&5
10231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10232 (exit $ac_status); } && {
10233 test -z "$ac_c_werror_flag" ||
10234 test ! -s conftest.err
10235 } && test -s conftest$ac_exeext && {
10236 test "$cross_compiling" = yes ||
10237 $as_test_x conftest$ac_exeext
10238 }; then
7309 emacs_cv_var___after_morecore_hook=yes 10239 emacs_cv_var___after_morecore_hook=yes
7310else 10240else
7311 emacs_cv_var___after_morecore_hook=no 10241 $as_echo "$as_me: failed program was:" >&5
10242sed 's/^/| /' conftest.$ac_ext >&5
10243
10244 emacs_cv_var___after_morecore_hook=no
7312fi 10245fi
7313rm -f core conftest.err conftest.$ac_objext \ 10246
7314 conftest$ac_exeext conftest.$ac_ext 10247rm -rf conftest.dSYM
10248rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10249 conftest$ac_exeext conftest.$ac_ext
7315fi 10250fi
7316{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5 10251{ $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7317$as_echo "$emacs_cv_var___after_morecore_hook" >&6; } 10252$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7318if test $emacs_cv_var___after_morecore_hook = no; then 10253if test $emacs_cv_var___after_morecore_hook = no; then
7319 doug_lea_malloc=no 10254 doug_lea_malloc=no
@@ -7329,7 +10264,9 @@ if test "$doug_lea_malloc" = "yes" ; then
7329 (Using Doug Lea's new malloc from the GNU C Library.)" 10264 (Using Doug Lea's new malloc from the GNU C Library.)"
7330 fi 10265 fi
7331 10266
7332$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h 10267cat >>confdefs.h <<\_ACEOF
10268#define DOUG_LEA_MALLOC 1
10269_ACEOF
7333 10270
7334fi 10271fi
7335 10272
@@ -7338,12 +10275,144 @@ if test x"${REL_ALLOC}" = x; then
7338fi 10275fi
7339 10276
7340 10277
10278
10279
7341for ac_header in stdlib.h unistd.h 10280for ac_header in stdlib.h unistd.h
7342do : 10281do
7343 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10282as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7344ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 10283if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7345eval as_val=\$$as_ac_Header 10284 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7346 if test "x$as_val" = x""yes; then : 10285$as_echo_n "checking for $ac_header... " >&6; }
10286if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10287 $as_echo_n "(cached) " >&6
10288fi
10289ac_res=`eval 'as_val=${'$as_ac_Header'}
10290 $as_echo "$as_val"'`
10291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10292$as_echo "$ac_res" >&6; }
10293else
10294 # Is the header compilable?
10295{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10296$as_echo_n "checking $ac_header usability... " >&6; }
10297cat >conftest.$ac_ext <<_ACEOF
10298/* confdefs.h. */
10299_ACEOF
10300cat confdefs.h >>conftest.$ac_ext
10301cat >>conftest.$ac_ext <<_ACEOF
10302/* end confdefs.h. */
10303$ac_includes_default
10304#include <$ac_header>
10305_ACEOF
10306rm -f conftest.$ac_objext
10307if { (ac_try="$ac_compile"
10308case "(($ac_try" in
10309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10310 *) ac_try_echo=$ac_try;;
10311esac
10312eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10313$as_echo "$ac_try_echo") >&5
10314 (eval "$ac_compile") 2>conftest.er1
10315 ac_status=$?
10316 grep -v '^ *+' conftest.er1 >conftest.err
10317 rm -f conftest.er1
10318 cat conftest.err >&5
10319 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10320 (exit $ac_status); } && {
10321 test -z "$ac_c_werror_flag" ||
10322 test ! -s conftest.err
10323 } && test -s conftest.$ac_objext; then
10324 ac_header_compiler=yes
10325else
10326 $as_echo "$as_me: failed program was:" >&5
10327sed 's/^/| /' conftest.$ac_ext >&5
10328
10329 ac_header_compiler=no
10330fi
10331
10332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10333{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10334$as_echo "$ac_header_compiler" >&6; }
10335
10336# Is the header present?
10337{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10338$as_echo_n "checking $ac_header presence... " >&6; }
10339cat >conftest.$ac_ext <<_ACEOF
10340/* confdefs.h. */
10341_ACEOF
10342cat confdefs.h >>conftest.$ac_ext
10343cat >>conftest.$ac_ext <<_ACEOF
10344/* end confdefs.h. */
10345#include <$ac_header>
10346_ACEOF
10347if { (ac_try="$ac_cpp conftest.$ac_ext"
10348case "(($ac_try" in
10349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350 *) ac_try_echo=$ac_try;;
10351esac
10352eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10353$as_echo "$ac_try_echo") >&5
10354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10355 ac_status=$?
10356 grep -v '^ *+' conftest.er1 >conftest.err
10357 rm -f conftest.er1
10358 cat conftest.err >&5
10359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10360 (exit $ac_status); } >/dev/null && {
10361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10362 test ! -s conftest.err
10363 }; then
10364 ac_header_preproc=yes
10365else
10366 $as_echo "$as_me: failed program was:" >&5
10367sed 's/^/| /' conftest.$ac_ext >&5
10368
10369 ac_header_preproc=no
10370fi
10371
10372rm -f conftest.err conftest.$ac_ext
10373{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10374$as_echo "$ac_header_preproc" >&6; }
10375
10376# So? What about this header?
10377case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10378 yes:no: )
10379 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10380$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10381 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10382$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10383 ac_header_preproc=yes
10384 ;;
10385 no:yes:* )
10386 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10387$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10388 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10389$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10390 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10391$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10393$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10395$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10397$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10398
10399 ;;
10400esac
10401{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10402$as_echo_n "checking for $ac_header... " >&6; }
10403if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10404 $as_echo_n "(cached) " >&6
10405else
10406 eval "$as_ac_Header=\$ac_header_preproc"
10407fi
10408ac_res=`eval 'as_val=${'$as_ac_Header'}
10409 $as_echo "$as_val"'`
10410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10411$as_echo "$ac_res" >&6; }
10412
10413fi
10414if test `eval 'as_val=${'$as_ac_Header'}
10415 $as_echo "$as_val"'` = yes; then
7347 cat >>confdefs.h <<_ACEOF 10416 cat >>confdefs.h <<_ACEOF
7348#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10417#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7349_ACEOF 10418_ACEOF
@@ -7352,26 +10421,119 @@ fi
7352 10421
7353done 10422done
7354 10423
10424
7355for ac_func in getpagesize 10425for ac_func in getpagesize
7356do : 10426do
7357 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 10427as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7358if test "x$ac_cv_func_getpagesize" = x""yes; then : 10428{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10429$as_echo_n "checking for $ac_func... " >&6; }
10430if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10431 $as_echo_n "(cached) " >&6
10432else
10433 cat >conftest.$ac_ext <<_ACEOF
10434/* confdefs.h. */
10435_ACEOF
10436cat confdefs.h >>conftest.$ac_ext
10437cat >>conftest.$ac_ext <<_ACEOF
10438/* end confdefs.h. */
10439/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10441#define $ac_func innocuous_$ac_func
10442
10443/* System header to define __stub macros and hopefully few prototypes,
10444 which can conflict with char $ac_func (); below.
10445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10446 <limits.h> exists even on freestanding compilers. */
10447
10448#ifdef __STDC__
10449# include <limits.h>
10450#else
10451# include <assert.h>
10452#endif
10453
10454#undef $ac_func
10455
10456/* Override any GCC internal prototype to avoid an error.
10457 Use char because int might match the return type of a GCC
10458 builtin and then its argument prototype would still apply. */
10459#ifdef __cplusplus
10460extern "C"
10461#endif
10462char $ac_func ();
10463/* The GNU C library defines this for functions which it implements
10464 to always fail with ENOSYS. Some functions are actually named
10465 something starting with __ and the normal name is an alias. */
10466#if defined __stub_$ac_func || defined __stub___$ac_func
10467choke me
10468#endif
10469
10470int
10471main ()
10472{
10473return $ac_func ();
10474 ;
10475 return 0;
10476}
10477_ACEOF
10478rm -f conftest.$ac_objext conftest$ac_exeext
10479if { (ac_try="$ac_link"
10480case "(($ac_try" in
10481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10482 *) ac_try_echo=$ac_try;;
10483esac
10484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10485$as_echo "$ac_try_echo") >&5
10486 (eval "$ac_link") 2>conftest.er1
10487 ac_status=$?
10488 grep -v '^ *+' conftest.er1 >conftest.err
10489 rm -f conftest.er1
10490 cat conftest.err >&5
10491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10492 (exit $ac_status); } && {
10493 test -z "$ac_c_werror_flag" ||
10494 test ! -s conftest.err
10495 } && test -s conftest$ac_exeext && {
10496 test "$cross_compiling" = yes ||
10497 $as_test_x conftest$ac_exeext
10498 }; then
10499 eval "$as_ac_var=yes"
10500else
10501 $as_echo "$as_me: failed program was:" >&5
10502sed 's/^/| /' conftest.$ac_ext >&5
10503
10504 eval "$as_ac_var=no"
10505fi
10506
10507rm -rf conftest.dSYM
10508rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10509 conftest$ac_exeext conftest.$ac_ext
10510fi
10511ac_res=`eval 'as_val=${'$as_ac_var'}
10512 $as_echo "$as_val"'`
10513 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10514$as_echo "$ac_res" >&6; }
10515if test `eval 'as_val=${'$as_ac_var'}
10516 $as_echo "$as_val"'` = yes; then
7359 cat >>confdefs.h <<_ACEOF 10517 cat >>confdefs.h <<_ACEOF
7360#define HAVE_GETPAGESIZE 1 10518#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7361_ACEOF 10519_ACEOF
7362 10520
7363fi 10521fi
7364done 10522done
7365 10523
7366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 10524{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7367$as_echo_n "checking for working mmap... " >&6; } 10525$as_echo_n "checking for working mmap... " >&6; }
7368if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 10526if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7369 $as_echo_n "(cached) " >&6 10527 $as_echo_n "(cached) " >&6
7370else 10528else
7371 if test "$cross_compiling" = yes; then : 10529 if test "$cross_compiling" = yes; then
7372 ac_cv_func_mmap_fixed_mapped=no 10530 ac_cv_func_mmap_fixed_mapped=no
7373else 10531else
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10532 cat >conftest.$ac_ext <<_ACEOF
10533/* confdefs.h. */
10534_ACEOF
10535cat confdefs.h >>conftest.$ac_ext
10536cat >>conftest.$ac_ext <<_ACEOF
7375/* end confdefs.h. */ 10537/* end confdefs.h. */
7376$ac_includes_default 10538$ac_includes_default
7377/* malloc might have been renamed as rpl_malloc. */ 10539/* malloc might have been renamed as rpl_malloc. */
@@ -7500,21 +10662,50 @@ main ()
7500 return 0; 10662 return 0;
7501} 10663}
7502_ACEOF 10664_ACEOF
7503if ac_fn_c_try_run "$LINENO"; then : 10665rm -f conftest$ac_exeext
10666if { (ac_try="$ac_link"
10667case "(($ac_try" in
10668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10669 *) ac_try_echo=$ac_try;;
10670esac
10671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10672$as_echo "$ac_try_echo") >&5
10673 (eval "$ac_link") 2>&5
10674 ac_status=$?
10675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10677 { (case "(($ac_try" in
10678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10679 *) ac_try_echo=$ac_try;;
10680esac
10681eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10682$as_echo "$ac_try_echo") >&5
10683 (eval "$ac_try") 2>&5
10684 ac_status=$?
10685 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10686 (exit $ac_status); }; }; then
7504 ac_cv_func_mmap_fixed_mapped=yes 10687 ac_cv_func_mmap_fixed_mapped=yes
7505else 10688else
7506 ac_cv_func_mmap_fixed_mapped=no 10689 $as_echo "$as_me: program exited with status $ac_status" >&5
10690$as_echo "$as_me: failed program was:" >&5
10691sed 's/^/| /' conftest.$ac_ext >&5
10692
10693( exit $ac_status )
10694ac_cv_func_mmap_fixed_mapped=no
7507fi 10695fi
7508rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10696rm -rf conftest.dSYM
7509 conftest.$ac_objext conftest.beam conftest.$ac_ext 10697rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7510fi 10698fi
7511 10699
10700
7512fi 10701fi
7513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 10702{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7514$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 10703$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7515if test $ac_cv_func_mmap_fixed_mapped = yes; then 10704if test $ac_cv_func_mmap_fixed_mapped = yes; then
7516 10705
7517$as_echo "#define HAVE_MMAP 1" >>confdefs.h 10706cat >>confdefs.h <<\_ACEOF
10707#define HAVE_MMAP 1
10708_ACEOF
7518 10709
7519fi 10710fi
7520rm -f conftest.mmap 10711rm -f conftest.mmap
@@ -7525,14 +10716,19 @@ fi
7525 10716
7526LIBS="$libsrc_libs $LIBS" 10717LIBS="$libsrc_libs $LIBS"
7527 10718
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 10719
10720{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7529$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 10721$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7530if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 10722if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7531 $as_echo_n "(cached) " >&6 10723 $as_echo_n "(cached) " >&6
7532else 10724else
7533 ac_check_lib_save_LIBS=$LIBS 10725 ac_check_lib_save_LIBS=$LIBS
7534LIBS="-ldnet $LIBS" 10726LIBS="-ldnet $LIBS"
7535cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10727cat >conftest.$ac_ext <<_ACEOF
10728/* confdefs.h. */
10729_ACEOF
10730cat confdefs.h >>conftest.$ac_ext
10731cat >>conftest.$ac_ext <<_ACEOF
7536/* end confdefs.h. */ 10732/* end confdefs.h. */
7537 10733
7538/* Override any GCC internal prototype to avoid an error. 10734/* Override any GCC internal prototype to avoid an error.
@@ -7550,18 +10746,43 @@ return dnet_ntoa ();
7550 return 0; 10746 return 0;
7551} 10747}
7552_ACEOF 10748_ACEOF
7553if ac_fn_c_try_link "$LINENO"; then : 10749rm -f conftest.$ac_objext conftest$ac_exeext
10750if { (ac_try="$ac_link"
10751case "(($ac_try" in
10752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10753 *) ac_try_echo=$ac_try;;
10754esac
10755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10756$as_echo "$ac_try_echo") >&5
10757 (eval "$ac_link") 2>conftest.er1
10758 ac_status=$?
10759 grep -v '^ *+' conftest.er1 >conftest.err
10760 rm -f conftest.er1
10761 cat conftest.err >&5
10762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10763 (exit $ac_status); } && {
10764 test -z "$ac_c_werror_flag" ||
10765 test ! -s conftest.err
10766 } && test -s conftest$ac_exeext && {
10767 test "$cross_compiling" = yes ||
10768 $as_test_x conftest$ac_exeext
10769 }; then
7554 ac_cv_lib_dnet_dnet_ntoa=yes 10770 ac_cv_lib_dnet_dnet_ntoa=yes
7555else 10771else
7556 ac_cv_lib_dnet_dnet_ntoa=no 10772 $as_echo "$as_me: failed program was:" >&5
10773sed 's/^/| /' conftest.$ac_ext >&5
10774
10775 ac_cv_lib_dnet_dnet_ntoa=no
7557fi 10776fi
7558rm -f core conftest.err conftest.$ac_objext \ 10777
7559 conftest$ac_exeext conftest.$ac_ext 10778rm -rf conftest.dSYM
10779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10780 conftest$ac_exeext conftest.$ac_ext
7560LIBS=$ac_check_lib_save_LIBS 10781LIBS=$ac_check_lib_save_LIBS
7561fi 10782fi
7562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 10783{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7563$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 10784$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7564if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 10785if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7565 cat >>confdefs.h <<_ACEOF 10786 cat >>confdefs.h <<_ACEOF
7566#define HAVE_LIBDNET 1 10787#define HAVE_LIBDNET 1
7567_ACEOF 10788_ACEOF
@@ -7571,14 +10792,18 @@ _ACEOF
7571fi 10792fi
7572 10793
7573 10794
7574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 10795{ $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7575$as_echo_n "checking for main in -lXbsd... " >&6; } 10796$as_echo_n "checking for main in -lXbsd... " >&6; }
7576if test "${ac_cv_lib_Xbsd_main+set}" = set; then : 10797if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7577 $as_echo_n "(cached) " >&6 10798 $as_echo_n "(cached) " >&6
7578else 10799else
7579 ac_check_lib_save_LIBS=$LIBS 10800 ac_check_lib_save_LIBS=$LIBS
7580LIBS="-lXbsd $LIBS" 10801LIBS="-lXbsd $LIBS"
7581cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10802cat >conftest.$ac_ext <<_ACEOF
10803/* confdefs.h. */
10804_ACEOF
10805cat confdefs.h >>conftest.$ac_ext
10806cat >>conftest.$ac_ext <<_ACEOF
7582/* end confdefs.h. */ 10807/* end confdefs.h. */
7583 10808
7584 10809
@@ -7590,30 +10815,60 @@ return main ();
7590 return 0; 10815 return 0;
7591} 10816}
7592_ACEOF 10817_ACEOF
7593if ac_fn_c_try_link "$LINENO"; then : 10818rm -f conftest.$ac_objext conftest$ac_exeext
10819if { (ac_try="$ac_link"
10820case "(($ac_try" in
10821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10822 *) ac_try_echo=$ac_try;;
10823esac
10824eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10825$as_echo "$ac_try_echo") >&5
10826 (eval "$ac_link") 2>conftest.er1
10827 ac_status=$?
10828 grep -v '^ *+' conftest.er1 >conftest.err
10829 rm -f conftest.er1
10830 cat conftest.err >&5
10831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10832 (exit $ac_status); } && {
10833 test -z "$ac_c_werror_flag" ||
10834 test ! -s conftest.err
10835 } && test -s conftest$ac_exeext && {
10836 test "$cross_compiling" = yes ||
10837 $as_test_x conftest$ac_exeext
10838 }; then
7594 ac_cv_lib_Xbsd_main=yes 10839 ac_cv_lib_Xbsd_main=yes
7595else 10840else
7596 ac_cv_lib_Xbsd_main=no 10841 $as_echo "$as_me: failed program was:" >&5
10842sed 's/^/| /' conftest.$ac_ext >&5
10843
10844 ac_cv_lib_Xbsd_main=no
7597fi 10845fi
7598rm -f core conftest.err conftest.$ac_objext \ 10846
7599 conftest$ac_exeext conftest.$ac_ext 10847rm -rf conftest.dSYM
10848rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10849 conftest$ac_exeext conftest.$ac_ext
7600LIBS=$ac_check_lib_save_LIBS 10850LIBS=$ac_check_lib_save_LIBS
7601fi 10851fi
7602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 10852{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7603$as_echo "$ac_cv_lib_Xbsd_main" >&6; } 10853$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7604if test "x$ac_cv_lib_Xbsd_main" = x""yes; then : 10854if test $ac_cv_lib_Xbsd_main = yes; then
7605 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" 10855 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7606fi 10856fi
7607 10857
7608 10858
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5 10859
10860{ $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7610$as_echo_n "checking for cma_open in -lpthreads... " >&6; } 10861$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7611if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then : 10862if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7612 $as_echo_n "(cached) " >&6 10863 $as_echo_n "(cached) " >&6
7613else 10864else
7614 ac_check_lib_save_LIBS=$LIBS 10865 ac_check_lib_save_LIBS=$LIBS
7615LIBS="-lpthreads $LIBS" 10866LIBS="-lpthreads $LIBS"
7616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10867cat >conftest.$ac_ext <<_ACEOF
10868/* confdefs.h. */
10869_ACEOF
10870cat confdefs.h >>conftest.$ac_ext
10871cat >>conftest.$ac_ext <<_ACEOF
7617/* end confdefs.h. */ 10872/* end confdefs.h. */
7618 10873
7619/* Override any GCC internal prototype to avoid an error. 10874/* Override any GCC internal prototype to avoid an error.
@@ -7631,18 +10886,43 @@ return cma_open ();
7631 return 0; 10886 return 0;
7632} 10887}
7633_ACEOF 10888_ACEOF
7634if ac_fn_c_try_link "$LINENO"; then : 10889rm -f conftest.$ac_objext conftest$ac_exeext
10890if { (ac_try="$ac_link"
10891case "(($ac_try" in
10892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10893 *) ac_try_echo=$ac_try;;
10894esac
10895eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10896$as_echo "$ac_try_echo") >&5
10897 (eval "$ac_link") 2>conftest.er1
10898 ac_status=$?
10899 grep -v '^ *+' conftest.er1 >conftest.err
10900 rm -f conftest.er1
10901 cat conftest.err >&5
10902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } && {
10904 test -z "$ac_c_werror_flag" ||
10905 test ! -s conftest.err
10906 } && test -s conftest$ac_exeext && {
10907 test "$cross_compiling" = yes ||
10908 $as_test_x conftest$ac_exeext
10909 }; then
7635 ac_cv_lib_pthreads_cma_open=yes 10910 ac_cv_lib_pthreads_cma_open=yes
7636else 10911else
7637 ac_cv_lib_pthreads_cma_open=no 10912 $as_echo "$as_me: failed program was:" >&5
10913sed 's/^/| /' conftest.$ac_ext >&5
10914
10915 ac_cv_lib_pthreads_cma_open=no
7638fi 10916fi
7639rm -f core conftest.err conftest.$ac_objext \ 10917
7640 conftest$ac_exeext conftest.$ac_ext 10918rm -rf conftest.dSYM
10919rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10920 conftest$ac_exeext conftest.$ac_ext
7641LIBS=$ac_check_lib_save_LIBS 10921LIBS=$ac_check_lib_save_LIBS
7642fi 10922fi
7643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5 10923{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7644$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } 10924$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7645if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then : 10925if test $ac_cv_lib_pthreads_cma_open = yes; then
7646 cat >>confdefs.h <<_ACEOF 10926 cat >>confdefs.h <<_ACEOF
7647#define HAVE_LIBPTHREADS 1 10927#define HAVE_LIBPTHREADS 1
7648_ACEOF 10928_ACEOF
@@ -7655,9 +10935,9 @@ fi
7655 10935
7656case ${host_os} in 10936case ${host_os} in
7657aix*) 10937aix*)
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 10938 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7659$as_echo_n "checking for -bbigtoc option... " >&6; } 10939$as_echo_n "checking for -bbigtoc option... " >&6; }
7660if test "${gdb_cv_bigtoc+set}" = set; then : 10940if test "${gdb_cv_bigtoc+set}" = set; then
7661 $as_echo_n "(cached) " >&6 10941 $as_echo_n "(cached) " >&6
7662else 10942else
7663 10943
@@ -7667,7 +10947,11 @@ else
7667 esac 10947 esac
7668 10948
7669 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc 10949 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10950 cat >conftest.$ac_ext <<_ACEOF
10951/* confdefs.h. */
10952_ACEOF
10953cat confdefs.h >>conftest.$ac_ext
10954cat >>conftest.$ac_ext <<_ACEOF
7671/* end confdefs.h. */ 10955/* end confdefs.h. */
7672 10956
7673int 10957int
@@ -7678,16 +10962,41 @@ int i;
7678 return 0; 10962 return 0;
7679} 10963}
7680_ACEOF 10964_ACEOF
7681if ac_fn_c_try_link "$LINENO"; then : 10965rm -f conftest.$ac_objext conftest$ac_exeext
7682 10966if { (ac_try="$ac_link"
10967case "(($ac_try" in
10968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10969 *) ac_try_echo=$ac_try;;
10970esac
10971eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10972$as_echo "$ac_try_echo") >&5
10973 (eval "$ac_link") 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest$ac_exeext && {
10983 test "$cross_compiling" = yes ||
10984 $as_test_x conftest$ac_exeext
10985 }; then
10986 :
7683else 10987else
7684 gdb_cv_bigtoc= 10988 $as_echo "$as_me: failed program was:" >&5
10989sed 's/^/| /' conftest.$ac_ext >&5
10990
10991 gdb_cv_bigtoc=
7685fi 10992fi
7686rm -f core conftest.err conftest.$ac_objext \ 10993
7687 conftest$ac_exeext conftest.$ac_ext 10994rm -rf conftest.dSYM
10995rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10996 conftest$ac_exeext conftest.$ac_ext
7688 10997
7689fi 10998fi
7690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5 10999{ $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7691$as_echo "$gdb_cv_bigtoc" >&6; } 11000$as_echo "$gdb_cv_bigtoc" >&6; }
7692 ;; 11001 ;;
7693esac 11002esac
@@ -7715,9 +11024,13 @@ if test "${HAVE_X11}" = "yes"; then
7715 fi 11024 fi
7716 11025
7717 if test "${opsys}" = "gnu-linux"; then 11026 if test "${opsys}" = "gnu-linux"; then
7718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5 11027 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7719$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } 11028$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11029 cat >conftest.$ac_ext <<_ACEOF
11030/* confdefs.h. */
11031_ACEOF
11032cat confdefs.h >>conftest.$ac_ext
11033cat >>conftest.$ac_ext <<_ACEOF
7721/* end confdefs.h. */ 11034/* end confdefs.h. */
7722 11035
7723int 11036int
@@ -7728,13 +11041,38 @@ XOpenDisplay ("foo");
7728 return 0; 11041 return 0;
7729} 11042}
7730_ACEOF 11043_ACEOF
7731if ac_fn_c_try_link "$LINENO"; then : 11044rm -f conftest.$ac_objext conftest$ac_exeext
11045if { (ac_try="$ac_link"
11046case "(($ac_try" in
11047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11048 *) ac_try_echo=$ac_try;;
11049esac
11050eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11051$as_echo "$ac_try_echo") >&5
11052 (eval "$ac_link") 2>conftest.er1
11053 ac_status=$?
11054 grep -v '^ *+' conftest.er1 >conftest.err
11055 rm -f conftest.er1
11056 cat conftest.err >&5
11057 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11058 (exit $ac_status); } && {
11059 test -z "$ac_c_werror_flag" ||
11060 test ! -s conftest.err
11061 } && test -s conftest$ac_exeext && {
11062 test "$cross_compiling" = yes ||
11063 $as_test_x conftest$ac_exeext
11064 }; then
7732 xlinux_first_failure=no 11065 xlinux_first_failure=no
7733else 11066else
7734 xlinux_first_failure=yes 11067 $as_echo "$as_me: failed program was:" >&5
11068sed 's/^/| /' conftest.$ac_ext >&5
11069
11070 xlinux_first_failure=yes
7735fi 11071fi
7736rm -f core conftest.err conftest.$ac_objext \ 11072
7737 conftest$ac_exeext conftest.$ac_ext 11073rm -rf conftest.dSYM
11074rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11075 conftest$ac_exeext conftest.$ac_ext
7738 if test "${xlinux_first_failure}" = "yes"; then 11076 if test "${xlinux_first_failure}" = "yes"; then
7739 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" 11077 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7740 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" 11078 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
@@ -7744,7 +11082,11 @@ rm -f core conftest.err conftest.$ac_objext \
7744 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 11082 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7745 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 11083 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7746 LIBS="$LIBS -b i486-linuxaout" 11084 LIBS="$LIBS -b i486-linuxaout"
7747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11085 cat >conftest.$ac_ext <<_ACEOF
11086/* confdefs.h. */
11087_ACEOF
11088cat confdefs.h >>conftest.$ac_ext
11089cat >>conftest.$ac_ext <<_ACEOF
7748/* end confdefs.h. */ 11090/* end confdefs.h. */
7749 11091
7750int 11092int
@@ -7755,13 +11097,38 @@ XOpenDisplay ("foo");
7755 return 0; 11097 return 0;
7756} 11098}
7757_ACEOF 11099_ACEOF
7758if ac_fn_c_try_link "$LINENO"; then : 11100rm -f conftest.$ac_objext conftest$ac_exeext
11101if { (ac_try="$ac_link"
11102case "(($ac_try" in
11103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11104 *) ac_try_echo=$ac_try;;
11105esac
11106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11107$as_echo "$ac_try_echo") >&5
11108 (eval "$ac_link") 2>conftest.er1
11109 ac_status=$?
11110 grep -v '^ *+' conftest.er1 >conftest.err
11111 rm -f conftest.er1
11112 cat conftest.err >&5
11113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); } && {
11115 test -z "$ac_c_werror_flag" ||
11116 test ! -s conftest.err
11117 } && test -s conftest$ac_exeext && {
11118 test "$cross_compiling" = yes ||
11119 $as_test_x conftest$ac_exeext
11120 }; then
7759 xlinux_second_failure=no 11121 xlinux_second_failure=no
7760else 11122else
7761 xlinux_second_failure=yes 11123 $as_echo "$as_me: failed program was:" >&5
11124sed 's/^/| /' conftest.$ac_ext >&5
11125
11126 xlinux_second_failure=yes
7762fi 11127fi
7763rm -f core conftest.err conftest.$ac_objext \ 11128
7764 conftest$ac_exeext conftest.$ac_ext 11129rm -rf conftest.dSYM
11130rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11131 conftest$ac_exeext conftest.$ac_ext
7765 if test "${xlinux_second_failure}" = "yes"; then 11132 if test "${xlinux_second_failure}" = "yes"; then
7766 # If we get the same failure with -b, there is no use adding -b. 11133 # If we get the same failure with -b, there is no use adding -b.
7767 # So take it out. This plays safe. 11134 # So take it out. This plays safe.
@@ -7769,23 +11136,27 @@ rm -f core conftest.err conftest.$ac_objext \
7769 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" 11136 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7770 CPPFLAGS="$OLD_CPPFLAGS" 11137 CPPFLAGS="$OLD_CPPFLAGS"
7771 LIBS="$OLD_LIBS" 11138 LIBS="$OLD_LIBS"
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11139 { $as_echo "$as_me:$LINENO: result: no" >&5
7773$as_echo "no" >&6; } 11140$as_echo "no" >&6; }
7774 else 11141 else
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11142 { $as_echo "$as_me:$LINENO: result: yes" >&5
7776$as_echo "yes" >&6; } 11143$as_echo "yes" >&6; }
7777 fi 11144 fi
7778 else 11145 else
7779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11146 { $as_echo "$as_me:$LINENO: result: no" >&5
7780$as_echo "no" >&6; } 11147$as_echo "no" >&6; }
7781 fi 11148 fi
7782 fi 11149 fi
7783 11150
7784 # Reportedly, some broken Solaris systems have XKBlib.h but are missing 11151 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7785 # header files included from there. 11152 # header files included from there.
7786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5 11153 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
7787$as_echo_n "checking for Xkb... " >&6; } 11154$as_echo_n "checking for Xkb... " >&6; }
7788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11155 cat >conftest.$ac_ext <<_ACEOF
11156/* confdefs.h. */
11157_ACEOF
11158cat confdefs.h >>conftest.$ac_ext
11159cat >>conftest.$ac_ext <<_ACEOF
7789/* end confdefs.h. */ 11160/* end confdefs.h. */
7790#include <X11/Xlib.h> 11161#include <X11/Xlib.h>
7791#include <X11/XKBlib.h> 11162#include <X11/XKBlib.h>
@@ -7797,28 +11168,145 @@ XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7797 return 0; 11168 return 0;
7798} 11169}
7799_ACEOF 11170_ACEOF
7800if ac_fn_c_try_link "$LINENO"; then : 11171rm -f conftest.$ac_objext conftest$ac_exeext
11172if { (ac_try="$ac_link"
11173case "(($ac_try" in
11174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11175 *) ac_try_echo=$ac_try;;
11176esac
11177eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11178$as_echo "$ac_try_echo") >&5
11179 (eval "$ac_link") 2>conftest.er1
11180 ac_status=$?
11181 grep -v '^ *+' conftest.er1 >conftest.err
11182 rm -f conftest.er1
11183 cat conftest.err >&5
11184 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11185 (exit $ac_status); } && {
11186 test -z "$ac_c_werror_flag" ||
11187 test ! -s conftest.err
11188 } && test -s conftest$ac_exeext && {
11189 test "$cross_compiling" = yes ||
11190 $as_test_x conftest$ac_exeext
11191 }; then
7801 emacs_xkb=yes 11192 emacs_xkb=yes
7802else 11193else
7803 emacs_xkb=no 11194 $as_echo "$as_me: failed program was:" >&5
11195sed 's/^/| /' conftest.$ac_ext >&5
11196
11197 emacs_xkb=no
7804fi 11198fi
7805rm -f core conftest.err conftest.$ac_objext \ 11199
7806 conftest$ac_exeext conftest.$ac_ext 11200rm -rf conftest.dSYM
7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5 11201rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11202 conftest$ac_exeext conftest.$ac_ext
11203 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
7808$as_echo "$emacs_xkb" >&6; } 11204$as_echo "$emacs_xkb" >&6; }
7809 if test $emacs_xkb = yes; then 11205 if test $emacs_xkb = yes; then
7810 11206
7811$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h 11207cat >>confdefs.h <<\_ACEOF
11208#define HAVE_XKBGETKEYBOARD 1
11209_ACEOF
7812 11210
7813 fi 11211 fi
7814 11212
7815 for ac_func in XrmSetDatabase XScreenResourceString \ 11213
11214
11215
11216
11217for ac_func in XrmSetDatabase XScreenResourceString \
7816XScreenNumberOfScreen XSetWMProtocols 11218XScreenNumberOfScreen XSetWMProtocols
7817do : 11219do
7818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11220as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7819ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11221{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
7820eval as_val=\$$as_ac_var 11222$as_echo_n "checking for $ac_func... " >&6; }
7821 if test "x$as_val" = x""yes; then : 11223if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11224 $as_echo_n "(cached) " >&6
11225else
11226 cat >conftest.$ac_ext <<_ACEOF
11227/* confdefs.h. */
11228_ACEOF
11229cat confdefs.h >>conftest.$ac_ext
11230cat >>conftest.$ac_ext <<_ACEOF
11231/* end confdefs.h. */
11232/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11234#define $ac_func innocuous_$ac_func
11235
11236/* System header to define __stub macros and hopefully few prototypes,
11237 which can conflict with char $ac_func (); below.
11238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11239 <limits.h> exists even on freestanding compilers. */
11240
11241#ifdef __STDC__
11242# include <limits.h>
11243#else
11244# include <assert.h>
11245#endif
11246
11247#undef $ac_func
11248
11249/* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11252#ifdef __cplusplus
11253extern "C"
11254#endif
11255char $ac_func ();
11256/* The GNU C library defines this for functions which it implements
11257 to always fail with ENOSYS. Some functions are actually named
11258 something starting with __ and the normal name is an alias. */
11259#if defined __stub_$ac_func || defined __stub___$ac_func
11260choke me
11261#endif
11262
11263int
11264main ()
11265{
11266return $ac_func ();
11267 ;
11268 return 0;
11269}
11270_ACEOF
11271rm -f conftest.$ac_objext conftest$ac_exeext
11272if { (ac_try="$ac_link"
11273case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276esac
11277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11278$as_echo "$ac_try_echo") >&5
11279 (eval "$ac_link") 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } && {
11286 test -z "$ac_c_werror_flag" ||
11287 test ! -s conftest.err
11288 } && test -s conftest$ac_exeext && {
11289 test "$cross_compiling" = yes ||
11290 $as_test_x conftest$ac_exeext
11291 }; then
11292 eval "$as_ac_var=yes"
11293else
11294 $as_echo "$as_me: failed program was:" >&5
11295sed 's/^/| /' conftest.$ac_ext >&5
11296
11297 eval "$as_ac_var=no"
11298fi
11299
11300rm -rf conftest.dSYM
11301rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11302 conftest$ac_exeext conftest.$ac_ext
11303fi
11304ac_res=`eval 'as_val=${'$as_ac_var'}
11305 $as_echo "$as_val"'`
11306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11307$as_echo "$ac_res" >&6; }
11308if test `eval 'as_val=${'$as_ac_var'}
11309 $as_echo "$as_val"'` = yes; then
7822 cat >>confdefs.h <<_ACEOF 11310 cat >>confdefs.h <<_ACEOF
7823#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11311#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7824_ACEOF 11312_ACEOF
@@ -7829,12 +11317,16 @@ done
7829fi 11317fi
7830 11318
7831if test "${window_system}" = "x11"; then 11319if test "${window_system}" = "x11"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5 11320 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
7833$as_echo_n "checking X11 version 6... " >&6; } 11321$as_echo_n "checking X11 version 6... " >&6; }
7834 if test "${emacs_cv_x11_version_6+set}" = set; then : 11322 if test "${emacs_cv_x11_version_6+set}" = set; then
7835 $as_echo_n "(cached) " >&6 11323 $as_echo_n "(cached) " >&6
7836else 11324else
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11325 cat >conftest.$ac_ext <<_ACEOF
11326/* confdefs.h. */
11327_ACEOF
11328cat confdefs.h >>conftest.$ac_ext
11329cat >>conftest.$ac_ext <<_ACEOF
7838/* end confdefs.h. */ 11330/* end confdefs.h. */
7839#include <X11/Xlib.h> 11331#include <X11/Xlib.h>
7840int 11332int
@@ -7848,23 +11340,50 @@ fail;
7848 return 0; 11340 return 0;
7849} 11341}
7850_ACEOF 11342_ACEOF
7851if ac_fn_c_try_link "$LINENO"; then : 11343rm -f conftest.$ac_objext conftest$ac_exeext
11344if { (ac_try="$ac_link"
11345case "(($ac_try" in
11346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11347 *) ac_try_echo=$ac_try;;
11348esac
11349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11350$as_echo "$ac_try_echo") >&5
11351 (eval "$ac_link") 2>conftest.er1
11352 ac_status=$?
11353 grep -v '^ *+' conftest.er1 >conftest.err
11354 rm -f conftest.er1
11355 cat conftest.err >&5
11356 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357 (exit $ac_status); } && {
11358 test -z "$ac_c_werror_flag" ||
11359 test ! -s conftest.err
11360 } && test -s conftest$ac_exeext && {
11361 test "$cross_compiling" = yes ||
11362 $as_test_x conftest$ac_exeext
11363 }; then
7852 emacs_cv_x11_version_6=yes 11364 emacs_cv_x11_version_6=yes
7853else 11365else
7854 emacs_cv_x11_version_6=no 11366 $as_echo "$as_me: failed program was:" >&5
11367sed 's/^/| /' conftest.$ac_ext >&5
11368
11369 emacs_cv_x11_version_6=no
7855fi 11370fi
7856rm -f core conftest.err conftest.$ac_objext \ 11371
7857 conftest$ac_exeext conftest.$ac_ext 11372rm -rf conftest.dSYM
11373rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11374 conftest$ac_exeext conftest.$ac_ext
7858fi 11375fi
7859 11376
7860 if test $emacs_cv_x11_version_6 = yes; then 11377 if test $emacs_cv_x11_version_6 = yes; then
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 11378 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
7862$as_echo "6 or newer" >&6; } 11379$as_echo "6 or newer" >&6; }
7863 11380
7864$as_echo "#define HAVE_X11R6 1" >>confdefs.h 11381cat >>confdefs.h <<\_ACEOF
11382#define HAVE_X11R6 1
11383_ACEOF
7865 11384
7866 else 11385 else
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 11386 { $as_echo "$as_me:$LINENO: result: before 6" >&5
7868$as_echo "before 6" >&6; } 11387$as_echo "before 6" >&6; }
7869 fi 11388 fi
7870fi 11389fi
@@ -7882,9 +11401,9 @@ if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
7882 11401
7883 # Extract the first word of "pkg-config", so it can be a program name with args. 11402 # Extract the first word of "pkg-config", so it can be a program name with args.
7884set dummy pkg-config; ac_word=$2 11403set dummy pkg-config; ac_word=$2
7885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11404{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7886$as_echo_n "checking for $ac_word... " >&6; } 11405$as_echo_n "checking for $ac_word... " >&6; }
7887if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11406if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
7888 $as_echo_n "(cached) " >&6 11407 $as_echo_n "(cached) " >&6
7889else 11408else
7890 case $PKG_CONFIG in 11409 case $PKG_CONFIG in
@@ -7897,14 +11416,14 @@ for as_dir in $PATH
7897do 11416do
7898 IFS=$as_save_IFS 11417 IFS=$as_save_IFS
7899 test -z "$as_dir" && as_dir=. 11418 test -z "$as_dir" && as_dir=.
7900 for ac_exec_ext in '' $ac_executable_extensions; do 11419 for ac_exec_ext in '' $ac_executable_extensions; do
7901 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7902 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11421 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7904 break 2 11423 break 2
7905 fi 11424 fi
7906done 11425done
7907 done 11426done
7908IFS=$as_save_IFS 11427IFS=$as_save_IFS
7909 11428
7910 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 11429 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -7913,10 +11432,10 @@ esac
7913fi 11432fi
7914PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11433PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7915if test -n "$PKG_CONFIG"; then 11434if test -n "$PKG_CONFIG"; then
7916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11435 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
7917$as_echo "$PKG_CONFIG" >&6; } 11436$as_echo "$PKG_CONFIG" >&6; }
7918else 11437else
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11438 { $as_echo "$as_me:$LINENO: result: no" >&5
7920$as_echo "no" >&6; } 11439$as_echo "no" >&6; }
7921fi 11440fi
7922 11441
@@ -7927,27 +11446,27 @@ fi
7927 else 11446 else
7928 PKG_CONFIG_MIN_VERSION=0.9.0 11447 PKG_CONFIG_MIN_VERSION=0.9.0
7929 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 11448 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5 11449 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
7931$as_echo_n "checking for $RSVG_MODULE... " >&6; } 11450$as_echo_n "checking for $RSVG_MODULE... " >&6; }
7932 11451
7933 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then 11452 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11453 { $as_echo "$as_me:$LINENO: result: yes" >&5
7935$as_echo "yes" >&6; } 11454$as_echo "yes" >&6; }
7936 succeeded=yes 11455 succeeded=yes
7937 11456
7938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5 11457 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
7939$as_echo_n "checking RSVG_CFLAGS... " >&6; } 11458$as_echo_n "checking RSVG_CFLAGS... " >&6; }
7940 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` 11459 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5 11460 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
7942$as_echo "$RSVG_CFLAGS" >&6; } 11461$as_echo "$RSVG_CFLAGS" >&6; }
7943 11462
7944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5 11463 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
7945$as_echo_n "checking RSVG_LIBS... " >&6; } 11464$as_echo_n "checking RSVG_LIBS... " >&6; }
7946 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` 11465 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5 11466 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
7948$as_echo "$RSVG_LIBS" >&6; } 11467$as_echo "$RSVG_LIBS" >&6; }
7949 else 11468 else
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11469 { $as_echo "$as_me:$LINENO: result: no" >&5
7951$as_echo "no" >&6; } 11470$as_echo "no" >&6; }
7952 RSVG_CFLAGS="" 11471 RSVG_CFLAGS=""
7953 RSVG_LIBS="" 11472 RSVG_LIBS=""
@@ -7977,7 +11496,9 @@ $as_echo "no" >&6; }
7977 if test ".${RSVG_CFLAGS}" != "."; then 11496 if test ".${RSVG_CFLAGS}" != "."; then
7978 HAVE_RSVG=yes 11497 HAVE_RSVG=yes
7979 11498
7980$as_echo "#define HAVE_RSVG 1" >>confdefs.h 11499cat >>confdefs.h <<\_ACEOF
11500#define HAVE_RSVG 1
11501_ACEOF
7981 11502
7982 CFLAGS="$CFLAGS $RSVG_CFLAGS" 11503 CFLAGS="$CFLAGS $RSVG_CFLAGS"
7983 LIBS="$RSVG_LIBS $LIBS" 11504 LIBS="$RSVG_LIBS $LIBS"
@@ -7997,9 +11518,9 @@ if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
7997 11518
7998 # Extract the first word of "pkg-config", so it can be a program name with args. 11519 # Extract the first word of "pkg-config", so it can be a program name with args.
7999set dummy pkg-config; ac_word=$2 11520set dummy pkg-config; ac_word=$2
8000{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11521{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8001$as_echo_n "checking for $ac_word... " >&6; } 11522$as_echo_n "checking for $ac_word... " >&6; }
8002if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11523if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8003 $as_echo_n "(cached) " >&6 11524 $as_echo_n "(cached) " >&6
8004else 11525else
8005 case $PKG_CONFIG in 11526 case $PKG_CONFIG in
@@ -8012,14 +11533,14 @@ for as_dir in $PATH
8012do 11533do
8013 IFS=$as_save_IFS 11534 IFS=$as_save_IFS
8014 test -z "$as_dir" && as_dir=. 11535 test -z "$as_dir" && as_dir=.
8015 for ac_exec_ext in '' $ac_executable_extensions; do 11536 for ac_exec_ext in '' $ac_executable_extensions; do
8016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8017 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11538 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11539 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8019 break 2 11540 break 2
8020 fi 11541 fi
8021done 11542done
8022 done 11543done
8023IFS=$as_save_IFS 11544IFS=$as_save_IFS
8024 11545
8025 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 11546 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8028,10 +11549,10 @@ esac
8028fi 11549fi
8029PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11550PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8030if test -n "$PKG_CONFIG"; then 11551if test -n "$PKG_CONFIG"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11552 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8032$as_echo "$PKG_CONFIG" >&6; } 11553$as_echo "$PKG_CONFIG" >&6; }
8033else 11554else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11555 { $as_echo "$as_me:$LINENO: result: no" >&5
8035$as_echo "no" >&6; } 11556$as_echo "no" >&6; }
8036fi 11557fi
8037 11558
@@ -8042,27 +11563,27 @@ fi
8042 else 11563 else
8043 PKG_CONFIG_MIN_VERSION=0.9.0 11564 PKG_CONFIG_MIN_VERSION=0.9.0
8044 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 11565 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 11566 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8046$as_echo_n "checking for $GTK_MODULES... " >&6; } 11567$as_echo_n "checking for $GTK_MODULES... " >&6; }
8047 11568
8048 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then 11569 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11570 { $as_echo "$as_me:$LINENO: result: yes" >&5
8050$as_echo "yes" >&6; } 11571$as_echo "yes" >&6; }
8051 succeeded=yes 11572 succeeded=yes
8052 11573
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5 11574 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8054$as_echo_n "checking GTK_CFLAGS... " >&6; } 11575$as_echo_n "checking GTK_CFLAGS... " >&6; }
8055 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` 11576 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5 11577 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8057$as_echo "$GTK_CFLAGS" >&6; } 11578$as_echo "$GTK_CFLAGS" >&6; }
8058 11579
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5 11580 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8060$as_echo_n "checking GTK_LIBS... " >&6; } 11581$as_echo_n "checking GTK_LIBS... " >&6; }
8061 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` 11582 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5 11583 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8063$as_echo "$GTK_LIBS" >&6; } 11584$as_echo "$GTK_LIBS" >&6; }
8064 else 11585 else
8065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11586 { $as_echo "$as_me:$LINENO: result: no" >&5
8066$as_echo "no" >&6; } 11587$as_echo "no" >&6; }
8067 GTK_CFLAGS="" 11588 GTK_CFLAGS=""
8068 GTK_LIBS="" 11589 GTK_LIBS=""
@@ -8087,7 +11608,9 @@ $as_echo "no" >&6; }
8087 fi 11608 fi
8088 11609
8089 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then 11610 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8090 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 11611 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11612$as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11613 { (exit 1); exit 1; }; }
8091 fi 11614 fi
8092fi 11615fi
8093 11616
@@ -8100,12 +11623,101 @@ if test x"$pkg_check_gtk" = xyes; then
8100 CFLAGS="$CFLAGS $GTK_CFLAGS" 11623 CFLAGS="$CFLAGS $GTK_CFLAGS"
8101 LIBS="$GTK_LIBS $LIBS" 11624 LIBS="$GTK_LIBS $LIBS"
8102 GTK_COMPILES=no 11625 GTK_COMPILES=no
8103 for ac_func in gtk_main 11626
8104do : 11627for ac_func in gtk_main
8105 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main" 11628do
8106if test "x$ac_cv_func_gtk_main" = x""yes; then : 11629as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11630{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11631$as_echo_n "checking for $ac_func... " >&6; }
11632if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11633 $as_echo_n "(cached) " >&6
11634else
11635 cat >conftest.$ac_ext <<_ACEOF
11636/* confdefs.h. */
11637_ACEOF
11638cat confdefs.h >>conftest.$ac_ext
11639cat >>conftest.$ac_ext <<_ACEOF
11640/* end confdefs.h. */
11641/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11642 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11643#define $ac_func innocuous_$ac_func
11644
11645/* System header to define __stub macros and hopefully few prototypes,
11646 which can conflict with char $ac_func (); below.
11647 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11648 <limits.h> exists even on freestanding compilers. */
11649
11650#ifdef __STDC__
11651# include <limits.h>
11652#else
11653# include <assert.h>
11654#endif
11655
11656#undef $ac_func
11657
11658/* Override any GCC internal prototype to avoid an error.
11659 Use char because int might match the return type of a GCC
11660 builtin and then its argument prototype would still apply. */
11661#ifdef __cplusplus
11662extern "C"
11663#endif
11664char $ac_func ();
11665/* The GNU C library defines this for functions which it implements
11666 to always fail with ENOSYS. Some functions are actually named
11667 something starting with __ and the normal name is an alias. */
11668#if defined __stub_$ac_func || defined __stub___$ac_func
11669choke me
11670#endif
11671
11672int
11673main ()
11674{
11675return $ac_func ();
11676 ;
11677 return 0;
11678}
11679_ACEOF
11680rm -f conftest.$ac_objext conftest$ac_exeext
11681if { (ac_try="$ac_link"
11682case "(($ac_try" in
11683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11684 *) ac_try_echo=$ac_try;;
11685esac
11686eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11687$as_echo "$ac_try_echo") >&5
11688 (eval "$ac_link") 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } && {
11695 test -z "$ac_c_werror_flag" ||
11696 test ! -s conftest.err
11697 } && test -s conftest$ac_exeext && {
11698 test "$cross_compiling" = yes ||
11699 $as_test_x conftest$ac_exeext
11700 }; then
11701 eval "$as_ac_var=yes"
11702else
11703 $as_echo "$as_me: failed program was:" >&5
11704sed 's/^/| /' conftest.$ac_ext >&5
11705
11706 eval "$as_ac_var=no"
11707fi
11708
11709rm -rf conftest.dSYM
11710rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11711 conftest$ac_exeext conftest.$ac_ext
11712fi
11713ac_res=`eval 'as_val=${'$as_ac_var'}
11714 $as_echo "$as_val"'`
11715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11716$as_echo "$ac_res" >&6; }
11717if test `eval 'as_val=${'$as_ac_var'}
11718 $as_echo "$as_val"'` = yes; then
8107 cat >>confdefs.h <<_ACEOF 11719 cat >>confdefs.h <<_ACEOF
8108#define HAVE_GTK_MAIN 1 11720#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8109_ACEOF 11721_ACEOF
8110 GTK_COMPILES=yes 11722 GTK_COMPILES=yes
8111fi 11723fi
@@ -8113,18 +11725,22 @@ done
8113 11725
8114 if test "${GTK_COMPILES}" != "yes"; then 11726 if test "${GTK_COMPILES}" != "yes"; then
8115 if test "$USE_X_TOOLKIT" != "maybe"; then 11727 if test "$USE_X_TOOLKIT" != "maybe"; then
8116 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; 11728 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11729$as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11730 { (exit 1); exit 1; }; };
8117 fi 11731 fi
8118 else 11732 else
8119 HAVE_GTK=yes 11733 HAVE_GTK=yes
8120 11734
8121$as_echo "#define USE_GTK 1" >>confdefs.h 11735cat >>confdefs.h <<\_ACEOF
11736#define USE_GTK 1
11737_ACEOF
8122 11738
8123 USE_X_TOOLKIT=none 11739 USE_X_TOOLKIT=none
8124 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then 11740 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8125 : 11741 :
8126 else 11742 else
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with 11743 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
8128 closing open displays. This is no problem if you just use 11744 closing open displays. This is no problem if you just use
8129 one display, but if you use more than one and close one of them 11745 one display, but if you use more than one and close one of them
8130 Emacs may crash." >&5 11746 Emacs may crash." >&5
@@ -8146,12 +11762,101 @@ if test "${HAVE_GTK}" = "yes"; then
8146 fi 11762 fi
8147 11763
8148 HAVE_GTK_MULTIDISPLAY=no 11764 HAVE_GTK_MULTIDISPLAY=no
8149 for ac_func in gdk_display_open 11765
8150do : 11766for ac_func in gdk_display_open
8151 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open" 11767do
8152if test "x$ac_cv_func_gdk_display_open" = x""yes; then : 11768as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11769{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11770$as_echo_n "checking for $ac_func... " >&6; }
11771if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11772 $as_echo_n "(cached) " >&6
11773else
11774 cat >conftest.$ac_ext <<_ACEOF
11775/* confdefs.h. */
11776_ACEOF
11777cat confdefs.h >>conftest.$ac_ext
11778cat >>conftest.$ac_ext <<_ACEOF
11779/* end confdefs.h. */
11780/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11781 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11782#define $ac_func innocuous_$ac_func
11783
11784/* System header to define __stub macros and hopefully few prototypes,
11785 which can conflict with char $ac_func (); below.
11786 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11787 <limits.h> exists even on freestanding compilers. */
11788
11789#ifdef __STDC__
11790# include <limits.h>
11791#else
11792# include <assert.h>
11793#endif
11794
11795#undef $ac_func
11796
11797/* Override any GCC internal prototype to avoid an error.
11798 Use char because int might match the return type of a GCC
11799 builtin and then its argument prototype would still apply. */
11800#ifdef __cplusplus
11801extern "C"
11802#endif
11803char $ac_func ();
11804/* The GNU C library defines this for functions which it implements
11805 to always fail with ENOSYS. Some functions are actually named
11806 something starting with __ and the normal name is an alias. */
11807#if defined __stub_$ac_func || defined __stub___$ac_func
11808choke me
11809#endif
11810
11811int
11812main ()
11813{
11814return $ac_func ();
11815 ;
11816 return 0;
11817}
11818_ACEOF
11819rm -f conftest.$ac_objext conftest$ac_exeext
11820if { (ac_try="$ac_link"
11821case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11824esac
11825eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11826$as_echo "$ac_try_echo") >&5
11827 (eval "$ac_link") 2>conftest.er1
11828 ac_status=$?
11829 grep -v '^ *+' conftest.er1 >conftest.err
11830 rm -f conftest.er1
11831 cat conftest.err >&5
11832 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } && {
11834 test -z "$ac_c_werror_flag" ||
11835 test ! -s conftest.err
11836 } && test -s conftest$ac_exeext && {
11837 test "$cross_compiling" = yes ||
11838 $as_test_x conftest$ac_exeext
11839 }; then
11840 eval "$as_ac_var=yes"
11841else
11842 $as_echo "$as_me: failed program was:" >&5
11843sed 's/^/| /' conftest.$ac_ext >&5
11844
11845 eval "$as_ac_var=no"
11846fi
11847
11848rm -rf conftest.dSYM
11849rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11850 conftest$ac_exeext conftest.$ac_ext
11851fi
11852ac_res=`eval 'as_val=${'$as_ac_var'}
11853 $as_echo "$as_val"'`
11854 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11855$as_echo "$ac_res" >&6; }
11856if test `eval 'as_val=${'$as_ac_var'}
11857 $as_echo "$as_val"'` = yes; then
8153 cat >>confdefs.h <<_ACEOF 11858 cat >>confdefs.h <<_ACEOF
8154#define HAVE_GDK_DISPLAY_OPEN 1 11859#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8155_ACEOF 11860_ACEOF
8156 HAVE_GTK_MULTIDISPLAY=yes 11861 HAVE_GTK_MULTIDISPLAY=yes
8157fi 11862fi
@@ -8159,27 +11864,170 @@ done
8159 11864
8160 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then 11865 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8161 11866
8162$as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h 11867cat >>confdefs.h <<\_ACEOF
11868#define HAVE_GTK_MULTIDISPLAY 1
11869_ACEOF
8163 11870
8164 fi 11871 fi
8165 11872
8166 HAVE_GTK_FILE_SELECTION=no 11873 HAVE_GTK_FILE_SELECTION=no
8167 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default 11874 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
11875$as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11876if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11877 $as_echo_n "(cached) " >&6
11878else
11879 cat >conftest.$ac_ext <<_ACEOF
11880/* confdefs.h. */
11881_ACEOF
11882cat confdefs.h >>conftest.$ac_ext
11883cat >>conftest.$ac_ext <<_ACEOF
11884/* end confdefs.h. */
11885$ac_includes_default
8168#include <gtk/gtk.h> 11886#include <gtk/gtk.h>
8169" 11887
8170if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then : 11888int
11889main ()
11890{
11891#ifndef GTK_TYPE_FILE_SELECTION
11892 (void) GTK_TYPE_FILE_SELECTION;
11893#endif
11894
11895 ;
11896 return 0;
11897}
11898_ACEOF
11899rm -f conftest.$ac_objext
11900if { (ac_try="$ac_compile"
11901case "(($ac_try" in
11902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11903 *) ac_try_echo=$ac_try;;
11904esac
11905eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11906$as_echo "$ac_try_echo") >&5
11907 (eval "$ac_compile") 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest.$ac_objext; then
11917 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11918else
11919 $as_echo "$as_me: failed program was:" >&5
11920sed 's/^/| /' conftest.$ac_ext >&5
11921
11922 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11923fi
11924
11925rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11926fi
11927{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11928$as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11929if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
8171 HAVE_GTK_FILE_SELECTION=yes 11930 HAVE_GTK_FILE_SELECTION=yes
8172else 11931else
8173 HAVE_GTK_FILE_SELECTION=no 11932 HAVE_GTK_FILE_SELECTION=no
8174fi 11933fi
8175 11934
8176 if test "$HAVE_GTK_FILE_SELECTION" = yes; then 11935 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8177 for ac_func in gtk_file_selection_new 11936
8178do : 11937for ac_func in gtk_file_selection_new
8179 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new" 11938do
8180if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then : 11939as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11940{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11941$as_echo_n "checking for $ac_func... " >&6; }
11942if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11943 $as_echo_n "(cached) " >&6
11944else
11945 cat >conftest.$ac_ext <<_ACEOF
11946/* confdefs.h. */
11947_ACEOF
11948cat confdefs.h >>conftest.$ac_ext
11949cat >>conftest.$ac_ext <<_ACEOF
11950/* end confdefs.h. */
11951/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11953#define $ac_func innocuous_$ac_func
11954
11955/* System header to define __stub macros and hopefully few prototypes,
11956 which can conflict with char $ac_func (); below.
11957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11958 <limits.h> exists even on freestanding compilers. */
11959
11960#ifdef __STDC__
11961# include <limits.h>
11962#else
11963# include <assert.h>
11964#endif
11965
11966#undef $ac_func
11967
11968/* Override any GCC internal prototype to avoid an error.
11969 Use char because int might match the return type of a GCC
11970 builtin and then its argument prototype would still apply. */
11971#ifdef __cplusplus
11972extern "C"
11973#endif
11974char $ac_func ();
11975/* The GNU C library defines this for functions which it implements
11976 to always fail with ENOSYS. Some functions are actually named
11977 something starting with __ and the normal name is an alias. */
11978#if defined __stub_$ac_func || defined __stub___$ac_func
11979choke me
11980#endif
11981
11982int
11983main ()
11984{
11985return $ac_func ();
11986 ;
11987 return 0;
11988}
11989_ACEOF
11990rm -f conftest.$ac_objext conftest$ac_exeext
11991if { (ac_try="$ac_link"
11992case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11995esac
11996eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11997$as_echo "$ac_try_echo") >&5
11998 (eval "$ac_link") 2>conftest.er1
11999 ac_status=$?
12000 grep -v '^ *+' conftest.er1 >conftest.err
12001 rm -f conftest.er1
12002 cat conftest.err >&5
12003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12004 (exit $ac_status); } && {
12005 test -z "$ac_c_werror_flag" ||
12006 test ! -s conftest.err
12007 } && test -s conftest$ac_exeext && {
12008 test "$cross_compiling" = yes ||
12009 $as_test_x conftest$ac_exeext
12010 }; then
12011 eval "$as_ac_var=yes"
12012else
12013 $as_echo "$as_me: failed program was:" >&5
12014sed 's/^/| /' conftest.$ac_ext >&5
12015
12016 eval "$as_ac_var=no"
12017fi
12018
12019rm -rf conftest.dSYM
12020rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12021 conftest$ac_exeext conftest.$ac_ext
12022fi
12023ac_res=`eval 'as_val=${'$as_ac_var'}
12024 $as_echo "$as_val"'`
12025 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12026$as_echo "$ac_res" >&6; }
12027if test `eval 'as_val=${'$as_ac_var'}
12028 $as_echo "$as_val"'` = yes; then
8181 cat >>confdefs.h <<_ACEOF 12029 cat >>confdefs.h <<_ACEOF
8182#define HAVE_GTK_FILE_SELECTION_NEW 1 12030#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8183_ACEOF 12031_ACEOF
8184 HAVE_GTK_FILE_SELECTION=yes 12032 HAVE_GTK_FILE_SELECTION=yes
8185else 12033else
@@ -8190,22 +12038,163 @@ done
8190 fi 12038 fi
8191 12039
8192 HAVE_GTK_FILE_CHOOSER=no 12040 HAVE_GTK_FILE_CHOOSER=no
8193 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default 12041 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12042$as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12043if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12044 $as_echo_n "(cached) " >&6
12045else
12046 cat >conftest.$ac_ext <<_ACEOF
12047/* confdefs.h. */
12048_ACEOF
12049cat confdefs.h >>conftest.$ac_ext
12050cat >>conftest.$ac_ext <<_ACEOF
12051/* end confdefs.h. */
12052$ac_includes_default
8194#include <gtk/gtk.h> 12053#include <gtk/gtk.h>
8195" 12054
8196if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then : 12055int
12056main ()
12057{
12058#ifndef GTK_TYPE_FILE_CHOOSER
12059 (void) GTK_TYPE_FILE_CHOOSER;
12060#endif
12061
12062 ;
12063 return 0;
12064}
12065_ACEOF
12066rm -f conftest.$ac_objext
12067if { (ac_try="$ac_compile"
12068case "(($ac_try" in
12069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12070 *) ac_try_echo=$ac_try;;
12071esac
12072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12073$as_echo "$ac_try_echo") >&5
12074 (eval "$ac_compile") 2>conftest.er1
12075 ac_status=$?
12076 grep -v '^ *+' conftest.er1 >conftest.err
12077 rm -f conftest.er1
12078 cat conftest.err >&5
12079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest.$ac_objext; then
12084 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12085else
12086 $as_echo "$as_me: failed program was:" >&5
12087sed 's/^/| /' conftest.$ac_ext >&5
12088
12089 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12090fi
12091
12092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12093fi
12094{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12095$as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12096if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
8197 HAVE_GTK_FILE_CHOOSER=yes 12097 HAVE_GTK_FILE_CHOOSER=yes
8198else 12098else
8199 HAVE_GTK_FILE_CHOOSER=no 12099 HAVE_GTK_FILE_CHOOSER=no
8200fi 12100fi
8201 12101
8202 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12102 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8203 for ac_func in gtk_file_chooser_dialog_new 12103
8204do : 12104for ac_func in gtk_file_chooser_dialog_new
8205 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new" 12105do
8206if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then : 12106as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12107{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12108$as_echo_n "checking for $ac_func... " >&6; }
12109if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12110 $as_echo_n "(cached) " >&6
12111else
12112 cat >conftest.$ac_ext <<_ACEOF
12113/* confdefs.h. */
12114_ACEOF
12115cat confdefs.h >>conftest.$ac_ext
12116cat >>conftest.$ac_ext <<_ACEOF
12117/* end confdefs.h. */
12118/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12119 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12120#define $ac_func innocuous_$ac_func
12121
12122/* System header to define __stub macros and hopefully few prototypes,
12123 which can conflict with char $ac_func (); below.
12124 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12125 <limits.h> exists even on freestanding compilers. */
12126
12127#ifdef __STDC__
12128# include <limits.h>
12129#else
12130# include <assert.h>
12131#endif
12132
12133#undef $ac_func
12134
12135/* Override any GCC internal prototype to avoid an error.
12136 Use char because int might match the return type of a GCC
12137 builtin and then its argument prototype would still apply. */
12138#ifdef __cplusplus
12139extern "C"
12140#endif
12141char $ac_func ();
12142/* The GNU C library defines this for functions which it implements
12143 to always fail with ENOSYS. Some functions are actually named
12144 something starting with __ and the normal name is an alias. */
12145#if defined __stub_$ac_func || defined __stub___$ac_func
12146choke me
12147#endif
12148
12149int
12150main ()
12151{
12152return $ac_func ();
12153 ;
12154 return 0;
12155}
12156_ACEOF
12157rm -f conftest.$ac_objext conftest$ac_exeext
12158if { (ac_try="$ac_link"
12159case "(($ac_try" in
12160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12161 *) ac_try_echo=$ac_try;;
12162esac
12163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12164$as_echo "$ac_try_echo") >&5
12165 (eval "$ac_link") 2>conftest.er1
12166 ac_status=$?
12167 grep -v '^ *+' conftest.er1 >conftest.err
12168 rm -f conftest.er1
12169 cat conftest.err >&5
12170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12171 (exit $ac_status); } && {
12172 test -z "$ac_c_werror_flag" ||
12173 test ! -s conftest.err
12174 } && test -s conftest$ac_exeext && {
12175 test "$cross_compiling" = yes ||
12176 $as_test_x conftest$ac_exeext
12177 }; then
12178 eval "$as_ac_var=yes"
12179else
12180 $as_echo "$as_me: failed program was:" >&5
12181sed 's/^/| /' conftest.$ac_ext >&5
12182
12183 eval "$as_ac_var=no"
12184fi
12185
12186rm -rf conftest.dSYM
12187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12188 conftest$ac_exeext conftest.$ac_ext
12189fi
12190ac_res=`eval 'as_val=${'$as_ac_var'}
12191 $as_echo "$as_val"'`
12192 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12193$as_echo "$ac_res" >&6; }
12194if test `eval 'as_val=${'$as_ac_var'}
12195 $as_echo "$as_val"'` = yes; then
8207 cat >>confdefs.h <<_ACEOF 12196 cat >>confdefs.h <<_ACEOF
8208#define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1 12197#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8209_ACEOF 12198_ACEOF
8210 HAVE_GTK_FILE_CHOOSER=yes 12199 HAVE_GTK_FILE_CHOOSER=yes
8211else 12200else
@@ -8218,18 +12207,153 @@ done
8218 if test "$HAVE_GTK_FILE_SELECTION" = yes \ 12207 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8219 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12208 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8220 12209
8221$as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h 12210cat >>confdefs.h <<\_ACEOF
12211#define HAVE_GTK_FILE_BOTH 1
12212_ACEOF
8222 12213
8223 fi 12214 fi
8224 12215
8225 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12216 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8226 HAVE_GTK_AND_PTHREAD=no 12217 HAVE_GTK_AND_PTHREAD=no
8227 for ac_header in pthread.h 12218
8228do : 12219for ac_header in pthread.h
8229 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 12220do
8230if test "x$ac_cv_header_pthread_h" = x""yes; then : 12221as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12222if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12223 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12224$as_echo_n "checking for $ac_header... " >&6; }
12225if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12226 $as_echo_n "(cached) " >&6
12227fi
12228ac_res=`eval 'as_val=${'$as_ac_Header'}
12229 $as_echo "$as_val"'`
12230 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12231$as_echo "$ac_res" >&6; }
12232else
12233 # Is the header compilable?
12234{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12235$as_echo_n "checking $ac_header usability... " >&6; }
12236cat >conftest.$ac_ext <<_ACEOF
12237/* confdefs.h. */
12238_ACEOF
12239cat confdefs.h >>conftest.$ac_ext
12240cat >>conftest.$ac_ext <<_ACEOF
12241/* end confdefs.h. */
12242$ac_includes_default
12243#include <$ac_header>
12244_ACEOF
12245rm -f conftest.$ac_objext
12246if { (ac_try="$ac_compile"
12247case "(($ac_try" in
12248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249 *) ac_try_echo=$ac_try;;
12250esac
12251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12252$as_echo "$ac_try_echo") >&5
12253 (eval "$ac_compile") 2>conftest.er1
12254 ac_status=$?
12255 grep -v '^ *+' conftest.er1 >conftest.err
12256 rm -f conftest.er1
12257 cat conftest.err >&5
12258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12259 (exit $ac_status); } && {
12260 test -z "$ac_c_werror_flag" ||
12261 test ! -s conftest.err
12262 } && test -s conftest.$ac_objext; then
12263 ac_header_compiler=yes
12264else
12265 $as_echo "$as_me: failed program was:" >&5
12266sed 's/^/| /' conftest.$ac_ext >&5
12267
12268 ac_header_compiler=no
12269fi
12270
12271rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12272{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12273$as_echo "$ac_header_compiler" >&6; }
12274
12275# Is the header present?
12276{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12277$as_echo_n "checking $ac_header presence... " >&6; }
12278cat >conftest.$ac_ext <<_ACEOF
12279/* confdefs.h. */
12280_ACEOF
12281cat confdefs.h >>conftest.$ac_ext
12282cat >>conftest.$ac_ext <<_ACEOF
12283/* end confdefs.h. */
12284#include <$ac_header>
12285_ACEOF
12286if { (ac_try="$ac_cpp conftest.$ac_ext"
12287case "(($ac_try" in
12288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12290esac
12291eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12292$as_echo "$ac_try_echo") >&5
12293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12294 ac_status=$?
12295 grep -v '^ *+' conftest.er1 >conftest.err
12296 rm -f conftest.er1
12297 cat conftest.err >&5
12298 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12299 (exit $ac_status); } >/dev/null && {
12300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12301 test ! -s conftest.err
12302 }; then
12303 ac_header_preproc=yes
12304else
12305 $as_echo "$as_me: failed program was:" >&5
12306sed 's/^/| /' conftest.$ac_ext >&5
12307
12308 ac_header_preproc=no
12309fi
12310
12311rm -f conftest.err conftest.$ac_ext
12312{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12313$as_echo "$ac_header_preproc" >&6; }
12314
12315# So? What about this header?
12316case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12317 yes:no: )
12318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12319$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12321$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12322 ac_header_preproc=yes
12323 ;;
12324 no:yes:* )
12325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12326$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12328$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12330$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12332$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12334$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12336$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12337
12338 ;;
12339esac
12340{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12341$as_echo_n "checking for $ac_header... " >&6; }
12342if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12343 $as_echo_n "(cached) " >&6
12344else
12345 eval "$as_ac_Header=\$ac_header_preproc"
12346fi
12347ac_res=`eval 'as_val=${'$as_ac_Header'}
12348 $as_echo "$as_val"'`
12349 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12350$as_echo "$ac_res" >&6; }
12351
12352fi
12353if test `eval 'as_val=${'$as_ac_Header'}
12354 $as_echo "$as_val"'` = yes; then
8231 cat >>confdefs.h <<_ACEOF 12355 cat >>confdefs.h <<_ACEOF
8232#define HAVE_PTHREAD_H 1 12356#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8233_ACEOF 12357_ACEOF
8234 12358
8235fi 12359fi
@@ -8237,14 +12361,18 @@ fi
8237done 12361done
8238 12362
8239 if test "$ac_cv_header_pthread_h"; then 12363 if test "$ac_cv_header_pthread_h"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 12364 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
8241$as_echo_n "checking for pthread_self in -lpthread... " >&6; } 12365$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8242if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then : 12366if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
8243 $as_echo_n "(cached) " >&6 12367 $as_echo_n "(cached) " >&6
8244else 12368else
8245 ac_check_lib_save_LIBS=$LIBS 12369 ac_check_lib_save_LIBS=$LIBS
8246LIBS="-lpthread $LIBS" 12370LIBS="-lpthread $LIBS"
8247cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12371cat >conftest.$ac_ext <<_ACEOF
12372/* confdefs.h. */
12373_ACEOF
12374cat confdefs.h >>conftest.$ac_ext
12375cat >>conftest.$ac_ext <<_ACEOF
8248/* end confdefs.h. */ 12376/* end confdefs.h. */
8249 12377
8250/* Override any GCC internal prototype to avoid an error. 12378/* Override any GCC internal prototype to avoid an error.
@@ -8262,18 +12390,43 @@ return pthread_self ();
8262 return 0; 12390 return 0;
8263} 12391}
8264_ACEOF 12392_ACEOF
8265if ac_fn_c_try_link "$LINENO"; then : 12393rm -f conftest.$ac_objext conftest$ac_exeext
12394if { (ac_try="$ac_link"
12395case "(($ac_try" in
12396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12397 *) ac_try_echo=$ac_try;;
12398esac
12399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12400$as_echo "$ac_try_echo") >&5
12401 (eval "$ac_link") 2>conftest.er1
12402 ac_status=$?
12403 grep -v '^ *+' conftest.er1 >conftest.err
12404 rm -f conftest.er1
12405 cat conftest.err >&5
12406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12407 (exit $ac_status); } && {
12408 test -z "$ac_c_werror_flag" ||
12409 test ! -s conftest.err
12410 } && test -s conftest$ac_exeext && {
12411 test "$cross_compiling" = yes ||
12412 $as_test_x conftest$ac_exeext
12413 }; then
8266 ac_cv_lib_pthread_pthread_self=yes 12414 ac_cv_lib_pthread_pthread_self=yes
8267else 12415else
8268 ac_cv_lib_pthread_pthread_self=no 12416 $as_echo "$as_me: failed program was:" >&5
12417sed 's/^/| /' conftest.$ac_ext >&5
12418
12419 ac_cv_lib_pthread_pthread_self=no
8269fi 12420fi
8270rm -f core conftest.err conftest.$ac_objext \ 12421
8271 conftest$ac_exeext conftest.$ac_ext 12422rm -rf conftest.dSYM
12423rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12424 conftest$ac_exeext conftest.$ac_ext
8272LIBS=$ac_check_lib_save_LIBS 12425LIBS=$ac_check_lib_save_LIBS
8273fi 12426fi
8274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 12427{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
8275$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } 12428$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8276if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then : 12429if test $ac_cv_lib_pthread_pthread_self = yes; then
8277 HAVE_GTK_AND_PTHREAD=yes 12430 HAVE_GTK_AND_PTHREAD=yes
8278fi 12431fi
8279 12432
@@ -8284,7 +12437,9 @@ fi
8284 *) GTK_LIBS="$GTK_LIBS -lpthread" ;; 12437 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8285 esac 12438 esac
8286 12439
8287$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h 12440cat >>confdefs.h <<\_ACEOF
12441#define HAVE_GTK_AND_PTHREAD 1
12442_ACEOF
8288 12443
8289 fi 12444 fi
8290 fi 12445 fi
@@ -8297,9 +12452,9 @@ if test "${with_dbus}" = "yes"; then
8297 12452
8298 # Extract the first word of "pkg-config", so it can be a program name with args. 12453 # Extract the first word of "pkg-config", so it can be a program name with args.
8299set dummy pkg-config; ac_word=$2 12454set dummy pkg-config; ac_word=$2
8300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12455{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8301$as_echo_n "checking for $ac_word... " >&6; } 12456$as_echo_n "checking for $ac_word... " >&6; }
8302if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12457if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8303 $as_echo_n "(cached) " >&6 12458 $as_echo_n "(cached) " >&6
8304else 12459else
8305 case $PKG_CONFIG in 12460 case $PKG_CONFIG in
@@ -8312,14 +12467,14 @@ for as_dir in $PATH
8312do 12467do
8313 IFS=$as_save_IFS 12468 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=. 12469 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do 12470 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8317 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12472 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 break 2 12474 break 2
8320 fi 12475 fi
8321done 12476done
8322 done 12477done
8323IFS=$as_save_IFS 12478IFS=$as_save_IFS
8324 12479
8325 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 12480 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8328,10 +12483,10 @@ esac
8328fi 12483fi
8329PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12484PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8330if test -n "$PKG_CONFIG"; then 12485if test -n "$PKG_CONFIG"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12486 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8332$as_echo "$PKG_CONFIG" >&6; } 12487$as_echo "$PKG_CONFIG" >&6; }
8333else 12488else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12489 { $as_echo "$as_me:$LINENO: result: no" >&5
8335$as_echo "no" >&6; } 12490$as_echo "no" >&6; }
8336fi 12491fi
8337 12492
@@ -8342,27 +12497,27 @@ fi
8342 else 12497 else
8343 PKG_CONFIG_MIN_VERSION=0.9.0 12498 PKG_CONFIG_MIN_VERSION=0.9.0
8344 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 12499 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5 12500 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
8346$as_echo_n "checking for dbus-1 >= 1.0... " >&6; } 12501$as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8347 12502
8348 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then 12503 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12504 { $as_echo "$as_me:$LINENO: result: yes" >&5
8350$as_echo "yes" >&6; } 12505$as_echo "yes" >&6; }
8351 succeeded=yes 12506 succeeded=yes
8352 12507
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5 12508 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
8354$as_echo_n "checking DBUS_CFLAGS... " >&6; } 12509$as_echo_n "checking DBUS_CFLAGS... " >&6; }
8355 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 12510 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5 12511 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
8357$as_echo "$DBUS_CFLAGS" >&6; } 12512$as_echo "$DBUS_CFLAGS" >&6; }
8358 12513
8359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5 12514 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
8360$as_echo_n "checking DBUS_LIBS... " >&6; } 12515$as_echo_n "checking DBUS_LIBS... " >&6; }
8361 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 12516 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5 12517 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
8363$as_echo "$DBUS_LIBS" >&6; } 12518$as_echo "$DBUS_LIBS" >&6; }
8364 else 12519 else
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12520 { $as_echo "$as_me:$LINENO: result: no" >&5
8366$as_echo "no" >&6; } 12521$as_echo "no" >&6; }
8367 DBUS_CFLAGS="" 12522 DBUS_CFLAGS=""
8368 DBUS_LIBS="" 12523 DBUS_LIBS=""
@@ -8389,14 +12544,105 @@ $as_echo "no" >&6; }
8389 if test "$HAVE_DBUS" = yes; then 12544 if test "$HAVE_DBUS" = yes; then
8390 LIBS="$LIBS $DBUS_LIBS" 12545 LIBS="$LIBS $DBUS_LIBS"
8391 12546
8392$as_echo "#define HAVE_DBUS 1" >>confdefs.h 12547cat >>confdefs.h <<\_ACEOF
12548#define HAVE_DBUS 1
12549_ACEOF
12550
12551
12552for ac_func in dbus_watch_get_unix_fd
12553do
12554as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12555{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12556$as_echo_n "checking for $ac_func... " >&6; }
12557if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12558 $as_echo_n "(cached) " >&6
12559else
12560 cat >conftest.$ac_ext <<_ACEOF
12561/* confdefs.h. */
12562_ACEOF
12563cat confdefs.h >>conftest.$ac_ext
12564cat >>conftest.$ac_ext <<_ACEOF
12565/* end confdefs.h. */
12566/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12568#define $ac_func innocuous_$ac_func
12569
12570/* System header to define __stub macros and hopefully few prototypes,
12571 which can conflict with char $ac_func (); below.
12572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12573 <limits.h> exists even on freestanding compilers. */
12574
12575#ifdef __STDC__
12576# include <limits.h>
12577#else
12578# include <assert.h>
12579#endif
12580
12581#undef $ac_func
8393 12582
8394 for ac_func in dbus_watch_get_unix_fd 12583/* Override any GCC internal prototype to avoid an error.
8395do : 12584 Use char because int might match the return type of a GCC
8396 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd" 12585 builtin and then its argument prototype would still apply. */
8397if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then : 12586#ifdef __cplusplus
12587extern "C"
12588#endif
12589char $ac_func ();
12590/* The GNU C library defines this for functions which it implements
12591 to always fail with ENOSYS. Some functions are actually named
12592 something starting with __ and the normal name is an alias. */
12593#if defined __stub_$ac_func || defined __stub___$ac_func
12594choke me
12595#endif
12596
12597int
12598main ()
12599{
12600return $ac_func ();
12601 ;
12602 return 0;
12603}
12604_ACEOF
12605rm -f conftest.$ac_objext conftest$ac_exeext
12606if { (ac_try="$ac_link"
12607case "(($ac_try" in
12608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12609 *) ac_try_echo=$ac_try;;
12610esac
12611eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12612$as_echo "$ac_try_echo") >&5
12613 (eval "$ac_link") 2>conftest.er1
12614 ac_status=$?
12615 grep -v '^ *+' conftest.er1 >conftest.err
12616 rm -f conftest.er1
12617 cat conftest.err >&5
12618 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } && {
12620 test -z "$ac_c_werror_flag" ||
12621 test ! -s conftest.err
12622 } && test -s conftest$ac_exeext && {
12623 test "$cross_compiling" = yes ||
12624 $as_test_x conftest$ac_exeext
12625 }; then
12626 eval "$as_ac_var=yes"
12627else
12628 $as_echo "$as_me: failed program was:" >&5
12629sed 's/^/| /' conftest.$ac_ext >&5
12630
12631 eval "$as_ac_var=no"
12632fi
12633
12634rm -rf conftest.dSYM
12635rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12636 conftest$ac_exeext conftest.$ac_ext
12637fi
12638ac_res=`eval 'as_val=${'$as_ac_var'}
12639 $as_echo "$as_val"'`
12640 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12641$as_echo "$ac_res" >&6; }
12642if test `eval 'as_val=${'$as_ac_var'}
12643 $as_echo "$as_val"'` = yes; then
8398 cat >>confdefs.h <<_ACEOF 12644 cat >>confdefs.h <<_ACEOF
8399#define HAVE_DBUS_WATCH_GET_UNIX_FD 1 12645#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8400_ACEOF 12646_ACEOF
8401 12647
8402fi 12648fi
@@ -8412,9 +12658,9 @@ if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8412 12658
8413 # Extract the first word of "pkg-config", so it can be a program name with args. 12659 # Extract the first word of "pkg-config", so it can be a program name with args.
8414set dummy pkg-config; ac_word=$2 12660set dummy pkg-config; ac_word=$2
8415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12661{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8416$as_echo_n "checking for $ac_word... " >&6; } 12662$as_echo_n "checking for $ac_word... " >&6; }
8417if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12663if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8418 $as_echo_n "(cached) " >&6 12664 $as_echo_n "(cached) " >&6
8419else 12665else
8420 case $PKG_CONFIG in 12666 case $PKG_CONFIG in
@@ -8427,14 +12673,14 @@ for as_dir in $PATH
8427do 12673do
8428 IFS=$as_save_IFS 12674 IFS=$as_save_IFS
8429 test -z "$as_dir" && as_dir=. 12675 test -z "$as_dir" && as_dir=.
8430 for ac_exec_ext in '' $ac_executable_extensions; do 12676 for ac_exec_ext in '' $ac_executable_extensions; do
8431 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8432 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12678 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12679 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 break 2 12680 break 2
8435 fi 12681 fi
8436done 12682done
8437 done 12683done
8438IFS=$as_save_IFS 12684IFS=$as_save_IFS
8439 12685
8440 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 12686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8443,10 +12689,10 @@ esac
8443fi 12689fi
8444PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12690PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8445if test -n "$PKG_CONFIG"; then 12691if test -n "$PKG_CONFIG"; then
8446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12692 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8447$as_echo "$PKG_CONFIG" >&6; } 12693$as_echo "$PKG_CONFIG" >&6; }
8448else 12694else
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12695 { $as_echo "$as_me:$LINENO: result: no" >&5
8450$as_echo "no" >&6; } 12696$as_echo "no" >&6; }
8451fi 12697fi
8452 12698
@@ -8457,27 +12703,27 @@ fi
8457 else 12703 else
8458 PKG_CONFIG_MIN_VERSION=0.9.0 12704 PKG_CONFIG_MIN_VERSION=0.9.0
8459 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 12705 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5 12706 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
8461$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } 12707$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8462 12708
8463 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then 12709 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12710 { $as_echo "$as_me:$LINENO: result: yes" >&5
8465$as_echo "yes" >&6; } 12711$as_echo "yes" >&6; }
8466 succeeded=yes 12712 succeeded=yes
8467 12713
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5 12714 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
8469$as_echo_n "checking GCONF_CFLAGS... " >&6; } 12715$as_echo_n "checking GCONF_CFLAGS... " >&6; }
8470 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 12716 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5 12717 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
8472$as_echo "$GCONF_CFLAGS" >&6; } 12718$as_echo "$GCONF_CFLAGS" >&6; }
8473 12719
8474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5 12720 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
8475$as_echo_n "checking GCONF_LIBS... " >&6; } 12721$as_echo_n "checking GCONF_LIBS... " >&6; }
8476 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 12722 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5 12723 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
8478$as_echo "$GCONF_LIBS" >&6; } 12724$as_echo "$GCONF_LIBS" >&6; }
8479 else 12725 else
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12726 { $as_echo "$as_me:$LINENO: result: no" >&5
8481$as_echo "no" >&6; } 12727$as_echo "no" >&6; }
8482 GCONF_CFLAGS="" 12728 GCONF_CFLAGS=""
8483 GCONF_LIBS="" 12729 GCONF_LIBS=""
@@ -8503,7 +12749,9 @@ $as_echo "no" >&6; }
8503 12749
8504 if test "$HAVE_GCONF" = yes; then 12750 if test "$HAVE_GCONF" = yes; then
8505 12751
8506$as_echo "#define HAVE_GCONF 1" >>confdefs.h 12752cat >>confdefs.h <<\_ACEOF
12753#define HAVE_GCONF 1
12754_ACEOF
8507 12755
8508 fi 12756 fi
8509fi 12757fi
@@ -8511,12 +12759,16 @@ fi
8511HAVE_XAW3D=no 12759HAVE_XAW3D=no
8512if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then 12760if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8513 if test "$with_xaw3d" != no; then 12761 if test "$with_xaw3d" != no; then
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5 12762 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
8515$as_echo_n "checking for xaw3d... " >&6; } 12763$as_echo_n "checking for xaw3d... " >&6; }
8516 if test "${emacs_cv_xaw3d+set}" = set; then : 12764 if test "${emacs_cv_xaw3d+set}" = set; then
8517 $as_echo_n "(cached) " >&6 12765 $as_echo_n "(cached) " >&6
8518else 12766else
8519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12767 cat >conftest.$ac_ext <<_ACEOF
12768/* confdefs.h. */
12769_ACEOF
12770cat confdefs.h >>conftest.$ac_ext
12771cat >>conftest.$ac_ext <<_ACEOF
8520/* end confdefs.h. */ 12772/* end confdefs.h. */
8521 12773
8522#include <X11/Intrinsic.h> 12774#include <X11/Intrinsic.h>
@@ -8529,35 +12781,66 @@ main ()
8529 return 0; 12781 return 0;
8530} 12782}
8531_ACEOF 12783_ACEOF
8532if ac_fn_c_try_link "$LINENO"; then : 12784rm -f conftest.$ac_objext conftest$ac_exeext
12785if { (ac_try="$ac_link"
12786case "(($ac_try" in
12787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12788 *) ac_try_echo=$ac_try;;
12789esac
12790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12791$as_echo "$ac_try_echo") >&5
12792 (eval "$ac_link") 2>conftest.er1
12793 ac_status=$?
12794 grep -v '^ *+' conftest.er1 >conftest.err
12795 rm -f conftest.er1
12796 cat conftest.err >&5
12797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12798 (exit $ac_status); } && {
12799 test -z "$ac_c_werror_flag" ||
12800 test ! -s conftest.err
12801 } && test -s conftest$ac_exeext && {
12802 test "$cross_compiling" = yes ||
12803 $as_test_x conftest$ac_exeext
12804 }; then
8533 emacs_cv_xaw3d=yes 12805 emacs_cv_xaw3d=yes
8534else 12806else
8535 emacs_cv_xaw3d=no 12807 $as_echo "$as_me: failed program was:" >&5
12808sed 's/^/| /' conftest.$ac_ext >&5
12809
12810 emacs_cv_xaw3d=no
8536fi 12811fi
8537rm -f core conftest.err conftest.$ac_objext \ 12812
8538 conftest$ac_exeext conftest.$ac_ext 12813rm -rf conftest.dSYM
12814rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12815 conftest$ac_exeext conftest.$ac_ext
8539fi 12816fi
8540 12817
8541 else 12818 else
8542 emacs_cv_xaw3d=no 12819 emacs_cv_xaw3d=no
8543 fi 12820 fi
8544 if test $emacs_cv_xaw3d = yes; then 12821 if test $emacs_cv_xaw3d = yes; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 12822 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
8546$as_echo "yes; using Lucid toolkit" >&6; } 12823$as_echo "yes; using Lucid toolkit" >&6; }
8547 USE_X_TOOLKIT=LUCID 12824 USE_X_TOOLKIT=LUCID
8548 HAVE_XAW3D=yes 12825 HAVE_XAW3D=yes
8549 12826
8550$as_echo "#define HAVE_XAW3D 1" >>confdefs.h 12827cat >>confdefs.h <<\_ACEOF
12828#define HAVE_XAW3D 1
12829_ACEOF
8551 12830
8552 else 12831 else
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12832 { $as_echo "$as_me:$LINENO: result: no" >&5
8554$as_echo "no" >&6; } 12833$as_echo "no" >&6; }
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5 12834 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
8556$as_echo_n "checking for libXaw... " >&6; } 12835$as_echo_n "checking for libXaw... " >&6; }
8557 if test "${emacs_cv_xaw+set}" = set; then : 12836 if test "${emacs_cv_xaw+set}" = set; then
8558 $as_echo_n "(cached) " >&6 12837 $as_echo_n "(cached) " >&6
8559else 12838else
8560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12839 cat >conftest.$ac_ext <<_ACEOF
12840/* confdefs.h. */
12841_ACEOF
12842cat confdefs.h >>conftest.$ac_ext
12843cat >>conftest.$ac_ext <<_ACEOF
8561/* end confdefs.h. */ 12844/* end confdefs.h. */
8562 12845
8563#include <X11/Intrinsic.h> 12846#include <X11/Intrinsic.h>
@@ -8570,23 +12853,50 @@ main ()
8570 return 0; 12853 return 0;
8571} 12854}
8572_ACEOF 12855_ACEOF
8573if ac_fn_c_try_link "$LINENO"; then : 12856rm -f conftest.$ac_objext conftest$ac_exeext
12857if { (ac_try="$ac_link"
12858case "(($ac_try" in
12859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12860 *) ac_try_echo=$ac_try;;
12861esac
12862eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12863$as_echo "$ac_try_echo") >&5
12864 (eval "$ac_link") 2>conftest.er1
12865 ac_status=$?
12866 grep -v '^ *+' conftest.er1 >conftest.err
12867 rm -f conftest.er1
12868 cat conftest.err >&5
12869 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12870 (exit $ac_status); } && {
12871 test -z "$ac_c_werror_flag" ||
12872 test ! -s conftest.err
12873 } && test -s conftest$ac_exeext && {
12874 test "$cross_compiling" = yes ||
12875 $as_test_x conftest$ac_exeext
12876 }; then
8574 emacs_cv_xaw=yes 12877 emacs_cv_xaw=yes
8575else 12878else
8576 emacs_cv_xaw=no 12879 $as_echo "$as_me: failed program was:" >&5
12880sed 's/^/| /' conftest.$ac_ext >&5
12881
12882 emacs_cv_xaw=no
8577fi 12883fi
8578rm -f core conftest.err conftest.$ac_objext \ 12884
8579 conftest$ac_exeext conftest.$ac_ext 12885rm -rf conftest.dSYM
12886rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12887 conftest$ac_exeext conftest.$ac_ext
8580fi 12888fi
8581 12889
8582 if test $emacs_cv_xaw = yes; then 12890 if test $emacs_cv_xaw = yes; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 12891 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
8584$as_echo "yes; using Lucid toolkit" >&6; } 12892$as_echo "yes; using Lucid toolkit" >&6; }
8585 USE_X_TOOLKIT=LUCID 12893 USE_X_TOOLKIT=LUCID
8586 elif test x"${USE_X_TOOLKIT}" = xLUCID; then 12894 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8587 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 12895 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12896$as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12897 { (exit 1); exit 1; }; }
8588 else 12898 else
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 12899 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
8590$as_echo "no; do not use toolkit by default" >&6; } 12900$as_echo "no; do not use toolkit by default" >&6; }
8591 USE_X_TOOLKIT=none 12901 USE_X_TOOLKIT=none
8592 fi 12902 fi
@@ -8596,12 +12906,16 @@ fi
8596X_TOOLKIT_TYPE=$USE_X_TOOLKIT 12906X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8597 12907
8598if test "${USE_X_TOOLKIT}" != "none"; then 12908if test "${USE_X_TOOLKIT}" != "none"; then
8599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5 12909 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8600$as_echo_n "checking X11 toolkit version... " >&6; } 12910$as_echo_n "checking X11 toolkit version... " >&6; }
8601 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then : 12911 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8602 $as_echo_n "(cached) " >&6 12912 $as_echo_n "(cached) " >&6
8603else 12913else
8604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12914 cat >conftest.$ac_ext <<_ACEOF
12915/* confdefs.h. */
12916_ACEOF
12917cat confdefs.h >>conftest.$ac_ext
12918cat >>conftest.$ac_ext <<_ACEOF
8605/* end confdefs.h. */ 12919/* end confdefs.h. */
8606#include <X11/Intrinsic.h> 12920#include <X11/Intrinsic.h>
8607int 12921int
@@ -8615,24 +12929,51 @@ fail;
8615 return 0; 12929 return 0;
8616} 12930}
8617_ACEOF 12931_ACEOF
8618if ac_fn_c_try_link "$LINENO"; then : 12932rm -f conftest.$ac_objext conftest$ac_exeext
12933if { (ac_try="$ac_link"
12934case "(($ac_try" in
12935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12937esac
12938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12939$as_echo "$ac_try_echo") >&5
12940 (eval "$ac_link") 2>conftest.er1
12941 ac_status=$?
12942 grep -v '^ *+' conftest.er1 >conftest.err
12943 rm -f conftest.er1
12944 cat conftest.err >&5
12945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12946 (exit $ac_status); } && {
12947 test -z "$ac_c_werror_flag" ||
12948 test ! -s conftest.err
12949 } && test -s conftest$ac_exeext && {
12950 test "$cross_compiling" = yes ||
12951 $as_test_x conftest$ac_exeext
12952 }; then
8619 emacs_cv_x11_toolkit_version_6=yes 12953 emacs_cv_x11_toolkit_version_6=yes
8620else 12954else
8621 emacs_cv_x11_toolkit_version_6=no 12955 $as_echo "$as_me: failed program was:" >&5
12956sed 's/^/| /' conftest.$ac_ext >&5
12957
12958 emacs_cv_x11_toolkit_version_6=no
8622fi 12959fi
8623rm -f core conftest.err conftest.$ac_objext \ 12960
8624 conftest$ac_exeext conftest.$ac_ext 12961rm -rf conftest.dSYM
12962rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12963 conftest$ac_exeext conftest.$ac_ext
8625fi 12964fi
8626 12965
8627 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 12966 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8628 if test $emacs_cv_x11_toolkit_version_6 = yes; then 12967 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 12968 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
8630$as_echo "6 or newer" >&6; } 12969$as_echo "6 or newer" >&6; }
8631 12970
8632$as_echo "#define HAVE_X11XTR6 1" >>confdefs.h 12971cat >>confdefs.h <<\_ACEOF
12972#define HAVE_X11XTR6 1
12973_ACEOF
8633 12974
8634 else 12975 else
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 12976 { $as_echo "$as_me:$LINENO: result: before 6" >&5
8636$as_echo "before 6" >&6; } 12977$as_echo "before 6" >&6; }
8637 fi 12978 fi
8638 12979
@@ -8642,14 +12983,19 @@ $as_echo "before 6" >&6; }
8642 else 12983 else
8643 LIBS="-lXt $LIBS" 12984 LIBS="-lXt $LIBS"
8644 fi 12985 fi
8645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5 12986
12987{ $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8646$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } 12988$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8647if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then : 12989if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8648 $as_echo_n "(cached) " >&6 12990 $as_echo_n "(cached) " >&6
8649else 12991else
8650 ac_check_lib_save_LIBS=$LIBS 12992 ac_check_lib_save_LIBS=$LIBS
8651LIBS="-lXmu $LIBS" 12993LIBS="-lXmu $LIBS"
8652cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12994cat >conftest.$ac_ext <<_ACEOF
12995/* confdefs.h. */
12996_ACEOF
12997cat confdefs.h >>conftest.$ac_ext
12998cat >>conftest.$ac_ext <<_ACEOF
8653/* end confdefs.h. */ 12999/* end confdefs.h. */
8654 13000
8655/* Override any GCC internal prototype to avoid an error. 13001/* Override any GCC internal prototype to avoid an error.
@@ -8667,18 +13013,43 @@ return XmuConvertStandardSelection ();
8667 return 0; 13013 return 0;
8668} 13014}
8669_ACEOF 13015_ACEOF
8670if ac_fn_c_try_link "$LINENO"; then : 13016rm -f conftest.$ac_objext conftest$ac_exeext
13017if { (ac_try="$ac_link"
13018case "(($ac_try" in
13019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020 *) ac_try_echo=$ac_try;;
13021esac
13022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13023$as_echo "$ac_try_echo") >&5
13024 (eval "$ac_link") 2>conftest.er1
13025 ac_status=$?
13026 grep -v '^ *+' conftest.er1 >conftest.err
13027 rm -f conftest.er1
13028 cat conftest.err >&5
13029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13030 (exit $ac_status); } && {
13031 test -z "$ac_c_werror_flag" ||
13032 test ! -s conftest.err
13033 } && test -s conftest$ac_exeext && {
13034 test "$cross_compiling" = yes ||
13035 $as_test_x conftest$ac_exeext
13036 }; then
8671 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes 13037 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8672else 13038else
8673 ac_cv_lib_Xmu_XmuConvertStandardSelection=no 13039 $as_echo "$as_me: failed program was:" >&5
13040sed 's/^/| /' conftest.$ac_ext >&5
13041
13042 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8674fi 13043fi
8675rm -f core conftest.err conftest.$ac_objext \ 13044
8676 conftest$ac_exeext conftest.$ac_ext 13045rm -rf conftest.dSYM
13046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13047 conftest$ac_exeext conftest.$ac_ext
8677LIBS=$ac_check_lib_save_LIBS 13048LIBS=$ac_check_lib_save_LIBS
8678fi 13049fi
8679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 13050{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8680$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } 13051$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8681if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then : 13052if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8682 cat >>confdefs.h <<_ACEOF 13053 cat >>confdefs.h <<_ACEOF
8683#define HAVE_LIBXMU 1 13054#define HAVE_LIBXMU 1
8684_ACEOF 13055_ACEOF
@@ -8693,14 +13064,19 @@ fi
8693# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. 13064# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8694if test "${HAVE_X11}" = "yes"; then 13065if test "${HAVE_X11}" = "yes"; then
8695 if test "${USE_X_TOOLKIT}" != "none"; then 13066 if test "${USE_X_TOOLKIT}" != "none"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 13067
13068{ $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8697$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 13069$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8698if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : 13070if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8699 $as_echo_n "(cached) " >&6 13071 $as_echo_n "(cached) " >&6
8700else 13072else
8701 ac_check_lib_save_LIBS=$LIBS 13073 ac_check_lib_save_LIBS=$LIBS
8702LIBS="-lXext $LIBS" 13074LIBS="-lXext $LIBS"
8703cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13075cat >conftest.$ac_ext <<_ACEOF
13076/* confdefs.h. */
13077_ACEOF
13078cat confdefs.h >>conftest.$ac_ext
13079cat >>conftest.$ac_ext <<_ACEOF
8704/* end confdefs.h. */ 13080/* end confdefs.h. */
8705 13081
8706/* Override any GCC internal prototype to avoid an error. 13082/* Override any GCC internal prototype to avoid an error.
@@ -8718,18 +13094,43 @@ return XShapeQueryExtension ();
8718 return 0; 13094 return 0;
8719} 13095}
8720_ACEOF 13096_ACEOF
8721if ac_fn_c_try_link "$LINENO"; then : 13097rm -f conftest.$ac_objext conftest$ac_exeext
13098if { (ac_try="$ac_link"
13099case "(($ac_try" in
13100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13101 *) ac_try_echo=$ac_try;;
13102esac
13103eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13104$as_echo "$ac_try_echo") >&5
13105 (eval "$ac_link") 2>conftest.er1
13106 ac_status=$?
13107 grep -v '^ *+' conftest.er1 >conftest.err
13108 rm -f conftest.er1
13109 cat conftest.err >&5
13110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13111 (exit $ac_status); } && {
13112 test -z "$ac_c_werror_flag" ||
13113 test ! -s conftest.err
13114 } && test -s conftest$ac_exeext && {
13115 test "$cross_compiling" = yes ||
13116 $as_test_x conftest$ac_exeext
13117 }; then
8722 ac_cv_lib_Xext_XShapeQueryExtension=yes 13118 ac_cv_lib_Xext_XShapeQueryExtension=yes
8723else 13119else
8724 ac_cv_lib_Xext_XShapeQueryExtension=no 13120 $as_echo "$as_me: failed program was:" >&5
13121sed 's/^/| /' conftest.$ac_ext >&5
13122
13123 ac_cv_lib_Xext_XShapeQueryExtension=no
8725fi 13124fi
8726rm -f core conftest.err conftest.$ac_objext \ 13125
8727 conftest$ac_exeext conftest.$ac_ext 13126rm -rf conftest.dSYM
13127rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13128 conftest$ac_exeext conftest.$ac_ext
8728LIBS=$ac_check_lib_save_LIBS 13129LIBS=$ac_check_lib_save_LIBS
8729fi 13130fi
8730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 13131{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
8731$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 13132$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
8732if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : 13133if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
8733 cat >>confdefs.h <<_ACEOF 13134 cat >>confdefs.h <<_ACEOF
8734#define HAVE_LIBXEXT 1 13135#define HAVE_LIBXEXT 1
8735_ACEOF 13136_ACEOF
@@ -8742,12 +13143,16 @@ fi
8742fi 13143fi
8743 13144
8744if test "${USE_X_TOOLKIT}" = "MOTIF"; then 13145if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5 13146 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
8746$as_echo_n "checking for Motif version 2.1... " >&6; } 13147$as_echo_n "checking for Motif version 2.1... " >&6; }
8747if test "${emacs_cv_motif_version_2_1+set}" = set; then : 13148if test "${emacs_cv_motif_version_2_1+set}" = set; then
8748 $as_echo_n "(cached) " >&6 13149 $as_echo_n "(cached) " >&6
8749else 13150else
8750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13151 cat >conftest.$ac_ext <<_ACEOF
13152/* confdefs.h. */
13153_ACEOF
13154cat confdefs.h >>conftest.$ac_ext
13155cat >>conftest.$ac_ext <<_ACEOF
8751/* end confdefs.h. */ 13156/* end confdefs.h. */
8752#include <Xm/Xm.h> 13157#include <Xm/Xm.h>
8753int 13158int
@@ -8762,29 +13167,56 @@ Motif version prior to 2.1.
8762 return 0; 13167 return 0;
8763} 13168}
8764_ACEOF 13169_ACEOF
8765if ac_fn_c_try_compile "$LINENO"; then : 13170rm -f conftest.$ac_objext
13171if { (ac_try="$ac_compile"
13172case "(($ac_try" in
13173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13174 *) ac_try_echo=$ac_try;;
13175esac
13176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13177$as_echo "$ac_try_echo") >&5
13178 (eval "$ac_compile") 2>conftest.er1
13179 ac_status=$?
13180 grep -v '^ *+' conftest.er1 >conftest.err
13181 rm -f conftest.er1
13182 cat conftest.err >&5
13183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13184 (exit $ac_status); } && {
13185 test -z "$ac_c_werror_flag" ||
13186 test ! -s conftest.err
13187 } && test -s conftest.$ac_objext; then
8766 emacs_cv_motif_version_2_1=yes 13188 emacs_cv_motif_version_2_1=yes
8767else 13189else
8768 emacs_cv_motif_version_2_1=no 13190 $as_echo "$as_me: failed program was:" >&5
13191sed 's/^/| /' conftest.$ac_ext >&5
13192
13193 emacs_cv_motif_version_2_1=no
8769fi 13194fi
13195
8770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13196rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8771fi 13197fi
8772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5 13198{ $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
8773$as_echo "$emacs_cv_motif_version_2_1" >&6; } 13199$as_echo "$emacs_cv_motif_version_2_1" >&6; }
8774 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 13200 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
8775 if test $emacs_cv_motif_version_2_1 = yes; then 13201 if test $emacs_cv_motif_version_2_1 = yes; then
8776 HAVE_LIBXP=no 13202 HAVE_LIBXP=no
8777 13203
8778$as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h 13204cat >>confdefs.h <<\_ACEOF
13205#define HAVE_MOTIF_2_1 1
13206_ACEOF
8779 13207
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5 13208 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
8781$as_echo_n "checking for XpCreateContext in -lXp... " >&6; } 13209$as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
8782if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then : 13210if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
8783 $as_echo_n "(cached) " >&6 13211 $as_echo_n "(cached) " >&6
8784else 13212else
8785 ac_check_lib_save_LIBS=$LIBS 13213 ac_check_lib_save_LIBS=$LIBS
8786LIBS="-lXp $LIBS" 13214LIBS="-lXp $LIBS"
8787cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13215cat >conftest.$ac_ext <<_ACEOF
13216/* confdefs.h. */
13217_ACEOF
13218cat confdefs.h >>conftest.$ac_ext
13219cat >>conftest.$ac_ext <<_ACEOF
8788/* end confdefs.h. */ 13220/* end confdefs.h. */
8789 13221
8790/* Override any GCC internal prototype to avoid an error. 13222/* Override any GCC internal prototype to avoid an error.
@@ -8802,30 +13234,57 @@ return XpCreateContext ();
8802 return 0; 13234 return 0;
8803} 13235}
8804_ACEOF 13236_ACEOF
8805if ac_fn_c_try_link "$LINENO"; then : 13237rm -f conftest.$ac_objext conftest$ac_exeext
13238if { (ac_try="$ac_link"
13239case "(($ac_try" in
13240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13241 *) ac_try_echo=$ac_try;;
13242esac
13243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13244$as_echo "$ac_try_echo") >&5
13245 (eval "$ac_link") 2>conftest.er1
13246 ac_status=$?
13247 grep -v '^ *+' conftest.er1 >conftest.err
13248 rm -f conftest.er1
13249 cat conftest.err >&5
13250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } && {
13252 test -z "$ac_c_werror_flag" ||
13253 test ! -s conftest.err
13254 } && test -s conftest$ac_exeext && {
13255 test "$cross_compiling" = yes ||
13256 $as_test_x conftest$ac_exeext
13257 }; then
8806 ac_cv_lib_Xp_XpCreateContext=yes 13258 ac_cv_lib_Xp_XpCreateContext=yes
8807else 13259else
8808 ac_cv_lib_Xp_XpCreateContext=no 13260 $as_echo "$as_me: failed program was:" >&5
13261sed 's/^/| /' conftest.$ac_ext >&5
13262
13263 ac_cv_lib_Xp_XpCreateContext=no
8809fi 13264fi
8810rm -f core conftest.err conftest.$ac_objext \ 13265
8811 conftest$ac_exeext conftest.$ac_ext 13266rm -rf conftest.dSYM
13267rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13268 conftest$ac_exeext conftest.$ac_ext
8812LIBS=$ac_check_lib_save_LIBS 13269LIBS=$ac_check_lib_save_LIBS
8813fi 13270fi
8814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5 13271{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
8815$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } 13272$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
8816if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then : 13273if test $ac_cv_lib_Xp_XpCreateContext = yes; then
8817 HAVE_LIBXP=yes 13274 HAVE_LIBXP=yes
8818fi 13275fi
8819 13276
8820 if test ${HAVE_LIBXP} = yes; then 13277 if test ${HAVE_LIBXP} = yes; then
8821 13278
8822$as_echo "#define HAVE_LIBXP 1" >>confdefs.h 13279cat >>confdefs.h <<\_ACEOF
13280#define HAVE_LIBXP 1
13281_ACEOF
8823 13282
8824 fi 13283 fi
8825 else 13284 else
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5 13285 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
8827$as_echo_n "checking for LessTif where some systems put it... " >&6; } 13286$as_echo_n "checking for LessTif where some systems put it... " >&6; }
8828if test "${emacs_cv_lesstif+set}" = set; then : 13287if test "${emacs_cv_lesstif+set}" = set; then
8829 $as_echo_n "(cached) " >&6 13288 $as_echo_n "(cached) " >&6
8830else 13289else
8831 # We put this in CFLAGS temporarily to precede other -I options 13290 # We put this in CFLAGS temporarily to precede other -I options
@@ -8835,7 +13294,11 @@ else
8835 OLD_CFLAGS=$CFLAGS 13294 OLD_CFLAGS=$CFLAGS
8836 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" 13295 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
8837 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" 13296 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13297 cat >conftest.$ac_ext <<_ACEOF
13298/* confdefs.h. */
13299_ACEOF
13300cat confdefs.h >>conftest.$ac_ext
13301cat >>conftest.$ac_ext <<_ACEOF
8839/* end confdefs.h. */ 13302/* end confdefs.h. */
8840#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> 13303#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
8841int 13304int
@@ -8846,14 +13309,35 @@ int x = 5;
8846 return 0; 13309 return 0;
8847} 13310}
8848_ACEOF 13311_ACEOF
8849if ac_fn_c_try_compile "$LINENO"; then : 13312rm -f conftest.$ac_objext
13313if { (ac_try="$ac_compile"
13314case "(($ac_try" in
13315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316 *) ac_try_echo=$ac_try;;
13317esac
13318eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13319$as_echo "$ac_try_echo") >&5
13320 (eval "$ac_compile") 2>conftest.er1
13321 ac_status=$?
13322 grep -v '^ *+' conftest.er1 >conftest.err
13323 rm -f conftest.er1
13324 cat conftest.err >&5
13325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13326 (exit $ac_status); } && {
13327 test -z "$ac_c_werror_flag" ||
13328 test ! -s conftest.err
13329 } && test -s conftest.$ac_objext; then
8850 emacs_cv_lesstif=yes 13330 emacs_cv_lesstif=yes
8851else 13331else
8852 emacs_cv_lesstif=no 13332 $as_echo "$as_me: failed program was:" >&5
13333sed 's/^/| /' conftest.$ac_ext >&5
13334
13335 emacs_cv_lesstif=no
8853fi 13336fi
13337
8854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13338rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855fi 13339fi
8856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5 13340{ $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
8857$as_echo "$emacs_cv_lesstif" >&6; } 13341$as_echo "$emacs_cv_lesstif" >&6; }
8858 if test $emacs_cv_lesstif = yes; then 13342 if test $emacs_cv_lesstif = yes; then
8859 # Make sure this -I option remains in CPPFLAGS after it is set 13343 # Make sure this -I option remains in CPPFLAGS after it is set
@@ -8871,31 +13355,44 @@ $as_echo "$emacs_cv_lesstif" >&6; }
8871fi 13355fi
8872 13356
8873 13357
13358
8874USE_TOOLKIT_SCROLL_BARS=no 13359USE_TOOLKIT_SCROLL_BARS=no
8875if test "${with_toolkit_scroll_bars}" != "no"; then 13360if test "${with_toolkit_scroll_bars}" != "no"; then
8876 if test "${USE_X_TOOLKIT}" != "none"; then 13361 if test "${USE_X_TOOLKIT}" != "none"; then
8877 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 13362 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
8878 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13363 cat >>confdefs.h <<\_ACEOF
13364#define USE_TOOLKIT_SCROLL_BARS 1
13365_ACEOF
8879 13366
8880 HAVE_XAW3D=no 13367 HAVE_XAW3D=no
8881 USE_TOOLKIT_SCROLL_BARS=yes 13368 USE_TOOLKIT_SCROLL_BARS=yes
8882 elif test "${HAVE_XAW3D}" = "yes"; then 13369 elif test "${HAVE_XAW3D}" = "yes"; then
8883 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13370 cat >>confdefs.h <<\_ACEOF
13371#define USE_TOOLKIT_SCROLL_BARS 1
13372_ACEOF
8884 13373
8885 USE_TOOLKIT_SCROLL_BARS=yes 13374 USE_TOOLKIT_SCROLL_BARS=yes
8886 fi 13375 fi
8887 elif test "${HAVE_GTK}" = "yes"; then 13376 elif test "${HAVE_GTK}" = "yes"; then
8888 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13377 cat >>confdefs.h <<\_ACEOF
13378#define USE_TOOLKIT_SCROLL_BARS 1
13379_ACEOF
8889 13380
8890 USE_TOOLKIT_SCROLL_BARS=yes 13381 USE_TOOLKIT_SCROLL_BARS=yes
8891 elif test "${HAVE_NS}" = "yes"; then 13382 elif test "${HAVE_NS}" = "yes"; then
8892 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13383 cat >>confdefs.h <<\_ACEOF
13384#define USE_TOOLKIT_SCROLL_BARS 1
13385_ACEOF
8893 13386
8894 USE_TOOLKIT_SCROLL_BARS=yes 13387 USE_TOOLKIT_SCROLL_BARS=yes
8895 fi 13388 fi
8896fi 13389fi
8897 13390
8898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13391cat >conftest.$ac_ext <<_ACEOF
13392/* confdefs.h. */
13393_ACEOF
13394cat confdefs.h >>conftest.$ac_ext
13395cat >>conftest.$ac_ext <<_ACEOF
8899/* end confdefs.h. */ 13396/* end confdefs.h. */
8900 13397
8901 #include <X11/Xlib.h> 13398 #include <X11/Xlib.h>
@@ -8908,20 +13405,45 @@ XIMProc callback;
8908 return 0; 13405 return 0;
8909} 13406}
8910_ACEOF 13407_ACEOF
8911if ac_fn_c_try_compile "$LINENO"; then : 13408rm -f conftest.$ac_objext
13409if { (ac_try="$ac_compile"
13410case "(($ac_try" in
13411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13412 *) ac_try_echo=$ac_try;;
13413esac
13414eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13415$as_echo "$ac_try_echo") >&5
13416 (eval "$ac_compile") 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } && {
13423 test -z "$ac_c_werror_flag" ||
13424 test ! -s conftest.err
13425 } && test -s conftest.$ac_objext; then
8912 HAVE_XIM=yes 13426 HAVE_XIM=yes
8913 13427
8914$as_echo "#define HAVE_XIM 1" >>confdefs.h 13428cat >>confdefs.h <<\_ACEOF
13429#define HAVE_XIM 1
13430_ACEOF
8915 13431
8916else 13432else
8917 HAVE_XIM=no 13433 $as_echo "$as_me: failed program was:" >&5
13434sed 's/^/| /' conftest.$ac_ext >&5
13435
13436 HAVE_XIM=no
8918fi 13437fi
13438
8919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13439rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8920 13440
8921 13441
8922if test "${with_xim}" != "no"; then 13442if test "${with_xim}" != "no"; then
8923 13443
8924$as_echo "#define USE_XIM 1" >>confdefs.h 13444cat >>confdefs.h <<\_ACEOF
13445#define USE_XIM 1
13446_ACEOF
8925 13447
8926fi 13448fi
8927 13449
@@ -8931,7 +13453,11 @@ if test "${HAVE_XIM}" != "no"; then
8931 if test "$GCC" = yes; then 13453 if test "$GCC" = yes; then
8932 CFLAGS="$CFLAGS --pedantic-errors" 13454 CFLAGS="$CFLAGS --pedantic-errors"
8933 fi 13455 fi
8934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13456 cat >conftest.$ac_ext <<_ACEOF
13457/* confdefs.h. */
13458_ACEOF
13459cat confdefs.h >>conftest.$ac_ext
13460cat >>conftest.$ac_ext <<_ACEOF
8935/* end confdefs.h. */ 13461/* end confdefs.h. */
8936 13462
8937#include <X11/Xlib.h> 13463#include <X11/Xlib.h>
@@ -8957,15 +13483,43 @@ extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
8957 return 0; 13483 return 0;
8958} 13484}
8959_ACEOF 13485_ACEOF
8960if ac_fn_c_try_compile "$LINENO"; then : 13486rm -f conftest.$ac_objext
13487if { (ac_try="$ac_compile"
13488case "(($ac_try" in
13489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490 *) ac_try_echo=$ac_try;;
13491esac
13492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13493$as_echo "$ac_try_echo") >&5
13494 (eval "$ac_compile") 2>conftest.er1
13495 ac_status=$?
13496 grep -v '^ *+' conftest.er1 >conftest.err
13497 rm -f conftest.er1
13498 cat conftest.err >&5
13499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13500 (exit $ac_status); } && {
13501 test -z "$ac_c_werror_flag" ||
13502 test ! -s conftest.err
13503 } && test -s conftest.$ac_objext; then
8961 emacs_cv_arg6_star=yes 13504 emacs_cv_arg6_star=yes
13505else
13506 $as_echo "$as_me: failed program was:" >&5
13507sed 's/^/| /' conftest.$ac_ext >&5
13508
13509
8962fi 13510fi
13511
8963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13512rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8964 if test "$emacs_cv_arg6_star" = yes; then 13513
8965 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h 13514 if test "$emacs_cv_arg6_star" = yes; then
13515 cat >>confdefs.h <<\_ACEOF
13516#define XRegisterIMInstantiateCallback_arg6 XPointer*
13517_ACEOF
8966 13518
8967 else 13519 else
8968 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h 13520 cat >>confdefs.h <<\_ACEOF
13521#define XRegisterIMInstantiateCallback_arg6 XPointer
13522_ACEOF
8969 13523
8970 fi 13524 fi
8971 CFLAGS=$late_CFLAGS 13525 CFLAGS=$late_CFLAGS
@@ -8982,9 +13536,9 @@ if test "${HAVE_X11}" = "yes"; then
8982 13536
8983 # Extract the first word of "pkg-config", so it can be a program name with args. 13537 # Extract the first word of "pkg-config", so it can be a program name with args.
8984set dummy pkg-config; ac_word=$2 13538set dummy pkg-config; ac_word=$2
8985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13539{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8986$as_echo_n "checking for $ac_word... " >&6; } 13540$as_echo_n "checking for $ac_word... " >&6; }
8987if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13541if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8988 $as_echo_n "(cached) " >&6 13542 $as_echo_n "(cached) " >&6
8989else 13543else
8990 case $PKG_CONFIG in 13544 case $PKG_CONFIG in
@@ -8997,14 +13551,14 @@ for as_dir in $PATH
8997do 13551do
8998 IFS=$as_save_IFS 13552 IFS=$as_save_IFS
8999 test -z "$as_dir" && as_dir=. 13553 test -z "$as_dir" && as_dir=.
9000 for ac_exec_ext in '' $ac_executable_extensions; do 13554 for ac_exec_ext in '' $ac_executable_extensions; do
9001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9002 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13556 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9003 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13557 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9004 break 2 13558 break 2
9005 fi 13559 fi
9006done 13560done
9007 done 13561done
9008IFS=$as_save_IFS 13562IFS=$as_save_IFS
9009 13563
9010 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 13564 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9013,10 +13567,10 @@ esac
9013fi 13567fi
9014PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13568PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9015if test -n "$PKG_CONFIG"; then 13569if test -n "$PKG_CONFIG"; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13570 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9017$as_echo "$PKG_CONFIG" >&6; } 13571$as_echo "$PKG_CONFIG" >&6; }
9018else 13572else
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13573 { $as_echo "$as_me:$LINENO: result: no" >&5
9020$as_echo "no" >&6; } 13574$as_echo "no" >&6; }
9021fi 13575fi
9022 13576
@@ -9027,27 +13581,27 @@ fi
9027 else 13581 else
9028 PKG_CONFIG_MIN_VERSION=0.9.0 13582 PKG_CONFIG_MIN_VERSION=0.9.0
9029 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 13583 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5 13584 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
9031$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } 13585$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9032 13586
9033 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then 13587 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13588 { $as_echo "$as_me:$LINENO: result: yes" >&5
9035$as_echo "yes" >&6; } 13589$as_echo "yes" >&6; }
9036 succeeded=yes 13590 succeeded=yes
9037 13591
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5 13592 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
9039$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } 13593$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9040 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 13594 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5 13595 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
9042$as_echo "$FONTCONFIG_CFLAGS" >&6; } 13596$as_echo "$FONTCONFIG_CFLAGS" >&6; }
9043 13597
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5 13598 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
9045$as_echo_n "checking FONTCONFIG_LIBS... " >&6; } 13599$as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9046 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 13600 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5 13601 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
9048$as_echo "$FONTCONFIG_LIBS" >&6; } 13602$as_echo "$FONTCONFIG_LIBS" >&6; }
9049 else 13603 else
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13604 { $as_echo "$as_me:$LINENO: result: no" >&5
9051$as_echo "no" >&6; } 13605$as_echo "no" >&6; }
9052 FONTCONFIG_CFLAGS="" 13606 FONTCONFIG_CFLAGS=""
9053 FONTCONFIG_LIBS="" 13607 FONTCONFIG_LIBS=""
@@ -9084,9 +13638,9 @@ $as_echo "no" >&6; }
9084 13638
9085 # Extract the first word of "pkg-config", so it can be a program name with args. 13639 # Extract the first word of "pkg-config", so it can be a program name with args.
9086set dummy pkg-config; ac_word=$2 13640set dummy pkg-config; ac_word=$2
9087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13641{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9088$as_echo_n "checking for $ac_word... " >&6; } 13642$as_echo_n "checking for $ac_word... " >&6; }
9089if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13643if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9090 $as_echo_n "(cached) " >&6 13644 $as_echo_n "(cached) " >&6
9091else 13645else
9092 case $PKG_CONFIG in 13646 case $PKG_CONFIG in
@@ -9099,14 +13653,14 @@ for as_dir in $PATH
9099do 13653do
9100 IFS=$as_save_IFS 13654 IFS=$as_save_IFS
9101 test -z "$as_dir" && as_dir=. 13655 test -z "$as_dir" && as_dir=.
9102 for ac_exec_ext in '' $ac_executable_extensions; do 13656 for ac_exec_ext in '' $ac_executable_extensions; do
9103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9104 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13658 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9106 break 2 13660 break 2
9107 fi 13661 fi
9108done 13662done
9109 done 13663done
9110IFS=$as_save_IFS 13664IFS=$as_save_IFS
9111 13665
9112 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 13666 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9115,10 +13669,10 @@ esac
9115fi 13669fi
9116PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13670PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9117if test -n "$PKG_CONFIG"; then 13671if test -n "$PKG_CONFIG"; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13672 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9119$as_echo "$PKG_CONFIG" >&6; } 13673$as_echo "$PKG_CONFIG" >&6; }
9120else 13674else
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13675 { $as_echo "$as_me:$LINENO: result: no" >&5
9122$as_echo "no" >&6; } 13676$as_echo "no" >&6; }
9123fi 13677fi
9124 13678
@@ -9129,27 +13683,27 @@ fi
9129 else 13683 else
9130 PKG_CONFIG_MIN_VERSION=0.9.0 13684 PKG_CONFIG_MIN_VERSION=0.9.0
9131 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 13685 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5 13686 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
9133$as_echo_n "checking for xft >= 0.13.0... " >&6; } 13687$as_echo_n "checking for xft >= 0.13.0... " >&6; }
9134 13688
9135 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then 13689 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13690 { $as_echo "$as_me:$LINENO: result: yes" >&5
9137$as_echo "yes" >&6; } 13691$as_echo "yes" >&6; }
9138 succeeded=yes 13692 succeeded=yes
9139 13693
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5 13694 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
9141$as_echo_n "checking XFT_CFLAGS... " >&6; } 13695$as_echo_n "checking XFT_CFLAGS... " >&6; }
9142 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` 13696 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5 13697 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
9144$as_echo "$XFT_CFLAGS" >&6; } 13698$as_echo "$XFT_CFLAGS" >&6; }
9145 13699
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5 13700 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
9147$as_echo_n "checking XFT_LIBS... " >&6; } 13701$as_echo_n "checking XFT_LIBS... " >&6; }
9148 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` 13702 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5 13703 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
9150$as_echo "$XFT_LIBS" >&6; } 13704$as_echo "$XFT_LIBS" >&6; }
9151 else 13705 else
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13706 { $as_echo "$as_me:$LINENO: result: no" >&5
9153$as_echo "no" >&6; } 13707$as_echo "no" >&6; }
9154 XFT_CFLAGS="" 13708 XFT_CFLAGS=""
9155 XFT_LIBS="" 13709 XFT_LIBS=""
@@ -9176,14 +13730,18 @@ $as_echo "no" >&6; }
9176 ## Because xftfont.c uses XRenderQueryExtension, we also 13730 ## Because xftfont.c uses XRenderQueryExtension, we also
9177 ## need to link to -lXrender. 13731 ## need to link to -lXrender.
9178 HAVE_XRENDER=no 13732 HAVE_XRENDER=no
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5 13733 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
9180$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } 13734$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9181if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then : 13735if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
9182 $as_echo_n "(cached) " >&6 13736 $as_echo_n "(cached) " >&6
9183else 13737else
9184 ac_check_lib_save_LIBS=$LIBS 13738 ac_check_lib_save_LIBS=$LIBS
9185LIBS="-lXrender $LIBS" 13739LIBS="-lXrender $LIBS"
9186cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13740cat >conftest.$ac_ext <<_ACEOF
13741/* confdefs.h. */
13742_ACEOF
13743cat confdefs.h >>conftest.$ac_ext
13744cat >>conftest.$ac_ext <<_ACEOF
9187/* end confdefs.h. */ 13745/* end confdefs.h. */
9188 13746
9189/* Override any GCC internal prototype to avoid an error. 13747/* Override any GCC internal prototype to avoid an error.
@@ -9201,18 +13759,43 @@ return XRenderQueryExtension ();
9201 return 0; 13759 return 0;
9202} 13760}
9203_ACEOF 13761_ACEOF
9204if ac_fn_c_try_link "$LINENO"; then : 13762rm -f conftest.$ac_objext conftest$ac_exeext
13763if { (ac_try="$ac_link"
13764case "(($ac_try" in
13765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13766 *) ac_try_echo=$ac_try;;
13767esac
13768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13769$as_echo "$ac_try_echo") >&5
13770 (eval "$ac_link") 2>conftest.er1
13771 ac_status=$?
13772 grep -v '^ *+' conftest.er1 >conftest.err
13773 rm -f conftest.er1
13774 cat conftest.err >&5
13775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13776 (exit $ac_status); } && {
13777 test -z "$ac_c_werror_flag" ||
13778 test ! -s conftest.err
13779 } && test -s conftest$ac_exeext && {
13780 test "$cross_compiling" = yes ||
13781 $as_test_x conftest$ac_exeext
13782 }; then
9205 ac_cv_lib_Xrender_XRenderQueryExtension=yes 13783 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9206else 13784else
9207 ac_cv_lib_Xrender_XRenderQueryExtension=no 13785 $as_echo "$as_me: failed program was:" >&5
13786sed 's/^/| /' conftest.$ac_ext >&5
13787
13788 ac_cv_lib_Xrender_XRenderQueryExtension=no
9208fi 13789fi
9209rm -f core conftest.err conftest.$ac_objext \ 13790
9210 conftest$ac_exeext conftest.$ac_ext 13791rm -rf conftest.dSYM
13792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13793 conftest$ac_exeext conftest.$ac_ext
9211LIBS=$ac_check_lib_save_LIBS 13794LIBS=$ac_check_lib_save_LIBS
9212fi 13795fi
9213{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 13796{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9214$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } 13797$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9215if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then : 13798if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
9216 HAVE_XRENDER=yes 13799 HAVE_XRENDER=yes
9217fi 13800fi
9218 13801
@@ -9224,16 +13807,146 @@ fi
9224 CFLAGS="$CFLAGS $XFT_CFLAGS" 13807 CFLAGS="$CFLAGS $XFT_CFLAGS"
9225 XFT_LIBS="-lXrender $XFT_LIBS" 13808 XFT_LIBS="-lXrender $XFT_LIBS"
9226 LIBS="$XFT_LIBS $LIBS" 13809 LIBS="$XFT_LIBS $LIBS"
9227 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" 13810 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
9228if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : 13811 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 13812$as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13813if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13814 $as_echo_n "(cached) " >&6
13815fi
13816{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13817$as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13818else
13819 # Is the header compilable?
13820{ $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13821$as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13822cat >conftest.$ac_ext <<_ACEOF
13823/* confdefs.h. */
13824_ACEOF
13825cat confdefs.h >>conftest.$ac_ext
13826cat >>conftest.$ac_ext <<_ACEOF
13827/* end confdefs.h. */
13828$ac_includes_default
13829#include <X11/Xft/Xft.h>
13830_ACEOF
13831rm -f conftest.$ac_objext
13832if { (ac_try="$ac_compile"
13833case "(($ac_try" in
13834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13835 *) ac_try_echo=$ac_try;;
13836esac
13837eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13838$as_echo "$ac_try_echo") >&5
13839 (eval "$ac_compile") 2>conftest.er1
13840 ac_status=$?
13841 grep -v '^ *+' conftest.er1 >conftest.err
13842 rm -f conftest.er1
13843 cat conftest.err >&5
13844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13845 (exit $ac_status); } && {
13846 test -z "$ac_c_werror_flag" ||
13847 test ! -s conftest.err
13848 } && test -s conftest.$ac_objext; then
13849 ac_header_compiler=yes
13850else
13851 $as_echo "$as_me: failed program was:" >&5
13852sed 's/^/| /' conftest.$ac_ext >&5
13853
13854 ac_header_compiler=no
13855fi
13856
13857rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13858{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13859$as_echo "$ac_header_compiler" >&6; }
13860
13861# Is the header present?
13862{ $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13863$as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13864cat >conftest.$ac_ext <<_ACEOF
13865/* confdefs.h. */
13866_ACEOF
13867cat confdefs.h >>conftest.$ac_ext
13868cat >>conftest.$ac_ext <<_ACEOF
13869/* end confdefs.h. */
13870#include <X11/Xft/Xft.h>
13871_ACEOF
13872if { (ac_try="$ac_cpp conftest.$ac_ext"
13873case "(($ac_try" in
13874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13875 *) ac_try_echo=$ac_try;;
13876esac
13877eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13878$as_echo "$ac_try_echo") >&5
13879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13880 ac_status=$?
13881 grep -v '^ *+' conftest.er1 >conftest.err
13882 rm -f conftest.er1
13883 cat conftest.err >&5
13884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13885 (exit $ac_status); } >/dev/null && {
13886 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13887 test ! -s conftest.err
13888 }; then
13889 ac_header_preproc=yes
13890else
13891 $as_echo "$as_me: failed program was:" >&5
13892sed 's/^/| /' conftest.$ac_ext >&5
13893
13894 ac_header_preproc=no
13895fi
13896
13897rm -f conftest.err conftest.$ac_ext
13898{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13899$as_echo "$ac_header_preproc" >&6; }
13900
13901# So? What about this header?
13902case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13903 yes:no: )
13904 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13905$as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13906 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13907$as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13908 ac_header_preproc=yes
13909 ;;
13910 no:yes:* )
13911 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13912$as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13913 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13914$as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13915 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13916$as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13917 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13918$as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13919 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13920$as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13921 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13922$as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13923
13924 ;;
13925esac
13926{ $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13927$as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13928if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13929 $as_echo_n "(cached) " >&6
13930else
13931 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13932fi
13933{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13934$as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13935
13936fi
13937if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13938 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
9230$as_echo_n "checking for XftFontOpen in -lXft... " >&6; } 13939$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9231if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then : 13940if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
9232 $as_echo_n "(cached) " >&6 13941 $as_echo_n "(cached) " >&6
9233else 13942else
9234 ac_check_lib_save_LIBS=$LIBS 13943 ac_check_lib_save_LIBS=$LIBS
9235LIBS="-lXft $XFT_LIBS $LIBS" 13944LIBS="-lXft $XFT_LIBS $LIBS"
9236cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13945cat >conftest.$ac_ext <<_ACEOF
13946/* confdefs.h. */
13947_ACEOF
13948cat confdefs.h >>conftest.$ac_ext
13949cat >>conftest.$ac_ext <<_ACEOF
9237/* end confdefs.h. */ 13950/* end confdefs.h. */
9238 13951
9239/* Override any GCC internal prototype to avoid an error. 13952/* Override any GCC internal prototype to avoid an error.
@@ -9251,18 +13964,43 @@ return XftFontOpen ();
9251 return 0; 13964 return 0;
9252} 13965}
9253_ACEOF 13966_ACEOF
9254if ac_fn_c_try_link "$LINENO"; then : 13967rm -f conftest.$ac_objext conftest$ac_exeext
13968if { (ac_try="$ac_link"
13969case "(($ac_try" in
13970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13971 *) ac_try_echo=$ac_try;;
13972esac
13973eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13974$as_echo "$ac_try_echo") >&5
13975 (eval "$ac_link") 2>conftest.er1
13976 ac_status=$?
13977 grep -v '^ *+' conftest.er1 >conftest.err
13978 rm -f conftest.er1
13979 cat conftest.err >&5
13980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13981 (exit $ac_status); } && {
13982 test -z "$ac_c_werror_flag" ||
13983 test ! -s conftest.err
13984 } && test -s conftest$ac_exeext && {
13985 test "$cross_compiling" = yes ||
13986 $as_test_x conftest$ac_exeext
13987 }; then
9255 ac_cv_lib_Xft_XftFontOpen=yes 13988 ac_cv_lib_Xft_XftFontOpen=yes
9256else 13989else
9257 ac_cv_lib_Xft_XftFontOpen=no 13990 $as_echo "$as_me: failed program was:" >&5
13991sed 's/^/| /' conftest.$ac_ext >&5
13992
13993 ac_cv_lib_Xft_XftFontOpen=no
9258fi 13994fi
9259rm -f core conftest.err conftest.$ac_objext \ 13995
9260 conftest$ac_exeext conftest.$ac_ext 13996rm -rf conftest.dSYM
13997rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13998 conftest$ac_exeext conftest.$ac_ext
9261LIBS=$ac_check_lib_save_LIBS 13999LIBS=$ac_check_lib_save_LIBS
9262fi 14000fi
9263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 14001{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9264$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } 14002$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9265if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then : 14003if test $ac_cv_lib_Xft_XftFontOpen = yes; then
9266 HAVE_XFT=yes 14004 HAVE_XFT=yes
9267fi 14005fi
9268 14006
@@ -9272,7 +14010,9 @@ fi
9272 14010
9273 if test "${HAVE_XFT}" = "yes"; then 14011 if test "${HAVE_XFT}" = "yes"; then
9274 14012
9275$as_echo "#define HAVE_XFT 1" >>confdefs.h 14013cat >>confdefs.h <<\_ACEOF
14014#define HAVE_XFT 1
14015_ACEOF
9276 14016
9277 14017
9278 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" 14018 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
@@ -9301,7 +14041,9 @@ $as_echo "#define HAVE_XFT 1" >>confdefs.h
9301 HAVE_LIBOTF=no 14041 HAVE_LIBOTF=no
9302 if test "${HAVE_FREETYPE}" = "yes"; then 14042 if test "${HAVE_FREETYPE}" = "yes"; then
9303 14043
9304$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h 14044cat >>confdefs.h <<\_ACEOF
14045#define HAVE_FREETYPE 1
14046_ACEOF
9305 14047
9306 if test "${with_libotf}" != "no"; then 14048 if test "${with_libotf}" != "no"; then
9307 14049
@@ -9309,9 +14051,9 @@ $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9309 14051
9310 # Extract the first word of "pkg-config", so it can be a program name with args. 14052 # Extract the first word of "pkg-config", so it can be a program name with args.
9311set dummy pkg-config; ac_word=$2 14053set dummy pkg-config; ac_word=$2
9312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14054{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9313$as_echo_n "checking for $ac_word... " >&6; } 14055$as_echo_n "checking for $ac_word... " >&6; }
9314if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 14056if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9315 $as_echo_n "(cached) " >&6 14057 $as_echo_n "(cached) " >&6
9316else 14058else
9317 case $PKG_CONFIG in 14059 case $PKG_CONFIG in
@@ -9324,14 +14066,14 @@ for as_dir in $PATH
9324do 14066do
9325 IFS=$as_save_IFS 14067 IFS=$as_save_IFS
9326 test -z "$as_dir" && as_dir=. 14068 test -z "$as_dir" && as_dir=.
9327 for ac_exec_ext in '' $ac_executable_extensions; do 14069 for ac_exec_ext in '' $ac_executable_extensions; do
9328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9329 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14071 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14072 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9331 break 2 14073 break 2
9332 fi 14074 fi
9333done 14075done
9334 done 14076done
9335IFS=$as_save_IFS 14077IFS=$as_save_IFS
9336 14078
9337 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 14079 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9340,10 +14082,10 @@ esac
9340fi 14082fi
9341PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14083PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9342if test -n "$PKG_CONFIG"; then 14084if test -n "$PKG_CONFIG"; then
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14085 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9344$as_echo "$PKG_CONFIG" >&6; } 14086$as_echo "$PKG_CONFIG" >&6; }
9345else 14087else
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14088 { $as_echo "$as_me:$LINENO: result: no" >&5
9347$as_echo "no" >&6; } 14089$as_echo "no" >&6; }
9348fi 14090fi
9349 14091
@@ -9354,27 +14096,27 @@ fi
9354 else 14096 else
9355 PKG_CONFIG_MIN_VERSION=0.9.0 14097 PKG_CONFIG_MIN_VERSION=0.9.0
9356 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14098 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5 14099 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
9358$as_echo_n "checking for libotf... " >&6; } 14100$as_echo_n "checking for libotf... " >&6; }
9359 14101
9360 if $PKG_CONFIG --exists "libotf" 2>&5; then 14102 if $PKG_CONFIG --exists "libotf" 2>&5; then
9361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14103 { $as_echo "$as_me:$LINENO: result: yes" >&5
9362$as_echo "yes" >&6; } 14104$as_echo "yes" >&6; }
9363 succeeded=yes 14105 succeeded=yes
9364 14106
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5 14107 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
9366$as_echo_n "checking LIBOTF_CFLAGS... " >&6; } 14108$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9367 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` 14109 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5 14110 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
9369$as_echo "$LIBOTF_CFLAGS" >&6; } 14111$as_echo "$LIBOTF_CFLAGS" >&6; }
9370 14112
9371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5 14113 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
9372$as_echo_n "checking LIBOTF_LIBS... " >&6; } 14114$as_echo_n "checking LIBOTF_LIBS... " >&6; }
9373 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` 14115 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5 14116 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
9375$as_echo "$LIBOTF_LIBS" >&6; } 14117$as_echo "$LIBOTF_LIBS" >&6; }
9376 else 14118 else
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14119 { $as_echo "$as_me:$LINENO: result: no" >&5
9378$as_echo "no" >&6; } 14120$as_echo "no" >&6; }
9379 LIBOTF_CFLAGS="" 14121 LIBOTF_CFLAGS=""
9380 LIBOTF_LIBS="" 14122 LIBOTF_LIBS=""
@@ -9400,16 +14142,22 @@ $as_echo "no" >&6; }
9400 14142
9401 if test "$HAVE_LIBOTF" = "yes"; then 14143 if test "$HAVE_LIBOTF" = "yes"; then
9402 14144
9403$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h 14145cat >>confdefs.h <<\_ACEOF
14146#define HAVE_LIBOTF 1
14147_ACEOF
9404 14148
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5 14149 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
9406$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } 14150$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9407if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then : 14151if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
9408 $as_echo_n "(cached) " >&6 14152 $as_echo_n "(cached) " >&6
9409else 14153else
9410 ac_check_lib_save_LIBS=$LIBS 14154 ac_check_lib_save_LIBS=$LIBS
9411LIBS="-lotf $LIBS" 14155LIBS="-lotf $LIBS"
9412cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14156cat >conftest.$ac_ext <<_ACEOF
14157/* confdefs.h. */
14158_ACEOF
14159cat confdefs.h >>conftest.$ac_ext
14160cat >>conftest.$ac_ext <<_ACEOF
9413/* end confdefs.h. */ 14161/* end confdefs.h. */
9414 14162
9415/* Override any GCC internal prototype to avoid an error. 14163/* Override any GCC internal prototype to avoid an error.
@@ -9427,18 +14175,43 @@ return OTF_get_variation_glyphs ();
9427 return 0; 14175 return 0;
9428} 14176}
9429_ACEOF 14177_ACEOF
9430if ac_fn_c_try_link "$LINENO"; then : 14178rm -f conftest.$ac_objext conftest$ac_exeext
14179if { (ac_try="$ac_link"
14180case "(($ac_try" in
14181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182 *) ac_try_echo=$ac_try;;
14183esac
14184eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14185$as_echo "$ac_try_echo") >&5
14186 (eval "$ac_link") 2>conftest.er1
14187 ac_status=$?
14188 grep -v '^ *+' conftest.er1 >conftest.err
14189 rm -f conftest.er1
14190 cat conftest.err >&5
14191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } && {
14193 test -z "$ac_c_werror_flag" ||
14194 test ! -s conftest.err
14195 } && test -s conftest$ac_exeext && {
14196 test "$cross_compiling" = yes ||
14197 $as_test_x conftest$ac_exeext
14198 }; then
9431 ac_cv_lib_otf_OTF_get_variation_glyphs=yes 14199 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9432else 14200else
9433 ac_cv_lib_otf_OTF_get_variation_glyphs=no 14201 $as_echo "$as_me: failed program was:" >&5
14202sed 's/^/| /' conftest.$ac_ext >&5
14203
14204 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9434fi 14205fi
9435rm -f core conftest.err conftest.$ac_objext \ 14206
9436 conftest$ac_exeext conftest.$ac_ext 14207rm -rf conftest.dSYM
14208rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14209 conftest$ac_exeext conftest.$ac_ext
9437LIBS=$ac_check_lib_save_LIBS 14210LIBS=$ac_check_lib_save_LIBS
9438fi 14211fi
9439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 14212{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9440$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } 14213$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9441if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then : 14214if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
9442 HAVE_OTF_GET_VARIATION_GLYPHS=yes 14215 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9443else 14216else
9444 HAVE_OTF_GET_VARIATION_GLYPHS=no 14217 HAVE_OTF_GET_VARIATION_GLYPHS=no
@@ -9446,7 +14219,9 @@ fi
9446 14219
9447 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then 14220 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9448 14221
9449$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h 14222cat >>confdefs.h <<\_ACEOF
14223#define HAVE_OTF_GET_VARIATION_GLYPHS 1
14224_ACEOF
9450 14225
9451 fi 14226 fi
9452 fi 14227 fi
@@ -9461,9 +14236,9 @@ $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9461 14236
9462 # Extract the first word of "pkg-config", so it can be a program name with args. 14237 # Extract the first word of "pkg-config", so it can be a program name with args.
9463set dummy pkg-config; ac_word=$2 14238set dummy pkg-config; ac_word=$2
9464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14239{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9465$as_echo_n "checking for $ac_word... " >&6; } 14240$as_echo_n "checking for $ac_word... " >&6; }
9466if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 14241if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9467 $as_echo_n "(cached) " >&6 14242 $as_echo_n "(cached) " >&6
9468else 14243else
9469 case $PKG_CONFIG in 14244 case $PKG_CONFIG in
@@ -9476,14 +14251,14 @@ for as_dir in $PATH
9476do 14251do
9477 IFS=$as_save_IFS 14252 IFS=$as_save_IFS
9478 test -z "$as_dir" && as_dir=. 14253 test -z "$as_dir" && as_dir=.
9479 for ac_exec_ext in '' $ac_executable_extensions; do 14254 for ac_exec_ext in '' $ac_executable_extensions; do
9480 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9481 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14256 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14257 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9483 break 2 14258 break 2
9484 fi 14259 fi
9485done 14260done
9486 done 14261done
9487IFS=$as_save_IFS 14262IFS=$as_save_IFS
9488 14263
9489 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 14264 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9492,10 +14267,10 @@ esac
9492fi 14267fi
9493PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14268PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9494if test -n "$PKG_CONFIG"; then 14269if test -n "$PKG_CONFIG"; then
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14270 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9496$as_echo "$PKG_CONFIG" >&6; } 14271$as_echo "$PKG_CONFIG" >&6; }
9497else 14272else
9498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14273 { $as_echo "$as_me:$LINENO: result: no" >&5
9499$as_echo "no" >&6; } 14274$as_echo "no" >&6; }
9500fi 14275fi
9501 14276
@@ -9506,27 +14281,27 @@ fi
9506 else 14281 else
9507 PKG_CONFIG_MIN_VERSION=0.9.0 14282 PKG_CONFIG_MIN_VERSION=0.9.0
9508 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14283 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5 14284 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
9510$as_echo_n "checking for m17n-flt... " >&6; } 14285$as_echo_n "checking for m17n-flt... " >&6; }
9511 14286
9512 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then 14287 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14288 { $as_echo "$as_me:$LINENO: result: yes" >&5
9514$as_echo "yes" >&6; } 14289$as_echo "yes" >&6; }
9515 succeeded=yes 14290 succeeded=yes
9516 14291
9517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5 14292 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
9518$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } 14293$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9519 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` 14294 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5 14295 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
9521$as_echo "$M17N_FLT_CFLAGS" >&6; } 14296$as_echo "$M17N_FLT_CFLAGS" >&6; }
9522 14297
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5 14298 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
9524$as_echo_n "checking M17N_FLT_LIBS... " >&6; } 14299$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9525 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` 14300 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5 14301 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
9527$as_echo "$M17N_FLT_LIBS" >&6; } 14302$as_echo "$M17N_FLT_LIBS" >&6; }
9528 else 14303 else
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14304 { $as_echo "$as_me:$LINENO: result: no" >&5
9530$as_echo "no" >&6; } 14305$as_echo "no" >&6; }
9531 M17N_FLT_CFLAGS="" 14306 M17N_FLT_CFLAGS=""
9532 M17N_FLT_LIBS="" 14307 M17N_FLT_LIBS=""
@@ -9552,7 +14327,9 @@ $as_echo "no" >&6; }
9552 14327
9553 if test "$HAVE_M17N_FLT" = "yes"; then 14328 if test "$HAVE_M17N_FLT" = "yes"; then
9554 14329
9555$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h 14330cat >>confdefs.h <<\_ACEOF
14331#define HAVE_M17N_FLT 1
14332_ACEOF
9556 14333
9557 fi 14334 fi
9558 fi 14335 fi
@@ -9576,18 +14353,149 @@ fi
9576 14353
9577### Use -lXpm if available, unless `--with-xpm=no'. 14354### Use -lXpm if available, unless `--with-xpm=no'.
9578HAVE_XPM=no 14355HAVE_XPM=no
14356LIBXPM=
9579if test "${HAVE_X11}" = "yes"; then 14357if test "${HAVE_X11}" = "yes"; then
9580 if test "${with_xpm}" != "no"; then 14358 if test "${with_xpm}" != "no"; then
9581 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" 14359 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9582if test "x$ac_cv_header_X11_xpm_h" = x""yes; then : 14360 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5 14361$as_echo_n "checking for X11/xpm.h... " >&6; }
14362if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14363 $as_echo_n "(cached) " >&6
14364fi
14365{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14366$as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14367else
14368 # Is the header compilable?
14369{ $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14370$as_echo_n "checking X11/xpm.h usability... " >&6; }
14371cat >conftest.$ac_ext <<_ACEOF
14372/* confdefs.h. */
14373_ACEOF
14374cat confdefs.h >>conftest.$ac_ext
14375cat >>conftest.$ac_ext <<_ACEOF
14376/* end confdefs.h. */
14377$ac_includes_default
14378#include <X11/xpm.h>
14379_ACEOF
14380rm -f conftest.$ac_objext
14381if { (ac_try="$ac_compile"
14382case "(($ac_try" in
14383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14384 *) ac_try_echo=$ac_try;;
14385esac
14386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14387$as_echo "$ac_try_echo") >&5
14388 (eval "$ac_compile") 2>conftest.er1
14389 ac_status=$?
14390 grep -v '^ *+' conftest.er1 >conftest.err
14391 rm -f conftest.er1
14392 cat conftest.err >&5
14393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14394 (exit $ac_status); } && {
14395 test -z "$ac_c_werror_flag" ||
14396 test ! -s conftest.err
14397 } && test -s conftest.$ac_objext; then
14398 ac_header_compiler=yes
14399else
14400 $as_echo "$as_me: failed program was:" >&5
14401sed 's/^/| /' conftest.$ac_ext >&5
14402
14403 ac_header_compiler=no
14404fi
14405
14406rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14407{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14408$as_echo "$ac_header_compiler" >&6; }
14409
14410# Is the header present?
14411{ $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14412$as_echo_n "checking X11/xpm.h presence... " >&6; }
14413cat >conftest.$ac_ext <<_ACEOF
14414/* confdefs.h. */
14415_ACEOF
14416cat confdefs.h >>conftest.$ac_ext
14417cat >>conftest.$ac_ext <<_ACEOF
14418/* end confdefs.h. */
14419#include <X11/xpm.h>
14420_ACEOF
14421if { (ac_try="$ac_cpp conftest.$ac_ext"
14422case "(($ac_try" in
14423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14424 *) ac_try_echo=$ac_try;;
14425esac
14426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14427$as_echo "$ac_try_echo") >&5
14428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14429 ac_status=$?
14430 grep -v '^ *+' conftest.er1 >conftest.err
14431 rm -f conftest.er1
14432 cat conftest.err >&5
14433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14434 (exit $ac_status); } >/dev/null && {
14435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14436 test ! -s conftest.err
14437 }; then
14438 ac_header_preproc=yes
14439else
14440 $as_echo "$as_me: failed program was:" >&5
14441sed 's/^/| /' conftest.$ac_ext >&5
14442
14443 ac_header_preproc=no
14444fi
14445
14446rm -f conftest.err conftest.$ac_ext
14447{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14448$as_echo "$ac_header_preproc" >&6; }
14449
14450# So? What about this header?
14451case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14452 yes:no: )
14453 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14454$as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14455 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14456$as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14457 ac_header_preproc=yes
14458 ;;
14459 no:yes:* )
14460 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14461$as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14462 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14463$as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14464 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14465$as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14466 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14467$as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14468 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14469$as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14470 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14471$as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14472
14473 ;;
14474esac
14475{ $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14476$as_echo_n "checking for X11/xpm.h... " >&6; }
14477if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14478 $as_echo_n "(cached) " >&6
14479else
14480 ac_cv_header_X11_xpm_h=$ac_header_preproc
14481fi
14482{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14483$as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14484
14485fi
14486if test $ac_cv_header_X11_xpm_h = yes; then
14487 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9584$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } 14488$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9585if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then : 14489if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9586 $as_echo_n "(cached) " >&6 14490 $as_echo_n "(cached) " >&6
9587else 14491else
9588 ac_check_lib_save_LIBS=$LIBS 14492 ac_check_lib_save_LIBS=$LIBS
9589LIBS="-lXpm -lX11 $LIBS" 14493LIBS="-lXpm -lX11 $LIBS"
9590cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14494cat >conftest.$ac_ext <<_ACEOF
14495/* confdefs.h. */
14496_ACEOF
14497cat confdefs.h >>conftest.$ac_ext
14498cat >>conftest.$ac_ext <<_ACEOF
9591/* end confdefs.h. */ 14499/* end confdefs.h. */
9592 14500
9593/* Override any GCC internal prototype to avoid an error. 14501/* Override any GCC internal prototype to avoid an error.
@@ -9605,18 +14513,43 @@ return XpmReadFileToPixmap ();
9605 return 0; 14513 return 0;
9606} 14514}
9607_ACEOF 14515_ACEOF
9608if ac_fn_c_try_link "$LINENO"; then : 14516rm -f conftest.$ac_objext conftest$ac_exeext
14517if { (ac_try="$ac_link"
14518case "(($ac_try" in
14519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520 *) ac_try_echo=$ac_try;;
14521esac
14522eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14523$as_echo "$ac_try_echo") >&5
14524 (eval "$ac_link") 2>conftest.er1
14525 ac_status=$?
14526 grep -v '^ *+' conftest.er1 >conftest.err
14527 rm -f conftest.er1
14528 cat conftest.err >&5
14529 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); } && {
14531 test -z "$ac_c_werror_flag" ||
14532 test ! -s conftest.err
14533 } && test -s conftest$ac_exeext && {
14534 test "$cross_compiling" = yes ||
14535 $as_test_x conftest$ac_exeext
14536 }; then
9609 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes 14537 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9610else 14538else
9611 ac_cv_lib_Xpm_XpmReadFileToPixmap=no 14539 $as_echo "$as_me: failed program was:" >&5
14540sed 's/^/| /' conftest.$ac_ext >&5
14541
14542 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9612fi 14543fi
9613rm -f core conftest.err conftest.$ac_objext \ 14544
9614 conftest$ac_exeext conftest.$ac_ext 14545rm -rf conftest.dSYM
14546rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14547 conftest$ac_exeext conftest.$ac_ext
9615LIBS=$ac_check_lib_save_LIBS 14548LIBS=$ac_check_lib_save_LIBS
9616fi 14549fi
9617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 14550{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9618$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } 14551$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9619if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then : 14552if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9620 HAVE_XPM=yes 14553 HAVE_XPM=yes
9621fi 14554fi
9622 14555
@@ -9624,9 +14557,13 @@ fi
9624 14557
9625 14558
9626 if test "${HAVE_XPM}" = "yes"; then 14559 if test "${HAVE_XPM}" = "yes"; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5 14560 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9628$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } 14561$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14562 cat >conftest.$ac_ext <<_ACEOF
14563/* confdefs.h. */
14564_ACEOF
14565cat confdefs.h >>conftest.$ac_ext
14566cat >>conftest.$ac_ext <<_ACEOF
9630/* end confdefs.h. */ 14567/* end confdefs.h. */
9631#include "X11/xpm.h" 14568#include "X11/xpm.h"
9632#ifndef XpmReturnAllocPixels 14569#ifndef XpmReturnAllocPixels
@@ -9635,7 +14572,7 @@ no_return_alloc_pixels
9635 14572
9636_ACEOF 14573_ACEOF
9637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14574if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9638 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then : 14575 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9639 HAVE_XPM=no 14576 HAVE_XPM=no
9640else 14577else
9641 HAVE_XPM=yes 14578 HAVE_XPM=yes
@@ -9644,10 +14581,10 @@ rm -f conftest*
9644 14581
9645 14582
9646 if test "${HAVE_XPM}" = "yes"; then 14583 if test "${HAVE_XPM}" = "yes"; then
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14584 { $as_echo "$as_me:$LINENO: result: yes" >&5
9648$as_echo "yes" >&6; } 14585$as_echo "yes" >&6; }
9649 else 14586 else
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14587 { $as_echo "$as_me:$LINENO: result: no" >&5
9651$as_echo "no" >&6; } 14588$as_echo "no" >&6; }
9652 fi 14589 fi
9653 fi 14590 fi
@@ -9655,25 +14592,160 @@ $as_echo "no" >&6; }
9655 14592
9656 if test "${HAVE_XPM}" = "yes"; then 14593 if test "${HAVE_XPM}" = "yes"; then
9657 14594
9658$as_echo "#define HAVE_XPM 1" >>confdefs.h 14595cat >>confdefs.h <<\_ACEOF
14596#define HAVE_XPM 1
14597_ACEOF
9659 14598
14599 LIBXPM=-lXpm
9660 fi 14600 fi
9661fi 14601fi
9662 14602
14603
9663### Use -ljpeg if available, unless `--with-jpeg=no'. 14604### Use -ljpeg if available, unless `--with-jpeg=no'.
9664HAVE_JPEG=no 14605HAVE_JPEG=no
14606LIBJPEG=
9665if test "${HAVE_X11}" = "yes"; then 14607if test "${HAVE_X11}" = "yes"; then
9666 if test "${with_jpeg}" != "no"; then 14608 if test "${with_jpeg}" != "no"; then
9667 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" 14609 if test "${ac_cv_header_jerror_h+set}" = set; then
9668if test "x$ac_cv_header_jerror_h" = x""yes; then : 14610 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 14611$as_echo_n "checking for jerror.h... " >&6; }
14612if test "${ac_cv_header_jerror_h+set}" = set; then
14613 $as_echo_n "(cached) " >&6
14614fi
14615{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14616$as_echo "$ac_cv_header_jerror_h" >&6; }
14617else
14618 # Is the header compilable?
14619{ $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14620$as_echo_n "checking jerror.h usability... " >&6; }
14621cat >conftest.$ac_ext <<_ACEOF
14622/* confdefs.h. */
14623_ACEOF
14624cat confdefs.h >>conftest.$ac_ext
14625cat >>conftest.$ac_ext <<_ACEOF
14626/* end confdefs.h. */
14627$ac_includes_default
14628#include <jerror.h>
14629_ACEOF
14630rm -f conftest.$ac_objext
14631if { (ac_try="$ac_compile"
14632case "(($ac_try" in
14633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14634 *) ac_try_echo=$ac_try;;
14635esac
14636eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14637$as_echo "$ac_try_echo") >&5
14638 (eval "$ac_compile") 2>conftest.er1
14639 ac_status=$?
14640 grep -v '^ *+' conftest.er1 >conftest.err
14641 rm -f conftest.er1
14642 cat conftest.err >&5
14643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && {
14645 test -z "$ac_c_werror_flag" ||
14646 test ! -s conftest.err
14647 } && test -s conftest.$ac_objext; then
14648 ac_header_compiler=yes
14649else
14650 $as_echo "$as_me: failed program was:" >&5
14651sed 's/^/| /' conftest.$ac_ext >&5
14652
14653 ac_header_compiler=no
14654fi
14655
14656rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14657{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14658$as_echo "$ac_header_compiler" >&6; }
14659
14660# Is the header present?
14661{ $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14662$as_echo_n "checking jerror.h presence... " >&6; }
14663cat >conftest.$ac_ext <<_ACEOF
14664/* confdefs.h. */
14665_ACEOF
14666cat confdefs.h >>conftest.$ac_ext
14667cat >>conftest.$ac_ext <<_ACEOF
14668/* end confdefs.h. */
14669#include <jerror.h>
14670_ACEOF
14671if { (ac_try="$ac_cpp conftest.$ac_ext"
14672case "(($ac_try" in
14673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14674 *) ac_try_echo=$ac_try;;
14675esac
14676eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14677$as_echo "$ac_try_echo") >&5
14678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14679 ac_status=$?
14680 grep -v '^ *+' conftest.er1 >conftest.err
14681 rm -f conftest.er1
14682 cat conftest.err >&5
14683 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } >/dev/null && {
14685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14686 test ! -s conftest.err
14687 }; then
14688 ac_header_preproc=yes
14689else
14690 $as_echo "$as_me: failed program was:" >&5
14691sed 's/^/| /' conftest.$ac_ext >&5
14692
14693 ac_header_preproc=no
14694fi
14695
14696rm -f conftest.err conftest.$ac_ext
14697{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14698$as_echo "$ac_header_preproc" >&6; }
14699
14700# So? What about this header?
14701case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14702 yes:no: )
14703 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14704$as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14705 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14706$as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14707 ac_header_preproc=yes
14708 ;;
14709 no:yes:* )
14710 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14711$as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14712 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14713$as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14714 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14715$as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14716 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14717$as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14718 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14719$as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14720 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14721$as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14722
14723 ;;
14724esac
14725{ $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14726$as_echo_n "checking for jerror.h... " >&6; }
14727if test "${ac_cv_header_jerror_h+set}" = set; then
14728 $as_echo_n "(cached) " >&6
14729else
14730 ac_cv_header_jerror_h=$ac_header_preproc
14731fi
14732{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14733$as_echo "$ac_cv_header_jerror_h" >&6; }
14734
14735fi
14736if test $ac_cv_header_jerror_h = yes; then
14737 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9670$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } 14738$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9671if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then : 14739if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9672 $as_echo_n "(cached) " >&6 14740 $as_echo_n "(cached) " >&6
9673else 14741else
9674 ac_check_lib_save_LIBS=$LIBS 14742 ac_check_lib_save_LIBS=$LIBS
9675LIBS="-ljpeg $LIBS" 14743LIBS="-ljpeg $LIBS"
9676cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14744cat >conftest.$ac_ext <<_ACEOF
14745/* confdefs.h. */
14746_ACEOF
14747cat confdefs.h >>conftest.$ac_ext
14748cat >>conftest.$ac_ext <<_ACEOF
9677/* end confdefs.h. */ 14749/* end confdefs.h. */
9678 14750
9679/* Override any GCC internal prototype to avoid an error. 14751/* Override any GCC internal prototype to avoid an error.
@@ -9691,18 +14763,43 @@ return jpeg_destroy_compress ();
9691 return 0; 14763 return 0;
9692} 14764}
9693_ACEOF 14765_ACEOF
9694if ac_fn_c_try_link "$LINENO"; then : 14766rm -f conftest.$ac_objext conftest$ac_exeext
14767if { (ac_try="$ac_link"
14768case "(($ac_try" in
14769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14770 *) ac_try_echo=$ac_try;;
14771esac
14772eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14773$as_echo "$ac_try_echo") >&5
14774 (eval "$ac_link") 2>conftest.er1
14775 ac_status=$?
14776 grep -v '^ *+' conftest.er1 >conftest.err
14777 rm -f conftest.er1
14778 cat conftest.err >&5
14779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14780 (exit $ac_status); } && {
14781 test -z "$ac_c_werror_flag" ||
14782 test ! -s conftest.err
14783 } && test -s conftest$ac_exeext && {
14784 test "$cross_compiling" = yes ||
14785 $as_test_x conftest$ac_exeext
14786 }; then
9695 ac_cv_lib_jpeg_jpeg_destroy_compress=yes 14787 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9696else 14788else
9697 ac_cv_lib_jpeg_jpeg_destroy_compress=no 14789 $as_echo "$as_me: failed program was:" >&5
14790sed 's/^/| /' conftest.$ac_ext >&5
14791
14792 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9698fi 14793fi
9699rm -f core conftest.err conftest.$ac_objext \ 14794
9700 conftest$ac_exeext conftest.$ac_ext 14795rm -rf conftest.dSYM
14796rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14797 conftest$ac_exeext conftest.$ac_ext
9701LIBS=$ac_check_lib_save_LIBS 14798LIBS=$ac_check_lib_save_LIBS
9702fi 14799fi
9703{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 14800{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9704$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } 14801$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9705if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then : 14802if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9706 HAVE_JPEG=yes 14803 HAVE_JPEG=yes
9707fi 14804fi
9708 14805
@@ -9711,41 +14808,187 @@ fi
9711 14808
9712 fi 14809 fi
9713 14810
9714 if test "${HAVE_JPEG}" = "yes"; then
9715 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9716 14811
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14812 if test "${HAVE_JPEG}" = "yes"; then
14813 cat >>confdefs.h <<\_ACEOF
14814#define HAVE_JPEG 1
14815_ACEOF
14816
14817 cat >conftest.$ac_ext <<_ACEOF
14818/* confdefs.h. */
14819_ACEOF
14820cat confdefs.h >>conftest.$ac_ext
14821cat >>conftest.$ac_ext <<_ACEOF
9718/* end confdefs.h. */ 14822/* end confdefs.h. */
9719#include <jpeglib.h> 14823#include <jpeglib.h>
9720 version=JPEG_LIB_VERSION 14824 version=JPEG_LIB_VERSION
9721 14825
9722_ACEOF 14826_ACEOF
9723if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14827if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9724 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then : 14828 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
9725 $as_echo "#define HAVE_JPEG 1" >>confdefs.h 14829 cat >>confdefs.h <<\_ACEOF
14830#define HAVE_JPEG 1
14831_ACEOF
9726 14832
9727else 14833else
9728 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5 14834 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
9729$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} 14835$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
9730 HAVE_JPEG=no 14836 HAVE_JPEG=no
9731fi 14837fi
9732rm -f conftest* 14838rm -f conftest*
9733 14839
9734 fi 14840 fi
14841 if test "${HAVE_JPEG}" = "yes"; then
14842 LIBJPEG=-ljpeg
14843 fi
9735fi 14844fi
9736 14845
14846
9737### Use -lpng if available, unless `--with-png=no'. 14847### Use -lpng if available, unless `--with-png=no'.
9738HAVE_PNG=no 14848HAVE_PNG=no
14849LIBPNG=
9739if test "${HAVE_X11}" = "yes"; then 14850if test "${HAVE_X11}" = "yes"; then
9740 if test "${with_png}" != "no"; then 14851 if test "${with_png}" != "no"; then
9741 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h 14852 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
9742 # in /usr/include/libpng. 14853 # in /usr/include/libpng.
9743 for ac_header in png.h libpng/png.h 14854
9744do : 14855
9745 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14856for ac_header in png.h libpng/png.h
9746ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14857do
9747eval as_val=\$$as_ac_Header 14858as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9748 if test "x$as_val" = x""yes; then : 14859if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14860 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14861$as_echo_n "checking for $ac_header... " >&6; }
14862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14863 $as_echo_n "(cached) " >&6
14864fi
14865ac_res=`eval 'as_val=${'$as_ac_Header'}
14866 $as_echo "$as_val"'`
14867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14868$as_echo "$ac_res" >&6; }
14869else
14870 # Is the header compilable?
14871{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14872$as_echo_n "checking $ac_header usability... " >&6; }
14873cat >conftest.$ac_ext <<_ACEOF
14874/* confdefs.h. */
14875_ACEOF
14876cat confdefs.h >>conftest.$ac_ext
14877cat >>conftest.$ac_ext <<_ACEOF
14878/* end confdefs.h. */
14879$ac_includes_default
14880#include <$ac_header>
14881_ACEOF
14882rm -f conftest.$ac_objext
14883if { (ac_try="$ac_compile"
14884case "(($ac_try" in
14885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14886 *) ac_try_echo=$ac_try;;
14887esac
14888eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14889$as_echo "$ac_try_echo") >&5
14890 (eval "$ac_compile") 2>conftest.er1
14891 ac_status=$?
14892 grep -v '^ *+' conftest.er1 >conftest.err
14893 rm -f conftest.er1
14894 cat conftest.err >&5
14895 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14896 (exit $ac_status); } && {
14897 test -z "$ac_c_werror_flag" ||
14898 test ! -s conftest.err
14899 } && test -s conftest.$ac_objext; then
14900 ac_header_compiler=yes
14901else
14902 $as_echo "$as_me: failed program was:" >&5
14903sed 's/^/| /' conftest.$ac_ext >&5
14904
14905 ac_header_compiler=no
14906fi
14907
14908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14909{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14910$as_echo "$ac_header_compiler" >&6; }
14911
14912# Is the header present?
14913{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14914$as_echo_n "checking $ac_header presence... " >&6; }
14915cat >conftest.$ac_ext <<_ACEOF
14916/* confdefs.h. */
14917_ACEOF
14918cat confdefs.h >>conftest.$ac_ext
14919cat >>conftest.$ac_ext <<_ACEOF
14920/* end confdefs.h. */
14921#include <$ac_header>
14922_ACEOF
14923if { (ac_try="$ac_cpp conftest.$ac_ext"
14924case "(($ac_try" in
14925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14926 *) ac_try_echo=$ac_try;;
14927esac
14928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14929$as_echo "$ac_try_echo") >&5
14930 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14931 ac_status=$?
14932 grep -v '^ *+' conftest.er1 >conftest.err
14933 rm -f conftest.er1
14934 cat conftest.err >&5
14935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } >/dev/null && {
14937 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14938 test ! -s conftest.err
14939 }; then
14940 ac_header_preproc=yes
14941else
14942 $as_echo "$as_me: failed program was:" >&5
14943sed 's/^/| /' conftest.$ac_ext >&5
14944
14945 ac_header_preproc=no
14946fi
14947
14948rm -f conftest.err conftest.$ac_ext
14949{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14950$as_echo "$ac_header_preproc" >&6; }
14951
14952# So? What about this header?
14953case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14954 yes:no: )
14955 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14956$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14957 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14958$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14959 ac_header_preproc=yes
14960 ;;
14961 no:yes:* )
14962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14963$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14965$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14967$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14968 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14969$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14970 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14971$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14972 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14973$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14974
14975 ;;
14976esac
14977{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14978$as_echo_n "checking for $ac_header... " >&6; }
14979if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14980 $as_echo_n "(cached) " >&6
14981else
14982 eval "$as_ac_Header=\$ac_header_preproc"
14983fi
14984ac_res=`eval 'as_val=${'$as_ac_Header'}
14985 $as_echo "$as_val"'`
14986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14987$as_echo "$ac_res" >&6; }
14988
14989fi
14990if test `eval 'as_val=${'$as_ac_Header'}
14991 $as_echo "$as_val"'` = yes; then
9749 cat >>confdefs.h <<_ACEOF 14992 cat >>confdefs.h <<_ACEOF
9750#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14993#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9751_ACEOF 14994_ACEOF
@@ -9755,14 +14998,18 @@ fi
9755done 14998done
9756 14999
9757 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then 15000 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
9758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5 15001 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
9759$as_echo_n "checking for png_get_channels in -lpng... " >&6; } 15002$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
9760if test "${ac_cv_lib_png_png_get_channels+set}" = set; then : 15003if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
9761 $as_echo_n "(cached) " >&6 15004 $as_echo_n "(cached) " >&6
9762else 15005else
9763 ac_check_lib_save_LIBS=$LIBS 15006 ac_check_lib_save_LIBS=$LIBS
9764LIBS="-lpng -lz -lm $LIBS" 15007LIBS="-lpng -lz -lm $LIBS"
9765cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15008cat >conftest.$ac_ext <<_ACEOF
15009/* confdefs.h. */
15010_ACEOF
15011cat confdefs.h >>conftest.$ac_ext
15012cat >>conftest.$ac_ext <<_ACEOF
9766/* end confdefs.h. */ 15013/* end confdefs.h. */
9767 15014
9768/* Override any GCC internal prototype to avoid an error. 15015/* Override any GCC internal prototype to avoid an error.
@@ -9780,18 +15027,43 @@ return png_get_channels ();
9780 return 0; 15027 return 0;
9781} 15028}
9782_ACEOF 15029_ACEOF
9783if ac_fn_c_try_link "$LINENO"; then : 15030rm -f conftest.$ac_objext conftest$ac_exeext
15031if { (ac_try="$ac_link"
15032case "(($ac_try" in
15033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15034 *) ac_try_echo=$ac_try;;
15035esac
15036eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15037$as_echo "$ac_try_echo") >&5
15038 (eval "$ac_link") 2>conftest.er1
15039 ac_status=$?
15040 grep -v '^ *+' conftest.er1 >conftest.err
15041 rm -f conftest.er1
15042 cat conftest.err >&5
15043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15044 (exit $ac_status); } && {
15045 test -z "$ac_c_werror_flag" ||
15046 test ! -s conftest.err
15047 } && test -s conftest$ac_exeext && {
15048 test "$cross_compiling" = yes ||
15049 $as_test_x conftest$ac_exeext
15050 }; then
9784 ac_cv_lib_png_png_get_channels=yes 15051 ac_cv_lib_png_png_get_channels=yes
9785else 15052else
9786 ac_cv_lib_png_png_get_channels=no 15053 $as_echo "$as_me: failed program was:" >&5
15054sed 's/^/| /' conftest.$ac_ext >&5
15055
15056 ac_cv_lib_png_png_get_channels=no
9787fi 15057fi
9788rm -f core conftest.err conftest.$ac_objext \ 15058
9789 conftest$ac_exeext conftest.$ac_ext 15059rm -rf conftest.dSYM
15060rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15061 conftest$ac_exeext conftest.$ac_ext
9790LIBS=$ac_check_lib_save_LIBS 15062LIBS=$ac_check_lib_save_LIBS
9791fi 15063fi
9792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5 15064{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
9793$as_echo "$ac_cv_lib_png_png_get_channels" >&6; } 15065$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
9794if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then : 15066if test $ac_cv_lib_png_png_get_channels = yes; then
9795 HAVE_PNG=yes 15067 HAVE_PNG=yes
9796fi 15068fi
9797 15069
@@ -9800,28 +15072,163 @@ fi
9800 15072
9801 if test "${HAVE_PNG}" = "yes"; then 15073 if test "${HAVE_PNG}" = "yes"; then
9802 15074
9803$as_echo "#define HAVE_PNG 1" >>confdefs.h 15075cat >>confdefs.h <<\_ACEOF
15076#define HAVE_PNG 1
15077_ACEOF
9804 15078
15079 LIBPNG="-lpng -lz -lm"
9805 fi 15080 fi
9806fi 15081fi
9807 15082
15083
9808### Use -ltiff if available, unless `--with-tiff=no'. 15084### Use -ltiff if available, unless `--with-tiff=no'.
9809HAVE_TIFF=no 15085HAVE_TIFF=no
15086LIBTIFF=
9810if test "${HAVE_X11}" = "yes"; then 15087if test "${HAVE_X11}" = "yes"; then
9811 if test "${with_tiff}" != "no"; then 15088 if test "${with_tiff}" != "no"; then
9812 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" 15089 if test "${ac_cv_header_tiffio_h+set}" = set; then
9813if test "x$ac_cv_header_tiffio_h" = x""yes; then : 15090 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15091$as_echo_n "checking for tiffio.h... " >&6; }
15092if test "${ac_cv_header_tiffio_h+set}" = set; then
15093 $as_echo_n "(cached) " >&6
15094fi
15095{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15096$as_echo "$ac_cv_header_tiffio_h" >&6; }
15097else
15098 # Is the header compilable?
15099{ $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15100$as_echo_n "checking tiffio.h usability... " >&6; }
15101cat >conftest.$ac_ext <<_ACEOF
15102/* confdefs.h. */
15103_ACEOF
15104cat confdefs.h >>conftest.$ac_ext
15105cat >>conftest.$ac_ext <<_ACEOF
15106/* end confdefs.h. */
15107$ac_includes_default
15108#include <tiffio.h>
15109_ACEOF
15110rm -f conftest.$ac_objext
15111if { (ac_try="$ac_compile"
15112case "(($ac_try" in
15113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15114 *) ac_try_echo=$ac_try;;
15115esac
15116eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15117$as_echo "$ac_try_echo") >&5
15118 (eval "$ac_compile") 2>conftest.er1
15119 ac_status=$?
15120 grep -v '^ *+' conftest.er1 >conftest.err
15121 rm -f conftest.er1
15122 cat conftest.err >&5
15123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 (exit $ac_status); } && {
15125 test -z "$ac_c_werror_flag" ||
15126 test ! -s conftest.err
15127 } && test -s conftest.$ac_objext; then
15128 ac_header_compiler=yes
15129else
15130 $as_echo "$as_me: failed program was:" >&5
15131sed 's/^/| /' conftest.$ac_ext >&5
15132
15133 ac_header_compiler=no
15134fi
15135
15136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15137{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15138$as_echo "$ac_header_compiler" >&6; }
15139
15140# Is the header present?
15141{ $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15142$as_echo_n "checking tiffio.h presence... " >&6; }
15143cat >conftest.$ac_ext <<_ACEOF
15144/* confdefs.h. */
15145_ACEOF
15146cat confdefs.h >>conftest.$ac_ext
15147cat >>conftest.$ac_ext <<_ACEOF
15148/* end confdefs.h. */
15149#include <tiffio.h>
15150_ACEOF
15151if { (ac_try="$ac_cpp conftest.$ac_ext"
15152case "(($ac_try" in
15153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15154 *) ac_try_echo=$ac_try;;
15155esac
15156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15157$as_echo "$ac_try_echo") >&5
15158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15159 ac_status=$?
15160 grep -v '^ *+' conftest.er1 >conftest.err
15161 rm -f conftest.er1
15162 cat conftest.err >&5
15163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } >/dev/null && {
15165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15166 test ! -s conftest.err
15167 }; then
15168 ac_header_preproc=yes
15169else
15170 $as_echo "$as_me: failed program was:" >&5
15171sed 's/^/| /' conftest.$ac_ext >&5
15172
15173 ac_header_preproc=no
15174fi
15175
15176rm -f conftest.err conftest.$ac_ext
15177{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15178$as_echo "$ac_header_preproc" >&6; }
15179
15180# So? What about this header?
15181case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15182 yes:no: )
15183 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15184$as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15185 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15186$as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15187 ac_header_preproc=yes
15188 ;;
15189 no:yes:* )
15190 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15191$as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15192 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15193$as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15194 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15195$as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15196 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15197$as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15198 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15199$as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15200 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15201$as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15202
15203 ;;
15204esac
15205{ $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15206$as_echo_n "checking for tiffio.h... " >&6; }
15207if test "${ac_cv_header_tiffio_h+set}" = set; then
15208 $as_echo_n "(cached) " >&6
15209else
15210 ac_cv_header_tiffio_h=$ac_header_preproc
15211fi
15212{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15213$as_echo "$ac_cv_header_tiffio_h" >&6; }
15214
15215fi
15216if test $ac_cv_header_tiffio_h = yes; then
9814 tifflibs="-lz -lm" 15217 tifflibs="-lz -lm"
9815 # At least one tiff package requires the jpeg library. 15218 # At least one tiff package requires the jpeg library.
9816 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 15219 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5 15220 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
9818$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } 15221$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
9819if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then : 15222if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
9820 $as_echo_n "(cached) " >&6 15223 $as_echo_n "(cached) " >&6
9821else 15224else
9822 ac_check_lib_save_LIBS=$LIBS 15225 ac_check_lib_save_LIBS=$LIBS
9823LIBS="-ltiff $tifflibs $LIBS" 15226LIBS="-ltiff $tifflibs $LIBS"
9824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15227cat >conftest.$ac_ext <<_ACEOF
15228/* confdefs.h. */
15229_ACEOF
15230cat confdefs.h >>conftest.$ac_ext
15231cat >>conftest.$ac_ext <<_ACEOF
9825/* end confdefs.h. */ 15232/* end confdefs.h. */
9826 15233
9827/* Override any GCC internal prototype to avoid an error. 15234/* Override any GCC internal prototype to avoid an error.
@@ -9839,18 +15246,43 @@ return TIFFGetVersion ();
9839 return 0; 15246 return 0;
9840} 15247}
9841_ACEOF 15248_ACEOF
9842if ac_fn_c_try_link "$LINENO"; then : 15249rm -f conftest.$ac_objext conftest$ac_exeext
15250if { (ac_try="$ac_link"
15251case "(($ac_try" in
15252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15253 *) ac_try_echo=$ac_try;;
15254esac
15255eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15256$as_echo "$ac_try_echo") >&5
15257 (eval "$ac_link") 2>conftest.er1
15258 ac_status=$?
15259 grep -v '^ *+' conftest.er1 >conftest.err
15260 rm -f conftest.er1
15261 cat conftest.err >&5
15262 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15263 (exit $ac_status); } && {
15264 test -z "$ac_c_werror_flag" ||
15265 test ! -s conftest.err
15266 } && test -s conftest$ac_exeext && {
15267 test "$cross_compiling" = yes ||
15268 $as_test_x conftest$ac_exeext
15269 }; then
9843 ac_cv_lib_tiff_TIFFGetVersion=yes 15270 ac_cv_lib_tiff_TIFFGetVersion=yes
9844else 15271else
9845 ac_cv_lib_tiff_TIFFGetVersion=no 15272 $as_echo "$as_me: failed program was:" >&5
15273sed 's/^/| /' conftest.$ac_ext >&5
15274
15275 ac_cv_lib_tiff_TIFFGetVersion=no
9846fi 15276fi
9847rm -f core conftest.err conftest.$ac_objext \ 15277
9848 conftest$ac_exeext conftest.$ac_ext 15278rm -rf conftest.dSYM
15279rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15280 conftest$ac_exeext conftest.$ac_ext
9849LIBS=$ac_check_lib_save_LIBS 15281LIBS=$ac_check_lib_save_LIBS
9850fi 15282fi
9851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 15283{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
9852$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } 15284$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
9853if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then : 15285if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
9854 HAVE_TIFF=yes 15286 HAVE_TIFF=yes
9855fi 15287fi
9856 15288
@@ -9861,26 +15293,161 @@ fi
9861 15293
9862 if test "${HAVE_TIFF}" = "yes"; then 15294 if test "${HAVE_TIFF}" = "yes"; then
9863 15295
9864$as_echo "#define HAVE_TIFF 1" >>confdefs.h 15296cat >>confdefs.h <<\_ACEOF
15297#define HAVE_TIFF 1
15298_ACEOF
9865 15299
15300 LIBTIFF=-ltiff
9866 fi 15301 fi
9867fi 15302fi
9868 15303
15304
9869### Use -lgif or -lungif if available, unless `--with-gif=no'. 15305### Use -lgif or -lungif if available, unless `--with-gif=no'.
9870HAVE_GIF=no 15306HAVE_GIF=no
15307LIBGIF=
9871if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then 15308if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
9872 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 15309 if test "${ac_cv_header_gif_lib_h+set}" = set; then
9873if test "x$ac_cv_header_gif_lib_h" = x""yes; then : 15310 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15311$as_echo_n "checking for gif_lib.h... " >&6; }
15312if test "${ac_cv_header_gif_lib_h+set}" = set; then
15313 $as_echo_n "(cached) " >&6
15314fi
15315{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15316$as_echo "$ac_cv_header_gif_lib_h" >&6; }
15317else
15318 # Is the header compilable?
15319{ $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15320$as_echo_n "checking gif_lib.h usability... " >&6; }
15321cat >conftest.$ac_ext <<_ACEOF
15322/* confdefs.h. */
15323_ACEOF
15324cat confdefs.h >>conftest.$ac_ext
15325cat >>conftest.$ac_ext <<_ACEOF
15326/* end confdefs.h. */
15327$ac_includes_default
15328#include <gif_lib.h>
15329_ACEOF
15330rm -f conftest.$ac_objext
15331if { (ac_try="$ac_compile"
15332case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15335esac
15336eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15337$as_echo "$ac_try_echo") >&5
15338 (eval "$ac_compile") 2>conftest.er1
15339 ac_status=$?
15340 grep -v '^ *+' conftest.er1 >conftest.err
15341 rm -f conftest.er1
15342 cat conftest.err >&5
15343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15344 (exit $ac_status); } && {
15345 test -z "$ac_c_werror_flag" ||
15346 test ! -s conftest.err
15347 } && test -s conftest.$ac_objext; then
15348 ac_header_compiler=yes
15349else
15350 $as_echo "$as_me: failed program was:" >&5
15351sed 's/^/| /' conftest.$ac_ext >&5
15352
15353 ac_header_compiler=no
15354fi
15355
15356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15357{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15358$as_echo "$ac_header_compiler" >&6; }
15359
15360# Is the header present?
15361{ $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15362$as_echo_n "checking gif_lib.h presence... " >&6; }
15363cat >conftest.$ac_ext <<_ACEOF
15364/* confdefs.h. */
15365_ACEOF
15366cat confdefs.h >>conftest.$ac_ext
15367cat >>conftest.$ac_ext <<_ACEOF
15368/* end confdefs.h. */
15369#include <gif_lib.h>
15370_ACEOF
15371if { (ac_try="$ac_cpp conftest.$ac_ext"
15372case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15375esac
15376eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15377$as_echo "$ac_try_echo") >&5
15378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15379 ac_status=$?
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
15383 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } >/dev/null && {
15385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15386 test ! -s conftest.err
15387 }; then
15388 ac_header_preproc=yes
15389else
15390 $as_echo "$as_me: failed program was:" >&5
15391sed 's/^/| /' conftest.$ac_ext >&5
15392
15393 ac_header_preproc=no
15394fi
15395
15396rm -f conftest.err conftest.$ac_ext
15397{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15398$as_echo "$ac_header_preproc" >&6; }
15399
15400# So? What about this header?
15401case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15402 yes:no: )
15403 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15404$as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15405 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15406$as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15407 ac_header_preproc=yes
15408 ;;
15409 no:yes:* )
15410 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15411$as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15412 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15413$as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15414 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15415$as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15416 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15417$as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15418 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15419$as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15420 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15421$as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15422
15423 ;;
15424esac
15425{ $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15426$as_echo_n "checking for gif_lib.h... " >&6; }
15427if test "${ac_cv_header_gif_lib_h+set}" = set; then
15428 $as_echo_n "(cached) " >&6
15429else
15430 ac_cv_header_gif_lib_h=$ac_header_preproc
15431fi
15432{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15433$as_echo "$ac_cv_header_gif_lib_h" >&6; }
15434
15435fi
15436if test $ac_cv_header_gif_lib_h = yes; then
9874 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. 15437 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
9875# Earlier versions can crash Emacs. 15438# Earlier versions can crash Emacs.
9876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5 15439 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
9877$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } 15440$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
9878if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then : 15441if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
9879 $as_echo_n "(cached) " >&6 15442 $as_echo_n "(cached) " >&6
9880else 15443else
9881 ac_check_lib_save_LIBS=$LIBS 15444 ac_check_lib_save_LIBS=$LIBS
9882LIBS="-lgif $LIBS" 15445LIBS="-lgif $LIBS"
9883cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15446cat >conftest.$ac_ext <<_ACEOF
15447/* confdefs.h. */
15448_ACEOF
15449cat confdefs.h >>conftest.$ac_ext
15450cat >>conftest.$ac_ext <<_ACEOF
9884/* end confdefs.h. */ 15451/* end confdefs.h. */
9885 15452
9886/* Override any GCC internal prototype to avoid an error. 15453/* Override any GCC internal prototype to avoid an error.
@@ -9898,21 +15465,46 @@ return EGifPutExtensionLast ();
9898 return 0; 15465 return 0;
9899} 15466}
9900_ACEOF 15467_ACEOF
9901if ac_fn_c_try_link "$LINENO"; then : 15468rm -f conftest.$ac_objext conftest$ac_exeext
15469if { (ac_try="$ac_link"
15470case "(($ac_try" in
15471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15472 *) ac_try_echo=$ac_try;;
15473esac
15474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15475$as_echo "$ac_try_echo") >&5
15476 (eval "$ac_link") 2>conftest.er1
15477 ac_status=$?
15478 grep -v '^ *+' conftest.er1 >conftest.err
15479 rm -f conftest.er1
15480 cat conftest.err >&5
15481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15482 (exit $ac_status); } && {
15483 test -z "$ac_c_werror_flag" ||
15484 test ! -s conftest.err
15485 } && test -s conftest$ac_exeext && {
15486 test "$cross_compiling" = yes ||
15487 $as_test_x conftest$ac_exeext
15488 }; then
9902 ac_cv_lib_gif_EGifPutExtensionLast=yes 15489 ac_cv_lib_gif_EGifPutExtensionLast=yes
9903else 15490else
9904 ac_cv_lib_gif_EGifPutExtensionLast=no 15491 $as_echo "$as_me: failed program was:" >&5
15492sed 's/^/| /' conftest.$ac_ext >&5
15493
15494 ac_cv_lib_gif_EGifPutExtensionLast=no
9905fi 15495fi
9906rm -f core conftest.err conftest.$ac_objext \ 15496
9907 conftest$ac_exeext conftest.$ac_ext 15497rm -rf conftest.dSYM
15498rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15499 conftest$ac_exeext conftest.$ac_ext
9908LIBS=$ac_check_lib_save_LIBS 15500LIBS=$ac_check_lib_save_LIBS
9909fi 15501fi
9910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 15502{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
9911$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } 15503$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
9912if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then : 15504if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
9913 HAVE_GIF=yes 15505 HAVE_GIF=yes
9914else 15506else
9915 try_libungif=yes 15507 HAVE_GIF=maybe
9916fi 15508fi
9917 15509
9918fi 15510fi
@@ -9920,19 +15512,21 @@ fi
9920 15512
9921 15513
9922 if test "$HAVE_GIF" = yes; then 15514 if test "$HAVE_GIF" = yes; then
9923 ac_gif_lib_name="-lgif" 15515 LIBGIF=-lgif
9924 fi 15516 elif test "$HAVE_GIF" = maybe; then
9925
9926# If gif_lib.h but no libgif, try libungif. 15517# If gif_lib.h but no libgif, try libungif.
9927 if test x"$try_libungif" = xyes; then 15518 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
9929$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } 15519$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
9930if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then : 15520if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
9931 $as_echo_n "(cached) " >&6 15521 $as_echo_n "(cached) " >&6
9932else 15522else
9933 ac_check_lib_save_LIBS=$LIBS 15523 ac_check_lib_save_LIBS=$LIBS
9934LIBS="-lungif $LIBS" 15524LIBS="-lungif $LIBS"
9935cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15525cat >conftest.$ac_ext <<_ACEOF
15526/* confdefs.h. */
15527_ACEOF
15528cat confdefs.h >>conftest.$ac_ext
15529cat >>conftest.$ac_ext <<_ACEOF
9936/* end confdefs.h. */ 15530/* end confdefs.h. */
9937 15531
9938/* Override any GCC internal prototype to avoid an error. 15532/* Override any GCC internal prototype to avoid an error.
@@ -9950,37 +15544,61 @@ return EGifPutExtensionLast ();
9950 return 0; 15544 return 0;
9951} 15545}
9952_ACEOF 15546_ACEOF
9953if ac_fn_c_try_link "$LINENO"; then : 15547rm -f conftest.$ac_objext conftest$ac_exeext
15548if { (ac_try="$ac_link"
15549case "(($ac_try" in
15550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15551 *) ac_try_echo=$ac_try;;
15552esac
15553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15554$as_echo "$ac_try_echo") >&5
15555 (eval "$ac_link") 2>conftest.er1
15556 ac_status=$?
15557 grep -v '^ *+' conftest.er1 >conftest.err
15558 rm -f conftest.er1
15559 cat conftest.err >&5
15560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15561 (exit $ac_status); } && {
15562 test -z "$ac_c_werror_flag" ||
15563 test ! -s conftest.err
15564 } && test -s conftest$ac_exeext && {
15565 test "$cross_compiling" = yes ||
15566 $as_test_x conftest$ac_exeext
15567 }; then
9954 ac_cv_lib_ungif_EGifPutExtensionLast=yes 15568 ac_cv_lib_ungif_EGifPutExtensionLast=yes
9955else 15569else
9956 ac_cv_lib_ungif_EGifPutExtensionLast=no 15570 $as_echo "$as_me: failed program was:" >&5
15571sed 's/^/| /' conftest.$ac_ext >&5
15572
15573 ac_cv_lib_ungif_EGifPutExtensionLast=no
9957fi 15574fi
9958rm -f core conftest.err conftest.$ac_objext \ 15575
9959 conftest$ac_exeext conftest.$ac_ext 15576rm -rf conftest.dSYM
15577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15578 conftest$ac_exeext conftest.$ac_ext
9960LIBS=$ac_check_lib_save_LIBS 15579LIBS=$ac_check_lib_save_LIBS
9961fi 15580fi
9962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 15581{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
9963$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } 15582$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
9964if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then : 15583if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
9965 HAVE_GIF=yes 15584 HAVE_GIF=yes
15585else
15586 HAVE_GIF=no
9966fi 15587fi
9967 15588
9968 15589 test "$HAVE_GIF" = yes && LIBGIF=-lungif
9969 if test "$HAVE_GIF" = yes; then
9970
9971$as_echo "#define LIBGIF -lungif" >>confdefs.h
9972
9973 ac_gif_lib_name="-lungif"
9974 fi
9975 fi 15590 fi
9976 15591
9977 if test "${HAVE_GIF}" = "yes"; then 15592 if test "${HAVE_GIF}" = "yes"; then
9978 15593
9979$as_echo "#define HAVE_GIF 1" >>confdefs.h 15594cat >>confdefs.h <<\_ACEOF
15595#define HAVE_GIF 1
15596_ACEOF
9980 15597
9981 fi 15598 fi
9982fi 15599fi
9983 15600
15601
9984if test "${HAVE_X11}" = "yes"; then 15602if test "${HAVE_X11}" = "yes"; then
9985 MISSING="" 15603 MISSING=""
9986 WITH_NO="" 15604 WITH_NO=""
@@ -9996,28 +15614,166 @@ if test "${HAVE_X11}" = "yes"; then
9996 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" 15614 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
9997 15615
9998 if test "X${MISSING}" != X; then 15616 if test "X${MISSING}" != X; then
9999 as_fn_error "The following required libraries were not found: 15617 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15618 $MISSING
15619Maybe some development libraries/packages are missing?
15620If you don't want to link with them give
15621 $WITH_NO
15622as options to configure" >&5
15623$as_echo "$as_me: error: The following required libraries were not found:
10000 $MISSING 15624 $MISSING
10001Maybe some development libraries/packages are missing? 15625Maybe some development libraries/packages are missing?
10002If you don't want to link with them give 15626If you don't want to link with them give
10003 $WITH_NO 15627 $WITH_NO
10004as options to configure" "$LINENO" 5 15628as options to configure" >&2;}
15629 { (exit 1); exit 1; }; }
10005 fi 15630 fi
10006fi 15631fi
10007 15632
10008### Use -lgpm if available, unless `--with-gpm=no'. 15633### Use -lgpm if available, unless `--with-gpm=no'.
10009HAVE_GPM=no 15634HAVE_GPM=no
15635LIBGPM=
10010if test "${with_gpm}" != "no"; then 15636if test "${with_gpm}" != "no"; then
10011 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default" 15637 if test "${ac_cv_header_gpm_h+set}" = set; then
10012if test "x$ac_cv_header_gpm_h" = x""yes; then : 15638 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 15639$as_echo_n "checking for gpm.h... " >&6; }
15640if test "${ac_cv_header_gpm_h+set}" = set; then
15641 $as_echo_n "(cached) " >&6
15642fi
15643{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15644$as_echo "$ac_cv_header_gpm_h" >&6; }
15645else
15646 # Is the header compilable?
15647{ $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15648$as_echo_n "checking gpm.h usability... " >&6; }
15649cat >conftest.$ac_ext <<_ACEOF
15650/* confdefs.h. */
15651_ACEOF
15652cat confdefs.h >>conftest.$ac_ext
15653cat >>conftest.$ac_ext <<_ACEOF
15654/* end confdefs.h. */
15655$ac_includes_default
15656#include <gpm.h>
15657_ACEOF
15658rm -f conftest.$ac_objext
15659if { (ac_try="$ac_compile"
15660case "(($ac_try" in
15661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15662 *) ac_try_echo=$ac_try;;
15663esac
15664eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15665$as_echo "$ac_try_echo") >&5
15666 (eval "$ac_compile") 2>conftest.er1
15667 ac_status=$?
15668 grep -v '^ *+' conftest.er1 >conftest.err
15669 rm -f conftest.er1
15670 cat conftest.err >&5
15671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15672 (exit $ac_status); } && {
15673 test -z "$ac_c_werror_flag" ||
15674 test ! -s conftest.err
15675 } && test -s conftest.$ac_objext; then
15676 ac_header_compiler=yes
15677else
15678 $as_echo "$as_me: failed program was:" >&5
15679sed 's/^/| /' conftest.$ac_ext >&5
15680
15681 ac_header_compiler=no
15682fi
15683
15684rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15685{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15686$as_echo "$ac_header_compiler" >&6; }
15687
15688# Is the header present?
15689{ $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15690$as_echo_n "checking gpm.h presence... " >&6; }
15691cat >conftest.$ac_ext <<_ACEOF
15692/* confdefs.h. */
15693_ACEOF
15694cat confdefs.h >>conftest.$ac_ext
15695cat >>conftest.$ac_ext <<_ACEOF
15696/* end confdefs.h. */
15697#include <gpm.h>
15698_ACEOF
15699if { (ac_try="$ac_cpp conftest.$ac_ext"
15700case "(($ac_try" in
15701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15702 *) ac_try_echo=$ac_try;;
15703esac
15704eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15705$as_echo "$ac_try_echo") >&5
15706 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15707 ac_status=$?
15708 grep -v '^ *+' conftest.er1 >conftest.err
15709 rm -f conftest.er1
15710 cat conftest.err >&5
15711 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } >/dev/null && {
15713 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15714 test ! -s conftest.err
15715 }; then
15716 ac_header_preproc=yes
15717else
15718 $as_echo "$as_me: failed program was:" >&5
15719sed 's/^/| /' conftest.$ac_ext >&5
15720
15721 ac_header_preproc=no
15722fi
15723
15724rm -f conftest.err conftest.$ac_ext
15725{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15726$as_echo "$ac_header_preproc" >&6; }
15727
15728# So? What about this header?
15729case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15730 yes:no: )
15731 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15732$as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15733 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15734$as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15735 ac_header_preproc=yes
15736 ;;
15737 no:yes:* )
15738 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15739$as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15740 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15741$as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15742 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15743$as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15744 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15745$as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15746 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15747$as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15748 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15749$as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15750
15751 ;;
15752esac
15753{ $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15754$as_echo_n "checking for gpm.h... " >&6; }
15755if test "${ac_cv_header_gpm_h+set}" = set; then
15756 $as_echo_n "(cached) " >&6
15757else
15758 ac_cv_header_gpm_h=$ac_header_preproc
15759fi
15760{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15761$as_echo "$ac_cv_header_gpm_h" >&6; }
15762
15763fi
15764if test $ac_cv_header_gpm_h = yes; then
15765 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
10014$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } 15766$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10015if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then : 15767if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
10016 $as_echo_n "(cached) " >&6 15768 $as_echo_n "(cached) " >&6
10017else 15769else
10018 ac_check_lib_save_LIBS=$LIBS 15770 ac_check_lib_save_LIBS=$LIBS
10019LIBS="-lgpm $LIBS" 15771LIBS="-lgpm $LIBS"
10020cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15772cat >conftest.$ac_ext <<_ACEOF
15773/* confdefs.h. */
15774_ACEOF
15775cat confdefs.h >>conftest.$ac_ext
15776cat >>conftest.$ac_ext <<_ACEOF
10021/* end confdefs.h. */ 15777/* end confdefs.h. */
10022 15778
10023/* Override any GCC internal prototype to avoid an error. 15779/* Override any GCC internal prototype to avoid an error.
@@ -10035,36 +15791,193 @@ return Gpm_Open ();
10035 return 0; 15791 return 0;
10036} 15792}
10037_ACEOF 15793_ACEOF
10038if ac_fn_c_try_link "$LINENO"; then : 15794rm -f conftest.$ac_objext conftest$ac_exeext
15795if { (ac_try="$ac_link"
15796case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15799esac
15800eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15801$as_echo "$ac_try_echo") >&5
15802 (eval "$ac_link") 2>conftest.er1
15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
15807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } && {
15809 test -z "$ac_c_werror_flag" ||
15810 test ! -s conftest.err
15811 } && test -s conftest$ac_exeext && {
15812 test "$cross_compiling" = yes ||
15813 $as_test_x conftest$ac_exeext
15814 }; then
10039 ac_cv_lib_gpm_Gpm_Open=yes 15815 ac_cv_lib_gpm_Gpm_Open=yes
10040else 15816else
10041 ac_cv_lib_gpm_Gpm_Open=no 15817 $as_echo "$as_me: failed program was:" >&5
15818sed 's/^/| /' conftest.$ac_ext >&5
15819
15820 ac_cv_lib_gpm_Gpm_Open=no
10042fi 15821fi
10043rm -f core conftest.err conftest.$ac_objext \ 15822
10044 conftest$ac_exeext conftest.$ac_ext 15823rm -rf conftest.dSYM
15824rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15825 conftest$ac_exeext conftest.$ac_ext
10045LIBS=$ac_check_lib_save_LIBS 15826LIBS=$ac_check_lib_save_LIBS
10046fi 15827fi
10047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 15828{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10048$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } 15829$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10049if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then : 15830if test $ac_cv_lib_gpm_Gpm_Open = yes; then
10050 HAVE_GPM=yes 15831 HAVE_GPM=yes
10051fi 15832fi
10052 15833
10053fi 15834fi
10054 15835
10055 15836
15837
15838 if test "${HAVE_GPM}" = "yes"; then
15839
15840cat >>confdefs.h <<\_ACEOF
15841#define HAVE_GPM 1
15842_ACEOF
15843
15844 LIBGPM=-lgpm
15845 fi
15846fi
15847
15848
15849if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15850 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15851$as_echo_n "checking for malloc/malloc.h... " >&6; }
15852if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15853 $as_echo_n "(cached) " >&6
15854fi
15855{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15856$as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15857else
15858 # Is the header compilable?
15859{ $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15860$as_echo_n "checking malloc/malloc.h usability... " >&6; }
15861cat >conftest.$ac_ext <<_ACEOF
15862/* confdefs.h. */
15863_ACEOF
15864cat confdefs.h >>conftest.$ac_ext
15865cat >>conftest.$ac_ext <<_ACEOF
15866/* end confdefs.h. */
15867$ac_includes_default
15868#include <malloc/malloc.h>
15869_ACEOF
15870rm -f conftest.$ac_objext
15871if { (ac_try="$ac_compile"
15872case "(($ac_try" in
15873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15874 *) ac_try_echo=$ac_try;;
15875esac
15876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15877$as_echo "$ac_try_echo") >&5
15878 (eval "$ac_compile") 2>conftest.er1
15879 ac_status=$?
15880 grep -v '^ *+' conftest.er1 >conftest.err
15881 rm -f conftest.er1
15882 cat conftest.err >&5
15883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15884 (exit $ac_status); } && {
15885 test -z "$ac_c_werror_flag" ||
15886 test ! -s conftest.err
15887 } && test -s conftest.$ac_objext; then
15888 ac_header_compiler=yes
15889else
15890 $as_echo "$as_me: failed program was:" >&5
15891sed 's/^/| /' conftest.$ac_ext >&5
15892
15893 ac_header_compiler=no
15894fi
15895
15896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15897{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15898$as_echo "$ac_header_compiler" >&6; }
15899
15900# Is the header present?
15901{ $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15902$as_echo_n "checking malloc/malloc.h presence... " >&6; }
15903cat >conftest.$ac_ext <<_ACEOF
15904/* confdefs.h. */
15905_ACEOF
15906cat confdefs.h >>conftest.$ac_ext
15907cat >>conftest.$ac_ext <<_ACEOF
15908/* end confdefs.h. */
15909#include <malloc/malloc.h>
15910_ACEOF
15911if { (ac_try="$ac_cpp conftest.$ac_ext"
15912case "(($ac_try" in
15913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914 *) ac_try_echo=$ac_try;;
15915esac
15916eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15917$as_echo "$ac_try_echo") >&5
15918 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15919 ac_status=$?
15920 grep -v '^ *+' conftest.er1 >conftest.err
15921 rm -f conftest.er1
15922 cat conftest.err >&5
15923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15924 (exit $ac_status); } >/dev/null && {
15925 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15926 test ! -s conftest.err
15927 }; then
15928 ac_header_preproc=yes
15929else
15930 $as_echo "$as_me: failed program was:" >&5
15931sed 's/^/| /' conftest.$ac_ext >&5
15932
15933 ac_header_preproc=no
10056fi 15934fi
10057 15935
10058if test "${HAVE_GPM}" = "yes"; then 15936rm -f conftest.err conftest.$ac_ext
15937{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15938$as_echo "$ac_header_preproc" >&6; }
10059 15939
10060$as_echo "#define HAVE_GPM 1" >>confdefs.h 15940# So? What about this header?
15941case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15942 yes:no: )
15943 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15944$as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15945 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15946$as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15947 ac_header_preproc=yes
15948 ;;
15949 no:yes:* )
15950 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15951$as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15952 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15953$as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15954 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15955$as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15956 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15957$as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15958 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15959$as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15960 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15961$as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
10061 15962
15963 ;;
15964esac
15965{ $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15966$as_echo_n "checking for malloc/malloc.h... " >&6; }
15967if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15968 $as_echo_n "(cached) " >&6
15969else
15970 ac_cv_header_malloc_malloc_h=$ac_header_preproc
10062fi 15971fi
15972{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15973$as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
10063 15974
10064ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" 15975fi
10065if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then : 15976if test $ac_cv_header_malloc_malloc_h = yes; then
10066 15977
10067$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h 15978cat >>confdefs.h <<\_ACEOF
15979#define HAVE_MALLOC_MALLOC_H 1
15980_ACEOF
10068 15981
10069fi 15982fi
10070 15983
@@ -10073,23 +15986,31 @@ fi
10073### Use NeXTstep API to implement GUI. 15986### Use NeXTstep API to implement GUI.
10074if test "${HAVE_NS}" = "yes"; then 15987if test "${HAVE_NS}" = "yes"; then
10075 15988
10076$as_echo "#define HAVE_NS 1" >>confdefs.h 15989cat >>confdefs.h <<\_ACEOF
15990#define HAVE_NS 1
15991_ACEOF
10077 15992
10078 if test "${NS_IMPL_COCOA}" = "yes"; then 15993 if test "${NS_IMPL_COCOA}" = "yes"; then
10079 15994
10080$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h 15995cat >>confdefs.h <<\_ACEOF
15996#define NS_IMPL_COCOA 1
15997_ACEOF
10081 15998
10082 GNU_OBJC_CFLAGS= 15999 GNU_OBJC_CFLAGS=
10083 fi 16000 fi
10084 if test "${NS_IMPL_GNUSTEP}" = "yes"; then 16001 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10085 16002
10086$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h 16003cat >>confdefs.h <<\_ACEOF
16004#define NS_IMPL_GNUSTEP 1
16005_ACEOF
10087 16006
10088 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" 16007 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10089 fi 16008 fi
10090 if test "${NS_HAVE_NSINTEGER}" = "yes"; then 16009 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10091 16010
10092$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h 16011cat >>confdefs.h <<\_ACEOF
16012#define NS_HAVE_NSINTEGER 1
16013_ACEOF
10093 16014
10094 fi 16015 fi
10095 # We also have mouse menus. 16016 # We also have mouse menus.
@@ -10101,16 +16022,146 @@ fi
10101### Use session management (-lSM -lICE) if available 16022### Use session management (-lSM -lICE) if available
10102HAVE_X_SM=no 16023HAVE_X_SM=no
10103if test "${HAVE_X11}" = "yes"; then 16024if test "${HAVE_X11}" = "yes"; then
10104 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 16025 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10105if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : 16026 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 16027$as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16028if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16029 $as_echo_n "(cached) " >&6
16030fi
16031{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16032$as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16033else
16034 # Is the header compilable?
16035{ $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16036$as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16037cat >conftest.$ac_ext <<_ACEOF
16038/* confdefs.h. */
16039_ACEOF
16040cat confdefs.h >>conftest.$ac_ext
16041cat >>conftest.$ac_ext <<_ACEOF
16042/* end confdefs.h. */
16043$ac_includes_default
16044#include <X11/SM/SMlib.h>
16045_ACEOF
16046rm -f conftest.$ac_objext
16047if { (ac_try="$ac_compile"
16048case "(($ac_try" in
16049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16050 *) ac_try_echo=$ac_try;;
16051esac
16052eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16053$as_echo "$ac_try_echo") >&5
16054 (eval "$ac_compile") 2>conftest.er1
16055 ac_status=$?
16056 grep -v '^ *+' conftest.er1 >conftest.err
16057 rm -f conftest.er1
16058 cat conftest.err >&5
16059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16060 (exit $ac_status); } && {
16061 test -z "$ac_c_werror_flag" ||
16062 test ! -s conftest.err
16063 } && test -s conftest.$ac_objext; then
16064 ac_header_compiler=yes
16065else
16066 $as_echo "$as_me: failed program was:" >&5
16067sed 's/^/| /' conftest.$ac_ext >&5
16068
16069 ac_header_compiler=no
16070fi
16071
16072rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16073{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16074$as_echo "$ac_header_compiler" >&6; }
16075
16076# Is the header present?
16077{ $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16078$as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16079cat >conftest.$ac_ext <<_ACEOF
16080/* confdefs.h. */
16081_ACEOF
16082cat confdefs.h >>conftest.$ac_ext
16083cat >>conftest.$ac_ext <<_ACEOF
16084/* end confdefs.h. */
16085#include <X11/SM/SMlib.h>
16086_ACEOF
16087if { (ac_try="$ac_cpp conftest.$ac_ext"
16088case "(($ac_try" in
16089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16090 *) ac_try_echo=$ac_try;;
16091esac
16092eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16093$as_echo "$ac_try_echo") >&5
16094 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16095 ac_status=$?
16096 grep -v '^ *+' conftest.er1 >conftest.err
16097 rm -f conftest.er1
16098 cat conftest.err >&5
16099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16100 (exit $ac_status); } >/dev/null && {
16101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16102 test ! -s conftest.err
16103 }; then
16104 ac_header_preproc=yes
16105else
16106 $as_echo "$as_me: failed program was:" >&5
16107sed 's/^/| /' conftest.$ac_ext >&5
16108
16109 ac_header_preproc=no
16110fi
16111
16112rm -f conftest.err conftest.$ac_ext
16113{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114$as_echo "$ac_header_preproc" >&6; }
16115
16116# So? What about this header?
16117case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16118 yes:no: )
16119 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16120$as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16122$as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16123 ac_header_preproc=yes
16124 ;;
16125 no:yes:* )
16126 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16127$as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16128 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16129$as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16130 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16131$as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16132 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16133$as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16134 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16135$as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16136 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16137$as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16138
16139 ;;
16140esac
16141{ $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16142$as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16143if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16144 $as_echo_n "(cached) " >&6
16145else
16146 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16147fi
16148{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16149$as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16150
16151fi
16152if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16153 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10107$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } 16154$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10108if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then : 16155if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10109 $as_echo_n "(cached) " >&6 16156 $as_echo_n "(cached) " >&6
10110else 16157else
10111 ac_check_lib_save_LIBS=$LIBS 16158 ac_check_lib_save_LIBS=$LIBS
10112LIBS="-lSM -lICE $LIBS" 16159LIBS="-lSM -lICE $LIBS"
10113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16160cat >conftest.$ac_ext <<_ACEOF
16161/* confdefs.h. */
16162_ACEOF
16163cat confdefs.h >>conftest.$ac_ext
16164cat >>conftest.$ac_ext <<_ACEOF
10114/* end confdefs.h. */ 16165/* end confdefs.h. */
10115 16166
10116/* Override any GCC internal prototype to avoid an error. 16167/* Override any GCC internal prototype to avoid an error.
@@ -10128,18 +16179,43 @@ return SmcOpenConnection ();
10128 return 0; 16179 return 0;
10129} 16180}
10130_ACEOF 16181_ACEOF
10131if ac_fn_c_try_link "$LINENO"; then : 16182rm -f conftest.$ac_objext conftest$ac_exeext
16183if { (ac_try="$ac_link"
16184case "(($ac_try" in
16185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16186 *) ac_try_echo=$ac_try;;
16187esac
16188eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16189$as_echo "$ac_try_echo") >&5
16190 (eval "$ac_link") 2>conftest.er1
16191 ac_status=$?
16192 grep -v '^ *+' conftest.er1 >conftest.err
16193 rm -f conftest.er1
16194 cat conftest.err >&5
16195 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16196 (exit $ac_status); } && {
16197 test -z "$ac_c_werror_flag" ||
16198 test ! -s conftest.err
16199 } && test -s conftest$ac_exeext && {
16200 test "$cross_compiling" = yes ||
16201 $as_test_x conftest$ac_exeext
16202 }; then
10132 ac_cv_lib_SM_SmcOpenConnection=yes 16203 ac_cv_lib_SM_SmcOpenConnection=yes
10133else 16204else
10134 ac_cv_lib_SM_SmcOpenConnection=no 16205 $as_echo "$as_me: failed program was:" >&5
16206sed 's/^/| /' conftest.$ac_ext >&5
16207
16208 ac_cv_lib_SM_SmcOpenConnection=no
10135fi 16209fi
10136rm -f core conftest.err conftest.$ac_objext \ 16210
10137 conftest$ac_exeext conftest.$ac_ext 16211rm -rf conftest.dSYM
16212rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16213 conftest$ac_exeext conftest.$ac_ext
10138LIBS=$ac_check_lib_save_LIBS 16214LIBS=$ac_check_lib_save_LIBS
10139fi 16215fi
10140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 16216{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10141$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } 16217$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10142if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then : 16218if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10143 HAVE_X_SM=yes 16219 HAVE_X_SM=yes
10144fi 16220fi
10145 16221
@@ -10149,7 +16225,9 @@ fi
10149 16225
10150 if test "${HAVE_X_SM}" = "yes"; then 16226 if test "${HAVE_X_SM}" = "yes"; then
10151 16227
10152$as_echo "#define HAVE_X_SM 1" >>confdefs.h 16228cat >>confdefs.h <<\_ACEOF
16229#define HAVE_X_SM 1
16230_ACEOF
10153 16231
10154 case "$LIBS" in 16232 case "$LIBS" in
10155 *-lSM*) ;; 16233 *-lSM*) ;;
@@ -10159,12 +16237,16 @@ $as_echo "#define HAVE_X_SM 1" >>confdefs.h
10159fi 16237fi
10160 16238
10161# If netdb.h doesn't declare h_errno, we must declare it by hand. 16239# If netdb.h doesn't declare h_errno, we must declare it by hand.
10162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 16240{ $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10163$as_echo_n "checking whether netdb declares h_errno... " >&6; } 16241$as_echo_n "checking whether netdb declares h_errno... " >&6; }
10164if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then : 16242if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10165 $as_echo_n "(cached) " >&6 16243 $as_echo_n "(cached) " >&6
10166else 16244else
10167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16245 cat >conftest.$ac_ext <<_ACEOF
16246/* confdefs.h. */
16247_ACEOF
16248cat confdefs.h >>conftest.$ac_ext
16249cat >>conftest.$ac_ext <<_ACEOF
10168/* end confdefs.h. */ 16250/* end confdefs.h. */
10169#include <netdb.h> 16251#include <netdb.h>
10170int 16252int
@@ -10175,30 +16257,61 @@ return h_errno;
10175 return 0; 16257 return 0;
10176} 16258}
10177_ACEOF 16259_ACEOF
10178if ac_fn_c_try_link "$LINENO"; then : 16260rm -f conftest.$ac_objext conftest$ac_exeext
16261if { (ac_try="$ac_link"
16262case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16265esac
16266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16267$as_echo "$ac_try_echo") >&5
16268 (eval "$ac_link") 2>conftest.er1
16269 ac_status=$?
16270 grep -v '^ *+' conftest.er1 >conftest.err
16271 rm -f conftest.er1
16272 cat conftest.err >&5
16273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16274 (exit $ac_status); } && {
16275 test -z "$ac_c_werror_flag" ||
16276 test ! -s conftest.err
16277 } && test -s conftest$ac_exeext && {
16278 test "$cross_compiling" = yes ||
16279 $as_test_x conftest$ac_exeext
16280 }; then
10179 emacs_cv_netdb_declares_h_errno=yes 16281 emacs_cv_netdb_declares_h_errno=yes
10180else 16282else
10181 emacs_cv_netdb_declares_h_errno=no 16283 $as_echo "$as_me: failed program was:" >&5
16284sed 's/^/| /' conftest.$ac_ext >&5
16285
16286 emacs_cv_netdb_declares_h_errno=no
10182fi 16287fi
10183rm -f core conftest.err conftest.$ac_objext \ 16288
10184 conftest$ac_exeext conftest.$ac_ext 16289rm -rf conftest.dSYM
16290rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16291 conftest$ac_exeext conftest.$ac_ext
10185fi 16292fi
10186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5 16293{ $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10187$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } 16294$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10188if test $emacs_cv_netdb_declares_h_errno = yes; then 16295if test $emacs_cv_netdb_declares_h_errno = yes; then
10189 16296
10190$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h 16297cat >>confdefs.h <<\_ACEOF
16298#define HAVE_H_ERRNO 1
16299_ACEOF
10191 16300
10192fi 16301fi
10193 16302
10194# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16303# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10195# for constant arguments. Useless! 16304# for constant arguments. Useless!
10196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16305{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
10197$as_echo_n "checking for working alloca.h... " >&6; } 16306$as_echo_n "checking for working alloca.h... " >&6; }
10198if test "${ac_cv_working_alloca_h+set}" = set; then : 16307if test "${ac_cv_working_alloca_h+set}" = set; then
10199 $as_echo_n "(cached) " >&6 16308 $as_echo_n "(cached) " >&6
10200else 16309else
10201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16310 cat >conftest.$ac_ext <<_ACEOF
16311/* confdefs.h. */
16312_ACEOF
16313cat confdefs.h >>conftest.$ac_ext
16314cat >>conftest.$ac_ext <<_ACEOF
10202/* end confdefs.h. */ 16315/* end confdefs.h. */
10203#include <alloca.h> 16316#include <alloca.h>
10204int 16317int
@@ -10210,28 +16323,59 @@ char *p = (char *) alloca (2 * sizeof (int));
10210 return 0; 16323 return 0;
10211} 16324}
10212_ACEOF 16325_ACEOF
10213if ac_fn_c_try_link "$LINENO"; then : 16326rm -f conftest.$ac_objext conftest$ac_exeext
16327if { (ac_try="$ac_link"
16328case "(($ac_try" in
16329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16330 *) ac_try_echo=$ac_try;;
16331esac
16332eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16333$as_echo "$ac_try_echo") >&5
16334 (eval "$ac_link") 2>conftest.er1
16335 ac_status=$?
16336 grep -v '^ *+' conftest.er1 >conftest.err
16337 rm -f conftest.er1
16338 cat conftest.err >&5
16339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16340 (exit $ac_status); } && {
16341 test -z "$ac_c_werror_flag" ||
16342 test ! -s conftest.err
16343 } && test -s conftest$ac_exeext && {
16344 test "$cross_compiling" = yes ||
16345 $as_test_x conftest$ac_exeext
16346 }; then
10214 ac_cv_working_alloca_h=yes 16347 ac_cv_working_alloca_h=yes
10215else 16348else
10216 ac_cv_working_alloca_h=no 16349 $as_echo "$as_me: failed program was:" >&5
16350sed 's/^/| /' conftest.$ac_ext >&5
16351
16352 ac_cv_working_alloca_h=no
10217fi 16353fi
10218rm -f core conftest.err conftest.$ac_objext \ 16354
10219 conftest$ac_exeext conftest.$ac_ext 16355rm -rf conftest.dSYM
16356rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16357 conftest$ac_exeext conftest.$ac_ext
10220fi 16358fi
10221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16359{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10222$as_echo "$ac_cv_working_alloca_h" >&6; } 16360$as_echo "$ac_cv_working_alloca_h" >&6; }
10223if test $ac_cv_working_alloca_h = yes; then 16361if test $ac_cv_working_alloca_h = yes; then
10224 16362
10225$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16363cat >>confdefs.h <<\_ACEOF
16364#define HAVE_ALLOCA_H 1
16365_ACEOF
10226 16366
10227fi 16367fi
10228 16368
10229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16369{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
10230$as_echo_n "checking for alloca... " >&6; } 16370$as_echo_n "checking for alloca... " >&6; }
10231if test "${ac_cv_func_alloca_works+set}" = set; then : 16371if test "${ac_cv_func_alloca_works+set}" = set; then
10232 $as_echo_n "(cached) " >&6 16372 $as_echo_n "(cached) " >&6
10233else 16373else
10234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16374 cat >conftest.$ac_ext <<_ACEOF
16375/* confdefs.h. */
16376_ACEOF
16377cat confdefs.h >>conftest.$ac_ext
16378cat >>conftest.$ac_ext <<_ACEOF
10235/* end confdefs.h. */ 16379/* end confdefs.h. */
10236#ifdef __GNUC__ 16380#ifdef __GNUC__
10237# define alloca __builtin_alloca 16381# define alloca __builtin_alloca
@@ -10263,20 +16407,47 @@ char *p = (char *) alloca (1);
10263 return 0; 16407 return 0;
10264} 16408}
10265_ACEOF 16409_ACEOF
10266if ac_fn_c_try_link "$LINENO"; then : 16410rm -f conftest.$ac_objext conftest$ac_exeext
16411if { (ac_try="$ac_link"
16412case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16415esac
16416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16417$as_echo "$ac_try_echo") >&5
16418 (eval "$ac_link") 2>conftest.er1
16419 ac_status=$?
16420 grep -v '^ *+' conftest.er1 >conftest.err
16421 rm -f conftest.er1
16422 cat conftest.err >&5
16423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16424 (exit $ac_status); } && {
16425 test -z "$ac_c_werror_flag" ||
16426 test ! -s conftest.err
16427 } && test -s conftest$ac_exeext && {
16428 test "$cross_compiling" = yes ||
16429 $as_test_x conftest$ac_exeext
16430 }; then
10267 ac_cv_func_alloca_works=yes 16431 ac_cv_func_alloca_works=yes
10268else 16432else
10269 ac_cv_func_alloca_works=no 16433 $as_echo "$as_me: failed program was:" >&5
16434sed 's/^/| /' conftest.$ac_ext >&5
16435
16436 ac_cv_func_alloca_works=no
10270fi 16437fi
10271rm -f core conftest.err conftest.$ac_objext \ 16438
10272 conftest$ac_exeext conftest.$ac_ext 16439rm -rf conftest.dSYM
16440rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16441 conftest$ac_exeext conftest.$ac_ext
10273fi 16442fi
10274{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16443{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10275$as_echo "$ac_cv_func_alloca_works" >&6; } 16444$as_echo "$ac_cv_func_alloca_works" >&6; }
10276 16445
10277if test $ac_cv_func_alloca_works = yes; then 16446if test $ac_cv_func_alloca_works = yes; then
10278 16447
10279$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16448cat >>confdefs.h <<\_ACEOF
16449#define HAVE_ALLOCA 1
16450_ACEOF
10280 16451
10281else 16452else
10282 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16453 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
@@ -10286,15 +16457,21 @@ else
10286 16457
10287ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16458ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10288 16459
10289$as_echo "#define C_ALLOCA 1" >>confdefs.h 16460cat >>confdefs.h <<\_ACEOF
16461#define C_ALLOCA 1
16462_ACEOF
10290 16463
10291 16464
10292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 16465{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10293$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 16466$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10294if test "${ac_cv_os_cray+set}" = set; then : 16467if test "${ac_cv_os_cray+set}" = set; then
10295 $as_echo_n "(cached) " >&6 16468 $as_echo_n "(cached) " >&6
10296else 16469else
10297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16470 cat >conftest.$ac_ext <<_ACEOF
16471/* confdefs.h. */
16472_ACEOF
16473cat confdefs.h >>conftest.$ac_ext
16474cat >>conftest.$ac_ext <<_ACEOF
10298/* end confdefs.h. */ 16475/* end confdefs.h. */
10299#if defined CRAY && ! defined CRAY2 16476#if defined CRAY && ! defined CRAY2
10300webecray 16477webecray
@@ -10304,7 +16481,7 @@ wenotbecray
10304 16481
10305_ACEOF 16482_ACEOF
10306if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16483if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10307 $EGREP "webecray" >/dev/null 2>&1; then : 16484 $EGREP "webecray" >/dev/null 2>&1; then
10308 ac_cv_os_cray=yes 16485 ac_cv_os_cray=yes
10309else 16486else
10310 ac_cv_os_cray=no 16487 ac_cv_os_cray=no
@@ -10312,14 +16489,100 @@ fi
10312rm -f conftest* 16489rm -f conftest*
10313 16490
10314fi 16491fi
10315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 16492{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10316$as_echo "$ac_cv_os_cray" >&6; } 16493$as_echo "$ac_cv_os_cray" >&6; }
10317if test $ac_cv_os_cray = yes; then 16494if test $ac_cv_os_cray = yes; then
10318 for ac_func in _getb67 GETB67 getb67; do 16495 for ac_func in _getb67 GETB67 getb67; do
10319 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16496 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10320ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16497{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10321eval as_val=\$$as_ac_var 16498$as_echo_n "checking for $ac_func... " >&6; }
10322 if test "x$as_val" = x""yes; then : 16499if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16500 $as_echo_n "(cached) " >&6
16501else
16502 cat >conftest.$ac_ext <<_ACEOF
16503/* confdefs.h. */
16504_ACEOF
16505cat confdefs.h >>conftest.$ac_ext
16506cat >>conftest.$ac_ext <<_ACEOF
16507/* end confdefs.h. */
16508/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16510#define $ac_func innocuous_$ac_func
16511
16512/* System header to define __stub macros and hopefully few prototypes,
16513 which can conflict with char $ac_func (); below.
16514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16515 <limits.h> exists even on freestanding compilers. */
16516
16517#ifdef __STDC__
16518# include <limits.h>
16519#else
16520# include <assert.h>
16521#endif
16522
16523#undef $ac_func
16524
16525/* Override any GCC internal prototype to avoid an error.
16526 Use char because int might match the return type of a GCC
16527 builtin and then its argument prototype would still apply. */
16528#ifdef __cplusplus
16529extern "C"
16530#endif
16531char $ac_func ();
16532/* The GNU C library defines this for functions which it implements
16533 to always fail with ENOSYS. Some functions are actually named
16534 something starting with __ and the normal name is an alias. */
16535#if defined __stub_$ac_func || defined __stub___$ac_func
16536choke me
16537#endif
16538
16539int
16540main ()
16541{
16542return $ac_func ();
16543 ;
16544 return 0;
16545}
16546_ACEOF
16547rm -f conftest.$ac_objext conftest$ac_exeext
16548if { (ac_try="$ac_link"
16549case "(($ac_try" in
16550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16551 *) ac_try_echo=$ac_try;;
16552esac
16553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16554$as_echo "$ac_try_echo") >&5
16555 (eval "$ac_link") 2>conftest.er1
16556 ac_status=$?
16557 grep -v '^ *+' conftest.er1 >conftest.err
16558 rm -f conftest.er1
16559 cat conftest.err >&5
16560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16561 (exit $ac_status); } && {
16562 test -z "$ac_c_werror_flag" ||
16563 test ! -s conftest.err
16564 } && test -s conftest$ac_exeext && {
16565 test "$cross_compiling" = yes ||
16566 $as_test_x conftest$ac_exeext
16567 }; then
16568 eval "$as_ac_var=yes"
16569else
16570 $as_echo "$as_me: failed program was:" >&5
16571sed 's/^/| /' conftest.$ac_ext >&5
16572
16573 eval "$as_ac_var=no"
16574fi
16575
16576rm -rf conftest.dSYM
16577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16578 conftest$ac_exeext conftest.$ac_ext
16579fi
16580ac_res=`eval 'as_val=${'$as_ac_var'}
16581 $as_echo "$as_val"'`
16582 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16583$as_echo "$ac_res" >&6; }
16584if test `eval 'as_val=${'$as_ac_var'}
16585 $as_echo "$as_val"'` = yes; then
10323 16586
10324cat >>confdefs.h <<_ACEOF 16587cat >>confdefs.h <<_ACEOF
10325#define CRAY_STACKSEG_END $ac_func 16588#define CRAY_STACKSEG_END $ac_func
@@ -10331,15 +16594,19 @@ fi
10331 done 16594 done
10332fi 16595fi
10333 16596
10334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16597{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10335$as_echo_n "checking stack direction for C alloca... " >&6; } 16598$as_echo_n "checking stack direction for C alloca... " >&6; }
10336if test "${ac_cv_c_stack_direction+set}" = set; then : 16599if test "${ac_cv_c_stack_direction+set}" = set; then
10337 $as_echo_n "(cached) " >&6 16600 $as_echo_n "(cached) " >&6
10338else 16601else
10339 if test "$cross_compiling" = yes; then : 16602 if test "$cross_compiling" = yes; then
10340 ac_cv_c_stack_direction=0 16603 ac_cv_c_stack_direction=0
10341else 16604else
10342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16605 cat >conftest.$ac_ext <<_ACEOF
16606/* confdefs.h. */
16607_ACEOF
16608cat confdefs.h >>conftest.$ac_ext
16609cat >>conftest.$ac_ext <<_ACEOF
10343/* end confdefs.h. */ 16610/* end confdefs.h. */
10344$ac_includes_default 16611$ac_includes_default
10345int 16612int
@@ -10362,18 +16629,46 @@ main ()
10362 return find_stack_direction () < 0; 16629 return find_stack_direction () < 0;
10363} 16630}
10364_ACEOF 16631_ACEOF
10365if ac_fn_c_try_run "$LINENO"; then : 16632rm -f conftest$ac_exeext
16633if { (ac_try="$ac_link"
16634case "(($ac_try" in
16635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16636 *) ac_try_echo=$ac_try;;
16637esac
16638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16639$as_echo "$ac_try_echo") >&5
16640 (eval "$ac_link") 2>&5
16641 ac_status=$?
16642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16643 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16644 { (case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647esac
16648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16649$as_echo "$ac_try_echo") >&5
16650 (eval "$ac_try") 2>&5
16651 ac_status=$?
16652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16653 (exit $ac_status); }; }; then
10366 ac_cv_c_stack_direction=1 16654 ac_cv_c_stack_direction=1
10367else 16655else
10368 ac_cv_c_stack_direction=-1 16656 $as_echo "$as_me: program exited with status $ac_status" >&5
16657$as_echo "$as_me: failed program was:" >&5
16658sed 's/^/| /' conftest.$ac_ext >&5
16659
16660( exit $ac_status )
16661ac_cv_c_stack_direction=-1
10369fi 16662fi
10370rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16663rm -rf conftest.dSYM
10371 conftest.$ac_objext conftest.beam conftest.$ac_ext 16664rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10372fi 16665fi
10373 16666
16667
10374fi 16668fi
10375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 16669{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10376$as_echo "$ac_cv_c_stack_direction" >&6; } 16670$as_echo "$ac_cv_c_stack_direction" >&6; }
16671
10377cat >>confdefs.h <<_ACEOF 16672cat >>confdefs.h <<_ACEOF
10378#define STACK_DIRECTION $ac_cv_c_stack_direction 16673#define STACK_DIRECTION $ac_cv_c_stack_direction
10379_ACEOF 16674_ACEOF
@@ -10383,19 +16678,26 @@ fi
10383 16678
10384 16679
10385if test x"$ac_cv_func_alloca_works" != xyes; then 16680if test x"$ac_cv_func_alloca_works" != xyes; then
10386 as_fn_error "a system implementation of alloca is required " "$LINENO" 5 16681 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
16682$as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16683 { (exit 1); exit 1; }; }
10387fi 16684fi
10388 16685
10389# fmod, logb, and frexp are found in -lm on most systems. 16686# fmod, logb, and frexp are found in -lm on most systems.
10390# On HPUX 9.01, -lm does not contain logb, so check for sqrt. 16687# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 16688
16689{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10392$as_echo_n "checking for sqrt in -lm... " >&6; } 16690$as_echo_n "checking for sqrt in -lm... " >&6; }
10393if test "${ac_cv_lib_m_sqrt+set}" = set; then : 16691if test "${ac_cv_lib_m_sqrt+set}" = set; then
10394 $as_echo_n "(cached) " >&6 16692 $as_echo_n "(cached) " >&6
10395else 16693else
10396 ac_check_lib_save_LIBS=$LIBS 16694 ac_check_lib_save_LIBS=$LIBS
10397LIBS="-lm $LIBS" 16695LIBS="-lm $LIBS"
10398cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16696cat >conftest.$ac_ext <<_ACEOF
16697/* confdefs.h. */
16698_ACEOF
16699cat confdefs.h >>conftest.$ac_ext
16700cat >>conftest.$ac_ext <<_ACEOF
10399/* end confdefs.h. */ 16701/* end confdefs.h. */
10400 16702
10401/* Override any GCC internal prototype to avoid an error. 16703/* Override any GCC internal prototype to avoid an error.
@@ -10413,18 +16715,43 @@ return sqrt ();
10413 return 0; 16715 return 0;
10414} 16716}
10415_ACEOF 16717_ACEOF
10416if ac_fn_c_try_link "$LINENO"; then : 16718rm -f conftest.$ac_objext conftest$ac_exeext
16719if { (ac_try="$ac_link"
16720case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16723esac
16724eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16725$as_echo "$ac_try_echo") >&5
16726 (eval "$ac_link") 2>conftest.er1
16727 ac_status=$?
16728 grep -v '^ *+' conftest.er1 >conftest.err
16729 rm -f conftest.er1
16730 cat conftest.err >&5
16731 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16732 (exit $ac_status); } && {
16733 test -z "$ac_c_werror_flag" ||
16734 test ! -s conftest.err
16735 } && test -s conftest$ac_exeext && {
16736 test "$cross_compiling" = yes ||
16737 $as_test_x conftest$ac_exeext
16738 }; then
10417 ac_cv_lib_m_sqrt=yes 16739 ac_cv_lib_m_sqrt=yes
10418else 16740else
10419 ac_cv_lib_m_sqrt=no 16741 $as_echo "$as_me: failed program was:" >&5
16742sed 's/^/| /' conftest.$ac_ext >&5
16743
16744 ac_cv_lib_m_sqrt=no
10420fi 16745fi
10421rm -f core conftest.err conftest.$ac_objext \ 16746
10422 conftest$ac_exeext conftest.$ac_ext 16747rm -rf conftest.dSYM
16748rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16749 conftest$ac_exeext conftest.$ac_ext
10423LIBS=$ac_check_lib_save_LIBS 16750LIBS=$ac_check_lib_save_LIBS
10424fi 16751fi
10425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 16752{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10426$as_echo "$ac_cv_lib_m_sqrt" >&6; } 16753$as_echo "$ac_cv_lib_m_sqrt" >&6; }
10427if test "x$ac_cv_lib_m_sqrt" = x""yes; then : 16754if test $ac_cv_lib_m_sqrt = yes; then
10428 cat >>confdefs.h <<_ACEOF 16755 cat >>confdefs.h <<_ACEOF
10429#define HAVE_LIBM 1 16756#define HAVE_LIBM 1
10430_ACEOF 16757_ACEOF
@@ -10436,14 +16763,18 @@ fi
10436 16763
10437# Check for mail-locking functions in a "mail" library. Probably this should 16764# Check for mail-locking functions in a "mail" library. Probably this should
10438# have the same check as for liblockfile below. 16765# have the same check as for liblockfile below.
10439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5 16766{ $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10440$as_echo_n "checking for maillock in -lmail... " >&6; } 16767$as_echo_n "checking for maillock in -lmail... " >&6; }
10441if test "${ac_cv_lib_mail_maillock+set}" = set; then : 16768if test "${ac_cv_lib_mail_maillock+set}" = set; then
10442 $as_echo_n "(cached) " >&6 16769 $as_echo_n "(cached) " >&6
10443else 16770else
10444 ac_check_lib_save_LIBS=$LIBS 16771 ac_check_lib_save_LIBS=$LIBS
10445LIBS="-lmail $LIBS" 16772LIBS="-lmail $LIBS"
10446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16773cat >conftest.$ac_ext <<_ACEOF
16774/* confdefs.h. */
16775_ACEOF
16776cat confdefs.h >>conftest.$ac_ext
16777cat >>conftest.$ac_ext <<_ACEOF
10447/* end confdefs.h. */ 16778/* end confdefs.h. */
10448 16779
10449/* Override any GCC internal prototype to avoid an error. 16780/* Override any GCC internal prototype to avoid an error.
@@ -10461,34 +16792,71 @@ return maillock ();
10461 return 0; 16792 return 0;
10462} 16793}
10463_ACEOF 16794_ACEOF
10464if ac_fn_c_try_link "$LINENO"; then : 16795rm -f conftest.$ac_objext conftest$ac_exeext
16796if { (ac_try="$ac_link"
16797case "(($ac_try" in
16798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16799 *) ac_try_echo=$ac_try;;
16800esac
16801eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16802$as_echo "$ac_try_echo") >&5
16803 (eval "$ac_link") 2>conftest.er1
16804 ac_status=$?
16805 grep -v '^ *+' conftest.er1 >conftest.err
16806 rm -f conftest.er1
16807 cat conftest.err >&5
16808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16809 (exit $ac_status); } && {
16810 test -z "$ac_c_werror_flag" ||
16811 test ! -s conftest.err
16812 } && test -s conftest$ac_exeext && {
16813 test "$cross_compiling" = yes ||
16814 $as_test_x conftest$ac_exeext
16815 }; then
10465 ac_cv_lib_mail_maillock=yes 16816 ac_cv_lib_mail_maillock=yes
10466else 16817else
10467 ac_cv_lib_mail_maillock=no 16818 $as_echo "$as_me: failed program was:" >&5
16819sed 's/^/| /' conftest.$ac_ext >&5
16820
16821 ac_cv_lib_mail_maillock=no
10468fi 16822fi
10469rm -f core conftest.err conftest.$ac_objext \ 16823
10470 conftest$ac_exeext conftest.$ac_ext 16824rm -rf conftest.dSYM
16825rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16826 conftest$ac_exeext conftest.$ac_ext
10471LIBS=$ac_check_lib_save_LIBS 16827LIBS=$ac_check_lib_save_LIBS
10472fi 16828fi
10473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5 16829{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10474$as_echo "$ac_cv_lib_mail_maillock" >&6; } 16830$as_echo "$ac_cv_lib_mail_maillock" >&6; }
10475if test "x$ac_cv_lib_mail_maillock" = x""yes; then : 16831if test $ac_cv_lib_mail_maillock = yes; then
10476 cat >>confdefs.h <<_ACEOF 16832 have_mail=yes
16833else
16834 have_mail=no
16835fi
16836
16837if test $have_mail = yes; then
16838 LIBS_MAIL=-lmail
16839 LIBS="$LIBS_MAIL $LIBS"
16840
16841cat >>confdefs.h <<\_ACEOF
10477#define HAVE_LIBMAIL 1 16842#define HAVE_LIBMAIL 1
10478_ACEOF 16843_ACEOF
10479 16844
10480 LIBS="-lmail $LIBS" 16845else
10481 16846 LIBS_MAIL=
10482fi 16847fi
10483 16848{ $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
10485$as_echo_n "checking for maillock in -llockfile... " >&6; } 16849$as_echo_n "checking for maillock in -llockfile... " >&6; }
10486if test "${ac_cv_lib_lockfile_maillock+set}" = set; then : 16850if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10487 $as_echo_n "(cached) " >&6 16851 $as_echo_n "(cached) " >&6
10488else 16852else
10489 ac_check_lib_save_LIBS=$LIBS 16853 ac_check_lib_save_LIBS=$LIBS
10490LIBS="-llockfile $LIBS" 16854LIBS="-llockfile $LIBS"
10491cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16855cat >conftest.$ac_ext <<_ACEOF
16856/* confdefs.h. */
16857_ACEOF
16858cat confdefs.h >>conftest.$ac_ext
16859cat >>conftest.$ac_ext <<_ACEOF
10492/* end confdefs.h. */ 16860/* end confdefs.h. */
10493 16861
10494/* Override any GCC internal prototype to avoid an error. 16862/* Override any GCC internal prototype to avoid an error.
@@ -10506,35 +16874,65 @@ return maillock ();
10506 return 0; 16874 return 0;
10507} 16875}
10508_ACEOF 16876_ACEOF
10509if ac_fn_c_try_link "$LINENO"; then : 16877rm -f conftest.$ac_objext conftest$ac_exeext
16878if { (ac_try="$ac_link"
16879case "(($ac_try" in
16880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16881 *) ac_try_echo=$ac_try;;
16882esac
16883eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16884$as_echo "$ac_try_echo") >&5
16885 (eval "$ac_link") 2>conftest.er1
16886 ac_status=$?
16887 grep -v '^ *+' conftest.er1 >conftest.err
16888 rm -f conftest.er1
16889 cat conftest.err >&5
16890 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } && {
16892 test -z "$ac_c_werror_flag" ||
16893 test ! -s conftest.err
16894 } && test -s conftest$ac_exeext && {
16895 test "$cross_compiling" = yes ||
16896 $as_test_x conftest$ac_exeext
16897 }; then
10510 ac_cv_lib_lockfile_maillock=yes 16898 ac_cv_lib_lockfile_maillock=yes
10511else 16899else
10512 ac_cv_lib_lockfile_maillock=no 16900 $as_echo "$as_me: failed program was:" >&5
16901sed 's/^/| /' conftest.$ac_ext >&5
16902
16903 ac_cv_lib_lockfile_maillock=no
10513fi 16904fi
10514rm -f core conftest.err conftest.$ac_objext \ 16905
10515 conftest$ac_exeext conftest.$ac_ext 16906rm -rf conftest.dSYM
16907rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16908 conftest$ac_exeext conftest.$ac_ext
10516LIBS=$ac_check_lib_save_LIBS 16909LIBS=$ac_check_lib_save_LIBS
10517fi 16910fi
10518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5 16911{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10519$as_echo "$ac_cv_lib_lockfile_maillock" >&6; } 16912$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10520if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then : 16913if test $ac_cv_lib_lockfile_maillock = yes; then
10521 cat >>confdefs.h <<_ACEOF 16914 have_lockfile=yes
10522#define HAVE_LIBLOCKFILE 1 16915else
10523_ACEOF 16916 have_lockfile=no
16917fi
10524 16918
10525 LIBS="-llockfile $LIBS" 16919if test $have_lockfile = yes; then
16920 LIBS_MAIL=-llockfile
16921 LIBS="$LIBS_MAIL $LIBS"
10526 16922
10527fi 16923cat >>confdefs.h <<\_ACEOF
16924#define HAVE_LIBLOCKFILE 1
16925_ACEOF
10528 16926
16927else
10529# If we have the shared liblockfile, assume we must use it for mail 16928# If we have the shared liblockfile, assume we must use it for mail
10530# locking (e.g. Debian). If we couldn't link against liblockfile 16929# locking (e.g. Debian). If we couldn't link against liblockfile
10531# (no liblockfile.a installed), ensure that we don't need to. 16930# (no liblockfile.a installed), ensure that we don't need to.
10532if test "$ac_cv_lib_lockfile_maillock" = no; then
10533 # Extract the first word of "liblockfile.so", so it can be a program name with args. 16931 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10534set dummy liblockfile.so; ac_word=$2 16932set dummy liblockfile.so; ac_word=$2
10535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16933{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10536$as_echo_n "checking for $ac_word... " >&6; } 16934$as_echo_n "checking for $ac_word... " >&6; }
10537if test "${ac_cv_prog_liblockfile+set}" = set; then : 16935if test "${ac_cv_prog_liblockfile+set}" = set; then
10538 $as_echo_n "(cached) " >&6 16936 $as_echo_n "(cached) " >&6
10539else 16937else
10540 if test -n "$liblockfile"; then 16938 if test -n "$liblockfile"; then
@@ -10546,14 +16944,14 @@ for as_dir in $as_dummy
10546do 16944do
10547 IFS=$as_save_IFS 16945 IFS=$as_save_IFS
10548 test -z "$as_dir" && as_dir=. 16946 test -z "$as_dir" && as_dir=.
10549 for ac_exec_ext in '' $ac_executable_extensions; do 16947 for ac_exec_ext in '' $ac_executable_extensions; do
10550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10551 ac_cv_prog_liblockfile="yes" 16949 ac_cv_prog_liblockfile="yes"
10552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16950 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10553 break 2 16951 break 2
10554 fi 16952 fi
10555done 16953done
10556 done 16954done
10557IFS=$as_save_IFS 16955IFS=$as_save_IFS
10558 16956
10559 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" 16957 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
@@ -10561,38 +16959,263 @@ fi
10561fi 16959fi
10562liblockfile=$ac_cv_prog_liblockfile 16960liblockfile=$ac_cv_prog_liblockfile
10563if test -n "$liblockfile"; then 16961if test -n "$liblockfile"; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5 16962 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
10565$as_echo "$liblockfile" >&6; } 16963$as_echo "$liblockfile" >&6; }
10566else 16964else
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16965 { $as_echo "$as_me:$LINENO: result: no" >&5
10568$as_echo "no" >&6; } 16966$as_echo "no" >&6; }
10569fi 16967fi
10570 16968
10571 16969
10572 if test $ac_cv_prog_liblockfile = yes; then 16970 if test $ac_cv_prog_liblockfile = yes; then
10573 as_fn_error "Shared liblockfile found but can't link against it. 16971 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16972This probably means that movemail could lose mail.
16973There may be a \`development' package to install containing liblockfile." >&5
16974$as_echo "$as_me: error: Shared liblockfile found but can't link against it.
10574This probably means that movemail could lose mail. 16975This probably means that movemail could lose mail.
10575There may be a \`development' package to install containing liblockfile." "$LINENO" 5 16976There may be a \`development' package to install containing liblockfile." >&2;}
10576 else : 16977 { (exit 1); exit 1; }; }
10577 fi 16978 fi
10578fi 16979fi
16980
10579for ac_func in touchlock 16981for ac_func in touchlock
10580do : 16982do
10581 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock" 16983as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10582if test "x$ac_cv_func_touchlock" = x""yes; then : 16984{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
16985$as_echo_n "checking for $ac_func... " >&6; }
16986if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16987 $as_echo_n "(cached) " >&6
16988else
16989 cat >conftest.$ac_ext <<_ACEOF
16990/* confdefs.h. */
16991_ACEOF
16992cat confdefs.h >>conftest.$ac_ext
16993cat >>conftest.$ac_ext <<_ACEOF
16994/* end confdefs.h. */
16995/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16997#define $ac_func innocuous_$ac_func
16998
16999/* System header to define __stub macros and hopefully few prototypes,
17000 which can conflict with char $ac_func (); below.
17001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002 <limits.h> exists even on freestanding compilers. */
17003
17004#ifdef __STDC__
17005# include <limits.h>
17006#else
17007# include <assert.h>
17008#endif
17009
17010#undef $ac_func
17011
17012/* Override any GCC internal prototype to avoid an error.
17013 Use char because int might match the return type of a GCC
17014 builtin and then its argument prototype would still apply. */
17015#ifdef __cplusplus
17016extern "C"
17017#endif
17018char $ac_func ();
17019/* The GNU C library defines this for functions which it implements
17020 to always fail with ENOSYS. Some functions are actually named
17021 something starting with __ and the normal name is an alias. */
17022#if defined __stub_$ac_func || defined __stub___$ac_func
17023choke me
17024#endif
17025
17026int
17027main ()
17028{
17029return $ac_func ();
17030 ;
17031 return 0;
17032}
17033_ACEOF
17034rm -f conftest.$ac_objext conftest$ac_exeext
17035if { (ac_try="$ac_link"
17036case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17039esac
17040eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17041$as_echo "$ac_try_echo") >&5
17042 (eval "$ac_link") 2>conftest.er1
17043 ac_status=$?
17044 grep -v '^ *+' conftest.er1 >conftest.err
17045 rm -f conftest.er1
17046 cat conftest.err >&5
17047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } && {
17049 test -z "$ac_c_werror_flag" ||
17050 test ! -s conftest.err
17051 } && test -s conftest$ac_exeext && {
17052 test "$cross_compiling" = yes ||
17053 $as_test_x conftest$ac_exeext
17054 }; then
17055 eval "$as_ac_var=yes"
17056else
17057 $as_echo "$as_me: failed program was:" >&5
17058sed 's/^/| /' conftest.$ac_ext >&5
17059
17060 eval "$as_ac_var=no"
17061fi
17062
17063rm -rf conftest.dSYM
17064rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17065 conftest$ac_exeext conftest.$ac_ext
17066fi
17067ac_res=`eval 'as_val=${'$as_ac_var'}
17068 $as_echo "$as_val"'`
17069 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17070$as_echo "$ac_res" >&6; }
17071if test `eval 'as_val=${'$as_ac_var'}
17072 $as_echo "$as_val"'` = yes; then
10583 cat >>confdefs.h <<_ACEOF 17073 cat >>confdefs.h <<_ACEOF
10584#define HAVE_TOUCHLOCK 1 17074#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10585_ACEOF 17075_ACEOF
10586 17076
10587fi 17077fi
10588done 17078done
10589 17079
17080
10590for ac_header in maillock.h 17081for ac_header in maillock.h
10591do : 17082do
10592 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default" 17083as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10593if test "x$ac_cv_header_maillock_h" = x""yes; then : 17084if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17085 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17086$as_echo_n "checking for $ac_header... " >&6; }
17087if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17088 $as_echo_n "(cached) " >&6
17089fi
17090ac_res=`eval 'as_val=${'$as_ac_Header'}
17091 $as_echo "$as_val"'`
17092 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17093$as_echo "$ac_res" >&6; }
17094else
17095 # Is the header compilable?
17096{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17097$as_echo_n "checking $ac_header usability... " >&6; }
17098cat >conftest.$ac_ext <<_ACEOF
17099/* confdefs.h. */
17100_ACEOF
17101cat confdefs.h >>conftest.$ac_ext
17102cat >>conftest.$ac_ext <<_ACEOF
17103/* end confdefs.h. */
17104$ac_includes_default
17105#include <$ac_header>
17106_ACEOF
17107rm -f conftest.$ac_objext
17108if { (ac_try="$ac_compile"
17109case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17112esac
17113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17114$as_echo "$ac_try_echo") >&5
17115 (eval "$ac_compile") 2>conftest.er1
17116 ac_status=$?
17117 grep -v '^ *+' conftest.er1 >conftest.err
17118 rm -f conftest.er1
17119 cat conftest.err >&5
17120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); } && {
17122 test -z "$ac_c_werror_flag" ||
17123 test ! -s conftest.err
17124 } && test -s conftest.$ac_objext; then
17125 ac_header_compiler=yes
17126else
17127 $as_echo "$as_me: failed program was:" >&5
17128sed 's/^/| /' conftest.$ac_ext >&5
17129
17130 ac_header_compiler=no
17131fi
17132
17133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17134{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17135$as_echo "$ac_header_compiler" >&6; }
17136
17137# Is the header present?
17138{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17139$as_echo_n "checking $ac_header presence... " >&6; }
17140cat >conftest.$ac_ext <<_ACEOF
17141/* confdefs.h. */
17142_ACEOF
17143cat confdefs.h >>conftest.$ac_ext
17144cat >>conftest.$ac_ext <<_ACEOF
17145/* end confdefs.h. */
17146#include <$ac_header>
17147_ACEOF
17148if { (ac_try="$ac_cpp conftest.$ac_ext"
17149case "(($ac_try" in
17150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17151 *) ac_try_echo=$ac_try;;
17152esac
17153eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17154$as_echo "$ac_try_echo") >&5
17155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17156 ac_status=$?
17157 grep -v '^ *+' conftest.er1 >conftest.err
17158 rm -f conftest.er1
17159 cat conftest.err >&5
17160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17161 (exit $ac_status); } >/dev/null && {
17162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17163 test ! -s conftest.err
17164 }; then
17165 ac_header_preproc=yes
17166else
17167 $as_echo "$as_me: failed program was:" >&5
17168sed 's/^/| /' conftest.$ac_ext >&5
17169
17170 ac_header_preproc=no
17171fi
17172
17173rm -f conftest.err conftest.$ac_ext
17174{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17175$as_echo "$ac_header_preproc" >&6; }
17176
17177# So? What about this header?
17178case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17179 yes:no: )
17180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17181$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17183$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17184 ac_header_preproc=yes
17185 ;;
17186 no:yes:* )
17187 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17188$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17189 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17190$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17191 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17192$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17193 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17194$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17195 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17196$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17197 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17198$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17199
17200 ;;
17201esac
17202{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17203$as_echo_n "checking for $ac_header... " >&6; }
17204if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17205 $as_echo_n "(cached) " >&6
17206else
17207 eval "$as_ac_Header=\$ac_header_preproc"
17208fi
17209ac_res=`eval 'as_val=${'$as_ac_Header'}
17210 $as_echo "$as_val"'`
17211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17212$as_echo "$ac_res" >&6; }
17213
17214fi
17215if test `eval 'as_val=${'$as_ac_Header'}
17216 $as_echo "$as_val"'` = yes; then
10594 cat >>confdefs.h <<_ACEOF 17217 cat >>confdefs.h <<_ACEOF
10595#define HAVE_MAILLOCK_H 1 17218#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10596_ACEOF 17219_ACEOF
10597 17220
10598fi 17221fi
@@ -10600,6 +17223,78 @@ fi
10600done 17223done
10601 17224
10602 17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274
17275
17276
17277
17278
17279
17280
17281
17282
17283
17284
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
10603for ac_func in gethostname getdomainname dup2 \ 17298for ac_func in gethostname getdomainname dup2 \
10604rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ 17299rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
10605random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \ 17300random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
@@ -10610,11 +17305,97 @@ sendto recvfrom getsockopt setsockopt getsockname getpeername \
10610gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ 17305gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10611memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ 17306memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10612cfmakeraw cfsetspeed 17307cfmakeraw cfsetspeed
10613do : 17308do
10614 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17309as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10615ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17310{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10616eval as_val=\$$as_ac_var 17311$as_echo_n "checking for $ac_func... " >&6; }
10617 if test "x$as_val" = x""yes; then : 17312if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17313 $as_echo_n "(cached) " >&6
17314else
17315 cat >conftest.$ac_ext <<_ACEOF
17316/* confdefs.h. */
17317_ACEOF
17318cat confdefs.h >>conftest.$ac_ext
17319cat >>conftest.$ac_ext <<_ACEOF
17320/* end confdefs.h. */
17321/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17323#define $ac_func innocuous_$ac_func
17324
17325/* System header to define __stub macros and hopefully few prototypes,
17326 which can conflict with char $ac_func (); below.
17327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17328 <limits.h> exists even on freestanding compilers. */
17329
17330#ifdef __STDC__
17331# include <limits.h>
17332#else
17333# include <assert.h>
17334#endif
17335
17336#undef $ac_func
17337
17338/* Override any GCC internal prototype to avoid an error.
17339 Use char because int might match the return type of a GCC
17340 builtin and then its argument prototype would still apply. */
17341#ifdef __cplusplus
17342extern "C"
17343#endif
17344char $ac_func ();
17345/* The GNU C library defines this for functions which it implements
17346 to always fail with ENOSYS. Some functions are actually named
17347 something starting with __ and the normal name is an alias. */
17348#if defined __stub_$ac_func || defined __stub___$ac_func
17349choke me
17350#endif
17351
17352int
17353main ()
17354{
17355return $ac_func ();
17356 ;
17357 return 0;
17358}
17359_ACEOF
17360rm -f conftest.$ac_objext conftest$ac_exeext
17361if { (ac_try="$ac_link"
17362case "(($ac_try" in
17363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17364 *) ac_try_echo=$ac_try;;
17365esac
17366eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17367$as_echo "$ac_try_echo") >&5
17368 (eval "$ac_link") 2>conftest.er1
17369 ac_status=$?
17370 grep -v '^ *+' conftest.er1 >conftest.err
17371 rm -f conftest.er1
17372 cat conftest.err >&5
17373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); } && {
17375 test -z "$ac_c_werror_flag" ||
17376 test ! -s conftest.err
17377 } && test -s conftest$ac_exeext && {
17378 test "$cross_compiling" = yes ||
17379 $as_test_x conftest$ac_exeext
17380 }; then
17381 eval "$as_ac_var=yes"
17382else
17383 $as_echo "$as_me: failed program was:" >&5
17384sed 's/^/| /' conftest.$ac_ext >&5
17385
17386 eval "$as_ac_var=no"
17387fi
17388
17389rm -rf conftest.dSYM
17390rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17391 conftest$ac_exeext conftest.$ac_ext
17392fi
17393ac_res=`eval 'as_val=${'$as_ac_var'}
17394 $as_echo "$as_val"'`
17395 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17396$as_echo "$ac_res" >&6; }
17397if test `eval 'as_val=${'$as_ac_var'}
17398 $as_echo "$as_val"'` = yes; then
10618 cat >>confdefs.h <<_ACEOF 17399 cat >>confdefs.h <<_ACEOF
10619#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17400#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10620_ACEOF 17401_ACEOF
@@ -10623,12 +17404,145 @@ fi
10623done 17404done
10624 17405
10625 17406
17407
10626for ac_header in sys/un.h 17408for ac_header in sys/un.h
10627do : 17409do
10628 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 17410as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10629if test "x$ac_cv_header_sys_un_h" = x""yes; then : 17411if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17412 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17413$as_echo_n "checking for $ac_header... " >&6; }
17414if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17415 $as_echo_n "(cached) " >&6
17416fi
17417ac_res=`eval 'as_val=${'$as_ac_Header'}
17418 $as_echo "$as_val"'`
17419 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17420$as_echo "$ac_res" >&6; }
17421else
17422 # Is the header compilable?
17423{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17424$as_echo_n "checking $ac_header usability... " >&6; }
17425cat >conftest.$ac_ext <<_ACEOF
17426/* confdefs.h. */
17427_ACEOF
17428cat confdefs.h >>conftest.$ac_ext
17429cat >>conftest.$ac_ext <<_ACEOF
17430/* end confdefs.h. */
17431$ac_includes_default
17432#include <$ac_header>
17433_ACEOF
17434rm -f conftest.$ac_objext
17435if { (ac_try="$ac_compile"
17436case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17439esac
17440eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17441$as_echo "$ac_try_echo") >&5
17442 (eval "$ac_compile") 2>conftest.er1
17443 ac_status=$?
17444 grep -v '^ *+' conftest.er1 >conftest.err
17445 rm -f conftest.er1
17446 cat conftest.err >&5
17447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17448 (exit $ac_status); } && {
17449 test -z "$ac_c_werror_flag" ||
17450 test ! -s conftest.err
17451 } && test -s conftest.$ac_objext; then
17452 ac_header_compiler=yes
17453else
17454 $as_echo "$as_me: failed program was:" >&5
17455sed 's/^/| /' conftest.$ac_ext >&5
17456
17457 ac_header_compiler=no
17458fi
17459
17460rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17461{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17462$as_echo "$ac_header_compiler" >&6; }
17463
17464# Is the header present?
17465{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17466$as_echo_n "checking $ac_header presence... " >&6; }
17467cat >conftest.$ac_ext <<_ACEOF
17468/* confdefs.h. */
17469_ACEOF
17470cat confdefs.h >>conftest.$ac_ext
17471cat >>conftest.$ac_ext <<_ACEOF
17472/* end confdefs.h. */
17473#include <$ac_header>
17474_ACEOF
17475if { (ac_try="$ac_cpp conftest.$ac_ext"
17476case "(($ac_try" in
17477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17478 *) ac_try_echo=$ac_try;;
17479esac
17480eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17481$as_echo "$ac_try_echo") >&5
17482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17483 ac_status=$?
17484 grep -v '^ *+' conftest.er1 >conftest.err
17485 rm -f conftest.er1
17486 cat conftest.err >&5
17487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17488 (exit $ac_status); } >/dev/null && {
17489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17490 test ! -s conftest.err
17491 }; then
17492 ac_header_preproc=yes
17493else
17494 $as_echo "$as_me: failed program was:" >&5
17495sed 's/^/| /' conftest.$ac_ext >&5
17496
17497 ac_header_preproc=no
17498fi
17499
17500rm -f conftest.err conftest.$ac_ext
17501{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17502$as_echo "$ac_header_preproc" >&6; }
17503
17504# So? What about this header?
17505case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17506 yes:no: )
17507 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17508$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17509 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17510$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17511 ac_header_preproc=yes
17512 ;;
17513 no:yes:* )
17514 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17515$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17516 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17517$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17518 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17519$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17520 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17521$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17522 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17523$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17524 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17525$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17526
17527 ;;
17528esac
17529{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17530$as_echo_n "checking for $ac_header... " >&6; }
17531if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17532 $as_echo_n "(cached) " >&6
17533else
17534 eval "$as_ac_Header=\$ac_header_preproc"
17535fi
17536ac_res=`eval 'as_val=${'$as_ac_Header'}
17537 $as_echo "$as_val"'`
17538 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17539$as_echo "$ac_res" >&6; }
17540
17541fi
17542if test `eval 'as_val=${'$as_ac_Header'}
17543 $as_echo "$as_val"'` = yes; then
10630 cat >>confdefs.h <<_ACEOF 17544 cat >>confdefs.h <<_ACEOF
10631#define HAVE_SYS_UN_H 1 17545#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10632_ACEOF 17546_ACEOF
10633 17547
10634fi 17548fi
@@ -10639,13 +17553,143 @@ done
10639 17553
10640 17554
10641 17555
10642 for ac_header in $ac_header_list 17556
10643do : 17557for ac_header in $ac_header_list
10644 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17558do
10645ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 17559as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10646" 17560if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10647eval as_val=\$$as_ac_Header 17561 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10648 if test "x$as_val" = x""yes; then : 17562$as_echo_n "checking for $ac_header... " >&6; }
17563if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17564 $as_echo_n "(cached) " >&6
17565fi
17566ac_res=`eval 'as_val=${'$as_ac_Header'}
17567 $as_echo "$as_val"'`
17568 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17569$as_echo "$ac_res" >&6; }
17570else
17571 # Is the header compilable?
17572{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17573$as_echo_n "checking $ac_header usability... " >&6; }
17574cat >conftest.$ac_ext <<_ACEOF
17575/* confdefs.h. */
17576_ACEOF
17577cat confdefs.h >>conftest.$ac_ext
17578cat >>conftest.$ac_ext <<_ACEOF
17579/* end confdefs.h. */
17580$ac_includes_default
17581#include <$ac_header>
17582_ACEOF
17583rm -f conftest.$ac_objext
17584if { (ac_try="$ac_compile"
17585case "(($ac_try" in
17586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17587 *) ac_try_echo=$ac_try;;
17588esac
17589eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17590$as_echo "$ac_try_echo") >&5
17591 (eval "$ac_compile") 2>conftest.er1
17592 ac_status=$?
17593 grep -v '^ *+' conftest.er1 >conftest.err
17594 rm -f conftest.er1
17595 cat conftest.err >&5
17596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17597 (exit $ac_status); } && {
17598 test -z "$ac_c_werror_flag" ||
17599 test ! -s conftest.err
17600 } && test -s conftest.$ac_objext; then
17601 ac_header_compiler=yes
17602else
17603 $as_echo "$as_me: failed program was:" >&5
17604sed 's/^/| /' conftest.$ac_ext >&5
17605
17606 ac_header_compiler=no
17607fi
17608
17609rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17610{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17611$as_echo "$ac_header_compiler" >&6; }
17612
17613# Is the header present?
17614{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17615$as_echo_n "checking $ac_header presence... " >&6; }
17616cat >conftest.$ac_ext <<_ACEOF
17617/* confdefs.h. */
17618_ACEOF
17619cat confdefs.h >>conftest.$ac_ext
17620cat >>conftest.$ac_ext <<_ACEOF
17621/* end confdefs.h. */
17622#include <$ac_header>
17623_ACEOF
17624if { (ac_try="$ac_cpp conftest.$ac_ext"
17625case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628esac
17629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17630$as_echo "$ac_try_echo") >&5
17631 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17632 ac_status=$?
17633 grep -v '^ *+' conftest.er1 >conftest.err
17634 rm -f conftest.er1
17635 cat conftest.err >&5
17636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17637 (exit $ac_status); } >/dev/null && {
17638 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17639 test ! -s conftest.err
17640 }; then
17641 ac_header_preproc=yes
17642else
17643 $as_echo "$as_me: failed program was:" >&5
17644sed 's/^/| /' conftest.$ac_ext >&5
17645
17646 ac_header_preproc=no
17647fi
17648
17649rm -f conftest.err conftest.$ac_ext
17650{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17651$as_echo "$ac_header_preproc" >&6; }
17652
17653# So? What about this header?
17654case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17655 yes:no: )
17656 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17657$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17658 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17659$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17660 ac_header_preproc=yes
17661 ;;
17662 no:yes:* )
17663 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17664$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17666$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17668$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17670$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17672$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17673 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17674$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17675
17676 ;;
17677esac
17678{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17679$as_echo_n "checking for $ac_header... " >&6; }
17680if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17681 $as_echo_n "(cached) " >&6
17682else
17683 eval "$as_ac_Header=\$ac_header_preproc"
17684fi
17685ac_res=`eval 'as_val=${'$as_ac_Header'}
17686 $as_echo "$as_val"'`
17687 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17688$as_echo "$ac_res" >&6; }
17689
17690fi
17691if test `eval 'as_val=${'$as_ac_Header'}
17692 $as_echo "$as_val"'` = yes; then
10649 cat >>confdefs.h <<_ACEOF 17693 cat >>confdefs.h <<_ACEOF
10650#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17694#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10651_ACEOF 17695_ACEOF
@@ -10661,12 +17705,99 @@ done
10661 17705
10662 17706
10663 17707
10664 for ac_func in $ac_func_list 17708
10665do : 17709for ac_func in $ac_func_list
10666 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17710do
10667ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17711as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10668eval as_val=\$$as_ac_var 17712{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10669 if test "x$as_val" = x""yes; then : 17713$as_echo_n "checking for $ac_func... " >&6; }
17714if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17715 $as_echo_n "(cached) " >&6
17716else
17717 cat >conftest.$ac_ext <<_ACEOF
17718/* confdefs.h. */
17719_ACEOF
17720cat confdefs.h >>conftest.$ac_ext
17721cat >>conftest.$ac_ext <<_ACEOF
17722/* end confdefs.h. */
17723/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17724 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17725#define $ac_func innocuous_$ac_func
17726
17727/* System header to define __stub macros and hopefully few prototypes,
17728 which can conflict with char $ac_func (); below.
17729 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17730 <limits.h> exists even on freestanding compilers. */
17731
17732#ifdef __STDC__
17733# include <limits.h>
17734#else
17735# include <assert.h>
17736#endif
17737
17738#undef $ac_func
17739
17740/* Override any GCC internal prototype to avoid an error.
17741 Use char because int might match the return type of a GCC
17742 builtin and then its argument prototype would still apply. */
17743#ifdef __cplusplus
17744extern "C"
17745#endif
17746char $ac_func ();
17747/* The GNU C library defines this for functions which it implements
17748 to always fail with ENOSYS. Some functions are actually named
17749 something starting with __ and the normal name is an alias. */
17750#if defined __stub_$ac_func || defined __stub___$ac_func
17751choke me
17752#endif
17753
17754int
17755main ()
17756{
17757return $ac_func ();
17758 ;
17759 return 0;
17760}
17761_ACEOF
17762rm -f conftest.$ac_objext conftest$ac_exeext
17763if { (ac_try="$ac_link"
17764case "(($ac_try" in
17765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17766 *) ac_try_echo=$ac_try;;
17767esac
17768eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17769$as_echo "$ac_try_echo") >&5
17770 (eval "$ac_link") 2>conftest.er1
17771 ac_status=$?
17772 grep -v '^ *+' conftest.er1 >conftest.err
17773 rm -f conftest.er1
17774 cat conftest.err >&5
17775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17776 (exit $ac_status); } && {
17777 test -z "$ac_c_werror_flag" ||
17778 test ! -s conftest.err
17779 } && test -s conftest$ac_exeext && {
17780 test "$cross_compiling" = yes ||
17781 $as_test_x conftest$ac_exeext
17782 }; then
17783 eval "$as_ac_var=yes"
17784else
17785 $as_echo "$as_me: failed program was:" >&5
17786sed 's/^/| /' conftest.$ac_ext >&5
17787
17788 eval "$as_ac_var=no"
17789fi
17790
17791rm -rf conftest.dSYM
17792rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17793 conftest$ac_exeext conftest.$ac_ext
17794fi
17795ac_res=`eval 'as_val=${'$as_ac_var'}
17796 $as_echo "$as_val"'`
17797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17798$as_echo "$ac_res" >&6; }
17799if test `eval 'as_val=${'$as_ac_var'}
17800 $as_echo "$as_val"'` = yes; then
10670 cat >>confdefs.h <<_ACEOF 17801 cat >>confdefs.h <<_ACEOF
10671#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17802#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10672_ACEOF 17803_ACEOF
@@ -10678,15 +17809,31 @@ done
10678 17809
10679 17810
10680 17811
10681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 17812
17813
17814
17815
17816
17817
17818
17819
17820
17821
17822
17823
17824{ $as_echo "$as_me:$LINENO: checking for working mktime" >&5
10682$as_echo_n "checking for working mktime... " >&6; } 17825$as_echo_n "checking for working mktime... " >&6; }
10683if test "${ac_cv_func_working_mktime+set}" = set; then : 17826if test "${ac_cv_func_working_mktime+set}" = set; then
10684 $as_echo_n "(cached) " >&6 17827 $as_echo_n "(cached) " >&6
10685else 17828else
10686 if test "$cross_compiling" = yes; then : 17829 if test "$cross_compiling" = yes; then
10687 ac_cv_func_working_mktime=no 17830 ac_cv_func_working_mktime=no
10688else 17831else
10689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17832 cat >conftest.$ac_ext <<_ACEOF
17833/* confdefs.h. */
17834_ACEOF
17835cat confdefs.h >>conftest.$ac_ext
17836cat >>conftest.$ac_ext <<_ACEOF
10690/* end confdefs.h. */ 17837/* end confdefs.h. */
10691/* Test program from Paul Eggert and Tony Leneis. */ 17838/* Test program from Paul Eggert and Tony Leneis. */
10692#ifdef TIME_WITH_SYS_TIME 17839#ifdef TIME_WITH_SYS_TIME
@@ -10883,17 +18030,44 @@ main ()
10883 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 18030 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
10884} 18031}
10885_ACEOF 18032_ACEOF
10886if ac_fn_c_try_run "$LINENO"; then : 18033rm -f conftest$ac_exeext
18034if { (ac_try="$ac_link"
18035case "(($ac_try" in
18036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18037 *) ac_try_echo=$ac_try;;
18038esac
18039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18040$as_echo "$ac_try_echo") >&5
18041 (eval "$ac_link") 2>&5
18042 ac_status=$?
18043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18044 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18045 { (case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18048esac
18049eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18050$as_echo "$ac_try_echo") >&5
18051 (eval "$ac_try") 2>&5
18052 ac_status=$?
18053 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); }; }; then
10887 ac_cv_func_working_mktime=yes 18055 ac_cv_func_working_mktime=yes
10888else 18056else
10889 ac_cv_func_working_mktime=no 18057 $as_echo "$as_me: program exited with status $ac_status" >&5
18058$as_echo "$as_me: failed program was:" >&5
18059sed 's/^/| /' conftest.$ac_ext >&5
18060
18061( exit $ac_status )
18062ac_cv_func_working_mktime=no
10890fi 18063fi
10891rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18064rm -rf conftest.dSYM
10892 conftest.$ac_objext conftest.beam conftest.$ac_ext 18065rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10893fi 18066fi
10894 18067
18068
10895fi 18069fi
10896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 18070{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
10897$as_echo "$ac_cv_func_working_mktime" >&6; } 18071$as_echo "$ac_cv_func_working_mktime" >&6; }
10898if test $ac_cv_func_working_mktime = no; then 18072if test $ac_cv_func_working_mktime = no; then
10899 case " $LIBOBJS " in 18073 case " $LIBOBJS " in
@@ -10906,7 +18080,9 @@ fi
10906 18080
10907if test "$ac_cv_func_working_mktime" = no; then 18081if test "$ac_cv_func_working_mktime" = no; then
10908 18082
10909$as_echo "#define BROKEN_MKTIME 1" >>confdefs.h 18083cat >>confdefs.h <<\_ACEOF
18084#define BROKEN_MKTIME 1
18085_ACEOF
10910 18086
10911fi 18087fi
10912 18088
@@ -10914,13 +18090,99 @@ ac_have_func=no # yes means we've found a way to get the load average.
10914 18090
10915# Make sure getloadavg.c is where it belongs, at configure-time. 18091# Make sure getloadavg.c is where it belongs, at configure-time.
10916test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 18092test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
10917 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 18093 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18094$as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18095 { (exit 1); exit 1; }; }
10918 18096
10919ac_save_LIBS=$LIBS 18097ac_save_LIBS=$LIBS
10920 18098
10921# Check for getloadavg, but be sure not to touch the cache variable. 18099# Check for getloadavg, but be sure not to touch the cache variable.
10922(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 18100({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
10923if test "x$ac_cv_func_getloadavg" = x""yes; then : 18101$as_echo_n "checking for getloadavg... " >&6; }
18102if test "${ac_cv_func_getloadavg+set}" = set; then
18103 $as_echo_n "(cached) " >&6
18104else
18105 cat >conftest.$ac_ext <<_ACEOF
18106/* confdefs.h. */
18107_ACEOF
18108cat confdefs.h >>conftest.$ac_ext
18109cat >>conftest.$ac_ext <<_ACEOF
18110/* end confdefs.h. */
18111/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18113#define getloadavg innocuous_getloadavg
18114
18115/* System header to define __stub macros and hopefully few prototypes,
18116 which can conflict with char getloadavg (); below.
18117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18118 <limits.h> exists even on freestanding compilers. */
18119
18120#ifdef __STDC__
18121# include <limits.h>
18122#else
18123# include <assert.h>
18124#endif
18125
18126#undef getloadavg
18127
18128/* Override any GCC internal prototype to avoid an error.
18129 Use char because int might match the return type of a GCC
18130 builtin and then its argument prototype would still apply. */
18131#ifdef __cplusplus
18132extern "C"
18133#endif
18134char getloadavg ();
18135/* The GNU C library defines this for functions which it implements
18136 to always fail with ENOSYS. Some functions are actually named
18137 something starting with __ and the normal name is an alias. */
18138#if defined __stub_getloadavg || defined __stub___getloadavg
18139choke me
18140#endif
18141
18142int
18143main ()
18144{
18145return getloadavg ();
18146 ;
18147 return 0;
18148}
18149_ACEOF
18150rm -f conftest.$ac_objext conftest$ac_exeext
18151if { (ac_try="$ac_link"
18152case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18155esac
18156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18157$as_echo "$ac_try_echo") >&5
18158 (eval "$ac_link") 2>conftest.er1
18159 ac_status=$?
18160 grep -v '^ *+' conftest.er1 >conftest.err
18161 rm -f conftest.er1
18162 cat conftest.err >&5
18163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18164 (exit $ac_status); } && {
18165 test -z "$ac_c_werror_flag" ||
18166 test ! -s conftest.err
18167 } && test -s conftest$ac_exeext && {
18168 test "$cross_compiling" = yes ||
18169 $as_test_x conftest$ac_exeext
18170 }; then
18171 ac_cv_func_getloadavg=yes
18172else
18173 $as_echo "$as_me: failed program was:" >&5
18174sed 's/^/| /' conftest.$ac_ext >&5
18175
18176 ac_cv_func_getloadavg=no
18177fi
18178
18179rm -rf conftest.dSYM
18180rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18181 conftest$ac_exeext conftest.$ac_ext
18182fi
18183{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18184$as_echo "$ac_cv_func_getloadavg" >&6; }
18185if test $ac_cv_func_getloadavg = yes; then
10924 exit 0 18186 exit 0
10925else 18187else
10926 exit 1 18188 exit 1
@@ -10928,12 +18190,101 @@ fi
10928) && ac_have_func=yes 18190) && ac_have_func=yes
10929 18191
10930# On HPUX9, an unprivileged user can get load averages through this function. 18192# On HPUX9, an unprivileged user can get load averages through this function.
18193
10931for ac_func in pstat_getdynamic 18194for ac_func in pstat_getdynamic
10932do : 18195do
10933 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" 18196as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10934if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then : 18197{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18198$as_echo_n "checking for $ac_func... " >&6; }
18199if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18200 $as_echo_n "(cached) " >&6
18201else
18202 cat >conftest.$ac_ext <<_ACEOF
18203/* confdefs.h. */
18204_ACEOF
18205cat confdefs.h >>conftest.$ac_ext
18206cat >>conftest.$ac_ext <<_ACEOF
18207/* end confdefs.h. */
18208/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18210#define $ac_func innocuous_$ac_func
18211
18212/* System header to define __stub macros and hopefully few prototypes,
18213 which can conflict with char $ac_func (); below.
18214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18215 <limits.h> exists even on freestanding compilers. */
18216
18217#ifdef __STDC__
18218# include <limits.h>
18219#else
18220# include <assert.h>
18221#endif
18222
18223#undef $ac_func
18224
18225/* Override any GCC internal prototype to avoid an error.
18226 Use char because int might match the return type of a GCC
18227 builtin and then its argument prototype would still apply. */
18228#ifdef __cplusplus
18229extern "C"
18230#endif
18231char $ac_func ();
18232/* The GNU C library defines this for functions which it implements
18233 to always fail with ENOSYS. Some functions are actually named
18234 something starting with __ and the normal name is an alias. */
18235#if defined __stub_$ac_func || defined __stub___$ac_func
18236choke me
18237#endif
18238
18239int
18240main ()
18241{
18242return $ac_func ();
18243 ;
18244 return 0;
18245}
18246_ACEOF
18247rm -f conftest.$ac_objext conftest$ac_exeext
18248if { (ac_try="$ac_link"
18249case "(($ac_try" in
18250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18251 *) ac_try_echo=$ac_try;;
18252esac
18253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18254$as_echo "$ac_try_echo") >&5
18255 (eval "$ac_link") 2>conftest.er1
18256 ac_status=$?
18257 grep -v '^ *+' conftest.er1 >conftest.err
18258 rm -f conftest.er1
18259 cat conftest.err >&5
18260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); } && {
18262 test -z "$ac_c_werror_flag" ||
18263 test ! -s conftest.err
18264 } && test -s conftest$ac_exeext && {
18265 test "$cross_compiling" = yes ||
18266 $as_test_x conftest$ac_exeext
18267 }; then
18268 eval "$as_ac_var=yes"
18269else
18270 $as_echo "$as_me: failed program was:" >&5
18271sed 's/^/| /' conftest.$ac_ext >&5
18272
18273 eval "$as_ac_var=no"
18274fi
18275
18276rm -rf conftest.dSYM
18277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18278 conftest$ac_exeext conftest.$ac_ext
18279fi
18280ac_res=`eval 'as_val=${'$as_ac_var'}
18281 $as_echo "$as_val"'`
18282 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18283$as_echo "$ac_res" >&6; }
18284if test `eval 'as_val=${'$as_ac_var'}
18285 $as_echo "$as_val"'` = yes; then
10935 cat >>confdefs.h <<_ACEOF 18286 cat >>confdefs.h <<_ACEOF
10936#define HAVE_PSTAT_GETDYNAMIC 1 18287#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10937_ACEOF 18288_ACEOF
10938 18289
10939fi 18290fi
@@ -10941,14 +18292,19 @@ done
10941 18292
10942 18293
10943# Solaris has libkstat which does not require root. 18294# Solaris has libkstat which does not require root.
10944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 18295
18296{ $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
10945$as_echo_n "checking for kstat_open in -lkstat... " >&6; } 18297$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
10946if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : 18298if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
10947 $as_echo_n "(cached) " >&6 18299 $as_echo_n "(cached) " >&6
10948else 18300else
10949 ac_check_lib_save_LIBS=$LIBS 18301 ac_check_lib_save_LIBS=$LIBS
10950LIBS="-lkstat $LIBS" 18302LIBS="-lkstat $LIBS"
10951cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18303cat >conftest.$ac_ext <<_ACEOF
18304/* confdefs.h. */
18305_ACEOF
18306cat confdefs.h >>conftest.$ac_ext
18307cat >>conftest.$ac_ext <<_ACEOF
10952/* end confdefs.h. */ 18308/* end confdefs.h. */
10953 18309
10954/* Override any GCC internal prototype to avoid an error. 18310/* Override any GCC internal prototype to avoid an error.
@@ -10966,18 +18322,43 @@ return kstat_open ();
10966 return 0; 18322 return 0;
10967} 18323}
10968_ACEOF 18324_ACEOF
10969if ac_fn_c_try_link "$LINENO"; then : 18325rm -f conftest.$ac_objext conftest$ac_exeext
18326if { (ac_try="$ac_link"
18327case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18330esac
18331eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18332$as_echo "$ac_try_echo") >&5
18333 (eval "$ac_link") 2>conftest.er1
18334 ac_status=$?
18335 grep -v '^ *+' conftest.er1 >conftest.err
18336 rm -f conftest.er1
18337 cat conftest.err >&5
18338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18339 (exit $ac_status); } && {
18340 test -z "$ac_c_werror_flag" ||
18341 test ! -s conftest.err
18342 } && test -s conftest$ac_exeext && {
18343 test "$cross_compiling" = yes ||
18344 $as_test_x conftest$ac_exeext
18345 }; then
10970 ac_cv_lib_kstat_kstat_open=yes 18346 ac_cv_lib_kstat_kstat_open=yes
10971else 18347else
10972 ac_cv_lib_kstat_kstat_open=no 18348 $as_echo "$as_me: failed program was:" >&5
18349sed 's/^/| /' conftest.$ac_ext >&5
18350
18351 ac_cv_lib_kstat_kstat_open=no
10973fi 18352fi
10974rm -f core conftest.err conftest.$ac_objext \ 18353
10975 conftest$ac_exeext conftest.$ac_ext 18354rm -rf conftest.dSYM
18355rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18356 conftest$ac_exeext conftest.$ac_ext
10976LIBS=$ac_check_lib_save_LIBS 18357LIBS=$ac_check_lib_save_LIBS
10977fi 18358fi
10978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 18359{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
10979$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } 18360$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
10980if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then : 18361if test $ac_cv_lib_kstat_kstat_open = yes; then
10981 cat >>confdefs.h <<_ACEOF 18362 cat >>confdefs.h <<_ACEOF
10982#define HAVE_LIBKSTAT 1 18363#define HAVE_LIBKSTAT 1
10983_ACEOF 18364_ACEOF
@@ -10993,14 +18374,18 @@ test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
10993# to get the right answer into the cache. 18374# to get the right answer into the cache.
10994# For kstat on solaris, we need libelf to force the definition of SVR4 below. 18375# For kstat on solaris, we need libelf to force the definition of SVR4 below.
10995if test $ac_have_func = no; then 18376if test $ac_have_func = no; then
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 18377 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
10997$as_echo_n "checking for elf_begin in -lelf... " >&6; } 18378$as_echo_n "checking for elf_begin in -lelf... " >&6; }
10998if test "${ac_cv_lib_elf_elf_begin+set}" = set; then : 18379if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
10999 $as_echo_n "(cached) " >&6 18380 $as_echo_n "(cached) " >&6
11000else 18381else
11001 ac_check_lib_save_LIBS=$LIBS 18382 ac_check_lib_save_LIBS=$LIBS
11002LIBS="-lelf $LIBS" 18383LIBS="-lelf $LIBS"
11003cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18384cat >conftest.$ac_ext <<_ACEOF
18385/* confdefs.h. */
18386_ACEOF
18387cat confdefs.h >>conftest.$ac_ext
18388cat >>conftest.$ac_ext <<_ACEOF
11004/* end confdefs.h. */ 18389/* end confdefs.h. */
11005 18390
11006/* Override any GCC internal prototype to avoid an error. 18391/* Override any GCC internal prototype to avoid an error.
@@ -11018,31 +18403,60 @@ return elf_begin ();
11018 return 0; 18403 return 0;
11019} 18404}
11020_ACEOF 18405_ACEOF
11021if ac_fn_c_try_link "$LINENO"; then : 18406rm -f conftest.$ac_objext conftest$ac_exeext
18407if { (ac_try="$ac_link"
18408case "(($ac_try" in
18409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18410 *) ac_try_echo=$ac_try;;
18411esac
18412eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18413$as_echo "$ac_try_echo") >&5
18414 (eval "$ac_link") 2>conftest.er1
18415 ac_status=$?
18416 grep -v '^ *+' conftest.er1 >conftest.err
18417 rm -f conftest.er1
18418 cat conftest.err >&5
18419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18420 (exit $ac_status); } && {
18421 test -z "$ac_c_werror_flag" ||
18422 test ! -s conftest.err
18423 } && test -s conftest$ac_exeext && {
18424 test "$cross_compiling" = yes ||
18425 $as_test_x conftest$ac_exeext
18426 }; then
11022 ac_cv_lib_elf_elf_begin=yes 18427 ac_cv_lib_elf_elf_begin=yes
11023else 18428else
11024 ac_cv_lib_elf_elf_begin=no 18429 $as_echo "$as_me: failed program was:" >&5
18430sed 's/^/| /' conftest.$ac_ext >&5
18431
18432 ac_cv_lib_elf_elf_begin=no
11025fi 18433fi
11026rm -f core conftest.err conftest.$ac_objext \ 18434
11027 conftest$ac_exeext conftest.$ac_ext 18435rm -rf conftest.dSYM
18436rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18437 conftest$ac_exeext conftest.$ac_ext
11028LIBS=$ac_check_lib_save_LIBS 18438LIBS=$ac_check_lib_save_LIBS
11029fi 18439fi
11030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 18440{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11031$as_echo "$ac_cv_lib_elf_elf_begin" >&6; } 18441$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11032if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then : 18442if test $ac_cv_lib_elf_elf_begin = yes; then
11033 LIBS="-lelf $LIBS" 18443 LIBS="-lelf $LIBS"
11034fi 18444fi
11035 18445
11036fi 18446fi
11037if test $ac_have_func = no; then 18447if test $ac_have_func = no; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 18448 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11039$as_echo_n "checking for kvm_open in -lkvm... " >&6; } 18449$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11040if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then : 18450if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11041 $as_echo_n "(cached) " >&6 18451 $as_echo_n "(cached) " >&6
11042else 18452else
11043 ac_check_lib_save_LIBS=$LIBS 18453 ac_check_lib_save_LIBS=$LIBS
11044LIBS="-lkvm $LIBS" 18454LIBS="-lkvm $LIBS"
11045cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18455cat >conftest.$ac_ext <<_ACEOF
18456/* confdefs.h. */
18457_ACEOF
18458cat confdefs.h >>conftest.$ac_ext
18459cat >>conftest.$ac_ext <<_ACEOF
11046/* end confdefs.h. */ 18460/* end confdefs.h. */
11047 18461
11048/* Override any GCC internal prototype to avoid an error. 18462/* Override any GCC internal prototype to avoid an error.
@@ -11060,30 +18474,59 @@ return kvm_open ();
11060 return 0; 18474 return 0;
11061} 18475}
11062_ACEOF 18476_ACEOF
11063if ac_fn_c_try_link "$LINENO"; then : 18477rm -f conftest.$ac_objext conftest$ac_exeext
18478if { (ac_try="$ac_link"
18479case "(($ac_try" in
18480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18481 *) ac_try_echo=$ac_try;;
18482esac
18483eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18484$as_echo "$ac_try_echo") >&5
18485 (eval "$ac_link") 2>conftest.er1
18486 ac_status=$?
18487 grep -v '^ *+' conftest.er1 >conftest.err
18488 rm -f conftest.er1
18489 cat conftest.err >&5
18490 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18491 (exit $ac_status); } && {
18492 test -z "$ac_c_werror_flag" ||
18493 test ! -s conftest.err
18494 } && test -s conftest$ac_exeext && {
18495 test "$cross_compiling" = yes ||
18496 $as_test_x conftest$ac_exeext
18497 }; then
11064 ac_cv_lib_kvm_kvm_open=yes 18498 ac_cv_lib_kvm_kvm_open=yes
11065else 18499else
11066 ac_cv_lib_kvm_kvm_open=no 18500 $as_echo "$as_me: failed program was:" >&5
18501sed 's/^/| /' conftest.$ac_ext >&5
18502
18503 ac_cv_lib_kvm_kvm_open=no
11067fi 18504fi
11068rm -f core conftest.err conftest.$ac_objext \ 18505
11069 conftest$ac_exeext conftest.$ac_ext 18506rm -rf conftest.dSYM
18507rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18508 conftest$ac_exeext conftest.$ac_ext
11070LIBS=$ac_check_lib_save_LIBS 18509LIBS=$ac_check_lib_save_LIBS
11071fi 18510fi
11072{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 18511{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11073$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } 18512$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11074if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then : 18513if test $ac_cv_lib_kvm_kvm_open = yes; then
11075 LIBS="-lkvm $LIBS" 18514 LIBS="-lkvm $LIBS"
11076fi 18515fi
11077 18516
11078 # Check for the 4.4BSD definition of getloadavg. 18517 # Check for the 4.4BSD definition of getloadavg.
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 18518 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11080$as_echo_n "checking for getloadavg in -lutil... " >&6; } 18519$as_echo_n "checking for getloadavg in -lutil... " >&6; }
11081if test "${ac_cv_lib_util_getloadavg+set}" = set; then : 18520if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11082 $as_echo_n "(cached) " >&6 18521 $as_echo_n "(cached) " >&6
11083else 18522else
11084 ac_check_lib_save_LIBS=$LIBS 18523 ac_check_lib_save_LIBS=$LIBS
11085LIBS="-lutil $LIBS" 18524LIBS="-lutil $LIBS"
11086cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18525cat >conftest.$ac_ext <<_ACEOF
18526/* confdefs.h. */
18527_ACEOF
18528cat confdefs.h >>conftest.$ac_ext
18529cat >>conftest.$ac_ext <<_ACEOF
11087/* end confdefs.h. */ 18530/* end confdefs.h. */
11088 18531
11089/* Override any GCC internal prototype to avoid an error. 18532/* Override any GCC internal prototype to avoid an error.
@@ -11101,18 +18544,43 @@ return getloadavg ();
11101 return 0; 18544 return 0;
11102} 18545}
11103_ACEOF 18546_ACEOF
11104if ac_fn_c_try_link "$LINENO"; then : 18547rm -f conftest.$ac_objext conftest$ac_exeext
18548if { (ac_try="$ac_link"
18549case "(($ac_try" in
18550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18551 *) ac_try_echo=$ac_try;;
18552esac
18553eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18554$as_echo "$ac_try_echo") >&5
18555 (eval "$ac_link") 2>conftest.er1
18556 ac_status=$?
18557 grep -v '^ *+' conftest.er1 >conftest.err
18558 rm -f conftest.er1
18559 cat conftest.err >&5
18560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18561 (exit $ac_status); } && {
18562 test -z "$ac_c_werror_flag" ||
18563 test ! -s conftest.err
18564 } && test -s conftest$ac_exeext && {
18565 test "$cross_compiling" = yes ||
18566 $as_test_x conftest$ac_exeext
18567 }; then
11105 ac_cv_lib_util_getloadavg=yes 18568 ac_cv_lib_util_getloadavg=yes
11106else 18569else
11107 ac_cv_lib_util_getloadavg=no 18570 $as_echo "$as_me: failed program was:" >&5
18571sed 's/^/| /' conftest.$ac_ext >&5
18572
18573 ac_cv_lib_util_getloadavg=no
11108fi 18574fi
11109rm -f core conftest.err conftest.$ac_objext \ 18575
11110 conftest$ac_exeext conftest.$ac_ext 18576rm -rf conftest.dSYM
18577rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18578 conftest$ac_exeext conftest.$ac_ext
11111LIBS=$ac_check_lib_save_LIBS 18579LIBS=$ac_check_lib_save_LIBS
11112fi 18580fi
11113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 18581{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11114$as_echo "$ac_cv_lib_util_getloadavg" >&6; } 18582$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11115if test "x$ac_cv_lib_util_getloadavg" = x""yes; then : 18583if test $ac_cv_lib_util_getloadavg = yes; then
11116 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 18584 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11117fi 18585fi
11118 18586
@@ -11123,14 +18591,18 @@ if test $ac_have_func = no; then
11123 # Since it is not a standard part of AIX, it might be installed locally. 18591 # Since it is not a standard part of AIX, it might be installed locally.
11124 ac_getloadavg_LIBS=$LIBS 18592 ac_getloadavg_LIBS=$LIBS
11125 LIBS="-L/usr/local/lib $LIBS" 18593 LIBS="-L/usr/local/lib $LIBS"
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 18594 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11127$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } 18595$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11128if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then : 18596if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11129 $as_echo_n "(cached) " >&6 18597 $as_echo_n "(cached) " >&6
11130else 18598else
11131 ac_check_lib_save_LIBS=$LIBS 18599 ac_check_lib_save_LIBS=$LIBS
11132LIBS="-lgetloadavg $LIBS" 18600LIBS="-lgetloadavg $LIBS"
11133cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18601cat >conftest.$ac_ext <<_ACEOF
18602/* confdefs.h. */
18603_ACEOF
18604cat confdefs.h >>conftest.$ac_ext
18605cat >>conftest.$ac_ext <<_ACEOF
11134/* end confdefs.h. */ 18606/* end confdefs.h. */
11135 18607
11136/* Override any GCC internal prototype to avoid an error. 18608/* Override any GCC internal prototype to avoid an error.
@@ -11148,18 +18620,43 @@ return getloadavg ();
11148 return 0; 18620 return 0;
11149} 18621}
11150_ACEOF 18622_ACEOF
11151if ac_fn_c_try_link "$LINENO"; then : 18623rm -f conftest.$ac_objext conftest$ac_exeext
18624if { (ac_try="$ac_link"
18625case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18628esac
18629eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18630$as_echo "$ac_try_echo") >&5
18631 (eval "$ac_link") 2>conftest.er1
18632 ac_status=$?
18633 grep -v '^ *+' conftest.er1 >conftest.err
18634 rm -f conftest.er1
18635 cat conftest.err >&5
18636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18637 (exit $ac_status); } && {
18638 test -z "$ac_c_werror_flag" ||
18639 test ! -s conftest.err
18640 } && test -s conftest$ac_exeext && {
18641 test "$cross_compiling" = yes ||
18642 $as_test_x conftest$ac_exeext
18643 }; then
11152 ac_cv_lib_getloadavg_getloadavg=yes 18644 ac_cv_lib_getloadavg_getloadavg=yes
11153else 18645else
11154 ac_cv_lib_getloadavg_getloadavg=no 18646 $as_echo "$as_me: failed program was:" >&5
18647sed 's/^/| /' conftest.$ac_ext >&5
18648
18649 ac_cv_lib_getloadavg_getloadavg=no
11155fi 18650fi
11156rm -f core conftest.err conftest.$ac_objext \ 18651
11157 conftest$ac_exeext conftest.$ac_ext 18652rm -rf conftest.dSYM
18653rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18654 conftest$ac_exeext conftest.$ac_ext
11158LIBS=$ac_check_lib_save_LIBS 18655LIBS=$ac_check_lib_save_LIBS
11159fi 18656fi
11160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 18657{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11161$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } 18658$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11162if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then : 18659if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11163 LIBS="-lgetloadavg $LIBS" 18660 LIBS="-lgetloadavg $LIBS"
11164else 18661else
11165 LIBS=$ac_getloadavg_LIBS 18662 LIBS=$ac_getloadavg_LIBS
@@ -11169,12 +18666,101 @@ fi
11169 18666
11170# Make sure it is really in the library, if we think we found it, 18667# Make sure it is really in the library, if we think we found it,
11171# otherwise set up the replacement function. 18668# otherwise set up the replacement function.
18669
11172for ac_func in getloadavg 18670for ac_func in getloadavg
11173do : 18671do
11174 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 18672as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11175if test "x$ac_cv_func_getloadavg" = x""yes; then : 18673{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18674$as_echo_n "checking for $ac_func... " >&6; }
18675if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18676 $as_echo_n "(cached) " >&6
18677else
18678 cat >conftest.$ac_ext <<_ACEOF
18679/* confdefs.h. */
18680_ACEOF
18681cat confdefs.h >>conftest.$ac_ext
18682cat >>conftest.$ac_ext <<_ACEOF
18683/* end confdefs.h. */
18684/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18685 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18686#define $ac_func innocuous_$ac_func
18687
18688/* System header to define __stub macros and hopefully few prototypes,
18689 which can conflict with char $ac_func (); below.
18690 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18691 <limits.h> exists even on freestanding compilers. */
18692
18693#ifdef __STDC__
18694# include <limits.h>
18695#else
18696# include <assert.h>
18697#endif
18698
18699#undef $ac_func
18700
18701/* Override any GCC internal prototype to avoid an error.
18702 Use char because int might match the return type of a GCC
18703 builtin and then its argument prototype would still apply. */
18704#ifdef __cplusplus
18705extern "C"
18706#endif
18707char $ac_func ();
18708/* The GNU C library defines this for functions which it implements
18709 to always fail with ENOSYS. Some functions are actually named
18710 something starting with __ and the normal name is an alias. */
18711#if defined __stub_$ac_func || defined __stub___$ac_func
18712choke me
18713#endif
18714
18715int
18716main ()
18717{
18718return $ac_func ();
18719 ;
18720 return 0;
18721}
18722_ACEOF
18723rm -f conftest.$ac_objext conftest$ac_exeext
18724if { (ac_try="$ac_link"
18725case "(($ac_try" in
18726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18727 *) ac_try_echo=$ac_try;;
18728esac
18729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18730$as_echo "$ac_try_echo") >&5
18731 (eval "$ac_link") 2>conftest.er1
18732 ac_status=$?
18733 grep -v '^ *+' conftest.er1 >conftest.err
18734 rm -f conftest.er1
18735 cat conftest.err >&5
18736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18737 (exit $ac_status); } && {
18738 test -z "$ac_c_werror_flag" ||
18739 test ! -s conftest.err
18740 } && test -s conftest$ac_exeext && {
18741 test "$cross_compiling" = yes ||
18742 $as_test_x conftest$ac_exeext
18743 }; then
18744 eval "$as_ac_var=yes"
18745else
18746 $as_echo "$as_me: failed program was:" >&5
18747sed 's/^/| /' conftest.$ac_ext >&5
18748
18749 eval "$as_ac_var=no"
18750fi
18751
18752rm -rf conftest.dSYM
18753rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18754 conftest$ac_exeext conftest.$ac_ext
18755fi
18756ac_res=`eval 'as_val=${'$as_ac_var'}
18757 $as_echo "$as_val"'`
18758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18759$as_echo "$ac_res" >&6; }
18760if test `eval 'as_val=${'$as_ac_var'}
18761 $as_echo "$as_val"'` = yes; then
11176 cat >>confdefs.h <<_ACEOF 18762 cat >>confdefs.h <<_ACEOF
11177#define HAVE_GETLOADAVG 1 18763#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11178_ACEOF 18764_ACEOF
11179 18765
11180else 18766else
@@ -11185,24 +18771,159 @@ else
11185esac 18771esac
11186 18772
11187 18773
11188$as_echo "#define C_GETLOADAVG 1" >>confdefs.h 18774cat >>confdefs.h <<\_ACEOF
18775#define C_GETLOADAVG 1
18776_ACEOF
11189 18777
11190# Figure out what our getloadavg.c needs. 18778# Figure out what our getloadavg.c needs.
11191ac_have_func=no 18779ac_have_func=no
11192ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" 18780if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11193if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then : 18781 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18782$as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18783if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18784 $as_echo_n "(cached) " >&6
18785fi
18786{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18787$as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18788else
18789 # Is the header compilable?
18790{ $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18791$as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18792cat >conftest.$ac_ext <<_ACEOF
18793/* confdefs.h. */
18794_ACEOF
18795cat confdefs.h >>conftest.$ac_ext
18796cat >>conftest.$ac_ext <<_ACEOF
18797/* end confdefs.h. */
18798$ac_includes_default
18799#include <sys/dg_sys_info.h>
18800_ACEOF
18801rm -f conftest.$ac_objext
18802if { (ac_try="$ac_compile"
18803case "(($ac_try" in
18804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805 *) ac_try_echo=$ac_try;;
18806esac
18807eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18808$as_echo "$ac_try_echo") >&5
18809 (eval "$ac_compile") 2>conftest.er1
18810 ac_status=$?
18811 grep -v '^ *+' conftest.er1 >conftest.err
18812 rm -f conftest.er1
18813 cat conftest.err >&5
18814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18815 (exit $ac_status); } && {
18816 test -z "$ac_c_werror_flag" ||
18817 test ! -s conftest.err
18818 } && test -s conftest.$ac_objext; then
18819 ac_header_compiler=yes
18820else
18821 $as_echo "$as_me: failed program was:" >&5
18822sed 's/^/| /' conftest.$ac_ext >&5
18823
18824 ac_header_compiler=no
18825fi
18826
18827rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18828{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18829$as_echo "$ac_header_compiler" >&6; }
18830
18831# Is the header present?
18832{ $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18833$as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18834cat >conftest.$ac_ext <<_ACEOF
18835/* confdefs.h. */
18836_ACEOF
18837cat confdefs.h >>conftest.$ac_ext
18838cat >>conftest.$ac_ext <<_ACEOF
18839/* end confdefs.h. */
18840#include <sys/dg_sys_info.h>
18841_ACEOF
18842if { (ac_try="$ac_cpp conftest.$ac_ext"
18843case "(($ac_try" in
18844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18845 *) ac_try_echo=$ac_try;;
18846esac
18847eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18848$as_echo "$ac_try_echo") >&5
18849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18850 ac_status=$?
18851 grep -v '^ *+' conftest.er1 >conftest.err
18852 rm -f conftest.er1
18853 cat conftest.err >&5
18854 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18855 (exit $ac_status); } >/dev/null && {
18856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18857 test ! -s conftest.err
18858 }; then
18859 ac_header_preproc=yes
18860else
18861 $as_echo "$as_me: failed program was:" >&5
18862sed 's/^/| /' conftest.$ac_ext >&5
18863
18864 ac_header_preproc=no
18865fi
18866
18867rm -f conftest.err conftest.$ac_ext
18868{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18869$as_echo "$ac_header_preproc" >&6; }
18870
18871# So? What about this header?
18872case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18873 yes:no: )
18874 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18875$as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18876 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18877$as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18878 ac_header_preproc=yes
18879 ;;
18880 no:yes:* )
18881 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18882$as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18883 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18884$as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18885 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18886$as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18887 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18888$as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18889 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18890$as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18891 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18892$as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18893
18894 ;;
18895esac
18896{ $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18897$as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18898if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18899 $as_echo_n "(cached) " >&6
18900else
18901 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18902fi
18903{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18904$as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18905
18906fi
18907if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11194 ac_have_func=yes 18908 ac_have_func=yes
11195 18909
11196$as_echo "#define DGUX 1" >>confdefs.h 18910cat >>confdefs.h <<\_ACEOF
18911#define DGUX 1
18912_ACEOF
18913
11197 18914
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 18915{ $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11199$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } 18916$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11200if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then : 18917if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11201 $as_echo_n "(cached) " >&6 18918 $as_echo_n "(cached) " >&6
11202else 18919else
11203 ac_check_lib_save_LIBS=$LIBS 18920 ac_check_lib_save_LIBS=$LIBS
11204LIBS="-ldgc $LIBS" 18921LIBS="-ldgc $LIBS"
11205cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18922cat >conftest.$ac_ext <<_ACEOF
18923/* confdefs.h. */
18924_ACEOF
18925cat confdefs.h >>conftest.$ac_ext
18926cat >>conftest.$ac_ext <<_ACEOF
11206/* end confdefs.h. */ 18927/* end confdefs.h. */
11207 18928
11208/* Override any GCC internal prototype to avoid an error. 18929/* Override any GCC internal prototype to avoid an error.
@@ -11220,18 +18941,43 @@ return dg_sys_info ();
11220 return 0; 18941 return 0;
11221} 18942}
11222_ACEOF 18943_ACEOF
11223if ac_fn_c_try_link "$LINENO"; then : 18944rm -f conftest.$ac_objext conftest$ac_exeext
18945if { (ac_try="$ac_link"
18946case "(($ac_try" in
18947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18948 *) ac_try_echo=$ac_try;;
18949esac
18950eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18951$as_echo "$ac_try_echo") >&5
18952 (eval "$ac_link") 2>conftest.er1
18953 ac_status=$?
18954 grep -v '^ *+' conftest.er1 >conftest.err
18955 rm -f conftest.er1
18956 cat conftest.err >&5
18957 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18958 (exit $ac_status); } && {
18959 test -z "$ac_c_werror_flag" ||
18960 test ! -s conftest.err
18961 } && test -s conftest$ac_exeext && {
18962 test "$cross_compiling" = yes ||
18963 $as_test_x conftest$ac_exeext
18964 }; then
11224 ac_cv_lib_dgc_dg_sys_info=yes 18965 ac_cv_lib_dgc_dg_sys_info=yes
11225else 18966else
11226 ac_cv_lib_dgc_dg_sys_info=no 18967 $as_echo "$as_me: failed program was:" >&5
18968sed 's/^/| /' conftest.$ac_ext >&5
18969
18970 ac_cv_lib_dgc_dg_sys_info=no
11227fi 18971fi
11228rm -f core conftest.err conftest.$ac_objext \ 18972
11229 conftest$ac_exeext conftest.$ac_ext 18973rm -rf conftest.dSYM
18974rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18975 conftest$ac_exeext conftest.$ac_ext
11230LIBS=$ac_check_lib_save_LIBS 18976LIBS=$ac_check_lib_save_LIBS
11231fi 18977fi
11232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 18978{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11233$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } 18979$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11234if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then : 18980if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11235 cat >>confdefs.h <<_ACEOF 18981 cat >>confdefs.h <<_ACEOF
11236#define HAVE_LIBDGC 1 18982#define HAVE_LIBDGC 1
11237_ACEOF 18983_ACEOF
@@ -11244,18 +18990,230 @@ fi
11244 18990
11245 18991
11246 18992
11247ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 18993if test "${ac_cv_header_locale_h+set}" = set; then
11248if test "x$ac_cv_header_locale_h" = x""yes; then : 18994 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
18995$as_echo_n "checking for locale.h... " >&6; }
18996if test "${ac_cv_header_locale_h+set}" = set; then
18997 $as_echo_n "(cached) " >&6
18998fi
18999{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19000$as_echo "$ac_cv_header_locale_h" >&6; }
19001else
19002 # Is the header compilable?
19003{ $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19004$as_echo_n "checking locale.h usability... " >&6; }
19005cat >conftest.$ac_ext <<_ACEOF
19006/* confdefs.h. */
19007_ACEOF
19008cat confdefs.h >>conftest.$ac_ext
19009cat >>conftest.$ac_ext <<_ACEOF
19010/* end confdefs.h. */
19011$ac_includes_default
19012#include <locale.h>
19013_ACEOF
19014rm -f conftest.$ac_objext
19015if { (ac_try="$ac_compile"
19016case "(($ac_try" in
19017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19018 *) ac_try_echo=$ac_try;;
19019esac
19020eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19021$as_echo "$ac_try_echo") >&5
19022 (eval "$ac_compile") 2>conftest.er1
19023 ac_status=$?
19024 grep -v '^ *+' conftest.er1 >conftest.err
19025 rm -f conftest.er1
19026 cat conftest.err >&5
19027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19028 (exit $ac_status); } && {
19029 test -z "$ac_c_werror_flag" ||
19030 test ! -s conftest.err
19031 } && test -s conftest.$ac_objext; then
19032 ac_header_compiler=yes
19033else
19034 $as_echo "$as_me: failed program was:" >&5
19035sed 's/^/| /' conftest.$ac_ext >&5
19036
19037 ac_header_compiler=no
19038fi
19039
19040rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19041{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19042$as_echo "$ac_header_compiler" >&6; }
19043
19044# Is the header present?
19045{ $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19046$as_echo_n "checking locale.h presence... " >&6; }
19047cat >conftest.$ac_ext <<_ACEOF
19048/* confdefs.h. */
19049_ACEOF
19050cat confdefs.h >>conftest.$ac_ext
19051cat >>conftest.$ac_ext <<_ACEOF
19052/* end confdefs.h. */
19053#include <locale.h>
19054_ACEOF
19055if { (ac_try="$ac_cpp conftest.$ac_ext"
19056case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059esac
19060eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19061$as_echo "$ac_try_echo") >&5
19062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19063 ac_status=$?
19064 grep -v '^ *+' conftest.er1 >conftest.err
19065 rm -f conftest.er1
19066 cat conftest.err >&5
19067 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19068 (exit $ac_status); } >/dev/null && {
19069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19070 test ! -s conftest.err
19071 }; then
19072 ac_header_preproc=yes
19073else
19074 $as_echo "$as_me: failed program was:" >&5
19075sed 's/^/| /' conftest.$ac_ext >&5
19076
19077 ac_header_preproc=no
19078fi
19079
19080rm -f conftest.err conftest.$ac_ext
19081{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19082$as_echo "$ac_header_preproc" >&6; }
19083
19084# So? What about this header?
19085case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19086 yes:no: )
19087 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19088$as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19089 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19090$as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19091 ac_header_preproc=yes
19092 ;;
19093 no:yes:* )
19094 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19095$as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19096 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19097$as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19098 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19099$as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19100 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19101$as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19102 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19103$as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19104 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19105$as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19106
19107 ;;
19108esac
19109{ $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19110$as_echo_n "checking for locale.h... " >&6; }
19111if test "${ac_cv_header_locale_h+set}" = set; then
19112 $as_echo_n "(cached) " >&6
19113else
19114 ac_cv_header_locale_h=$ac_header_preproc
19115fi
19116{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19117$as_echo "$ac_cv_header_locale_h" >&6; }
11249 19118
11250fi 19119fi
11251 19120
11252 19121
19122
11253for ac_func in setlocale 19123for ac_func in setlocale
11254do : 19124do
11255 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 19125as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11256if test "x$ac_cv_func_setlocale" = x""yes; then : 19126{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19127$as_echo_n "checking for $ac_func... " >&6; }
19128if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19129 $as_echo_n "(cached) " >&6
19130else
19131 cat >conftest.$ac_ext <<_ACEOF
19132/* confdefs.h. */
19133_ACEOF
19134cat confdefs.h >>conftest.$ac_ext
19135cat >>conftest.$ac_ext <<_ACEOF
19136/* end confdefs.h. */
19137/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19139#define $ac_func innocuous_$ac_func
19140
19141/* System header to define __stub macros and hopefully few prototypes,
19142 which can conflict with char $ac_func (); below.
19143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19144 <limits.h> exists even on freestanding compilers. */
19145
19146#ifdef __STDC__
19147# include <limits.h>
19148#else
19149# include <assert.h>
19150#endif
19151
19152#undef $ac_func
19153
19154/* Override any GCC internal prototype to avoid an error.
19155 Use char because int might match the return type of a GCC
19156 builtin and then its argument prototype would still apply. */
19157#ifdef __cplusplus
19158extern "C"
19159#endif
19160char $ac_func ();
19161/* The GNU C library defines this for functions which it implements
19162 to always fail with ENOSYS. Some functions are actually named
19163 something starting with __ and the normal name is an alias. */
19164#if defined __stub_$ac_func || defined __stub___$ac_func
19165choke me
19166#endif
19167
19168int
19169main ()
19170{
19171return $ac_func ();
19172 ;
19173 return 0;
19174}
19175_ACEOF
19176rm -f conftest.$ac_objext conftest$ac_exeext
19177if { (ac_try="$ac_link"
19178case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19181esac
19182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19183$as_echo "$ac_try_echo") >&5
19184 (eval "$ac_link") 2>conftest.er1
19185 ac_status=$?
19186 grep -v '^ *+' conftest.er1 >conftest.err
19187 rm -f conftest.er1
19188 cat conftest.err >&5
19189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } && {
19191 test -z "$ac_c_werror_flag" ||
19192 test ! -s conftest.err
19193 } && test -s conftest$ac_exeext && {
19194 test "$cross_compiling" = yes ||
19195 $as_test_x conftest$ac_exeext
19196 }; then
19197 eval "$as_ac_var=yes"
19198else
19199 $as_echo "$as_me: failed program was:" >&5
19200sed 's/^/| /' conftest.$ac_ext >&5
19201
19202 eval "$as_ac_var=no"
19203fi
19204
19205rm -rf conftest.dSYM
19206rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19207 conftest$ac_exeext conftest.$ac_ext
19208fi
19209ac_res=`eval 'as_val=${'$as_ac_var'}
19210 $as_echo "$as_val"'`
19211 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19212$as_echo "$ac_res" >&6; }
19213if test `eval 'as_val=${'$as_ac_var'}
19214 $as_echo "$as_val"'` = yes; then
11257 cat >>confdefs.h <<_ACEOF 19215 cat >>confdefs.h <<_ACEOF
11258#define HAVE_SETLOCALE 1 19216#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11259_ACEOF 19217_ACEOF
11260 19218
11261fi 19219fi
@@ -11268,19 +19226,151 @@ done
11268if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then 19226if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11269 ac_have_func=yes 19227 ac_have_func=yes
11270 19228
11271$as_echo "#define SVR4 1" >>confdefs.h 19229cat >>confdefs.h <<\_ACEOF
19230#define SVR4 1
19231_ACEOF
11272 19232
11273fi 19233fi
11274 19234
11275if test $ac_have_func = no; then 19235if test $ac_have_func = no; then
11276 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" 19236 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11277if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then : 19237 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19238$as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19239if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19240 $as_echo_n "(cached) " >&6
19241fi
19242{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19243$as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19244else
19245 # Is the header compilable?
19246{ $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19247$as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19248cat >conftest.$ac_ext <<_ACEOF
19249/* confdefs.h. */
19250_ACEOF
19251cat confdefs.h >>conftest.$ac_ext
19252cat >>conftest.$ac_ext <<_ACEOF
19253/* end confdefs.h. */
19254$ac_includes_default
19255#include <inq_stats/cpustats.h>
19256_ACEOF
19257rm -f conftest.$ac_objext
19258if { (ac_try="$ac_compile"
19259case "(($ac_try" in
19260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19261 *) ac_try_echo=$ac_try;;
19262esac
19263eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19264$as_echo "$ac_try_echo") >&5
19265 (eval "$ac_compile") 2>conftest.er1
19266 ac_status=$?
19267 grep -v '^ *+' conftest.er1 >conftest.err
19268 rm -f conftest.er1
19269 cat conftest.err >&5
19270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19271 (exit $ac_status); } && {
19272 test -z "$ac_c_werror_flag" ||
19273 test ! -s conftest.err
19274 } && test -s conftest.$ac_objext; then
19275 ac_header_compiler=yes
19276else
19277 $as_echo "$as_me: failed program was:" >&5
19278sed 's/^/| /' conftest.$ac_ext >&5
19279
19280 ac_header_compiler=no
19281fi
19282
19283rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19284{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19285$as_echo "$ac_header_compiler" >&6; }
19286
19287# Is the header present?
19288{ $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19289$as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19290cat >conftest.$ac_ext <<_ACEOF
19291/* confdefs.h. */
19292_ACEOF
19293cat confdefs.h >>conftest.$ac_ext
19294cat >>conftest.$ac_ext <<_ACEOF
19295/* end confdefs.h. */
19296#include <inq_stats/cpustats.h>
19297_ACEOF
19298if { (ac_try="$ac_cpp conftest.$ac_ext"
19299case "(($ac_try" in
19300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19301 *) ac_try_echo=$ac_try;;
19302esac
19303eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19304$as_echo "$ac_try_echo") >&5
19305 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19306 ac_status=$?
19307 grep -v '^ *+' conftest.er1 >conftest.err
19308 rm -f conftest.er1
19309 cat conftest.err >&5
19310 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19311 (exit $ac_status); } >/dev/null && {
19312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19313 test ! -s conftest.err
19314 }; then
19315 ac_header_preproc=yes
19316else
19317 $as_echo "$as_me: failed program was:" >&5
19318sed 's/^/| /' conftest.$ac_ext >&5
19319
19320 ac_header_preproc=no
19321fi
19322
19323rm -f conftest.err conftest.$ac_ext
19324{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19325$as_echo "$ac_header_preproc" >&6; }
19326
19327# So? What about this header?
19328case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19329 yes:no: )
19330 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19331$as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19332 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19333$as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19334 ac_header_preproc=yes
19335 ;;
19336 no:yes:* )
19337 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19338$as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19339 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19340$as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19341 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19342$as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19343 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19344$as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19345 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19346$as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19347 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19348$as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19349
19350 ;;
19351esac
19352{ $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19353$as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19354if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19355 $as_echo_n "(cached) " >&6
19356else
19357 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19358fi
19359{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19360$as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19361
19362fi
19363if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11278 ac_have_func=yes 19364 ac_have_func=yes
11279 19365
11280$as_echo "#define UMAX 1" >>confdefs.h 19366cat >>confdefs.h <<\_ACEOF
19367#define UMAX 1
19368_ACEOF
11281 19369
11282 19370
11283$as_echo "#define UMAX4_3 1" >>confdefs.h 19371cat >>confdefs.h <<\_ACEOF
19372#define UMAX4_3 1
19373_ACEOF
11284 19374
11285fi 19375fi
11286 19376
@@ -11288,9 +19378,137 @@ fi
11288fi 19378fi
11289 19379
11290if test $ac_have_func = no; then 19380if test $ac_have_func = no; then
11291 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" 19381 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11292if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then : 19382 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11293 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h 19383$as_echo_n "checking for sys/cpustats.h... " >&6; }
19384if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19385 $as_echo_n "(cached) " >&6
19386fi
19387{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19388$as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19389else
19390 # Is the header compilable?
19391{ $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19392$as_echo_n "checking sys/cpustats.h usability... " >&6; }
19393cat >conftest.$ac_ext <<_ACEOF
19394/* confdefs.h. */
19395_ACEOF
19396cat confdefs.h >>conftest.$ac_ext
19397cat >>conftest.$ac_ext <<_ACEOF
19398/* end confdefs.h. */
19399$ac_includes_default
19400#include <sys/cpustats.h>
19401_ACEOF
19402rm -f conftest.$ac_objext
19403if { (ac_try="$ac_compile"
19404case "(($ac_try" in
19405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19406 *) ac_try_echo=$ac_try;;
19407esac
19408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19409$as_echo "$ac_try_echo") >&5
19410 (eval "$ac_compile") 2>conftest.er1
19411 ac_status=$?
19412 grep -v '^ *+' conftest.er1 >conftest.err
19413 rm -f conftest.er1
19414 cat conftest.err >&5
19415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19416 (exit $ac_status); } && {
19417 test -z "$ac_c_werror_flag" ||
19418 test ! -s conftest.err
19419 } && test -s conftest.$ac_objext; then
19420 ac_header_compiler=yes
19421else
19422 $as_echo "$as_me: failed program was:" >&5
19423sed 's/^/| /' conftest.$ac_ext >&5
19424
19425 ac_header_compiler=no
19426fi
19427
19428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19429{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19430$as_echo "$ac_header_compiler" >&6; }
19431
19432# Is the header present?
19433{ $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19434$as_echo_n "checking sys/cpustats.h presence... " >&6; }
19435cat >conftest.$ac_ext <<_ACEOF
19436/* confdefs.h. */
19437_ACEOF
19438cat confdefs.h >>conftest.$ac_ext
19439cat >>conftest.$ac_ext <<_ACEOF
19440/* end confdefs.h. */
19441#include <sys/cpustats.h>
19442_ACEOF
19443if { (ac_try="$ac_cpp conftest.$ac_ext"
19444case "(($ac_try" in
19445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19446 *) ac_try_echo=$ac_try;;
19447esac
19448eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19449$as_echo "$ac_try_echo") >&5
19450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19451 ac_status=$?
19452 grep -v '^ *+' conftest.er1 >conftest.err
19453 rm -f conftest.er1
19454 cat conftest.err >&5
19455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19456 (exit $ac_status); } >/dev/null && {
19457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19458 test ! -s conftest.err
19459 }; then
19460 ac_header_preproc=yes
19461else
19462 $as_echo "$as_me: failed program was:" >&5
19463sed 's/^/| /' conftest.$ac_ext >&5
19464
19465 ac_header_preproc=no
19466fi
19467
19468rm -f conftest.err conftest.$ac_ext
19469{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19470$as_echo "$ac_header_preproc" >&6; }
19471
19472# So? What about this header?
19473case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19474 yes:no: )
19475 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19476$as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19477 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19478$as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19479 ac_header_preproc=yes
19480 ;;
19481 no:yes:* )
19482 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19483$as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19484 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19485$as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19486 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19487$as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19488 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19489$as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19490 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19491$as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19492 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19493$as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19494
19495 ;;
19496esac
19497{ $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19498$as_echo_n "checking for sys/cpustats.h... " >&6; }
19499if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19500 $as_echo_n "(cached) " >&6
19501else
19502 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19503fi
19504{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19505$as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19506
19507fi
19508if test $ac_cv_header_sys_cpustats_h = yes; then
19509 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19510#define UMAX 1
19511_ACEOF
11294 19512
11295fi 19513fi
11296 19514
@@ -11298,12 +19516,145 @@ fi
11298fi 19516fi
11299 19517
11300if test $ac_have_func = no; then 19518if test $ac_have_func = no; then
11301 for ac_header in mach/mach.h 19519
11302do : 19520for ac_header in mach/mach.h
11303 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" 19521do
11304if test "x$ac_cv_header_mach_mach_h" = x""yes; then : 19522as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19523if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19524 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19525$as_echo_n "checking for $ac_header... " >&6; }
19526if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19527 $as_echo_n "(cached) " >&6
19528fi
19529ac_res=`eval 'as_val=${'$as_ac_Header'}
19530 $as_echo "$as_val"'`
19531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19532$as_echo "$ac_res" >&6; }
19533else
19534 # Is the header compilable?
19535{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19536$as_echo_n "checking $ac_header usability... " >&6; }
19537cat >conftest.$ac_ext <<_ACEOF
19538/* confdefs.h. */
19539_ACEOF
19540cat confdefs.h >>conftest.$ac_ext
19541cat >>conftest.$ac_ext <<_ACEOF
19542/* end confdefs.h. */
19543$ac_includes_default
19544#include <$ac_header>
19545_ACEOF
19546rm -f conftest.$ac_objext
19547if { (ac_try="$ac_compile"
19548case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19551esac
19552eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19553$as_echo "$ac_try_echo") >&5
19554 (eval "$ac_compile") 2>conftest.er1
19555 ac_status=$?
19556 grep -v '^ *+' conftest.er1 >conftest.err
19557 rm -f conftest.er1
19558 cat conftest.err >&5
19559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19560 (exit $ac_status); } && {
19561 test -z "$ac_c_werror_flag" ||
19562 test ! -s conftest.err
19563 } && test -s conftest.$ac_objext; then
19564 ac_header_compiler=yes
19565else
19566 $as_echo "$as_me: failed program was:" >&5
19567sed 's/^/| /' conftest.$ac_ext >&5
19568
19569 ac_header_compiler=no
19570fi
19571
19572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19573{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19574$as_echo "$ac_header_compiler" >&6; }
19575
19576# Is the header present?
19577{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19578$as_echo_n "checking $ac_header presence... " >&6; }
19579cat >conftest.$ac_ext <<_ACEOF
19580/* confdefs.h. */
19581_ACEOF
19582cat confdefs.h >>conftest.$ac_ext
19583cat >>conftest.$ac_ext <<_ACEOF
19584/* end confdefs.h. */
19585#include <$ac_header>
19586_ACEOF
19587if { (ac_try="$ac_cpp conftest.$ac_ext"
19588case "(($ac_try" in
19589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19590 *) ac_try_echo=$ac_try;;
19591esac
19592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19593$as_echo "$ac_try_echo") >&5
19594 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19595 ac_status=$?
19596 grep -v '^ *+' conftest.er1 >conftest.err
19597 rm -f conftest.er1
19598 cat conftest.err >&5
19599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19600 (exit $ac_status); } >/dev/null && {
19601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19602 test ! -s conftest.err
19603 }; then
19604 ac_header_preproc=yes
19605else
19606 $as_echo "$as_me: failed program was:" >&5
19607sed 's/^/| /' conftest.$ac_ext >&5
19608
19609 ac_header_preproc=no
19610fi
19611
19612rm -f conftest.err conftest.$ac_ext
19613{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19614$as_echo "$ac_header_preproc" >&6; }
19615
19616# So? What about this header?
19617case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19618 yes:no: )
19619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19620$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19622$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19623 ac_header_preproc=yes
19624 ;;
19625 no:yes:* )
19626 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19627$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19628 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19629$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19630 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19631$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19633$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19635$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19636 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19637$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19638
19639 ;;
19640esac
19641{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19642$as_echo_n "checking for $ac_header... " >&6; }
19643if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19644 $as_echo_n "(cached) " >&6
19645else
19646 eval "$as_ac_Header=\$ac_header_preproc"
19647fi
19648ac_res=`eval 'as_val=${'$as_ac_Header'}
19649 $as_echo "$as_val"'`
19650 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19651$as_echo "$ac_res" >&6; }
19652
19653fi
19654if test `eval 'as_val=${'$as_ac_Header'}
19655 $as_echo "$as_val"'` = yes; then
11305 cat >>confdefs.h <<_ACEOF 19656 cat >>confdefs.h <<_ACEOF
11306#define HAVE_MACH_MACH_H 1 19657#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11307_ACEOF 19658_ACEOF
11308 19659
11309fi 19660fi
@@ -11312,23 +19663,253 @@ done
11312 19663
11313fi 19664fi
11314 19665
19666
11315for ac_header in nlist.h 19667for ac_header in nlist.h
11316do : 19668do
11317 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" 19669as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11318if test "x$ac_cv_header_nlist_h" = x""yes; then : 19670if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19671 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19672$as_echo_n "checking for $ac_header... " >&6; }
19673if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19674 $as_echo_n "(cached) " >&6
19675fi
19676ac_res=`eval 'as_val=${'$as_ac_Header'}
19677 $as_echo "$as_val"'`
19678 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19679$as_echo "$ac_res" >&6; }
19680else
19681 # Is the header compilable?
19682{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19683$as_echo_n "checking $ac_header usability... " >&6; }
19684cat >conftest.$ac_ext <<_ACEOF
19685/* confdefs.h. */
19686_ACEOF
19687cat confdefs.h >>conftest.$ac_ext
19688cat >>conftest.$ac_ext <<_ACEOF
19689/* end confdefs.h. */
19690$ac_includes_default
19691#include <$ac_header>
19692_ACEOF
19693rm -f conftest.$ac_objext
19694if { (ac_try="$ac_compile"
19695case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19698esac
19699eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19700$as_echo "$ac_try_echo") >&5
19701 (eval "$ac_compile") 2>conftest.er1
19702 ac_status=$?
19703 grep -v '^ *+' conftest.er1 >conftest.err
19704 rm -f conftest.er1
19705 cat conftest.err >&5
19706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } && {
19708 test -z "$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 } && test -s conftest.$ac_objext; then
19711 ac_header_compiler=yes
19712else
19713 $as_echo "$as_me: failed program was:" >&5
19714sed 's/^/| /' conftest.$ac_ext >&5
19715
19716 ac_header_compiler=no
19717fi
19718
19719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19720{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19721$as_echo "$ac_header_compiler" >&6; }
19722
19723# Is the header present?
19724{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19725$as_echo_n "checking $ac_header presence... " >&6; }
19726cat >conftest.$ac_ext <<_ACEOF
19727/* confdefs.h. */
19728_ACEOF
19729cat confdefs.h >>conftest.$ac_ext
19730cat >>conftest.$ac_ext <<_ACEOF
19731/* end confdefs.h. */
19732#include <$ac_header>
19733_ACEOF
19734if { (ac_try="$ac_cpp conftest.$ac_ext"
19735case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19738esac
19739eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19740$as_echo "$ac_try_echo") >&5
19741 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19742 ac_status=$?
19743 grep -v '^ *+' conftest.er1 >conftest.err
19744 rm -f conftest.er1
19745 cat conftest.err >&5
19746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); } >/dev/null && {
19748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19749 test ! -s conftest.err
19750 }; then
19751 ac_header_preproc=yes
19752else
19753 $as_echo "$as_me: failed program was:" >&5
19754sed 's/^/| /' conftest.$ac_ext >&5
19755
19756 ac_header_preproc=no
19757fi
19758
19759rm -f conftest.err conftest.$ac_ext
19760{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19761$as_echo "$ac_header_preproc" >&6; }
19762
19763# So? What about this header?
19764case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19765 yes:no: )
19766 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19767$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19768 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19769$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19770 ac_header_preproc=yes
19771 ;;
19772 no:yes:* )
19773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19774$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19776$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19778$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19780$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19782$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19784$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19785
19786 ;;
19787esac
19788{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19789$as_echo_n "checking for $ac_header... " >&6; }
19790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19791 $as_echo_n "(cached) " >&6
19792else
19793 eval "$as_ac_Header=\$ac_header_preproc"
19794fi
19795ac_res=`eval 'as_val=${'$as_ac_Header'}
19796 $as_echo "$as_val"'`
19797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19798$as_echo "$ac_res" >&6; }
19799
19800fi
19801if test `eval 'as_val=${'$as_ac_Header'}
19802 $as_echo "$as_val"'` = yes; then
11319 cat >>confdefs.h <<_ACEOF 19803 cat >>confdefs.h <<_ACEOF
11320#define HAVE_NLIST_H 1 19804#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11321_ACEOF 19805_ACEOF
11322 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h> 19806 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
11323" 19807$as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
11324if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then : 19808if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19809 $as_echo_n "(cached) " >&6
19810else
19811 cat >conftest.$ac_ext <<_ACEOF
19812/* confdefs.h. */
19813_ACEOF
19814cat confdefs.h >>conftest.$ac_ext
19815cat >>conftest.$ac_ext <<_ACEOF
19816/* end confdefs.h. */
19817#include <nlist.h>
19818
19819int
19820main ()
19821{
19822static struct nlist ac_aggr;
19823if (ac_aggr.n_un.n_name)
19824return 0;
19825 ;
19826 return 0;
19827}
19828_ACEOF
19829rm -f conftest.$ac_objext
19830if { (ac_try="$ac_compile"
19831case "(($ac_try" in
19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19834esac
19835eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19836$as_echo "$ac_try_echo") >&5
19837 (eval "$ac_compile") 2>conftest.er1
19838 ac_status=$?
19839 grep -v '^ *+' conftest.er1 >conftest.err
19840 rm -f conftest.er1
19841 cat conftest.err >&5
19842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19843 (exit $ac_status); } && {
19844 test -z "$ac_c_werror_flag" ||
19845 test ! -s conftest.err
19846 } && test -s conftest.$ac_objext; then
19847 ac_cv_member_struct_nlist_n_un_n_name=yes
19848else
19849 $as_echo "$as_me: failed program was:" >&5
19850sed 's/^/| /' conftest.$ac_ext >&5
19851
19852 cat >conftest.$ac_ext <<_ACEOF
19853/* confdefs.h. */
19854_ACEOF
19855cat confdefs.h >>conftest.$ac_ext
19856cat >>conftest.$ac_ext <<_ACEOF
19857/* end confdefs.h. */
19858#include <nlist.h>
19859
19860int
19861main ()
19862{
19863static struct nlist ac_aggr;
19864if (sizeof ac_aggr.n_un.n_name)
19865return 0;
19866 ;
19867 return 0;
19868}
19869_ACEOF
19870rm -f conftest.$ac_objext
19871if { (ac_try="$ac_compile"
19872case "(($ac_try" in
19873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19874 *) ac_try_echo=$ac_try;;
19875esac
19876eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19877$as_echo "$ac_try_echo") >&5
19878 (eval "$ac_compile") 2>conftest.er1
19879 ac_status=$?
19880 grep -v '^ *+' conftest.er1 >conftest.err
19881 rm -f conftest.er1
19882 cat conftest.err >&5
19883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19884 (exit $ac_status); } && {
19885 test -z "$ac_c_werror_flag" ||
19886 test ! -s conftest.err
19887 } && test -s conftest.$ac_objext; then
19888 ac_cv_member_struct_nlist_n_un_n_name=yes
19889else
19890 $as_echo "$as_me: failed program was:" >&5
19891sed 's/^/| /' conftest.$ac_ext >&5
19892
19893 ac_cv_member_struct_nlist_n_un_n_name=no
19894fi
19895
19896rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19897fi
19898
19899rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19900fi
19901{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19902$as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19903if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
11325 19904
11326cat >>confdefs.h <<_ACEOF 19905cat >>confdefs.h <<_ACEOF
11327#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 19906#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11328_ACEOF 19907_ACEOF
11329 19908
11330 19909
11331$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 19910cat >>confdefs.h <<\_ACEOF
19911#define NLIST_NAME_UNION 1
19912_ACEOF
11332 19913
11333fi 19914fi
11334 19915
@@ -11342,12 +19923,16 @@ done
11342 19923
11343 19924
11344# Some definitions of getloadavg require that the program be installed setgid. 19925# Some definitions of getloadavg require that the program be installed setgid.
11345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5 19926{ $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
11346$as_echo_n "checking whether getloadavg requires setgid... " >&6; } 19927$as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11347if test "${ac_cv_func_getloadavg_setgid+set}" = set; then : 19928if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
11348 $as_echo_n "(cached) " >&6 19929 $as_echo_n "(cached) " >&6
11349else 19930else
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19931 cat >conftest.$ac_ext <<_ACEOF
19932/* confdefs.h. */
19933_ACEOF
19934cat confdefs.h >>conftest.$ac_ext
19935cat >>conftest.$ac_ext <<_ACEOF
11351/* end confdefs.h. */ 19936/* end confdefs.h. */
11352#include "$srcdir/$ac_config_libobj_dir/getloadavg.c" 19937#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11353#ifdef LDAV_PRIVILEGED 19938#ifdef LDAV_PRIVILEGED
@@ -11355,7 +19940,7 @@ Yowza Am I SETGID yet
11355#endif 19940#endif
11356_ACEOF 19941_ACEOF
11357if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19942if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11358 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then : 19943 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
11359 ac_cv_func_getloadavg_setgid=yes 19944 ac_cv_func_getloadavg_setgid=yes
11360else 19945else
11361 ac_cv_func_getloadavg_setgid=no 19946 ac_cv_func_getloadavg_setgid=no
@@ -11363,21 +19948,23 @@ fi
11363rm -f conftest* 19948rm -f conftest*
11364 19949
11365fi 19950fi
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5 19951{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
11367$as_echo "$ac_cv_func_getloadavg_setgid" >&6; } 19952$as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11368if test $ac_cv_func_getloadavg_setgid = yes; then 19953if test $ac_cv_func_getloadavg_setgid = yes; then
11369 NEED_SETGID=true 19954 NEED_SETGID=true
11370 19955
11371$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h 19956cat >>confdefs.h <<\_ACEOF
19957#define GETLOADAVG_PRIVILEGED 1
19958_ACEOF
11372 19959
11373else 19960else
11374 NEED_SETGID=false 19961 NEED_SETGID=false
11375fi 19962fi
11376 19963
11377if test $ac_cv_func_getloadavg_setgid = yes; then 19964if test $ac_cv_func_getloadavg_setgid = yes; then
11378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5 19965 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
11379$as_echo_n "checking group of /dev/kmem... " >&6; } 19966$as_echo_n "checking group of /dev/kmem... " >&6; }
11380if test "${ac_cv_group_kmem+set}" = set; then : 19967if test "${ac_cv_group_kmem+set}" = set; then
11381 $as_echo_n "(cached) " >&6 19968 $as_echo_n "(cached) " >&6
11382else 19969else
11383 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 19970 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
@@ -11390,7 +19977,7 @@ else
11390 / /s/.* //;p;'` 19977 / /s/.* //;p;'`
11391 19978
11392fi 19979fi
11393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5 19980{ $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
11394$as_echo "$ac_cv_group_kmem" >&6; } 19981$as_echo "$ac_cv_group_kmem" >&6; }
11395 KMEM_GROUP=$ac_cv_group_kmem 19982 KMEM_GROUP=$ac_cv_group_kmem
11396fi 19983fi
@@ -11403,13 +19990,17 @@ LIBS=$ac_save_LIBS
11403 19990
11404 19991
11405 19992
11406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 19993{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11407$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 19994$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11408if test "${ac_cv_sys_largefile_source+set}" = set; then : 19995if test "${ac_cv_sys_largefile_source+set}" = set; then
11409 $as_echo_n "(cached) " >&6 19996 $as_echo_n "(cached) " >&6
11410else 19997else
11411 while :; do 19998 while :; do
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19999 cat >conftest.$ac_ext <<_ACEOF
20000/* confdefs.h. */
20001_ACEOF
20002cat confdefs.h >>conftest.$ac_ext
20003cat >>conftest.$ac_ext <<_ACEOF
11413/* end confdefs.h. */ 20004/* end confdefs.h. */
11414#include <sys/types.h> /* for off_t */ 20005#include <sys/types.h> /* for off_t */
11415 #include <stdio.h> 20006 #include <stdio.h>
@@ -11422,12 +20013,43 @@ int (*fp) (FILE *, off_t, int) = fseeko;
11422 return 0; 20013 return 0;
11423} 20014}
11424_ACEOF 20015_ACEOF
11425if ac_fn_c_try_link "$LINENO"; then : 20016rm -f conftest.$ac_objext conftest$ac_exeext
20017if { (ac_try="$ac_link"
20018case "(($ac_try" in
20019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20020 *) ac_try_echo=$ac_try;;
20021esac
20022eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20023$as_echo "$ac_try_echo") >&5
20024 (eval "$ac_link") 2>conftest.er1
20025 ac_status=$?
20026 grep -v '^ *+' conftest.er1 >conftest.err
20027 rm -f conftest.er1
20028 cat conftest.err >&5
20029 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20030 (exit $ac_status); } && {
20031 test -z "$ac_c_werror_flag" ||
20032 test ! -s conftest.err
20033 } && test -s conftest$ac_exeext && {
20034 test "$cross_compiling" = yes ||
20035 $as_test_x conftest$ac_exeext
20036 }; then
11426 ac_cv_sys_largefile_source=no; break 20037 ac_cv_sys_largefile_source=no; break
20038else
20039 $as_echo "$as_me: failed program was:" >&5
20040sed 's/^/| /' conftest.$ac_ext >&5
20041
20042
11427fi 20043fi
11428rm -f core conftest.err conftest.$ac_objext \ 20044
11429 conftest$ac_exeext conftest.$ac_ext 20045rm -rf conftest.dSYM
11430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20046rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20047 conftest$ac_exeext conftest.$ac_ext
20048 cat >conftest.$ac_ext <<_ACEOF
20049/* confdefs.h. */
20050_ACEOF
20051cat confdefs.h >>conftest.$ac_ext
20052cat >>conftest.$ac_ext <<_ACEOF
11431/* end confdefs.h. */ 20053/* end confdefs.h. */
11432#define _LARGEFILE_SOURCE 1 20054#define _LARGEFILE_SOURCE 1
11433#include <sys/types.h> /* for off_t */ 20055#include <sys/types.h> /* for off_t */
@@ -11441,16 +20063,43 @@ int (*fp) (FILE *, off_t, int) = fseeko;
11441 return 0; 20063 return 0;
11442} 20064}
11443_ACEOF 20065_ACEOF
11444if ac_fn_c_try_link "$LINENO"; then : 20066rm -f conftest.$ac_objext conftest$ac_exeext
20067if { (ac_try="$ac_link"
20068case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20071esac
20072eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20073$as_echo "$ac_try_echo") >&5
20074 (eval "$ac_link") 2>conftest.er1
20075 ac_status=$?
20076 grep -v '^ *+' conftest.er1 >conftest.err
20077 rm -f conftest.er1
20078 cat conftest.err >&5
20079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080 (exit $ac_status); } && {
20081 test -z "$ac_c_werror_flag" ||
20082 test ! -s conftest.err
20083 } && test -s conftest$ac_exeext && {
20084 test "$cross_compiling" = yes ||
20085 $as_test_x conftest$ac_exeext
20086 }; then
11445 ac_cv_sys_largefile_source=1; break 20087 ac_cv_sys_largefile_source=1; break
20088else
20089 $as_echo "$as_me: failed program was:" >&5
20090sed 's/^/| /' conftest.$ac_ext >&5
20091
20092
11446fi 20093fi
11447rm -f core conftest.err conftest.$ac_objext \ 20094
11448 conftest$ac_exeext conftest.$ac_ext 20095rm -rf conftest.dSYM
20096rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20097 conftest$ac_exeext conftest.$ac_ext
11449 ac_cv_sys_largefile_source=unknown 20098 ac_cv_sys_largefile_source=unknown
11450 break 20099 break
11451done 20100done
11452fi 20101fi
11453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 20102{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11454$as_echo "$ac_cv_sys_largefile_source" >&6; } 20103$as_echo "$ac_cv_sys_largefile_source" >&6; }
11455case $ac_cv_sys_largefile_source in #( 20104case $ac_cv_sys_largefile_source in #(
11456 no | unknown) ;; 20105 no | unknown) ;;
@@ -11467,7 +20116,9 @@ rm -rf conftest*
11467# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 20116# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11468if test $ac_cv_sys_largefile_source != unknown; then 20117if test $ac_cv_sys_largefile_source != unknown; then
11469 20118
11470$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 20119cat >>confdefs.h <<\_ACEOF
20120#define HAVE_FSEEKO 1
20121_ACEOF
11471 20122
11472fi 20123fi
11473 20124
@@ -11495,12 +20146,145 @@ fi
11495 20146
11496 20147
11497 GETOPT_H= 20148 GETOPT_H=
11498 for ac_header in getopt.h 20149
11499do : 20150for ac_header in getopt.h
11500 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 20151do
11501if test "x$ac_cv_header_getopt_h" = x""yes; then : 20152as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20153if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20154 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20155$as_echo_n "checking for $ac_header... " >&6; }
20156if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20157 $as_echo_n "(cached) " >&6
20158fi
20159ac_res=`eval 'as_val=${'$as_ac_Header'}
20160 $as_echo "$as_val"'`
20161 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20162$as_echo "$ac_res" >&6; }
20163else
20164 # Is the header compilable?
20165{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20166$as_echo_n "checking $ac_header usability... " >&6; }
20167cat >conftest.$ac_ext <<_ACEOF
20168/* confdefs.h. */
20169_ACEOF
20170cat confdefs.h >>conftest.$ac_ext
20171cat >>conftest.$ac_ext <<_ACEOF
20172/* end confdefs.h. */
20173$ac_includes_default
20174#include <$ac_header>
20175_ACEOF
20176rm -f conftest.$ac_objext
20177if { (ac_try="$ac_compile"
20178case "(($ac_try" in
20179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20180 *) ac_try_echo=$ac_try;;
20181esac
20182eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20183$as_echo "$ac_try_echo") >&5
20184 (eval "$ac_compile") 2>conftest.er1
20185 ac_status=$?
20186 grep -v '^ *+' conftest.er1 >conftest.err
20187 rm -f conftest.er1
20188 cat conftest.err >&5
20189 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20190 (exit $ac_status); } && {
20191 test -z "$ac_c_werror_flag" ||
20192 test ! -s conftest.err
20193 } && test -s conftest.$ac_objext; then
20194 ac_header_compiler=yes
20195else
20196 $as_echo "$as_me: failed program was:" >&5
20197sed 's/^/| /' conftest.$ac_ext >&5
20198
20199 ac_header_compiler=no
20200fi
20201
20202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20203{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20204$as_echo "$ac_header_compiler" >&6; }
20205
20206# Is the header present?
20207{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20208$as_echo_n "checking $ac_header presence... " >&6; }
20209cat >conftest.$ac_ext <<_ACEOF
20210/* confdefs.h. */
20211_ACEOF
20212cat confdefs.h >>conftest.$ac_ext
20213cat >>conftest.$ac_ext <<_ACEOF
20214/* end confdefs.h. */
20215#include <$ac_header>
20216_ACEOF
20217if { (ac_try="$ac_cpp conftest.$ac_ext"
20218case "(($ac_try" in
20219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20220 *) ac_try_echo=$ac_try;;
20221esac
20222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20223$as_echo "$ac_try_echo") >&5
20224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20225 ac_status=$?
20226 grep -v '^ *+' conftest.er1 >conftest.err
20227 rm -f conftest.er1
20228 cat conftest.err >&5
20229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } >/dev/null && {
20231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20232 test ! -s conftest.err
20233 }; then
20234 ac_header_preproc=yes
20235else
20236 $as_echo "$as_me: failed program was:" >&5
20237sed 's/^/| /' conftest.$ac_ext >&5
20238
20239 ac_header_preproc=no
20240fi
20241
20242rm -f conftest.err conftest.$ac_ext
20243{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20244$as_echo "$ac_header_preproc" >&6; }
20245
20246# So? What about this header?
20247case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20248 yes:no: )
20249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20250$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20252$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20253 ac_header_preproc=yes
20254 ;;
20255 no:yes:* )
20256 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20257$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20258 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20259$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20261$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20263$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20265$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20267$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20268
20269 ;;
20270esac
20271{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20272$as_echo_n "checking for $ac_header... " >&6; }
20273if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20274 $as_echo_n "(cached) " >&6
20275else
20276 eval "$as_ac_Header=\$ac_header_preproc"
20277fi
20278ac_res=`eval 'as_val=${'$as_ac_Header'}
20279 $as_echo "$as_val"'`
20280 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20281$as_echo "$ac_res" >&6; }
20282
20283fi
20284if test `eval 'as_val=${'$as_ac_Header'}
20285 $as_echo "$as_val"'` = yes; then
11502 cat >>confdefs.h <<_ACEOF 20286 cat >>confdefs.h <<_ACEOF
11503#define HAVE_GETOPT_H 1 20287#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11504_ACEOF 20288_ACEOF
11505 20289
11506else 20290else
@@ -11510,12 +20294,101 @@ fi
11510done 20294done
11511 20295
11512 if test -z "$GETOPT_H"; then 20296 if test -z "$GETOPT_H"; then
11513 for ac_func in getopt_long_only 20297
11514do : 20298for ac_func in getopt_long_only
11515 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 20299do
11516if test "x$ac_cv_func_getopt_long_only" = x""yes; then : 20300as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20301{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20302$as_echo_n "checking for $ac_func... " >&6; }
20303if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20304 $as_echo_n "(cached) " >&6
20305else
20306 cat >conftest.$ac_ext <<_ACEOF
20307/* confdefs.h. */
20308_ACEOF
20309cat confdefs.h >>conftest.$ac_ext
20310cat >>conftest.$ac_ext <<_ACEOF
20311/* end confdefs.h. */
20312/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20314#define $ac_func innocuous_$ac_func
20315
20316/* System header to define __stub macros and hopefully few prototypes,
20317 which can conflict with char $ac_func (); below.
20318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20319 <limits.h> exists even on freestanding compilers. */
20320
20321#ifdef __STDC__
20322# include <limits.h>
20323#else
20324# include <assert.h>
20325#endif
20326
20327#undef $ac_func
20328
20329/* Override any GCC internal prototype to avoid an error.
20330 Use char because int might match the return type of a GCC
20331 builtin and then its argument prototype would still apply. */
20332#ifdef __cplusplus
20333extern "C"
20334#endif
20335char $ac_func ();
20336/* The GNU C library defines this for functions which it implements
20337 to always fail with ENOSYS. Some functions are actually named
20338 something starting with __ and the normal name is an alias. */
20339#if defined __stub_$ac_func || defined __stub___$ac_func
20340choke me
20341#endif
20342
20343int
20344main ()
20345{
20346return $ac_func ();
20347 ;
20348 return 0;
20349}
20350_ACEOF
20351rm -f conftest.$ac_objext conftest$ac_exeext
20352if { (ac_try="$ac_link"
20353case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20356esac
20357eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20358$as_echo "$ac_try_echo") >&5
20359 (eval "$ac_link") 2>conftest.er1
20360 ac_status=$?
20361 grep -v '^ *+' conftest.er1 >conftest.err
20362 rm -f conftest.er1
20363 cat conftest.err >&5
20364 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); } && {
20366 test -z "$ac_c_werror_flag" ||
20367 test ! -s conftest.err
20368 } && test -s conftest$ac_exeext && {
20369 test "$cross_compiling" = yes ||
20370 $as_test_x conftest$ac_exeext
20371 }; then
20372 eval "$as_ac_var=yes"
20373else
20374 $as_echo "$as_me: failed program was:" >&5
20375sed 's/^/| /' conftest.$ac_ext >&5
20376
20377 eval "$as_ac_var=no"
20378fi
20379
20380rm -rf conftest.dSYM
20381rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20382 conftest$ac_exeext conftest.$ac_ext
20383fi
20384ac_res=`eval 'as_val=${'$as_ac_var'}
20385 $as_echo "$as_val"'`
20386 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20387$as_echo "$ac_res" >&6; }
20388if test `eval 'as_val=${'$as_ac_var'}
20389 $as_echo "$as_val"'` = yes; then
11517 cat >>confdefs.h <<_ACEOF 20390 cat >>confdefs.h <<_ACEOF
11518#define HAVE_GETOPT_LONG_ONLY 1 20391#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11519_ACEOF 20392_ACEOF
11520 20393
11521else 20394else
@@ -11526,31 +20399,139 @@ done
11526 fi 20399 fi
11527 20400
11528 if test -z "$GETOPT_H"; then 20401 if test -z "$GETOPT_H"; then
11529 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h> 20402 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
11530" 20403$as_echo_n "checking whether optreset is declared... " >&6; }
11531if test "x$ac_cv_have_decl_optreset" = x""yes; then : 20404if test "${ac_cv_have_decl_optreset+set}" = set; then
20405 $as_echo_n "(cached) " >&6
20406else
20407 cat >conftest.$ac_ext <<_ACEOF
20408/* confdefs.h. */
20409_ACEOF
20410cat confdefs.h >>conftest.$ac_ext
20411cat >>conftest.$ac_ext <<_ACEOF
20412/* end confdefs.h. */
20413#include <getopt.h>
20414
20415int
20416main ()
20417{
20418#ifndef optreset
20419 (void) optreset;
20420#endif
20421
20422 ;
20423 return 0;
20424}
20425_ACEOF
20426rm -f conftest.$ac_objext
20427if { (ac_try="$ac_compile"
20428case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20431esac
20432eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20433$as_echo "$ac_try_echo") >&5
20434 (eval "$ac_compile") 2>conftest.er1
20435 ac_status=$?
20436 grep -v '^ *+' conftest.er1 >conftest.err
20437 rm -f conftest.er1
20438 cat conftest.err >&5
20439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20440 (exit $ac_status); } && {
20441 test -z "$ac_c_werror_flag" ||
20442 test ! -s conftest.err
20443 } && test -s conftest.$ac_objext; then
20444 ac_cv_have_decl_optreset=yes
20445else
20446 $as_echo "$as_me: failed program was:" >&5
20447sed 's/^/| /' conftest.$ac_ext >&5
20448
20449 ac_cv_have_decl_optreset=no
20450fi
20451
20452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20453fi
20454{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20455$as_echo "$ac_cv_have_decl_optreset" >&6; }
20456if test $ac_cv_have_decl_optreset = yes; then
11532 GETOPT_H=getopt.h 20457 GETOPT_H=getopt.h
11533fi 20458fi
11534 20459
11535 fi 20460 fi
11536 20461
11537 if test -z "$GETOPT_H"; then 20462 if test -z "$GETOPT_H"; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 20463 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
11539$as_echo_n "checking for working GNU getopt function... " >&6; } 20464$as_echo_n "checking for working GNU getopt function... " >&6; }
11540if test "${gl_cv_func_gnu_getopt+set}" = set; then : 20465if test "${gl_cv_func_gnu_getopt+set}" = set; then
11541 $as_echo_n "(cached) " >&6 20466 $as_echo_n "(cached) " >&6
11542else 20467else
11543 if test "$cross_compiling" = yes; then : 20468 if test "$cross_compiling" = yes; then
11544 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h> 20469 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
11545" 20470$as_echo_n "checking whether getopt_clip is declared... " >&6; }
11546if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then : 20471if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20472 $as_echo_n "(cached) " >&6
20473else
20474 cat >conftest.$ac_ext <<_ACEOF
20475/* confdefs.h. */
20476_ACEOF
20477cat confdefs.h >>conftest.$ac_ext
20478cat >>conftest.$ac_ext <<_ACEOF
20479/* end confdefs.h. */
20480#include <getopt.h>
20481
20482int
20483main ()
20484{
20485#ifndef getopt_clip
20486 (void) getopt_clip;
20487#endif
20488
20489 ;
20490 return 0;
20491}
20492_ACEOF
20493rm -f conftest.$ac_objext
20494if { (ac_try="$ac_compile"
20495case "(($ac_try" in
20496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20497 *) ac_try_echo=$ac_try;;
20498esac
20499eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20500$as_echo "$ac_try_echo") >&5
20501 (eval "$ac_compile") 2>conftest.er1
20502 ac_status=$?
20503 grep -v '^ *+' conftest.er1 >conftest.err
20504 rm -f conftest.er1
20505 cat conftest.err >&5
20506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20507 (exit $ac_status); } && {
20508 test -z "$ac_c_werror_flag" ||
20509 test ! -s conftest.err
20510 } && test -s conftest.$ac_objext; then
20511 ac_cv_have_decl_getopt_clip=yes
20512else
20513 $as_echo "$as_me: failed program was:" >&5
20514sed 's/^/| /' conftest.$ac_ext >&5
20515
20516 ac_cv_have_decl_getopt_clip=no
20517fi
20518
20519rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20520fi
20521{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20522$as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20523if test $ac_cv_have_decl_getopt_clip = yes; then
11547 gl_cv_func_gnu_getopt=no 20524 gl_cv_func_gnu_getopt=no
11548else 20525else
11549 gl_cv_func_gnu_getopt=yes 20526 gl_cv_func_gnu_getopt=yes
11550fi 20527fi
11551 20528
11552else 20529else
11553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20530 cat >conftest.$ac_ext <<_ACEOF
20531/* confdefs.h. */
20532_ACEOF
20533cat confdefs.h >>conftest.$ac_ext
20534cat >>conftest.$ac_ext <<_ACEOF
11554/* end confdefs.h. */ 20535/* end confdefs.h. */
11555#include <getopt.h> 20536#include <getopt.h>
11556int 20537int
@@ -11567,17 +20548,44 @@ main ()
11567 return 0; 20548 return 0;
11568} 20549}
11569_ACEOF 20550_ACEOF
11570if ac_fn_c_try_run "$LINENO"; then : 20551rm -f conftest$ac_exeext
20552if { (ac_try="$ac_link"
20553case "(($ac_try" in
20554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20555 *) ac_try_echo=$ac_try;;
20556esac
20557eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20558$as_echo "$ac_try_echo") >&5
20559 (eval "$ac_link") 2>&5
20560 ac_status=$?
20561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20562 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20563 { (case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20566esac
20567eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20568$as_echo "$ac_try_echo") >&5
20569 (eval "$ac_try") 2>&5
20570 ac_status=$?
20571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20572 (exit $ac_status); }; }; then
11571 gl_cv_func_gnu_getopt=yes 20573 gl_cv_func_gnu_getopt=yes
11572else 20574else
11573 gl_cv_func_gnu_getopt=no 20575 $as_echo "$as_me: program exited with status $ac_status" >&5
20576$as_echo "$as_me: failed program was:" >&5
20577sed 's/^/| /' conftest.$ac_ext >&5
20578
20579( exit $ac_status )
20580gl_cv_func_gnu_getopt=no
11574fi 20581fi
11575rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20582rm -rf conftest.dSYM
11576 conftest.$ac_objext conftest.beam conftest.$ac_ext 20583rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11577fi 20584fi
11578 20585
20586
11579fi 20587fi
11580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5 20588{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
11581$as_echo "$gl_cv_func_gnu_getopt" >&6; } 20589$as_echo "$gl_cv_func_gnu_getopt" >&6; }
11582 if test "$gl_cv_func_gnu_getopt" = "no"; then 20590 if test "$gl_cv_func_gnu_getopt" = "no"; then
11583 GETOPT_H=getopt.h 20591 GETOPT_H=getopt.h
@@ -11586,12 +20594,14 @@ $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11586 20594
11587 20595
11588 20596
11589 if test -n "$GETOPT_H"; then : 20597 if test -n "$GETOPT_H"; then
11590 20598
11591 20599
11592 GETOPT_H=getopt.h 20600 GETOPT_H=getopt.h
11593 20601
11594$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 20602cat >>confdefs.h <<\_ACEOF
20603#define __GETOPT_PREFIX rpl_
20604_ACEOF
11595 20605
11596 20606
11597 20607
@@ -11602,13 +20612,18 @@ fi
11602 20612
11603 20613
11604 20614
11605{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 20615
20616{ $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11606$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 20617$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11607if test "${ac_cv_func_getpgrp_void+set}" = set; then : 20618if test "${ac_cv_func_getpgrp_void+set}" = set; then
11608 $as_echo_n "(cached) " >&6 20619 $as_echo_n "(cached) " >&6
11609else 20620else
11610 # Use it with a single arg. 20621 # Use it with a single arg.
11611cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20622cat >conftest.$ac_ext <<_ACEOF
20623/* confdefs.h. */
20624_ACEOF
20625cat confdefs.h >>conftest.$ac_ext
20626cat >>conftest.$ac_ext <<_ACEOF
11612/* end confdefs.h. */ 20627/* end confdefs.h. */
11613$ac_includes_default 20628$ac_includes_default
11614int 20629int
@@ -11619,41 +20634,157 @@ getpgrp (0);
11619 return 0; 20634 return 0;
11620} 20635}
11621_ACEOF 20636_ACEOF
11622if ac_fn_c_try_compile "$LINENO"; then : 20637rm -f conftest.$ac_objext
20638if { (ac_try="$ac_compile"
20639case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20642esac
20643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20644$as_echo "$ac_try_echo") >&5
20645 (eval "$ac_compile") 2>conftest.er1
20646 ac_status=$?
20647 grep -v '^ *+' conftest.er1 >conftest.err
20648 rm -f conftest.er1
20649 cat conftest.err >&5
20650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20651 (exit $ac_status); } && {
20652 test -z "$ac_c_werror_flag" ||
20653 test ! -s conftest.err
20654 } && test -s conftest.$ac_objext; then
11623 ac_cv_func_getpgrp_void=no 20655 ac_cv_func_getpgrp_void=no
11624else 20656else
11625 ac_cv_func_getpgrp_void=yes 20657 $as_echo "$as_me: failed program was:" >&5
20658sed 's/^/| /' conftest.$ac_ext >&5
20659
20660 ac_cv_func_getpgrp_void=yes
11626fi 20661fi
20662
11627rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11628 20664
11629fi 20665fi
11630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 20666{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11631$as_echo "$ac_cv_func_getpgrp_void" >&6; } 20667$as_echo "$ac_cv_func_getpgrp_void" >&6; }
11632if test $ac_cv_func_getpgrp_void = yes; then 20668if test $ac_cv_func_getpgrp_void = yes; then
11633 20669
11634$as_echo "#define GETPGRP_VOID 1" >>confdefs.h 20670cat >>confdefs.h <<\_ACEOF
20671#define GETPGRP_VOID 1
20672_ACEOF
11635 20673
11636fi 20674fi
11637 20675
11638 20676
20677
11639for ac_func in strftime 20678for ac_func in strftime
11640do : 20679do
11641 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 20680as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11642if test "x$ac_cv_func_strftime" = x""yes; then : 20681{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20682$as_echo_n "checking for $ac_func... " >&6; }
20683if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20684 $as_echo_n "(cached) " >&6
20685else
20686 cat >conftest.$ac_ext <<_ACEOF
20687/* confdefs.h. */
20688_ACEOF
20689cat confdefs.h >>conftest.$ac_ext
20690cat >>conftest.$ac_ext <<_ACEOF
20691/* end confdefs.h. */
20692/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20693 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20694#define $ac_func innocuous_$ac_func
20695
20696/* System header to define __stub macros and hopefully few prototypes,
20697 which can conflict with char $ac_func (); below.
20698 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20699 <limits.h> exists even on freestanding compilers. */
20700
20701#ifdef __STDC__
20702# include <limits.h>
20703#else
20704# include <assert.h>
20705#endif
20706
20707#undef $ac_func
20708
20709/* Override any GCC internal prototype to avoid an error.
20710 Use char because int might match the return type of a GCC
20711 builtin and then its argument prototype would still apply. */
20712#ifdef __cplusplus
20713extern "C"
20714#endif
20715char $ac_func ();
20716/* The GNU C library defines this for functions which it implements
20717 to always fail with ENOSYS. Some functions are actually named
20718 something starting with __ and the normal name is an alias. */
20719#if defined __stub_$ac_func || defined __stub___$ac_func
20720choke me
20721#endif
20722
20723int
20724main ()
20725{
20726return $ac_func ();
20727 ;
20728 return 0;
20729}
20730_ACEOF
20731rm -f conftest.$ac_objext conftest$ac_exeext
20732if { (ac_try="$ac_link"
20733case "(($ac_try" in
20734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735 *) ac_try_echo=$ac_try;;
20736esac
20737eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20738$as_echo "$ac_try_echo") >&5
20739 (eval "$ac_link") 2>conftest.er1
20740 ac_status=$?
20741 grep -v '^ *+' conftest.er1 >conftest.err
20742 rm -f conftest.er1
20743 cat conftest.err >&5
20744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20745 (exit $ac_status); } && {
20746 test -z "$ac_c_werror_flag" ||
20747 test ! -s conftest.err
20748 } && test -s conftest$ac_exeext && {
20749 test "$cross_compiling" = yes ||
20750 $as_test_x conftest$ac_exeext
20751 }; then
20752 eval "$as_ac_var=yes"
20753else
20754 $as_echo "$as_me: failed program was:" >&5
20755sed 's/^/| /' conftest.$ac_ext >&5
20756
20757 eval "$as_ac_var=no"
20758fi
20759
20760rm -rf conftest.dSYM
20761rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20762 conftest$ac_exeext conftest.$ac_ext
20763fi
20764ac_res=`eval 'as_val=${'$as_ac_var'}
20765 $as_echo "$as_val"'`
20766 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20767$as_echo "$ac_res" >&6; }
20768if test `eval 'as_val=${'$as_ac_var'}
20769 $as_echo "$as_val"'` = yes; then
11643 cat >>confdefs.h <<_ACEOF 20770 cat >>confdefs.h <<_ACEOF
11644#define HAVE_STRFTIME 1 20771#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11645_ACEOF 20772_ACEOF
11646 20773
11647else 20774else
11648 # strftime is in -lintl on SCO UNIX. 20775 # strftime is in -lintl on SCO UNIX.
11649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 20776{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11650$as_echo_n "checking for strftime in -lintl... " >&6; } 20777$as_echo_n "checking for strftime in -lintl... " >&6; }
11651if test "${ac_cv_lib_intl_strftime+set}" = set; then : 20778if test "${ac_cv_lib_intl_strftime+set}" = set; then
11652 $as_echo_n "(cached) " >&6 20779 $as_echo_n "(cached) " >&6
11653else 20780else
11654 ac_check_lib_save_LIBS=$LIBS 20781 ac_check_lib_save_LIBS=$LIBS
11655LIBS="-lintl $LIBS" 20782LIBS="-lintl $LIBS"
11656cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20783cat >conftest.$ac_ext <<_ACEOF
20784/* confdefs.h. */
20785_ACEOF
20786cat confdefs.h >>conftest.$ac_ext
20787cat >>conftest.$ac_ext <<_ACEOF
11657/* end confdefs.h. */ 20788/* end confdefs.h. */
11658 20789
11659/* Override any GCC internal prototype to avoid an error. 20790/* Override any GCC internal prototype to avoid an error.
@@ -11671,19 +20802,46 @@ return strftime ();
11671 return 0; 20802 return 0;
11672} 20803}
11673_ACEOF 20804_ACEOF
11674if ac_fn_c_try_link "$LINENO"; then : 20805rm -f conftest.$ac_objext conftest$ac_exeext
20806if { (ac_try="$ac_link"
20807case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20810esac
20811eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20812$as_echo "$ac_try_echo") >&5
20813 (eval "$ac_link") 2>conftest.er1
20814 ac_status=$?
20815 grep -v '^ *+' conftest.er1 >conftest.err
20816 rm -f conftest.er1
20817 cat conftest.err >&5
20818 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20819 (exit $ac_status); } && {
20820 test -z "$ac_c_werror_flag" ||
20821 test ! -s conftest.err
20822 } && test -s conftest$ac_exeext && {
20823 test "$cross_compiling" = yes ||
20824 $as_test_x conftest$ac_exeext
20825 }; then
11675 ac_cv_lib_intl_strftime=yes 20826 ac_cv_lib_intl_strftime=yes
11676else 20827else
11677 ac_cv_lib_intl_strftime=no 20828 $as_echo "$as_me: failed program was:" >&5
20829sed 's/^/| /' conftest.$ac_ext >&5
20830
20831 ac_cv_lib_intl_strftime=no
11678fi 20832fi
11679rm -f core conftest.err conftest.$ac_objext \ 20833
11680 conftest$ac_exeext conftest.$ac_ext 20834rm -rf conftest.dSYM
20835rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20836 conftest$ac_exeext conftest.$ac_ext
11681LIBS=$ac_check_lib_save_LIBS 20837LIBS=$ac_check_lib_save_LIBS
11682fi 20838fi
11683{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 20839{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11684$as_echo "$ac_cv_lib_intl_strftime" >&6; } 20840$as_echo "$ac_cv_lib_intl_strftime" >&6; }
11685if test "x$ac_cv_lib_intl_strftime" = x""yes; then : 20841if test $ac_cv_lib_intl_strftime = yes; then
11686 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 20842 cat >>confdefs.h <<\_ACEOF
20843#define HAVE_STRFTIME 1
20844_ACEOF
11687 20845
11688LIBS="-lintl $LIBS" 20846LIBS="-lintl $LIBS"
11689fi 20847fi
@@ -11693,12 +20851,101 @@ done
11693 20851
11694 20852
11695# UNIX98 PTYs. 20853# UNIX98 PTYs.
20854
11696for ac_func in grantpt 20855for ac_func in grantpt
11697do : 20856do
11698 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" 20857as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11699if test "x$ac_cv_func_grantpt" = x""yes; then : 20858{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20859$as_echo_n "checking for $ac_func... " >&6; }
20860if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20861 $as_echo_n "(cached) " >&6
20862else
20863 cat >conftest.$ac_ext <<_ACEOF
20864/* confdefs.h. */
20865_ACEOF
20866cat confdefs.h >>conftest.$ac_ext
20867cat >>conftest.$ac_ext <<_ACEOF
20868/* end confdefs.h. */
20869/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20871#define $ac_func innocuous_$ac_func
20872
20873/* System header to define __stub macros and hopefully few prototypes,
20874 which can conflict with char $ac_func (); below.
20875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20876 <limits.h> exists even on freestanding compilers. */
20877
20878#ifdef __STDC__
20879# include <limits.h>
20880#else
20881# include <assert.h>
20882#endif
20883
20884#undef $ac_func
20885
20886/* Override any GCC internal prototype to avoid an error.
20887 Use char because int might match the return type of a GCC
20888 builtin and then its argument prototype would still apply. */
20889#ifdef __cplusplus
20890extern "C"
20891#endif
20892char $ac_func ();
20893/* The GNU C library defines this for functions which it implements
20894 to always fail with ENOSYS. Some functions are actually named
20895 something starting with __ and the normal name is an alias. */
20896#if defined __stub_$ac_func || defined __stub___$ac_func
20897choke me
20898#endif
20899
20900int
20901main ()
20902{
20903return $ac_func ();
20904 ;
20905 return 0;
20906}
20907_ACEOF
20908rm -f conftest.$ac_objext conftest$ac_exeext
20909if { (ac_try="$ac_link"
20910case "(($ac_try" in
20911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20912 *) ac_try_echo=$ac_try;;
20913esac
20914eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20915$as_echo "$ac_try_echo") >&5
20916 (eval "$ac_link") 2>conftest.er1
20917 ac_status=$?
20918 grep -v '^ *+' conftest.er1 >conftest.err
20919 rm -f conftest.er1
20920 cat conftest.err >&5
20921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20922 (exit $ac_status); } && {
20923 test -z "$ac_c_werror_flag" ||
20924 test ! -s conftest.err
20925 } && test -s conftest$ac_exeext && {
20926 test "$cross_compiling" = yes ||
20927 $as_test_x conftest$ac_exeext
20928 }; then
20929 eval "$as_ac_var=yes"
20930else
20931 $as_echo "$as_me: failed program was:" >&5
20932sed 's/^/| /' conftest.$ac_ext >&5
20933
20934 eval "$as_ac_var=no"
20935fi
20936
20937rm -rf conftest.dSYM
20938rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20939 conftest$ac_exeext conftest.$ac_ext
20940fi
20941ac_res=`eval 'as_val=${'$as_ac_var'}
20942 $as_echo "$as_val"'`
20943 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20944$as_echo "$ac_res" >&6; }
20945if test `eval 'as_val=${'$as_ac_var'}
20946 $as_echo "$as_val"'` = yes; then
11700 cat >>confdefs.h <<_ACEOF 20947 cat >>confdefs.h <<_ACEOF
11701#define HAVE_GRANTPT 1 20948#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11702_ACEOF 20949_ACEOF
11703 20950
11704fi 20951fi
@@ -11706,12 +20953,101 @@ done
11706 20953
11707 20954
11708# PTY-related GNU extensions. 20955# PTY-related GNU extensions.
20956
11709for ac_func in getpt 20957for ac_func in getpt
11710do : 20958do
11711 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt" 20959as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11712if test "x$ac_cv_func_getpt" = x""yes; then : 20960{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20961$as_echo_n "checking for $ac_func... " >&6; }
20962if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20963 $as_echo_n "(cached) " >&6
20964else
20965 cat >conftest.$ac_ext <<_ACEOF
20966/* confdefs.h. */
20967_ACEOF
20968cat confdefs.h >>conftest.$ac_ext
20969cat >>conftest.$ac_ext <<_ACEOF
20970/* end confdefs.h. */
20971/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20973#define $ac_func innocuous_$ac_func
20974
20975/* System header to define __stub macros and hopefully few prototypes,
20976 which can conflict with char $ac_func (); below.
20977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20978 <limits.h> exists even on freestanding compilers. */
20979
20980#ifdef __STDC__
20981# include <limits.h>
20982#else
20983# include <assert.h>
20984#endif
20985
20986#undef $ac_func
20987
20988/* Override any GCC internal prototype to avoid an error.
20989 Use char because int might match the return type of a GCC
20990 builtin and then its argument prototype would still apply. */
20991#ifdef __cplusplus
20992extern "C"
20993#endif
20994char $ac_func ();
20995/* The GNU C library defines this for functions which it implements
20996 to always fail with ENOSYS. Some functions are actually named
20997 something starting with __ and the normal name is an alias. */
20998#if defined __stub_$ac_func || defined __stub___$ac_func
20999choke me
21000#endif
21001
21002int
21003main ()
21004{
21005return $ac_func ();
21006 ;
21007 return 0;
21008}
21009_ACEOF
21010rm -f conftest.$ac_objext conftest$ac_exeext
21011if { (ac_try="$ac_link"
21012case "(($ac_try" in
21013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21014 *) ac_try_echo=$ac_try;;
21015esac
21016eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21017$as_echo "$ac_try_echo") >&5
21018 (eval "$ac_link") 2>conftest.er1
21019 ac_status=$?
21020 grep -v '^ *+' conftest.er1 >conftest.err
21021 rm -f conftest.er1
21022 cat conftest.err >&5
21023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } && {
21025 test -z "$ac_c_werror_flag" ||
21026 test ! -s conftest.err
21027 } && test -s conftest$ac_exeext && {
21028 test "$cross_compiling" = yes ||
21029 $as_test_x conftest$ac_exeext
21030 }; then
21031 eval "$as_ac_var=yes"
21032else
21033 $as_echo "$as_me: failed program was:" >&5
21034sed 's/^/| /' conftest.$ac_ext >&5
21035
21036 eval "$as_ac_var=no"
21037fi
21038
21039rm -rf conftest.dSYM
21040rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21041 conftest$ac_exeext conftest.$ac_ext
21042fi
21043ac_res=`eval 'as_val=${'$as_ac_var'}
21044 $as_echo "$as_val"'`
21045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21046$as_echo "$ac_res" >&6; }
21047if test `eval 'as_val=${'$as_ac_var'}
21048 $as_echo "$as_val"'` = yes; then
11713 cat >>confdefs.h <<_ACEOF 21049 cat >>confdefs.h <<_ACEOF
11714#define HAVE_GETPT 1 21050#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11715_ACEOF 21051_ACEOF
11716 21052
11717fi 21053fi
@@ -11722,14 +21058,19 @@ done
11722# That is because we have not set up to link ncurses in lib-src. 21058# That is because we have not set up to link ncurses in lib-src.
11723# It's better to believe a function is not available 21059# It's better to believe a function is not available
11724# than to expect to find it in ncurses. 21060# than to expect to find it in ncurses.
11725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for tparm in -lncurses" >&5 21061
21062{ $as_echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
11726$as_echo_n "checking for tparm in -lncurses... " >&6; } 21063$as_echo_n "checking for tparm in -lncurses... " >&6; }
11727if test "${ac_cv_lib_ncurses_tparm+set}" = set; then : 21064if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
11728 $as_echo_n "(cached) " >&6 21065 $as_echo_n "(cached) " >&6
11729else 21066else
11730 ac_check_lib_save_LIBS=$LIBS 21067 ac_check_lib_save_LIBS=$LIBS
11731LIBS="-lncurses $LIBS" 21068LIBS="-lncurses $LIBS"
11732cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21069cat >conftest.$ac_ext <<_ACEOF
21070/* confdefs.h. */
21071_ACEOF
21072cat confdefs.h >>conftest.$ac_ext
21073cat >>conftest.$ac_ext <<_ACEOF
11733/* end confdefs.h. */ 21074/* end confdefs.h. */
11734 21075
11735/* Override any GCC internal prototype to avoid an error. 21076/* Override any GCC internal prototype to avoid an error.
@@ -11747,18 +21088,43 @@ return tparm ();
11747 return 0; 21088 return 0;
11748} 21089}
11749_ACEOF 21090_ACEOF
11750if ac_fn_c_try_link "$LINENO"; then : 21091rm -f conftest.$ac_objext conftest$ac_exeext
21092if { (ac_try="$ac_link"
21093case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21096esac
21097eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21098$as_echo "$ac_try_echo") >&5
21099 (eval "$ac_link") 2>conftest.er1
21100 ac_status=$?
21101 grep -v '^ *+' conftest.er1 >conftest.err
21102 rm -f conftest.er1
21103 cat conftest.err >&5
21104 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21105 (exit $ac_status); } && {
21106 test -z "$ac_c_werror_flag" ||
21107 test ! -s conftest.err
21108 } && test -s conftest$ac_exeext && {
21109 test "$cross_compiling" = yes ||
21110 $as_test_x conftest$ac_exeext
21111 }; then
11751 ac_cv_lib_ncurses_tparm=yes 21112 ac_cv_lib_ncurses_tparm=yes
11752else 21113else
11753 ac_cv_lib_ncurses_tparm=no 21114 $as_echo "$as_me: failed program was:" >&5
21115sed 's/^/| /' conftest.$ac_ext >&5
21116
21117 ac_cv_lib_ncurses_tparm=no
11754fi 21118fi
11755rm -f core conftest.err conftest.$ac_objext \ 21119
11756 conftest$ac_exeext conftest.$ac_ext 21120rm -rf conftest.dSYM
21121rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21122 conftest$ac_exeext conftest.$ac_ext
11757LIBS=$ac_check_lib_save_LIBS 21123LIBS=$ac_check_lib_save_LIBS
11758fi 21124fi
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tparm" >&5 21125{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
11760$as_echo "$ac_cv_lib_ncurses_tparm" >&6; } 21126$as_echo "$ac_cv_lib_ncurses_tparm" >&6; }
11761if test "x$ac_cv_lib_ncurses_tparm" = x""yes; then : 21127if test $ac_cv_lib_ncurses_tparm = yes; then
11762 cat >>confdefs.h <<_ACEOF 21128 cat >>confdefs.h <<_ACEOF
11763#define HAVE_LIBNCURSES 1 21129#define HAVE_LIBNCURSES 1
11764_ACEOF 21130_ACEOF
@@ -11771,7 +21137,11 @@ fi
11771# Do we have res_init, for detecting changes in /etc/resolv.conf? 21137# Do we have res_init, for detecting changes in /etc/resolv.conf?
11772 21138
11773resolv=no 21139resolv=no
11774cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21140cat >conftest.$ac_ext <<_ACEOF
21141/* confdefs.h. */
21142_ACEOF
21143cat confdefs.h >>conftest.$ac_ext
21144cat >>conftest.$ac_ext <<_ACEOF
11775/* end confdefs.h. */ 21145/* end confdefs.h. */
11776#include <netinet/in.h> 21146#include <netinet/in.h>
11777#include <arpa/nameser.h> 21147#include <arpa/nameser.h>
@@ -11784,19 +21154,48 @@ return res_init();
11784 return 0; 21154 return 0;
11785} 21155}
11786_ACEOF 21156_ACEOF
11787if ac_fn_c_try_link "$LINENO"; then : 21157rm -f conftest.$ac_objext conftest$ac_exeext
21158if { (ac_try="$ac_link"
21159case "(($ac_try" in
21160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21161 *) ac_try_echo=$ac_try;;
21162esac
21163eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21164$as_echo "$ac_try_echo") >&5
21165 (eval "$ac_link") 2>conftest.er1
21166 ac_status=$?
21167 grep -v '^ *+' conftest.er1 >conftest.err
21168 rm -f conftest.er1
21169 cat conftest.err >&5
21170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); } && {
21172 test -z "$ac_c_werror_flag" ||
21173 test ! -s conftest.err
21174 } && test -s conftest$ac_exeext && {
21175 test "$cross_compiling" = yes ||
21176 $as_test_x conftest$ac_exeext
21177 }; then
11788 have_res_init=yes 21178 have_res_init=yes
11789else 21179else
11790 have_res_init=no 21180 $as_echo "$as_me: failed program was:" >&5
21181sed 's/^/| /' conftest.$ac_ext >&5
21182
21183 have_res_init=no
11791fi 21184fi
11792rm -f core conftest.err conftest.$ac_objext \ 21185
11793 conftest$ac_exeext conftest.$ac_ext 21186rm -rf conftest.dSYM
21187rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21188 conftest$ac_exeext conftest.$ac_ext
11794if test "$have_res_init" = no; then 21189if test "$have_res_init" = no; then
11795 OLIBS="$LIBS" 21190 OLIBS="$LIBS"
11796 LIBS="$LIBS -lresolv" 21191 LIBS="$LIBS -lresolv"
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5 21192 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
11798$as_echo_n "checking for res_init with -lresolv... " >&6; } 21193$as_echo_n "checking for res_init with -lresolv... " >&6; }
11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21194 cat >conftest.$ac_ext <<_ACEOF
21195/* confdefs.h. */
21196_ACEOF
21197cat confdefs.h >>conftest.$ac_ext
21198cat >>conftest.$ac_ext <<_ACEOF
11800/* end confdefs.h. */ 21199/* end confdefs.h. */
11801#include <netinet/in.h> 21200#include <netinet/in.h>
11802#include <arpa/nameser.h> 21201#include <arpa/nameser.h>
@@ -11809,14 +21208,39 @@ return res_init();
11809 return 0; 21208 return 0;
11810} 21209}
11811_ACEOF 21210_ACEOF
11812if ac_fn_c_try_link "$LINENO"; then : 21211rm -f conftest.$ac_objext conftest$ac_exeext
21212if { (ac_try="$ac_link"
21213case "(($ac_try" in
21214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21215 *) ac_try_echo=$ac_try;;
21216esac
21217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21218$as_echo "$ac_try_echo") >&5
21219 (eval "$ac_link") 2>conftest.er1
21220 ac_status=$?
21221 grep -v '^ *+' conftest.er1 >conftest.err
21222 rm -f conftest.er1
21223 cat conftest.err >&5
21224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21225 (exit $ac_status); } && {
21226 test -z "$ac_c_werror_flag" ||
21227 test ! -s conftest.err
21228 } && test -s conftest$ac_exeext && {
21229 test "$cross_compiling" = yes ||
21230 $as_test_x conftest$ac_exeext
21231 }; then
11813 have_res_init=yes 21232 have_res_init=yes
11814else 21233else
11815 have_res_init=no 21234 $as_echo "$as_me: failed program was:" >&5
21235sed 's/^/| /' conftest.$ac_ext >&5
21236
21237 have_res_init=no
11816fi 21238fi
11817rm -f core conftest.err conftest.$ac_objext \ 21239
11818 conftest$ac_exeext conftest.$ac_ext 21240rm -rf conftest.dSYM
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5 21241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21242 conftest$ac_exeext conftest.$ac_ext
21243 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
11820$as_echo "$have_res_init" >&6; } 21244$as_echo "$have_res_init" >&6; }
11821 if test "$have_res_init" = yes ; then 21245 if test "$have_res_init" = yes ; then
11822 resolv=yes 21246 resolv=yes
@@ -11826,29 +21250,204 @@ fi
11826 21250
11827if test "$have_res_init" = yes; then 21251if test "$have_res_init" = yes; then
11828 21252
11829$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h 21253cat >>confdefs.h <<\_ACEOF
21254#define HAVE_RES_INIT 1
21255_ACEOF
11830 21256
11831fi 21257fi
11832 21258
11833# Do we need the Hesiod library to provide the support routines? 21259# Do we need the Hesiod library to provide the support routines?
21260LIBHESIOD=
11834if test "$with_hesiod" != no ; then 21261if test "$with_hesiod" != no ; then
11835 # Don't set $LIBS here -- see comments above. 21262 # Don't set $LIBS here -- see comments above. FIXME which comments?
11836 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send" 21263 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
11837if test "x$ac_cv_func_res_send" = x""yes; then : 21264$as_echo_n "checking for res_send... " >&6; }
21265if test "${ac_cv_func_res_send+set}" = set; then
21266 $as_echo_n "(cached) " >&6
21267else
21268 cat >conftest.$ac_ext <<_ACEOF
21269/* confdefs.h. */
21270_ACEOF
21271cat confdefs.h >>conftest.$ac_ext
21272cat >>conftest.$ac_ext <<_ACEOF
21273/* end confdefs.h. */
21274/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21275 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21276#define res_send innocuous_res_send
21277
21278/* System header to define __stub macros and hopefully few prototypes,
21279 which can conflict with char res_send (); below.
21280 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21281 <limits.h> exists even on freestanding compilers. */
21282
21283#ifdef __STDC__
21284# include <limits.h>
21285#else
21286# include <assert.h>
21287#endif
21288
21289#undef res_send
21290
21291/* Override any GCC internal prototype to avoid an error.
21292 Use char because int might match the return type of a GCC
21293 builtin and then its argument prototype would still apply. */
21294#ifdef __cplusplus
21295extern "C"
21296#endif
21297char res_send ();
21298/* The GNU C library defines this for functions which it implements
21299 to always fail with ENOSYS. Some functions are actually named
21300 something starting with __ and the normal name is an alias. */
21301#if defined __stub_res_send || defined __stub___res_send
21302choke me
21303#endif
21304
21305int
21306main ()
21307{
21308return res_send ();
21309 ;
21310 return 0;
21311}
21312_ACEOF
21313rm -f conftest.$ac_objext conftest$ac_exeext
21314if { (ac_try="$ac_link"
21315case "(($ac_try" in
21316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21317 *) ac_try_echo=$ac_try;;
21318esac
21319eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21320$as_echo "$ac_try_echo") >&5
21321 (eval "$ac_link") 2>conftest.er1
21322 ac_status=$?
21323 grep -v '^ *+' conftest.er1 >conftest.err
21324 rm -f conftest.er1
21325 cat conftest.err >&5
21326 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21327 (exit $ac_status); } && {
21328 test -z "$ac_c_werror_flag" ||
21329 test ! -s conftest.err
21330 } && test -s conftest$ac_exeext && {
21331 test "$cross_compiling" = yes ||
21332 $as_test_x conftest$ac_exeext
21333 }; then
21334 ac_cv_func_res_send=yes
21335else
21336 $as_echo "$as_me: failed program was:" >&5
21337sed 's/^/| /' conftest.$ac_ext >&5
21338
21339 ac_cv_func_res_send=no
21340fi
21341
21342rm -rf conftest.dSYM
21343rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21344 conftest$ac_exeext conftest.$ac_ext
21345fi
21346{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21347$as_echo "$ac_cv_func_res_send" >&6; }
21348if test $ac_cv_func_res_send = yes; then
21349 :
21350else
21351 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21352$as_echo_n "checking for __res_send... " >&6; }
21353if test "${ac_cv_func___res_send+set}" = set; then
21354 $as_echo_n "(cached) " >&6
21355else
21356 cat >conftest.$ac_ext <<_ACEOF
21357/* confdefs.h. */
21358_ACEOF
21359cat confdefs.h >>conftest.$ac_ext
21360cat >>conftest.$ac_ext <<_ACEOF
21361/* end confdefs.h. */
21362/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21363 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21364#define __res_send innocuous___res_send
11838 21365
21366/* System header to define __stub macros and hopefully few prototypes,
21367 which can conflict with char __res_send (); below.
21368 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21369 <limits.h> exists even on freestanding compilers. */
21370
21371#ifdef __STDC__
21372# include <limits.h>
21373#else
21374# include <assert.h>
21375#endif
21376
21377#undef __res_send
21378
21379/* Override any GCC internal prototype to avoid an error.
21380 Use char because int might match the return type of a GCC
21381 builtin and then its argument prototype would still apply. */
21382#ifdef __cplusplus
21383extern "C"
21384#endif
21385char __res_send ();
21386/* The GNU C library defines this for functions which it implements
21387 to always fail with ENOSYS. Some functions are actually named
21388 something starting with __ and the normal name is an alias. */
21389#if defined __stub___res_send || defined __stub_____res_send
21390choke me
21391#endif
21392
21393int
21394main ()
21395{
21396return __res_send ();
21397 ;
21398 return 0;
21399}
21400_ACEOF
21401rm -f conftest.$ac_objext conftest$ac_exeext
21402if { (ac_try="$ac_link"
21403case "(($ac_try" in
21404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21405 *) ac_try_echo=$ac_try;;
21406esac
21407eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21408$as_echo "$ac_try_echo") >&5
21409 (eval "$ac_link") 2>conftest.er1
21410 ac_status=$?
21411 grep -v '^ *+' conftest.er1 >conftest.err
21412 rm -f conftest.er1
21413 cat conftest.err >&5
21414 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); } && {
21416 test -z "$ac_c_werror_flag" ||
21417 test ! -s conftest.err
21418 } && test -s conftest$ac_exeext && {
21419 test "$cross_compiling" = yes ||
21420 $as_test_x conftest$ac_exeext
21421 }; then
21422 ac_cv_func___res_send=yes
11839else 21423else
11840 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send" 21424 $as_echo "$as_me: failed program was:" >&5
11841if test "x$ac_cv_func___res_send" = x""yes; then : 21425sed 's/^/| /' conftest.$ac_ext >&5
11842 21426
21427 ac_cv_func___res_send=no
21428fi
21429
21430rm -rf conftest.dSYM
21431rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21432 conftest$ac_exeext conftest.$ac_ext
21433fi
21434{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21435$as_echo "$ac_cv_func___res_send" >&6; }
21436if test $ac_cv_func___res_send = yes; then
21437 :
11843else 21438else
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5 21439 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
11845$as_echo_n "checking for res_send in -lresolv... " >&6; } 21440$as_echo_n "checking for res_send in -lresolv... " >&6; }
11846if test "${ac_cv_lib_resolv_res_send+set}" = set; then : 21441if test "${ac_cv_lib_resolv_res_send+set}" = set; then
11847 $as_echo_n "(cached) " >&6 21442 $as_echo_n "(cached) " >&6
11848else 21443else
11849 ac_check_lib_save_LIBS=$LIBS 21444 ac_check_lib_save_LIBS=$LIBS
11850LIBS="-lresolv $LIBS" 21445LIBS="-lresolv $LIBS"
11851cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21446cat >conftest.$ac_ext <<_ACEOF
21447/* confdefs.h. */
21448_ACEOF
21449cat confdefs.h >>conftest.$ac_ext
21450cat >>conftest.$ac_ext <<_ACEOF
11852/* end confdefs.h. */ 21451/* end confdefs.h. */
11853 21452
11854/* Override any GCC internal prototype to avoid an error. 21453/* Override any GCC internal prototype to avoid an error.
@@ -11866,28 +21465,57 @@ return res_send ();
11866 return 0; 21465 return 0;
11867} 21466}
11868_ACEOF 21467_ACEOF
11869if ac_fn_c_try_link "$LINENO"; then : 21468rm -f conftest.$ac_objext conftest$ac_exeext
21469if { (ac_try="$ac_link"
21470case "(($ac_try" in
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21473esac
21474eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21475$as_echo "$ac_try_echo") >&5
21476 (eval "$ac_link") 2>conftest.er1
21477 ac_status=$?
21478 grep -v '^ *+' conftest.er1 >conftest.err
21479 rm -f conftest.er1
21480 cat conftest.err >&5
21481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21482 (exit $ac_status); } && {
21483 test -z "$ac_c_werror_flag" ||
21484 test ! -s conftest.err
21485 } && test -s conftest$ac_exeext && {
21486 test "$cross_compiling" = yes ||
21487 $as_test_x conftest$ac_exeext
21488 }; then
11870 ac_cv_lib_resolv_res_send=yes 21489 ac_cv_lib_resolv_res_send=yes
11871else 21490else
11872 ac_cv_lib_resolv_res_send=no 21491 $as_echo "$as_me: failed program was:" >&5
21492sed 's/^/| /' conftest.$ac_ext >&5
21493
21494 ac_cv_lib_resolv_res_send=no
11873fi 21495fi
11874rm -f core conftest.err conftest.$ac_objext \ 21496
11875 conftest$ac_exeext conftest.$ac_ext 21497rm -rf conftest.dSYM
21498rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21499 conftest$ac_exeext conftest.$ac_ext
11876LIBS=$ac_check_lib_save_LIBS 21500LIBS=$ac_check_lib_save_LIBS
11877fi 21501fi
11878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5 21502{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
11879$as_echo "$ac_cv_lib_resolv_res_send" >&6; } 21503$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
11880if test "x$ac_cv_lib_resolv_res_send" = x""yes; then : 21504if test $ac_cv_lib_resolv_res_send = yes; then
11881 resolv=yes 21505 resolv=yes
11882else 21506else
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5 21507 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
11884$as_echo_n "checking for __res_send in -lresolv... " >&6; } 21508$as_echo_n "checking for __res_send in -lresolv... " >&6; }
11885if test "${ac_cv_lib_resolv___res_send+set}" = set; then : 21509if test "${ac_cv_lib_resolv___res_send+set}" = set; then
11886 $as_echo_n "(cached) " >&6 21510 $as_echo_n "(cached) " >&6
11887else 21511else
11888 ac_check_lib_save_LIBS=$LIBS 21512 ac_check_lib_save_LIBS=$LIBS
11889LIBS="-lresolv $LIBS" 21513LIBS="-lresolv $LIBS"
11890cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21514cat >conftest.$ac_ext <<_ACEOF
21515/* confdefs.h. */
21516_ACEOF
21517cat confdefs.h >>conftest.$ac_ext
21518cat >>conftest.$ac_ext <<_ACEOF
11891/* end confdefs.h. */ 21519/* end confdefs.h. */
11892 21520
11893/* Override any GCC internal prototype to avoid an error. 21521/* Override any GCC internal prototype to avoid an error.
@@ -11905,18 +21533,43 @@ return __res_send ();
11905 return 0; 21533 return 0;
11906} 21534}
11907_ACEOF 21535_ACEOF
11908if ac_fn_c_try_link "$LINENO"; then : 21536rm -f conftest.$ac_objext conftest$ac_exeext
21537if { (ac_try="$ac_link"
21538case "(($ac_try" in
21539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540 *) ac_try_echo=$ac_try;;
21541esac
21542eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21543$as_echo "$ac_try_echo") >&5
21544 (eval "$ac_link") 2>conftest.er1
21545 ac_status=$?
21546 grep -v '^ *+' conftest.er1 >conftest.err
21547 rm -f conftest.er1
21548 cat conftest.err >&5
21549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21550 (exit $ac_status); } && {
21551 test -z "$ac_c_werror_flag" ||
21552 test ! -s conftest.err
21553 } && test -s conftest$ac_exeext && {
21554 test "$cross_compiling" = yes ||
21555 $as_test_x conftest$ac_exeext
21556 }; then
11909 ac_cv_lib_resolv___res_send=yes 21557 ac_cv_lib_resolv___res_send=yes
11910else 21558else
11911 ac_cv_lib_resolv___res_send=no 21559 $as_echo "$as_me: failed program was:" >&5
21560sed 's/^/| /' conftest.$ac_ext >&5
21561
21562 ac_cv_lib_resolv___res_send=no
11912fi 21563fi
11913rm -f core conftest.err conftest.$ac_objext \ 21564
11914 conftest$ac_exeext conftest.$ac_ext 21565rm -rf conftest.dSYM
21566rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21567 conftest$ac_exeext conftest.$ac_ext
11915LIBS=$ac_check_lib_save_LIBS 21568LIBS=$ac_check_lib_save_LIBS
11916fi 21569fi
11917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5 21570{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
11918$as_echo "$ac_cv_lib_resolv___res_send" >&6; } 21571$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
11919if test "x$ac_cv_lib_resolv___res_send" = x""yes; then : 21572if test $ac_cv_lib_resolv___res_send = yes; then
11920 resolv=yes 21573 resolv=yes
11921fi 21574fi
11922 21575
@@ -11931,18 +21584,106 @@ fi
11931 else 21584 else
11932 RESOLVLIB= 21585 RESOLVLIB=
11933 fi 21586 fi
11934 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost" 21587 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
11935if test "x$ac_cv_func_hes_getmailhost" = x""yes; then : 21588$as_echo_n "checking for hes_getmailhost... " >&6; }
21589if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21590 $as_echo_n "(cached) " >&6
21591else
21592 cat >conftest.$ac_ext <<_ACEOF
21593/* confdefs.h. */
21594_ACEOF
21595cat confdefs.h >>conftest.$ac_ext
21596cat >>conftest.$ac_ext <<_ACEOF
21597/* end confdefs.h. */
21598/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21600#define hes_getmailhost innocuous_hes_getmailhost
21601
21602/* System header to define __stub macros and hopefully few prototypes,
21603 which can conflict with char hes_getmailhost (); below.
21604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21605 <limits.h> exists even on freestanding compilers. */
21606
21607#ifdef __STDC__
21608# include <limits.h>
21609#else
21610# include <assert.h>
21611#endif
21612
21613#undef hes_getmailhost
21614
21615/* Override any GCC internal prototype to avoid an error.
21616 Use char because int might match the return type of a GCC
21617 builtin and then its argument prototype would still apply. */
21618#ifdef __cplusplus
21619extern "C"
21620#endif
21621char hes_getmailhost ();
21622/* The GNU C library defines this for functions which it implements
21623 to always fail with ENOSYS. Some functions are actually named
21624 something starting with __ and the normal name is an alias. */
21625#if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21626choke me
21627#endif
21628
21629int
21630main ()
21631{
21632return hes_getmailhost ();
21633 ;
21634 return 0;
21635}
21636_ACEOF
21637rm -f conftest.$ac_objext conftest$ac_exeext
21638if { (ac_try="$ac_link"
21639case "(($ac_try" in
21640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21641 *) ac_try_echo=$ac_try;;
21642esac
21643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21644$as_echo "$ac_try_echo") >&5
21645 (eval "$ac_link") 2>conftest.er1
21646 ac_status=$?
21647 grep -v '^ *+' conftest.er1 >conftest.err
21648 rm -f conftest.er1
21649 cat conftest.err >&5
21650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21651 (exit $ac_status); } && {
21652 test -z "$ac_c_werror_flag" ||
21653 test ! -s conftest.err
21654 } && test -s conftest$ac_exeext && {
21655 test "$cross_compiling" = yes ||
21656 $as_test_x conftest$ac_exeext
21657 }; then
21658 ac_cv_func_hes_getmailhost=yes
21659else
21660 $as_echo "$as_me: failed program was:" >&5
21661sed 's/^/| /' conftest.$ac_ext >&5
21662
21663 ac_cv_func_hes_getmailhost=no
21664fi
11936 21665
21666rm -rf conftest.dSYM
21667rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21668 conftest$ac_exeext conftest.$ac_ext
21669fi
21670{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21671$as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21672if test $ac_cv_func_hes_getmailhost = yes; then
21673 :
11937else 21674else
11938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5 21675 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
11939$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } 21676$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
11940if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then : 21677if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
11941 $as_echo_n "(cached) " >&6 21678 $as_echo_n "(cached) " >&6
11942else 21679else
11943 ac_check_lib_save_LIBS=$LIBS 21680 ac_check_lib_save_LIBS=$LIBS
11944LIBS="-lhesiod $RESOLVLIB $LIBS" 21681LIBS="-lhesiod $RESOLVLIB $LIBS"
11945cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21682cat >conftest.$ac_ext <<_ACEOF
21683/* confdefs.h. */
21684_ACEOF
21685cat confdefs.h >>conftest.$ac_ext
21686cat >>conftest.$ac_ext <<_ACEOF
11946/* end confdefs.h. */ 21687/* end confdefs.h. */
11947 21688
11948/* Override any GCC internal prototype to avoid an error. 21689/* Override any GCC internal prototype to avoid an error.
@@ -11960,46 +21701,95 @@ return hes_getmailhost ();
11960 return 0; 21701 return 0;
11961} 21702}
11962_ACEOF 21703_ACEOF
11963if ac_fn_c_try_link "$LINENO"; then : 21704rm -f conftest.$ac_objext conftest$ac_exeext
21705if { (ac_try="$ac_link"
21706case "(($ac_try" in
21707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21708 *) ac_try_echo=$ac_try;;
21709esac
21710eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21711$as_echo "$ac_try_echo") >&5
21712 (eval "$ac_link") 2>conftest.er1
21713 ac_status=$?
21714 grep -v '^ *+' conftest.er1 >conftest.err
21715 rm -f conftest.er1
21716 cat conftest.err >&5
21717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21718 (exit $ac_status); } && {
21719 test -z "$ac_c_werror_flag" ||
21720 test ! -s conftest.err
21721 } && test -s conftest$ac_exeext && {
21722 test "$cross_compiling" = yes ||
21723 $as_test_x conftest$ac_exeext
21724 }; then
11964 ac_cv_lib_hesiod_hes_getmailhost=yes 21725 ac_cv_lib_hesiod_hes_getmailhost=yes
11965else 21726else
11966 ac_cv_lib_hesiod_hes_getmailhost=no 21727 $as_echo "$as_me: failed program was:" >&5
21728sed 's/^/| /' conftest.$ac_ext >&5
21729
21730 ac_cv_lib_hesiod_hes_getmailhost=no
11967fi 21731fi
11968rm -f core conftest.err conftest.$ac_objext \ 21732
11969 conftest$ac_exeext conftest.$ac_ext 21733rm -rf conftest.dSYM
21734rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21735 conftest$ac_exeext conftest.$ac_ext
11970LIBS=$ac_check_lib_save_LIBS 21736LIBS=$ac_check_lib_save_LIBS
11971fi 21737fi
11972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 21738{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
11973$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } 21739$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
11974if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then : 21740if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
11975 21741 hesiod=yes
11976$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
11977
11978else 21742else
11979 : 21743 :
11980fi 21744fi
11981 21745
11982fi 21746fi
11983 21747
21748
21749 if test x"$hesiod" = xyes; then
21750
21751cat >>confdefs.h <<\_ACEOF
21752#define HAVE_LIBHESIOD 1
21753_ACEOF
21754
21755 LIBHESIOD=-lhesiod
21756 fi
11984fi 21757fi
11985 21758
21759
11986# Do we need libresolv (due to res_init or Hesiod)? 21760# Do we need libresolv (due to res_init or Hesiod)?
11987if test "$resolv" = yes ; then 21761if test "$resolv" = yes ; then
11988 21762
11989$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h 21763cat >>confdefs.h <<\_ACEOF
21764#define HAVE_LIBRESOLV 1
21765_ACEOF
11990 21766
21767 LIBRESOLV=-lresolv
21768else
21769 LIBRESOLV=
11991fi 21770fi
11992 21771
21772
11993# These tell us which Kerberos-related libraries to use. 21773# These tell us which Kerberos-related libraries to use.
21774COM_ERRLIB=
21775CRYPTOLIB=
21776KRB5LIB=
21777DESLIB=
21778KRB4LIB=
21779
11994if test "${with_kerberos}" != no; then 21780if test "${with_kerberos}" != no; then
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 21781 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
11996$as_echo_n "checking for com_err in -lcom_err... " >&6; } 21782$as_echo_n "checking for com_err in -lcom_err... " >&6; }
11997if test "${ac_cv_lib_com_err_com_err+set}" = set; then : 21783if test "${ac_cv_lib_com_err_com_err+set}" = set; then
11998 $as_echo_n "(cached) " >&6 21784 $as_echo_n "(cached) " >&6
11999else 21785else
12000 ac_check_lib_save_LIBS=$LIBS 21786 ac_check_lib_save_LIBS=$LIBS
12001LIBS="-lcom_err $LIBS" 21787LIBS="-lcom_err $LIBS"
12002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21788cat >conftest.$ac_ext <<_ACEOF
21789/* confdefs.h. */
21790_ACEOF
21791cat confdefs.h >>conftest.$ac_ext
21792cat >>conftest.$ac_ext <<_ACEOF
12003/* end confdefs.h. */ 21793/* end confdefs.h. */
12004 21794
12005/* Override any GCC internal prototype to avoid an error. 21795/* Override any GCC internal prototype to avoid an error.
@@ -12017,34 +21807,69 @@ return com_err ();
12017 return 0; 21807 return 0;
12018} 21808}
12019_ACEOF 21809_ACEOF
12020if ac_fn_c_try_link "$LINENO"; then : 21810rm -f conftest.$ac_objext conftest$ac_exeext
21811if { (ac_try="$ac_link"
21812case "(($ac_try" in
21813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21814 *) ac_try_echo=$ac_try;;
21815esac
21816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21817$as_echo "$ac_try_echo") >&5
21818 (eval "$ac_link") 2>conftest.er1
21819 ac_status=$?
21820 grep -v '^ *+' conftest.er1 >conftest.err
21821 rm -f conftest.er1
21822 cat conftest.err >&5
21823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21824 (exit $ac_status); } && {
21825 test -z "$ac_c_werror_flag" ||
21826 test ! -s conftest.err
21827 } && test -s conftest$ac_exeext && {
21828 test "$cross_compiling" = yes ||
21829 $as_test_x conftest$ac_exeext
21830 }; then
12021 ac_cv_lib_com_err_com_err=yes 21831 ac_cv_lib_com_err_com_err=yes
12022else 21832else
12023 ac_cv_lib_com_err_com_err=no 21833 $as_echo "$as_me: failed program was:" >&5
21834sed 's/^/| /' conftest.$ac_ext >&5
21835
21836 ac_cv_lib_com_err_com_err=no
12024fi 21837fi
12025rm -f core conftest.err conftest.$ac_objext \ 21838
12026 conftest$ac_exeext conftest.$ac_ext 21839rm -rf conftest.dSYM
21840rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21841 conftest$ac_exeext conftest.$ac_ext
12027LIBS=$ac_check_lib_save_LIBS 21842LIBS=$ac_check_lib_save_LIBS
12028fi 21843fi
12029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 21844{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
12030$as_echo "$ac_cv_lib_com_err_com_err" >&6; } 21845$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12031if test "x$ac_cv_lib_com_err_com_err" = x""yes; then : 21846if test $ac_cv_lib_com_err_com_err = yes; then
12032 cat >>confdefs.h <<_ACEOF 21847 have_com_err=yes
12033#define HAVE_LIBCOM_ERR 1 21848else
12034_ACEOF 21849 have_com_err=no
21850fi
12035 21851
12036 LIBS="-lcom_err $LIBS" 21852 if test $have_com_err = yes; then
21853 COM_ERRLIB=-lcom_err
21854 LIBS="$COM_ERRLIB $LIBS"
12037 21855
12038fi 21856cat >>confdefs.h <<\_ACEOF
21857#define HAVE_LIBCOM_ERR 1
21858_ACEOF
12039 21859
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 21860 fi
12041$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } 21861 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12042if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then : 21862$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21863if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
12043 $as_echo_n "(cached) " >&6 21864 $as_echo_n "(cached) " >&6
12044else 21865else
12045 ac_check_lib_save_LIBS=$LIBS 21866 ac_check_lib_save_LIBS=$LIBS
12046LIBS="-lk5crypto $LIBS" 21867LIBS="-lcrypto $LIBS"
12047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21868cat >conftest.$ac_ext <<_ACEOF
21869/* confdefs.h. */
21870_ACEOF
21871cat confdefs.h >>conftest.$ac_ext
21872cat >>conftest.$ac_ext <<_ACEOF
12048/* end confdefs.h. */ 21873/* end confdefs.h. */
12049 21874
12050/* Override any GCC internal prototype to avoid an error. 21875/* Override any GCC internal prototype to avoid an error.
@@ -12062,34 +21887,69 @@ return mit_des_cbc_encrypt ();
12062 return 0; 21887 return 0;
12063} 21888}
12064_ACEOF 21889_ACEOF
12065if ac_fn_c_try_link "$LINENO"; then : 21890rm -f conftest.$ac_objext conftest$ac_exeext
12066 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes 21891if { (ac_try="$ac_link"
21892case "(($ac_try" in
21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894 *) ac_try_echo=$ac_try;;
21895esac
21896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21897$as_echo "$ac_try_echo") >&5
21898 (eval "$ac_link") 2>conftest.er1
21899 ac_status=$?
21900 grep -v '^ *+' conftest.er1 >conftest.err
21901 rm -f conftest.er1
21902 cat conftest.err >&5
21903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21904 (exit $ac_status); } && {
21905 test -z "$ac_c_werror_flag" ||
21906 test ! -s conftest.err
21907 } && test -s conftest$ac_exeext && {
21908 test "$cross_compiling" = yes ||
21909 $as_test_x conftest$ac_exeext
21910 }; then
21911 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12067else 21912else
12068 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no 21913 $as_echo "$as_me: failed program was:" >&5
21914sed 's/^/| /' conftest.$ac_ext >&5
21915
21916 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12069fi 21917fi
12070rm -f core conftest.err conftest.$ac_objext \ 21918
12071 conftest$ac_exeext conftest.$ac_ext 21919rm -rf conftest.dSYM
21920rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21921 conftest$ac_exeext conftest.$ac_ext
12072LIBS=$ac_check_lib_save_LIBS 21922LIBS=$ac_check_lib_save_LIBS
12073fi 21923fi
12074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 21924{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12075$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } 21925$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12076if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then : 21926if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
12077 cat >>confdefs.h <<_ACEOF 21927 have_crypto=yes
12078#define HAVE_LIBK5CRYPTO 1 21928else
12079_ACEOF 21929 have_crypto=no
21930fi
12080 21931
12081 LIBS="-lk5crypto $LIBS" 21932 if test $have_crypto = yes; then
21933 CRYPTOLIB=-lcrypto
21934 LIBS="$CRYPTOLIB $LIBS"
12082 21935
12083fi 21936cat >>confdefs.h <<\_ACEOF
21937#define HAVE_LIBCRYPTO 1
21938_ACEOF
12084 21939
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5 21940 fi
12086$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } 21941 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12087if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then : 21942$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
21943if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
12088 $as_echo_n "(cached) " >&6 21944 $as_echo_n "(cached) " >&6
12089else 21945else
12090 ac_check_lib_save_LIBS=$LIBS 21946 ac_check_lib_save_LIBS=$LIBS
12091LIBS="-lcrypto $LIBS" 21947LIBS="-lk5crypto $LIBS"
12092cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21948cat >conftest.$ac_ext <<_ACEOF
21949/* confdefs.h. */
21950_ACEOF
21951cat confdefs.h >>conftest.$ac_ext
21952cat >>conftest.$ac_ext <<_ACEOF
12093/* end confdefs.h. */ 21953/* end confdefs.h. */
12094 21954
12095/* Override any GCC internal prototype to avoid an error. 21955/* Override any GCC internal prototype to avoid an error.
@@ -12107,34 +21967,69 @@ return mit_des_cbc_encrypt ();
12107 return 0; 21967 return 0;
12108} 21968}
12109_ACEOF 21969_ACEOF
12110if ac_fn_c_try_link "$LINENO"; then : 21970rm -f conftest.$ac_objext conftest$ac_exeext
12111 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes 21971if { (ac_try="$ac_link"
21972case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21975esac
21976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21977$as_echo "$ac_try_echo") >&5
21978 (eval "$ac_link") 2>conftest.er1
21979 ac_status=$?
21980 grep -v '^ *+' conftest.er1 >conftest.err
21981 rm -f conftest.er1
21982 cat conftest.err >&5
21983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); } && {
21985 test -z "$ac_c_werror_flag" ||
21986 test ! -s conftest.err
21987 } && test -s conftest$ac_exeext && {
21988 test "$cross_compiling" = yes ||
21989 $as_test_x conftest$ac_exeext
21990 }; then
21991 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12112else 21992else
12113 ac_cv_lib_crypto_mit_des_cbc_encrypt=no 21993 $as_echo "$as_me: failed program was:" >&5
21994sed 's/^/| /' conftest.$ac_ext >&5
21995
21996 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12114fi 21997fi
12115rm -f core conftest.err conftest.$ac_objext \ 21998
12116 conftest$ac_exeext conftest.$ac_ext 21999rm -rf conftest.dSYM
22000rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22001 conftest$ac_exeext conftest.$ac_ext
12117LIBS=$ac_check_lib_save_LIBS 22002LIBS=$ac_check_lib_save_LIBS
12118fi 22003fi
12119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 22004{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12120$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } 22005$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12121if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then : 22006if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
12122 cat >>confdefs.h <<_ACEOF 22007 have_k5crypto=yes
12123#define HAVE_LIBCRYPTO 1 22008else
12124_ACEOF 22009 have_k5crypto=no
22010fi
12125 22011
12126 LIBS="-lcrypto $LIBS" 22012 if test $have_k5crypto = yes; then
22013 CRYPTOLIB=-lk5crypto
22014 LIBS="$CRYPTOLIB $LIBS"
12127 22015
12128fi 22016cat >>confdefs.h <<\_ACEOF
22017#define HAVE_LIBK5CRYPTO 1
22018_ACEOF
12129 22019
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 22020 fi
22021 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
12131$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } 22022$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12132if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then : 22023if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
12133 $as_echo_n "(cached) " >&6 22024 $as_echo_n "(cached) " >&6
12134else 22025else
12135 ac_check_lib_save_LIBS=$LIBS 22026 ac_check_lib_save_LIBS=$LIBS
12136LIBS="-lkrb5 $LIBS" 22027LIBS="-lkrb5 $LIBS"
12137cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22028cat >conftest.$ac_ext <<_ACEOF
22029/* confdefs.h. */
22030_ACEOF
22031cat confdefs.h >>conftest.$ac_ext
22032cat >>conftest.$ac_ext <<_ACEOF
12138/* end confdefs.h. */ 22033/* end confdefs.h. */
12139 22034
12140/* Override any GCC internal prototype to avoid an error. 22035/* Override any GCC internal prototype to avoid an error.
@@ -12152,35 +22047,70 @@ return krb5_init_context ();
12152 return 0; 22047 return 0;
12153} 22048}
12154_ACEOF 22049_ACEOF
12155if ac_fn_c_try_link "$LINENO"; then : 22050rm -f conftest.$ac_objext conftest$ac_exeext
22051if { (ac_try="$ac_link"
22052case "(($ac_try" in
22053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22054 *) ac_try_echo=$ac_try;;
22055esac
22056eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22057$as_echo "$ac_try_echo") >&5
22058 (eval "$ac_link") 2>conftest.er1
22059 ac_status=$?
22060 grep -v '^ *+' conftest.er1 >conftest.err
22061 rm -f conftest.er1
22062 cat conftest.err >&5
22063 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22064 (exit $ac_status); } && {
22065 test -z "$ac_c_werror_flag" ||
22066 test ! -s conftest.err
22067 } && test -s conftest$ac_exeext && {
22068 test "$cross_compiling" = yes ||
22069 $as_test_x conftest$ac_exeext
22070 }; then
12156 ac_cv_lib_krb5_krb5_init_context=yes 22071 ac_cv_lib_krb5_krb5_init_context=yes
12157else 22072else
12158 ac_cv_lib_krb5_krb5_init_context=no 22073 $as_echo "$as_me: failed program was:" >&5
22074sed 's/^/| /' conftest.$ac_ext >&5
22075
22076 ac_cv_lib_krb5_krb5_init_context=no
12159fi 22077fi
12160rm -f core conftest.err conftest.$ac_objext \ 22078
12161 conftest$ac_exeext conftest.$ac_ext 22079rm -rf conftest.dSYM
22080rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22081 conftest$ac_exeext conftest.$ac_ext
12162LIBS=$ac_check_lib_save_LIBS 22082LIBS=$ac_check_lib_save_LIBS
12163fi 22083fi
12164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 22084{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12165$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } 22085$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12166if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then : 22086if test $ac_cv_lib_krb5_krb5_init_context = yes; then
12167 cat >>confdefs.h <<_ACEOF 22087 have_krb5=yes
12168#define HAVE_LIBKRB5 1 22088else
12169_ACEOF 22089 have_krb5=no
22090fi
12170 22091
12171 LIBS="-lkrb5 $LIBS" 22092 if test $have_krb5=yes; then
22093 KRB5LIB=-lkrb5
22094 LIBS="$KRB5LIB $LIBS"
12172 22095
12173fi 22096cat >>confdefs.h <<\_ACEOF
22097#define HAVE_LIBKRB5 1
22098_ACEOF
12174 22099
12175 if test "${with_kerberos5}" = no; then 22100 fi
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5 22101 if test "${with_kerberos5}" = no; then
22102 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
12177$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } 22103$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12178if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then : 22104if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
12179 $as_echo_n "(cached) " >&6 22105 $as_echo_n "(cached) " >&6
12180else 22106else
12181 ac_check_lib_save_LIBS=$LIBS 22107 ac_check_lib_save_LIBS=$LIBS
12182LIBS="-ldes425 $LIBS" 22108LIBS="-ldes425 $LIBS"
12183cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22109cat >conftest.$ac_ext <<_ACEOF
22110/* confdefs.h. */
22111_ACEOF
22112cat confdefs.h >>conftest.$ac_ext
22113cat >>conftest.$ac_ext <<_ACEOF
12184/* end confdefs.h. */ 22114/* end confdefs.h. */
12185 22115
12186/* Override any GCC internal prototype to avoid an error. 22116/* Override any GCC internal prototype to avoid an error.
@@ -12198,33 +22128,69 @@ return des_cbc_encrypt ();
12198 return 0; 22128 return 0;
12199} 22129}
12200_ACEOF 22130_ACEOF
12201if ac_fn_c_try_link "$LINENO"; then : 22131rm -f conftest.$ac_objext conftest$ac_exeext
22132if { (ac_try="$ac_link"
22133case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22136esac
22137eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22138$as_echo "$ac_try_echo") >&5
22139 (eval "$ac_link") 2>conftest.er1
22140 ac_status=$?
22141 grep -v '^ *+' conftest.er1 >conftest.err
22142 rm -f conftest.er1
22143 cat conftest.err >&5
22144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } && {
22146 test -z "$ac_c_werror_flag" ||
22147 test ! -s conftest.err
22148 } && test -s conftest$ac_exeext && {
22149 test "$cross_compiling" = yes ||
22150 $as_test_x conftest$ac_exeext
22151 }; then
12202 ac_cv_lib_des425_des_cbc_encrypt=yes 22152 ac_cv_lib_des425_des_cbc_encrypt=yes
12203else 22153else
12204 ac_cv_lib_des425_des_cbc_encrypt=no 22154 $as_echo "$as_me: failed program was:" >&5
22155sed 's/^/| /' conftest.$ac_ext >&5
22156
22157 ac_cv_lib_des425_des_cbc_encrypt=no
12205fi 22158fi
12206rm -f core conftest.err conftest.$ac_objext \ 22159
12207 conftest$ac_exeext conftest.$ac_ext 22160rm -rf conftest.dSYM
22161rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22162 conftest$ac_exeext conftest.$ac_ext
12208LIBS=$ac_check_lib_save_LIBS 22163LIBS=$ac_check_lib_save_LIBS
12209fi 22164fi
12210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 22165{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12211$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } 22166$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12212if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then : 22167if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
12213 cat >>confdefs.h <<_ACEOF 22168 have_des425=yes
22169else
22170 have_des425=no
22171fi
22172
22173 if test $have_des425 = yes; then
22174 DESLIB=-ldes425
22175 LIBS="$DESLIB $LIBS"
22176
22177cat >>confdefs.h <<\_ACEOF
12214#define HAVE_LIBDES425 1 22178#define HAVE_LIBDES425 1
12215_ACEOF 22179_ACEOF
12216 22180
12217 LIBS="-ldes425 $LIBS" 22181 else
12218 22182 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
12219else
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
12221$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 22183$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12222if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then : 22184if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
12223 $as_echo_n "(cached) " >&6 22185 $as_echo_n "(cached) " >&6
12224else 22186else
12225 ac_check_lib_save_LIBS=$LIBS 22187 ac_check_lib_save_LIBS=$LIBS
12226LIBS="-ldes $LIBS" 22188LIBS="-ldes $LIBS"
12227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22189cat >conftest.$ac_ext <<_ACEOF
22190/* confdefs.h. */
22191_ACEOF
22192cat confdefs.h >>conftest.$ac_ext
22193cat >>conftest.$ac_ext <<_ACEOF
12228/* end confdefs.h. */ 22194/* end confdefs.h. */
12229 22195
12230/* Override any GCC internal prototype to avoid an error. 22196/* Override any GCC internal prototype to avoid an error.
@@ -12242,36 +22208,70 @@ return des_cbc_encrypt ();
12242 return 0; 22208 return 0;
12243} 22209}
12244_ACEOF 22210_ACEOF
12245if ac_fn_c_try_link "$LINENO"; then : 22211rm -f conftest.$ac_objext conftest$ac_exeext
22212if { (ac_try="$ac_link"
22213case "(($ac_try" in
22214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22215 *) ac_try_echo=$ac_try;;
22216esac
22217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22218$as_echo "$ac_try_echo") >&5
22219 (eval "$ac_link") 2>conftest.er1
22220 ac_status=$?
22221 grep -v '^ *+' conftest.er1 >conftest.err
22222 rm -f conftest.er1
22223 cat conftest.err >&5
22224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22225 (exit $ac_status); } && {
22226 test -z "$ac_c_werror_flag" ||
22227 test ! -s conftest.err
22228 } && test -s conftest$ac_exeext && {
22229 test "$cross_compiling" = yes ||
22230 $as_test_x conftest$ac_exeext
22231 }; then
12246 ac_cv_lib_des_des_cbc_encrypt=yes 22232 ac_cv_lib_des_des_cbc_encrypt=yes
12247else 22233else
12248 ac_cv_lib_des_des_cbc_encrypt=no 22234 $as_echo "$as_me: failed program was:" >&5
22235sed 's/^/| /' conftest.$ac_ext >&5
22236
22237 ac_cv_lib_des_des_cbc_encrypt=no
12249fi 22238fi
12250rm -f core conftest.err conftest.$ac_objext \ 22239
12251 conftest$ac_exeext conftest.$ac_ext 22240rm -rf conftest.dSYM
22241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22242 conftest$ac_exeext conftest.$ac_ext
12252LIBS=$ac_check_lib_save_LIBS 22243LIBS=$ac_check_lib_save_LIBS
12253fi 22244fi
12254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 22245{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12255$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 22246$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12256if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then : 22247if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
12257 cat >>confdefs.h <<_ACEOF 22248 have_des=yes
12258#define HAVE_LIBDES 1 22249else
12259_ACEOF 22250 have_des=no
12260
12261 LIBS="-ldes $LIBS"
12262
12263fi 22251fi
12264 22252
12265fi 22253 if test $have_des = yes; then
22254 DESLIB=-ldes
22255 LIBS="$DESLIB $LIBS"
22256
22257cat >>confdefs.h <<\_ACEOF
22258#define HAVE_LIBDES 1
22259_ACEOF
12266 22260
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5 22261 fi
22262 fi
22263 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
12268$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } 22264$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12269if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then : 22265if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
12270 $as_echo_n "(cached) " >&6 22266 $as_echo_n "(cached) " >&6
12271else 22267else
12272 ac_check_lib_save_LIBS=$LIBS 22268 ac_check_lib_save_LIBS=$LIBS
12273LIBS="-lkrb4 $LIBS" 22269LIBS="-lkrb4 $LIBS"
12274cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22270cat >conftest.$ac_ext <<_ACEOF
22271/* confdefs.h. */
22272_ACEOF
22273cat confdefs.h >>conftest.$ac_ext
22274cat >>conftest.$ac_ext <<_ACEOF
12275/* end confdefs.h. */ 22275/* end confdefs.h. */
12276 22276
12277/* Override any GCC internal prototype to avoid an error. 22277/* Override any GCC internal prototype to avoid an error.
@@ -12289,33 +22289,69 @@ return krb_get_cred ();
12289 return 0; 22289 return 0;
12290} 22290}
12291_ACEOF 22291_ACEOF
12292if ac_fn_c_try_link "$LINENO"; then : 22292rm -f conftest.$ac_objext conftest$ac_exeext
22293if { (ac_try="$ac_link"
22294case "(($ac_try" in
22295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22296 *) ac_try_echo=$ac_try;;
22297esac
22298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22299$as_echo "$ac_try_echo") >&5
22300 (eval "$ac_link") 2>conftest.er1
22301 ac_status=$?
22302 grep -v '^ *+' conftest.er1 >conftest.err
22303 rm -f conftest.er1
22304 cat conftest.err >&5
22305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); } && {
22307 test -z "$ac_c_werror_flag" ||
22308 test ! -s conftest.err
22309 } && test -s conftest$ac_exeext && {
22310 test "$cross_compiling" = yes ||
22311 $as_test_x conftest$ac_exeext
22312 }; then
12293 ac_cv_lib_krb4_krb_get_cred=yes 22313 ac_cv_lib_krb4_krb_get_cred=yes
12294else 22314else
12295 ac_cv_lib_krb4_krb_get_cred=no 22315 $as_echo "$as_me: failed program was:" >&5
22316sed 's/^/| /' conftest.$ac_ext >&5
22317
22318 ac_cv_lib_krb4_krb_get_cred=no
12296fi 22319fi
12297rm -f core conftest.err conftest.$ac_objext \ 22320
12298 conftest$ac_exeext conftest.$ac_ext 22321rm -rf conftest.dSYM
22322rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22323 conftest$ac_exeext conftest.$ac_ext
12299LIBS=$ac_check_lib_save_LIBS 22324LIBS=$ac_check_lib_save_LIBS
12300fi 22325fi
12301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5 22326{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12302$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } 22327$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12303if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then : 22328if test $ac_cv_lib_krb4_krb_get_cred = yes; then
12304 cat >>confdefs.h <<_ACEOF 22329 have_krb4=yes
22330else
22331 have_krb4=no
22332fi
22333
22334 if test $have_krb4 = yes; then
22335 KRB4LIB=-lkrb4
22336 LIBS="$KRB4LIB $LIBS"
22337
22338cat >>confdefs.h <<\_ACEOF
12305#define HAVE_LIBKRB4 1 22339#define HAVE_LIBKRB4 1
12306_ACEOF 22340_ACEOF
12307 22341
12308 LIBS="-lkrb4 $LIBS" 22342 else
12309 22343 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
12310else
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
12312$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } 22344$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12313if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then : 22345if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
12314 $as_echo_n "(cached) " >&6 22346 $as_echo_n "(cached) " >&6
12315else 22347else
12316 ac_check_lib_save_LIBS=$LIBS 22348 ac_check_lib_save_LIBS=$LIBS
12317LIBS="-lkrb $LIBS" 22349LIBS="-lkrb $LIBS"
12318cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22350cat >conftest.$ac_ext <<_ACEOF
22351/* confdefs.h. */
22352_ACEOF
22353cat confdefs.h >>conftest.$ac_ext
22354cat >>conftest.$ac_ext <<_ACEOF
12319/* end confdefs.h. */ 22355/* end confdefs.h. */
12320 22356
12321/* Override any GCC internal prototype to avoid an error. 22357/* Override any GCC internal prototype to avoid an error.
@@ -12333,41 +22369,299 @@ return krb_get_cred ();
12333 return 0; 22369 return 0;
12334} 22370}
12335_ACEOF 22371_ACEOF
12336if ac_fn_c_try_link "$LINENO"; then : 22372rm -f conftest.$ac_objext conftest$ac_exeext
22373if { (ac_try="$ac_link"
22374case "(($ac_try" in
22375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22376 *) ac_try_echo=$ac_try;;
22377esac
22378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22379$as_echo "$ac_try_echo") >&5
22380 (eval "$ac_link") 2>conftest.er1
22381 ac_status=$?
22382 grep -v '^ *+' conftest.er1 >conftest.err
22383 rm -f conftest.er1
22384 cat conftest.err >&5
22385 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22386 (exit $ac_status); } && {
22387 test -z "$ac_c_werror_flag" ||
22388 test ! -s conftest.err
22389 } && test -s conftest$ac_exeext && {
22390 test "$cross_compiling" = yes ||
22391 $as_test_x conftest$ac_exeext
22392 }; then
12337 ac_cv_lib_krb_krb_get_cred=yes 22393 ac_cv_lib_krb_krb_get_cred=yes
12338else 22394else
12339 ac_cv_lib_krb_krb_get_cred=no 22395 $as_echo "$as_me: failed program was:" >&5
22396sed 's/^/| /' conftest.$ac_ext >&5
22397
22398 ac_cv_lib_krb_krb_get_cred=no
12340fi 22399fi
12341rm -f core conftest.err conftest.$ac_objext \ 22400
12342 conftest$ac_exeext conftest.$ac_ext 22401rm -rf conftest.dSYM
22402rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22403 conftest$ac_exeext conftest.$ac_ext
12343LIBS=$ac_check_lib_save_LIBS 22404LIBS=$ac_check_lib_save_LIBS
12344fi 22405fi
12345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5 22406{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
12346$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } 22407$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12347if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then : 22408if test $ac_cv_lib_krb_krb_get_cred = yes; then
12348 cat >>confdefs.h <<_ACEOF 22409 have_krb=yes
22410else
22411 have_krb=no
22412fi
22413
22414 if test $have_krb = yes; then
22415 KRB4LIB=-lkrb
22416 LIBS="$KRB4LIB $LIBS"
22417
22418cat >>confdefs.h <<\_ACEOF
12349#define HAVE_LIBKRB 1 22419#define HAVE_LIBKRB 1
12350_ACEOF 22420_ACEOF
12351 22421
12352 LIBS="-lkrb $LIBS" 22422 fi
22423 fi
22424 fi
22425
22426 if test "${with_kerberos5}" != no; then
22427
22428for ac_header in krb5.h
22429do
22430as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22431if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22432 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22433$as_echo_n "checking for $ac_header... " >&6; }
22434if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22435 $as_echo_n "(cached) " >&6
22436fi
22437ac_res=`eval 'as_val=${'$as_ac_Header'}
22438 $as_echo "$as_val"'`
22439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22440$as_echo "$ac_res" >&6; }
22441else
22442 # Is the header compilable?
22443{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22444$as_echo_n "checking $ac_header usability... " >&6; }
22445cat >conftest.$ac_ext <<_ACEOF
22446/* confdefs.h. */
22447_ACEOF
22448cat confdefs.h >>conftest.$ac_ext
22449cat >>conftest.$ac_ext <<_ACEOF
22450/* end confdefs.h. */
22451$ac_includes_default
22452#include <$ac_header>
22453_ACEOF
22454rm -f conftest.$ac_objext
22455if { (ac_try="$ac_compile"
22456case "(($ac_try" in
22457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22458 *) ac_try_echo=$ac_try;;
22459esac
22460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22461$as_echo "$ac_try_echo") >&5
22462 (eval "$ac_compile") 2>conftest.er1
22463 ac_status=$?
22464 grep -v '^ *+' conftest.er1 >conftest.err
22465 rm -f conftest.er1
22466 cat conftest.err >&5
22467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); } && {
22469 test -z "$ac_c_werror_flag" ||
22470 test ! -s conftest.err
22471 } && test -s conftest.$ac_objext; then
22472 ac_header_compiler=yes
22473else
22474 $as_echo "$as_me: failed program was:" >&5
22475sed 's/^/| /' conftest.$ac_ext >&5
12353 22476
22477 ac_header_compiler=no
12354fi 22478fi
12355 22479
22480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22481{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22482$as_echo "$ac_header_compiler" >&6; }
22483
22484# Is the header present?
22485{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22486$as_echo_n "checking $ac_header presence... " >&6; }
22487cat >conftest.$ac_ext <<_ACEOF
22488/* confdefs.h. */
22489_ACEOF
22490cat confdefs.h >>conftest.$ac_ext
22491cat >>conftest.$ac_ext <<_ACEOF
22492/* end confdefs.h. */
22493#include <$ac_header>
22494_ACEOF
22495if { (ac_try="$ac_cpp conftest.$ac_ext"
22496case "(($ac_try" in
22497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22498 *) ac_try_echo=$ac_try;;
22499esac
22500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22501$as_echo "$ac_try_echo") >&5
22502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22503 ac_status=$?
22504 grep -v '^ *+' conftest.er1 >conftest.err
22505 rm -f conftest.er1
22506 cat conftest.err >&5
22507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22508 (exit $ac_status); } >/dev/null && {
22509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22510 test ! -s conftest.err
22511 }; then
22512 ac_header_preproc=yes
22513else
22514 $as_echo "$as_me: failed program was:" >&5
22515sed 's/^/| /' conftest.$ac_ext >&5
22516
22517 ac_header_preproc=no
12356fi 22518fi
12357 22519
12358 fi 22520rm -f conftest.err conftest.$ac_ext
22521{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22522$as_echo "$ac_header_preproc" >&6; }
12359 22523
12360 if test "${with_kerberos5}" != no; then 22524# So? What about this header?
12361 for ac_header in krb5.h 22525case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12362do : 22526 yes:no: )
12363 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" 22527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12364if test "x$ac_cv_header_krb5_h" = x""yes; then : 22528$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22530$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22531 ac_header_preproc=yes
22532 ;;
22533 no:yes:* )
22534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22535$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22537$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22539$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22541$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22543$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22545$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22546
22547 ;;
22548esac
22549{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22550$as_echo_n "checking for $ac_header... " >&6; }
22551if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22552 $as_echo_n "(cached) " >&6
22553else
22554 eval "$as_ac_Header=\$ac_header_preproc"
22555fi
22556ac_res=`eval 'as_val=${'$as_ac_Header'}
22557 $as_echo "$as_val"'`
22558 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22559$as_echo "$ac_res" >&6; }
22560
22561fi
22562if test `eval 'as_val=${'$as_ac_Header'}
22563 $as_echo "$as_val"'` = yes; then
12365 cat >>confdefs.h <<_ACEOF 22564 cat >>confdefs.h <<_ACEOF
12366#define HAVE_KRB5_H 1 22565#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12367_ACEOF 22566_ACEOF
12368 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h> 22567 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
12369" 22568$as_echo_n "checking for krb5_error.text... " >&6; }
12370if test "x$ac_cv_member_krb5_error_text" = x""yes; then : 22569if test "${ac_cv_member_krb5_error_text+set}" = set; then
22570 $as_echo_n "(cached) " >&6
22571else
22572 cat >conftest.$ac_ext <<_ACEOF
22573/* confdefs.h. */
22574_ACEOF
22575cat confdefs.h >>conftest.$ac_ext
22576cat >>conftest.$ac_ext <<_ACEOF
22577/* end confdefs.h. */
22578#include <krb5.h>
22579
22580int
22581main ()
22582{
22583static krb5_error ac_aggr;
22584if (ac_aggr.text)
22585return 0;
22586 ;
22587 return 0;
22588}
22589_ACEOF
22590rm -f conftest.$ac_objext
22591if { (ac_try="$ac_compile"
22592case "(($ac_try" in
22593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22594 *) ac_try_echo=$ac_try;;
22595esac
22596eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22597$as_echo "$ac_try_echo") >&5
22598 (eval "$ac_compile") 2>conftest.er1
22599 ac_status=$?
22600 grep -v '^ *+' conftest.er1 >conftest.err
22601 rm -f conftest.er1
22602 cat conftest.err >&5
22603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22604 (exit $ac_status); } && {
22605 test -z "$ac_c_werror_flag" ||
22606 test ! -s conftest.err
22607 } && test -s conftest.$ac_objext; then
22608 ac_cv_member_krb5_error_text=yes
22609else
22610 $as_echo "$as_me: failed program was:" >&5
22611sed 's/^/| /' conftest.$ac_ext >&5
22612
22613 cat >conftest.$ac_ext <<_ACEOF
22614/* confdefs.h. */
22615_ACEOF
22616cat confdefs.h >>conftest.$ac_ext
22617cat >>conftest.$ac_ext <<_ACEOF
22618/* end confdefs.h. */
22619#include <krb5.h>
22620
22621int
22622main ()
22623{
22624static krb5_error ac_aggr;
22625if (sizeof ac_aggr.text)
22626return 0;
22627 ;
22628 return 0;
22629}
22630_ACEOF
22631rm -f conftest.$ac_objext
22632if { (ac_try="$ac_compile"
22633case "(($ac_try" in
22634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22635 *) ac_try_echo=$ac_try;;
22636esac
22637eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22638$as_echo "$ac_try_echo") >&5
22639 (eval "$ac_compile") 2>conftest.er1
22640 ac_status=$?
22641 grep -v '^ *+' conftest.er1 >conftest.err
22642 rm -f conftest.er1
22643 cat conftest.err >&5
22644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22645 (exit $ac_status); } && {
22646 test -z "$ac_c_werror_flag" ||
22647 test ! -s conftest.err
22648 } && test -s conftest.$ac_objext; then
22649 ac_cv_member_krb5_error_text=yes
22650else
22651 $as_echo "$as_me: failed program was:" >&5
22652sed 's/^/| /' conftest.$ac_ext >&5
22653
22654 ac_cv_member_krb5_error_text=no
22655fi
22656
22657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22658fi
22659
22660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22661fi
22662{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22663$as_echo "$ac_cv_member_krb5_error_text" >&6; }
22664if test $ac_cv_member_krb5_error_text = yes; then
12371 22665
12372cat >>confdefs.h <<_ACEOF 22666cat >>confdefs.h <<_ACEOF
12373#define HAVE_KRB5_ERROR_TEXT 1 22667#define HAVE_KRB5_ERROR_TEXT 1
@@ -12375,9 +22669,104 @@ _ACEOF
12375 22669
12376 22670
12377fi 22671fi
12378ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h> 22672{ $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
12379" 22673$as_echo_n "checking for krb5_error.e_text... " >&6; }
12380if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then : 22674if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
22675 $as_echo_n "(cached) " >&6
22676else
22677 cat >conftest.$ac_ext <<_ACEOF
22678/* confdefs.h. */
22679_ACEOF
22680cat confdefs.h >>conftest.$ac_ext
22681cat >>conftest.$ac_ext <<_ACEOF
22682/* end confdefs.h. */
22683#include <krb5.h>
22684
22685int
22686main ()
22687{
22688static krb5_error ac_aggr;
22689if (ac_aggr.e_text)
22690return 0;
22691 ;
22692 return 0;
22693}
22694_ACEOF
22695rm -f conftest.$ac_objext
22696if { (ac_try="$ac_compile"
22697case "(($ac_try" in
22698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699 *) ac_try_echo=$ac_try;;
22700esac
22701eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22702$as_echo "$ac_try_echo") >&5
22703 (eval "$ac_compile") 2>conftest.er1
22704 ac_status=$?
22705 grep -v '^ *+' conftest.er1 >conftest.err
22706 rm -f conftest.er1
22707 cat conftest.err >&5
22708 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22709 (exit $ac_status); } && {
22710 test -z "$ac_c_werror_flag" ||
22711 test ! -s conftest.err
22712 } && test -s conftest.$ac_objext; then
22713 ac_cv_member_krb5_error_e_text=yes
22714else
22715 $as_echo "$as_me: failed program was:" >&5
22716sed 's/^/| /' conftest.$ac_ext >&5
22717
22718 cat >conftest.$ac_ext <<_ACEOF
22719/* confdefs.h. */
22720_ACEOF
22721cat confdefs.h >>conftest.$ac_ext
22722cat >>conftest.$ac_ext <<_ACEOF
22723/* end confdefs.h. */
22724#include <krb5.h>
22725
22726int
22727main ()
22728{
22729static krb5_error ac_aggr;
22730if (sizeof ac_aggr.e_text)
22731return 0;
22732 ;
22733 return 0;
22734}
22735_ACEOF
22736rm -f conftest.$ac_objext
22737if { (ac_try="$ac_compile"
22738case "(($ac_try" in
22739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22740 *) ac_try_echo=$ac_try;;
22741esac
22742eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22743$as_echo "$ac_try_echo") >&5
22744 (eval "$ac_compile") 2>conftest.er1
22745 ac_status=$?
22746 grep -v '^ *+' conftest.er1 >conftest.err
22747 rm -f conftest.er1
22748 cat conftest.err >&5
22749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22750 (exit $ac_status); } && {
22751 test -z "$ac_c_werror_flag" ||
22752 test ! -s conftest.err
22753 } && test -s conftest.$ac_objext; then
22754 ac_cv_member_krb5_error_e_text=yes
22755else
22756 $as_echo "$as_me: failed program was:" >&5
22757sed 's/^/| /' conftest.$ac_ext >&5
22758
22759 ac_cv_member_krb5_error_e_text=no
22760fi
22761
22762rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22763fi
22764
22765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22766fi
22767{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22768$as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22769if test $ac_cv_member_krb5_error_e_text = yes; then
12381 22770
12382cat >>confdefs.h <<_ACEOF 22771cat >>confdefs.h <<_ACEOF
12383#define HAVE_KRB5_ERROR_E_TEXT 1 22772#define HAVE_KRB5_ERROR_E_TEXT 1
@@ -12391,30 +22780,429 @@ fi
12391done 22780done
12392 22781
12393 else 22782 else
12394 for ac_header in des.h 22783
12395do : 22784for ac_header in des.h
12396 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" 22785do
12397if test "x$ac_cv_header_des_h" = x""yes; then : 22786as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22787if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22788 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22789$as_echo_n "checking for $ac_header... " >&6; }
22790if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22791 $as_echo_n "(cached) " >&6
22792fi
22793ac_res=`eval 'as_val=${'$as_ac_Header'}
22794 $as_echo "$as_val"'`
22795 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22796$as_echo "$ac_res" >&6; }
22797else
22798 # Is the header compilable?
22799{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22800$as_echo_n "checking $ac_header usability... " >&6; }
22801cat >conftest.$ac_ext <<_ACEOF
22802/* confdefs.h. */
22803_ACEOF
22804cat confdefs.h >>conftest.$ac_ext
22805cat >>conftest.$ac_ext <<_ACEOF
22806/* end confdefs.h. */
22807$ac_includes_default
22808#include <$ac_header>
22809_ACEOF
22810rm -f conftest.$ac_objext
22811if { (ac_try="$ac_compile"
22812case "(($ac_try" in
22813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22814 *) ac_try_echo=$ac_try;;
22815esac
22816eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22817$as_echo "$ac_try_echo") >&5
22818 (eval "$ac_compile") 2>conftest.er1
22819 ac_status=$?
22820 grep -v '^ *+' conftest.er1 >conftest.err
22821 rm -f conftest.er1
22822 cat conftest.err >&5
22823 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22824 (exit $ac_status); } && {
22825 test -z "$ac_c_werror_flag" ||
22826 test ! -s conftest.err
22827 } && test -s conftest.$ac_objext; then
22828 ac_header_compiler=yes
22829else
22830 $as_echo "$as_me: failed program was:" >&5
22831sed 's/^/| /' conftest.$ac_ext >&5
22832
22833 ac_header_compiler=no
22834fi
22835
22836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22837{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22838$as_echo "$ac_header_compiler" >&6; }
22839
22840# Is the header present?
22841{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22842$as_echo_n "checking $ac_header presence... " >&6; }
22843cat >conftest.$ac_ext <<_ACEOF
22844/* confdefs.h. */
22845_ACEOF
22846cat confdefs.h >>conftest.$ac_ext
22847cat >>conftest.$ac_ext <<_ACEOF
22848/* end confdefs.h. */
22849#include <$ac_header>
22850_ACEOF
22851if { (ac_try="$ac_cpp conftest.$ac_ext"
22852case "(($ac_try" in
22853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22854 *) ac_try_echo=$ac_try;;
22855esac
22856eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22857$as_echo "$ac_try_echo") >&5
22858 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22859 ac_status=$?
22860 grep -v '^ *+' conftest.er1 >conftest.err
22861 rm -f conftest.er1
22862 cat conftest.err >&5
22863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); } >/dev/null && {
22865 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22866 test ! -s conftest.err
22867 }; then
22868 ac_header_preproc=yes
22869else
22870 $as_echo "$as_me: failed program was:" >&5
22871sed 's/^/| /' conftest.$ac_ext >&5
22872
22873 ac_header_preproc=no
22874fi
22875
22876rm -f conftest.err conftest.$ac_ext
22877{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22878$as_echo "$ac_header_preproc" >&6; }
22879
22880# So? What about this header?
22881case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22882 yes:no: )
22883 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22884$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22886$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22887 ac_header_preproc=yes
22888 ;;
22889 no:yes:* )
22890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22891$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22893$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22895$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22897$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22899$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22901$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22902
22903 ;;
22904esac
22905{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22906$as_echo_n "checking for $ac_header... " >&6; }
22907if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22908 $as_echo_n "(cached) " >&6
22909else
22910 eval "$as_ac_Header=\$ac_header_preproc"
22911fi
22912ac_res=`eval 'as_val=${'$as_ac_Header'}
22913 $as_echo "$as_val"'`
22914 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22915$as_echo "$ac_res" >&6; }
22916
22917fi
22918if test `eval 'as_val=${'$as_ac_Header'}
22919 $as_echo "$as_val"'` = yes; then
12398 cat >>confdefs.h <<_ACEOF 22920 cat >>confdefs.h <<_ACEOF
12399#define HAVE_DES_H 1 22921#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22922_ACEOF
22923
22924else
22925
22926for ac_header in kerberosIV/des.h
22927do
22928as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22930 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22931$as_echo_n "checking for $ac_header... " >&6; }
22932if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22933 $as_echo_n "(cached) " >&6
22934fi
22935ac_res=`eval 'as_val=${'$as_ac_Header'}
22936 $as_echo "$as_val"'`
22937 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22938$as_echo "$ac_res" >&6; }
22939else
22940 # Is the header compilable?
22941{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22942$as_echo_n "checking $ac_header usability... " >&6; }
22943cat >conftest.$ac_ext <<_ACEOF
22944/* confdefs.h. */
22945_ACEOF
22946cat confdefs.h >>conftest.$ac_ext
22947cat >>conftest.$ac_ext <<_ACEOF
22948/* end confdefs.h. */
22949$ac_includes_default
22950#include <$ac_header>
22951_ACEOF
22952rm -f conftest.$ac_objext
22953if { (ac_try="$ac_compile"
22954case "(($ac_try" in
22955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22956 *) ac_try_echo=$ac_try;;
22957esac
22958eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22959$as_echo "$ac_try_echo") >&5
22960 (eval "$ac_compile") 2>conftest.er1
22961 ac_status=$?
22962 grep -v '^ *+' conftest.er1 >conftest.err
22963 rm -f conftest.er1
22964 cat conftest.err >&5
22965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22966 (exit $ac_status); } && {
22967 test -z "$ac_c_werror_flag" ||
22968 test ! -s conftest.err
22969 } && test -s conftest.$ac_objext; then
22970 ac_header_compiler=yes
22971else
22972 $as_echo "$as_me: failed program was:" >&5
22973sed 's/^/| /' conftest.$ac_ext >&5
22974
22975 ac_header_compiler=no
22976fi
22977
22978rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22979{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22980$as_echo "$ac_header_compiler" >&6; }
22981
22982# Is the header present?
22983{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22984$as_echo_n "checking $ac_header presence... " >&6; }
22985cat >conftest.$ac_ext <<_ACEOF
22986/* confdefs.h. */
22987_ACEOF
22988cat confdefs.h >>conftest.$ac_ext
22989cat >>conftest.$ac_ext <<_ACEOF
22990/* end confdefs.h. */
22991#include <$ac_header>
12400_ACEOF 22992_ACEOF
22993if { (ac_try="$ac_cpp conftest.$ac_ext"
22994case "(($ac_try" in
22995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22996 *) ac_try_echo=$ac_try;;
22997esac
22998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22999$as_echo "$ac_try_echo") >&5
23000 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23001 ac_status=$?
23002 grep -v '^ *+' conftest.er1 >conftest.err
23003 rm -f conftest.er1
23004 cat conftest.err >&5
23005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23006 (exit $ac_status); } >/dev/null && {
23007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23008 test ! -s conftest.err
23009 }; then
23010 ac_header_preproc=yes
23011else
23012 $as_echo "$as_me: failed program was:" >&5
23013sed 's/^/| /' conftest.$ac_ext >&5
23014
23015 ac_header_preproc=no
23016fi
23017
23018rm -f conftest.err conftest.$ac_ext
23019{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23020$as_echo "$ac_header_preproc" >&6; }
23021
23022# So? What about this header?
23023case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23024 yes:no: )
23025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23026$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23028$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23029 ac_header_preproc=yes
23030 ;;
23031 no:yes:* )
23032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23033$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23035$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23037$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23039$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23041$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23043$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12401 23044
23045 ;;
23046esac
23047{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23048$as_echo_n "checking for $ac_header... " >&6; }
23049if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23050 $as_echo_n "(cached) " >&6
12402else 23051else
12403 for ac_header in kerberosIV/des.h 23052 eval "$as_ac_Header=\$ac_header_preproc"
12404do : 23053fi
12405 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default" 23054ac_res=`eval 'as_val=${'$as_ac_Header'}
12406if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then : 23055 $as_echo "$as_val"'`
23056 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23057$as_echo "$ac_res" >&6; }
23058
23059fi
23060if test `eval 'as_val=${'$as_ac_Header'}
23061 $as_echo "$as_val"'` = yes; then
12407 cat >>confdefs.h <<_ACEOF 23062 cat >>confdefs.h <<_ACEOF
12408#define HAVE_KERBEROSIV_DES_H 1 23063#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12409_ACEOF 23064_ACEOF
12410 23065
12411else 23066else
12412 for ac_header in kerberos/des.h 23067
12413do : 23068for ac_header in kerberos/des.h
12414 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default" 23069do
12415if test "x$ac_cv_header_kerberos_des_h" = x""yes; then : 23070as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23071if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23072 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23073$as_echo_n "checking for $ac_header... " >&6; }
23074if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23075 $as_echo_n "(cached) " >&6
23076fi
23077ac_res=`eval 'as_val=${'$as_ac_Header'}
23078 $as_echo "$as_val"'`
23079 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23080$as_echo "$ac_res" >&6; }
23081else
23082 # Is the header compilable?
23083{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23084$as_echo_n "checking $ac_header usability... " >&6; }
23085cat >conftest.$ac_ext <<_ACEOF
23086/* confdefs.h. */
23087_ACEOF
23088cat confdefs.h >>conftest.$ac_ext
23089cat >>conftest.$ac_ext <<_ACEOF
23090/* end confdefs.h. */
23091$ac_includes_default
23092#include <$ac_header>
23093_ACEOF
23094rm -f conftest.$ac_objext
23095if { (ac_try="$ac_compile"
23096case "(($ac_try" in
23097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23098 *) ac_try_echo=$ac_try;;
23099esac
23100eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23101$as_echo "$ac_try_echo") >&5
23102 (eval "$ac_compile") 2>conftest.er1
23103 ac_status=$?
23104 grep -v '^ *+' conftest.er1 >conftest.err
23105 rm -f conftest.er1
23106 cat conftest.err >&5
23107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23108 (exit $ac_status); } && {
23109 test -z "$ac_c_werror_flag" ||
23110 test ! -s conftest.err
23111 } && test -s conftest.$ac_objext; then
23112 ac_header_compiler=yes
23113else
23114 $as_echo "$as_me: failed program was:" >&5
23115sed 's/^/| /' conftest.$ac_ext >&5
23116
23117 ac_header_compiler=no
23118fi
23119
23120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23121{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23122$as_echo "$ac_header_compiler" >&6; }
23123
23124# Is the header present?
23125{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23126$as_echo_n "checking $ac_header presence... " >&6; }
23127cat >conftest.$ac_ext <<_ACEOF
23128/* confdefs.h. */
23129_ACEOF
23130cat confdefs.h >>conftest.$ac_ext
23131cat >>conftest.$ac_ext <<_ACEOF
23132/* end confdefs.h. */
23133#include <$ac_header>
23134_ACEOF
23135if { (ac_try="$ac_cpp conftest.$ac_ext"
23136case "(($ac_try" in
23137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138 *) ac_try_echo=$ac_try;;
23139esac
23140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23141$as_echo "$ac_try_echo") >&5
23142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23143 ac_status=$?
23144 grep -v '^ *+' conftest.er1 >conftest.err
23145 rm -f conftest.er1
23146 cat conftest.err >&5
23147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23148 (exit $ac_status); } >/dev/null && {
23149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23150 test ! -s conftest.err
23151 }; then
23152 ac_header_preproc=yes
23153else
23154 $as_echo "$as_me: failed program was:" >&5
23155sed 's/^/| /' conftest.$ac_ext >&5
23156
23157 ac_header_preproc=no
23158fi
23159
23160rm -f conftest.err conftest.$ac_ext
23161{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23162$as_echo "$ac_header_preproc" >&6; }
23163
23164# So? What about this header?
23165case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23166 yes:no: )
23167 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23168$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23169 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23170$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23171 ac_header_preproc=yes
23172 ;;
23173 no:yes:* )
23174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23175$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23177$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23179$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23181$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23182 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23183$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23184 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23185$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23186
23187 ;;
23188esac
23189{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23190$as_echo_n "checking for $ac_header... " >&6; }
23191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23192 $as_echo_n "(cached) " >&6
23193else
23194 eval "$as_ac_Header=\$ac_header_preproc"
23195fi
23196ac_res=`eval 'as_val=${'$as_ac_Header'}
23197 $as_echo "$as_val"'`
23198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23199$as_echo "$ac_res" >&6; }
23200
23201fi
23202if test `eval 'as_val=${'$as_ac_Header'}
23203 $as_echo "$as_val"'` = yes; then
12416 cat >>confdefs.h <<_ACEOF 23204 cat >>confdefs.h <<_ACEOF
12417#define HAVE_KERBEROS_DES_H 1 23205#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12418_ACEOF 23206_ACEOF
12419 23207
12420fi 23208fi
@@ -12429,30 +23217,429 @@ fi
12429 23217
12430done 23218done
12431 23219
12432 for ac_header in krb.h 23220
12433do : 23221for ac_header in krb.h
12434 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" 23222do
12435if test "x$ac_cv_header_krb_h" = x""yes; then : 23223as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23224if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23225 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23226$as_echo_n "checking for $ac_header... " >&6; }
23227if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23228 $as_echo_n "(cached) " >&6
23229fi
23230ac_res=`eval 'as_val=${'$as_ac_Header'}
23231 $as_echo "$as_val"'`
23232 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23233$as_echo "$ac_res" >&6; }
23234else
23235 # Is the header compilable?
23236{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23237$as_echo_n "checking $ac_header usability... " >&6; }
23238cat >conftest.$ac_ext <<_ACEOF
23239/* confdefs.h. */
23240_ACEOF
23241cat confdefs.h >>conftest.$ac_ext
23242cat >>conftest.$ac_ext <<_ACEOF
23243/* end confdefs.h. */
23244$ac_includes_default
23245#include <$ac_header>
23246_ACEOF
23247rm -f conftest.$ac_objext
23248if { (ac_try="$ac_compile"
23249case "(($ac_try" in
23250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251 *) ac_try_echo=$ac_try;;
23252esac
23253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23254$as_echo "$ac_try_echo") >&5
23255 (eval "$ac_compile") 2>conftest.er1
23256 ac_status=$?
23257 grep -v '^ *+' conftest.er1 >conftest.err
23258 rm -f conftest.er1
23259 cat conftest.err >&5
23260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); } && {
23262 test -z "$ac_c_werror_flag" ||
23263 test ! -s conftest.err
23264 } && test -s conftest.$ac_objext; then
23265 ac_header_compiler=yes
23266else
23267 $as_echo "$as_me: failed program was:" >&5
23268sed 's/^/| /' conftest.$ac_ext >&5
23269
23270 ac_header_compiler=no
23271fi
23272
23273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23274{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23275$as_echo "$ac_header_compiler" >&6; }
23276
23277# Is the header present?
23278{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23279$as_echo_n "checking $ac_header presence... " >&6; }
23280cat >conftest.$ac_ext <<_ACEOF
23281/* confdefs.h. */
23282_ACEOF
23283cat confdefs.h >>conftest.$ac_ext
23284cat >>conftest.$ac_ext <<_ACEOF
23285/* end confdefs.h. */
23286#include <$ac_header>
23287_ACEOF
23288if { (ac_try="$ac_cpp conftest.$ac_ext"
23289case "(($ac_try" in
23290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23291 *) ac_try_echo=$ac_try;;
23292esac
23293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23294$as_echo "$ac_try_echo") >&5
23295 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23296 ac_status=$?
23297 grep -v '^ *+' conftest.er1 >conftest.err
23298 rm -f conftest.er1
23299 cat conftest.err >&5
23300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23301 (exit $ac_status); } >/dev/null && {
23302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23303 test ! -s conftest.err
23304 }; then
23305 ac_header_preproc=yes
23306else
23307 $as_echo "$as_me: failed program was:" >&5
23308sed 's/^/| /' conftest.$ac_ext >&5
23309
23310 ac_header_preproc=no
23311fi
23312
23313rm -f conftest.err conftest.$ac_ext
23314{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23315$as_echo "$ac_header_preproc" >&6; }
23316
23317# So? What about this header?
23318case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23319 yes:no: )
23320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23321$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23323$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23324 ac_header_preproc=yes
23325 ;;
23326 no:yes:* )
23327 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23328$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23329 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23330$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23331 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23332$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23333 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23334$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23335 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23336$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23337 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23338$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23339
23340 ;;
23341esac
23342{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23343$as_echo_n "checking for $ac_header... " >&6; }
23344if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23345 $as_echo_n "(cached) " >&6
23346else
23347 eval "$as_ac_Header=\$ac_header_preproc"
23348fi
23349ac_res=`eval 'as_val=${'$as_ac_Header'}
23350 $as_echo "$as_val"'`
23351 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23352$as_echo "$ac_res" >&6; }
23353
23354fi
23355if test `eval 'as_val=${'$as_ac_Header'}
23356 $as_echo "$as_val"'` = yes; then
12436 cat >>confdefs.h <<_ACEOF 23357 cat >>confdefs.h <<_ACEOF
12437#define HAVE_KRB_H 1 23358#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12438_ACEOF 23359_ACEOF
12439 23360
12440else 23361else
12441 for ac_header in kerberosIV/krb.h 23362
12442do : 23363for ac_header in kerberosIV/krb.h
12443 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default" 23364do
12444if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then : 23365as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23366if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23367 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23368$as_echo_n "checking for $ac_header... " >&6; }
23369if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23370 $as_echo_n "(cached) " >&6
23371fi
23372ac_res=`eval 'as_val=${'$as_ac_Header'}
23373 $as_echo "$as_val"'`
23374 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23375$as_echo "$ac_res" >&6; }
23376else
23377 # Is the header compilable?
23378{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23379$as_echo_n "checking $ac_header usability... " >&6; }
23380cat >conftest.$ac_ext <<_ACEOF
23381/* confdefs.h. */
23382_ACEOF
23383cat confdefs.h >>conftest.$ac_ext
23384cat >>conftest.$ac_ext <<_ACEOF
23385/* end confdefs.h. */
23386$ac_includes_default
23387#include <$ac_header>
23388_ACEOF
23389rm -f conftest.$ac_objext
23390if { (ac_try="$ac_compile"
23391case "(($ac_try" in
23392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23393 *) ac_try_echo=$ac_try;;
23394esac
23395eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23396$as_echo "$ac_try_echo") >&5
23397 (eval "$ac_compile") 2>conftest.er1
23398 ac_status=$?
23399 grep -v '^ *+' conftest.er1 >conftest.err
23400 rm -f conftest.er1
23401 cat conftest.err >&5
23402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23403 (exit $ac_status); } && {
23404 test -z "$ac_c_werror_flag" ||
23405 test ! -s conftest.err
23406 } && test -s conftest.$ac_objext; then
23407 ac_header_compiler=yes
23408else
23409 $as_echo "$as_me: failed program was:" >&5
23410sed 's/^/| /' conftest.$ac_ext >&5
23411
23412 ac_header_compiler=no
23413fi
23414
23415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23416{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23417$as_echo "$ac_header_compiler" >&6; }
23418
23419# Is the header present?
23420{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23421$as_echo_n "checking $ac_header presence... " >&6; }
23422cat >conftest.$ac_ext <<_ACEOF
23423/* confdefs.h. */
23424_ACEOF
23425cat confdefs.h >>conftest.$ac_ext
23426cat >>conftest.$ac_ext <<_ACEOF
23427/* end confdefs.h. */
23428#include <$ac_header>
23429_ACEOF
23430if { (ac_try="$ac_cpp conftest.$ac_ext"
23431case "(($ac_try" in
23432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23433 *) ac_try_echo=$ac_try;;
23434esac
23435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23436$as_echo "$ac_try_echo") >&5
23437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23438 ac_status=$?
23439 grep -v '^ *+' conftest.er1 >conftest.err
23440 rm -f conftest.er1
23441 cat conftest.err >&5
23442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23443 (exit $ac_status); } >/dev/null && {
23444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23445 test ! -s conftest.err
23446 }; then
23447 ac_header_preproc=yes
23448else
23449 $as_echo "$as_me: failed program was:" >&5
23450sed 's/^/| /' conftest.$ac_ext >&5
23451
23452 ac_header_preproc=no
23453fi
23454
23455rm -f conftest.err conftest.$ac_ext
23456{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23457$as_echo "$ac_header_preproc" >&6; }
23458
23459# So? What about this header?
23460case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23461 yes:no: )
23462 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23463$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23464 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23465$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23466 ac_header_preproc=yes
23467 ;;
23468 no:yes:* )
23469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23470$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23472$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23474$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23476$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23477 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23478$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23479 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23480$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23481
23482 ;;
23483esac
23484{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23485$as_echo_n "checking for $ac_header... " >&6; }
23486if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23487 $as_echo_n "(cached) " >&6
23488else
23489 eval "$as_ac_Header=\$ac_header_preproc"
23490fi
23491ac_res=`eval 'as_val=${'$as_ac_Header'}
23492 $as_echo "$as_val"'`
23493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23494$as_echo "$ac_res" >&6; }
23495
23496fi
23497if test `eval 'as_val=${'$as_ac_Header'}
23498 $as_echo "$as_val"'` = yes; then
12445 cat >>confdefs.h <<_ACEOF 23499 cat >>confdefs.h <<_ACEOF
12446#define HAVE_KERBEROSIV_KRB_H 1 23500#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23501_ACEOF
23502
23503else
23504
23505for ac_header in kerberos/krb.h
23506do
23507as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23508if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23509 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23510$as_echo_n "checking for $ac_header... " >&6; }
23511if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23512 $as_echo_n "(cached) " >&6
23513fi
23514ac_res=`eval 'as_val=${'$as_ac_Header'}
23515 $as_echo "$as_val"'`
23516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23517$as_echo "$ac_res" >&6; }
23518else
23519 # Is the header compilable?
23520{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23521$as_echo_n "checking $ac_header usability... " >&6; }
23522cat >conftest.$ac_ext <<_ACEOF
23523/* confdefs.h. */
23524_ACEOF
23525cat confdefs.h >>conftest.$ac_ext
23526cat >>conftest.$ac_ext <<_ACEOF
23527/* end confdefs.h. */
23528$ac_includes_default
23529#include <$ac_header>
23530_ACEOF
23531rm -f conftest.$ac_objext
23532if { (ac_try="$ac_compile"
23533case "(($ac_try" in
23534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23535 *) ac_try_echo=$ac_try;;
23536esac
23537eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23538$as_echo "$ac_try_echo") >&5
23539 (eval "$ac_compile") 2>conftest.er1
23540 ac_status=$?
23541 grep -v '^ *+' conftest.er1 >conftest.err
23542 rm -f conftest.er1
23543 cat conftest.err >&5
23544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23545 (exit $ac_status); } && {
23546 test -z "$ac_c_werror_flag" ||
23547 test ! -s conftest.err
23548 } && test -s conftest.$ac_objext; then
23549 ac_header_compiler=yes
23550else
23551 $as_echo "$as_me: failed program was:" >&5
23552sed 's/^/| /' conftest.$ac_ext >&5
23553
23554 ac_header_compiler=no
23555fi
23556
23557rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23558{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23559$as_echo "$ac_header_compiler" >&6; }
23560
23561# Is the header present?
23562{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23563$as_echo_n "checking $ac_header presence... " >&6; }
23564cat >conftest.$ac_ext <<_ACEOF
23565/* confdefs.h. */
23566_ACEOF
23567cat confdefs.h >>conftest.$ac_ext
23568cat >>conftest.$ac_ext <<_ACEOF
23569/* end confdefs.h. */
23570#include <$ac_header>
12447_ACEOF 23571_ACEOF
23572if { (ac_try="$ac_cpp conftest.$ac_ext"
23573case "(($ac_try" in
23574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23575 *) ac_try_echo=$ac_try;;
23576esac
23577eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23578$as_echo "$ac_try_echo") >&5
23579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23580 ac_status=$?
23581 grep -v '^ *+' conftest.er1 >conftest.err
23582 rm -f conftest.er1
23583 cat conftest.err >&5
23584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23585 (exit $ac_status); } >/dev/null && {
23586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23587 test ! -s conftest.err
23588 }; then
23589 ac_header_preproc=yes
23590else
23591 $as_echo "$as_me: failed program was:" >&5
23592sed 's/^/| /' conftest.$ac_ext >&5
23593
23594 ac_header_preproc=no
23595fi
23596
23597rm -f conftest.err conftest.$ac_ext
23598{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23599$as_echo "$ac_header_preproc" >&6; }
23600
23601# So? What about this header?
23602case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23603 yes:no: )
23604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23605$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23607$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23608 ac_header_preproc=yes
23609 ;;
23610 no:yes:* )
23611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23612$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23614$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23616$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23618$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23620$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23622$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12448 23623
23624 ;;
23625esac
23626{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23627$as_echo_n "checking for $ac_header... " >&6; }
23628if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23629 $as_echo_n "(cached) " >&6
12449else 23630else
12450 for ac_header in kerberos/krb.h 23631 eval "$as_ac_Header=\$ac_header_preproc"
12451do : 23632fi
12452 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default" 23633ac_res=`eval 'as_val=${'$as_ac_Header'}
12453if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then : 23634 $as_echo "$as_val"'`
23635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23636$as_echo "$ac_res" >&6; }
23637
23638fi
23639if test `eval 'as_val=${'$as_ac_Header'}
23640 $as_echo "$as_val"'` = yes; then
12454 cat >>confdefs.h <<_ACEOF 23641 cat >>confdefs.h <<_ACEOF
12455#define HAVE_KERBEROS_KRB_H 1 23642#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12456_ACEOF 23643_ACEOF
12457 23644
12458fi 23645fi
@@ -12468,12 +23655,145 @@ fi
12468done 23655done
12469 23656
12470 fi 23657 fi
12471 for ac_header in com_err.h 23658
12472do : 23659for ac_header in com_err.h
12473 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default" 23660do
12474if test "x$ac_cv_header_com_err_h" = x""yes; then : 23661as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23662if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23663 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23664$as_echo_n "checking for $ac_header... " >&6; }
23665if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23666 $as_echo_n "(cached) " >&6
23667fi
23668ac_res=`eval 'as_val=${'$as_ac_Header'}
23669 $as_echo "$as_val"'`
23670 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23671$as_echo "$ac_res" >&6; }
23672else
23673 # Is the header compilable?
23674{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23675$as_echo_n "checking $ac_header usability... " >&6; }
23676cat >conftest.$ac_ext <<_ACEOF
23677/* confdefs.h. */
23678_ACEOF
23679cat confdefs.h >>conftest.$ac_ext
23680cat >>conftest.$ac_ext <<_ACEOF
23681/* end confdefs.h. */
23682$ac_includes_default
23683#include <$ac_header>
23684_ACEOF
23685rm -f conftest.$ac_objext
23686if { (ac_try="$ac_compile"
23687case "(($ac_try" in
23688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23689 *) ac_try_echo=$ac_try;;
23690esac
23691eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23692$as_echo "$ac_try_echo") >&5
23693 (eval "$ac_compile") 2>conftest.er1
23694 ac_status=$?
23695 grep -v '^ *+' conftest.er1 >conftest.err
23696 rm -f conftest.er1
23697 cat conftest.err >&5
23698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); } && {
23700 test -z "$ac_c_werror_flag" ||
23701 test ! -s conftest.err
23702 } && test -s conftest.$ac_objext; then
23703 ac_header_compiler=yes
23704else
23705 $as_echo "$as_me: failed program was:" >&5
23706sed 's/^/| /' conftest.$ac_ext >&5
23707
23708 ac_header_compiler=no
23709fi
23710
23711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23712{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23713$as_echo "$ac_header_compiler" >&6; }
23714
23715# Is the header present?
23716{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23717$as_echo_n "checking $ac_header presence... " >&6; }
23718cat >conftest.$ac_ext <<_ACEOF
23719/* confdefs.h. */
23720_ACEOF
23721cat confdefs.h >>conftest.$ac_ext
23722cat >>conftest.$ac_ext <<_ACEOF
23723/* end confdefs.h. */
23724#include <$ac_header>
23725_ACEOF
23726if { (ac_try="$ac_cpp conftest.$ac_ext"
23727case "(($ac_try" in
23728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23729 *) ac_try_echo=$ac_try;;
23730esac
23731eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23732$as_echo "$ac_try_echo") >&5
23733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23734 ac_status=$?
23735 grep -v '^ *+' conftest.er1 >conftest.err
23736 rm -f conftest.er1
23737 cat conftest.err >&5
23738 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23739 (exit $ac_status); } >/dev/null && {
23740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23741 test ! -s conftest.err
23742 }; then
23743 ac_header_preproc=yes
23744else
23745 $as_echo "$as_me: failed program was:" >&5
23746sed 's/^/| /' conftest.$ac_ext >&5
23747
23748 ac_header_preproc=no
23749fi
23750
23751rm -f conftest.err conftest.$ac_ext
23752{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23753$as_echo "$ac_header_preproc" >&6; }
23754
23755# So? What about this header?
23756case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23757 yes:no: )
23758 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23759$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23760 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23761$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23762 ac_header_preproc=yes
23763 ;;
23764 no:yes:* )
23765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23766$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23767 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23768$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23769 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23770$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23771 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23772$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23773 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23774$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23775 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23776$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23777
23778 ;;
23779esac
23780{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23781$as_echo_n "checking for $ac_header... " >&6; }
23782if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23783 $as_echo_n "(cached) " >&6
23784else
23785 eval "$as_ac_Header=\$ac_header_preproc"
23786fi
23787ac_res=`eval 'as_val=${'$as_ac_Header'}
23788 $as_echo "$as_val"'`
23789 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23790$as_echo "$ac_res" >&6; }
23791
23792fi
23793if test `eval 'as_val=${'$as_ac_Header'}
23794 $as_echo "$as_val"'` = yes; then
12475 cat >>confdefs.h <<_ACEOF 23795 cat >>confdefs.h <<_ACEOF
12476#define HAVE_COM_ERR_H 1 23796#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12477_ACEOF 23797_ACEOF
12478 23798
12479fi 23799fi
@@ -12482,16 +23802,27 @@ done
12482 23802
12483fi 23803fi
12484 23804
23805
23806
23807
23808
23809
23810
12485# Solaris requires -lintl if you want strerror (which calls dgettext) 23811# Solaris requires -lintl if you want strerror (which calls dgettext)
12486# to return localized messages. 23812# to return localized messages.
12487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 23813
23814{ $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12488$as_echo_n "checking for dgettext in -lintl... " >&6; } 23815$as_echo_n "checking for dgettext in -lintl... " >&6; }
12489if test "${ac_cv_lib_intl_dgettext+set}" = set; then : 23816if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12490 $as_echo_n "(cached) " >&6 23817 $as_echo_n "(cached) " >&6
12491else 23818else
12492 ac_check_lib_save_LIBS=$LIBS 23819 ac_check_lib_save_LIBS=$LIBS
12493LIBS="-lintl $LIBS" 23820LIBS="-lintl $LIBS"
12494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23821cat >conftest.$ac_ext <<_ACEOF
23822/* confdefs.h. */
23823_ACEOF
23824cat confdefs.h >>conftest.$ac_ext
23825cat >>conftest.$ac_ext <<_ACEOF
12495/* end confdefs.h. */ 23826/* end confdefs.h. */
12496 23827
12497/* Override any GCC internal prototype to avoid an error. 23828/* Override any GCC internal prototype to avoid an error.
@@ -12509,18 +23840,43 @@ return dgettext ();
12509 return 0; 23840 return 0;
12510} 23841}
12511_ACEOF 23842_ACEOF
12512if ac_fn_c_try_link "$LINENO"; then : 23843rm -f conftest.$ac_objext conftest$ac_exeext
23844if { (ac_try="$ac_link"
23845case "(($ac_try" in
23846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23847 *) ac_try_echo=$ac_try;;
23848esac
23849eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23850$as_echo "$ac_try_echo") >&5
23851 (eval "$ac_link") 2>conftest.er1
23852 ac_status=$?
23853 grep -v '^ *+' conftest.er1 >conftest.err
23854 rm -f conftest.er1
23855 cat conftest.err >&5
23856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23857 (exit $ac_status); } && {
23858 test -z "$ac_c_werror_flag" ||
23859 test ! -s conftest.err
23860 } && test -s conftest$ac_exeext && {
23861 test "$cross_compiling" = yes ||
23862 $as_test_x conftest$ac_exeext
23863 }; then
12513 ac_cv_lib_intl_dgettext=yes 23864 ac_cv_lib_intl_dgettext=yes
12514else 23865else
12515 ac_cv_lib_intl_dgettext=no 23866 $as_echo "$as_me: failed program was:" >&5
23867sed 's/^/| /' conftest.$ac_ext >&5
23868
23869 ac_cv_lib_intl_dgettext=no
12516fi 23870fi
12517rm -f core conftest.err conftest.$ac_objext \ 23871
12518 conftest$ac_exeext conftest.$ac_ext 23872rm -rf conftest.dSYM
23873rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23874 conftest$ac_exeext conftest.$ac_ext
12519LIBS=$ac_check_lib_save_LIBS 23875LIBS=$ac_check_lib_save_LIBS
12520fi 23876fi
12521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 23877{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12522$as_echo "$ac_cv_lib_intl_dgettext" >&6; } 23878$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12523if test "x$ac_cv_lib_intl_dgettext" = x""yes; then : 23879if test $ac_cv_lib_intl_dgettext = yes; then
12524 cat >>confdefs.h <<_ACEOF 23880 cat >>confdefs.h <<_ACEOF
12525#define HAVE_LIBINTL 1 23881#define HAVE_LIBINTL 1
12526_ACEOF 23882_ACEOF
@@ -12530,17 +23886,21 @@ _ACEOF
12530fi 23886fi
12531 23887
12532 23888
12533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5 23889{ $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
12534$as_echo_n "checking whether localtime caches TZ... " >&6; } 23890$as_echo_n "checking whether localtime caches TZ... " >&6; }
12535if test "${emacs_cv_localtime_cache+set}" = set; then : 23891if test "${emacs_cv_localtime_cache+set}" = set; then
12536 $as_echo_n "(cached) " >&6 23892 $as_echo_n "(cached) " >&6
12537else 23893else
12538 if test x$ac_cv_func_tzset = xyes; then 23894 if test x$ac_cv_func_tzset = xyes; then
12539if test "$cross_compiling" = yes; then : 23895if test "$cross_compiling" = yes; then
12540 # If we have tzset, assume the worst when cross-compiling. 23896 # If we have tzset, assume the worst when cross-compiling.
12541emacs_cv_localtime_cache=yes 23897emacs_cv_localtime_cache=yes
12542else 23898else
12543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 23899 cat >conftest.$ac_ext <<_ACEOF
23900/* confdefs.h. */
23901_ACEOF
23902cat confdefs.h >>conftest.$ac_ext
23903cat >>conftest.$ac_ext <<_ACEOF
12544/* end confdefs.h. */ 23904/* end confdefs.h. */
12545#include <time.h> 23905#include <time.h>
12546extern char **environ; 23906extern char **environ;
@@ -12572,48 +23932,170 @@ main()
12572 exit (0); 23932 exit (0);
12573} 23933}
12574_ACEOF 23934_ACEOF
12575if ac_fn_c_try_run "$LINENO"; then : 23935rm -f conftest$ac_exeext
23936if { (ac_try="$ac_link"
23937case "(($ac_try" in
23938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23939 *) ac_try_echo=$ac_try;;
23940esac
23941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23942$as_echo "$ac_try_echo") >&5
23943 (eval "$ac_link") 2>&5
23944 ac_status=$?
23945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23946 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23947 { (case "(($ac_try" in
23948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23949 *) ac_try_echo=$ac_try;;
23950esac
23951eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23952$as_echo "$ac_try_echo") >&5
23953 (eval "$ac_try") 2>&5
23954 ac_status=$?
23955 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); }; }; then
12576 emacs_cv_localtime_cache=no 23957 emacs_cv_localtime_cache=no
12577else 23958else
12578 emacs_cv_localtime_cache=yes 23959 $as_echo "$as_me: program exited with status $ac_status" >&5
23960$as_echo "$as_me: failed program was:" >&5
23961sed 's/^/| /' conftest.$ac_ext >&5
23962
23963( exit $ac_status )
23964emacs_cv_localtime_cache=yes
12579fi 23965fi
12580rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 23966rm -rf conftest.dSYM
12581 conftest.$ac_objext conftest.beam conftest.$ac_ext 23967rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12582fi 23968fi
12583 23969
23970
12584else 23971else
12585 # If we lack tzset, report that localtime does not cache TZ, 23972 # If we lack tzset, report that localtime does not cache TZ,
12586 # since we can't invalidate the cache if we don't have tzset. 23973 # since we can't invalidate the cache if we don't have tzset.
12587 emacs_cv_localtime_cache=no 23974 emacs_cv_localtime_cache=no
12588fi 23975fi
12589fi 23976fi
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5 23977{ $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
12591$as_echo "$emacs_cv_localtime_cache" >&6; } 23978$as_echo "$emacs_cv_localtime_cache" >&6; }
12592if test $emacs_cv_localtime_cache = yes; then 23979if test $emacs_cv_localtime_cache = yes; then
12593 23980
12594$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h 23981cat >>confdefs.h <<\_ACEOF
23982#define LOCALTIME_CACHE 1
23983_ACEOF
12595 23984
12596fi 23985fi
12597 23986
12598if test "x$HAVE_TIMEVAL" = xyes; then 23987if test "x$HAVE_TIMEVAL" = xyes; then
12599 for ac_func in gettimeofday 23988
12600do : 23989for ac_func in gettimeofday
12601 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 23990do
12602if test "x$ac_cv_func_gettimeofday" = x""yes; then : 23991as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23992{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
23993$as_echo_n "checking for $ac_func... " >&6; }
23994if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23995 $as_echo_n "(cached) " >&6
23996else
23997 cat >conftest.$ac_ext <<_ACEOF
23998/* confdefs.h. */
23999_ACEOF
24000cat confdefs.h >>conftest.$ac_ext
24001cat >>conftest.$ac_ext <<_ACEOF
24002/* end confdefs.h. */
24003/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24005#define $ac_func innocuous_$ac_func
24006
24007/* System header to define __stub macros and hopefully few prototypes,
24008 which can conflict with char $ac_func (); below.
24009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24010 <limits.h> exists even on freestanding compilers. */
24011
24012#ifdef __STDC__
24013# include <limits.h>
24014#else
24015# include <assert.h>
24016#endif
24017
24018#undef $ac_func
24019
24020/* Override any GCC internal prototype to avoid an error.
24021 Use char because int might match the return type of a GCC
24022 builtin and then its argument prototype would still apply. */
24023#ifdef __cplusplus
24024extern "C"
24025#endif
24026char $ac_func ();
24027/* The GNU C library defines this for functions which it implements
24028 to always fail with ENOSYS. Some functions are actually named
24029 something starting with __ and the normal name is an alias. */
24030#if defined __stub_$ac_func || defined __stub___$ac_func
24031choke me
24032#endif
24033
24034int
24035main ()
24036{
24037return $ac_func ();
24038 ;
24039 return 0;
24040}
24041_ACEOF
24042rm -f conftest.$ac_objext conftest$ac_exeext
24043if { (ac_try="$ac_link"
24044case "(($ac_try" in
24045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24046 *) ac_try_echo=$ac_try;;
24047esac
24048eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24049$as_echo "$ac_try_echo") >&5
24050 (eval "$ac_link") 2>conftest.er1
24051 ac_status=$?
24052 grep -v '^ *+' conftest.er1 >conftest.err
24053 rm -f conftest.er1
24054 cat conftest.err >&5
24055 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24056 (exit $ac_status); } && {
24057 test -z "$ac_c_werror_flag" ||
24058 test ! -s conftest.err
24059 } && test -s conftest$ac_exeext && {
24060 test "$cross_compiling" = yes ||
24061 $as_test_x conftest$ac_exeext
24062 }; then
24063 eval "$as_ac_var=yes"
24064else
24065 $as_echo "$as_me: failed program was:" >&5
24066sed 's/^/| /' conftest.$ac_ext >&5
24067
24068 eval "$as_ac_var=no"
24069fi
24070
24071rm -rf conftest.dSYM
24072rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24073 conftest$ac_exeext conftest.$ac_ext
24074fi
24075ac_res=`eval 'as_val=${'$as_ac_var'}
24076 $as_echo "$as_val"'`
24077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24078$as_echo "$ac_res" >&6; }
24079if test `eval 'as_val=${'$as_ac_var'}
24080 $as_echo "$as_val"'` = yes; then
12603 cat >>confdefs.h <<_ACEOF 24081 cat >>confdefs.h <<_ACEOF
12604#define HAVE_GETTIMEOFDAY 1 24082#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12605_ACEOF 24083_ACEOF
12606 24084
12607fi 24085fi
12608done 24086done
12609 24087
12610 if test $ac_cv_func_gettimeofday = yes; then 24088 if test $ac_cv_func_gettimeofday = yes; then
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5 24089 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
12612$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } 24090$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12613if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then : 24091if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
12614 $as_echo_n "(cached) " >&6 24092 $as_echo_n "(cached) " >&6
12615else 24093else
12616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24094 cat >conftest.$ac_ext <<_ACEOF
24095/* confdefs.h. */
24096_ACEOF
24097cat confdefs.h >>conftest.$ac_ext
24098cat >>conftest.$ac_ext <<_ACEOF
12617/* end confdefs.h. */ 24099/* end confdefs.h. */
12618 24100
12619#ifdef TIME_WITH_SYS_TIME 24101#ifdef TIME_WITH_SYS_TIME
@@ -12635,35 +24117,268 @@ struct timeval time;
12635 return 0; 24117 return 0;
12636} 24118}
12637_ACEOF 24119_ACEOF
12638if ac_fn_c_try_compile "$LINENO"; then : 24120rm -f conftest.$ac_objext
24121if { (ac_try="$ac_compile"
24122case "(($ac_try" in
24123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24124 *) ac_try_echo=$ac_try;;
24125esac
24126eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24127$as_echo "$ac_try_echo") >&5
24128 (eval "$ac_compile") 2>conftest.er1
24129 ac_status=$?
24130 grep -v '^ *+' conftest.er1 >conftest.err
24131 rm -f conftest.er1
24132 cat conftest.err >&5
24133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24134 (exit $ac_status); } && {
24135 test -z "$ac_c_werror_flag" ||
24136 test ! -s conftest.err
24137 } && test -s conftest.$ac_objext; then
12639 emacs_cv_gettimeofday_two_arguments=yes 24138 emacs_cv_gettimeofday_two_arguments=yes
12640else 24139else
12641 emacs_cv_gettimeofday_two_arguments=no 24140 $as_echo "$as_me: failed program was:" >&5
24141sed 's/^/| /' conftest.$ac_ext >&5
24142
24143 emacs_cv_gettimeofday_two_arguments=no
12642fi 24144fi
24145
12643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24146rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12644fi 24147fi
12645{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5 24148{ $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
12646$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } 24149$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
12647 if test $emacs_cv_gettimeofday_two_arguments = no; then 24150 if test $emacs_cv_gettimeofday_two_arguments = no; then
12648 24151
12649$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h 24152cat >>confdefs.h <<\_ACEOF
24153#define GETTIMEOFDAY_ONE_ARGUMENT 1
24154_ACEOF
12650 24155
12651 fi 24156 fi
12652 fi 24157 fi
12653fi 24158fi
12654 24159
12655ok_so_far=yes 24160ok_so_far=yes
12656ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 24161{ $as_echo "$as_me:$LINENO: checking for socket" >&5
12657if test "x$ac_cv_func_socket" = x""yes; then : 24162$as_echo_n "checking for socket... " >&6; }
24163if test "${ac_cv_func_socket+set}" = set; then
24164 $as_echo_n "(cached) " >&6
24165else
24166 cat >conftest.$ac_ext <<_ACEOF
24167/* confdefs.h. */
24168_ACEOF
24169cat confdefs.h >>conftest.$ac_ext
24170cat >>conftest.$ac_ext <<_ACEOF
24171/* end confdefs.h. */
24172/* Define socket to an innocuous variant, in case <limits.h> declares socket.
24173 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24174#define socket innocuous_socket
24175
24176/* System header to define __stub macros and hopefully few prototypes,
24177 which can conflict with char socket (); below.
24178 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24179 <limits.h> exists even on freestanding compilers. */
24180
24181#ifdef __STDC__
24182# include <limits.h>
24183#else
24184# include <assert.h>
24185#endif
24186
24187#undef socket
24188
24189/* Override any GCC internal prototype to avoid an error.
24190 Use char because int might match the return type of a GCC
24191 builtin and then its argument prototype would still apply. */
24192#ifdef __cplusplus
24193extern "C"
24194#endif
24195char socket ();
24196/* The GNU C library defines this for functions which it implements
24197 to always fail with ENOSYS. Some functions are actually named
24198 something starting with __ and the normal name is an alias. */
24199#if defined __stub_socket || defined __stub___socket
24200choke me
24201#endif
24202
24203int
24204main ()
24205{
24206return socket ();
24207 ;
24208 return 0;
24209}
24210_ACEOF
24211rm -f conftest.$ac_objext conftest$ac_exeext
24212if { (ac_try="$ac_link"
24213case "(($ac_try" in
24214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24215 *) ac_try_echo=$ac_try;;
24216esac
24217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24218$as_echo "$ac_try_echo") >&5
24219 (eval "$ac_link") 2>conftest.er1
24220 ac_status=$?
24221 grep -v '^ *+' conftest.er1 >conftest.err
24222 rm -f conftest.er1
24223 cat conftest.err >&5
24224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24225 (exit $ac_status); } && {
24226 test -z "$ac_c_werror_flag" ||
24227 test ! -s conftest.err
24228 } && test -s conftest$ac_exeext && {
24229 test "$cross_compiling" = yes ||
24230 $as_test_x conftest$ac_exeext
24231 }; then
24232 ac_cv_func_socket=yes
24233else
24234 $as_echo "$as_me: failed program was:" >&5
24235sed 's/^/| /' conftest.$ac_ext >&5
24236
24237 ac_cv_func_socket=no
24238fi
12658 24239
24240rm -rf conftest.dSYM
24241rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24242 conftest$ac_exeext conftest.$ac_ext
24243fi
24244{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24245$as_echo "$ac_cv_func_socket" >&6; }
24246if test $ac_cv_func_socket = yes; then
24247 :
12659else 24248else
12660 ok_so_far=no 24249 ok_so_far=no
12661fi 24250fi
12662 24251
12663if test $ok_so_far = yes; then 24252if test $ok_so_far = yes; then
12664 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 24253 if test "${ac_cv_header_netinet_in_h+set}" = set; then
12665if test "x$ac_cv_header_netinet_in_h" = x""yes; then : 24254 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24255$as_echo_n "checking for netinet/in.h... " >&6; }
24256if test "${ac_cv_header_netinet_in_h+set}" = set; then
24257 $as_echo_n "(cached) " >&6
24258fi
24259{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24260$as_echo "$ac_cv_header_netinet_in_h" >&6; }
24261else
24262 # Is the header compilable?
24263{ $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24264$as_echo_n "checking netinet/in.h usability... " >&6; }
24265cat >conftest.$ac_ext <<_ACEOF
24266/* confdefs.h. */
24267_ACEOF
24268cat confdefs.h >>conftest.$ac_ext
24269cat >>conftest.$ac_ext <<_ACEOF
24270/* end confdefs.h. */
24271$ac_includes_default
24272#include <netinet/in.h>
24273_ACEOF
24274rm -f conftest.$ac_objext
24275if { (ac_try="$ac_compile"
24276case "(($ac_try" in
24277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24278 *) ac_try_echo=$ac_try;;
24279esac
24280eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24281$as_echo "$ac_try_echo") >&5
24282 (eval "$ac_compile") 2>conftest.er1
24283 ac_status=$?
24284 grep -v '^ *+' conftest.er1 >conftest.err
24285 rm -f conftest.er1
24286 cat conftest.err >&5
24287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24288 (exit $ac_status); } && {
24289 test -z "$ac_c_werror_flag" ||
24290 test ! -s conftest.err
24291 } && test -s conftest.$ac_objext; then
24292 ac_header_compiler=yes
24293else
24294 $as_echo "$as_me: failed program was:" >&5
24295sed 's/^/| /' conftest.$ac_ext >&5
24296
24297 ac_header_compiler=no
24298fi
24299
24300rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24301{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24302$as_echo "$ac_header_compiler" >&6; }
24303
24304# Is the header present?
24305{ $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24306$as_echo_n "checking netinet/in.h presence... " >&6; }
24307cat >conftest.$ac_ext <<_ACEOF
24308/* confdefs.h. */
24309_ACEOF
24310cat confdefs.h >>conftest.$ac_ext
24311cat >>conftest.$ac_ext <<_ACEOF
24312/* end confdefs.h. */
24313#include <netinet/in.h>
24314_ACEOF
24315if { (ac_try="$ac_cpp conftest.$ac_ext"
24316case "(($ac_try" in
24317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24318 *) ac_try_echo=$ac_try;;
24319esac
24320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24321$as_echo "$ac_try_echo") >&5
24322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24323 ac_status=$?
24324 grep -v '^ *+' conftest.er1 >conftest.err
24325 rm -f conftest.er1
24326 cat conftest.err >&5
24327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24328 (exit $ac_status); } >/dev/null && {
24329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24330 test ! -s conftest.err
24331 }; then
24332 ac_header_preproc=yes
24333else
24334 $as_echo "$as_me: failed program was:" >&5
24335sed 's/^/| /' conftest.$ac_ext >&5
24336
24337 ac_header_preproc=no
24338fi
24339
24340rm -f conftest.err conftest.$ac_ext
24341{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24342$as_echo "$ac_header_preproc" >&6; }
24343
24344# So? What about this header?
24345case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24346 yes:no: )
24347 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24348$as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24349 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24350$as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24351 ac_header_preproc=yes
24352 ;;
24353 no:yes:* )
24354 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24355$as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24356 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24357$as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24358 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24359$as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24360 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24361$as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24362 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24363$as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24364 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24365$as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24366
24367 ;;
24368esac
24369{ $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24370$as_echo_n "checking for netinet/in.h... " >&6; }
24371if test "${ac_cv_header_netinet_in_h+set}" = set; then
24372 $as_echo_n "(cached) " >&6
24373else
24374 ac_cv_header_netinet_in_h=$ac_header_preproc
24375fi
24376{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24377$as_echo "$ac_cv_header_netinet_in_h" >&6; }
12666 24378
24379fi
24380if test $ac_cv_header_netinet_in_h = yes; then
24381 :
12667else 24382else
12668 ok_so_far=no 24383 ok_so_far=no
12669fi 24384fi
@@ -12671,9 +24386,135 @@ fi
12671 24386
12672fi 24387fi
12673if test $ok_so_far = yes; then 24388if test $ok_so_far = yes; then
12674 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 24389 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
12675if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : 24390 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24391$as_echo_n "checking for arpa/inet.h... " >&6; }
24392if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24393 $as_echo_n "(cached) " >&6
24394fi
24395{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24396$as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24397else
24398 # Is the header compilable?
24399{ $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24400$as_echo_n "checking arpa/inet.h usability... " >&6; }
24401cat >conftest.$ac_ext <<_ACEOF
24402/* confdefs.h. */
24403_ACEOF
24404cat confdefs.h >>conftest.$ac_ext
24405cat >>conftest.$ac_ext <<_ACEOF
24406/* end confdefs.h. */
24407$ac_includes_default
24408#include <arpa/inet.h>
24409_ACEOF
24410rm -f conftest.$ac_objext
24411if { (ac_try="$ac_compile"
24412case "(($ac_try" in
24413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24414 *) ac_try_echo=$ac_try;;
24415esac
24416eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24417$as_echo "$ac_try_echo") >&5
24418 (eval "$ac_compile") 2>conftest.er1
24419 ac_status=$?
24420 grep -v '^ *+' conftest.er1 >conftest.err
24421 rm -f conftest.er1
24422 cat conftest.err >&5
24423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24424 (exit $ac_status); } && {
24425 test -z "$ac_c_werror_flag" ||
24426 test ! -s conftest.err
24427 } && test -s conftest.$ac_objext; then
24428 ac_header_compiler=yes
24429else
24430 $as_echo "$as_me: failed program was:" >&5
24431sed 's/^/| /' conftest.$ac_ext >&5
24432
24433 ac_header_compiler=no
24434fi
24435
24436rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24437{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24438$as_echo "$ac_header_compiler" >&6; }
24439
24440# Is the header present?
24441{ $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24442$as_echo_n "checking arpa/inet.h presence... " >&6; }
24443cat >conftest.$ac_ext <<_ACEOF
24444/* confdefs.h. */
24445_ACEOF
24446cat confdefs.h >>conftest.$ac_ext
24447cat >>conftest.$ac_ext <<_ACEOF
24448/* end confdefs.h. */
24449#include <arpa/inet.h>
24450_ACEOF
24451if { (ac_try="$ac_cpp conftest.$ac_ext"
24452case "(($ac_try" in
24453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24454 *) ac_try_echo=$ac_try;;
24455esac
24456eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24457$as_echo "$ac_try_echo") >&5
24458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24459 ac_status=$?
24460 grep -v '^ *+' conftest.er1 >conftest.err
24461 rm -f conftest.er1
24462 cat conftest.err >&5
24463 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24464 (exit $ac_status); } >/dev/null && {
24465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24466 test ! -s conftest.err
24467 }; then
24468 ac_header_preproc=yes
24469else
24470 $as_echo "$as_me: failed program was:" >&5
24471sed 's/^/| /' conftest.$ac_ext >&5
24472
24473 ac_header_preproc=no
24474fi
24475
24476rm -f conftest.err conftest.$ac_ext
24477{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24478$as_echo "$ac_header_preproc" >&6; }
24479
24480# So? What about this header?
24481case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24482 yes:no: )
24483 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24484$as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24485 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24486$as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24487 ac_header_preproc=yes
24488 ;;
24489 no:yes:* )
24490 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24491$as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24492 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24493$as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24494 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24495$as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24496 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24497$as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24498 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24499$as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24500 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24501$as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24502
24503 ;;
24504esac
24505{ $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24506$as_echo_n "checking for arpa/inet.h... " >&6; }
24507if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24508 $as_echo_n "(cached) " >&6
24509else
24510 ac_cv_header_arpa_inet_h=$ac_header_preproc
24511fi
24512{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24513$as_echo "$ac_cv_header_arpa_inet_h" >&6; }
12676 24514
24515fi
24516if test $ac_cv_header_arpa_inet_h = yes; then
24517 :
12677else 24518else
12678 ok_so_far=no 24519 ok_so_far=no
12679fi 24520fi
@@ -12682,16 +24523,151 @@ fi
12682fi 24523fi
12683if test $ok_so_far = yes; then 24524if test $ok_so_far = yes; then
12684 24525
12685$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h 24526cat >>confdefs.h <<\_ACEOF
24527#define HAVE_INET_SOCKETS 1
24528_ACEOF
12686 24529
12687fi 24530fi
12688 24531
24532
12689for ac_header in sys/ioctl.h 24533for ac_header in sys/ioctl.h
12690do : 24534do
12691 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 24535as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12692if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : 24536if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24537 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24538$as_echo_n "checking for $ac_header... " >&6; }
24539if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24540 $as_echo_n "(cached) " >&6
24541fi
24542ac_res=`eval 'as_val=${'$as_ac_Header'}
24543 $as_echo "$as_val"'`
24544 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24545$as_echo "$ac_res" >&6; }
24546else
24547 # Is the header compilable?
24548{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24549$as_echo_n "checking $ac_header usability... " >&6; }
24550cat >conftest.$ac_ext <<_ACEOF
24551/* confdefs.h. */
24552_ACEOF
24553cat confdefs.h >>conftest.$ac_ext
24554cat >>conftest.$ac_ext <<_ACEOF
24555/* end confdefs.h. */
24556$ac_includes_default
24557#include <$ac_header>
24558_ACEOF
24559rm -f conftest.$ac_objext
24560if { (ac_try="$ac_compile"
24561case "(($ac_try" in
24562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24563 *) ac_try_echo=$ac_try;;
24564esac
24565eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24566$as_echo "$ac_try_echo") >&5
24567 (eval "$ac_compile") 2>conftest.er1
24568 ac_status=$?
24569 grep -v '^ *+' conftest.er1 >conftest.err
24570 rm -f conftest.er1
24571 cat conftest.err >&5
24572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); } && {
24574 test -z "$ac_c_werror_flag" ||
24575 test ! -s conftest.err
24576 } && test -s conftest.$ac_objext; then
24577 ac_header_compiler=yes
24578else
24579 $as_echo "$as_me: failed program was:" >&5
24580sed 's/^/| /' conftest.$ac_ext >&5
24581
24582 ac_header_compiler=no
24583fi
24584
24585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24586{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24587$as_echo "$ac_header_compiler" >&6; }
24588
24589# Is the header present?
24590{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24591$as_echo_n "checking $ac_header presence... " >&6; }
24592cat >conftest.$ac_ext <<_ACEOF
24593/* confdefs.h. */
24594_ACEOF
24595cat confdefs.h >>conftest.$ac_ext
24596cat >>conftest.$ac_ext <<_ACEOF
24597/* end confdefs.h. */
24598#include <$ac_header>
24599_ACEOF
24600if { (ac_try="$ac_cpp conftest.$ac_ext"
24601case "(($ac_try" in
24602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24603 *) ac_try_echo=$ac_try;;
24604esac
24605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24606$as_echo "$ac_try_echo") >&5
24607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24608 ac_status=$?
24609 grep -v '^ *+' conftest.er1 >conftest.err
24610 rm -f conftest.er1
24611 cat conftest.err >&5
24612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24613 (exit $ac_status); } >/dev/null && {
24614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24615 test ! -s conftest.err
24616 }; then
24617 ac_header_preproc=yes
24618else
24619 $as_echo "$as_me: failed program was:" >&5
24620sed 's/^/| /' conftest.$ac_ext >&5
24621
24622 ac_header_preproc=no
24623fi
24624
24625rm -f conftest.err conftest.$ac_ext
24626{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24627$as_echo "$ac_header_preproc" >&6; }
24628
24629# So? What about this header?
24630case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24631 yes:no: )
24632 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24633$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24634 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24635$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24636 ac_header_preproc=yes
24637 ;;
24638 no:yes:* )
24639 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24640$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24641 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24642$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24643 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24644$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24645 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24646$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24647 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24648$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24649 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24650$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24651
24652 ;;
24653esac
24654{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24655$as_echo_n "checking for $ac_header... " >&6; }
24656if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24657 $as_echo_n "(cached) " >&6
24658else
24659 eval "$as_ac_Header=\$ac_header_preproc"
24660fi
24661ac_res=`eval 'as_val=${'$as_ac_Header'}
24662 $as_echo "$as_val"'`
24663 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24664$as_echo "$ac_res" >&6; }
24665
24666fi
24667if test `eval 'as_val=${'$as_ac_Header'}
24668 $as_echo "$as_val"'` = yes; then
12693 cat >>confdefs.h <<_ACEOF 24669 cat >>confdefs.h <<_ACEOF
12694#define HAVE_SYS_IOCTL_H 1 24670#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12695_ACEOF 24671_ACEOF
12696 24672
12697fi 24673fi
@@ -12701,26 +24677,123 @@ done
12701 24677
12702if test -f /usr/lpp/X11/bin/smt.exp; then 24678if test -f /usr/lpp/X11/bin/smt.exp; then
12703 24679
12704$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h 24680cat >>confdefs.h <<\_ACEOF
24681#define HAVE_AIX_SMT_EXP 1
24682_ACEOF
12705 24683
12706fi 24684fi
12707 24685
12708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5 24686{ $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
12709$as_echo_n "checking whether system supports dynamic ptys... " >&6; } 24687$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
12710if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 24688if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 24689 { $as_echo "$as_me:$LINENO: result: yes" >&5
12712$as_echo "yes" >&6; } 24690$as_echo "yes" >&6; }
12713 24691
12714$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h 24692cat >>confdefs.h <<\_ACEOF
24693#define HAVE_DEV_PTMX 1
24694_ACEOF
12715 24695
12716else 24696else
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 24697 { $as_echo "$as_me:$LINENO: result: no" >&5
12718$as_echo "no" >&6; } 24698$as_echo "no" >&6; }
12719fi 24699fi
12720 24700
12721ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 24701{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
12722if test "x$ac_cv_type_pid_t" = x""yes; then : 24702$as_echo_n "checking for pid_t... " >&6; }
24703if test "${ac_cv_type_pid_t+set}" = set; then
24704 $as_echo_n "(cached) " >&6
24705else
24706 ac_cv_type_pid_t=no
24707cat >conftest.$ac_ext <<_ACEOF
24708/* confdefs.h. */
24709_ACEOF
24710cat confdefs.h >>conftest.$ac_ext
24711cat >>conftest.$ac_ext <<_ACEOF
24712/* end confdefs.h. */
24713$ac_includes_default
24714int
24715main ()
24716{
24717if (sizeof (pid_t))
24718 return 0;
24719 ;
24720 return 0;
24721}
24722_ACEOF
24723rm -f conftest.$ac_objext
24724if { (ac_try="$ac_compile"
24725case "(($ac_try" in
24726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24727 *) ac_try_echo=$ac_try;;
24728esac
24729eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24730$as_echo "$ac_try_echo") >&5
24731 (eval "$ac_compile") 2>conftest.er1
24732 ac_status=$?
24733 grep -v '^ *+' conftest.er1 >conftest.err
24734 rm -f conftest.er1
24735 cat conftest.err >&5
24736 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24737 (exit $ac_status); } && {
24738 test -z "$ac_c_werror_flag" ||
24739 test ! -s conftest.err
24740 } && test -s conftest.$ac_objext; then
24741 cat >conftest.$ac_ext <<_ACEOF
24742/* confdefs.h. */
24743_ACEOF
24744cat confdefs.h >>conftest.$ac_ext
24745cat >>conftest.$ac_ext <<_ACEOF
24746/* end confdefs.h. */
24747$ac_includes_default
24748int
24749main ()
24750{
24751if (sizeof ((pid_t)))
24752 return 0;
24753 ;
24754 return 0;
24755}
24756_ACEOF
24757rm -f conftest.$ac_objext
24758if { (ac_try="$ac_compile"
24759case "(($ac_try" in
24760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24761 *) ac_try_echo=$ac_try;;
24762esac
24763eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24764$as_echo "$ac_try_echo") >&5
24765 (eval "$ac_compile") 2>conftest.er1
24766 ac_status=$?
24767 grep -v '^ *+' conftest.er1 >conftest.err
24768 rm -f conftest.er1
24769 cat conftest.err >&5
24770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); } && {
24772 test -z "$ac_c_werror_flag" ||
24773 test ! -s conftest.err
24774 } && test -s conftest.$ac_objext; then
24775 :
24776else
24777 $as_echo "$as_me: failed program was:" >&5
24778sed 's/^/| /' conftest.$ac_ext >&5
24779
24780 ac_cv_type_pid_t=yes
24781fi
24782
24783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24784else
24785 $as_echo "$as_me: failed program was:" >&5
24786sed 's/^/| /' conftest.$ac_ext >&5
24787
24788
24789fi
12723 24790
24791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24792fi
24793{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24794$as_echo "$ac_cv_type_pid_t" >&6; }
24795if test $ac_cv_type_pid_t = yes; then
24796 :
12724else 24797else
12725 24798
12726cat >>confdefs.h <<_ACEOF 24799cat >>confdefs.h <<_ACEOF
@@ -12729,24 +24802,245 @@ _ACEOF
12729 24802
12730fi 24803fi
12731 24804
24805
12732for ac_header in vfork.h 24806for ac_header in vfork.h
12733do : 24807do
12734 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 24808as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12735if test "x$ac_cv_header_vfork_h" = x""yes; then : 24809if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24810 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24811$as_echo_n "checking for $ac_header... " >&6; }
24812if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24813 $as_echo_n "(cached) " >&6
24814fi
24815ac_res=`eval 'as_val=${'$as_ac_Header'}
24816 $as_echo "$as_val"'`
24817 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24818$as_echo "$ac_res" >&6; }
24819else
24820 # Is the header compilable?
24821{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24822$as_echo_n "checking $ac_header usability... " >&6; }
24823cat >conftest.$ac_ext <<_ACEOF
24824/* confdefs.h. */
24825_ACEOF
24826cat confdefs.h >>conftest.$ac_ext
24827cat >>conftest.$ac_ext <<_ACEOF
24828/* end confdefs.h. */
24829$ac_includes_default
24830#include <$ac_header>
24831_ACEOF
24832rm -f conftest.$ac_objext
24833if { (ac_try="$ac_compile"
24834case "(($ac_try" in
24835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24836 *) ac_try_echo=$ac_try;;
24837esac
24838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24839$as_echo "$ac_try_echo") >&5
24840 (eval "$ac_compile") 2>conftest.er1
24841 ac_status=$?
24842 grep -v '^ *+' conftest.er1 >conftest.err
24843 rm -f conftest.er1
24844 cat conftest.err >&5
24845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } && {
24847 test -z "$ac_c_werror_flag" ||
24848 test ! -s conftest.err
24849 } && test -s conftest.$ac_objext; then
24850 ac_header_compiler=yes
24851else
24852 $as_echo "$as_me: failed program was:" >&5
24853sed 's/^/| /' conftest.$ac_ext >&5
24854
24855 ac_header_compiler=no
24856fi
24857
24858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24859{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24860$as_echo "$ac_header_compiler" >&6; }
24861
24862# Is the header present?
24863{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24864$as_echo_n "checking $ac_header presence... " >&6; }
24865cat >conftest.$ac_ext <<_ACEOF
24866/* confdefs.h. */
24867_ACEOF
24868cat confdefs.h >>conftest.$ac_ext
24869cat >>conftest.$ac_ext <<_ACEOF
24870/* end confdefs.h. */
24871#include <$ac_header>
24872_ACEOF
24873if { (ac_try="$ac_cpp conftest.$ac_ext"
24874case "(($ac_try" in
24875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24876 *) ac_try_echo=$ac_try;;
24877esac
24878eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24879$as_echo "$ac_try_echo") >&5
24880 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24881 ac_status=$?
24882 grep -v '^ *+' conftest.er1 >conftest.err
24883 rm -f conftest.er1
24884 cat conftest.err >&5
24885 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24886 (exit $ac_status); } >/dev/null && {
24887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24888 test ! -s conftest.err
24889 }; then
24890 ac_header_preproc=yes
24891else
24892 $as_echo "$as_me: failed program was:" >&5
24893sed 's/^/| /' conftest.$ac_ext >&5
24894
24895 ac_header_preproc=no
24896fi
24897
24898rm -f conftest.err conftest.$ac_ext
24899{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24900$as_echo "$ac_header_preproc" >&6; }
24901
24902# So? What about this header?
24903case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24904 yes:no: )
24905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24906$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24908$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24909 ac_header_preproc=yes
24910 ;;
24911 no:yes:* )
24912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24913$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24915$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24916 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24917$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24918 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24919$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24920 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24921$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24922 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24923$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24924
24925 ;;
24926esac
24927{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24928$as_echo_n "checking for $ac_header... " >&6; }
24929if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24930 $as_echo_n "(cached) " >&6
24931else
24932 eval "$as_ac_Header=\$ac_header_preproc"
24933fi
24934ac_res=`eval 'as_val=${'$as_ac_Header'}
24935 $as_echo "$as_val"'`
24936 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24937$as_echo "$ac_res" >&6; }
24938
24939fi
24940if test `eval 'as_val=${'$as_ac_Header'}
24941 $as_echo "$as_val"'` = yes; then
12736 cat >>confdefs.h <<_ACEOF 24942 cat >>confdefs.h <<_ACEOF
12737#define HAVE_VFORK_H 1 24943#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12738_ACEOF 24944_ACEOF
12739 24945
12740fi 24946fi
12741 24947
12742done 24948done
12743 24949
24950
24951
12744for ac_func in fork vfork 24952for ac_func in fork vfork
12745do : 24953do
12746 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 24954as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12747ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 24955{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12748eval as_val=\$$as_ac_var 24956$as_echo_n "checking for $ac_func... " >&6; }
12749 if test "x$as_val" = x""yes; then : 24957if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24958 $as_echo_n "(cached) " >&6
24959else
24960 cat >conftest.$ac_ext <<_ACEOF
24961/* confdefs.h. */
24962_ACEOF
24963cat confdefs.h >>conftest.$ac_ext
24964cat >>conftest.$ac_ext <<_ACEOF
24965/* end confdefs.h. */
24966/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24968#define $ac_func innocuous_$ac_func
24969
24970/* System header to define __stub macros and hopefully few prototypes,
24971 which can conflict with char $ac_func (); below.
24972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24973 <limits.h> exists even on freestanding compilers. */
24974
24975#ifdef __STDC__
24976# include <limits.h>
24977#else
24978# include <assert.h>
24979#endif
24980
24981#undef $ac_func
24982
24983/* Override any GCC internal prototype to avoid an error.
24984 Use char because int might match the return type of a GCC
24985 builtin and then its argument prototype would still apply. */
24986#ifdef __cplusplus
24987extern "C"
24988#endif
24989char $ac_func ();
24990/* The GNU C library defines this for functions which it implements
24991 to always fail with ENOSYS. Some functions are actually named
24992 something starting with __ and the normal name is an alias. */
24993#if defined __stub_$ac_func || defined __stub___$ac_func
24994choke me
24995#endif
24996
24997int
24998main ()
24999{
25000return $ac_func ();
25001 ;
25002 return 0;
25003}
25004_ACEOF
25005rm -f conftest.$ac_objext conftest$ac_exeext
25006if { (ac_try="$ac_link"
25007case "(($ac_try" in
25008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25009 *) ac_try_echo=$ac_try;;
25010esac
25011eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25012$as_echo "$ac_try_echo") >&5
25013 (eval "$ac_link") 2>conftest.er1
25014 ac_status=$?
25015 grep -v '^ *+' conftest.er1 >conftest.err
25016 rm -f conftest.er1
25017 cat conftest.err >&5
25018 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25019 (exit $ac_status); } && {
25020 test -z "$ac_c_werror_flag" ||
25021 test ! -s conftest.err
25022 } && test -s conftest$ac_exeext && {
25023 test "$cross_compiling" = yes ||
25024 $as_test_x conftest$ac_exeext
25025 }; then
25026 eval "$as_ac_var=yes"
25027else
25028 $as_echo "$as_me: failed program was:" >&5
25029sed 's/^/| /' conftest.$ac_ext >&5
25030
25031 eval "$as_ac_var=no"
25032fi
25033
25034rm -rf conftest.dSYM
25035rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25036 conftest$ac_exeext conftest.$ac_ext
25037fi
25038ac_res=`eval 'as_val=${'$as_ac_var'}
25039 $as_echo "$as_val"'`
25040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25041$as_echo "$ac_res" >&6; }
25042if test `eval 'as_val=${'$as_ac_var'}
25043 $as_echo "$as_val"'` = yes; then
12750 cat >>confdefs.h <<_ACEOF 25044 cat >>confdefs.h <<_ACEOF
12751#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 25045#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12752_ACEOF 25046_ACEOF
@@ -12755,15 +25049,19 @@ fi
12755done 25049done
12756 25050
12757if test "x$ac_cv_func_fork" = xyes; then 25051if test "x$ac_cv_func_fork" = xyes; then
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 25052 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
12759$as_echo_n "checking for working fork... " >&6; } 25053$as_echo_n "checking for working fork... " >&6; }
12760if test "${ac_cv_func_fork_works+set}" = set; then : 25054if test "${ac_cv_func_fork_works+set}" = set; then
12761 $as_echo_n "(cached) " >&6 25055 $as_echo_n "(cached) " >&6
12762else 25056else
12763 if test "$cross_compiling" = yes; then : 25057 if test "$cross_compiling" = yes; then
12764 ac_cv_func_fork_works=cross 25058 ac_cv_func_fork_works=cross
12765else 25059else
12766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25060 cat >conftest.$ac_ext <<_ACEOF
25061/* confdefs.h. */
25062_ACEOF
25063cat confdefs.h >>conftest.$ac_ext
25064cat >>conftest.$ac_ext <<_ACEOF
12767/* end confdefs.h. */ 25065/* end confdefs.h. */
12768$ac_includes_default 25066$ac_includes_default
12769int 25067int
@@ -12777,17 +25075,44 @@ main ()
12777 return 0; 25075 return 0;
12778} 25076}
12779_ACEOF 25077_ACEOF
12780if ac_fn_c_try_run "$LINENO"; then : 25078rm -f conftest$ac_exeext
25079if { (ac_try="$ac_link"
25080case "(($ac_try" in
25081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25082 *) ac_try_echo=$ac_try;;
25083esac
25084eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25085$as_echo "$ac_try_echo") >&5
25086 (eval "$ac_link") 2>&5
25087 ac_status=$?
25088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25089 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25090 { (case "(($ac_try" in
25091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25092 *) ac_try_echo=$ac_try;;
25093esac
25094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25095$as_echo "$ac_try_echo") >&5
25096 (eval "$ac_try") 2>&5
25097 ac_status=$?
25098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25099 (exit $ac_status); }; }; then
12781 ac_cv_func_fork_works=yes 25100 ac_cv_func_fork_works=yes
12782else 25101else
12783 ac_cv_func_fork_works=no 25102 $as_echo "$as_me: program exited with status $ac_status" >&5
25103$as_echo "$as_me: failed program was:" >&5
25104sed 's/^/| /' conftest.$ac_ext >&5
25105
25106( exit $ac_status )
25107ac_cv_func_fork_works=no
12784fi 25108fi
12785rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25109rm -rf conftest.dSYM
12786 conftest.$ac_objext conftest.beam conftest.$ac_ext 25110rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12787fi 25111fi
12788 25112
25113
12789fi 25114fi
12790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 25115{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
12791$as_echo "$ac_cv_func_fork_works" >&6; } 25116$as_echo "$ac_cv_func_fork_works" >&6; }
12792 25117
12793else 25118else
@@ -12803,20 +25128,24 @@ if test "x$ac_cv_func_fork_works" = xcross; then
12803 ac_cv_func_fork_works=yes 25128 ac_cv_func_fork_works=yes
12804 ;; 25129 ;;
12805 esac 25130 esac
12806 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 25131 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
12807$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 25132$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
12808fi 25133fi
12809ac_cv_func_vfork_works=$ac_cv_func_vfork 25134ac_cv_func_vfork_works=$ac_cv_func_vfork
12810if test "x$ac_cv_func_vfork" = xyes; then 25135if test "x$ac_cv_func_vfork" = xyes; then
12811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 25136 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
12812$as_echo_n "checking for working vfork... " >&6; } 25137$as_echo_n "checking for working vfork... " >&6; }
12813if test "${ac_cv_func_vfork_works+set}" = set; then : 25138if test "${ac_cv_func_vfork_works+set}" = set; then
12814 $as_echo_n "(cached) " >&6 25139 $as_echo_n "(cached) " >&6
12815else 25140else
12816 if test "$cross_compiling" = yes; then : 25141 if test "$cross_compiling" = yes; then
12817 ac_cv_func_vfork_works=cross 25142 ac_cv_func_vfork_works=cross
12818else 25143else
12819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25144 cat >conftest.$ac_ext <<_ACEOF
25145/* confdefs.h. */
25146_ACEOF
25147cat confdefs.h >>conftest.$ac_ext
25148cat >>conftest.$ac_ext <<_ACEOF
12820/* end confdefs.h. */ 25149/* end confdefs.h. */
12821/* Thanks to Paul Eggert for this test. */ 25150/* Thanks to Paul Eggert for this test. */
12822$ac_includes_default 25151$ac_includes_default
@@ -12908,48 +25237,85 @@ main ()
12908 } 25237 }
12909} 25238}
12910_ACEOF 25239_ACEOF
12911if ac_fn_c_try_run "$LINENO"; then : 25240rm -f conftest$ac_exeext
25241if { (ac_try="$ac_link"
25242case "(($ac_try" in
25243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25244 *) ac_try_echo=$ac_try;;
25245esac
25246eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25247$as_echo "$ac_try_echo") >&5
25248 (eval "$ac_link") 2>&5
25249 ac_status=$?
25250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25251 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25252 { (case "(($ac_try" in
25253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25254 *) ac_try_echo=$ac_try;;
25255esac
25256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25257$as_echo "$ac_try_echo") >&5
25258 (eval "$ac_try") 2>&5
25259 ac_status=$?
25260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25261 (exit $ac_status); }; }; then
12912 ac_cv_func_vfork_works=yes 25262 ac_cv_func_vfork_works=yes
12913else 25263else
12914 ac_cv_func_vfork_works=no 25264 $as_echo "$as_me: program exited with status $ac_status" >&5
25265$as_echo "$as_me: failed program was:" >&5
25266sed 's/^/| /' conftest.$ac_ext >&5
25267
25268( exit $ac_status )
25269ac_cv_func_vfork_works=no
12915fi 25270fi
12916rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25271rm -rf conftest.dSYM
12917 conftest.$ac_objext conftest.beam conftest.$ac_ext 25272rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12918fi 25273fi
12919 25274
25275
12920fi 25276fi
12921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 25277{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
12922$as_echo "$ac_cv_func_vfork_works" >&6; } 25278$as_echo "$ac_cv_func_vfork_works" >&6; }
12923 25279
12924fi; 25280fi;
12925if test "x$ac_cv_func_fork_works" = xcross; then 25281if test "x$ac_cv_func_fork_works" = xcross; then
12926 ac_cv_func_vfork_works=$ac_cv_func_vfork 25282 ac_cv_func_vfork_works=$ac_cv_func_vfork
12927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 25283 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
12928$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 25284$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
12929fi 25285fi
12930 25286
12931if test "x$ac_cv_func_vfork_works" = xyes; then 25287if test "x$ac_cv_func_vfork_works" = xyes; then
12932 25288
12933$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 25289cat >>confdefs.h <<\_ACEOF
25290#define HAVE_WORKING_VFORK 1
25291_ACEOF
12934 25292
12935else 25293else
12936 25294
12937$as_echo "#define vfork fork" >>confdefs.h 25295cat >>confdefs.h <<\_ACEOF
25296#define vfork fork
25297_ACEOF
12938 25298
12939fi 25299fi
12940if test "x$ac_cv_func_fork_works" = xyes; then 25300if test "x$ac_cv_func_fork_works" = xyes; then
12941 25301
12942$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 25302cat >>confdefs.h <<\_ACEOF
25303#define HAVE_WORKING_FORK 1
25304_ACEOF
12943 25305
12944fi 25306fi
12945 25307
12946 25308
12947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 25309{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
12948$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 25310$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
12949if test "${emacs_cv_langinfo_codeset+set}" = set; then : 25311if test "${emacs_cv_langinfo_codeset+set}" = set; then
12950 $as_echo_n "(cached) " >&6 25312 $as_echo_n "(cached) " >&6
12951else 25313else
12952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25314 cat >conftest.$ac_ext <<_ACEOF
25315/* confdefs.h. */
25316_ACEOF
25317cat confdefs.h >>conftest.$ac_ext
25318cat >>conftest.$ac_ext <<_ACEOF
12953/* end confdefs.h. */ 25319/* end confdefs.h. */
12954#include <langinfo.h> 25320#include <langinfo.h>
12955int 25321int
@@ -12960,25 +25326,145 @@ char* cs = nl_langinfo(CODESET);
12960 return 0; 25326 return 0;
12961} 25327}
12962_ACEOF 25328_ACEOF
12963if ac_fn_c_try_link "$LINENO"; then : 25329rm -f conftest.$ac_objext conftest$ac_exeext
25330if { (ac_try="$ac_link"
25331case "(($ac_try" in
25332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25333 *) ac_try_echo=$ac_try;;
25334esac
25335eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25336$as_echo "$ac_try_echo") >&5
25337 (eval "$ac_link") 2>conftest.er1
25338 ac_status=$?
25339 grep -v '^ *+' conftest.er1 >conftest.err
25340 rm -f conftest.er1
25341 cat conftest.err >&5
25342 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); } && {
25344 test -z "$ac_c_werror_flag" ||
25345 test ! -s conftest.err
25346 } && test -s conftest$ac_exeext && {
25347 test "$cross_compiling" = yes ||
25348 $as_test_x conftest$ac_exeext
25349 }; then
12964 emacs_cv_langinfo_codeset=yes 25350 emacs_cv_langinfo_codeset=yes
12965else 25351else
12966 emacs_cv_langinfo_codeset=no 25352 $as_echo "$as_me: failed program was:" >&5
25353sed 's/^/| /' conftest.$ac_ext >&5
25354
25355 emacs_cv_langinfo_codeset=no
12967fi 25356fi
12968rm -f core conftest.err conftest.$ac_objext \ 25357
12969 conftest$ac_exeext conftest.$ac_ext 25358rm -rf conftest.dSYM
25359rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25360 conftest$ac_exeext conftest.$ac_ext
12970 25361
12971fi 25362fi
12972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5 25363{ $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
12973$as_echo "$emacs_cv_langinfo_codeset" >&6; } 25364$as_echo "$emacs_cv_langinfo_codeset" >&6; }
12974if test $emacs_cv_langinfo_codeset = yes; then 25365if test $emacs_cv_langinfo_codeset = yes; then
12975 25366
12976$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 25367cat >>confdefs.h <<\_ACEOF
25368#define HAVE_LANGINFO_CODESET 1
25369_ACEOF
12977 25370
12978fi 25371fi
12979 25372
12980ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 25373{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
12981if test "x$ac_cv_type_size_t" = x""yes; then : 25374$as_echo_n "checking for size_t... " >&6; }
25375if test "${ac_cv_type_size_t+set}" = set; then
25376 $as_echo_n "(cached) " >&6
25377else
25378 ac_cv_type_size_t=no
25379cat >conftest.$ac_ext <<_ACEOF
25380/* confdefs.h. */
25381_ACEOF
25382cat confdefs.h >>conftest.$ac_ext
25383cat >>conftest.$ac_ext <<_ACEOF
25384/* end confdefs.h. */
25385$ac_includes_default
25386int
25387main ()
25388{
25389if (sizeof (size_t))
25390 return 0;
25391 ;
25392 return 0;
25393}
25394_ACEOF
25395rm -f conftest.$ac_objext
25396if { (ac_try="$ac_compile"
25397case "(($ac_try" in
25398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399 *) ac_try_echo=$ac_try;;
25400esac
25401eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25402$as_echo "$ac_try_echo") >&5
25403 (eval "$ac_compile") 2>conftest.er1
25404 ac_status=$?
25405 grep -v '^ *+' conftest.er1 >conftest.err
25406 rm -f conftest.er1
25407 cat conftest.err >&5
25408 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25409 (exit $ac_status); } && {
25410 test -z "$ac_c_werror_flag" ||
25411 test ! -s conftest.err
25412 } && test -s conftest.$ac_objext; then
25413 cat >conftest.$ac_ext <<_ACEOF
25414/* confdefs.h. */
25415_ACEOF
25416cat confdefs.h >>conftest.$ac_ext
25417cat >>conftest.$ac_ext <<_ACEOF
25418/* end confdefs.h. */
25419$ac_includes_default
25420int
25421main ()
25422{
25423if (sizeof ((size_t)))
25424 return 0;
25425 ;
25426 return 0;
25427}
25428_ACEOF
25429rm -f conftest.$ac_objext
25430if { (ac_try="$ac_compile"
25431case "(($ac_try" in
25432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25433 *) ac_try_echo=$ac_try;;
25434esac
25435eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25436$as_echo "$ac_try_echo") >&5
25437 (eval "$ac_compile") 2>conftest.er1
25438 ac_status=$?
25439 grep -v '^ *+' conftest.er1 >conftest.err
25440 rm -f conftest.er1
25441 cat conftest.err >&5
25442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25443 (exit $ac_status); } && {
25444 test -z "$ac_c_werror_flag" ||
25445 test ! -s conftest.err
25446 } && test -s conftest.$ac_objext; then
25447 :
25448else
25449 $as_echo "$as_me: failed program was:" >&5
25450sed 's/^/| /' conftest.$ac_ext >&5
25451
25452 ac_cv_type_size_t=yes
25453fi
25454
25455rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25456else
25457 $as_echo "$as_me: failed program was:" >&5
25458sed 's/^/| /' conftest.$ac_ext >&5
25459
25460
25461fi
25462
25463rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25464fi
25465{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25466$as_echo "$ac_cv_type_size_t" >&6; }
25467if test $ac_cv_type_size_t = yes; then
12982 25468
12983cat >>confdefs.h <<_ACEOF 25469cat >>confdefs.h <<_ACEOF
12984#define HAVE_SIZE_T 1 25470#define HAVE_SIZE_T 1
@@ -12988,12 +25474,16 @@ _ACEOF
12988fi 25474fi
12989 25475
12990 25476
12991{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 25477{ $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
12992$as_echo_n "checking for mbstate_t... " >&6; } 25478$as_echo_n "checking for mbstate_t... " >&6; }
12993if test "${ac_cv_type_mbstate_t+set}" = set; then : 25479if test "${ac_cv_type_mbstate_t+set}" = set; then
12994 $as_echo_n "(cached) " >&6 25480 $as_echo_n "(cached) " >&6
12995else 25481else
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25482 cat >conftest.$ac_ext <<_ACEOF
25483/* confdefs.h. */
25484_ACEOF
25485cat confdefs.h >>conftest.$ac_ext
25486cat >>conftest.$ac_ext <<_ACEOF
12997/* end confdefs.h. */ 25487/* end confdefs.h. */
12998$ac_includes_default 25488$ac_includes_default
12999# include <wchar.h> 25489# include <wchar.h>
@@ -13005,31 +25495,60 @@ mbstate_t x; return sizeof x;
13005 return 0; 25495 return 0;
13006} 25496}
13007_ACEOF 25497_ACEOF
13008if ac_fn_c_try_compile "$LINENO"; then : 25498rm -f conftest.$ac_objext
25499if { (ac_try="$ac_compile"
25500case "(($ac_try" in
25501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25502 *) ac_try_echo=$ac_try;;
25503esac
25504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25505$as_echo "$ac_try_echo") >&5
25506 (eval "$ac_compile") 2>conftest.er1
25507 ac_status=$?
25508 grep -v '^ *+' conftest.er1 >conftest.err
25509 rm -f conftest.er1
25510 cat conftest.err >&5
25511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25512 (exit $ac_status); } && {
25513 test -z "$ac_c_werror_flag" ||
25514 test ! -s conftest.err
25515 } && test -s conftest.$ac_objext; then
13009 ac_cv_type_mbstate_t=yes 25516 ac_cv_type_mbstate_t=yes
13010else 25517else
13011 ac_cv_type_mbstate_t=no 25518 $as_echo "$as_me: failed program was:" >&5
25519sed 's/^/| /' conftest.$ac_ext >&5
25520
25521 ac_cv_type_mbstate_t=no
13012fi 25522fi
25523
13013rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13014fi 25525fi
13015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 25526{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
13016$as_echo "$ac_cv_type_mbstate_t" >&6; } 25527$as_echo "$ac_cv_type_mbstate_t" >&6; }
13017 if test $ac_cv_type_mbstate_t = yes; then 25528 if test $ac_cv_type_mbstate_t = yes; then
13018 25529
13019$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 25530cat >>confdefs.h <<\_ACEOF
25531#define HAVE_MBSTATE_T 1
25532_ACEOF
13020 25533
13021 else 25534 else
13022 25535
13023$as_echo "#define mbstate_t int" >>confdefs.h 25536cat >>confdefs.h <<\_ACEOF
25537#define mbstate_t int
25538_ACEOF
13024 25539
13025 fi 25540 fi
13026 25541
13027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5 25542{ $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
13028$as_echo_n "checking for C restrict keyword... " >&6; } 25543$as_echo_n "checking for C restrict keyword... " >&6; }
13029if test "${emacs_cv_c_restrict+set}" = set; then : 25544if test "${emacs_cv_c_restrict+set}" = set; then
13030 $as_echo_n "(cached) " >&6 25545 $as_echo_n "(cached) " >&6
13031else 25546else
13032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25547 cat >conftest.$ac_ext <<_ACEOF
25548/* confdefs.h. */
25549_ACEOF
25550cat confdefs.h >>conftest.$ac_ext
25551cat >>conftest.$ac_ext <<_ACEOF
13033/* end confdefs.h. */ 25552/* end confdefs.h. */
13034void fred (int *restrict x); 25553void fred (int *restrict x);
13035int 25554int
@@ -13040,10 +25559,34 @@ main ()
13040 return 0; 25559 return 0;
13041} 25560}
13042_ACEOF 25561_ACEOF
13043if ac_fn_c_try_compile "$LINENO"; then : 25562rm -f conftest.$ac_objext
25563if { (ac_try="$ac_compile"
25564case "(($ac_try" in
25565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25566 *) ac_try_echo=$ac_try;;
25567esac
25568eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25569$as_echo "$ac_try_echo") >&5
25570 (eval "$ac_compile") 2>conftest.er1
25571 ac_status=$?
25572 grep -v '^ *+' conftest.er1 >conftest.err
25573 rm -f conftest.er1
25574 cat conftest.err >&5
25575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25576 (exit $ac_status); } && {
25577 test -z "$ac_c_werror_flag" ||
25578 test ! -s conftest.err
25579 } && test -s conftest.$ac_objext; then
13044 emacs_cv_c_restrict=yes 25580 emacs_cv_c_restrict=yes
13045else 25581else
13046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25582 $as_echo "$as_me: failed program was:" >&5
25583sed 's/^/| /' conftest.$ac_ext >&5
25584
25585 cat >conftest.$ac_ext <<_ACEOF
25586/* confdefs.h. */
25587_ACEOF
25588cat confdefs.h >>conftest.$ac_ext
25589cat >>conftest.$ac_ext <<_ACEOF
13047/* end confdefs.h. */ 25590/* end confdefs.h. */
13048void fred (int *__restrict x); 25591void fred (int *__restrict x);
13049int 25592int
@@ -13054,16 +25597,38 @@ main ()
13054 return 0; 25597 return 0;
13055} 25598}
13056_ACEOF 25599_ACEOF
13057if ac_fn_c_try_compile "$LINENO"; then : 25600rm -f conftest.$ac_objext
25601if { (ac_try="$ac_compile"
25602case "(($ac_try" in
25603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25604 *) ac_try_echo=$ac_try;;
25605esac
25606eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25607$as_echo "$ac_try_echo") >&5
25608 (eval "$ac_compile") 2>conftest.er1
25609 ac_status=$?
25610 grep -v '^ *+' conftest.er1 >conftest.err
25611 rm -f conftest.er1
25612 cat conftest.err >&5
25613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25614 (exit $ac_status); } && {
25615 test -z "$ac_c_werror_flag" ||
25616 test ! -s conftest.err
25617 } && test -s conftest.$ac_objext; then
13058 emacs_cv_c_restrict=__restrict 25618 emacs_cv_c_restrict=__restrict
13059else 25619else
13060 emacs_cv_c_restrict=no 25620 $as_echo "$as_me: failed program was:" >&5
25621sed 's/^/| /' conftest.$ac_ext >&5
25622
25623 emacs_cv_c_restrict=no
13061fi 25624fi
25625
13062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25626rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13063fi 25627fi
25628
13064rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13065fi 25630fi
13066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5 25631{ $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
13067$as_echo "$emacs_cv_c_restrict" >&6; } 25632$as_echo "$emacs_cv_c_restrict" >&6; }
13068case "$emacs_cv_c_restrict" in 25633case "$emacs_cv_c_restrict" in
13069 yes) emacs_restrict=restrict;; 25634 yes) emacs_restrict=restrict;;
@@ -13078,12 +25643,16 @@ _ACEOF
13078 25643
13079fi 25644fi
13080 25645
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5 25646{ $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
13082$as_echo_n "checking for C restricted array declarations... " >&6; } 25647$as_echo_n "checking for C restricted array declarations... " >&6; }
13083if test "${emacs_cv_c_restrict_arr+set}" = set; then : 25648if test "${emacs_cv_c_restrict_arr+set}" = set; then
13084 $as_echo_n "(cached) " >&6 25649 $as_echo_n "(cached) " >&6
13085else 25650else
13086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25651 cat >conftest.$ac_ext <<_ACEOF
25652/* confdefs.h. */
25653_ACEOF
25654cat confdefs.h >>conftest.$ac_ext
25655cat >>conftest.$ac_ext <<_ACEOF
13087/* end confdefs.h. */ 25656/* end confdefs.h. */
13088void fred (int x[__restrict]); 25657void fred (int x[__restrict]);
13089int 25658int
@@ -13094,18 +25663,41 @@ main ()
13094 return 0; 25663 return 0;
13095} 25664}
13096_ACEOF 25665_ACEOF
13097if ac_fn_c_try_compile "$LINENO"; then : 25666rm -f conftest.$ac_objext
25667if { (ac_try="$ac_compile"
25668case "(($ac_try" in
25669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25670 *) ac_try_echo=$ac_try;;
25671esac
25672eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25673$as_echo "$ac_try_echo") >&5
25674 (eval "$ac_compile") 2>conftest.er1
25675 ac_status=$?
25676 grep -v '^ *+' conftest.er1 >conftest.err
25677 rm -f conftest.er1
25678 cat conftest.err >&5
25679 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25680 (exit $ac_status); } && {
25681 test -z "$ac_c_werror_flag" ||
25682 test ! -s conftest.err
25683 } && test -s conftest.$ac_objext; then
13098 emacs_cv_c_restrict_arr=yes 25684 emacs_cv_c_restrict_arr=yes
13099else 25685else
13100 emacs_cv_c_restrict_arr=no 25686 $as_echo "$as_me: failed program was:" >&5
25687sed 's/^/| /' conftest.$ac_ext >&5
25688
25689 emacs_cv_c_restrict_arr=no
13101fi 25690fi
25691
13102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25692rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13103fi 25693fi
13104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5 25694{ $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
13105$as_echo "$emacs_cv_c_restrict_arr" >&6; } 25695$as_echo "$emacs_cv_c_restrict_arr" >&6; }
13106if test "$emacs_cv_c_restrict_arr" = yes; then 25696if test "$emacs_cv_c_restrict_arr" = yes; then
13107 25697
13108$as_echo "#define __restrict_arr __restrict" >>confdefs.h 25698cat >>confdefs.h <<\_ACEOF
25699#define __restrict_arr __restrict
25700_ACEOF
13109 25701
13110fi 25702fi
13111 25703
@@ -13119,10 +25711,12 @@ CPPFLAGS="$REAL_CPPFLAGS"
13119version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ 25711version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13120 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 25712 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13121if test x"${version}" = x; then 25713if test x"${version}" = x; then
13122 as_fn_error "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5 25714 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25715$as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25716 { (exit 1); exit 1; }; }
13123fi 25717fi
13124if test x"${version}" != x"$PACKAGE_VERSION"; then 25718if test x"${version}" != x"$PACKAGE_VERSION"; then
13125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5 25719 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13126$as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;} 25720$as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13127fi 25721fi
13128 25722
@@ -13214,47 +25808,65 @@ _ACEOF
13214 25808
13215if test "${HAVE_X_WINDOWS}" = "yes" ; then 25809if test "${HAVE_X_WINDOWS}" = "yes" ; then
13216 25810
13217$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h 25811cat >>confdefs.h <<\_ACEOF
25812#define HAVE_X_WINDOWS 1
25813_ACEOF
13218 25814
13219fi 25815fi
13220if test "${USE_X_TOOLKIT}" != "none" ; then 25816if test "${USE_X_TOOLKIT}" != "none" ; then
13221 25817
13222$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h 25818cat >>confdefs.h <<\_ACEOF
25819#define USE_X_TOOLKIT 1
25820_ACEOF
13223 25821
13224 if test "${USE_X_TOOLKIT}" = "LUCID"; then 25822 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13225 25823
13226$as_echo "#define USE_LUCID 1" >>confdefs.h 25824cat >>confdefs.h <<\_ACEOF
25825#define USE_LUCID 1
25826_ACEOF
13227 25827
13228 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then 25828 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13229 25829
13230$as_echo "#define USE_MOTIF 1" >>confdefs.h 25830cat >>confdefs.h <<\_ACEOF
25831#define USE_MOTIF 1
25832_ACEOF
13231 25833
13232 fi 25834 fi
13233fi 25835fi
13234if test "${HAVE_X11}" = "yes" ; then 25836if test "${HAVE_X11}" = "yes" ; then
13235 25837
13236$as_echo "#define HAVE_X11 1" >>confdefs.h 25838cat >>confdefs.h <<\_ACEOF
25839#define HAVE_X11 1
25840_ACEOF
13237 25841
13238fi 25842fi
13239if test "${HAVE_MENUS}" = "yes" ; then 25843if test "${HAVE_MENUS}" = "yes" ; then
13240 25844
13241$as_echo "#define HAVE_MENUS 1" >>confdefs.h 25845cat >>confdefs.h <<\_ACEOF
25846#define HAVE_MENUS 1
25847_ACEOF
13242 25848
13243fi 25849fi
13244if test "${GNU_MALLOC}" = "yes" ; then 25850if test "${GNU_MALLOC}" = "yes" ; then
13245 25851
13246$as_echo "#define GNU_MALLOC 1" >>confdefs.h 25852cat >>confdefs.h <<\_ACEOF
25853#define GNU_MALLOC 1
25854_ACEOF
13247 25855
13248fi 25856fi
13249if test "${REL_ALLOC}" = "yes" ; then 25857if test "${REL_ALLOC}" = "yes" ; then
13250 25858
13251$as_echo "#define REL_ALLOC 1" >>confdefs.h 25859cat >>confdefs.h <<\_ACEOF
25860#define REL_ALLOC 1
25861_ACEOF
13252 25862
13253fi 25863fi
13254 25864
13255 25865
13256 25866
13257 25867
25868
25869
13258#### Report on what we decided to do. 25870#### Report on what we decided to do.
13259#### Report GTK as a toolkit, even if it doesn't use Xt. 25871#### Report GTK as a toolkit, even if it doesn't use Xt.
13260#### It makes printing result more understandable as using GTK sets 25872#### It makes printing result more understandable as using GTK sets
@@ -13291,7 +25903,7 @@ echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
13291echo " Does Emacs use -lXpm? ${HAVE_XPM}" 25903echo " Does Emacs use -lXpm? ${HAVE_XPM}"
13292echo " Does Emacs use -ljpeg? ${HAVE_JPEG}" 25904echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
13293echo " Does Emacs use -ltiff? ${HAVE_TIFF}" 25905echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
13294echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name" 25906echo " Does Emacs use a gif library? ${HAVE_GIF} $LIBGIF"
13295echo " Does Emacs use -lpng? ${HAVE_PNG}" 25907echo " Does Emacs use -lpng? ${HAVE_PNG}"
13296echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}" 25908echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
13297echo " Does Emacs use -lgpm? ${HAVE_GPM}" 25909echo " Does Emacs use -lgpm? ${HAVE_GPM}"
@@ -13355,12 +25967,16 @@ cpp_undefs="`echo $srcdir $configuration $canonical |
13355## from Makefile.c can correctly provide the arg `-traditional' to the 25967## from Makefile.c can correctly provide the arg `-traditional' to the
13356## C preprocessor. 25968## C preprocessor.
13357 25969
13358cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25970cat >conftest.$ac_ext <<_ACEOF
25971/* confdefs.h. */
25972_ACEOF
25973cat confdefs.h >>conftest.$ac_ext
25974cat >>conftest.$ac_ext <<_ACEOF
13359/* end confdefs.h. */ 25975/* end confdefs.h. */
13360yes..yes 25976yes..yes
13361_ACEOF 25977_ACEOF
13362if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25978if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13363 $EGREP "yes..yes" >/dev/null 2>&1; then : 25979 $EGREP "yes..yes" >/dev/null 2>&1; then
13364 CPP_NEED_TRADITIONAL=no 25980 CPP_NEED_TRADITIONAL=no
13365else 25981else
13366 CPP_NEED_TRADITIONAL=yes 25982 CPP_NEED_TRADITIONAL=yes
@@ -13399,13 +26015,13 @@ _ACEOF
13399 case $ac_val in #( 26015 case $ac_val in #(
13400 *${as_nl}*) 26016 *${as_nl}*)
13401 case $ac_var in #( 26017 case $ac_var in #(
13402 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 26018 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13403$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 26019$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13404 esac 26020 esac
13405 case $ac_var in #( 26021 case $ac_var in #(
13406 _ | IFS | as_nl) ;; #( 26022 _ | IFS | as_nl) ;; #(
13407 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 26023 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13408 *) { eval $ac_var=; unset $ac_var;} ;; 26024 *) $as_unset $ac_var ;;
13409 esac ;; 26025 esac ;;
13410 esac 26026 esac
13411 done 26027 done
@@ -13413,8 +26029,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13413 (set) 2>&1 | 26029 (set) 2>&1 |
13414 case $as_nl`(ac_space=' '; set) 2>&1` in #( 26030 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13415 *${as_nl}ac_space=\ *) 26031 *${as_nl}ac_space=\ *)
13416 # `set' does not quote correctly, so add quotes: double-quote 26032 # `set' does not quote correctly, so add quotes (double-quote
13417 # substitution turns \\\\ into \\, and sed turns \\ into \. 26033 # substitution turns \\\\ into \\, and sed turns \\ into \).
13418 sed -n \ 26034 sed -n \
13419 "s/'/'\\\\''/g; 26035 "s/'/'\\\\''/g;
13420 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26036 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
@@ -13437,11 +26053,11 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13437if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 26053if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13438 if test -w "$cache_file"; then 26054 if test -w "$cache_file"; then
13439 test "x$cache_file" != "x/dev/null" && 26055 test "x$cache_file" != "x/dev/null" &&
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 26056 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13441$as_echo "$as_me: updating cache $cache_file" >&6;} 26057$as_echo "$as_me: updating cache $cache_file" >&6;}
13442 cat confcache >$cache_file 26058 cat confcache >$cache_file
13443 else 26059 else
13444 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 26060 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13445$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 26061$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13446 fi 26062 fi
13447fi 26063fi
@@ -13461,8 +26077,8 @@ for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13461 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 26077 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13462 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 26078 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13463 # will be set to the directory where LIBOBJS objects are built. 26079 # will be set to the directory where LIBOBJS objects are built.
13464 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 26080 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13465 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 26081 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13466done 26082done
13467LIBOBJS=$ac_libobjs 26083LIBOBJS=$ac_libobjs
13468 26084
@@ -13474,10 +26090,9 @@ LTLIBOBJS=$ac_ltlibobjs
13474ac_write_fail=0 26090ac_write_fail=0
13475ac_clean_files_save=$ac_clean_files 26091ac_clean_files_save=$ac_clean_files
13476ac_clean_files="$ac_clean_files $CONFIG_STATUS" 26092ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13477{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 26093{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13478$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 26094$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13479as_write_fail=0 26095cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13480cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13481#! $SHELL 26096#! $SHELL
13482# Generated by $as_me. 26097# Generated by $as_me.
13483# Run this file to recreate the current configuration. 26098# Run this file to recreate the current configuration.
@@ -13487,18 +26102,17 @@ cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13487debug=false 26102debug=false
13488ac_cs_recheck=false 26103ac_cs_recheck=false
13489ac_cs_silent=false 26104ac_cs_silent=false
13490
13491SHELL=\${CONFIG_SHELL-$SHELL} 26105SHELL=\${CONFIG_SHELL-$SHELL}
13492export SHELL 26106_ACEOF
13493_ASEOF 26107
13494cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 26108cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13495## -------------------- ## 26109## --------------------- ##
13496## M4sh Initialization. ## 26110## M4sh Initialization. ##
13497## -------------------- ## 26111## --------------------- ##
13498 26112
13499# Be more Bourne compatible 26113# Be more Bourne compatible
13500DUALCASE=1; export DUALCASE # for MKS sh 26114DUALCASE=1; export DUALCASE # for MKS sh
13501if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26115if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13502 emulate sh 26116 emulate sh
13503 NULLCMD=: 26117 NULLCMD=:
13504 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26118 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
@@ -13506,15 +26120,23 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13506 alias -g '${1+"$@"}'='"$@"' 26120 alias -g '${1+"$@"}'='"$@"'
13507 setopt NO_GLOB_SUBST 26121 setopt NO_GLOB_SUBST
13508else 26122else
13509 case `(set -o) 2>/dev/null` in #( 26123 case `(set -o) 2>/dev/null` in
13510 *posix*) : 26124 *posix*) set -o posix ;;
13511 set -o posix ;; #(
13512 *) :
13513 ;;
13514esac 26125esac
26126
13515fi 26127fi
13516 26128
13517 26129
26130
26131
26132# PATH needs CR
26133# Avoid depending upon Character Ranges.
26134as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26135as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26136as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26137as_cr_digits='0123456789'
26138as_cr_alnum=$as_cr_Letters$as_cr_digits
26139
13518as_nl=' 26140as_nl='
13519' 26141'
13520export as_nl 26142export as_nl
@@ -13522,13 +26144,7 @@ export as_nl
13522as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 26144as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13523as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 26145as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13524as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 26146as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13525# Prefer a ksh shell builtin over an external printf program on Solaris, 26147if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13526# but without wasting forks for bash or zsh.
13527if test -z "$BASH_VERSION$ZSH_VERSION" \
13528 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13529 as_echo='print -r --'
13530 as_echo_n='print -rn --'
13531elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13532 as_echo='printf %s\n' 26148 as_echo='printf %s\n'
13533 as_echo_n='printf %s' 26149 as_echo_n='printf %s'
13534else 26150else
@@ -13539,7 +26155,7 @@ else
13539 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 26155 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
13540 as_echo_n_body='eval 26156 as_echo_n_body='eval
13541 arg=$1; 26157 arg=$1;
13542 case $arg in #( 26158 case $arg in
13543 *"$as_nl"*) 26159 *"$as_nl"*)
13544 expr "X$arg" : "X\\(.*\\)$as_nl"; 26160 expr "X$arg" : "X\\(.*\\)$as_nl";
13545 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 26161 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
@@ -13562,6 +26178,13 @@ if test "${PATH_SEPARATOR+set}" != set; then
13562 } 26178 }
13563fi 26179fi
13564 26180
26181# Support unset when possible.
26182if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26183 as_unset=unset
26184else
26185 as_unset=false
26186fi
26187
13565 26188
13566# IFS 26189# IFS
13567# We need space, tab and new line, in precisely that order. Quoting is 26190# We need space, tab and new line, in precisely that order. Quoting is
@@ -13571,15 +26194,15 @@ fi
13571IFS=" "" $as_nl" 26194IFS=" "" $as_nl"
13572 26195
13573# Find who we are. Look in the path if we contain no directory separator. 26196# Find who we are. Look in the path if we contain no directory separator.
13574case $0 in #(( 26197case $0 in
13575 *[\\/]* ) as_myself=$0 ;; 26198 *[\\/]* ) as_myself=$0 ;;
13576 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26199 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13577for as_dir in $PATH 26200for as_dir in $PATH
13578do 26201do
13579 IFS=$as_save_IFS 26202 IFS=$as_save_IFS
13580 test -z "$as_dir" && as_dir=. 26203 test -z "$as_dir" && as_dir=.
13581 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 26204 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
13582 done 26205done
13583IFS=$as_save_IFS 26206IFS=$as_save_IFS
13584 26207
13585 ;; 26208 ;;
@@ -13591,16 +26214,12 @@ if test "x$as_myself" = x; then
13591fi 26214fi
13592if test ! -f "$as_myself"; then 26215if test ! -f "$as_myself"; then
13593 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 26216 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
13594 exit 1 26217 { (exit 1); exit 1; }
13595fi 26218fi
13596 26219
13597# Unset variables that we do not need and which cause bugs (e.g. in 26220# Work around bugs in pre-3.0 UWIN ksh.
13598# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 26221for as_var in ENV MAIL MAILPATH
13599# suppresses any "Segmentation fault" message there. '((' could 26222do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
13600# trigger a bug in pdksh 5.2.14.
13601for as_var in BASH_ENV ENV MAIL MAILPATH
13602do eval test x\${$as_var+set} = xset \
13603 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
13604done 26223done
13605PS1='$ ' 26224PS1='$ '
13606PS2='> ' 26225PS2='> '
@@ -13612,89 +26231,7 @@ export LC_ALL
13612LANGUAGE=C 26231LANGUAGE=C
13613export LANGUAGE 26232export LANGUAGE
13614 26233
13615# CDPATH. 26234# Required to use basename.
13616(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13617
13618
13619# as_fn_error ERROR [LINENO LOG_FD]
13620# ---------------------------------
13621# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13622# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13623# script with status $?, using 1 if that was 0.
13624as_fn_error ()
13625{
13626 as_status=$?; test $as_status -eq 0 && as_status=1
13627 if test "$3"; then
13628 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13629 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13630 fi
13631 $as_echo "$as_me: error: $1" >&2
13632 as_fn_exit $as_status
13633} # as_fn_error
13634
13635
13636# as_fn_set_status STATUS
13637# -----------------------
13638# Set $? to STATUS, without forking.
13639as_fn_set_status ()
13640{
13641 return $1
13642} # as_fn_set_status
13643
13644# as_fn_exit STATUS
13645# -----------------
13646# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13647as_fn_exit ()
13648{
13649 set +e
13650 as_fn_set_status $1
13651 exit $1
13652} # as_fn_exit
13653
13654# as_fn_unset VAR
13655# ---------------
13656# Portably unset VAR.
13657as_fn_unset ()
13658{
13659 { eval $1=; unset $1;}
13660}
13661as_unset=as_fn_unset
13662# as_fn_append VAR VALUE
13663# ----------------------
13664# Append the text in VALUE to the end of the definition contained in VAR. Take
13665# advantage of any shell optimizations that allow amortized linear growth over
13666# repeated appends, instead of the typical quadratic growth present in naive
13667# implementations.
13668if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13669 eval 'as_fn_append ()
13670 {
13671 eval $1+=\$2
13672 }'
13673else
13674 as_fn_append ()
13675 {
13676 eval $1=\$$1\$2
13677 }
13678fi # as_fn_append
13679
13680# as_fn_arith ARG...
13681# ------------------
13682# Perform arithmetic evaluation on the ARGs, and store the result in the
13683# global $as_val. Take advantage of shells that can avoid forks. The arguments
13684# must be portable across $(()) and expr.
13685if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13686 eval 'as_fn_arith ()
13687 {
13688 as_val=$(( $* ))
13689 }'
13690else
13691 as_fn_arith ()
13692 {
13693 as_val=`expr "$@" || test $? -eq 1`
13694 }
13695fi # as_fn_arith
13696
13697
13698if expr a : '\(a\)' >/dev/null 2>&1 && 26235if expr a : '\(a\)' >/dev/null 2>&1 &&
13699 test "X`expr 00001 : '.*\(...\)'`" = X001; then 26236 test "X`expr 00001 : '.*\(...\)'`" = X001; then
13700 as_expr=expr 26237 as_expr=expr
@@ -13708,12 +26245,8 @@ else
13708 as_basename=false 26245 as_basename=false
13709fi 26246fi
13710 26247
13711if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
13712 as_dirname=dirname
13713else
13714 as_dirname=false
13715fi
13716 26248
26249# Name of the executable.
13717as_me=`$as_basename -- "$0" || 26250as_me=`$as_basename -- "$0" ||
13718$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 26251$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
13719 X"$0" : 'X\(//\)$' \| \ 26252 X"$0" : 'X\(//\)$' \| \
@@ -13733,25 +26266,76 @@ $as_echo X/"$0" |
13733 } 26266 }
13734 s/.*/./; q'` 26267 s/.*/./; q'`
13735 26268
13736# Avoid depending upon Character Ranges. 26269# CDPATH.
13737as_cr_letters='abcdefghijklmnopqrstuvwxyz' 26270$as_unset CDPATH
13738as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 26271
13739as_cr_Letters=$as_cr_letters$as_cr_LETTERS 26272
13740as_cr_digits='0123456789' 26273
13741as_cr_alnum=$as_cr_Letters$as_cr_digits 26274 as_lineno_1=$LINENO
26275 as_lineno_2=$LINENO
26276 test "x$as_lineno_1" != "x$as_lineno_2" &&
26277 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26278
26279 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26280 # uniformly replaced by the line number. The first 'sed' inserts a
26281 # line-number line after each line using $LINENO; the second 'sed'
26282 # does the real work. The second script uses 'N' to pair each
26283 # line-number line with the line containing $LINENO, and appends
26284 # trailing '-' during substitution so that $LINENO is not a special
26285 # case at line end.
26286 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26287 # scripts with optimization help from Paolo Bonzini. Blame Lee
26288 # E. McMahon (1931-1989) for sed's syntax. :-)
26289 sed -n '
26290 p
26291 /[$]LINENO/=
26292 ' <$as_myself |
26293 sed '
26294 s/[$]LINENO.*/&-/
26295 t lineno
26296 b
26297 :lineno
26298 N
26299 :loop
26300 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26301 t loop
26302 s/-\n.*//
26303 ' >$as_me.lineno &&
26304 chmod +x "$as_me.lineno" ||
26305 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26306 { (exit 1); exit 1; }; }
26307
26308 # Don't try to exec as it changes $[0], causing all sort of problems
26309 # (the dirname of $[0] is not the place where we might find the
26310 # original and so on. Autoconf is especially sensitive to this).
26311 . "./$as_me.lineno"
26312 # Exit status is that of the last command.
26313 exit
26314}
26315
26316
26317if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26318 as_dirname=dirname
26319else
26320 as_dirname=false
26321fi
13742 26322
13743ECHO_C= ECHO_N= ECHO_T= 26323ECHO_C= ECHO_N= ECHO_T=
13744case `echo -n x` in #((((( 26324case `echo -n x` in
13745-n*) 26325-n*)
13746 case `echo 'xy\c'` in 26326 case `echo 'x\c'` in
13747 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 26327 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
13748 xy) ECHO_C='\c';; 26328 *) ECHO_C='\c';;
13749 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13750 ECHO_T=' ';;
13751 esac;; 26329 esac;;
13752*) 26330*)
13753 ECHO_N='-n';; 26331 ECHO_N='-n';;
13754esac 26332esac
26333if expr a : '\(a\)' >/dev/null 2>&1 &&
26334 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26335 as_expr=expr
26336else
26337 as_expr=false
26338fi
13755 26339
13756rm -f conf$$ conf$$.exe conf$$.file 26340rm -f conf$$ conf$$.exe conf$$.file
13757if test -d conf$$.dir; then 26341if test -d conf$$.dir; then
@@ -13780,56 +26364,8 @@ fi
13780rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 26364rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
13781rmdir conf$$.dir 2>/dev/null 26365rmdir conf$$.dir 2>/dev/null
13782 26366
13783
13784# as_fn_mkdir_p
13785# -------------
13786# Create "$as_dir" as a directory, including parents if necessary.
13787as_fn_mkdir_p ()
13788{
13789
13790 case $as_dir in #(
13791 -*) as_dir=./$as_dir;;
13792 esac
13793 test -d "$as_dir" || eval $as_mkdir_p || {
13794 as_dirs=
13795 while :; do
13796 case $as_dir in #(
13797 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
13798 *) as_qdir=$as_dir;;
13799 esac
13800 as_dirs="'$as_qdir' $as_dirs"
13801 as_dir=`$as_dirname -- "$as_dir" ||
13802$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
13803 X"$as_dir" : 'X\(//\)[^/]' \| \
13804 X"$as_dir" : 'X\(//\)$' \| \
13805 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
13806$as_echo X"$as_dir" |
13807 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
13808 s//\1/
13809 q
13810 }
13811 /^X\(\/\/\)[^/].*/{
13812 s//\1/
13813 q
13814 }
13815 /^X\(\/\/\)$/{
13816 s//\1/
13817 q
13818 }
13819 /^X\(\/\).*/{
13820 s//\1/
13821 q
13822 }
13823 s/.*/./; q'`
13824 test -d "$as_dir" && break
13825 done
13826 test -z "$as_dirs" || eval "mkdir $as_dirs"
13827 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
13828
13829
13830} # as_fn_mkdir_p
13831if mkdir -p . 2>/dev/null; then 26367if mkdir -p . 2>/dev/null; then
13832 as_mkdir_p='mkdir -p "$as_dir"' 26368 as_mkdir_p=:
13833else 26369else
13834 test -d ./-p && rmdir ./-p 26370 test -d ./-p && rmdir ./-p
13835 as_mkdir_p=false 26371 as_mkdir_p=false
@@ -13848,10 +26384,10 @@ else
13848 if test -d "$1"; then 26384 if test -d "$1"; then
13849 test -d "$1/."; 26385 test -d "$1/.";
13850 else 26386 else
13851 case $1 in #( 26387 case $1 in
13852 -*)set "./$1";; 26388 -*)set "./$1";;
13853 esac; 26389 esac;
13854 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 26390 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
13855 ???[sx]*):;;*)false;;esac;fi 26391 ???[sx]*):;;*)false;;esac;fi
13856 '\'' sh 26392 '\'' sh
13857 ' 26393 '
@@ -13866,19 +26402,13 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
13866 26402
13867 26403
13868exec 6>&1 26404exec 6>&1
13869## ----------------------------------- ##
13870## Main body of $CONFIG_STATUS script. ##
13871## ----------------------------------- ##
13872_ASEOF
13873test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
13874 26405
13875cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26406# Save the log message, to keep $[0] and so on meaningful, and to
13876# Save the log message, to keep $0 and so on meaningful, and to
13877# report actual input values of CONFIG_FILES etc. instead of their 26407# report actual input values of CONFIG_FILES etc. instead of their
13878# values after options handling. 26408# values after options handling.
13879ac_log=" 26409ac_log="
13880This file was extended by emacs $as_me 24.0.50, which was 26410This file was extended by emacs $as_me 24.0.50, which was
13881generated by GNU Autoconf 2.64. Invocation command line was 26411generated by GNU Autoconf 2.62. Invocation command line was
13882 26412
13883 CONFIG_FILES = $CONFIG_FILES 26413 CONFIG_FILES = $CONFIG_FILES
13884 CONFIG_HEADERS = $CONFIG_HEADERS 26414 CONFIG_HEADERS = $CONFIG_HEADERS
@@ -13891,15 +26421,6 @@ on `(hostname || uname -n) 2>/dev/null | sed 1q`
13891 26421
13892_ACEOF 26422_ACEOF
13893 26423
13894case $ac_config_files in *"
13895"*) set x $ac_config_files; shift; ac_config_files=$*;;
13896esac
13897
13898case $ac_config_headers in *"
13899"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
13900esac
13901
13902
13903cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26424cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13904# Files that config.status was made for. 26425# Files that config.status was made for.
13905config_files="$ac_config_files" 26426config_files="$ac_config_files"
@@ -13910,21 +26431,19 @@ _ACEOF
13910 26431
13911cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26432cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13912ac_cs_usage="\ 26433ac_cs_usage="\
13913\`$as_me' instantiates files and other configuration actions 26434\`$as_me' instantiates files from templates according to the
13914from templates according to the current configuration. Unless the files 26435current configuration.
13915and actions are specified as TAGs, all are instantiated by default.
13916 26436
13917Usage: $0 [OPTION]... [TAG]... 26437Usage: $0 [OPTIONS] [FILE]...
13918 26438
13919 -h, --help print this help, then exit 26439 -h, --help print this help, then exit
13920 -V, --version print version number and configuration settings, then exit 26440 -V, --version print version number and configuration settings, then exit
13921 -q, --quiet, --silent 26441 -q, --quiet do not print progress messages
13922 do not print progress messages
13923 -d, --debug don't remove temporary files 26442 -d, --debug don't remove temporary files
13924 --recheck update $as_me by reconfiguring in the same conditions 26443 --recheck update $as_me by reconfiguring in the same conditions
13925 --file=FILE[:TEMPLATE] 26444 --file=FILE[:TEMPLATE]
13926 instantiate the configuration file FILE 26445 instantiate the configuration file FILE
13927 --header=FILE[:TEMPLATE] 26446 --header=FILE[:TEMPLATE]
13928 instantiate the configuration header FILE 26447 instantiate the configuration header FILE
13929 26448
13930Configuration files: 26449Configuration files:
@@ -13936,16 +26455,16 @@ $config_headers
13936Configuration commands: 26455Configuration commands:
13937$config_commands 26456$config_commands
13938 26457
13939Report bugs to the package provider." 26458Report bugs to <bug-autoconf@gnu.org>."
13940 26459
13941_ACEOF 26460_ACEOF
13942cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26461cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13943ac_cs_version="\\ 26462ac_cs_version="\\
13944emacs config.status 24.0.50 26463emacs config.status 24.0.50
13945configured by $0, generated by GNU Autoconf 2.64, 26464configured by $0, generated by GNU Autoconf 2.62,
13946 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 26465 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
13947 26466
13948Copyright (C) 2009 Free Software Foundation, Inc. 26467Copyright (C) 2008 Free Software Foundation, Inc.
13949This config.status script is free software; the Free Software Foundation 26468This config.status script is free software; the Free Software Foundation
13950gives unlimited permission to copy, distribute and modify it." 26469gives unlimited permission to copy, distribute and modify it."
13951 26470
@@ -13986,19 +26505,20 @@ do
13986 case $ac_optarg in 26505 case $ac_optarg in
13987 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26506 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13988 esac 26507 esac
13989 as_fn_append CONFIG_FILES " '$ac_optarg'" 26508 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
13990 ac_need_defaults=false;; 26509 ac_need_defaults=false;;
13991 --header | --heade | --head | --hea ) 26510 --header | --heade | --head | --hea )
13992 $ac_shift 26511 $ac_shift
13993 case $ac_optarg in 26512 case $ac_optarg in
13994 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26513 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
13995 esac 26514 esac
13996 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 26515 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
13997 ac_need_defaults=false;; 26516 ac_need_defaults=false;;
13998 --he | --h) 26517 --he | --h)
13999 # Conflict between --help and --header 26518 # Conflict between --help and --header
14000 as_fn_error "ambiguous option: \`$1' 26519 { $as_echo "$as_me: error: ambiguous option: $1
14001Try \`$0 --help' for more information.";; 26520Try \`$0 --help' for more information." >&2
26521 { (exit 1); exit 1; }; };;
14002 --help | --hel | -h ) 26522 --help | --hel | -h )
14003 $as_echo "$ac_cs_usage"; exit ;; 26523 $as_echo "$ac_cs_usage"; exit ;;
14004 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 26524 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
@@ -14006,10 +26526,11 @@ Try \`$0 --help' for more information.";;
14006 ac_cs_silent=: ;; 26526 ac_cs_silent=: ;;
14007 26527
14008 # This is an error. 26528 # This is an error.
14009 -*) as_fn_error "unrecognized option: \`$1' 26529 -*) { $as_echo "$as_me: error: unrecognized option: $1
14010Try \`$0 --help' for more information." ;; 26530Try \`$0 --help' for more information." >&2
26531 { (exit 1); exit 1; }; } ;;
14011 26532
14012 *) as_fn_append ac_config_targets " $1" 26533 *) ac_config_targets="$ac_config_targets $1"
14013 ac_need_defaults=false ;; 26534 ac_need_defaults=false ;;
14014 26535
14015 esac 26536 esac
@@ -14074,7 +26595,9 @@ do
14074 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; 26595 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14075 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 26596 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14076 26597
14077 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 26598 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26599$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26600 { (exit 1); exit 1; }; };;
14078 esac 26601 esac
14079done 26602done
14080 26603
@@ -14101,7 +26624,7 @@ $debug ||
14101 trap 'exit_status=$? 26624 trap 'exit_status=$?
14102 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 26625 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14103' 0 26626' 0
14104 trap 'as_fn_exit 1' 1 2 13 15 26627 trap '{ (exit 1); exit 1; }' 1 2 13 15
14105} 26628}
14106# Create a (secure) tmp directory for tmp files. 26629# Create a (secure) tmp directory for tmp files.
14107 26630
@@ -14112,7 +26635,11 @@ $debug ||
14112{ 26635{
14113 tmp=./conf$$-$RANDOM 26636 tmp=./conf$$-$RANDOM
14114 (umask 077 && mkdir "$tmp") 26637 (umask 077 && mkdir "$tmp")
14115} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 26638} ||
26639{
26640 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26641 { (exit 1); exit 1; }
26642}
14116 26643
14117# Set up the scripts for CONFIG_FILES section. 26644# Set up the scripts for CONFIG_FILES section.
14118# No need to generate them if there are no CONFIG_FILES. 26645# No need to generate them if there are no CONFIG_FILES.
@@ -14120,16 +26647,10 @@ $debug ||
14120if test -n "$CONFIG_FILES"; then 26647if test -n "$CONFIG_FILES"; then
14121 26648
14122 26649
14123ac_cr=`echo X | tr X '\015'` 26650ac_cr=' '
14124# On cygwin, bash can eat \r inside `` if the user requested igncr.
14125# But we know of no other shell where ac_cr would be empty at this
14126# point, so we can use a bashism as a fallback.
14127if test "x$ac_cr" = x; then
14128 eval ac_cr=\$\'\\r\'
14129fi
14130ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 26651ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14131if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 26652if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14132 ac_cs_awk_cr='\r' 26653 ac_cs_awk_cr='\\r'
14133else 26654else
14134 ac_cs_awk_cr=$ac_cr 26655 ac_cs_awk_cr=$ac_cr
14135fi 26656fi
@@ -14143,18 +26664,23 @@ _ACEOF
14143 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 26664 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14144 echo "_ACEOF" 26665 echo "_ACEOF"
14145} >conf$$subs.sh || 26666} >conf$$subs.sh ||
14146 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 26667 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26668$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26669 { (exit 1); exit 1; }; }
14147ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 26670ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14148ac_delim='%!_!# ' 26671ac_delim='%!_!# '
14149for ac_last_try in false false false false false :; do 26672for ac_last_try in false false false false false :; do
14150 . ./conf$$subs.sh || 26673 . ./conf$$subs.sh ||
14151 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 26674 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26675$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26676 { (exit 1); exit 1; }; }
14152 26677
14153 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 26678 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
14154 if test $ac_delim_n = $ac_delim_num; then
14155 break 26679 break
14156 elif $ac_last_try; then 26680 elif $ac_last_try; then
14157 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 26681 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26682$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26683 { (exit 1); exit 1; }; }
14158 else 26684 else
14159 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26685 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14160 fi 26686 fi
@@ -14243,7 +26769,9 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14243else 26769else
14244 cat 26770 cat
14245fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 26771fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14246 || as_fn_error "could not setup config files machinery" "$LINENO" 5 26772 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
26773$as_echo "$as_me: error: could not setup config files machinery" >&2;}
26774 { (exit 1); exit 1; }; }
14247_ACEOF 26775_ACEOF
14248 26776
14249# VPATH may cause trouble with some makes, so we remove $(srcdir), 26777# VPATH may cause trouble with some makes, so we remove $(srcdir),
@@ -14284,7 +26812,9 @@ for ac_last_try in false false :; do
14284 if test -z "$ac_t"; then 26812 if test -z "$ac_t"; then
14285 break 26813 break
14286 elif $ac_last_try; then 26814 elif $ac_last_try; then
14287 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 26815 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
26816$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26817 { (exit 1); exit 1; }; }
14288 else 26818 else
14289 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 26819 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14290 fi 26820 fi
@@ -14350,9 +26880,9 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14350 } 26880 }
14351 split(mac1, mac2, "(") #) 26881 split(mac1, mac2, "(") #)
14352 macro = mac2[1] 26882 macro = mac2[1]
14353 prefix = substr(line, 1, index(line, defundef) - 1)
14354 if (D_is_set[macro]) { 26883 if (D_is_set[macro]) {
14355 # Preserve the white space surrounding the "#". 26884 # Preserve the white space surrounding the "#".
26885 prefix = substr(line, 1, index(line, defundef) - 1)
14356 print prefix "define", macro P[macro] D[macro] 26886 print prefix "define", macro P[macro] D[macro]
14357 next 26887 next
14358 } else { 26888 } else {
@@ -14360,7 +26890,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14360 # in the case of _POSIX_SOURCE, which is predefined and required 26890 # in the case of _POSIX_SOURCE, which is predefined and required
14361 # on some systems where configure will not decide to define it. 26891 # on some systems where configure will not decide to define it.
14362 if (defundef == "undef") { 26892 if (defundef == "undef") {
14363 print "/*", prefix defundef, macro, "*/" 26893 print "/*", line, "*/"
14364 next 26894 next
14365 } 26895 }
14366 } 26896 }
@@ -14369,7 +26899,9 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14369_ACAWK 26899_ACAWK
14370_ACEOF 26900_ACEOF
14371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26901cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14372 as_fn_error "could not setup config headers machinery" "$LINENO" 5 26902 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
26903$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
26904 { (exit 1); exit 1; }; }
14373fi # test -n "$CONFIG_HEADERS" 26905fi # test -n "$CONFIG_HEADERS"
14374 26906
14375 26907
@@ -14382,7 +26914,9 @@ do
14382 esac 26914 esac
14383 case $ac_mode$ac_tag in 26915 case $ac_mode$ac_tag in
14384 :[FHL]*:*);; 26916 :[FHL]*:*);;
14385 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 26917 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26918$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26919 { (exit 1); exit 1; }; };;
14386 :[FH]-) ac_tag=-:-;; 26920 :[FH]-) ac_tag=-:-;;
14387 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 26921 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14388 esac 26922 esac
@@ -14410,10 +26944,12 @@ do
14410 [\\/$]*) false;; 26944 [\\/$]*) false;;
14411 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 26945 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14412 esac || 26946 esac ||
14413 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 26947 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26948$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26949 { (exit 1); exit 1; }; };;
14414 esac 26950 esac
14415 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 26951 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14416 as_fn_append ac_file_inputs " '$ac_f'" 26952 ac_file_inputs="$ac_file_inputs '$ac_f'"
14417 done 26953 done
14418 26954
14419 # Let's still pretend it is `configure' which instantiates (i.e., don't 26955 # Let's still pretend it is `configure' which instantiates (i.e., don't
@@ -14424,7 +26960,7 @@ do
14424 `' by configure.' 26960 `' by configure.'
14425 if test x"$ac_file" != x-; then 26961 if test x"$ac_file" != x-; then
14426 configure_input="$ac_file. $configure_input" 26962 configure_input="$ac_file. $configure_input"
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 26963 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14428$as_echo "$as_me: creating $ac_file" >&6;} 26964$as_echo "$as_me: creating $ac_file" >&6;}
14429 fi 26965 fi
14430 # Neutralize special characters interpreted by sed in replacement strings. 26966 # Neutralize special characters interpreted by sed in replacement strings.
@@ -14437,7 +26973,9 @@ $as_echo "$as_me: creating $ac_file" >&6;}
14437 26973
14438 case $ac_tag in 26974 case $ac_tag in
14439 *:-:* | *:-) cat >"$tmp/stdin" \ 26975 *:-:* | *:-) cat >"$tmp/stdin" \
14440 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 26976 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
26977$as_echo "$as_me: error: could not create $ac_file" >&2;}
26978 { (exit 1); exit 1; }; } ;;
14441 esac 26979 esac
14442 ;; 26980 ;;
14443 esac 26981 esac
@@ -14465,7 +27003,47 @@ $as_echo X"$ac_file" |
14465 q 27003 q
14466 } 27004 }
14467 s/.*/./; q'` 27005 s/.*/./; q'`
14468 as_dir="$ac_dir"; as_fn_mkdir_p 27006 { as_dir="$ac_dir"
27007 case $as_dir in #(
27008 -*) as_dir=./$as_dir;;
27009 esac
27010 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27011 as_dirs=
27012 while :; do
27013 case $as_dir in #(
27014 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27015 *) as_qdir=$as_dir;;
27016 esac
27017 as_dirs="'$as_qdir' $as_dirs"
27018 as_dir=`$as_dirname -- "$as_dir" ||
27019$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27020 X"$as_dir" : 'X\(//\)[^/]' \| \
27021 X"$as_dir" : 'X\(//\)$' \| \
27022 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27023$as_echo X"$as_dir" |
27024 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27025 s//\1/
27026 q
27027 }
27028 /^X\(\/\/\)[^/].*/{
27029 s//\1/
27030 q
27031 }
27032 /^X\(\/\/\)$/{
27033 s//\1/
27034 q
27035 }
27036 /^X\(\/\).*/{
27037 s//\1/
27038 q
27039 }
27040 s/.*/./; q'`
27041 test -d "$as_dir" && break
27042 done
27043 test -z "$as_dirs" || eval "mkdir $as_dirs"
27044 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27045$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27046 { (exit 1); exit 1; }; }; }
14469 ac_builddir=. 27047 ac_builddir=.
14470 27048
14471case "$ac_dir" in 27049case "$ac_dir" in
@@ -14517,6 +27095,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14517# If the template does not know about datarootdir, expand it. 27095# If the template does not know about datarootdir, expand it.
14518# FIXME: This hack should be removed a few years after 2.60. 27096# FIXME: This hack should be removed a few years after 2.60.
14519ac_datarootdir_hack=; ac_datarootdir_seen= 27097ac_datarootdir_hack=; ac_datarootdir_seen=
27098
14520ac_sed_dataroot=' 27099ac_sed_dataroot='
14521/datarootdir/ { 27100/datarootdir/ {
14522 p 27101 p
@@ -14526,11 +27105,12 @@ ac_sed_dataroot='
14526/@docdir@/p 27105/@docdir@/p
14527/@infodir@/p 27106/@infodir@/p
14528/@localedir@/p 27107/@localedir@/p
14529/@mandir@/p' 27108/@mandir@/p
27109'
14530case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 27110case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
14531*datarootdir*) ac_datarootdir_seen=yes;; 27111*datarootdir*) ac_datarootdir_seen=yes;;
14532*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 27112*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 27113 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
14534$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 27114$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
14535_ACEOF 27115_ACEOF
14536cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27116cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
@@ -14540,7 +27120,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14540 s&@infodir@&$infodir&g 27120 s&@infodir@&$infodir&g
14541 s&@localedir@&$localedir&g 27121 s&@localedir@&$localedir&g
14542 s&@mandir@&$mandir&g 27122 s&@mandir@&$mandir&g
14543 s&\\\${datarootdir}&$datarootdir&g' ;; 27123 s&\\\${datarootdir}&$datarootdir&g' ;;
14544esac 27124esac
14545_ACEOF 27125_ACEOF
14546 27126
@@ -14568,12 +27148,14 @@ s&@INSTALL@&$ac_INSTALL&;t t
14568$ac_datarootdir_hack 27148$ac_datarootdir_hack
14569" 27149"
14570eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 27150eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
14571 || as_fn_error "could not create $ac_file" "$LINENO" 5 27151 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27152$as_echo "$as_me: error: could not create $ac_file" >&2;}
27153 { (exit 1); exit 1; }; }
14572 27154
14573test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 27155test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
14574 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 27156 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
14575 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 27157 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27158 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14577which seems to be undefined. Please make sure it is defined." >&5 27159which seems to be undefined. Please make sure it is defined." >&5
14578$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27160$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
14579which seems to be undefined. Please make sure it is defined." >&2;} 27161which seems to be undefined. Please make sure it is defined." >&2;}
@@ -14583,7 +27165,9 @@ which seems to be undefined. Please make sure it is defined." >&2;}
14583 -) cat "$tmp/out" && rm -f "$tmp/out";; 27165 -) cat "$tmp/out" && rm -f "$tmp/out";;
14584 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 27166 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
14585 esac \ 27167 esac \
14586 || as_fn_error "could not create $ac_file" "$LINENO" 5 27168 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27169$as_echo "$as_me: error: could not create $ac_file" >&2;}
27170 { (exit 1); exit 1; }; }
14587 ;; 27171 ;;
14588 :H) 27172 :H)
14589 # 27173 #
@@ -14594,23 +27178,29 @@ which seems to be undefined. Please make sure it is defined." >&2;}
14594 $as_echo "/* $configure_input */" \ 27178 $as_echo "/* $configure_input */" \
14595 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 27179 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
14596 } >"$tmp/config.h" \ 27180 } >"$tmp/config.h" \
14597 || as_fn_error "could not create $ac_file" "$LINENO" 5 27181 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27182$as_echo "$as_me: error: could not create $ac_file" >&2;}
27183 { (exit 1); exit 1; }; }
14598 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 27184 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 27185 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
14600$as_echo "$as_me: $ac_file is unchanged" >&6;} 27186$as_echo "$as_me: $ac_file is unchanged" >&6;}
14601 else 27187 else
14602 rm -f "$ac_file" 27188 rm -f "$ac_file"
14603 mv "$tmp/config.h" "$ac_file" \ 27189 mv "$tmp/config.h" "$ac_file" \
14604 || as_fn_error "could not create $ac_file" "$LINENO" 5 27190 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27191$as_echo "$as_me: error: could not create $ac_file" >&2;}
27192 { (exit 1); exit 1; }; }
14605 fi 27193 fi
14606 else 27194 else
14607 $as_echo "/* $configure_input */" \ 27195 $as_echo "/* $configure_input */" \
14608 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 27196 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
14609 || as_fn_error "could not create -" "$LINENO" 5 27197 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27198$as_echo "$as_me: error: could not create -" >&2;}
27199 { (exit 1); exit 1; }; }
14610 fi 27200 fi
14611 ;; 27201 ;;
14612 27202
14613 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 27203 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
14614$as_echo "$as_me: executing $ac_file commands" >&6;} 27204$as_echo "$as_me: executing $ac_file commands" >&6;}
14615 ;; 27205 ;;
14616 esac 27206 esac
@@ -14681,12 +27271,15 @@ fi
14681done # for ac_tag 27271done # for ac_tag
14682 27272
14683 27273
14684as_fn_exit 0 27274{ (exit 0); exit 0; }
14685_ACEOF 27275_ACEOF
27276chmod +x $CONFIG_STATUS
14686ac_clean_files=$ac_clean_files_save 27277ac_clean_files=$ac_clean_files_save
14687 27278
14688test $ac_write_fail = 0 || 27279test $ac_write_fail = 0 ||
14689 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 27280 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27281$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27282 { (exit 1); exit 1; }; }
14690 27283
14691 27284
14692# configure is writing to config.log, and then calls config.status. 27285# configure is writing to config.log, and then calls config.status.
@@ -14707,11 +27300,11 @@ if test "$no_create" != yes; then
14707 exec 5>>config.log 27300 exec 5>>config.log
14708 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27301 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
14709 # would make configure fail if this is the last instruction. 27302 # would make configure fail if this is the last instruction.
14710 $ac_cs_success || as_fn_exit $? 27303 $ac_cs_success || { (exit 1); exit 1; }
14711fi 27304fi
14712if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27305if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27306 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
14714$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27307$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
14715fi 27308fi
14716 27309
14717 27310