aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xconfigure19128
1 files changed, 15869 insertions, 3259 deletions
diff --git a/configure b/configure
index b9612cb447d..a379c501816 100755
--- a/configure
+++ b/configure
@@ -1,22 +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.65 for emacs 24.0.50. 3# Generated by GNU Autoconf 2.62 for emacs 24.0.50.
4#
5# 4#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 5# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 6# 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8# Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation 7# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it. 8# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ## 9## --------------------- ##
14## M4sh Initialization. ## 10## M4sh Initialization. ##
15## -------------------- ## 11## --------------------- ##
16 12
17# Be more Bourne compatible 13# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh 14DUALCASE=1; export DUALCASE # for MKS sh
19if 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
20 emulate sh 16 emulate sh
21 NULLCMD=: 17 NULLCMD=:
22 # 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
@@ -24,15 +20,23 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24 alias -g '${1+"$@"}'='"$@"' 20 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST 21 setopt NO_GLOB_SUBST
26else 22else
27 case `(set -o) 2>/dev/null` in #( 23 case `(set -o) 2>/dev/null` in
28 *posix*) : 24 *posix*) set -o posix ;;
29 set -o posix ;; #(
30 *) :
31 ;;
32esac 25esac
26
33fi 27fi
34 28
35 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
36as_nl=' 40as_nl='
37' 41'
38export as_nl 42export as_nl
@@ -40,13 +44,7 @@ export as_nl
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 44as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 45as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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
43# 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
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n' 48 as_echo='printf %s\n'
51 as_echo_n='printf %s' 49 as_echo_n='printf %s'
52else 50else
@@ -57,7 +55,7 @@ else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval 56 as_echo_n_body='eval
59 arg=$1; 57 arg=$1;
60 case $arg in #( 58 case $arg in
61 *"$as_nl"*) 59 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl"; 60 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
@@ -80,6 +78,13 @@ if test "${PATH_SEPARATOR+set}" != set; then
80 } 78 }
81fi 79fi
82 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
83 88
84# IFS 89# IFS
85# 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
@@ -89,15 +94,15 @@ fi
89IFS=" "" $as_nl" 94IFS=" "" $as_nl"
90 95
91# 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.
92case $0 in #(( 97case $0 in
93 *[\\/]* ) as_myself=$0 ;; 98 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH 100for as_dir in $PATH
96do 101do
97 IFS=$as_save_IFS 102 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=. 103 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done 105done
101IFS=$as_save_IFS 106IFS=$as_save_IFS
102 107
103 ;; 108 ;;
@@ -109,16 +114,12 @@ if test "x$as_myself" = x; then
109fi 114fi
110if test ! -f "$as_myself"; then 115if test ! -f "$as_myself"; then
111 $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
112 exit 1 117 { (exit 1); exit 1; }
113fi 118fi
114 119
115# Unset variables that we do not need and which cause bugs (e.g. in 120# Work around bugs in pre-3.0 UWIN ksh.
116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 121for as_var in ENV MAIL MAILPATH
117# suppresses any "Segmentation fault" message there. '((' could 122do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done 123done
123PS1='$ ' 124PS1='$ '
124PS2='> ' 125PS2='> '
@@ -130,299 +131,330 @@ export LC_ALL
130LANGUAGE=C 131LANGUAGE=C
131export LANGUAGE 132export LANGUAGE
132 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
133# CDPATH. 169# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 170$as_unset CDPATH
171
135 172
136if test "x$CONFIG_SHELL" = x; then 173if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 174 if (eval ":") 2>/dev/null; then
138 emulate sh 175 as_have_required=yes
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144else 176else
145 case \`(set -o) 2>/dev/null\` in #( 177 as_have_required=no
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150esac
151fi 178fi
152" 179
153 as_required="as_fn_return () { (exit \$1); } 180 if test $as_have_required = yes && (eval ":
154as_fn_success () { as_fn_return 0; } 181(as_func_return () {
155as_fn_failure () { as_fn_return 1; } 182 (exit \$1)
156as_fn_ret_success () { return 0; } 183}
157as_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}
158 196
159exitcode=0 197exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 198if as_func_success; then
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 199 :
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167 exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177else 200else
178 as_have_required=no 201 exitcode=1
202 echo as_func_success failed.
179fi 203fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181 204
205if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208fi
209
210if as_func_ret_success; then
211 :
182else 212else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 213 exitcode=1
184as_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
185for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 241for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186do 242do
187 IFS=$as_save_IFS 243 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=. 244 test -z "$as_dir" && as_dir=.
189 as_found=: 245 case $as_dir in
190 case $as_dir in #(
191 /*) 246 /*)
192 for as_base in sh bash ksh sh5; do 247 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks. 248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200fi
201fi
202 done;; 249 done;;
203 esac 250 esac
204 as_found=false
205done 251done
206$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209fi; }
210IFS=$as_save_IFS 252IFS=$as_save_IFS
211 253
212 254
213 if test "x$CONFIG_SHELL" != x; then : 255 for as_shell in $as_candidate_shells $SHELL; do
214 # We cannot yet assume a decent shell, so we have to provide a 256 # Try only shells that exist, to save several forks.
215 # neutralization value for shells without unset; and this also 257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 # works around shells that cannot unset nonexistent variables. 258 { ("$as_shell") 2> /dev/null <<\_ASEOF
217 BASH_ENV=/dev/null 259if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
218 ENV=/dev/null 260 emulate sh
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 261 NULLCMD=:
220 export CONFIG_SHELL 262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 263 # is contrary to our usage. Disable this feature.
222fi 264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269esac
223 270
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232$0: including any error possibly output before this
233$0: message. Then install a modern shell, or manually run
234$0: the script under such a shell if you do have one."
235 fi
236 exit 1
237fi
238fi 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
239fi 292fi
240SHELL=${CONFIG_SHELL-/bin/sh}
241export SHELL
242# Unset more variables known to interfere with behavior of common tools.
243CLICOLOR_FORCE= GREP_OPTIONS=
244unset CLICOLOR_FORCE GREP_OPTIONS
245 293
246## --------------------- ##
247## M4sh Shell Functions. ##
248## --------------------- ##
249# as_fn_unset VAR
250# ---------------
251# Portably unset VAR.
252as_fn_unset ()
253{
254 { eval $1=; unset $1;}
255}
256as_unset=as_fn_unset
257 294
258# as_fn_set_status STATUS 295:
259# ----------------------- 296(as_func_return () {
260# Set $? to STATUS, without forking. 297 (exit $1)
261as_fn_set_status () 298}
262{ 299as_func_success () {
263 return $1 300 as_func_return 0
264} # 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}
265 311
266# as_fn_exit STATUS 312exitcode=0
267# ----------------- 313if as_func_success; then
268# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 314 :
269as_fn_exit () 315else
270{ 316 exitcode=1
271 set +e 317 echo as_func_success failed.
272 as_fn_set_status $1 318fi
273 exit $1
274} # as_fn_exit
275 319
276# as_fn_mkdir_p 320if as_func_failure; then
277# ------------- 321 exitcode=1
278# Create "$as_dir" as a directory, including parents if necessary. 322 echo as_func_failure succeeded.
279as_fn_mkdir_p () 323fi
280{
281 324
282 case $as_dir in #( 325if as_func_ret_success; then
283 -*) as_dir=./$as_dir;; 326 :
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298$as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322} # as_fn_mkdir_p
323# as_fn_append VAR VALUE
324# ----------------------
325# Append the text in VALUE to the end of the definition contained in VAR. Take
326# advantage of any shell optimizations that allow amortized linear growth over
327# repeated appends, instead of the typical quadratic growth present in naive
328# implementations.
329if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334else 327else
335 as_fn_append () 328 exitcode=1
336 { 329 echo as_func_ret_success failed.
337 eval $1=\$$1\$2 330fi
338 } 331
339fi # as_fn_append 332if as_func_ret_failure; then
340 333 exitcode=1
341# as_fn_arith ARG... 334 echo as_func_ret_failure succeeded.
342# ------------------ 335fi
343# Perform arithmetic evaluation on the ARGs, and store the result in the 336
344# 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
345# must be portable across $(()) and expr. 338 :
346if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351else 339else
352 as_fn_arith () 340 exitcode=1
353 { 341 echo positional parameters were not saved.
354 as_val=`expr "$@" || test $? -eq 1` 342fi
355 }
356fi # as_fn_arith
357 343
344test $exitcode = 0) || { (exit 1); exit 1; }
358 345
359# as_fn_error ERROR [LINENO LOG_FD] 346(
360# --------------------------------- 347 as_lineno_1=$LINENO
361# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 348 as_lineno_2=$LINENO
362# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 349 test "x$as_lineno_1" != "x$as_lineno_2" &&
363# 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; }
364as_fn_error ()
365{
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373} # as_fn_error
374 351
375if expr a : '\(a\)' >/dev/null 2>&1 && 352_ASEOF
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 353}; then
377 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 :
378else 404else
379 as_expr=false 405 exitcode=1
406 echo as_func_success failed.
380fi 407fi
381 408
382if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 409if as_func_failure; then
383 as_basename=basename 410 exitcode=1
411 echo as_func_failure succeeded.
412fi
413
414if as_func_ret_success; then
415 :
384else 416else
385 as_basename=false 417 exitcode=1
418 echo as_func_ret_success failed.
386fi 419fi
387 420
388if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 421if as_func_ret_failure; then
389 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 :
390else 428else
391 as_dirname=false 429 exitcode=1
430 echo positional parameters were not saved.
392fi 431fi
393 432
394as_me=`$as_basename -- "$0" || 433test \$exitcode = 0") || {
395$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 434 echo No shell found that supports shell functions.
396 X"$0" : 'X\(//\)$' \| \ 435 echo Please tell bug-autoconf@gnu.org about your system,
397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 436 echo including any error possibly output before this message.
398$as_echo X/"$0" | 437 echo This can help us improve future autoconf versions.
399 sed '/^.*\/\([^/][^/]*\)\/*$/{ 438 echo Configuration will now proceed without shell functions.
400 s//\1/ 439}
401 q 440
402 }
403 /^X\/\(\/\/\)$/{
404 s//\1/
405 q
406 }
407 /^X\/\(\/\).*/{
408 s//\1/
409 q
410 }
411 s/.*/./; q'`
412 441
413# Avoid depending upon Character Ranges.
414as_cr_letters='abcdefghijklmnopqrstuvwxyz'
415as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
416as_cr_Letters=$as_cr_letters$as_cr_LETTERS
417as_cr_digits='0123456789'
418as_cr_alnum=$as_cr_Letters$as_cr_digits
419 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" || {
420 447
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 449 # uniformly replaced by the line number. The first 'sed' inserts a
423 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'
424 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
425 # 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. :-)
426 sed -n ' 458 sed -n '
427 p 459 p
428 /[$]LINENO/= 460 /[$]LINENO/=
@@ -439,7 +471,8 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
439 s/-\n.*// 471 s/-\n.*//
440 ' >$as_me.lineno && 472 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" || 473 chmod +x "$as_me.lineno" ||
442 { $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; }; }
443 476
444 # 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
445 # (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
@@ -449,18 +482,29 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
449 exit 482 exit
450} 483}
451 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
452ECHO_C= ECHO_N= ECHO_T= 492ECHO_C= ECHO_N= ECHO_T=
453case `echo -n x` in #((((( 493case `echo -n x` in
454-n*) 494-n*)
455 case `echo 'xy\c'` in 495 case `echo 'x\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';; 497 *) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;; 498 esac;;
461*) 499*)
462 ECHO_N='-n';; 500 ECHO_N='-n';;
463esac 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
464 508
465rm -f conf$$ conf$$.exe conf$$.file 509rm -f conf$$ conf$$.exe conf$$.file
466if test -d conf$$.dir; then 510if test -d conf$$.dir; then
@@ -490,7 +534,7 @@ rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490rmdir conf$$.dir 2>/dev/null 534rmdir conf$$.dir 2>/dev/null
491 535
492if mkdir -p . 2>/dev/null; then 536if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"' 537 as_mkdir_p=:
494else 538else
495 test -d ./-p && rmdir ./-p 539 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false 540 as_mkdir_p=false
@@ -509,10 +553,10 @@ else
509 if test -d "$1"; then 553 if test -d "$1"; then
510 test -d "$1/."; 554 test -d "$1/.";
511 else 555 else
512 case $1 in #( 556 case $1 in
513 -*)set "./$1";; 557 -*)set "./$1";;
514 esac; 558 esac;
515 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
516 ???[sx]*):;;*)false;;esac;fi 560 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh 561 '\'' sh
518 ' 562 '
@@ -526,8 +570,8 @@ as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
526as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 570as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 571
528 572
529test -n "$DJDIR" || exec 7<&0 </dev/null 573
530exec 6>&1 574exec 7<&0 </dev/null 6>&1
531 575
532# Name of the host. 576# Name of the host.
533# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 577# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
@@ -545,6 +589,7 @@ cross_compiling=no
545subdirs= 589subdirs=
546MFLAGS= 590MFLAGS=
547MAKEFLAGS= 591MAKEFLAGS=
592SHELL=${CONFIG_SHELL-/bin/sh}
548 593
549# Identity of this package. 594# Identity of this package.
550PACKAGE_NAME='emacs' 595PACKAGE_NAME='emacs'
@@ -552,7 +597,6 @@ PACKAGE_TARNAME='emacs'
552PACKAGE_VERSION='24.0.50' 597PACKAGE_VERSION='24.0.50'
553PACKAGE_STRING='emacs 24.0.50' 598PACKAGE_STRING='emacs 24.0.50'
554PACKAGE_BUGREPORT='' 599PACKAGE_BUGREPORT=''
555PACKAGE_URL=''
556 600
557ac_unique_file="src/lisp.h" 601ac_unique_file="src/lisp.h"
558# Factoring default headers for most tests. 602# Factoring default headers for most tests.
@@ -594,179 +638,180 @@ ac_includes_default="\
594ac_config_libobj_dir=src 638ac_config_libobj_dir=src
595ac_header_list= 639ac_header_list=
596ac_func_list= 640ac_func_list=
597ac_subst_vars='LTLIBOBJS 641ac_subst_vars='SHELL
598LD_SWITCH_SYSTEM_TEMACS
599POST_ALLOC_OBJ
600PRE_ALLOC_OBJ
601CYGWIN_OBJ
602LIBX_OTHER
603LIBXMENU
604OLDXMENU
605LIBXT_OTHER
606TOOLKIT_LIBW
607WIDGET_OBJ
608XOBJ
609XMENU_OBJ
610OTHER_FILES
611LIB_SRC_EXTRA_INSTALLABLES
612GNU_OBJC_CFLAGS
613GNUSTEP_SYSTEM_LIBRARIES
614GNUSTEP_SYSTEM_HEADERS
615GNUSTEP_MAKEFILES
616ns_appsrc
617ns_appresdir
618ns_appbindir
619ns_appdir
620opsysfile
621machfile
622X_TOOLKIT_TYPE
623C_SWITCH_X_SYSTEM
624C_SWITCH_X_SITE
625LD_SWITCH_X_SITE
626unexec
627gameuser
628gamedir
629bitmapdir
630archlibdir
631etcdir
632x_default_search_path
633lisppath
634locallisppath
635lispdir
636srcdir
637canonical
638configuration
639version
640KRB4LIB
641DESLIB
642KRB5LIB
643CRYPTOLIB
644COM_ERRLIB
645LIBRESOLV
646LIBHESIOD
647GETOPTOBJS
648GETOPT_H
649GETLOADAVG_LIBS
650KMEM_GROUP
651NEED_SETGID
652LIBOBJS
653LIBS_MAIL
654liblockfile
655ALLOCA
656LIBXSM
657GPM_MOUSE_SUPPORT
658LIBGPM
659LIBGIF
660LIBTIFF
661LIBPNG
662LIBJPEG
663LIBXPM
664FREETYPE_LIBS
665FREETYPE_CFLAGS
666FONT_OBJ
667M17N_FLT_LIBS
668M17N_FLT_CFLAGS
669LIBOTF_LIBS
670LIBOTF_CFLAGS
671XFT_LIBS
672XFT_CFLAGS
673FONTCONFIG_LIBS
674FONTCONFIG_CFLAGS
675LIBXMU
676LIBXTR6
677LIBSELINUX_LIBS
678GCONF_LIBS
679GCONF_CFLAGS
680DBUS_OBJ
681DBUS_LIBS
682DBUS_CFLAGS
683GTK_OBJ
684GTK_LIBS
685GTK_CFLAGS
686RSVG_LIBS
687RSVG_CFLAGS
688HAVE_XSERVER
689LIB_STANDARD
690NS_SUPPORT
691NS_OBJ
692LD_SWITCH_X_SITE_AUX_RPATH
693LD_SWITCH_X_SITE_AUX
694XMKMF
695SET_MAKE
696CFLAGS_SOUND
697ALSA_LIBS
698ALSA_CFLAGS
699PKG_CONFIG
700LIBSOUND
701START_FILES
702LIB_MATH
703CRT_DIR
704C_SWITCH_SYSTEM
705C_SWITCH_MACHINE
706MAKEINFO
707GZIP_PROG
708INSTALL_INFO
709RANLIB
710INSTALL_DATA
711INSTALL_SCRIPT
712INSTALL_PROGRAM
713EGREP
714GREP
715CPP
716OBJEXT
717EXEEXT
718ac_ct_CC
719CPPFLAGS
720LDFLAGS
721CFLAGS
722CC
723host_os
724host_vendor
725host_cpu
726host
727build_os
728build_vendor
729build_cpu
730build
731MAINT
732target_alias
733host_alias
734build_alias
735LIBS
736ECHO_T
737ECHO_N
738ECHO_C
739DEFS
740mandir
741localedir
742libdir
743psdir
744pdfdir
745dvidir
746htmldir
747infodir
748docdir
749oldincludedir
750includedir
751localstatedir
752sharedstatedir
753sysconfdir
754datadir
755datarootdir
756libexecdir
757sbindir
758bindir
759program_transform_name
760prefix
761exec_prefix
762PACKAGE_URL
763PACKAGE_BUGREPORT
764PACKAGE_STRING
765PACKAGE_VERSION
766PACKAGE_TARNAME
767PACKAGE_NAME
768PATH_SEPARATOR 642PATH_SEPARATOR
769SHELL' 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
697INSTALL_PROGRAM
698INSTALL_SCRIPT
699INSTALL_DATA
700RANLIB
701INSTALL_INFO
702GZIP_PROG
703MAKEINFO
704LD_SWITCH_SYSTEM
705C_SWITCH_MACHINE
706C_SWITCH_SYSTEM
707CRT_DIR
708LIB_MATH
709START_FILES
710LIBSOUND
711PKG_CONFIG
712ALSA_CFLAGS
713ALSA_LIBS
714CFLAGS_SOUND
715SET_MAKE
716XMKMF
717LD_SWITCH_X_SITE_AUX
718LD_SWITCH_X_SITE_AUX_RPATH
719NS_OBJ
720NS_SUPPORT
721LIB_STANDARD
722HAVE_XSERVER
723RSVG_CFLAGS
724RSVG_LIBS
725GTK_CFLAGS
726GTK_LIBS
727GTK_OBJ
728DBUS_CFLAGS
729DBUS_LIBS
730DBUS_OBJ
731GCONF_CFLAGS
732GCONF_LIBS
733LIBSELINUX_LIBS
734LIBXTR6
735LIBXMU
736FONTCONFIG_CFLAGS
737FONTCONFIG_LIBS
738XFT_CFLAGS
739XFT_LIBS
740LIBOTF_CFLAGS
741LIBOTF_LIBS
742M17N_FLT_CFLAGS
743M17N_FLT_LIBS
744FONT_OBJ
745FREETYPE_CFLAGS
746FREETYPE_LIBS
747LIBXPM
748LIBJPEG
749LIBPNG
750LIBTIFF
751LIBGIF
752LIBGPM
753GPM_MOUSE_SUPPORT
754LIBXSM
755ALLOCA
756liblockfile
757LIBS_MAIL
758LIBOBJS
759NEED_SETGID
760KMEM_GROUP
761GETLOADAVG_LIBS
762GETOPT_H
763GETOPTOBJS
764LIBHESIOD
765LIBRESOLV
766COM_ERRLIB
767CRYPTOLIB
768KRB5LIB
769DESLIB
770KRB4LIB
771version
772configuration
773canonical
774srcdir
775lispdir
776locallisppath
777lisppath
778x_default_search_path
779etcdir
780archlibdir
781bitmapdir
782gamedir
783gameuser
784unexec
785LD_SWITCH_X_SITE
786C_SWITCH_X_SITE
787C_SWITCH_X_SYSTEM
788X_TOOLKIT_TYPE
789machfile
790opsysfile
791ns_appdir
792ns_appbindir
793ns_appresdir
794ns_appsrc
795GNUSTEP_MAKEFILES
796GNUSTEP_SYSTEM_HEADERS
797GNUSTEP_SYSTEM_LIBRARIES
798GNU_OBJC_CFLAGS
799LIB_SRC_EXTRA_INSTALLABLES
800OTHER_FILES
801XMENU_OBJ
802XOBJ
803WIDGET_OBJ
804TOOLKIT_LIBW
805LIBXT_OTHER
806OLDXMENU
807LIBXMENU
808LIBX_OTHER
809CYGWIN_OBJ
810PRE_ALLOC_OBJ
811POST_ALLOC_OBJ
812LD_SWITCH_SYSTEM_TEMACS
813LD_SWITCH_SYSTEM_EXTRA
814LTLIBOBJS'
770ac_subst_files='' 815ac_subst_files=''
771ac_user_opts=' 816ac_user_opts='
772enable_option_checking 817enable_option_checking
@@ -931,7 +976,8 @@ do
931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 976 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
932 # Reject names that are not valid shell variable names. 977 # Reject names that are not valid shell variable names.
933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 978 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
934 as_fn_error "invalid feature name: $ac_useropt" 979 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
980 { (exit 1); exit 1; }; }
935 ac_useropt_orig=$ac_useropt 981 ac_useropt_orig=$ac_useropt
936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 982 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
937 case $ac_user_opts in 983 case $ac_user_opts in
@@ -957,7 +1003,8 @@ do
957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1003 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
958 # Reject names that are not valid shell variable names. 1004 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1005 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 as_fn_error "invalid feature name: $ac_useropt" 1006 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1007 { (exit 1); exit 1; }; }
961 ac_useropt_orig=$ac_useropt 1008 ac_useropt_orig=$ac_useropt
962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1009 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
963 case $ac_user_opts in 1010 case $ac_user_opts in
@@ -1161,7 +1208,8 @@ do
1161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1208 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1162 # Reject names that are not valid shell variable names. 1209 # Reject names that are not valid shell variable names.
1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1210 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1164 as_fn_error "invalid package name: $ac_useropt" 1211 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1212 { (exit 1); exit 1; }; }
1165 ac_useropt_orig=$ac_useropt 1213 ac_useropt_orig=$ac_useropt
1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1167 case $ac_user_opts in 1215 case $ac_user_opts in
@@ -1177,7 +1225,8 @@ do
1177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1225 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1178 # Reject names that are not valid shell variable names. 1226 # Reject names that are not valid shell variable names.
1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1227 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1180 as_fn_error "invalid package name: $ac_useropt" 1228 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1229 { (exit 1); exit 1; }; }
1181 ac_useropt_orig=$ac_useropt 1230 ac_useropt_orig=$ac_useropt
1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1231 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1183 case $ac_user_opts in 1232 case $ac_user_opts in
@@ -1207,17 +1256,17 @@ do
1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1256 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1208 x_libraries=$ac_optarg ;; 1257 x_libraries=$ac_optarg ;;
1209 1258
1210 -*) as_fn_error "unrecognized option: \`$ac_option' 1259 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1211Try \`$0 --help' for more information." 1260Try \`$0 --help' for more information." >&2
1261 { (exit 1); exit 1; }; }
1212 ;; 1262 ;;
1213 1263
1214 *=*) 1264 *=*)
1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1265 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1216 # Reject names that are not valid shell variable names. 1266 # Reject names that are not valid shell variable names.
1217 case $ac_envvar in #( 1267 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1218 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1268 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1219 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1269 { (exit 1); exit 1; }; }
1220 esac
1221 eval $ac_envvar=\$ac_optarg 1270 eval $ac_envvar=\$ac_optarg
1222 export $ac_envvar ;; 1271 export $ac_envvar ;;
1223 1272
@@ -1234,14 +1283,16 @@ done
1234 1283
1235if test -n "$ac_prev"; then 1284if test -n "$ac_prev"; then
1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1285 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1237 as_fn_error "missing argument to $ac_option" 1286 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1287 { (exit 1); exit 1; }; }
1238fi 1288fi
1239 1289
1240if test -n "$ac_unrecognized_opts"; then 1290if test -n "$ac_unrecognized_opts"; then
1241 case $enable_option_checking in 1291 case $enable_option_checking in
1242 no) ;; 1292 no) ;;
1243 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1293 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1294 { (exit 1); exit 1; }; } ;;
1295 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1245 esac 1296 esac
1246fi 1297fi
1247 1298
@@ -1263,7 +1314,8 @@ do
1263 [\\/$]* | ?:[\\/]* ) continue;; 1314 [\\/$]* | ?:[\\/]* ) continue;;
1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1315 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1265 esac 1316 esac
1266 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1317 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1318 { (exit 1); exit 1; }; }
1267done 1319done
1268 1320
1269# There might be people who depend on the old broken behavior: `$host' 1321# There might be people who depend on the old broken behavior: `$host'
@@ -1293,9 +1345,11 @@ test "$silent" = yes && exec 6>/dev/null
1293ac_pwd=`pwd` && test -n "$ac_pwd" && 1345ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294ac_ls_di=`ls -di .` && 1346ac_ls_di=`ls -di .` &&
1295ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1347ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296 as_fn_error "working directory cannot be determined" 1348 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1349 { (exit 1); exit 1; }; }
1297test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1350test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298 as_fn_error "pwd does not report name of working directory" 1351 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1352 { (exit 1); exit 1; }; }
1299 1353
1300 1354
1301# Find the source files, if location was not specified. 1355# Find the source files, if location was not specified.
@@ -1334,11 +1388,13 @@ else
1334fi 1388fi
1335if test ! -r "$srcdir/$ac_unique_file"; then 1389if test ! -r "$srcdir/$ac_unique_file"; then
1336 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1390 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1391 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1392 { (exit 1); exit 1; }; }
1338fi 1393fi
1339ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1394ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340ac_abs_confdir=`( 1395ac_abs_confdir=`(
1341 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1396 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1397 { (exit 1); exit 1; }; }
1342 pwd)` 1398 pwd)`
1343# When building in place, set srcdir=. 1399# When building in place, set srcdir=.
1344if test "$ac_abs_confdir" = "$ac_pwd"; then 1400if test "$ac_abs_confdir" = "$ac_pwd"; then
@@ -1518,7 +1574,7 @@ Some influential environment variables:
1518 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1574 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1519 nonstandard directory <lib dir> 1575 nonstandard directory <lib dir>
1520 LIBS libraries to pass to the linker, e.g. -l<library> 1576 LIBS libraries to pass to the linker, e.g. -l<library>
1521 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1577 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1522 you have headers in a nonstandard directory <include dir> 1578 you have headers in a nonstandard directory <include dir>
1523 CPP C preprocessor 1579 CPP C preprocessor
1524 XMKMF Path to xmkmf, Makefile generator for X Window System 1580 XMKMF Path to xmkmf, Makefile generator for X Window System
@@ -1526,7 +1582,6 @@ Some influential environment variables:
1526Use these variables to override the choices made by `configure' or to help 1582Use these variables to override the choices made by `configure' or to help
1527it to find libraries and programs with nonstandard names/locations. 1583it to find libraries and programs with nonstandard names/locations.
1528 1584
1529Report bugs to the package provider.
1530_ACEOF 1585_ACEOF
1531ac_status=$? 1586ac_status=$?
1532fi 1587fi
@@ -1590,551 +1645,21 @@ test -n "$ac_init_help" && exit $ac_status
1590if $ac_init_version; then 1645if $ac_init_version; then
1591 cat <<\_ACEOF 1646 cat <<\_ACEOF
1592emacs configure 24.0.50 1647emacs configure 24.0.50
1593generated by GNU Autoconf 2.65 1648generated by GNU Autoconf 2.62
1594 1649
1595Copyright (C) 2009 Free Software Foundation, Inc. 1650Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
16512002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1596This configure script is free software; the Free Software Foundation 1652This configure script is free software; the Free Software Foundation
1597gives unlimited permission to copy, distribute and modify it. 1653gives unlimited permission to copy, distribute and modify it.
1598_ACEOF 1654_ACEOF
1599 exit 1655 exit
1600fi 1656fi
1601
1602## ------------------------ ##
1603## Autoconf initialization. ##
1604## ------------------------ ##
1605
1606# ac_fn_c_try_compile LINENO
1607# --------------------------
1608# Try to compile conftest.$ac_ext, and return whether this succeeded.
1609ac_fn_c_try_compile ()
1610{
1611 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1612 rm -f conftest.$ac_objext
1613 if { { ac_try="$ac_compile"
1614case "(($ac_try" in
1615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1616 *) ac_try_echo=$ac_try;;
1617esac
1618eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1619$as_echo "$ac_try_echo"; } >&5
1620 (eval "$ac_compile") 2>conftest.err
1621 ac_status=$?
1622 if test -s conftest.err; then
1623 grep -v '^ *+' conftest.err >conftest.er1
1624 cat conftest.er1 >&5
1625 mv -f conftest.er1 conftest.err
1626 fi
1627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1628 test $ac_status = 0; } && {
1629 test -z "$ac_c_werror_flag" ||
1630 test ! -s conftest.err
1631 } && test -s conftest.$ac_objext; then :
1632 ac_retval=0
1633else
1634 $as_echo "$as_me: failed program was:" >&5
1635sed 's/^/| /' conftest.$ac_ext >&5
1636
1637 ac_retval=1
1638fi
1639 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1640 as_fn_set_status $ac_retval
1641
1642} # ac_fn_c_try_compile
1643
1644# ac_fn_c_try_link LINENO
1645# -----------------------
1646# Try to link conftest.$ac_ext, and return whether this succeeded.
1647ac_fn_c_try_link ()
1648{
1649 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1650 rm -f conftest.$ac_objext conftest$ac_exeext
1651 if { { ac_try="$ac_link"
1652case "(($ac_try" in
1653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1654 *) ac_try_echo=$ac_try;;
1655esac
1656eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1657$as_echo "$ac_try_echo"; } >&5
1658 (eval "$ac_link") 2>conftest.err
1659 ac_status=$?
1660 if test -s conftest.err; then
1661 grep -v '^ *+' conftest.err >conftest.er1
1662 cat conftest.er1 >&5
1663 mv -f conftest.er1 conftest.err
1664 fi
1665 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1666 test $ac_status = 0; } && {
1667 test -z "$ac_c_werror_flag" ||
1668 test ! -s conftest.err
1669 } && test -s conftest$ac_exeext && {
1670 test "$cross_compiling" = yes ||
1671 $as_test_x conftest$ac_exeext
1672 }; then :
1673 ac_retval=0
1674else
1675 $as_echo "$as_me: failed program was:" >&5
1676sed 's/^/| /' conftest.$ac_ext >&5
1677
1678 ac_retval=1
1679fi
1680 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1681 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1682 # interfere with the next link command; also delete a directory that is
1683 # left behind by Apple's compiler. We do this before executing the actions.
1684 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1685 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1686 as_fn_set_status $ac_retval
1687
1688} # ac_fn_c_try_link
1689
1690# ac_fn_c_try_cpp LINENO
1691# ----------------------
1692# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1693ac_fn_c_try_cpp ()
1694{
1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1696 if { { ac_try="$ac_cpp conftest.$ac_ext"
1697case "(($ac_try" in
1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1699 *) ac_try_echo=$ac_try;;
1700esac
1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1702$as_echo "$ac_try_echo"; } >&5
1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1704 ac_status=$?
1705 if test -s conftest.err; then
1706 grep -v '^ *+' conftest.err >conftest.er1
1707 cat conftest.er1 >&5
1708 mv -f conftest.er1 conftest.err
1709 fi
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } >/dev/null && {
1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1713 test ! -s conftest.err
1714 }; then :
1715 ac_retval=0
1716else
1717 $as_echo "$as_me: failed program was:" >&5
1718sed 's/^/| /' conftest.$ac_ext >&5
1719
1720 ac_retval=1
1721fi
1722 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1723 as_fn_set_status $ac_retval
1724
1725} # ac_fn_c_try_cpp
1726
1727# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1728# -------------------------------------------------------
1729# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1730# the include files in INCLUDES and setting the cache variable VAR
1731# accordingly.
1732ac_fn_c_check_header_mongrel ()
1733{
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737$as_echo_n "checking for $2... " >&6; }
1738if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1739 $as_echo_n "(cached) " >&6
1740fi
1741eval ac_res=\$$3
1742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1743$as_echo "$ac_res" >&6; }
1744else
1745 # Is the header compilable?
1746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1747$as_echo_n "checking $2 usability... " >&6; }
1748cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749/* end confdefs.h. */
1750$4
1751#include <$2>
1752_ACEOF
1753if ac_fn_c_try_compile "$LINENO"; then :
1754 ac_header_compiler=yes
1755else
1756 ac_header_compiler=no
1757fi
1758rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1760$as_echo "$ac_header_compiler" >&6; }
1761
1762# Is the header present?
1763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1764$as_echo_n "checking $2 presence... " >&6; }
1765cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1766/* end confdefs.h. */
1767#include <$2>
1768_ACEOF
1769if ac_fn_c_try_cpp "$LINENO"; then :
1770 ac_header_preproc=yes
1771else
1772 ac_header_preproc=no
1773fi
1774rm -f conftest.err conftest.$ac_ext
1775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1776$as_echo "$ac_header_preproc" >&6; }
1777
1778# So? What about this header?
1779case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1780 yes:no: )
1781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1782$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1784$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1785 ;;
1786 no:yes:* )
1787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1788$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1790$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1792$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1794$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1796$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1797 ;;
1798esac
1799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1800$as_echo_n "checking for $2... " >&6; }
1801if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1802 $as_echo_n "(cached) " >&6
1803else
1804 eval "$3=\$ac_header_compiler"
1805fi
1806eval ac_res=\$$3
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1808$as_echo "$ac_res" >&6; }
1809fi
1810 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1811
1812} # ac_fn_c_check_header_mongrel
1813
1814# ac_fn_c_try_run LINENO
1815# ----------------------
1816# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1817# that executables *can* be run.
1818ac_fn_c_try_run ()
1819{
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { { ac_try="$ac_link"
1822case "(($ac_try" in
1823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1824 *) ac_try_echo=$ac_try;;
1825esac
1826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1827$as_echo "$ac_try_echo"; } >&5
1828 (eval "$ac_link") 2>&5
1829 ac_status=$?
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1832 { { case "(($ac_try" in
1833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1834 *) ac_try_echo=$ac_try;;
1835esac
1836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1837$as_echo "$ac_try_echo"; } >&5
1838 (eval "$ac_try") 2>&5
1839 ac_status=$?
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; }; }; then :
1842 ac_retval=0
1843else
1844 $as_echo "$as_me: program exited with status $ac_status" >&5
1845 $as_echo "$as_me: failed program was:" >&5
1846sed 's/^/| /' conftest.$ac_ext >&5
1847
1848 ac_retval=$ac_status
1849fi
1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1851 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1852 as_fn_set_status $ac_retval
1853
1854} # ac_fn_c_try_run
1855
1856# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1857# -------------------------------------------------------
1858# Tests whether HEADER exists and can be compiled using the include files in
1859# INCLUDES, setting the cache variable VAR accordingly.
1860ac_fn_c_check_header_compile ()
1861{
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1864$as_echo_n "checking for $2... " >&6; }
1865if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1866 $as_echo_n "(cached) " >&6
1867else
1868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1869/* end confdefs.h. */
1870$4
1871#include <$2>
1872_ACEOF
1873if ac_fn_c_try_compile "$LINENO"; then :
1874 eval "$3=yes"
1875else
1876 eval "$3=no"
1877fi
1878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1879fi
1880eval ac_res=\$$3
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1882$as_echo "$ac_res" >&6; }
1883 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884
1885} # ac_fn_c_check_header_compile
1886
1887# ac_fn_c_check_decl LINENO SYMBOL VAR
1888# ------------------------------------
1889# Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1890ac_fn_c_check_decl ()
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1894$as_echo_n "checking whether $2 is declared... " >&6; }
1895if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1896 $as_echo_n "(cached) " >&6
1897else
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899/* end confdefs.h. */
1900$4
1901int
1902main ()
1903{
1904#ifndef $2
1905 (void) $2;
1906#endif
1907
1908 ;
1909 return 0;
1910}
1911_ACEOF
1912if ac_fn_c_try_compile "$LINENO"; then :
1913 eval "$3=yes"
1914else
1915 eval "$3=no"
1916fi
1917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1918fi
1919eval ac_res=\$$3
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1921$as_echo "$ac_res" >&6; }
1922 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1923
1924} # ac_fn_c_check_decl
1925
1926# ac_fn_c_check_header_preproc LINENO HEADER VAR
1927# ----------------------------------------------
1928# Tests whether HEADER is present, setting the cache variable VAR accordingly.
1929ac_fn_c_check_header_preproc ()
1930{
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1933$as_echo_n "checking for $2... " >&6; }
1934if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1935 $as_echo_n "(cached) " >&6
1936else
1937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1938/* end confdefs.h. */
1939#include <$2>
1940_ACEOF
1941if ac_fn_c_try_cpp "$LINENO"; then :
1942 eval "$3=yes"
1943else
1944 eval "$3=no"
1945fi
1946rm -f conftest.err conftest.$ac_ext
1947fi
1948eval ac_res=\$$3
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_header_preproc
1954
1955# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1956# ----------------------------------------------------
1957# Tries to find if the field MEMBER exists in type AGGR, after including
1958# INCLUDES, setting cache variable VAR accordingly.
1959ac_fn_c_check_member ()
1960{
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1963$as_echo_n "checking for $2.$3... " >&6; }
1964if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1965 $as_echo_n "(cached) " >&6
1966else
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h. */
1969$5
1970int
1971main ()
1972{
1973static $2 ac_aggr;
1974if (ac_aggr.$3)
1975return 0;
1976 ;
1977 return 0;
1978}
1979_ACEOF
1980if ac_fn_c_try_compile "$LINENO"; then :
1981 eval "$4=yes"
1982else
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984/* end confdefs.h. */
1985$5
1986int
1987main ()
1988{
1989static $2 ac_aggr;
1990if (sizeof ac_aggr.$3)
1991return 0;
1992 ;
1993 return 0;
1994}
1995_ACEOF
1996if ac_fn_c_try_compile "$LINENO"; then :
1997 eval "$4=yes"
1998else
1999 eval "$4=no"
2000fi
2001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002fi
2003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004fi
2005eval ac_res=\$$4
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007$as_echo "$ac_res" >&6; }
2008 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009
2010} # ac_fn_c_check_member
2011
2012# ac_fn_c_check_func LINENO FUNC VAR
2013# ----------------------------------
2014# Tests whether FUNC exists, setting the cache variable VAR accordingly
2015ac_fn_c_check_func ()
2016{
2017 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2019$as_echo_n "checking for $2... " >&6; }
2020if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2021 $as_echo_n "(cached) " >&6
2022else
2023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2024/* end confdefs.h. */
2025/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2026 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2027#define $2 innocuous_$2
2028
2029/* System header to define __stub macros and hopefully few prototypes,
2030 which can conflict with char $2 (); below.
2031 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2032 <limits.h> exists even on freestanding compilers. */
2033
2034#ifdef __STDC__
2035# include <limits.h>
2036#else
2037# include <assert.h>
2038#endif
2039
2040#undef $2
2041
2042/* Override any GCC internal prototype to avoid an error.
2043 Use char because int might match the return type of a GCC
2044 builtin and then its argument prototype would still apply. */
2045#ifdef __cplusplus
2046extern "C"
2047#endif
2048char $2 ();
2049/* The GNU C library defines this for functions which it implements
2050 to always fail with ENOSYS. Some functions are actually named
2051 something starting with __ and the normal name is an alias. */
2052#if defined __stub_$2 || defined __stub___$2
2053choke me
2054#endif
2055
2056int
2057main ()
2058{
2059return $2 ();
2060 ;
2061 return 0;
2062}
2063_ACEOF
2064if ac_fn_c_try_link "$LINENO"; then :
2065 eval "$3=yes"
2066else
2067 eval "$3=no"
2068fi
2069rm -f core conftest.err conftest.$ac_objext \
2070 conftest$ac_exeext conftest.$ac_ext
2071fi
2072eval ac_res=\$$3
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2074$as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2076
2077} # ac_fn_c_check_func
2078
2079# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2080# -------------------------------------------
2081# Tests whether TYPE exists after having included INCLUDES, setting cache
2082# variable VAR accordingly.
2083ac_fn_c_check_type ()
2084{
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2087$as_echo_n "checking for $2... " >&6; }
2088if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2089 $as_echo_n "(cached) " >&6
2090else
2091 eval "$3=no"
2092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2093/* end confdefs.h. */
2094$4
2095int
2096main ()
2097{
2098if (sizeof ($2))
2099 return 0;
2100 ;
2101 return 0;
2102}
2103_ACEOF
2104if ac_fn_c_try_compile "$LINENO"; then :
2105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2106/* end confdefs.h. */
2107$4
2108int
2109main ()
2110{
2111if (sizeof (($2)))
2112 return 0;
2113 ;
2114 return 0;
2115}
2116_ACEOF
2117if ac_fn_c_try_compile "$LINENO"; then :
2118
2119else
2120 eval "$3=yes"
2121fi
2122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2123fi
2124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125fi
2126eval ac_res=\$$3
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2128$as_echo "$ac_res" >&6; }
2129 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2130
2131} # ac_fn_c_check_type
2132cat >config.log <<_ACEOF 1657cat >config.log <<_ACEOF
2133This file contains any messages produced by compilers while 1658This file contains any messages produced by compilers while
2134running configure, to aid debugging if configure makes a mistake. 1659running configure, to aid debugging if configure makes a mistake.
2135 1660
2136It was created by emacs $as_me 24.0.50, which was 1661It was created by emacs $as_me 24.0.50, which was
2137generated by GNU Autoconf 2.65. Invocation command line was 1662generated by GNU Autoconf 2.62. Invocation command line was
2138 1663
2139 $ $0 $@ 1664 $ $0 $@
2140 1665
@@ -2170,8 +1695,8 @@ for as_dir in $PATH
2170do 1695do
2171 IFS=$as_save_IFS 1696 IFS=$as_save_IFS
2172 test -z "$as_dir" && as_dir=. 1697 test -z "$as_dir" && as_dir=.
2173 $as_echo "PATH: $as_dir" 1698 $as_echo "PATH: $as_dir"
2174 done 1699done
2175IFS=$as_save_IFS 1700IFS=$as_save_IFS
2176 1701
2177} >&5 1702} >&5
@@ -2208,9 +1733,9 @@ do
2208 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1733 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2209 esac 1734 esac
2210 case $ac_pass in 1735 case $ac_pass in
2211 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1736 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2212 2) 1737 2)
2213 as_fn_append ac_configure_args1 " '$ac_arg'" 1738 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2214 if test $ac_must_keep_next = true; then 1739 if test $ac_must_keep_next = true; then
2215 ac_must_keep_next=false # Got value, back to normal. 1740 ac_must_keep_next=false # Got value, back to normal.
2216 else 1741 else
@@ -2226,13 +1751,13 @@ do
2226 -* ) ac_must_keep_next=true ;; 1751 -* ) ac_must_keep_next=true ;;
2227 esac 1752 esac
2228 fi 1753 fi
2229 as_fn_append ac_configure_args " '$ac_arg'" 1754 ac_configure_args="$ac_configure_args '$ac_arg'"
2230 ;; 1755 ;;
2231 esac 1756 esac
2232 done 1757 done
2233done 1758done
2234{ ac_configure_args0=; unset ac_configure_args0;} 1759$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2235{ ac_configure_args1=; unset ac_configure_args1;} 1760$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2236 1761
2237# When interrupted or exit'd, cleanup temporary files, and complete 1762# When interrupted or exit'd, cleanup temporary files, and complete
2238# config.log. We remove comments because anyway the quotes in there 1763# config.log. We remove comments because anyway the quotes in there
@@ -2257,13 +1782,13 @@ _ASBOX
2257 case $ac_val in #( 1782 case $ac_val in #(
2258 *${as_nl}*) 1783 *${as_nl}*)
2259 case $ac_var in #( 1784 case $ac_var in #(
2260 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1785 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2261$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1786$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2262 esac 1787 esac
2263 case $ac_var in #( 1788 case $ac_var in #(
2264 _ | IFS | as_nl) ;; #( 1789 _ | IFS | as_nl) ;; #(
2265 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1790 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2266 *) { eval $ac_var=; unset $ac_var;} ;; 1791 *) $as_unset $ac_var ;;
2267 esac ;; 1792 esac ;;
2268 esac 1793 esac
2269 done 1794 done
@@ -2335,39 +1860,37 @@ _ASBOX
2335 exit $exit_status 1860 exit $exit_status
2336' 0 1861' 0
2337for ac_signal in 1 2 13 15; do 1862for ac_signal in 1 2 13 15; do
2338 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1863 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2339done 1864done
2340ac_signal=0 1865ac_signal=0
2341 1866
2342# confdefs.h avoids OS command line length limits that DEFS can exceed. 1867# confdefs.h avoids OS command line length limits that DEFS can exceed.
2343rm -f -r conftest* confdefs.h 1868rm -f -r conftest* confdefs.h
2344 1869
2345$as_echo "/* confdefs.h */" > confdefs.h
2346
2347# Predefined preprocessor variables. 1870# Predefined preprocessor variables.
2348 1871
2349cat >>confdefs.h <<_ACEOF 1872cat >>confdefs.h <<_ACEOF
2350#define PACKAGE_NAME "$PACKAGE_NAME" 1873#define PACKAGE_NAME "$PACKAGE_NAME"
2351_ACEOF 1874_ACEOF
2352 1875
1876
2353cat >>confdefs.h <<_ACEOF 1877cat >>confdefs.h <<_ACEOF
2354#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1878#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2355_ACEOF 1879_ACEOF
2356 1880
1881
2357cat >>confdefs.h <<_ACEOF 1882cat >>confdefs.h <<_ACEOF
2358#define PACKAGE_VERSION "$PACKAGE_VERSION" 1883#define PACKAGE_VERSION "$PACKAGE_VERSION"
2359_ACEOF 1884_ACEOF
2360 1885
1886
2361cat >>confdefs.h <<_ACEOF 1887cat >>confdefs.h <<_ACEOF
2362#define PACKAGE_STRING "$PACKAGE_STRING" 1888#define PACKAGE_STRING "$PACKAGE_STRING"
2363_ACEOF 1889_ACEOF
2364 1890
2365cat >>confdefs.h <<_ACEOF
2366#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2367_ACEOF
2368 1891
2369cat >>confdefs.h <<_ACEOF 1892cat >>confdefs.h <<_ACEOF
2370#define PACKAGE_URL "$PACKAGE_URL" 1893#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2371_ACEOF 1894_ACEOF
2372 1895
2373 1896
@@ -2387,8 +1910,8 @@ fi
2387for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1910for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2388do 1911do
2389 test "x$ac_site_file" = xNONE && continue 1912 test "x$ac_site_file" = xNONE && continue
2390 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1913 if test -r "$ac_site_file"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1914 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2392$as_echo "$as_me: loading site script $ac_site_file" >&6;} 1915$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2393 sed 's/^/| /' "$ac_site_file" >&5 1916 sed 's/^/| /' "$ac_site_file" >&5
2394 . "$ac_site_file" 1917 . "$ac_site_file"
@@ -2396,10 +1919,10 @@ $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2396done 1919done
2397 1920
2398if test -r "$cache_file"; then 1921if test -r "$cache_file"; then
2399 # Some versions of bash will fail to source /dev/null (special files 1922 # Some versions of bash will fail to source /dev/null (special
2400 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1923 # files actually), so we avoid doing that.
2401 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1924 if test -f "$cache_file"; then
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1925 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2403$as_echo "$as_me: loading cache $cache_file" >&6;} 1926$as_echo "$as_me: loading cache $cache_file" >&6;}
2404 case $cache_file in 1927 case $cache_file in
2405 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1928 [\\/]* | ?:[\\/]* ) . "$cache_file";;
@@ -2407,16 +1930,14 @@ $as_echo "$as_me: loading cache $cache_file" >&6;}
2407 esac 1930 esac
2408 fi 1931 fi
2409else 1932else
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1933 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2411$as_echo "$as_me: creating cache $cache_file" >&6;} 1934$as_echo "$as_me: creating cache $cache_file" >&6;}
2412 >$cache_file 1935 >$cache_file
2413fi 1936fi
2414 1937
2415as_fn_append ac_header_list " stdlib.h" 1938ac_header_list="$ac_header_list sys/time.h"
2416as_fn_append ac_header_list " unistd.h" 1939ac_header_list="$ac_header_list unistd.h"
2417as_fn_append ac_header_list " sys/param.h" 1940ac_func_list="$ac_func_list alarm"
2418as_fn_append ac_header_list " sys/time.h"
2419as_fn_append ac_func_list " alarm"
2420# Check that the precious variables saved in the cache have kept the same 1941# Check that the precious variables saved in the cache have kept the same
2421# value. 1942# value.
2422ac_cache_corrupted=false 1943ac_cache_corrupted=false
@@ -2427,11 +1948,11 @@ for ac_var in $ac_precious_vars; do
2427 eval ac_new_val=\$ac_env_${ac_var}_value 1948 eval ac_new_val=\$ac_env_${ac_var}_value
2428 case $ac_old_set,$ac_new_set in 1949 case $ac_old_set,$ac_new_set in
2429 set,) 1950 set,)
2430 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1951 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2431$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1952$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2432 ac_cache_corrupted=: ;; 1953 ac_cache_corrupted=: ;;
2433 ,set) 1954 ,set)
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1955 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2435$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1956$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2436 ac_cache_corrupted=: ;; 1957 ac_cache_corrupted=: ;;
2437 ,);; 1958 ,);;
@@ -2441,17 +1962,17 @@ $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2441 ac_old_val_w=`echo x $ac_old_val` 1962 ac_old_val_w=`echo x $ac_old_val`
2442 ac_new_val_w=`echo x $ac_new_val` 1963 ac_new_val_w=`echo x $ac_new_val`
2443 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1964 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2445$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1966$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2446 ac_cache_corrupted=: 1967 ac_cache_corrupted=:
2447 else 1968 else
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1969 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2449$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1970$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2450 eval $ac_var=\$ac_old_val 1971 eval $ac_var=\$ac_old_val
2451 fi 1972 fi
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1973 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2453$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1974$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1975 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2455$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1976$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2456 fi;; 1977 fi;;
2457 esac 1978 esac
@@ -2463,20 +1984,41 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2463 esac 1984 esac
2464 case " $ac_configure_args " in 1985 case " $ac_configure_args " in
2465 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1986 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2466 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1987 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2467 esac 1988 esac
2468 fi 1989 fi
2469done 1990done
2470if $ac_cache_corrupted; then 1991if $ac_cache_corrupted; then
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1992 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2474$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1993$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2475 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 1994 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1995$as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1996 { (exit 1); exit 1; }; }
2476fi 1997fi
2477## -------------------- ## 1998
2478## Main body of script. ## 1999
2479## -------------------- ## 2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2480 2022
2481ac_ext=c 2023ac_ext=c
2482ac_cpp='$CPP $CPPFLAGS' 2024ac_cpp='$CPP $CPPFLAGS'
@@ -2515,33 +2057,39 @@ gameuser=games
2515 2057
2516 2058
2517# Check whether --with-pop was given. 2059# Check whether --with-pop was given.
2518if test "${with_pop+set}" = set; then : 2060if test "${with_pop+set}" = set; then
2519 withval=$with_pop; 2061 withval=$with_pop;
2520else 2062else
2521 with_pop=yes 2063 with_pop=yes
2522fi 2064fi
2523 2065
2524if test "$with_pop" = yes; then 2066if test "$with_pop" = yes; then
2525 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h 2067 cat >>confdefs.h <<\_ACEOF
2068#define MAIL_USE_POP 1
2069_ACEOF
2526 2070
2527fi 2071fi
2528 2072
2529 2073
2074
2530# Check whether --with-kerberos was given. 2075# Check whether --with-kerberos was given.
2531if test "${with_kerberos+set}" = set; then : 2076if test "${with_kerberos+set}" = set; then
2532 withval=$with_kerberos; 2077 withval=$with_kerberos;
2533else 2078else
2534 with_kerberos=no 2079 with_kerberos=no
2535fi 2080fi
2536 2081
2537if test "$with_kerberos" != no; then 2082if test "$with_kerberos" != no; then
2538 $as_echo "#define KERBEROS 1" >>confdefs.h 2083 cat >>confdefs.h <<\_ACEOF
2084#define KERBEROS 1
2085_ACEOF
2539 2086
2540fi 2087fi
2541 2088
2542 2089
2090
2543# Check whether --with-kerberos5 was given. 2091# Check whether --with-kerberos5 was given.
2544if test "${with_kerberos5+set}" = set; then : 2092if test "${with_kerberos5+set}" = set; then
2545 withval=$with_kerberos5; 2093 withval=$with_kerberos5;
2546else 2094else
2547 with_kerberos5=no 2095 with_kerberos5=no
@@ -2550,17 +2098,21 @@ fi
2550if test "${with_kerberos5}" != no; then 2098if test "${with_kerberos5}" != no; then
2551 if test "${with_kerberos}" = no; then 2099 if test "${with_kerberos}" = no; then
2552 with_kerberos=yes 2100 with_kerberos=yes
2553 $as_echo "#define KERBEROS 1" >>confdefs.h 2101 cat >>confdefs.h <<\_ACEOF
2102#define KERBEROS 1
2103_ACEOF
2554 2104
2555 fi 2105 fi
2556 2106
2557$as_echo "#define KERBEROS5 1" >>confdefs.h 2107cat >>confdefs.h <<\_ACEOF
2108#define KERBEROS5 1
2109_ACEOF
2558 2110
2559fi 2111fi
2560 2112
2561 2113
2562# Check whether --with-hesiod was given. 2114# Check whether --with-hesiod was given.
2563if test "${with_hesiod+set}" = set; then : 2115if test "${with_hesiod+set}" = set; then
2564 withval=$with_hesiod; 2116 withval=$with_hesiod;
2565else 2117else
2566 with_hesiod=no 2118 with_hesiod=no
@@ -2568,13 +2120,15 @@ fi
2568 2120
2569if test "$with_hesiod" != no; then 2121if test "$with_hesiod" != no; then
2570 2122
2571$as_echo "#define HESIOD 1" >>confdefs.h 2123cat >>confdefs.h <<\_ACEOF
2124#define HESIOD 1
2125_ACEOF
2572 2126
2573fi 2127fi
2574 2128
2575 2129
2576# Check whether --with-mmdf was given. 2130# Check whether --with-mmdf was given.
2577if test "${with_mmdf+set}" = set; then : 2131if test "${with_mmdf+set}" = set; then
2578 withval=$with_mmdf; 2132 withval=$with_mmdf;
2579else 2133else
2580 with_mmdf=no 2134 with_mmdf=no
@@ -2582,13 +2136,15 @@ fi
2582 2136
2583if test "$with_mmdf" != no; then 2137if test "$with_mmdf" != no; then
2584 2138
2585$as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h 2139cat >>confdefs.h <<\_ACEOF
2140#define MAIL_USE_MMDF 1
2141_ACEOF
2586 2142
2587fi 2143fi
2588 2144
2589 2145
2590# Check whether --with-mail-unlink was given. 2146# Check whether --with-mail-unlink was given.
2591if test "${with_mail_unlink+set}" = set; then : 2147if test "${with_mail_unlink+set}" = set; then
2592 withval=$with_mail_unlink; 2148 withval=$with_mail_unlink;
2593else 2149else
2594 with_mail_unlink=no 2150 with_mail_unlink=no
@@ -2596,13 +2152,15 @@ fi
2596 2152
2597if test "$with_mail_unlink" != no; then 2153if test "$with_mail_unlink" != no; then
2598 2154
2599$as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h 2155cat >>confdefs.h <<\_ACEOF
2156#define MAIL_UNLINK_SPOOL 1
2157_ACEOF
2600 2158
2601fi 2159fi
2602 2160
2603 2161
2604# Check whether --with-mailhost was given. 2162# Check whether --with-mailhost was given.
2605if test "${with_mailhost+set}" = set; then : 2163if test "${with_mailhost+set}" = set; then
2606 withval=$with_mailhost; 2164 withval=$with_mailhost;
2607cat >>confdefs.h <<_ACEOF 2165cat >>confdefs.h <<_ACEOF
2608#define MAILHOST "$withval" 2166#define MAILHOST "$withval"
@@ -2613,7 +2171,7 @@ fi
2613 2171
2614 2172
2615# Check whether --with-sound was given. 2173# Check whether --with-sound was given.
2616if test "${with_sound+set}" = set; then : 2174if test "${with_sound+set}" = set; then
2617 withval=$with_sound; 2175 withval=$with_sound;
2618else 2176else
2619 with_sound=yes 2177 with_sound=yes
@@ -2622,7 +2180,7 @@ fi
2622 2180
2623 2181
2624# Check whether --with-sync-input was given. 2182# Check whether --with-sync-input was given.
2625if test "${with_sync_input+set}" = set; then : 2183if test "${with_sync_input+set}" = set; then
2626 withval=$with_sync_input; 2184 withval=$with_sync_input;
2627else 2185else
2628 with_sync_input=yes 2186 with_sync_input=yes
@@ -2630,13 +2188,15 @@ fi
2630 2188
2631if test "$with_sync_input" = yes; then 2189if test "$with_sync_input" = yes; then
2632 2190
2633$as_echo "#define SYNC_INPUT 1" >>confdefs.h 2191cat >>confdefs.h <<\_ACEOF
2192#define SYNC_INPUT 1
2193_ACEOF
2634 2194
2635fi 2195fi
2636 2196
2637 2197
2638# Check whether --with-x-toolkit was given. 2198# Check whether --with-x-toolkit was given.
2639if test "${with_x_toolkit+set}" = set; then : 2199if test "${with_x_toolkit+set}" = set; then
2640 withval=$with_x_toolkit; case "${withval}" in 2200 withval=$with_x_toolkit; case "${withval}" in
2641 y | ye | yes ) val=gtk ;; 2201 y | ye | yes ) val=gtk ;;
2642 n | no ) val=no ;; 2202 n | no ) val=no ;;
@@ -2645,9 +2205,13 @@ if test "${with_x_toolkit+set}" = set; then :
2645 m | mo | mot | moti | motif ) val=motif ;; 2205 m | mo | mot | moti | motif ) val=motif ;;
2646 g | gt | gtk ) val=gtk ;; 2206 g | gt | gtk ) val=gtk ;;
2647 * ) 2207 * )
2648as_fn_error "\`--with-x-toolkit=$withval' is invalid; 2208{ { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2649this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. 2209this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2650\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 2210\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2211$as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2212this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2213\`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2214 { (exit 1); exit 1; }; }
2651 ;; 2215 ;;
2652 esac 2216 esac
2653 with_x_toolkit=$val 2217 with_x_toolkit=$val
@@ -2657,7 +2221,7 @@ fi
2657 2221
2658 2222
2659# Check whether --with-xpm was given. 2223# Check whether --with-xpm was given.
2660if test "${with_xpm+set}" = set; then : 2224if test "${with_xpm+set}" = set; then
2661 withval=$with_xpm; 2225 withval=$with_xpm;
2662else 2226else
2663 with_xpm=yes 2227 with_xpm=yes
@@ -2665,7 +2229,7 @@ fi
2665 2229
2666 2230
2667# Check whether --with-jpeg was given. 2231# Check whether --with-jpeg was given.
2668if test "${with_jpeg+set}" = set; then : 2232if test "${with_jpeg+set}" = set; then
2669 withval=$with_jpeg; 2233 withval=$with_jpeg;
2670else 2234else
2671 with_jpeg=yes 2235 with_jpeg=yes
@@ -2673,7 +2237,7 @@ fi
2673 2237
2674 2238
2675# Check whether --with-tiff was given. 2239# Check whether --with-tiff was given.
2676if test "${with_tiff+set}" = set; then : 2240if test "${with_tiff+set}" = set; then
2677 withval=$with_tiff; 2241 withval=$with_tiff;
2678else 2242else
2679 with_tiff=yes 2243 with_tiff=yes
@@ -2681,7 +2245,7 @@ fi
2681 2245
2682 2246
2683# Check whether --with-gif was given. 2247# Check whether --with-gif was given.
2684if test "${with_gif+set}" = set; then : 2248if test "${with_gif+set}" = set; then
2685 withval=$with_gif; 2249 withval=$with_gif;
2686else 2250else
2687 with_gif=yes 2251 with_gif=yes
@@ -2689,7 +2253,7 @@ fi
2689 2253
2690 2254
2691# Check whether --with-png was given. 2255# Check whether --with-png was given.
2692if test "${with_png+set}" = set; then : 2256if test "${with_png+set}" = set; then
2693 withval=$with_png; 2257 withval=$with_png;
2694else 2258else
2695 with_png=yes 2259 with_png=yes
@@ -2697,7 +2261,7 @@ fi
2697 2261
2698 2262
2699# Check whether --with-rsvg was given. 2263# Check whether --with-rsvg was given.
2700if test "${with_rsvg+set}" = set; then : 2264if test "${with_rsvg+set}" = set; then
2701 withval=$with_rsvg; 2265 withval=$with_rsvg;
2702else 2266else
2703 with_rsvg=yes 2267 with_rsvg=yes
@@ -2706,7 +2270,7 @@ fi
2706 2270
2707 2271
2708# Check whether --with-xft was given. 2272# Check whether --with-xft was given.
2709if test "${with_xft+set}" = set; then : 2273if test "${with_xft+set}" = set; then
2710 withval=$with_xft; 2274 withval=$with_xft;
2711else 2275else
2712 with_xft=yes 2276 with_xft=yes
@@ -2714,7 +2278,7 @@ fi
2714 2278
2715 2279
2716# Check whether --with-libotf was given. 2280# Check whether --with-libotf was given.
2717if test "${with_libotf+set}" = set; then : 2281if test "${with_libotf+set}" = set; then
2718 withval=$with_libotf; 2282 withval=$with_libotf;
2719else 2283else
2720 with_libotf=yes 2284 with_libotf=yes
@@ -2722,7 +2286,7 @@ fi
2722 2286
2723 2287
2724# Check whether --with-m17n-flt was given. 2288# Check whether --with-m17n-flt was given.
2725if test "${with_m17n_flt+set}" = set; then : 2289if test "${with_m17n_flt+set}" = set; then
2726 withval=$with_m17n_flt; 2290 withval=$with_m17n_flt;
2727else 2291else
2728 with_m17n_flt=yes 2292 with_m17n_flt=yes
@@ -2731,7 +2295,7 @@ fi
2731 2295
2732 2296
2733# Check whether --with-toolkit-scroll-bars was given. 2297# Check whether --with-toolkit-scroll-bars was given.
2734if test "${with_toolkit_scroll_bars+set}" = set; then : 2298if test "${with_toolkit_scroll_bars+set}" = set; then
2735 withval=$with_toolkit_scroll_bars; 2299 withval=$with_toolkit_scroll_bars;
2736else 2300else
2737 with_toolkit_scroll_bars=yes 2301 with_toolkit_scroll_bars=yes
@@ -2739,7 +2303,7 @@ fi
2739 2303
2740 2304
2741# Check whether --with-xaw3d was given. 2305# Check whether --with-xaw3d was given.
2742if test "${with_xaw3d+set}" = set; then : 2306if test "${with_xaw3d+set}" = set; then
2743 withval=$with_xaw3d; 2307 withval=$with_xaw3d;
2744else 2308else
2745 with_xaw3d=yes 2309 with_xaw3d=yes
@@ -2747,7 +2311,7 @@ fi
2747 2311
2748 2312
2749# Check whether --with-xim was given. 2313# Check whether --with-xim was given.
2750if test "${with_xim+set}" = set; then : 2314if test "${with_xim+set}" = set; then
2751 withval=$with_xim; 2315 withval=$with_xim;
2752else 2316else
2753 with_xim=yes 2317 with_xim=yes
@@ -2755,7 +2319,7 @@ fi
2755 2319
2756 2320
2757# Check whether --with-ns was given. 2321# Check whether --with-ns was given.
2758if test "${with_ns+set}" = set; then : 2322if test "${with_ns+set}" = set; then
2759 withval=$with_ns; 2323 withval=$with_ns;
2760else 2324else
2761 with_ns=no 2325 with_ns=no
@@ -2764,7 +2328,7 @@ fi
2764 2328
2765 2329
2766# Check whether --with-gpm was given. 2330# Check whether --with-gpm was given.
2767if test "${with_gpm+set}" = set; then : 2331if test "${with_gpm+set}" = set; then
2768 withval=$with_gpm; 2332 withval=$with_gpm;
2769else 2333else
2770 with_gpm=yes 2334 with_gpm=yes
@@ -2772,7 +2336,7 @@ fi
2772 2336
2773 2337
2774# Check whether --with-dbus was given. 2338# Check whether --with-dbus was given.
2775if test "${with_dbus+set}" = set; then : 2339if test "${with_dbus+set}" = set; then
2776 withval=$with_dbus; 2340 withval=$with_dbus;
2777else 2341else
2778 with_dbus=yes 2342 with_dbus=yes
@@ -2780,7 +2344,7 @@ fi
2780 2344
2781 2345
2782# Check whether --with-gconf was given. 2346# Check whether --with-gconf was given.
2783if test "${with_gconf+set}" = set; then : 2347if test "${with_gconf+set}" = set; then
2784 withval=$with_gconf; 2348 withval=$with_gconf;
2785else 2349else
2786 with_gconf=yes 2350 with_gconf=yes
@@ -2788,7 +2352,7 @@ fi
2788 2352
2789 2353
2790# Check whether --with-selinux was given. 2354# Check whether --with-selinux was given.
2791if test "${with_selinux+set}" = set; then : 2355if test "${with_selinux+set}" = set; then
2792 withval=$with_selinux; 2356 withval=$with_selinux;
2793else 2357else
2794 with_selinux=yes 2358 with_selinux=yes
@@ -2799,7 +2363,7 @@ fi
2799## a suitable makeinfo, and can live without the manuals. 2363## a suitable makeinfo, and can live without the manuals.
2800 2364
2801# Check whether --with-makeinfo was given. 2365# Check whether --with-makeinfo was given.
2802if test "${with_makeinfo+set}" = set; then : 2366if test "${with_makeinfo+set}" = set; then
2803 withval=$with_makeinfo; 2367 withval=$with_makeinfo;
2804else 2368else
2805 with_makeinfo=yes 2369 with_makeinfo=yes
@@ -2808,23 +2372,29 @@ fi
2808 2372
2809 2373
2810# Check whether --with-gtk was given. 2374# Check whether --with-gtk was given.
2811if test "${with_gtk+set}" = set; then : 2375if test "${with_gtk+set}" = set; then
2812 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to 2376 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2813specify a toolkit." "$LINENO" 5 2377specify a toolkit." >&5
2378$as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2379specify a toolkit." >&2;}
2380 { (exit 1); exit 1; }; }
2814fi 2381fi
2815 2382
2816 2383
2817 2384
2818# Check whether --with-gcc was given. 2385# Check whether --with-gcc was given.
2819if test "${with_gcc+set}" = set; then : 2386if test "${with_gcc+set}" = set; then
2820 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment 2387 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2821variable to specify a compiler." "$LINENO" 5 2388variable to specify a compiler." >&5
2389$as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2390variable to specify a compiler." >&2;}
2391 { (exit 1); exit 1; }; }
2822fi 2392fi
2823 2393
2824 2394
2825 2395
2826# Check whether --with-pkg-config-prog was given. 2396# Check whether --with-pkg-config-prog was given.
2827if test "${with_pkg_config_prog+set}" = set; then : 2397if test "${with_pkg_config_prog+set}" = set; then
2828 withval=$with_pkg_config_prog; 2398 withval=$with_pkg_config_prog;
2829fi 2399fi
2830 2400
@@ -2837,7 +2407,7 @@ fi
2837CRT_DIR= 2407CRT_DIR=
2838 2408
2839# Check whether --with-crt-dir was given. 2409# Check whether --with-crt-dir was given.
2840if test "${with_crt_dir+set}" = set; then : 2410if test "${with_crt_dir+set}" = set; then
2841 withval=$with_crt_dir; 2411 withval=$with_crt_dir;
2842fi 2412fi
2843 2413
@@ -2845,7 +2415,7 @@ CRT_DIR="${with_crt_dir}"
2845 2415
2846 2416
2847# Check whether --with-gnustep-conf was given. 2417# Check whether --with-gnustep-conf was given.
2848if test "${with_gnustep_conf+set}" = set; then : 2418if test "${with_gnustep_conf+set}" = set; then
2849 withval=$with_gnustep_conf; 2419 withval=$with_gnustep_conf;
2850fi 2420fi
2851 2421
@@ -2855,7 +2425,7 @@ test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2855 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf 2425 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2856 2426
2857# Check whether --enable-ns-self-contained was given. 2427# Check whether --enable-ns-self-contained was given.
2858if test "${enable_ns_self_contained+set}" = set; then : 2428if test "${enable_ns_self_contained+set}" = set; then
2859 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval 2429 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2860else 2430else
2861 EN_NS_SELF_CONTAINED=yes 2431 EN_NS_SELF_CONTAINED=yes
@@ -2863,7 +2433,7 @@ fi
2863 2433
2864 2434
2865# Check whether --enable-asserts was given. 2435# Check whether --enable-asserts was given.
2866if test "${enable_asserts+set}" = set; then : 2436if test "${enable_asserts+set}" = set; then
2867 enableval=$enable_asserts; USE_XASSERTS=$enableval 2437 enableval=$enable_asserts; USE_XASSERTS=$enableval
2868else 2438else
2869 USE_XASSERTS=no 2439 USE_XASSERTS=no
@@ -2871,7 +2441,7 @@ fi
2871 2441
2872 2442
2873# Check whether --enable-maintainer-mode was given. 2443# Check whether --enable-maintainer-mode was given.
2874if test "${enable_maintainer_mode+set}" = set; then : 2444if test "${enable_maintainer_mode+set}" = set; then
2875 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2445 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2876else 2446else
2877 USE_MAINTAINER_MODE=no 2447 USE_MAINTAINER_MODE=no
@@ -2885,7 +2455,7 @@ fi
2885 2455
2886 2456
2887# Check whether --enable-locallisppath was given. 2457# Check whether --enable-locallisppath was given.
2888if test "${enable_locallisppath+set}" = set; then : 2458if test "${enable_locallisppath+set}" = set; then
2889 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then 2459 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2890 locallisppath= 2460 locallisppath=
2891elif test "${enableval}" != "yes"; then 2461elif test "${enableval}" != "yes"; then
@@ -2895,7 +2465,7 @@ fi
2895 2465
2896 2466
2897# Check whether --enable-checking was given. 2467# Check whether --enable-checking was given.
2898if test "${enable_checking+set}" = set; then : 2468if test "${enable_checking+set}" = set; then
2899 enableval=$enable_checking; ac_checking_flags="${enableval}" 2469 enableval=$enable_checking; ac_checking_flags="${enableval}"
2900fi 2470fi
2901 2471
@@ -2923,44 +2493,58 @@ do
2923 stringfreelist) ac_gc_check_string_free_list=1 ;; 2493 stringfreelist) ac_gc_check_string_free_list=1 ;;
2924 xmallocoverrun) ac_xmalloc_overrun=1 ;; 2494 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2925 conslist) ac_gc_check_cons_list=1 ;; 2495 conslist) ac_gc_check_cons_list=1 ;;
2926 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;; 2496 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2497$as_echo "$as_me: error: unknown check category $check" >&2;}
2498 { (exit 1); exit 1; }; } ;;
2927 esac 2499 esac
2928done 2500done
2929IFS="$ac_save_IFS" 2501IFS="$ac_save_IFS"
2930 2502
2931if test x$ac_enable_checking != x ; then 2503if test x$ac_enable_checking != x ; then
2932 2504
2933$as_echo "#define ENABLE_CHECKING 1" >>confdefs.h 2505cat >>confdefs.h <<\_ACEOF
2506#define ENABLE_CHECKING 1
2507_ACEOF
2934 2508
2935fi 2509fi
2936if test x$ac_gc_check_stringbytes != x ; then 2510if test x$ac_gc_check_stringbytes != x ; then
2937 2511
2938$as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h 2512cat >>confdefs.h <<\_ACEOF
2513#define GC_CHECK_STRING_BYTES 1
2514_ACEOF
2939 2515
2940fi 2516fi
2941if test x$ac_gc_check_stringoverrun != x ; then 2517if test x$ac_gc_check_stringoverrun != x ; then
2942 2518
2943$as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h 2519cat >>confdefs.h <<\_ACEOF
2520#define GC_CHECK_STRING_OVERRUN 1
2521_ACEOF
2944 2522
2945fi 2523fi
2946if test x$ac_gc_check_string_free_list != x ; then 2524if test x$ac_gc_check_string_free_list != x ; then
2947 2525
2948$as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h 2526cat >>confdefs.h <<\_ACEOF
2527#define GC_CHECK_STRING_FREE_LIST 1
2528_ACEOF
2949 2529
2950fi 2530fi
2951if test x$ac_xmalloc_overrun != x ; then 2531if test x$ac_xmalloc_overrun != x ; then
2952 2532
2953$as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h 2533cat >>confdefs.h <<\_ACEOF
2534#define XMALLOC_OVERRUN_CHECK 1
2535_ACEOF
2954 2536
2955fi 2537fi
2956if test x$ac_gc_check_cons_list != x ; then 2538if test x$ac_gc_check_cons_list != x ; then
2957 2539
2958$as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h 2540cat >>confdefs.h <<\_ACEOF
2541#define GC_CHECK_CONS_LIST 1
2542_ACEOF
2959 2543
2960fi 2544fi
2961 2545
2962# Check whether --enable-profiling was given. 2546# Check whether --enable-profiling was given.
2963if test "${enable_profiling+set}" = set; then : 2547if test "${enable_profiling+set}" = set; then
2964 enableval=$enable_profiling; ac_enable_profiling="${enableval}" 2548 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2965fi 2549fi
2966 2550
@@ -2973,7 +2557,7 @@ else
2973fi 2557fi
2974 2558
2975# Check whether --enable-autodepend was given. 2559# Check whether --enable-autodepend was given.
2976if test "${enable_autodepend+set}" = set; then : 2560if test "${enable_autodepend+set}" = set; then
2977 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" 2561 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2978else 2562else
2979 ac_enable_autodepend=yes 2563 ac_enable_autodepend=yes
@@ -3007,7 +2591,7 @@ esac
3007#### Check if the source directory already has a configured system in it. 2591#### Check if the source directory already has a configured system in it.
3008if test `pwd` != `(cd ${srcdir} && pwd)` \ 2592if test `pwd` != `(cd ${srcdir} && pwd)` \
3009 && test -f "${srcdir}/src/config.h" ; then 2593 && test -f "${srcdir}/src/config.h" ; then
3010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used 2594 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
3011 as a build directory right now; it has been configured in its own 2595 as a build directory right now; it has been configured in its own
3012 right. To configure in another directory as well, you MUST 2596 right. To configure in another directory as well, you MUST
3013 use GNU make. If you do not have GNU make, then you must 2597 use GNU make. If you do not have GNU make, then you must
@@ -3028,16 +2612,24 @@ fi
3028 2612
3029ac_aux_dir= 2613ac_aux_dir=
3030for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2614for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3031 for ac_t in install-sh install.sh shtool; do 2615 if test -f "$ac_dir/install-sh"; then
3032 if test -f "$ac_dir/$ac_t"; then 2616 ac_aux_dir=$ac_dir
3033 ac_aux_dir=$ac_dir 2617 ac_install_sh="$ac_aux_dir/install-sh -c"
3034 ac_install_sh="$ac_aux_dir/$ac_t -c" 2618 break
3035 break 2 2619 elif test -f "$ac_dir/install.sh"; then
3036 fi 2620 ac_aux_dir=$ac_dir
3037 done 2621 ac_install_sh="$ac_aux_dir/install.sh -c"
2622 break
2623 elif test -f "$ac_dir/shtool"; then
2624 ac_aux_dir=$ac_dir
2625 ac_install_sh="$ac_aux_dir/shtool install -c"
2626 break
2627 fi
3038done 2628done
3039if test -z "$ac_aux_dir"; then 2629if test -z "$ac_aux_dir"; then
3040 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2630 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2631$as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2632 { (exit 1); exit 1; }; }
3041fi 2633fi
3042 2634
3043# These three variables are undocumented and unsupported, 2635# These three variables are undocumented and unsupported,
@@ -3051,27 +2643,35 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3051 2643
3052# Make sure we can run config.sub. 2644# Make sure we can run config.sub.
3053$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2645$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3054 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2646 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2647$as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2648 { (exit 1); exit 1; }; }
3055 2649
3056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2650{ $as_echo "$as_me:$LINENO: checking build system type" >&5
3057$as_echo_n "checking build system type... " >&6; } 2651$as_echo_n "checking build system type... " >&6; }
3058if test "${ac_cv_build+set}" = set; then : 2652if test "${ac_cv_build+set}" = set; then
3059 $as_echo_n "(cached) " >&6 2653 $as_echo_n "(cached) " >&6
3060else 2654else
3061 ac_build_alias=$build_alias 2655 ac_build_alias=$build_alias
3062test "x$ac_build_alias" = x && 2656test "x$ac_build_alias" = x &&
3063 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2657 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3064test "x$ac_build_alias" = x && 2658test "x$ac_build_alias" = x &&
3065 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2659 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2660$as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2661 { (exit 1); exit 1; }; }
3066ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2662ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3067 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2663 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2664$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2665 { (exit 1); exit 1; }; }
3068 2666
3069fi 2667fi
3070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2668{ $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3071$as_echo "$ac_cv_build" >&6; } 2669$as_echo "$ac_cv_build" >&6; }
3072case $ac_cv_build in 2670case $ac_cv_build in
3073*-*-*) ;; 2671*-*-*) ;;
3074*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2672*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2673$as_echo "$as_me: error: invalid value of canonical build" >&2;}
2674 { (exit 1); exit 1; }; };;
3075esac 2675esac
3076build=$ac_cv_build 2676build=$ac_cv_build
3077ac_save_IFS=$IFS; IFS='-' 2677ac_save_IFS=$IFS; IFS='-'
@@ -3087,24 +2687,28 @@ IFS=$ac_save_IFS
3087case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2687case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3088 2688
3089 2689
3090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2690{ $as_echo "$as_me:$LINENO: checking host system type" >&5
3091$as_echo_n "checking host system type... " >&6; } 2691$as_echo_n "checking host system type... " >&6; }
3092if test "${ac_cv_host+set}" = set; then : 2692if test "${ac_cv_host+set}" = set; then
3093 $as_echo_n "(cached) " >&6 2693 $as_echo_n "(cached) " >&6
3094else 2694else
3095 if test "x$host_alias" = x; then 2695 if test "x$host_alias" = x; then
3096 ac_cv_host=$ac_cv_build 2696 ac_cv_host=$ac_cv_build
3097else 2697else
3098 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2698 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3099 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2699 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2700$as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2701 { (exit 1); exit 1; }; }
3100fi 2702fi
3101 2703
3102fi 2704fi
3103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2705{ $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3104$as_echo "$ac_cv_host" >&6; } 2706$as_echo "$ac_cv_host" >&6; }
3105case $ac_cv_host in 2707case $ac_cv_host in
3106*-*-*) ;; 2708*-*-*) ;;
3107*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2709*) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2710$as_echo "$as_me: error: invalid value of canonical host" >&2;}
2711 { (exit 1); exit 1; }; };;
3108esac 2712esac
3109host=$ac_cv_host 2713host=$ac_cv_host
3110ac_save_IFS=$IFS; IFS='-' 2714ac_save_IFS=$IFS; IFS='-'
@@ -3403,8 +3007,11 @@ fi
3403 3007
3404 3008
3405if test $unported = yes; then 3009if test $unported = yes; then
3406 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems. 3010 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3407Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 3011Check \`etc/MACHINES' for recognized configuration names." >&5
3012$as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3013Check \`etc/MACHINES' for recognized configuration names." >&2;}
3014 { (exit 1); exit 1; }; }
3408fi 3015fi
3409 3016
3410machfile="m/${machine}.h" 3017machfile="m/${machine}.h"
@@ -3425,9 +3032,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
3425if test -n "$ac_tool_prefix"; then 3032if test -n "$ac_tool_prefix"; then
3426 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3033 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3427set dummy ${ac_tool_prefix}gcc; ac_word=$2 3034set dummy ${ac_tool_prefix}gcc; ac_word=$2
3428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3035{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3429$as_echo_n "checking for $ac_word... " >&6; } 3036$as_echo_n "checking for $ac_word... " >&6; }
3430if test "${ac_cv_prog_CC+set}" = set; then : 3037if test "${ac_cv_prog_CC+set}" = set; then
3431 $as_echo_n "(cached) " >&6 3038 $as_echo_n "(cached) " >&6
3432else 3039else
3433 if test -n "$CC"; then 3040 if test -n "$CC"; then
@@ -3438,24 +3045,24 @@ for as_dir in $PATH
3438do 3045do
3439 IFS=$as_save_IFS 3046 IFS=$as_save_IFS
3440 test -z "$as_dir" && as_dir=. 3047 test -z "$as_dir" && as_dir=.
3441 for ac_exec_ext in '' $ac_executable_extensions; do 3048 for ac_exec_ext in '' $ac_executable_extensions; do
3442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3443 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3050 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3051 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3445 break 2 3052 break 2
3446 fi 3053 fi
3447done 3054done
3448 done 3055done
3449IFS=$as_save_IFS 3056IFS=$as_save_IFS
3450 3057
3451fi 3058fi
3452fi 3059fi
3453CC=$ac_cv_prog_CC 3060CC=$ac_cv_prog_CC
3454if test -n "$CC"; then 3061if test -n "$CC"; then
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3062 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3456$as_echo "$CC" >&6; } 3063$as_echo "$CC" >&6; }
3457else 3064else
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3065 { $as_echo "$as_me:$LINENO: result: no" >&5
3459$as_echo "no" >&6; } 3066$as_echo "no" >&6; }
3460fi 3067fi
3461 3068
@@ -3465,9 +3072,9 @@ if test -z "$ac_cv_prog_CC"; then
3465 ac_ct_CC=$CC 3072 ac_ct_CC=$CC
3466 # Extract the first word of "gcc", so it can be a program name with args. 3073 # Extract the first word of "gcc", so it can be a program name with args.
3467set dummy gcc; ac_word=$2 3074set dummy gcc; ac_word=$2
3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3075{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3469$as_echo_n "checking for $ac_word... " >&6; } 3076$as_echo_n "checking for $ac_word... " >&6; }
3470if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3077if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3471 $as_echo_n "(cached) " >&6 3078 $as_echo_n "(cached) " >&6
3472else 3079else
3473 if test -n "$ac_ct_CC"; then 3080 if test -n "$ac_ct_CC"; then
@@ -3478,24 +3085,24 @@ for as_dir in $PATH
3478do 3085do
3479 IFS=$as_save_IFS 3086 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=. 3087 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do 3088 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3089 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3483 ac_cv_prog_ac_ct_CC="gcc" 3090 ac_cv_prog_ac_ct_CC="gcc"
3484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3091 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2 3092 break 2
3486 fi 3093 fi
3487done 3094done
3488 done 3095done
3489IFS=$as_save_IFS 3096IFS=$as_save_IFS
3490 3097
3491fi 3098fi
3492fi 3099fi
3493ac_ct_CC=$ac_cv_prog_ac_ct_CC 3100ac_ct_CC=$ac_cv_prog_ac_ct_CC
3494if test -n "$ac_ct_CC"; then 3101if test -n "$ac_ct_CC"; then
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3102 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3496$as_echo "$ac_ct_CC" >&6; } 3103$as_echo "$ac_ct_CC" >&6; }
3497else 3104else
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3105 { $as_echo "$as_me:$LINENO: result: no" >&5
3499$as_echo "no" >&6; } 3106$as_echo "no" >&6; }
3500fi 3107fi
3501 3108
@@ -3504,8 +3111,12 @@ fi
3504 else 3111 else
3505 case $cross_compiling:$ac_tool_warned in 3112 case $cross_compiling:$ac_tool_warned in
3506yes:) 3113yes:)
3507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3114{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3115whose name does not start with the host triplet. If you think this
3116configuration is useful to you, please write to autoconf@gnu.org." >&5
3117$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3118whose name does not start with the host triplet. If you think this
3119configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3509ac_tool_warned=yes ;; 3120ac_tool_warned=yes ;;
3510esac 3121esac
3511 CC=$ac_ct_CC 3122 CC=$ac_ct_CC
@@ -3518,9 +3129,9 @@ if test -z "$CC"; then
3518 if test -n "$ac_tool_prefix"; then 3129 if test -n "$ac_tool_prefix"; then
3519 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3130 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3520set dummy ${ac_tool_prefix}cc; ac_word=$2 3131set dummy ${ac_tool_prefix}cc; ac_word=$2
3521{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3132{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3522$as_echo_n "checking for $ac_word... " >&6; } 3133$as_echo_n "checking for $ac_word... " >&6; }
3523if test "${ac_cv_prog_CC+set}" = set; then : 3134if test "${ac_cv_prog_CC+set}" = set; then
3524 $as_echo_n "(cached) " >&6 3135 $as_echo_n "(cached) " >&6
3525else 3136else
3526 if test -n "$CC"; then 3137 if test -n "$CC"; then
@@ -3531,24 +3142,24 @@ for as_dir in $PATH
3531do 3142do
3532 IFS=$as_save_IFS 3143 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=. 3144 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do 3145 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3536 ac_cv_prog_CC="${ac_tool_prefix}cc" 3147 ac_cv_prog_CC="${ac_tool_prefix}cc"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3148 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2 3149 break 2
3539 fi 3150 fi
3540done 3151done
3541 done 3152done
3542IFS=$as_save_IFS 3153IFS=$as_save_IFS
3543 3154
3544fi 3155fi
3545fi 3156fi
3546CC=$ac_cv_prog_CC 3157CC=$ac_cv_prog_CC
3547if test -n "$CC"; then 3158if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3159 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3549$as_echo "$CC" >&6; } 3160$as_echo "$CC" >&6; }
3550else 3161else
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3162 { $as_echo "$as_me:$LINENO: result: no" >&5
3552$as_echo "no" >&6; } 3163$as_echo "no" >&6; }
3553fi 3164fi
3554 3165
@@ -3558,9 +3169,9 @@ fi
3558if test -z "$CC"; then 3169if test -z "$CC"; then
3559 # Extract the first word of "cc", so it can be a program name with args. 3170 # Extract the first word of "cc", so it can be a program name with args.
3560set dummy cc; ac_word=$2 3171set dummy cc; ac_word=$2
3561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3172{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3562$as_echo_n "checking for $ac_word... " >&6; } 3173$as_echo_n "checking for $ac_word... " >&6; }
3563if test "${ac_cv_prog_CC+set}" = set; then : 3174if test "${ac_cv_prog_CC+set}" = set; then
3564 $as_echo_n "(cached) " >&6 3175 $as_echo_n "(cached) " >&6
3565else 3176else
3566 if test -n "$CC"; then 3177 if test -n "$CC"; then
@@ -3572,18 +3183,18 @@ for as_dir in $PATH
3572do 3183do
3573 IFS=$as_save_IFS 3184 IFS=$as_save_IFS
3574 test -z "$as_dir" && as_dir=. 3185 test -z "$as_dir" && as_dir=.
3575 for ac_exec_ext in '' $ac_executable_extensions; do 3186 for ac_exec_ext in '' $ac_executable_extensions; do
3576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3187 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3577 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3188 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3578 ac_prog_rejected=yes 3189 ac_prog_rejected=yes
3579 continue 3190 continue
3580 fi 3191 fi
3581 ac_cv_prog_CC="cc" 3192 ac_cv_prog_CC="cc"
3582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3193 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3583 break 2 3194 break 2
3584 fi 3195 fi
3585done 3196done
3586 done 3197done
3587IFS=$as_save_IFS 3198IFS=$as_save_IFS
3588 3199
3589if test $ac_prog_rejected = yes; then 3200if test $ac_prog_rejected = yes; then
@@ -3602,10 +3213,10 @@ fi
3602fi 3213fi
3603CC=$ac_cv_prog_CC 3214CC=$ac_cv_prog_CC
3604if test -n "$CC"; then 3215if test -n "$CC"; then
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3216 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3606$as_echo "$CC" >&6; } 3217$as_echo "$CC" >&6; }
3607else 3218else
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3219 { $as_echo "$as_me:$LINENO: result: no" >&5
3609$as_echo "no" >&6; } 3220$as_echo "no" >&6; }
3610fi 3221fi
3611 3222
@@ -3617,9 +3228,9 @@ if test -z "$CC"; then
3617 do 3228 do
3618 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3229 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3619set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3230set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3231{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3621$as_echo_n "checking for $ac_word... " >&6; } 3232$as_echo_n "checking for $ac_word... " >&6; }
3622if test "${ac_cv_prog_CC+set}" = set; then : 3233if test "${ac_cv_prog_CC+set}" = set; then
3623 $as_echo_n "(cached) " >&6 3234 $as_echo_n "(cached) " >&6
3624else 3235else
3625 if test -n "$CC"; then 3236 if test -n "$CC"; then
@@ -3630,24 +3241,24 @@ for as_dir in $PATH
3630do 3241do
3631 IFS=$as_save_IFS 3242 IFS=$as_save_IFS
3632 test -z "$as_dir" && as_dir=. 3243 test -z "$as_dir" && as_dir=.
3633 for ac_exec_ext in '' $ac_executable_extensions; do 3244 for ac_exec_ext in '' $ac_executable_extensions; do
3634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3635 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3246 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3247 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3637 break 2 3248 break 2
3638 fi 3249 fi
3639done 3250done
3640 done 3251done
3641IFS=$as_save_IFS 3252IFS=$as_save_IFS
3642 3253
3643fi 3254fi
3644fi 3255fi
3645CC=$ac_cv_prog_CC 3256CC=$ac_cv_prog_CC
3646if test -n "$CC"; then 3257if test -n "$CC"; then
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3258 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3648$as_echo "$CC" >&6; } 3259$as_echo "$CC" >&6; }
3649else 3260else
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3261 { $as_echo "$as_me:$LINENO: result: no" >&5
3651$as_echo "no" >&6; } 3262$as_echo "no" >&6; }
3652fi 3263fi
3653 3264
@@ -3661,9 +3272,9 @@ if test -z "$CC"; then
3661do 3272do
3662 # Extract the first word of "$ac_prog", so it can be a program name with args. 3273 # Extract the first word of "$ac_prog", so it can be a program name with args.
3663set dummy $ac_prog; ac_word=$2 3274set dummy $ac_prog; ac_word=$2
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3275{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3665$as_echo_n "checking for $ac_word... " >&6; } 3276$as_echo_n "checking for $ac_word... " >&6; }
3666if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3277if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3667 $as_echo_n "(cached) " >&6 3278 $as_echo_n "(cached) " >&6
3668else 3279else
3669 if test -n "$ac_ct_CC"; then 3280 if test -n "$ac_ct_CC"; then
@@ -3674,24 +3285,24 @@ for as_dir in $PATH
3674do 3285do
3675 IFS=$as_save_IFS 3286 IFS=$as_save_IFS
3676 test -z "$as_dir" && as_dir=. 3287 test -z "$as_dir" && as_dir=.
3677 for ac_exec_ext in '' $ac_executable_extensions; do 3288 for ac_exec_ext in '' $ac_executable_extensions; do
3678 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3679 ac_cv_prog_ac_ct_CC="$ac_prog" 3290 ac_cv_prog_ac_ct_CC="$ac_prog"
3680 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3681 break 2 3292 break 2
3682 fi 3293 fi
3683done 3294done
3684 done 3295done
3685IFS=$as_save_IFS 3296IFS=$as_save_IFS
3686 3297
3687fi 3298fi
3688fi 3299fi
3689ac_ct_CC=$ac_cv_prog_ac_ct_CC 3300ac_ct_CC=$ac_cv_prog_ac_ct_CC
3690if test -n "$ac_ct_CC"; then 3301if test -n "$ac_ct_CC"; then
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3302 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3692$as_echo "$ac_ct_CC" >&6; } 3303$as_echo "$ac_ct_CC" >&6; }
3693else 3304else
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3305 { $as_echo "$as_me:$LINENO: result: no" >&5
3695$as_echo "no" >&6; } 3306$as_echo "no" >&6; }
3696fi 3307fi
3697 3308
@@ -3704,8 +3315,12 @@ done
3704 else 3315 else
3705 case $cross_compiling:$ac_tool_warned in 3316 case $cross_compiling:$ac_tool_warned in
3706yes:) 3317yes:)
3707{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3318{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3708$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3319whose name does not start with the host triplet. If you think this
3320configuration is useful to you, please write to autoconf@gnu.org." >&5
3321$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3322whose name does not start with the host triplet. If you think this
3323configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3709ac_tool_warned=yes ;; 3324ac_tool_warned=yes ;;
3710esac 3325esac
3711 CC=$ac_ct_CC 3326 CC=$ac_ct_CC
@@ -3715,37 +3330,55 @@ fi
3715fi 3330fi
3716 3331
3717 3332
3718test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3333test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3719$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3334See \`config.log' for more details." >&5
3720as_fn_error "no acceptable C compiler found in \$PATH 3335$as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3721See \`config.log' for more details." "$LINENO" 5; } 3336See \`config.log' for more details." >&2;}
3337 { (exit 1); exit 1; }; }
3722 3338
3723# Provide some information about the compiler. 3339# Provide some information about the compiler.
3724$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3340$as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3725set X $ac_compile 3341set X $ac_compile
3726ac_compiler=$2 3342ac_compiler=$2
3727for ac_option in --version -v -V -qversion; do 3343{ (ac_try="$ac_compiler --version >&5"
3728 { { ac_try="$ac_compiler $ac_option >&5"
3729case "(($ac_try" in 3344case "(($ac_try" in
3730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3731 *) ac_try_echo=$ac_try;; 3346 *) ac_try_echo=$ac_try;;
3732esac 3347esac
3733eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3348eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3734$as_echo "$ac_try_echo"; } >&5 3349$as_echo "$ac_try_echo") >&5
3735 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3350 (eval "$ac_compiler --version >&5") 2>&5
3736 ac_status=$? 3351 ac_status=$?
3737 if test -s conftest.err; then 3352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3738 sed '10a\ 3353 (exit $ac_status); }
3739... rest of stderr output deleted ... 3354{ (ac_try="$ac_compiler -v >&5"
3740 10q' conftest.err >conftest.er1 3355case "(($ac_try" in
3741 cat conftest.er1 >&5 3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 fi 3357 *) ac_try_echo=$ac_try;;
3743 rm -f conftest.er1 conftest.err 3358esac
3744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3745 test $ac_status = 0; } 3360$as_echo "$ac_try_echo") >&5
3746done 3361 (eval "$ac_compiler -v >&5") 2>&5
3362 ac_status=$?
3363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }
3365{ (ac_try="$ac_compiler -V >&5"
3366case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369esac
3370eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3371$as_echo "$ac_try_echo") >&5
3372 (eval "$ac_compiler -V >&5") 2>&5
3373 ac_status=$?
3374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); }
3747 3376
3748cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3377cat >conftest.$ac_ext <<_ACEOF
3378/* confdefs.h. */
3379_ACEOF
3380cat confdefs.h >>conftest.$ac_ext
3381cat >>conftest.$ac_ext <<_ACEOF
3749/* end confdefs.h. */ 3382/* end confdefs.h. */
3750 3383
3751int 3384int
@@ -3761,8 +3394,8 @@ ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3761# Try to create an executable without -o first, disregard a.out. 3394# Try to create an executable without -o first, disregard a.out.
3762# It will help us diagnose broken compilers, and finding out an intuition 3395# It will help us diagnose broken compilers, and finding out an intuition
3763# of exeext. 3396# of exeext.
3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3397{ $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3765$as_echo_n "checking whether the C compiler works... " >&6; } 3398$as_echo_n "checking for C compiler default output file name... " >&6; }
3766ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3399ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3767 3400
3768# The possible output files: 3401# The possible output files:
@@ -3778,17 +3411,17 @@ do
3778done 3411done
3779rm -f $ac_rmfiles 3412rm -f $ac_rmfiles
3780 3413
3781if { { ac_try="$ac_link_default" 3414if { (ac_try="$ac_link_default"
3782case "(($ac_try" in 3415case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;; 3417 *) ac_try_echo=$ac_try;;
3785esac 3418esac
3786eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3419eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3787$as_echo "$ac_try_echo"; } >&5 3420$as_echo "$ac_try_echo") >&5
3788 (eval "$ac_link_default") 2>&5 3421 (eval "$ac_link_default") 2>&5
3789 ac_status=$? 3422 ac_status=$?
3790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3423 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3791 test $ac_status = 0; }; then : 3424 (exit $ac_status); }; then
3792 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3425 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3793# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3426# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3794# in a Makefile. We should not override ac_cv_exeext if it was cached, 3427# in a Makefile. We should not override ac_cv_exeext if it was cached,
@@ -3805,7 +3438,7 @@ do
3805 # certainly right. 3438 # certainly right.
3806 break;; 3439 break;;
3807 *.* ) 3440 *.* )
3808 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3441 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3809 then :; else 3442 then :; else
3810 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3443 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3811 fi 3444 fi
@@ -3824,42 +3457,80 @@ test "$ac_cv_exeext" = no && ac_cv_exeext=
3824else 3457else
3825 ac_file='' 3458 ac_file=''
3826fi 3459fi
3827if test -z "$ac_file"; then : 3460
3828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3461{ $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3829$as_echo "no" >&6; } 3462$as_echo "$ac_file" >&6; }
3830$as_echo "$as_me: failed program was:" >&5 3463if test -z "$ac_file"; then
3464 $as_echo "$as_me: failed program was:" >&5
3831sed 's/^/| /' conftest.$ac_ext >&5 3465sed 's/^/| /' conftest.$ac_ext >&5
3832 3466
3833{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3467{ { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3834$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3468See \`config.log' for more details." >&5
3835{ as_fn_set_status 77 3469$as_echo "$as_me: error: C compiler cannot create executables
3836as_fn_error "C compiler cannot create executables 3470See \`config.log' for more details." >&2;}
3837See \`config.log' for more details." "$LINENO" 5; }; } 3471 { (exit 77); exit 77; }; }
3838else
3839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3840$as_echo "yes" >&6; }
3841fi 3472fi
3842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3473
3843$as_echo_n "checking for C compiler default output file name... " >&6; }
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3845$as_echo "$ac_file" >&6; }
3846ac_exeext=$ac_cv_exeext 3474ac_exeext=$ac_cv_exeext
3847 3475
3476# Check that the compiler produces executables we can run. If not, either
3477# the compiler is broken, or we cross compile.
3478{ $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3479$as_echo_n "checking whether the C compiler works... " >&6; }
3480# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3481# If not cross compiling, check that we can run a simple program.
3482if test "$cross_compiling" != yes; then
3483 if { ac_try='./$ac_file'
3484 { (case "(($ac_try" in
3485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3486 *) ac_try_echo=$ac_try;;
3487esac
3488eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3489$as_echo "$ac_try_echo") >&5
3490 (eval "$ac_try") 2>&5
3491 ac_status=$?
3492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3493 (exit $ac_status); }; }; then
3494 cross_compiling=no
3495 else
3496 if test "$cross_compiling" = maybe; then
3497 cross_compiling=yes
3498 else
3499 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3500If you meant to cross compile, use \`--host'.
3501See \`config.log' for more details." >&5
3502$as_echo "$as_me: error: cannot run C compiled programs.
3503If you meant to cross compile, use \`--host'.
3504See \`config.log' for more details." >&2;}
3505 { (exit 1); exit 1; }; }
3506 fi
3507 fi
3508fi
3509{ $as_echo "$as_me:$LINENO: result: yes" >&5
3510$as_echo "yes" >&6; }
3511
3848rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3512rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3849ac_clean_files=$ac_clean_files_save 3513ac_clean_files=$ac_clean_files_save
3850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3514# Check that the compiler produces executables we can run. If not, either
3515# the compiler is broken, or we cross compile.
3516{ $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3517$as_echo_n "checking whether we are cross compiling... " >&6; }
3518{ $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3519$as_echo "$cross_compiling" >&6; }
3520
3521{ $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3851$as_echo_n "checking for suffix of executables... " >&6; } 3522$as_echo_n "checking for suffix of executables... " >&6; }
3852if { { ac_try="$ac_link" 3523if { (ac_try="$ac_link"
3853case "(($ac_try" in 3524case "(($ac_try" in
3854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3855 *) ac_try_echo=$ac_try;; 3526 *) ac_try_echo=$ac_try;;
3856esac 3527esac
3857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3528eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3858$as_echo "$ac_try_echo"; } >&5 3529$as_echo "$ac_try_echo") >&5
3859 (eval "$ac_link") 2>&5 3530 (eval "$ac_link") 2>&5
3860 ac_status=$? 3531 ac_status=$?
3861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3862 test $ac_status = 0; }; then : 3533 (exit $ac_status); }; then
3863 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3534 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3864# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3535# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3865# work properly (i.e., refer to `conftest.exe'), while it won't with 3536# work properly (i.e., refer to `conftest.exe'), while it won't with
@@ -3874,83 +3545,30 @@ for ac_file in conftest.exe conftest conftest.*; do
3874 esac 3545 esac
3875done 3546done
3876else 3547else
3877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3548 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3549See \`config.log' for more details." >&5
3879as_fn_error "cannot compute suffix of executables: cannot compile and link 3550$as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3880See \`config.log' for more details." "$LINENO" 5; } 3551See \`config.log' for more details." >&2;}
3552 { (exit 1); exit 1; }; }
3881fi 3553fi
3882rm -f conftest conftest$ac_cv_exeext 3554
3883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3555rm -f conftest$ac_cv_exeext
3556{ $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3884$as_echo "$ac_cv_exeext" >&6; } 3557$as_echo "$ac_cv_exeext" >&6; }
3885 3558
3886rm -f conftest.$ac_ext 3559rm -f conftest.$ac_ext
3887EXEEXT=$ac_cv_exeext 3560EXEEXT=$ac_cv_exeext
3888ac_exeext=$EXEEXT 3561ac_exeext=$EXEEXT
3889cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3562{ $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3890/* end confdefs.h. */
3891#include <stdio.h>
3892int
3893main ()
3894{
3895FILE *f = fopen ("conftest.out", "w");
3896 return ferror (f) || fclose (f) != 0;
3897
3898 ;
3899 return 0;
3900}
3901_ACEOF
3902ac_clean_files="$ac_clean_files conftest.out"
3903# Check that the compiler produces executables we can run. If not, either
3904# the compiler is broken, or we cross compile.
3905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3906$as_echo_n "checking whether we are cross compiling... " >&6; }
3907if test "$cross_compiling" != yes; then
3908 { { ac_try="$ac_link"
3909case "(($ac_try" in
3910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3911 *) ac_try_echo=$ac_try;;
3912esac
3913eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3914$as_echo "$ac_try_echo"; } >&5
3915 (eval "$ac_link") 2>&5
3916 ac_status=$?
3917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3918 test $ac_status = 0; }
3919 if { ac_try='./conftest$ac_cv_exeext'
3920 { { case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923esac
3924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3925$as_echo "$ac_try_echo"; } >&5
3926 (eval "$ac_try") 2>&5
3927 ac_status=$?
3928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3929 test $ac_status = 0; }; }; then
3930 cross_compiling=no
3931 else
3932 if test "$cross_compiling" = maybe; then
3933 cross_compiling=yes
3934 else
3935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3936$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3937as_fn_error "cannot run C compiled programs.
3938If you meant to cross compile, use \`--host'.
3939See \`config.log' for more details." "$LINENO" 5; }
3940 fi
3941 fi
3942fi
3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3944$as_echo "$cross_compiling" >&6; }
3945
3946rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3947ac_clean_files=$ac_clean_files_save
3948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3949$as_echo_n "checking for suffix of object files... " >&6; } 3563$as_echo_n "checking for suffix of object files... " >&6; }
3950if test "${ac_cv_objext+set}" = set; then : 3564if test "${ac_cv_objext+set}" = set; then
3951 $as_echo_n "(cached) " >&6 3565 $as_echo_n "(cached) " >&6
3952else 3566else
3953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3567 cat >conftest.$ac_ext <<_ACEOF
3568/* confdefs.h. */
3569_ACEOF
3570cat confdefs.h >>conftest.$ac_ext
3571cat >>conftest.$ac_ext <<_ACEOF
3954/* end confdefs.h. */ 3572/* end confdefs.h. */
3955 3573
3956int 3574int
@@ -3962,17 +3580,17 @@ main ()
3962} 3580}
3963_ACEOF 3581_ACEOF
3964rm -f conftest.o conftest.obj 3582rm -f conftest.o conftest.obj
3965if { { ac_try="$ac_compile" 3583if { (ac_try="$ac_compile"
3966case "(($ac_try" in 3584case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;; 3586 *) ac_try_echo=$ac_try;;
3969esac 3587esac
3970eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3588eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971$as_echo "$ac_try_echo"; } >&5 3589$as_echo "$ac_try_echo") >&5
3972 (eval "$ac_compile") 2>&5 3590 (eval "$ac_compile") 2>&5
3973 ac_status=$? 3591 ac_status=$?
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3592 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then : 3593 (exit $ac_status); }; then
3976 for ac_file in conftest.o conftest.obj conftest.*; do 3594 for ac_file in conftest.o conftest.obj conftest.*; do
3977 test -f "$ac_file" || continue; 3595 test -f "$ac_file" || continue;
3978 case $ac_file in 3596 case $ac_file in
@@ -3985,23 +3603,29 @@ else
3985 $as_echo "$as_me: failed program was:" >&5 3603 $as_echo "$as_me: failed program was:" >&5
3986sed 's/^/| /' conftest.$ac_ext >&5 3604sed 's/^/| /' conftest.$ac_ext >&5
3987 3605
3988{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3606{ { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3989$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3607See \`config.log' for more details." >&5
3990as_fn_error "cannot compute suffix of object files: cannot compile 3608$as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3991See \`config.log' for more details." "$LINENO" 5; } 3609See \`config.log' for more details." >&2;}
3610 { (exit 1); exit 1; }; }
3992fi 3611fi
3612
3993rm -f conftest.$ac_cv_objext conftest.$ac_ext 3613rm -f conftest.$ac_cv_objext conftest.$ac_ext
3994fi 3614fi
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3615{ $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3996$as_echo "$ac_cv_objext" >&6; } 3616$as_echo "$ac_cv_objext" >&6; }
3997OBJEXT=$ac_cv_objext 3617OBJEXT=$ac_cv_objext
3998ac_objext=$OBJEXT 3618ac_objext=$OBJEXT
3999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3619{ $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4000$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3620$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4001if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3621if test "${ac_cv_c_compiler_gnu+set}" = set; then
4002 $as_echo_n "(cached) " >&6 3622 $as_echo_n "(cached) " >&6
4003else 3623else
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3624 cat >conftest.$ac_ext <<_ACEOF
3625/* confdefs.h. */
3626_ACEOF
3627cat confdefs.h >>conftest.$ac_ext
3628cat >>conftest.$ac_ext <<_ACEOF
4005/* end confdefs.h. */ 3629/* end confdefs.h. */
4006 3630
4007int 3631int
@@ -4015,16 +3639,37 @@ main ()
4015 return 0; 3639 return 0;
4016} 3640}
4017_ACEOF 3641_ACEOF
4018if ac_fn_c_try_compile "$LINENO"; then : 3642rm -f conftest.$ac_objext
3643if { (ac_try="$ac_compile"
3644case "(($ac_try" in
3645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3647esac
3648eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3649$as_echo "$ac_try_echo") >&5
3650 (eval "$ac_compile") 2>conftest.er1
3651 ac_status=$?
3652 grep -v '^ *+' conftest.er1 >conftest.err
3653 rm -f conftest.er1
3654 cat conftest.err >&5
3655 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); } && {
3657 test -z "$ac_c_werror_flag" ||
3658 test ! -s conftest.err
3659 } && test -s conftest.$ac_objext; then
4019 ac_compiler_gnu=yes 3660 ac_compiler_gnu=yes
4020else 3661else
4021 ac_compiler_gnu=no 3662 $as_echo "$as_me: failed program was:" >&5
3663sed 's/^/| /' conftest.$ac_ext >&5
3664
3665 ac_compiler_gnu=no
4022fi 3666fi
3667
4023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024ac_cv_c_compiler_gnu=$ac_compiler_gnu 3669ac_cv_c_compiler_gnu=$ac_compiler_gnu
4025 3670
4026fi 3671fi
4027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3672{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4028$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3673$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4029if test $ac_compiler_gnu = yes; then 3674if test $ac_compiler_gnu = yes; then
4030 GCC=yes 3675 GCC=yes
@@ -4033,16 +3678,20 @@ else
4033fi 3678fi
4034ac_test_CFLAGS=${CFLAGS+set} 3679ac_test_CFLAGS=${CFLAGS+set}
4035ac_save_CFLAGS=$CFLAGS 3680ac_save_CFLAGS=$CFLAGS
4036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3681{ $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4037$as_echo_n "checking whether $CC accepts -g... " >&6; } 3682$as_echo_n "checking whether $CC accepts -g... " >&6; }
4038if test "${ac_cv_prog_cc_g+set}" = set; then : 3683if test "${ac_cv_prog_cc_g+set}" = set; then
4039 $as_echo_n "(cached) " >&6 3684 $as_echo_n "(cached) " >&6
4040else 3685else
4041 ac_save_c_werror_flag=$ac_c_werror_flag 3686 ac_save_c_werror_flag=$ac_c_werror_flag
4042 ac_c_werror_flag=yes 3687 ac_c_werror_flag=yes
4043 ac_cv_prog_cc_g=no 3688 ac_cv_prog_cc_g=no
4044 CFLAGS="-g" 3689 CFLAGS="-g"
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3690 cat >conftest.$ac_ext <<_ACEOF
3691/* confdefs.h. */
3692_ACEOF
3693cat confdefs.h >>conftest.$ac_ext
3694cat >>conftest.$ac_ext <<_ACEOF
4046/* end confdefs.h. */ 3695/* end confdefs.h. */
4047 3696
4048int 3697int
@@ -4053,11 +3702,35 @@ main ()
4053 return 0; 3702 return 0;
4054} 3703}
4055_ACEOF 3704_ACEOF
4056if ac_fn_c_try_compile "$LINENO"; then : 3705rm -f conftest.$ac_objext
3706if { (ac_try="$ac_compile"
3707case "(($ac_try" in
3708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3709 *) ac_try_echo=$ac_try;;
3710esac
3711eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3712$as_echo "$ac_try_echo") >&5
3713 (eval "$ac_compile") 2>conftest.er1
3714 ac_status=$?
3715 grep -v '^ *+' conftest.er1 >conftest.err
3716 rm -f conftest.er1
3717 cat conftest.err >&5
3718 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3719 (exit $ac_status); } && {
3720 test -z "$ac_c_werror_flag" ||
3721 test ! -s conftest.err
3722 } && test -s conftest.$ac_objext; then
4057 ac_cv_prog_cc_g=yes 3723 ac_cv_prog_cc_g=yes
4058else 3724else
4059 CFLAGS="" 3725 $as_echo "$as_me: failed program was:" >&5
4060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3726sed 's/^/| /' conftest.$ac_ext >&5
3727
3728 CFLAGS=""
3729 cat >conftest.$ac_ext <<_ACEOF
3730/* confdefs.h. */
3731_ACEOF
3732cat confdefs.h >>conftest.$ac_ext
3733cat >>conftest.$ac_ext <<_ACEOF
4061/* end confdefs.h. */ 3734/* end confdefs.h. */
4062 3735
4063int 3736int
@@ -4068,12 +3741,36 @@ main ()
4068 return 0; 3741 return 0;
4069} 3742}
4070_ACEOF 3743_ACEOF
4071if ac_fn_c_try_compile "$LINENO"; then : 3744rm -f conftest.$ac_objext
4072 3745if { (ac_try="$ac_compile"
3746case "(($ac_try" in
3747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3749esac
3750eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3751$as_echo "$ac_try_echo") >&5
3752 (eval "$ac_compile") 2>conftest.er1
3753 ac_status=$?
3754 grep -v '^ *+' conftest.er1 >conftest.err
3755 rm -f conftest.er1
3756 cat conftest.err >&5
3757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); } && {
3759 test -z "$ac_c_werror_flag" ||
3760 test ! -s conftest.err
3761 } && test -s conftest.$ac_objext; then
3762 :
4073else 3763else
4074 ac_c_werror_flag=$ac_save_c_werror_flag 3764 $as_echo "$as_me: failed program was:" >&5
3765sed 's/^/| /' conftest.$ac_ext >&5
3766
3767 ac_c_werror_flag=$ac_save_c_werror_flag
4075 CFLAGS="-g" 3768 CFLAGS="-g"
4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3769 cat >conftest.$ac_ext <<_ACEOF
3770/* confdefs.h. */
3771_ACEOF
3772cat confdefs.h >>conftest.$ac_ext
3773cat >>conftest.$ac_ext <<_ACEOF
4077/* end confdefs.h. */ 3774/* end confdefs.h. */
4078 3775
4079int 3776int
@@ -4084,17 +3781,42 @@ main ()
4084 return 0; 3781 return 0;
4085} 3782}
4086_ACEOF 3783_ACEOF
4087if ac_fn_c_try_compile "$LINENO"; then : 3784rm -f conftest.$ac_objext
3785if { (ac_try="$ac_compile"
3786case "(($ac_try" in
3787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3788 *) ac_try_echo=$ac_try;;
3789esac
3790eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3791$as_echo "$ac_try_echo") >&5
3792 (eval "$ac_compile") 2>conftest.er1
3793 ac_status=$?
3794 grep -v '^ *+' conftest.er1 >conftest.err
3795 rm -f conftest.er1
3796 cat conftest.err >&5
3797 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3798 (exit $ac_status); } && {
3799 test -z "$ac_c_werror_flag" ||
3800 test ! -s conftest.err
3801 } && test -s conftest.$ac_objext; then
4088 ac_cv_prog_cc_g=yes 3802 ac_cv_prog_cc_g=yes
3803else
3804 $as_echo "$as_me: failed program was:" >&5
3805sed 's/^/| /' conftest.$ac_ext >&5
3806
3807
4089fi 3808fi
3809
4090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3810rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4091fi 3811fi
3812
4092rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3813rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093fi 3814fi
3815
4094rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3816rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 ac_c_werror_flag=$ac_save_c_werror_flag 3817 ac_c_werror_flag=$ac_save_c_werror_flag
4096fi 3818fi
4097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3819{ $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4098$as_echo "$ac_cv_prog_cc_g" >&6; } 3820$as_echo "$ac_cv_prog_cc_g" >&6; }
4099if test "$ac_test_CFLAGS" = set; then 3821if test "$ac_test_CFLAGS" = set; then
4100 CFLAGS=$ac_save_CFLAGS 3822 CFLAGS=$ac_save_CFLAGS
@@ -4111,14 +3833,18 @@ else
4111 CFLAGS= 3833 CFLAGS=
4112 fi 3834 fi
4113fi 3835fi
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3836{ $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4115$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3837$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4116if test "${ac_cv_prog_cc_c89+set}" = set; then : 3838if test "${ac_cv_prog_cc_c89+set}" = set; then
4117 $as_echo_n "(cached) " >&6 3839 $as_echo_n "(cached) " >&6
4118else 3840else
4119 ac_cv_prog_cc_c89=no 3841 ac_cv_prog_cc_c89=no
4120ac_save_CC=$CC 3842ac_save_CC=$CC
4121cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3843cat >conftest.$ac_ext <<_ACEOF
3844/* confdefs.h. */
3845_ACEOF
3846cat confdefs.h >>conftest.$ac_ext
3847cat >>conftest.$ac_ext <<_ACEOF
4122/* end confdefs.h. */ 3848/* end confdefs.h. */
4123#include <stdarg.h> 3849#include <stdarg.h>
4124#include <stdio.h> 3850#include <stdio.h>
@@ -4175,9 +3901,32 @@ for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4175 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3901 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4176do 3902do
4177 CC="$ac_save_CC $ac_arg" 3903 CC="$ac_save_CC $ac_arg"
4178 if ac_fn_c_try_compile "$LINENO"; then : 3904 rm -f conftest.$ac_objext
3905if { (ac_try="$ac_compile"
3906case "(($ac_try" in
3907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3908 *) ac_try_echo=$ac_try;;
3909esac
3910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3911$as_echo "$ac_try_echo") >&5
3912 (eval "$ac_compile") 2>conftest.er1
3913 ac_status=$?
3914 grep -v '^ *+' conftest.er1 >conftest.err
3915 rm -f conftest.er1
3916 cat conftest.err >&5
3917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3918 (exit $ac_status); } && {
3919 test -z "$ac_c_werror_flag" ||
3920 test ! -s conftest.err
3921 } && test -s conftest.$ac_objext; then
4179 ac_cv_prog_cc_c89=$ac_arg 3922 ac_cv_prog_cc_c89=$ac_arg
3923else
3924 $as_echo "$as_me: failed program was:" >&5
3925sed 's/^/| /' conftest.$ac_ext >&5
3926
3927
4180fi 3928fi
3929
4181rm -f core conftest.err conftest.$ac_objext 3930rm -f core conftest.err conftest.$ac_objext
4182 test "x$ac_cv_prog_cc_c89" != "xno" && break 3931 test "x$ac_cv_prog_cc_c89" != "xno" && break
4183done 3932done
@@ -4188,19 +3937,17 @@ fi
4188# AC_CACHE_VAL 3937# AC_CACHE_VAL
4189case "x$ac_cv_prog_cc_c89" in 3938case "x$ac_cv_prog_cc_c89" in
4190 x) 3939 x)
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3940 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4192$as_echo "none needed" >&6; } ;; 3941$as_echo "none needed" >&6; } ;;
4193 xno) 3942 xno)
4194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3943 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4195$as_echo "unsupported" >&6; } ;; 3944$as_echo "unsupported" >&6; } ;;
4196 *) 3945 *)
4197 CC="$CC $ac_cv_prog_cc_c89" 3946 CC="$CC $ac_cv_prog_cc_c89"
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3947 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4199$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3948$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4200esac 3949esac
4201if test "x$ac_cv_prog_cc_c89" != xno; then :
4202 3950
4203fi
4204 3951
4205ac_ext=c 3952ac_ext=c
4206ac_cpp='$CPP $CPPFLAGS' 3953ac_cpp='$CPP $CPPFLAGS'
@@ -4218,13 +3965,17 @@ fi
4218## using a Sun compiler, which needs -Xs to prevent whitespace. 3965## using a Sun compiler, which needs -Xs to prevent whitespace.
4219if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ 3966if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4220 test x"$CPP" = x; then 3967 test x"$CPP" = x; then
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5 3968 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4222$as_echo_n "checking whether we are using a Sun C compiler... " >&6; } 3969$as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4223 3970
4224if test "${emacs_cv_sunpro_c+set}" = set; then : 3971if test "${emacs_cv_sunpro_c+set}" = set; then
4225 $as_echo_n "(cached) " >&6 3972 $as_echo_n "(cached) " >&6
4226else 3973else
4227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3974 cat >conftest.$ac_ext <<_ACEOF
3975/* confdefs.h. */
3976_ACEOF
3977cat confdefs.h >>conftest.$ac_ext
3978cat >>conftest.$ac_ext <<_ACEOF
4228/* end confdefs.h. */ 3979/* end confdefs.h. */
4229 3980
4230int 3981int
@@ -4238,16 +3989,41 @@ fail;
4238 return 0; 3989 return 0;
4239} 3990}
4240_ACEOF 3991_ACEOF
4241if ac_fn_c_try_link "$LINENO"; then : 3992rm -f conftest.$ac_objext conftest$ac_exeext
3993if { (ac_try="$ac_link"
3994case "(($ac_try" in
3995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3996 *) ac_try_echo=$ac_try;;
3997esac
3998eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3999$as_echo "$ac_try_echo") >&5
4000 (eval "$ac_link") 2>conftest.er1
4001 ac_status=$?
4002 grep -v '^ *+' conftest.er1 >conftest.err
4003 rm -f conftest.er1
4004 cat conftest.err >&5
4005 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4006 (exit $ac_status); } && {
4007 test -z "$ac_c_werror_flag" ||
4008 test ! -s conftest.err
4009 } && test -s conftest$ac_exeext && {
4010 test "$cross_compiling" = yes ||
4011 $as_test_x conftest$ac_exeext
4012 }; then
4242 emacs_cv_sunpro_c=yes 4013 emacs_cv_sunpro_c=yes
4243else 4014else
4244 emacs_cv_sunpro_c=no 4015 $as_echo "$as_me: failed program was:" >&5
4016sed 's/^/| /' conftest.$ac_ext >&5
4017
4018 emacs_cv_sunpro_c=no
4245fi 4019fi
4246rm -f core conftest.err conftest.$ac_objext \ 4020
4247 conftest$ac_exeext conftest.$ac_ext 4021rm -rf conftest.dSYM
4022rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4023 conftest$ac_exeext conftest.$ac_ext
4248fi 4024fi
4249 4025
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5 4026 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4251$as_echo "$emacs_cv_sunpro_c" >&6; } 4027$as_echo "$emacs_cv_sunpro_c" >&6; }
4252 4028
4253 if test x"$emacs_cv_sunpro_c" = xyes; then 4029 if test x"$emacs_cv_sunpro_c" = xyes; then
@@ -4287,14 +4063,14 @@ ac_cpp='$CPP $CPPFLAGS'
4287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4063ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4064ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4289ac_compiler_gnu=$ac_cv_c_compiler_gnu 4065ac_compiler_gnu=$ac_cv_c_compiler_gnu
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4066{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4291$as_echo_n "checking how to run the C preprocessor... " >&6; } 4067$as_echo_n "checking how to run the C preprocessor... " >&6; }
4292# On Suns, sometimes $CPP names a directory. 4068# On Suns, sometimes $CPP names a directory.
4293if test -n "$CPP" && test -d "$CPP"; then 4069if test -n "$CPP" && test -d "$CPP"; then
4294 CPP= 4070 CPP=
4295fi 4071fi
4296if test -z "$CPP"; then 4072if test -z "$CPP"; then
4297 if test "${ac_cv_prog_CPP+set}" = set; then : 4073 if test "${ac_cv_prog_CPP+set}" = set; then
4298 $as_echo_n "(cached) " >&6 4074 $as_echo_n "(cached) " >&6
4299else 4075else
4300 # Double quotes because CPP needs to be expanded 4076 # Double quotes because CPP needs to be expanded
@@ -4309,7 +4085,11 @@ do
4309 # <limits.h> exists even on freestanding compilers. 4085 # <limits.h> exists even on freestanding compilers.
4310 # On the NeXT, cc -E runs the code through the compiler's parser, 4086 # On the NeXT, cc -E runs the code through the compiler's parser,
4311 # not just through cpp. "Syntax error" is here to catch this case. 4087 # not just through cpp. "Syntax error" is here to catch this case.
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4088 cat >conftest.$ac_ext <<_ACEOF
4089/* confdefs.h. */
4090_ACEOF
4091cat confdefs.h >>conftest.$ac_ext
4092cat >>conftest.$ac_ext <<_ACEOF
4313/* end confdefs.h. */ 4093/* end confdefs.h. */
4314#ifdef __STDC__ 4094#ifdef __STDC__
4315# include <limits.h> 4095# include <limits.h>
@@ -4318,34 +4098,78 @@ do
4318#endif 4098#endif
4319 Syntax error 4099 Syntax error
4320_ACEOF 4100_ACEOF
4321if ac_fn_c_try_cpp "$LINENO"; then : 4101if { (ac_try="$ac_cpp conftest.$ac_ext"
4322 4102case "(($ac_try" in
4103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4104 *) ac_try_echo=$ac_try;;
4105esac
4106eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4107$as_echo "$ac_try_echo") >&5
4108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4109 ac_status=$?
4110 grep -v '^ *+' conftest.er1 >conftest.err
4111 rm -f conftest.er1
4112 cat conftest.err >&5
4113 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4114 (exit $ac_status); } >/dev/null && {
4115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4116 test ! -s conftest.err
4117 }; then
4118 :
4323else 4119else
4120 $as_echo "$as_me: failed program was:" >&5
4121sed 's/^/| /' conftest.$ac_ext >&5
4122
4324 # Broken: fails on valid input. 4123 # Broken: fails on valid input.
4325continue 4124continue
4326fi 4125fi
4126
4327rm -f conftest.err conftest.$ac_ext 4127rm -f conftest.err conftest.$ac_ext
4328 4128
4329 # OK, works on sane cases. Now check whether nonexistent headers 4129 # OK, works on sane cases. Now check whether nonexistent headers
4330 # can be detected and how. 4130 # can be detected and how.
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4131 cat >conftest.$ac_ext <<_ACEOF
4132/* confdefs.h. */
4133_ACEOF
4134cat confdefs.h >>conftest.$ac_ext
4135cat >>conftest.$ac_ext <<_ACEOF
4332/* end confdefs.h. */ 4136/* end confdefs.h. */
4333#include <ac_nonexistent.h> 4137#include <ac_nonexistent.h>
4334_ACEOF 4138_ACEOF
4335if ac_fn_c_try_cpp "$LINENO"; then : 4139if { (ac_try="$ac_cpp conftest.$ac_ext"
4140case "(($ac_try" in
4141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4142 *) ac_try_echo=$ac_try;;
4143esac
4144eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4145$as_echo "$ac_try_echo") >&5
4146 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4147 ac_status=$?
4148 grep -v '^ *+' conftest.er1 >conftest.err
4149 rm -f conftest.er1
4150 cat conftest.err >&5
4151 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4152 (exit $ac_status); } >/dev/null && {
4153 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4154 test ! -s conftest.err
4155 }; then
4336 # Broken: success on invalid input. 4156 # Broken: success on invalid input.
4337continue 4157continue
4338else 4158else
4159 $as_echo "$as_me: failed program was:" >&5
4160sed 's/^/| /' conftest.$ac_ext >&5
4161
4339 # Passes both tests. 4162 # Passes both tests.
4340ac_preproc_ok=: 4163ac_preproc_ok=:
4341break 4164break
4342fi 4165fi
4166
4343rm -f conftest.err conftest.$ac_ext 4167rm -f conftest.err conftest.$ac_ext
4344 4168
4345done 4169done
4346# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4170# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4347rm -f conftest.err conftest.$ac_ext 4171rm -f conftest.err conftest.$ac_ext
4348if $ac_preproc_ok; then : 4172if $ac_preproc_ok; then
4349 break 4173 break
4350fi 4174fi
4351 4175
@@ -4357,7 +4181,7 @@ fi
4357else 4181else
4358 ac_cv_prog_CPP=$CPP 4182 ac_cv_prog_CPP=$CPP
4359fi 4183fi
4360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4184{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4361$as_echo "$CPP" >&6; } 4185$as_echo "$CPP" >&6; }
4362ac_preproc_ok=false 4186ac_preproc_ok=false
4363for ac_c_preproc_warn_flag in '' yes 4187for ac_c_preproc_warn_flag in '' yes
@@ -4368,7 +4192,11 @@ do
4368 # <limits.h> exists even on freestanding compilers. 4192 # <limits.h> exists even on freestanding compilers.
4369 # On the NeXT, cc -E runs the code through the compiler's parser, 4193 # On the NeXT, cc -E runs the code through the compiler's parser,
4370 # not just through cpp. "Syntax error" is here to catch this case. 4194 # not just through cpp. "Syntax error" is here to catch this case.
4371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4195 cat >conftest.$ac_ext <<_ACEOF
4196/* confdefs.h. */
4197_ACEOF
4198cat confdefs.h >>conftest.$ac_ext
4199cat >>conftest.$ac_ext <<_ACEOF
4372/* end confdefs.h. */ 4200/* end confdefs.h. */
4373#ifdef __STDC__ 4201#ifdef __STDC__
4374# include <limits.h> 4202# include <limits.h>
@@ -4377,40 +4205,85 @@ do
4377#endif 4205#endif
4378 Syntax error 4206 Syntax error
4379_ACEOF 4207_ACEOF
4380if ac_fn_c_try_cpp "$LINENO"; then : 4208if { (ac_try="$ac_cpp conftest.$ac_ext"
4381 4209case "(($ac_try" in
4210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4211 *) ac_try_echo=$ac_try;;
4212esac
4213eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4214$as_echo "$ac_try_echo") >&5
4215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4216 ac_status=$?
4217 grep -v '^ *+' conftest.er1 >conftest.err
4218 rm -f conftest.er1
4219 cat conftest.err >&5
4220 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); } >/dev/null && {
4222 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4223 test ! -s conftest.err
4224 }; then
4225 :
4382else 4226else
4227 $as_echo "$as_me: failed program was:" >&5
4228sed 's/^/| /' conftest.$ac_ext >&5
4229
4383 # Broken: fails on valid input. 4230 # Broken: fails on valid input.
4384continue 4231continue
4385fi 4232fi
4233
4386rm -f conftest.err conftest.$ac_ext 4234rm -f conftest.err conftest.$ac_ext
4387 4235
4388 # OK, works on sane cases. Now check whether nonexistent headers 4236 # OK, works on sane cases. Now check whether nonexistent headers
4389 # can be detected and how. 4237 # can be detected and how.
4390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4238 cat >conftest.$ac_ext <<_ACEOF
4239/* confdefs.h. */
4240_ACEOF
4241cat confdefs.h >>conftest.$ac_ext
4242cat >>conftest.$ac_ext <<_ACEOF
4391/* end confdefs.h. */ 4243/* end confdefs.h. */
4392#include <ac_nonexistent.h> 4244#include <ac_nonexistent.h>
4393_ACEOF 4245_ACEOF
4394if ac_fn_c_try_cpp "$LINENO"; then : 4246if { (ac_try="$ac_cpp conftest.$ac_ext"
4247case "(($ac_try" in
4248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4249 *) ac_try_echo=$ac_try;;
4250esac
4251eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4252$as_echo "$ac_try_echo") >&5
4253 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4254 ac_status=$?
4255 grep -v '^ *+' conftest.er1 >conftest.err
4256 rm -f conftest.er1
4257 cat conftest.err >&5
4258 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4259 (exit $ac_status); } >/dev/null && {
4260 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4261 test ! -s conftest.err
4262 }; then
4395 # Broken: success on invalid input. 4263 # Broken: success on invalid input.
4396continue 4264continue
4397else 4265else
4266 $as_echo "$as_me: failed program was:" >&5
4267sed 's/^/| /' conftest.$ac_ext >&5
4268
4398 # Passes both tests. 4269 # Passes both tests.
4399ac_preproc_ok=: 4270ac_preproc_ok=:
4400break 4271break
4401fi 4272fi
4273
4402rm -f conftest.err conftest.$ac_ext 4274rm -f conftest.err conftest.$ac_ext
4403 4275
4404done 4276done
4405# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4277# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4406rm -f conftest.err conftest.$ac_ext 4278rm -f conftest.err conftest.$ac_ext
4407if $ac_preproc_ok; then : 4279if $ac_preproc_ok; then
4408 4280 :
4409else 4281else
4410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4282 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4411$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4283See \`config.log' for more details." >&5
4412as_fn_error "C preprocessor \"$CPP\" fails sanity check 4284$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4413See \`config.log' for more details." "$LINENO" 5; } 4285See \`config.log' for more details." >&2;}
4286 { (exit 1); exit 1; }; }
4414fi 4287fi
4415 4288
4416ac_ext=c 4289ac_ext=c
@@ -4420,9 +4293,9 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
4420ac_compiler_gnu=$ac_cv_c_compiler_gnu 4293ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421 4294
4422 4295
4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4296{ $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4424$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4297$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4425if test "${ac_cv_path_GREP+set}" = set; then : 4298if test "${ac_cv_path_GREP+set}" = set; then
4426 $as_echo_n "(cached) " >&6 4299 $as_echo_n "(cached) " >&6
4427else 4300else
4428 if test -z "$GREP"; then 4301 if test -z "$GREP"; then
@@ -4433,7 +4306,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4433do 4306do
4434 IFS=$as_save_IFS 4307 IFS=$as_save_IFS
4435 test -z "$as_dir" && as_dir=. 4308 test -z "$as_dir" && as_dir=.
4436 for ac_prog in grep ggrep; do 4309 for ac_prog in grep ggrep; do
4437 for ac_exec_ext in '' $ac_executable_extensions; do 4310 for ac_exec_ext in '' $ac_executable_extensions; do
4438 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4311 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4439 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4312 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
@@ -4453,7 +4326,7 @@ case `"$ac_path_GREP" --version 2>&1` in
4453 $as_echo 'GREP' >> "conftest.nl" 4326 $as_echo 'GREP' >> "conftest.nl"
4454 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4327 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4455 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4456 as_fn_arith $ac_count + 1 && ac_count=$as_val 4329 ac_count=`expr $ac_count + 1`
4457 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4330 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4458 # Best one so far, save it but keep looking for a better one 4331 # Best one so far, save it but keep looking for a better one
4459 ac_cv_path_GREP="$ac_path_GREP" 4332 ac_cv_path_GREP="$ac_path_GREP"
@@ -4468,24 +4341,26 @@ esac
4468 $ac_path_GREP_found && break 3 4341 $ac_path_GREP_found && break 3
4469 done 4342 done
4470 done 4343 done
4471 done 4344done
4472IFS=$as_save_IFS 4345IFS=$as_save_IFS
4473 if test -z "$ac_cv_path_GREP"; then 4346 if test -z "$ac_cv_path_GREP"; then
4474 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4347 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4348$as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4349 { (exit 1); exit 1; }; }
4475 fi 4350 fi
4476else 4351else
4477 ac_cv_path_GREP=$GREP 4352 ac_cv_path_GREP=$GREP
4478fi 4353fi
4479 4354
4480fi 4355fi
4481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4356{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4482$as_echo "$ac_cv_path_GREP" >&6; } 4357$as_echo "$ac_cv_path_GREP" >&6; }
4483 GREP="$ac_cv_path_GREP" 4358 GREP="$ac_cv_path_GREP"
4484 4359
4485 4360
4486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4361{ $as_echo "$as_me:$LINENO: checking for egrep" >&5
4487$as_echo_n "checking for egrep... " >&6; } 4362$as_echo_n "checking for egrep... " >&6; }
4488if test "${ac_cv_path_EGREP+set}" = set; then : 4363if test "${ac_cv_path_EGREP+set}" = set; then
4489 $as_echo_n "(cached) " >&6 4364 $as_echo_n "(cached) " >&6
4490else 4365else
4491 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4366 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
@@ -4499,7 +4374,7 @@ for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4499do 4374do
4500 IFS=$as_save_IFS 4375 IFS=$as_save_IFS
4501 test -z "$as_dir" && as_dir=. 4376 test -z "$as_dir" && as_dir=.
4502 for ac_prog in egrep; do 4377 for ac_prog in egrep; do
4503 for ac_exec_ext in '' $ac_executable_extensions; do 4378 for ac_exec_ext in '' $ac_executable_extensions; do
4504 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4379 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4505 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4380 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
@@ -4519,7 +4394,7 @@ case `"$ac_path_EGREP" --version 2>&1` in
4519 $as_echo 'EGREP' >> "conftest.nl" 4394 $as_echo 'EGREP' >> "conftest.nl"
4520 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4395 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4521 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4396 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4522 as_fn_arith $ac_count + 1 && ac_count=$as_val 4397 ac_count=`expr $ac_count + 1`
4523 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4398 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4524 # Best one so far, save it but keep looking for a better one 4399 # Best one so far, save it but keep looking for a better one
4525 ac_cv_path_EGREP="$ac_path_EGREP" 4400 ac_cv_path_EGREP="$ac_path_EGREP"
@@ -4534,10 +4409,12 @@ esac
4534 $ac_path_EGREP_found && break 3 4409 $ac_path_EGREP_found && break 3
4535 done 4410 done
4536 done 4411 done
4537 done 4412done
4538IFS=$as_save_IFS 4413IFS=$as_save_IFS
4539 if test -z "$ac_cv_path_EGREP"; then 4414 if test -z "$ac_cv_path_EGREP"; then
4540 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4415 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4416$as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4417 { (exit 1); exit 1; }; }
4541 fi 4418 fi
4542else 4419else
4543 ac_cv_path_EGREP=$EGREP 4420 ac_cv_path_EGREP=$EGREP
@@ -4545,17 +4422,21 @@ fi
4545 4422
4546 fi 4423 fi
4547fi 4424fi
4548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4425{ $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4549$as_echo "$ac_cv_path_EGREP" >&6; } 4426$as_echo "$ac_cv_path_EGREP" >&6; }
4550 EGREP="$ac_cv_path_EGREP" 4427 EGREP="$ac_cv_path_EGREP"
4551 4428
4552 4429
4553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4430{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4554$as_echo_n "checking for ANSI C header files... " >&6; } 4431$as_echo_n "checking for ANSI C header files... " >&6; }
4555if test "${ac_cv_header_stdc+set}" = set; then : 4432if test "${ac_cv_header_stdc+set}" = set; then
4556 $as_echo_n "(cached) " >&6 4433 $as_echo_n "(cached) " >&6
4557else 4434else
4558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4435 cat >conftest.$ac_ext <<_ACEOF
4436/* confdefs.h. */
4437_ACEOF
4438cat confdefs.h >>conftest.$ac_ext
4439cat >>conftest.$ac_ext <<_ACEOF
4559/* end confdefs.h. */ 4440/* end confdefs.h. */
4560#include <stdlib.h> 4441#include <stdlib.h>
4561#include <stdarg.h> 4442#include <stdarg.h>
@@ -4570,23 +4451,48 @@ main ()
4570 return 0; 4451 return 0;
4571} 4452}
4572_ACEOF 4453_ACEOF
4573if ac_fn_c_try_compile "$LINENO"; then : 4454rm -f conftest.$ac_objext
4455if { (ac_try="$ac_compile"
4456case "(($ac_try" in
4457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4458 *) ac_try_echo=$ac_try;;
4459esac
4460eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4461$as_echo "$ac_try_echo") >&5
4462 (eval "$ac_compile") 2>conftest.er1
4463 ac_status=$?
4464 grep -v '^ *+' conftest.er1 >conftest.err
4465 rm -f conftest.er1
4466 cat conftest.err >&5
4467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); } && {
4469 test -z "$ac_c_werror_flag" ||
4470 test ! -s conftest.err
4471 } && test -s conftest.$ac_objext; then
4574 ac_cv_header_stdc=yes 4472 ac_cv_header_stdc=yes
4575else 4473else
4576 ac_cv_header_stdc=no 4474 $as_echo "$as_me: failed program was:" >&5
4475sed 's/^/| /' conftest.$ac_ext >&5
4476
4477 ac_cv_header_stdc=no
4577fi 4478fi
4479
4578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4480rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4579 4481
4580if test $ac_cv_header_stdc = yes; then 4482if test $ac_cv_header_stdc = yes; then
4581 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4483 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4484 cat >conftest.$ac_ext <<_ACEOF
4485/* confdefs.h. */
4486_ACEOF
4487cat confdefs.h >>conftest.$ac_ext
4488cat >>conftest.$ac_ext <<_ACEOF
4583/* end confdefs.h. */ 4489/* end confdefs.h. */
4584#include <string.h> 4490#include <string.h>
4585 4491
4586_ACEOF 4492_ACEOF
4587if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4493if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4588 $EGREP "memchr" >/dev/null 2>&1; then : 4494 $EGREP "memchr" >/dev/null 2>&1; then
4589 4495 :
4590else 4496else
4591 ac_cv_header_stdc=no 4497 ac_cv_header_stdc=no
4592fi 4498fi
@@ -4596,14 +4502,18 @@ fi
4596 4502
4597if test $ac_cv_header_stdc = yes; then 4503if test $ac_cv_header_stdc = yes; then
4598 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4504 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4505 cat >conftest.$ac_ext <<_ACEOF
4506/* confdefs.h. */
4507_ACEOF
4508cat confdefs.h >>conftest.$ac_ext
4509cat >>conftest.$ac_ext <<_ACEOF
4600/* end confdefs.h. */ 4510/* end confdefs.h. */
4601#include <stdlib.h> 4511#include <stdlib.h>
4602 4512
4603_ACEOF 4513_ACEOF
4604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4514if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "free" >/dev/null 2>&1; then : 4515 $EGREP "free" >/dev/null 2>&1; then
4606 4516 :
4607else 4517else
4608 ac_cv_header_stdc=no 4518 ac_cv_header_stdc=no
4609fi 4519fi
@@ -4613,10 +4523,14 @@ fi
4613 4523
4614if test $ac_cv_header_stdc = yes; then 4524if test $ac_cv_header_stdc = yes; then
4615 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4525 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4616 if test "$cross_compiling" = yes; then : 4526 if test "$cross_compiling" = yes; then
4617 : 4527 :
4618else 4528else
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4529 cat >conftest.$ac_ext <<_ACEOF
4530/* confdefs.h. */
4531_ACEOF
4532cat confdefs.h >>conftest.$ac_ext
4533cat >>conftest.$ac_ext <<_ACEOF
4620/* end confdefs.h. */ 4534/* end confdefs.h. */
4621#include <ctype.h> 4535#include <ctype.h>
4622#include <stdlib.h> 4536#include <stdlib.h>
@@ -4643,34 +4557,117 @@ main ()
4643 return 0; 4557 return 0;
4644} 4558}
4645_ACEOF 4559_ACEOF
4646if ac_fn_c_try_run "$LINENO"; then : 4560rm -f conftest$ac_exeext
4647 4561if { (ac_try="$ac_link"
4562case "(($ac_try" in
4563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4564 *) ac_try_echo=$ac_try;;
4565esac
4566eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4567$as_echo "$ac_try_echo") >&5
4568 (eval "$ac_link") 2>&5
4569 ac_status=$?
4570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4571 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4572 { (case "(($ac_try" in
4573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4574 *) ac_try_echo=$ac_try;;
4575esac
4576eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4577$as_echo "$ac_try_echo") >&5
4578 (eval "$ac_try") 2>&5
4579 ac_status=$?
4580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4581 (exit $ac_status); }; }; then
4582 :
4648else 4583else
4649 ac_cv_header_stdc=no 4584 $as_echo "$as_me: program exited with status $ac_status" >&5
4585$as_echo "$as_me: failed program was:" >&5
4586sed 's/^/| /' conftest.$ac_ext >&5
4587
4588( exit $ac_status )
4589ac_cv_header_stdc=no
4650fi 4590fi
4651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4591rm -rf conftest.dSYM
4652 conftest.$ac_objext conftest.beam conftest.$ac_ext 4592rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4653fi 4593fi
4654 4594
4595
4655fi 4596fi
4656fi 4597fi
4657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4598{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4658$as_echo "$ac_cv_header_stdc" >&6; } 4599$as_echo "$ac_cv_header_stdc" >&6; }
4659if test $ac_cv_header_stdc = yes; then 4600if test $ac_cv_header_stdc = yes; then
4660 4601
4661$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4602cat >>confdefs.h <<\_ACEOF
4603#define STDC_HEADERS 1
4604_ACEOF
4662 4605
4663fi 4606fi
4664 4607
4665# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4608# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4609
4610
4611
4612
4613
4614
4615
4616
4617
4666for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4618for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4667 inttypes.h stdint.h unistd.h 4619 inttypes.h stdint.h unistd.h
4668do : 4620do
4669 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4621as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4670ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4622{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4671" 4623$as_echo_n "checking for $ac_header... " >&6; }
4672eval as_val=\$$as_ac_Header 4624if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4673 if test "x$as_val" = x""yes; then : 4625 $as_echo_n "(cached) " >&6
4626else
4627 cat >conftest.$ac_ext <<_ACEOF
4628/* confdefs.h. */
4629_ACEOF
4630cat confdefs.h >>conftest.$ac_ext
4631cat >>conftest.$ac_ext <<_ACEOF
4632/* end confdefs.h. */
4633$ac_includes_default
4634
4635#include <$ac_header>
4636_ACEOF
4637rm -f conftest.$ac_objext
4638if { (ac_try="$ac_compile"
4639case "(($ac_try" in
4640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4642esac
4643eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4644$as_echo "$ac_try_echo") >&5
4645 (eval "$ac_compile") 2>conftest.er1
4646 ac_status=$?
4647 grep -v '^ *+' conftest.er1 >conftest.err
4648 rm -f conftest.er1
4649 cat conftest.err >&5
4650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.$ac_objext; then
4655 eval "$as_ac_Header=yes"
4656else
4657 $as_echo "$as_me: failed program was:" >&5
4658sed 's/^/| /' conftest.$ac_ext >&5
4659
4660 eval "$as_ac_Header=no"
4661fi
4662
4663rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664fi
4665ac_res=`eval 'as_val=${'$as_ac_Header'}
4666 $as_echo "$as_val"'`
4667 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4668$as_echo "$ac_res" >&6; }
4669if test `eval 'as_val=${'$as_ac_Header'}
4670 $as_echo "$as_val"'` = yes; then
4674 cat >>confdefs.h <<_ACEOF 4671 cat >>confdefs.h <<_ACEOF
4675#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4672#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4676_ACEOF 4673_ACEOF
@@ -4681,8 +4678,134 @@ done
4681 4678
4682 4679
4683 4680
4684 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4681 if test "${ac_cv_header_minix_config_h+set}" = set; then
4685if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4682 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4683$as_echo_n "checking for minix/config.h... " >&6; }
4684if test "${ac_cv_header_minix_config_h+set}" = set; then
4685 $as_echo_n "(cached) " >&6
4686fi
4687{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4688$as_echo "$ac_cv_header_minix_config_h" >&6; }
4689else
4690 # Is the header compilable?
4691{ $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4692$as_echo_n "checking minix/config.h usability... " >&6; }
4693cat >conftest.$ac_ext <<_ACEOF
4694/* confdefs.h. */
4695_ACEOF
4696cat confdefs.h >>conftest.$ac_ext
4697cat >>conftest.$ac_ext <<_ACEOF
4698/* end confdefs.h. */
4699$ac_includes_default
4700#include <minix/config.h>
4701_ACEOF
4702rm -f conftest.$ac_objext
4703if { (ac_try="$ac_compile"
4704case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707esac
4708eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4709$as_echo "$ac_try_echo") >&5
4710 (eval "$ac_compile") 2>conftest.er1
4711 ac_status=$?
4712 grep -v '^ *+' conftest.er1 >conftest.err
4713 rm -f conftest.er1
4714 cat conftest.err >&5
4715 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); } && {
4717 test -z "$ac_c_werror_flag" ||
4718 test ! -s conftest.err
4719 } && test -s conftest.$ac_objext; then
4720 ac_header_compiler=yes
4721else
4722 $as_echo "$as_me: failed program was:" >&5
4723sed 's/^/| /' conftest.$ac_ext >&5
4724
4725 ac_header_compiler=no
4726fi
4727
4728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4730$as_echo "$ac_header_compiler" >&6; }
4731
4732# Is the header present?
4733{ $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4734$as_echo_n "checking minix/config.h presence... " >&6; }
4735cat >conftest.$ac_ext <<_ACEOF
4736/* confdefs.h. */
4737_ACEOF
4738cat confdefs.h >>conftest.$ac_ext
4739cat >>conftest.$ac_ext <<_ACEOF
4740/* end confdefs.h. */
4741#include <minix/config.h>
4742_ACEOF
4743if { (ac_try="$ac_cpp conftest.$ac_ext"
4744case "(($ac_try" in
4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4746 *) ac_try_echo=$ac_try;;
4747esac
4748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4749$as_echo "$ac_try_echo") >&5
4750 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4751 ac_status=$?
4752 grep -v '^ *+' conftest.er1 >conftest.err
4753 rm -f conftest.er1
4754 cat conftest.err >&5
4755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4756 (exit $ac_status); } >/dev/null && {
4757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4758 test ! -s conftest.err
4759 }; then
4760 ac_header_preproc=yes
4761else
4762 $as_echo "$as_me: failed program was:" >&5
4763sed 's/^/| /' conftest.$ac_ext >&5
4764
4765 ac_header_preproc=no
4766fi
4767
4768rm -f conftest.err conftest.$ac_ext
4769{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4770$as_echo "$ac_header_preproc" >&6; }
4771
4772# So? What about this header?
4773case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4774 yes:no: )
4775 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4776$as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4778$as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4779 ac_header_preproc=yes
4780 ;;
4781 no:yes:* )
4782 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4783$as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4784 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4785$as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4786 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4787$as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4788 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4789$as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4790 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4791$as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4792 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4793$as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4794
4795 ;;
4796esac
4797{ $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4798$as_echo_n "checking for minix/config.h... " >&6; }
4799if test "${ac_cv_header_minix_config_h+set}" = set; then
4800 $as_echo_n "(cached) " >&6
4801else
4802 ac_cv_header_minix_config_h=$ac_header_preproc
4803fi
4804{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4805$as_echo "$ac_cv_header_minix_config_h" >&6; }
4806
4807fi
4808if test $ac_cv_header_minix_config_h = yes; then
4686 MINIX=yes 4809 MINIX=yes
4687else 4810else
4688 MINIX= 4811 MINIX=
@@ -4691,23 +4814,34 @@ fi
4691 4814
4692 if test "$MINIX" = yes; then 4815 if test "$MINIX" = yes; then
4693 4816
4694$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4817cat >>confdefs.h <<\_ACEOF
4818#define _POSIX_SOURCE 1
4819_ACEOF
4695 4820
4696 4821
4697$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4822cat >>confdefs.h <<\_ACEOF
4823#define _POSIX_1_SOURCE 2
4824_ACEOF
4698 4825
4699 4826
4700$as_echo "#define _MINIX 1" >>confdefs.h 4827cat >>confdefs.h <<\_ACEOF
4828#define _MINIX 1
4829_ACEOF
4701 4830
4702 fi 4831 fi
4703 4832
4704 4833
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4834
4835 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4706$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4836$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4707if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4837if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4708 $as_echo_n "(cached) " >&6 4838 $as_echo_n "(cached) " >&6
4709else 4839else
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4840 cat >conftest.$ac_ext <<_ACEOF
4841/* confdefs.h. */
4842_ACEOF
4843cat confdefs.h >>conftest.$ac_ext
4844cat >>conftest.$ac_ext <<_ACEOF
4711/* end confdefs.h. */ 4845/* end confdefs.h. */
4712 4846
4713# define __EXTENSIONS__ 1 4847# define __EXTENSIONS__ 1
@@ -4720,34 +4854,69 @@ main ()
4720 return 0; 4854 return 0;
4721} 4855}
4722_ACEOF 4856_ACEOF
4723if ac_fn_c_try_compile "$LINENO"; then : 4857rm -f conftest.$ac_objext
4858if { (ac_try="$ac_compile"
4859case "(($ac_try" in
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4862esac
4863eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4864$as_echo "$ac_try_echo") >&5
4865 (eval "$ac_compile") 2>conftest.er1
4866 ac_status=$?
4867 grep -v '^ *+' conftest.er1 >conftest.err
4868 rm -f conftest.er1
4869 cat conftest.err >&5
4870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4871 (exit $ac_status); } && {
4872 test -z "$ac_c_werror_flag" ||
4873 test ! -s conftest.err
4874 } && test -s conftest.$ac_objext; then
4724 ac_cv_safe_to_define___extensions__=yes 4875 ac_cv_safe_to_define___extensions__=yes
4725else 4876else
4726 ac_cv_safe_to_define___extensions__=no 4877 $as_echo "$as_me: failed program was:" >&5
4878sed 's/^/| /' conftest.$ac_ext >&5
4879
4880 ac_cv_safe_to_define___extensions__=no
4727fi 4881fi
4882
4728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4729fi 4884fi
4730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4885{ $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4731$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4886$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4732 test $ac_cv_safe_to_define___extensions__ = yes && 4887 test $ac_cv_safe_to_define___extensions__ = yes &&
4733 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4888 cat >>confdefs.h <<\_ACEOF
4889#define __EXTENSIONS__ 1
4890_ACEOF
4734 4891
4735 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4892 cat >>confdefs.h <<\_ACEOF
4893#define _ALL_SOURCE 1
4894_ACEOF
4736 4895
4737 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4896 cat >>confdefs.h <<\_ACEOF
4897#define _GNU_SOURCE 1
4898_ACEOF
4738 4899
4739 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4900 cat >>confdefs.h <<\_ACEOF
4901#define _POSIX_PTHREAD_SEMANTICS 1
4902_ACEOF
4740 4903
4741 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4904 cat >>confdefs.h <<\_ACEOF
4905#define _TANDEM_SOURCE 1
4906_ACEOF
4742 4907
4743 4908
4744 4909
4745### Use -Wno-pointer-sign if the compiler supports it 4910### Use -Wno-pointer-sign if the compiler supports it
4746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5 4911{ $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4747$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; } 4912$as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4748SAVE_CFLAGS="$CFLAGS" 4913SAVE_CFLAGS="$CFLAGS"
4749CFLAGS="$CFLAGS -Wno-pointer-sign" 4914CFLAGS="$CFLAGS -Wno-pointer-sign"
4750cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4915cat >conftest.$ac_ext <<_ACEOF
4916/* confdefs.h. */
4917_ACEOF
4918cat confdefs.h >>conftest.$ac_ext
4919cat >>conftest.$ac_ext <<_ACEOF
4751/* end confdefs.h. */ 4920/* end confdefs.h. */
4752 4921
4753int 4922int
@@ -4758,27 +4927,52 @@ main ()
4758 return 0; 4927 return 0;
4759} 4928}
4760_ACEOF 4929_ACEOF
4761if ac_fn_c_try_compile "$LINENO"; then : 4930rm -f conftest.$ac_objext
4931if { (ac_try="$ac_compile"
4932case "(($ac_try" in
4933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4934 *) ac_try_echo=$ac_try;;
4935esac
4936eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4937$as_echo "$ac_try_echo") >&5
4938 (eval "$ac_compile") 2>conftest.er1
4939 ac_status=$?
4940 grep -v '^ *+' conftest.er1 >conftest.err
4941 rm -f conftest.er1
4942 cat conftest.err >&5
4943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4944 (exit $ac_status); } && {
4945 test -z "$ac_c_werror_flag" ||
4946 test ! -s conftest.err
4947 } && test -s conftest.$ac_objext; then
4762 has_option=yes 4948 has_option=yes
4763else 4949else
4764 has_option=no 4950 $as_echo "$as_me: failed program was:" >&5
4951sed 's/^/| /' conftest.$ac_ext >&5
4952
4953 has_option=no
4765fi 4954fi
4955
4766rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4956rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4767if test $has_option = yes; then 4957if test $has_option = yes; then
4768 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" 4958 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4769fi 4959fi
4770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 4960{ $as_echo "$as_me:$LINENO: result: $has_option" >&5
4771$as_echo "$has_option" >&6; } 4961$as_echo "$has_option" >&6; }
4772CFLAGS="$SAVE_CFLAGS" 4962CFLAGS="$SAVE_CFLAGS"
4773unset has_option 4963unset has_option
4774unset SAVE_CFLAGS 4964unset SAVE_CFLAGS
4775 4965
4776### Use -Wdeclaration-after-statement if the compiler supports it 4966### Use -Wdeclaration-after-statement if the compiler supports it
4777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5 4967{ $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4778$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } 4968$as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4779SAVE_CFLAGS="$CFLAGS" 4969SAVE_CFLAGS="$CFLAGS"
4780CFLAGS="$CFLAGS -Wdeclaration-after-statement" 4970CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4781cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4971cat >conftest.$ac_ext <<_ACEOF
4972/* confdefs.h. */
4973_ACEOF
4974cat confdefs.h >>conftest.$ac_ext
4975cat >>conftest.$ac_ext <<_ACEOF
4782/* end confdefs.h. */ 4976/* end confdefs.h. */
4783 4977
4784int 4978int
@@ -4789,16 +4983,37 @@ main ()
4789 return 0; 4983 return 0;
4790} 4984}
4791_ACEOF 4985_ACEOF
4792if ac_fn_c_try_compile "$LINENO"; then : 4986rm -f conftest.$ac_objext
4987if { (ac_try="$ac_compile"
4988case "(($ac_try" in
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4991esac
4992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4993$as_echo "$ac_try_echo") >&5
4994 (eval "$ac_compile") 2>conftest.er1
4995 ac_status=$?
4996 grep -v '^ *+' conftest.er1 >conftest.err
4997 rm -f conftest.er1
4998 cat conftest.err >&5
4999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5000 (exit $ac_status); } && {
5001 test -z "$ac_c_werror_flag" ||
5002 test ! -s conftest.err
5003 } && test -s conftest.$ac_objext; then
4793 has_option=yes 5004 has_option=yes
4794else 5005else
4795 has_option=no 5006 $as_echo "$as_me: failed program was:" >&5
5007sed 's/^/| /' conftest.$ac_ext >&5
5008
5009 has_option=no
4796fi 5010fi
5011
4797rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5012rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798if test $has_option = yes; then 5013if test $has_option = yes; then
4799 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" 5014 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4800fi 5015fi
4801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 5016{ $as_echo "$as_me:$LINENO: result: $has_option" >&5
4802$as_echo "$has_option" >&6; } 5017$as_echo "$has_option" >&6; }
4803CFLAGS="$SAVE_CFLAGS" 5018CFLAGS="$SAVE_CFLAGS"
4804unset has_option 5019unset has_option
@@ -4811,14 +5026,14 @@ ac_cpp='$CPP $CPPFLAGS'
4811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5026ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5027ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4813ac_compiler_gnu=$ac_cv_c_compiler_gnu 5028ac_compiler_gnu=$ac_cv_c_compiler_gnu
4814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5029{ $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4815$as_echo_n "checking how to run the C preprocessor... " >&6; } 5030$as_echo_n "checking how to run the C preprocessor... " >&6; }
4816# On Suns, sometimes $CPP names a directory. 5031# On Suns, sometimes $CPP names a directory.
4817if test -n "$CPP" && test -d "$CPP"; then 5032if test -n "$CPP" && test -d "$CPP"; then
4818 CPP= 5033 CPP=
4819fi 5034fi
4820if test -z "$CPP"; then 5035if test -z "$CPP"; then
4821 if test "${ac_cv_prog_CPP+set}" = set; then : 5036 if test "${ac_cv_prog_CPP+set}" = set; then
4822 $as_echo_n "(cached) " >&6 5037 $as_echo_n "(cached) " >&6
4823else 5038else
4824 # Double quotes because CPP needs to be expanded 5039 # Double quotes because CPP needs to be expanded
@@ -4833,7 +5048,11 @@ do
4833 # <limits.h> exists even on freestanding compilers. 5048 # <limits.h> exists even on freestanding compilers.
4834 # On the NeXT, cc -E runs the code through the compiler's parser, 5049 # On the NeXT, cc -E runs the code through the compiler's parser,
4835 # not just through cpp. "Syntax error" is here to catch this case. 5050 # not just through cpp. "Syntax error" is here to catch this case.
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5051 cat >conftest.$ac_ext <<_ACEOF
5052/* confdefs.h. */
5053_ACEOF
5054cat confdefs.h >>conftest.$ac_ext
5055cat >>conftest.$ac_ext <<_ACEOF
4837/* end confdefs.h. */ 5056/* end confdefs.h. */
4838#ifdef __STDC__ 5057#ifdef __STDC__
4839# include <limits.h> 5058# include <limits.h>
@@ -4842,34 +5061,78 @@ do
4842#endif 5061#endif
4843 Syntax error 5062 Syntax error
4844_ACEOF 5063_ACEOF
4845if ac_fn_c_try_cpp "$LINENO"; then : 5064if { (ac_try="$ac_cpp conftest.$ac_ext"
4846 5065case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068esac
5069eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5070$as_echo "$ac_try_echo") >&5
5071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5072 ac_status=$?
5073 grep -v '^ *+' conftest.er1 >conftest.err
5074 rm -f conftest.er1
5075 cat conftest.err >&5
5076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } >/dev/null && {
5078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5079 test ! -s conftest.err
5080 }; then
5081 :
4847else 5082else
5083 $as_echo "$as_me: failed program was:" >&5
5084sed 's/^/| /' conftest.$ac_ext >&5
5085
4848 # Broken: fails on valid input. 5086 # Broken: fails on valid input.
4849continue 5087continue
4850fi 5088fi
5089
4851rm -f conftest.err conftest.$ac_ext 5090rm -f conftest.err conftest.$ac_ext
4852 5091
4853 # OK, works on sane cases. Now check whether nonexistent headers 5092 # OK, works on sane cases. Now check whether nonexistent headers
4854 # can be detected and how. 5093 # can be detected and how.
4855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5094 cat >conftest.$ac_ext <<_ACEOF
5095/* confdefs.h. */
5096_ACEOF
5097cat confdefs.h >>conftest.$ac_ext
5098cat >>conftest.$ac_ext <<_ACEOF
4856/* end confdefs.h. */ 5099/* end confdefs.h. */
4857#include <ac_nonexistent.h> 5100#include <ac_nonexistent.h>
4858_ACEOF 5101_ACEOF
4859if ac_fn_c_try_cpp "$LINENO"; then : 5102if { (ac_try="$ac_cpp conftest.$ac_ext"
5103case "(($ac_try" in
5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5106esac
5107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5108$as_echo "$ac_try_echo") >&5
5109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5110 ac_status=$?
5111 grep -v '^ *+' conftest.er1 >conftest.err
5112 rm -f conftest.er1
5113 cat conftest.err >&5
5114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } >/dev/null && {
5116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5117 test ! -s conftest.err
5118 }; then
4860 # Broken: success on invalid input. 5119 # Broken: success on invalid input.
4861continue 5120continue
4862else 5121else
5122 $as_echo "$as_me: failed program was:" >&5
5123sed 's/^/| /' conftest.$ac_ext >&5
5124
4863 # Passes both tests. 5125 # Passes both tests.
4864ac_preproc_ok=: 5126ac_preproc_ok=:
4865break 5127break
4866fi 5128fi
5129
4867rm -f conftest.err conftest.$ac_ext 5130rm -f conftest.err conftest.$ac_ext
4868 5131
4869done 5132done
4870# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5133# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4871rm -f conftest.err conftest.$ac_ext 5134rm -f conftest.err conftest.$ac_ext
4872if $ac_preproc_ok; then : 5135if $ac_preproc_ok; then
4873 break 5136 break
4874fi 5137fi
4875 5138
@@ -4881,7 +5144,7 @@ fi
4881else 5144else
4882 ac_cv_prog_CPP=$CPP 5145 ac_cv_prog_CPP=$CPP
4883fi 5146fi
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5147{ $as_echo "$as_me:$LINENO: result: $CPP" >&5
4885$as_echo "$CPP" >&6; } 5148$as_echo "$CPP" >&6; }
4886ac_preproc_ok=false 5149ac_preproc_ok=false
4887for ac_c_preproc_warn_flag in '' yes 5150for ac_c_preproc_warn_flag in '' yes
@@ -4892,7 +5155,11 @@ do
4892 # <limits.h> exists even on freestanding compilers. 5155 # <limits.h> exists even on freestanding compilers.
4893 # On the NeXT, cc -E runs the code through the compiler's parser, 5156 # On the NeXT, cc -E runs the code through the compiler's parser,
4894 # not just through cpp. "Syntax error" is here to catch this case. 5157 # not just through cpp. "Syntax error" is here to catch this case.
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5158 cat >conftest.$ac_ext <<_ACEOF
5159/* confdefs.h. */
5160_ACEOF
5161cat confdefs.h >>conftest.$ac_ext
5162cat >>conftest.$ac_ext <<_ACEOF
4896/* end confdefs.h. */ 5163/* end confdefs.h. */
4897#ifdef __STDC__ 5164#ifdef __STDC__
4898# include <limits.h> 5165# include <limits.h>
@@ -4901,40 +5168,85 @@ do
4901#endif 5168#endif
4902 Syntax error 5169 Syntax error
4903_ACEOF 5170_ACEOF
4904if ac_fn_c_try_cpp "$LINENO"; then : 5171if { (ac_try="$ac_cpp conftest.$ac_ext"
4905 5172case "(($ac_try" in
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5174 *) ac_try_echo=$ac_try;;
5175esac
5176eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5177$as_echo "$ac_try_echo") >&5
5178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5179 ac_status=$?
5180 grep -v '^ *+' conftest.er1 >conftest.err
5181 rm -f conftest.er1
5182 cat conftest.err >&5
5183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } >/dev/null && {
5185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5186 test ! -s conftest.err
5187 }; then
5188 :
4906else 5189else
5190 $as_echo "$as_me: failed program was:" >&5
5191sed 's/^/| /' conftest.$ac_ext >&5
5192
4907 # Broken: fails on valid input. 5193 # Broken: fails on valid input.
4908continue 5194continue
4909fi 5195fi
5196
4910rm -f conftest.err conftest.$ac_ext 5197rm -f conftest.err conftest.$ac_ext
4911 5198
4912 # OK, works on sane cases. Now check whether nonexistent headers 5199 # OK, works on sane cases. Now check whether nonexistent headers
4913 # can be detected and how. 5200 # can be detected and how.
4914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5201 cat >conftest.$ac_ext <<_ACEOF
5202/* confdefs.h. */
5203_ACEOF
5204cat confdefs.h >>conftest.$ac_ext
5205cat >>conftest.$ac_ext <<_ACEOF
4915/* end confdefs.h. */ 5206/* end confdefs.h. */
4916#include <ac_nonexistent.h> 5207#include <ac_nonexistent.h>
4917_ACEOF 5208_ACEOF
4918if ac_fn_c_try_cpp "$LINENO"; then : 5209if { (ac_try="$ac_cpp conftest.$ac_ext"
5210case "(($ac_try" in
5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5213esac
5214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5215$as_echo "$ac_try_echo") >&5
5216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5217 ac_status=$?
5218 grep -v '^ *+' conftest.er1 >conftest.err
5219 rm -f conftest.er1
5220 cat conftest.err >&5
5221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } >/dev/null && {
5223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5224 test ! -s conftest.err
5225 }; then
4919 # Broken: success on invalid input. 5226 # Broken: success on invalid input.
4920continue 5227continue
4921else 5228else
5229 $as_echo "$as_me: failed program was:" >&5
5230sed 's/^/| /' conftest.$ac_ext >&5
5231
4922 # Passes both tests. 5232 # Passes both tests.
4923ac_preproc_ok=: 5233ac_preproc_ok=:
4924break 5234break
4925fi 5235fi
5236
4926rm -f conftest.err conftest.$ac_ext 5237rm -f conftest.err conftest.$ac_ext
4927 5238
4928done 5239done
4929# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5240# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4930rm -f conftest.err conftest.$ac_ext 5241rm -f conftest.err conftest.$ac_ext
4931if $ac_preproc_ok; then : 5242if $ac_preproc_ok; then
4932 5243 :
4933else 5244else
4934 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5245 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4935$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5246See \`config.log' for more details." >&5
4936as_fn_error "C preprocessor \"$CPP\" fails sanity check 5247$as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4937See \`config.log' for more details." "$LINENO" 5; } 5248See \`config.log' for more details." >&2;}
5249 { (exit 1); exit 1; }; }
4938fi 5250fi
4939 5251
4940ac_ext=c 5252ac_ext=c
@@ -4957,10 +5269,10 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu
4957# OS/2's system install, which has a completely different semantic 5269# OS/2's system install, which has a completely different semantic
4958# ./install, which can be erroneously created by make from ./install.sh. 5270# ./install, which can be erroneously created by make from ./install.sh.
4959# Reject install programs that cannot install multiple files. 5271# Reject install programs that cannot install multiple files.
4960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5272{ $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4961$as_echo_n "checking for a BSD-compatible install... " >&6; } 5273$as_echo_n "checking for a BSD-compatible install... " >&6; }
4962if test -z "$INSTALL"; then 5274if test -z "$INSTALL"; then
4963if test "${ac_cv_path_install+set}" = set; then : 5275if test "${ac_cv_path_install+set}" = set; then
4964 $as_echo_n "(cached) " >&6 5276 $as_echo_n "(cached) " >&6
4965else 5277else
4966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
@@ -4968,11 +5280,11 @@ for as_dir in $PATH
4968do 5280do
4969 IFS=$as_save_IFS 5281 IFS=$as_save_IFS
4970 test -z "$as_dir" && as_dir=. 5282 test -z "$as_dir" && as_dir=.
4971 # Account for people who put trailing slashes in PATH elements. 5283 # Account for people who put trailing slashes in PATH elements.
4972case $as_dir/ in #(( 5284case $as_dir/ in
4973 ./ | .// | /[cC]/* | \ 5285 ./ | .// | /cC/* | \
4974 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5286 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4975 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5287 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4976 /usr/ucb/* ) ;; 5288 /usr/ucb/* ) ;;
4977 *) 5289 *)
4978 # OSF1 and SCO ODT 3.0 have their own names for install. 5290 # OSF1 and SCO ODT 3.0 have their own names for install.
@@ -5009,7 +5321,7 @@ case $as_dir/ in #((
5009 ;; 5321 ;;
5010esac 5322esac
5011 5323
5012 done 5324done
5013IFS=$as_save_IFS 5325IFS=$as_save_IFS
5014 5326
5015rm -rf conftest.one conftest.two conftest.dir 5327rm -rf conftest.one conftest.two conftest.dir
@@ -5025,7 +5337,7 @@ fi
5025 INSTALL=$ac_install_sh 5337 INSTALL=$ac_install_sh
5026 fi 5338 fi
5027fi 5339fi
5028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5340{ $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5029$as_echo "$INSTALL" >&6; } 5341$as_echo "$INSTALL" >&6; }
5030 5342
5031# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5343# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
@@ -5040,9 +5352,9 @@ if test "x$RANLIB" = x; then
5040 if test -n "$ac_tool_prefix"; then 5352 if test -n "$ac_tool_prefix"; then
5041 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5042set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5354set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5355{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5044$as_echo_n "checking for $ac_word... " >&6; } 5356$as_echo_n "checking for $ac_word... " >&6; }
5045if test "${ac_cv_prog_RANLIB+set}" = set; then : 5357if test "${ac_cv_prog_RANLIB+set}" = set; then
5046 $as_echo_n "(cached) " >&6 5358 $as_echo_n "(cached) " >&6
5047else 5359else
5048 if test -n "$RANLIB"; then 5360 if test -n "$RANLIB"; then
@@ -5053,24 +5365,24 @@ for as_dir in $PATH
5053do 5365do
5054 IFS=$as_save_IFS 5366 IFS=$as_save_IFS
5055 test -z "$as_dir" && as_dir=. 5367 test -z "$as_dir" && as_dir=.
5056 for ac_exec_ext in '' $ac_executable_extensions; do 5368 for ac_exec_ext in '' $ac_executable_extensions; do
5057 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5058 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5370 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5059 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 break 2 5372 break 2
5061 fi 5373 fi
5062done 5374done
5063 done 5375done
5064IFS=$as_save_IFS 5376IFS=$as_save_IFS
5065 5377
5066fi 5378fi
5067fi 5379fi
5068RANLIB=$ac_cv_prog_RANLIB 5380RANLIB=$ac_cv_prog_RANLIB
5069if test -n "$RANLIB"; then 5381if test -n "$RANLIB"; then
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5382 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5071$as_echo "$RANLIB" >&6; } 5383$as_echo "$RANLIB" >&6; }
5072else 5384else
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5385 { $as_echo "$as_me:$LINENO: result: no" >&5
5074$as_echo "no" >&6; } 5386$as_echo "no" >&6; }
5075fi 5387fi
5076 5388
@@ -5080,9 +5392,9 @@ if test -z "$ac_cv_prog_RANLIB"; then
5080 ac_ct_RANLIB=$RANLIB 5392 ac_ct_RANLIB=$RANLIB
5081 # Extract the first word of "ranlib", so it can be a program name with args. 5393 # Extract the first word of "ranlib", so it can be a program name with args.
5082set dummy ranlib; ac_word=$2 5394set dummy ranlib; ac_word=$2
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5395{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5084$as_echo_n "checking for $ac_word... " >&6; } 5396$as_echo_n "checking for $ac_word... " >&6; }
5085if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5397if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5086 $as_echo_n "(cached) " >&6 5398 $as_echo_n "(cached) " >&6
5087else 5399else
5088 if test -n "$ac_ct_RANLIB"; then 5400 if test -n "$ac_ct_RANLIB"; then
@@ -5093,24 +5405,24 @@ for as_dir in $PATH
5093do 5405do
5094 IFS=$as_save_IFS 5406 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=. 5407 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do 5408 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_prog_ac_ct_RANLIB="ranlib" 5410 ac_cv_prog_ac_ct_RANLIB="ranlib"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5411 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2 5412 break 2
5101 fi 5413 fi
5102done 5414done
5103 done 5415done
5104IFS=$as_save_IFS 5416IFS=$as_save_IFS
5105 5417
5106fi 5418fi
5107fi 5419fi
5108ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5420ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5109if test -n "$ac_ct_RANLIB"; then 5421if test -n "$ac_ct_RANLIB"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5422 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5111$as_echo "$ac_ct_RANLIB" >&6; } 5423$as_echo "$ac_ct_RANLIB" >&6; }
5112else 5424else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5425 { $as_echo "$as_me:$LINENO: result: no" >&5
5114$as_echo "no" >&6; } 5426$as_echo "no" >&6; }
5115fi 5427fi
5116 5428
@@ -5119,8 +5431,12 @@ fi
5119 else 5431 else
5120 case $cross_compiling:$ac_tool_warned in 5432 case $cross_compiling:$ac_tool_warned in
5121yes:) 5433yes:)
5122{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5434{ $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5123$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5435whose name does not start with the host triplet. If you think this
5436configuration is useful to you, please write to autoconf@gnu.org." >&5
5437$as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5438whose name does not start with the host triplet. If you think this
5439configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5124ac_tool_warned=yes ;; 5440ac_tool_warned=yes ;;
5125esac 5441esac
5126 RANLIB=$ac_ct_RANLIB 5442 RANLIB=$ac_ct_RANLIB
@@ -5136,11 +5452,60 @@ fi
5136## explicit --build to `configure', but if everything else than the kernel 5452## explicit --build to `configure', but if everything else than the kernel
5137## is running in i386 mode, we can help them out. 5453## is running in i386 mode, we can help them out.
5138if test "$machine" = "amdx86-64"; then 5454if test "$machine" = "amdx86-64"; then
5139 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default" 5455 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5140if test "x$ac_cv_have_decl_i386" = x""yes; then : 5456$as_echo_n "checking whether i386 is declared... " >&6; }
5457if test "${ac_cv_have_decl_i386+set}" = set; then
5458 $as_echo_n "(cached) " >&6
5459else
5460 cat >conftest.$ac_ext <<_ACEOF
5461/* confdefs.h. */
5462_ACEOF
5463cat confdefs.h >>conftest.$ac_ext
5464cat >>conftest.$ac_ext <<_ACEOF
5465/* end confdefs.h. */
5466$ac_includes_default
5467int
5468main ()
5469{
5470#ifndef i386
5471 (void) i386;
5472#endif
5141 5473
5474 ;
5475 return 0;
5476}
5477_ACEOF
5478rm -f conftest.$ac_objext
5479if { (ac_try="$ac_compile"
5480case "(($ac_try" in
5481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5482 *) ac_try_echo=$ac_try;;
5483esac
5484eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5485$as_echo "$ac_try_echo") >&5
5486 (eval "$ac_compile") 2>conftest.er1
5487 ac_status=$?
5488 grep -v '^ *+' conftest.er1 >conftest.err
5489 rm -f conftest.er1
5490 cat conftest.err >&5
5491 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5492 (exit $ac_status); } && {
5493 test -z "$ac_c_werror_flag" ||
5494 test ! -s conftest.err
5495 } && test -s conftest.$ac_objext; then
5496 ac_cv_have_decl_i386=yes
5497else
5498 $as_echo "$as_me: failed program was:" >&5
5499sed 's/^/| /' conftest.$ac_ext >&5
5500
5501 ac_cv_have_decl_i386=no
5142fi 5502fi
5143 5503
5504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5505fi
5506{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5507$as_echo "$ac_cv_have_decl_i386" >&6; }
5508
5144 if test "$ac_cv_have_decl_i386" = "yes"; then 5509 if test "$ac_cv_have_decl_i386" = "yes"; then
5145 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'` 5510 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5146 machine=intel386 5511 machine=intel386
@@ -5150,9 +5515,9 @@ fi
5150 5515
5151# Extract the first word of "install-info", so it can be a program name with args. 5516# Extract the first word of "install-info", so it can be a program name with args.
5152set dummy install-info; ac_word=$2 5517set dummy install-info; ac_word=$2
5153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5518{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5154$as_echo_n "checking for $ac_word... " >&6; } 5519$as_echo_n "checking for $ac_word... " >&6; }
5155if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5520if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5156 $as_echo_n "(cached) " >&6 5521 $as_echo_n "(cached) " >&6
5157else 5522else
5158 case $INSTALL_INFO in 5523 case $INSTALL_INFO in
@@ -5165,14 +5530,14 @@ for as_dir in $PATH
5165do 5530do
5166 IFS=$as_save_IFS 5531 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=. 5532 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do 5533 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5534 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5535 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5536 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2 5537 break 2
5173 fi 5538 fi
5174done 5539done
5175 done 5540done
5176IFS=$as_save_IFS 5541IFS=$as_save_IFS
5177 5542
5178 ;; 5543 ;;
@@ -5180,19 +5545,19 @@ esac
5180fi 5545fi
5181INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5546INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5182if test -n "$INSTALL_INFO"; then 5547if test -n "$INSTALL_INFO"; then
5183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5548 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5184$as_echo "$INSTALL_INFO" >&6; } 5549$as_echo "$INSTALL_INFO" >&6; }
5185else 5550else
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5551 { $as_echo "$as_me:$LINENO: result: no" >&5
5187$as_echo "no" >&6; } 5552$as_echo "no" >&6; }
5188fi 5553fi
5189 5554
5190 5555
5191# Extract the first word of "install-info", so it can be a program name with args. 5556# Extract the first word of "install-info", so it can be a program name with args.
5192set dummy install-info; ac_word=$2 5557set dummy install-info; ac_word=$2
5193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5558{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5194$as_echo_n "checking for $ac_word... " >&6; } 5559$as_echo_n "checking for $ac_word... " >&6; }
5195if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5560if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5196 $as_echo_n "(cached) " >&6 5561 $as_echo_n "(cached) " >&6
5197else 5562else
5198 case $INSTALL_INFO in 5563 case $INSTALL_INFO in
@@ -5205,14 +5570,14 @@ for as_dir in /usr/sbin
5205do 5570do
5206 IFS=$as_save_IFS 5571 IFS=$as_save_IFS
5207 test -z "$as_dir" && as_dir=. 5572 test -z "$as_dir" && as_dir=.
5208 for ac_exec_ext in '' $ac_executable_extensions; do 5573 for ac_exec_ext in '' $ac_executable_extensions; do
5209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5574 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5210 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5575 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5576 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5212 break 2 5577 break 2
5213 fi 5578 fi
5214done 5579done
5215 done 5580done
5216IFS=$as_save_IFS 5581IFS=$as_save_IFS
5217 5582
5218 ;; 5583 ;;
@@ -5220,19 +5585,19 @@ esac
5220fi 5585fi
5221INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5586INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5222if test -n "$INSTALL_INFO"; then 5587if test -n "$INSTALL_INFO"; then
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5588 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5224$as_echo "$INSTALL_INFO" >&6; } 5589$as_echo "$INSTALL_INFO" >&6; }
5225else 5590else
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5591 { $as_echo "$as_me:$LINENO: result: no" >&5
5227$as_echo "no" >&6; } 5592$as_echo "no" >&6; }
5228fi 5593fi
5229 5594
5230 5595
5231# Extract the first word of "install-info", so it can be a program name with args. 5596# Extract the first word of "install-info", so it can be a program name with args.
5232set dummy install-info; ac_word=$2 5597set dummy install-info; ac_word=$2
5233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5598{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5234$as_echo_n "checking for $ac_word... " >&6; } 5599$as_echo_n "checking for $ac_word... " >&6; }
5235if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5600if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5236 $as_echo_n "(cached) " >&6 5601 $as_echo_n "(cached) " >&6
5237else 5602else
5238 case $INSTALL_INFO in 5603 case $INSTALL_INFO in
@@ -5245,14 +5610,14 @@ for as_dir in /sbin
5245do 5610do
5246 IFS=$as_save_IFS 5611 IFS=$as_save_IFS
5247 test -z "$as_dir" && as_dir=. 5612 test -z "$as_dir" && as_dir=.
5248 for ac_exec_ext in '' $ac_executable_extensions; do 5613 for ac_exec_ext in '' $ac_executable_extensions; do
5249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5250 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5615 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5252 break 2 5617 break 2
5253 fi 5618 fi
5254done 5619done
5255 done 5620done
5256IFS=$as_save_IFS 5621IFS=$as_save_IFS
5257 5622
5258 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" 5623 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
@@ -5261,19 +5626,19 @@ esac
5261fi 5626fi
5262INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5627INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5263if test -n "$INSTALL_INFO"; then 5628if test -n "$INSTALL_INFO"; then
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5629 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5265$as_echo "$INSTALL_INFO" >&6; } 5630$as_echo "$INSTALL_INFO" >&6; }
5266else 5631else
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5632 { $as_echo "$as_me:$LINENO: result: no" >&5
5268$as_echo "no" >&6; } 5633$as_echo "no" >&6; }
5269fi 5634fi
5270 5635
5271 5636
5272# Extract the first word of "gzip", so it can be a program name with args. 5637# Extract the first word of "gzip", so it can be a program name with args.
5273set dummy gzip; ac_word=$2 5638set dummy gzip; ac_word=$2
5274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5639{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5275$as_echo_n "checking for $ac_word... " >&6; } 5640$as_echo_n "checking for $ac_word... " >&6; }
5276if test "${ac_cv_path_GZIP_PROG+set}" = set; then : 5641if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5277 $as_echo_n "(cached) " >&6 5642 $as_echo_n "(cached) " >&6
5278else 5643else
5279 case $GZIP_PROG in 5644 case $GZIP_PROG in
@@ -5286,14 +5651,14 @@ for as_dir in $PATH
5286do 5651do
5287 IFS=$as_save_IFS 5652 IFS=$as_save_IFS
5288 test -z "$as_dir" && as_dir=. 5653 test -z "$as_dir" && as_dir=.
5289 for ac_exec_ext in '' $ac_executable_extensions; do 5654 for ac_exec_ext in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" 5656 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5657 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5293 break 2 5658 break 2
5294 fi 5659 fi
5295done 5660done
5296 done 5661done
5297IFS=$as_save_IFS 5662IFS=$as_save_IFS
5298 5663
5299 ;; 5664 ;;
@@ -5301,10 +5666,10 @@ esac
5301fi 5666fi
5302GZIP_PROG=$ac_cv_path_GZIP_PROG 5667GZIP_PROG=$ac_cv_path_GZIP_PROG
5303if test -n "$GZIP_PROG"; then 5668if test -n "$GZIP_PROG"; then
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5 5669 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5305$as_echo "$GZIP_PROG" >&6; } 5670$as_echo "$GZIP_PROG" >&6; }
5306else 5671else
5307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5672 { $as_echo "$as_me:$LINENO: result: no" >&5
5308$as_echo "no" >&6; } 5673$as_echo "no" >&6; }
5309fi 5674fi
5310 5675
@@ -5314,9 +5679,9 @@ fi
5314## Need makeinfo >= 4.6 (?) to build the manuals. 5679## Need makeinfo >= 4.6 (?) to build the manuals.
5315# Extract the first word of "makeinfo", so it can be a program name with args. 5680# Extract the first word of "makeinfo", so it can be a program name with args.
5316set dummy makeinfo; ac_word=$2 5681set dummy makeinfo; ac_word=$2
5317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5682{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5318$as_echo_n "checking for $ac_word... " >&6; } 5683$as_echo_n "checking for $ac_word... " >&6; }
5319if test "${ac_cv_path_MAKEINFO+set}" = set; then : 5684if test "${ac_cv_path_MAKEINFO+set}" = set; then
5320 $as_echo_n "(cached) " >&6 5685 $as_echo_n "(cached) " >&6
5321else 5686else
5322 case $MAKEINFO in 5687 case $MAKEINFO in
@@ -5329,14 +5694,14 @@ for as_dir in $PATH
5329do 5694do
5330 IFS=$as_save_IFS 5695 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=. 5696 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do 5697 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5334 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" 5699 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2 5701 break 2
5337 fi 5702 fi
5338done 5703done
5339 done 5704done
5340IFS=$as_save_IFS 5705IFS=$as_save_IFS
5341 5706
5342 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" 5707 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
@@ -5345,10 +5710,10 @@ esac
5345fi 5710fi
5346MAKEINFO=$ac_cv_path_MAKEINFO 5711MAKEINFO=$ac_cv_path_MAKEINFO
5347if test -n "$MAKEINFO"; then 5712if test -n "$MAKEINFO"; then
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 5713 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5349$as_echo "$MAKEINFO" >&6; } 5714$as_echo "$MAKEINFO" >&6; }
5350else 5715else
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5716 { $as_echo "$as_me:$LINENO: result: no" >&5
5352$as_echo "no" >&6; } 5717$as_echo "no" >&6; }
5353fi 5718fi
5354 5719
@@ -5371,10 +5736,15 @@ if test "$MAKEINFO" = "no"; then
5371 if test "x${with_makeinfo}" = "xno"; then 5736 if test "x${with_makeinfo}" = "xno"; then
5372 MAKEINFO=off 5737 MAKEINFO=off
5373 elif test ! -e $srcdir/info/emacs; then 5738 elif test ! -e $srcdir/info/emacs; then
5374 as_fn_error "You do not seem to have makeinfo >= 4.6, and your 5739 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5740source tree does not seem to have pre-built manuals in the \`info' directory.
5741Either install a suitable version of makeinfo, or re-run configure
5742with the \`--without-makeinfo' option to build without the manuals. " >&5
5743$as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5375source tree does not seem to have pre-built manuals in the \`info' directory. 5744source tree does not seem to have pre-built manuals in the \`info' directory.
5376Either install a suitable version of makeinfo, or re-run configure 5745Either install a suitable version of makeinfo, or re-run configure
5377with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 5746with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5747 { (exit 1); exit 1; }; }
5378 fi 5748 fi
5379fi 5749fi
5380 5750
@@ -5397,26 +5767,50 @@ else
5397 LDFLAGS="$LDFLAGS -znocombreloc" 5767 LDFLAGS="$LDFLAGS -znocombreloc"
5398fi 5768fi
5399 5769
5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5 5770{ $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5401$as_echo_n "checking for -znocombreloc... " >&6; } 5771$as_echo_n "checking for -znocombreloc... " >&6; }
5402cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5772cat >conftest.$ac_ext <<_ACEOF
5403/* end confdefs.h. */
5404main(){return 0;} 5773main(){return 0;}
5405_ACEOF 5774_ACEOF
5406if ac_fn_c_try_link "$LINENO"; then : 5775rm -f conftest.$ac_objext conftest$ac_exeext
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5776if { (ac_try="$ac_link"
5777case "(($ac_try" in
5778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5779 *) ac_try_echo=$ac_try;;
5780esac
5781eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5782$as_echo "$ac_try_echo") >&5
5783 (eval "$ac_link") 2>conftest.er1
5784 ac_status=$?
5785 grep -v '^ *+' conftest.er1 >conftest.err
5786 rm -f conftest.er1
5787 cat conftest.err >&5
5788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5789 (exit $ac_status); } && {
5790 test -z "$ac_c_werror_flag" ||
5791 test ! -s conftest.err
5792 } && test -s conftest$ac_exeext && {
5793 test "$cross_compiling" = yes ||
5794 $as_test_x conftest$ac_exeext
5795 }; then
5796 { $as_echo "$as_me:$LINENO: result: yes" >&5
5408$as_echo "yes" >&6; } 5797$as_echo "yes" >&6; }
5409else 5798else
5410 LDFLAGS=$late_LDFLAGS 5799 $as_echo "$as_me: failed program was:" >&5
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5800sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 LDFLAGS=$late_LDFLAGS
5803 { $as_echo "$as_me:$LINENO: result: no" >&5
5412$as_echo "no" >&6; } 5804$as_echo "no" >&6; }
5413fi 5805fi
5414rm -f core conftest.err conftest.$ac_objext \ 5806
5415 conftest$ac_exeext conftest.$ac_ext 5807rm -rf conftest.dSYM
5808rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5809 conftest$ac_exeext conftest.$ac_ext
5416 5810
5417#### Extract some information from the operating system and machine files. 5811#### Extract some information from the operating system and machine files.
5418 5812
5419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out 5813{ $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5420 - which libraries the lib-src programs will want, and 5814 - which libraries the lib-src programs will want, and
5421 - whether the GNU malloc routines are usable..." >&5 5815 - whether the GNU malloc routines are usable..." >&5
5422$as_echo "$as_me: checking the machine- and system-dependent files to find out 5816$as_echo "$as_me: checking the machine- and system-dependent files to find out
@@ -5474,12 +5868,6 @@ configure___ use_mmap_for_buffers=no
5474#define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH} 5868#define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5475#endif 5869#endif
5476 5870
5477#ifndef LD_SWITCH_SYSTEM
5478#define LD_SWITCH_SYSTEM
5479#endif
5480
5481configure___ ld_switch_system=LD_SWITCH_SYSTEM
5482
5483#ifdef THIS_IS_CONFIGURE 5871#ifdef THIS_IS_CONFIGURE
5484 5872
5485/* Get the CFLAGS for tests in configure. */ 5873/* Get the CFLAGS for tests in configure. */
@@ -5516,15 +5904,106 @@ else
5516fi 5904fi
5517rm ${tempcname} 5905rm ${tempcname}
5518 5906
5519ac_link="$ac_link $ld_switch_system" 5907
5908LD_SWITCH_SYSTEM=
5909case "$opsys" in
5910 freebsd)
5911 ## Let `ld' find image libs and similar things in /usr/local/lib.
5912 ## The system compiler, GCC, has apparently been modified to not
5913 ## look there, contrary to what a stock GCC would do.
5914 LD_SWITCH_SYSTEM=-L/usr/local/lib
5915 ;;
5916
5917 gnu-linux)
5918 ## cpp test was "ifdef __mips__", but presumably this is equivalent...
5919 test "$machine" = "mips" && LD_SWITCH_SYSTEM="-G 0"
5920 ;;
5921
5922 netbsd)
5923 LD_SWITCH_SYSTEM="-Wl,-rpath,/usr/pkg/lib -L/usr/pkg/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib"
5924 ;;
5925
5926 openbsd)
5927 ## Han Boetes <han@mijncomputer.nl> says this is necessary,
5928 ## otherwise Emacs dumps core on elf systems.
5929 LD_SWITCH_SYSTEM="-Z"
5930 ;;
5931esac
5932
5933
5934ac_link="$ac_link $LD_SWITCH_SYSTEM"
5935
5936## This is fun. Some settings of LD_SWITCH_SYSTEM reference
5937## LD_SWITCH_X_SITE_AUX, which has not been defined yet. When using
5938## cpp, it was expanded to null. Thus LD_SWITCH_SYSTEM had different
5939## values in configure and the Makefiles. How helpful.
5940## FIXME why not use LD_SWITCH_SYSTEM_TEMACS (or somesuch) instead?
5941case "$opsys" in
5942 gnu-linux)
5943 ## LD_SWITCH_X_SITE_AUX is a -R option saying where to find X at run-time.
5944 LD_SWITCH_SYSTEM="$LD_SWITCH_SYSTEM \$(LD_SWITCH_X_SITE_AUX)" ;;
5945
5946 netbsd|openbsd)
5947 ## _AUX_RPATH is like _AUX, but uses -rpath instead of -R.
5948 LD_SWITCH_SYSTEM="\$(LD_SWITCH_X_SITE_AUX_RPATH) $LD_SWITCH_SYSTEM" ;;
5949esac
5520 5950
5521 5951
5522C_SWITCH_MACHINE= 5952C_SWITCH_MACHINE=
5523if test "$machine" = "alpha"; then 5953if test "$machine" = "alpha"; then
5524 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default" 5954 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5525if test "x$ac_cv_have_decl___ELF__" = x""yes; then : 5955$as_echo_n "checking whether __ELF__ is declared... " >&6; }
5956if test "${ac_cv_have_decl___ELF__+set}" = set; then
5957 $as_echo_n "(cached) " >&6
5958else
5959 cat >conftest.$ac_ext <<_ACEOF
5960/* confdefs.h. */
5961_ACEOF
5962cat confdefs.h >>conftest.$ac_ext
5963cat >>conftest.$ac_ext <<_ACEOF
5964/* end confdefs.h. */
5965$ac_includes_default
5966int
5967main ()
5968{
5969#ifndef __ELF__
5970 (void) __ELF__;
5971#endif
5972
5973 ;
5974 return 0;
5975}
5976_ACEOF
5977rm -f conftest.$ac_objext
5978if { (ac_try="$ac_compile"
5979case "(($ac_try" in
5980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5981 *) ac_try_echo=$ac_try;;
5982esac
5983eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5984$as_echo "$ac_try_echo") >&5
5985 (eval "$ac_compile") 2>conftest.er1
5986 ac_status=$?
5987 grep -v '^ *+' conftest.er1 >conftest.err
5988 rm -f conftest.er1
5989 cat conftest.err >&5
5990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5991 (exit $ac_status); } && {
5992 test -z "$ac_c_werror_flag" ||
5993 test ! -s conftest.err
5994 } && test -s conftest.$ac_objext; then
5995 ac_cv_have_decl___ELF__=yes
5996else
5997 $as_echo "$as_me: failed program was:" >&5
5998sed 's/^/| /' conftest.$ac_ext >&5
5999
6000 ac_cv_have_decl___ELF__=no
6001fi
5526 6002
6003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5527fi 6004fi
6005{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6006$as_echo "$ac_cv_have_decl___ELF__" >&6; }
5528 6007
5529 if test "$ac_cv_have_decl___ELF__" = "yes"; then 6008 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5530 ## With ELF, make sure that all common symbols get allocated to in the 6009 ## With ELF, make sure that all common symbols get allocated to in the
@@ -5535,7 +6014,9 @@ fi
5535 if test "x$GCC" = "xyes"; then 6014 if test "x$GCC" = "xyes"; then
5536 C_SWITCH_MACHINE="-fno-common" 6015 C_SWITCH_MACHINE="-fno-common"
5537 else 6016 else
5538 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5 6017 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6018$as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6019 { (exit 1); exit 1; }; }
5539 fi 6020 fi
5540 fi 6021 fi
5541fi 6022fi
@@ -5564,15 +6045,15 @@ fi
5564 6045
5565 6046
5566# Check whether --enable-largefile was given. 6047# Check whether --enable-largefile was given.
5567if test "${enable_largefile+set}" = set; then : 6048if test "${enable_largefile+set}" = set; then
5568 enableval=$enable_largefile; 6049 enableval=$enable_largefile;
5569fi 6050fi
5570 6051
5571if test "$enable_largefile" != no; then 6052if test "$enable_largefile" != no; then
5572 6053
5573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6054 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5574$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 6055$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5575if test "${ac_cv_sys_largefile_CC+set}" = set; then : 6056if test "${ac_cv_sys_largefile_CC+set}" = set; then
5576 $as_echo_n "(cached) " >&6 6057 $as_echo_n "(cached) " >&6
5577else 6058else
5578 ac_cv_sys_largefile_CC=no 6059 ac_cv_sys_largefile_CC=no
@@ -5581,7 +6062,11 @@ else
5581 while :; do 6062 while :; do
5582 # IRIX 6.2 and later do not support large files by default, 6063 # IRIX 6.2 and later do not support large files by default,
5583 # so use the C compiler's -n32 option if that helps. 6064 # so use the C compiler's -n32 option if that helps.
5584 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
5585/* end confdefs.h. */ 6070/* end confdefs.h. */
5586#include <sys/types.h> 6071#include <sys/types.h>
5587 /* Check that off_t can represent 2**63 - 1 correctly. 6072 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5600,14 +6085,60 @@ main ()
5600 return 0; 6085 return 0;
5601} 6086}
5602_ACEOF 6087_ACEOF
5603 if ac_fn_c_try_compile "$LINENO"; then : 6088 rm -f conftest.$ac_objext
6089if { (ac_try="$ac_compile"
6090case "(($ac_try" in
6091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6092 *) ac_try_echo=$ac_try;;
6093esac
6094eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6095$as_echo "$ac_try_echo") >&5
6096 (eval "$ac_compile") 2>conftest.er1
6097 ac_status=$?
6098 grep -v '^ *+' conftest.er1 >conftest.err
6099 rm -f conftest.er1
6100 cat conftest.err >&5
6101 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6102 (exit $ac_status); } && {
6103 test -z "$ac_c_werror_flag" ||
6104 test ! -s conftest.err
6105 } && test -s conftest.$ac_objext; then
5604 break 6106 break
6107else
6108 $as_echo "$as_me: failed program was:" >&5
6109sed 's/^/| /' conftest.$ac_ext >&5
6110
6111
5605fi 6112fi
6113
5606rm -f core conftest.err conftest.$ac_objext 6114rm -f core conftest.err conftest.$ac_objext
5607 CC="$CC -n32" 6115 CC="$CC -n32"
5608 if ac_fn_c_try_compile "$LINENO"; then : 6116 rm -f conftest.$ac_objext
6117if { (ac_try="$ac_compile"
6118case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121esac
6122eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6123$as_echo "$ac_try_echo") >&5
6124 (eval "$ac_compile") 2>conftest.er1
6125 ac_status=$?
6126 grep -v '^ *+' conftest.er1 >conftest.err
6127 rm -f conftest.er1
6128 cat conftest.err >&5
6129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); } && {
6131 test -z "$ac_c_werror_flag" ||
6132 test ! -s conftest.err
6133 } && test -s conftest.$ac_objext; then
5609 ac_cv_sys_largefile_CC=' -n32'; break 6134 ac_cv_sys_largefile_CC=' -n32'; break
6135else
6136 $as_echo "$as_me: failed program was:" >&5
6137sed 's/^/| /' conftest.$ac_ext >&5
6138
6139
5610fi 6140fi
6141
5611rm -f core conftest.err conftest.$ac_objext 6142rm -f core conftest.err conftest.$ac_objext
5612 break 6143 break
5613 done 6144 done
@@ -5615,19 +6146,23 @@ rm -f core conftest.err conftest.$ac_objext
5615 rm -f conftest.$ac_ext 6146 rm -f conftest.$ac_ext
5616 fi 6147 fi
5617fi 6148fi
5618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6149{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5619$as_echo "$ac_cv_sys_largefile_CC" >&6; } 6150$as_echo "$ac_cv_sys_largefile_CC" >&6; }
5620 if test "$ac_cv_sys_largefile_CC" != no; then 6151 if test "$ac_cv_sys_largefile_CC" != no; then
5621 CC=$CC$ac_cv_sys_largefile_CC 6152 CC=$CC$ac_cv_sys_largefile_CC
5622 fi 6153 fi
5623 6154
5624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6155 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5625$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6156$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5626if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 6157if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5627 $as_echo_n "(cached) " >&6 6158 $as_echo_n "(cached) " >&6
5628else 6159else
5629 while :; do 6160 while :; do
5630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6161 cat >conftest.$ac_ext <<_ACEOF
6162/* confdefs.h. */
6163_ACEOF
6164cat confdefs.h >>conftest.$ac_ext
6165cat >>conftest.$ac_ext <<_ACEOF
5631/* end confdefs.h. */ 6166/* end confdefs.h. */
5632#include <sys/types.h> 6167#include <sys/types.h>
5633 /* Check that off_t can represent 2**63 - 1 correctly. 6168 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5646,11 +6181,38 @@ main ()
5646 return 0; 6181 return 0;
5647} 6182}
5648_ACEOF 6183_ACEOF
5649if ac_fn_c_try_compile "$LINENO"; then : 6184rm -f conftest.$ac_objext
6185if { (ac_try="$ac_compile"
6186case "(($ac_try" in
6187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6188 *) ac_try_echo=$ac_try;;
6189esac
6190eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6191$as_echo "$ac_try_echo") >&5
6192 (eval "$ac_compile") 2>conftest.er1
6193 ac_status=$?
6194 grep -v '^ *+' conftest.er1 >conftest.err
6195 rm -f conftest.er1
6196 cat conftest.err >&5
6197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6198 (exit $ac_status); } && {
6199 test -z "$ac_c_werror_flag" ||
6200 test ! -s conftest.err
6201 } && test -s conftest.$ac_objext; then
5650 ac_cv_sys_file_offset_bits=no; break 6202 ac_cv_sys_file_offset_bits=no; break
6203else
6204 $as_echo "$as_me: failed program was:" >&5
6205sed 's/^/| /' conftest.$ac_ext >&5
6206
6207
5651fi 6208fi
6209
5652rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6210rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6211 cat >conftest.$ac_ext <<_ACEOF
6212/* confdefs.h. */
6213_ACEOF
6214cat confdefs.h >>conftest.$ac_ext
6215cat >>conftest.$ac_ext <<_ACEOF
5654/* end confdefs.h. */ 6216/* end confdefs.h. */
5655#define _FILE_OFFSET_BITS 64 6217#define _FILE_OFFSET_BITS 64
5656#include <sys/types.h> 6218#include <sys/types.h>
@@ -5670,15 +6232,38 @@ main ()
5670 return 0; 6232 return 0;
5671} 6233}
5672_ACEOF 6234_ACEOF
5673if ac_fn_c_try_compile "$LINENO"; then : 6235rm -f conftest.$ac_objext
6236if { (ac_try="$ac_compile"
6237case "(($ac_try" in
6238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6239 *) ac_try_echo=$ac_try;;
6240esac
6241eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6242$as_echo "$ac_try_echo") >&5
6243 (eval "$ac_compile") 2>conftest.er1
6244 ac_status=$?
6245 grep -v '^ *+' conftest.er1 >conftest.err
6246 rm -f conftest.er1
6247 cat conftest.err >&5
6248 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6249 (exit $ac_status); } && {
6250 test -z "$ac_c_werror_flag" ||
6251 test ! -s conftest.err
6252 } && test -s conftest.$ac_objext; then
5674 ac_cv_sys_file_offset_bits=64; break 6253 ac_cv_sys_file_offset_bits=64; break
6254else
6255 $as_echo "$as_me: failed program was:" >&5
6256sed 's/^/| /' conftest.$ac_ext >&5
6257
6258
5675fi 6259fi
6260
5676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5677 ac_cv_sys_file_offset_bits=unknown 6262 ac_cv_sys_file_offset_bits=unknown
5678 break 6263 break
5679done 6264done
5680fi 6265fi
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6266{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5682$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6267$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5683case $ac_cv_sys_file_offset_bits in #( 6268case $ac_cv_sys_file_offset_bits in #(
5684 no | unknown) ;; 6269 no | unknown) ;;
@@ -5690,13 +6275,17 @@ _ACEOF
5690esac 6275esac
5691rm -rf conftest* 6276rm -rf conftest*
5692 if test $ac_cv_sys_file_offset_bits = unknown; then 6277 if test $ac_cv_sys_file_offset_bits = unknown; then
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6278 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5694$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6279$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5695if test "${ac_cv_sys_large_files+set}" = set; then : 6280if test "${ac_cv_sys_large_files+set}" = set; then
5696 $as_echo_n "(cached) " >&6 6281 $as_echo_n "(cached) " >&6
5697else 6282else
5698 while :; do 6283 while :; do
5699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6284 cat >conftest.$ac_ext <<_ACEOF
6285/* confdefs.h. */
6286_ACEOF
6287cat confdefs.h >>conftest.$ac_ext
6288cat >>conftest.$ac_ext <<_ACEOF
5700/* end confdefs.h. */ 6289/* end confdefs.h. */
5701#include <sys/types.h> 6290#include <sys/types.h>
5702 /* Check that off_t can represent 2**63 - 1 correctly. 6291 /* Check that off_t can represent 2**63 - 1 correctly.
@@ -5715,11 +6304,38 @@ main ()
5715 return 0; 6304 return 0;
5716} 6305}
5717_ACEOF 6306_ACEOF
5718if ac_fn_c_try_compile "$LINENO"; then : 6307rm -f conftest.$ac_objext
6308if { (ac_try="$ac_compile"
6309case "(($ac_try" in
6310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6311 *) ac_try_echo=$ac_try;;
6312esac
6313eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6314$as_echo "$ac_try_echo") >&5
6315 (eval "$ac_compile") 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } && {
6322 test -z "$ac_c_werror_flag" ||
6323 test ! -s conftest.err
6324 } && test -s conftest.$ac_objext; then
5719 ac_cv_sys_large_files=no; break 6325 ac_cv_sys_large_files=no; break
6326else
6327 $as_echo "$as_me: failed program was:" >&5
6328sed 's/^/| /' conftest.$ac_ext >&5
6329
6330
5720fi 6331fi
6332
5721rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6334 cat >conftest.$ac_ext <<_ACEOF
6335/* confdefs.h. */
6336_ACEOF
6337cat confdefs.h >>conftest.$ac_ext
6338cat >>conftest.$ac_ext <<_ACEOF
5723/* end confdefs.h. */ 6339/* end confdefs.h. */
5724#define _LARGE_FILES 1 6340#define _LARGE_FILES 1
5725#include <sys/types.h> 6341#include <sys/types.h>
@@ -5739,15 +6355,38 @@ main ()
5739 return 0; 6355 return 0;
5740} 6356}
5741_ACEOF 6357_ACEOF
5742if ac_fn_c_try_compile "$LINENO"; then : 6358rm -f conftest.$ac_objext
6359if { (ac_try="$ac_compile"
6360case "(($ac_try" in
6361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6362 *) ac_try_echo=$ac_try;;
6363esac
6364eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6365$as_echo "$ac_try_echo") >&5
6366 (eval "$ac_compile") 2>conftest.er1
6367 ac_status=$?
6368 grep -v '^ *+' conftest.er1 >conftest.err
6369 rm -f conftest.er1
6370 cat conftest.err >&5
6371 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6372 (exit $ac_status); } && {
6373 test -z "$ac_c_werror_flag" ||
6374 test ! -s conftest.err
6375 } && test -s conftest.$ac_objext; then
5743 ac_cv_sys_large_files=1; break 6376 ac_cv_sys_large_files=1; break
6377else
6378 $as_echo "$as_me: failed program was:" >&5
6379sed 's/^/| /' conftest.$ac_ext >&5
6380
6381
5744fi 6382fi
6383
5745rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6384rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 ac_cv_sys_large_files=unknown 6385 ac_cv_sys_large_files=unknown
5747 break 6386 break
5748done 6387done
5749fi 6388fi
5750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6389{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5751$as_echo "$ac_cv_sys_large_files" >&6; } 6390$as_echo "$ac_cv_sys_large_files" >&6; }
5752case $ac_cv_sys_large_files in #( 6391case $ac_cv_sys_large_files in #(
5753 no | unknown) ;; 6392 no | unknown) ;;
@@ -5793,7 +6432,9 @@ else
5793 ## Some platforms don't use any of these files, so it is not 6432 ## Some platforms don't use any of these files, so it is not
5794 ## appropriate to put this test outside the if block. 6433 ## appropriate to put this test outside the if block.
5795 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ 6434 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5796 as_fn_error "crt*.o not found in specified location." "$LINENO" 5 6435 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6436$as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6437 { (exit 1); exit 1; }; }
5797 6438
5798fi 6439fi
5799 6440
@@ -5844,12 +6485,145 @@ esac
5844 6485
5845if test "${with_sound}" != "no"; then 6486if test "${with_sound}" != "no"; then
5846 # Sound support for GNU/Linux and the free BSDs. 6487 # Sound support for GNU/Linux and the free BSDs.
5847 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h 6488
5848do : 6489
5849 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6490
5850ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6491for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5851eval as_val=\$$as_ac_Header 6492do
5852 if test "x$as_val" = x""yes; then : 6493as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6494if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6495 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6496$as_echo_n "checking for $ac_header... " >&6; }
6497if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6498 $as_echo_n "(cached) " >&6
6499fi
6500ac_res=`eval 'as_val=${'$as_ac_Header'}
6501 $as_echo "$as_val"'`
6502 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6503$as_echo "$ac_res" >&6; }
6504else
6505 # Is the header compilable?
6506{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6507$as_echo_n "checking $ac_header usability... " >&6; }
6508cat >conftest.$ac_ext <<_ACEOF
6509/* confdefs.h. */
6510_ACEOF
6511cat confdefs.h >>conftest.$ac_ext
6512cat >>conftest.$ac_ext <<_ACEOF
6513/* end confdefs.h. */
6514$ac_includes_default
6515#include <$ac_header>
6516_ACEOF
6517rm -f conftest.$ac_objext
6518if { (ac_try="$ac_compile"
6519case "(($ac_try" in
6520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521 *) ac_try_echo=$ac_try;;
6522esac
6523eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6524$as_echo "$ac_try_echo") >&5
6525 (eval "$ac_compile") 2>conftest.er1
6526 ac_status=$?
6527 grep -v '^ *+' conftest.er1 >conftest.err
6528 rm -f conftest.er1
6529 cat conftest.err >&5
6530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } && {
6532 test -z "$ac_c_werror_flag" ||
6533 test ! -s conftest.err
6534 } && test -s conftest.$ac_objext; then
6535 ac_header_compiler=yes
6536else
6537 $as_echo "$as_me: failed program was:" >&5
6538sed 's/^/| /' conftest.$ac_ext >&5
6539
6540 ac_header_compiler=no
6541fi
6542
6543rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6545$as_echo "$ac_header_compiler" >&6; }
6546
6547# Is the header present?
6548{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6549$as_echo_n "checking $ac_header presence... " >&6; }
6550cat >conftest.$ac_ext <<_ACEOF
6551/* confdefs.h. */
6552_ACEOF
6553cat confdefs.h >>conftest.$ac_ext
6554cat >>conftest.$ac_ext <<_ACEOF
6555/* end confdefs.h. */
6556#include <$ac_header>
6557_ACEOF
6558if { (ac_try="$ac_cpp conftest.$ac_ext"
6559case "(($ac_try" in
6560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561 *) ac_try_echo=$ac_try;;
6562esac
6563eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6564$as_echo "$ac_try_echo") >&5
6565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } >/dev/null && {
6572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6573 test ! -s conftest.err
6574 }; then
6575 ac_header_preproc=yes
6576else
6577 $as_echo "$as_me: failed program was:" >&5
6578sed 's/^/| /' conftest.$ac_ext >&5
6579
6580 ac_header_preproc=no
6581fi
6582
6583rm -f conftest.err conftest.$ac_ext
6584{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6585$as_echo "$ac_header_preproc" >&6; }
6586
6587# So? What about this header?
6588case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6589 yes:no: )
6590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6591$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6593$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6594 ac_header_preproc=yes
6595 ;;
6596 no:yes:* )
6597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6598$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6600$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6602$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6604$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6606$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6608$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6609
6610 ;;
6611esac
6612{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6613$as_echo_n "checking for $ac_header... " >&6; }
6614if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6615 $as_echo_n "(cached) " >&6
6616else
6617 eval "$as_ac_Header=\$ac_header_preproc"
6618fi
6619ac_res=`eval 'as_val=${'$as_ac_Header'}
6620 $as_echo "$as_val"'`
6621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6622$as_echo "$ac_res" >&6; }
6623
6624fi
6625if test `eval 'as_val=${'$as_ac_Header'}
6626 $as_echo "$as_val"'` = yes; then
5853 cat >>confdefs.h <<_ACEOF 6627 cat >>confdefs.h <<_ACEOF
5854#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6628#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5855_ACEOF 6629_ACEOF
@@ -5859,14 +6633,18 @@ fi
5859done 6633done
5860 6634
5861 # Emulation library used on NetBSD. 6635 # Emulation library used on NetBSD.
5862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 6636 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5863$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } 6637$as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5864if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : 6638if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5865 $as_echo_n "(cached) " >&6 6639 $as_echo_n "(cached) " >&6
5866else 6640else
5867 ac_check_lib_save_LIBS=$LIBS 6641 ac_check_lib_save_LIBS=$LIBS
5868LIBS="-lossaudio $LIBS" 6642LIBS="-lossaudio $LIBS"
5869cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6643cat >conftest.$ac_ext <<_ACEOF
6644/* confdefs.h. */
6645_ACEOF
6646cat confdefs.h >>conftest.$ac_ext
6647cat >>conftest.$ac_ext <<_ACEOF
5870/* end confdefs.h. */ 6648/* end confdefs.h. */
5871 6649
5872/* Override any GCC internal prototype to avoid an error. 6650/* Override any GCC internal prototype to avoid an error.
@@ -5884,18 +6662,43 @@ return _oss_ioctl ();
5884 return 0; 6662 return 0;
5885} 6663}
5886_ACEOF 6664_ACEOF
5887if ac_fn_c_try_link "$LINENO"; then : 6665rm -f conftest.$ac_objext conftest$ac_exeext
6666if { (ac_try="$ac_link"
6667case "(($ac_try" in
6668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6670esac
6671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6672$as_echo "$ac_try_echo") >&5
6673 (eval "$ac_link") 2>conftest.er1
6674 ac_status=$?
6675 grep -v '^ *+' conftest.er1 >conftest.err
6676 rm -f conftest.er1
6677 cat conftest.err >&5
6678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6679 (exit $ac_status); } && {
6680 test -z "$ac_c_werror_flag" ||
6681 test ! -s conftest.err
6682 } && test -s conftest$ac_exeext && {
6683 test "$cross_compiling" = yes ||
6684 $as_test_x conftest$ac_exeext
6685 }; then
5888 ac_cv_lib_ossaudio__oss_ioctl=yes 6686 ac_cv_lib_ossaudio__oss_ioctl=yes
5889else 6687else
5890 ac_cv_lib_ossaudio__oss_ioctl=no 6688 $as_echo "$as_me: failed program was:" >&5
6689sed 's/^/| /' conftest.$ac_ext >&5
6690
6691 ac_cv_lib_ossaudio__oss_ioctl=no
5891fi 6692fi
5892rm -f core conftest.err conftest.$ac_objext \ 6693
5893 conftest$ac_exeext conftest.$ac_ext 6694rm -rf conftest.dSYM
6695rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6696 conftest$ac_exeext conftest.$ac_ext
5894LIBS=$ac_check_lib_save_LIBS 6697LIBS=$ac_check_lib_save_LIBS
5895fi 6698fi
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 6699{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5897$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } 6700$as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5898if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then : 6701if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5899 LIBSOUND=-lossaudio 6702 LIBSOUND=-lossaudio
5900else 6703else
5901 LIBSOUND= 6704 LIBSOUND=
@@ -5910,9 +6713,9 @@ fi
5910 6713
5911 # Extract the first word of "pkg-config", so it can be a program name with args. 6714 # Extract the first word of "pkg-config", so it can be a program name with args.
5912set dummy pkg-config; ac_word=$2 6715set dummy pkg-config; ac_word=$2
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6716{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5914$as_echo_n "checking for $ac_word... " >&6; } 6717$as_echo_n "checking for $ac_word... " >&6; }
5915if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 6718if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5916 $as_echo_n "(cached) " >&6 6719 $as_echo_n "(cached) " >&6
5917else 6720else
5918 case $PKG_CONFIG in 6721 case $PKG_CONFIG in
@@ -5925,14 +6728,14 @@ for as_dir in $PATH
5925do 6728do
5926 IFS=$as_save_IFS 6729 IFS=$as_save_IFS
5927 test -z "$as_dir" && as_dir=. 6730 test -z "$as_dir" && as_dir=.
5928 for ac_exec_ext in '' $ac_executable_extensions; do 6731 for ac_exec_ext in '' $ac_executable_extensions; do
5929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6732 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5930 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6733 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6734 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5932 break 2 6735 break 2
5933 fi 6736 fi
5934done 6737done
5935 done 6738done
5936IFS=$as_save_IFS 6739IFS=$as_save_IFS
5937 6740
5938 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 6741 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -5941,10 +6744,10 @@ esac
5941fi 6744fi
5942PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6745PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5943if test -n "$PKG_CONFIG"; then 6746if test -n "$PKG_CONFIG"; then
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6747 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5945$as_echo "$PKG_CONFIG" >&6; } 6748$as_echo "$PKG_CONFIG" >&6; }
5946else 6749else
5947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6750 { $as_echo "$as_me:$LINENO: result: no" >&5
5948$as_echo "no" >&6; } 6751$as_echo "no" >&6; }
5949fi 6752fi
5950 6753
@@ -5955,27 +6758,27 @@ fi
5955 else 6758 else
5956 PKG_CONFIG_MIN_VERSION=0.9.0 6759 PKG_CONFIG_MIN_VERSION=0.9.0
5957 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 6760 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5 6761 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5959$as_echo_n "checking for $ALSA_MODULES... " >&6; } 6762$as_echo_n "checking for $ALSA_MODULES... " >&6; }
5960 6763
5961 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then 6764 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6765 { $as_echo "$as_me:$LINENO: result: yes" >&5
5963$as_echo "yes" >&6; } 6766$as_echo "yes" >&6; }
5964 succeeded=yes 6767 succeeded=yes
5965 6768
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5 6769 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
5967$as_echo_n "checking ALSA_CFLAGS... " >&6; } 6770$as_echo_n "checking ALSA_CFLAGS... " >&6; }
5968 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` 6771 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5 6772 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
5970$as_echo "$ALSA_CFLAGS" >&6; } 6773$as_echo "$ALSA_CFLAGS" >&6; }
5971 6774
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5 6775 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
5973$as_echo_n "checking ALSA_LIBS... " >&6; } 6776$as_echo_n "checking ALSA_LIBS... " >&6; }
5974 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` 6777 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5 6778 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
5976$as_echo "$ALSA_LIBS" >&6; } 6779$as_echo "$ALSA_LIBS" >&6; }
5977 else 6780 else
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6781 { $as_echo "$as_me:$LINENO: result: no" >&5
5979$as_echo "no" >&6; } 6782$as_echo "no" >&6; }
5980 ALSA_CFLAGS="" 6783 ALSA_CFLAGS=""
5981 ALSA_LIBS="" 6784 ALSA_LIBS=""
@@ -6004,7 +6807,11 @@ $as_echo "no" >&6; }
6004 SAVE_LDFLAGS="$LDFLAGS" 6807 SAVE_LDFLAGS="$LDFLAGS"
6005 CFLAGS="$ALSA_CFLAGS $CFLAGS" 6808 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6006 LDFLAGS="$ALSA_LIBS $LDFLAGS" 6809 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6810 cat >conftest.$ac_ext <<_ACEOF
6811/* confdefs.h. */
6812_ACEOF
6813cat confdefs.h >>conftest.$ac_ext
6814cat >>conftest.$ac_ext <<_ACEOF
6008/* end confdefs.h. */ 6815/* end confdefs.h. */
6009#include <asoundlib.h> 6816#include <asoundlib.h>
6010int 6817int
@@ -6015,14 +6822,39 @@ snd_lib_error_set_handler (0);
6015 return 0; 6822 return 0;
6016} 6823}
6017_ACEOF 6824_ACEOF
6018if ac_fn_c_try_compile "$LINENO"; then : 6825rm -f conftest.$ac_objext
6826if { (ac_try="$ac_compile"
6827case "(($ac_try" in
6828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6829 *) ac_try_echo=$ac_try;;
6830esac
6831eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6832$as_echo "$ac_try_echo") >&5
6833 (eval "$ac_compile") 2>conftest.er1
6834 ac_status=$?
6835 grep -v '^ *+' conftest.er1 >conftest.err
6836 rm -f conftest.er1
6837 cat conftest.err >&5
6838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && {
6840 test -z "$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6842 } && test -s conftest.$ac_objext; then
6019 emacs_alsa_normal=yes 6843 emacs_alsa_normal=yes
6020else 6844else
6021 emacs_alsa_normal=no 6845 $as_echo "$as_me: failed program was:" >&5
6846sed 's/^/| /' conftest.$ac_ext >&5
6847
6848 emacs_alsa_normal=no
6022fi 6849fi
6850
6023rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6851rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6024 if test "$emacs_alsa_normal" != yes; then 6852 if test "$emacs_alsa_normal" != yes; then
6025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6853 cat >conftest.$ac_ext <<_ACEOF
6854/* confdefs.h. */
6855_ACEOF
6856cat confdefs.h >>conftest.$ac_ext
6857cat >>conftest.$ac_ext <<_ACEOF
6026/* end confdefs.h. */ 6858/* end confdefs.h. */
6027#include <alsa/asoundlib.h> 6859#include <alsa/asoundlib.h>
6028int 6860int
@@ -6033,14 +6865,37 @@ snd_lib_error_set_handler (0);
6033 return 0; 6865 return 0;
6034} 6866}
6035_ACEOF 6867_ACEOF
6036if ac_fn_c_try_compile "$LINENO"; then : 6868rm -f conftest.$ac_objext
6869if { (ac_try="$ac_compile"
6870case "(($ac_try" in
6871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6872 *) ac_try_echo=$ac_try;;
6873esac
6874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6875$as_echo "$ac_try_echo") >&5
6876 (eval "$ac_compile") 2>conftest.er1
6877 ac_status=$?
6878 grep -v '^ *+' conftest.er1 >conftest.err
6879 rm -f conftest.er1
6880 cat conftest.err >&5
6881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } && {
6883 test -z "$ac_c_werror_flag" ||
6884 test ! -s conftest.err
6885 } && test -s conftest.$ac_objext; then
6037 emacs_alsa_subdir=yes 6886 emacs_alsa_subdir=yes
6038else 6887else
6039 emacs_alsa_subdir=no 6888 $as_echo "$as_me: failed program was:" >&5
6889sed 's/^/| /' conftest.$ac_ext >&5
6890
6891 emacs_alsa_subdir=no
6040fi 6892fi
6893
6041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6042 if test "$emacs_alsa_subdir" != yes; then 6895 if test "$emacs_alsa_subdir" != yes; then
6043 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 6896 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6897$as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6898 { (exit 1); exit 1; }; }
6044 fi 6899 fi
6045 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" 6900 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6046 fi 6901 fi
@@ -6050,22 +6905,179 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6050 LIBSOUND="$LIBSOUND $ALSA_LIBS" 6905 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6051 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" 6906 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6052 6907
6053$as_echo "#define HAVE_ALSA 1" >>confdefs.h 6908cat >>confdefs.h <<\_ACEOF
6909#define HAVE_ALSA 1
6910_ACEOF
6054 6911
6055 fi 6912 fi
6056 6913
6057fi 6914fi
6058 6915
6916
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6059for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ 6941for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6060 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 6942 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6061 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ 6943 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6062 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ 6944 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6063 sys/utsname.h pwd.h utmp.h 6945 sys/utsname.h pwd.h utmp.h
6064do : 6946do
6065 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6947as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6066ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6948if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6067eval as_val=\$$as_ac_Header 6949 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6068 if test "x$as_val" = x""yes; then : 6950$as_echo_n "checking for $ac_header... " >&6; }
6951if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6952 $as_echo_n "(cached) " >&6
6953fi
6954ac_res=`eval 'as_val=${'$as_ac_Header'}
6955 $as_echo "$as_val"'`
6956 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6957$as_echo "$ac_res" >&6; }
6958else
6959 # Is the header compilable?
6960{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6961$as_echo_n "checking $ac_header usability... " >&6; }
6962cat >conftest.$ac_ext <<_ACEOF
6963/* confdefs.h. */
6964_ACEOF
6965cat confdefs.h >>conftest.$ac_ext
6966cat >>conftest.$ac_ext <<_ACEOF
6967/* end confdefs.h. */
6968$ac_includes_default
6969#include <$ac_header>
6970_ACEOF
6971rm -f conftest.$ac_objext
6972if { (ac_try="$ac_compile"
6973case "(($ac_try" in
6974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6975 *) ac_try_echo=$ac_try;;
6976esac
6977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6978$as_echo "$ac_try_echo") >&5
6979 (eval "$ac_compile") 2>conftest.er1
6980 ac_status=$?
6981 grep -v '^ *+' conftest.er1 >conftest.err
6982 rm -f conftest.er1
6983 cat conftest.err >&5
6984 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6985 (exit $ac_status); } && {
6986 test -z "$ac_c_werror_flag" ||
6987 test ! -s conftest.err
6988 } && test -s conftest.$ac_objext; then
6989 ac_header_compiler=yes
6990else
6991 $as_echo "$as_me: failed program was:" >&5
6992sed 's/^/| /' conftest.$ac_ext >&5
6993
6994 ac_header_compiler=no
6995fi
6996
6997rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6998{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6999$as_echo "$ac_header_compiler" >&6; }
7000
7001# Is the header present?
7002{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7003$as_echo_n "checking $ac_header presence... " >&6; }
7004cat >conftest.$ac_ext <<_ACEOF
7005/* confdefs.h. */
7006_ACEOF
7007cat confdefs.h >>conftest.$ac_ext
7008cat >>conftest.$ac_ext <<_ACEOF
7009/* end confdefs.h. */
7010#include <$ac_header>
7011_ACEOF
7012if { (ac_try="$ac_cpp conftest.$ac_ext"
7013case "(($ac_try" in
7014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7015 *) ac_try_echo=$ac_try;;
7016esac
7017eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7018$as_echo "$ac_try_echo") >&5
7019 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7020 ac_status=$?
7021 grep -v '^ *+' conftest.er1 >conftest.err
7022 rm -f conftest.er1
7023 cat conftest.err >&5
7024 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } >/dev/null && {
7026 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7027 test ! -s conftest.err
7028 }; then
7029 ac_header_preproc=yes
7030else
7031 $as_echo "$as_me: failed program was:" >&5
7032sed 's/^/| /' conftest.$ac_ext >&5
7033
7034 ac_header_preproc=no
7035fi
7036
7037rm -f conftest.err conftest.$ac_ext
7038{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7039$as_echo "$ac_header_preproc" >&6; }
7040
7041# So? What about this header?
7042case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7043 yes:no: )
7044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7045$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7047$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7048 ac_header_preproc=yes
7049 ;;
7050 no:yes:* )
7051 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7052$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7054$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7056$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7058$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7060$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7062$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7063
7064 ;;
7065esac
7066{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7067$as_echo_n "checking for $ac_header... " >&6; }
7068if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7069 $as_echo_n "(cached) " >&6
7070else
7071 eval "$as_ac_Header=\$ac_header_preproc"
7072fi
7073ac_res=`eval 'as_val=${'$as_ac_Header'}
7074 $as_echo "$as_val"'`
7075 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7076$as_echo "$ac_res" >&6; }
7077
7078fi
7079if test `eval 'as_val=${'$as_ac_Header'}
7080 $as_echo "$as_val"'` = yes; then
6069 cat >>confdefs.h <<_ACEOF 7081 cat >>confdefs.h <<_ACEOF
6070#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7082#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6071_ACEOF 7083_ACEOF
@@ -6075,9 +7087,13 @@ fi
6075done 7087done
6076 7088
6077 7089
6078{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5 7090{ $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6079$as_echo_n "checking if personality LINUX32 can be set... " >&6; } 7091$as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7092cat >conftest.$ac_ext <<_ACEOF
7093/* confdefs.h. */
7094_ACEOF
7095cat confdefs.h >>conftest.$ac_ext
7096cat >>conftest.$ac_ext <<_ACEOF
6081/* end confdefs.h. */ 7097/* end confdefs.h. */
6082#include <sys/personality.h> 7098#include <sys/personality.h>
6083int 7099int
@@ -6088,39 +7104,112 @@ personality (PER_LINUX32)
6088 return 0; 7104 return 0;
6089} 7105}
6090_ACEOF 7106_ACEOF
6091if ac_fn_c_try_compile "$LINENO"; then : 7107rm -f conftest.$ac_objext
7108if { (ac_try="$ac_compile"
7109case "(($ac_try" in
7110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7111 *) ac_try_echo=$ac_try;;
7112esac
7113eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7114$as_echo "$ac_try_echo") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7116 ac_status=$?
7117 grep -v '^ *+' conftest.er1 >conftest.err
7118 rm -f conftest.er1
7119 cat conftest.err >&5
7120 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
6092 emacs_cv_personality_linux32=yes 7125 emacs_cv_personality_linux32=yes
6093else 7126else
6094 emacs_cv_personality_linux32=no 7127 $as_echo "$as_me: failed program was:" >&5
7128sed 's/^/| /' conftest.$ac_ext >&5
7129
7130 emacs_cv_personality_linux32=no
6095fi 7131fi
7132
6096rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5 7134{ $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6098$as_echo "$emacs_cv_personality_linux32" >&6; } 7135$as_echo "$emacs_cv_personality_linux32" >&6; }
6099 7136
6100if test $emacs_cv_personality_linux32 = yes; then 7137if test $emacs_cv_personality_linux32 = yes; then
6101 7138
6102$as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h 7139cat >>confdefs.h <<\_ACEOF
7140#define HAVE_PERSONALITY_LINUX32 1
7141_ACEOF
6103 7142
6104fi 7143fi
6105 7144
7145
6106for ac_header in term.h 7146for ac_header in term.h
6107do : 7147do
6108 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" 7148as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6109if test "x$ac_cv_header_term_h" = x""yes; then : 7149{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7150$as_echo_n "checking for $ac_header... " >&6; }
7151if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7152 $as_echo_n "(cached) " >&6
7153else
7154 cat >conftest.$ac_ext <<_ACEOF
7155/* confdefs.h. */
7156_ACEOF
7157cat confdefs.h >>conftest.$ac_ext
7158cat >>conftest.$ac_ext <<_ACEOF
7159/* end confdefs.h. */
7160#include <$ac_header>
7161_ACEOF
7162if { (ac_try="$ac_cpp conftest.$ac_ext"
7163case "(($ac_try" in
7164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165 *) ac_try_echo=$ac_try;;
7166esac
7167eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7168$as_echo "$ac_try_echo") >&5
7169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7170 ac_status=$?
7171 grep -v '^ *+' conftest.er1 >conftest.err
7172 rm -f conftest.er1
7173 cat conftest.err >&5
7174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); } >/dev/null && {
7176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7177 test ! -s conftest.err
7178 }; then
7179 eval "$as_ac_Header=yes"
7180else
7181 $as_echo "$as_me: failed program was:" >&5
7182sed 's/^/| /' conftest.$ac_ext >&5
7183
7184 eval "$as_ac_Header=no"
7185fi
7186
7187rm -f conftest.err conftest.$ac_ext
7188fi
7189ac_res=`eval 'as_val=${'$as_ac_Header'}
7190 $as_echo "$as_val"'`
7191 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7192$as_echo "$ac_res" >&6; }
7193if test `eval 'as_val=${'$as_ac_Header'}
7194 $as_echo "$as_val"'` = yes; then
6110 cat >>confdefs.h <<_ACEOF 7195 cat >>confdefs.h <<_ACEOF
6111#define HAVE_TERM_H 1 7196#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6112_ACEOF 7197_ACEOF
6113 7198
6114fi 7199fi
6115 7200
6116done 7201done
6117 7202
6118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7203{ $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6119$as_echo_n "checking for ANSI C header files... " >&6; } 7204$as_echo_n "checking for ANSI C header files... " >&6; }
6120if test "${ac_cv_header_stdc+set}" = set; then : 7205if test "${ac_cv_header_stdc+set}" = set; then
6121 $as_echo_n "(cached) " >&6 7206 $as_echo_n "(cached) " >&6
6122else 7207else
6123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7208 cat >conftest.$ac_ext <<_ACEOF
7209/* confdefs.h. */
7210_ACEOF
7211cat confdefs.h >>conftest.$ac_ext
7212cat >>conftest.$ac_ext <<_ACEOF
6124/* end confdefs.h. */ 7213/* end confdefs.h. */
6125#include <stdlib.h> 7214#include <stdlib.h>
6126#include <stdarg.h> 7215#include <stdarg.h>
@@ -6135,23 +7224,48 @@ main ()
6135 return 0; 7224 return 0;
6136} 7225}
6137_ACEOF 7226_ACEOF
6138if ac_fn_c_try_compile "$LINENO"; then : 7227rm -f conftest.$ac_objext
7228if { (ac_try="$ac_compile"
7229case "(($ac_try" in
7230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7231 *) ac_try_echo=$ac_try;;
7232esac
7233eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7234$as_echo "$ac_try_echo") >&5
7235 (eval "$ac_compile") 2>conftest.er1
7236 ac_status=$?
7237 grep -v '^ *+' conftest.er1 >conftest.err
7238 rm -f conftest.er1
7239 cat conftest.err >&5
7240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7241 (exit $ac_status); } && {
7242 test -z "$ac_c_werror_flag" ||
7243 test ! -s conftest.err
7244 } && test -s conftest.$ac_objext; then
6139 ac_cv_header_stdc=yes 7245 ac_cv_header_stdc=yes
6140else 7246else
6141 ac_cv_header_stdc=no 7247 $as_echo "$as_me: failed program was:" >&5
7248sed 's/^/| /' conftest.$ac_ext >&5
7249
7250 ac_cv_header_stdc=no
6142fi 7251fi
7252
6143rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6144 7254
6145if test $ac_cv_header_stdc = yes; then 7255if test $ac_cv_header_stdc = yes; then
6146 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7256 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7257 cat >conftest.$ac_ext <<_ACEOF
7258/* confdefs.h. */
7259_ACEOF
7260cat confdefs.h >>conftest.$ac_ext
7261cat >>conftest.$ac_ext <<_ACEOF
6148/* end confdefs.h. */ 7262/* end confdefs.h. */
6149#include <string.h> 7263#include <string.h>
6150 7264
6151_ACEOF 7265_ACEOF
6152if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7266if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6153 $EGREP "memchr" >/dev/null 2>&1; then : 7267 $EGREP "memchr" >/dev/null 2>&1; then
6154 7268 :
6155else 7269else
6156 ac_cv_header_stdc=no 7270 ac_cv_header_stdc=no
6157fi 7271fi
@@ -6161,14 +7275,18 @@ fi
6161 7275
6162if test $ac_cv_header_stdc = yes; then 7276if test $ac_cv_header_stdc = yes; then
6163 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7277 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7278 cat >conftest.$ac_ext <<_ACEOF
7279/* confdefs.h. */
7280_ACEOF
7281cat confdefs.h >>conftest.$ac_ext
7282cat >>conftest.$ac_ext <<_ACEOF
6165/* end confdefs.h. */ 7283/* end confdefs.h. */
6166#include <stdlib.h> 7284#include <stdlib.h>
6167 7285
6168_ACEOF 7286_ACEOF
6169if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7287if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6170 $EGREP "free" >/dev/null 2>&1; then : 7288 $EGREP "free" >/dev/null 2>&1; then
6171 7289 :
6172else 7290else
6173 ac_cv_header_stdc=no 7291 ac_cv_header_stdc=no
6174fi 7292fi
@@ -6178,10 +7296,14 @@ fi
6178 7296
6179if test $ac_cv_header_stdc = yes; then 7297if test $ac_cv_header_stdc = yes; then
6180 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7298 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6181 if test "$cross_compiling" = yes; then : 7299 if test "$cross_compiling" = yes; then
6182 : 7300 :
6183else 7301else
6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7302 cat >conftest.$ac_ext <<_ACEOF
7303/* confdefs.h. */
7304_ACEOF
7305cat confdefs.h >>conftest.$ac_ext
7306cat >>conftest.$ac_ext <<_ACEOF
6185/* end confdefs.h. */ 7307/* end confdefs.h. */
6186#include <ctype.h> 7308#include <ctype.h>
6187#include <stdlib.h> 7309#include <stdlib.h>
@@ -6208,31 +7330,64 @@ main ()
6208 return 0; 7330 return 0;
6209} 7331}
6210_ACEOF 7332_ACEOF
6211if ac_fn_c_try_run "$LINENO"; then : 7333rm -f conftest$ac_exeext
6212 7334if { (ac_try="$ac_link"
7335case "(($ac_try" in
7336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7337 *) ac_try_echo=$ac_try;;
7338esac
7339eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7340$as_echo "$ac_try_echo") >&5
7341 (eval "$ac_link") 2>&5
7342 ac_status=$?
7343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7345 { (case "(($ac_try" in
7346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7347 *) ac_try_echo=$ac_try;;
7348esac
7349eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7350$as_echo "$ac_try_echo") >&5
7351 (eval "$ac_try") 2>&5
7352 ac_status=$?
7353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7354 (exit $ac_status); }; }; then
7355 :
6213else 7356else
6214 ac_cv_header_stdc=no 7357 $as_echo "$as_me: program exited with status $ac_status" >&5
7358$as_echo "$as_me: failed program was:" >&5
7359sed 's/^/| /' conftest.$ac_ext >&5
7360
7361( exit $ac_status )
7362ac_cv_header_stdc=no
6215fi 7363fi
6216rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7364rm -rf conftest.dSYM
6217 conftest.$ac_objext conftest.beam conftest.$ac_ext 7365rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6218fi 7366fi
6219 7367
7368
6220fi 7369fi
6221fi 7370fi
6222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7371{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6223$as_echo "$ac_cv_header_stdc" >&6; } 7372$as_echo "$ac_cv_header_stdc" >&6; }
6224if test $ac_cv_header_stdc = yes; then 7373if test $ac_cv_header_stdc = yes; then
6225 7374
6226$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7375cat >>confdefs.h <<\_ACEOF
7376#define STDC_HEADERS 1
7377_ACEOF
6227 7378
6228fi 7379fi
6229 7380
6230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 7381{ $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6231$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 7382$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6232if test "${ac_cv_header_time+set}" = set; then : 7383if test "${ac_cv_header_time+set}" = set; then
6233 $as_echo_n "(cached) " >&6 7384 $as_echo_n "(cached) " >&6
6234else 7385else
6235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7386 cat >conftest.$ac_ext <<_ACEOF
7387/* confdefs.h. */
7388_ACEOF
7389cat confdefs.h >>conftest.$ac_ext
7390cat >>conftest.$ac_ext <<_ACEOF
6236/* end confdefs.h. */ 7391/* end confdefs.h. */
6237#include <sys/types.h> 7392#include <sys/types.h>
6238#include <sys/time.h> 7393#include <sys/time.h>
@@ -6247,57 +7402,202 @@ return 0;
6247 return 0; 7402 return 0;
6248} 7403}
6249_ACEOF 7404_ACEOF
6250if ac_fn_c_try_compile "$LINENO"; then : 7405rm -f conftest.$ac_objext
7406if { (ac_try="$ac_compile"
7407case "(($ac_try" in
7408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7409 *) ac_try_echo=$ac_try;;
7410esac
7411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7412$as_echo "$ac_try_echo") >&5
7413 (eval "$ac_compile") 2>conftest.er1
7414 ac_status=$?
7415 grep -v '^ *+' conftest.er1 >conftest.err
7416 rm -f conftest.er1
7417 cat conftest.err >&5
7418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); } && {
7420 test -z "$ac_c_werror_flag" ||
7421 test ! -s conftest.err
7422 } && test -s conftest.$ac_objext; then
6251 ac_cv_header_time=yes 7423 ac_cv_header_time=yes
6252else 7424else
6253 ac_cv_header_time=no 7425 $as_echo "$as_me: failed program was:" >&5
7426sed 's/^/| /' conftest.$ac_ext >&5
7427
7428 ac_cv_header_time=no
6254fi 7429fi
7430
6255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256fi 7432fi
6257{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 7433{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6258$as_echo "$ac_cv_header_time" >&6; } 7434$as_echo "$ac_cv_header_time" >&6; }
6259if test $ac_cv_header_time = yes; then 7435if test $ac_cv_header_time = yes; then
6260 7436
6261$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 7437cat >>confdefs.h <<\_ACEOF
7438#define TIME_WITH_SYS_TIME 1
7439_ACEOF
6262 7440
6263fi 7441fi
6264 7442
6265ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default" 7443{ $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6266if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then : 7444$as_echo_n "checking whether sys_siglist is declared... " >&6; }
6267 ac_have_decl=1 7445if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7446 $as_echo_n "(cached) " >&6
6268else 7447else
6269 ac_have_decl=0 7448 cat >conftest.$ac_ext <<_ACEOF
7449/* confdefs.h. */
7450_ACEOF
7451cat confdefs.h >>conftest.$ac_ext
7452cat >>conftest.$ac_ext <<_ACEOF
7453/* end confdefs.h. */
7454$ac_includes_default
7455int
7456main ()
7457{
7458#ifndef sys_siglist
7459 (void) sys_siglist;
7460#endif
7461
7462 ;
7463 return 0;
7464}
7465_ACEOF
7466rm -f conftest.$ac_objext
7467if { (ac_try="$ac_compile"
7468case "(($ac_try" in
7469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7470 *) ac_try_echo=$ac_try;;
7471esac
7472eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7473$as_echo "$ac_try_echo") >&5
7474 (eval "$ac_compile") 2>conftest.er1
7475 ac_status=$?
7476 grep -v '^ *+' conftest.er1 >conftest.err
7477 rm -f conftest.er1
7478 cat conftest.err >&5
7479 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7480 (exit $ac_status); } && {
7481 test -z "$ac_c_werror_flag" ||
7482 test ! -s conftest.err
7483 } && test -s conftest.$ac_objext; then
7484 ac_cv_have_decl_sys_siglist=yes
7485else
7486 $as_echo "$as_me: failed program was:" >&5
7487sed 's/^/| /' conftest.$ac_ext >&5
7488
7489 ac_cv_have_decl_sys_siglist=no
7490fi
7491
7492rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270fi 7493fi
7494{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7495$as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7496if test $ac_cv_have_decl_sys_siglist = yes; then
6271 7497
6272cat >>confdefs.h <<_ACEOF 7498cat >>confdefs.h <<_ACEOF
6273#define HAVE_DECL_SYS_SIGLIST $ac_have_decl 7499#define HAVE_DECL_SYS_SIGLIST 1
6274_ACEOF 7500_ACEOF
6275 7501
7502
7503else
7504 cat >>confdefs.h <<_ACEOF
7505#define HAVE_DECL_SYS_SIGLIST 0
7506_ACEOF
7507
7508
7509fi
7510
7511
6276if test $ac_cv_have_decl_sys_siglist != yes; then 7512if test $ac_cv_have_decl_sys_siglist != yes; then
6277 # For Tru64, at least: 7513 # For Tru64, at least:
6278 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default" 7514 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6279if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then : 7515$as_echo_n "checking whether __sys_siglist is declared... " >&6; }
6280 ac_have_decl=1 7516if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7517 $as_echo_n "(cached) " >&6
7518else
7519 cat >conftest.$ac_ext <<_ACEOF
7520/* confdefs.h. */
7521_ACEOF
7522cat confdefs.h >>conftest.$ac_ext
7523cat >>conftest.$ac_ext <<_ACEOF
7524/* end confdefs.h. */
7525$ac_includes_default
7526int
7527main ()
7528{
7529#ifndef __sys_siglist
7530 (void) __sys_siglist;
7531#endif
7532
7533 ;
7534 return 0;
7535}
7536_ACEOF
7537rm -f conftest.$ac_objext
7538if { (ac_try="$ac_compile"
7539case "(($ac_try" in
7540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7541 *) ac_try_echo=$ac_try;;
7542esac
7543eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7544$as_echo "$ac_try_echo") >&5
7545 (eval "$ac_compile") 2>conftest.er1
7546 ac_status=$?
7547 grep -v '^ *+' conftest.er1 >conftest.err
7548 rm -f conftest.er1
7549 cat conftest.err >&5
7550 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7551 (exit $ac_status); } && {
7552 test -z "$ac_c_werror_flag" ||
7553 test ! -s conftest.err
7554 } && test -s conftest.$ac_objext; then
7555 ac_cv_have_decl___sys_siglist=yes
6281else 7556else
6282 ac_have_decl=0 7557 $as_echo "$as_me: failed program was:" >&5
7558sed 's/^/| /' conftest.$ac_ext >&5
7559
7560 ac_cv_have_decl___sys_siglist=no
6283fi 7561fi
6284 7562
7563rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7564fi
7565{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7566$as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7567if test $ac_cv_have_decl___sys_siglist = yes; then
7568
6285cat >>confdefs.h <<_ACEOF 7569cat >>confdefs.h <<_ACEOF
6286#define HAVE_DECL___SYS_SIGLIST $ac_have_decl 7570#define HAVE_DECL___SYS_SIGLIST 1
6287_ACEOF 7571_ACEOF
6288 7572
7573
7574else
7575 cat >>confdefs.h <<_ACEOF
7576#define HAVE_DECL___SYS_SIGLIST 0
7577_ACEOF
7578
7579
7580fi
7581
7582
6289 if test $ac_cv_have_decl___sys_siglist = yes; then 7583 if test $ac_cv_have_decl___sys_siglist = yes; then
6290 7584
6291$as_echo "#define sys_siglist __sys_siglist" >>confdefs.h 7585cat >>confdefs.h <<\_ACEOF
7586#define sys_siglist __sys_siglist
7587_ACEOF
6292 7588
6293 fi 7589 fi
6294fi 7590fi
6295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 7591{ $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6296$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 7592$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6297if test "${ac_cv_header_sys_wait_h+set}" = set; then : 7593if test "${ac_cv_header_sys_wait_h+set}" = set; then
6298 $as_echo_n "(cached) " >&6 7594 $as_echo_n "(cached) " >&6
6299else 7595else
6300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7596 cat >conftest.$ac_ext <<_ACEOF
7597/* confdefs.h. */
7598_ACEOF
7599cat confdefs.h >>conftest.$ac_ext
7600cat >>conftest.$ac_ext <<_ACEOF
6301/* end confdefs.h. */ 7601/* end confdefs.h. */
6302#include <sys/types.h> 7602#include <sys/types.h>
6303#include <sys/wait.h> 7603#include <sys/wait.h>
@@ -6318,28 +7618,55 @@ main ()
6318 return 0; 7618 return 0;
6319} 7619}
6320_ACEOF 7620_ACEOF
6321if ac_fn_c_try_compile "$LINENO"; then : 7621rm -f conftest.$ac_objext
7622if { (ac_try="$ac_compile"
7623case "(($ac_try" in
7624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7625 *) ac_try_echo=$ac_try;;
7626esac
7627eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7628$as_echo "$ac_try_echo") >&5
7629 (eval "$ac_compile") 2>conftest.er1
7630 ac_status=$?
7631 grep -v '^ *+' conftest.er1 >conftest.err
7632 rm -f conftest.er1
7633 cat conftest.err >&5
7634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7635 (exit $ac_status); } && {
7636 test -z "$ac_c_werror_flag" ||
7637 test ! -s conftest.err
7638 } && test -s conftest.$ac_objext; then
6322 ac_cv_header_sys_wait_h=yes 7639 ac_cv_header_sys_wait_h=yes
6323else 7640else
6324 ac_cv_header_sys_wait_h=no 7641 $as_echo "$as_me: failed program was:" >&5
7642sed 's/^/| /' conftest.$ac_ext >&5
7643
7644 ac_cv_header_sys_wait_h=no
6325fi 7645fi
7646
6326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7647rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6327fi 7648fi
6328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 7649{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6329$as_echo "$ac_cv_header_sys_wait_h" >&6; } 7650$as_echo "$ac_cv_header_sys_wait_h" >&6; }
6330if test $ac_cv_header_sys_wait_h = yes; then 7651if test $ac_cv_header_sys_wait_h = yes; then
6331 7652
6332$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 7653cat >>confdefs.h <<\_ACEOF
7654#define HAVE_SYS_WAIT_H 1
7655_ACEOF
6333 7656
6334fi 7657fi
6335 7658
6336 7659
6337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5 7660{ $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6338$as_echo_n "checking for struct utimbuf... " >&6; } 7661$as_echo_n "checking for struct utimbuf... " >&6; }
6339if test "${emacs_cv_struct_utimbuf+set}" = set; then : 7662if test "${emacs_cv_struct_utimbuf+set}" = set; then
6340 $as_echo_n "(cached) " >&6 7663 $as_echo_n "(cached) " >&6
6341else 7664else
6342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7665 cat >conftest.$ac_ext <<_ACEOF
7666/* confdefs.h. */
7667_ACEOF
7668cat confdefs.h >>conftest.$ac_ext
7669cat >>conftest.$ac_ext <<_ACEOF
6343/* end confdefs.h. */ 7670/* end confdefs.h. */
6344#ifdef TIME_WITH_SYS_TIME 7671#ifdef TIME_WITH_SYS_TIME
6345#include <sys/time.h> 7672#include <sys/time.h>
@@ -6362,27 +7689,54 @@ static struct utimbuf x; x.actime = x.modtime;
6362 return 0; 7689 return 0;
6363} 7690}
6364_ACEOF 7691_ACEOF
6365if ac_fn_c_try_compile "$LINENO"; then : 7692rm -f conftest.$ac_objext
7693if { (ac_try="$ac_compile"
7694case "(($ac_try" in
7695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7696 *) ac_try_echo=$ac_try;;
7697esac
7698eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7699$as_echo "$ac_try_echo") >&5
7700 (eval "$ac_compile") 2>conftest.er1
7701 ac_status=$?
7702 grep -v '^ *+' conftest.er1 >conftest.err
7703 rm -f conftest.er1
7704 cat conftest.err >&5
7705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7706 (exit $ac_status); } && {
7707 test -z "$ac_c_werror_flag" ||
7708 test ! -s conftest.err
7709 } && test -s conftest.$ac_objext; then
6366 emacs_cv_struct_utimbuf=yes 7710 emacs_cv_struct_utimbuf=yes
6367else 7711else
6368 emacs_cv_struct_utimbuf=no 7712 $as_echo "$as_me: failed program was:" >&5
7713sed 's/^/| /' conftest.$ac_ext >&5
7714
7715 emacs_cv_struct_utimbuf=no
6369fi 7716fi
7717
6370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7718rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6371fi 7719fi
6372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5 7720{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6373$as_echo "$emacs_cv_struct_utimbuf" >&6; } 7721$as_echo "$emacs_cv_struct_utimbuf" >&6; }
6374if test $emacs_cv_struct_utimbuf = yes; then 7722if test $emacs_cv_struct_utimbuf = yes; then
6375 7723
6376$as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h 7724cat >>confdefs.h <<\_ACEOF
7725#define HAVE_STRUCT_UTIMBUF 1
7726_ACEOF
6377 7727
6378fi 7728fi
6379 7729
6380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 7730{ $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6381$as_echo_n "checking return type of signal handlers... " >&6; } 7731$as_echo_n "checking return type of signal handlers... " >&6; }
6382if test "${ac_cv_type_signal+set}" = set; then : 7732if test "${ac_cv_type_signal+set}" = set; then
6383 $as_echo_n "(cached) " >&6 7733 $as_echo_n "(cached) " >&6
6384else 7734else
6385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7735 cat >conftest.$ac_ext <<_ACEOF
7736/* confdefs.h. */
7737_ACEOF
7738cat confdefs.h >>conftest.$ac_ext
7739cat >>conftest.$ac_ext <<_ACEOF
6386/* end confdefs.h. */ 7740/* end confdefs.h. */
6387#include <sys/types.h> 7741#include <sys/types.h>
6388#include <signal.h> 7742#include <signal.h>
@@ -6395,14 +7749,35 @@ return *(signal (0, 0)) (0) == 1;
6395 return 0; 7749 return 0;
6396} 7750}
6397_ACEOF 7751_ACEOF
6398if ac_fn_c_try_compile "$LINENO"; then : 7752rm -f conftest.$ac_objext
7753if { (ac_try="$ac_compile"
7754case "(($ac_try" in
7755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7756 *) ac_try_echo=$ac_try;;
7757esac
7758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7759$as_echo "$ac_try_echo") >&5
7760 (eval "$ac_compile") 2>conftest.er1
7761 ac_status=$?
7762 grep -v '^ *+' conftest.er1 >conftest.err
7763 rm -f conftest.er1
7764 cat conftest.err >&5
7765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7766 (exit $ac_status); } && {
7767 test -z "$ac_c_werror_flag" ||
7768 test ! -s conftest.err
7769 } && test -s conftest.$ac_objext; then
6399 ac_cv_type_signal=int 7770 ac_cv_type_signal=int
6400else 7771else
6401 ac_cv_type_signal=void 7772 $as_echo "$as_me: failed program was:" >&5
7773sed 's/^/| /' conftest.$ac_ext >&5
7774
7775 ac_cv_type_signal=void
6402fi 7776fi
7777
6403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7778rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6404fi 7779fi
6405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 7780{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6406$as_echo "$ac_cv_type_signal" >&6; } 7781$as_echo "$ac_cv_type_signal" >&6; }
6407 7782
6408cat >>confdefs.h <<_ACEOF 7783cat >>confdefs.h <<_ACEOF
@@ -6411,12 +7786,16 @@ _ACEOF
6411 7786
6412 7787
6413 7788
6414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5 7789{ $as_echo "$as_me:$LINENO: checking for speed_t" >&5
6415$as_echo_n "checking for speed_t... " >&6; } 7790$as_echo_n "checking for speed_t... " >&6; }
6416if test "${emacs_cv_speed_t+set}" = set; then : 7791if test "${emacs_cv_speed_t+set}" = set; then
6417 $as_echo_n "(cached) " >&6 7792 $as_echo_n "(cached) " >&6
6418else 7793else
6419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7794 cat >conftest.$ac_ext <<_ACEOF
7795/* confdefs.h. */
7796_ACEOF
7797cat confdefs.h >>conftest.$ac_ext
7798cat >>conftest.$ac_ext <<_ACEOF
6420/* end confdefs.h. */ 7799/* end confdefs.h. */
6421#include <termios.h> 7800#include <termios.h>
6422int 7801int
@@ -6427,27 +7806,54 @@ speed_t x = 1;
6427 return 0; 7806 return 0;
6428} 7807}
6429_ACEOF 7808_ACEOF
6430if ac_fn_c_try_compile "$LINENO"; then : 7809rm -f conftest.$ac_objext
7810if { (ac_try="$ac_compile"
7811case "(($ac_try" in
7812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7813 *) ac_try_echo=$ac_try;;
7814esac
7815eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7816$as_echo "$ac_try_echo") >&5
7817 (eval "$ac_compile") 2>conftest.er1
7818 ac_status=$?
7819 grep -v '^ *+' conftest.er1 >conftest.err
7820 rm -f conftest.er1
7821 cat conftest.err >&5
7822 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7823 (exit $ac_status); } && {
7824 test -z "$ac_c_werror_flag" ||
7825 test ! -s conftest.err
7826 } && test -s conftest.$ac_objext; then
6431 emacs_cv_speed_t=yes 7827 emacs_cv_speed_t=yes
6432else 7828else
6433 emacs_cv_speed_t=no 7829 $as_echo "$as_me: failed program was:" >&5
7830sed 's/^/| /' conftest.$ac_ext >&5
7831
7832 emacs_cv_speed_t=no
6434fi 7833fi
7834
6435rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6436fi 7836fi
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5 7837{ $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6438$as_echo "$emacs_cv_speed_t" >&6; } 7838$as_echo "$emacs_cv_speed_t" >&6; }
6439if test $emacs_cv_speed_t = yes; then 7839if test $emacs_cv_speed_t = yes; then
6440 7840
6441$as_echo "#define HAVE_SPEED_T 1" >>confdefs.h 7841cat >>confdefs.h <<\_ACEOF
7842#define HAVE_SPEED_T 1
7843_ACEOF
6442 7844
6443fi 7845fi
6444 7846
6445{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 7847{ $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
6446$as_echo_n "checking for struct timeval... " >&6; } 7848$as_echo_n "checking for struct timeval... " >&6; }
6447if test "${emacs_cv_struct_timeval+set}" = set; then : 7849if test "${emacs_cv_struct_timeval+set}" = set; then
6448 $as_echo_n "(cached) " >&6 7850 $as_echo_n "(cached) " >&6
6449else 7851else
6450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7852 cat >conftest.$ac_ext <<_ACEOF
7853/* confdefs.h. */
7854_ACEOF
7855cat confdefs.h >>conftest.$ac_ext
7856cat >>conftest.$ac_ext <<_ACEOF
6451/* end confdefs.h. */ 7857/* end confdefs.h. */
6452#ifdef TIME_WITH_SYS_TIME 7858#ifdef TIME_WITH_SYS_TIME
6453#include <sys/time.h> 7859#include <sys/time.h>
@@ -6467,28 +7873,55 @@ static struct timeval x; x.tv_sec = x.tv_usec;
6467 return 0; 7873 return 0;
6468} 7874}
6469_ACEOF 7875_ACEOF
6470if ac_fn_c_try_compile "$LINENO"; then : 7876rm -f conftest.$ac_objext
7877if { (ac_try="$ac_compile"
7878case "(($ac_try" in
7879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7880 *) ac_try_echo=$ac_try;;
7881esac
7882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7883$as_echo "$ac_try_echo") >&5
7884 (eval "$ac_compile") 2>conftest.er1
7885 ac_status=$?
7886 grep -v '^ *+' conftest.er1 >conftest.err
7887 rm -f conftest.er1
7888 cat conftest.err >&5
7889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } && {
7891 test -z "$ac_c_werror_flag" ||
7892 test ! -s conftest.err
7893 } && test -s conftest.$ac_objext; then
6471 emacs_cv_struct_timeval=yes 7894 emacs_cv_struct_timeval=yes
6472else 7895else
6473 emacs_cv_struct_timeval=no 7896 $as_echo "$as_me: failed program was:" >&5
7897sed 's/^/| /' conftest.$ac_ext >&5
7898
7899 emacs_cv_struct_timeval=no
6474fi 7900fi
7901
6475rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7902rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6476fi 7903fi
6477{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5 7904{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6478$as_echo "$emacs_cv_struct_timeval" >&6; } 7905$as_echo "$emacs_cv_struct_timeval" >&6; }
6479HAVE_TIMEVAL=$emacs_cv_struct_timeval 7906HAVE_TIMEVAL=$emacs_cv_struct_timeval
6480if test $emacs_cv_struct_timeval = yes; then 7907if test $emacs_cv_struct_timeval = yes; then
6481 7908
6482$as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h 7909cat >>confdefs.h <<\_ACEOF
7910#define HAVE_TIMEVAL 1
7911_ACEOF
6483 7912
6484fi 7913fi
6485 7914
6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5 7915{ $as_echo "$as_me:$LINENO: checking for struct exception" >&5
6487$as_echo_n "checking for struct exception... " >&6; } 7916$as_echo_n "checking for struct exception... " >&6; }
6488if test "${emacs_cv_struct_exception+set}" = set; then : 7917if test "${emacs_cv_struct_exception+set}" = set; then
6489 $as_echo_n "(cached) " >&6 7918 $as_echo_n "(cached) " >&6
6490else 7919else
6491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7920 cat >conftest.$ac_ext <<_ACEOF
7921/* confdefs.h. */
7922_ACEOF
7923cat confdefs.h >>conftest.$ac_ext
7924cat >>conftest.$ac_ext <<_ACEOF
6492/* end confdefs.h. */ 7925/* end confdefs.h. */
6493#include <math.h> 7926#include <math.h>
6494int 7927int
@@ -6499,44 +7932,248 @@ static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6499 return 0; 7932 return 0;
6500} 7933}
6501_ACEOF 7934_ACEOF
6502if ac_fn_c_try_compile "$LINENO"; then : 7935rm -f conftest.$ac_objext
7936if { (ac_try="$ac_compile"
7937case "(($ac_try" in
7938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7939 *) ac_try_echo=$ac_try;;
7940esac
7941eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7942$as_echo "$ac_try_echo") >&5
7943 (eval "$ac_compile") 2>conftest.er1
7944 ac_status=$?
7945 grep -v '^ *+' conftest.er1 >conftest.err
7946 rm -f conftest.er1
7947 cat conftest.err >&5
7948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7949 (exit $ac_status); } && {
7950 test -z "$ac_c_werror_flag" ||
7951 test ! -s conftest.err
7952 } && test -s conftest.$ac_objext; then
6503 emacs_cv_struct_exception=yes 7953 emacs_cv_struct_exception=yes
6504else 7954else
6505 emacs_cv_struct_exception=no 7955 $as_echo "$as_me: failed program was:" >&5
7956sed 's/^/| /' conftest.$ac_ext >&5
7957
7958 emacs_cv_struct_exception=no
6506fi 7959fi
7960
6507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6508fi 7962fi
6509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5 7963{ $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6510$as_echo "$emacs_cv_struct_exception" >&6; } 7964$as_echo "$emacs_cv_struct_exception" >&6; }
6511HAVE_EXCEPTION=$emacs_cv_struct_exception 7965HAVE_EXCEPTION=$emacs_cv_struct_exception
6512if test $emacs_cv_struct_exception != yes; then 7966if test $emacs_cv_struct_exception != yes; then
6513 7967
6514$as_echo "#define NO_MATHERR 1" >>confdefs.h 7968cat >>confdefs.h <<\_ACEOF
7969#define NO_MATHERR 1
7970_ACEOF
6515 7971
6516fi 7972fi
6517 7973
7974
6518for ac_header in sys/socket.h 7975for ac_header in sys/socket.h
6519do : 7976do
6520 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 7977as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6521if test "x$ac_cv_header_sys_socket_h" = x""yes; then : 7978if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7979 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7980$as_echo_n "checking for $ac_header... " >&6; }
7981if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7982 $as_echo_n "(cached) " >&6
7983fi
7984ac_res=`eval 'as_val=${'$as_ac_Header'}
7985 $as_echo "$as_val"'`
7986 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7987$as_echo "$ac_res" >&6; }
7988else
7989 # Is the header compilable?
7990{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7991$as_echo_n "checking $ac_header usability... " >&6; }
7992cat >conftest.$ac_ext <<_ACEOF
7993/* confdefs.h. */
7994_ACEOF
7995cat confdefs.h >>conftest.$ac_ext
7996cat >>conftest.$ac_ext <<_ACEOF
7997/* end confdefs.h. */
7998$ac_includes_default
7999#include <$ac_header>
8000_ACEOF
8001rm -f conftest.$ac_objext
8002if { (ac_try="$ac_compile"
8003case "(($ac_try" in
8004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8005 *) ac_try_echo=$ac_try;;
8006esac
8007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8008$as_echo "$ac_try_echo") >&5
8009 (eval "$ac_compile") 2>conftest.er1
8010 ac_status=$?
8011 grep -v '^ *+' conftest.er1 >conftest.err
8012 rm -f conftest.er1
8013 cat conftest.err >&5
8014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && {
8016 test -z "$ac_c_werror_flag" ||
8017 test ! -s conftest.err
8018 } && test -s conftest.$ac_objext; then
8019 ac_header_compiler=yes
8020else
8021 $as_echo "$as_me: failed program was:" >&5
8022sed 's/^/| /' conftest.$ac_ext >&5
8023
8024 ac_header_compiler=no
8025fi
8026
8027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8028{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8029$as_echo "$ac_header_compiler" >&6; }
8030
8031# Is the header present?
8032{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8033$as_echo_n "checking $ac_header presence... " >&6; }
8034cat >conftest.$ac_ext <<_ACEOF
8035/* confdefs.h. */
8036_ACEOF
8037cat confdefs.h >>conftest.$ac_ext
8038cat >>conftest.$ac_ext <<_ACEOF
8039/* end confdefs.h. */
8040#include <$ac_header>
8041_ACEOF
8042if { (ac_try="$ac_cpp conftest.$ac_ext"
8043case "(($ac_try" in
8044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8045 *) ac_try_echo=$ac_try;;
8046esac
8047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8048$as_echo "$ac_try_echo") >&5
8049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8050 ac_status=$?
8051 grep -v '^ *+' conftest.er1 >conftest.err
8052 rm -f conftest.er1
8053 cat conftest.err >&5
8054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8055 (exit $ac_status); } >/dev/null && {
8056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8057 test ! -s conftest.err
8058 }; then
8059 ac_header_preproc=yes
8060else
8061 $as_echo "$as_me: failed program was:" >&5
8062sed 's/^/| /' conftest.$ac_ext >&5
8063
8064 ac_header_preproc=no
8065fi
8066
8067rm -f conftest.err conftest.$ac_ext
8068{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8069$as_echo "$ac_header_preproc" >&6; }
8070
8071# So? What about this header?
8072case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8073 yes:no: )
8074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8075$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8077$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8078 ac_header_preproc=yes
8079 ;;
8080 no:yes:* )
8081 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8082$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8084$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8086$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8088$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8090$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8092$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8093
8094 ;;
8095esac
8096{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8097$as_echo_n "checking for $ac_header... " >&6; }
8098if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8099 $as_echo_n "(cached) " >&6
8100else
8101 eval "$as_ac_Header=\$ac_header_preproc"
8102fi
8103ac_res=`eval 'as_val=${'$as_ac_Header'}
8104 $as_echo "$as_val"'`
8105 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8106$as_echo "$ac_res" >&6; }
8107
8108fi
8109if test `eval 'as_val=${'$as_ac_Header'}
8110 $as_echo "$as_val"'` = yes; then
6522 cat >>confdefs.h <<_ACEOF 8111 cat >>confdefs.h <<_ACEOF
6523#define HAVE_SYS_SOCKET_H 1 8112#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6524_ACEOF 8113_ACEOF
6525 8114
6526fi 8115fi
6527 8116
6528done 8117done
6529 8118
8119
6530for ac_header in net/if.h 8120for ac_header in net/if.h
6531do : 8121do
6532 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 8122as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8123{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8124$as_echo_n "checking for $ac_header... " >&6; }
8125if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8126 $as_echo_n "(cached) " >&6
8127else
8128 cat >conftest.$ac_ext <<_ACEOF
8129/* confdefs.h. */
8130_ACEOF
8131cat confdefs.h >>conftest.$ac_ext
8132cat >>conftest.$ac_ext <<_ACEOF
8133/* end confdefs.h. */
8134$ac_includes_default
6533#if HAVE_SYS_SOCKET_H 8135#if HAVE_SYS_SOCKET_H
6534#include <sys/socket.h> 8136#include <sys/socket.h>
6535#endif 8137#endif
6536" 8138
6537if test "x$ac_cv_header_net_if_h" = x""yes; then : 8139#include <$ac_header>
8140_ACEOF
8141rm -f conftest.$ac_objext
8142if { (ac_try="$ac_compile"
8143case "(($ac_try" in
8144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8145 *) ac_try_echo=$ac_try;;
8146esac
8147eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8148$as_echo "$ac_try_echo") >&5
8149 (eval "$ac_compile") 2>conftest.er1
8150 ac_status=$?
8151 grep -v '^ *+' conftest.er1 >conftest.err
8152 rm -f conftest.er1
8153 cat conftest.err >&5
8154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8155 (exit $ac_status); } && {
8156 test -z "$ac_c_werror_flag" ||
8157 test ! -s conftest.err
8158 } && test -s conftest.$ac_objext; then
8159 eval "$as_ac_Header=yes"
8160else
8161 $as_echo "$as_me: failed program was:" >&5
8162sed 's/^/| /' conftest.$ac_ext >&5
8163
8164 eval "$as_ac_Header=no"
8165fi
8166
8167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8168fi
8169ac_res=`eval 'as_val=${'$as_ac_Header'}
8170 $as_echo "$as_val"'`
8171 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8172$as_echo "$ac_res" >&6; }
8173if test `eval 'as_val=${'$as_ac_Header'}
8174 $as_echo "$as_val"'` = yes; then
6538 cat >>confdefs.h <<_ACEOF 8175 cat >>confdefs.h <<_ACEOF
6539#define HAVE_NET_IF_H 1 8176#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6540_ACEOF 8177_ACEOF
6541 8178
6542fi 8179fi
@@ -6544,12 +8181,16 @@ fi
6544done 8181done
6545 8182
6546 8183
6547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 8184{ $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6548$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 8185$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6549if test "${ac_cv_struct_tm+set}" = set; then : 8186if test "${ac_cv_struct_tm+set}" = set; then
6550 $as_echo_n "(cached) " >&6 8187 $as_echo_n "(cached) " >&6
6551else 8188else
6552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8189 cat >conftest.$ac_ext <<_ACEOF
8190/* confdefs.h. */
8191_ACEOF
8192cat confdefs.h >>conftest.$ac_ext
8193cat >>conftest.$ac_ext <<_ACEOF
6553/* end confdefs.h. */ 8194/* end confdefs.h. */
6554#include <sys/types.h> 8195#include <sys/types.h>
6555#include <time.h> 8196#include <time.h>
@@ -6564,26 +8205,146 @@ struct tm tm;
6564 return 0; 8205 return 0;
6565} 8206}
6566_ACEOF 8207_ACEOF
6567if ac_fn_c_try_compile "$LINENO"; then : 8208rm -f conftest.$ac_objext
8209if { (ac_try="$ac_compile"
8210case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8213esac
8214eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8215$as_echo "$ac_try_echo") >&5
8216 (eval "$ac_compile") 2>conftest.er1
8217 ac_status=$?
8218 grep -v '^ *+' conftest.er1 >conftest.err
8219 rm -f conftest.er1
8220 cat conftest.err >&5
8221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8222 (exit $ac_status); } && {
8223 test -z "$ac_c_werror_flag" ||
8224 test ! -s conftest.err
8225 } && test -s conftest.$ac_objext; then
6568 ac_cv_struct_tm=time.h 8226 ac_cv_struct_tm=time.h
6569else 8227else
6570 ac_cv_struct_tm=sys/time.h 8228 $as_echo "$as_me: failed program was:" >&5
8229sed 's/^/| /' conftest.$ac_ext >&5
8230
8231 ac_cv_struct_tm=sys/time.h
6571fi 8232fi
8233
6572rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8234rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6573fi 8235fi
6574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 8236{ $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6575$as_echo "$ac_cv_struct_tm" >&6; } 8237$as_echo "$ac_cv_struct_tm" >&6; }
6576if test $ac_cv_struct_tm = sys/time.h; then 8238if test $ac_cv_struct_tm = sys/time.h; then
6577 8239
6578$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 8240cat >>confdefs.h <<\_ACEOF
8241#define TM_IN_SYS_TIME 1
8242_ACEOF
6579 8243
6580fi 8244fi
6581 8245
6582ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 8246{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8247$as_echo_n "checking for struct tm.tm_zone... " >&6; }
8248if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8249 $as_echo_n "(cached) " >&6
8250else
8251 cat >conftest.$ac_ext <<_ACEOF
8252/* confdefs.h. */
8253_ACEOF
8254cat confdefs.h >>conftest.$ac_ext
8255cat >>conftest.$ac_ext <<_ACEOF
8256/* end confdefs.h. */
8257#include <sys/types.h>
8258#include <$ac_cv_struct_tm>
8259
8260
8261int
8262main ()
8263{
8264static struct tm ac_aggr;
8265if (ac_aggr.tm_zone)
8266return 0;
8267 ;
8268 return 0;
8269}
8270_ACEOF
8271rm -f conftest.$ac_objext
8272if { (ac_try="$ac_compile"
8273case "(($ac_try" in
8274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8275 *) ac_try_echo=$ac_try;;
8276esac
8277eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8278$as_echo "$ac_try_echo") >&5
8279 (eval "$ac_compile") 2>conftest.er1
8280 ac_status=$?
8281 grep -v '^ *+' conftest.er1 >conftest.err
8282 rm -f conftest.er1
8283 cat conftest.err >&5
8284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } && {
8286 test -z "$ac_c_werror_flag" ||
8287 test ! -s conftest.err
8288 } && test -s conftest.$ac_objext; then
8289 ac_cv_member_struct_tm_tm_zone=yes
8290else
8291 $as_echo "$as_me: failed program was:" >&5
8292sed 's/^/| /' conftest.$ac_ext >&5
8293
8294 cat >conftest.$ac_ext <<_ACEOF
8295/* confdefs.h. */
8296_ACEOF
8297cat confdefs.h >>conftest.$ac_ext
8298cat >>conftest.$ac_ext <<_ACEOF
8299/* end confdefs.h. */
8300#include <sys/types.h>
6583#include <$ac_cv_struct_tm> 8301#include <$ac_cv_struct_tm>
6584 8302
6585" 8303
6586if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : 8304int
8305main ()
8306{
8307static struct tm ac_aggr;
8308if (sizeof ac_aggr.tm_zone)
8309return 0;
8310 ;
8311 return 0;
8312}
8313_ACEOF
8314rm -f conftest.$ac_objext
8315if { (ac_try="$ac_compile"
8316case "(($ac_try" in
8317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8319esac
8320eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8321$as_echo "$ac_try_echo") >&5
8322 (eval "$ac_compile") 2>conftest.er1
8323 ac_status=$?
8324 grep -v '^ *+' conftest.er1 >conftest.err
8325 rm -f conftest.er1
8326 cat conftest.err >&5
8327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8328 (exit $ac_status); } && {
8329 test -z "$ac_c_werror_flag" ||
8330 test ! -s conftest.err
8331 } && test -s conftest.$ac_objext; then
8332 ac_cv_member_struct_tm_tm_zone=yes
8333else
8334 $as_echo "$as_me: failed program was:" >&5
8335sed 's/^/| /' conftest.$ac_ext >&5
8336
8337 ac_cv_member_struct_tm_tm_zone=no
8338fi
8339
8340rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8341fi
8342
8343rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8344fi
8345{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8346$as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8347if test $ac_cv_member_struct_tm_tm_zone = yes; then
6587 8348
6588cat >>confdefs.h <<_ACEOF 8349cat >>confdefs.h <<_ACEOF
6589#define HAVE_STRUCT_TM_TM_ZONE 1 8350#define HAVE_STRUCT_TM_TM_ZONE 1
@@ -6594,27 +8355,91 @@ fi
6594 8355
6595if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 8356if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6596 8357
6597$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 8358cat >>confdefs.h <<\_ACEOF
8359#define HAVE_TM_ZONE 1
8360_ACEOF
6598 8361
6599else 8362else
6600 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 8363 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6601" 8364$as_echo_n "checking whether tzname is declared... " >&6; }
6602if test "x$ac_cv_have_decl_tzname" = x""yes; then : 8365if test "${ac_cv_have_decl_tzname+set}" = set; then
6603 ac_have_decl=1 8366 $as_echo_n "(cached) " >&6
8367else
8368 cat >conftest.$ac_ext <<_ACEOF
8369/* confdefs.h. */
8370_ACEOF
8371cat confdefs.h >>conftest.$ac_ext
8372cat >>conftest.$ac_ext <<_ACEOF
8373/* end confdefs.h. */
8374#include <time.h>
8375
8376int
8377main ()
8378{
8379#ifndef tzname
8380 (void) tzname;
8381#endif
8382
8383 ;
8384 return 0;
8385}
8386_ACEOF
8387rm -f conftest.$ac_objext
8388if { (ac_try="$ac_compile"
8389case "(($ac_try" in
8390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8391 *) ac_try_echo=$ac_try;;
8392esac
8393eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8394$as_echo "$ac_try_echo") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8396 ac_status=$?
8397 grep -v '^ *+' conftest.er1 >conftest.err
8398 rm -f conftest.er1
8399 cat conftest.err >&5
8400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } && {
8402 test -z "$ac_c_werror_flag" ||
8403 test ! -s conftest.err
8404 } && test -s conftest.$ac_objext; then
8405 ac_cv_have_decl_tzname=yes
6604else 8406else
6605 ac_have_decl=0 8407 $as_echo "$as_me: failed program was:" >&5
8408sed 's/^/| /' conftest.$ac_ext >&5
8409
8410 ac_cv_have_decl_tzname=no
8411fi
8412
8413rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606fi 8414fi
8415{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8416$as_echo "$ac_cv_have_decl_tzname" >&6; }
8417if test $ac_cv_have_decl_tzname = yes; then
6607 8418
6608cat >>confdefs.h <<_ACEOF 8419cat >>confdefs.h <<_ACEOF
6609#define HAVE_DECL_TZNAME $ac_have_decl 8420#define HAVE_DECL_TZNAME 1
8421_ACEOF
8422
8423
8424else
8425 cat >>confdefs.h <<_ACEOF
8426#define HAVE_DECL_TZNAME 0
6610_ACEOF 8427_ACEOF
6611 8428
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 8429
8430fi
8431
8432
8433 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
6613$as_echo_n "checking for tzname... " >&6; } 8434$as_echo_n "checking for tzname... " >&6; }
6614if test "${ac_cv_var_tzname+set}" = set; then : 8435if test "${ac_cv_var_tzname+set}" = set; then
6615 $as_echo_n "(cached) " >&6 8436 $as_echo_n "(cached) " >&6
6616else 8437else
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8438 cat >conftest.$ac_ext <<_ACEOF
8439/* confdefs.h. */
8440_ACEOF
8441cat confdefs.h >>conftest.$ac_ext
8442cat >>conftest.$ac_ext <<_ACEOF
6618/* end confdefs.h. */ 8443/* end confdefs.h. */
6619#include <time.h> 8444#include <time.h>
6620#if !HAVE_DECL_TZNAME 8445#if !HAVE_DECL_TZNAME
@@ -6629,40 +8454,265 @@ return tzname[0][0];
6629 return 0; 8454 return 0;
6630} 8455}
6631_ACEOF 8456_ACEOF
6632if ac_fn_c_try_link "$LINENO"; then : 8457rm -f conftest.$ac_objext conftest$ac_exeext
8458if { (ac_try="$ac_link"
8459case "(($ac_try" in
8460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8461 *) ac_try_echo=$ac_try;;
8462esac
8463eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8464$as_echo "$ac_try_echo") >&5
8465 (eval "$ac_link") 2>conftest.er1
8466 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
8470 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest$ac_exeext && {
8475 test "$cross_compiling" = yes ||
8476 $as_test_x conftest$ac_exeext
8477 }; then
6633 ac_cv_var_tzname=yes 8478 ac_cv_var_tzname=yes
6634else 8479else
6635 ac_cv_var_tzname=no 8480 $as_echo "$as_me: failed program was:" >&5
8481sed 's/^/| /' conftest.$ac_ext >&5
8482
8483 ac_cv_var_tzname=no
6636fi 8484fi
6637rm -f core conftest.err conftest.$ac_objext \ 8485
6638 conftest$ac_exeext conftest.$ac_ext 8486rm -rf conftest.dSYM
8487rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8488 conftest$ac_exeext conftest.$ac_ext
6639fi 8489fi
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 8490{ $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6641$as_echo "$ac_cv_var_tzname" >&6; } 8491$as_echo "$ac_cv_var_tzname" >&6; }
6642 if test $ac_cv_var_tzname = yes; then 8492 if test $ac_cv_var_tzname = yes; then
6643 8493
6644$as_echo "#define HAVE_TZNAME 1" >>confdefs.h 8494cat >>confdefs.h <<\_ACEOF
8495#define HAVE_TZNAME 1
8496_ACEOF
6645 8497
6646 fi 8498 fi
6647fi 8499fi
6648 8500
6649ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 8501{ $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6650" 8502$as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
6651if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : 8503if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8504 $as_echo_n "(cached) " >&6
8505else
8506 cat >conftest.$ac_ext <<_ACEOF
8507/* confdefs.h. */
8508_ACEOF
8509cat confdefs.h >>conftest.$ac_ext
8510cat >>conftest.$ac_ext <<_ACEOF
8511/* end confdefs.h. */
8512#include <time.h>
8513
8514int
8515main ()
8516{
8517static struct tm ac_aggr;
8518if (ac_aggr.tm_gmtoff)
8519return 0;
8520 ;
8521 return 0;
8522}
8523_ACEOF
8524rm -f conftest.$ac_objext
8525if { (ac_try="$ac_compile"
8526case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8529esac
8530eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8531$as_echo "$ac_try_echo") >&5
8532 (eval "$ac_compile") 2>conftest.er1
8533 ac_status=$?
8534 grep -v '^ *+' conftest.er1 >conftest.err
8535 rm -f conftest.er1
8536 cat conftest.err >&5
8537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); } && {
8539 test -z "$ac_c_werror_flag" ||
8540 test ! -s conftest.err
8541 } && test -s conftest.$ac_objext; then
8542 ac_cv_member_struct_tm_tm_gmtoff=yes
8543else
8544 $as_echo "$as_me: failed program was:" >&5
8545sed 's/^/| /' conftest.$ac_ext >&5
6652 8546
6653$as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h 8547 cat >conftest.$ac_ext <<_ACEOF
8548/* confdefs.h. */
8549_ACEOF
8550cat confdefs.h >>conftest.$ac_ext
8551cat >>conftest.$ac_ext <<_ACEOF
8552/* end confdefs.h. */
8553#include <time.h>
6654 8554
8555int
8556main ()
8557{
8558static struct tm ac_aggr;
8559if (sizeof ac_aggr.tm_gmtoff)
8560return 0;
8561 ;
8562 return 0;
8563}
8564_ACEOF
8565rm -f conftest.$ac_objext
8566if { (ac_try="$ac_compile"
8567case "(($ac_try" in
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8570esac
8571eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8572$as_echo "$ac_try_echo") >&5
8573 (eval "$ac_compile") 2>conftest.er1
8574 ac_status=$?
8575 grep -v '^ *+' conftest.er1 >conftest.err
8576 rm -f conftest.er1
8577 cat conftest.err >&5
8578 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8579 (exit $ac_status); } && {
8580 test -z "$ac_c_werror_flag" ||
8581 test ! -s conftest.err
8582 } && test -s conftest.$ac_objext; then
8583 ac_cv_member_struct_tm_tm_gmtoff=yes
8584else
8585 $as_echo "$as_me: failed program was:" >&5
8586sed 's/^/| /' conftest.$ac_ext >&5
8587
8588 ac_cv_member_struct_tm_tm_gmtoff=no
6655fi 8589fi
6656 8590
6657ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default 8591rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8592fi
8593
8594rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8595fi
8596{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8597$as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8598if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8599
8600cat >>confdefs.h <<\_ACEOF
8601#define HAVE_TM_GMTOFF 1
8602_ACEOF
8603
8604fi
8605
8606{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8607$as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8608if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8609 $as_echo_n "(cached) " >&6
8610else
8611 cat >conftest.$ac_ext <<_ACEOF
8612/* confdefs.h. */
8613_ACEOF
8614cat confdefs.h >>conftest.$ac_ext
8615cat >>conftest.$ac_ext <<_ACEOF
8616/* end confdefs.h. */
8617$ac_includes_default
6658#if HAVE_SYS_SOCKET_H 8618#if HAVE_SYS_SOCKET_H
6659#include <sys/socket.h> 8619#include <sys/socket.h>
6660#endif 8620#endif
6661#if HAVE_NET_IF_H 8621#if HAVE_NET_IF_H
6662#include <net/if.h> 8622#include <net/if.h>
6663#endif 8623#endif
6664" 8624
6665if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then : 8625int
8626main ()
8627{
8628static struct ifreq ac_aggr;
8629if (ac_aggr.ifr_flags)
8630return 0;
8631 ;
8632 return 0;
8633}
8634_ACEOF
8635rm -f conftest.$ac_objext
8636if { (ac_try="$ac_compile"
8637case "(($ac_try" in
8638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8639 *) ac_try_echo=$ac_try;;
8640esac
8641eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8642$as_echo "$ac_try_echo") >&5
8643 (eval "$ac_compile") 2>conftest.er1
8644 ac_status=$?
8645 grep -v '^ *+' conftest.er1 >conftest.err
8646 rm -f conftest.er1
8647 cat conftest.err >&5
8648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8649 (exit $ac_status); } && {
8650 test -z "$ac_c_werror_flag" ||
8651 test ! -s conftest.err
8652 } && test -s conftest.$ac_objext; then
8653 ac_cv_member_struct_ifreq_ifr_flags=yes
8654else
8655 $as_echo "$as_me: failed program was:" >&5
8656sed 's/^/| /' conftest.$ac_ext >&5
8657
8658 cat >conftest.$ac_ext <<_ACEOF
8659/* confdefs.h. */
8660_ACEOF
8661cat confdefs.h >>conftest.$ac_ext
8662cat >>conftest.$ac_ext <<_ACEOF
8663/* end confdefs.h. */
8664$ac_includes_default
8665#if HAVE_SYS_SOCKET_H
8666#include <sys/socket.h>
8667#endif
8668#if HAVE_NET_IF_H
8669#include <net/if.h>
8670#endif
8671
8672int
8673main ()
8674{
8675static struct ifreq ac_aggr;
8676if (sizeof ac_aggr.ifr_flags)
8677return 0;
8678 ;
8679 return 0;
8680}
8681_ACEOF
8682rm -f conftest.$ac_objext
8683if { (ac_try="$ac_compile"
8684case "(($ac_try" in
8685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8686 *) ac_try_echo=$ac_try;;
8687esac
8688eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8689$as_echo "$ac_try_echo") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8691 ac_status=$?
8692 grep -v '^ *+' conftest.er1 >conftest.err
8693 rm -f conftest.er1
8694 cat conftest.err >&5
8695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 ac_cv_member_struct_ifreq_ifr_flags=yes
8701else
8702 $as_echo "$as_me: failed program was:" >&5
8703sed 's/^/| /' conftest.$ac_ext >&5
8704
8705 ac_cv_member_struct_ifreq_ifr_flags=no
8706fi
8707
8708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8709fi
8710
8711rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8712fi
8713{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8714$as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8715if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6666 8716
6667cat >>confdefs.h <<_ACEOF 8717cat >>confdefs.h <<_ACEOF
6668#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 8718#define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
@@ -6670,15 +8720,116 @@ _ACEOF
6670 8720
6671 8721
6672fi 8722fi
6673ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default 8723{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8724$as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8725if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8726 $as_echo_n "(cached) " >&6
8727else
8728 cat >conftest.$ac_ext <<_ACEOF
8729/* confdefs.h. */
8730_ACEOF
8731cat confdefs.h >>conftest.$ac_ext
8732cat >>conftest.$ac_ext <<_ACEOF
8733/* end confdefs.h. */
8734$ac_includes_default
6674#if HAVE_SYS_SOCKET_H 8735#if HAVE_SYS_SOCKET_H
6675#include <sys/socket.h> 8736#include <sys/socket.h>
6676#endif 8737#endif
6677#if HAVE_NET_IF_H 8738#if HAVE_NET_IF_H
6678#include <net/if.h> 8739#include <net/if.h>
6679#endif 8740#endif
6680" 8741
6681if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then : 8742int
8743main ()
8744{
8745static struct ifreq ac_aggr;
8746if (ac_aggr.ifr_hwaddr)
8747return 0;
8748 ;
8749 return 0;
8750}
8751_ACEOF
8752rm -f conftest.$ac_objext
8753if { (ac_try="$ac_compile"
8754case "(($ac_try" in
8755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8756 *) ac_try_echo=$ac_try;;
8757esac
8758eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8759$as_echo "$ac_try_echo") >&5
8760 (eval "$ac_compile") 2>conftest.er1
8761 ac_status=$?
8762 grep -v '^ *+' conftest.er1 >conftest.err
8763 rm -f conftest.er1
8764 cat conftest.err >&5
8765 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } && {
8767 test -z "$ac_c_werror_flag" ||
8768 test ! -s conftest.err
8769 } && test -s conftest.$ac_objext; then
8770 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8771else
8772 $as_echo "$as_me: failed program was:" >&5
8773sed 's/^/| /' conftest.$ac_ext >&5
8774
8775 cat >conftest.$ac_ext <<_ACEOF
8776/* confdefs.h. */
8777_ACEOF
8778cat confdefs.h >>conftest.$ac_ext
8779cat >>conftest.$ac_ext <<_ACEOF
8780/* end confdefs.h. */
8781$ac_includes_default
8782#if HAVE_SYS_SOCKET_H
8783#include <sys/socket.h>
8784#endif
8785#if HAVE_NET_IF_H
8786#include <net/if.h>
8787#endif
8788
8789int
8790main ()
8791{
8792static struct ifreq ac_aggr;
8793if (sizeof ac_aggr.ifr_hwaddr)
8794return 0;
8795 ;
8796 return 0;
8797}
8798_ACEOF
8799rm -f conftest.$ac_objext
8800if { (ac_try="$ac_compile"
8801case "(($ac_try" in
8802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8803 *) ac_try_echo=$ac_try;;
8804esac
8805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8806$as_echo "$ac_try_echo") >&5
8807 (eval "$ac_compile") 2>conftest.er1
8808 ac_status=$?
8809 grep -v '^ *+' conftest.er1 >conftest.err
8810 rm -f conftest.er1
8811 cat conftest.err >&5
8812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8813 (exit $ac_status); } && {
8814 test -z "$ac_c_werror_flag" ||
8815 test ! -s conftest.err
8816 } && test -s conftest.$ac_objext; then
8817 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8818else
8819 $as_echo "$as_me: failed program was:" >&5
8820sed 's/^/| /' conftest.$ac_ext >&5
8821
8822 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8823fi
8824
8825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826fi
8827
8828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8829fi
8830{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8831$as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8832if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6682 8833
6683cat >>confdefs.h <<_ACEOF 8834cat >>confdefs.h <<_ACEOF
6684#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 8835#define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
@@ -6686,15 +8837,116 @@ _ACEOF
6686 8837
6687 8838
6688fi 8839fi
6689ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default 8840{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8841$as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8842if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8843 $as_echo_n "(cached) " >&6
8844else
8845 cat >conftest.$ac_ext <<_ACEOF
8846/* confdefs.h. */
8847_ACEOF
8848cat confdefs.h >>conftest.$ac_ext
8849cat >>conftest.$ac_ext <<_ACEOF
8850/* end confdefs.h. */
8851$ac_includes_default
6690#if HAVE_SYS_SOCKET_H 8852#if HAVE_SYS_SOCKET_H
6691#include <sys/socket.h> 8853#include <sys/socket.h>
6692#endif 8854#endif
6693#if HAVE_NET_IF_H 8855#if HAVE_NET_IF_H
6694#include <net/if.h> 8856#include <net/if.h>
6695#endif 8857#endif
6696" 8858
6697if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then : 8859int
8860main ()
8861{
8862static struct ifreq ac_aggr;
8863if (ac_aggr.ifr_netmask)
8864return 0;
8865 ;
8866 return 0;
8867}
8868_ACEOF
8869rm -f conftest.$ac_objext
8870if { (ac_try="$ac_compile"
8871case "(($ac_try" in
8872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8873 *) ac_try_echo=$ac_try;;
8874esac
8875eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8876$as_echo "$ac_try_echo") >&5
8877 (eval "$ac_compile") 2>conftest.er1
8878 ac_status=$?
8879 grep -v '^ *+' conftest.er1 >conftest.err
8880 rm -f conftest.er1
8881 cat conftest.err >&5
8882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8883 (exit $ac_status); } && {
8884 test -z "$ac_c_werror_flag" ||
8885 test ! -s conftest.err
8886 } && test -s conftest.$ac_objext; then
8887 ac_cv_member_struct_ifreq_ifr_netmask=yes
8888else
8889 $as_echo "$as_me: failed program was:" >&5
8890sed 's/^/| /' conftest.$ac_ext >&5
8891
8892 cat >conftest.$ac_ext <<_ACEOF
8893/* confdefs.h. */
8894_ACEOF
8895cat confdefs.h >>conftest.$ac_ext
8896cat >>conftest.$ac_ext <<_ACEOF
8897/* end confdefs.h. */
8898$ac_includes_default
8899#if HAVE_SYS_SOCKET_H
8900#include <sys/socket.h>
8901#endif
8902#if HAVE_NET_IF_H
8903#include <net/if.h>
8904#endif
8905
8906int
8907main ()
8908{
8909static struct ifreq ac_aggr;
8910if (sizeof ac_aggr.ifr_netmask)
8911return 0;
8912 ;
8913 return 0;
8914}
8915_ACEOF
8916rm -f conftest.$ac_objext
8917if { (ac_try="$ac_compile"
8918case "(($ac_try" in
8919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8920 *) ac_try_echo=$ac_try;;
8921esac
8922eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8923$as_echo "$ac_try_echo") >&5
8924 (eval "$ac_compile") 2>conftest.er1
8925 ac_status=$?
8926 grep -v '^ *+' conftest.er1 >conftest.err
8927 rm -f conftest.er1
8928 cat conftest.err >&5
8929 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930 (exit $ac_status); } && {
8931 test -z "$ac_c_werror_flag" ||
8932 test ! -s conftest.err
8933 } && test -s conftest.$ac_objext; then
8934 ac_cv_member_struct_ifreq_ifr_netmask=yes
8935else
8936 $as_echo "$as_me: failed program was:" >&5
8937sed 's/^/| /' conftest.$ac_ext >&5
8938
8939 ac_cv_member_struct_ifreq_ifr_netmask=no
8940fi
8941
8942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8943fi
8944
8945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8946fi
8947{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8948$as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8949if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
6698 8950
6699cat >>confdefs.h <<_ACEOF 8951cat >>confdefs.h <<_ACEOF
6700#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 8952#define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
@@ -6702,15 +8954,116 @@ _ACEOF
6702 8954
6703 8955
6704fi 8956fi
6705ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default 8957{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8958$as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8959if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8960 $as_echo_n "(cached) " >&6
8961else
8962 cat >conftest.$ac_ext <<_ACEOF
8963/* confdefs.h. */
8964_ACEOF
8965cat confdefs.h >>conftest.$ac_ext
8966cat >>conftest.$ac_ext <<_ACEOF
8967/* end confdefs.h. */
8968$ac_includes_default
8969#if HAVE_SYS_SOCKET_H
8970#include <sys/socket.h>
8971#endif
8972#if HAVE_NET_IF_H
8973#include <net/if.h>
8974#endif
8975
8976int
8977main ()
8978{
8979static struct ifreq ac_aggr;
8980if (ac_aggr.ifr_broadaddr)
8981return 0;
8982 ;
8983 return 0;
8984}
8985_ACEOF
8986rm -f conftest.$ac_objext
8987if { (ac_try="$ac_compile"
8988case "(($ac_try" in
8989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8990 *) ac_try_echo=$ac_try;;
8991esac
8992eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8993$as_echo "$ac_try_echo") >&5
8994 (eval "$ac_compile") 2>conftest.er1
8995 ac_status=$?
8996 grep -v '^ *+' conftest.er1 >conftest.err
8997 rm -f conftest.er1
8998 cat conftest.err >&5
8999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } && {
9001 test -z "$ac_c_werror_flag" ||
9002 test ! -s conftest.err
9003 } && test -s conftest.$ac_objext; then
9004 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9005else
9006 $as_echo "$as_me: failed program was:" >&5
9007sed 's/^/| /' conftest.$ac_ext >&5
9008
9009 cat >conftest.$ac_ext <<_ACEOF
9010/* confdefs.h. */
9011_ACEOF
9012cat confdefs.h >>conftest.$ac_ext
9013cat >>conftest.$ac_ext <<_ACEOF
9014/* end confdefs.h. */
9015$ac_includes_default
6706#if HAVE_SYS_SOCKET_H 9016#if HAVE_SYS_SOCKET_H
6707#include <sys/socket.h> 9017#include <sys/socket.h>
6708#endif 9018#endif
6709#if HAVE_NET_IF_H 9019#if HAVE_NET_IF_H
6710#include <net/if.h> 9020#include <net/if.h>
6711#endif 9021#endif
6712" 9022
6713if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then : 9023int
9024main ()
9025{
9026static struct ifreq ac_aggr;
9027if (sizeof ac_aggr.ifr_broadaddr)
9028return 0;
9029 ;
9030 return 0;
9031}
9032_ACEOF
9033rm -f conftest.$ac_objext
9034if { (ac_try="$ac_compile"
9035case "(($ac_try" in
9036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9037 *) ac_try_echo=$ac_try;;
9038esac
9039eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9040$as_echo "$ac_try_echo") >&5
9041 (eval "$ac_compile") 2>conftest.er1
9042 ac_status=$?
9043 grep -v '^ *+' conftest.er1 >conftest.err
9044 rm -f conftest.er1
9045 cat conftest.err >&5
9046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9047 (exit $ac_status); } && {
9048 test -z "$ac_c_werror_flag" ||
9049 test ! -s conftest.err
9050 } && test -s conftest.$ac_objext; then
9051 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9052else
9053 $as_echo "$as_me: failed program was:" >&5
9054sed 's/^/| /' conftest.$ac_ext >&5
9055
9056 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9057fi
9058
9059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9060fi
9061
9062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9063fi
9064{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9065$as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9066if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
6714 9067
6715cat >>confdefs.h <<_ACEOF 9068cat >>confdefs.h <<_ACEOF
6716#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 9069#define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
@@ -6718,15 +9071,116 @@ _ACEOF
6718 9071
6719 9072
6720fi 9073fi
6721ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default 9074{ $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9075$as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9076if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9077 $as_echo_n "(cached) " >&6
9078else
9079 cat >conftest.$ac_ext <<_ACEOF
9080/* confdefs.h. */
9081_ACEOF
9082cat confdefs.h >>conftest.$ac_ext
9083cat >>conftest.$ac_ext <<_ACEOF
9084/* end confdefs.h. */
9085$ac_includes_default
6722#if HAVE_SYS_SOCKET_H 9086#if HAVE_SYS_SOCKET_H
6723#include <sys/socket.h> 9087#include <sys/socket.h>
6724#endif 9088#endif
6725#if HAVE_NET_IF_H 9089#if HAVE_NET_IF_H
6726#include <net/if.h> 9090#include <net/if.h>
6727#endif 9091#endif
6728" 9092
6729if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then : 9093int
9094main ()
9095{
9096static struct ifreq ac_aggr;
9097if (ac_aggr.ifr_addr)
9098return 0;
9099 ;
9100 return 0;
9101}
9102_ACEOF
9103rm -f conftest.$ac_objext
9104if { (ac_try="$ac_compile"
9105case "(($ac_try" in
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9108esac
9109eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9110$as_echo "$ac_try_echo") >&5
9111 (eval "$ac_compile") 2>conftest.er1
9112 ac_status=$?
9113 grep -v '^ *+' conftest.er1 >conftest.err
9114 rm -f conftest.er1
9115 cat conftest.err >&5
9116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9117 (exit $ac_status); } && {
9118 test -z "$ac_c_werror_flag" ||
9119 test ! -s conftest.err
9120 } && test -s conftest.$ac_objext; then
9121 ac_cv_member_struct_ifreq_ifr_addr=yes
9122else
9123 $as_echo "$as_me: failed program was:" >&5
9124sed 's/^/| /' conftest.$ac_ext >&5
9125
9126 cat >conftest.$ac_ext <<_ACEOF
9127/* confdefs.h. */
9128_ACEOF
9129cat confdefs.h >>conftest.$ac_ext
9130cat >>conftest.$ac_ext <<_ACEOF
9131/* end confdefs.h. */
9132$ac_includes_default
9133#if HAVE_SYS_SOCKET_H
9134#include <sys/socket.h>
9135#endif
9136#if HAVE_NET_IF_H
9137#include <net/if.h>
9138#endif
9139
9140int
9141main ()
9142{
9143static struct ifreq ac_aggr;
9144if (sizeof ac_aggr.ifr_addr)
9145return 0;
9146 ;
9147 return 0;
9148}
9149_ACEOF
9150rm -f conftest.$ac_objext
9151if { (ac_try="$ac_compile"
9152case "(($ac_try" in
9153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9154 *) ac_try_echo=$ac_try;;
9155esac
9156eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9157$as_echo "$ac_try_echo") >&5
9158 (eval "$ac_compile") 2>conftest.er1
9159 ac_status=$?
9160 grep -v '^ *+' conftest.er1 >conftest.err
9161 rm -f conftest.er1
9162 cat conftest.err >&5
9163 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9164 (exit $ac_status); } && {
9165 test -z "$ac_c_werror_flag" ||
9166 test ! -s conftest.err
9167 } && test -s conftest.$ac_objext; then
9168 ac_cv_member_struct_ifreq_ifr_addr=yes
9169else
9170 $as_echo "$as_me: failed program was:" >&5
9171sed 's/^/| /' conftest.$ac_ext >&5
9172
9173 ac_cv_member_struct_ifreq_ifr_addr=no
9174fi
9175
9176rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9177fi
9178
9179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9180fi
9181{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9182$as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9183if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
6730 9184
6731cat >>confdefs.h <<_ACEOF 9185cat >>confdefs.h <<_ACEOF
6732#define HAVE_STRUCT_IFREQ_IFR_ADDR 1 9186#define HAVE_STRUCT_IFREQ_IFR_ADDR 1
@@ -6737,28 +9191,36 @@ fi
6737 9191
6738 9192
6739 9193
6740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 9194{ $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6741$as_echo_n "checking for function prototypes... " >&6; } 9195$as_echo_n "checking for function prototypes... " >&6; }
6742if test "$ac_cv_prog_cc_c89" != no; then 9196if test "$ac_cv_prog_cc_c89" != no; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9197 { $as_echo "$as_me:$LINENO: result: yes" >&5
6744$as_echo "yes" >&6; } 9198$as_echo "yes" >&6; }
6745 9199
6746$as_echo "#define PROTOTYPES 1" >>confdefs.h 9200cat >>confdefs.h <<\_ACEOF
9201#define PROTOTYPES 1
9202_ACEOF
6747 9203
6748 9204
6749$as_echo "#define __PROTOTYPES 1" >>confdefs.h 9205cat >>confdefs.h <<\_ACEOF
9206#define __PROTOTYPES 1
9207_ACEOF
6750 9208
6751else 9209else
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9210 { $as_echo "$as_me:$LINENO: result: no" >&5
6753$as_echo "no" >&6; } 9211$as_echo "no" >&6; }
6754fi 9212fi
6755 9213
6756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 9214{ $as_echo "$as_me:$LINENO: checking for working volatile" >&5
6757$as_echo_n "checking for working volatile... " >&6; } 9215$as_echo_n "checking for working volatile... " >&6; }
6758if test "${ac_cv_c_volatile+set}" = set; then : 9216if test "${ac_cv_c_volatile+set}" = set; then
6759 $as_echo_n "(cached) " >&6 9217 $as_echo_n "(cached) " >&6
6760else 9218else
6761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9219 cat >conftest.$ac_ext <<_ACEOF
9220/* confdefs.h. */
9221_ACEOF
9222cat confdefs.h >>conftest.$ac_ext
9223cat >>conftest.$ac_ext <<_ACEOF
6762/* end confdefs.h. */ 9224/* end confdefs.h. */
6763 9225
6764int 9226int
@@ -6772,27 +9234,54 @@ return !x && !y;
6772 return 0; 9234 return 0;
6773} 9235}
6774_ACEOF 9236_ACEOF
6775if ac_fn_c_try_compile "$LINENO"; then : 9237rm -f conftest.$ac_objext
9238if { (ac_try="$ac_compile"
9239case "(($ac_try" in
9240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9241 *) ac_try_echo=$ac_try;;
9242esac
9243eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9244$as_echo "$ac_try_echo") >&5
9245 (eval "$ac_compile") 2>conftest.er1
9246 ac_status=$?
9247 grep -v '^ *+' conftest.er1 >conftest.err
9248 rm -f conftest.er1
9249 cat conftest.err >&5
9250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } && {
9252 test -z "$ac_c_werror_flag" ||
9253 test ! -s conftest.err
9254 } && test -s conftest.$ac_objext; then
6776 ac_cv_c_volatile=yes 9255 ac_cv_c_volatile=yes
6777else 9256else
6778 ac_cv_c_volatile=no 9257 $as_echo "$as_me: failed program was:" >&5
9258sed 's/^/| /' conftest.$ac_ext >&5
9259
9260 ac_cv_c_volatile=no
6779fi 9261fi
9262
6780rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6781fi 9264fi
6782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 9265{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6783$as_echo "$ac_cv_c_volatile" >&6; } 9266$as_echo "$ac_cv_c_volatile" >&6; }
6784if test $ac_cv_c_volatile = no; then 9267if test $ac_cv_c_volatile = no; then
6785 9268
6786$as_echo "#define volatile /**/" >>confdefs.h 9269cat >>confdefs.h <<\_ACEOF
9270#define volatile /**/
9271_ACEOF
6787 9272
6788fi 9273fi
6789 9274
6790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 9275{ $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6791$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 9276$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6792if test "${ac_cv_c_const+set}" = set; then : 9277if test "${ac_cv_c_const+set}" = set; then
6793 $as_echo_n "(cached) " >&6 9278 $as_echo_n "(cached) " >&6
6794else 9279else
6795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9280 cat >conftest.$ac_ext <<_ACEOF
9281/* confdefs.h. */
9282_ACEOF
9283cat confdefs.h >>conftest.$ac_ext
9284cat >>conftest.$ac_ext <<_ACEOF
6796/* end confdefs.h. */ 9285/* end confdefs.h. */
6797 9286
6798int 9287int
@@ -6852,27 +9341,54 @@ main ()
6852 return 0; 9341 return 0;
6853} 9342}
6854_ACEOF 9343_ACEOF
6855if ac_fn_c_try_compile "$LINENO"; then : 9344rm -f conftest.$ac_objext
9345if { (ac_try="$ac_compile"
9346case "(($ac_try" in
9347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9349esac
9350eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9351$as_echo "$ac_try_echo") >&5
9352 (eval "$ac_compile") 2>conftest.er1
9353 ac_status=$?
9354 grep -v '^ *+' conftest.er1 >conftest.err
9355 rm -f conftest.er1
9356 cat conftest.err >&5
9357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9358 (exit $ac_status); } && {
9359 test -z "$ac_c_werror_flag" ||
9360 test ! -s conftest.err
9361 } && test -s conftest.$ac_objext; then
6856 ac_cv_c_const=yes 9362 ac_cv_c_const=yes
6857else 9363else
6858 ac_cv_c_const=no 9364 $as_echo "$as_me: failed program was:" >&5
9365sed 's/^/| /' conftest.$ac_ext >&5
9366
9367 ac_cv_c_const=no
6859fi 9368fi
9369
6860rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9370rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861fi 9371fi
6862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 9372{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6863$as_echo "$ac_cv_c_const" >&6; } 9373$as_echo "$ac_cv_c_const" >&6; }
6864if test $ac_cv_c_const = no; then 9374if test $ac_cv_c_const = no; then
6865 9375
6866$as_echo "#define const /**/" >>confdefs.h 9376cat >>confdefs.h <<\_ACEOF
9377#define const /**/
9378_ACEOF
6867 9379
6868fi 9380fi
6869 9381
6870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5 9382{ $as_echo "$as_me:$LINENO: checking for void * support" >&5
6871$as_echo_n "checking for void * support... " >&6; } 9383$as_echo_n "checking for void * support... " >&6; }
6872if test "${emacs_cv_void_star+set}" = set; then : 9384if test "${emacs_cv_void_star+set}" = set; then
6873 $as_echo_n "(cached) " >&6 9385 $as_echo_n "(cached) " >&6
6874else 9386else
6875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9387 cat >conftest.$ac_ext <<_ACEOF
9388/* confdefs.h. */
9389_ACEOF
9390cat confdefs.h >>conftest.$ac_ext
9391cat >>conftest.$ac_ext <<_ACEOF
6876/* end confdefs.h. */ 9392/* end confdefs.h. */
6877 9393
6878int 9394int
@@ -6883,31 +9399,57 @@ void * foo;
6883 return 0; 9399 return 0;
6884} 9400}
6885_ACEOF 9401_ACEOF
6886if ac_fn_c_try_compile "$LINENO"; then : 9402rm -f conftest.$ac_objext
9403if { (ac_try="$ac_compile"
9404case "(($ac_try" in
9405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9407esac
9408eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9409$as_echo "$ac_try_echo") >&5
9410 (eval "$ac_compile") 2>conftest.er1
9411 ac_status=$?
9412 grep -v '^ *+' conftest.er1 >conftest.err
9413 rm -f conftest.er1
9414 cat conftest.err >&5
9415 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); } && {
9417 test -z "$ac_c_werror_flag" ||
9418 test ! -s conftest.err
9419 } && test -s conftest.$ac_objext; then
6887 emacs_cv_void_star=yes 9420 emacs_cv_void_star=yes
6888else 9421else
6889 emacs_cv_void_star=no 9422 $as_echo "$as_me: failed program was:" >&5
9423sed 's/^/| /' conftest.$ac_ext >&5
9424
9425 emacs_cv_void_star=no
6890fi 9426fi
9427
6891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6892fi 9429fi
6893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5 9430{ $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6894$as_echo "$emacs_cv_void_star" >&6; } 9431$as_echo "$emacs_cv_void_star" >&6; }
6895if test $emacs_cv_void_star = yes; then 9432if test $emacs_cv_void_star = yes; then
6896 $as_echo "#define POINTER_TYPE void" >>confdefs.h 9433 cat >>confdefs.h <<\_ACEOF
9434#define POINTER_TYPE void
9435_ACEOF
6897 9436
6898else 9437else
6899 $as_echo "#define POINTER_TYPE char" >>confdefs.h 9438 cat >>confdefs.h <<\_ACEOF
9439#define POINTER_TYPE char
9440_ACEOF
6900 9441
6901fi 9442fi
6902 9443
6903 9444
6904 9445
6905 9446
6906{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 9447
9448{ $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6907$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 9449$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6908set x ${MAKE-make} 9450set x ${MAKE-make}
6909ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 9451ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6910if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 9452if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6911 $as_echo_n "(cached) " >&6 9453 $as_echo_n "(cached) " >&6
6912else 9454else
6913 cat >conftest.make <<\_ACEOF 9455 cat >conftest.make <<\_ACEOF
@@ -6925,18 +9467,18 @@ esac
6925rm -f conftest.make 9467rm -f conftest.make
6926fi 9468fi
6927if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 9469if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9470 { $as_echo "$as_me:$LINENO: result: yes" >&5
6929$as_echo "yes" >&6; } 9471$as_echo "yes" >&6; }
6930 SET_MAKE= 9472 SET_MAKE=
6931else 9473else
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9474 { $as_echo "$as_me:$LINENO: result: no" >&5
6933$as_echo "no" >&6; } 9475$as_echo "no" >&6; }
6934 SET_MAKE="MAKE=${MAKE-make}" 9476 SET_MAKE="MAKE=${MAKE-make}"
6935fi 9477fi
6936 9478
6937 9479
6938if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then 9480if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5 9481 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
6940$as_echo_n "checking whether we are using GNU Make... " >&6; } 9482$as_echo_n "checking whether we are using GNU Make... " >&6; }
6941 HAVE_GNU_MAKE=no 9483 HAVE_GNU_MAKE=no
6942 testval=`make --version 2>/dev/null | grep 'GNU Make'` 9484 testval=`make --version 2>/dev/null | grep 'GNU Make'`
@@ -6945,14 +9487,18 @@ $as_echo_n "checking whether we are using GNU Make... " >&6; }
6945 else 9487 else
6946 ac_enable_autodepend=no 9488 ac_enable_autodepend=no
6947 fi 9489 fi
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5 9490 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
6949$as_echo "$HAVE_GNU_MAKE" >&6; } 9491$as_echo "$HAVE_GNU_MAKE" >&6; }
6950 if test $HAVE_GNU_MAKE = yes; then 9492 if test $HAVE_GNU_MAKE = yes; then
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5 9493 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
6952$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } 9494$as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6953 SAVE_CFLAGS="$CFLAGS" 9495 SAVE_CFLAGS="$CFLAGS"
6954 CFLAGS="$CFLAGS -MMD -MF deps.d" 9496 CFLAGS="$CFLAGS -MMD -MF deps.d"
6955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9497 cat >conftest.$ac_ext <<_ACEOF
9498/* confdefs.h. */
9499_ACEOF
9500cat confdefs.h >>conftest.$ac_ext
9501cat >>conftest.$ac_ext <<_ACEOF
6956/* end confdefs.h. */ 9502/* end confdefs.h. */
6957 9503
6958int 9504int
@@ -6963,28 +9509,51 @@ main ()
6963 return 0; 9509 return 0;
6964} 9510}
6965_ACEOF 9511_ACEOF
6966if ac_fn_c_try_compile "$LINENO"; then : 9512rm -f conftest.$ac_objext
6967 9513if { (ac_try="$ac_compile"
9514case "(($ac_try" in
9515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9516 *) ac_try_echo=$ac_try;;
9517esac
9518eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9519$as_echo "$ac_try_echo") >&5
9520 (eval "$ac_compile") 2>conftest.er1
9521 ac_status=$?
9522 grep -v '^ *+' conftest.er1 >conftest.err
9523 rm -f conftest.er1
9524 cat conftest.err >&5
9525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9526 (exit $ac_status); } && {
9527 test -z "$ac_c_werror_flag" ||
9528 test ! -s conftest.err
9529 } && test -s conftest.$ac_objext; then
9530 :
6968else 9531else
6969 ac_enable_autodepend=no 9532 $as_echo "$as_me: failed program was:" >&5
9533sed 's/^/| /' conftest.$ac_ext >&5
9534
9535 ac_enable_autodepend=no
6970fi 9536fi
9537
6971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9538rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6972 CFLAGS="$SAVE_CFLAGS" 9539 CFLAGS="$SAVE_CFLAGS"
6973 test -f deps.d || ac_enable_autodepend=no 9540 test -f deps.d || ac_enable_autodepend=no
6974 rm -rf deps.d 9541 rm -rf deps.d
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5 9542 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
6976$as_echo "$ac_enable_autodepend" >&6; } 9543$as_echo "$ac_enable_autodepend" >&6; }
6977 fi 9544 fi
6978 if test $ac_enable_autodepend = yes; then 9545 if test $ac_enable_autodepend = yes; then
6979 9546
6980$as_echo "#define AUTO_DEPEND 1" >>confdefs.h 9547cat >>confdefs.h <<\_ACEOF
9548#define AUTO_DEPEND 1
9549_ACEOF
6981 9550
6982 fi 9551 fi
6983fi 9552fi
6984 9553
6985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 9554{ $as_echo "$as_me:$LINENO: checking for long file names" >&5
6986$as_echo_n "checking for long file names... " >&6; } 9555$as_echo_n "checking for long file names... " >&6; }
6987if test "${ac_cv_sys_long_file_names+set}" = set; then : 9556if test "${ac_cv_sys_long_file_names+set}" = set; then
6988 $as_echo_n "(cached) " >&6 9557 $as_echo_n "(cached) " >&6
6989else 9558else
6990 ac_cv_sys_long_file_names=yes 9559 ac_cv_sys_long_file_names=yes
@@ -7014,23 +9583,25 @@ for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib
7014 test $ac_cv_sys_long_file_names = no && break 9583 test $ac_cv_sys_long_file_names = no && break
7015done 9584done
7016fi 9585fi
7017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 9586{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7018$as_echo "$ac_cv_sys_long_file_names" >&6; } 9587$as_echo "$ac_cv_sys_long_file_names" >&6; }
7019if test $ac_cv_sys_long_file_names = yes; then 9588if test $ac_cv_sys_long_file_names = yes; then
7020 9589
7021$as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h 9590cat >>confdefs.h <<\_ACEOF
9591#define HAVE_LONG_FILE_NAMES 1
9592_ACEOF
7022 9593
7023fi 9594fi
7024 9595
7025 9596
7026#### Choose a window system. 9597#### Choose a window system.
7027 9598
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 9599{ $as_echo "$as_me:$LINENO: checking for X" >&5
7029$as_echo_n "checking for X... " >&6; } 9600$as_echo_n "checking for X... " >&6; }
7030 9601
7031 9602
7032# Check whether --with-x was given. 9603# Check whether --with-x was given.
7033if test "${with_x+set}" = set; then : 9604if test "${with_x+set}" = set; then
7034 withval=$with_x; 9605 withval=$with_x;
7035fi 9606fi
7036 9607
@@ -7040,8 +9611,10 @@ if test "x$with_x" = xno; then
7040 have_x=disabled 9611 have_x=disabled
7041else 9612else
7042 case $x_includes,$x_libraries in #( 9613 case $x_includes,$x_libraries in #(
7043 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 9614 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
7044 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 9615$as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9616 { (exit 1); exit 1; }; };; #(
9617 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
7045 $as_echo_n "(cached) " >&6 9618 $as_echo_n "(cached) " >&6
7046else 9619else
7047 # One or both of the vars are not set, and there is no cached value. 9620 # One or both of the vars are not set, and there is no cached value.
@@ -7077,7 +9650,7 @@ _ACEOF
7077 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 9650 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7078 esac 9651 esac
7079 case $ac_im_usrlibdir in 9652 case $ac_im_usrlibdir in
7080 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 9653 /usr/lib | /lib) ;;
7081 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 9654 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7082 esac 9655 esac
7083 fi 9656 fi
@@ -7089,25 +9662,21 @@ fi
7089# Check X11 before X11Rn because it is often a symlink to the current release. 9662# Check X11 before X11Rn because it is often a symlink to the current release.
7090ac_x_header_dirs=' 9663ac_x_header_dirs='
7091/usr/X11/include 9664/usr/X11/include
7092/usr/X11R7/include
7093/usr/X11R6/include 9665/usr/X11R6/include
7094/usr/X11R5/include 9666/usr/X11R5/include
7095/usr/X11R4/include 9667/usr/X11R4/include
7096 9668
7097/usr/include/X11 9669/usr/include/X11
7098/usr/include/X11R7
7099/usr/include/X11R6 9670/usr/include/X11R6
7100/usr/include/X11R5 9671/usr/include/X11R5
7101/usr/include/X11R4 9672/usr/include/X11R4
7102 9673
7103/usr/local/X11/include 9674/usr/local/X11/include
7104/usr/local/X11R7/include
7105/usr/local/X11R6/include 9675/usr/local/X11R6/include
7106/usr/local/X11R5/include 9676/usr/local/X11R5/include
7107/usr/local/X11R4/include 9677/usr/local/X11R4/include
7108 9678
7109/usr/local/include/X11 9679/usr/local/include/X11
7110/usr/local/include/X11R7
7111/usr/local/include/X11R6 9680/usr/local/include/X11R6
7112/usr/local/include/X11R5 9681/usr/local/include/X11R5
7113/usr/local/include/X11R4 9682/usr/local/include/X11R4
@@ -7129,14 +9698,37 @@ ac_x_header_dirs='
7129if test "$ac_x_includes" = no; then 9698if test "$ac_x_includes" = no; then
7130 # Guess where to find include files, by looking for Xlib.h. 9699 # Guess where to find include files, by looking for Xlib.h.
7131 # First, try using that file with no special directory specified. 9700 # First, try using that file with no special directory specified.
7132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9701 cat >conftest.$ac_ext <<_ACEOF
9702/* confdefs.h. */
9703_ACEOF
9704cat confdefs.h >>conftest.$ac_ext
9705cat >>conftest.$ac_ext <<_ACEOF
7133/* end confdefs.h. */ 9706/* end confdefs.h. */
7134#include <X11/Xlib.h> 9707#include <X11/Xlib.h>
7135_ACEOF 9708_ACEOF
7136if ac_fn_c_try_cpp "$LINENO"; then : 9709if { (ac_try="$ac_cpp conftest.$ac_ext"
9710case "(($ac_try" in
9711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9712 *) ac_try_echo=$ac_try;;
9713esac
9714eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9715$as_echo "$ac_try_echo") >&5
9716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9717 ac_status=$?
9718 grep -v '^ *+' conftest.er1 >conftest.err
9719 rm -f conftest.er1
9720 cat conftest.err >&5
9721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9722 (exit $ac_status); } >/dev/null && {
9723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9724 test ! -s conftest.err
9725 }; then
7137 # We can compile using X headers with no special include directory. 9726 # We can compile using X headers with no special include directory.
7138ac_x_includes= 9727ac_x_includes=
7139else 9728else
9729 $as_echo "$as_me: failed program was:" >&5
9730sed 's/^/| /' conftest.$ac_ext >&5
9731
7140 for ac_dir in $ac_x_header_dirs; do 9732 for ac_dir in $ac_x_header_dirs; do
7141 if test -r "$ac_dir/X11/Xlib.h"; then 9733 if test -r "$ac_dir/X11/Xlib.h"; then
7142 ac_x_includes=$ac_dir 9734 ac_x_includes=$ac_dir
@@ -7144,6 +9736,7 @@ else
7144 fi 9736 fi
7145done 9737done
7146fi 9738fi
9739
7147rm -f conftest.err conftest.$ac_ext 9740rm -f conftest.err conftest.$ac_ext
7148fi # $ac_x_includes = no 9741fi # $ac_x_includes = no
7149 9742
@@ -7153,7 +9746,11 @@ if test "$ac_x_libraries" = no; then
7153 # Don't add to $LIBS permanently. 9746 # Don't add to $LIBS permanently.
7154 ac_save_LIBS=$LIBS 9747 ac_save_LIBS=$LIBS
7155 LIBS="-lX11 $LIBS" 9748 LIBS="-lX11 $LIBS"
7156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9749 cat >conftest.$ac_ext <<_ACEOF
9750/* confdefs.h. */
9751_ACEOF
9752cat confdefs.h >>conftest.$ac_ext
9753cat >>conftest.$ac_ext <<_ACEOF
7157/* end confdefs.h. */ 9754/* end confdefs.h. */
7158#include <X11/Xlib.h> 9755#include <X11/Xlib.h>
7159int 9756int
@@ -7164,12 +9761,35 @@ XrmInitialize ()
7164 return 0; 9761 return 0;
7165} 9762}
7166_ACEOF 9763_ACEOF
7167if ac_fn_c_try_link "$LINENO"; then : 9764rm -f conftest.$ac_objext conftest$ac_exeext
9765if { (ac_try="$ac_link"
9766case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769esac
9770eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9771$as_echo "$ac_try_echo") >&5
9772 (eval "$ac_link") 2>conftest.er1
9773 ac_status=$?
9774 grep -v '^ *+' conftest.er1 >conftest.err
9775 rm -f conftest.er1
9776 cat conftest.err >&5
9777 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9778 (exit $ac_status); } && {
9779 test -z "$ac_c_werror_flag" ||
9780 test ! -s conftest.err
9781 } && test -s conftest$ac_exeext && {
9782 test "$cross_compiling" = yes ||
9783 $as_test_x conftest$ac_exeext
9784 }; then
7168 LIBS=$ac_save_LIBS 9785 LIBS=$ac_save_LIBS
7169# We can link X programs with no special library path. 9786# We can link X programs with no special library path.
7170ac_x_libraries= 9787ac_x_libraries=
7171else 9788else
7172 LIBS=$ac_save_LIBS 9789 $as_echo "$as_me: failed program was:" >&5
9790sed 's/^/| /' conftest.$ac_ext >&5
9791
9792 LIBS=$ac_save_LIBS
7173for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 9793for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7174do 9794do
7175 # Don't even attempt the hair of trying to link an X program! 9795 # Don't even attempt the hair of trying to link an X program!
@@ -7181,8 +9801,10 @@ do
7181 done 9801 done
7182done 9802done
7183fi 9803fi
7184rm -f core conftest.err conftest.$ac_objext \ 9804
7185 conftest$ac_exeext conftest.$ac_ext 9805rm -rf conftest.dSYM
9806rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9807 conftest$ac_exeext conftest.$ac_ext
7186fi # $ac_x_libraries = no 9808fi # $ac_x_libraries = no
7187 9809
7188case $ac_x_includes,$ac_x_libraries in #( 9810case $ac_x_includes,$ac_x_libraries in #(
@@ -7203,7 +9825,7 @@ fi
7203fi # $with_x != no 9825fi # $with_x != no
7204 9826
7205if test "$have_x" != yes; then 9827if test "$have_x" != yes; then
7206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 9828 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
7207$as_echo "$have_x" >&6; } 9829$as_echo "$have_x" >&6; }
7208 no_x=yes 9830 no_x=yes
7209else 9831else
@@ -7214,7 +9836,7 @@ else
7214 ac_cv_have_x="have_x=yes\ 9836 ac_cv_have_x="have_x=yes\
7215 ac_x_includes='$x_includes'\ 9837 ac_x_includes='$x_includes'\
7216 ac_x_libraries='$x_libraries'" 9838 ac_x_libraries='$x_libraries'"
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 9839 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7218$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 9840$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7219fi 9841fi
7220 9842
@@ -7316,17 +9938,150 @@ if test "${with_ns}" != no; then
7316 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" 9938 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7317 LIB_STANDARD= 9939 LIB_STANDARD=
7318 fi 9940 fi
7319 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" 9941 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
7320if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : 9942 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9943$as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9944if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9945 $as_echo_n "(cached) " >&6
9946fi
9947{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9948$as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9949else
9950 # Is the header compilable?
9951{ $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9952$as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9953cat >conftest.$ac_ext <<_ACEOF
9954/* confdefs.h. */
9955_ACEOF
9956cat confdefs.h >>conftest.$ac_ext
9957cat >>conftest.$ac_ext <<_ACEOF
9958/* end confdefs.h. */
9959$ac_includes_default
9960#include <AppKit/AppKit.h>
9961_ACEOF
9962rm -f conftest.$ac_objext
9963if { (ac_try="$ac_compile"
9964case "(($ac_try" in
9965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9966 *) ac_try_echo=$ac_try;;
9967esac
9968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9969$as_echo "$ac_try_echo") >&5
9970 (eval "$ac_compile") 2>conftest.er1
9971 ac_status=$?
9972 grep -v '^ *+' conftest.er1 >conftest.err
9973 rm -f conftest.er1
9974 cat conftest.err >&5
9975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9976 (exit $ac_status); } && {
9977 test -z "$ac_c_werror_flag" ||
9978 test ! -s conftest.err
9979 } && test -s conftest.$ac_objext; then
9980 ac_header_compiler=yes
9981else
9982 $as_echo "$as_me: failed program was:" >&5
9983sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 ac_header_compiler=no
9986fi
9987
9988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9989{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9990$as_echo "$ac_header_compiler" >&6; }
9991
9992# Is the header present?
9993{ $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9994$as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9995cat >conftest.$ac_ext <<_ACEOF
9996/* confdefs.h. */
9997_ACEOF
9998cat confdefs.h >>conftest.$ac_ext
9999cat >>conftest.$ac_ext <<_ACEOF
10000/* end confdefs.h. */
10001#include <AppKit/AppKit.h>
10002_ACEOF
10003if { (ac_try="$ac_cpp conftest.$ac_ext"
10004case "(($ac_try" in
10005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10006 *) ac_try_echo=$ac_try;;
10007esac
10008eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10009$as_echo "$ac_try_echo") >&5
10010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10011 ac_status=$?
10012 grep -v '^ *+' conftest.er1 >conftest.err
10013 rm -f conftest.er1
10014 cat conftest.err >&5
10015 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10016 (exit $ac_status); } >/dev/null && {
10017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10018 test ! -s conftest.err
10019 }; then
10020 ac_header_preproc=yes
10021else
10022 $as_echo "$as_me: failed program was:" >&5
10023sed 's/^/| /' conftest.$ac_ext >&5
10024
10025 ac_header_preproc=no
10026fi
10027
10028rm -f conftest.err conftest.$ac_ext
10029{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10030$as_echo "$ac_header_preproc" >&6; }
10031
10032# So? What about this header?
10033case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10034 yes:no: )
10035 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10036$as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10037 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10038$as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10039 ac_header_preproc=yes
10040 ;;
10041 no:yes:* )
10042 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10043$as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10044 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10045$as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10046 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10047$as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10048 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10049$as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10050 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10051$as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10052 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10053$as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10054
10055 ;;
10056esac
10057{ $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10058$as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10059if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10060 $as_echo_n "(cached) " >&6
10061else
10062 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
10063fi
10064{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10065$as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10066
10067fi
10068if test $ac_cv_header_AppKit_AppKit_h = yes; then
7321 HAVE_NS=yes 10069 HAVE_NS=yes
7322else 10070else
7323 as_fn_error "\`--with-ns' was specified, but the include 10071 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
7324 files are missing or cannot be compiled." "$LINENO" 5 10072 files are missing or cannot be compiled." >&5
10073$as_echo "$as_me: error: \`--with-ns' was specified, but the include
10074 files are missing or cannot be compiled." >&2;}
10075 { (exit 1); exit 1; }; }
7325fi 10076fi
7326 10077
7327 10078
7328 NS_HAVE_NSINTEGER=yes 10079 NS_HAVE_NSINTEGER=yes
7329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10080 cat >conftest.$ac_ext <<_ACEOF
10081/* confdefs.h. */
10082_ACEOF
10083cat confdefs.h >>conftest.$ac_ext
10084cat >>conftest.$ac_ext <<_ACEOF
7330/* end confdefs.h. */ 10085/* end confdefs.h. */
7331#include <Foundation/NSObjCRuntime.h> 10086#include <Foundation/NSObjCRuntime.h>
7332int 10087int
@@ -7337,11 +10092,32 @@ NSInteger i;
7337 return 0; 10092 return 0;
7338} 10093}
7339_ACEOF 10094_ACEOF
7340if ac_fn_c_try_compile "$LINENO"; then : 10095rm -f conftest.$ac_objext
10096if { (ac_try="$ac_compile"
10097case "(($ac_try" in
10098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10099 *) ac_try_echo=$ac_try;;
10100esac
10101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10102$as_echo "$ac_try_echo") >&5
10103 (eval "$ac_compile") 2>conftest.er1
10104 ac_status=$?
10105 grep -v '^ *+' conftest.er1 >conftest.err
10106 rm -f conftest.er1
10107 cat conftest.err >&5
10108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10109 (exit $ac_status); } && {
10110 test -z "$ac_c_werror_flag" ||
10111 test ! -s conftest.err
10112 } && test -s conftest.$ac_objext; then
7341 ns_have_nsinteger=yes 10113 ns_have_nsinteger=yes
7342else 10114else
7343 ns_have_nsinteger=no 10115 $as_echo "$as_me: failed program was:" >&5
10116sed 's/^/| /' conftest.$ac_ext >&5
10117
10118 ns_have_nsinteger=no
7344fi 10119fi
10120
7345rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7346 if test $ns_have_nsinteger = no; then 10122 if test $ns_have_nsinteger = no; then
7347 NS_HAVE_NSINTEGER=no 10123 NS_HAVE_NSINTEGER=no
@@ -7391,9 +10167,9 @@ esac
7391if test "$window_system" = none && test "X$with_x" != "Xno"; then 10167if test "$window_system" = none && test "X$with_x" != "Xno"; then
7392 # Extract the first word of "X", so it can be a program name with args. 10168 # Extract the first word of "X", so it can be a program name with args.
7393set dummy X; ac_word=$2 10169set dummy X; ac_word=$2
7394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10170{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7395$as_echo_n "checking for $ac_word... " >&6; } 10171$as_echo_n "checking for $ac_word... " >&6; }
7396if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then : 10172if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
7397 $as_echo_n "(cached) " >&6 10173 $as_echo_n "(cached) " >&6
7398else 10174else
7399 if test -n "$HAVE_XSERVER"; then 10175 if test -n "$HAVE_XSERVER"; then
@@ -7404,14 +10180,14 @@ for as_dir in $PATH
7404do 10180do
7405 IFS=$as_save_IFS 10181 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=. 10182 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do 10183 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_prog_HAVE_XSERVER="true" 10185 ac_cv_prog_HAVE_XSERVER="true"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10186 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2 10187 break 2
7412 fi 10188 fi
7413done 10189done
7414 done 10190done
7415IFS=$as_save_IFS 10191IFS=$as_save_IFS
7416 10192
7417 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" 10193 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
@@ -7419,10 +10195,10 @@ fi
7419fi 10195fi
7420HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER 10196HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7421if test -n "$HAVE_XSERVER"; then 10197if test -n "$HAVE_XSERVER"; then
7422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5 10198 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
7423$as_echo "$HAVE_XSERVER" >&6; } 10199$as_echo "$HAVE_XSERVER" >&6; }
7424else 10200else
7425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10201 { $as_echo "$as_me:$LINENO: result: no" >&5
7426$as_echo "no" >&6; } 10202$as_echo "no" >&6; }
7427fi 10203fi
7428 10204
@@ -7430,14 +10206,23 @@ fi
7430 if test "$HAVE_XSERVER" = true || 10206 if test "$HAVE_XSERVER" = true ||
7431 test -n "$DISPLAY" || 10207 test -n "$DISPLAY" ||
7432 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then 10208 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7433 as_fn_error "You seem to be running X, but no X development libraries 10209 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
10210were found. You should install the relevant development files for X
10211and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10212sure you have development files for image handling, i.e.
10213tiff, gif, jpeg, png and xpm.
10214If you are sure you want Emacs compiled without X window support, pass
10215 --without-x
10216to configure." >&5
10217$as_echo "$as_me: error: You seem to be running X, but no X development libraries
7434were found. You should install the relevant development files for X 10218were found. You should install the relevant development files for X
7435and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make 10219and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7436sure you have development files for image handling, i.e. 10220sure you have development files for image handling, i.e.
7437tiff, gif, jpeg, png and xpm. 10221tiff, gif, jpeg, png and xpm.
7438If you are sure you want Emacs compiled without X window support, pass 10222If you are sure you want Emacs compiled without X window support, pass
7439 --without-x 10223 --without-x
7440to configure." "$LINENO" 5 10224to configure." >&2;}
10225 { (exit 1); exit 1; }; }
7441 fi 10226 fi
7442fi 10227fi
7443 10228
@@ -7451,26 +10236,198 @@ esac
7451# Assume not, until told otherwise. 10236# Assume not, until told otherwise.
7452GNU_MALLOC=yes 10237GNU_MALLOC=yes
7453doug_lea_malloc=yes 10238doug_lea_malloc=yes
7454ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state" 10239{ $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7455if test "x$ac_cv_func_malloc_get_state" = x""yes; then : 10240$as_echo_n "checking for malloc_get_state... " >&6; }
10241if test "${ac_cv_func_malloc_get_state+set}" = set; then
10242 $as_echo_n "(cached) " >&6
10243else
10244 cat >conftest.$ac_ext <<_ACEOF
10245/* confdefs.h. */
10246_ACEOF
10247cat confdefs.h >>conftest.$ac_ext
10248cat >>conftest.$ac_ext <<_ACEOF
10249/* end confdefs.h. */
10250/* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10251 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10252#define malloc_get_state innocuous_malloc_get_state
7456 10253
10254/* System header to define __stub macros and hopefully few prototypes,
10255 which can conflict with char malloc_get_state (); below.
10256 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10257 <limits.h> exists even on freestanding compilers. */
10258
10259#ifdef __STDC__
10260# include <limits.h>
10261#else
10262# include <assert.h>
10263#endif
10264
10265#undef malloc_get_state
10266
10267/* Override any GCC internal prototype to avoid an error.
10268 Use char because int might match the return type of a GCC
10269 builtin and then its argument prototype would still apply. */
10270#ifdef __cplusplus
10271extern "C"
10272#endif
10273char malloc_get_state ();
10274/* The GNU C library defines this for functions which it implements
10275 to always fail with ENOSYS. Some functions are actually named
10276 something starting with __ and the normal name is an alias. */
10277#if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10278choke me
10279#endif
10280
10281int
10282main ()
10283{
10284return malloc_get_state ();
10285 ;
10286 return 0;
10287}
10288_ACEOF
10289rm -f conftest.$ac_objext conftest$ac_exeext
10290if { (ac_try="$ac_link"
10291case "(($ac_try" in
10292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10293 *) ac_try_echo=$ac_try;;
10294esac
10295eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10296$as_echo "$ac_try_echo") >&5
10297 (eval "$ac_link") 2>conftest.er1
10298 ac_status=$?
10299 grep -v '^ *+' conftest.er1 >conftest.err
10300 rm -f conftest.er1
10301 cat conftest.err >&5
10302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10303 (exit $ac_status); } && {
10304 test -z "$ac_c_werror_flag" ||
10305 test ! -s conftest.err
10306 } && test -s conftest$ac_exeext && {
10307 test "$cross_compiling" = yes ||
10308 $as_test_x conftest$ac_exeext
10309 }; then
10310 ac_cv_func_malloc_get_state=yes
10311else
10312 $as_echo "$as_me: failed program was:" >&5
10313sed 's/^/| /' conftest.$ac_ext >&5
10314
10315 ac_cv_func_malloc_get_state=no
10316fi
10317
10318rm -rf conftest.dSYM
10319rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10320 conftest$ac_exeext conftest.$ac_ext
10321fi
10322{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10323$as_echo "$ac_cv_func_malloc_get_state" >&6; }
10324if test $ac_cv_func_malloc_get_state = yes; then
10325 :
7457else 10326else
7458 doug_lea_malloc=no 10327 doug_lea_malloc=no
7459fi 10328fi
7460 10329
7461ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state" 10330{ $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7462if test "x$ac_cv_func_malloc_set_state" = x""yes; then : 10331$as_echo_n "checking for malloc_set_state... " >&6; }
10332if test "${ac_cv_func_malloc_set_state+set}" = set; then
10333 $as_echo_n "(cached) " >&6
10334else
10335 cat >conftest.$ac_ext <<_ACEOF
10336/* confdefs.h. */
10337_ACEOF
10338cat confdefs.h >>conftest.$ac_ext
10339cat >>conftest.$ac_ext <<_ACEOF
10340/* end confdefs.h. */
10341/* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10342 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10343#define malloc_set_state innocuous_malloc_set_state
10344
10345/* System header to define __stub macros and hopefully few prototypes,
10346 which can conflict with char malloc_set_state (); below.
10347 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10348 <limits.h> exists even on freestanding compilers. */
10349
10350#ifdef __STDC__
10351# include <limits.h>
10352#else
10353# include <assert.h>
10354#endif
7463 10355
10356#undef malloc_set_state
10357
10358/* Override any GCC internal prototype to avoid an error.
10359 Use char because int might match the return type of a GCC
10360 builtin and then its argument prototype would still apply. */
10361#ifdef __cplusplus
10362extern "C"
10363#endif
10364char malloc_set_state ();
10365/* The GNU C library defines this for functions which it implements
10366 to always fail with ENOSYS. Some functions are actually named
10367 something starting with __ and the normal name is an alias. */
10368#if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10369choke me
10370#endif
10371
10372int
10373main ()
10374{
10375return malloc_set_state ();
10376 ;
10377 return 0;
10378}
10379_ACEOF
10380rm -f conftest.$ac_objext conftest$ac_exeext
10381if { (ac_try="$ac_link"
10382case "(($ac_try" in
10383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10385esac
10386eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10387$as_echo "$ac_try_echo") >&5
10388 (eval "$ac_link") 2>conftest.er1
10389 ac_status=$?
10390 grep -v '^ *+' conftest.er1 >conftest.err
10391 rm -f conftest.er1
10392 cat conftest.err >&5
10393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10394 (exit $ac_status); } && {
10395 test -z "$ac_c_werror_flag" ||
10396 test ! -s conftest.err
10397 } && test -s conftest$ac_exeext && {
10398 test "$cross_compiling" = yes ||
10399 $as_test_x conftest$ac_exeext
10400 }; then
10401 ac_cv_func_malloc_set_state=yes
10402else
10403 $as_echo "$as_me: failed program was:" >&5
10404sed 's/^/| /' conftest.$ac_ext >&5
10405
10406 ac_cv_func_malloc_set_state=no
10407fi
10408
10409rm -rf conftest.dSYM
10410rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10411 conftest$ac_exeext conftest.$ac_ext
10412fi
10413{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10414$as_echo "$ac_cv_func_malloc_set_state" >&6; }
10415if test $ac_cv_func_malloc_set_state = yes; then
10416 :
7464else 10417else
7465 doug_lea_malloc=no 10418 doug_lea_malloc=no
7466fi 10419fi
7467 10420
7468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5 10421{ $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7469$as_echo_n "checking whether __after_morecore_hook exists... " >&6; } 10422$as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7470if test "${emacs_cv_var___after_morecore_hook+set}" = set; then : 10423if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7471 $as_echo_n "(cached) " >&6 10424 $as_echo_n "(cached) " >&6
7472else 10425else
7473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10426 cat >conftest.$ac_ext <<_ACEOF
10427/* confdefs.h. */
10428_ACEOF
10429cat confdefs.h >>conftest.$ac_ext
10430cat >>conftest.$ac_ext <<_ACEOF
7474/* end confdefs.h. */ 10431/* end confdefs.h. */
7475extern void (* __after_morecore_hook)(); 10432extern void (* __after_morecore_hook)();
7476int 10433int
@@ -7481,15 +10438,40 @@ __after_morecore_hook = 0
7481 return 0; 10438 return 0;
7482} 10439}
7483_ACEOF 10440_ACEOF
7484if ac_fn_c_try_link "$LINENO"; then : 10441rm -f conftest.$ac_objext conftest$ac_exeext
10442if { (ac_try="$ac_link"
10443case "(($ac_try" in
10444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10445 *) ac_try_echo=$ac_try;;
10446esac
10447eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10448$as_echo "$ac_try_echo") >&5
10449 (eval "$ac_link") 2>conftest.er1
10450 ac_status=$?
10451 grep -v '^ *+' conftest.er1 >conftest.err
10452 rm -f conftest.er1
10453 cat conftest.err >&5
10454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10455 (exit $ac_status); } && {
10456 test -z "$ac_c_werror_flag" ||
10457 test ! -s conftest.err
10458 } && test -s conftest$ac_exeext && {
10459 test "$cross_compiling" = yes ||
10460 $as_test_x conftest$ac_exeext
10461 }; then
7485 emacs_cv_var___after_morecore_hook=yes 10462 emacs_cv_var___after_morecore_hook=yes
7486else 10463else
7487 emacs_cv_var___after_morecore_hook=no 10464 $as_echo "$as_me: failed program was:" >&5
10465sed 's/^/| /' conftest.$ac_ext >&5
10466
10467 emacs_cv_var___after_morecore_hook=no
7488fi 10468fi
7489rm -f core conftest.err conftest.$ac_objext \ 10469
7490 conftest$ac_exeext conftest.$ac_ext 10470rm -rf conftest.dSYM
10471rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10472 conftest$ac_exeext conftest.$ac_ext
7491fi 10473fi
7492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5 10474{ $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7493$as_echo "$emacs_cv_var___after_morecore_hook" >&6; } 10475$as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7494if test $emacs_cv_var___after_morecore_hook = no; then 10476if test $emacs_cv_var___after_morecore_hook = no; then
7495 doug_lea_malloc=no 10477 doug_lea_malloc=no
@@ -7505,7 +10487,9 @@ if test "$doug_lea_malloc" = "yes" ; then
7505 (Using Doug Lea's new malloc from the GNU C Library.)" 10487 (Using Doug Lea's new malloc from the GNU C Library.)"
7506 fi 10488 fi
7507 10489
7508$as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h 10490cat >>confdefs.h <<\_ACEOF
10491#define DOUG_LEA_MALLOC 1
10492_ACEOF
7509 10493
7510fi 10494fi
7511 10495
@@ -7516,14 +10500,142 @@ fi
7516 10500
7517 10501
7518 10502
10503for ac_header in stdlib.h unistd.h
10504do
10505as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10506if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10507 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10508$as_echo_n "checking for $ac_header... " >&6; }
10509if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10510 $as_echo_n "(cached) " >&6
10511fi
10512ac_res=`eval 'as_val=${'$as_ac_Header'}
10513 $as_echo "$as_val"'`
10514 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10515$as_echo "$ac_res" >&6; }
10516else
10517 # Is the header compilable?
10518{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10519$as_echo_n "checking $ac_header usability... " >&6; }
10520cat >conftest.$ac_ext <<_ACEOF
10521/* confdefs.h. */
10522_ACEOF
10523cat confdefs.h >>conftest.$ac_ext
10524cat >>conftest.$ac_ext <<_ACEOF
10525/* end confdefs.h. */
10526$ac_includes_default
10527#include <$ac_header>
10528_ACEOF
10529rm -f conftest.$ac_objext
10530if { (ac_try="$ac_compile"
10531case "(($ac_try" in
10532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10534esac
10535eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10536$as_echo "$ac_try_echo") >&5
10537 (eval "$ac_compile") 2>conftest.er1
10538 ac_status=$?
10539 grep -v '^ *+' conftest.er1 >conftest.err
10540 rm -f conftest.er1
10541 cat conftest.err >&5
10542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } && {
10544 test -z "$ac_c_werror_flag" ||
10545 test ! -s conftest.err
10546 } && test -s conftest.$ac_objext; then
10547 ac_header_compiler=yes
10548else
10549 $as_echo "$as_me: failed program was:" >&5
10550sed 's/^/| /' conftest.$ac_ext >&5
10551
10552 ac_header_compiler=no
10553fi
10554
10555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10556{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10557$as_echo "$ac_header_compiler" >&6; }
10558
10559# Is the header present?
10560{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10561$as_echo_n "checking $ac_header presence... " >&6; }
10562cat >conftest.$ac_ext <<_ACEOF
10563/* confdefs.h. */
10564_ACEOF
10565cat confdefs.h >>conftest.$ac_ext
10566cat >>conftest.$ac_ext <<_ACEOF
10567/* end confdefs.h. */
10568#include <$ac_header>
10569_ACEOF
10570if { (ac_try="$ac_cpp conftest.$ac_ext"
10571case "(($ac_try" in
10572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10573 *) ac_try_echo=$ac_try;;
10574esac
10575eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10576$as_echo "$ac_try_echo") >&5
10577 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10578 ac_status=$?
10579 grep -v '^ *+' conftest.er1 >conftest.err
10580 rm -f conftest.er1
10581 cat conftest.err >&5
10582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } >/dev/null && {
10584 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10585 test ! -s conftest.err
10586 }; then
10587 ac_header_preproc=yes
10588else
10589 $as_echo "$as_me: failed program was:" >&5
10590sed 's/^/| /' conftest.$ac_ext >&5
10591
10592 ac_header_preproc=no
10593fi
10594
10595rm -f conftest.err conftest.$ac_ext
10596{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10597$as_echo "$ac_header_preproc" >&6; }
7519 10598
7520 for ac_header in $ac_header_list 10599# So? What about this header?
7521do : 10600case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10601 yes:no: )
7523ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7524" 10603$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7525eval as_val=\$$as_ac_Header 10604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7526 if test "x$as_val" = x""yes; then : 10605$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10606 ac_header_preproc=yes
10607 ;;
10608 no:yes:* )
10609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10610$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10612$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10614$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10616$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10618$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10620$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10621
10622 ;;
10623esac
10624{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10625$as_echo_n "checking for $ac_header... " >&6; }
10626if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10627 $as_echo_n "(cached) " >&6
10628else
10629 eval "$as_ac_Header=\$ac_header_preproc"
10630fi
10631ac_res=`eval 'as_val=${'$as_ac_Header'}
10632 $as_echo "$as_val"'`
10633 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10634$as_echo "$ac_res" >&6; }
10635
10636fi
10637if test `eval 'as_val=${'$as_ac_Header'}
10638 $as_echo "$as_val"'` = yes; then
7527 cat >>confdefs.h <<_ACEOF 10639 cat >>confdefs.h <<_ACEOF
7528#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10640#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7529_ACEOF 10641_ACEOF
@@ -7533,32 +10645,118 @@ fi
7533done 10645done
7534 10646
7535 10647
10648for ac_func in getpagesize
10649do
10650as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10651{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10652$as_echo_n "checking for $ac_func... " >&6; }
10653if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10654 $as_echo_n "(cached) " >&6
10655else
10656 cat >conftest.$ac_ext <<_ACEOF
10657/* confdefs.h. */
10658_ACEOF
10659cat confdefs.h >>conftest.$ac_ext
10660cat >>conftest.$ac_ext <<_ACEOF
10661/* end confdefs.h. */
10662/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10664#define $ac_func innocuous_$ac_func
7536 10665
10666/* System header to define __stub macros and hopefully few prototypes,
10667 which can conflict with char $ac_func (); below.
10668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10669 <limits.h> exists even on freestanding compilers. */
7537 10670
10671#ifdef __STDC__
10672# include <limits.h>
10673#else
10674# include <assert.h>
10675#endif
7538 10676
10677#undef $ac_func
7539 10678
10679/* Override any GCC internal prototype to avoid an error.
10680 Use char because int might match the return type of a GCC
10681 builtin and then its argument prototype would still apply. */
10682#ifdef __cplusplus
10683extern "C"
10684#endif
10685char $ac_func ();
10686/* The GNU C library defines this for functions which it implements
10687 to always fail with ENOSYS. Some functions are actually named
10688 something starting with __ and the normal name is an alias. */
10689#if defined __stub_$ac_func || defined __stub___$ac_func
10690choke me
10691#endif
7540 10692
10693int
10694main ()
10695{
10696return $ac_func ();
10697 ;
10698 return 0;
10699}
10700_ACEOF
10701rm -f conftest.$ac_objext conftest$ac_exeext
10702if { (ac_try="$ac_link"
10703case "(($ac_try" in
10704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10705 *) ac_try_echo=$ac_try;;
10706esac
10707eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10708$as_echo "$ac_try_echo") >&5
10709 (eval "$ac_link") 2>conftest.er1
10710 ac_status=$?
10711 grep -v '^ *+' conftest.er1 >conftest.err
10712 rm -f conftest.er1
10713 cat conftest.err >&5
10714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715 (exit $ac_status); } && {
10716 test -z "$ac_c_werror_flag" ||
10717 test ! -s conftest.err
10718 } && test -s conftest$ac_exeext && {
10719 test "$cross_compiling" = yes ||
10720 $as_test_x conftest$ac_exeext
10721 }; then
10722 eval "$as_ac_var=yes"
10723else
10724 $as_echo "$as_me: failed program was:" >&5
10725sed 's/^/| /' conftest.$ac_ext >&5
7541 10726
7542for ac_func in getpagesize 10727 eval "$as_ac_var=no"
7543do : 10728fi
7544 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 10729
7545if test "x$ac_cv_func_getpagesize" = x""yes; then : 10730rm -rf conftest.dSYM
10731rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10732 conftest$ac_exeext conftest.$ac_ext
10733fi
10734ac_res=`eval 'as_val=${'$as_ac_var'}
10735 $as_echo "$as_val"'`
10736 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10737$as_echo "$ac_res" >&6; }
10738if test `eval 'as_val=${'$as_ac_var'}
10739 $as_echo "$as_val"'` = yes; then
7546 cat >>confdefs.h <<_ACEOF 10740 cat >>confdefs.h <<_ACEOF
7547#define HAVE_GETPAGESIZE 1 10741#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7548_ACEOF 10742_ACEOF
7549 10743
7550fi 10744fi
7551done 10745done
7552 10746
7553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 10747{ $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7554$as_echo_n "checking for working mmap... " >&6; } 10748$as_echo_n "checking for working mmap... " >&6; }
7555if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 10749if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7556 $as_echo_n "(cached) " >&6 10750 $as_echo_n "(cached) " >&6
7557else 10751else
7558 if test "$cross_compiling" = yes; then : 10752 if test "$cross_compiling" = yes; then
7559 ac_cv_func_mmap_fixed_mapped=no 10753 ac_cv_func_mmap_fixed_mapped=no
7560else 10754else
7561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10755 cat >conftest.$ac_ext <<_ACEOF
10756/* confdefs.h. */
10757_ACEOF
10758cat confdefs.h >>conftest.$ac_ext
10759cat >>conftest.$ac_ext <<_ACEOF
7562/* end confdefs.h. */ 10760/* end confdefs.h. */
7563$ac_includes_default 10761$ac_includes_default
7564/* malloc might have been renamed as rpl_malloc. */ 10762/* malloc might have been renamed as rpl_malloc. */
@@ -7595,6 +10793,11 @@ char *malloc ();
7595 10793
7596/* This mess was copied from the GNU getpagesize.h. */ 10794/* This mess was copied from the GNU getpagesize.h. */
7597#ifndef HAVE_GETPAGESIZE 10795#ifndef HAVE_GETPAGESIZE
10796/* Assume that all systems that can run configure have sys/param.h. */
10797# ifndef HAVE_SYS_PARAM_H
10798# define HAVE_SYS_PARAM_H 1
10799# endif
10800
7598# ifdef _SC_PAGESIZE 10801# ifdef _SC_PAGESIZE
7599# define getpagesize() sysconf(_SC_PAGESIZE) 10802# define getpagesize() sysconf(_SC_PAGESIZE)
7600# else /* no _SC_PAGESIZE */ 10803# else /* no _SC_PAGESIZE */
@@ -7630,7 +10833,7 @@ main ()
7630{ 10833{
7631 char *data, *data2, *data3; 10834 char *data, *data2, *data3;
7632 int i, pagesize; 10835 int i, pagesize;
7633 int fd, fd2; 10836 int fd;
7634 10837
7635 pagesize = getpagesize (); 10838 pagesize = getpagesize ();
7636 10839
@@ -7643,41 +10846,27 @@ main ()
7643 umask (0); 10846 umask (0);
7644 fd = creat ("conftest.mmap", 0600); 10847 fd = creat ("conftest.mmap", 0600);
7645 if (fd < 0) 10848 if (fd < 0)
7646 return 2; 10849 return 1;
7647 if (write (fd, data, pagesize) != pagesize) 10850 if (write (fd, data, pagesize) != pagesize)
7648 return 3; 10851 return 1;
7649 close (fd); 10852 close (fd);
7650 10853
7651 /* Next, check that the tail of a page is zero-filled. File must have
7652 non-zero length, otherwise we risk SIGBUS for entire page. */
7653 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7654 if (fd2 < 0)
7655 return 4;
7656 data2 = "";
7657 if (write (fd2, data2, 1) != 1)
7658 return 5;
7659 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7660 if (data2 == MAP_FAILED)
7661 return 6;
7662 for (i = 0; i < pagesize; ++i)
7663 if (*(data2 + i))
7664 return 7;
7665 close (fd2);
7666 if (munmap (data2, pagesize))
7667 return 8;
7668
7669 /* Next, try to mmap the file at a fixed address which already has 10854 /* Next, try to mmap the file at a fixed address which already has
7670 something else allocated at it. If we can, also make sure that 10855 something else allocated at it. If we can, also make sure that
7671 we see the same garbage. */ 10856 we see the same garbage. */
7672 fd = open ("conftest.mmap", O_RDWR); 10857 fd = open ("conftest.mmap", O_RDWR);
7673 if (fd < 0) 10858 if (fd < 0)
7674 return 9; 10859 return 1;
10860 data2 = (char *) malloc (2 * pagesize);
10861 if (!data2)
10862 return 1;
10863 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7675 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 10864 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7676 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 10865 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7677 return 10; 10866 return 1;
7678 for (i = 0; i < pagesize; ++i) 10867 for (i = 0; i < pagesize; ++i)
7679 if (*(data + i) != *(data2 + i)) 10868 if (*(data + i) != *(data2 + i))
7680 return 11; 10869 return 1;
7681 10870
7682 /* Finally, make sure that changes to the mapped area do not 10871 /* Finally, make sure that changes to the mapped area do not
7683 percolate back to the file as seen by read(). (This is a bug on 10872 percolate back to the file as seen by read(). (This is a bug on
@@ -7686,34 +10875,63 @@ main ()
7686 *(data2 + i) = *(data2 + i) + 1; 10875 *(data2 + i) = *(data2 + i) + 1;
7687 data3 = (char *) malloc (pagesize); 10876 data3 = (char *) malloc (pagesize);
7688 if (!data3) 10877 if (!data3)
7689 return 12; 10878 return 1;
7690 if (read (fd, data3, pagesize) != pagesize) 10879 if (read (fd, data3, pagesize) != pagesize)
7691 return 13; 10880 return 1;
7692 for (i = 0; i < pagesize; ++i) 10881 for (i = 0; i < pagesize; ++i)
7693 if (*(data + i) != *(data3 + i)) 10882 if (*(data + i) != *(data3 + i))
7694 return 14; 10883 return 1;
7695 close (fd); 10884 close (fd);
7696 return 0; 10885 return 0;
7697} 10886}
7698_ACEOF 10887_ACEOF
7699if ac_fn_c_try_run "$LINENO"; then : 10888rm -f conftest$ac_exeext
10889if { (ac_try="$ac_link"
10890case "(($ac_try" in
10891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10892 *) ac_try_echo=$ac_try;;
10893esac
10894eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10895$as_echo "$ac_try_echo") >&5
10896 (eval "$ac_link") 2>&5
10897 ac_status=$?
10898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10900 { (case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10903esac
10904eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10905$as_echo "$ac_try_echo") >&5
10906 (eval "$ac_try") 2>&5
10907 ac_status=$?
10908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10909 (exit $ac_status); }; }; then
7700 ac_cv_func_mmap_fixed_mapped=yes 10910 ac_cv_func_mmap_fixed_mapped=yes
7701else 10911else
7702 ac_cv_func_mmap_fixed_mapped=no 10912 $as_echo "$as_me: program exited with status $ac_status" >&5
10913$as_echo "$as_me: failed program was:" >&5
10914sed 's/^/| /' conftest.$ac_ext >&5
10915
10916( exit $ac_status )
10917ac_cv_func_mmap_fixed_mapped=no
7703fi 10918fi
7704rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10919rm -rf conftest.dSYM
7705 conftest.$ac_objext conftest.beam conftest.$ac_ext 10920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7706fi 10921fi
7707 10922
10923
7708fi 10924fi
7709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 10925{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7710$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 10926$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7711if test $ac_cv_func_mmap_fixed_mapped = yes; then 10927if test $ac_cv_func_mmap_fixed_mapped = yes; then
7712 10928
7713$as_echo "#define HAVE_MMAP 1" >>confdefs.h 10929cat >>confdefs.h <<\_ACEOF
10930#define HAVE_MMAP 1
10931_ACEOF
7714 10932
7715fi 10933fi
7716rm -f conftest.mmap conftest.txt 10934rm -f conftest.mmap
7717 10935
7718if test $use_mmap_for_buffers = yes; then 10936if test $use_mmap_for_buffers = yes; then
7719 REL_ALLOC=no 10937 REL_ALLOC=no
@@ -7721,14 +10939,19 @@ fi
7721 10939
7722LIBS="$libsrc_libs $LIBS" 10940LIBS="$libsrc_libs $LIBS"
7723 10941
7724{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 10942
10943{ $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7725$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 10944$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7726if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 10945if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7727 $as_echo_n "(cached) " >&6 10946 $as_echo_n "(cached) " >&6
7728else 10947else
7729 ac_check_lib_save_LIBS=$LIBS 10948 ac_check_lib_save_LIBS=$LIBS
7730LIBS="-ldnet $LIBS" 10949LIBS="-ldnet $LIBS"
7731cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10950cat >conftest.$ac_ext <<_ACEOF
10951/* confdefs.h. */
10952_ACEOF
10953cat confdefs.h >>conftest.$ac_ext
10954cat >>conftest.$ac_ext <<_ACEOF
7732/* end confdefs.h. */ 10955/* end confdefs.h. */
7733 10956
7734/* Override any GCC internal prototype to avoid an error. 10957/* Override any GCC internal prototype to avoid an error.
@@ -7746,18 +10969,43 @@ return dnet_ntoa ();
7746 return 0; 10969 return 0;
7747} 10970}
7748_ACEOF 10971_ACEOF
7749if ac_fn_c_try_link "$LINENO"; then : 10972rm -f conftest.$ac_objext conftest$ac_exeext
10973if { (ac_try="$ac_link"
10974case "(($ac_try" in
10975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10976 *) ac_try_echo=$ac_try;;
10977esac
10978eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10979$as_echo "$ac_try_echo") >&5
10980 (eval "$ac_link") 2>conftest.er1
10981 ac_status=$?
10982 grep -v '^ *+' conftest.er1 >conftest.err
10983 rm -f conftest.er1
10984 cat conftest.err >&5
10985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10986 (exit $ac_status); } && {
10987 test -z "$ac_c_werror_flag" ||
10988 test ! -s conftest.err
10989 } && test -s conftest$ac_exeext && {
10990 test "$cross_compiling" = yes ||
10991 $as_test_x conftest$ac_exeext
10992 }; then
7750 ac_cv_lib_dnet_dnet_ntoa=yes 10993 ac_cv_lib_dnet_dnet_ntoa=yes
7751else 10994else
7752 ac_cv_lib_dnet_dnet_ntoa=no 10995 $as_echo "$as_me: failed program was:" >&5
10996sed 's/^/| /' conftest.$ac_ext >&5
10997
10998 ac_cv_lib_dnet_dnet_ntoa=no
7753fi 10999fi
7754rm -f core conftest.err conftest.$ac_objext \ 11000
7755 conftest$ac_exeext conftest.$ac_ext 11001rm -rf conftest.dSYM
11002rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11003 conftest$ac_exeext conftest.$ac_ext
7756LIBS=$ac_check_lib_save_LIBS 11004LIBS=$ac_check_lib_save_LIBS
7757fi 11005fi
7758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 11006{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7759$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 11007$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7760if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 11008if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7761 cat >>confdefs.h <<_ACEOF 11009 cat >>confdefs.h <<_ACEOF
7762#define HAVE_LIBDNET 1 11010#define HAVE_LIBDNET 1
7763_ACEOF 11011_ACEOF
@@ -7767,14 +11015,18 @@ _ACEOF
7767fi 11015fi
7768 11016
7769 11017
7770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 11018{ $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7771$as_echo_n "checking for main in -lXbsd... " >&6; } 11019$as_echo_n "checking for main in -lXbsd... " >&6; }
7772if test "${ac_cv_lib_Xbsd_main+set}" = set; then : 11020if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7773 $as_echo_n "(cached) " >&6 11021 $as_echo_n "(cached) " >&6
7774else 11022else
7775 ac_check_lib_save_LIBS=$LIBS 11023 ac_check_lib_save_LIBS=$LIBS
7776LIBS="-lXbsd $LIBS" 11024LIBS="-lXbsd $LIBS"
7777cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11025cat >conftest.$ac_ext <<_ACEOF
11026/* confdefs.h. */
11027_ACEOF
11028cat confdefs.h >>conftest.$ac_ext
11029cat >>conftest.$ac_ext <<_ACEOF
7778/* end confdefs.h. */ 11030/* end confdefs.h. */
7779 11031
7780 11032
@@ -7786,30 +11038,60 @@ return main ();
7786 return 0; 11038 return 0;
7787} 11039}
7788_ACEOF 11040_ACEOF
7789if ac_fn_c_try_link "$LINENO"; then : 11041rm -f conftest.$ac_objext conftest$ac_exeext
11042if { (ac_try="$ac_link"
11043case "(($ac_try" in
11044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11045 *) ac_try_echo=$ac_try;;
11046esac
11047eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11048$as_echo "$ac_try_echo") >&5
11049 (eval "$ac_link") 2>conftest.er1
11050 ac_status=$?
11051 grep -v '^ *+' conftest.er1 >conftest.err
11052 rm -f conftest.er1
11053 cat conftest.err >&5
11054 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } && {
11056 test -z "$ac_c_werror_flag" ||
11057 test ! -s conftest.err
11058 } && test -s conftest$ac_exeext && {
11059 test "$cross_compiling" = yes ||
11060 $as_test_x conftest$ac_exeext
11061 }; then
7790 ac_cv_lib_Xbsd_main=yes 11062 ac_cv_lib_Xbsd_main=yes
7791else 11063else
7792 ac_cv_lib_Xbsd_main=no 11064 $as_echo "$as_me: failed program was:" >&5
11065sed 's/^/| /' conftest.$ac_ext >&5
11066
11067 ac_cv_lib_Xbsd_main=no
7793fi 11068fi
7794rm -f core conftest.err conftest.$ac_objext \ 11069
7795 conftest$ac_exeext conftest.$ac_ext 11070rm -rf conftest.dSYM
11071rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11072 conftest$ac_exeext conftest.$ac_ext
7796LIBS=$ac_check_lib_save_LIBS 11073LIBS=$ac_check_lib_save_LIBS
7797fi 11074fi
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 11075{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7799$as_echo "$ac_cv_lib_Xbsd_main" >&6; } 11076$as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7800if test "x$ac_cv_lib_Xbsd_main" = x""yes; then : 11077if test $ac_cv_lib_Xbsd_main = yes; then
7801 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" 11078 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7802fi 11079fi
7803 11080
7804 11081
7805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5 11082
11083{ $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7806$as_echo_n "checking for cma_open in -lpthreads... " >&6; } 11084$as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7807if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then : 11085if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7808 $as_echo_n "(cached) " >&6 11086 $as_echo_n "(cached) " >&6
7809else 11087else
7810 ac_check_lib_save_LIBS=$LIBS 11088 ac_check_lib_save_LIBS=$LIBS
7811LIBS="-lpthreads $LIBS" 11089LIBS="-lpthreads $LIBS"
7812cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11090cat >conftest.$ac_ext <<_ACEOF
11091/* confdefs.h. */
11092_ACEOF
11093cat confdefs.h >>conftest.$ac_ext
11094cat >>conftest.$ac_ext <<_ACEOF
7813/* end confdefs.h. */ 11095/* end confdefs.h. */
7814 11096
7815/* Override any GCC internal prototype to avoid an error. 11097/* Override any GCC internal prototype to avoid an error.
@@ -7827,18 +11109,43 @@ return cma_open ();
7827 return 0; 11109 return 0;
7828} 11110}
7829_ACEOF 11111_ACEOF
7830if ac_fn_c_try_link "$LINENO"; then : 11112rm -f conftest.$ac_objext conftest$ac_exeext
11113if { (ac_try="$ac_link"
11114case "(($ac_try" in
11115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11116 *) ac_try_echo=$ac_try;;
11117esac
11118eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11119$as_echo "$ac_try_echo") >&5
11120 (eval "$ac_link") 2>conftest.er1
11121 ac_status=$?
11122 grep -v '^ *+' conftest.er1 >conftest.err
11123 rm -f conftest.er1
11124 cat conftest.err >&5
11125 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11126 (exit $ac_status); } && {
11127 test -z "$ac_c_werror_flag" ||
11128 test ! -s conftest.err
11129 } && test -s conftest$ac_exeext && {
11130 test "$cross_compiling" = yes ||
11131 $as_test_x conftest$ac_exeext
11132 }; then
7831 ac_cv_lib_pthreads_cma_open=yes 11133 ac_cv_lib_pthreads_cma_open=yes
7832else 11134else
7833 ac_cv_lib_pthreads_cma_open=no 11135 $as_echo "$as_me: failed program was:" >&5
11136sed 's/^/| /' conftest.$ac_ext >&5
11137
11138 ac_cv_lib_pthreads_cma_open=no
7834fi 11139fi
7835rm -f core conftest.err conftest.$ac_objext \ 11140
7836 conftest$ac_exeext conftest.$ac_ext 11141rm -rf conftest.dSYM
11142rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11143 conftest$ac_exeext conftest.$ac_ext
7837LIBS=$ac_check_lib_save_LIBS 11144LIBS=$ac_check_lib_save_LIBS
7838fi 11145fi
7839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5 11146{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7840$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } 11147$as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7841if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then : 11148if test $ac_cv_lib_pthreads_cma_open = yes; then
7842 cat >>confdefs.h <<_ACEOF 11149 cat >>confdefs.h <<_ACEOF
7843#define HAVE_LIBPTHREADS 1 11150#define HAVE_LIBPTHREADS 1
7844_ACEOF 11151_ACEOF
@@ -7851,9 +11158,9 @@ fi
7851 11158
7852case ${host_os} in 11159case ${host_os} in
7853aix*) 11160aix*)
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 11161 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7855$as_echo_n "checking for -bbigtoc option... " >&6; } 11162$as_echo_n "checking for -bbigtoc option... " >&6; }
7856if test "${gdb_cv_bigtoc+set}" = set; then : 11163if test "${gdb_cv_bigtoc+set}" = set; then
7857 $as_echo_n "(cached) " >&6 11164 $as_echo_n "(cached) " >&6
7858else 11165else
7859 11166
@@ -7863,7 +11170,11 @@ else
7863 esac 11170 esac
7864 11171
7865 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc 11172 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11173 cat >conftest.$ac_ext <<_ACEOF
11174/* confdefs.h. */
11175_ACEOF
11176cat confdefs.h >>conftest.$ac_ext
11177cat >>conftest.$ac_ext <<_ACEOF
7867/* end confdefs.h. */ 11178/* end confdefs.h. */
7868 11179
7869int 11180int
@@ -7874,16 +11185,41 @@ int i;
7874 return 0; 11185 return 0;
7875} 11186}
7876_ACEOF 11187_ACEOF
7877if ac_fn_c_try_link "$LINENO"; then : 11188rm -f conftest.$ac_objext conftest$ac_exeext
7878 11189if { (ac_try="$ac_link"
11190case "(($ac_try" in
11191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11192 *) ac_try_echo=$ac_try;;
11193esac
11194eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11195$as_echo "$ac_try_echo") >&5
11196 (eval "$ac_link") 2>conftest.er1
11197 ac_status=$?
11198 grep -v '^ *+' conftest.er1 >conftest.err
11199 rm -f conftest.er1
11200 cat conftest.err >&5
11201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11202 (exit $ac_status); } && {
11203 test -z "$ac_c_werror_flag" ||
11204 test ! -s conftest.err
11205 } && test -s conftest$ac_exeext && {
11206 test "$cross_compiling" = yes ||
11207 $as_test_x conftest$ac_exeext
11208 }; then
11209 :
7879else 11210else
7880 gdb_cv_bigtoc= 11211 $as_echo "$as_me: failed program was:" >&5
11212sed 's/^/| /' conftest.$ac_ext >&5
11213
11214 gdb_cv_bigtoc=
7881fi 11215fi
7882rm -f core conftest.err conftest.$ac_objext \ 11216
7883 conftest$ac_exeext conftest.$ac_ext 11217rm -rf conftest.dSYM
11218rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11219 conftest$ac_exeext conftest.$ac_ext
7884 11220
7885fi 11221fi
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5 11222{ $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7887$as_echo "$gdb_cv_bigtoc" >&6; } 11223$as_echo "$gdb_cv_bigtoc" >&6; }
7888 ;; 11224 ;;
7889esac 11225esac
@@ -7911,9 +11247,13 @@ if test "${HAVE_X11}" = "yes"; then
7911 fi 11247 fi
7912 11248
7913 if test "${opsys}" = "gnu-linux"; then 11249 if test "${opsys}" = "gnu-linux"; then
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5 11250 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7915$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } 11251$as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11252 cat >conftest.$ac_ext <<_ACEOF
11253/* confdefs.h. */
11254_ACEOF
11255cat confdefs.h >>conftest.$ac_ext
11256cat >>conftest.$ac_ext <<_ACEOF
7917/* end confdefs.h. */ 11257/* end confdefs.h. */
7918 11258
7919int 11259int
@@ -7924,13 +11264,38 @@ XOpenDisplay ("foo");
7924 return 0; 11264 return 0;
7925} 11265}
7926_ACEOF 11266_ACEOF
7927if ac_fn_c_try_link "$LINENO"; then : 11267rm -f conftest.$ac_objext conftest$ac_exeext
11268if { (ac_try="$ac_link"
11269case "(($ac_try" in
11270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11271 *) ac_try_echo=$ac_try;;
11272esac
11273eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11274$as_echo "$ac_try_echo") >&5
11275 (eval "$ac_link") 2>conftest.er1
11276 ac_status=$?
11277 grep -v '^ *+' conftest.er1 >conftest.err
11278 rm -f conftest.er1
11279 cat conftest.err >&5
11280 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11281 (exit $ac_status); } && {
11282 test -z "$ac_c_werror_flag" ||
11283 test ! -s conftest.err
11284 } && test -s conftest$ac_exeext && {
11285 test "$cross_compiling" = yes ||
11286 $as_test_x conftest$ac_exeext
11287 }; then
7928 xlinux_first_failure=no 11288 xlinux_first_failure=no
7929else 11289else
7930 xlinux_first_failure=yes 11290 $as_echo "$as_me: failed program was:" >&5
11291sed 's/^/| /' conftest.$ac_ext >&5
11292
11293 xlinux_first_failure=yes
7931fi 11294fi
7932rm -f core conftest.err conftest.$ac_objext \ 11295
7933 conftest$ac_exeext conftest.$ac_ext 11296rm -rf conftest.dSYM
11297rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11298 conftest$ac_exeext conftest.$ac_ext
7934 if test "${xlinux_first_failure}" = "yes"; then 11299 if test "${xlinux_first_failure}" = "yes"; then
7935 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" 11300 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7936 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" 11301 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
@@ -7940,7 +11305,11 @@ rm -f core conftest.err conftest.$ac_objext \
7940 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 11305 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7941 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 11306 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7942 LIBS="$LIBS -b i486-linuxaout" 11307 LIBS="$LIBS -b i486-linuxaout"
7943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11308 cat >conftest.$ac_ext <<_ACEOF
11309/* confdefs.h. */
11310_ACEOF
11311cat confdefs.h >>conftest.$ac_ext
11312cat >>conftest.$ac_ext <<_ACEOF
7944/* end confdefs.h. */ 11313/* end confdefs.h. */
7945 11314
7946int 11315int
@@ -7951,13 +11320,38 @@ XOpenDisplay ("foo");
7951 return 0; 11320 return 0;
7952} 11321}
7953_ACEOF 11322_ACEOF
7954if ac_fn_c_try_link "$LINENO"; then : 11323rm -f conftest.$ac_objext conftest$ac_exeext
11324if { (ac_try="$ac_link"
11325case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11328esac
11329eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11330$as_echo "$ac_try_echo") >&5
11331 (eval "$ac_link") 2>conftest.er1
11332 ac_status=$?
11333 grep -v '^ *+' conftest.er1 >conftest.err
11334 rm -f conftest.er1
11335 cat conftest.err >&5
11336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337 (exit $ac_status); } && {
11338 test -z "$ac_c_werror_flag" ||
11339 test ! -s conftest.err
11340 } && test -s conftest$ac_exeext && {
11341 test "$cross_compiling" = yes ||
11342 $as_test_x conftest$ac_exeext
11343 }; then
7955 xlinux_second_failure=no 11344 xlinux_second_failure=no
7956else 11345else
7957 xlinux_second_failure=yes 11346 $as_echo "$as_me: failed program was:" >&5
11347sed 's/^/| /' conftest.$ac_ext >&5
11348
11349 xlinux_second_failure=yes
7958fi 11350fi
7959rm -f core conftest.err conftest.$ac_objext \ 11351
7960 conftest$ac_exeext conftest.$ac_ext 11352rm -rf conftest.dSYM
11353rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11354 conftest$ac_exeext conftest.$ac_ext
7961 if test "${xlinux_second_failure}" = "yes"; then 11355 if test "${xlinux_second_failure}" = "yes"; then
7962 # If we get the same failure with -b, there is no use adding -b. 11356 # If we get the same failure with -b, there is no use adding -b.
7963 # So take it out. This plays safe. 11357 # So take it out. This plays safe.
@@ -7965,23 +11359,27 @@ rm -f core conftest.err conftest.$ac_objext \
7965 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" 11359 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
7966 CPPFLAGS="$OLD_CPPFLAGS" 11360 CPPFLAGS="$OLD_CPPFLAGS"
7967 LIBS="$OLD_LIBS" 11361 LIBS="$OLD_LIBS"
7968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11362 { $as_echo "$as_me:$LINENO: result: no" >&5
7969$as_echo "no" >&6; } 11363$as_echo "no" >&6; }
7970 else 11364 else
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11365 { $as_echo "$as_me:$LINENO: result: yes" >&5
7972$as_echo "yes" >&6; } 11366$as_echo "yes" >&6; }
7973 fi 11367 fi
7974 else 11368 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11369 { $as_echo "$as_me:$LINENO: result: no" >&5
7976$as_echo "no" >&6; } 11370$as_echo "no" >&6; }
7977 fi 11371 fi
7978 fi 11372 fi
7979 11373
7980 # Reportedly, some broken Solaris systems have XKBlib.h but are missing 11374 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
7981 # header files included from there. 11375 # header files included from there.
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5 11376 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
7983$as_echo_n "checking for Xkb... " >&6; } 11377$as_echo_n "checking for Xkb... " >&6; }
7984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11378 cat >conftest.$ac_ext <<_ACEOF
11379/* confdefs.h. */
11380_ACEOF
11381cat confdefs.h >>conftest.$ac_ext
11382cat >>conftest.$ac_ext <<_ACEOF
7985/* end confdefs.h. */ 11383/* end confdefs.h. */
7986#include <X11/Xlib.h> 11384#include <X11/Xlib.h>
7987#include <X11/XKBlib.h> 11385#include <X11/XKBlib.h>
@@ -7993,28 +11391,145 @@ XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
7993 return 0; 11391 return 0;
7994} 11392}
7995_ACEOF 11393_ACEOF
7996if ac_fn_c_try_link "$LINENO"; then : 11394rm -f conftest.$ac_objext conftest$ac_exeext
11395if { (ac_try="$ac_link"
11396case "(($ac_try" in
11397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11398 *) ac_try_echo=$ac_try;;
11399esac
11400eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11401$as_echo "$ac_try_echo") >&5
11402 (eval "$ac_link") 2>conftest.er1
11403 ac_status=$?
11404 grep -v '^ *+' conftest.er1 >conftest.err
11405 rm -f conftest.er1
11406 cat conftest.err >&5
11407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11408 (exit $ac_status); } && {
11409 test -z "$ac_c_werror_flag" ||
11410 test ! -s conftest.err
11411 } && test -s conftest$ac_exeext && {
11412 test "$cross_compiling" = yes ||
11413 $as_test_x conftest$ac_exeext
11414 }; then
7997 emacs_xkb=yes 11415 emacs_xkb=yes
7998else 11416else
7999 emacs_xkb=no 11417 $as_echo "$as_me: failed program was:" >&5
11418sed 's/^/| /' conftest.$ac_ext >&5
11419
11420 emacs_xkb=no
8000fi 11421fi
8001rm -f core conftest.err conftest.$ac_objext \ 11422
8002 conftest$ac_exeext conftest.$ac_ext 11423rm -rf conftest.dSYM
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5 11424rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11425 conftest$ac_exeext conftest.$ac_ext
11426 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8004$as_echo "$emacs_xkb" >&6; } 11427$as_echo "$emacs_xkb" >&6; }
8005 if test $emacs_xkb = yes; then 11428 if test $emacs_xkb = yes; then
8006 11429
8007$as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h 11430cat >>confdefs.h <<\_ACEOF
11431#define HAVE_XKBGETKEYBOARD 1
11432_ACEOF
8008 11433
8009 fi 11434 fi
8010 11435
8011 for ac_func in XrmSetDatabase XScreenResourceString \ 11436
11437
11438
11439
11440for ac_func in XrmSetDatabase XScreenResourceString \
8012XScreenNumberOfScreen XSetWMProtocols 11441XScreenNumberOfScreen XSetWMProtocols
8013do : 11442do
8014 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11443as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8015ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11444{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8016eval as_val=\$$as_ac_var 11445$as_echo_n "checking for $ac_func... " >&6; }
8017 if test "x$as_val" = x""yes; then : 11446if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11447 $as_echo_n "(cached) " >&6
11448else
11449 cat >conftest.$ac_ext <<_ACEOF
11450/* confdefs.h. */
11451_ACEOF
11452cat confdefs.h >>conftest.$ac_ext
11453cat >>conftest.$ac_ext <<_ACEOF
11454/* end confdefs.h. */
11455/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11457#define $ac_func innocuous_$ac_func
11458
11459/* System header to define __stub macros and hopefully few prototypes,
11460 which can conflict with char $ac_func (); below.
11461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11462 <limits.h> exists even on freestanding compilers. */
11463
11464#ifdef __STDC__
11465# include <limits.h>
11466#else
11467# include <assert.h>
11468#endif
11469
11470#undef $ac_func
11471
11472/* Override any GCC internal prototype to avoid an error.
11473 Use char because int might match the return type of a GCC
11474 builtin and then its argument prototype would still apply. */
11475#ifdef __cplusplus
11476extern "C"
11477#endif
11478char $ac_func ();
11479/* The GNU C library defines this for functions which it implements
11480 to always fail with ENOSYS. Some functions are actually named
11481 something starting with __ and the normal name is an alias. */
11482#if defined __stub_$ac_func || defined __stub___$ac_func
11483choke me
11484#endif
11485
11486int
11487main ()
11488{
11489return $ac_func ();
11490 ;
11491 return 0;
11492}
11493_ACEOF
11494rm -f conftest.$ac_objext conftest$ac_exeext
11495if { (ac_try="$ac_link"
11496case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499esac
11500eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11501$as_echo "$ac_try_echo") >&5
11502 (eval "$ac_link") 2>conftest.er1
11503 ac_status=$?
11504 grep -v '^ *+' conftest.er1 >conftest.err
11505 rm -f conftest.er1
11506 cat conftest.err >&5
11507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } && {
11509 test -z "$ac_c_werror_flag" ||
11510 test ! -s conftest.err
11511 } && test -s conftest$ac_exeext && {
11512 test "$cross_compiling" = yes ||
11513 $as_test_x conftest$ac_exeext
11514 }; then
11515 eval "$as_ac_var=yes"
11516else
11517 $as_echo "$as_me: failed program was:" >&5
11518sed 's/^/| /' conftest.$ac_ext >&5
11519
11520 eval "$as_ac_var=no"
11521fi
11522
11523rm -rf conftest.dSYM
11524rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11525 conftest$ac_exeext conftest.$ac_ext
11526fi
11527ac_res=`eval 'as_val=${'$as_ac_var'}
11528 $as_echo "$as_val"'`
11529 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11530$as_echo "$ac_res" >&6; }
11531if test `eval 'as_val=${'$as_ac_var'}
11532 $as_echo "$as_val"'` = yes; then
8018 cat >>confdefs.h <<_ACEOF 11533 cat >>confdefs.h <<_ACEOF
8019#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11534#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8020_ACEOF 11535_ACEOF
@@ -8025,12 +11540,16 @@ done
8025fi 11540fi
8026 11541
8027if test "${window_system}" = "x11"; then 11542if test "${window_system}" = "x11"; then
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5 11543 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
8029$as_echo_n "checking X11 version 6... " >&6; } 11544$as_echo_n "checking X11 version 6... " >&6; }
8030 if test "${emacs_cv_x11_version_6+set}" = set; then : 11545 if test "${emacs_cv_x11_version_6+set}" = set; then
8031 $as_echo_n "(cached) " >&6 11546 $as_echo_n "(cached) " >&6
8032else 11547else
8033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11548 cat >conftest.$ac_ext <<_ACEOF
11549/* confdefs.h. */
11550_ACEOF
11551cat confdefs.h >>conftest.$ac_ext
11552cat >>conftest.$ac_ext <<_ACEOF
8034/* end confdefs.h. */ 11553/* end confdefs.h. */
8035#include <X11/Xlib.h> 11554#include <X11/Xlib.h>
8036int 11555int
@@ -8044,23 +11563,50 @@ fail;
8044 return 0; 11563 return 0;
8045} 11564}
8046_ACEOF 11565_ACEOF
8047if ac_fn_c_try_link "$LINENO"; then : 11566rm -f conftest.$ac_objext conftest$ac_exeext
11567if { (ac_try="$ac_link"
11568case "(($ac_try" in
11569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11570 *) ac_try_echo=$ac_try;;
11571esac
11572eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11573$as_echo "$ac_try_echo") >&5
11574 (eval "$ac_link") 2>conftest.er1
11575 ac_status=$?
11576 grep -v '^ *+' conftest.er1 >conftest.err
11577 rm -f conftest.er1
11578 cat conftest.err >&5
11579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11580 (exit $ac_status); } && {
11581 test -z "$ac_c_werror_flag" ||
11582 test ! -s conftest.err
11583 } && test -s conftest$ac_exeext && {
11584 test "$cross_compiling" = yes ||
11585 $as_test_x conftest$ac_exeext
11586 }; then
8048 emacs_cv_x11_version_6=yes 11587 emacs_cv_x11_version_6=yes
8049else 11588else
8050 emacs_cv_x11_version_6=no 11589 $as_echo "$as_me: failed program was:" >&5
11590sed 's/^/| /' conftest.$ac_ext >&5
11591
11592 emacs_cv_x11_version_6=no
8051fi 11593fi
8052rm -f core conftest.err conftest.$ac_objext \ 11594
8053 conftest$ac_exeext conftest.$ac_ext 11595rm -rf conftest.dSYM
11596rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11597 conftest$ac_exeext conftest.$ac_ext
8054fi 11598fi
8055 11599
8056 if test $emacs_cv_x11_version_6 = yes; then 11600 if test $emacs_cv_x11_version_6 = yes; then
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 11601 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
8058$as_echo "6 or newer" >&6; } 11602$as_echo "6 or newer" >&6; }
8059 11603
8060$as_echo "#define HAVE_X11R6 1" >>confdefs.h 11604cat >>confdefs.h <<\_ACEOF
11605#define HAVE_X11R6 1
11606_ACEOF
8061 11607
8062 else 11608 else
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 11609 { $as_echo "$as_me:$LINENO: result: before 6" >&5
8064$as_echo "before 6" >&6; } 11610$as_echo "before 6" >&6; }
8065 fi 11611 fi
8066fi 11612fi
@@ -8078,9 +11624,9 @@ if test "${HAVE_X11}" = "yes" || test "${NS_IMPL_GNUSTEP}" = "yes"; then
8078 11624
8079 # Extract the first word of "pkg-config", so it can be a program name with args. 11625 # Extract the first word of "pkg-config", so it can be a program name with args.
8080set dummy pkg-config; ac_word=$2 11626set dummy pkg-config; ac_word=$2
8081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11627{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8082$as_echo_n "checking for $ac_word... " >&6; } 11628$as_echo_n "checking for $ac_word... " >&6; }
8083if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11629if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8084 $as_echo_n "(cached) " >&6 11630 $as_echo_n "(cached) " >&6
8085else 11631else
8086 case $PKG_CONFIG in 11632 case $PKG_CONFIG in
@@ -8093,14 +11639,14 @@ for as_dir in $PATH
8093do 11639do
8094 IFS=$as_save_IFS 11640 IFS=$as_save_IFS
8095 test -z "$as_dir" && as_dir=. 11641 test -z "$as_dir" && as_dir=.
8096 for ac_exec_ext in '' $ac_executable_extensions; do 11642 for ac_exec_ext in '' $ac_executable_extensions; do
8097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11643 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8098 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11644 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11645 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8100 break 2 11646 break 2
8101 fi 11647 fi
8102done 11648done
8103 done 11649done
8104IFS=$as_save_IFS 11650IFS=$as_save_IFS
8105 11651
8106 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 11652 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8109,10 +11655,10 @@ esac
8109fi 11655fi
8110PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11656PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8111if test -n "$PKG_CONFIG"; then 11657if test -n "$PKG_CONFIG"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11658 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8113$as_echo "$PKG_CONFIG" >&6; } 11659$as_echo "$PKG_CONFIG" >&6; }
8114else 11660else
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11661 { $as_echo "$as_me:$LINENO: result: no" >&5
8116$as_echo "no" >&6; } 11662$as_echo "no" >&6; }
8117fi 11663fi
8118 11664
@@ -8123,27 +11669,27 @@ fi
8123 else 11669 else
8124 PKG_CONFIG_MIN_VERSION=0.9.0 11670 PKG_CONFIG_MIN_VERSION=0.9.0
8125 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 11671 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5 11672 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
8127$as_echo_n "checking for $RSVG_MODULE... " >&6; } 11673$as_echo_n "checking for $RSVG_MODULE... " >&6; }
8128 11674
8129 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then 11675 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11676 { $as_echo "$as_me:$LINENO: result: yes" >&5
8131$as_echo "yes" >&6; } 11677$as_echo "yes" >&6; }
8132 succeeded=yes 11678 succeeded=yes
8133 11679
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5 11680 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
8135$as_echo_n "checking RSVG_CFLAGS... " >&6; } 11681$as_echo_n "checking RSVG_CFLAGS... " >&6; }
8136 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` 11682 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5 11683 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
8138$as_echo "$RSVG_CFLAGS" >&6; } 11684$as_echo "$RSVG_CFLAGS" >&6; }
8139 11685
8140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5 11686 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
8141$as_echo_n "checking RSVG_LIBS... " >&6; } 11687$as_echo_n "checking RSVG_LIBS... " >&6; }
8142 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` 11688 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5 11689 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
8144$as_echo "$RSVG_LIBS" >&6; } 11690$as_echo "$RSVG_LIBS" >&6; }
8145 else 11691 else
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11692 { $as_echo "$as_me:$LINENO: result: no" >&5
8147$as_echo "no" >&6; } 11693$as_echo "no" >&6; }
8148 RSVG_CFLAGS="" 11694 RSVG_CFLAGS=""
8149 RSVG_LIBS="" 11695 RSVG_LIBS=""
@@ -8173,7 +11719,9 @@ $as_echo "no" >&6; }
8173 if test ".${RSVG_CFLAGS}" != "."; then 11719 if test ".${RSVG_CFLAGS}" != "."; then
8174 HAVE_RSVG=yes 11720 HAVE_RSVG=yes
8175 11721
8176$as_echo "#define HAVE_RSVG 1" >>confdefs.h 11722cat >>confdefs.h <<\_ACEOF
11723#define HAVE_RSVG 1
11724_ACEOF
8177 11725
8178 CFLAGS="$CFLAGS $RSVG_CFLAGS" 11726 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8179 LIBS="$RSVG_LIBS $LIBS" 11727 LIBS="$RSVG_LIBS $LIBS"
@@ -8193,9 +11741,9 @@ if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
8193 11741
8194 # Extract the first word of "pkg-config", so it can be a program name with args. 11742 # Extract the first word of "pkg-config", so it can be a program name with args.
8195set dummy pkg-config; ac_word=$2 11743set dummy pkg-config; ac_word=$2
8196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11744{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8197$as_echo_n "checking for $ac_word... " >&6; } 11745$as_echo_n "checking for $ac_word... " >&6; }
8198if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11746if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8199 $as_echo_n "(cached) " >&6 11747 $as_echo_n "(cached) " >&6
8200else 11748else
8201 case $PKG_CONFIG in 11749 case $PKG_CONFIG in
@@ -8208,14 +11756,14 @@ for as_dir in $PATH
8208do 11756do
8209 IFS=$as_save_IFS 11757 IFS=$as_save_IFS
8210 test -z "$as_dir" && as_dir=. 11758 test -z "$as_dir" && as_dir=.
8211 for ac_exec_ext in '' $ac_executable_extensions; do 11759 for ac_exec_ext in '' $ac_executable_extensions; do
8212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8213 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11761 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11762 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8215 break 2 11763 break 2
8216 fi 11764 fi
8217done 11765done
8218 done 11766done
8219IFS=$as_save_IFS 11767IFS=$as_save_IFS
8220 11768
8221 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 11769 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8224,10 +11772,10 @@ esac
8224fi 11772fi
8225PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11773PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8226if test -n "$PKG_CONFIG"; then 11774if test -n "$PKG_CONFIG"; then
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11775 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8228$as_echo "$PKG_CONFIG" >&6; } 11776$as_echo "$PKG_CONFIG" >&6; }
8229else 11777else
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11778 { $as_echo "$as_me:$LINENO: result: no" >&5
8231$as_echo "no" >&6; } 11779$as_echo "no" >&6; }
8232fi 11780fi
8233 11781
@@ -8238,27 +11786,27 @@ fi
8238 else 11786 else
8239 PKG_CONFIG_MIN_VERSION=0.9.0 11787 PKG_CONFIG_MIN_VERSION=0.9.0
8240 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 11788 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 11789 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8242$as_echo_n "checking for $GTK_MODULES... " >&6; } 11790$as_echo_n "checking for $GTK_MODULES... " >&6; }
8243 11791
8244 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then 11792 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11793 { $as_echo "$as_me:$LINENO: result: yes" >&5
8246$as_echo "yes" >&6; } 11794$as_echo "yes" >&6; }
8247 succeeded=yes 11795 succeeded=yes
8248 11796
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5 11797 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8250$as_echo_n "checking GTK_CFLAGS... " >&6; } 11798$as_echo_n "checking GTK_CFLAGS... " >&6; }
8251 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` 11799 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5 11800 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8253$as_echo "$GTK_CFLAGS" >&6; } 11801$as_echo "$GTK_CFLAGS" >&6; }
8254 11802
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5 11803 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8256$as_echo_n "checking GTK_LIBS... " >&6; } 11804$as_echo_n "checking GTK_LIBS... " >&6; }
8257 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` 11805 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5 11806 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8259$as_echo "$GTK_LIBS" >&6; } 11807$as_echo "$GTK_LIBS" >&6; }
8260 else 11808 else
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11809 { $as_echo "$as_me:$LINENO: result: no" >&5
8262$as_echo "no" >&6; } 11810$as_echo "no" >&6; }
8263 GTK_CFLAGS="" 11811 GTK_CFLAGS=""
8264 GTK_LIBS="" 11812 GTK_LIBS=""
@@ -8283,7 +11831,9 @@ $as_echo "no" >&6; }
8283 fi 11831 fi
8284 11832
8285 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then 11833 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8286 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 11834 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11835$as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11836 { (exit 1); exit 1; }; }
8287 fi 11837 fi
8288fi 11838fi
8289 11839
@@ -8297,12 +11847,101 @@ if test x"$pkg_check_gtk" = xyes; then
8297 CFLAGS="$CFLAGS $GTK_CFLAGS" 11847 CFLAGS="$CFLAGS $GTK_CFLAGS"
8298 LIBS="$GTK_LIBS $LIBS" 11848 LIBS="$GTK_LIBS $LIBS"
8299 GTK_COMPILES=no 11849 GTK_COMPILES=no
8300 for ac_func in gtk_main 11850
8301do : 11851for ac_func in gtk_main
8302 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main" 11852do
8303if test "x$ac_cv_func_gtk_main" = x""yes; then : 11853as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11854{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11855$as_echo_n "checking for $ac_func... " >&6; }
11856if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11857 $as_echo_n "(cached) " >&6
11858else
11859 cat >conftest.$ac_ext <<_ACEOF
11860/* confdefs.h. */
11861_ACEOF
11862cat confdefs.h >>conftest.$ac_ext
11863cat >>conftest.$ac_ext <<_ACEOF
11864/* end confdefs.h. */
11865/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11866 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11867#define $ac_func innocuous_$ac_func
11868
11869/* System header to define __stub macros and hopefully few prototypes,
11870 which can conflict with char $ac_func (); below.
11871 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11872 <limits.h> exists even on freestanding compilers. */
11873
11874#ifdef __STDC__
11875# include <limits.h>
11876#else
11877# include <assert.h>
11878#endif
11879
11880#undef $ac_func
11881
11882/* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11885#ifdef __cplusplus
11886extern "C"
11887#endif
11888char $ac_func ();
11889/* The GNU C library defines this for functions which it implements
11890 to always fail with ENOSYS. Some functions are actually named
11891 something starting with __ and the normal name is an alias. */
11892#if defined __stub_$ac_func || defined __stub___$ac_func
11893choke me
11894#endif
11895
11896int
11897main ()
11898{
11899return $ac_func ();
11900 ;
11901 return 0;
11902}
11903_ACEOF
11904rm -f conftest.$ac_objext conftest$ac_exeext
11905if { (ac_try="$ac_link"
11906case "(($ac_try" in
11907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11908 *) ac_try_echo=$ac_try;;
11909esac
11910eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11911$as_echo "$ac_try_echo") >&5
11912 (eval "$ac_link") 2>conftest.er1
11913 ac_status=$?
11914 grep -v '^ *+' conftest.er1 >conftest.err
11915 rm -f conftest.er1
11916 cat conftest.err >&5
11917 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11918 (exit $ac_status); } && {
11919 test -z "$ac_c_werror_flag" ||
11920 test ! -s conftest.err
11921 } && test -s conftest$ac_exeext && {
11922 test "$cross_compiling" = yes ||
11923 $as_test_x conftest$ac_exeext
11924 }; then
11925 eval "$as_ac_var=yes"
11926else
11927 $as_echo "$as_me: failed program was:" >&5
11928sed 's/^/| /' conftest.$ac_ext >&5
11929
11930 eval "$as_ac_var=no"
11931fi
11932
11933rm -rf conftest.dSYM
11934rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11935 conftest$ac_exeext conftest.$ac_ext
11936fi
11937ac_res=`eval 'as_val=${'$as_ac_var'}
11938 $as_echo "$as_val"'`
11939 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11940$as_echo "$ac_res" >&6; }
11941if test `eval 'as_val=${'$as_ac_var'}
11942 $as_echo "$as_val"'` = yes; then
8304 cat >>confdefs.h <<_ACEOF 11943 cat >>confdefs.h <<_ACEOF
8305#define HAVE_GTK_MAIN 1 11944#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8306_ACEOF 11945_ACEOF
8307 GTK_COMPILES=yes 11946 GTK_COMPILES=yes
8308fi 11947fi
@@ -8310,19 +11949,23 @@ done
8310 11949
8311 if test "${GTK_COMPILES}" != "yes"; then 11950 if test "${GTK_COMPILES}" != "yes"; then
8312 if test "$USE_X_TOOLKIT" != "maybe"; then 11951 if test "$USE_X_TOOLKIT" != "maybe"; then
8313 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; 11952 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11953$as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11954 { (exit 1); exit 1; }; };
8314 fi 11955 fi
8315 else 11956 else
8316 HAVE_GTK=yes 11957 HAVE_GTK=yes
8317 11958
8318$as_echo "#define USE_GTK 1" >>confdefs.h 11959cat >>confdefs.h <<\_ACEOF
11960#define USE_GTK 1
11961_ACEOF
8319 11962
8320 GTK_OBJ=gtkutil.o 11963 GTK_OBJ=gtkutil.o
8321 USE_X_TOOLKIT=none 11964 USE_X_TOOLKIT=none
8322 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then 11965 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8323 : 11966 :
8324 else 11967 else
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with 11968 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
8326 closing open displays. This is no problem if you just use 11969 closing open displays. This is no problem if you just use
8327 one display, but if you use more than one and close one of them 11970 one display, but if you use more than one and close one of them
8328 Emacs may crash." >&5 11971 Emacs may crash." >&5
@@ -8345,12 +11988,101 @@ if test "${HAVE_GTK}" = "yes"; then
8345 fi 11988 fi
8346 11989
8347 HAVE_GTK_MULTIDISPLAY=no 11990 HAVE_GTK_MULTIDISPLAY=no
8348 for ac_func in gdk_display_open 11991
8349do : 11992for ac_func in gdk_display_open
8350 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open" 11993do
8351if test "x$ac_cv_func_gdk_display_open" = x""yes; then : 11994as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11995{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11996$as_echo_n "checking for $ac_func... " >&6; }
11997if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11998 $as_echo_n "(cached) " >&6
11999else
12000 cat >conftest.$ac_ext <<_ACEOF
12001/* confdefs.h. */
12002_ACEOF
12003cat confdefs.h >>conftest.$ac_ext
12004cat >>conftest.$ac_ext <<_ACEOF
12005/* end confdefs.h. */
12006/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12008#define $ac_func innocuous_$ac_func
12009
12010/* System header to define __stub macros and hopefully few prototypes,
12011 which can conflict with char $ac_func (); below.
12012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12013 <limits.h> exists even on freestanding compilers. */
12014
12015#ifdef __STDC__
12016# include <limits.h>
12017#else
12018# include <assert.h>
12019#endif
12020
12021#undef $ac_func
12022
12023/* Override any GCC internal prototype to avoid an error.
12024 Use char because int might match the return type of a GCC
12025 builtin and then its argument prototype would still apply. */
12026#ifdef __cplusplus
12027extern "C"
12028#endif
12029char $ac_func ();
12030/* The GNU C library defines this for functions which it implements
12031 to always fail with ENOSYS. Some functions are actually named
12032 something starting with __ and the normal name is an alias. */
12033#if defined __stub_$ac_func || defined __stub___$ac_func
12034choke me
12035#endif
12036
12037int
12038main ()
12039{
12040return $ac_func ();
12041 ;
12042 return 0;
12043}
12044_ACEOF
12045rm -f conftest.$ac_objext conftest$ac_exeext
12046if { (ac_try="$ac_link"
12047case "(($ac_try" in
12048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12049 *) ac_try_echo=$ac_try;;
12050esac
12051eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12052$as_echo "$ac_try_echo") >&5
12053 (eval "$ac_link") 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } && {
12060 test -z "$ac_c_werror_flag" ||
12061 test ! -s conftest.err
12062 } && test -s conftest$ac_exeext && {
12063 test "$cross_compiling" = yes ||
12064 $as_test_x conftest$ac_exeext
12065 }; then
12066 eval "$as_ac_var=yes"
12067else
12068 $as_echo "$as_me: failed program was:" >&5
12069sed 's/^/| /' conftest.$ac_ext >&5
12070
12071 eval "$as_ac_var=no"
12072fi
12073
12074rm -rf conftest.dSYM
12075rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12076 conftest$ac_exeext conftest.$ac_ext
12077fi
12078ac_res=`eval 'as_val=${'$as_ac_var'}
12079 $as_echo "$as_val"'`
12080 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12081$as_echo "$ac_res" >&6; }
12082if test `eval 'as_val=${'$as_ac_var'}
12083 $as_echo "$as_val"'` = yes; then
8352 cat >>confdefs.h <<_ACEOF 12084 cat >>confdefs.h <<_ACEOF
8353#define HAVE_GDK_DISPLAY_OPEN 1 12085#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8354_ACEOF 12086_ACEOF
8355 HAVE_GTK_MULTIDISPLAY=yes 12087 HAVE_GTK_MULTIDISPLAY=yes
8356fi 12088fi
@@ -8358,27 +12090,170 @@ done
8358 12090
8359 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then 12091 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8360 12092
8361$as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h 12093cat >>confdefs.h <<\_ACEOF
12094#define HAVE_GTK_MULTIDISPLAY 1
12095_ACEOF
8362 12096
8363 fi 12097 fi
8364 12098
8365 HAVE_GTK_FILE_SELECTION=no 12099 HAVE_GTK_FILE_SELECTION=no
8366 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default 12100 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12101$as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12102if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12103 $as_echo_n "(cached) " >&6
12104else
12105 cat >conftest.$ac_ext <<_ACEOF
12106/* confdefs.h. */
12107_ACEOF
12108cat confdefs.h >>conftest.$ac_ext
12109cat >>conftest.$ac_ext <<_ACEOF
12110/* end confdefs.h. */
12111$ac_includes_default
8367#include <gtk/gtk.h> 12112#include <gtk/gtk.h>
8368" 12113
8369if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then : 12114int
12115main ()
12116{
12117#ifndef GTK_TYPE_FILE_SELECTION
12118 (void) GTK_TYPE_FILE_SELECTION;
12119#endif
12120
12121 ;
12122 return 0;
12123}
12124_ACEOF
12125rm -f conftest.$ac_objext
12126if { (ac_try="$ac_compile"
12127case "(($ac_try" in
12128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12130esac
12131eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12132$as_echo "$ac_try_echo") >&5
12133 (eval "$ac_compile") 2>conftest.er1
12134 ac_status=$?
12135 grep -v '^ *+' conftest.er1 >conftest.err
12136 rm -f conftest.er1
12137 cat conftest.err >&5
12138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12139 (exit $ac_status); } && {
12140 test -z "$ac_c_werror_flag" ||
12141 test ! -s conftest.err
12142 } && test -s conftest.$ac_objext; then
12143 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12144else
12145 $as_echo "$as_me: failed program was:" >&5
12146sed 's/^/| /' conftest.$ac_ext >&5
12147
12148 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12149fi
12150
12151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12152fi
12153{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12154$as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12155if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
8370 HAVE_GTK_FILE_SELECTION=yes 12156 HAVE_GTK_FILE_SELECTION=yes
8371else 12157else
8372 HAVE_GTK_FILE_SELECTION=no 12158 HAVE_GTK_FILE_SELECTION=no
8373fi 12159fi
8374 12160
8375 if test "$HAVE_GTK_FILE_SELECTION" = yes; then 12161 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8376 for ac_func in gtk_file_selection_new 12162
8377do : 12163for ac_func in gtk_file_selection_new
8378 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new" 12164do
8379if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then : 12165as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12166{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12167$as_echo_n "checking for $ac_func... " >&6; }
12168if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12169 $as_echo_n "(cached) " >&6
12170else
12171 cat >conftest.$ac_ext <<_ACEOF
12172/* confdefs.h. */
12173_ACEOF
12174cat confdefs.h >>conftest.$ac_ext
12175cat >>conftest.$ac_ext <<_ACEOF
12176/* end confdefs.h. */
12177/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12178 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12179#define $ac_func innocuous_$ac_func
12180
12181/* System header to define __stub macros and hopefully few prototypes,
12182 which can conflict with char $ac_func (); below.
12183 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12184 <limits.h> exists even on freestanding compilers. */
12185
12186#ifdef __STDC__
12187# include <limits.h>
12188#else
12189# include <assert.h>
12190#endif
12191
12192#undef $ac_func
12193
12194/* Override any GCC internal prototype to avoid an error.
12195 Use char because int might match the return type of a GCC
12196 builtin and then its argument prototype would still apply. */
12197#ifdef __cplusplus
12198extern "C"
12199#endif
12200char $ac_func ();
12201/* The GNU C library defines this for functions which it implements
12202 to always fail with ENOSYS. Some functions are actually named
12203 something starting with __ and the normal name is an alias. */
12204#if defined __stub_$ac_func || defined __stub___$ac_func
12205choke me
12206#endif
12207
12208int
12209main ()
12210{
12211return $ac_func ();
12212 ;
12213 return 0;
12214}
12215_ACEOF
12216rm -f conftest.$ac_objext conftest$ac_exeext
12217if { (ac_try="$ac_link"
12218case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221esac
12222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12223$as_echo "$ac_try_echo") >&5
12224 (eval "$ac_link") 2>conftest.er1
12225 ac_status=$?
12226 grep -v '^ *+' conftest.er1 >conftest.err
12227 rm -f conftest.er1
12228 cat conftest.err >&5
12229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12230 (exit $ac_status); } && {
12231 test -z "$ac_c_werror_flag" ||
12232 test ! -s conftest.err
12233 } && test -s conftest$ac_exeext && {
12234 test "$cross_compiling" = yes ||
12235 $as_test_x conftest$ac_exeext
12236 }; then
12237 eval "$as_ac_var=yes"
12238else
12239 $as_echo "$as_me: failed program was:" >&5
12240sed 's/^/| /' conftest.$ac_ext >&5
12241
12242 eval "$as_ac_var=no"
12243fi
12244
12245rm -rf conftest.dSYM
12246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12247 conftest$ac_exeext conftest.$ac_ext
12248fi
12249ac_res=`eval 'as_val=${'$as_ac_var'}
12250 $as_echo "$as_val"'`
12251 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12252$as_echo "$ac_res" >&6; }
12253if test `eval 'as_val=${'$as_ac_var'}
12254 $as_echo "$as_val"'` = yes; then
8380 cat >>confdefs.h <<_ACEOF 12255 cat >>confdefs.h <<_ACEOF
8381#define HAVE_GTK_FILE_SELECTION_NEW 1 12256#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8382_ACEOF 12257_ACEOF
8383 HAVE_GTK_FILE_SELECTION=yes 12258 HAVE_GTK_FILE_SELECTION=yes
8384else 12259else
@@ -8389,22 +12264,163 @@ done
8389 fi 12264 fi
8390 12265
8391 HAVE_GTK_FILE_CHOOSER=no 12266 HAVE_GTK_FILE_CHOOSER=no
8392 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default 12267 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12268$as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12269if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12270 $as_echo_n "(cached) " >&6
12271else
12272 cat >conftest.$ac_ext <<_ACEOF
12273/* confdefs.h. */
12274_ACEOF
12275cat confdefs.h >>conftest.$ac_ext
12276cat >>conftest.$ac_ext <<_ACEOF
12277/* end confdefs.h. */
12278$ac_includes_default
8393#include <gtk/gtk.h> 12279#include <gtk/gtk.h>
8394" 12280
8395if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then : 12281int
12282main ()
12283{
12284#ifndef GTK_TYPE_FILE_CHOOSER
12285 (void) GTK_TYPE_FILE_CHOOSER;
12286#endif
12287
12288 ;
12289 return 0;
12290}
12291_ACEOF
12292rm -f conftest.$ac_objext
12293if { (ac_try="$ac_compile"
12294case "(($ac_try" in
12295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12296 *) ac_try_echo=$ac_try;;
12297esac
12298eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12299$as_echo "$ac_try_echo") >&5
12300 (eval "$ac_compile") 2>conftest.er1
12301 ac_status=$?
12302 grep -v '^ *+' conftest.er1 >conftest.err
12303 rm -f conftest.er1
12304 cat conftest.err >&5
12305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } && {
12307 test -z "$ac_c_werror_flag" ||
12308 test ! -s conftest.err
12309 } && test -s conftest.$ac_objext; then
12310 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12311else
12312 $as_echo "$as_me: failed program was:" >&5
12313sed 's/^/| /' conftest.$ac_ext >&5
12314
12315 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12316fi
12317
12318rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319fi
12320{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12321$as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12322if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
8396 HAVE_GTK_FILE_CHOOSER=yes 12323 HAVE_GTK_FILE_CHOOSER=yes
8397else 12324else
8398 HAVE_GTK_FILE_CHOOSER=no 12325 HAVE_GTK_FILE_CHOOSER=no
8399fi 12326fi
8400 12327
8401 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12328 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8402 for ac_func in gtk_file_chooser_dialog_new 12329
8403do : 12330for ac_func in gtk_file_chooser_dialog_new
8404 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new" 12331do
8405if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then : 12332as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12333{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12334$as_echo_n "checking for $ac_func... " >&6; }
12335if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12336 $as_echo_n "(cached) " >&6
12337else
12338 cat >conftest.$ac_ext <<_ACEOF
12339/* confdefs.h. */
12340_ACEOF
12341cat confdefs.h >>conftest.$ac_ext
12342cat >>conftest.$ac_ext <<_ACEOF
12343/* end confdefs.h. */
12344/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12346#define $ac_func innocuous_$ac_func
12347
12348/* System header to define __stub macros and hopefully few prototypes,
12349 which can conflict with char $ac_func (); below.
12350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12351 <limits.h> exists even on freestanding compilers. */
12352
12353#ifdef __STDC__
12354# include <limits.h>
12355#else
12356# include <assert.h>
12357#endif
12358
12359#undef $ac_func
12360
12361/* Override any GCC internal prototype to avoid an error.
12362 Use char because int might match the return type of a GCC
12363 builtin and then its argument prototype would still apply. */
12364#ifdef __cplusplus
12365extern "C"
12366#endif
12367char $ac_func ();
12368/* The GNU C library defines this for functions which it implements
12369 to always fail with ENOSYS. Some functions are actually named
12370 something starting with __ and the normal name is an alias. */
12371#if defined __stub_$ac_func || defined __stub___$ac_func
12372choke me
12373#endif
12374
12375int
12376main ()
12377{
12378return $ac_func ();
12379 ;
12380 return 0;
12381}
12382_ACEOF
12383rm -f conftest.$ac_objext conftest$ac_exeext
12384if { (ac_try="$ac_link"
12385case "(($ac_try" in
12386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12387 *) ac_try_echo=$ac_try;;
12388esac
12389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12390$as_echo "$ac_try_echo") >&5
12391 (eval "$ac_link") 2>conftest.er1
12392 ac_status=$?
12393 grep -v '^ *+' conftest.er1 >conftest.err
12394 rm -f conftest.er1
12395 cat conftest.err >&5
12396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12397 (exit $ac_status); } && {
12398 test -z "$ac_c_werror_flag" ||
12399 test ! -s conftest.err
12400 } && test -s conftest$ac_exeext && {
12401 test "$cross_compiling" = yes ||
12402 $as_test_x conftest$ac_exeext
12403 }; then
12404 eval "$as_ac_var=yes"
12405else
12406 $as_echo "$as_me: failed program was:" >&5
12407sed 's/^/| /' conftest.$ac_ext >&5
12408
12409 eval "$as_ac_var=no"
12410fi
12411
12412rm -rf conftest.dSYM
12413rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12414 conftest$ac_exeext conftest.$ac_ext
12415fi
12416ac_res=`eval 'as_val=${'$as_ac_var'}
12417 $as_echo "$as_val"'`
12418 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12419$as_echo "$ac_res" >&6; }
12420if test `eval 'as_val=${'$as_ac_var'}
12421 $as_echo "$as_val"'` = yes; then
8406 cat >>confdefs.h <<_ACEOF 12422 cat >>confdefs.h <<_ACEOF
8407#define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1 12423#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8408_ACEOF 12424_ACEOF
8409 HAVE_GTK_FILE_CHOOSER=yes 12425 HAVE_GTK_FILE_CHOOSER=yes
8410else 12426else
@@ -8417,18 +12433,153 @@ done
8417 if test "$HAVE_GTK_FILE_SELECTION" = yes \ 12433 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8418 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12434 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8419 12435
8420$as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h 12436cat >>confdefs.h <<\_ACEOF
12437#define HAVE_GTK_FILE_BOTH 1
12438_ACEOF
8421 12439
8422 fi 12440 fi
8423 12441
8424 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12442 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8425 HAVE_GTK_AND_PTHREAD=no 12443 HAVE_GTK_AND_PTHREAD=no
8426 for ac_header in pthread.h 12444
8427do : 12445for ac_header in pthread.h
8428 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 12446do
8429if test "x$ac_cv_header_pthread_h" = x""yes; then : 12447as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12448if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12449 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12450$as_echo_n "checking for $ac_header... " >&6; }
12451if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12452 $as_echo_n "(cached) " >&6
12453fi
12454ac_res=`eval 'as_val=${'$as_ac_Header'}
12455 $as_echo "$as_val"'`
12456 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12457$as_echo "$ac_res" >&6; }
12458else
12459 # Is the header compilable?
12460{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12461$as_echo_n "checking $ac_header usability... " >&6; }
12462cat >conftest.$ac_ext <<_ACEOF
12463/* confdefs.h. */
12464_ACEOF
12465cat confdefs.h >>conftest.$ac_ext
12466cat >>conftest.$ac_ext <<_ACEOF
12467/* end confdefs.h. */
12468$ac_includes_default
12469#include <$ac_header>
12470_ACEOF
12471rm -f conftest.$ac_objext
12472if { (ac_try="$ac_compile"
12473case "(($ac_try" in
12474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12475 *) ac_try_echo=$ac_try;;
12476esac
12477eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12478$as_echo "$ac_try_echo") >&5
12479 (eval "$ac_compile") 2>conftest.er1
12480 ac_status=$?
12481 grep -v '^ *+' conftest.er1 >conftest.err
12482 rm -f conftest.er1
12483 cat conftest.err >&5
12484 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12485 (exit $ac_status); } && {
12486 test -z "$ac_c_werror_flag" ||
12487 test ! -s conftest.err
12488 } && test -s conftest.$ac_objext; then
12489 ac_header_compiler=yes
12490else
12491 $as_echo "$as_me: failed program was:" >&5
12492sed 's/^/| /' conftest.$ac_ext >&5
12493
12494 ac_header_compiler=no
12495fi
12496
12497rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12498{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12499$as_echo "$ac_header_compiler" >&6; }
12500
12501# Is the header present?
12502{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12503$as_echo_n "checking $ac_header presence... " >&6; }
12504cat >conftest.$ac_ext <<_ACEOF
12505/* confdefs.h. */
12506_ACEOF
12507cat confdefs.h >>conftest.$ac_ext
12508cat >>conftest.$ac_ext <<_ACEOF
12509/* end confdefs.h. */
12510#include <$ac_header>
12511_ACEOF
12512if { (ac_try="$ac_cpp conftest.$ac_ext"
12513case "(($ac_try" in
12514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12515 *) ac_try_echo=$ac_try;;
12516esac
12517eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12518$as_echo "$ac_try_echo") >&5
12519 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12520 ac_status=$?
12521 grep -v '^ *+' conftest.er1 >conftest.err
12522 rm -f conftest.er1
12523 cat conftest.err >&5
12524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12525 (exit $ac_status); } >/dev/null && {
12526 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12527 test ! -s conftest.err
12528 }; then
12529 ac_header_preproc=yes
12530else
12531 $as_echo "$as_me: failed program was:" >&5
12532sed 's/^/| /' conftest.$ac_ext >&5
12533
12534 ac_header_preproc=no
12535fi
12536
12537rm -f conftest.err conftest.$ac_ext
12538{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12539$as_echo "$ac_header_preproc" >&6; }
12540
12541# So? What about this header?
12542case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12543 yes:no: )
12544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12545$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12547$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12548 ac_header_preproc=yes
12549 ;;
12550 no:yes:* )
12551 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12552$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12554$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12556$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12558$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12560$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12562$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12563
12564 ;;
12565esac
12566{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12567$as_echo_n "checking for $ac_header... " >&6; }
12568if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12569 $as_echo_n "(cached) " >&6
12570else
12571 eval "$as_ac_Header=\$ac_header_preproc"
12572fi
12573ac_res=`eval 'as_val=${'$as_ac_Header'}
12574 $as_echo "$as_val"'`
12575 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12576$as_echo "$ac_res" >&6; }
12577
12578fi
12579if test `eval 'as_val=${'$as_ac_Header'}
12580 $as_echo "$as_val"'` = yes; then
8430 cat >>confdefs.h <<_ACEOF 12581 cat >>confdefs.h <<_ACEOF
8431#define HAVE_PTHREAD_H 1 12582#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8432_ACEOF 12583_ACEOF
8433 12584
8434fi 12585fi
@@ -8436,14 +12587,18 @@ fi
8436done 12587done
8437 12588
8438 if test "$ac_cv_header_pthread_h"; then 12589 if test "$ac_cv_header_pthread_h"; then
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 12590 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
8440$as_echo_n "checking for pthread_self in -lpthread... " >&6; } 12591$as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8441if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then : 12592if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
8442 $as_echo_n "(cached) " >&6 12593 $as_echo_n "(cached) " >&6
8443else 12594else
8444 ac_check_lib_save_LIBS=$LIBS 12595 ac_check_lib_save_LIBS=$LIBS
8445LIBS="-lpthread $LIBS" 12596LIBS="-lpthread $LIBS"
8446cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12597cat >conftest.$ac_ext <<_ACEOF
12598/* confdefs.h. */
12599_ACEOF
12600cat confdefs.h >>conftest.$ac_ext
12601cat >>conftest.$ac_ext <<_ACEOF
8447/* end confdefs.h. */ 12602/* end confdefs.h. */
8448 12603
8449/* Override any GCC internal prototype to avoid an error. 12604/* Override any GCC internal prototype to avoid an error.
@@ -8461,18 +12616,43 @@ return pthread_self ();
8461 return 0; 12616 return 0;
8462} 12617}
8463_ACEOF 12618_ACEOF
8464if ac_fn_c_try_link "$LINENO"; then : 12619rm -f conftest.$ac_objext conftest$ac_exeext
12620if { (ac_try="$ac_link"
12621case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12624esac
12625eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12626$as_echo "$ac_try_echo") >&5
12627 (eval "$ac_link") 2>conftest.er1
12628 ac_status=$?
12629 grep -v '^ *+' conftest.er1 >conftest.err
12630 rm -f conftest.er1
12631 cat conftest.err >&5
12632 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633 (exit $ac_status); } && {
12634 test -z "$ac_c_werror_flag" ||
12635 test ! -s conftest.err
12636 } && test -s conftest$ac_exeext && {
12637 test "$cross_compiling" = yes ||
12638 $as_test_x conftest$ac_exeext
12639 }; then
8465 ac_cv_lib_pthread_pthread_self=yes 12640 ac_cv_lib_pthread_pthread_self=yes
8466else 12641else
8467 ac_cv_lib_pthread_pthread_self=no 12642 $as_echo "$as_me: failed program was:" >&5
12643sed 's/^/| /' conftest.$ac_ext >&5
12644
12645 ac_cv_lib_pthread_pthread_self=no
8468fi 12646fi
8469rm -f core conftest.err conftest.$ac_objext \ 12647
8470 conftest$ac_exeext conftest.$ac_ext 12648rm -rf conftest.dSYM
12649rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12650 conftest$ac_exeext conftest.$ac_ext
8471LIBS=$ac_check_lib_save_LIBS 12651LIBS=$ac_check_lib_save_LIBS
8472fi 12652fi
8473{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 12653{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
8474$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } 12654$as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8475if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then : 12655if test $ac_cv_lib_pthread_pthread_self = yes; then
8476 HAVE_GTK_AND_PTHREAD=yes 12656 HAVE_GTK_AND_PTHREAD=yes
8477fi 12657fi
8478 12658
@@ -8483,7 +12663,9 @@ fi
8483 *) GTK_LIBS="$GTK_LIBS -lpthread" ;; 12663 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8484 esac 12664 esac
8485 12665
8486$as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h 12666cat >>confdefs.h <<\_ACEOF
12667#define HAVE_GTK_AND_PTHREAD 1
12668_ACEOF
8487 12669
8488 fi 12670 fi
8489 fi 12671 fi
@@ -8497,9 +12679,9 @@ if test "${with_dbus}" = "yes"; then
8497 12679
8498 # Extract the first word of "pkg-config", so it can be a program name with args. 12680 # Extract the first word of "pkg-config", so it can be a program name with args.
8499set dummy pkg-config; ac_word=$2 12681set dummy pkg-config; ac_word=$2
8500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12682{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8501$as_echo_n "checking for $ac_word... " >&6; } 12683$as_echo_n "checking for $ac_word... " >&6; }
8502if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12684if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8503 $as_echo_n "(cached) " >&6 12685 $as_echo_n "(cached) " >&6
8504else 12686else
8505 case $PKG_CONFIG in 12687 case $PKG_CONFIG in
@@ -8512,14 +12694,14 @@ for as_dir in $PATH
8512do 12694do
8513 IFS=$as_save_IFS 12695 IFS=$as_save_IFS
8514 test -z "$as_dir" && as_dir=. 12696 test -z "$as_dir" && as_dir=.
8515 for ac_exec_ext in '' $ac_executable_extensions; do 12697 for ac_exec_ext in '' $ac_executable_extensions; do
8516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8517 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12699 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12700 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8519 break 2 12701 break 2
8520 fi 12702 fi
8521done 12703done
8522 done 12704done
8523IFS=$as_save_IFS 12705IFS=$as_save_IFS
8524 12706
8525 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 12707 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8528,10 +12710,10 @@ esac
8528fi 12710fi
8529PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12711PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8530if test -n "$PKG_CONFIG"; then 12712if test -n "$PKG_CONFIG"; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12713 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8532$as_echo "$PKG_CONFIG" >&6; } 12714$as_echo "$PKG_CONFIG" >&6; }
8533else 12715else
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12716 { $as_echo "$as_me:$LINENO: result: no" >&5
8535$as_echo "no" >&6; } 12717$as_echo "no" >&6; }
8536fi 12718fi
8537 12719
@@ -8542,27 +12724,27 @@ fi
8542 else 12724 else
8543 PKG_CONFIG_MIN_VERSION=0.9.0 12725 PKG_CONFIG_MIN_VERSION=0.9.0
8544 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 12726 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5 12727 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
8546$as_echo_n "checking for dbus-1 >= 1.0... " >&6; } 12728$as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8547 12729
8548 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then 12730 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12731 { $as_echo "$as_me:$LINENO: result: yes" >&5
8550$as_echo "yes" >&6; } 12732$as_echo "yes" >&6; }
8551 succeeded=yes 12733 succeeded=yes
8552 12734
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5 12735 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
8554$as_echo_n "checking DBUS_CFLAGS... " >&6; } 12736$as_echo_n "checking DBUS_CFLAGS... " >&6; }
8555 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 12737 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5 12738 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
8557$as_echo "$DBUS_CFLAGS" >&6; } 12739$as_echo "$DBUS_CFLAGS" >&6; }
8558 12740
8559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5 12741 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
8560$as_echo_n "checking DBUS_LIBS... " >&6; } 12742$as_echo_n "checking DBUS_LIBS... " >&6; }
8561 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 12743 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5 12744 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
8563$as_echo "$DBUS_LIBS" >&6; } 12745$as_echo "$DBUS_LIBS" >&6; }
8564 else 12746 else
8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12747 { $as_echo "$as_me:$LINENO: result: no" >&5
8566$as_echo "no" >&6; } 12748$as_echo "no" >&6; }
8567 DBUS_CFLAGS="" 12749 DBUS_CFLAGS=""
8568 DBUS_LIBS="" 12750 DBUS_LIBS=""
@@ -8589,14 +12771,105 @@ $as_echo "no" >&6; }
8589 if test "$HAVE_DBUS" = yes; then 12771 if test "$HAVE_DBUS" = yes; then
8590 LIBS="$LIBS $DBUS_LIBS" 12772 LIBS="$LIBS $DBUS_LIBS"
8591 12773
8592$as_echo "#define HAVE_DBUS 1" >>confdefs.h 12774cat >>confdefs.h <<\_ACEOF
12775#define HAVE_DBUS 1
12776_ACEOF
12777
12778
12779for ac_func in dbus_watch_get_unix_fd
12780do
12781as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12782{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12783$as_echo_n "checking for $ac_func... " >&6; }
12784if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12785 $as_echo_n "(cached) " >&6
12786else
12787 cat >conftest.$ac_ext <<_ACEOF
12788/* confdefs.h. */
12789_ACEOF
12790cat confdefs.h >>conftest.$ac_ext
12791cat >>conftest.$ac_ext <<_ACEOF
12792/* end confdefs.h. */
12793/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12795#define $ac_func innocuous_$ac_func
12796
12797/* System header to define __stub macros and hopefully few prototypes,
12798 which can conflict with char $ac_func (); below.
12799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12800 <limits.h> exists even on freestanding compilers. */
12801
12802#ifdef __STDC__
12803# include <limits.h>
12804#else
12805# include <assert.h>
12806#endif
8593 12807
8594 for ac_func in dbus_watch_get_unix_fd 12808#undef $ac_func
8595do : 12809
8596 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd" 12810/* Override any GCC internal prototype to avoid an error.
8597if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then : 12811 Use char because int might match the return type of a GCC
12812 builtin and then its argument prototype would still apply. */
12813#ifdef __cplusplus
12814extern "C"
12815#endif
12816char $ac_func ();
12817/* The GNU C library defines this for functions which it implements
12818 to always fail with ENOSYS. Some functions are actually named
12819 something starting with __ and the normal name is an alias. */
12820#if defined __stub_$ac_func || defined __stub___$ac_func
12821choke me
12822#endif
12823
12824int
12825main ()
12826{
12827return $ac_func ();
12828 ;
12829 return 0;
12830}
12831_ACEOF
12832rm -f conftest.$ac_objext conftest$ac_exeext
12833if { (ac_try="$ac_link"
12834case "(($ac_try" in
12835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836 *) ac_try_echo=$ac_try;;
12837esac
12838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12839$as_echo "$ac_try_echo") >&5
12840 (eval "$ac_link") 2>conftest.er1
12841 ac_status=$?
12842 grep -v '^ *+' conftest.er1 >conftest.err
12843 rm -f conftest.er1
12844 cat conftest.err >&5
12845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12846 (exit $ac_status); } && {
12847 test -z "$ac_c_werror_flag" ||
12848 test ! -s conftest.err
12849 } && test -s conftest$ac_exeext && {
12850 test "$cross_compiling" = yes ||
12851 $as_test_x conftest$ac_exeext
12852 }; then
12853 eval "$as_ac_var=yes"
12854else
12855 $as_echo "$as_me: failed program was:" >&5
12856sed 's/^/| /' conftest.$ac_ext >&5
12857
12858 eval "$as_ac_var=no"
12859fi
12860
12861rm -rf conftest.dSYM
12862rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12863 conftest$ac_exeext conftest.$ac_ext
12864fi
12865ac_res=`eval 'as_val=${'$as_ac_var'}
12866 $as_echo "$as_val"'`
12867 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12868$as_echo "$ac_res" >&6; }
12869if test `eval 'as_val=${'$as_ac_var'}
12870 $as_echo "$as_val"'` = yes; then
8598 cat >>confdefs.h <<_ACEOF 12871 cat >>confdefs.h <<_ACEOF
8599#define HAVE_DBUS_WATCH_GET_UNIX_FD 1 12872#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8600_ACEOF 12873_ACEOF
8601 12874
8602fi 12875fi
@@ -8614,9 +12887,9 @@ if test "${HAVE_X11}" = "yes" && test "${with_gconf}" = "yes"; then
8614 12887
8615 # Extract the first word of "pkg-config", so it can be a program name with args. 12888 # Extract the first word of "pkg-config", so it can be a program name with args.
8616set dummy pkg-config; ac_word=$2 12889set dummy pkg-config; ac_word=$2
8617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12890{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8618$as_echo_n "checking for $ac_word... " >&6; } 12891$as_echo_n "checking for $ac_word... " >&6; }
8619if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12892if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8620 $as_echo_n "(cached) " >&6 12893 $as_echo_n "(cached) " >&6
8621else 12894else
8622 case $PKG_CONFIG in 12895 case $PKG_CONFIG in
@@ -8629,14 +12902,14 @@ for as_dir in $PATH
8629do 12902do
8630 IFS=$as_save_IFS 12903 IFS=$as_save_IFS
8631 test -z "$as_dir" && as_dir=. 12904 test -z "$as_dir" && as_dir=.
8632 for ac_exec_ext in '' $ac_executable_extensions; do 12905 for ac_exec_ext in '' $ac_executable_extensions; do
8633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12906 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8634 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12907 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12908 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8636 break 2 12909 break 2
8637 fi 12910 fi
8638done 12911done
8639 done 12912done
8640IFS=$as_save_IFS 12913IFS=$as_save_IFS
8641 12914
8642 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 12915 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -8645,10 +12918,10 @@ esac
8645fi 12918fi
8646PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12919PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8647if test -n "$PKG_CONFIG"; then 12920if test -n "$PKG_CONFIG"; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12921 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8649$as_echo "$PKG_CONFIG" >&6; } 12922$as_echo "$PKG_CONFIG" >&6; }
8650else 12923else
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12924 { $as_echo "$as_me:$LINENO: result: no" >&5
8652$as_echo "no" >&6; } 12925$as_echo "no" >&6; }
8653fi 12926fi
8654 12927
@@ -8659,27 +12932,27 @@ fi
8659 else 12932 else
8660 PKG_CONFIG_MIN_VERSION=0.9.0 12933 PKG_CONFIG_MIN_VERSION=0.9.0
8661 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 12934 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5 12935 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
8663$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } 12936$as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8664 12937
8665 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then 12938 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12939 { $as_echo "$as_me:$LINENO: result: yes" >&5
8667$as_echo "yes" >&6; } 12940$as_echo "yes" >&6; }
8668 succeeded=yes 12941 succeeded=yes
8669 12942
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5 12943 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
8671$as_echo_n "checking GCONF_CFLAGS... " >&6; } 12944$as_echo_n "checking GCONF_CFLAGS... " >&6; }
8672 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 12945 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5 12946 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
8674$as_echo "$GCONF_CFLAGS" >&6; } 12947$as_echo "$GCONF_CFLAGS" >&6; }
8675 12948
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5 12949 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
8677$as_echo_n "checking GCONF_LIBS... " >&6; } 12950$as_echo_n "checking GCONF_LIBS... " >&6; }
8678 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 12951 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5 12952 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
8680$as_echo "$GCONF_LIBS" >&6; } 12953$as_echo "$GCONF_LIBS" >&6; }
8681 else 12954 else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12955 { $as_echo "$as_me:$LINENO: result: no" >&5
8683$as_echo "no" >&6; } 12956$as_echo "no" >&6; }
8684 GCONF_CFLAGS="" 12957 GCONF_CFLAGS=""
8685 GCONF_LIBS="" 12958 GCONF_LIBS=""
@@ -8705,7 +12978,9 @@ $as_echo "no" >&6; }
8705 12978
8706 if test "$HAVE_GCONF" = yes; then 12979 if test "$HAVE_GCONF" = yes; then
8707 12980
8708$as_echo "#define HAVE_GCONF 1" >>confdefs.h 12981cat >>confdefs.h <<\_ACEOF
12982#define HAVE_GCONF 1
12983_ACEOF
8709 12984
8710 fi 12985 fi
8711fi 12986fi
@@ -8713,14 +12988,18 @@ fi
8713HAVE_LIBSELINUX=no 12988HAVE_LIBSELINUX=no
8714LIBSELINUX_LIBS= 12989LIBSELINUX_LIBS=
8715if test "${with_selinux}" = "yes"; then 12990if test "${with_selinux}" = "yes"; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5 12991 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
8717$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } 12992$as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8718if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then : 12993if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
8719 $as_echo_n "(cached) " >&6 12994 $as_echo_n "(cached) " >&6
8720else 12995else
8721 ac_check_lib_save_LIBS=$LIBS 12996 ac_check_lib_save_LIBS=$LIBS
8722LIBS="-lselinux $LIBS" 12997LIBS="-lselinux $LIBS"
8723cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12998cat >conftest.$ac_ext <<_ACEOF
12999/* confdefs.h. */
13000_ACEOF
13001cat confdefs.h >>conftest.$ac_ext
13002cat >>conftest.$ac_ext <<_ACEOF
8724/* end confdefs.h. */ 13003/* end confdefs.h. */
8725 13004
8726/* Override any GCC internal prototype to avoid an error. 13005/* Override any GCC internal prototype to avoid an error.
@@ -8738,18 +13017,43 @@ return lgetfilecon ();
8738 return 0; 13017 return 0;
8739} 13018}
8740_ACEOF 13019_ACEOF
8741if ac_fn_c_try_link "$LINENO"; then : 13020rm -f conftest.$ac_objext conftest$ac_exeext
13021if { (ac_try="$ac_link"
13022case "(($ac_try" in
13023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13024 *) ac_try_echo=$ac_try;;
13025esac
13026eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13027$as_echo "$ac_try_echo") >&5
13028 (eval "$ac_link") 2>conftest.er1
13029 ac_status=$?
13030 grep -v '^ *+' conftest.er1 >conftest.err
13031 rm -f conftest.er1
13032 cat conftest.err >&5
13033 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13034 (exit $ac_status); } && {
13035 test -z "$ac_c_werror_flag" ||
13036 test ! -s conftest.err
13037 } && test -s conftest$ac_exeext && {
13038 test "$cross_compiling" = yes ||
13039 $as_test_x conftest$ac_exeext
13040 }; then
8742 ac_cv_lib_selinux_lgetfilecon=yes 13041 ac_cv_lib_selinux_lgetfilecon=yes
8743else 13042else
8744 ac_cv_lib_selinux_lgetfilecon=no 13043 $as_echo "$as_me: failed program was:" >&5
13044sed 's/^/| /' conftest.$ac_ext >&5
13045
13046 ac_cv_lib_selinux_lgetfilecon=no
8745fi 13047fi
8746rm -f core conftest.err conftest.$ac_objext \ 13048
8747 conftest$ac_exeext conftest.$ac_ext 13049rm -rf conftest.dSYM
13050rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13051 conftest$ac_exeext conftest.$ac_ext
8748LIBS=$ac_check_lib_save_LIBS 13052LIBS=$ac_check_lib_save_LIBS
8749fi 13053fi
8750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5 13054{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8751$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } 13055$as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8752if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then : 13056if test $ac_cv_lib_selinux_lgetfilecon = yes; then
8753 HAVE_LIBSELINUX=yes 13057 HAVE_LIBSELINUX=yes
8754else 13058else
8755 HAVE_LIBSELINUX=no 13059 HAVE_LIBSELINUX=no
@@ -8757,7 +13061,9 @@ fi
8757 13061
8758 if test "$HAVE_LIBSELINUX" = yes; then 13062 if test "$HAVE_LIBSELINUX" = yes; then
8759 13063
8760$as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h 13064cat >>confdefs.h <<\_ACEOF
13065#define HAVE_LIBSELINUX 1
13066_ACEOF
8761 13067
8762 LIBSELINUX_LIBS=-lselinux 13068 LIBSELINUX_LIBS=-lselinux
8763 fi 13069 fi
@@ -8768,12 +13074,16 @@ HAVE_XAW3D=no
8768LUCID_LIBW= 13074LUCID_LIBW=
8769if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then 13075if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8770 if test "$with_xaw3d" != no; then 13076 if test "$with_xaw3d" != no; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5 13077 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
8772$as_echo_n "checking for xaw3d... " >&6; } 13078$as_echo_n "checking for xaw3d... " >&6; }
8773 if test "${emacs_cv_xaw3d+set}" = set; then : 13079 if test "${emacs_cv_xaw3d+set}" = set; then
8774 $as_echo_n "(cached) " >&6 13080 $as_echo_n "(cached) " >&6
8775else 13081else
8776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13082 cat >conftest.$ac_ext <<_ACEOF
13083/* confdefs.h. */
13084_ACEOF
13085cat confdefs.h >>conftest.$ac_ext
13086cat >>conftest.$ac_ext <<_ACEOF
8777/* end confdefs.h. */ 13087/* end confdefs.h. */
8778 13088
8779#include <X11/Intrinsic.h> 13089#include <X11/Intrinsic.h>
@@ -8786,36 +13096,67 @@ main ()
8786 return 0; 13096 return 0;
8787} 13097}
8788_ACEOF 13098_ACEOF
8789if ac_fn_c_try_link "$LINENO"; then : 13099rm -f conftest.$ac_objext conftest$ac_exeext
13100if { (ac_try="$ac_link"
13101case "(($ac_try" in
13102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13103 *) ac_try_echo=$ac_try;;
13104esac
13105eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13106$as_echo "$ac_try_echo") >&5
13107 (eval "$ac_link") 2>conftest.er1
13108 ac_status=$?
13109 grep -v '^ *+' conftest.er1 >conftest.err
13110 rm -f conftest.er1
13111 cat conftest.err >&5
13112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13113 (exit $ac_status); } && {
13114 test -z "$ac_c_werror_flag" ||
13115 test ! -s conftest.err
13116 } && test -s conftest$ac_exeext && {
13117 test "$cross_compiling" = yes ||
13118 $as_test_x conftest$ac_exeext
13119 }; then
8790 emacs_cv_xaw3d=yes 13120 emacs_cv_xaw3d=yes
8791else 13121else
8792 emacs_cv_xaw3d=no 13122 $as_echo "$as_me: failed program was:" >&5
13123sed 's/^/| /' conftest.$ac_ext >&5
13124
13125 emacs_cv_xaw3d=no
8793fi 13126fi
8794rm -f core conftest.err conftest.$ac_objext \ 13127
8795 conftest$ac_exeext conftest.$ac_ext 13128rm -rf conftest.dSYM
13129rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13130 conftest$ac_exeext conftest.$ac_ext
8796fi 13131fi
8797 13132
8798 else 13133 else
8799 emacs_cv_xaw3d=no 13134 emacs_cv_xaw3d=no
8800 fi 13135 fi
8801 if test $emacs_cv_xaw3d = yes; then 13136 if test $emacs_cv_xaw3d = yes; then
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 13137 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
8803$as_echo "yes; using Lucid toolkit" >&6; } 13138$as_echo "yes; using Lucid toolkit" >&6; }
8804 USE_X_TOOLKIT=LUCID 13139 USE_X_TOOLKIT=LUCID
8805 HAVE_XAW3D=yes 13140 HAVE_XAW3D=yes
8806 LUCID_LIBW=-lXaw3d 13141 LUCID_LIBW=-lXaw3d
8807 13142
8808$as_echo "#define HAVE_XAW3D 1" >>confdefs.h 13143cat >>confdefs.h <<\_ACEOF
13144#define HAVE_XAW3D 1
13145_ACEOF
8809 13146
8810 else 13147 else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13148 { $as_echo "$as_me:$LINENO: result: no" >&5
8812$as_echo "no" >&6; } 13149$as_echo "no" >&6; }
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5 13150 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
8814$as_echo_n "checking for libXaw... " >&6; } 13151$as_echo_n "checking for libXaw... " >&6; }
8815 if test "${emacs_cv_xaw+set}" = set; then : 13152 if test "${emacs_cv_xaw+set}" = set; then
8816 $as_echo_n "(cached) " >&6 13153 $as_echo_n "(cached) " >&6
8817else 13154else
8818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13155 cat >conftest.$ac_ext <<_ACEOF
13156/* confdefs.h. */
13157_ACEOF
13158cat confdefs.h >>conftest.$ac_ext
13159cat >>conftest.$ac_ext <<_ACEOF
8819/* end confdefs.h. */ 13160/* end confdefs.h. */
8820 13161
8821#include <X11/Intrinsic.h> 13162#include <X11/Intrinsic.h>
@@ -8828,24 +13169,51 @@ main ()
8828 return 0; 13169 return 0;
8829} 13170}
8830_ACEOF 13171_ACEOF
8831if ac_fn_c_try_link "$LINENO"; then : 13172rm -f conftest.$ac_objext conftest$ac_exeext
13173if { (ac_try="$ac_link"
13174case "(($ac_try" in
13175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13176 *) ac_try_echo=$ac_try;;
13177esac
13178eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13179$as_echo "$ac_try_echo") >&5
13180 (eval "$ac_link") 2>conftest.er1
13181 ac_status=$?
13182 grep -v '^ *+' conftest.er1 >conftest.err
13183 rm -f conftest.er1
13184 cat conftest.err >&5
13185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13186 (exit $ac_status); } && {
13187 test -z "$ac_c_werror_flag" ||
13188 test ! -s conftest.err
13189 } && test -s conftest$ac_exeext && {
13190 test "$cross_compiling" = yes ||
13191 $as_test_x conftest$ac_exeext
13192 }; then
8832 emacs_cv_xaw=yes 13193 emacs_cv_xaw=yes
8833else 13194else
8834 emacs_cv_xaw=no 13195 $as_echo "$as_me: failed program was:" >&5
13196sed 's/^/| /' conftest.$ac_ext >&5
13197
13198 emacs_cv_xaw=no
8835fi 13199fi
8836rm -f core conftest.err conftest.$ac_objext \ 13200
8837 conftest$ac_exeext conftest.$ac_ext 13201rm -rf conftest.dSYM
13202rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13203 conftest$ac_exeext conftest.$ac_ext
8838fi 13204fi
8839 13205
8840 if test $emacs_cv_xaw = yes; then 13206 if test $emacs_cv_xaw = yes; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 13207 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
8842$as_echo "yes; using Lucid toolkit" >&6; } 13208$as_echo "yes; using Lucid toolkit" >&6; }
8843 USE_X_TOOLKIT=LUCID 13209 USE_X_TOOLKIT=LUCID
8844 LUCID_LIBW=-lXaw 13210 LUCID_LIBW=-lXaw
8845 elif test x"${USE_X_TOOLKIT}" = xLUCID; then 13211 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8846 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 13212 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13213$as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13214 { (exit 1); exit 1; }; }
8847 else 13215 else
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 13216 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
8849$as_echo "no; do not use toolkit by default" >&6; } 13217$as_echo "no; do not use toolkit by default" >&6; }
8850 USE_X_TOOLKIT=none 13218 USE_X_TOOLKIT=none
8851 fi 13219 fi
@@ -8856,12 +13224,16 @@ X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8856 13224
8857LIBXTR6= 13225LIBXTR6=
8858if test "${USE_X_TOOLKIT}" != "none"; then 13226if test "${USE_X_TOOLKIT}" != "none"; then
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5 13227 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8860$as_echo_n "checking X11 toolkit version... " >&6; } 13228$as_echo_n "checking X11 toolkit version... " >&6; }
8861 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then : 13229 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8862 $as_echo_n "(cached) " >&6 13230 $as_echo_n "(cached) " >&6
8863else 13231else
8864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13232 cat >conftest.$ac_ext <<_ACEOF
13233/* confdefs.h. */
13234_ACEOF
13235cat confdefs.h >>conftest.$ac_ext
13236cat >>conftest.$ac_ext <<_ACEOF
8865/* end confdefs.h. */ 13237/* end confdefs.h. */
8866#include <X11/Intrinsic.h> 13238#include <X11/Intrinsic.h>
8867int 13239int
@@ -8875,21 +13247,48 @@ fail;
8875 return 0; 13247 return 0;
8876} 13248}
8877_ACEOF 13249_ACEOF
8878if ac_fn_c_try_link "$LINENO"; then : 13250rm -f conftest.$ac_objext conftest$ac_exeext
13251if { (ac_try="$ac_link"
13252case "(($ac_try" in
13253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13254 *) ac_try_echo=$ac_try;;
13255esac
13256eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13257$as_echo "$ac_try_echo") >&5
13258 (eval "$ac_link") 2>conftest.er1
13259 ac_status=$?
13260 grep -v '^ *+' conftest.er1 >conftest.err
13261 rm -f conftest.er1
13262 cat conftest.err >&5
13263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } && {
13265 test -z "$ac_c_werror_flag" ||
13266 test ! -s conftest.err
13267 } && test -s conftest$ac_exeext && {
13268 test "$cross_compiling" = yes ||
13269 $as_test_x conftest$ac_exeext
13270 }; then
8879 emacs_cv_x11_toolkit_version_6=yes 13271 emacs_cv_x11_toolkit_version_6=yes
8880else 13272else
8881 emacs_cv_x11_toolkit_version_6=no 13273 $as_echo "$as_me: failed program was:" >&5
13274sed 's/^/| /' conftest.$ac_ext >&5
13275
13276 emacs_cv_x11_toolkit_version_6=no
8882fi 13277fi
8883rm -f core conftest.err conftest.$ac_objext \ 13278
8884 conftest$ac_exeext conftest.$ac_ext 13279rm -rf conftest.dSYM
13280rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13281 conftest$ac_exeext conftest.$ac_ext
8885fi 13282fi
8886 13283
8887 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 13284 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8888 if test $emacs_cv_x11_toolkit_version_6 = yes; then 13285 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 13286 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
8890$as_echo "6 or newer" >&6; } 13287$as_echo "6 or newer" >&6; }
8891 13288
8892$as_echo "#define HAVE_X11XTR6 1" >>confdefs.h 13289cat >>confdefs.h <<\_ACEOF
13290#define HAVE_X11XTR6 1
13291_ACEOF
8893 13292
8894 LIBXTR6="-lSM -lICE" 13293 LIBXTR6="-lSM -lICE"
8895 case "$opsys" in 13294 case "$opsys" in
@@ -8897,7 +13296,7 @@ $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
8897 unixware) LIBXTR6="$LIBXTR6 -lw" ;; 13296 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
8898 esac 13297 esac
8899 else 13298 else
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 13299 { $as_echo "$as_me:$LINENO: result: before 6" >&5
8901$as_echo "before 6" >&6; } 13300$as_echo "before 6" >&6; }
8902 fi 13301 fi
8903 13302
@@ -8907,14 +13306,19 @@ $as_echo "before 6" >&6; }
8907 else 13306 else
8908 LIBS="-lXt $LIBS" 13307 LIBS="-lXt $LIBS"
8909 fi 13308 fi
8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5 13309
13310{ $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8911$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } 13311$as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8912if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then : 13312if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8913 $as_echo_n "(cached) " >&6 13313 $as_echo_n "(cached) " >&6
8914else 13314else
8915 ac_check_lib_save_LIBS=$LIBS 13315 ac_check_lib_save_LIBS=$LIBS
8916LIBS="-lXmu $LIBS" 13316LIBS="-lXmu $LIBS"
8917cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13317cat >conftest.$ac_ext <<_ACEOF
13318/* confdefs.h. */
13319_ACEOF
13320cat confdefs.h >>conftest.$ac_ext
13321cat >>conftest.$ac_ext <<_ACEOF
8918/* end confdefs.h. */ 13322/* end confdefs.h. */
8919 13323
8920/* Override any GCC internal prototype to avoid an error. 13324/* Override any GCC internal prototype to avoid an error.
@@ -8932,18 +13336,43 @@ return XmuConvertStandardSelection ();
8932 return 0; 13336 return 0;
8933} 13337}
8934_ACEOF 13338_ACEOF
8935if ac_fn_c_try_link "$LINENO"; then : 13339rm -f conftest.$ac_objext conftest$ac_exeext
13340if { (ac_try="$ac_link"
13341case "(($ac_try" in
13342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13343 *) ac_try_echo=$ac_try;;
13344esac
13345eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13346$as_echo "$ac_try_echo") >&5
13347 (eval "$ac_link") 2>conftest.er1
13348 ac_status=$?
13349 grep -v '^ *+' conftest.er1 >conftest.err
13350 rm -f conftest.er1
13351 cat conftest.err >&5
13352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13353 (exit $ac_status); } && {
13354 test -z "$ac_c_werror_flag" ||
13355 test ! -s conftest.err
13356 } && test -s conftest$ac_exeext && {
13357 test "$cross_compiling" = yes ||
13358 $as_test_x conftest$ac_exeext
13359 }; then
8936 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes 13360 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8937else 13361else
8938 ac_cv_lib_Xmu_XmuConvertStandardSelection=no 13362 $as_echo "$as_me: failed program was:" >&5
13363sed 's/^/| /' conftest.$ac_ext >&5
13364
13365 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
8939fi 13366fi
8940rm -f core conftest.err conftest.$ac_objext \ 13367
8941 conftest$ac_exeext conftest.$ac_ext 13368rm -rf conftest.dSYM
13369rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13370 conftest$ac_exeext conftest.$ac_ext
8942LIBS=$ac_check_lib_save_LIBS 13371LIBS=$ac_check_lib_save_LIBS
8943fi 13372fi
8944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 13373{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8945$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } 13374$as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8946if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then : 13375if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8947 cat >>confdefs.h <<_ACEOF 13376 cat >>confdefs.h <<_ACEOF
8948#define HAVE_LIBXMU 1 13377#define HAVE_LIBXMU 1
8949_ACEOF 13378_ACEOF
@@ -8968,14 +13397,19 @@ esac
8968# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. 13397# On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
8969if test "${HAVE_X11}" = "yes"; then 13398if test "${HAVE_X11}" = "yes"; then
8970 if test "${USE_X_TOOLKIT}" != "none"; then 13399 if test "${USE_X_TOOLKIT}" != "none"; then
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 13400
13401{ $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
8972$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 13402$as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
8973if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : 13403if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
8974 $as_echo_n "(cached) " >&6 13404 $as_echo_n "(cached) " >&6
8975else 13405else
8976 ac_check_lib_save_LIBS=$LIBS 13406 ac_check_lib_save_LIBS=$LIBS
8977LIBS="-lXext $LIBS" 13407LIBS="-lXext $LIBS"
8978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13408cat >conftest.$ac_ext <<_ACEOF
13409/* confdefs.h. */
13410_ACEOF
13411cat confdefs.h >>conftest.$ac_ext
13412cat >>conftest.$ac_ext <<_ACEOF
8979/* end confdefs.h. */ 13413/* end confdefs.h. */
8980 13414
8981/* Override any GCC internal prototype to avoid an error. 13415/* Override any GCC internal prototype to avoid an error.
@@ -8993,18 +13427,43 @@ return XShapeQueryExtension ();
8993 return 0; 13427 return 0;
8994} 13428}
8995_ACEOF 13429_ACEOF
8996if ac_fn_c_try_link "$LINENO"; then : 13430rm -f conftest.$ac_objext conftest$ac_exeext
13431if { (ac_try="$ac_link"
13432case "(($ac_try" in
13433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13434 *) ac_try_echo=$ac_try;;
13435esac
13436eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13437$as_echo "$ac_try_echo") >&5
13438 (eval "$ac_link") 2>conftest.er1
13439 ac_status=$?
13440 grep -v '^ *+' conftest.er1 >conftest.err
13441 rm -f conftest.er1
13442 cat conftest.err >&5
13443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } && {
13445 test -z "$ac_c_werror_flag" ||
13446 test ! -s conftest.err
13447 } && test -s conftest$ac_exeext && {
13448 test "$cross_compiling" = yes ||
13449 $as_test_x conftest$ac_exeext
13450 }; then
8997 ac_cv_lib_Xext_XShapeQueryExtension=yes 13451 ac_cv_lib_Xext_XShapeQueryExtension=yes
8998else 13452else
8999 ac_cv_lib_Xext_XShapeQueryExtension=no 13453 $as_echo "$as_me: failed program was:" >&5
13454sed 's/^/| /' conftest.$ac_ext >&5
13455
13456 ac_cv_lib_Xext_XShapeQueryExtension=no
9000fi 13457fi
9001rm -f core conftest.err conftest.$ac_objext \ 13458
9002 conftest$ac_exeext conftest.$ac_ext 13459rm -rf conftest.dSYM
13460rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13461 conftest$ac_exeext conftest.$ac_ext
9003LIBS=$ac_check_lib_save_LIBS 13462LIBS=$ac_check_lib_save_LIBS
9004fi 13463fi
9005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 13464{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9006$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 13465$as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9007if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : 13466if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9008 cat >>confdefs.h <<_ACEOF 13467 cat >>confdefs.h <<_ACEOF
9009#define HAVE_LIBXEXT 1 13468#define HAVE_LIBXEXT 1
9010_ACEOF 13469_ACEOF
@@ -9018,12 +13477,16 @@ fi
9018 13477
9019LIBXP= 13478LIBXP=
9020if test "${USE_X_TOOLKIT}" = "MOTIF"; then 13479if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5 13480 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
9022$as_echo_n "checking for Motif version 2.1... " >&6; } 13481$as_echo_n "checking for Motif version 2.1... " >&6; }
9023if test "${emacs_cv_motif_version_2_1+set}" = set; then : 13482if test "${emacs_cv_motif_version_2_1+set}" = set; then
9024 $as_echo_n "(cached) " >&6 13483 $as_echo_n "(cached) " >&6
9025else 13484else
9026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13485 cat >conftest.$ac_ext <<_ACEOF
13486/* confdefs.h. */
13487_ACEOF
13488cat confdefs.h >>conftest.$ac_ext
13489cat >>conftest.$ac_ext <<_ACEOF
9027/* end confdefs.h. */ 13490/* end confdefs.h. */
9028#include <Xm/Xm.h> 13491#include <Xm/Xm.h>
9029int 13492int
@@ -9038,24 +13501,49 @@ Motif version prior to 2.1.
9038 return 0; 13501 return 0;
9039} 13502}
9040_ACEOF 13503_ACEOF
9041if ac_fn_c_try_compile "$LINENO"; then : 13504rm -f conftest.$ac_objext
13505if { (ac_try="$ac_compile"
13506case "(($ac_try" in
13507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13508 *) ac_try_echo=$ac_try;;
13509esac
13510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13511$as_echo "$ac_try_echo") >&5
13512 (eval "$ac_compile") 2>conftest.er1
13513 ac_status=$?
13514 grep -v '^ *+' conftest.er1 >conftest.err
13515 rm -f conftest.er1
13516 cat conftest.err >&5
13517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } && {
13519 test -z "$ac_c_werror_flag" ||
13520 test ! -s conftest.err
13521 } && test -s conftest.$ac_objext; then
9042 emacs_cv_motif_version_2_1=yes 13522 emacs_cv_motif_version_2_1=yes
9043else 13523else
9044 emacs_cv_motif_version_2_1=no 13524 $as_echo "$as_me: failed program was:" >&5
13525sed 's/^/| /' conftest.$ac_ext >&5
13526
13527 emacs_cv_motif_version_2_1=no
9045fi 13528fi
13529
9046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13530rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047fi 13531fi
9048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5 13532{ $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
9049$as_echo "$emacs_cv_motif_version_2_1" >&6; } 13533$as_echo "$emacs_cv_motif_version_2_1" >&6; }
9050 if test $emacs_cv_motif_version_2_1 = yes; then 13534 if test $emacs_cv_motif_version_2_1 = yes; then
9051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5 13535 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
9052$as_echo_n "checking for XpCreateContext in -lXp... " >&6; } 13536$as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9053if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then : 13537if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
9054 $as_echo_n "(cached) " >&6 13538 $as_echo_n "(cached) " >&6
9055else 13539else
9056 ac_check_lib_save_LIBS=$LIBS 13540 ac_check_lib_save_LIBS=$LIBS
9057LIBS="-lXp $LIBS" 13541LIBS="-lXp $LIBS"
9058cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13542cat >conftest.$ac_ext <<_ACEOF
13543/* confdefs.h. */
13544_ACEOF
13545cat confdefs.h >>conftest.$ac_ext
13546cat >>conftest.$ac_ext <<_ACEOF
9059/* end confdefs.h. */ 13547/* end confdefs.h. */
9060 13548
9061/* Override any GCC internal prototype to avoid an error. 13549/* Override any GCC internal prototype to avoid an error.
@@ -9073,25 +13561,50 @@ return XpCreateContext ();
9073 return 0; 13561 return 0;
9074} 13562}
9075_ACEOF 13563_ACEOF
9076if ac_fn_c_try_link "$LINENO"; then : 13564rm -f conftest.$ac_objext conftest$ac_exeext
13565if { (ac_try="$ac_link"
13566case "(($ac_try" in
13567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13568 *) ac_try_echo=$ac_try;;
13569esac
13570eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13571$as_echo "$ac_try_echo") >&5
13572 (eval "$ac_link") 2>conftest.er1
13573 ac_status=$?
13574 grep -v '^ *+' conftest.er1 >conftest.err
13575 rm -f conftest.er1
13576 cat conftest.err >&5
13577 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13578 (exit $ac_status); } && {
13579 test -z "$ac_c_werror_flag" ||
13580 test ! -s conftest.err
13581 } && test -s conftest$ac_exeext && {
13582 test "$cross_compiling" = yes ||
13583 $as_test_x conftest$ac_exeext
13584 }; then
9077 ac_cv_lib_Xp_XpCreateContext=yes 13585 ac_cv_lib_Xp_XpCreateContext=yes
9078else 13586else
9079 ac_cv_lib_Xp_XpCreateContext=no 13587 $as_echo "$as_me: failed program was:" >&5
13588sed 's/^/| /' conftest.$ac_ext >&5
13589
13590 ac_cv_lib_Xp_XpCreateContext=no
9080fi 13591fi
9081rm -f core conftest.err conftest.$ac_objext \ 13592
9082 conftest$ac_exeext conftest.$ac_ext 13593rm -rf conftest.dSYM
13594rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13595 conftest$ac_exeext conftest.$ac_ext
9083LIBS=$ac_check_lib_save_LIBS 13596LIBS=$ac_check_lib_save_LIBS
9084fi 13597fi
9085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5 13598{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9086$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } 13599$as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9087if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then : 13600if test $ac_cv_lib_Xp_XpCreateContext = yes; then
9088 LIBXP=-lXp 13601 LIBXP=-lXp
9089fi 13602fi
9090 13603
9091 else 13604 else
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5 13605 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
9093$as_echo_n "checking for LessTif where some systems put it... " >&6; } 13606$as_echo_n "checking for LessTif where some systems put it... " >&6; }
9094if test "${emacs_cv_lesstif+set}" = set; then : 13607if test "${emacs_cv_lesstif+set}" = set; then
9095 $as_echo_n "(cached) " >&6 13608 $as_echo_n "(cached) " >&6
9096else 13609else
9097 # We put this in CFLAGS temporarily to precede other -I options 13610 # We put this in CFLAGS temporarily to precede other -I options
@@ -9101,7 +13614,11 @@ else
9101 OLD_CFLAGS=$CFLAGS 13614 OLD_CFLAGS=$CFLAGS
9102 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" 13615 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9103 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" 13616 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13617 cat >conftest.$ac_ext <<_ACEOF
13618/* confdefs.h. */
13619_ACEOF
13620cat confdefs.h >>conftest.$ac_ext
13621cat >>conftest.$ac_ext <<_ACEOF
9105/* end confdefs.h. */ 13622/* end confdefs.h. */
9106#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> 13623#include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9107int 13624int
@@ -9112,14 +13629,35 @@ int x = 5;
9112 return 0; 13629 return 0;
9113} 13630}
9114_ACEOF 13631_ACEOF
9115if ac_fn_c_try_compile "$LINENO"; then : 13632rm -f conftest.$ac_objext
13633if { (ac_try="$ac_compile"
13634case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13637esac
13638eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13639$as_echo "$ac_try_echo") >&5
13640 (eval "$ac_compile") 2>conftest.er1
13641 ac_status=$?
13642 grep -v '^ *+' conftest.er1 >conftest.err
13643 rm -f conftest.er1
13644 cat conftest.err >&5
13645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13646 (exit $ac_status); } && {
13647 test -z "$ac_c_werror_flag" ||
13648 test ! -s conftest.err
13649 } && test -s conftest.$ac_objext; then
9116 emacs_cv_lesstif=yes 13650 emacs_cv_lesstif=yes
9117else 13651else
9118 emacs_cv_lesstif=no 13652 $as_echo "$as_me: failed program was:" >&5
13653sed 's/^/| /' conftest.$ac_ext >&5
13654
13655 emacs_cv_lesstif=no
9119fi 13656fi
13657
9120rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13658rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9121fi 13659fi
9122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5 13660{ $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
9123$as_echo "$emacs_cv_lesstif" >&6; } 13661$as_echo "$emacs_cv_lesstif" >&6; }
9124 if test $emacs_cv_lesstif = yes; then 13662 if test $emacs_cv_lesstif = yes; then
9125 # Make sure this -I option remains in CPPFLAGS after it is set 13663 # Make sure this -I option remains in CPPFLAGS after it is set
@@ -9137,31 +13675,44 @@ $as_echo "$emacs_cv_lesstif" >&6; }
9137fi 13675fi
9138 13676
9139 13677
13678
9140USE_TOOLKIT_SCROLL_BARS=no 13679USE_TOOLKIT_SCROLL_BARS=no
9141if test "${with_toolkit_scroll_bars}" != "no"; then 13680if test "${with_toolkit_scroll_bars}" != "no"; then
9142 if test "${USE_X_TOOLKIT}" != "none"; then 13681 if test "${USE_X_TOOLKIT}" != "none"; then
9143 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 13682 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9144 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13683 cat >>confdefs.h <<\_ACEOF
13684#define USE_TOOLKIT_SCROLL_BARS 1
13685_ACEOF
9145 13686
9146 HAVE_XAW3D=no 13687 HAVE_XAW3D=no
9147 USE_TOOLKIT_SCROLL_BARS=yes 13688 USE_TOOLKIT_SCROLL_BARS=yes
9148 elif test "${HAVE_XAW3D}" = "yes"; then 13689 elif test "${HAVE_XAW3D}" = "yes"; then
9149 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13690 cat >>confdefs.h <<\_ACEOF
13691#define USE_TOOLKIT_SCROLL_BARS 1
13692_ACEOF
9150 13693
9151 USE_TOOLKIT_SCROLL_BARS=yes 13694 USE_TOOLKIT_SCROLL_BARS=yes
9152 fi 13695 fi
9153 elif test "${HAVE_GTK}" = "yes"; then 13696 elif test "${HAVE_GTK}" = "yes"; then
9154 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13697 cat >>confdefs.h <<\_ACEOF
13698#define USE_TOOLKIT_SCROLL_BARS 1
13699_ACEOF
9155 13700
9156 USE_TOOLKIT_SCROLL_BARS=yes 13701 USE_TOOLKIT_SCROLL_BARS=yes
9157 elif test "${HAVE_NS}" = "yes"; then 13702 elif test "${HAVE_NS}" = "yes"; then
9158 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13703 cat >>confdefs.h <<\_ACEOF
13704#define USE_TOOLKIT_SCROLL_BARS 1
13705_ACEOF
9159 13706
9160 USE_TOOLKIT_SCROLL_BARS=yes 13707 USE_TOOLKIT_SCROLL_BARS=yes
9161 fi 13708 fi
9162fi 13709fi
9163 13710
9164cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13711cat >conftest.$ac_ext <<_ACEOF
13712/* confdefs.h. */
13713_ACEOF
13714cat confdefs.h >>conftest.$ac_ext
13715cat >>conftest.$ac_ext <<_ACEOF
9165/* end confdefs.h. */ 13716/* end confdefs.h. */
9166 13717
9167 #include <X11/Xlib.h> 13718 #include <X11/Xlib.h>
@@ -9174,20 +13725,45 @@ XIMProc callback;
9174 return 0; 13725 return 0;
9175} 13726}
9176_ACEOF 13727_ACEOF
9177if ac_fn_c_try_compile "$LINENO"; then : 13728rm -f conftest.$ac_objext
13729if { (ac_try="$ac_compile"
13730case "(($ac_try" in
13731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13732 *) ac_try_echo=$ac_try;;
13733esac
13734eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13735$as_echo "$ac_try_echo") >&5
13736 (eval "$ac_compile") 2>conftest.er1
13737 ac_status=$?
13738 grep -v '^ *+' conftest.er1 >conftest.err
13739 rm -f conftest.er1
13740 cat conftest.err >&5
13741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } && {
13743 test -z "$ac_c_werror_flag" ||
13744 test ! -s conftest.err
13745 } && test -s conftest.$ac_objext; then
9178 HAVE_XIM=yes 13746 HAVE_XIM=yes
9179 13747
9180$as_echo "#define HAVE_XIM 1" >>confdefs.h 13748cat >>confdefs.h <<\_ACEOF
13749#define HAVE_XIM 1
13750_ACEOF
9181 13751
9182else 13752else
9183 HAVE_XIM=no 13753 $as_echo "$as_me: failed program was:" >&5
13754sed 's/^/| /' conftest.$ac_ext >&5
13755
13756 HAVE_XIM=no
9184fi 13757fi
13758
9185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9186 13760
9187 13761
9188if test "${with_xim}" != "no"; then 13762if test "${with_xim}" != "no"; then
9189 13763
9190$as_echo "#define USE_XIM 1" >>confdefs.h 13764cat >>confdefs.h <<\_ACEOF
13765#define USE_XIM 1
13766_ACEOF
9191 13767
9192fi 13768fi
9193 13769
@@ -9197,7 +13773,11 @@ if test "${HAVE_XIM}" != "no"; then
9197 if test "$GCC" = yes; then 13773 if test "$GCC" = yes; then
9198 CFLAGS="$CFLAGS --pedantic-errors" 13774 CFLAGS="$CFLAGS --pedantic-errors"
9199 fi 13775 fi
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13776 cat >conftest.$ac_ext <<_ACEOF
13777/* confdefs.h. */
13778_ACEOF
13779cat confdefs.h >>conftest.$ac_ext
13780cat >>conftest.$ac_ext <<_ACEOF
9201/* end confdefs.h. */ 13781/* end confdefs.h. */
9202 13782
9203#include <X11/Xlib.h> 13783#include <X11/Xlib.h>
@@ -9223,15 +13803,43 @@ extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
9223 return 0; 13803 return 0;
9224} 13804}
9225_ACEOF 13805_ACEOF
9226if ac_fn_c_try_compile "$LINENO"; then : 13806rm -f conftest.$ac_objext
13807if { (ac_try="$ac_compile"
13808case "(($ac_try" in
13809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13810 *) ac_try_echo=$ac_try;;
13811esac
13812eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13813$as_echo "$ac_try_echo") >&5
13814 (eval "$ac_compile") 2>conftest.er1
13815 ac_status=$?
13816 grep -v '^ *+' conftest.er1 >conftest.err
13817 rm -f conftest.er1
13818 cat conftest.err >&5
13819 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13820 (exit $ac_status); } && {
13821 test -z "$ac_c_werror_flag" ||
13822 test ! -s conftest.err
13823 } && test -s conftest.$ac_objext; then
9227 emacs_cv_arg6_star=yes 13824 emacs_cv_arg6_star=yes
13825else
13826 $as_echo "$as_me: failed program was:" >&5
13827sed 's/^/| /' conftest.$ac_ext >&5
13828
13829
9228fi 13830fi
13831
9229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13832rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9230 if test "$emacs_cv_arg6_star" = yes; then 13833
9231 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h 13834 if test "$emacs_cv_arg6_star" = yes; then
13835 cat >>confdefs.h <<\_ACEOF
13836#define XRegisterIMInstantiateCallback_arg6 XPointer*
13837_ACEOF
9232 13838
9233 else 13839 else
9234 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h 13840 cat >>confdefs.h <<\_ACEOF
13841#define XRegisterIMInstantiateCallback_arg6 XPointer
13842_ACEOF
9235 13843
9236 fi 13844 fi
9237 CFLAGS=$late_CFLAGS 13845 CFLAGS=$late_CFLAGS
@@ -9248,9 +13856,9 @@ if test "${HAVE_X11}" = "yes"; then
9248 13856
9249 # Extract the first word of "pkg-config", so it can be a program name with args. 13857 # Extract the first word of "pkg-config", so it can be a program name with args.
9250set dummy pkg-config; ac_word=$2 13858set dummy pkg-config; ac_word=$2
9251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13859{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9252$as_echo_n "checking for $ac_word... " >&6; } 13860$as_echo_n "checking for $ac_word... " >&6; }
9253if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13861if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9254 $as_echo_n "(cached) " >&6 13862 $as_echo_n "(cached) " >&6
9255else 13863else
9256 case $PKG_CONFIG in 13864 case $PKG_CONFIG in
@@ -9263,14 +13871,14 @@ for as_dir in $PATH
9263do 13871do
9264 IFS=$as_save_IFS 13872 IFS=$as_save_IFS
9265 test -z "$as_dir" && as_dir=. 13873 test -z "$as_dir" && as_dir=.
9266 for ac_exec_ext in '' $ac_executable_extensions; do 13874 for ac_exec_ext in '' $ac_executable_extensions; do
9267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13875 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9268 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13876 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13877 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9270 break 2 13878 break 2
9271 fi 13879 fi
9272done 13880done
9273 done 13881done
9274IFS=$as_save_IFS 13882IFS=$as_save_IFS
9275 13883
9276 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 13884 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9279,10 +13887,10 @@ esac
9279fi 13887fi
9280PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13888PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9281if test -n "$PKG_CONFIG"; then 13889if test -n "$PKG_CONFIG"; then
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13890 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9283$as_echo "$PKG_CONFIG" >&6; } 13891$as_echo "$PKG_CONFIG" >&6; }
9284else 13892else
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13893 { $as_echo "$as_me:$LINENO: result: no" >&5
9286$as_echo "no" >&6; } 13894$as_echo "no" >&6; }
9287fi 13895fi
9288 13896
@@ -9293,27 +13901,27 @@ fi
9293 else 13901 else
9294 PKG_CONFIG_MIN_VERSION=0.9.0 13902 PKG_CONFIG_MIN_VERSION=0.9.0
9295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 13903 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5 13904 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
9297$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } 13905$as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9298 13906
9299 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then 13907 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13908 { $as_echo "$as_me:$LINENO: result: yes" >&5
9301$as_echo "yes" >&6; } 13909$as_echo "yes" >&6; }
9302 succeeded=yes 13910 succeeded=yes
9303 13911
9304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5 13912 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
9305$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } 13913$as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9306 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 13914 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5 13915 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
9308$as_echo "$FONTCONFIG_CFLAGS" >&6; } 13916$as_echo "$FONTCONFIG_CFLAGS" >&6; }
9309 13917
9310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5 13918 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
9311$as_echo_n "checking FONTCONFIG_LIBS... " >&6; } 13919$as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9312 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 13920 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5 13921 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
9314$as_echo "$FONTCONFIG_LIBS" >&6; } 13922$as_echo "$FONTCONFIG_LIBS" >&6; }
9315 else 13923 else
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13924 { $as_echo "$as_me:$LINENO: result: no" >&5
9317$as_echo "no" >&6; } 13925$as_echo "no" >&6; }
9318 FONTCONFIG_CFLAGS="" 13926 FONTCONFIG_CFLAGS=""
9319 FONTCONFIG_LIBS="" 13927 FONTCONFIG_LIBS=""
@@ -9350,9 +13958,9 @@ $as_echo "no" >&6; }
9350 13958
9351 # Extract the first word of "pkg-config", so it can be a program name with args. 13959 # Extract the first word of "pkg-config", so it can be a program name with args.
9352set dummy pkg-config; ac_word=$2 13960set dummy pkg-config; ac_word=$2
9353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13961{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9354$as_echo_n "checking for $ac_word... " >&6; } 13962$as_echo_n "checking for $ac_word... " >&6; }
9355if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13963if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9356 $as_echo_n "(cached) " >&6 13964 $as_echo_n "(cached) " >&6
9357else 13965else
9358 case $PKG_CONFIG in 13966 case $PKG_CONFIG in
@@ -9365,14 +13973,14 @@ for as_dir in $PATH
9365do 13973do
9366 IFS=$as_save_IFS 13974 IFS=$as_save_IFS
9367 test -z "$as_dir" && as_dir=. 13975 test -z "$as_dir" && as_dir=.
9368 for ac_exec_ext in '' $ac_executable_extensions; do 13976 for ac_exec_ext in '' $ac_executable_extensions; do
9369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9370 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13978 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13979 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9372 break 2 13980 break 2
9373 fi 13981 fi
9374done 13982done
9375 done 13983done
9376IFS=$as_save_IFS 13984IFS=$as_save_IFS
9377 13985
9378 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 13986 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9381,10 +13989,10 @@ esac
9381fi 13989fi
9382PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13990PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9383if test -n "$PKG_CONFIG"; then 13991if test -n "$PKG_CONFIG"; then
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13992 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9385$as_echo "$PKG_CONFIG" >&6; } 13993$as_echo "$PKG_CONFIG" >&6; }
9386else 13994else
9387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13995 { $as_echo "$as_me:$LINENO: result: no" >&5
9388$as_echo "no" >&6; } 13996$as_echo "no" >&6; }
9389fi 13997fi
9390 13998
@@ -9395,27 +14003,27 @@ fi
9395 else 14003 else
9396 PKG_CONFIG_MIN_VERSION=0.9.0 14004 PKG_CONFIG_MIN_VERSION=0.9.0
9397 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14005 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5 14006 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
9399$as_echo_n "checking for xft >= 0.13.0... " >&6; } 14007$as_echo_n "checking for xft >= 0.13.0... " >&6; }
9400 14008
9401 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then 14009 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14010 { $as_echo "$as_me:$LINENO: result: yes" >&5
9403$as_echo "yes" >&6; } 14011$as_echo "yes" >&6; }
9404 succeeded=yes 14012 succeeded=yes
9405 14013
9406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5 14014 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
9407$as_echo_n "checking XFT_CFLAGS... " >&6; } 14015$as_echo_n "checking XFT_CFLAGS... " >&6; }
9408 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` 14016 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5 14017 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
9410$as_echo "$XFT_CFLAGS" >&6; } 14018$as_echo "$XFT_CFLAGS" >&6; }
9411 14019
9412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5 14020 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
9413$as_echo_n "checking XFT_LIBS... " >&6; } 14021$as_echo_n "checking XFT_LIBS... " >&6; }
9414 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` 14022 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5 14023 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
9416$as_echo "$XFT_LIBS" >&6; } 14024$as_echo "$XFT_LIBS" >&6; }
9417 else 14025 else
9418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14026 { $as_echo "$as_me:$LINENO: result: no" >&5
9419$as_echo "no" >&6; } 14027$as_echo "no" >&6; }
9420 XFT_CFLAGS="" 14028 XFT_CFLAGS=""
9421 XFT_LIBS="" 14029 XFT_LIBS=""
@@ -9442,14 +14050,18 @@ $as_echo "no" >&6; }
9442 ## Because xftfont.c uses XRenderQueryExtension, we also 14050 ## Because xftfont.c uses XRenderQueryExtension, we also
9443 ## need to link to -lXrender. 14051 ## need to link to -lXrender.
9444 HAVE_XRENDER=no 14052 HAVE_XRENDER=no
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5 14053 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
9446$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } 14054$as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9447if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then : 14055if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
9448 $as_echo_n "(cached) " >&6 14056 $as_echo_n "(cached) " >&6
9449else 14057else
9450 ac_check_lib_save_LIBS=$LIBS 14058 ac_check_lib_save_LIBS=$LIBS
9451LIBS="-lXrender $LIBS" 14059LIBS="-lXrender $LIBS"
9452cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14060cat >conftest.$ac_ext <<_ACEOF
14061/* confdefs.h. */
14062_ACEOF
14063cat confdefs.h >>conftest.$ac_ext
14064cat >>conftest.$ac_ext <<_ACEOF
9453/* end confdefs.h. */ 14065/* end confdefs.h. */
9454 14066
9455/* Override any GCC internal prototype to avoid an error. 14067/* Override any GCC internal prototype to avoid an error.
@@ -9467,18 +14079,43 @@ return XRenderQueryExtension ();
9467 return 0; 14079 return 0;
9468} 14080}
9469_ACEOF 14081_ACEOF
9470if ac_fn_c_try_link "$LINENO"; then : 14082rm -f conftest.$ac_objext conftest$ac_exeext
14083if { (ac_try="$ac_link"
14084case "(($ac_try" in
14085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086 *) ac_try_echo=$ac_try;;
14087esac
14088eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14089$as_echo "$ac_try_echo") >&5
14090 (eval "$ac_link") 2>conftest.er1
14091 ac_status=$?
14092 grep -v '^ *+' conftest.er1 >conftest.err
14093 rm -f conftest.er1
14094 cat conftest.err >&5
14095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } && {
14097 test -z "$ac_c_werror_flag" ||
14098 test ! -s conftest.err
14099 } && test -s conftest$ac_exeext && {
14100 test "$cross_compiling" = yes ||
14101 $as_test_x conftest$ac_exeext
14102 }; then
9471 ac_cv_lib_Xrender_XRenderQueryExtension=yes 14103 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9472else 14104else
9473 ac_cv_lib_Xrender_XRenderQueryExtension=no 14105 $as_echo "$as_me: failed program was:" >&5
14106sed 's/^/| /' conftest.$ac_ext >&5
14107
14108 ac_cv_lib_Xrender_XRenderQueryExtension=no
9474fi 14109fi
9475rm -f core conftest.err conftest.$ac_objext \ 14110
9476 conftest$ac_exeext conftest.$ac_ext 14111rm -rf conftest.dSYM
14112rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14113 conftest$ac_exeext conftest.$ac_ext
9477LIBS=$ac_check_lib_save_LIBS 14114LIBS=$ac_check_lib_save_LIBS
9478fi 14115fi
9479{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 14116{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9480$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } 14117$as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9481if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then : 14118if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
9482 HAVE_XRENDER=yes 14119 HAVE_XRENDER=yes
9483fi 14120fi
9484 14121
@@ -9490,16 +14127,146 @@ fi
9490 CFLAGS="$CFLAGS $XFT_CFLAGS" 14127 CFLAGS="$CFLAGS $XFT_CFLAGS"
9491 XFT_LIBS="-lXrender $XFT_LIBS" 14128 XFT_LIBS="-lXrender $XFT_LIBS"
9492 LIBS="$XFT_LIBS $LIBS" 14129 LIBS="$XFT_LIBS $LIBS"
9493 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" 14130 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
9494if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : 14131 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 14132$as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14133if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14134 $as_echo_n "(cached) " >&6
14135fi
14136{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14137$as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14138else
14139 # Is the header compilable?
14140{ $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14141$as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14142cat >conftest.$ac_ext <<_ACEOF
14143/* confdefs.h. */
14144_ACEOF
14145cat confdefs.h >>conftest.$ac_ext
14146cat >>conftest.$ac_ext <<_ACEOF
14147/* end confdefs.h. */
14148$ac_includes_default
14149#include <X11/Xft/Xft.h>
14150_ACEOF
14151rm -f conftest.$ac_objext
14152if { (ac_try="$ac_compile"
14153case "(($ac_try" in
14154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14155 *) ac_try_echo=$ac_try;;
14156esac
14157eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14158$as_echo "$ac_try_echo") >&5
14159 (eval "$ac_compile") 2>conftest.er1
14160 ac_status=$?
14161 grep -v '^ *+' conftest.er1 >conftest.err
14162 rm -f conftest.er1
14163 cat conftest.err >&5
14164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14165 (exit $ac_status); } && {
14166 test -z "$ac_c_werror_flag" ||
14167 test ! -s conftest.err
14168 } && test -s conftest.$ac_objext; then
14169 ac_header_compiler=yes
14170else
14171 $as_echo "$as_me: failed program was:" >&5
14172sed 's/^/| /' conftest.$ac_ext >&5
14173
14174 ac_header_compiler=no
14175fi
14176
14177rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14178{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14179$as_echo "$ac_header_compiler" >&6; }
14180
14181# Is the header present?
14182{ $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14183$as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14184cat >conftest.$ac_ext <<_ACEOF
14185/* confdefs.h. */
14186_ACEOF
14187cat confdefs.h >>conftest.$ac_ext
14188cat >>conftest.$ac_ext <<_ACEOF
14189/* end confdefs.h. */
14190#include <X11/Xft/Xft.h>
14191_ACEOF
14192if { (ac_try="$ac_cpp conftest.$ac_ext"
14193case "(($ac_try" in
14194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14195 *) ac_try_echo=$ac_try;;
14196esac
14197eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14198$as_echo "$ac_try_echo") >&5
14199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14200 ac_status=$?
14201 grep -v '^ *+' conftest.er1 >conftest.err
14202 rm -f conftest.er1
14203 cat conftest.err >&5
14204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } >/dev/null && {
14206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14207 test ! -s conftest.err
14208 }; then
14209 ac_header_preproc=yes
14210else
14211 $as_echo "$as_me: failed program was:" >&5
14212sed 's/^/| /' conftest.$ac_ext >&5
14213
14214 ac_header_preproc=no
14215fi
14216
14217rm -f conftest.err conftest.$ac_ext
14218{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14219$as_echo "$ac_header_preproc" >&6; }
14220
14221# So? What about this header?
14222case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14223 yes:no: )
14224 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14225$as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14226 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14227$as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14228 ac_header_preproc=yes
14229 ;;
14230 no:yes:* )
14231 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14232$as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14233 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14234$as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14235 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14236$as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14237 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14238$as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14239 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14240$as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14241 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14242$as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14243
14244 ;;
14245esac
14246{ $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14247$as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14248if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14249 $as_echo_n "(cached) " >&6
14250else
14251 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14252fi
14253{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14254$as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14255
14256fi
14257if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14258 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
9496$as_echo_n "checking for XftFontOpen in -lXft... " >&6; } 14259$as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9497if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then : 14260if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
9498 $as_echo_n "(cached) " >&6 14261 $as_echo_n "(cached) " >&6
9499else 14262else
9500 ac_check_lib_save_LIBS=$LIBS 14263 ac_check_lib_save_LIBS=$LIBS
9501LIBS="-lXft $XFT_LIBS $LIBS" 14264LIBS="-lXft $XFT_LIBS $LIBS"
9502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14265cat >conftest.$ac_ext <<_ACEOF
14266/* confdefs.h. */
14267_ACEOF
14268cat confdefs.h >>conftest.$ac_ext
14269cat >>conftest.$ac_ext <<_ACEOF
9503/* end confdefs.h. */ 14270/* end confdefs.h. */
9504 14271
9505/* Override any GCC internal prototype to avoid an error. 14272/* Override any GCC internal prototype to avoid an error.
@@ -9517,18 +14284,43 @@ return XftFontOpen ();
9517 return 0; 14284 return 0;
9518} 14285}
9519_ACEOF 14286_ACEOF
9520if ac_fn_c_try_link "$LINENO"; then : 14287rm -f conftest.$ac_objext conftest$ac_exeext
14288if { (ac_try="$ac_link"
14289case "(($ac_try" in
14290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14291 *) ac_try_echo=$ac_try;;
14292esac
14293eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14294$as_echo "$ac_try_echo") >&5
14295 (eval "$ac_link") 2>conftest.er1
14296 ac_status=$?
14297 grep -v '^ *+' conftest.er1 >conftest.err
14298 rm -f conftest.er1
14299 cat conftest.err >&5
14300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14301 (exit $ac_status); } && {
14302 test -z "$ac_c_werror_flag" ||
14303 test ! -s conftest.err
14304 } && test -s conftest$ac_exeext && {
14305 test "$cross_compiling" = yes ||
14306 $as_test_x conftest$ac_exeext
14307 }; then
9521 ac_cv_lib_Xft_XftFontOpen=yes 14308 ac_cv_lib_Xft_XftFontOpen=yes
9522else 14309else
9523 ac_cv_lib_Xft_XftFontOpen=no 14310 $as_echo "$as_me: failed program was:" >&5
14311sed 's/^/| /' conftest.$ac_ext >&5
14312
14313 ac_cv_lib_Xft_XftFontOpen=no
9524fi 14314fi
9525rm -f core conftest.err conftest.$ac_objext \ 14315
9526 conftest$ac_exeext conftest.$ac_ext 14316rm -rf conftest.dSYM
14317rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14318 conftest$ac_exeext conftest.$ac_ext
9527LIBS=$ac_check_lib_save_LIBS 14319LIBS=$ac_check_lib_save_LIBS
9528fi 14320fi
9529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 14321{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9530$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } 14322$as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9531if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then : 14323if test $ac_cv_lib_Xft_XftFontOpen = yes; then
9532 HAVE_XFT=yes 14324 HAVE_XFT=yes
9533fi 14325fi
9534 14326
@@ -9538,7 +14330,9 @@ fi
9538 14330
9539 if test "${HAVE_XFT}" = "yes"; then 14331 if test "${HAVE_XFT}" = "yes"; then
9540 14332
9541$as_echo "#define HAVE_XFT 1" >>confdefs.h 14333cat >>confdefs.h <<\_ACEOF
14334#define HAVE_XFT 1
14335_ACEOF
9542 14336
9543 14337
9544 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" 14338 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
@@ -9567,7 +14361,9 @@ $as_echo "#define HAVE_XFT 1" >>confdefs.h
9567 HAVE_LIBOTF=no 14361 HAVE_LIBOTF=no
9568 if test "${HAVE_FREETYPE}" = "yes"; then 14362 if test "${HAVE_FREETYPE}" = "yes"; then
9569 14363
9570$as_echo "#define HAVE_FREETYPE 1" >>confdefs.h 14364cat >>confdefs.h <<\_ACEOF
14365#define HAVE_FREETYPE 1
14366_ACEOF
9571 14367
9572 if test "${with_libotf}" != "no"; then 14368 if test "${with_libotf}" != "no"; then
9573 14369
@@ -9575,9 +14371,9 @@ $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
9575 14371
9576 # Extract the first word of "pkg-config", so it can be a program name with args. 14372 # Extract the first word of "pkg-config", so it can be a program name with args.
9577set dummy pkg-config; ac_word=$2 14373set dummy pkg-config; ac_word=$2
9578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14374{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9579$as_echo_n "checking for $ac_word... " >&6; } 14375$as_echo_n "checking for $ac_word... " >&6; }
9580if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 14376if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9581 $as_echo_n "(cached) " >&6 14377 $as_echo_n "(cached) " >&6
9582else 14378else
9583 case $PKG_CONFIG in 14379 case $PKG_CONFIG in
@@ -9590,14 +14386,14 @@ for as_dir in $PATH
9590do 14386do
9591 IFS=$as_save_IFS 14387 IFS=$as_save_IFS
9592 test -z "$as_dir" && as_dir=. 14388 test -z "$as_dir" && as_dir=.
9593 for ac_exec_ext in '' $ac_executable_extensions; do 14389 for ac_exec_ext in '' $ac_executable_extensions; do
9594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9595 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14391 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14392 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9597 break 2 14393 break 2
9598 fi 14394 fi
9599done 14395done
9600 done 14396done
9601IFS=$as_save_IFS 14397IFS=$as_save_IFS
9602 14398
9603 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 14399 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9606,10 +14402,10 @@ esac
9606fi 14402fi
9607PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14403PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9608if test -n "$PKG_CONFIG"; then 14404if test -n "$PKG_CONFIG"; then
9609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14405 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9610$as_echo "$PKG_CONFIG" >&6; } 14406$as_echo "$PKG_CONFIG" >&6; }
9611else 14407else
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14408 { $as_echo "$as_me:$LINENO: result: no" >&5
9613$as_echo "no" >&6; } 14409$as_echo "no" >&6; }
9614fi 14410fi
9615 14411
@@ -9620,27 +14416,27 @@ fi
9620 else 14416 else
9621 PKG_CONFIG_MIN_VERSION=0.9.0 14417 PKG_CONFIG_MIN_VERSION=0.9.0
9622 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14418 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5 14419 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
9624$as_echo_n "checking for libotf... " >&6; } 14420$as_echo_n "checking for libotf... " >&6; }
9625 14421
9626 if $PKG_CONFIG --exists "libotf" 2>&5; then 14422 if $PKG_CONFIG --exists "libotf" 2>&5; then
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14423 { $as_echo "$as_me:$LINENO: result: yes" >&5
9628$as_echo "yes" >&6; } 14424$as_echo "yes" >&6; }
9629 succeeded=yes 14425 succeeded=yes
9630 14426
9631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5 14427 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
9632$as_echo_n "checking LIBOTF_CFLAGS... " >&6; } 14428$as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9633 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` 14429 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5 14430 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
9635$as_echo "$LIBOTF_CFLAGS" >&6; } 14431$as_echo "$LIBOTF_CFLAGS" >&6; }
9636 14432
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5 14433 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
9638$as_echo_n "checking LIBOTF_LIBS... " >&6; } 14434$as_echo_n "checking LIBOTF_LIBS... " >&6; }
9639 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` 14435 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5 14436 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
9641$as_echo "$LIBOTF_LIBS" >&6; } 14437$as_echo "$LIBOTF_LIBS" >&6; }
9642 else 14438 else
9643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14439 { $as_echo "$as_me:$LINENO: result: no" >&5
9644$as_echo "no" >&6; } 14440$as_echo "no" >&6; }
9645 LIBOTF_CFLAGS="" 14441 LIBOTF_CFLAGS=""
9646 LIBOTF_LIBS="" 14442 LIBOTF_LIBS=""
@@ -9666,16 +14462,22 @@ $as_echo "no" >&6; }
9666 14462
9667 if test "$HAVE_LIBOTF" = "yes"; then 14463 if test "$HAVE_LIBOTF" = "yes"; then
9668 14464
9669$as_echo "#define HAVE_LIBOTF 1" >>confdefs.h 14465cat >>confdefs.h <<\_ACEOF
14466#define HAVE_LIBOTF 1
14467_ACEOF
9670 14468
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5 14469 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
9672$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } 14470$as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9673if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then : 14471if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
9674 $as_echo_n "(cached) " >&6 14472 $as_echo_n "(cached) " >&6
9675else 14473else
9676 ac_check_lib_save_LIBS=$LIBS 14474 ac_check_lib_save_LIBS=$LIBS
9677LIBS="-lotf $LIBS" 14475LIBS="-lotf $LIBS"
9678cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14476cat >conftest.$ac_ext <<_ACEOF
14477/* confdefs.h. */
14478_ACEOF
14479cat confdefs.h >>conftest.$ac_ext
14480cat >>conftest.$ac_ext <<_ACEOF
9679/* end confdefs.h. */ 14481/* end confdefs.h. */
9680 14482
9681/* Override any GCC internal prototype to avoid an error. 14483/* Override any GCC internal prototype to avoid an error.
@@ -9693,18 +14495,43 @@ return OTF_get_variation_glyphs ();
9693 return 0; 14495 return 0;
9694} 14496}
9695_ACEOF 14497_ACEOF
9696if ac_fn_c_try_link "$LINENO"; then : 14498rm -f conftest.$ac_objext conftest$ac_exeext
14499if { (ac_try="$ac_link"
14500case "(($ac_try" in
14501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14502 *) ac_try_echo=$ac_try;;
14503esac
14504eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14505$as_echo "$ac_try_echo") >&5
14506 (eval "$ac_link") 2>conftest.er1
14507 ac_status=$?
14508 grep -v '^ *+' conftest.er1 >conftest.err
14509 rm -f conftest.er1
14510 cat conftest.err >&5
14511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14512 (exit $ac_status); } && {
14513 test -z "$ac_c_werror_flag" ||
14514 test ! -s conftest.err
14515 } && test -s conftest$ac_exeext && {
14516 test "$cross_compiling" = yes ||
14517 $as_test_x conftest$ac_exeext
14518 }; then
9697 ac_cv_lib_otf_OTF_get_variation_glyphs=yes 14519 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9698else 14520else
9699 ac_cv_lib_otf_OTF_get_variation_glyphs=no 14521 $as_echo "$as_me: failed program was:" >&5
14522sed 's/^/| /' conftest.$ac_ext >&5
14523
14524 ac_cv_lib_otf_OTF_get_variation_glyphs=no
9700fi 14525fi
9701rm -f core conftest.err conftest.$ac_objext \ 14526
9702 conftest$ac_exeext conftest.$ac_ext 14527rm -rf conftest.dSYM
14528rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14529 conftest$ac_exeext conftest.$ac_ext
9703LIBS=$ac_check_lib_save_LIBS 14530LIBS=$ac_check_lib_save_LIBS
9704fi 14531fi
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 14532{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9706$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } 14533$as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9707if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then : 14534if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
9708 HAVE_OTF_GET_VARIATION_GLYPHS=yes 14535 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9709else 14536else
9710 HAVE_OTF_GET_VARIATION_GLYPHS=no 14537 HAVE_OTF_GET_VARIATION_GLYPHS=no
@@ -9712,7 +14539,9 @@ fi
9712 14539
9713 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then 14540 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9714 14541
9715$as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h 14542cat >>confdefs.h <<\_ACEOF
14543#define HAVE_OTF_GET_VARIATION_GLYPHS 1
14544_ACEOF
9716 14545
9717 fi 14546 fi
9718 fi 14547 fi
@@ -9727,9 +14556,9 @@ $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
9727 14556
9728 # Extract the first word of "pkg-config", so it can be a program name with args. 14557 # Extract the first word of "pkg-config", so it can be a program name with args.
9729set dummy pkg-config; ac_word=$2 14558set dummy pkg-config; ac_word=$2
9730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14559{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9731$as_echo_n "checking for $ac_word... " >&6; } 14560$as_echo_n "checking for $ac_word... " >&6; }
9732if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 14561if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9733 $as_echo_n "(cached) " >&6 14562 $as_echo_n "(cached) " >&6
9734else 14563else
9735 case $PKG_CONFIG in 14564 case $PKG_CONFIG in
@@ -9742,14 +14571,14 @@ for as_dir in $PATH
9742do 14571do
9743 IFS=$as_save_IFS 14572 IFS=$as_save_IFS
9744 test -z "$as_dir" && as_dir=. 14573 test -z "$as_dir" && as_dir=.
9745 for ac_exec_ext in '' $ac_executable_extensions; do 14574 for ac_exec_ext in '' $ac_executable_extensions; do
9746 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9747 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14576 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9749 break 2 14578 break 2
9750 fi 14579 fi
9751done 14580done
9752 done 14581done
9753IFS=$as_save_IFS 14582IFS=$as_save_IFS
9754 14583
9755 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 14584 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
@@ -9758,10 +14587,10 @@ esac
9758fi 14587fi
9759PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14588PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9760if test -n "$PKG_CONFIG"; then 14589if test -n "$PKG_CONFIG"; then
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14590 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9762$as_echo "$PKG_CONFIG" >&6; } 14591$as_echo "$PKG_CONFIG" >&6; }
9763else 14592else
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14593 { $as_echo "$as_me:$LINENO: result: no" >&5
9765$as_echo "no" >&6; } 14594$as_echo "no" >&6; }
9766fi 14595fi
9767 14596
@@ -9772,27 +14601,27 @@ fi
9772 else 14601 else
9773 PKG_CONFIG_MIN_VERSION=0.9.0 14602 PKG_CONFIG_MIN_VERSION=0.9.0
9774 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14603 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5 14604 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
9776$as_echo_n "checking for m17n-flt... " >&6; } 14605$as_echo_n "checking for m17n-flt... " >&6; }
9777 14606
9778 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then 14607 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14608 { $as_echo "$as_me:$LINENO: result: yes" >&5
9780$as_echo "yes" >&6; } 14609$as_echo "yes" >&6; }
9781 succeeded=yes 14610 succeeded=yes
9782 14611
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5 14612 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
9784$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } 14613$as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9785 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` 14614 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5 14615 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
9787$as_echo "$M17N_FLT_CFLAGS" >&6; } 14616$as_echo "$M17N_FLT_CFLAGS" >&6; }
9788 14617
9789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5 14618 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
9790$as_echo_n "checking M17N_FLT_LIBS... " >&6; } 14619$as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9791 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` 14620 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5 14621 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
9793$as_echo "$M17N_FLT_LIBS" >&6; } 14622$as_echo "$M17N_FLT_LIBS" >&6; }
9794 else 14623 else
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14624 { $as_echo "$as_me:$LINENO: result: no" >&5
9796$as_echo "no" >&6; } 14625$as_echo "no" >&6; }
9797 M17N_FLT_CFLAGS="" 14626 M17N_FLT_CFLAGS=""
9798 M17N_FLT_LIBS="" 14627 M17N_FLT_LIBS=""
@@ -9818,7 +14647,9 @@ $as_echo "no" >&6; }
9818 14647
9819 if test "$HAVE_M17N_FLT" = "yes"; then 14648 if test "$HAVE_M17N_FLT" = "yes"; then
9820 14649
9821$as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h 14650cat >>confdefs.h <<\_ACEOF
14651#define HAVE_M17N_FLT 1
14652_ACEOF
9822 14653
9823 fi 14654 fi
9824 fi 14655 fi
@@ -9854,16 +14685,146 @@ HAVE_XPM=no
9854LIBXPM= 14685LIBXPM=
9855if test "${HAVE_X11}" = "yes"; then 14686if test "${HAVE_X11}" = "yes"; then
9856 if test "${with_xpm}" != "no"; then 14687 if test "${with_xpm}" != "no"; then
9857 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" 14688 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9858if test "x$ac_cv_header_X11_xpm_h" = x""yes; then : 14689 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5 14690$as_echo_n "checking for X11/xpm.h... " >&6; }
14691if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14692 $as_echo_n "(cached) " >&6
14693fi
14694{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14695$as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14696else
14697 # Is the header compilable?
14698{ $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14699$as_echo_n "checking X11/xpm.h usability... " >&6; }
14700cat >conftest.$ac_ext <<_ACEOF
14701/* confdefs.h. */
14702_ACEOF
14703cat confdefs.h >>conftest.$ac_ext
14704cat >>conftest.$ac_ext <<_ACEOF
14705/* end confdefs.h. */
14706$ac_includes_default
14707#include <X11/xpm.h>
14708_ACEOF
14709rm -f conftest.$ac_objext
14710if { (ac_try="$ac_compile"
14711case "(($ac_try" in
14712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14713 *) ac_try_echo=$ac_try;;
14714esac
14715eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14716$as_echo "$ac_try_echo") >&5
14717 (eval "$ac_compile") 2>conftest.er1
14718 ac_status=$?
14719 grep -v '^ *+' conftest.er1 >conftest.err
14720 rm -f conftest.er1
14721 cat conftest.err >&5
14722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } && {
14724 test -z "$ac_c_werror_flag" ||
14725 test ! -s conftest.err
14726 } && test -s conftest.$ac_objext; then
14727 ac_header_compiler=yes
14728else
14729 $as_echo "$as_me: failed program was:" >&5
14730sed 's/^/| /' conftest.$ac_ext >&5
14731
14732 ac_header_compiler=no
14733fi
14734
14735rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14736{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14737$as_echo "$ac_header_compiler" >&6; }
14738
14739# Is the header present?
14740{ $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14741$as_echo_n "checking X11/xpm.h presence... " >&6; }
14742cat >conftest.$ac_ext <<_ACEOF
14743/* confdefs.h. */
14744_ACEOF
14745cat confdefs.h >>conftest.$ac_ext
14746cat >>conftest.$ac_ext <<_ACEOF
14747/* end confdefs.h. */
14748#include <X11/xpm.h>
14749_ACEOF
14750if { (ac_try="$ac_cpp conftest.$ac_ext"
14751case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754esac
14755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14756$as_echo "$ac_try_echo") >&5
14757 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14758 ac_status=$?
14759 grep -v '^ *+' conftest.er1 >conftest.err
14760 rm -f conftest.er1
14761 cat conftest.err >&5
14762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); } >/dev/null && {
14764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14765 test ! -s conftest.err
14766 }; then
14767 ac_header_preproc=yes
14768else
14769 $as_echo "$as_me: failed program was:" >&5
14770sed 's/^/| /' conftest.$ac_ext >&5
14771
14772 ac_header_preproc=no
14773fi
14774
14775rm -f conftest.err conftest.$ac_ext
14776{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14777$as_echo "$ac_header_preproc" >&6; }
14778
14779# So? What about this header?
14780case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14781 yes:no: )
14782 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14783$as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14784 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14785$as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14786 ac_header_preproc=yes
14787 ;;
14788 no:yes:* )
14789 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14790$as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14791 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14792$as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14793 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14794$as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14795 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14796$as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14797 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14798$as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14799 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14800$as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14801
14802 ;;
14803esac
14804{ $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14805$as_echo_n "checking for X11/xpm.h... " >&6; }
14806if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14807 $as_echo_n "(cached) " >&6
14808else
14809 ac_cv_header_X11_xpm_h=$ac_header_preproc
14810fi
14811{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14812$as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14813
14814fi
14815if test $ac_cv_header_X11_xpm_h = yes; then
14816 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9860$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } 14817$as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9861if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then : 14818if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9862 $as_echo_n "(cached) " >&6 14819 $as_echo_n "(cached) " >&6
9863else 14820else
9864 ac_check_lib_save_LIBS=$LIBS 14821 ac_check_lib_save_LIBS=$LIBS
9865LIBS="-lXpm -lX11 $LIBS" 14822LIBS="-lXpm -lX11 $LIBS"
9866cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14823cat >conftest.$ac_ext <<_ACEOF
14824/* confdefs.h. */
14825_ACEOF
14826cat confdefs.h >>conftest.$ac_ext
14827cat >>conftest.$ac_ext <<_ACEOF
9867/* end confdefs.h. */ 14828/* end confdefs.h. */
9868 14829
9869/* Override any GCC internal prototype to avoid an error. 14830/* Override any GCC internal prototype to avoid an error.
@@ -9881,18 +14842,43 @@ return XpmReadFileToPixmap ();
9881 return 0; 14842 return 0;
9882} 14843}
9883_ACEOF 14844_ACEOF
9884if ac_fn_c_try_link "$LINENO"; then : 14845rm -f conftest.$ac_objext conftest$ac_exeext
14846if { (ac_try="$ac_link"
14847case "(($ac_try" in
14848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14849 *) ac_try_echo=$ac_try;;
14850esac
14851eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14852$as_echo "$ac_try_echo") >&5
14853 (eval "$ac_link") 2>conftest.er1
14854 ac_status=$?
14855 grep -v '^ *+' conftest.er1 >conftest.err
14856 rm -f conftest.er1
14857 cat conftest.err >&5
14858 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14859 (exit $ac_status); } && {
14860 test -z "$ac_c_werror_flag" ||
14861 test ! -s conftest.err
14862 } && test -s conftest$ac_exeext && {
14863 test "$cross_compiling" = yes ||
14864 $as_test_x conftest$ac_exeext
14865 }; then
9885 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes 14866 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9886else 14867else
9887 ac_cv_lib_Xpm_XpmReadFileToPixmap=no 14868 $as_echo "$as_me: failed program was:" >&5
14869sed 's/^/| /' conftest.$ac_ext >&5
14870
14871 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
9888fi 14872fi
9889rm -f core conftest.err conftest.$ac_objext \ 14873
9890 conftest$ac_exeext conftest.$ac_ext 14874rm -rf conftest.dSYM
14875rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14876 conftest$ac_exeext conftest.$ac_ext
9891LIBS=$ac_check_lib_save_LIBS 14877LIBS=$ac_check_lib_save_LIBS
9892fi 14878fi
9893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 14879{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9894$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } 14880$as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9895if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then : 14881if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9896 HAVE_XPM=yes 14882 HAVE_XPM=yes
9897fi 14883fi
9898 14884
@@ -9900,9 +14886,13 @@ fi
9900 14886
9901 14887
9902 if test "${HAVE_XPM}" = "yes"; then 14888 if test "${HAVE_XPM}" = "yes"; then
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5 14889 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9904$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } 14890$as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14891 cat >conftest.$ac_ext <<_ACEOF
14892/* confdefs.h. */
14893_ACEOF
14894cat confdefs.h >>conftest.$ac_ext
14895cat >>conftest.$ac_ext <<_ACEOF
9906/* end confdefs.h. */ 14896/* end confdefs.h. */
9907#include "X11/xpm.h" 14897#include "X11/xpm.h"
9908#ifndef XpmReturnAllocPixels 14898#ifndef XpmReturnAllocPixels
@@ -9911,7 +14901,7 @@ no_return_alloc_pixels
9911 14901
9912_ACEOF 14902_ACEOF
9913if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14903if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9914 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then : 14904 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9915 HAVE_XPM=no 14905 HAVE_XPM=no
9916else 14906else
9917 HAVE_XPM=yes 14907 HAVE_XPM=yes
@@ -9920,10 +14910,10 @@ rm -f conftest*
9920 14910
9921 14911
9922 if test "${HAVE_XPM}" = "yes"; then 14912 if test "${HAVE_XPM}" = "yes"; then
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14913 { $as_echo "$as_me:$LINENO: result: yes" >&5
9924$as_echo "yes" >&6; } 14914$as_echo "yes" >&6; }
9925 else 14915 else
9926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14916 { $as_echo "$as_me:$LINENO: result: no" >&5
9927$as_echo "no" >&6; } 14917$as_echo "no" >&6; }
9928 fi 14918 fi
9929 fi 14919 fi
@@ -9931,7 +14921,9 @@ $as_echo "no" >&6; }
9931 14921
9932 if test "${HAVE_XPM}" = "yes"; then 14922 if test "${HAVE_XPM}" = "yes"; then
9933 14923
9934$as_echo "#define HAVE_XPM 1" >>confdefs.h 14924cat >>confdefs.h <<\_ACEOF
14925#define HAVE_XPM 1
14926_ACEOF
9935 14927
9936 LIBXPM=-lXpm 14928 LIBXPM=-lXpm
9937 fi 14929 fi
@@ -9943,16 +14935,146 @@ HAVE_JPEG=no
9943LIBJPEG= 14935LIBJPEG=
9944if test "${HAVE_X11}" = "yes"; then 14936if test "${HAVE_X11}" = "yes"; then
9945 if test "${with_jpeg}" != "no"; then 14937 if test "${with_jpeg}" != "no"; then
9946 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" 14938 if test "${ac_cv_header_jerror_h+set}" = set; then
9947if test "x$ac_cv_header_jerror_h" = x""yes; then : 14939 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 14940$as_echo_n "checking for jerror.h... " >&6; }
14941if test "${ac_cv_header_jerror_h+set}" = set; then
14942 $as_echo_n "(cached) " >&6
14943fi
14944{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14945$as_echo "$ac_cv_header_jerror_h" >&6; }
14946else
14947 # Is the header compilable?
14948{ $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14949$as_echo_n "checking jerror.h usability... " >&6; }
14950cat >conftest.$ac_ext <<_ACEOF
14951/* confdefs.h. */
14952_ACEOF
14953cat confdefs.h >>conftest.$ac_ext
14954cat >>conftest.$ac_ext <<_ACEOF
14955/* end confdefs.h. */
14956$ac_includes_default
14957#include <jerror.h>
14958_ACEOF
14959rm -f conftest.$ac_objext
14960if { (ac_try="$ac_compile"
14961case "(($ac_try" in
14962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14963 *) ac_try_echo=$ac_try;;
14964esac
14965eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14966$as_echo "$ac_try_echo") >&5
14967 (eval "$ac_compile") 2>conftest.er1
14968 ac_status=$?
14969 grep -v '^ *+' conftest.er1 >conftest.err
14970 rm -f conftest.er1
14971 cat conftest.err >&5
14972 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14973 (exit $ac_status); } && {
14974 test -z "$ac_c_werror_flag" ||
14975 test ! -s conftest.err
14976 } && test -s conftest.$ac_objext; then
14977 ac_header_compiler=yes
14978else
14979 $as_echo "$as_me: failed program was:" >&5
14980sed 's/^/| /' conftest.$ac_ext >&5
14981
14982 ac_header_compiler=no
14983fi
14984
14985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14986{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14987$as_echo "$ac_header_compiler" >&6; }
14988
14989# Is the header present?
14990{ $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14991$as_echo_n "checking jerror.h presence... " >&6; }
14992cat >conftest.$ac_ext <<_ACEOF
14993/* confdefs.h. */
14994_ACEOF
14995cat confdefs.h >>conftest.$ac_ext
14996cat >>conftest.$ac_ext <<_ACEOF
14997/* end confdefs.h. */
14998#include <jerror.h>
14999_ACEOF
15000if { (ac_try="$ac_cpp conftest.$ac_ext"
15001case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15004esac
15005eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15006$as_echo "$ac_try_echo") >&5
15007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15008 ac_status=$?
15009 grep -v '^ *+' conftest.er1 >conftest.err
15010 rm -f conftest.er1
15011 cat conftest.err >&5
15012 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15013 (exit $ac_status); } >/dev/null && {
15014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15015 test ! -s conftest.err
15016 }; then
15017 ac_header_preproc=yes
15018else
15019 $as_echo "$as_me: failed program was:" >&5
15020sed 's/^/| /' conftest.$ac_ext >&5
15021
15022 ac_header_preproc=no
15023fi
15024
15025rm -f conftest.err conftest.$ac_ext
15026{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15027$as_echo "$ac_header_preproc" >&6; }
15028
15029# So? What about this header?
15030case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15031 yes:no: )
15032 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15033$as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15034 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15035$as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15036 ac_header_preproc=yes
15037 ;;
15038 no:yes:* )
15039 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15040$as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15041 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15042$as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15043 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15044$as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15045 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15046$as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15047 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15048$as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15049 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15050$as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15051
15052 ;;
15053esac
15054{ $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15055$as_echo_n "checking for jerror.h... " >&6; }
15056if test "${ac_cv_header_jerror_h+set}" = set; then
15057 $as_echo_n "(cached) " >&6
15058else
15059 ac_cv_header_jerror_h=$ac_header_preproc
15060fi
15061{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15062$as_echo "$ac_cv_header_jerror_h" >&6; }
15063
15064fi
15065if test $ac_cv_header_jerror_h = yes; then
15066 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9949$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } 15067$as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9950if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then : 15068if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9951 $as_echo_n "(cached) " >&6 15069 $as_echo_n "(cached) " >&6
9952else 15070else
9953 ac_check_lib_save_LIBS=$LIBS 15071 ac_check_lib_save_LIBS=$LIBS
9954LIBS="-ljpeg $LIBS" 15072LIBS="-ljpeg $LIBS"
9955cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15073cat >conftest.$ac_ext <<_ACEOF
15074/* confdefs.h. */
15075_ACEOF
15076cat confdefs.h >>conftest.$ac_ext
15077cat >>conftest.$ac_ext <<_ACEOF
9956/* end confdefs.h. */ 15078/* end confdefs.h. */
9957 15079
9958/* Override any GCC internal prototype to avoid an error. 15080/* Override any GCC internal prototype to avoid an error.
@@ -9970,18 +15092,43 @@ return jpeg_destroy_compress ();
9970 return 0; 15092 return 0;
9971} 15093}
9972_ACEOF 15094_ACEOF
9973if ac_fn_c_try_link "$LINENO"; then : 15095rm -f conftest.$ac_objext conftest$ac_exeext
15096if { (ac_try="$ac_link"
15097case "(($ac_try" in
15098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099 *) ac_try_echo=$ac_try;;
15100esac
15101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15102$as_echo "$ac_try_echo") >&5
15103 (eval "$ac_link") 2>conftest.er1
15104 ac_status=$?
15105 grep -v '^ *+' conftest.er1 >conftest.err
15106 rm -f conftest.er1
15107 cat conftest.err >&5
15108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15109 (exit $ac_status); } && {
15110 test -z "$ac_c_werror_flag" ||
15111 test ! -s conftest.err
15112 } && test -s conftest$ac_exeext && {
15113 test "$cross_compiling" = yes ||
15114 $as_test_x conftest$ac_exeext
15115 }; then
9974 ac_cv_lib_jpeg_jpeg_destroy_compress=yes 15116 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
9975else 15117else
9976 ac_cv_lib_jpeg_jpeg_destroy_compress=no 15118 $as_echo "$as_me: failed program was:" >&5
15119sed 's/^/| /' conftest.$ac_ext >&5
15120
15121 ac_cv_lib_jpeg_jpeg_destroy_compress=no
9977fi 15122fi
9978rm -f core conftest.err conftest.$ac_objext \ 15123
9979 conftest$ac_exeext conftest.$ac_ext 15124rm -rf conftest.dSYM
15125rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15126 conftest$ac_exeext conftest.$ac_ext
9980LIBS=$ac_check_lib_save_LIBS 15127LIBS=$ac_check_lib_save_LIBS
9981fi 15128fi
9982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 15129{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
9983$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } 15130$as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
9984if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then : 15131if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
9985 HAVE_JPEG=yes 15132 HAVE_JPEG=yes
9986fi 15133fi
9987 15134
@@ -9990,21 +15137,30 @@ fi
9990 15137
9991 fi 15138 fi
9992 15139
9993 if test "${HAVE_JPEG}" = "yes"; then
9994 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
9995 15140
9996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15141 if test "${HAVE_JPEG}" = "yes"; then
15142 cat >>confdefs.h <<\_ACEOF
15143#define HAVE_JPEG 1
15144_ACEOF
15145
15146 cat >conftest.$ac_ext <<_ACEOF
15147/* confdefs.h. */
15148_ACEOF
15149cat confdefs.h >>conftest.$ac_ext
15150cat >>conftest.$ac_ext <<_ACEOF
9997/* end confdefs.h. */ 15151/* end confdefs.h. */
9998#include <jpeglib.h> 15152#include <jpeglib.h>
9999 version=JPEG_LIB_VERSION 15153 version=JPEG_LIB_VERSION
10000 15154
10001_ACEOF 15155_ACEOF
10002if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10003 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then : 15157 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
10004 $as_echo "#define HAVE_JPEG 1" >>confdefs.h 15158 cat >>confdefs.h <<\_ACEOF
15159#define HAVE_JPEG 1
15160_ACEOF
10005 15161
10006else 15162else
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5 15163 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
10008$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} 15164$as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10009 HAVE_JPEG=no 15165 HAVE_JPEG=no
10010fi 15166fi
@@ -10024,12 +15180,144 @@ if test "${HAVE_X11}" = "yes"; then
10024 if test "${with_png}" != "no"; then 15180 if test "${with_png}" != "no"; then
10025 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h 15181 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10026 # in /usr/include/libpng. 15182 # in /usr/include/libpng.
10027 for ac_header in png.h libpng/png.h 15183
10028do : 15184
10029 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15185for ac_header in png.h libpng/png.h
10030ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15186do
10031eval as_val=\$$as_ac_Header 15187as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10032 if test "x$as_val" = x""yes; then : 15188if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15189 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15190$as_echo_n "checking for $ac_header... " >&6; }
15191if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15192 $as_echo_n "(cached) " >&6
15193fi
15194ac_res=`eval 'as_val=${'$as_ac_Header'}
15195 $as_echo "$as_val"'`
15196 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15197$as_echo "$ac_res" >&6; }
15198else
15199 # Is the header compilable?
15200{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15201$as_echo_n "checking $ac_header usability... " >&6; }
15202cat >conftest.$ac_ext <<_ACEOF
15203/* confdefs.h. */
15204_ACEOF
15205cat confdefs.h >>conftest.$ac_ext
15206cat >>conftest.$ac_ext <<_ACEOF
15207/* end confdefs.h. */
15208$ac_includes_default
15209#include <$ac_header>
15210_ACEOF
15211rm -f conftest.$ac_objext
15212if { (ac_try="$ac_compile"
15213case "(($ac_try" in
15214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15215 *) ac_try_echo=$ac_try;;
15216esac
15217eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15218$as_echo "$ac_try_echo") >&5
15219 (eval "$ac_compile") 2>conftest.er1
15220 ac_status=$?
15221 grep -v '^ *+' conftest.er1 >conftest.err
15222 rm -f conftest.er1
15223 cat conftest.err >&5
15224 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); } && {
15226 test -z "$ac_c_werror_flag" ||
15227 test ! -s conftest.err
15228 } && test -s conftest.$ac_objext; then
15229 ac_header_compiler=yes
15230else
15231 $as_echo "$as_me: failed program was:" >&5
15232sed 's/^/| /' conftest.$ac_ext >&5
15233
15234 ac_header_compiler=no
15235fi
15236
15237rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15238{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15239$as_echo "$ac_header_compiler" >&6; }
15240
15241# Is the header present?
15242{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15243$as_echo_n "checking $ac_header presence... " >&6; }
15244cat >conftest.$ac_ext <<_ACEOF
15245/* confdefs.h. */
15246_ACEOF
15247cat confdefs.h >>conftest.$ac_ext
15248cat >>conftest.$ac_ext <<_ACEOF
15249/* end confdefs.h. */
15250#include <$ac_header>
15251_ACEOF
15252if { (ac_try="$ac_cpp conftest.$ac_ext"
15253case "(($ac_try" in
15254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15255 *) ac_try_echo=$ac_try;;
15256esac
15257eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15258$as_echo "$ac_try_echo") >&5
15259 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15260 ac_status=$?
15261 grep -v '^ *+' conftest.er1 >conftest.err
15262 rm -f conftest.er1
15263 cat conftest.err >&5
15264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15265 (exit $ac_status); } >/dev/null && {
15266 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15267 test ! -s conftest.err
15268 }; then
15269 ac_header_preproc=yes
15270else
15271 $as_echo "$as_me: failed program was:" >&5
15272sed 's/^/| /' conftest.$ac_ext >&5
15273
15274 ac_header_preproc=no
15275fi
15276
15277rm -f conftest.err conftest.$ac_ext
15278{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15279$as_echo "$ac_header_preproc" >&6; }
15280
15281# So? What about this header?
15282case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15283 yes:no: )
15284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15285$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15287$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15288 ac_header_preproc=yes
15289 ;;
15290 no:yes:* )
15291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15292$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15294$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15296$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15298$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15300$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15302$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15303
15304 ;;
15305esac
15306{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15307$as_echo_n "checking for $ac_header... " >&6; }
15308if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15309 $as_echo_n "(cached) " >&6
15310else
15311 eval "$as_ac_Header=\$ac_header_preproc"
15312fi
15313ac_res=`eval 'as_val=${'$as_ac_Header'}
15314 $as_echo "$as_val"'`
15315 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15316$as_echo "$ac_res" >&6; }
15317
15318fi
15319if test `eval 'as_val=${'$as_ac_Header'}
15320 $as_echo "$as_val"'` = yes; then
10033 cat >>confdefs.h <<_ACEOF 15321 cat >>confdefs.h <<_ACEOF
10034#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15322#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10035_ACEOF 15323_ACEOF
@@ -10039,14 +15327,18 @@ fi
10039done 15327done
10040 15328
10041 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then 15329 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5 15330 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
10043$as_echo_n "checking for png_get_channels in -lpng... " >&6; } 15331$as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10044if test "${ac_cv_lib_png_png_get_channels+set}" = set; then : 15332if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
10045 $as_echo_n "(cached) " >&6 15333 $as_echo_n "(cached) " >&6
10046else 15334else
10047 ac_check_lib_save_LIBS=$LIBS 15335 ac_check_lib_save_LIBS=$LIBS
10048LIBS="-lpng -lz -lm $LIBS" 15336LIBS="-lpng -lz -lm $LIBS"
10049cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15337cat >conftest.$ac_ext <<_ACEOF
15338/* confdefs.h. */
15339_ACEOF
15340cat confdefs.h >>conftest.$ac_ext
15341cat >>conftest.$ac_ext <<_ACEOF
10050/* end confdefs.h. */ 15342/* end confdefs.h. */
10051 15343
10052/* Override any GCC internal prototype to avoid an error. 15344/* Override any GCC internal prototype to avoid an error.
@@ -10064,18 +15356,43 @@ return png_get_channels ();
10064 return 0; 15356 return 0;
10065} 15357}
10066_ACEOF 15358_ACEOF
10067if ac_fn_c_try_link "$LINENO"; then : 15359rm -f conftest.$ac_objext conftest$ac_exeext
15360if { (ac_try="$ac_link"
15361case "(($ac_try" in
15362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15363 *) ac_try_echo=$ac_try;;
15364esac
15365eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15366$as_echo "$ac_try_echo") >&5
15367 (eval "$ac_link") 2>conftest.er1
15368 ac_status=$?
15369 grep -v '^ *+' conftest.er1 >conftest.err
15370 rm -f conftest.er1
15371 cat conftest.err >&5
15372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } && {
15374 test -z "$ac_c_werror_flag" ||
15375 test ! -s conftest.err
15376 } && test -s conftest$ac_exeext && {
15377 test "$cross_compiling" = yes ||
15378 $as_test_x conftest$ac_exeext
15379 }; then
10068 ac_cv_lib_png_png_get_channels=yes 15380 ac_cv_lib_png_png_get_channels=yes
10069else 15381else
10070 ac_cv_lib_png_png_get_channels=no 15382 $as_echo "$as_me: failed program was:" >&5
15383sed 's/^/| /' conftest.$ac_ext >&5
15384
15385 ac_cv_lib_png_png_get_channels=no
10071fi 15386fi
10072rm -f core conftest.err conftest.$ac_objext \ 15387
10073 conftest$ac_exeext conftest.$ac_ext 15388rm -rf conftest.dSYM
15389rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15390 conftest$ac_exeext conftest.$ac_ext
10074LIBS=$ac_check_lib_save_LIBS 15391LIBS=$ac_check_lib_save_LIBS
10075fi 15392fi
10076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5 15393{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
10077$as_echo "$ac_cv_lib_png_png_get_channels" >&6; } 15394$as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10078if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then : 15395if test $ac_cv_lib_png_png_get_channels = yes; then
10079 HAVE_PNG=yes 15396 HAVE_PNG=yes
10080fi 15397fi
10081 15398
@@ -10084,7 +15401,9 @@ fi
10084 15401
10085 if test "${HAVE_PNG}" = "yes"; then 15402 if test "${HAVE_PNG}" = "yes"; then
10086 15403
10087$as_echo "#define HAVE_PNG 1" >>confdefs.h 15404cat >>confdefs.h <<\_ACEOF
15405#define HAVE_PNG 1
15406_ACEOF
10088 15407
10089 LIBPNG="-lpng -lz -lm" 15408 LIBPNG="-lpng -lz -lm"
10090 fi 15409 fi
@@ -10096,19 +15415,149 @@ HAVE_TIFF=no
10096LIBTIFF= 15415LIBTIFF=
10097if test "${HAVE_X11}" = "yes"; then 15416if test "${HAVE_X11}" = "yes"; then
10098 if test "${with_tiff}" != "no"; then 15417 if test "${with_tiff}" != "no"; then
10099 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" 15418 if test "${ac_cv_header_tiffio_h+set}" = set; then
10100if test "x$ac_cv_header_tiffio_h" = x""yes; then : 15419 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15420$as_echo_n "checking for tiffio.h... " >&6; }
15421if test "${ac_cv_header_tiffio_h+set}" = set; then
15422 $as_echo_n "(cached) " >&6
15423fi
15424{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15425$as_echo "$ac_cv_header_tiffio_h" >&6; }
15426else
15427 # Is the header compilable?
15428{ $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15429$as_echo_n "checking tiffio.h usability... " >&6; }
15430cat >conftest.$ac_ext <<_ACEOF
15431/* confdefs.h. */
15432_ACEOF
15433cat confdefs.h >>conftest.$ac_ext
15434cat >>conftest.$ac_ext <<_ACEOF
15435/* end confdefs.h. */
15436$ac_includes_default
15437#include <tiffio.h>
15438_ACEOF
15439rm -f conftest.$ac_objext
15440if { (ac_try="$ac_compile"
15441case "(($ac_try" in
15442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15443 *) ac_try_echo=$ac_try;;
15444esac
15445eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15446$as_echo "$ac_try_echo") >&5
15447 (eval "$ac_compile") 2>conftest.er1
15448 ac_status=$?
15449 grep -v '^ *+' conftest.er1 >conftest.err
15450 rm -f conftest.er1
15451 cat conftest.err >&5
15452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } && {
15454 test -z "$ac_c_werror_flag" ||
15455 test ! -s conftest.err
15456 } && test -s conftest.$ac_objext; then
15457 ac_header_compiler=yes
15458else
15459 $as_echo "$as_me: failed program was:" >&5
15460sed 's/^/| /' conftest.$ac_ext >&5
15461
15462 ac_header_compiler=no
15463fi
15464
15465rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15466{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15467$as_echo "$ac_header_compiler" >&6; }
15468
15469# Is the header present?
15470{ $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15471$as_echo_n "checking tiffio.h presence... " >&6; }
15472cat >conftest.$ac_ext <<_ACEOF
15473/* confdefs.h. */
15474_ACEOF
15475cat confdefs.h >>conftest.$ac_ext
15476cat >>conftest.$ac_ext <<_ACEOF
15477/* end confdefs.h. */
15478#include <tiffio.h>
15479_ACEOF
15480if { (ac_try="$ac_cpp conftest.$ac_ext"
15481case "(($ac_try" in
15482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15483 *) ac_try_echo=$ac_try;;
15484esac
15485eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15486$as_echo "$ac_try_echo") >&5
15487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15488 ac_status=$?
15489 grep -v '^ *+' conftest.er1 >conftest.err
15490 rm -f conftest.er1
15491 cat conftest.err >&5
15492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15493 (exit $ac_status); } >/dev/null && {
15494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15495 test ! -s conftest.err
15496 }; then
15497 ac_header_preproc=yes
15498else
15499 $as_echo "$as_me: failed program was:" >&5
15500sed 's/^/| /' conftest.$ac_ext >&5
15501
15502 ac_header_preproc=no
15503fi
15504
15505rm -f conftest.err conftest.$ac_ext
15506{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15507$as_echo "$ac_header_preproc" >&6; }
15508
15509# So? What about this header?
15510case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15511 yes:no: )
15512 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15513$as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15514 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15515$as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15516 ac_header_preproc=yes
15517 ;;
15518 no:yes:* )
15519 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15520$as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15521 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15522$as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15523 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15524$as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15525 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15526$as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15527 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15528$as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15529 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15530$as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15531
15532 ;;
15533esac
15534{ $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15535$as_echo_n "checking for tiffio.h... " >&6; }
15536if test "${ac_cv_header_tiffio_h+set}" = set; then
15537 $as_echo_n "(cached) " >&6
15538else
15539 ac_cv_header_tiffio_h=$ac_header_preproc
15540fi
15541{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15542$as_echo "$ac_cv_header_tiffio_h" >&6; }
15543
15544fi
15545if test $ac_cv_header_tiffio_h = yes; then
10101 tifflibs="-lz -lm" 15546 tifflibs="-lz -lm"
10102 # At least one tiff package requires the jpeg library. 15547 # At least one tiff package requires the jpeg library.
10103 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 15548 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5 15549 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
10105$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } 15550$as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10106if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then : 15551if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
10107 $as_echo_n "(cached) " >&6 15552 $as_echo_n "(cached) " >&6
10108else 15553else
10109 ac_check_lib_save_LIBS=$LIBS 15554 ac_check_lib_save_LIBS=$LIBS
10110LIBS="-ltiff $tifflibs $LIBS" 15555LIBS="-ltiff $tifflibs $LIBS"
10111cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15556cat >conftest.$ac_ext <<_ACEOF
15557/* confdefs.h. */
15558_ACEOF
15559cat confdefs.h >>conftest.$ac_ext
15560cat >>conftest.$ac_ext <<_ACEOF
10112/* end confdefs.h. */ 15561/* end confdefs.h. */
10113 15562
10114/* Override any GCC internal prototype to avoid an error. 15563/* Override any GCC internal prototype to avoid an error.
@@ -10126,18 +15575,43 @@ return TIFFGetVersion ();
10126 return 0; 15575 return 0;
10127} 15576}
10128_ACEOF 15577_ACEOF
10129if ac_fn_c_try_link "$LINENO"; then : 15578rm -f conftest.$ac_objext conftest$ac_exeext
15579if { (ac_try="$ac_link"
15580case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15583esac
15584eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15585$as_echo "$ac_try_echo") >&5
15586 (eval "$ac_link") 2>conftest.er1
15587 ac_status=$?
15588 grep -v '^ *+' conftest.er1 >conftest.err
15589 rm -f conftest.er1
15590 cat conftest.err >&5
15591 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15592 (exit $ac_status); } && {
15593 test -z "$ac_c_werror_flag" ||
15594 test ! -s conftest.err
15595 } && test -s conftest$ac_exeext && {
15596 test "$cross_compiling" = yes ||
15597 $as_test_x conftest$ac_exeext
15598 }; then
10130 ac_cv_lib_tiff_TIFFGetVersion=yes 15599 ac_cv_lib_tiff_TIFFGetVersion=yes
10131else 15600else
10132 ac_cv_lib_tiff_TIFFGetVersion=no 15601 $as_echo "$as_me: failed program was:" >&5
15602sed 's/^/| /' conftest.$ac_ext >&5
15603
15604 ac_cv_lib_tiff_TIFFGetVersion=no
10133fi 15605fi
10134rm -f core conftest.err conftest.$ac_objext \ 15606
10135 conftest$ac_exeext conftest.$ac_ext 15607rm -rf conftest.dSYM
15608rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15609 conftest$ac_exeext conftest.$ac_ext
10136LIBS=$ac_check_lib_save_LIBS 15610LIBS=$ac_check_lib_save_LIBS
10137fi 15611fi
10138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 15612{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10139$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } 15613$as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10140if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then : 15614if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
10141 HAVE_TIFF=yes 15615 HAVE_TIFF=yes
10142fi 15616fi
10143 15617
@@ -10148,7 +15622,9 @@ fi
10148 15622
10149 if test "${HAVE_TIFF}" = "yes"; then 15623 if test "${HAVE_TIFF}" = "yes"; then
10150 15624
10151$as_echo "#define HAVE_TIFF 1" >>confdefs.h 15625cat >>confdefs.h <<\_ACEOF
15626#define HAVE_TIFF 1
15627_ACEOF
10152 15628
10153 LIBTIFF=-ltiff 15629 LIBTIFF=-ltiff
10154 fi 15630 fi
@@ -10159,18 +15635,148 @@ fi
10159HAVE_GIF=no 15635HAVE_GIF=no
10160LIBGIF= 15636LIBGIF=
10161if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then 15637if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10162 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 15638 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10163if test "x$ac_cv_header_gif_lib_h" = x""yes; then : 15639 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15640$as_echo_n "checking for gif_lib.h... " >&6; }
15641if test "${ac_cv_header_gif_lib_h+set}" = set; then
15642 $as_echo_n "(cached) " >&6
15643fi
15644{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15645$as_echo "$ac_cv_header_gif_lib_h" >&6; }
15646else
15647 # Is the header compilable?
15648{ $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15649$as_echo_n "checking gif_lib.h usability... " >&6; }
15650cat >conftest.$ac_ext <<_ACEOF
15651/* confdefs.h. */
15652_ACEOF
15653cat confdefs.h >>conftest.$ac_ext
15654cat >>conftest.$ac_ext <<_ACEOF
15655/* end confdefs.h. */
15656$ac_includes_default
15657#include <gif_lib.h>
15658_ACEOF
15659rm -f conftest.$ac_objext
15660if { (ac_try="$ac_compile"
15661case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15664esac
15665eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15666$as_echo "$ac_try_echo") >&5
15667 (eval "$ac_compile") 2>conftest.er1
15668 ac_status=$?
15669 grep -v '^ *+' conftest.er1 >conftest.err
15670 rm -f conftest.er1
15671 cat conftest.err >&5
15672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15673 (exit $ac_status); } && {
15674 test -z "$ac_c_werror_flag" ||
15675 test ! -s conftest.err
15676 } && test -s conftest.$ac_objext; then
15677 ac_header_compiler=yes
15678else
15679 $as_echo "$as_me: failed program was:" >&5
15680sed 's/^/| /' conftest.$ac_ext >&5
15681
15682 ac_header_compiler=no
15683fi
15684
15685rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15686{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15687$as_echo "$ac_header_compiler" >&6; }
15688
15689# Is the header present?
15690{ $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15691$as_echo_n "checking gif_lib.h presence... " >&6; }
15692cat >conftest.$ac_ext <<_ACEOF
15693/* confdefs.h. */
15694_ACEOF
15695cat confdefs.h >>conftest.$ac_ext
15696cat >>conftest.$ac_ext <<_ACEOF
15697/* end confdefs.h. */
15698#include <gif_lib.h>
15699_ACEOF
15700if { (ac_try="$ac_cpp conftest.$ac_ext"
15701case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704esac
15705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15706$as_echo "$ac_try_echo") >&5
15707 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15708 ac_status=$?
15709 grep -v '^ *+' conftest.er1 >conftest.err
15710 rm -f conftest.er1
15711 cat conftest.err >&5
15712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713 (exit $ac_status); } >/dev/null && {
15714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15715 test ! -s conftest.err
15716 }; then
15717 ac_header_preproc=yes
15718else
15719 $as_echo "$as_me: failed program was:" >&5
15720sed 's/^/| /' conftest.$ac_ext >&5
15721
15722 ac_header_preproc=no
15723fi
15724
15725rm -f conftest.err conftest.$ac_ext
15726{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15727$as_echo "$ac_header_preproc" >&6; }
15728
15729# So? What about this header?
15730case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15731 yes:no: )
15732 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15733$as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15734 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15735$as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15736 ac_header_preproc=yes
15737 ;;
15738 no:yes:* )
15739 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15740$as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15741 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15742$as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15743 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15744$as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15745 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15746$as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15747 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15748$as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15749 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15750$as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15751
15752 ;;
15753esac
15754{ $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15755$as_echo_n "checking for gif_lib.h... " >&6; }
15756if test "${ac_cv_header_gif_lib_h+set}" = set; then
15757 $as_echo_n "(cached) " >&6
15758else
15759 ac_cv_header_gif_lib_h=$ac_header_preproc
15760fi
15761{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15762$as_echo "$ac_cv_header_gif_lib_h" >&6; }
15763
15764fi
15765if test $ac_cv_header_gif_lib_h = yes; then
10164 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. 15766 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10165# Earlier versions can crash Emacs. 15767# Earlier versions can crash Emacs.
10166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5 15768 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
10167$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } 15769$as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10168if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then : 15770if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
10169 $as_echo_n "(cached) " >&6 15771 $as_echo_n "(cached) " >&6
10170else 15772else
10171 ac_check_lib_save_LIBS=$LIBS 15773 ac_check_lib_save_LIBS=$LIBS
10172LIBS="-lgif $LIBS" 15774LIBS="-lgif $LIBS"
10173cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15775cat >conftest.$ac_ext <<_ACEOF
15776/* confdefs.h. */
15777_ACEOF
15778cat confdefs.h >>conftest.$ac_ext
15779cat >>conftest.$ac_ext <<_ACEOF
10174/* end confdefs.h. */ 15780/* end confdefs.h. */
10175 15781
10176/* Override any GCC internal prototype to avoid an error. 15782/* Override any GCC internal prototype to avoid an error.
@@ -10188,18 +15794,43 @@ return EGifPutExtensionLast ();
10188 return 0; 15794 return 0;
10189} 15795}
10190_ACEOF 15796_ACEOF
10191if ac_fn_c_try_link "$LINENO"; then : 15797rm -f conftest.$ac_objext conftest$ac_exeext
15798if { (ac_try="$ac_link"
15799case "(($ac_try" in
15800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15801 *) ac_try_echo=$ac_try;;
15802esac
15803eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15804$as_echo "$ac_try_echo") >&5
15805 (eval "$ac_link") 2>conftest.er1
15806 ac_status=$?
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
15810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } && {
15812 test -z "$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 } && test -s conftest$ac_exeext && {
15815 test "$cross_compiling" = yes ||
15816 $as_test_x conftest$ac_exeext
15817 }; then
10192 ac_cv_lib_gif_EGifPutExtensionLast=yes 15818 ac_cv_lib_gif_EGifPutExtensionLast=yes
10193else 15819else
10194 ac_cv_lib_gif_EGifPutExtensionLast=no 15820 $as_echo "$as_me: failed program was:" >&5
15821sed 's/^/| /' conftest.$ac_ext >&5
15822
15823 ac_cv_lib_gif_EGifPutExtensionLast=no
10195fi 15824fi
10196rm -f core conftest.err conftest.$ac_objext \ 15825
10197 conftest$ac_exeext conftest.$ac_ext 15826rm -rf conftest.dSYM
15827rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15828 conftest$ac_exeext conftest.$ac_ext
10198LIBS=$ac_check_lib_save_LIBS 15829LIBS=$ac_check_lib_save_LIBS
10199fi 15830fi
10200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 15831{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10201$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } 15832$as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10202if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then : 15833if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
10203 HAVE_GIF=yes 15834 HAVE_GIF=yes
10204else 15835else
10205 HAVE_GIF=maybe 15836 HAVE_GIF=maybe
@@ -10213,14 +15844,18 @@ fi
10213 LIBGIF=-lgif 15844 LIBGIF=-lgif
10214 elif test "$HAVE_GIF" = maybe; then 15845 elif test "$HAVE_GIF" = maybe; then
10215# If gif_lib.h but no libgif, try libungif. 15846# If gif_lib.h but no libgif, try libungif.
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5 15847 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
10217$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } 15848$as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10218if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then : 15849if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
10219 $as_echo_n "(cached) " >&6 15850 $as_echo_n "(cached) " >&6
10220else 15851else
10221 ac_check_lib_save_LIBS=$LIBS 15852 ac_check_lib_save_LIBS=$LIBS
10222LIBS="-lungif $LIBS" 15853LIBS="-lungif $LIBS"
10223cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15854cat >conftest.$ac_ext <<_ACEOF
15855/* confdefs.h. */
15856_ACEOF
15857cat confdefs.h >>conftest.$ac_ext
15858cat >>conftest.$ac_ext <<_ACEOF
10224/* end confdefs.h. */ 15859/* end confdefs.h. */
10225 15860
10226/* Override any GCC internal prototype to avoid an error. 15861/* Override any GCC internal prototype to avoid an error.
@@ -10238,18 +15873,43 @@ return EGifPutExtensionLast ();
10238 return 0; 15873 return 0;
10239} 15874}
10240_ACEOF 15875_ACEOF
10241if ac_fn_c_try_link "$LINENO"; then : 15876rm -f conftest.$ac_objext conftest$ac_exeext
15877if { (ac_try="$ac_link"
15878case "(($ac_try" in
15879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15880 *) ac_try_echo=$ac_try;;
15881esac
15882eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15883$as_echo "$ac_try_echo") >&5
15884 (eval "$ac_link") 2>conftest.er1
15885 ac_status=$?
15886 grep -v '^ *+' conftest.er1 >conftest.err
15887 rm -f conftest.er1
15888 cat conftest.err >&5
15889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15890 (exit $ac_status); } && {
15891 test -z "$ac_c_werror_flag" ||
15892 test ! -s conftest.err
15893 } && test -s conftest$ac_exeext && {
15894 test "$cross_compiling" = yes ||
15895 $as_test_x conftest$ac_exeext
15896 }; then
10242 ac_cv_lib_ungif_EGifPutExtensionLast=yes 15897 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10243else 15898else
10244 ac_cv_lib_ungif_EGifPutExtensionLast=no 15899 $as_echo "$as_me: failed program was:" >&5
15900sed 's/^/| /' conftest.$ac_ext >&5
15901
15902 ac_cv_lib_ungif_EGifPutExtensionLast=no
10245fi 15903fi
10246rm -f core conftest.err conftest.$ac_objext \ 15904
10247 conftest$ac_exeext conftest.$ac_ext 15905rm -rf conftest.dSYM
15906rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15907 conftest$ac_exeext conftest.$ac_ext
10248LIBS=$ac_check_lib_save_LIBS 15908LIBS=$ac_check_lib_save_LIBS
10249fi 15909fi
10250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 15910{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10251$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } 15911$as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10252if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then : 15912if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10253 HAVE_GIF=yes 15913 HAVE_GIF=yes
10254else 15914else
10255 HAVE_GIF=no 15915 HAVE_GIF=no
@@ -10260,7 +15920,9 @@ fi
10260 15920
10261 if test "${HAVE_GIF}" = "yes"; then 15921 if test "${HAVE_GIF}" = "yes"; then
10262 15922
10263$as_echo "#define HAVE_GIF 1" >>confdefs.h 15923cat >>confdefs.h <<\_ACEOF
15924#define HAVE_GIF 1
15925_ACEOF
10264 15926
10265 fi 15927 fi
10266fi 15928fi
@@ -10281,12 +15943,19 @@ if test "${HAVE_X11}" = "yes"; then
10281 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" 15943 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10282 15944
10283 if test "X${MISSING}" != X; then 15945 if test "X${MISSING}" != X; then
10284 as_fn_error "The following required libraries were not found: 15946 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
15947 $MISSING
15948Maybe some development libraries/packages are missing?
15949If you don't want to link with them give
15950 $WITH_NO
15951as options to configure" >&5
15952$as_echo "$as_me: error: The following required libraries were not found:
10285 $MISSING 15953 $MISSING
10286Maybe some development libraries/packages are missing? 15954Maybe some development libraries/packages are missing?
10287If you don't want to link with them give 15955If you don't want to link with them give
10288 $WITH_NO 15956 $WITH_NO
10289as options to configure" "$LINENO" 5 15957as options to configure" >&2;}
15958 { (exit 1); exit 1; }; }
10290 fi 15959 fi
10291fi 15960fi
10292 15961
@@ -10295,16 +15964,146 @@ HAVE_GPM=no
10295LIBGPM= 15964LIBGPM=
10296GPM_MOUSE_SUPPORT= 15965GPM_MOUSE_SUPPORT=
10297if test "${with_gpm}" != "no"; then 15966if test "${with_gpm}" != "no"; then
10298 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default" 15967 if test "${ac_cv_header_gpm_h+set}" = set; then
10299if test "x$ac_cv_header_gpm_h" = x""yes; then : 15968 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 15969$as_echo_n "checking for gpm.h... " >&6; }
15970if test "${ac_cv_header_gpm_h+set}" = set; then
15971 $as_echo_n "(cached) " >&6
15972fi
15973{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15974$as_echo "$ac_cv_header_gpm_h" >&6; }
15975else
15976 # Is the header compilable?
15977{ $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15978$as_echo_n "checking gpm.h usability... " >&6; }
15979cat >conftest.$ac_ext <<_ACEOF
15980/* confdefs.h. */
15981_ACEOF
15982cat confdefs.h >>conftest.$ac_ext
15983cat >>conftest.$ac_ext <<_ACEOF
15984/* end confdefs.h. */
15985$ac_includes_default
15986#include <gpm.h>
15987_ACEOF
15988rm -f conftest.$ac_objext
15989if { (ac_try="$ac_compile"
15990case "(($ac_try" in
15991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15992 *) ac_try_echo=$ac_try;;
15993esac
15994eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15995$as_echo "$ac_try_echo") >&5
15996 (eval "$ac_compile") 2>conftest.er1
15997 ac_status=$?
15998 grep -v '^ *+' conftest.er1 >conftest.err
15999 rm -f conftest.er1
16000 cat conftest.err >&5
16001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16002 (exit $ac_status); } && {
16003 test -z "$ac_c_werror_flag" ||
16004 test ! -s conftest.err
16005 } && test -s conftest.$ac_objext; then
16006 ac_header_compiler=yes
16007else
16008 $as_echo "$as_me: failed program was:" >&5
16009sed 's/^/| /' conftest.$ac_ext >&5
16010
16011 ac_header_compiler=no
16012fi
16013
16014rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16015{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16016$as_echo "$ac_header_compiler" >&6; }
16017
16018# Is the header present?
16019{ $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16020$as_echo_n "checking gpm.h presence... " >&6; }
16021cat >conftest.$ac_ext <<_ACEOF
16022/* confdefs.h. */
16023_ACEOF
16024cat confdefs.h >>conftest.$ac_ext
16025cat >>conftest.$ac_ext <<_ACEOF
16026/* end confdefs.h. */
16027#include <gpm.h>
16028_ACEOF
16029if { (ac_try="$ac_cpp conftest.$ac_ext"
16030case "(($ac_try" in
16031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16032 *) ac_try_echo=$ac_try;;
16033esac
16034eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16035$as_echo "$ac_try_echo") >&5
16036 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16037 ac_status=$?
16038 grep -v '^ *+' conftest.er1 >conftest.err
16039 rm -f conftest.er1
16040 cat conftest.err >&5
16041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16042 (exit $ac_status); } >/dev/null && {
16043 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16044 test ! -s conftest.err
16045 }; then
16046 ac_header_preproc=yes
16047else
16048 $as_echo "$as_me: failed program was:" >&5
16049sed 's/^/| /' conftest.$ac_ext >&5
16050
16051 ac_header_preproc=no
16052fi
16053
16054rm -f conftest.err conftest.$ac_ext
16055{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16056$as_echo "$ac_header_preproc" >&6; }
16057
16058# So? What about this header?
16059case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16060 yes:no: )
16061 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16062$as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16063 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16064$as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16065 ac_header_preproc=yes
16066 ;;
16067 no:yes:* )
16068 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16069$as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16070 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16071$as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16072 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16073$as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16074 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16075$as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16076 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16077$as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16078 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16079$as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16080
16081 ;;
16082esac
16083{ $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16084$as_echo_n "checking for gpm.h... " >&6; }
16085if test "${ac_cv_header_gpm_h+set}" = set; then
16086 $as_echo_n "(cached) " >&6
16087else
16088 ac_cv_header_gpm_h=$ac_header_preproc
16089fi
16090{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16091$as_echo "$ac_cv_header_gpm_h" >&6; }
16092
16093fi
16094if test $ac_cv_header_gpm_h = yes; then
16095 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
10301$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } 16096$as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10302if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then : 16097if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
10303 $as_echo_n "(cached) " >&6 16098 $as_echo_n "(cached) " >&6
10304else 16099else
10305 ac_check_lib_save_LIBS=$LIBS 16100 ac_check_lib_save_LIBS=$LIBS
10306LIBS="-lgpm $LIBS" 16101LIBS="-lgpm $LIBS"
10307cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16102cat >conftest.$ac_ext <<_ACEOF
16103/* confdefs.h. */
16104_ACEOF
16105cat confdefs.h >>conftest.$ac_ext
16106cat >>conftest.$ac_ext <<_ACEOF
10308/* end confdefs.h. */ 16107/* end confdefs.h. */
10309 16108
10310/* Override any GCC internal prototype to avoid an error. 16109/* Override any GCC internal prototype to avoid an error.
@@ -10322,18 +16121,43 @@ return Gpm_Open ();
10322 return 0; 16121 return 0;
10323} 16122}
10324_ACEOF 16123_ACEOF
10325if ac_fn_c_try_link "$LINENO"; then : 16124rm -f conftest.$ac_objext conftest$ac_exeext
16125if { (ac_try="$ac_link"
16126case "(($ac_try" in
16127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16128 *) ac_try_echo=$ac_try;;
16129esac
16130eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16131$as_echo "$ac_try_echo") >&5
16132 (eval "$ac_link") 2>conftest.er1
16133 ac_status=$?
16134 grep -v '^ *+' conftest.er1 >conftest.err
16135 rm -f conftest.er1
16136 cat conftest.err >&5
16137 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16138 (exit $ac_status); } && {
16139 test -z "$ac_c_werror_flag" ||
16140 test ! -s conftest.err
16141 } && test -s conftest$ac_exeext && {
16142 test "$cross_compiling" = yes ||
16143 $as_test_x conftest$ac_exeext
16144 }; then
10326 ac_cv_lib_gpm_Gpm_Open=yes 16145 ac_cv_lib_gpm_Gpm_Open=yes
10327else 16146else
10328 ac_cv_lib_gpm_Gpm_Open=no 16147 $as_echo "$as_me: failed program was:" >&5
16148sed 's/^/| /' conftest.$ac_ext >&5
16149
16150 ac_cv_lib_gpm_Gpm_Open=no
10329fi 16151fi
10330rm -f core conftest.err conftest.$ac_objext \ 16152
10331 conftest$ac_exeext conftest.$ac_ext 16153rm -rf conftest.dSYM
16154rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16155 conftest$ac_exeext conftest.$ac_ext
10332LIBS=$ac_check_lib_save_LIBS 16156LIBS=$ac_check_lib_save_LIBS
10333fi 16157fi
10334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 16158{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10335$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } 16159$as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10336if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then : 16160if test $ac_cv_lib_gpm_Gpm_Open = yes; then
10337 HAVE_GPM=yes 16161 HAVE_GPM=yes
10338fi 16162fi
10339 16163
@@ -10343,7 +16167,9 @@ fi
10343 16167
10344 if test "${HAVE_GPM}" = "yes"; then 16168 if test "${HAVE_GPM}" = "yes"; then
10345 16169
10346$as_echo "#define HAVE_GPM 1" >>confdefs.h 16170cat >>confdefs.h <<\_ACEOF
16171#define HAVE_GPM 1
16172_ACEOF
10347 16173
10348 LIBGPM=-lgpm 16174 LIBGPM=-lgpm
10349 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc" 16175 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc"
@@ -10352,10 +16178,138 @@ fi
10352 16178
10353 16179
10354 16180
10355ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" 16181if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
10356if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then : 16182 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16183$as_echo_n "checking for malloc/malloc.h... " >&6; }
16184if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16185 $as_echo_n "(cached) " >&6
16186fi
16187{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16188$as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16189else
16190 # Is the header compilable?
16191{ $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16192$as_echo_n "checking malloc/malloc.h usability... " >&6; }
16193cat >conftest.$ac_ext <<_ACEOF
16194/* confdefs.h. */
16195_ACEOF
16196cat confdefs.h >>conftest.$ac_ext
16197cat >>conftest.$ac_ext <<_ACEOF
16198/* end confdefs.h. */
16199$ac_includes_default
16200#include <malloc/malloc.h>
16201_ACEOF
16202rm -f conftest.$ac_objext
16203if { (ac_try="$ac_compile"
16204case "(($ac_try" in
16205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206 *) ac_try_echo=$ac_try;;
16207esac
16208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16209$as_echo "$ac_try_echo") >&5
16210 (eval "$ac_compile") 2>conftest.er1
16211 ac_status=$?
16212 grep -v '^ *+' conftest.er1 >conftest.err
16213 rm -f conftest.er1
16214 cat conftest.err >&5
16215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16216 (exit $ac_status); } && {
16217 test -z "$ac_c_werror_flag" ||
16218 test ! -s conftest.err
16219 } && test -s conftest.$ac_objext; then
16220 ac_header_compiler=yes
16221else
16222 $as_echo "$as_me: failed program was:" >&5
16223sed 's/^/| /' conftest.$ac_ext >&5
16224
16225 ac_header_compiler=no
16226fi
16227
16228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16229{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16230$as_echo "$ac_header_compiler" >&6; }
16231
16232# Is the header present?
16233{ $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16234$as_echo_n "checking malloc/malloc.h presence... " >&6; }
16235cat >conftest.$ac_ext <<_ACEOF
16236/* confdefs.h. */
16237_ACEOF
16238cat confdefs.h >>conftest.$ac_ext
16239cat >>conftest.$ac_ext <<_ACEOF
16240/* end confdefs.h. */
16241#include <malloc/malloc.h>
16242_ACEOF
16243if { (ac_try="$ac_cpp conftest.$ac_ext"
16244case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16247esac
16248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16249$as_echo "$ac_try_echo") >&5
16250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16251 ac_status=$?
16252 grep -v '^ *+' conftest.er1 >conftest.err
16253 rm -f conftest.er1
16254 cat conftest.err >&5
16255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16256 (exit $ac_status); } >/dev/null && {
16257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16259 }; then
16260 ac_header_preproc=yes
16261else
16262 $as_echo "$as_me: failed program was:" >&5
16263sed 's/^/| /' conftest.$ac_ext >&5
16264
16265 ac_header_preproc=no
16266fi
16267
16268rm -f conftest.err conftest.$ac_ext
16269{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16270$as_echo "$ac_header_preproc" >&6; }
10357 16271
10358$as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h 16272# So? What about this header?
16273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16274 yes:no: )
16275 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16276$as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16277 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16278$as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16279 ac_header_preproc=yes
16280 ;;
16281 no:yes:* )
16282 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16283$as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16284 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16285$as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16286 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16287$as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16288 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16289$as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16290 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16291$as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16292 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16293$as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16294
16295 ;;
16296esac
16297{ $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16298$as_echo_n "checking for malloc/malloc.h... " >&6; }
16299if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16300 $as_echo_n "(cached) " >&6
16301else
16302 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16303fi
16304{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16305$as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16306
16307fi
16308if test $ac_cv_header_malloc_malloc_h = yes; then
16309
16310cat >>confdefs.h <<\_ACEOF
16311#define HAVE_MALLOC_MALLOC_H 1
16312_ACEOF
10359 16313
10360fi 16314fi
10361 16315
@@ -10365,17 +16319,23 @@ C_SWITCH_X_SYSTEM=
10365### Use NeXTstep API to implement GUI. 16319### Use NeXTstep API to implement GUI.
10366if test "${HAVE_NS}" = "yes"; then 16320if test "${HAVE_NS}" = "yes"; then
10367 16321
10368$as_echo "#define HAVE_NS 1" >>confdefs.h 16322cat >>confdefs.h <<\_ACEOF
16323#define HAVE_NS 1
16324_ACEOF
10369 16325
10370 if test "${NS_IMPL_COCOA}" = "yes"; then 16326 if test "${NS_IMPL_COCOA}" = "yes"; then
10371 16327
10372$as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h 16328cat >>confdefs.h <<\_ACEOF
16329#define NS_IMPL_COCOA 1
16330_ACEOF
10373 16331
10374 GNU_OBJC_CFLAGS= 16332 GNU_OBJC_CFLAGS=
10375 fi 16333 fi
10376 if test "${NS_IMPL_GNUSTEP}" = "yes"; then 16334 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10377 16335
10378$as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h 16336cat >>confdefs.h <<\_ACEOF
16337#define NS_IMPL_GNUSTEP 1
16338_ACEOF
10379 16339
10380 # See also .m.o rule in Makefile.in */ 16340 # See also .m.o rule in Makefile.in */
10381 # FIXME: are all these flags really needed? Document here why. */ 16341 # FIXME: are all these flags really needed? Document here why. */
@@ -10384,7 +16344,9 @@ $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
10384 fi 16344 fi
10385 if test "${NS_HAVE_NSINTEGER}" = "yes"; then 16345 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10386 16346
10387$as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h 16347cat >>confdefs.h <<\_ACEOF
16348#define NS_HAVE_NSINTEGER 1
16349_ACEOF
10388 16350
10389 fi 16351 fi
10390 # We also have mouse menus. 16352 # We also have mouse menus.
@@ -10397,16 +16359,146 @@ fi
10397HAVE_X_SM=no 16359HAVE_X_SM=no
10398LIBXSM= 16360LIBXSM=
10399if test "${HAVE_X11}" = "yes"; then 16361if test "${HAVE_X11}" = "yes"; then
10400 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 16362 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10401if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : 16363 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 16364$as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16365if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16366 $as_echo_n "(cached) " >&6
16367fi
16368{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16369$as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16370else
16371 # Is the header compilable?
16372{ $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16373$as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16374cat >conftest.$ac_ext <<_ACEOF
16375/* confdefs.h. */
16376_ACEOF
16377cat confdefs.h >>conftest.$ac_ext
16378cat >>conftest.$ac_ext <<_ACEOF
16379/* end confdefs.h. */
16380$ac_includes_default
16381#include <X11/SM/SMlib.h>
16382_ACEOF
16383rm -f conftest.$ac_objext
16384if { (ac_try="$ac_compile"
16385case "(($ac_try" in
16386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16387 *) ac_try_echo=$ac_try;;
16388esac
16389eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16390$as_echo "$ac_try_echo") >&5
16391 (eval "$ac_compile") 2>conftest.er1
16392 ac_status=$?
16393 grep -v '^ *+' conftest.er1 >conftest.err
16394 rm -f conftest.er1
16395 cat conftest.err >&5
16396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16397 (exit $ac_status); } && {
16398 test -z "$ac_c_werror_flag" ||
16399 test ! -s conftest.err
16400 } && test -s conftest.$ac_objext; then
16401 ac_header_compiler=yes
16402else
16403 $as_echo "$as_me: failed program was:" >&5
16404sed 's/^/| /' conftest.$ac_ext >&5
16405
16406 ac_header_compiler=no
16407fi
16408
16409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16410{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16411$as_echo "$ac_header_compiler" >&6; }
16412
16413# Is the header present?
16414{ $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16415$as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16416cat >conftest.$ac_ext <<_ACEOF
16417/* confdefs.h. */
16418_ACEOF
16419cat confdefs.h >>conftest.$ac_ext
16420cat >>conftest.$ac_ext <<_ACEOF
16421/* end confdefs.h. */
16422#include <X11/SM/SMlib.h>
16423_ACEOF
16424if { (ac_try="$ac_cpp conftest.$ac_ext"
16425case "(($ac_try" in
16426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16427 *) ac_try_echo=$ac_try;;
16428esac
16429eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16430$as_echo "$ac_try_echo") >&5
16431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16432 ac_status=$?
16433 grep -v '^ *+' conftest.er1 >conftest.err
16434 rm -f conftest.er1
16435 cat conftest.err >&5
16436 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437 (exit $ac_status); } >/dev/null && {
16438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16439 test ! -s conftest.err
16440 }; then
16441 ac_header_preproc=yes
16442else
16443 $as_echo "$as_me: failed program was:" >&5
16444sed 's/^/| /' conftest.$ac_ext >&5
16445
16446 ac_header_preproc=no
16447fi
16448
16449rm -f conftest.err conftest.$ac_ext
16450{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16451$as_echo "$ac_header_preproc" >&6; }
16452
16453# So? What about this header?
16454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16455 yes:no: )
16456 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16457$as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16458 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16459$as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16460 ac_header_preproc=yes
16461 ;;
16462 no:yes:* )
16463 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16464$as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16465 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16466$as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16467 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16468$as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16469 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16470$as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16471 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16472$as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16473 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16474$as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16475
16476 ;;
16477esac
16478{ $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16479$as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16480if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16481 $as_echo_n "(cached) " >&6
16482else
16483 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16484fi
16485{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16486$as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16487
16488fi
16489if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16490 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10403$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } 16491$as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10404if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then : 16492if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10405 $as_echo_n "(cached) " >&6 16493 $as_echo_n "(cached) " >&6
10406else 16494else
10407 ac_check_lib_save_LIBS=$LIBS 16495 ac_check_lib_save_LIBS=$LIBS
10408LIBS="-lSM -lICE $LIBS" 16496LIBS="-lSM -lICE $LIBS"
10409cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16497cat >conftest.$ac_ext <<_ACEOF
16498/* confdefs.h. */
16499_ACEOF
16500cat confdefs.h >>conftest.$ac_ext
16501cat >>conftest.$ac_ext <<_ACEOF
10410/* end confdefs.h. */ 16502/* end confdefs.h. */
10411 16503
10412/* Override any GCC internal prototype to avoid an error. 16504/* Override any GCC internal prototype to avoid an error.
@@ -10424,18 +16516,43 @@ return SmcOpenConnection ();
10424 return 0; 16516 return 0;
10425} 16517}
10426_ACEOF 16518_ACEOF
10427if ac_fn_c_try_link "$LINENO"; then : 16519rm -f conftest.$ac_objext conftest$ac_exeext
16520if { (ac_try="$ac_link"
16521case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16524esac
16525eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16526$as_echo "$ac_try_echo") >&5
16527 (eval "$ac_link") 2>conftest.er1
16528 ac_status=$?
16529 grep -v '^ *+' conftest.er1 >conftest.err
16530 rm -f conftest.er1
16531 cat conftest.err >&5
16532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533 (exit $ac_status); } && {
16534 test -z "$ac_c_werror_flag" ||
16535 test ! -s conftest.err
16536 } && test -s conftest$ac_exeext && {
16537 test "$cross_compiling" = yes ||
16538 $as_test_x conftest$ac_exeext
16539 }; then
10428 ac_cv_lib_SM_SmcOpenConnection=yes 16540 ac_cv_lib_SM_SmcOpenConnection=yes
10429else 16541else
10430 ac_cv_lib_SM_SmcOpenConnection=no 16542 $as_echo "$as_me: failed program was:" >&5
16543sed 's/^/| /' conftest.$ac_ext >&5
16544
16545 ac_cv_lib_SM_SmcOpenConnection=no
10431fi 16546fi
10432rm -f core conftest.err conftest.$ac_objext \ 16547
10433 conftest$ac_exeext conftest.$ac_ext 16548rm -rf conftest.dSYM
16549rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16550 conftest$ac_exeext conftest.$ac_ext
10434LIBS=$ac_check_lib_save_LIBS 16551LIBS=$ac_check_lib_save_LIBS
10435fi 16552fi
10436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 16553{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10437$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } 16554$as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10438if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then : 16555if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10439 HAVE_X_SM=yes 16556 HAVE_X_SM=yes
10440fi 16557fi
10441 16558
@@ -10445,7 +16562,9 @@ fi
10445 16562
10446 if test "${HAVE_X_SM}" = "yes"; then 16563 if test "${HAVE_X_SM}" = "yes"; then
10447 16564
10448$as_echo "#define HAVE_X_SM 1" >>confdefs.h 16565cat >>confdefs.h <<\_ACEOF
16566#define HAVE_X_SM 1
16567_ACEOF
10449 16568
10450 LIBXSM="-lSM -lICE" 16569 LIBXSM="-lSM -lICE"
10451 case "$LIBS" in 16570 case "$LIBS" in
@@ -10457,12 +16576,16 @@ fi
10457 16576
10458 16577
10459# If netdb.h doesn't declare h_errno, we must declare it by hand. 16578# If netdb.h doesn't declare h_errno, we must declare it by hand.
10460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 16579{ $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10461$as_echo_n "checking whether netdb declares h_errno... " >&6; } 16580$as_echo_n "checking whether netdb declares h_errno... " >&6; }
10462if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then : 16581if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10463 $as_echo_n "(cached) " >&6 16582 $as_echo_n "(cached) " >&6
10464else 16583else
10465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16584 cat >conftest.$ac_ext <<_ACEOF
16585/* confdefs.h. */
16586_ACEOF
16587cat confdefs.h >>conftest.$ac_ext
16588cat >>conftest.$ac_ext <<_ACEOF
10466/* end confdefs.h. */ 16589/* end confdefs.h. */
10467#include <netdb.h> 16590#include <netdb.h>
10468int 16591int
@@ -10473,30 +16596,61 @@ return h_errno;
10473 return 0; 16596 return 0;
10474} 16597}
10475_ACEOF 16598_ACEOF
10476if ac_fn_c_try_link "$LINENO"; then : 16599rm -f conftest.$ac_objext conftest$ac_exeext
16600if { (ac_try="$ac_link"
16601case "(($ac_try" in
16602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16603 *) ac_try_echo=$ac_try;;
16604esac
16605eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16606$as_echo "$ac_try_echo") >&5
16607 (eval "$ac_link") 2>conftest.er1
16608 ac_status=$?
16609 grep -v '^ *+' conftest.er1 >conftest.err
16610 rm -f conftest.er1
16611 cat conftest.err >&5
16612 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16613 (exit $ac_status); } && {
16614 test -z "$ac_c_werror_flag" ||
16615 test ! -s conftest.err
16616 } && test -s conftest$ac_exeext && {
16617 test "$cross_compiling" = yes ||
16618 $as_test_x conftest$ac_exeext
16619 }; then
10477 emacs_cv_netdb_declares_h_errno=yes 16620 emacs_cv_netdb_declares_h_errno=yes
10478else 16621else
10479 emacs_cv_netdb_declares_h_errno=no 16622 $as_echo "$as_me: failed program was:" >&5
16623sed 's/^/| /' conftest.$ac_ext >&5
16624
16625 emacs_cv_netdb_declares_h_errno=no
10480fi 16626fi
10481rm -f core conftest.err conftest.$ac_objext \ 16627
10482 conftest$ac_exeext conftest.$ac_ext 16628rm -rf conftest.dSYM
16629rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16630 conftest$ac_exeext conftest.$ac_ext
10483fi 16631fi
10484{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5 16632{ $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10485$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } 16633$as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10486if test $emacs_cv_netdb_declares_h_errno = yes; then 16634if test $emacs_cv_netdb_declares_h_errno = yes; then
10487 16635
10488$as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h 16636cat >>confdefs.h <<\_ACEOF
16637#define HAVE_H_ERRNO 1
16638_ACEOF
10489 16639
10490fi 16640fi
10491 16641
10492# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16642# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10493# for constant arguments. Useless! 16643# for constant arguments. Useless!
10494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16644{ $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
10495$as_echo_n "checking for working alloca.h... " >&6; } 16645$as_echo_n "checking for working alloca.h... " >&6; }
10496if test "${ac_cv_working_alloca_h+set}" = set; then : 16646if test "${ac_cv_working_alloca_h+set}" = set; then
10497 $as_echo_n "(cached) " >&6 16647 $as_echo_n "(cached) " >&6
10498else 16648else
10499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16649 cat >conftest.$ac_ext <<_ACEOF
16650/* confdefs.h. */
16651_ACEOF
16652cat confdefs.h >>conftest.$ac_ext
16653cat >>conftest.$ac_ext <<_ACEOF
10500/* end confdefs.h. */ 16654/* end confdefs.h. */
10501#include <alloca.h> 16655#include <alloca.h>
10502int 16656int
@@ -10508,28 +16662,59 @@ char *p = (char *) alloca (2 * sizeof (int));
10508 return 0; 16662 return 0;
10509} 16663}
10510_ACEOF 16664_ACEOF
10511if ac_fn_c_try_link "$LINENO"; then : 16665rm -f conftest.$ac_objext conftest$ac_exeext
16666if { (ac_try="$ac_link"
16667case "(($ac_try" in
16668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16669 *) ac_try_echo=$ac_try;;
16670esac
16671eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16672$as_echo "$ac_try_echo") >&5
16673 (eval "$ac_link") 2>conftest.er1
16674 ac_status=$?
16675 grep -v '^ *+' conftest.er1 >conftest.err
16676 rm -f conftest.er1
16677 cat conftest.err >&5
16678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16679 (exit $ac_status); } && {
16680 test -z "$ac_c_werror_flag" ||
16681 test ! -s conftest.err
16682 } && test -s conftest$ac_exeext && {
16683 test "$cross_compiling" = yes ||
16684 $as_test_x conftest$ac_exeext
16685 }; then
10512 ac_cv_working_alloca_h=yes 16686 ac_cv_working_alloca_h=yes
10513else 16687else
10514 ac_cv_working_alloca_h=no 16688 $as_echo "$as_me: failed program was:" >&5
16689sed 's/^/| /' conftest.$ac_ext >&5
16690
16691 ac_cv_working_alloca_h=no
10515fi 16692fi
10516rm -f core conftest.err conftest.$ac_objext \ 16693
10517 conftest$ac_exeext conftest.$ac_ext 16694rm -rf conftest.dSYM
16695rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16696 conftest$ac_exeext conftest.$ac_ext
10518fi 16697fi
10519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16698{ $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10520$as_echo "$ac_cv_working_alloca_h" >&6; } 16699$as_echo "$ac_cv_working_alloca_h" >&6; }
10521if test $ac_cv_working_alloca_h = yes; then 16700if test $ac_cv_working_alloca_h = yes; then
10522 16701
10523$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16702cat >>confdefs.h <<\_ACEOF
16703#define HAVE_ALLOCA_H 1
16704_ACEOF
10524 16705
10525fi 16706fi
10526 16707
10527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16708{ $as_echo "$as_me:$LINENO: checking for alloca" >&5
10528$as_echo_n "checking for alloca... " >&6; } 16709$as_echo_n "checking for alloca... " >&6; }
10529if test "${ac_cv_func_alloca_works+set}" = set; then : 16710if test "${ac_cv_func_alloca_works+set}" = set; then
10530 $as_echo_n "(cached) " >&6 16711 $as_echo_n "(cached) " >&6
10531else 16712else
10532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16713 cat >conftest.$ac_ext <<_ACEOF
16714/* confdefs.h. */
16715_ACEOF
16716cat confdefs.h >>conftest.$ac_ext
16717cat >>conftest.$ac_ext <<_ACEOF
10533/* end confdefs.h. */ 16718/* end confdefs.h. */
10534#ifdef __GNUC__ 16719#ifdef __GNUC__
10535# define alloca __builtin_alloca 16720# define alloca __builtin_alloca
@@ -10561,20 +16746,47 @@ char *p = (char *) alloca (1);
10561 return 0; 16746 return 0;
10562} 16747}
10563_ACEOF 16748_ACEOF
10564if ac_fn_c_try_link "$LINENO"; then : 16749rm -f conftest.$ac_objext conftest$ac_exeext
16750if { (ac_try="$ac_link"
16751case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16754esac
16755eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16756$as_echo "$ac_try_echo") >&5
16757 (eval "$ac_link") 2>conftest.er1
16758 ac_status=$?
16759 grep -v '^ *+' conftest.er1 >conftest.err
16760 rm -f conftest.er1
16761 cat conftest.err >&5
16762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16763 (exit $ac_status); } && {
16764 test -z "$ac_c_werror_flag" ||
16765 test ! -s conftest.err
16766 } && test -s conftest$ac_exeext && {
16767 test "$cross_compiling" = yes ||
16768 $as_test_x conftest$ac_exeext
16769 }; then
10565 ac_cv_func_alloca_works=yes 16770 ac_cv_func_alloca_works=yes
10566else 16771else
10567 ac_cv_func_alloca_works=no 16772 $as_echo "$as_me: failed program was:" >&5
16773sed 's/^/| /' conftest.$ac_ext >&5
16774
16775 ac_cv_func_alloca_works=no
10568fi 16776fi
10569rm -f core conftest.err conftest.$ac_objext \ 16777
10570 conftest$ac_exeext conftest.$ac_ext 16778rm -rf conftest.dSYM
16779rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16780 conftest$ac_exeext conftest.$ac_ext
10571fi 16781fi
10572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16782{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10573$as_echo "$ac_cv_func_alloca_works" >&6; } 16783$as_echo "$ac_cv_func_alloca_works" >&6; }
10574 16784
10575if test $ac_cv_func_alloca_works = yes; then 16785if test $ac_cv_func_alloca_works = yes; then
10576 16786
10577$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16787cat >>confdefs.h <<\_ACEOF
16788#define HAVE_ALLOCA 1
16789_ACEOF
10578 16790
10579else 16791else
10580 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16792 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
@@ -10584,15 +16796,21 @@ else
10584 16796
10585ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16797ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10586 16798
10587$as_echo "#define C_ALLOCA 1" >>confdefs.h 16799cat >>confdefs.h <<\_ACEOF
16800#define C_ALLOCA 1
16801_ACEOF
10588 16802
10589 16803
10590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 16804{ $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10591$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 16805$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10592if test "${ac_cv_os_cray+set}" = set; then : 16806if test "${ac_cv_os_cray+set}" = set; then
10593 $as_echo_n "(cached) " >&6 16807 $as_echo_n "(cached) " >&6
10594else 16808else
10595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16809 cat >conftest.$ac_ext <<_ACEOF
16810/* confdefs.h. */
16811_ACEOF
16812cat confdefs.h >>conftest.$ac_ext
16813cat >>conftest.$ac_ext <<_ACEOF
10596/* end confdefs.h. */ 16814/* end confdefs.h. */
10597#if defined CRAY && ! defined CRAY2 16815#if defined CRAY && ! defined CRAY2
10598webecray 16816webecray
@@ -10602,7 +16820,7 @@ wenotbecray
10602 16820
10603_ACEOF 16821_ACEOF
10604if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16822if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10605 $EGREP "webecray" >/dev/null 2>&1; then : 16823 $EGREP "webecray" >/dev/null 2>&1; then
10606 ac_cv_os_cray=yes 16824 ac_cv_os_cray=yes
10607else 16825else
10608 ac_cv_os_cray=no 16826 ac_cv_os_cray=no
@@ -10610,14 +16828,100 @@ fi
10610rm -f conftest* 16828rm -f conftest*
10611 16829
10612fi 16830fi
10613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 16831{ $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10614$as_echo "$ac_cv_os_cray" >&6; } 16832$as_echo "$ac_cv_os_cray" >&6; }
10615if test $ac_cv_os_cray = yes; then 16833if test $ac_cv_os_cray = yes; then
10616 for ac_func in _getb67 GETB67 getb67; do 16834 for ac_func in _getb67 GETB67 getb67; do
10617 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16835 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10618ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16836{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10619eval as_val=\$$as_ac_var 16837$as_echo_n "checking for $ac_func... " >&6; }
10620 if test "x$as_val" = x""yes; then : 16838if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16839 $as_echo_n "(cached) " >&6
16840else
16841 cat >conftest.$ac_ext <<_ACEOF
16842/* confdefs.h. */
16843_ACEOF
16844cat confdefs.h >>conftest.$ac_ext
16845cat >>conftest.$ac_ext <<_ACEOF
16846/* end confdefs.h. */
16847/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16849#define $ac_func innocuous_$ac_func
16850
16851/* System header to define __stub macros and hopefully few prototypes,
16852 which can conflict with char $ac_func (); below.
16853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16854 <limits.h> exists even on freestanding compilers. */
16855
16856#ifdef __STDC__
16857# include <limits.h>
16858#else
16859# include <assert.h>
16860#endif
16861
16862#undef $ac_func
16863
16864/* Override any GCC internal prototype to avoid an error.
16865 Use char because int might match the return type of a GCC
16866 builtin and then its argument prototype would still apply. */
16867#ifdef __cplusplus
16868extern "C"
16869#endif
16870char $ac_func ();
16871/* The GNU C library defines this for functions which it implements
16872 to always fail with ENOSYS. Some functions are actually named
16873 something starting with __ and the normal name is an alias. */
16874#if defined __stub_$ac_func || defined __stub___$ac_func
16875choke me
16876#endif
16877
16878int
16879main ()
16880{
16881return $ac_func ();
16882 ;
16883 return 0;
16884}
16885_ACEOF
16886rm -f conftest.$ac_objext conftest$ac_exeext
16887if { (ac_try="$ac_link"
16888case "(($ac_try" in
16889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16890 *) ac_try_echo=$ac_try;;
16891esac
16892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16893$as_echo "$ac_try_echo") >&5
16894 (eval "$ac_link") 2>conftest.er1
16895 ac_status=$?
16896 grep -v '^ *+' conftest.er1 >conftest.err
16897 rm -f conftest.er1
16898 cat conftest.err >&5
16899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16900 (exit $ac_status); } && {
16901 test -z "$ac_c_werror_flag" ||
16902 test ! -s conftest.err
16903 } && test -s conftest$ac_exeext && {
16904 test "$cross_compiling" = yes ||
16905 $as_test_x conftest$ac_exeext
16906 }; then
16907 eval "$as_ac_var=yes"
16908else
16909 $as_echo "$as_me: failed program was:" >&5
16910sed 's/^/| /' conftest.$ac_ext >&5
16911
16912 eval "$as_ac_var=no"
16913fi
16914
16915rm -rf conftest.dSYM
16916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16917 conftest$ac_exeext conftest.$ac_ext
16918fi
16919ac_res=`eval 'as_val=${'$as_ac_var'}
16920 $as_echo "$as_val"'`
16921 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16922$as_echo "$ac_res" >&6; }
16923if test `eval 'as_val=${'$as_ac_var'}
16924 $as_echo "$as_val"'` = yes; then
10621 16925
10622cat >>confdefs.h <<_ACEOF 16926cat >>confdefs.h <<_ACEOF
10623#define CRAY_STACKSEG_END $ac_func 16927#define CRAY_STACKSEG_END $ac_func
@@ -10629,15 +16933,19 @@ fi
10629 done 16933 done
10630fi 16934fi
10631 16935
10632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16936{ $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10633$as_echo_n "checking stack direction for C alloca... " >&6; } 16937$as_echo_n "checking stack direction for C alloca... " >&6; }
10634if test "${ac_cv_c_stack_direction+set}" = set; then : 16938if test "${ac_cv_c_stack_direction+set}" = set; then
10635 $as_echo_n "(cached) " >&6 16939 $as_echo_n "(cached) " >&6
10636else 16940else
10637 if test "$cross_compiling" = yes; then : 16941 if test "$cross_compiling" = yes; then
10638 ac_cv_c_stack_direction=0 16942 ac_cv_c_stack_direction=0
10639else 16943else
10640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16944 cat >conftest.$ac_ext <<_ACEOF
16945/* confdefs.h. */
16946_ACEOF
16947cat confdefs.h >>conftest.$ac_ext
16948cat >>conftest.$ac_ext <<_ACEOF
10641/* end confdefs.h. */ 16949/* end confdefs.h. */
10642$ac_includes_default 16950$ac_includes_default
10643int 16951int
@@ -10660,18 +16968,46 @@ main ()
10660 return find_stack_direction () < 0; 16968 return find_stack_direction () < 0;
10661} 16969}
10662_ACEOF 16970_ACEOF
10663if ac_fn_c_try_run "$LINENO"; then : 16971rm -f conftest$ac_exeext
16972if { (ac_try="$ac_link"
16973case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16976esac
16977eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16978$as_echo "$ac_try_echo") >&5
16979 (eval "$ac_link") 2>&5
16980 ac_status=$?
16981 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16983 { (case "(($ac_try" in
16984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16985 *) ac_try_echo=$ac_try;;
16986esac
16987eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16988$as_echo "$ac_try_echo") >&5
16989 (eval "$ac_try") 2>&5
16990 ac_status=$?
16991 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); }; }; then
10664 ac_cv_c_stack_direction=1 16993 ac_cv_c_stack_direction=1
10665else 16994else
10666 ac_cv_c_stack_direction=-1 16995 $as_echo "$as_me: program exited with status $ac_status" >&5
16996$as_echo "$as_me: failed program was:" >&5
16997sed 's/^/| /' conftest.$ac_ext >&5
16998
16999( exit $ac_status )
17000ac_cv_c_stack_direction=-1
10667fi 17001fi
10668rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17002rm -rf conftest.dSYM
10669 conftest.$ac_objext conftest.beam conftest.$ac_ext 17003rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10670fi 17004fi
10671 17005
17006
10672fi 17007fi
10673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 17008{ $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10674$as_echo "$ac_cv_c_stack_direction" >&6; } 17009$as_echo "$ac_cv_c_stack_direction" >&6; }
17010
10675cat >>confdefs.h <<_ACEOF 17011cat >>confdefs.h <<_ACEOF
10676#define STACK_DIRECTION $ac_cv_c_stack_direction 17012#define STACK_DIRECTION $ac_cv_c_stack_direction
10677_ACEOF 17013_ACEOF
@@ -10681,19 +17017,26 @@ fi
10681 17017
10682 17018
10683if test x"$ac_cv_func_alloca_works" != xyes; then 17019if test x"$ac_cv_func_alloca_works" != xyes; then
10684 as_fn_error "a system implementation of alloca is required " "$LINENO" 5 17020 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
17021$as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
17022 { (exit 1); exit 1; }; }
10685fi 17023fi
10686 17024
10687# fmod, logb, and frexp are found in -lm on most systems. 17025# fmod, logb, and frexp are found in -lm on most systems.
10688# On HPUX 9.01, -lm does not contain logb, so check for sqrt. 17026# On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10689{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 17027
17028{ $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10690$as_echo_n "checking for sqrt in -lm... " >&6; } 17029$as_echo_n "checking for sqrt in -lm... " >&6; }
10691if test "${ac_cv_lib_m_sqrt+set}" = set; then : 17030if test "${ac_cv_lib_m_sqrt+set}" = set; then
10692 $as_echo_n "(cached) " >&6 17031 $as_echo_n "(cached) " >&6
10693else 17032else
10694 ac_check_lib_save_LIBS=$LIBS 17033 ac_check_lib_save_LIBS=$LIBS
10695LIBS="-lm $LIBS" 17034LIBS="-lm $LIBS"
10696cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17035cat >conftest.$ac_ext <<_ACEOF
17036/* confdefs.h. */
17037_ACEOF
17038cat confdefs.h >>conftest.$ac_ext
17039cat >>conftest.$ac_ext <<_ACEOF
10697/* end confdefs.h. */ 17040/* end confdefs.h. */
10698 17041
10699/* Override any GCC internal prototype to avoid an error. 17042/* Override any GCC internal prototype to avoid an error.
@@ -10711,18 +17054,43 @@ return sqrt ();
10711 return 0; 17054 return 0;
10712} 17055}
10713_ACEOF 17056_ACEOF
10714if ac_fn_c_try_link "$LINENO"; then : 17057rm -f conftest.$ac_objext conftest$ac_exeext
17058if { (ac_try="$ac_link"
17059case "(($ac_try" in
17060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17061 *) ac_try_echo=$ac_try;;
17062esac
17063eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17064$as_echo "$ac_try_echo") >&5
17065 (eval "$ac_link") 2>conftest.er1
17066 ac_status=$?
17067 grep -v '^ *+' conftest.er1 >conftest.err
17068 rm -f conftest.er1
17069 cat conftest.err >&5
17070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17071 (exit $ac_status); } && {
17072 test -z "$ac_c_werror_flag" ||
17073 test ! -s conftest.err
17074 } && test -s conftest$ac_exeext && {
17075 test "$cross_compiling" = yes ||
17076 $as_test_x conftest$ac_exeext
17077 }; then
10715 ac_cv_lib_m_sqrt=yes 17078 ac_cv_lib_m_sqrt=yes
10716else 17079else
10717 ac_cv_lib_m_sqrt=no 17080 $as_echo "$as_me: failed program was:" >&5
17081sed 's/^/| /' conftest.$ac_ext >&5
17082
17083 ac_cv_lib_m_sqrt=no
10718fi 17084fi
10719rm -f core conftest.err conftest.$ac_objext \ 17085
10720 conftest$ac_exeext conftest.$ac_ext 17086rm -rf conftest.dSYM
17087rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17088 conftest$ac_exeext conftest.$ac_ext
10721LIBS=$ac_check_lib_save_LIBS 17089LIBS=$ac_check_lib_save_LIBS
10722fi 17090fi
10723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 17091{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10724$as_echo "$ac_cv_lib_m_sqrt" >&6; } 17092$as_echo "$ac_cv_lib_m_sqrt" >&6; }
10725if test "x$ac_cv_lib_m_sqrt" = x""yes; then : 17093if test $ac_cv_lib_m_sqrt = yes; then
10726 cat >>confdefs.h <<_ACEOF 17094 cat >>confdefs.h <<_ACEOF
10727#define HAVE_LIBM 1 17095#define HAVE_LIBM 1
10728_ACEOF 17096_ACEOF
@@ -10734,14 +17102,18 @@ fi
10734 17102
10735# Check for mail-locking functions in a "mail" library. Probably this should 17103# Check for mail-locking functions in a "mail" library. Probably this should
10736# have the same check as for liblockfile below. 17104# have the same check as for liblockfile below.
10737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5 17105{ $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10738$as_echo_n "checking for maillock in -lmail... " >&6; } 17106$as_echo_n "checking for maillock in -lmail... " >&6; }
10739if test "${ac_cv_lib_mail_maillock+set}" = set; then : 17107if test "${ac_cv_lib_mail_maillock+set}" = set; then
10740 $as_echo_n "(cached) " >&6 17108 $as_echo_n "(cached) " >&6
10741else 17109else
10742 ac_check_lib_save_LIBS=$LIBS 17110 ac_check_lib_save_LIBS=$LIBS
10743LIBS="-lmail $LIBS" 17111LIBS="-lmail $LIBS"
10744cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17112cat >conftest.$ac_ext <<_ACEOF
17113/* confdefs.h. */
17114_ACEOF
17115cat confdefs.h >>conftest.$ac_ext
17116cat >>conftest.$ac_ext <<_ACEOF
10745/* end confdefs.h. */ 17117/* end confdefs.h. */
10746 17118
10747/* Override any GCC internal prototype to avoid an error. 17119/* Override any GCC internal prototype to avoid an error.
@@ -10759,18 +17131,43 @@ return maillock ();
10759 return 0; 17131 return 0;
10760} 17132}
10761_ACEOF 17133_ACEOF
10762if ac_fn_c_try_link "$LINENO"; then : 17134rm -f conftest.$ac_objext conftest$ac_exeext
17135if { (ac_try="$ac_link"
17136case "(($ac_try" in
17137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17138 *) ac_try_echo=$ac_try;;
17139esac
17140eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17141$as_echo "$ac_try_echo") >&5
17142 (eval "$ac_link") 2>conftest.er1
17143 ac_status=$?
17144 grep -v '^ *+' conftest.er1 >conftest.err
17145 rm -f conftest.er1
17146 cat conftest.err >&5
17147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17148 (exit $ac_status); } && {
17149 test -z "$ac_c_werror_flag" ||
17150 test ! -s conftest.err
17151 } && test -s conftest$ac_exeext && {
17152 test "$cross_compiling" = yes ||
17153 $as_test_x conftest$ac_exeext
17154 }; then
10763 ac_cv_lib_mail_maillock=yes 17155 ac_cv_lib_mail_maillock=yes
10764else 17156else
10765 ac_cv_lib_mail_maillock=no 17157 $as_echo "$as_me: failed program was:" >&5
17158sed 's/^/| /' conftest.$ac_ext >&5
17159
17160 ac_cv_lib_mail_maillock=no
10766fi 17161fi
10767rm -f core conftest.err conftest.$ac_objext \ 17162
10768 conftest$ac_exeext conftest.$ac_ext 17163rm -rf conftest.dSYM
17164rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17165 conftest$ac_exeext conftest.$ac_ext
10769LIBS=$ac_check_lib_save_LIBS 17166LIBS=$ac_check_lib_save_LIBS
10770fi 17167fi
10771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5 17168{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10772$as_echo "$ac_cv_lib_mail_maillock" >&6; } 17169$as_echo "$ac_cv_lib_mail_maillock" >&6; }
10773if test "x$ac_cv_lib_mail_maillock" = x""yes; then : 17170if test $ac_cv_lib_mail_maillock = yes; then
10774 have_mail=yes 17171 have_mail=yes
10775else 17172else
10776 have_mail=no 17173 have_mail=no
@@ -10780,19 +17177,25 @@ if test $have_mail = yes; then
10780 LIBS_MAIL=-lmail 17177 LIBS_MAIL=-lmail
10781 LIBS="$LIBS_MAIL $LIBS" 17178 LIBS="$LIBS_MAIL $LIBS"
10782 17179
10783$as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h 17180cat >>confdefs.h <<\_ACEOF
17181#define HAVE_LIBMAIL 1
17182_ACEOF
10784 17183
10785else 17184else
10786 LIBS_MAIL= 17185 LIBS_MAIL=
10787fi 17186fi
10788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5 17187{ $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10789$as_echo_n "checking for maillock in -llockfile... " >&6; } 17188$as_echo_n "checking for maillock in -llockfile... " >&6; }
10790if test "${ac_cv_lib_lockfile_maillock+set}" = set; then : 17189if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10791 $as_echo_n "(cached) " >&6 17190 $as_echo_n "(cached) " >&6
10792else 17191else
10793 ac_check_lib_save_LIBS=$LIBS 17192 ac_check_lib_save_LIBS=$LIBS
10794LIBS="-llockfile $LIBS" 17193LIBS="-llockfile $LIBS"
10795cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17194cat >conftest.$ac_ext <<_ACEOF
17195/* confdefs.h. */
17196_ACEOF
17197cat confdefs.h >>conftest.$ac_ext
17198cat >>conftest.$ac_ext <<_ACEOF
10796/* end confdefs.h. */ 17199/* end confdefs.h. */
10797 17200
10798/* Override any GCC internal prototype to avoid an error. 17201/* Override any GCC internal prototype to avoid an error.
@@ -10810,18 +17213,43 @@ return maillock ();
10810 return 0; 17213 return 0;
10811} 17214}
10812_ACEOF 17215_ACEOF
10813if ac_fn_c_try_link "$LINENO"; then : 17216rm -f conftest.$ac_objext conftest$ac_exeext
17217if { (ac_try="$ac_link"
17218case "(($ac_try" in
17219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17220 *) ac_try_echo=$ac_try;;
17221esac
17222eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17223$as_echo "$ac_try_echo") >&5
17224 (eval "$ac_link") 2>conftest.er1
17225 ac_status=$?
17226 grep -v '^ *+' conftest.er1 >conftest.err
17227 rm -f conftest.er1
17228 cat conftest.err >&5
17229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17230 (exit $ac_status); } && {
17231 test -z "$ac_c_werror_flag" ||
17232 test ! -s conftest.err
17233 } && test -s conftest$ac_exeext && {
17234 test "$cross_compiling" = yes ||
17235 $as_test_x conftest$ac_exeext
17236 }; then
10814 ac_cv_lib_lockfile_maillock=yes 17237 ac_cv_lib_lockfile_maillock=yes
10815else 17238else
10816 ac_cv_lib_lockfile_maillock=no 17239 $as_echo "$as_me: failed program was:" >&5
17240sed 's/^/| /' conftest.$ac_ext >&5
17241
17242 ac_cv_lib_lockfile_maillock=no
10817fi 17243fi
10818rm -f core conftest.err conftest.$ac_objext \ 17244
10819 conftest$ac_exeext conftest.$ac_ext 17245rm -rf conftest.dSYM
17246rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17247 conftest$ac_exeext conftest.$ac_ext
10820LIBS=$ac_check_lib_save_LIBS 17248LIBS=$ac_check_lib_save_LIBS
10821fi 17249fi
10822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5 17250{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10823$as_echo "$ac_cv_lib_lockfile_maillock" >&6; } 17251$as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10824if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then : 17252if test $ac_cv_lib_lockfile_maillock = yes; then
10825 have_lockfile=yes 17253 have_lockfile=yes
10826else 17254else
10827 have_lockfile=no 17255 have_lockfile=no
@@ -10831,7 +17259,9 @@ if test $have_lockfile = yes; then
10831 LIBS_MAIL=-llockfile 17259 LIBS_MAIL=-llockfile
10832 LIBS="$LIBS_MAIL $LIBS" 17260 LIBS="$LIBS_MAIL $LIBS"
10833 17261
10834$as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h 17262cat >>confdefs.h <<\_ACEOF
17263#define HAVE_LIBLOCKFILE 1
17264_ACEOF
10835 17265
10836else 17266else
10837# If we have the shared liblockfile, assume we must use it for mail 17267# If we have the shared liblockfile, assume we must use it for mail
@@ -10839,9 +17269,9 @@ else
10839# (no liblockfile.a installed), ensure that we don't need to. 17269# (no liblockfile.a installed), ensure that we don't need to.
10840 # Extract the first word of "liblockfile.so", so it can be a program name with args. 17270 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10841set dummy liblockfile.so; ac_word=$2 17271set dummy liblockfile.so; ac_word=$2
10842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17272{ $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10843$as_echo_n "checking for $ac_word... " >&6; } 17273$as_echo_n "checking for $ac_word... " >&6; }
10844if test "${ac_cv_prog_liblockfile+set}" = set; then : 17274if test "${ac_cv_prog_liblockfile+set}" = set; then
10845 $as_echo_n "(cached) " >&6 17275 $as_echo_n "(cached) " >&6
10846else 17276else
10847 if test -n "$liblockfile"; then 17277 if test -n "$liblockfile"; then
@@ -10853,14 +17283,14 @@ for as_dir in $as_dummy
10853do 17283do
10854 IFS=$as_save_IFS 17284 IFS=$as_save_IFS
10855 test -z "$as_dir" && as_dir=. 17285 test -z "$as_dir" && as_dir=.
10856 for ac_exec_ext in '' $ac_executable_extensions; do 17286 for ac_exec_ext in '' $ac_executable_extensions; do
10857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10858 ac_cv_prog_liblockfile="yes" 17288 ac_cv_prog_liblockfile="yes"
10859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17289 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10860 break 2 17290 break 2
10861 fi 17291 fi
10862done 17292done
10863 done 17293done
10864IFS=$as_save_IFS 17294IFS=$as_save_IFS
10865 17295
10866 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" 17296 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
@@ -10868,37 +17298,263 @@ fi
10868fi 17298fi
10869liblockfile=$ac_cv_prog_liblockfile 17299liblockfile=$ac_cv_prog_liblockfile
10870if test -n "$liblockfile"; then 17300if test -n "$liblockfile"; then
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5 17301 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
10872$as_echo "$liblockfile" >&6; } 17302$as_echo "$liblockfile" >&6; }
10873else 17303else
10874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17304 { $as_echo "$as_me:$LINENO: result: no" >&5
10875$as_echo "no" >&6; } 17305$as_echo "no" >&6; }
10876fi 17306fi
10877 17307
10878 17308
10879 if test $ac_cv_prog_liblockfile = yes; then 17309 if test $ac_cv_prog_liblockfile = yes; then
10880 as_fn_error "Shared liblockfile found but can't link against it. 17310 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
17311This probably means that movemail could lose mail.
17312There may be a \`development' package to install containing liblockfile." >&5
17313$as_echo "$as_me: error: Shared liblockfile found but can't link against it.
10881This probably means that movemail could lose mail. 17314This probably means that movemail could lose mail.
10882There may be a \`development' package to install containing liblockfile." "$LINENO" 5 17315There may be a \`development' package to install containing liblockfile." >&2;}
17316 { (exit 1); exit 1; }; }
10883 fi 17317 fi
10884fi 17318fi
17319
10885for ac_func in touchlock 17320for ac_func in touchlock
10886do : 17321do
10887 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock" 17322as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10888if test "x$ac_cv_func_touchlock" = x""yes; then : 17323{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17324$as_echo_n "checking for $ac_func... " >&6; }
17325if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17326 $as_echo_n "(cached) " >&6
17327else
17328 cat >conftest.$ac_ext <<_ACEOF
17329/* confdefs.h. */
17330_ACEOF
17331cat confdefs.h >>conftest.$ac_ext
17332cat >>conftest.$ac_ext <<_ACEOF
17333/* end confdefs.h. */
17334/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17335 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17336#define $ac_func innocuous_$ac_func
17337
17338/* System header to define __stub macros and hopefully few prototypes,
17339 which can conflict with char $ac_func (); below.
17340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17341 <limits.h> exists even on freestanding compilers. */
17342
17343#ifdef __STDC__
17344# include <limits.h>
17345#else
17346# include <assert.h>
17347#endif
17348
17349#undef $ac_func
17350
17351/* Override any GCC internal prototype to avoid an error.
17352 Use char because int might match the return type of a GCC
17353 builtin and then its argument prototype would still apply. */
17354#ifdef __cplusplus
17355extern "C"
17356#endif
17357char $ac_func ();
17358/* The GNU C library defines this for functions which it implements
17359 to always fail with ENOSYS. Some functions are actually named
17360 something starting with __ and the normal name is an alias. */
17361#if defined __stub_$ac_func || defined __stub___$ac_func
17362choke me
17363#endif
17364
17365int
17366main ()
17367{
17368return $ac_func ();
17369 ;
17370 return 0;
17371}
17372_ACEOF
17373rm -f conftest.$ac_objext conftest$ac_exeext
17374if { (ac_try="$ac_link"
17375case "(($ac_try" in
17376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17377 *) ac_try_echo=$ac_try;;
17378esac
17379eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17380$as_echo "$ac_try_echo") >&5
17381 (eval "$ac_link") 2>conftest.er1
17382 ac_status=$?
17383 grep -v '^ *+' conftest.er1 >conftest.err
17384 rm -f conftest.er1
17385 cat conftest.err >&5
17386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17387 (exit $ac_status); } && {
17388 test -z "$ac_c_werror_flag" ||
17389 test ! -s conftest.err
17390 } && test -s conftest$ac_exeext && {
17391 test "$cross_compiling" = yes ||
17392 $as_test_x conftest$ac_exeext
17393 }; then
17394 eval "$as_ac_var=yes"
17395else
17396 $as_echo "$as_me: failed program was:" >&5
17397sed 's/^/| /' conftest.$ac_ext >&5
17398
17399 eval "$as_ac_var=no"
17400fi
17401
17402rm -rf conftest.dSYM
17403rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17404 conftest$ac_exeext conftest.$ac_ext
17405fi
17406ac_res=`eval 'as_val=${'$as_ac_var'}
17407 $as_echo "$as_val"'`
17408 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17409$as_echo "$ac_res" >&6; }
17410if test `eval 'as_val=${'$as_ac_var'}
17411 $as_echo "$as_val"'` = yes; then
10889 cat >>confdefs.h <<_ACEOF 17412 cat >>confdefs.h <<_ACEOF
10890#define HAVE_TOUCHLOCK 1 17413#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10891_ACEOF 17414_ACEOF
10892 17415
10893fi 17416fi
10894done 17417done
10895 17418
17419
10896for ac_header in maillock.h 17420for ac_header in maillock.h
10897do : 17421do
10898 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default" 17422as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10899if test "x$ac_cv_header_maillock_h" = x""yes; then : 17423if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17424 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17425$as_echo_n "checking for $ac_header... " >&6; }
17426if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17427 $as_echo_n "(cached) " >&6
17428fi
17429ac_res=`eval 'as_val=${'$as_ac_Header'}
17430 $as_echo "$as_val"'`
17431 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17432$as_echo "$ac_res" >&6; }
17433else
17434 # Is the header compilable?
17435{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17436$as_echo_n "checking $ac_header usability... " >&6; }
17437cat >conftest.$ac_ext <<_ACEOF
17438/* confdefs.h. */
17439_ACEOF
17440cat confdefs.h >>conftest.$ac_ext
17441cat >>conftest.$ac_ext <<_ACEOF
17442/* end confdefs.h. */
17443$ac_includes_default
17444#include <$ac_header>
17445_ACEOF
17446rm -f conftest.$ac_objext
17447if { (ac_try="$ac_compile"
17448case "(($ac_try" in
17449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17450 *) ac_try_echo=$ac_try;;
17451esac
17452eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17453$as_echo "$ac_try_echo") >&5
17454 (eval "$ac_compile") 2>conftest.er1
17455 ac_status=$?
17456 grep -v '^ *+' conftest.er1 >conftest.err
17457 rm -f conftest.er1
17458 cat conftest.err >&5
17459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17460 (exit $ac_status); } && {
17461 test -z "$ac_c_werror_flag" ||
17462 test ! -s conftest.err
17463 } && test -s conftest.$ac_objext; then
17464 ac_header_compiler=yes
17465else
17466 $as_echo "$as_me: failed program was:" >&5
17467sed 's/^/| /' conftest.$ac_ext >&5
17468
17469 ac_header_compiler=no
17470fi
17471
17472rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17473{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17474$as_echo "$ac_header_compiler" >&6; }
17475
17476# Is the header present?
17477{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17478$as_echo_n "checking $ac_header presence... " >&6; }
17479cat >conftest.$ac_ext <<_ACEOF
17480/* confdefs.h. */
17481_ACEOF
17482cat confdefs.h >>conftest.$ac_ext
17483cat >>conftest.$ac_ext <<_ACEOF
17484/* end confdefs.h. */
17485#include <$ac_header>
17486_ACEOF
17487if { (ac_try="$ac_cpp conftest.$ac_ext"
17488case "(($ac_try" in
17489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17490 *) ac_try_echo=$ac_try;;
17491esac
17492eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17493$as_echo "$ac_try_echo") >&5
17494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17495 ac_status=$?
17496 grep -v '^ *+' conftest.er1 >conftest.err
17497 rm -f conftest.er1
17498 cat conftest.err >&5
17499 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); } >/dev/null && {
17501 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17502 test ! -s conftest.err
17503 }; then
17504 ac_header_preproc=yes
17505else
17506 $as_echo "$as_me: failed program was:" >&5
17507sed 's/^/| /' conftest.$ac_ext >&5
17508
17509 ac_header_preproc=no
17510fi
17511
17512rm -f conftest.err conftest.$ac_ext
17513{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17514$as_echo "$ac_header_preproc" >&6; }
17515
17516# So? What about this header?
17517case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17518 yes:no: )
17519 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17520$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17522$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17523 ac_header_preproc=yes
17524 ;;
17525 no:yes:* )
17526 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17527$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17529$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17531$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17533$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17535$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17537$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17538
17539 ;;
17540esac
17541{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17542$as_echo_n "checking for $ac_header... " >&6; }
17543if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17544 $as_echo_n "(cached) " >&6
17545else
17546 eval "$as_ac_Header=\$ac_header_preproc"
17547fi
17548ac_res=`eval 'as_val=${'$as_ac_Header'}
17549 $as_echo "$as_val"'`
17550 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17551$as_echo "$ac_res" >&6; }
17552
17553fi
17554if test `eval 'as_val=${'$as_ac_Header'}
17555 $as_echo "$as_val"'` = yes; then
10900 cat >>confdefs.h <<_ACEOF 17556 cat >>confdefs.h <<_ACEOF
10901#define HAVE_MAILLOCK_H 1 17557#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10902_ACEOF 17558_ACEOF
10903 17559
10904fi 17560fi
@@ -10907,6 +17563,77 @@ done
10907 17563
10908 17564
10909 17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
10910for ac_func in gethostname getdomainname dup2 \ 17637for ac_func in gethostname getdomainname dup2 \
10911rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ 17638rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
10912random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \ 17639random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
@@ -10917,11 +17644,97 @@ sendto recvfrom getsockopt setsockopt getsockname getpeername \
10917gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ 17644gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10918memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ 17645memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10919cfmakeraw cfsetspeed 17646cfmakeraw cfsetspeed
10920do : 17647do
10921 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17648as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10922ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17649{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10923eval as_val=\$$as_ac_var 17650$as_echo_n "checking for $ac_func... " >&6; }
10924 if test "x$as_val" = x""yes; then : 17651if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17652 $as_echo_n "(cached) " >&6
17653else
17654 cat >conftest.$ac_ext <<_ACEOF
17655/* confdefs.h. */
17656_ACEOF
17657cat confdefs.h >>conftest.$ac_ext
17658cat >>conftest.$ac_ext <<_ACEOF
17659/* end confdefs.h. */
17660/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17662#define $ac_func innocuous_$ac_func
17663
17664/* System header to define __stub macros and hopefully few prototypes,
17665 which can conflict with char $ac_func (); below.
17666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17667 <limits.h> exists even on freestanding compilers. */
17668
17669#ifdef __STDC__
17670# include <limits.h>
17671#else
17672# include <assert.h>
17673#endif
17674
17675#undef $ac_func
17676
17677/* Override any GCC internal prototype to avoid an error.
17678 Use char because int might match the return type of a GCC
17679 builtin and then its argument prototype would still apply. */
17680#ifdef __cplusplus
17681extern "C"
17682#endif
17683char $ac_func ();
17684/* The GNU C library defines this for functions which it implements
17685 to always fail with ENOSYS. Some functions are actually named
17686 something starting with __ and the normal name is an alias. */
17687#if defined __stub_$ac_func || defined __stub___$ac_func
17688choke me
17689#endif
17690
17691int
17692main ()
17693{
17694return $ac_func ();
17695 ;
17696 return 0;
17697}
17698_ACEOF
17699rm -f conftest.$ac_objext conftest$ac_exeext
17700if { (ac_try="$ac_link"
17701case "(($ac_try" in
17702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17703 *) ac_try_echo=$ac_try;;
17704esac
17705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17706$as_echo "$ac_try_echo") >&5
17707 (eval "$ac_link") 2>conftest.er1
17708 ac_status=$?
17709 grep -v '^ *+' conftest.er1 >conftest.err
17710 rm -f conftest.er1
17711 cat conftest.err >&5
17712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17713 (exit $ac_status); } && {
17714 test -z "$ac_c_werror_flag" ||
17715 test ! -s conftest.err
17716 } && test -s conftest$ac_exeext && {
17717 test "$cross_compiling" = yes ||
17718 $as_test_x conftest$ac_exeext
17719 }; then
17720 eval "$as_ac_var=yes"
17721else
17722 $as_echo "$as_me: failed program was:" >&5
17723sed 's/^/| /' conftest.$ac_ext >&5
17724
17725 eval "$as_ac_var=no"
17726fi
17727
17728rm -rf conftest.dSYM
17729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17730 conftest$ac_exeext conftest.$ac_ext
17731fi
17732ac_res=`eval 'as_val=${'$as_ac_var'}
17733 $as_echo "$as_val"'`
17734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17735$as_echo "$ac_res" >&6; }
17736if test `eval 'as_val=${'$as_ac_var'}
17737 $as_echo "$as_val"'` = yes; then
10925 cat >>confdefs.h <<_ACEOF 17738 cat >>confdefs.h <<_ACEOF
10926#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17739#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10927_ACEOF 17740_ACEOF
@@ -10930,12 +17743,145 @@ fi
10930done 17743done
10931 17744
10932 17745
17746
10933for ac_header in sys/un.h 17747for ac_header in sys/un.h
10934do : 17748do
10935 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 17749as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10936if test "x$ac_cv_header_sys_un_h" = x""yes; then : 17750if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17751 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17752$as_echo_n "checking for $ac_header... " >&6; }
17753if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17754 $as_echo_n "(cached) " >&6
17755fi
17756ac_res=`eval 'as_val=${'$as_ac_Header'}
17757 $as_echo "$as_val"'`
17758 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17759$as_echo "$ac_res" >&6; }
17760else
17761 # Is the header compilable?
17762{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17763$as_echo_n "checking $ac_header usability... " >&6; }
17764cat >conftest.$ac_ext <<_ACEOF
17765/* confdefs.h. */
17766_ACEOF
17767cat confdefs.h >>conftest.$ac_ext
17768cat >>conftest.$ac_ext <<_ACEOF
17769/* end confdefs.h. */
17770$ac_includes_default
17771#include <$ac_header>
17772_ACEOF
17773rm -f conftest.$ac_objext
17774if { (ac_try="$ac_compile"
17775case "(($ac_try" in
17776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17777 *) ac_try_echo=$ac_try;;
17778esac
17779eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17780$as_echo "$ac_try_echo") >&5
17781 (eval "$ac_compile") 2>conftest.er1
17782 ac_status=$?
17783 grep -v '^ *+' conftest.er1 >conftest.err
17784 rm -f conftest.er1
17785 cat conftest.err >&5
17786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17787 (exit $ac_status); } && {
17788 test -z "$ac_c_werror_flag" ||
17789 test ! -s conftest.err
17790 } && test -s conftest.$ac_objext; then
17791 ac_header_compiler=yes
17792else
17793 $as_echo "$as_me: failed program was:" >&5
17794sed 's/^/| /' conftest.$ac_ext >&5
17795
17796 ac_header_compiler=no
17797fi
17798
17799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17800{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17801$as_echo "$ac_header_compiler" >&6; }
17802
17803# Is the header present?
17804{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17805$as_echo_n "checking $ac_header presence... " >&6; }
17806cat >conftest.$ac_ext <<_ACEOF
17807/* confdefs.h. */
17808_ACEOF
17809cat confdefs.h >>conftest.$ac_ext
17810cat >>conftest.$ac_ext <<_ACEOF
17811/* end confdefs.h. */
17812#include <$ac_header>
17813_ACEOF
17814if { (ac_try="$ac_cpp conftest.$ac_ext"
17815case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17818esac
17819eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17820$as_echo "$ac_try_echo") >&5
17821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17822 ac_status=$?
17823 grep -v '^ *+' conftest.er1 >conftest.err
17824 rm -f conftest.er1
17825 cat conftest.err >&5
17826 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17827 (exit $ac_status); } >/dev/null && {
17828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17829 test ! -s conftest.err
17830 }; then
17831 ac_header_preproc=yes
17832else
17833 $as_echo "$as_me: failed program was:" >&5
17834sed 's/^/| /' conftest.$ac_ext >&5
17835
17836 ac_header_preproc=no
17837fi
17838
17839rm -f conftest.err conftest.$ac_ext
17840{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17841$as_echo "$ac_header_preproc" >&6; }
17842
17843# So? What about this header?
17844case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17845 yes:no: )
17846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17847$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17849$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17850 ac_header_preproc=yes
17851 ;;
17852 no:yes:* )
17853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17854$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17856$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17858$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17860$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17862$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17864$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17865
17866 ;;
17867esac
17868{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17869$as_echo_n "checking for $ac_header... " >&6; }
17870if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17871 $as_echo_n "(cached) " >&6
17872else
17873 eval "$as_ac_Header=\$ac_header_preproc"
17874fi
17875ac_res=`eval 'as_val=${'$as_ac_Header'}
17876 $as_echo "$as_val"'`
17877 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17878$as_echo "$ac_res" >&6; }
17879
17880fi
17881if test `eval 'as_val=${'$as_ac_Header'}
17882 $as_echo "$as_val"'` = yes; then
10937 cat >>confdefs.h <<_ACEOF 17883 cat >>confdefs.h <<_ACEOF
10938#define HAVE_SYS_UN_H 1 17884#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10939_ACEOF 17885_ACEOF
10940 17886
10941fi 17887fi
@@ -10947,13 +17893,250 @@ done
10947 17893
10948 17894
10949 17895
17896for ac_header in $ac_header_list
17897do
17898as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17899if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17900 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17901$as_echo_n "checking for $ac_header... " >&6; }
17902if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17903 $as_echo_n "(cached) " >&6
17904fi
17905ac_res=`eval 'as_val=${'$as_ac_Header'}
17906 $as_echo "$as_val"'`
17907 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17908$as_echo "$ac_res" >&6; }
17909else
17910 # Is the header compilable?
17911{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17912$as_echo_n "checking $ac_header usability... " >&6; }
17913cat >conftest.$ac_ext <<_ACEOF
17914/* confdefs.h. */
17915_ACEOF
17916cat confdefs.h >>conftest.$ac_ext
17917cat >>conftest.$ac_ext <<_ACEOF
17918/* end confdefs.h. */
17919$ac_includes_default
17920#include <$ac_header>
17921_ACEOF
17922rm -f conftest.$ac_objext
17923if { (ac_try="$ac_compile"
17924case "(($ac_try" in
17925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17926 *) ac_try_echo=$ac_try;;
17927esac
17928eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17929$as_echo "$ac_try_echo") >&5
17930 (eval "$ac_compile") 2>conftest.er1
17931 ac_status=$?
17932 grep -v '^ *+' conftest.er1 >conftest.err
17933 rm -f conftest.er1
17934 cat conftest.err >&5
17935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17936 (exit $ac_status); } && {
17937 test -z "$ac_c_werror_flag" ||
17938 test ! -s conftest.err
17939 } && test -s conftest.$ac_objext; then
17940 ac_header_compiler=yes
17941else
17942 $as_echo "$as_me: failed program was:" >&5
17943sed 's/^/| /' conftest.$ac_ext >&5
17944
17945 ac_header_compiler=no
17946fi
17947
17948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17949{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17950$as_echo "$ac_header_compiler" >&6; }
17951
17952# Is the header present?
17953{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17954$as_echo_n "checking $ac_header presence... " >&6; }
17955cat >conftest.$ac_ext <<_ACEOF
17956/* confdefs.h. */
17957_ACEOF
17958cat confdefs.h >>conftest.$ac_ext
17959cat >>conftest.$ac_ext <<_ACEOF
17960/* end confdefs.h. */
17961#include <$ac_header>
17962_ACEOF
17963if { (ac_try="$ac_cpp conftest.$ac_ext"
17964case "(($ac_try" in
17965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17966 *) ac_try_echo=$ac_try;;
17967esac
17968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17969$as_echo "$ac_try_echo") >&5
17970 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17971 ac_status=$?
17972 grep -v '^ *+' conftest.er1 >conftest.err
17973 rm -f conftest.er1
17974 cat conftest.err >&5
17975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17976 (exit $ac_status); } >/dev/null && {
17977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17978 test ! -s conftest.err
17979 }; then
17980 ac_header_preproc=yes
17981else
17982 $as_echo "$as_me: failed program was:" >&5
17983sed 's/^/| /' conftest.$ac_ext >&5
10950 17984
10951 for ac_func in $ac_func_list 17985 ac_header_preproc=no
10952do : 17986fi
10953 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17987
10954ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17988rm -f conftest.err conftest.$ac_ext
10955eval as_val=\$$as_ac_var 17989{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10956 if test "x$as_val" = x""yes; then : 17990$as_echo "$ac_header_preproc" >&6; }
17991
17992# So? What about this header?
17993case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17994 yes:no: )
17995 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17996$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17997 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17998$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17999 ac_header_preproc=yes
18000 ;;
18001 no:yes:* )
18002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18003$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18005$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18007$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18009$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18011$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18013$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18014
18015 ;;
18016esac
18017{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18018$as_echo_n "checking for $ac_header... " >&6; }
18019if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18020 $as_echo_n "(cached) " >&6
18021else
18022 eval "$as_ac_Header=\$ac_header_preproc"
18023fi
18024ac_res=`eval 'as_val=${'$as_ac_Header'}
18025 $as_echo "$as_val"'`
18026 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18027$as_echo "$ac_res" >&6; }
18028
18029fi
18030if test `eval 'as_val=${'$as_ac_Header'}
18031 $as_echo "$as_val"'` = yes; then
18032 cat >>confdefs.h <<_ACEOF
18033#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18034_ACEOF
18035
18036fi
18037
18038done
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048for ac_func in $ac_func_list
18049do
18050as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18051{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18052$as_echo_n "checking for $ac_func... " >&6; }
18053if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18054 $as_echo_n "(cached) " >&6
18055else
18056 cat >conftest.$ac_ext <<_ACEOF
18057/* confdefs.h. */
18058_ACEOF
18059cat confdefs.h >>conftest.$ac_ext
18060cat >>conftest.$ac_ext <<_ACEOF
18061/* end confdefs.h. */
18062/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18063 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18064#define $ac_func innocuous_$ac_func
18065
18066/* System header to define __stub macros and hopefully few prototypes,
18067 which can conflict with char $ac_func (); below.
18068 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18069 <limits.h> exists even on freestanding compilers. */
18070
18071#ifdef __STDC__
18072# include <limits.h>
18073#else
18074# include <assert.h>
18075#endif
18076
18077#undef $ac_func
18078
18079/* Override any GCC internal prototype to avoid an error.
18080 Use char because int might match the return type of a GCC
18081 builtin and then its argument prototype would still apply. */
18082#ifdef __cplusplus
18083extern "C"
18084#endif
18085char $ac_func ();
18086/* The GNU C library defines this for functions which it implements
18087 to always fail with ENOSYS. Some functions are actually named
18088 something starting with __ and the normal name is an alias. */
18089#if defined __stub_$ac_func || defined __stub___$ac_func
18090choke me
18091#endif
18092
18093int
18094main ()
18095{
18096return $ac_func ();
18097 ;
18098 return 0;
18099}
18100_ACEOF
18101rm -f conftest.$ac_objext conftest$ac_exeext
18102if { (ac_try="$ac_link"
18103case "(($ac_try" in
18104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18105 *) ac_try_echo=$ac_try;;
18106esac
18107eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18108$as_echo "$ac_try_echo") >&5
18109 (eval "$ac_link") 2>conftest.er1
18110 ac_status=$?
18111 grep -v '^ *+' conftest.er1 >conftest.err
18112 rm -f conftest.er1
18113 cat conftest.err >&5
18114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18115 (exit $ac_status); } && {
18116 test -z "$ac_c_werror_flag" ||
18117 test ! -s conftest.err
18118 } && test -s conftest$ac_exeext && {
18119 test "$cross_compiling" = yes ||
18120 $as_test_x conftest$ac_exeext
18121 }; then
18122 eval "$as_ac_var=yes"
18123else
18124 $as_echo "$as_me: failed program was:" >&5
18125sed 's/^/| /' conftest.$ac_ext >&5
18126
18127 eval "$as_ac_var=no"
18128fi
18129
18130rm -rf conftest.dSYM
18131rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18132 conftest$ac_exeext conftest.$ac_ext
18133fi
18134ac_res=`eval 'as_val=${'$as_ac_var'}
18135 $as_echo "$as_val"'`
18136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18137$as_echo "$ac_res" >&6; }
18138if test `eval 'as_val=${'$as_ac_var'}
18139 $as_echo "$as_val"'` = yes; then
10957 cat >>confdefs.h <<_ACEOF 18140 cat >>confdefs.h <<_ACEOF
10958#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18141#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10959_ACEOF 18142_ACEOF
@@ -10965,15 +18148,31 @@ done
10965 18148
10966 18149
10967 18150
10968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 18151
18152
18153
18154
18155
18156
18157
18158
18159
18160
18161
18162
18163{ $as_echo "$as_me:$LINENO: checking for working mktime" >&5
10969$as_echo_n "checking for working mktime... " >&6; } 18164$as_echo_n "checking for working mktime... " >&6; }
10970if test "${ac_cv_func_working_mktime+set}" = set; then : 18165if test "${ac_cv_func_working_mktime+set}" = set; then
10971 $as_echo_n "(cached) " >&6 18166 $as_echo_n "(cached) " >&6
10972else 18167else
10973 if test "$cross_compiling" = yes; then : 18168 if test "$cross_compiling" = yes; then
10974 ac_cv_func_working_mktime=no 18169 ac_cv_func_working_mktime=no
10975else 18170else
10976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18171 cat >conftest.$ac_ext <<_ACEOF
18172/* confdefs.h. */
18173_ACEOF
18174cat confdefs.h >>conftest.$ac_ext
18175cat >>conftest.$ac_ext <<_ACEOF
10977/* end confdefs.h. */ 18176/* end confdefs.h. */
10978/* Test program from Paul Eggert and Tony Leneis. */ 18177/* Test program from Paul Eggert and Tony Leneis. */
10979#ifdef TIME_WITH_SYS_TIME 18178#ifdef TIME_WITH_SYS_TIME
@@ -11170,17 +18369,44 @@ main ()
11170 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 18369 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11171} 18370}
11172_ACEOF 18371_ACEOF
11173if ac_fn_c_try_run "$LINENO"; then : 18372rm -f conftest$ac_exeext
18373if { (ac_try="$ac_link"
18374case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18377esac
18378eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18379$as_echo "$ac_try_echo") >&5
18380 (eval "$ac_link") 2>&5
18381 ac_status=$?
18382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18384 { (case "(($ac_try" in
18385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18386 *) ac_try_echo=$ac_try;;
18387esac
18388eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18389$as_echo "$ac_try_echo") >&5
18390 (eval "$ac_try") 2>&5
18391 ac_status=$?
18392 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18393 (exit $ac_status); }; }; then
11174 ac_cv_func_working_mktime=yes 18394 ac_cv_func_working_mktime=yes
11175else 18395else
11176 ac_cv_func_working_mktime=no 18396 $as_echo "$as_me: program exited with status $ac_status" >&5
18397$as_echo "$as_me: failed program was:" >&5
18398sed 's/^/| /' conftest.$ac_ext >&5
18399
18400( exit $ac_status )
18401ac_cv_func_working_mktime=no
11177fi 18402fi
11178rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18403rm -rf conftest.dSYM
11179 conftest.$ac_objext conftest.beam conftest.$ac_ext 18404rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11180fi 18405fi
11181 18406
18407
11182fi 18408fi
11183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 18409{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11184$as_echo "$ac_cv_func_working_mktime" >&6; } 18410$as_echo "$ac_cv_func_working_mktime" >&6; }
11185if test $ac_cv_func_working_mktime = no; then 18411if test $ac_cv_func_working_mktime = no; then
11186 case " $LIBOBJS " in 18412 case " $LIBOBJS " in
@@ -11193,7 +18419,9 @@ fi
11193 18419
11194if test "$ac_cv_func_working_mktime" = no; then 18420if test "$ac_cv_func_working_mktime" = no; then
11195 18421
11196$as_echo "#define BROKEN_MKTIME 1" >>confdefs.h 18422cat >>confdefs.h <<\_ACEOF
18423#define BROKEN_MKTIME 1
18424_ACEOF
11197 18425
11198fi 18426fi
11199 18427
@@ -11201,13 +18429,99 @@ ac_have_func=no # yes means we've found a way to get the load average.
11201 18429
11202# Make sure getloadavg.c is where it belongs, at configure-time. 18430# Make sure getloadavg.c is where it belongs, at configure-time.
11203test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 18431test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11204 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 18432 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18433$as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18434 { (exit 1); exit 1; }; }
11205 18435
11206ac_save_LIBS=$LIBS 18436ac_save_LIBS=$LIBS
11207 18437
11208# Check for getloadavg, but be sure not to touch the cache variable. 18438# Check for getloadavg, but be sure not to touch the cache variable.
11209(ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 18439({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
11210if test "x$ac_cv_func_getloadavg" = x""yes; then : 18440$as_echo_n "checking for getloadavg... " >&6; }
18441if test "${ac_cv_func_getloadavg+set}" = set; then
18442 $as_echo_n "(cached) " >&6
18443else
18444 cat >conftest.$ac_ext <<_ACEOF
18445/* confdefs.h. */
18446_ACEOF
18447cat confdefs.h >>conftest.$ac_ext
18448cat >>conftest.$ac_ext <<_ACEOF
18449/* end confdefs.h. */
18450/* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18451 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18452#define getloadavg innocuous_getloadavg
18453
18454/* System header to define __stub macros and hopefully few prototypes,
18455 which can conflict with char getloadavg (); below.
18456 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18457 <limits.h> exists even on freestanding compilers. */
18458
18459#ifdef __STDC__
18460# include <limits.h>
18461#else
18462# include <assert.h>
18463#endif
18464
18465#undef getloadavg
18466
18467/* Override any GCC internal prototype to avoid an error.
18468 Use char because int might match the return type of a GCC
18469 builtin and then its argument prototype would still apply. */
18470#ifdef __cplusplus
18471extern "C"
18472#endif
18473char getloadavg ();
18474/* The GNU C library defines this for functions which it implements
18475 to always fail with ENOSYS. Some functions are actually named
18476 something starting with __ and the normal name is an alias. */
18477#if defined __stub_getloadavg || defined __stub___getloadavg
18478choke me
18479#endif
18480
18481int
18482main ()
18483{
18484return getloadavg ();
18485 ;
18486 return 0;
18487}
18488_ACEOF
18489rm -f conftest.$ac_objext conftest$ac_exeext
18490if { (ac_try="$ac_link"
18491case "(($ac_try" in
18492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18493 *) ac_try_echo=$ac_try;;
18494esac
18495eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18496$as_echo "$ac_try_echo") >&5
18497 (eval "$ac_link") 2>conftest.er1
18498 ac_status=$?
18499 grep -v '^ *+' conftest.er1 >conftest.err
18500 rm -f conftest.er1
18501 cat conftest.err >&5
18502 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18503 (exit $ac_status); } && {
18504 test -z "$ac_c_werror_flag" ||
18505 test ! -s conftest.err
18506 } && test -s conftest$ac_exeext && {
18507 test "$cross_compiling" = yes ||
18508 $as_test_x conftest$ac_exeext
18509 }; then
18510 ac_cv_func_getloadavg=yes
18511else
18512 $as_echo "$as_me: failed program was:" >&5
18513sed 's/^/| /' conftest.$ac_ext >&5
18514
18515 ac_cv_func_getloadavg=no
18516fi
18517
18518rm -rf conftest.dSYM
18519rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18520 conftest$ac_exeext conftest.$ac_ext
18521fi
18522{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18523$as_echo "$ac_cv_func_getloadavg" >&6; }
18524if test $ac_cv_func_getloadavg = yes; then
11211 exit 0 18525 exit 0
11212else 18526else
11213 exit 1 18527 exit 1
@@ -11215,12 +18529,101 @@ fi
11215) && ac_have_func=yes 18529) && ac_have_func=yes
11216 18530
11217# On HPUX9, an unprivileged user can get load averages through this function. 18531# On HPUX9, an unprivileged user can get load averages through this function.
18532
11218for ac_func in pstat_getdynamic 18533for ac_func in pstat_getdynamic
11219do : 18534do
11220 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" 18535as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11221if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then : 18536{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18537$as_echo_n "checking for $ac_func... " >&6; }
18538if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18539 $as_echo_n "(cached) " >&6
18540else
18541 cat >conftest.$ac_ext <<_ACEOF
18542/* confdefs.h. */
18543_ACEOF
18544cat confdefs.h >>conftest.$ac_ext
18545cat >>conftest.$ac_ext <<_ACEOF
18546/* end confdefs.h. */
18547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18548 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18549#define $ac_func innocuous_$ac_func
18550
18551/* System header to define __stub macros and hopefully few prototypes,
18552 which can conflict with char $ac_func (); below.
18553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18554 <limits.h> exists even on freestanding compilers. */
18555
18556#ifdef __STDC__
18557# include <limits.h>
18558#else
18559# include <assert.h>
18560#endif
18561
18562#undef $ac_func
18563
18564/* Override any GCC internal prototype to avoid an error.
18565 Use char because int might match the return type of a GCC
18566 builtin and then its argument prototype would still apply. */
18567#ifdef __cplusplus
18568extern "C"
18569#endif
18570char $ac_func ();
18571/* The GNU C library defines this for functions which it implements
18572 to always fail with ENOSYS. Some functions are actually named
18573 something starting with __ and the normal name is an alias. */
18574#if defined __stub_$ac_func || defined __stub___$ac_func
18575choke me
18576#endif
18577
18578int
18579main ()
18580{
18581return $ac_func ();
18582 ;
18583 return 0;
18584}
18585_ACEOF
18586rm -f conftest.$ac_objext conftest$ac_exeext
18587if { (ac_try="$ac_link"
18588case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18591esac
18592eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18593$as_echo "$ac_try_echo") >&5
18594 (eval "$ac_link") 2>conftest.er1
18595 ac_status=$?
18596 grep -v '^ *+' conftest.er1 >conftest.err
18597 rm -f conftest.er1
18598 cat conftest.err >&5
18599 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18600 (exit $ac_status); } && {
18601 test -z "$ac_c_werror_flag" ||
18602 test ! -s conftest.err
18603 } && test -s conftest$ac_exeext && {
18604 test "$cross_compiling" = yes ||
18605 $as_test_x conftest$ac_exeext
18606 }; then
18607 eval "$as_ac_var=yes"
18608else
18609 $as_echo "$as_me: failed program was:" >&5
18610sed 's/^/| /' conftest.$ac_ext >&5
18611
18612 eval "$as_ac_var=no"
18613fi
18614
18615rm -rf conftest.dSYM
18616rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18617 conftest$ac_exeext conftest.$ac_ext
18618fi
18619ac_res=`eval 'as_val=${'$as_ac_var'}
18620 $as_echo "$as_val"'`
18621 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18622$as_echo "$ac_res" >&6; }
18623if test `eval 'as_val=${'$as_ac_var'}
18624 $as_echo "$as_val"'` = yes; then
11222 cat >>confdefs.h <<_ACEOF 18625 cat >>confdefs.h <<_ACEOF
11223#define HAVE_PSTAT_GETDYNAMIC 1 18626#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11224_ACEOF 18627_ACEOF
11225 18628
11226fi 18629fi
@@ -11228,14 +18631,19 @@ done
11228 18631
11229 18632
11230# Solaris has libkstat which does not require root. 18633# Solaris has libkstat which does not require root.
11231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 18634
18635{ $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11232$as_echo_n "checking for kstat_open in -lkstat... " >&6; } 18636$as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11233if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : 18637if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11234 $as_echo_n "(cached) " >&6 18638 $as_echo_n "(cached) " >&6
11235else 18639else
11236 ac_check_lib_save_LIBS=$LIBS 18640 ac_check_lib_save_LIBS=$LIBS
11237LIBS="-lkstat $LIBS" 18641LIBS="-lkstat $LIBS"
11238cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18642cat >conftest.$ac_ext <<_ACEOF
18643/* confdefs.h. */
18644_ACEOF
18645cat confdefs.h >>conftest.$ac_ext
18646cat >>conftest.$ac_ext <<_ACEOF
11239/* end confdefs.h. */ 18647/* end confdefs.h. */
11240 18648
11241/* Override any GCC internal prototype to avoid an error. 18649/* Override any GCC internal prototype to avoid an error.
@@ -11253,18 +18661,43 @@ return kstat_open ();
11253 return 0; 18661 return 0;
11254} 18662}
11255_ACEOF 18663_ACEOF
11256if ac_fn_c_try_link "$LINENO"; then : 18664rm -f conftest.$ac_objext conftest$ac_exeext
18665if { (ac_try="$ac_link"
18666case "(($ac_try" in
18667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18668 *) ac_try_echo=$ac_try;;
18669esac
18670eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18671$as_echo "$ac_try_echo") >&5
18672 (eval "$ac_link") 2>conftest.er1
18673 ac_status=$?
18674 grep -v '^ *+' conftest.er1 >conftest.err
18675 rm -f conftest.er1
18676 cat conftest.err >&5
18677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); } && {
18679 test -z "$ac_c_werror_flag" ||
18680 test ! -s conftest.err
18681 } && test -s conftest$ac_exeext && {
18682 test "$cross_compiling" = yes ||
18683 $as_test_x conftest$ac_exeext
18684 }; then
11257 ac_cv_lib_kstat_kstat_open=yes 18685 ac_cv_lib_kstat_kstat_open=yes
11258else 18686else
11259 ac_cv_lib_kstat_kstat_open=no 18687 $as_echo "$as_me: failed program was:" >&5
18688sed 's/^/| /' conftest.$ac_ext >&5
18689
18690 ac_cv_lib_kstat_kstat_open=no
11260fi 18691fi
11261rm -f core conftest.err conftest.$ac_objext \ 18692
11262 conftest$ac_exeext conftest.$ac_ext 18693rm -rf conftest.dSYM
18694rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18695 conftest$ac_exeext conftest.$ac_ext
11263LIBS=$ac_check_lib_save_LIBS 18696LIBS=$ac_check_lib_save_LIBS
11264fi 18697fi
11265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 18698{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11266$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } 18699$as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11267if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then : 18700if test $ac_cv_lib_kstat_kstat_open = yes; then
11268 cat >>confdefs.h <<_ACEOF 18701 cat >>confdefs.h <<_ACEOF
11269#define HAVE_LIBKSTAT 1 18702#define HAVE_LIBKSTAT 1
11270_ACEOF 18703_ACEOF
@@ -11280,14 +18713,18 @@ test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
11280# to get the right answer into the cache. 18713# to get the right answer into the cache.
11281# For kstat on solaris, we need libelf to force the definition of SVR4 below. 18714# For kstat on solaris, we need libelf to force the definition of SVR4 below.
11282if test $ac_have_func = no; then 18715if test $ac_have_func = no; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 18716 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11284$as_echo_n "checking for elf_begin in -lelf... " >&6; } 18717$as_echo_n "checking for elf_begin in -lelf... " >&6; }
11285if test "${ac_cv_lib_elf_elf_begin+set}" = set; then : 18718if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11286 $as_echo_n "(cached) " >&6 18719 $as_echo_n "(cached) " >&6
11287else 18720else
11288 ac_check_lib_save_LIBS=$LIBS 18721 ac_check_lib_save_LIBS=$LIBS
11289LIBS="-lelf $LIBS" 18722LIBS="-lelf $LIBS"
11290cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18723cat >conftest.$ac_ext <<_ACEOF
18724/* confdefs.h. */
18725_ACEOF
18726cat confdefs.h >>conftest.$ac_ext
18727cat >>conftest.$ac_ext <<_ACEOF
11291/* end confdefs.h. */ 18728/* end confdefs.h. */
11292 18729
11293/* Override any GCC internal prototype to avoid an error. 18730/* Override any GCC internal prototype to avoid an error.
@@ -11305,31 +18742,60 @@ return elf_begin ();
11305 return 0; 18742 return 0;
11306} 18743}
11307_ACEOF 18744_ACEOF
11308if ac_fn_c_try_link "$LINENO"; then : 18745rm -f conftest.$ac_objext conftest$ac_exeext
18746if { (ac_try="$ac_link"
18747case "(($ac_try" in
18748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18749 *) ac_try_echo=$ac_try;;
18750esac
18751eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18752$as_echo "$ac_try_echo") >&5
18753 (eval "$ac_link") 2>conftest.er1
18754 ac_status=$?
18755 grep -v '^ *+' conftest.er1 >conftest.err
18756 rm -f conftest.er1
18757 cat conftest.err >&5
18758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18759 (exit $ac_status); } && {
18760 test -z "$ac_c_werror_flag" ||
18761 test ! -s conftest.err
18762 } && test -s conftest$ac_exeext && {
18763 test "$cross_compiling" = yes ||
18764 $as_test_x conftest$ac_exeext
18765 }; then
11309 ac_cv_lib_elf_elf_begin=yes 18766 ac_cv_lib_elf_elf_begin=yes
11310else 18767else
11311 ac_cv_lib_elf_elf_begin=no 18768 $as_echo "$as_me: failed program was:" >&5
18769sed 's/^/| /' conftest.$ac_ext >&5
18770
18771 ac_cv_lib_elf_elf_begin=no
11312fi 18772fi
11313rm -f core conftest.err conftest.$ac_objext \ 18773
11314 conftest$ac_exeext conftest.$ac_ext 18774rm -rf conftest.dSYM
18775rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18776 conftest$ac_exeext conftest.$ac_ext
11315LIBS=$ac_check_lib_save_LIBS 18777LIBS=$ac_check_lib_save_LIBS
11316fi 18778fi
11317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 18779{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11318$as_echo "$ac_cv_lib_elf_elf_begin" >&6; } 18780$as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11319if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then : 18781if test $ac_cv_lib_elf_elf_begin = yes; then
11320 LIBS="-lelf $LIBS" 18782 LIBS="-lelf $LIBS"
11321fi 18783fi
11322 18784
11323fi 18785fi
11324if test $ac_have_func = no; then 18786if test $ac_have_func = no; then
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 18787 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11326$as_echo_n "checking for kvm_open in -lkvm... " >&6; } 18788$as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11327if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then : 18789if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11328 $as_echo_n "(cached) " >&6 18790 $as_echo_n "(cached) " >&6
11329else 18791else
11330 ac_check_lib_save_LIBS=$LIBS 18792 ac_check_lib_save_LIBS=$LIBS
11331LIBS="-lkvm $LIBS" 18793LIBS="-lkvm $LIBS"
11332cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18794cat >conftest.$ac_ext <<_ACEOF
18795/* confdefs.h. */
18796_ACEOF
18797cat confdefs.h >>conftest.$ac_ext
18798cat >>conftest.$ac_ext <<_ACEOF
11333/* end confdefs.h. */ 18799/* end confdefs.h. */
11334 18800
11335/* Override any GCC internal prototype to avoid an error. 18801/* Override any GCC internal prototype to avoid an error.
@@ -11347,30 +18813,59 @@ return kvm_open ();
11347 return 0; 18813 return 0;
11348} 18814}
11349_ACEOF 18815_ACEOF
11350if ac_fn_c_try_link "$LINENO"; then : 18816rm -f conftest.$ac_objext conftest$ac_exeext
18817if { (ac_try="$ac_link"
18818case "(($ac_try" in
18819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18820 *) ac_try_echo=$ac_try;;
18821esac
18822eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18823$as_echo "$ac_try_echo") >&5
18824 (eval "$ac_link") 2>conftest.er1
18825 ac_status=$?
18826 grep -v '^ *+' conftest.er1 >conftest.err
18827 rm -f conftest.er1
18828 cat conftest.err >&5
18829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18830 (exit $ac_status); } && {
18831 test -z "$ac_c_werror_flag" ||
18832 test ! -s conftest.err
18833 } && test -s conftest$ac_exeext && {
18834 test "$cross_compiling" = yes ||
18835 $as_test_x conftest$ac_exeext
18836 }; then
11351 ac_cv_lib_kvm_kvm_open=yes 18837 ac_cv_lib_kvm_kvm_open=yes
11352else 18838else
11353 ac_cv_lib_kvm_kvm_open=no 18839 $as_echo "$as_me: failed program was:" >&5
18840sed 's/^/| /' conftest.$ac_ext >&5
18841
18842 ac_cv_lib_kvm_kvm_open=no
11354fi 18843fi
11355rm -f core conftest.err conftest.$ac_objext \ 18844
11356 conftest$ac_exeext conftest.$ac_ext 18845rm -rf conftest.dSYM
18846rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18847 conftest$ac_exeext conftest.$ac_ext
11357LIBS=$ac_check_lib_save_LIBS 18848LIBS=$ac_check_lib_save_LIBS
11358fi 18849fi
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 18850{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11360$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } 18851$as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11361if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then : 18852if test $ac_cv_lib_kvm_kvm_open = yes; then
11362 LIBS="-lkvm $LIBS" 18853 LIBS="-lkvm $LIBS"
11363fi 18854fi
11364 18855
11365 # Check for the 4.4BSD definition of getloadavg. 18856 # Check for the 4.4BSD definition of getloadavg.
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 18857 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11367$as_echo_n "checking for getloadavg in -lutil... " >&6; } 18858$as_echo_n "checking for getloadavg in -lutil... " >&6; }
11368if test "${ac_cv_lib_util_getloadavg+set}" = set; then : 18859if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11369 $as_echo_n "(cached) " >&6 18860 $as_echo_n "(cached) " >&6
11370else 18861else
11371 ac_check_lib_save_LIBS=$LIBS 18862 ac_check_lib_save_LIBS=$LIBS
11372LIBS="-lutil $LIBS" 18863LIBS="-lutil $LIBS"
11373cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18864cat >conftest.$ac_ext <<_ACEOF
18865/* confdefs.h. */
18866_ACEOF
18867cat confdefs.h >>conftest.$ac_ext
18868cat >>conftest.$ac_ext <<_ACEOF
11374/* end confdefs.h. */ 18869/* end confdefs.h. */
11375 18870
11376/* Override any GCC internal prototype to avoid an error. 18871/* Override any GCC internal prototype to avoid an error.
@@ -11388,18 +18883,43 @@ return getloadavg ();
11388 return 0; 18883 return 0;
11389} 18884}
11390_ACEOF 18885_ACEOF
11391if ac_fn_c_try_link "$LINENO"; then : 18886rm -f conftest.$ac_objext conftest$ac_exeext
18887if { (ac_try="$ac_link"
18888case "(($ac_try" in
18889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18890 *) ac_try_echo=$ac_try;;
18891esac
18892eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18893$as_echo "$ac_try_echo") >&5
18894 (eval "$ac_link") 2>conftest.er1
18895 ac_status=$?
18896 grep -v '^ *+' conftest.er1 >conftest.err
18897 rm -f conftest.er1
18898 cat conftest.err >&5
18899 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18900 (exit $ac_status); } && {
18901 test -z "$ac_c_werror_flag" ||
18902 test ! -s conftest.err
18903 } && test -s conftest$ac_exeext && {
18904 test "$cross_compiling" = yes ||
18905 $as_test_x conftest$ac_exeext
18906 }; then
11392 ac_cv_lib_util_getloadavg=yes 18907 ac_cv_lib_util_getloadavg=yes
11393else 18908else
11394 ac_cv_lib_util_getloadavg=no 18909 $as_echo "$as_me: failed program was:" >&5
18910sed 's/^/| /' conftest.$ac_ext >&5
18911
18912 ac_cv_lib_util_getloadavg=no
11395fi 18913fi
11396rm -f core conftest.err conftest.$ac_objext \ 18914
11397 conftest$ac_exeext conftest.$ac_ext 18915rm -rf conftest.dSYM
18916rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18917 conftest$ac_exeext conftest.$ac_ext
11398LIBS=$ac_check_lib_save_LIBS 18918LIBS=$ac_check_lib_save_LIBS
11399fi 18919fi
11400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 18920{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11401$as_echo "$ac_cv_lib_util_getloadavg" >&6; } 18921$as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11402if test "x$ac_cv_lib_util_getloadavg" = x""yes; then : 18922if test $ac_cv_lib_util_getloadavg = yes; then
11403 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 18923 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11404fi 18924fi
11405 18925
@@ -11410,14 +18930,18 @@ if test $ac_have_func = no; then
11410 # Since it is not a standard part of AIX, it might be installed locally. 18930 # Since it is not a standard part of AIX, it might be installed locally.
11411 ac_getloadavg_LIBS=$LIBS 18931 ac_getloadavg_LIBS=$LIBS
11412 LIBS="-L/usr/local/lib $LIBS" 18932 LIBS="-L/usr/local/lib $LIBS"
11413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 18933 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11414$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } 18934$as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11415if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then : 18935if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11416 $as_echo_n "(cached) " >&6 18936 $as_echo_n "(cached) " >&6
11417else 18937else
11418 ac_check_lib_save_LIBS=$LIBS 18938 ac_check_lib_save_LIBS=$LIBS
11419LIBS="-lgetloadavg $LIBS" 18939LIBS="-lgetloadavg $LIBS"
11420cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18940cat >conftest.$ac_ext <<_ACEOF
18941/* confdefs.h. */
18942_ACEOF
18943cat confdefs.h >>conftest.$ac_ext
18944cat >>conftest.$ac_ext <<_ACEOF
11421/* end confdefs.h. */ 18945/* end confdefs.h. */
11422 18946
11423/* Override any GCC internal prototype to avoid an error. 18947/* Override any GCC internal prototype to avoid an error.
@@ -11435,18 +18959,43 @@ return getloadavg ();
11435 return 0; 18959 return 0;
11436} 18960}
11437_ACEOF 18961_ACEOF
11438if ac_fn_c_try_link "$LINENO"; then : 18962rm -f conftest.$ac_objext conftest$ac_exeext
18963if { (ac_try="$ac_link"
18964case "(($ac_try" in
18965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18966 *) ac_try_echo=$ac_try;;
18967esac
18968eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18969$as_echo "$ac_try_echo") >&5
18970 (eval "$ac_link") 2>conftest.er1
18971 ac_status=$?
18972 grep -v '^ *+' conftest.er1 >conftest.err
18973 rm -f conftest.er1
18974 cat conftest.err >&5
18975 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18976 (exit $ac_status); } && {
18977 test -z "$ac_c_werror_flag" ||
18978 test ! -s conftest.err
18979 } && test -s conftest$ac_exeext && {
18980 test "$cross_compiling" = yes ||
18981 $as_test_x conftest$ac_exeext
18982 }; then
11439 ac_cv_lib_getloadavg_getloadavg=yes 18983 ac_cv_lib_getloadavg_getloadavg=yes
11440else 18984else
11441 ac_cv_lib_getloadavg_getloadavg=no 18985 $as_echo "$as_me: failed program was:" >&5
18986sed 's/^/| /' conftest.$ac_ext >&5
18987
18988 ac_cv_lib_getloadavg_getloadavg=no
11442fi 18989fi
11443rm -f core conftest.err conftest.$ac_objext \ 18990
11444 conftest$ac_exeext conftest.$ac_ext 18991rm -rf conftest.dSYM
18992rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18993 conftest$ac_exeext conftest.$ac_ext
11445LIBS=$ac_check_lib_save_LIBS 18994LIBS=$ac_check_lib_save_LIBS
11446fi 18995fi
11447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 18996{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11448$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } 18997$as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11449if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then : 18998if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11450 LIBS="-lgetloadavg $LIBS" 18999 LIBS="-lgetloadavg $LIBS"
11451else 19000else
11452 LIBS=$ac_getloadavg_LIBS 19001 LIBS=$ac_getloadavg_LIBS
@@ -11456,12 +19005,101 @@ fi
11456 19005
11457# Make sure it is really in the library, if we think we found it, 19006# Make sure it is really in the library, if we think we found it,
11458# otherwise set up the replacement function. 19007# otherwise set up the replacement function.
19008
11459for ac_func in getloadavg 19009for ac_func in getloadavg
11460do : 19010do
11461 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 19011as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11462if test "x$ac_cv_func_getloadavg" = x""yes; then : 19012{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19013$as_echo_n "checking for $ac_func... " >&6; }
19014if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19015 $as_echo_n "(cached) " >&6
19016else
19017 cat >conftest.$ac_ext <<_ACEOF
19018/* confdefs.h. */
19019_ACEOF
19020cat confdefs.h >>conftest.$ac_ext
19021cat >>conftest.$ac_ext <<_ACEOF
19022/* end confdefs.h. */
19023/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19025#define $ac_func innocuous_$ac_func
19026
19027/* System header to define __stub macros and hopefully few prototypes,
19028 which can conflict with char $ac_func (); below.
19029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19030 <limits.h> exists even on freestanding compilers. */
19031
19032#ifdef __STDC__
19033# include <limits.h>
19034#else
19035# include <assert.h>
19036#endif
19037
19038#undef $ac_func
19039
19040/* Override any GCC internal prototype to avoid an error.
19041 Use char because int might match the return type of a GCC
19042 builtin and then its argument prototype would still apply. */
19043#ifdef __cplusplus
19044extern "C"
19045#endif
19046char $ac_func ();
19047/* The GNU C library defines this for functions which it implements
19048 to always fail with ENOSYS. Some functions are actually named
19049 something starting with __ and the normal name is an alias. */
19050#if defined __stub_$ac_func || defined __stub___$ac_func
19051choke me
19052#endif
19053
19054int
19055main ()
19056{
19057return $ac_func ();
19058 ;
19059 return 0;
19060}
19061_ACEOF
19062rm -f conftest.$ac_objext conftest$ac_exeext
19063if { (ac_try="$ac_link"
19064case "(($ac_try" in
19065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19066 *) ac_try_echo=$ac_try;;
19067esac
19068eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19069$as_echo "$ac_try_echo") >&5
19070 (eval "$ac_link") 2>conftest.er1
19071 ac_status=$?
19072 grep -v '^ *+' conftest.er1 >conftest.err
19073 rm -f conftest.er1
19074 cat conftest.err >&5
19075 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } && {
19077 test -z "$ac_c_werror_flag" ||
19078 test ! -s conftest.err
19079 } && test -s conftest$ac_exeext && {
19080 test "$cross_compiling" = yes ||
19081 $as_test_x conftest$ac_exeext
19082 }; then
19083 eval "$as_ac_var=yes"
19084else
19085 $as_echo "$as_me: failed program was:" >&5
19086sed 's/^/| /' conftest.$ac_ext >&5
19087
19088 eval "$as_ac_var=no"
19089fi
19090
19091rm -rf conftest.dSYM
19092rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19093 conftest$ac_exeext conftest.$ac_ext
19094fi
19095ac_res=`eval 'as_val=${'$as_ac_var'}
19096 $as_echo "$as_val"'`
19097 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19098$as_echo "$ac_res" >&6; }
19099if test `eval 'as_val=${'$as_ac_var'}
19100 $as_echo "$as_val"'` = yes; then
11463 cat >>confdefs.h <<_ACEOF 19101 cat >>confdefs.h <<_ACEOF
11464#define HAVE_GETLOADAVG 1 19102#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11465_ACEOF 19103_ACEOF
11466 19104
11467else 19105else
@@ -11472,24 +19110,159 @@ else
11472esac 19110esac
11473 19111
11474 19112
11475$as_echo "#define C_GETLOADAVG 1" >>confdefs.h 19113cat >>confdefs.h <<\_ACEOF
19114#define C_GETLOADAVG 1
19115_ACEOF
11476 19116
11477# Figure out what our getloadavg.c needs. 19117# Figure out what our getloadavg.c needs.
11478ac_have_func=no 19118ac_have_func=no
11479ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" 19119if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11480if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then : 19120 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19121$as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19122if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19123 $as_echo_n "(cached) " >&6
19124fi
19125{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19126$as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19127else
19128 # Is the header compilable?
19129{ $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19130$as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19131cat >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$ac_includes_default
19138#include <sys/dg_sys_info.h>
19139_ACEOF
19140rm -f conftest.$ac_objext
19141if { (ac_try="$ac_compile"
19142case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19145esac
19146eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19147$as_echo "$ac_try_echo") >&5
19148 (eval "$ac_compile") 2>conftest.er1
19149 ac_status=$?
19150 grep -v '^ *+' conftest.er1 >conftest.err
19151 rm -f conftest.er1
19152 cat conftest.err >&5
19153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19154 (exit $ac_status); } && {
19155 test -z "$ac_c_werror_flag" ||
19156 test ! -s conftest.err
19157 } && test -s conftest.$ac_objext; then
19158 ac_header_compiler=yes
19159else
19160 $as_echo "$as_me: failed program was:" >&5
19161sed 's/^/| /' conftest.$ac_ext >&5
19162
19163 ac_header_compiler=no
19164fi
19165
19166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19168$as_echo "$ac_header_compiler" >&6; }
19169
19170# Is the header present?
19171{ $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19172$as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19173cat >conftest.$ac_ext <<_ACEOF
19174/* confdefs.h. */
19175_ACEOF
19176cat confdefs.h >>conftest.$ac_ext
19177cat >>conftest.$ac_ext <<_ACEOF
19178/* end confdefs.h. */
19179#include <sys/dg_sys_info.h>
19180_ACEOF
19181if { (ac_try="$ac_cpp conftest.$ac_ext"
19182case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19185esac
19186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19187$as_echo "$ac_try_echo") >&5
19188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19189 ac_status=$?
19190 grep -v '^ *+' conftest.er1 >conftest.err
19191 rm -f conftest.er1
19192 cat conftest.err >&5
19193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19194 (exit $ac_status); } >/dev/null && {
19195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19196 test ! -s conftest.err
19197 }; then
19198 ac_header_preproc=yes
19199else
19200 $as_echo "$as_me: failed program was:" >&5
19201sed 's/^/| /' conftest.$ac_ext >&5
19202
19203 ac_header_preproc=no
19204fi
19205
19206rm -f conftest.err conftest.$ac_ext
19207{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19208$as_echo "$ac_header_preproc" >&6; }
19209
19210# So? What about this header?
19211case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19212 yes:no: )
19213 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19214$as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19215 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19216$as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19217 ac_header_preproc=yes
19218 ;;
19219 no:yes:* )
19220 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19221$as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19222 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19223$as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19224 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19225$as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19226 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19227$as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19228 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19229$as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19230 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19231$as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19232
19233 ;;
19234esac
19235{ $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19236$as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19237if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19238 $as_echo_n "(cached) " >&6
19239else
19240 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19241fi
19242{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19243$as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19244
19245fi
19246if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11481 ac_have_func=yes 19247 ac_have_func=yes
11482 19248
11483$as_echo "#define DGUX 1" >>confdefs.h 19249cat >>confdefs.h <<\_ACEOF
19250#define DGUX 1
19251_ACEOF
19252
11484 19253
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 19254{ $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11486$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } 19255$as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11487if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then : 19256if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11488 $as_echo_n "(cached) " >&6 19257 $as_echo_n "(cached) " >&6
11489else 19258else
11490 ac_check_lib_save_LIBS=$LIBS 19259 ac_check_lib_save_LIBS=$LIBS
11491LIBS="-ldgc $LIBS" 19260LIBS="-ldgc $LIBS"
11492cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19261cat >conftest.$ac_ext <<_ACEOF
19262/* confdefs.h. */
19263_ACEOF
19264cat confdefs.h >>conftest.$ac_ext
19265cat >>conftest.$ac_ext <<_ACEOF
11493/* end confdefs.h. */ 19266/* end confdefs.h. */
11494 19267
11495/* Override any GCC internal prototype to avoid an error. 19268/* Override any GCC internal prototype to avoid an error.
@@ -11507,18 +19280,43 @@ return dg_sys_info ();
11507 return 0; 19280 return 0;
11508} 19281}
11509_ACEOF 19282_ACEOF
11510if ac_fn_c_try_link "$LINENO"; then : 19283rm -f conftest.$ac_objext conftest$ac_exeext
19284if { (ac_try="$ac_link"
19285case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19288esac
19289eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19290$as_echo "$ac_try_echo") >&5
19291 (eval "$ac_link") 2>conftest.er1
19292 ac_status=$?
19293 grep -v '^ *+' conftest.er1 >conftest.err
19294 rm -f conftest.er1
19295 cat conftest.err >&5
19296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } && {
19298 test -z "$ac_c_werror_flag" ||
19299 test ! -s conftest.err
19300 } && test -s conftest$ac_exeext && {
19301 test "$cross_compiling" = yes ||
19302 $as_test_x conftest$ac_exeext
19303 }; then
11511 ac_cv_lib_dgc_dg_sys_info=yes 19304 ac_cv_lib_dgc_dg_sys_info=yes
11512else 19305else
11513 ac_cv_lib_dgc_dg_sys_info=no 19306 $as_echo "$as_me: failed program was:" >&5
19307sed 's/^/| /' conftest.$ac_ext >&5
19308
19309 ac_cv_lib_dgc_dg_sys_info=no
11514fi 19310fi
11515rm -f core conftest.err conftest.$ac_objext \ 19311
11516 conftest$ac_exeext conftest.$ac_ext 19312rm -rf conftest.dSYM
19313rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19314 conftest$ac_exeext conftest.$ac_ext
11517LIBS=$ac_check_lib_save_LIBS 19315LIBS=$ac_check_lib_save_LIBS
11518fi 19316fi
11519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 19317{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11520$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } 19318$as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11521if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then : 19319if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11522 cat >>confdefs.h <<_ACEOF 19320 cat >>confdefs.h <<_ACEOF
11523#define HAVE_LIBDGC 1 19321#define HAVE_LIBDGC 1
11524_ACEOF 19322_ACEOF
@@ -11531,18 +19329,230 @@ fi
11531 19329
11532 19330
11533 19331
11534ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 19332if test "${ac_cv_header_locale_h+set}" = set; then
11535if test "x$ac_cv_header_locale_h" = x""yes; then : 19333 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19334$as_echo_n "checking for locale.h... " >&6; }
19335if test "${ac_cv_header_locale_h+set}" = set; then
19336 $as_echo_n "(cached) " >&6
19337fi
19338{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19339$as_echo "$ac_cv_header_locale_h" >&6; }
19340else
19341 # Is the header compilable?
19342{ $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19343$as_echo_n "checking locale.h usability... " >&6; }
19344cat >conftest.$ac_ext <<_ACEOF
19345/* confdefs.h. */
19346_ACEOF
19347cat confdefs.h >>conftest.$ac_ext
19348cat >>conftest.$ac_ext <<_ACEOF
19349/* end confdefs.h. */
19350$ac_includes_default
19351#include <locale.h>
19352_ACEOF
19353rm -f conftest.$ac_objext
19354if { (ac_try="$ac_compile"
19355case "(($ac_try" in
19356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19357 *) ac_try_echo=$ac_try;;
19358esac
19359eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19360$as_echo "$ac_try_echo") >&5
19361 (eval "$ac_compile") 2>conftest.er1
19362 ac_status=$?
19363 grep -v '^ *+' conftest.er1 >conftest.err
19364 rm -f conftest.er1
19365 cat conftest.err >&5
19366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19367 (exit $ac_status); } && {
19368 test -z "$ac_c_werror_flag" ||
19369 test ! -s conftest.err
19370 } && test -s conftest.$ac_objext; then
19371 ac_header_compiler=yes
19372else
19373 $as_echo "$as_me: failed program was:" >&5
19374sed 's/^/| /' conftest.$ac_ext >&5
11536 19375
19376 ac_header_compiler=no
11537fi 19377fi
11538 19378
19379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19380{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19381$as_echo "$ac_header_compiler" >&6; }
19382
19383# Is the header present?
19384{ $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19385$as_echo_n "checking locale.h presence... " >&6; }
19386cat >conftest.$ac_ext <<_ACEOF
19387/* confdefs.h. */
19388_ACEOF
19389cat confdefs.h >>conftest.$ac_ext
19390cat >>conftest.$ac_ext <<_ACEOF
19391/* end confdefs.h. */
19392#include <locale.h>
19393_ACEOF
19394if { (ac_try="$ac_cpp conftest.$ac_ext"
19395case "(($ac_try" in
19396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19397 *) ac_try_echo=$ac_try;;
19398esac
19399eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19400$as_echo "$ac_try_echo") >&5
19401 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19402 ac_status=$?
19403 grep -v '^ *+' conftest.er1 >conftest.err
19404 rm -f conftest.er1
19405 cat conftest.err >&5
19406 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407 (exit $ac_status); } >/dev/null && {
19408 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19409 test ! -s conftest.err
19410 }; then
19411 ac_header_preproc=yes
19412else
19413 $as_echo "$as_me: failed program was:" >&5
19414sed 's/^/| /' conftest.$ac_ext >&5
19415
19416 ac_header_preproc=no
19417fi
19418
19419rm -f conftest.err conftest.$ac_ext
19420{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19421$as_echo "$ac_header_preproc" >&6; }
19422
19423# So? What about this header?
19424case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19425 yes:no: )
19426 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19427$as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19428 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19429$as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19430 ac_header_preproc=yes
19431 ;;
19432 no:yes:* )
19433 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19434$as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19435 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19436$as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19437 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19438$as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19439 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19440$as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19441 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19442$as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19443 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19444$as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19445
19446 ;;
19447esac
19448{ $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19449$as_echo_n "checking for locale.h... " >&6; }
19450if test "${ac_cv_header_locale_h+set}" = set; then
19451 $as_echo_n "(cached) " >&6
19452else
19453 ac_cv_header_locale_h=$ac_header_preproc
19454fi
19455{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19456$as_echo "$ac_cv_header_locale_h" >&6; }
19457
19458fi
19459
19460
11539 19461
11540for ac_func in setlocale 19462for ac_func in setlocale
11541do : 19463do
11542 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 19464as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11543if test "x$ac_cv_func_setlocale" = x""yes; then : 19465{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19466$as_echo_n "checking for $ac_func... " >&6; }
19467if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19468 $as_echo_n "(cached) " >&6
19469else
19470 cat >conftest.$ac_ext <<_ACEOF
19471/* confdefs.h. */
19472_ACEOF
19473cat confdefs.h >>conftest.$ac_ext
19474cat >>conftest.$ac_ext <<_ACEOF
19475/* end confdefs.h. */
19476/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19477 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19478#define $ac_func innocuous_$ac_func
19479
19480/* System header to define __stub macros and hopefully few prototypes,
19481 which can conflict with char $ac_func (); below.
19482 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19483 <limits.h> exists even on freestanding compilers. */
19484
19485#ifdef __STDC__
19486# include <limits.h>
19487#else
19488# include <assert.h>
19489#endif
19490
19491#undef $ac_func
19492
19493/* Override any GCC internal prototype to avoid an error.
19494 Use char because int might match the return type of a GCC
19495 builtin and then its argument prototype would still apply. */
19496#ifdef __cplusplus
19497extern "C"
19498#endif
19499char $ac_func ();
19500/* The GNU C library defines this for functions which it implements
19501 to always fail with ENOSYS. Some functions are actually named
19502 something starting with __ and the normal name is an alias. */
19503#if defined __stub_$ac_func || defined __stub___$ac_func
19504choke me
19505#endif
19506
19507int
19508main ()
19509{
19510return $ac_func ();
19511 ;
19512 return 0;
19513}
19514_ACEOF
19515rm -f conftest.$ac_objext conftest$ac_exeext
19516if { (ac_try="$ac_link"
19517case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520esac
19521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19522$as_echo "$ac_try_echo") >&5
19523 (eval "$ac_link") 2>conftest.er1
19524 ac_status=$?
19525 grep -v '^ *+' conftest.er1 >conftest.err
19526 rm -f conftest.er1
19527 cat conftest.err >&5
19528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19529 (exit $ac_status); } && {
19530 test -z "$ac_c_werror_flag" ||
19531 test ! -s conftest.err
19532 } && test -s conftest$ac_exeext && {
19533 test "$cross_compiling" = yes ||
19534 $as_test_x conftest$ac_exeext
19535 }; then
19536 eval "$as_ac_var=yes"
19537else
19538 $as_echo "$as_me: failed program was:" >&5
19539sed 's/^/| /' conftest.$ac_ext >&5
19540
19541 eval "$as_ac_var=no"
19542fi
19543
19544rm -rf conftest.dSYM
19545rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19546 conftest$ac_exeext conftest.$ac_ext
19547fi
19548ac_res=`eval 'as_val=${'$as_ac_var'}
19549 $as_echo "$as_val"'`
19550 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19551$as_echo "$ac_res" >&6; }
19552if test `eval 'as_val=${'$as_ac_var'}
19553 $as_echo "$as_val"'` = yes; then
11544 cat >>confdefs.h <<_ACEOF 19554 cat >>confdefs.h <<_ACEOF
11545#define HAVE_SETLOCALE 1 19555#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11546_ACEOF 19556_ACEOF
11547 19557
11548fi 19558fi
@@ -11555,19 +19565,151 @@ done
11555if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then 19565if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11556 ac_have_func=yes 19566 ac_have_func=yes
11557 19567
11558$as_echo "#define SVR4 1" >>confdefs.h 19568cat >>confdefs.h <<\_ACEOF
19569#define SVR4 1
19570_ACEOF
11559 19571
11560fi 19572fi
11561 19573
11562if test $ac_have_func = no; then 19574if test $ac_have_func = no; then
11563 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" 19575 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11564if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then : 19576 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19577$as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19578if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19579 $as_echo_n "(cached) " >&6
19580fi
19581{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19582$as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19583else
19584 # Is the header compilable?
19585{ $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19586$as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19587cat >conftest.$ac_ext <<_ACEOF
19588/* confdefs.h. */
19589_ACEOF
19590cat confdefs.h >>conftest.$ac_ext
19591cat >>conftest.$ac_ext <<_ACEOF
19592/* end confdefs.h. */
19593$ac_includes_default
19594#include <inq_stats/cpustats.h>
19595_ACEOF
19596rm -f conftest.$ac_objext
19597if { (ac_try="$ac_compile"
19598case "(($ac_try" in
19599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19600 *) ac_try_echo=$ac_try;;
19601esac
19602eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19603$as_echo "$ac_try_echo") >&5
19604 (eval "$ac_compile") 2>conftest.er1
19605 ac_status=$?
19606 grep -v '^ *+' conftest.er1 >conftest.err
19607 rm -f conftest.er1
19608 cat conftest.err >&5
19609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19610 (exit $ac_status); } && {
19611 test -z "$ac_c_werror_flag" ||
19612 test ! -s conftest.err
19613 } && test -s conftest.$ac_objext; then
19614 ac_header_compiler=yes
19615else
19616 $as_echo "$as_me: failed program was:" >&5
19617sed 's/^/| /' conftest.$ac_ext >&5
19618
19619 ac_header_compiler=no
19620fi
19621
19622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19623{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19624$as_echo "$ac_header_compiler" >&6; }
19625
19626# Is the header present?
19627{ $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19628$as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19629cat >conftest.$ac_ext <<_ACEOF
19630/* confdefs.h. */
19631_ACEOF
19632cat confdefs.h >>conftest.$ac_ext
19633cat >>conftest.$ac_ext <<_ACEOF
19634/* end confdefs.h. */
19635#include <inq_stats/cpustats.h>
19636_ACEOF
19637if { (ac_try="$ac_cpp conftest.$ac_ext"
19638case "(($ac_try" in
19639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640 *) ac_try_echo=$ac_try;;
19641esac
19642eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19643$as_echo "$ac_try_echo") >&5
19644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19645 ac_status=$?
19646 grep -v '^ *+' conftest.er1 >conftest.err
19647 rm -f conftest.er1
19648 cat conftest.err >&5
19649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19650 (exit $ac_status); } >/dev/null && {
19651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19652 test ! -s conftest.err
19653 }; then
19654 ac_header_preproc=yes
19655else
19656 $as_echo "$as_me: failed program was:" >&5
19657sed 's/^/| /' conftest.$ac_ext >&5
19658
19659 ac_header_preproc=no
19660fi
19661
19662rm -f conftest.err conftest.$ac_ext
19663{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19664$as_echo "$ac_header_preproc" >&6; }
19665
19666# So? What about this header?
19667case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19668 yes:no: )
19669 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19670$as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19671 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19672$as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19673 ac_header_preproc=yes
19674 ;;
19675 no:yes:* )
19676 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19677$as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19678 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19679$as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19680 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19681$as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19682 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19683$as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19684 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19685$as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19686 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19687$as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19688
19689 ;;
19690esac
19691{ $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19692$as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19693if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19694 $as_echo_n "(cached) " >&6
19695else
19696 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19697fi
19698{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19699$as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19700
19701fi
19702if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11565 ac_have_func=yes 19703 ac_have_func=yes
11566 19704
11567$as_echo "#define UMAX 1" >>confdefs.h 19705cat >>confdefs.h <<\_ACEOF
19706#define UMAX 1
19707_ACEOF
11568 19708
11569 19709
11570$as_echo "#define UMAX4_3 1" >>confdefs.h 19710cat >>confdefs.h <<\_ACEOF
19711#define UMAX4_3 1
19712_ACEOF
11571 19713
11572fi 19714fi
11573 19715
@@ -11575,9 +19717,137 @@ fi
11575fi 19717fi
11576 19718
11577if test $ac_have_func = no; then 19719if test $ac_have_func = no; then
11578 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" 19720 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11579if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then : 19721 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11580 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h 19722$as_echo_n "checking for sys/cpustats.h... " >&6; }
19723if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19724 $as_echo_n "(cached) " >&6
19725fi
19726{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19727$as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19728else
19729 # Is the header compilable?
19730{ $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19731$as_echo_n "checking sys/cpustats.h usability... " >&6; }
19732cat >conftest.$ac_ext <<_ACEOF
19733/* confdefs.h. */
19734_ACEOF
19735cat confdefs.h >>conftest.$ac_ext
19736cat >>conftest.$ac_ext <<_ACEOF
19737/* end confdefs.h. */
19738$ac_includes_default
19739#include <sys/cpustats.h>
19740_ACEOF
19741rm -f conftest.$ac_objext
19742if { (ac_try="$ac_compile"
19743case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746esac
19747eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19748$as_echo "$ac_try_echo") >&5
19749 (eval "$ac_compile") 2>conftest.er1
19750 ac_status=$?
19751 grep -v '^ *+' conftest.er1 >conftest.err
19752 rm -f conftest.er1
19753 cat conftest.err >&5
19754 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19755 (exit $ac_status); } && {
19756 test -z "$ac_c_werror_flag" ||
19757 test ! -s conftest.err
19758 } && test -s conftest.$ac_objext; then
19759 ac_header_compiler=yes
19760else
19761 $as_echo "$as_me: failed program was:" >&5
19762sed 's/^/| /' conftest.$ac_ext >&5
19763
19764 ac_header_compiler=no
19765fi
19766
19767rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19768{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19769$as_echo "$ac_header_compiler" >&6; }
19770
19771# Is the header present?
19772{ $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19773$as_echo_n "checking sys/cpustats.h presence... " >&6; }
19774cat >conftest.$ac_ext <<_ACEOF
19775/* confdefs.h. */
19776_ACEOF
19777cat confdefs.h >>conftest.$ac_ext
19778cat >>conftest.$ac_ext <<_ACEOF
19779/* end confdefs.h. */
19780#include <sys/cpustats.h>
19781_ACEOF
19782if { (ac_try="$ac_cpp conftest.$ac_ext"
19783case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19786esac
19787eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19788$as_echo "$ac_try_echo") >&5
19789 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19790 ac_status=$?
19791 grep -v '^ *+' conftest.er1 >conftest.err
19792 rm -f conftest.er1
19793 cat conftest.err >&5
19794 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19795 (exit $ac_status); } >/dev/null && {
19796 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19797 test ! -s conftest.err
19798 }; then
19799 ac_header_preproc=yes
19800else
19801 $as_echo "$as_me: failed program was:" >&5
19802sed 's/^/| /' conftest.$ac_ext >&5
19803
19804 ac_header_preproc=no
19805fi
19806
19807rm -f conftest.err conftest.$ac_ext
19808{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19809$as_echo "$ac_header_preproc" >&6; }
19810
19811# So? What about this header?
19812case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19813 yes:no: )
19814 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19815$as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19816 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19817$as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19818 ac_header_preproc=yes
19819 ;;
19820 no:yes:* )
19821 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19822$as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19823 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19824$as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19825 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19826$as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19827 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19828$as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19829 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19830$as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19831 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19832$as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19833
19834 ;;
19835esac
19836{ $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19837$as_echo_n "checking for sys/cpustats.h... " >&6; }
19838if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19839 $as_echo_n "(cached) " >&6
19840else
19841 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19842fi
19843{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19844$as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19845
19846fi
19847if test $ac_cv_header_sys_cpustats_h = yes; then
19848 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19849#define UMAX 1
19850_ACEOF
11581 19851
11582fi 19852fi
11583 19853
@@ -11585,12 +19855,145 @@ fi
11585fi 19855fi
11586 19856
11587if test $ac_have_func = no; then 19857if test $ac_have_func = no; then
11588 for ac_header in mach/mach.h 19858
11589do : 19859for ac_header in mach/mach.h
11590 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" 19860do
11591if test "x$ac_cv_header_mach_mach_h" = x""yes; then : 19861as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19862if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19863 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19864$as_echo_n "checking for $ac_header... " >&6; }
19865if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19866 $as_echo_n "(cached) " >&6
19867fi
19868ac_res=`eval 'as_val=${'$as_ac_Header'}
19869 $as_echo "$as_val"'`
19870 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19871$as_echo "$ac_res" >&6; }
19872else
19873 # Is the header compilable?
19874{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19875$as_echo_n "checking $ac_header usability... " >&6; }
19876cat >conftest.$ac_ext <<_ACEOF
19877/* confdefs.h. */
19878_ACEOF
19879cat confdefs.h >>conftest.$ac_ext
19880cat >>conftest.$ac_ext <<_ACEOF
19881/* end confdefs.h. */
19882$ac_includes_default
19883#include <$ac_header>
19884_ACEOF
19885rm -f conftest.$ac_objext
19886if { (ac_try="$ac_compile"
19887case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19890esac
19891eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19892$as_echo "$ac_try_echo") >&5
19893 (eval "$ac_compile") 2>conftest.er1
19894 ac_status=$?
19895 grep -v '^ *+' conftest.er1 >conftest.err
19896 rm -f conftest.er1
19897 cat conftest.err >&5
19898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19899 (exit $ac_status); } && {
19900 test -z "$ac_c_werror_flag" ||
19901 test ! -s conftest.err
19902 } && test -s conftest.$ac_objext; then
19903 ac_header_compiler=yes
19904else
19905 $as_echo "$as_me: failed program was:" >&5
19906sed 's/^/| /' conftest.$ac_ext >&5
19907
19908 ac_header_compiler=no
19909fi
19910
19911rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19912{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19913$as_echo "$ac_header_compiler" >&6; }
19914
19915# Is the header present?
19916{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19917$as_echo_n "checking $ac_header presence... " >&6; }
19918cat >conftest.$ac_ext <<_ACEOF
19919/* confdefs.h. */
19920_ACEOF
19921cat confdefs.h >>conftest.$ac_ext
19922cat >>conftest.$ac_ext <<_ACEOF
19923/* end confdefs.h. */
19924#include <$ac_header>
19925_ACEOF
19926if { (ac_try="$ac_cpp conftest.$ac_ext"
19927case "(($ac_try" in
19928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19929 *) ac_try_echo=$ac_try;;
19930esac
19931eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19932$as_echo "$ac_try_echo") >&5
19933 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19934 ac_status=$?
19935 grep -v '^ *+' conftest.er1 >conftest.err
19936 rm -f conftest.er1
19937 cat conftest.err >&5
19938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } >/dev/null && {
19940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19941 test ! -s conftest.err
19942 }; then
19943 ac_header_preproc=yes
19944else
19945 $as_echo "$as_me: failed program was:" >&5
19946sed 's/^/| /' conftest.$ac_ext >&5
19947
19948 ac_header_preproc=no
19949fi
19950
19951rm -f conftest.err conftest.$ac_ext
19952{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19953$as_echo "$ac_header_preproc" >&6; }
19954
19955# So? What about this header?
19956case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19957 yes:no: )
19958 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19959$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19960 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19961$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19962 ac_header_preproc=yes
19963 ;;
19964 no:yes:* )
19965 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19966$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19967 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19968$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19970$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19972$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19974$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19976$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19977
19978 ;;
19979esac
19980{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19981$as_echo_n "checking for $ac_header... " >&6; }
19982if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19983 $as_echo_n "(cached) " >&6
19984else
19985 eval "$as_ac_Header=\$ac_header_preproc"
19986fi
19987ac_res=`eval 'as_val=${'$as_ac_Header'}
19988 $as_echo "$as_val"'`
19989 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19990$as_echo "$ac_res" >&6; }
19991
19992fi
19993if test `eval 'as_val=${'$as_ac_Header'}
19994 $as_echo "$as_val"'` = yes; then
11592 cat >>confdefs.h <<_ACEOF 19995 cat >>confdefs.h <<_ACEOF
11593#define HAVE_MACH_MACH_H 1 19996#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11594_ACEOF 19997_ACEOF
11595 19998
11596fi 19999fi
@@ -11599,23 +20002,253 @@ done
11599 20002
11600fi 20003fi
11601 20004
20005
11602for ac_header in nlist.h 20006for ac_header in nlist.h
11603do : 20007do
11604 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" 20008as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11605if test "x$ac_cv_header_nlist_h" = x""yes; then : 20009if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20010 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20011$as_echo_n "checking for $ac_header... " >&6; }
20012if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20013 $as_echo_n "(cached) " >&6
20014fi
20015ac_res=`eval 'as_val=${'$as_ac_Header'}
20016 $as_echo "$as_val"'`
20017 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20018$as_echo "$ac_res" >&6; }
20019else
20020 # Is the header compilable?
20021{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20022$as_echo_n "checking $ac_header usability... " >&6; }
20023cat >conftest.$ac_ext <<_ACEOF
20024/* confdefs.h. */
20025_ACEOF
20026cat confdefs.h >>conftest.$ac_ext
20027cat >>conftest.$ac_ext <<_ACEOF
20028/* end confdefs.h. */
20029$ac_includes_default
20030#include <$ac_header>
20031_ACEOF
20032rm -f conftest.$ac_objext
20033if { (ac_try="$ac_compile"
20034case "(($ac_try" in
20035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20036 *) ac_try_echo=$ac_try;;
20037esac
20038eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20039$as_echo "$ac_try_echo") >&5
20040 (eval "$ac_compile") 2>conftest.er1
20041 ac_status=$?
20042 grep -v '^ *+' conftest.er1 >conftest.err
20043 rm -f conftest.er1
20044 cat conftest.err >&5
20045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); } && {
20047 test -z "$ac_c_werror_flag" ||
20048 test ! -s conftest.err
20049 } && test -s conftest.$ac_objext; then
20050 ac_header_compiler=yes
20051else
20052 $as_echo "$as_me: failed program was:" >&5
20053sed 's/^/| /' conftest.$ac_ext >&5
20054
20055 ac_header_compiler=no
20056fi
20057
20058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20059{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20060$as_echo "$ac_header_compiler" >&6; }
20061
20062# Is the header present?
20063{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20064$as_echo_n "checking $ac_header presence... " >&6; }
20065cat >conftest.$ac_ext <<_ACEOF
20066/* confdefs.h. */
20067_ACEOF
20068cat confdefs.h >>conftest.$ac_ext
20069cat >>conftest.$ac_ext <<_ACEOF
20070/* end confdefs.h. */
20071#include <$ac_header>
20072_ACEOF
20073if { (ac_try="$ac_cpp conftest.$ac_ext"
20074case "(($ac_try" in
20075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20076 *) ac_try_echo=$ac_try;;
20077esac
20078eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20079$as_echo "$ac_try_echo") >&5
20080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20081 ac_status=$?
20082 grep -v '^ *+' conftest.er1 >conftest.err
20083 rm -f conftest.er1
20084 cat conftest.err >&5
20085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20086 (exit $ac_status); } >/dev/null && {
20087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20088 test ! -s conftest.err
20089 }; then
20090 ac_header_preproc=yes
20091else
20092 $as_echo "$as_me: failed program was:" >&5
20093sed 's/^/| /' conftest.$ac_ext >&5
20094
20095 ac_header_preproc=no
20096fi
20097
20098rm -f conftest.err conftest.$ac_ext
20099{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20100$as_echo "$ac_header_preproc" >&6; }
20101
20102# So? What about this header?
20103case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20104 yes:no: )
20105 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20106$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20107 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20108$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20109 ac_header_preproc=yes
20110 ;;
20111 no:yes:* )
20112 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20113$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20114 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20115$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20117$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20119$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20121$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20123$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20124
20125 ;;
20126esac
20127{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20128$as_echo_n "checking for $ac_header... " >&6; }
20129if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20130 $as_echo_n "(cached) " >&6
20131else
20132 eval "$as_ac_Header=\$ac_header_preproc"
20133fi
20134ac_res=`eval 'as_val=${'$as_ac_Header'}
20135 $as_echo "$as_val"'`
20136 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20137$as_echo "$ac_res" >&6; }
20138
20139fi
20140if test `eval 'as_val=${'$as_ac_Header'}
20141 $as_echo "$as_val"'` = yes; then
11606 cat >>confdefs.h <<_ACEOF 20142 cat >>confdefs.h <<_ACEOF
11607#define HAVE_NLIST_H 1 20143#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11608_ACEOF 20144_ACEOF
11609 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h> 20145 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
11610" 20146$as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
11611if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then : 20147if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20148 $as_echo_n "(cached) " >&6
20149else
20150 cat >conftest.$ac_ext <<_ACEOF
20151/* confdefs.h. */
20152_ACEOF
20153cat confdefs.h >>conftest.$ac_ext
20154cat >>conftest.$ac_ext <<_ACEOF
20155/* end confdefs.h. */
20156#include <nlist.h>
20157
20158int
20159main ()
20160{
20161static struct nlist ac_aggr;
20162if (ac_aggr.n_un.n_name)
20163return 0;
20164 ;
20165 return 0;
20166}
20167_ACEOF
20168rm -f conftest.$ac_objext
20169if { (ac_try="$ac_compile"
20170case "(($ac_try" in
20171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20172 *) ac_try_echo=$ac_try;;
20173esac
20174eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20175$as_echo "$ac_try_echo") >&5
20176 (eval "$ac_compile") 2>conftest.er1
20177 ac_status=$?
20178 grep -v '^ *+' conftest.er1 >conftest.err
20179 rm -f conftest.er1
20180 cat conftest.err >&5
20181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20182 (exit $ac_status); } && {
20183 test -z "$ac_c_werror_flag" ||
20184 test ! -s conftest.err
20185 } && test -s conftest.$ac_objext; then
20186 ac_cv_member_struct_nlist_n_un_n_name=yes
20187else
20188 $as_echo "$as_me: failed program was:" >&5
20189sed 's/^/| /' conftest.$ac_ext >&5
20190
20191 cat >conftest.$ac_ext <<_ACEOF
20192/* confdefs.h. */
20193_ACEOF
20194cat confdefs.h >>conftest.$ac_ext
20195cat >>conftest.$ac_ext <<_ACEOF
20196/* end confdefs.h. */
20197#include <nlist.h>
20198
20199int
20200main ()
20201{
20202static struct nlist ac_aggr;
20203if (sizeof ac_aggr.n_un.n_name)
20204return 0;
20205 ;
20206 return 0;
20207}
20208_ACEOF
20209rm -f conftest.$ac_objext
20210if { (ac_try="$ac_compile"
20211case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20214esac
20215eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20216$as_echo "$ac_try_echo") >&5
20217 (eval "$ac_compile") 2>conftest.er1
20218 ac_status=$?
20219 grep -v '^ *+' conftest.er1 >conftest.err
20220 rm -f conftest.er1
20221 cat conftest.err >&5
20222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20223 (exit $ac_status); } && {
20224 test -z "$ac_c_werror_flag" ||
20225 test ! -s conftest.err
20226 } && test -s conftest.$ac_objext; then
20227 ac_cv_member_struct_nlist_n_un_n_name=yes
20228else
20229 $as_echo "$as_me: failed program was:" >&5
20230sed 's/^/| /' conftest.$ac_ext >&5
20231
20232 ac_cv_member_struct_nlist_n_un_n_name=no
20233fi
20234
20235rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20236fi
20237
20238rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20239fi
20240{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20241$as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20242if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
11612 20243
11613cat >>confdefs.h <<_ACEOF 20244cat >>confdefs.h <<_ACEOF
11614#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 20245#define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11615_ACEOF 20246_ACEOF
11616 20247
11617 20248
11618$as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 20249cat >>confdefs.h <<\_ACEOF
20250#define NLIST_NAME_UNION 1
20251_ACEOF
11619 20252
11620fi 20253fi
11621 20254
@@ -11629,12 +20262,16 @@ done
11629 20262
11630 20263
11631# Some definitions of getloadavg require that the program be installed setgid. 20264# Some definitions of getloadavg require that the program be installed setgid.
11632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5 20265{ $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
11633$as_echo_n "checking whether getloadavg requires setgid... " >&6; } 20266$as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11634if test "${ac_cv_func_getloadavg_setgid+set}" = set; then : 20267if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
11635 $as_echo_n "(cached) " >&6 20268 $as_echo_n "(cached) " >&6
11636else 20269else
11637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20270 cat >conftest.$ac_ext <<_ACEOF
20271/* confdefs.h. */
20272_ACEOF
20273cat confdefs.h >>conftest.$ac_ext
20274cat >>conftest.$ac_ext <<_ACEOF
11638/* end confdefs.h. */ 20275/* end confdefs.h. */
11639#include "$srcdir/$ac_config_libobj_dir/getloadavg.c" 20276#include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11640#ifdef LDAV_PRIVILEGED 20277#ifdef LDAV_PRIVILEGED
@@ -11642,7 +20279,7 @@ Yowza Am I SETGID yet
11642#endif 20279#endif
11643_ACEOF 20280_ACEOF
11644if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20281if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11645 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then : 20282 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
11646 ac_cv_func_getloadavg_setgid=yes 20283 ac_cv_func_getloadavg_setgid=yes
11647else 20284else
11648 ac_cv_func_getloadavg_setgid=no 20285 ac_cv_func_getloadavg_setgid=no
@@ -11650,21 +20287,23 @@ fi
11650rm -f conftest* 20287rm -f conftest*
11651 20288
11652fi 20289fi
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5 20290{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
11654$as_echo "$ac_cv_func_getloadavg_setgid" >&6; } 20291$as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11655if test $ac_cv_func_getloadavg_setgid = yes; then 20292if test $ac_cv_func_getloadavg_setgid = yes; then
11656 NEED_SETGID=true 20293 NEED_SETGID=true
11657 20294
11658$as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h 20295cat >>confdefs.h <<\_ACEOF
20296#define GETLOADAVG_PRIVILEGED 1
20297_ACEOF
11659 20298
11660else 20299else
11661 NEED_SETGID=false 20300 NEED_SETGID=false
11662fi 20301fi
11663 20302
11664if test $ac_cv_func_getloadavg_setgid = yes; then 20303if test $ac_cv_func_getloadavg_setgid = yes; then
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5 20304 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
11666$as_echo_n "checking group of /dev/kmem... " >&6; } 20305$as_echo_n "checking group of /dev/kmem... " >&6; }
11667if test "${ac_cv_group_kmem+set}" = set; then : 20306if test "${ac_cv_group_kmem+set}" = set; then
11668 $as_echo_n "(cached) " >&6 20307 $as_echo_n "(cached) " >&6
11669else 20308else
11670 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 20309 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
@@ -11677,7 +20316,7 @@ else
11677 / /s/.* //;p;'` 20316 / /s/.* //;p;'`
11678 20317
11679fi 20318fi
11680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5 20319{ $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
11681$as_echo "$ac_cv_group_kmem" >&6; } 20320$as_echo "$ac_cv_group_kmem" >&6; }
11682 KMEM_GROUP=$ac_cv_group_kmem 20321 KMEM_GROUP=$ac_cv_group_kmem
11683fi 20322fi
@@ -11690,13 +20329,17 @@ LIBS=$ac_save_LIBS
11690 20329
11691 20330
11692 20331
11693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 20332{ $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11694$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 20333$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11695if test "${ac_cv_sys_largefile_source+set}" = set; then : 20334if test "${ac_cv_sys_largefile_source+set}" = set; then
11696 $as_echo_n "(cached) " >&6 20335 $as_echo_n "(cached) " >&6
11697else 20336else
11698 while :; do 20337 while :; do
11699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20338 cat >conftest.$ac_ext <<_ACEOF
20339/* confdefs.h. */
20340_ACEOF
20341cat confdefs.h >>conftest.$ac_ext
20342cat >>conftest.$ac_ext <<_ACEOF
11700/* end confdefs.h. */ 20343/* end confdefs.h. */
11701#include <sys/types.h> /* for off_t */ 20344#include <sys/types.h> /* for off_t */
11702 #include <stdio.h> 20345 #include <stdio.h>
@@ -11709,12 +20352,43 @@ int (*fp) (FILE *, off_t, int) = fseeko;
11709 return 0; 20352 return 0;
11710} 20353}
11711_ACEOF 20354_ACEOF
11712if ac_fn_c_try_link "$LINENO"; then : 20355rm -f conftest.$ac_objext conftest$ac_exeext
20356if { (ac_try="$ac_link"
20357case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20360esac
20361eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20362$as_echo "$ac_try_echo") >&5
20363 (eval "$ac_link") 2>conftest.er1
20364 ac_status=$?
20365 grep -v '^ *+' conftest.er1 >conftest.err
20366 rm -f conftest.er1
20367 cat conftest.err >&5
20368 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20369 (exit $ac_status); } && {
20370 test -z "$ac_c_werror_flag" ||
20371 test ! -s conftest.err
20372 } && test -s conftest$ac_exeext && {
20373 test "$cross_compiling" = yes ||
20374 $as_test_x conftest$ac_exeext
20375 }; then
11713 ac_cv_sys_largefile_source=no; break 20376 ac_cv_sys_largefile_source=no; break
20377else
20378 $as_echo "$as_me: failed program was:" >&5
20379sed 's/^/| /' conftest.$ac_ext >&5
20380
20381
11714fi 20382fi
11715rm -f core conftest.err conftest.$ac_objext \ 20383
11716 conftest$ac_exeext conftest.$ac_ext 20384rm -rf conftest.dSYM
11717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20385rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20386 conftest$ac_exeext conftest.$ac_ext
20387 cat >conftest.$ac_ext <<_ACEOF
20388/* confdefs.h. */
20389_ACEOF
20390cat confdefs.h >>conftest.$ac_ext
20391cat >>conftest.$ac_ext <<_ACEOF
11718/* end confdefs.h. */ 20392/* end confdefs.h. */
11719#define _LARGEFILE_SOURCE 1 20393#define _LARGEFILE_SOURCE 1
11720#include <sys/types.h> /* for off_t */ 20394#include <sys/types.h> /* for off_t */
@@ -11728,16 +20402,43 @@ int (*fp) (FILE *, off_t, int) = fseeko;
11728 return 0; 20402 return 0;
11729} 20403}
11730_ACEOF 20404_ACEOF
11731if ac_fn_c_try_link "$LINENO"; then : 20405rm -f conftest.$ac_objext conftest$ac_exeext
20406if { (ac_try="$ac_link"
20407case "(($ac_try" in
20408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20409 *) ac_try_echo=$ac_try;;
20410esac
20411eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20412$as_echo "$ac_try_echo") >&5
20413 (eval "$ac_link") 2>conftest.er1
20414 ac_status=$?
20415 grep -v '^ *+' conftest.er1 >conftest.err
20416 rm -f conftest.er1
20417 cat conftest.err >&5
20418 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20419 (exit $ac_status); } && {
20420 test -z "$ac_c_werror_flag" ||
20421 test ! -s conftest.err
20422 } && test -s conftest$ac_exeext && {
20423 test "$cross_compiling" = yes ||
20424 $as_test_x conftest$ac_exeext
20425 }; then
11732 ac_cv_sys_largefile_source=1; break 20426 ac_cv_sys_largefile_source=1; break
20427else
20428 $as_echo "$as_me: failed program was:" >&5
20429sed 's/^/| /' conftest.$ac_ext >&5
20430
20431
11733fi 20432fi
11734rm -f core conftest.err conftest.$ac_objext \ 20433
11735 conftest$ac_exeext conftest.$ac_ext 20434rm -rf conftest.dSYM
20435rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20436 conftest$ac_exeext conftest.$ac_ext
11736 ac_cv_sys_largefile_source=unknown 20437 ac_cv_sys_largefile_source=unknown
11737 break 20438 break
11738done 20439done
11739fi 20440fi
11740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 20441{ $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11741$as_echo "$ac_cv_sys_largefile_source" >&6; } 20442$as_echo "$ac_cv_sys_largefile_source" >&6; }
11742case $ac_cv_sys_largefile_source in #( 20443case $ac_cv_sys_largefile_source in #(
11743 no | unknown) ;; 20444 no | unknown) ;;
@@ -11754,7 +20455,9 @@ rm -rf conftest*
11754# If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 20455# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11755if test $ac_cv_sys_largefile_source != unknown; then 20456if test $ac_cv_sys_largefile_source != unknown; then
11756 20457
11757$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 20458cat >>confdefs.h <<\_ACEOF
20459#define HAVE_FSEEKO 1
20460_ACEOF
11758 20461
11759fi 20462fi
11760 20463
@@ -11782,12 +20485,145 @@ fi
11782 20485
11783 20486
11784 GETOPT_H= 20487 GETOPT_H=
11785 for ac_header in getopt.h 20488
11786do : 20489for ac_header in getopt.h
11787 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 20490do
11788if test "x$ac_cv_header_getopt_h" = x""yes; then : 20491as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20492if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20493 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20494$as_echo_n "checking for $ac_header... " >&6; }
20495if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20496 $as_echo_n "(cached) " >&6
20497fi
20498ac_res=`eval 'as_val=${'$as_ac_Header'}
20499 $as_echo "$as_val"'`
20500 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20501$as_echo "$ac_res" >&6; }
20502else
20503 # Is the header compilable?
20504{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20505$as_echo_n "checking $ac_header usability... " >&6; }
20506cat >conftest.$ac_ext <<_ACEOF
20507/* confdefs.h. */
20508_ACEOF
20509cat confdefs.h >>conftest.$ac_ext
20510cat >>conftest.$ac_ext <<_ACEOF
20511/* end confdefs.h. */
20512$ac_includes_default
20513#include <$ac_header>
20514_ACEOF
20515rm -f conftest.$ac_objext
20516if { (ac_try="$ac_compile"
20517case "(($ac_try" in
20518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20519 *) ac_try_echo=$ac_try;;
20520esac
20521eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20522$as_echo "$ac_try_echo") >&5
20523 (eval "$ac_compile") 2>conftest.er1
20524 ac_status=$?
20525 grep -v '^ *+' conftest.er1 >conftest.err
20526 rm -f conftest.er1
20527 cat conftest.err >&5
20528 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20529 (exit $ac_status); } && {
20530 test -z "$ac_c_werror_flag" ||
20531 test ! -s conftest.err
20532 } && test -s conftest.$ac_objext; then
20533 ac_header_compiler=yes
20534else
20535 $as_echo "$as_me: failed program was:" >&5
20536sed 's/^/| /' conftest.$ac_ext >&5
20537
20538 ac_header_compiler=no
20539fi
20540
20541rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20542{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20543$as_echo "$ac_header_compiler" >&6; }
20544
20545# Is the header present?
20546{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20547$as_echo_n "checking $ac_header presence... " >&6; }
20548cat >conftest.$ac_ext <<_ACEOF
20549/* confdefs.h. */
20550_ACEOF
20551cat confdefs.h >>conftest.$ac_ext
20552cat >>conftest.$ac_ext <<_ACEOF
20553/* end confdefs.h. */
20554#include <$ac_header>
20555_ACEOF
20556if { (ac_try="$ac_cpp conftest.$ac_ext"
20557case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20560esac
20561eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20562$as_echo "$ac_try_echo") >&5
20563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20564 ac_status=$?
20565 grep -v '^ *+' conftest.er1 >conftest.err
20566 rm -f conftest.er1
20567 cat conftest.err >&5
20568 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20569 (exit $ac_status); } >/dev/null && {
20570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20571 test ! -s conftest.err
20572 }; then
20573 ac_header_preproc=yes
20574else
20575 $as_echo "$as_me: failed program was:" >&5
20576sed 's/^/| /' conftest.$ac_ext >&5
20577
20578 ac_header_preproc=no
20579fi
20580
20581rm -f conftest.err conftest.$ac_ext
20582{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20583$as_echo "$ac_header_preproc" >&6; }
20584
20585# So? What about this header?
20586case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20587 yes:no: )
20588 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20589$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20590 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20591$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20592 ac_header_preproc=yes
20593 ;;
20594 no:yes:* )
20595 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20596$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20597 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20598$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20600$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20602$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20604$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20606$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20607
20608 ;;
20609esac
20610{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20611$as_echo_n "checking for $ac_header... " >&6; }
20612if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20613 $as_echo_n "(cached) " >&6
20614else
20615 eval "$as_ac_Header=\$ac_header_preproc"
20616fi
20617ac_res=`eval 'as_val=${'$as_ac_Header'}
20618 $as_echo "$as_val"'`
20619 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20620$as_echo "$ac_res" >&6; }
20621
20622fi
20623if test `eval 'as_val=${'$as_ac_Header'}
20624 $as_echo "$as_val"'` = yes; then
11789 cat >>confdefs.h <<_ACEOF 20625 cat >>confdefs.h <<_ACEOF
11790#define HAVE_GETOPT_H 1 20626#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11791_ACEOF 20627_ACEOF
11792 20628
11793else 20629else
@@ -11797,12 +20633,101 @@ fi
11797done 20633done
11798 20634
11799 if test -z "$GETOPT_H"; then 20635 if test -z "$GETOPT_H"; then
11800 for ac_func in getopt_long_only 20636
11801do : 20637for ac_func in getopt_long_only
11802 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 20638do
11803if test "x$ac_cv_func_getopt_long_only" = x""yes; then : 20639as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20640{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20641$as_echo_n "checking for $ac_func... " >&6; }
20642if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20643 $as_echo_n "(cached) " >&6
20644else
20645 cat >conftest.$ac_ext <<_ACEOF
20646/* confdefs.h. */
20647_ACEOF
20648cat confdefs.h >>conftest.$ac_ext
20649cat >>conftest.$ac_ext <<_ACEOF
20650/* end confdefs.h. */
20651/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20653#define $ac_func innocuous_$ac_func
20654
20655/* System header to define __stub macros and hopefully few prototypes,
20656 which can conflict with char $ac_func (); below.
20657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20658 <limits.h> exists even on freestanding compilers. */
20659
20660#ifdef __STDC__
20661# include <limits.h>
20662#else
20663# include <assert.h>
20664#endif
20665
20666#undef $ac_func
20667
20668/* Override any GCC internal prototype to avoid an error.
20669 Use char because int might match the return type of a GCC
20670 builtin and then its argument prototype would still apply. */
20671#ifdef __cplusplus
20672extern "C"
20673#endif
20674char $ac_func ();
20675/* The GNU C library defines this for functions which it implements
20676 to always fail with ENOSYS. Some functions are actually named
20677 something starting with __ and the normal name is an alias. */
20678#if defined __stub_$ac_func || defined __stub___$ac_func
20679choke me
20680#endif
20681
20682int
20683main ()
20684{
20685return $ac_func ();
20686 ;
20687 return 0;
20688}
20689_ACEOF
20690rm -f conftest.$ac_objext conftest$ac_exeext
20691if { (ac_try="$ac_link"
20692case "(($ac_try" in
20693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20694 *) ac_try_echo=$ac_try;;
20695esac
20696eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20697$as_echo "$ac_try_echo") >&5
20698 (eval "$ac_link") 2>conftest.er1
20699 ac_status=$?
20700 grep -v '^ *+' conftest.er1 >conftest.err
20701 rm -f conftest.er1
20702 cat conftest.err >&5
20703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20704 (exit $ac_status); } && {
20705 test -z "$ac_c_werror_flag" ||
20706 test ! -s conftest.err
20707 } && test -s conftest$ac_exeext && {
20708 test "$cross_compiling" = yes ||
20709 $as_test_x conftest$ac_exeext
20710 }; then
20711 eval "$as_ac_var=yes"
20712else
20713 $as_echo "$as_me: failed program was:" >&5
20714sed 's/^/| /' conftest.$ac_ext >&5
20715
20716 eval "$as_ac_var=no"
20717fi
20718
20719rm -rf conftest.dSYM
20720rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20721 conftest$ac_exeext conftest.$ac_ext
20722fi
20723ac_res=`eval 'as_val=${'$as_ac_var'}
20724 $as_echo "$as_val"'`
20725 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20726$as_echo "$ac_res" >&6; }
20727if test `eval 'as_val=${'$as_ac_var'}
20728 $as_echo "$as_val"'` = yes; then
11804 cat >>confdefs.h <<_ACEOF 20729 cat >>confdefs.h <<_ACEOF
11805#define HAVE_GETOPT_LONG_ONLY 1 20730#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11806_ACEOF 20731_ACEOF
11807 20732
11808else 20733else
@@ -11813,31 +20738,139 @@ done
11813 fi 20738 fi
11814 20739
11815 if test -z "$GETOPT_H"; then 20740 if test -z "$GETOPT_H"; then
11816 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h> 20741 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
11817" 20742$as_echo_n "checking whether optreset is declared... " >&6; }
11818if test "x$ac_cv_have_decl_optreset" = x""yes; then : 20743if test "${ac_cv_have_decl_optreset+set}" = set; then
20744 $as_echo_n "(cached) " >&6
20745else
20746 cat >conftest.$ac_ext <<_ACEOF
20747/* confdefs.h. */
20748_ACEOF
20749cat confdefs.h >>conftest.$ac_ext
20750cat >>conftest.$ac_ext <<_ACEOF
20751/* end confdefs.h. */
20752#include <getopt.h>
20753
20754int
20755main ()
20756{
20757#ifndef optreset
20758 (void) optreset;
20759#endif
20760
20761 ;
20762 return 0;
20763}
20764_ACEOF
20765rm -f conftest.$ac_objext
20766if { (ac_try="$ac_compile"
20767case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20770esac
20771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20772$as_echo "$ac_try_echo") >&5
20773 (eval "$ac_compile") 2>conftest.er1
20774 ac_status=$?
20775 grep -v '^ *+' conftest.er1 >conftest.err
20776 rm -f conftest.er1
20777 cat conftest.err >&5
20778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } && {
20780 test -z "$ac_c_werror_flag" ||
20781 test ! -s conftest.err
20782 } && test -s conftest.$ac_objext; then
20783 ac_cv_have_decl_optreset=yes
20784else
20785 $as_echo "$as_me: failed program was:" >&5
20786sed 's/^/| /' conftest.$ac_ext >&5
20787
20788 ac_cv_have_decl_optreset=no
20789fi
20790
20791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20792fi
20793{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20794$as_echo "$ac_cv_have_decl_optreset" >&6; }
20795if test $ac_cv_have_decl_optreset = yes; then
11819 GETOPT_H=getopt.h 20796 GETOPT_H=getopt.h
11820fi 20797fi
11821 20798
11822 fi 20799 fi
11823 20800
11824 if test -z "$GETOPT_H"; then 20801 if test -z "$GETOPT_H"; then
11825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 20802 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
11826$as_echo_n "checking for working GNU getopt function... " >&6; } 20803$as_echo_n "checking for working GNU getopt function... " >&6; }
11827if test "${gl_cv_func_gnu_getopt+set}" = set; then : 20804if test "${gl_cv_func_gnu_getopt+set}" = set; then
11828 $as_echo_n "(cached) " >&6 20805 $as_echo_n "(cached) " >&6
11829else 20806else
11830 if test "$cross_compiling" = yes; then : 20807 if test "$cross_compiling" = yes; then
11831 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h> 20808 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
11832" 20809$as_echo_n "checking whether getopt_clip is declared... " >&6; }
11833if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then : 20810if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20811 $as_echo_n "(cached) " >&6
20812else
20813 cat >conftest.$ac_ext <<_ACEOF
20814/* confdefs.h. */
20815_ACEOF
20816cat confdefs.h >>conftest.$ac_ext
20817cat >>conftest.$ac_ext <<_ACEOF
20818/* end confdefs.h. */
20819#include <getopt.h>
20820
20821int
20822main ()
20823{
20824#ifndef getopt_clip
20825 (void) getopt_clip;
20826#endif
20827
20828 ;
20829 return 0;
20830}
20831_ACEOF
20832rm -f conftest.$ac_objext
20833if { (ac_try="$ac_compile"
20834case "(($ac_try" in
20835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20836 *) ac_try_echo=$ac_try;;
20837esac
20838eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20839$as_echo "$ac_try_echo") >&5
20840 (eval "$ac_compile") 2>conftest.er1
20841 ac_status=$?
20842 grep -v '^ *+' conftest.er1 >conftest.err
20843 rm -f conftest.er1
20844 cat conftest.err >&5
20845 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20846 (exit $ac_status); } && {
20847 test -z "$ac_c_werror_flag" ||
20848 test ! -s conftest.err
20849 } && test -s conftest.$ac_objext; then
20850 ac_cv_have_decl_getopt_clip=yes
20851else
20852 $as_echo "$as_me: failed program was:" >&5
20853sed 's/^/| /' conftest.$ac_ext >&5
20854
20855 ac_cv_have_decl_getopt_clip=no
20856fi
20857
20858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20859fi
20860{ $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20861$as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20862if test $ac_cv_have_decl_getopt_clip = yes; then
11834 gl_cv_func_gnu_getopt=no 20863 gl_cv_func_gnu_getopt=no
11835else 20864else
11836 gl_cv_func_gnu_getopt=yes 20865 gl_cv_func_gnu_getopt=yes
11837fi 20866fi
11838 20867
11839else 20868else
11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20869 cat >conftest.$ac_ext <<_ACEOF
20870/* confdefs.h. */
20871_ACEOF
20872cat confdefs.h >>conftest.$ac_ext
20873cat >>conftest.$ac_ext <<_ACEOF
11841/* end confdefs.h. */ 20874/* end confdefs.h. */
11842#include <getopt.h> 20875#include <getopt.h>
11843int 20876int
@@ -11854,17 +20887,44 @@ main ()
11854 return 0; 20887 return 0;
11855} 20888}
11856_ACEOF 20889_ACEOF
11857if ac_fn_c_try_run "$LINENO"; then : 20890rm -f conftest$ac_exeext
20891if { (ac_try="$ac_link"
20892case "(($ac_try" in
20893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20894 *) ac_try_echo=$ac_try;;
20895esac
20896eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20897$as_echo "$ac_try_echo") >&5
20898 (eval "$ac_link") 2>&5
20899 ac_status=$?
20900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20902 { (case "(($ac_try" in
20903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20904 *) ac_try_echo=$ac_try;;
20905esac
20906eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20907$as_echo "$ac_try_echo") >&5
20908 (eval "$ac_try") 2>&5
20909 ac_status=$?
20910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20911 (exit $ac_status); }; }; then
11858 gl_cv_func_gnu_getopt=yes 20912 gl_cv_func_gnu_getopt=yes
11859else 20913else
11860 gl_cv_func_gnu_getopt=no 20914 $as_echo "$as_me: program exited with status $ac_status" >&5
20915$as_echo "$as_me: failed program was:" >&5
20916sed 's/^/| /' conftest.$ac_ext >&5
20917
20918( exit $ac_status )
20919gl_cv_func_gnu_getopt=no
11861fi 20920fi
11862rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20921rm -rf conftest.dSYM
11863 conftest.$ac_objext conftest.beam conftest.$ac_ext 20922rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11864fi 20923fi
11865 20924
20925
11866fi 20926fi
11867{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5 20927{ $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
11868$as_echo "$gl_cv_func_gnu_getopt" >&6; } 20928$as_echo "$gl_cv_func_gnu_getopt" >&6; }
11869 if test "$gl_cv_func_gnu_getopt" = "no"; then 20929 if test "$gl_cv_func_gnu_getopt" = "no"; then
11870 GETOPT_H=getopt.h 20930 GETOPT_H=getopt.h
@@ -11873,12 +20933,14 @@ $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11873 20933
11874 20934
11875 20935
11876 if test -n "$GETOPT_H"; then : 20936 if test -n "$GETOPT_H"; then
11877 20937
11878 20938
11879 GETOPT_H=getopt.h 20939 GETOPT_H=getopt.h
11880 20940
11881$as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 20941cat >>confdefs.h <<\_ACEOF
20942#define __GETOPT_PREFIX rpl_
20943_ACEOF
11882 20944
11883 20945
11884 20946
@@ -11889,13 +20951,18 @@ fi
11889 20951
11890 20952
11891 20953
11892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 20954
20955{ $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11893$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 20956$as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11894if test "${ac_cv_func_getpgrp_void+set}" = set; then : 20957if test "${ac_cv_func_getpgrp_void+set}" = set; then
11895 $as_echo_n "(cached) " >&6 20958 $as_echo_n "(cached) " >&6
11896else 20959else
11897 # Use it with a single arg. 20960 # Use it with a single arg.
11898cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20961cat >conftest.$ac_ext <<_ACEOF
20962/* confdefs.h. */
20963_ACEOF
20964cat confdefs.h >>conftest.$ac_ext
20965cat >>conftest.$ac_ext <<_ACEOF
11899/* end confdefs.h. */ 20966/* end confdefs.h. */
11900$ac_includes_default 20967$ac_includes_default
11901int 20968int
@@ -11906,41 +20973,157 @@ getpgrp (0);
11906 return 0; 20973 return 0;
11907} 20974}
11908_ACEOF 20975_ACEOF
11909if ac_fn_c_try_compile "$LINENO"; then : 20976rm -f conftest.$ac_objext
20977if { (ac_try="$ac_compile"
20978case "(($ac_try" in
20979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20980 *) ac_try_echo=$ac_try;;
20981esac
20982eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20983$as_echo "$ac_try_echo") >&5
20984 (eval "$ac_compile") 2>conftest.er1
20985 ac_status=$?
20986 grep -v '^ *+' conftest.er1 >conftest.err
20987 rm -f conftest.er1
20988 cat conftest.err >&5
20989 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20990 (exit $ac_status); } && {
20991 test -z "$ac_c_werror_flag" ||
20992 test ! -s conftest.err
20993 } && test -s conftest.$ac_objext; then
11910 ac_cv_func_getpgrp_void=no 20994 ac_cv_func_getpgrp_void=no
11911else 20995else
11912 ac_cv_func_getpgrp_void=yes 20996 $as_echo "$as_me: failed program was:" >&5
20997sed 's/^/| /' conftest.$ac_ext >&5
20998
20999 ac_cv_func_getpgrp_void=yes
11913fi 21000fi
21001
11914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11915 21003
11916fi 21004fi
11917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 21005{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11918$as_echo "$ac_cv_func_getpgrp_void" >&6; } 21006$as_echo "$ac_cv_func_getpgrp_void" >&6; }
11919if test $ac_cv_func_getpgrp_void = yes; then 21007if test $ac_cv_func_getpgrp_void = yes; then
11920 21008
11921$as_echo "#define GETPGRP_VOID 1" >>confdefs.h 21009cat >>confdefs.h <<\_ACEOF
21010#define GETPGRP_VOID 1
21011_ACEOF
11922 21012
11923fi 21013fi
11924 21014
11925 21015
21016
11926for ac_func in strftime 21017for ac_func in strftime
11927do : 21018do
11928 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 21019as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11929if test "x$ac_cv_func_strftime" = x""yes; then : 21020{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21021$as_echo_n "checking for $ac_func... " >&6; }
21022if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21023 $as_echo_n "(cached) " >&6
21024else
21025 cat >conftest.$ac_ext <<_ACEOF
21026/* confdefs.h. */
21027_ACEOF
21028cat confdefs.h >>conftest.$ac_ext
21029cat >>conftest.$ac_ext <<_ACEOF
21030/* end confdefs.h. */
21031/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21033#define $ac_func innocuous_$ac_func
21034
21035/* System header to define __stub macros and hopefully few prototypes,
21036 which can conflict with char $ac_func (); below.
21037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21038 <limits.h> exists even on freestanding compilers. */
21039
21040#ifdef __STDC__
21041# include <limits.h>
21042#else
21043# include <assert.h>
21044#endif
21045
21046#undef $ac_func
21047
21048/* Override any GCC internal prototype to avoid an error.
21049 Use char because int might match the return type of a GCC
21050 builtin and then its argument prototype would still apply. */
21051#ifdef __cplusplus
21052extern "C"
21053#endif
21054char $ac_func ();
21055/* The GNU C library defines this for functions which it implements
21056 to always fail with ENOSYS. Some functions are actually named
21057 something starting with __ and the normal name is an alias. */
21058#if defined __stub_$ac_func || defined __stub___$ac_func
21059choke me
21060#endif
21061
21062int
21063main ()
21064{
21065return $ac_func ();
21066 ;
21067 return 0;
21068}
21069_ACEOF
21070rm -f conftest.$ac_objext conftest$ac_exeext
21071if { (ac_try="$ac_link"
21072case "(($ac_try" in
21073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21074 *) ac_try_echo=$ac_try;;
21075esac
21076eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21077$as_echo "$ac_try_echo") >&5
21078 (eval "$ac_link") 2>conftest.er1
21079 ac_status=$?
21080 grep -v '^ *+' conftest.er1 >conftest.err
21081 rm -f conftest.er1
21082 cat conftest.err >&5
21083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21084 (exit $ac_status); } && {
21085 test -z "$ac_c_werror_flag" ||
21086 test ! -s conftest.err
21087 } && test -s conftest$ac_exeext && {
21088 test "$cross_compiling" = yes ||
21089 $as_test_x conftest$ac_exeext
21090 }; then
21091 eval "$as_ac_var=yes"
21092else
21093 $as_echo "$as_me: failed program was:" >&5
21094sed 's/^/| /' conftest.$ac_ext >&5
21095
21096 eval "$as_ac_var=no"
21097fi
21098
21099rm -rf conftest.dSYM
21100rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21101 conftest$ac_exeext conftest.$ac_ext
21102fi
21103ac_res=`eval 'as_val=${'$as_ac_var'}
21104 $as_echo "$as_val"'`
21105 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21106$as_echo "$ac_res" >&6; }
21107if test `eval 'as_val=${'$as_ac_var'}
21108 $as_echo "$as_val"'` = yes; then
11930 cat >>confdefs.h <<_ACEOF 21109 cat >>confdefs.h <<_ACEOF
11931#define HAVE_STRFTIME 1 21110#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11932_ACEOF 21111_ACEOF
11933 21112
11934else 21113else
11935 # strftime is in -lintl on SCO UNIX. 21114 # strftime is in -lintl on SCO UNIX.
11936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 21115{ $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11937$as_echo_n "checking for strftime in -lintl... " >&6; } 21116$as_echo_n "checking for strftime in -lintl... " >&6; }
11938if test "${ac_cv_lib_intl_strftime+set}" = set; then : 21117if test "${ac_cv_lib_intl_strftime+set}" = set; then
11939 $as_echo_n "(cached) " >&6 21118 $as_echo_n "(cached) " >&6
11940else 21119else
11941 ac_check_lib_save_LIBS=$LIBS 21120 ac_check_lib_save_LIBS=$LIBS
11942LIBS="-lintl $LIBS" 21121LIBS="-lintl $LIBS"
11943cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21122cat >conftest.$ac_ext <<_ACEOF
21123/* confdefs.h. */
21124_ACEOF
21125cat confdefs.h >>conftest.$ac_ext
21126cat >>conftest.$ac_ext <<_ACEOF
11944/* end confdefs.h. */ 21127/* end confdefs.h. */
11945 21128
11946/* Override any GCC internal prototype to avoid an error. 21129/* Override any GCC internal prototype to avoid an error.
@@ -11958,19 +21141,46 @@ return strftime ();
11958 return 0; 21141 return 0;
11959} 21142}
11960_ACEOF 21143_ACEOF
11961if ac_fn_c_try_link "$LINENO"; then : 21144rm -f conftest.$ac_objext conftest$ac_exeext
21145if { (ac_try="$ac_link"
21146case "(($ac_try" in
21147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21148 *) ac_try_echo=$ac_try;;
21149esac
21150eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21151$as_echo "$ac_try_echo") >&5
21152 (eval "$ac_link") 2>conftest.er1
21153 ac_status=$?
21154 grep -v '^ *+' conftest.er1 >conftest.err
21155 rm -f conftest.er1
21156 cat conftest.err >&5
21157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21158 (exit $ac_status); } && {
21159 test -z "$ac_c_werror_flag" ||
21160 test ! -s conftest.err
21161 } && test -s conftest$ac_exeext && {
21162 test "$cross_compiling" = yes ||
21163 $as_test_x conftest$ac_exeext
21164 }; then
11962 ac_cv_lib_intl_strftime=yes 21165 ac_cv_lib_intl_strftime=yes
11963else 21166else
11964 ac_cv_lib_intl_strftime=no 21167 $as_echo "$as_me: failed program was:" >&5
21168sed 's/^/| /' conftest.$ac_ext >&5
21169
21170 ac_cv_lib_intl_strftime=no
11965fi 21171fi
11966rm -f core conftest.err conftest.$ac_objext \ 21172
11967 conftest$ac_exeext conftest.$ac_ext 21173rm -rf conftest.dSYM
21174rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21175 conftest$ac_exeext conftest.$ac_ext
11968LIBS=$ac_check_lib_save_LIBS 21176LIBS=$ac_check_lib_save_LIBS
11969fi 21177fi
11970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 21178{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
11971$as_echo "$ac_cv_lib_intl_strftime" >&6; } 21179$as_echo "$ac_cv_lib_intl_strftime" >&6; }
11972if test "x$ac_cv_lib_intl_strftime" = x""yes; then : 21180if test $ac_cv_lib_intl_strftime = yes; then
11973 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 21181 cat >>confdefs.h <<\_ACEOF
21182#define HAVE_STRFTIME 1
21183_ACEOF
11974 21184
11975LIBS="-lintl $LIBS" 21185LIBS="-lintl $LIBS"
11976fi 21186fi
@@ -11980,12 +21190,101 @@ done
11980 21190
11981 21191
11982# UNIX98 PTYs. 21192# UNIX98 PTYs.
21193
11983for ac_func in grantpt 21194for ac_func in grantpt
11984do : 21195do
11985 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" 21196as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11986if test "x$ac_cv_func_grantpt" = x""yes; then : 21197{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21198$as_echo_n "checking for $ac_func... " >&6; }
21199if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21200 $as_echo_n "(cached) " >&6
21201else
21202 cat >conftest.$ac_ext <<_ACEOF
21203/* confdefs.h. */
21204_ACEOF
21205cat confdefs.h >>conftest.$ac_ext
21206cat >>conftest.$ac_ext <<_ACEOF
21207/* end confdefs.h. */
21208/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21210#define $ac_func innocuous_$ac_func
21211
21212/* System header to define __stub macros and hopefully few prototypes,
21213 which can conflict with char $ac_func (); below.
21214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21215 <limits.h> exists even on freestanding compilers. */
21216
21217#ifdef __STDC__
21218# include <limits.h>
21219#else
21220# include <assert.h>
21221#endif
21222
21223#undef $ac_func
21224
21225/* Override any GCC internal prototype to avoid an error.
21226 Use char because int might match the return type of a GCC
21227 builtin and then its argument prototype would still apply. */
21228#ifdef __cplusplus
21229extern "C"
21230#endif
21231char $ac_func ();
21232/* The GNU C library defines this for functions which it implements
21233 to always fail with ENOSYS. Some functions are actually named
21234 something starting with __ and the normal name is an alias. */
21235#if defined __stub_$ac_func || defined __stub___$ac_func
21236choke me
21237#endif
21238
21239int
21240main ()
21241{
21242return $ac_func ();
21243 ;
21244 return 0;
21245}
21246_ACEOF
21247rm -f conftest.$ac_objext conftest$ac_exeext
21248if { (ac_try="$ac_link"
21249case "(($ac_try" in
21250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21251 *) ac_try_echo=$ac_try;;
21252esac
21253eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21254$as_echo "$ac_try_echo") >&5
21255 (eval "$ac_link") 2>conftest.er1
21256 ac_status=$?
21257 grep -v '^ *+' conftest.er1 >conftest.err
21258 rm -f conftest.er1
21259 cat conftest.err >&5
21260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); } && {
21262 test -z "$ac_c_werror_flag" ||
21263 test ! -s conftest.err
21264 } && test -s conftest$ac_exeext && {
21265 test "$cross_compiling" = yes ||
21266 $as_test_x conftest$ac_exeext
21267 }; then
21268 eval "$as_ac_var=yes"
21269else
21270 $as_echo "$as_me: failed program was:" >&5
21271sed 's/^/| /' conftest.$ac_ext >&5
21272
21273 eval "$as_ac_var=no"
21274fi
21275
21276rm -rf conftest.dSYM
21277rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21278 conftest$ac_exeext conftest.$ac_ext
21279fi
21280ac_res=`eval 'as_val=${'$as_ac_var'}
21281 $as_echo "$as_val"'`
21282 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21283$as_echo "$ac_res" >&6; }
21284if test `eval 'as_val=${'$as_ac_var'}
21285 $as_echo "$as_val"'` = yes; then
11987 cat >>confdefs.h <<_ACEOF 21286 cat >>confdefs.h <<_ACEOF
11988#define HAVE_GRANTPT 1 21287#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11989_ACEOF 21288_ACEOF
11990 21289
11991fi 21290fi
@@ -11993,12 +21292,101 @@ done
11993 21292
11994 21293
11995# PTY-related GNU extensions. 21294# PTY-related GNU extensions.
21295
11996for ac_func in getpt 21296for ac_func in getpt
11997do : 21297do
11998 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt" 21298as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11999if test "x$ac_cv_func_getpt" = x""yes; then : 21299{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21300$as_echo_n "checking for $ac_func... " >&6; }
21301if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21302 $as_echo_n "(cached) " >&6
21303else
21304 cat >conftest.$ac_ext <<_ACEOF
21305/* confdefs.h. */
21306_ACEOF
21307cat confdefs.h >>conftest.$ac_ext
21308cat >>conftest.$ac_ext <<_ACEOF
21309/* end confdefs.h. */
21310/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21312#define $ac_func innocuous_$ac_func
21313
21314/* System header to define __stub macros and hopefully few prototypes,
21315 which can conflict with char $ac_func (); below.
21316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21317 <limits.h> exists even on freestanding compilers. */
21318
21319#ifdef __STDC__
21320# include <limits.h>
21321#else
21322# include <assert.h>
21323#endif
21324
21325#undef $ac_func
21326
21327/* Override any GCC internal prototype to avoid an error.
21328 Use char because int might match the return type of a GCC
21329 builtin and then its argument prototype would still apply. */
21330#ifdef __cplusplus
21331extern "C"
21332#endif
21333char $ac_func ();
21334/* The GNU C library defines this for functions which it implements
21335 to always fail with ENOSYS. Some functions are actually named
21336 something starting with __ and the normal name is an alias. */
21337#if defined __stub_$ac_func || defined __stub___$ac_func
21338choke me
21339#endif
21340
21341int
21342main ()
21343{
21344return $ac_func ();
21345 ;
21346 return 0;
21347}
21348_ACEOF
21349rm -f conftest.$ac_objext conftest$ac_exeext
21350if { (ac_try="$ac_link"
21351case "(($ac_try" in
21352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353 *) ac_try_echo=$ac_try;;
21354esac
21355eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21356$as_echo "$ac_try_echo") >&5
21357 (eval "$ac_link") 2>conftest.er1
21358 ac_status=$?
21359 grep -v '^ *+' conftest.er1 >conftest.err
21360 rm -f conftest.er1
21361 cat conftest.err >&5
21362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } && {
21364 test -z "$ac_c_werror_flag" ||
21365 test ! -s conftest.err
21366 } && test -s conftest$ac_exeext && {
21367 test "$cross_compiling" = yes ||
21368 $as_test_x conftest$ac_exeext
21369 }; then
21370 eval "$as_ac_var=yes"
21371else
21372 $as_echo "$as_me: failed program was:" >&5
21373sed 's/^/| /' conftest.$ac_ext >&5
21374
21375 eval "$as_ac_var=no"
21376fi
21377
21378rm -rf conftest.dSYM
21379rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21380 conftest$ac_exeext conftest.$ac_ext
21381fi
21382ac_res=`eval 'as_val=${'$as_ac_var'}
21383 $as_echo "$as_val"'`
21384 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21385$as_echo "$ac_res" >&6; }
21386if test `eval 'as_val=${'$as_ac_var'}
21387 $as_echo "$as_val"'` = yes; then
12000 cat >>confdefs.h <<_ACEOF 21388 cat >>confdefs.h <<_ACEOF
12001#define HAVE_GETPT 1 21389#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12002_ACEOF 21390_ACEOF
12003 21391
12004fi 21392fi
@@ -12011,13 +21399,17 @@ done
12011# than to expect to find it in ncurses. 21399# than to expect to find it in ncurses.
12012# Also we need tputs and frieds to be able to build at all. 21400# Also we need tputs and frieds to be able to build at all.
12013have_tputs_et_al=true 21401have_tputs_et_al=true
12014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5 21402{ $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
12015$as_echo_n "checking for library containing tputs... " >&6; } 21403$as_echo_n "checking for library containing tputs... " >&6; }
12016if test "${ac_cv_search_tputs+set}" = set; then : 21404if test "${ac_cv_search_tputs+set}" = set; then
12017 $as_echo_n "(cached) " >&6 21405 $as_echo_n "(cached) " >&6
12018else 21406else
12019 ac_func_search_save_LIBS=$LIBS 21407 ac_func_search_save_LIBS=$LIBS
12020cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21408cat >conftest.$ac_ext <<_ACEOF
21409/* confdefs.h. */
21410_ACEOF
21411cat confdefs.h >>conftest.$ac_ext
21412cat >>conftest.$ac_ext <<_ACEOF
12021/* end confdefs.h. */ 21413/* end confdefs.h. */
12022 21414
12023/* Override any GCC internal prototype to avoid an error. 21415/* Override any GCC internal prototype to avoid an error.
@@ -12042,27 +21434,54 @@ for ac_lib in '' ncurses terminfo termcap; do
12042 ac_res=-l$ac_lib 21434 ac_res=-l$ac_lib
12043 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21435 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12044 fi 21436 fi
12045 if ac_fn_c_try_link "$LINENO"; then : 21437 rm -f conftest.$ac_objext conftest$ac_exeext
21438if { (ac_try="$ac_link"
21439case "(($ac_try" in
21440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21441 *) ac_try_echo=$ac_try;;
21442esac
21443eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21444$as_echo "$ac_try_echo") >&5
21445 (eval "$ac_link") 2>conftest.er1
21446 ac_status=$?
21447 grep -v '^ *+' conftest.er1 >conftest.err
21448 rm -f conftest.er1
21449 cat conftest.err >&5
21450 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21451 (exit $ac_status); } && {
21452 test -z "$ac_c_werror_flag" ||
21453 test ! -s conftest.err
21454 } && test -s conftest$ac_exeext && {
21455 test "$cross_compiling" = yes ||
21456 $as_test_x conftest$ac_exeext
21457 }; then
12046 ac_cv_search_tputs=$ac_res 21458 ac_cv_search_tputs=$ac_res
21459else
21460 $as_echo "$as_me: failed program was:" >&5
21461sed 's/^/| /' conftest.$ac_ext >&5
21462
21463
12047fi 21464fi
12048rm -f core conftest.err conftest.$ac_objext \ 21465
12049 conftest$ac_exeext 21466rm -rf conftest.dSYM
12050 if test "${ac_cv_search_tputs+set}" = set; then : 21467rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21468 conftest$ac_exeext
21469 if test "${ac_cv_search_tputs+set}" = set; then
12051 break 21470 break
12052fi 21471fi
12053done 21472done
12054if test "${ac_cv_search_tputs+set}" = set; then : 21473if test "${ac_cv_search_tputs+set}" = set; then
12055 21474 :
12056else 21475else
12057 ac_cv_search_tputs=no 21476 ac_cv_search_tputs=no
12058fi 21477fi
12059rm conftest.$ac_ext 21478rm conftest.$ac_ext
12060LIBS=$ac_func_search_save_LIBS 21479LIBS=$ac_func_search_save_LIBS
12061fi 21480fi
12062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5 21481{ $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
12063$as_echo "$ac_cv_search_tputs" >&6; } 21482$as_echo "$ac_cv_search_tputs" >&6; }
12064ac_res=$ac_cv_search_tputs 21483ac_res=$ac_cv_search_tputs
12065if test "$ac_res" != no; then : 21484if test "$ac_res" != no; then
12066 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21485 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12067 21486
12068else 21487else
@@ -12070,19 +21489,29 @@ else
12070fi 21489fi
12071 21490
12072if test "$have_tputs_et_al" != true; then 21491if test "$have_tputs_et_al" != true; then
12073 as_fn_error "I couldn't find termcap functions (tputs and friends). 21492 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
12074Maybe some development libraries/packages are missing? Try installing 21493Maybe some development libraries/packages are missing? Try installing
12075libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5 21494libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21495$as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21496Maybe some development libraries/packages are missing? Try installing
21497libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21498 { (exit 1); exit 1; }; }
12076fi 21499fi
12077# Must define this when any termcap library is found. 21500# Must define this when any termcap library is found.
12078 21501
12079$as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h 21502cat >>confdefs.h <<\_ACEOF
21503#define HAVE_LIBNCURSES 1
21504_ACEOF
12080 21505
12081 21506
12082# Do we have res_init, for detecting changes in /etc/resolv.conf? 21507# Do we have res_init, for detecting changes in /etc/resolv.conf?
12083 21508
12084resolv=no 21509resolv=no
12085cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21510cat >conftest.$ac_ext <<_ACEOF
21511/* confdefs.h. */
21512_ACEOF
21513cat confdefs.h >>conftest.$ac_ext
21514cat >>conftest.$ac_ext <<_ACEOF
12086/* end confdefs.h. */ 21515/* end confdefs.h. */
12087#include <netinet/in.h> 21516#include <netinet/in.h>
12088#include <arpa/nameser.h> 21517#include <arpa/nameser.h>
@@ -12095,19 +21524,48 @@ return res_init();
12095 return 0; 21524 return 0;
12096} 21525}
12097_ACEOF 21526_ACEOF
12098if ac_fn_c_try_link "$LINENO"; then : 21527rm -f conftest.$ac_objext conftest$ac_exeext
21528if { (ac_try="$ac_link"
21529case "(($ac_try" in
21530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21531 *) ac_try_echo=$ac_try;;
21532esac
21533eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21534$as_echo "$ac_try_echo") >&5
21535 (eval "$ac_link") 2>conftest.er1
21536 ac_status=$?
21537 grep -v '^ *+' conftest.er1 >conftest.err
21538 rm -f conftest.er1
21539 cat conftest.err >&5
21540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21541 (exit $ac_status); } && {
21542 test -z "$ac_c_werror_flag" ||
21543 test ! -s conftest.err
21544 } && test -s conftest$ac_exeext && {
21545 test "$cross_compiling" = yes ||
21546 $as_test_x conftest$ac_exeext
21547 }; then
12099 have_res_init=yes 21548 have_res_init=yes
12100else 21549else
12101 have_res_init=no 21550 $as_echo "$as_me: failed program was:" >&5
21551sed 's/^/| /' conftest.$ac_ext >&5
21552
21553 have_res_init=no
12102fi 21554fi
12103rm -f core conftest.err conftest.$ac_objext \ 21555
12104 conftest$ac_exeext conftest.$ac_ext 21556rm -rf conftest.dSYM
21557rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21558 conftest$ac_exeext conftest.$ac_ext
12105if test "$have_res_init" = no; then 21559if test "$have_res_init" = no; then
12106 OLIBS="$LIBS" 21560 OLIBS="$LIBS"
12107 LIBS="$LIBS -lresolv" 21561 LIBS="$LIBS -lresolv"
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5 21562 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
12109$as_echo_n "checking for res_init with -lresolv... " >&6; } 21563$as_echo_n "checking for res_init with -lresolv... " >&6; }
12110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21564 cat >conftest.$ac_ext <<_ACEOF
21565/* confdefs.h. */
21566_ACEOF
21567cat confdefs.h >>conftest.$ac_ext
21568cat >>conftest.$ac_ext <<_ACEOF
12111/* end confdefs.h. */ 21569/* end confdefs.h. */
12112#include <netinet/in.h> 21570#include <netinet/in.h>
12113#include <arpa/nameser.h> 21571#include <arpa/nameser.h>
@@ -12120,14 +21578,39 @@ return res_init();
12120 return 0; 21578 return 0;
12121} 21579}
12122_ACEOF 21580_ACEOF
12123if ac_fn_c_try_link "$LINENO"; then : 21581rm -f conftest.$ac_objext conftest$ac_exeext
21582if { (ac_try="$ac_link"
21583case "(($ac_try" in
21584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21585 *) ac_try_echo=$ac_try;;
21586esac
21587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21588$as_echo "$ac_try_echo") >&5
21589 (eval "$ac_link") 2>conftest.er1
21590 ac_status=$?
21591 grep -v '^ *+' conftest.er1 >conftest.err
21592 rm -f conftest.er1
21593 cat conftest.err >&5
21594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } && {
21596 test -z "$ac_c_werror_flag" ||
21597 test ! -s conftest.err
21598 } && test -s conftest$ac_exeext && {
21599 test "$cross_compiling" = yes ||
21600 $as_test_x conftest$ac_exeext
21601 }; then
12124 have_res_init=yes 21602 have_res_init=yes
12125else 21603else
12126 have_res_init=no 21604 $as_echo "$as_me: failed program was:" >&5
21605sed 's/^/| /' conftest.$ac_ext >&5
21606
21607 have_res_init=no
12127fi 21608fi
12128rm -f core conftest.err conftest.$ac_objext \ 21609
12129 conftest$ac_exeext conftest.$ac_ext 21610rm -rf conftest.dSYM
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5 21611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21612 conftest$ac_exeext conftest.$ac_ext
21613 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
12131$as_echo "$have_res_init" >&6; } 21614$as_echo "$have_res_init" >&6; }
12132 if test "$have_res_init" = yes ; then 21615 if test "$have_res_init" = yes ; then
12133 resolv=yes 21616 resolv=yes
@@ -12137,7 +21620,9 @@ fi
12137 21620
12138if test "$have_res_init" = yes; then 21621if test "$have_res_init" = yes; then
12139 21622
12140$as_echo "#define HAVE_RES_INIT 1" >>confdefs.h 21623cat >>confdefs.h <<\_ACEOF
21624#define HAVE_RES_INIT 1
21625_ACEOF
12141 21626
12142fi 21627fi
12143 21628
@@ -12145,22 +21630,194 @@ fi
12145LIBHESIOD= 21630LIBHESIOD=
12146if test "$with_hesiod" != no ; then 21631if test "$with_hesiod" != no ; then
12147 # Don't set $LIBS here -- see comments above. FIXME which comments? 21632 # Don't set $LIBS here -- see comments above. FIXME which comments?
12148 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send" 21633 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
12149if test "x$ac_cv_func_res_send" = x""yes; then : 21634$as_echo_n "checking for res_send... " >&6; }
21635if test "${ac_cv_func_res_send+set}" = set; then
21636 $as_echo_n "(cached) " >&6
21637else
21638 cat >conftest.$ac_ext <<_ACEOF
21639/* confdefs.h. */
21640_ACEOF
21641cat confdefs.h >>conftest.$ac_ext
21642cat >>conftest.$ac_ext <<_ACEOF
21643/* end confdefs.h. */
21644/* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21645 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21646#define res_send innocuous_res_send
12150 21647
21648/* System header to define __stub macros and hopefully few prototypes,
21649 which can conflict with char res_send (); below.
21650 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21651 <limits.h> exists even on freestanding compilers. */
21652
21653#ifdef __STDC__
21654# include <limits.h>
21655#else
21656# include <assert.h>
21657#endif
21658
21659#undef res_send
21660
21661/* Override any GCC internal prototype to avoid an error.
21662 Use char because int might match the return type of a GCC
21663 builtin and then its argument prototype would still apply. */
21664#ifdef __cplusplus
21665extern "C"
21666#endif
21667char res_send ();
21668/* The GNU C library defines this for functions which it implements
21669 to always fail with ENOSYS. Some functions are actually named
21670 something starting with __ and the normal name is an alias. */
21671#if defined __stub_res_send || defined __stub___res_send
21672choke me
21673#endif
21674
21675int
21676main ()
21677{
21678return res_send ();
21679 ;
21680 return 0;
21681}
21682_ACEOF
21683rm -f conftest.$ac_objext conftest$ac_exeext
21684if { (ac_try="$ac_link"
21685case "(($ac_try" in
21686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21687 *) ac_try_echo=$ac_try;;
21688esac
21689eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21690$as_echo "$ac_try_echo") >&5
21691 (eval "$ac_link") 2>conftest.er1
21692 ac_status=$?
21693 grep -v '^ *+' conftest.er1 >conftest.err
21694 rm -f conftest.er1
21695 cat conftest.err >&5
21696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21697 (exit $ac_status); } && {
21698 test -z "$ac_c_werror_flag" ||
21699 test ! -s conftest.err
21700 } && test -s conftest$ac_exeext && {
21701 test "$cross_compiling" = yes ||
21702 $as_test_x conftest$ac_exeext
21703 }; then
21704 ac_cv_func_res_send=yes
21705else
21706 $as_echo "$as_me: failed program was:" >&5
21707sed 's/^/| /' conftest.$ac_ext >&5
21708
21709 ac_cv_func_res_send=no
21710fi
21711
21712rm -rf conftest.dSYM
21713rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21714 conftest$ac_exeext conftest.$ac_ext
21715fi
21716{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21717$as_echo "$ac_cv_func_res_send" >&6; }
21718if test $ac_cv_func_res_send = yes; then
21719 :
21720else
21721 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21722$as_echo_n "checking for __res_send... " >&6; }
21723if test "${ac_cv_func___res_send+set}" = set; then
21724 $as_echo_n "(cached) " >&6
21725else
21726 cat >conftest.$ac_ext <<_ACEOF
21727/* confdefs.h. */
21728_ACEOF
21729cat confdefs.h >>conftest.$ac_ext
21730cat >>conftest.$ac_ext <<_ACEOF
21731/* end confdefs.h. */
21732/* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21733 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21734#define __res_send innocuous___res_send
21735
21736/* System header to define __stub macros and hopefully few prototypes,
21737 which can conflict with char __res_send (); below.
21738 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21739 <limits.h> exists even on freestanding compilers. */
21740
21741#ifdef __STDC__
21742# include <limits.h>
21743#else
21744# include <assert.h>
21745#endif
21746
21747#undef __res_send
21748
21749/* Override any GCC internal prototype to avoid an error.
21750 Use char because int might match the return type of a GCC
21751 builtin and then its argument prototype would still apply. */
21752#ifdef __cplusplus
21753extern "C"
21754#endif
21755char __res_send ();
21756/* The GNU C library defines this for functions which it implements
21757 to always fail with ENOSYS. Some functions are actually named
21758 something starting with __ and the normal name is an alias. */
21759#if defined __stub___res_send || defined __stub_____res_send
21760choke me
21761#endif
21762
21763int
21764main ()
21765{
21766return __res_send ();
21767 ;
21768 return 0;
21769}
21770_ACEOF
21771rm -f conftest.$ac_objext conftest$ac_exeext
21772if { (ac_try="$ac_link"
21773case "(($ac_try" in
21774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21775 *) ac_try_echo=$ac_try;;
21776esac
21777eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21778$as_echo "$ac_try_echo") >&5
21779 (eval "$ac_link") 2>conftest.er1
21780 ac_status=$?
21781 grep -v '^ *+' conftest.er1 >conftest.err
21782 rm -f conftest.er1
21783 cat conftest.err >&5
21784 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21785 (exit $ac_status); } && {
21786 test -z "$ac_c_werror_flag" ||
21787 test ! -s conftest.err
21788 } && test -s conftest$ac_exeext && {
21789 test "$cross_compiling" = yes ||
21790 $as_test_x conftest$ac_exeext
21791 }; then
21792 ac_cv_func___res_send=yes
12151else 21793else
12152 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send" 21794 $as_echo "$as_me: failed program was:" >&5
12153if test "x$ac_cv_func___res_send" = x""yes; then : 21795sed 's/^/| /' conftest.$ac_ext >&5
21796
21797 ac_cv_func___res_send=no
21798fi
12154 21799
21800rm -rf conftest.dSYM
21801rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21802 conftest$ac_exeext conftest.$ac_ext
21803fi
21804{ $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21805$as_echo "$ac_cv_func___res_send" >&6; }
21806if test $ac_cv_func___res_send = yes; then
21807 :
12155else 21808else
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5 21809 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12157$as_echo_n "checking for res_send in -lresolv... " >&6; } 21810$as_echo_n "checking for res_send in -lresolv... " >&6; }
12158if test "${ac_cv_lib_resolv_res_send+set}" = set; then : 21811if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12159 $as_echo_n "(cached) " >&6 21812 $as_echo_n "(cached) " >&6
12160else 21813else
12161 ac_check_lib_save_LIBS=$LIBS 21814 ac_check_lib_save_LIBS=$LIBS
12162LIBS="-lresolv $LIBS" 21815LIBS="-lresolv $LIBS"
12163cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21816cat >conftest.$ac_ext <<_ACEOF
21817/* confdefs.h. */
21818_ACEOF
21819cat confdefs.h >>conftest.$ac_ext
21820cat >>conftest.$ac_ext <<_ACEOF
12164/* end confdefs.h. */ 21821/* end confdefs.h. */
12165 21822
12166/* Override any GCC internal prototype to avoid an error. 21823/* Override any GCC internal prototype to avoid an error.
@@ -12178,28 +21835,57 @@ return res_send ();
12178 return 0; 21835 return 0;
12179} 21836}
12180_ACEOF 21837_ACEOF
12181if ac_fn_c_try_link "$LINENO"; then : 21838rm -f conftest.$ac_objext conftest$ac_exeext
21839if { (ac_try="$ac_link"
21840case "(($ac_try" in
21841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842 *) ac_try_echo=$ac_try;;
21843esac
21844eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21845$as_echo "$ac_try_echo") >&5
21846 (eval "$ac_link") 2>conftest.er1
21847 ac_status=$?
21848 grep -v '^ *+' conftest.er1 >conftest.err
21849 rm -f conftest.er1
21850 cat conftest.err >&5
21851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } && {
21853 test -z "$ac_c_werror_flag" ||
21854 test ! -s conftest.err
21855 } && test -s conftest$ac_exeext && {
21856 test "$cross_compiling" = yes ||
21857 $as_test_x conftest$ac_exeext
21858 }; then
12182 ac_cv_lib_resolv_res_send=yes 21859 ac_cv_lib_resolv_res_send=yes
12183else 21860else
12184 ac_cv_lib_resolv_res_send=no 21861 $as_echo "$as_me: failed program was:" >&5
21862sed 's/^/| /' conftest.$ac_ext >&5
21863
21864 ac_cv_lib_resolv_res_send=no
12185fi 21865fi
12186rm -f core conftest.err conftest.$ac_objext \ 21866
12187 conftest$ac_exeext conftest.$ac_ext 21867rm -rf conftest.dSYM
21868rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21869 conftest$ac_exeext conftest.$ac_ext
12188LIBS=$ac_check_lib_save_LIBS 21870LIBS=$ac_check_lib_save_LIBS
12189fi 21871fi
12190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5 21872{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12191$as_echo "$ac_cv_lib_resolv_res_send" >&6; } 21873$as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12192if test "x$ac_cv_lib_resolv_res_send" = x""yes; then : 21874if test $ac_cv_lib_resolv_res_send = yes; then
12193 resolv=yes 21875 resolv=yes
12194else 21876else
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5 21877 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12196$as_echo_n "checking for __res_send in -lresolv... " >&6; } 21878$as_echo_n "checking for __res_send in -lresolv... " >&6; }
12197if test "${ac_cv_lib_resolv___res_send+set}" = set; then : 21879if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12198 $as_echo_n "(cached) " >&6 21880 $as_echo_n "(cached) " >&6
12199else 21881else
12200 ac_check_lib_save_LIBS=$LIBS 21882 ac_check_lib_save_LIBS=$LIBS
12201LIBS="-lresolv $LIBS" 21883LIBS="-lresolv $LIBS"
12202cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21884cat >conftest.$ac_ext <<_ACEOF
21885/* confdefs.h. */
21886_ACEOF
21887cat confdefs.h >>conftest.$ac_ext
21888cat >>conftest.$ac_ext <<_ACEOF
12203/* end confdefs.h. */ 21889/* end confdefs.h. */
12204 21890
12205/* Override any GCC internal prototype to avoid an error. 21891/* Override any GCC internal prototype to avoid an error.
@@ -12217,18 +21903,43 @@ return __res_send ();
12217 return 0; 21903 return 0;
12218} 21904}
12219_ACEOF 21905_ACEOF
12220if ac_fn_c_try_link "$LINENO"; then : 21906rm -f conftest.$ac_objext conftest$ac_exeext
21907if { (ac_try="$ac_link"
21908case "(($ac_try" in
21909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21910 *) ac_try_echo=$ac_try;;
21911esac
21912eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21913$as_echo "$ac_try_echo") >&5
21914 (eval "$ac_link") 2>conftest.er1
21915 ac_status=$?
21916 grep -v '^ *+' conftest.er1 >conftest.err
21917 rm -f conftest.er1
21918 cat conftest.err >&5
21919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21920 (exit $ac_status); } && {
21921 test -z "$ac_c_werror_flag" ||
21922 test ! -s conftest.err
21923 } && test -s conftest$ac_exeext && {
21924 test "$cross_compiling" = yes ||
21925 $as_test_x conftest$ac_exeext
21926 }; then
12221 ac_cv_lib_resolv___res_send=yes 21927 ac_cv_lib_resolv___res_send=yes
12222else 21928else
12223 ac_cv_lib_resolv___res_send=no 21929 $as_echo "$as_me: failed program was:" >&5
21930sed 's/^/| /' conftest.$ac_ext >&5
21931
21932 ac_cv_lib_resolv___res_send=no
12224fi 21933fi
12225rm -f core conftest.err conftest.$ac_objext \ 21934
12226 conftest$ac_exeext conftest.$ac_ext 21935rm -rf conftest.dSYM
21936rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21937 conftest$ac_exeext conftest.$ac_ext
12227LIBS=$ac_check_lib_save_LIBS 21938LIBS=$ac_check_lib_save_LIBS
12228fi 21939fi
12229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5 21940{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12230$as_echo "$ac_cv_lib_resolv___res_send" >&6; } 21941$as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12231if test "x$ac_cv_lib_resolv___res_send" = x""yes; then : 21942if test $ac_cv_lib_resolv___res_send = yes; then
12232 resolv=yes 21943 resolv=yes
12233fi 21944fi
12234 21945
@@ -12243,18 +21954,106 @@ fi
12243 else 21954 else
12244 RESOLVLIB= 21955 RESOLVLIB=
12245 fi 21956 fi
12246 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost" 21957 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
12247if test "x$ac_cv_func_hes_getmailhost" = x""yes; then : 21958$as_echo_n "checking for hes_getmailhost... " >&6; }
21959if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21960 $as_echo_n "(cached) " >&6
21961else
21962 cat >conftest.$ac_ext <<_ACEOF
21963/* confdefs.h. */
21964_ACEOF
21965cat confdefs.h >>conftest.$ac_ext
21966cat >>conftest.$ac_ext <<_ACEOF
21967/* end confdefs.h. */
21968/* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21969 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21970#define hes_getmailhost innocuous_hes_getmailhost
12248 21971
21972/* System header to define __stub macros and hopefully few prototypes,
21973 which can conflict with char hes_getmailhost (); below.
21974 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21975 <limits.h> exists even on freestanding compilers. */
21976
21977#ifdef __STDC__
21978# include <limits.h>
21979#else
21980# include <assert.h>
21981#endif
21982
21983#undef hes_getmailhost
21984
21985/* Override any GCC internal prototype to avoid an error.
21986 Use char because int might match the return type of a GCC
21987 builtin and then its argument prototype would still apply. */
21988#ifdef __cplusplus
21989extern "C"
21990#endif
21991char hes_getmailhost ();
21992/* The GNU C library defines this for functions which it implements
21993 to always fail with ENOSYS. Some functions are actually named
21994 something starting with __ and the normal name is an alias. */
21995#if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21996choke me
21997#endif
21998
21999int
22000main ()
22001{
22002return hes_getmailhost ();
22003 ;
22004 return 0;
22005}
22006_ACEOF
22007rm -f conftest.$ac_objext conftest$ac_exeext
22008if { (ac_try="$ac_link"
22009case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22012esac
22013eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22014$as_echo "$ac_try_echo") >&5
22015 (eval "$ac_link") 2>conftest.er1
22016 ac_status=$?
22017 grep -v '^ *+' conftest.er1 >conftest.err
22018 rm -f conftest.er1
22019 cat conftest.err >&5
22020 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22021 (exit $ac_status); } && {
22022 test -z "$ac_c_werror_flag" ||
22023 test ! -s conftest.err
22024 } && test -s conftest$ac_exeext && {
22025 test "$cross_compiling" = yes ||
22026 $as_test_x conftest$ac_exeext
22027 }; then
22028 ac_cv_func_hes_getmailhost=yes
22029else
22030 $as_echo "$as_me: failed program was:" >&5
22031sed 's/^/| /' conftest.$ac_ext >&5
22032
22033 ac_cv_func_hes_getmailhost=no
22034fi
22035
22036rm -rf conftest.dSYM
22037rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22038 conftest$ac_exeext conftest.$ac_ext
22039fi
22040{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
22041$as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22042if test $ac_cv_func_hes_getmailhost = yes; then
22043 :
12249else 22044else
12250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5 22045 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
12251$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } 22046$as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12252if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then : 22047if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
12253 $as_echo_n "(cached) " >&6 22048 $as_echo_n "(cached) " >&6
12254else 22049else
12255 ac_check_lib_save_LIBS=$LIBS 22050 ac_check_lib_save_LIBS=$LIBS
12256LIBS="-lhesiod $RESOLVLIB $LIBS" 22051LIBS="-lhesiod $RESOLVLIB $LIBS"
12257cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22052cat >conftest.$ac_ext <<_ACEOF
22053/* confdefs.h. */
22054_ACEOF
22055cat confdefs.h >>conftest.$ac_ext
22056cat >>conftest.$ac_ext <<_ACEOF
12258/* end confdefs.h. */ 22057/* end confdefs.h. */
12259 22058
12260/* Override any GCC internal prototype to avoid an error. 22059/* Override any GCC internal prototype to avoid an error.
@@ -12272,18 +22071,43 @@ return hes_getmailhost ();
12272 return 0; 22071 return 0;
12273} 22072}
12274_ACEOF 22073_ACEOF
12275if ac_fn_c_try_link "$LINENO"; then : 22074rm -f conftest.$ac_objext conftest$ac_exeext
22075if { (ac_try="$ac_link"
22076case "(($ac_try" in
22077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22078 *) ac_try_echo=$ac_try;;
22079esac
22080eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22081$as_echo "$ac_try_echo") >&5
22082 (eval "$ac_link") 2>conftest.er1
22083 ac_status=$?
22084 grep -v '^ *+' conftest.er1 >conftest.err
22085 rm -f conftest.er1
22086 cat conftest.err >&5
22087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22088 (exit $ac_status); } && {
22089 test -z "$ac_c_werror_flag" ||
22090 test ! -s conftest.err
22091 } && test -s conftest$ac_exeext && {
22092 test "$cross_compiling" = yes ||
22093 $as_test_x conftest$ac_exeext
22094 }; then
12276 ac_cv_lib_hesiod_hes_getmailhost=yes 22095 ac_cv_lib_hesiod_hes_getmailhost=yes
12277else 22096else
12278 ac_cv_lib_hesiod_hes_getmailhost=no 22097 $as_echo "$as_me: failed program was:" >&5
22098sed 's/^/| /' conftest.$ac_ext >&5
22099
22100 ac_cv_lib_hesiod_hes_getmailhost=no
12279fi 22101fi
12280rm -f core conftest.err conftest.$ac_objext \ 22102
12281 conftest$ac_exeext conftest.$ac_ext 22103rm -rf conftest.dSYM
22104rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22105 conftest$ac_exeext conftest.$ac_ext
12282LIBS=$ac_check_lib_save_LIBS 22106LIBS=$ac_check_lib_save_LIBS
12283fi 22107fi
12284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 22108{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12285$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } 22109$as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12286if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then : 22110if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
12287 hesiod=yes 22111 hesiod=yes
12288else 22112else
12289 : 22113 :
@@ -12294,7 +22118,9 @@ fi
12294 22118
12295 if test x"$hesiod" = xyes; then 22119 if test x"$hesiod" = xyes; then
12296 22120
12297$as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h 22121cat >>confdefs.h <<\_ACEOF
22122#define HAVE_LIBHESIOD 1
22123_ACEOF
12298 22124
12299 LIBHESIOD=-lhesiod 22125 LIBHESIOD=-lhesiod
12300 fi 22126 fi
@@ -12304,7 +22130,9 @@ fi
12304# Do we need libresolv (due to res_init or Hesiod)? 22130# Do we need libresolv (due to res_init or Hesiod)?
12305if test "$resolv" = yes ; then 22131if test "$resolv" = yes ; then
12306 22132
12307$as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h 22133cat >>confdefs.h <<\_ACEOF
22134#define HAVE_LIBRESOLV 1
22135_ACEOF
12308 22136
12309 LIBRESOLV=-lresolv 22137 LIBRESOLV=-lresolv
12310else 22138else
@@ -12320,14 +22148,18 @@ DESLIB=
12320KRB4LIB= 22148KRB4LIB=
12321 22149
12322if test "${with_kerberos}" != no; then 22150if test "${with_kerberos}" != no; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 22151 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
12324$as_echo_n "checking for com_err in -lcom_err... " >&6; } 22152$as_echo_n "checking for com_err in -lcom_err... " >&6; }
12325if test "${ac_cv_lib_com_err_com_err+set}" = set; then : 22153if test "${ac_cv_lib_com_err_com_err+set}" = set; then
12326 $as_echo_n "(cached) " >&6 22154 $as_echo_n "(cached) " >&6
12327else 22155else
12328 ac_check_lib_save_LIBS=$LIBS 22156 ac_check_lib_save_LIBS=$LIBS
12329LIBS="-lcom_err $LIBS" 22157LIBS="-lcom_err $LIBS"
12330cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22158cat >conftest.$ac_ext <<_ACEOF
22159/* confdefs.h. */
22160_ACEOF
22161cat confdefs.h >>conftest.$ac_ext
22162cat >>conftest.$ac_ext <<_ACEOF
12331/* end confdefs.h. */ 22163/* end confdefs.h. */
12332 22164
12333/* Override any GCC internal prototype to avoid an error. 22165/* Override any GCC internal prototype to avoid an error.
@@ -12345,18 +22177,43 @@ return com_err ();
12345 return 0; 22177 return 0;
12346} 22178}
12347_ACEOF 22179_ACEOF
12348if ac_fn_c_try_link "$LINENO"; then : 22180rm -f conftest.$ac_objext conftest$ac_exeext
22181if { (ac_try="$ac_link"
22182case "(($ac_try" in
22183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22184 *) ac_try_echo=$ac_try;;
22185esac
22186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22187$as_echo "$ac_try_echo") >&5
22188 (eval "$ac_link") 2>conftest.er1
22189 ac_status=$?
22190 grep -v '^ *+' conftest.er1 >conftest.err
22191 rm -f conftest.er1
22192 cat conftest.err >&5
22193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22194 (exit $ac_status); } && {
22195 test -z "$ac_c_werror_flag" ||
22196 test ! -s conftest.err
22197 } && test -s conftest$ac_exeext && {
22198 test "$cross_compiling" = yes ||
22199 $as_test_x conftest$ac_exeext
22200 }; then
12349 ac_cv_lib_com_err_com_err=yes 22201 ac_cv_lib_com_err_com_err=yes
12350else 22202else
12351 ac_cv_lib_com_err_com_err=no 22203 $as_echo "$as_me: failed program was:" >&5
22204sed 's/^/| /' conftest.$ac_ext >&5
22205
22206 ac_cv_lib_com_err_com_err=no
12352fi 22207fi
12353rm -f core conftest.err conftest.$ac_objext \ 22208
12354 conftest$ac_exeext conftest.$ac_ext 22209rm -rf conftest.dSYM
22210rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22211 conftest$ac_exeext conftest.$ac_ext
12355LIBS=$ac_check_lib_save_LIBS 22212LIBS=$ac_check_lib_save_LIBS
12356fi 22213fi
12357{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 22214{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
12358$as_echo "$ac_cv_lib_com_err_com_err" >&6; } 22215$as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12359if test "x$ac_cv_lib_com_err_com_err" = x""yes; then : 22216if test $ac_cv_lib_com_err_com_err = yes; then
12360 have_com_err=yes 22217 have_com_err=yes
12361else 22218else
12362 have_com_err=no 22219 have_com_err=no
@@ -12366,17 +22223,23 @@ fi
12366 COM_ERRLIB=-lcom_err 22223 COM_ERRLIB=-lcom_err
12367 LIBS="$COM_ERRLIB $LIBS" 22224 LIBS="$COM_ERRLIB $LIBS"
12368 22225
12369$as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h 22226cat >>confdefs.h <<\_ACEOF
22227#define HAVE_LIBCOM_ERR 1
22228_ACEOF
12370 22229
12371 fi 22230 fi
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5 22231 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12373$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } 22232$as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12374if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then : 22233if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
12375 $as_echo_n "(cached) " >&6 22234 $as_echo_n "(cached) " >&6
12376else 22235else
12377 ac_check_lib_save_LIBS=$LIBS 22236 ac_check_lib_save_LIBS=$LIBS
12378LIBS="-lcrypto $LIBS" 22237LIBS="-lcrypto $LIBS"
12379cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22238cat >conftest.$ac_ext <<_ACEOF
22239/* confdefs.h. */
22240_ACEOF
22241cat confdefs.h >>conftest.$ac_ext
22242cat >>conftest.$ac_ext <<_ACEOF
12380/* end confdefs.h. */ 22243/* end confdefs.h. */
12381 22244
12382/* Override any GCC internal prototype to avoid an error. 22245/* Override any GCC internal prototype to avoid an error.
@@ -12394,18 +22257,43 @@ return mit_des_cbc_encrypt ();
12394 return 0; 22257 return 0;
12395} 22258}
12396_ACEOF 22259_ACEOF
12397if ac_fn_c_try_link "$LINENO"; then : 22260rm -f conftest.$ac_objext conftest$ac_exeext
22261if { (ac_try="$ac_link"
22262case "(($ac_try" in
22263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 *) ac_try_echo=$ac_try;;
22265esac
22266eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22267$as_echo "$ac_try_echo") >&5
22268 (eval "$ac_link") 2>conftest.er1
22269 ac_status=$?
22270 grep -v '^ *+' conftest.er1 >conftest.err
22271 rm -f conftest.er1
22272 cat conftest.err >&5
22273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22274 (exit $ac_status); } && {
22275 test -z "$ac_c_werror_flag" ||
22276 test ! -s conftest.err
22277 } && test -s conftest$ac_exeext && {
22278 test "$cross_compiling" = yes ||
22279 $as_test_x conftest$ac_exeext
22280 }; then
12398 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes 22281 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12399else 22282else
12400 ac_cv_lib_crypto_mit_des_cbc_encrypt=no 22283 $as_echo "$as_me: failed program was:" >&5
22284sed 's/^/| /' conftest.$ac_ext >&5
22285
22286 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
12401fi 22287fi
12402rm -f core conftest.err conftest.$ac_objext \ 22288
12403 conftest$ac_exeext conftest.$ac_ext 22289rm -rf conftest.dSYM
22290rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22291 conftest$ac_exeext conftest.$ac_ext
12404LIBS=$ac_check_lib_save_LIBS 22292LIBS=$ac_check_lib_save_LIBS
12405fi 22293fi
12406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 22294{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12407$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } 22295$as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12408if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then : 22296if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
12409 have_crypto=yes 22297 have_crypto=yes
12410else 22298else
12411 have_crypto=no 22299 have_crypto=no
@@ -12415,17 +22303,23 @@ fi
12415 CRYPTOLIB=-lcrypto 22303 CRYPTOLIB=-lcrypto
12416 LIBS="$CRYPTOLIB $LIBS" 22304 LIBS="$CRYPTOLIB $LIBS"
12417 22305
12418$as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h 22306cat >>confdefs.h <<\_ACEOF
22307#define HAVE_LIBCRYPTO 1
22308_ACEOF
12419 22309
12420 fi 22310 fi
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 22311 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12422$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } 22312$as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12423if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then : 22313if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
12424 $as_echo_n "(cached) " >&6 22314 $as_echo_n "(cached) " >&6
12425else 22315else
12426 ac_check_lib_save_LIBS=$LIBS 22316 ac_check_lib_save_LIBS=$LIBS
12427LIBS="-lk5crypto $LIBS" 22317LIBS="-lk5crypto $LIBS"
12428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22318cat >conftest.$ac_ext <<_ACEOF
22319/* confdefs.h. */
22320_ACEOF
22321cat confdefs.h >>conftest.$ac_ext
22322cat >>conftest.$ac_ext <<_ACEOF
12429/* end confdefs.h. */ 22323/* end confdefs.h. */
12430 22324
12431/* Override any GCC internal prototype to avoid an error. 22325/* Override any GCC internal prototype to avoid an error.
@@ -12443,18 +22337,43 @@ return mit_des_cbc_encrypt ();
12443 return 0; 22337 return 0;
12444} 22338}
12445_ACEOF 22339_ACEOF
12446if ac_fn_c_try_link "$LINENO"; then : 22340rm -f conftest.$ac_objext conftest$ac_exeext
22341if { (ac_try="$ac_link"
22342case "(($ac_try" in
22343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344 *) ac_try_echo=$ac_try;;
22345esac
22346eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22347$as_echo "$ac_try_echo") >&5
22348 (eval "$ac_link") 2>conftest.er1
22349 ac_status=$?
22350 grep -v '^ *+' conftest.er1 >conftest.err
22351 rm -f conftest.er1
22352 cat conftest.err >&5
22353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22354 (exit $ac_status); } && {
22355 test -z "$ac_c_werror_flag" ||
22356 test ! -s conftest.err
22357 } && test -s conftest$ac_exeext && {
22358 test "$cross_compiling" = yes ||
22359 $as_test_x conftest$ac_exeext
22360 }; then
12447 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes 22361 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12448else 22362else
12449 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no 22363 $as_echo "$as_me: failed program was:" >&5
22364sed 's/^/| /' conftest.$ac_ext >&5
22365
22366 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
12450fi 22367fi
12451rm -f core conftest.err conftest.$ac_objext \ 22368
12452 conftest$ac_exeext conftest.$ac_ext 22369rm -rf conftest.dSYM
22370rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22371 conftest$ac_exeext conftest.$ac_ext
12453LIBS=$ac_check_lib_save_LIBS 22372LIBS=$ac_check_lib_save_LIBS
12454fi 22373fi
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 22374{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12456$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } 22375$as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12457if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then : 22376if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
12458 have_k5crypto=yes 22377 have_k5crypto=yes
12459else 22378else
12460 have_k5crypto=no 22379 have_k5crypto=no
@@ -12464,17 +22383,23 @@ fi
12464 CRYPTOLIB=-lk5crypto 22383 CRYPTOLIB=-lk5crypto
12465 LIBS="$CRYPTOLIB $LIBS" 22384 LIBS="$CRYPTOLIB $LIBS"
12466 22385
12467$as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h 22386cat >>confdefs.h <<\_ACEOF
22387#define HAVE_LIBK5CRYPTO 1
22388_ACEOF
12468 22389
12469 fi 22390 fi
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 22391 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
12471$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } 22392$as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12472if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then : 22393if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
12473 $as_echo_n "(cached) " >&6 22394 $as_echo_n "(cached) " >&6
12474else 22395else
12475 ac_check_lib_save_LIBS=$LIBS 22396 ac_check_lib_save_LIBS=$LIBS
12476LIBS="-lkrb5 $LIBS" 22397LIBS="-lkrb5 $LIBS"
12477cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22398cat >conftest.$ac_ext <<_ACEOF
22399/* confdefs.h. */
22400_ACEOF
22401cat confdefs.h >>conftest.$ac_ext
22402cat >>conftest.$ac_ext <<_ACEOF
12478/* end confdefs.h. */ 22403/* end confdefs.h. */
12479 22404
12480/* Override any GCC internal prototype to avoid an error. 22405/* Override any GCC internal prototype to avoid an error.
@@ -12492,18 +22417,43 @@ return krb5_init_context ();
12492 return 0; 22417 return 0;
12493} 22418}
12494_ACEOF 22419_ACEOF
12495if ac_fn_c_try_link "$LINENO"; then : 22420rm -f conftest.$ac_objext conftest$ac_exeext
22421if { (ac_try="$ac_link"
22422case "(($ac_try" in
22423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424 *) ac_try_echo=$ac_try;;
22425esac
22426eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22427$as_echo "$ac_try_echo") >&5
22428 (eval "$ac_link") 2>conftest.er1
22429 ac_status=$?
22430 grep -v '^ *+' conftest.er1 >conftest.err
22431 rm -f conftest.er1
22432 cat conftest.err >&5
22433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22434 (exit $ac_status); } && {
22435 test -z "$ac_c_werror_flag" ||
22436 test ! -s conftest.err
22437 } && test -s conftest$ac_exeext && {
22438 test "$cross_compiling" = yes ||
22439 $as_test_x conftest$ac_exeext
22440 }; then
12496 ac_cv_lib_krb5_krb5_init_context=yes 22441 ac_cv_lib_krb5_krb5_init_context=yes
12497else 22442else
12498 ac_cv_lib_krb5_krb5_init_context=no 22443 $as_echo "$as_me: failed program was:" >&5
22444sed 's/^/| /' conftest.$ac_ext >&5
22445
22446 ac_cv_lib_krb5_krb5_init_context=no
12499fi 22447fi
12500rm -f core conftest.err conftest.$ac_objext \ 22448
12501 conftest$ac_exeext conftest.$ac_ext 22449rm -rf conftest.dSYM
22450rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22451 conftest$ac_exeext conftest.$ac_ext
12502LIBS=$ac_check_lib_save_LIBS 22452LIBS=$ac_check_lib_save_LIBS
12503fi 22453fi
12504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 22454{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12505$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } 22455$as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12506if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then : 22456if test $ac_cv_lib_krb5_krb5_init_context = yes; then
12507 have_krb5=yes 22457 have_krb5=yes
12508else 22458else
12509 have_krb5=no 22459 have_krb5=no
@@ -12513,18 +22463,24 @@ fi
12513 KRB5LIB=-lkrb5 22463 KRB5LIB=-lkrb5
12514 LIBS="$KRB5LIB $LIBS" 22464 LIBS="$KRB5LIB $LIBS"
12515 22465
12516$as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h 22466cat >>confdefs.h <<\_ACEOF
22467#define HAVE_LIBKRB5 1
22468_ACEOF
12517 22469
12518 fi 22470 fi
12519 if test "${with_kerberos5}" = no; then 22471 if test "${with_kerberos5}" = no; then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5 22472 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
12521$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } 22473$as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12522if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then : 22474if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
12523 $as_echo_n "(cached) " >&6 22475 $as_echo_n "(cached) " >&6
12524else 22476else
12525 ac_check_lib_save_LIBS=$LIBS 22477 ac_check_lib_save_LIBS=$LIBS
12526LIBS="-ldes425 $LIBS" 22478LIBS="-ldes425 $LIBS"
12527cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22479cat >conftest.$ac_ext <<_ACEOF
22480/* confdefs.h. */
22481_ACEOF
22482cat confdefs.h >>conftest.$ac_ext
22483cat >>conftest.$ac_ext <<_ACEOF
12528/* end confdefs.h. */ 22484/* end confdefs.h. */
12529 22485
12530/* Override any GCC internal prototype to avoid an error. 22486/* Override any GCC internal prototype to avoid an error.
@@ -12542,18 +22498,43 @@ return des_cbc_encrypt ();
12542 return 0; 22498 return 0;
12543} 22499}
12544_ACEOF 22500_ACEOF
12545if ac_fn_c_try_link "$LINENO"; then : 22501rm -f conftest.$ac_objext conftest$ac_exeext
22502if { (ac_try="$ac_link"
22503case "(($ac_try" in
22504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22506esac
22507eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22508$as_echo "$ac_try_echo") >&5
22509 (eval "$ac_link") 2>conftest.er1
22510 ac_status=$?
22511 grep -v '^ *+' conftest.er1 >conftest.err
22512 rm -f conftest.er1
22513 cat conftest.err >&5
22514 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); } && {
22516 test -z "$ac_c_werror_flag" ||
22517 test ! -s conftest.err
22518 } && test -s conftest$ac_exeext && {
22519 test "$cross_compiling" = yes ||
22520 $as_test_x conftest$ac_exeext
22521 }; then
12546 ac_cv_lib_des425_des_cbc_encrypt=yes 22522 ac_cv_lib_des425_des_cbc_encrypt=yes
12547else 22523else
12548 ac_cv_lib_des425_des_cbc_encrypt=no 22524 $as_echo "$as_me: failed program was:" >&5
22525sed 's/^/| /' conftest.$ac_ext >&5
22526
22527 ac_cv_lib_des425_des_cbc_encrypt=no
12549fi 22528fi
12550rm -f core conftest.err conftest.$ac_objext \ 22529
12551 conftest$ac_exeext conftest.$ac_ext 22530rm -rf conftest.dSYM
22531rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22532 conftest$ac_exeext conftest.$ac_ext
12552LIBS=$ac_check_lib_save_LIBS 22533LIBS=$ac_check_lib_save_LIBS
12553fi 22534fi
12554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 22535{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12555$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } 22536$as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12556if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then : 22537if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
12557 have_des425=yes 22538 have_des425=yes
12558else 22539else
12559 have_des425=no 22540 have_des425=no
@@ -12563,17 +22544,23 @@ fi
12563 DESLIB=-ldes425 22544 DESLIB=-ldes425
12564 LIBS="$DESLIB $LIBS" 22545 LIBS="$DESLIB $LIBS"
12565 22546
12566$as_echo "#define HAVE_LIBDES425 1" >>confdefs.h 22547cat >>confdefs.h <<\_ACEOF
22548#define HAVE_LIBDES425 1
22549_ACEOF
12567 22550
12568 else 22551 else
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 22552 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
12570$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 22553$as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12571if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then : 22554if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
12572 $as_echo_n "(cached) " >&6 22555 $as_echo_n "(cached) " >&6
12573else 22556else
12574 ac_check_lib_save_LIBS=$LIBS 22557 ac_check_lib_save_LIBS=$LIBS
12575LIBS="-ldes $LIBS" 22558LIBS="-ldes $LIBS"
12576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22559cat >conftest.$ac_ext <<_ACEOF
22560/* confdefs.h. */
22561_ACEOF
22562cat confdefs.h >>conftest.$ac_ext
22563cat >>conftest.$ac_ext <<_ACEOF
12577/* end confdefs.h. */ 22564/* end confdefs.h. */
12578 22565
12579/* Override any GCC internal prototype to avoid an error. 22566/* Override any GCC internal prototype to avoid an error.
@@ -12591,18 +22578,43 @@ return des_cbc_encrypt ();
12591 return 0; 22578 return 0;
12592} 22579}
12593_ACEOF 22580_ACEOF
12594if ac_fn_c_try_link "$LINENO"; then : 22581rm -f conftest.$ac_objext conftest$ac_exeext
22582if { (ac_try="$ac_link"
22583case "(($ac_try" in
22584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22585 *) ac_try_echo=$ac_try;;
22586esac
22587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22588$as_echo "$ac_try_echo") >&5
22589 (eval "$ac_link") 2>conftest.er1
22590 ac_status=$?
22591 grep -v '^ *+' conftest.er1 >conftest.err
22592 rm -f conftest.er1
22593 cat conftest.err >&5
22594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } && {
22596 test -z "$ac_c_werror_flag" ||
22597 test ! -s conftest.err
22598 } && test -s conftest$ac_exeext && {
22599 test "$cross_compiling" = yes ||
22600 $as_test_x conftest$ac_exeext
22601 }; then
12595 ac_cv_lib_des_des_cbc_encrypt=yes 22602 ac_cv_lib_des_des_cbc_encrypt=yes
12596else 22603else
12597 ac_cv_lib_des_des_cbc_encrypt=no 22604 $as_echo "$as_me: failed program was:" >&5
22605sed 's/^/| /' conftest.$ac_ext >&5
22606
22607 ac_cv_lib_des_des_cbc_encrypt=no
12598fi 22608fi
12599rm -f core conftest.err conftest.$ac_objext \ 22609
12600 conftest$ac_exeext conftest.$ac_ext 22610rm -rf conftest.dSYM
22611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22612 conftest$ac_exeext conftest.$ac_ext
12601LIBS=$ac_check_lib_save_LIBS 22613LIBS=$ac_check_lib_save_LIBS
12602fi 22614fi
12603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 22615{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12604$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 22616$as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12605if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then : 22617if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
12606 have_des=yes 22618 have_des=yes
12607else 22619else
12608 have_des=no 22620 have_des=no
@@ -12612,18 +22624,24 @@ fi
12612 DESLIB=-ldes 22624 DESLIB=-ldes
12613 LIBS="$DESLIB $LIBS" 22625 LIBS="$DESLIB $LIBS"
12614 22626
12615$as_echo "#define HAVE_LIBDES 1" >>confdefs.h 22627cat >>confdefs.h <<\_ACEOF
22628#define HAVE_LIBDES 1
22629_ACEOF
12616 22630
12617 fi 22631 fi
12618 fi 22632 fi
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5 22633 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
12620$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } 22634$as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12621if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then : 22635if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
12622 $as_echo_n "(cached) " >&6 22636 $as_echo_n "(cached) " >&6
12623else 22637else
12624 ac_check_lib_save_LIBS=$LIBS 22638 ac_check_lib_save_LIBS=$LIBS
12625LIBS="-lkrb4 $LIBS" 22639LIBS="-lkrb4 $LIBS"
12626cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22640cat >conftest.$ac_ext <<_ACEOF
22641/* confdefs.h. */
22642_ACEOF
22643cat confdefs.h >>conftest.$ac_ext
22644cat >>conftest.$ac_ext <<_ACEOF
12627/* end confdefs.h. */ 22645/* end confdefs.h. */
12628 22646
12629/* Override any GCC internal prototype to avoid an error. 22647/* Override any GCC internal prototype to avoid an error.
@@ -12641,18 +22659,43 @@ return krb_get_cred ();
12641 return 0; 22659 return 0;
12642} 22660}
12643_ACEOF 22661_ACEOF
12644if ac_fn_c_try_link "$LINENO"; then : 22662rm -f conftest.$ac_objext conftest$ac_exeext
22663if { (ac_try="$ac_link"
22664case "(($ac_try" in
22665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666 *) ac_try_echo=$ac_try;;
22667esac
22668eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22669$as_echo "$ac_try_echo") >&5
22670 (eval "$ac_link") 2>conftest.er1
22671 ac_status=$?
22672 grep -v '^ *+' conftest.er1 >conftest.err
22673 rm -f conftest.er1
22674 cat conftest.err >&5
22675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22676 (exit $ac_status); } && {
22677 test -z "$ac_c_werror_flag" ||
22678 test ! -s conftest.err
22679 } && test -s conftest$ac_exeext && {
22680 test "$cross_compiling" = yes ||
22681 $as_test_x conftest$ac_exeext
22682 }; then
12645 ac_cv_lib_krb4_krb_get_cred=yes 22683 ac_cv_lib_krb4_krb_get_cred=yes
12646else 22684else
12647 ac_cv_lib_krb4_krb_get_cred=no 22685 $as_echo "$as_me: failed program was:" >&5
22686sed 's/^/| /' conftest.$ac_ext >&5
22687
22688 ac_cv_lib_krb4_krb_get_cred=no
12648fi 22689fi
12649rm -f core conftest.err conftest.$ac_objext \ 22690
12650 conftest$ac_exeext conftest.$ac_ext 22691rm -rf conftest.dSYM
22692rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22693 conftest$ac_exeext conftest.$ac_ext
12651LIBS=$ac_check_lib_save_LIBS 22694LIBS=$ac_check_lib_save_LIBS
12652fi 22695fi
12653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5 22696{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12654$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } 22697$as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12655if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then : 22698if test $ac_cv_lib_krb4_krb_get_cred = yes; then
12656 have_krb4=yes 22699 have_krb4=yes
12657else 22700else
12658 have_krb4=no 22701 have_krb4=no
@@ -12662,17 +22705,23 @@ fi
12662 KRB4LIB=-lkrb4 22705 KRB4LIB=-lkrb4
12663 LIBS="$KRB4LIB $LIBS" 22706 LIBS="$KRB4LIB $LIBS"
12664 22707
12665$as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h 22708cat >>confdefs.h <<\_ACEOF
22709#define HAVE_LIBKRB4 1
22710_ACEOF
12666 22711
12667 else 22712 else
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5 22713 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
12669$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } 22714$as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12670if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then : 22715if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
12671 $as_echo_n "(cached) " >&6 22716 $as_echo_n "(cached) " >&6
12672else 22717else
12673 ac_check_lib_save_LIBS=$LIBS 22718 ac_check_lib_save_LIBS=$LIBS
12674LIBS="-lkrb $LIBS" 22719LIBS="-lkrb $LIBS"
12675cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22720cat >conftest.$ac_ext <<_ACEOF
22721/* confdefs.h. */
22722_ACEOF
22723cat confdefs.h >>conftest.$ac_ext
22724cat >>conftest.$ac_ext <<_ACEOF
12676/* end confdefs.h. */ 22725/* end confdefs.h. */
12677 22726
12678/* Override any GCC internal prototype to avoid an error. 22727/* Override any GCC internal prototype to avoid an error.
@@ -12690,18 +22739,43 @@ return krb_get_cred ();
12690 return 0; 22739 return 0;
12691} 22740}
12692_ACEOF 22741_ACEOF
12693if ac_fn_c_try_link "$LINENO"; then : 22742rm -f conftest.$ac_objext conftest$ac_exeext
22743if { (ac_try="$ac_link"
22744case "(($ac_try" in
22745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22746 *) ac_try_echo=$ac_try;;
22747esac
22748eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22749$as_echo "$ac_try_echo") >&5
22750 (eval "$ac_link") 2>conftest.er1
22751 ac_status=$?
22752 grep -v '^ *+' conftest.er1 >conftest.err
22753 rm -f conftest.er1
22754 cat conftest.err >&5
22755 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22756 (exit $ac_status); } && {
22757 test -z "$ac_c_werror_flag" ||
22758 test ! -s conftest.err
22759 } && test -s conftest$ac_exeext && {
22760 test "$cross_compiling" = yes ||
22761 $as_test_x conftest$ac_exeext
22762 }; then
12694 ac_cv_lib_krb_krb_get_cred=yes 22763 ac_cv_lib_krb_krb_get_cred=yes
12695else 22764else
12696 ac_cv_lib_krb_krb_get_cred=no 22765 $as_echo "$as_me: failed program was:" >&5
22766sed 's/^/| /' conftest.$ac_ext >&5
22767
22768 ac_cv_lib_krb_krb_get_cred=no
12697fi 22769fi
12698rm -f core conftest.err conftest.$ac_objext \ 22770
12699 conftest$ac_exeext conftest.$ac_ext 22771rm -rf conftest.dSYM
22772rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22773 conftest$ac_exeext conftest.$ac_ext
12700LIBS=$ac_check_lib_save_LIBS 22774LIBS=$ac_check_lib_save_LIBS
12701fi 22775fi
12702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5 22776{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
12703$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } 22777$as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12704if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then : 22778if test $ac_cv_lib_krb_krb_get_cred = yes; then
12705 have_krb=yes 22779 have_krb=yes
12706else 22780else
12707 have_krb=no 22781 have_krb=no
@@ -12711,23 +22785,253 @@ fi
12711 KRB4LIB=-lkrb 22785 KRB4LIB=-lkrb
12712 LIBS="$KRB4LIB $LIBS" 22786 LIBS="$KRB4LIB $LIBS"
12713 22787
12714$as_echo "#define HAVE_LIBKRB 1" >>confdefs.h 22788cat >>confdefs.h <<\_ACEOF
22789#define HAVE_LIBKRB 1
22790_ACEOF
12715 22791
12716 fi 22792 fi
12717 fi 22793 fi
12718 fi 22794 fi
12719 22795
12720 if test "${with_kerberos5}" != no; then 22796 if test "${with_kerberos5}" != no; then
12721 for ac_header in krb5.h 22797
12722do : 22798for ac_header in krb5.h
12723 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" 22799do
12724if test "x$ac_cv_header_krb5_h" = x""yes; then : 22800as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22801if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22802 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22803$as_echo_n "checking for $ac_header... " >&6; }
22804if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22805 $as_echo_n "(cached) " >&6
22806fi
22807ac_res=`eval 'as_val=${'$as_ac_Header'}
22808 $as_echo "$as_val"'`
22809 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22810$as_echo "$ac_res" >&6; }
22811else
22812 # Is the header compilable?
22813{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22814$as_echo_n "checking $ac_header usability... " >&6; }
22815cat >conftest.$ac_ext <<_ACEOF
22816/* confdefs.h. */
22817_ACEOF
22818cat confdefs.h >>conftest.$ac_ext
22819cat >>conftest.$ac_ext <<_ACEOF
22820/* end confdefs.h. */
22821$ac_includes_default
22822#include <$ac_header>
22823_ACEOF
22824rm -f conftest.$ac_objext
22825if { (ac_try="$ac_compile"
22826case "(($ac_try" in
22827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22828 *) ac_try_echo=$ac_try;;
22829esac
22830eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22831$as_echo "$ac_try_echo") >&5
22832 (eval "$ac_compile") 2>conftest.er1
22833 ac_status=$?
22834 grep -v '^ *+' conftest.er1 >conftest.err
22835 rm -f conftest.er1
22836 cat conftest.err >&5
22837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22838 (exit $ac_status); } && {
22839 test -z "$ac_c_werror_flag" ||
22840 test ! -s conftest.err
22841 } && test -s conftest.$ac_objext; then
22842 ac_header_compiler=yes
22843else
22844 $as_echo "$as_me: failed program was:" >&5
22845sed 's/^/| /' conftest.$ac_ext >&5
22846
22847 ac_header_compiler=no
22848fi
22849
22850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22851{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22852$as_echo "$ac_header_compiler" >&6; }
22853
22854# Is the header present?
22855{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22856$as_echo_n "checking $ac_header presence... " >&6; }
22857cat >conftest.$ac_ext <<_ACEOF
22858/* confdefs.h. */
22859_ACEOF
22860cat confdefs.h >>conftest.$ac_ext
22861cat >>conftest.$ac_ext <<_ACEOF
22862/* end confdefs.h. */
22863#include <$ac_header>
22864_ACEOF
22865if { (ac_try="$ac_cpp conftest.$ac_ext"
22866case "(($ac_try" in
22867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22868 *) ac_try_echo=$ac_try;;
22869esac
22870eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22871$as_echo "$ac_try_echo") >&5
22872 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22873 ac_status=$?
22874 grep -v '^ *+' conftest.er1 >conftest.err
22875 rm -f conftest.er1
22876 cat conftest.err >&5
22877 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22878 (exit $ac_status); } >/dev/null && {
22879 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22880 test ! -s conftest.err
22881 }; then
22882 ac_header_preproc=yes
22883else
22884 $as_echo "$as_me: failed program was:" >&5
22885sed 's/^/| /' conftest.$ac_ext >&5
22886
22887 ac_header_preproc=no
22888fi
22889
22890rm -f conftest.err conftest.$ac_ext
22891{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22892$as_echo "$ac_header_preproc" >&6; }
22893
22894# So? What about this header?
22895case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22896 yes:no: )
22897 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22898$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22899 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22900$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22901 ac_header_preproc=yes
22902 ;;
22903 no:yes:* )
22904 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22905$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22906 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22907$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22908 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22909$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22910 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22911$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22912 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22913$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22914 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22915$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22916
22917 ;;
22918esac
22919{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22920$as_echo_n "checking for $ac_header... " >&6; }
22921if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22922 $as_echo_n "(cached) " >&6
22923else
22924 eval "$as_ac_Header=\$ac_header_preproc"
22925fi
22926ac_res=`eval 'as_val=${'$as_ac_Header'}
22927 $as_echo "$as_val"'`
22928 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22929$as_echo "$ac_res" >&6; }
22930
22931fi
22932if test `eval 'as_val=${'$as_ac_Header'}
22933 $as_echo "$as_val"'` = yes; then
12725 cat >>confdefs.h <<_ACEOF 22934 cat >>confdefs.h <<_ACEOF
12726#define HAVE_KRB5_H 1 22935#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12727_ACEOF 22936_ACEOF
12728 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h> 22937 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
12729" 22938$as_echo_n "checking for krb5_error.text... " >&6; }
12730if test "x$ac_cv_member_krb5_error_text" = x""yes; then : 22939if test "${ac_cv_member_krb5_error_text+set}" = set; then
22940 $as_echo_n "(cached) " >&6
22941else
22942 cat >conftest.$ac_ext <<_ACEOF
22943/* confdefs.h. */
22944_ACEOF
22945cat confdefs.h >>conftest.$ac_ext
22946cat >>conftest.$ac_ext <<_ACEOF
22947/* end confdefs.h. */
22948#include <krb5.h>
22949
22950int
22951main ()
22952{
22953static krb5_error ac_aggr;
22954if (ac_aggr.text)
22955return 0;
22956 ;
22957 return 0;
22958}
22959_ACEOF
22960rm -f conftest.$ac_objext
22961if { (ac_try="$ac_compile"
22962case "(($ac_try" in
22963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22964 *) ac_try_echo=$ac_try;;
22965esac
22966eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22967$as_echo "$ac_try_echo") >&5
22968 (eval "$ac_compile") 2>conftest.er1
22969 ac_status=$?
22970 grep -v '^ *+' conftest.er1 >conftest.err
22971 rm -f conftest.er1
22972 cat conftest.err >&5
22973 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); } && {
22975 test -z "$ac_c_werror_flag" ||
22976 test ! -s conftest.err
22977 } && test -s conftest.$ac_objext; then
22978 ac_cv_member_krb5_error_text=yes
22979else
22980 $as_echo "$as_me: failed program was:" >&5
22981sed 's/^/| /' conftest.$ac_ext >&5
22982
22983 cat >conftest.$ac_ext <<_ACEOF
22984/* confdefs.h. */
22985_ACEOF
22986cat confdefs.h >>conftest.$ac_ext
22987cat >>conftest.$ac_ext <<_ACEOF
22988/* end confdefs.h. */
22989#include <krb5.h>
22990
22991int
22992main ()
22993{
22994static krb5_error ac_aggr;
22995if (sizeof ac_aggr.text)
22996return 0;
22997 ;
22998 return 0;
22999}
23000_ACEOF
23001rm -f conftest.$ac_objext
23002if { (ac_try="$ac_compile"
23003case "(($ac_try" in
23004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23005 *) ac_try_echo=$ac_try;;
23006esac
23007eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23008$as_echo "$ac_try_echo") >&5
23009 (eval "$ac_compile") 2>conftest.er1
23010 ac_status=$?
23011 grep -v '^ *+' conftest.er1 >conftest.err
23012 rm -f conftest.er1
23013 cat conftest.err >&5
23014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23015 (exit $ac_status); } && {
23016 test -z "$ac_c_werror_flag" ||
23017 test ! -s conftest.err
23018 } && test -s conftest.$ac_objext; then
23019 ac_cv_member_krb5_error_text=yes
23020else
23021 $as_echo "$as_me: failed program was:" >&5
23022sed 's/^/| /' conftest.$ac_ext >&5
23023
23024 ac_cv_member_krb5_error_text=no
23025fi
23026
23027rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23028fi
23029
23030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23031fi
23032{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
23033$as_echo "$ac_cv_member_krb5_error_text" >&6; }
23034if test $ac_cv_member_krb5_error_text = yes; then
12731 23035
12732cat >>confdefs.h <<_ACEOF 23036cat >>confdefs.h <<_ACEOF
12733#define HAVE_KRB5_ERROR_TEXT 1 23037#define HAVE_KRB5_ERROR_TEXT 1
@@ -12735,9 +23039,104 @@ _ACEOF
12735 23039
12736 23040
12737fi 23041fi
12738ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h> 23042{ $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
12739" 23043$as_echo_n "checking for krb5_error.e_text... " >&6; }
12740if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then : 23044if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23045 $as_echo_n "(cached) " >&6
23046else
23047 cat >conftest.$ac_ext <<_ACEOF
23048/* confdefs.h. */
23049_ACEOF
23050cat confdefs.h >>conftest.$ac_ext
23051cat >>conftest.$ac_ext <<_ACEOF
23052/* end confdefs.h. */
23053#include <krb5.h>
23054
23055int
23056main ()
23057{
23058static krb5_error ac_aggr;
23059if (ac_aggr.e_text)
23060return 0;
23061 ;
23062 return 0;
23063}
23064_ACEOF
23065rm -f conftest.$ac_objext
23066if { (ac_try="$ac_compile"
23067case "(($ac_try" in
23068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23069 *) ac_try_echo=$ac_try;;
23070esac
23071eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23072$as_echo "$ac_try_echo") >&5
23073 (eval "$ac_compile") 2>conftest.er1
23074 ac_status=$?
23075 grep -v '^ *+' conftest.er1 >conftest.err
23076 rm -f conftest.er1
23077 cat conftest.err >&5
23078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); } && {
23080 test -z "$ac_c_werror_flag" ||
23081 test ! -s conftest.err
23082 } && test -s conftest.$ac_objext; then
23083 ac_cv_member_krb5_error_e_text=yes
23084else
23085 $as_echo "$as_me: failed program was:" >&5
23086sed 's/^/| /' conftest.$ac_ext >&5
23087
23088 cat >conftest.$ac_ext <<_ACEOF
23089/* confdefs.h. */
23090_ACEOF
23091cat confdefs.h >>conftest.$ac_ext
23092cat >>conftest.$ac_ext <<_ACEOF
23093/* end confdefs.h. */
23094#include <krb5.h>
23095
23096int
23097main ()
23098{
23099static krb5_error ac_aggr;
23100if (sizeof ac_aggr.e_text)
23101return 0;
23102 ;
23103 return 0;
23104}
23105_ACEOF
23106rm -f conftest.$ac_objext
23107if { (ac_try="$ac_compile"
23108case "(($ac_try" in
23109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23110 *) ac_try_echo=$ac_try;;
23111esac
23112eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23113$as_echo "$ac_try_echo") >&5
23114 (eval "$ac_compile") 2>conftest.er1
23115 ac_status=$?
23116 grep -v '^ *+' conftest.er1 >conftest.err
23117 rm -f conftest.er1
23118 cat conftest.err >&5
23119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23120 (exit $ac_status); } && {
23121 test -z "$ac_c_werror_flag" ||
23122 test ! -s conftest.err
23123 } && test -s conftest.$ac_objext; then
23124 ac_cv_member_krb5_error_e_text=yes
23125else
23126 $as_echo "$as_me: failed program was:" >&5
23127sed 's/^/| /' conftest.$ac_ext >&5
23128
23129 ac_cv_member_krb5_error_e_text=no
23130fi
23131
23132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23133fi
23134
23135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23136fi
23137{ $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23138$as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23139if test $ac_cv_member_krb5_error_e_text = yes; then
12741 23140
12742cat >>confdefs.h <<_ACEOF 23141cat >>confdefs.h <<_ACEOF
12743#define HAVE_KRB5_ERROR_E_TEXT 1 23142#define HAVE_KRB5_ERROR_E_TEXT 1
@@ -12751,30 +23150,429 @@ fi
12751done 23150done
12752 23151
12753 else 23152 else
12754 for ac_header in des.h 23153
12755do : 23154for ac_header in des.h
12756 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" 23155do
12757if test "x$ac_cv_header_des_h" = x""yes; then : 23156as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23157if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23158 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23159$as_echo_n "checking for $ac_header... " >&6; }
23160if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23161 $as_echo_n "(cached) " >&6
23162fi
23163ac_res=`eval 'as_val=${'$as_ac_Header'}
23164 $as_echo "$as_val"'`
23165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23166$as_echo "$ac_res" >&6; }
23167else
23168 # Is the header compilable?
23169{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23170$as_echo_n "checking $ac_header usability... " >&6; }
23171cat >conftest.$ac_ext <<_ACEOF
23172/* confdefs.h. */
23173_ACEOF
23174cat confdefs.h >>conftest.$ac_ext
23175cat >>conftest.$ac_ext <<_ACEOF
23176/* end confdefs.h. */
23177$ac_includes_default
23178#include <$ac_header>
23179_ACEOF
23180rm -f conftest.$ac_objext
23181if { (ac_try="$ac_compile"
23182case "(($ac_try" in
23183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23184 *) ac_try_echo=$ac_try;;
23185esac
23186eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23187$as_echo "$ac_try_echo") >&5
23188 (eval "$ac_compile") 2>conftest.er1
23189 ac_status=$?
23190 grep -v '^ *+' conftest.er1 >conftest.err
23191 rm -f conftest.er1
23192 cat conftest.err >&5
23193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); } && {
23195 test -z "$ac_c_werror_flag" ||
23196 test ! -s conftest.err
23197 } && test -s conftest.$ac_objext; then
23198 ac_header_compiler=yes
23199else
23200 $as_echo "$as_me: failed program was:" >&5
23201sed 's/^/| /' conftest.$ac_ext >&5
23202
23203 ac_header_compiler=no
23204fi
23205
23206rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23207{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23208$as_echo "$ac_header_compiler" >&6; }
23209
23210# Is the header present?
23211{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23212$as_echo_n "checking $ac_header presence... " >&6; }
23213cat >conftest.$ac_ext <<_ACEOF
23214/* confdefs.h. */
23215_ACEOF
23216cat confdefs.h >>conftest.$ac_ext
23217cat >>conftest.$ac_ext <<_ACEOF
23218/* end confdefs.h. */
23219#include <$ac_header>
23220_ACEOF
23221if { (ac_try="$ac_cpp conftest.$ac_ext"
23222case "(($ac_try" in
23223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23224 *) ac_try_echo=$ac_try;;
23225esac
23226eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23227$as_echo "$ac_try_echo") >&5
23228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23229 ac_status=$?
23230 grep -v '^ *+' conftest.er1 >conftest.err
23231 rm -f conftest.er1
23232 cat conftest.err >&5
23233 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23234 (exit $ac_status); } >/dev/null && {
23235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23236 test ! -s conftest.err
23237 }; then
23238 ac_header_preproc=yes
23239else
23240 $as_echo "$as_me: failed program was:" >&5
23241sed 's/^/| /' conftest.$ac_ext >&5
23242
23243 ac_header_preproc=no
23244fi
23245
23246rm -f conftest.err conftest.$ac_ext
23247{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23248$as_echo "$ac_header_preproc" >&6; }
23249
23250# So? What about this header?
23251case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23252 yes:no: )
23253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23254$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23256$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23257 ac_header_preproc=yes
23258 ;;
23259 no:yes:* )
23260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23261$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23263$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23264 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23265$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23266 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23267$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23268 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23269$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23270 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23271$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23272
23273 ;;
23274esac
23275{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23276$as_echo_n "checking for $ac_header... " >&6; }
23277if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23278 $as_echo_n "(cached) " >&6
23279else
23280 eval "$as_ac_Header=\$ac_header_preproc"
23281fi
23282ac_res=`eval 'as_val=${'$as_ac_Header'}
23283 $as_echo "$as_val"'`
23284 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23285$as_echo "$ac_res" >&6; }
23286
23287fi
23288if test `eval 'as_val=${'$as_ac_Header'}
23289 $as_echo "$as_val"'` = yes; then
12758 cat >>confdefs.h <<_ACEOF 23290 cat >>confdefs.h <<_ACEOF
12759#define HAVE_DES_H 1 23291#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23292_ACEOF
23293
23294else
23295
23296for ac_header in kerberosIV/des.h
23297do
23298as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23300 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23301$as_echo_n "checking for $ac_header... " >&6; }
23302if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23303 $as_echo_n "(cached) " >&6
23304fi
23305ac_res=`eval 'as_val=${'$as_ac_Header'}
23306 $as_echo "$as_val"'`
23307 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23308$as_echo "$ac_res" >&6; }
23309else
23310 # Is the header compilable?
23311{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23312$as_echo_n "checking $ac_header usability... " >&6; }
23313cat >conftest.$ac_ext <<_ACEOF
23314/* confdefs.h. */
23315_ACEOF
23316cat confdefs.h >>conftest.$ac_ext
23317cat >>conftest.$ac_ext <<_ACEOF
23318/* end confdefs.h. */
23319$ac_includes_default
23320#include <$ac_header>
23321_ACEOF
23322rm -f conftest.$ac_objext
23323if { (ac_try="$ac_compile"
23324case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23327esac
23328eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23329$as_echo "$ac_try_echo") >&5
23330 (eval "$ac_compile") 2>conftest.er1
23331 ac_status=$?
23332 grep -v '^ *+' conftest.er1 >conftest.err
23333 rm -f conftest.er1
23334 cat conftest.err >&5
23335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23336 (exit $ac_status); } && {
23337 test -z "$ac_c_werror_flag" ||
23338 test ! -s conftest.err
23339 } && test -s conftest.$ac_objext; then
23340 ac_header_compiler=yes
23341else
23342 $as_echo "$as_me: failed program was:" >&5
23343sed 's/^/| /' conftest.$ac_ext >&5
23344
23345 ac_header_compiler=no
23346fi
23347
23348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23349{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23350$as_echo "$ac_header_compiler" >&6; }
23351
23352# Is the header present?
23353{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23354$as_echo_n "checking $ac_header presence... " >&6; }
23355cat >conftest.$ac_ext <<_ACEOF
23356/* confdefs.h. */
23357_ACEOF
23358cat confdefs.h >>conftest.$ac_ext
23359cat >>conftest.$ac_ext <<_ACEOF
23360/* end confdefs.h. */
23361#include <$ac_header>
12760_ACEOF 23362_ACEOF
23363if { (ac_try="$ac_cpp conftest.$ac_ext"
23364case "(($ac_try" in
23365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23366 *) ac_try_echo=$ac_try;;
23367esac
23368eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23369$as_echo "$ac_try_echo") >&5
23370 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23371 ac_status=$?
23372 grep -v '^ *+' conftest.er1 >conftest.err
23373 rm -f conftest.er1
23374 cat conftest.err >&5
23375 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23376 (exit $ac_status); } >/dev/null && {
23377 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23378 test ! -s conftest.err
23379 }; then
23380 ac_header_preproc=yes
23381else
23382 $as_echo "$as_me: failed program was:" >&5
23383sed 's/^/| /' conftest.$ac_ext >&5
23384
23385 ac_header_preproc=no
23386fi
23387
23388rm -f conftest.err conftest.$ac_ext
23389{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23390$as_echo "$ac_header_preproc" >&6; }
12761 23391
23392# So? What about this header?
23393case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23394 yes:no: )
23395 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23396$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23397 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23398$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23399 ac_header_preproc=yes
23400 ;;
23401 no:yes:* )
23402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23403$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23404 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23405$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23407$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23409$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23411$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23413$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23414
23415 ;;
23416esac
23417{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23418$as_echo_n "checking for $ac_header... " >&6; }
23419if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23420 $as_echo_n "(cached) " >&6
12762else 23421else
12763 for ac_header in kerberosIV/des.h 23422 eval "$as_ac_Header=\$ac_header_preproc"
12764do : 23423fi
12765 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default" 23424ac_res=`eval 'as_val=${'$as_ac_Header'}
12766if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then : 23425 $as_echo "$as_val"'`
23426 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23427$as_echo "$ac_res" >&6; }
23428
23429fi
23430if test `eval 'as_val=${'$as_ac_Header'}
23431 $as_echo "$as_val"'` = yes; then
12767 cat >>confdefs.h <<_ACEOF 23432 cat >>confdefs.h <<_ACEOF
12768#define HAVE_KERBEROSIV_DES_H 1 23433#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12769_ACEOF 23434_ACEOF
12770 23435
12771else 23436else
12772 for ac_header in kerberos/des.h 23437
12773do : 23438for ac_header in kerberos/des.h
12774 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default" 23439do
12775if test "x$ac_cv_header_kerberos_des_h" = x""yes; then : 23440as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23441if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23442 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23443$as_echo_n "checking for $ac_header... " >&6; }
23444if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23445 $as_echo_n "(cached) " >&6
23446fi
23447ac_res=`eval 'as_val=${'$as_ac_Header'}
23448 $as_echo "$as_val"'`
23449 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23450$as_echo "$ac_res" >&6; }
23451else
23452 # Is the header compilable?
23453{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23454$as_echo_n "checking $ac_header usability... " >&6; }
23455cat >conftest.$ac_ext <<_ACEOF
23456/* confdefs.h. */
23457_ACEOF
23458cat confdefs.h >>conftest.$ac_ext
23459cat >>conftest.$ac_ext <<_ACEOF
23460/* end confdefs.h. */
23461$ac_includes_default
23462#include <$ac_header>
23463_ACEOF
23464rm -f conftest.$ac_objext
23465if { (ac_try="$ac_compile"
23466case "(($ac_try" in
23467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23468 *) ac_try_echo=$ac_try;;
23469esac
23470eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23471$as_echo "$ac_try_echo") >&5
23472 (eval "$ac_compile") 2>conftest.er1
23473 ac_status=$?
23474 grep -v '^ *+' conftest.er1 >conftest.err
23475 rm -f conftest.er1
23476 cat conftest.err >&5
23477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23478 (exit $ac_status); } && {
23479 test -z "$ac_c_werror_flag" ||
23480 test ! -s conftest.err
23481 } && test -s conftest.$ac_objext; then
23482 ac_header_compiler=yes
23483else
23484 $as_echo "$as_me: failed program was:" >&5
23485sed 's/^/| /' conftest.$ac_ext >&5
23486
23487 ac_header_compiler=no
23488fi
23489
23490rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23491{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23492$as_echo "$ac_header_compiler" >&6; }
23493
23494# Is the header present?
23495{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23496$as_echo_n "checking $ac_header presence... " >&6; }
23497cat >conftest.$ac_ext <<_ACEOF
23498/* confdefs.h. */
23499_ACEOF
23500cat confdefs.h >>conftest.$ac_ext
23501cat >>conftest.$ac_ext <<_ACEOF
23502/* end confdefs.h. */
23503#include <$ac_header>
23504_ACEOF
23505if { (ac_try="$ac_cpp conftest.$ac_ext"
23506case "(($ac_try" in
23507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23508 *) ac_try_echo=$ac_try;;
23509esac
23510eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23511$as_echo "$ac_try_echo") >&5
23512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23513 ac_status=$?
23514 grep -v '^ *+' conftest.er1 >conftest.err
23515 rm -f conftest.er1
23516 cat conftest.err >&5
23517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23518 (exit $ac_status); } >/dev/null && {
23519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23520 test ! -s conftest.err
23521 }; then
23522 ac_header_preproc=yes
23523else
23524 $as_echo "$as_me: failed program was:" >&5
23525sed 's/^/| /' conftest.$ac_ext >&5
23526
23527 ac_header_preproc=no
23528fi
23529
23530rm -f conftest.err conftest.$ac_ext
23531{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23532$as_echo "$ac_header_preproc" >&6; }
23533
23534# So? What about this header?
23535case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23536 yes:no: )
23537 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23538$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23539 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23540$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23541 ac_header_preproc=yes
23542 ;;
23543 no:yes:* )
23544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23545$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23547$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23549$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23550 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23551$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23552 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23553$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23554 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23555$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23556
23557 ;;
23558esac
23559{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23560$as_echo_n "checking for $ac_header... " >&6; }
23561if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23562 $as_echo_n "(cached) " >&6
23563else
23564 eval "$as_ac_Header=\$ac_header_preproc"
23565fi
23566ac_res=`eval 'as_val=${'$as_ac_Header'}
23567 $as_echo "$as_val"'`
23568 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23569$as_echo "$ac_res" >&6; }
23570
23571fi
23572if test `eval 'as_val=${'$as_ac_Header'}
23573 $as_echo "$as_val"'` = yes; then
12776 cat >>confdefs.h <<_ACEOF 23574 cat >>confdefs.h <<_ACEOF
12777#define HAVE_KERBEROS_DES_H 1 23575#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12778_ACEOF 23576_ACEOF
12779 23577
12780fi 23578fi
@@ -12789,30 +23587,429 @@ fi
12789 23587
12790done 23588done
12791 23589
12792 for ac_header in krb.h 23590
12793do : 23591for ac_header in krb.h
12794 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" 23592do
12795if test "x$ac_cv_header_krb_h" = x""yes; then : 23593as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23594if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23595 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23596$as_echo_n "checking for $ac_header... " >&6; }
23597if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23598 $as_echo_n "(cached) " >&6
23599fi
23600ac_res=`eval 'as_val=${'$as_ac_Header'}
23601 $as_echo "$as_val"'`
23602 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23603$as_echo "$ac_res" >&6; }
23604else
23605 # Is the header compilable?
23606{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23607$as_echo_n "checking $ac_header usability... " >&6; }
23608cat >conftest.$ac_ext <<_ACEOF
23609/* confdefs.h. */
23610_ACEOF
23611cat confdefs.h >>conftest.$ac_ext
23612cat >>conftest.$ac_ext <<_ACEOF
23613/* end confdefs.h. */
23614$ac_includes_default
23615#include <$ac_header>
23616_ACEOF
23617rm -f conftest.$ac_objext
23618if { (ac_try="$ac_compile"
23619case "(($ac_try" in
23620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621 *) ac_try_echo=$ac_try;;
23622esac
23623eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23624$as_echo "$ac_try_echo") >&5
23625 (eval "$ac_compile") 2>conftest.er1
23626 ac_status=$?
23627 grep -v '^ *+' conftest.er1 >conftest.err
23628 rm -f conftest.er1
23629 cat conftest.err >&5
23630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23631 (exit $ac_status); } && {
23632 test -z "$ac_c_werror_flag" ||
23633 test ! -s conftest.err
23634 } && test -s conftest.$ac_objext; then
23635 ac_header_compiler=yes
23636else
23637 $as_echo "$as_me: failed program was:" >&5
23638sed 's/^/| /' conftest.$ac_ext >&5
23639
23640 ac_header_compiler=no
23641fi
23642
23643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23644{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23645$as_echo "$ac_header_compiler" >&6; }
23646
23647# Is the header present?
23648{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23649$as_echo_n "checking $ac_header presence... " >&6; }
23650cat >conftest.$ac_ext <<_ACEOF
23651/* confdefs.h. */
23652_ACEOF
23653cat confdefs.h >>conftest.$ac_ext
23654cat >>conftest.$ac_ext <<_ACEOF
23655/* end confdefs.h. */
23656#include <$ac_header>
23657_ACEOF
23658if { (ac_try="$ac_cpp conftest.$ac_ext"
23659case "(($ac_try" in
23660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23661 *) ac_try_echo=$ac_try;;
23662esac
23663eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23664$as_echo "$ac_try_echo") >&5
23665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23666 ac_status=$?
23667 grep -v '^ *+' conftest.er1 >conftest.err
23668 rm -f conftest.er1
23669 cat conftest.err >&5
23670 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); } >/dev/null && {
23672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23673 test ! -s conftest.err
23674 }; then
23675 ac_header_preproc=yes
23676else
23677 $as_echo "$as_me: failed program was:" >&5
23678sed 's/^/| /' conftest.$ac_ext >&5
23679
23680 ac_header_preproc=no
23681fi
23682
23683rm -f conftest.err conftest.$ac_ext
23684{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23685$as_echo "$ac_header_preproc" >&6; }
23686
23687# So? What about this header?
23688case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23689 yes:no: )
23690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23691$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23693$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23694 ac_header_preproc=yes
23695 ;;
23696 no:yes:* )
23697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23698$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23700$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23701 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23702$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23703 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23704$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23705 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23706$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23707 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23708$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23709
23710 ;;
23711esac
23712{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23713$as_echo_n "checking for $ac_header... " >&6; }
23714if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23715 $as_echo_n "(cached) " >&6
23716else
23717 eval "$as_ac_Header=\$ac_header_preproc"
23718fi
23719ac_res=`eval 'as_val=${'$as_ac_Header'}
23720 $as_echo "$as_val"'`
23721 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23722$as_echo "$ac_res" >&6; }
23723
23724fi
23725if test `eval 'as_val=${'$as_ac_Header'}
23726 $as_echo "$as_val"'` = yes; then
12796 cat >>confdefs.h <<_ACEOF 23727 cat >>confdefs.h <<_ACEOF
12797#define HAVE_KRB_H 1 23728#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23729_ACEOF
23730
23731else
23732
23733for ac_header in kerberosIV/krb.h
23734do
23735as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23736if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23737 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23738$as_echo_n "checking for $ac_header... " >&6; }
23739if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23740 $as_echo_n "(cached) " >&6
23741fi
23742ac_res=`eval 'as_val=${'$as_ac_Header'}
23743 $as_echo "$as_val"'`
23744 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23745$as_echo "$ac_res" >&6; }
23746else
23747 # Is the header compilable?
23748{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23749$as_echo_n "checking $ac_header usability... " >&6; }
23750cat >conftest.$ac_ext <<_ACEOF
23751/* confdefs.h. */
23752_ACEOF
23753cat confdefs.h >>conftest.$ac_ext
23754cat >>conftest.$ac_ext <<_ACEOF
23755/* end confdefs.h. */
23756$ac_includes_default
23757#include <$ac_header>
23758_ACEOF
23759rm -f conftest.$ac_objext
23760if { (ac_try="$ac_compile"
23761case "(($ac_try" in
23762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23763 *) ac_try_echo=$ac_try;;
23764esac
23765eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23766$as_echo "$ac_try_echo") >&5
23767 (eval "$ac_compile") 2>conftest.er1
23768 ac_status=$?
23769 grep -v '^ *+' conftest.er1 >conftest.err
23770 rm -f conftest.er1
23771 cat conftest.err >&5
23772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23773 (exit $ac_status); } && {
23774 test -z "$ac_c_werror_flag" ||
23775 test ! -s conftest.err
23776 } && test -s conftest.$ac_objext; then
23777 ac_header_compiler=yes
23778else
23779 $as_echo "$as_me: failed program was:" >&5
23780sed 's/^/| /' conftest.$ac_ext >&5
23781
23782 ac_header_compiler=no
23783fi
23784
23785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23786{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23787$as_echo "$ac_header_compiler" >&6; }
23788
23789# Is the header present?
23790{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23791$as_echo_n "checking $ac_header presence... " >&6; }
23792cat >conftest.$ac_ext <<_ACEOF
23793/* confdefs.h. */
12798_ACEOF 23794_ACEOF
23795cat confdefs.h >>conftest.$ac_ext
23796cat >>conftest.$ac_ext <<_ACEOF
23797/* end confdefs.h. */
23798#include <$ac_header>
23799_ACEOF
23800if { (ac_try="$ac_cpp conftest.$ac_ext"
23801case "(($ac_try" in
23802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23803 *) ac_try_echo=$ac_try;;
23804esac
23805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23806$as_echo "$ac_try_echo") >&5
23807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23808 ac_status=$?
23809 grep -v '^ *+' conftest.er1 >conftest.err
23810 rm -f conftest.er1
23811 cat conftest.err >&5
23812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23813 (exit $ac_status); } >/dev/null && {
23814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23815 test ! -s conftest.err
23816 }; then
23817 ac_header_preproc=yes
23818else
23819 $as_echo "$as_me: failed program was:" >&5
23820sed 's/^/| /' conftest.$ac_ext >&5
23821
23822 ac_header_preproc=no
23823fi
23824
23825rm -f conftest.err conftest.$ac_ext
23826{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23827$as_echo "$ac_header_preproc" >&6; }
23828
23829# So? What about this header?
23830case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23831 yes:no: )
23832 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23833$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23834 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23835$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23836 ac_header_preproc=yes
23837 ;;
23838 no:yes:* )
23839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23840$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23842$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23844$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23846$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23847 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23848$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23849 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23850$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12799 23851
23852 ;;
23853esac
23854{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23855$as_echo_n "checking for $ac_header... " >&6; }
23856if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23857 $as_echo_n "(cached) " >&6
12800else 23858else
12801 for ac_header in kerberosIV/krb.h 23859 eval "$as_ac_Header=\$ac_header_preproc"
12802do : 23860fi
12803 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default" 23861ac_res=`eval 'as_val=${'$as_ac_Header'}
12804if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then : 23862 $as_echo "$as_val"'`
23863 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23864$as_echo "$ac_res" >&6; }
23865
23866fi
23867if test `eval 'as_val=${'$as_ac_Header'}
23868 $as_echo "$as_val"'` = yes; then
12805 cat >>confdefs.h <<_ACEOF 23869 cat >>confdefs.h <<_ACEOF
12806#define HAVE_KERBEROSIV_KRB_H 1 23870#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23871_ACEOF
23872
23873else
23874
23875for ac_header in kerberos/krb.h
23876do
23877as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23878if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23879 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23880$as_echo_n "checking for $ac_header... " >&6; }
23881if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23882 $as_echo_n "(cached) " >&6
23883fi
23884ac_res=`eval 'as_val=${'$as_ac_Header'}
23885 $as_echo "$as_val"'`
23886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23887$as_echo "$ac_res" >&6; }
23888else
23889 # Is the header compilable?
23890{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23891$as_echo_n "checking $ac_header usability... " >&6; }
23892cat >conftest.$ac_ext <<_ACEOF
23893/* confdefs.h. */
23894_ACEOF
23895cat confdefs.h >>conftest.$ac_ext
23896cat >>conftest.$ac_ext <<_ACEOF
23897/* end confdefs.h. */
23898$ac_includes_default
23899#include <$ac_header>
23900_ACEOF
23901rm -f conftest.$ac_objext
23902if { (ac_try="$ac_compile"
23903case "(($ac_try" in
23904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23905 *) ac_try_echo=$ac_try;;
23906esac
23907eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23908$as_echo "$ac_try_echo") >&5
23909 (eval "$ac_compile") 2>conftest.er1
23910 ac_status=$?
23911 grep -v '^ *+' conftest.er1 >conftest.err
23912 rm -f conftest.er1
23913 cat conftest.err >&5
23914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23915 (exit $ac_status); } && {
23916 test -z "$ac_c_werror_flag" ||
23917 test ! -s conftest.err
23918 } && test -s conftest.$ac_objext; then
23919 ac_header_compiler=yes
23920else
23921 $as_echo "$as_me: failed program was:" >&5
23922sed 's/^/| /' conftest.$ac_ext >&5
23923
23924 ac_header_compiler=no
23925fi
23926
23927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23928{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23929$as_echo "$ac_header_compiler" >&6; }
23930
23931# Is the header present?
23932{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23933$as_echo_n "checking $ac_header presence... " >&6; }
23934cat >conftest.$ac_ext <<_ACEOF
23935/* confdefs.h. */
12807_ACEOF 23936_ACEOF
23937cat confdefs.h >>conftest.$ac_ext
23938cat >>conftest.$ac_ext <<_ACEOF
23939/* end confdefs.h. */
23940#include <$ac_header>
23941_ACEOF
23942if { (ac_try="$ac_cpp conftest.$ac_ext"
23943case "(($ac_try" in
23944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23945 *) ac_try_echo=$ac_try;;
23946esac
23947eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23948$as_echo "$ac_try_echo") >&5
23949 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23950 ac_status=$?
23951 grep -v '^ *+' conftest.er1 >conftest.err
23952 rm -f conftest.er1
23953 cat conftest.err >&5
23954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23955 (exit $ac_status); } >/dev/null && {
23956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23957 test ! -s conftest.err
23958 }; then
23959 ac_header_preproc=yes
23960else
23961 $as_echo "$as_me: failed program was:" >&5
23962sed 's/^/| /' conftest.$ac_ext >&5
23963
23964 ac_header_preproc=no
23965fi
23966
23967rm -f conftest.err conftest.$ac_ext
23968{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23969$as_echo "$ac_header_preproc" >&6; }
23970
23971# So? What about this header?
23972case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23973 yes:no: )
23974 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23975$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23977$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23978 ac_header_preproc=yes
23979 ;;
23980 no:yes:* )
23981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23982$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23984$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23986$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23988$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23990$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23992$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12808 23993
23994 ;;
23995esac
23996{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23997$as_echo_n "checking for $ac_header... " >&6; }
23998if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23999 $as_echo_n "(cached) " >&6
12809else 24000else
12810 for ac_header in kerberos/krb.h 24001 eval "$as_ac_Header=\$ac_header_preproc"
12811do : 24002fi
12812 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default" 24003ac_res=`eval 'as_val=${'$as_ac_Header'}
12813if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then : 24004 $as_echo "$as_val"'`
24005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24006$as_echo "$ac_res" >&6; }
24007
24008fi
24009if test `eval 'as_val=${'$as_ac_Header'}
24010 $as_echo "$as_val"'` = yes; then
12814 cat >>confdefs.h <<_ACEOF 24011 cat >>confdefs.h <<_ACEOF
12815#define HAVE_KERBEROS_KRB_H 1 24012#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12816_ACEOF 24013_ACEOF
12817 24014
12818fi 24015fi
@@ -12828,12 +24025,145 @@ fi
12828done 24025done
12829 24026
12830 fi 24027 fi
12831 for ac_header in com_err.h 24028
12832do : 24029for ac_header in com_err.h
12833 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default" 24030do
12834if test "x$ac_cv_header_com_err_h" = x""yes; then : 24031as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24032if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24033 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24034$as_echo_n "checking for $ac_header... " >&6; }
24035if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24036 $as_echo_n "(cached) " >&6
24037fi
24038ac_res=`eval 'as_val=${'$as_ac_Header'}
24039 $as_echo "$as_val"'`
24040 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24041$as_echo "$ac_res" >&6; }
24042else
24043 # Is the header compilable?
24044{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24045$as_echo_n "checking $ac_header usability... " >&6; }
24046cat >conftest.$ac_ext <<_ACEOF
24047/* confdefs.h. */
24048_ACEOF
24049cat confdefs.h >>conftest.$ac_ext
24050cat >>conftest.$ac_ext <<_ACEOF
24051/* end confdefs.h. */
24052$ac_includes_default
24053#include <$ac_header>
24054_ACEOF
24055rm -f conftest.$ac_objext
24056if { (ac_try="$ac_compile"
24057case "(($ac_try" in
24058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24059 *) ac_try_echo=$ac_try;;
24060esac
24061eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24062$as_echo "$ac_try_echo") >&5
24063 (eval "$ac_compile") 2>conftest.er1
24064 ac_status=$?
24065 grep -v '^ *+' conftest.er1 >conftest.err
24066 rm -f conftest.er1
24067 cat conftest.err >&5
24068 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24069 (exit $ac_status); } && {
24070 test -z "$ac_c_werror_flag" ||
24071 test ! -s conftest.err
24072 } && test -s conftest.$ac_objext; then
24073 ac_header_compiler=yes
24074else
24075 $as_echo "$as_me: failed program was:" >&5
24076sed 's/^/| /' conftest.$ac_ext >&5
24077
24078 ac_header_compiler=no
24079fi
24080
24081rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24082{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24083$as_echo "$ac_header_compiler" >&6; }
24084
24085# Is the header present?
24086{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24087$as_echo_n "checking $ac_header presence... " >&6; }
24088cat >conftest.$ac_ext <<_ACEOF
24089/* confdefs.h. */
24090_ACEOF
24091cat confdefs.h >>conftest.$ac_ext
24092cat >>conftest.$ac_ext <<_ACEOF
24093/* end confdefs.h. */
24094#include <$ac_header>
24095_ACEOF
24096if { (ac_try="$ac_cpp conftest.$ac_ext"
24097case "(($ac_try" in
24098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24099 *) ac_try_echo=$ac_try;;
24100esac
24101eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24102$as_echo "$ac_try_echo") >&5
24103 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24104 ac_status=$?
24105 grep -v '^ *+' conftest.er1 >conftest.err
24106 rm -f conftest.er1
24107 cat conftest.err >&5
24108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24109 (exit $ac_status); } >/dev/null && {
24110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24111 test ! -s conftest.err
24112 }; then
24113 ac_header_preproc=yes
24114else
24115 $as_echo "$as_me: failed program was:" >&5
24116sed 's/^/| /' conftest.$ac_ext >&5
24117
24118 ac_header_preproc=no
24119fi
24120
24121rm -f conftest.err conftest.$ac_ext
24122{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24123$as_echo "$ac_header_preproc" >&6; }
24124
24125# So? What about this header?
24126case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24127 yes:no: )
24128 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24129$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24130 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24131$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24132 ac_header_preproc=yes
24133 ;;
24134 no:yes:* )
24135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24136$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24137 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24138$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24139 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24140$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24142$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24144$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24146$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24147
24148 ;;
24149esac
24150{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24151$as_echo_n "checking for $ac_header... " >&6; }
24152if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24153 $as_echo_n "(cached) " >&6
24154else
24155 eval "$as_ac_Header=\$ac_header_preproc"
24156fi
24157ac_res=`eval 'as_val=${'$as_ac_Header'}
24158 $as_echo "$as_val"'`
24159 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24160$as_echo "$ac_res" >&6; }
24161
24162fi
24163if test `eval 'as_val=${'$as_ac_Header'}
24164 $as_echo "$as_val"'` = yes; then
12835 cat >>confdefs.h <<_ACEOF 24165 cat >>confdefs.h <<_ACEOF
12836#define HAVE_COM_ERR_H 1 24166#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12837_ACEOF 24167_ACEOF
12838 24168
12839fi 24169fi
@@ -12850,14 +24180,19 @@ fi
12850 24180
12851# Solaris requires -lintl if you want strerror (which calls dgettext) 24181# Solaris requires -lintl if you want strerror (which calls dgettext)
12852# to return localized messages. 24182# to return localized messages.
12853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 24183
24184{ $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12854$as_echo_n "checking for dgettext in -lintl... " >&6; } 24185$as_echo_n "checking for dgettext in -lintl... " >&6; }
12855if test "${ac_cv_lib_intl_dgettext+set}" = set; then : 24186if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12856 $as_echo_n "(cached) " >&6 24187 $as_echo_n "(cached) " >&6
12857else 24188else
12858 ac_check_lib_save_LIBS=$LIBS 24189 ac_check_lib_save_LIBS=$LIBS
12859LIBS="-lintl $LIBS" 24190LIBS="-lintl $LIBS"
12860cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24191cat >conftest.$ac_ext <<_ACEOF
24192/* confdefs.h. */
24193_ACEOF
24194cat confdefs.h >>conftest.$ac_ext
24195cat >>conftest.$ac_ext <<_ACEOF
12861/* end confdefs.h. */ 24196/* end confdefs.h. */
12862 24197
12863/* Override any GCC internal prototype to avoid an error. 24198/* Override any GCC internal prototype to avoid an error.
@@ -12875,18 +24210,43 @@ return dgettext ();
12875 return 0; 24210 return 0;
12876} 24211}
12877_ACEOF 24212_ACEOF
12878if ac_fn_c_try_link "$LINENO"; then : 24213rm -f conftest.$ac_objext conftest$ac_exeext
24214if { (ac_try="$ac_link"
24215case "(($ac_try" in
24216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217 *) ac_try_echo=$ac_try;;
24218esac
24219eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24220$as_echo "$ac_try_echo") >&5
24221 (eval "$ac_link") 2>conftest.er1
24222 ac_status=$?
24223 grep -v '^ *+' conftest.er1 >conftest.err
24224 rm -f conftest.er1
24225 cat conftest.err >&5
24226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24227 (exit $ac_status); } && {
24228 test -z "$ac_c_werror_flag" ||
24229 test ! -s conftest.err
24230 } && test -s conftest$ac_exeext && {
24231 test "$cross_compiling" = yes ||
24232 $as_test_x conftest$ac_exeext
24233 }; then
12879 ac_cv_lib_intl_dgettext=yes 24234 ac_cv_lib_intl_dgettext=yes
12880else 24235else
12881 ac_cv_lib_intl_dgettext=no 24236 $as_echo "$as_me: failed program was:" >&5
24237sed 's/^/| /' conftest.$ac_ext >&5
24238
24239 ac_cv_lib_intl_dgettext=no
12882fi 24240fi
12883rm -f core conftest.err conftest.$ac_objext \ 24241
12884 conftest$ac_exeext conftest.$ac_ext 24242rm -rf conftest.dSYM
24243rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24244 conftest$ac_exeext conftest.$ac_ext
12885LIBS=$ac_check_lib_save_LIBS 24245LIBS=$ac_check_lib_save_LIBS
12886fi 24246fi
12887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 24247{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12888$as_echo "$ac_cv_lib_intl_dgettext" >&6; } 24248$as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12889if test "x$ac_cv_lib_intl_dgettext" = x""yes; then : 24249if test $ac_cv_lib_intl_dgettext = yes; then
12890 cat >>confdefs.h <<_ACEOF 24250 cat >>confdefs.h <<_ACEOF
12891#define HAVE_LIBINTL 1 24251#define HAVE_LIBINTL 1
12892_ACEOF 24252_ACEOF
@@ -12896,17 +24256,21 @@ _ACEOF
12896fi 24256fi
12897 24257
12898 24258
12899{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5 24259{ $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
12900$as_echo_n "checking whether localtime caches TZ... " >&6; } 24260$as_echo_n "checking whether localtime caches TZ... " >&6; }
12901if test "${emacs_cv_localtime_cache+set}" = set; then : 24261if test "${emacs_cv_localtime_cache+set}" = set; then
12902 $as_echo_n "(cached) " >&6 24262 $as_echo_n "(cached) " >&6
12903else 24263else
12904 if test x$ac_cv_func_tzset = xyes; then 24264 if test x$ac_cv_func_tzset = xyes; then
12905if test "$cross_compiling" = yes; then : 24265if test "$cross_compiling" = yes; then
12906 # If we have tzset, assume the worst when cross-compiling. 24266 # If we have tzset, assume the worst when cross-compiling.
12907emacs_cv_localtime_cache=yes 24267emacs_cv_localtime_cache=yes
12908else 24268else
12909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24269 cat >conftest.$ac_ext <<_ACEOF
24270/* confdefs.h. */
24271_ACEOF
24272cat confdefs.h >>conftest.$ac_ext
24273cat >>conftest.$ac_ext <<_ACEOF
12910/* end confdefs.h. */ 24274/* end confdefs.h. */
12911#include <time.h> 24275#include <time.h>
12912extern char **environ; 24276extern char **environ;
@@ -12938,48 +24302,170 @@ main()
12938 exit (0); 24302 exit (0);
12939} 24303}
12940_ACEOF 24304_ACEOF
12941if ac_fn_c_try_run "$LINENO"; then : 24305rm -f conftest$ac_exeext
24306if { (ac_try="$ac_link"
24307case "(($ac_try" in
24308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24309 *) ac_try_echo=$ac_try;;
24310esac
24311eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24312$as_echo "$ac_try_echo") >&5
24313 (eval "$ac_link") 2>&5
24314 ac_status=$?
24315 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24316 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24317 { (case "(($ac_try" in
24318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24319 *) ac_try_echo=$ac_try;;
24320esac
24321eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24322$as_echo "$ac_try_echo") >&5
24323 (eval "$ac_try") 2>&5
24324 ac_status=$?
24325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); }; }; then
12942 emacs_cv_localtime_cache=no 24327 emacs_cv_localtime_cache=no
12943else 24328else
12944 emacs_cv_localtime_cache=yes 24329 $as_echo "$as_me: program exited with status $ac_status" >&5
24330$as_echo "$as_me: failed program was:" >&5
24331sed 's/^/| /' conftest.$ac_ext >&5
24332
24333( exit $ac_status )
24334emacs_cv_localtime_cache=yes
12945fi 24335fi
12946rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24336rm -rf conftest.dSYM
12947 conftest.$ac_objext conftest.beam conftest.$ac_ext 24337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
12948fi 24338fi
12949 24339
24340
12950else 24341else
12951 # If we lack tzset, report that localtime does not cache TZ, 24342 # If we lack tzset, report that localtime does not cache TZ,
12952 # since we can't invalidate the cache if we don't have tzset. 24343 # since we can't invalidate the cache if we don't have tzset.
12953 emacs_cv_localtime_cache=no 24344 emacs_cv_localtime_cache=no
12954fi 24345fi
12955fi 24346fi
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5 24347{ $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
12957$as_echo "$emacs_cv_localtime_cache" >&6; } 24348$as_echo "$emacs_cv_localtime_cache" >&6; }
12958if test $emacs_cv_localtime_cache = yes; then 24349if test $emacs_cv_localtime_cache = yes; then
12959 24350
12960$as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h 24351cat >>confdefs.h <<\_ACEOF
24352#define LOCALTIME_CACHE 1
24353_ACEOF
12961 24354
12962fi 24355fi
12963 24356
12964if test "x$HAVE_TIMEVAL" = xyes; then 24357if test "x$HAVE_TIMEVAL" = xyes; then
12965 for ac_func in gettimeofday 24358
12966do : 24359for ac_func in gettimeofday
12967 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 24360do
12968if test "x$ac_cv_func_gettimeofday" = x""yes; then : 24361as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24362{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24363$as_echo_n "checking for $ac_func... " >&6; }
24364if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24365 $as_echo_n "(cached) " >&6
24366else
24367 cat >conftest.$ac_ext <<_ACEOF
24368/* confdefs.h. */
24369_ACEOF
24370cat confdefs.h >>conftest.$ac_ext
24371cat >>conftest.$ac_ext <<_ACEOF
24372/* end confdefs.h. */
24373/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24374 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24375#define $ac_func innocuous_$ac_func
24376
24377/* System header to define __stub macros and hopefully few prototypes,
24378 which can conflict with char $ac_func (); below.
24379 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24380 <limits.h> exists even on freestanding compilers. */
24381
24382#ifdef __STDC__
24383# include <limits.h>
24384#else
24385# include <assert.h>
24386#endif
24387
24388#undef $ac_func
24389
24390/* Override any GCC internal prototype to avoid an error.
24391 Use char because int might match the return type of a GCC
24392 builtin and then its argument prototype would still apply. */
24393#ifdef __cplusplus
24394extern "C"
24395#endif
24396char $ac_func ();
24397/* The GNU C library defines this for functions which it implements
24398 to always fail with ENOSYS. Some functions are actually named
24399 something starting with __ and the normal name is an alias. */
24400#if defined __stub_$ac_func || defined __stub___$ac_func
24401choke me
24402#endif
24403
24404int
24405main ()
24406{
24407return $ac_func ();
24408 ;
24409 return 0;
24410}
24411_ACEOF
24412rm -f conftest.$ac_objext conftest$ac_exeext
24413if { (ac_try="$ac_link"
24414case "(($ac_try" in
24415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24416 *) ac_try_echo=$ac_try;;
24417esac
24418eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24419$as_echo "$ac_try_echo") >&5
24420 (eval "$ac_link") 2>conftest.er1
24421 ac_status=$?
24422 grep -v '^ *+' conftest.er1 >conftest.err
24423 rm -f conftest.er1
24424 cat conftest.err >&5
24425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426 (exit $ac_status); } && {
24427 test -z "$ac_c_werror_flag" ||
24428 test ! -s conftest.err
24429 } && test -s conftest$ac_exeext && {
24430 test "$cross_compiling" = yes ||
24431 $as_test_x conftest$ac_exeext
24432 }; then
24433 eval "$as_ac_var=yes"
24434else
24435 $as_echo "$as_me: failed program was:" >&5
24436sed 's/^/| /' conftest.$ac_ext >&5
24437
24438 eval "$as_ac_var=no"
24439fi
24440
24441rm -rf conftest.dSYM
24442rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24443 conftest$ac_exeext conftest.$ac_ext
24444fi
24445ac_res=`eval 'as_val=${'$as_ac_var'}
24446 $as_echo "$as_val"'`
24447 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24448$as_echo "$ac_res" >&6; }
24449if test `eval 'as_val=${'$as_ac_var'}
24450 $as_echo "$as_val"'` = yes; then
12969 cat >>confdefs.h <<_ACEOF 24451 cat >>confdefs.h <<_ACEOF
12970#define HAVE_GETTIMEOFDAY 1 24452#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12971_ACEOF 24453_ACEOF
12972 24454
12973fi 24455fi
12974done 24456done
12975 24457
12976 if test $ac_cv_func_gettimeofday = yes; then 24458 if test $ac_cv_func_gettimeofday = yes; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5 24459 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
12978$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } 24460$as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12979if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then : 24461if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
12980 $as_echo_n "(cached) " >&6 24462 $as_echo_n "(cached) " >&6
12981else 24463else
12982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24464 cat >conftest.$ac_ext <<_ACEOF
24465/* confdefs.h. */
24466_ACEOF
24467cat confdefs.h >>conftest.$ac_ext
24468cat >>conftest.$ac_ext <<_ACEOF
12983/* end confdefs.h. */ 24469/* end confdefs.h. */
12984 24470
12985#ifdef TIME_WITH_SYS_TIME 24471#ifdef TIME_WITH_SYS_TIME
@@ -13001,35 +24487,268 @@ struct timeval time;
13001 return 0; 24487 return 0;
13002} 24488}
13003_ACEOF 24489_ACEOF
13004if ac_fn_c_try_compile "$LINENO"; then : 24490rm -f conftest.$ac_objext
24491if { (ac_try="$ac_compile"
24492case "(($ac_try" in
24493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24494 *) ac_try_echo=$ac_try;;
24495esac
24496eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24497$as_echo "$ac_try_echo") >&5
24498 (eval "$ac_compile") 2>conftest.er1
24499 ac_status=$?
24500 grep -v '^ *+' conftest.er1 >conftest.err
24501 rm -f conftest.er1
24502 cat conftest.err >&5
24503 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24504 (exit $ac_status); } && {
24505 test -z "$ac_c_werror_flag" ||
24506 test ! -s conftest.err
24507 } && test -s conftest.$ac_objext; then
13005 emacs_cv_gettimeofday_two_arguments=yes 24508 emacs_cv_gettimeofday_two_arguments=yes
13006else 24509else
13007 emacs_cv_gettimeofday_two_arguments=no 24510 $as_echo "$as_me: failed program was:" >&5
24511sed 's/^/| /' conftest.$ac_ext >&5
24512
24513 emacs_cv_gettimeofday_two_arguments=no
13008fi 24514fi
24515
13009rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24516rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13010fi 24517fi
13011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5 24518{ $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
13012$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } 24519$as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13013 if test $emacs_cv_gettimeofday_two_arguments = no; then 24520 if test $emacs_cv_gettimeofday_two_arguments = no; then
13014 24521
13015$as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h 24522cat >>confdefs.h <<\_ACEOF
24523#define GETTIMEOFDAY_ONE_ARGUMENT 1
24524_ACEOF
13016 24525
13017 fi 24526 fi
13018 fi 24527 fi
13019fi 24528fi
13020 24529
13021ok_so_far=yes 24530ok_so_far=yes
13022ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 24531{ $as_echo "$as_me:$LINENO: checking for socket" >&5
13023if test "x$ac_cv_func_socket" = x""yes; then : 24532$as_echo_n "checking for socket... " >&6; }
24533if test "${ac_cv_func_socket+set}" = set; then
24534 $as_echo_n "(cached) " >&6
24535else
24536 cat >conftest.$ac_ext <<_ACEOF
24537/* confdefs.h. */
24538_ACEOF
24539cat confdefs.h >>conftest.$ac_ext
24540cat >>conftest.$ac_ext <<_ACEOF
24541/* end confdefs.h. */
24542/* Define socket to an innocuous variant, in case <limits.h> declares socket.
24543 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24544#define socket innocuous_socket
24545
24546/* System header to define __stub macros and hopefully few prototypes,
24547 which can conflict with char socket (); below.
24548 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24549 <limits.h> exists even on freestanding compilers. */
24550
24551#ifdef __STDC__
24552# include <limits.h>
24553#else
24554# include <assert.h>
24555#endif
24556
24557#undef socket
24558
24559/* Override any GCC internal prototype to avoid an error.
24560 Use char because int might match the return type of a GCC
24561 builtin and then its argument prototype would still apply. */
24562#ifdef __cplusplus
24563extern "C"
24564#endif
24565char socket ();
24566/* The GNU C library defines this for functions which it implements
24567 to always fail with ENOSYS. Some functions are actually named
24568 something starting with __ and the normal name is an alias. */
24569#if defined __stub_socket || defined __stub___socket
24570choke me
24571#endif
24572
24573int
24574main ()
24575{
24576return socket ();
24577 ;
24578 return 0;
24579}
24580_ACEOF
24581rm -f conftest.$ac_objext conftest$ac_exeext
24582if { (ac_try="$ac_link"
24583case "(($ac_try" in
24584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24585 *) ac_try_echo=$ac_try;;
24586esac
24587eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24588$as_echo "$ac_try_echo") >&5
24589 (eval "$ac_link") 2>conftest.er1
24590 ac_status=$?
24591 grep -v '^ *+' conftest.er1 >conftest.err
24592 rm -f conftest.er1
24593 cat conftest.err >&5
24594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24595 (exit $ac_status); } && {
24596 test -z "$ac_c_werror_flag" ||
24597 test ! -s conftest.err
24598 } && test -s conftest$ac_exeext && {
24599 test "$cross_compiling" = yes ||
24600 $as_test_x conftest$ac_exeext
24601 }; then
24602 ac_cv_func_socket=yes
24603else
24604 $as_echo "$as_me: failed program was:" >&5
24605sed 's/^/| /' conftest.$ac_ext >&5
24606
24607 ac_cv_func_socket=no
24608fi
13024 24609
24610rm -rf conftest.dSYM
24611rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24612 conftest$ac_exeext conftest.$ac_ext
24613fi
24614{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24615$as_echo "$ac_cv_func_socket" >&6; }
24616if test $ac_cv_func_socket = yes; then
24617 :
13025else 24618else
13026 ok_so_far=no 24619 ok_so_far=no
13027fi 24620fi
13028 24621
13029if test $ok_so_far = yes; then 24622if test $ok_so_far = yes; then
13030 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 24623 if test "${ac_cv_header_netinet_in_h+set}" = set; then
13031if test "x$ac_cv_header_netinet_in_h" = x""yes; then : 24624 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24625$as_echo_n "checking for netinet/in.h... " >&6; }
24626if test "${ac_cv_header_netinet_in_h+set}" = set; then
24627 $as_echo_n "(cached) " >&6
24628fi
24629{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24630$as_echo "$ac_cv_header_netinet_in_h" >&6; }
24631else
24632 # Is the header compilable?
24633{ $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24634$as_echo_n "checking netinet/in.h usability... " >&6; }
24635cat >conftest.$ac_ext <<_ACEOF
24636/* confdefs.h. */
24637_ACEOF
24638cat confdefs.h >>conftest.$ac_ext
24639cat >>conftest.$ac_ext <<_ACEOF
24640/* end confdefs.h. */
24641$ac_includes_default
24642#include <netinet/in.h>
24643_ACEOF
24644rm -f conftest.$ac_objext
24645if { (ac_try="$ac_compile"
24646case "(($ac_try" in
24647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24648 *) ac_try_echo=$ac_try;;
24649esac
24650eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24651$as_echo "$ac_try_echo") >&5
24652 (eval "$ac_compile") 2>conftest.er1
24653 ac_status=$?
24654 grep -v '^ *+' conftest.er1 >conftest.err
24655 rm -f conftest.er1
24656 cat conftest.err >&5
24657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24658 (exit $ac_status); } && {
24659 test -z "$ac_c_werror_flag" ||
24660 test ! -s conftest.err
24661 } && test -s conftest.$ac_objext; then
24662 ac_header_compiler=yes
24663else
24664 $as_echo "$as_me: failed program was:" >&5
24665sed 's/^/| /' conftest.$ac_ext >&5
24666
24667 ac_header_compiler=no
24668fi
24669
24670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24671{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24672$as_echo "$ac_header_compiler" >&6; }
13032 24673
24674# Is the header present?
24675{ $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24676$as_echo_n "checking netinet/in.h presence... " >&6; }
24677cat >conftest.$ac_ext <<_ACEOF
24678/* confdefs.h. */
24679_ACEOF
24680cat confdefs.h >>conftest.$ac_ext
24681cat >>conftest.$ac_ext <<_ACEOF
24682/* end confdefs.h. */
24683#include <netinet/in.h>
24684_ACEOF
24685if { (ac_try="$ac_cpp conftest.$ac_ext"
24686case "(($ac_try" in
24687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24688 *) ac_try_echo=$ac_try;;
24689esac
24690eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24691$as_echo "$ac_try_echo") >&5
24692 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24693 ac_status=$?
24694 grep -v '^ *+' conftest.er1 >conftest.err
24695 rm -f conftest.er1
24696 cat conftest.err >&5
24697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24698 (exit $ac_status); } >/dev/null && {
24699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24700 test ! -s conftest.err
24701 }; then
24702 ac_header_preproc=yes
24703else
24704 $as_echo "$as_me: failed program was:" >&5
24705sed 's/^/| /' conftest.$ac_ext >&5
24706
24707 ac_header_preproc=no
24708fi
24709
24710rm -f conftest.err conftest.$ac_ext
24711{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24712$as_echo "$ac_header_preproc" >&6; }
24713
24714# So? What about this header?
24715case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24716 yes:no: )
24717 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24718$as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24719 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24720$as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24721 ac_header_preproc=yes
24722 ;;
24723 no:yes:* )
24724 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24725$as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24726 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24727$as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24728 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24729$as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24730 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24731$as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24732 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24733$as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24734 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24735$as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24736
24737 ;;
24738esac
24739{ $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24740$as_echo_n "checking for netinet/in.h... " >&6; }
24741if test "${ac_cv_header_netinet_in_h+set}" = set; then
24742 $as_echo_n "(cached) " >&6
24743else
24744 ac_cv_header_netinet_in_h=$ac_header_preproc
24745fi
24746{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24747$as_echo "$ac_cv_header_netinet_in_h" >&6; }
24748
24749fi
24750if test $ac_cv_header_netinet_in_h = yes; then
24751 :
13033else 24752else
13034 ok_so_far=no 24753 ok_so_far=no
13035fi 24754fi
@@ -13037,9 +24756,135 @@ fi
13037 24756
13038fi 24757fi
13039if test $ok_so_far = yes; then 24758if test $ok_so_far = yes; then
13040 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 24759 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
13041if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : 24760 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24761$as_echo_n "checking for arpa/inet.h... " >&6; }
24762if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24763 $as_echo_n "(cached) " >&6
24764fi
24765{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24766$as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24767else
24768 # Is the header compilable?
24769{ $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24770$as_echo_n "checking arpa/inet.h usability... " >&6; }
24771cat >conftest.$ac_ext <<_ACEOF
24772/* confdefs.h. */
24773_ACEOF
24774cat confdefs.h >>conftest.$ac_ext
24775cat >>conftest.$ac_ext <<_ACEOF
24776/* end confdefs.h. */
24777$ac_includes_default
24778#include <arpa/inet.h>
24779_ACEOF
24780rm -f conftest.$ac_objext
24781if { (ac_try="$ac_compile"
24782case "(($ac_try" in
24783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24784 *) ac_try_echo=$ac_try;;
24785esac
24786eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24787$as_echo "$ac_try_echo") >&5
24788 (eval "$ac_compile") 2>conftest.er1
24789 ac_status=$?
24790 grep -v '^ *+' conftest.er1 >conftest.err
24791 rm -f conftest.er1
24792 cat conftest.err >&5
24793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); } && {
24795 test -z "$ac_c_werror_flag" ||
24796 test ! -s conftest.err
24797 } && test -s conftest.$ac_objext; then
24798 ac_header_compiler=yes
24799else
24800 $as_echo "$as_me: failed program was:" >&5
24801sed 's/^/| /' conftest.$ac_ext >&5
13042 24802
24803 ac_header_compiler=no
24804fi
24805
24806rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24807{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24808$as_echo "$ac_header_compiler" >&6; }
24809
24810# Is the header present?
24811{ $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24812$as_echo_n "checking arpa/inet.h presence... " >&6; }
24813cat >conftest.$ac_ext <<_ACEOF
24814/* confdefs.h. */
24815_ACEOF
24816cat confdefs.h >>conftest.$ac_ext
24817cat >>conftest.$ac_ext <<_ACEOF
24818/* end confdefs.h. */
24819#include <arpa/inet.h>
24820_ACEOF
24821if { (ac_try="$ac_cpp conftest.$ac_ext"
24822case "(($ac_try" in
24823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24824 *) ac_try_echo=$ac_try;;
24825esac
24826eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24827$as_echo "$ac_try_echo") >&5
24828 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24829 ac_status=$?
24830 grep -v '^ *+' conftest.er1 >conftest.err
24831 rm -f conftest.er1
24832 cat conftest.err >&5
24833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); } >/dev/null && {
24835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24836 test ! -s conftest.err
24837 }; then
24838 ac_header_preproc=yes
24839else
24840 $as_echo "$as_me: failed program was:" >&5
24841sed 's/^/| /' conftest.$ac_ext >&5
24842
24843 ac_header_preproc=no
24844fi
24845
24846rm -f conftest.err conftest.$ac_ext
24847{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24848$as_echo "$ac_header_preproc" >&6; }
24849
24850# So? What about this header?
24851case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24852 yes:no: )
24853 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24854$as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24855 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24856$as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24857 ac_header_preproc=yes
24858 ;;
24859 no:yes:* )
24860 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24861$as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24862 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24863$as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24864 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24865$as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24866 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24867$as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24868 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24869$as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24870 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24871$as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24872
24873 ;;
24874esac
24875{ $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24876$as_echo_n "checking for arpa/inet.h... " >&6; }
24877if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24878 $as_echo_n "(cached) " >&6
24879else
24880 ac_cv_header_arpa_inet_h=$ac_header_preproc
24881fi
24882{ $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24883$as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24884
24885fi
24886if test $ac_cv_header_arpa_inet_h = yes; then
24887 :
13043else 24888else
13044 ok_so_far=no 24889 ok_so_far=no
13045fi 24890fi
@@ -13048,16 +24893,151 @@ fi
13048fi 24893fi
13049if test $ok_so_far = yes; then 24894if test $ok_so_far = yes; then
13050 24895
13051$as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h 24896cat >>confdefs.h <<\_ACEOF
24897#define HAVE_INET_SOCKETS 1
24898_ACEOF
13052 24899
13053fi 24900fi
13054 24901
24902
13055for ac_header in sys/ioctl.h 24903for ac_header in sys/ioctl.h
13056do : 24904do
13057 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 24905as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13058if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : 24906if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24907 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24908$as_echo_n "checking for $ac_header... " >&6; }
24909if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24910 $as_echo_n "(cached) " >&6
24911fi
24912ac_res=`eval 'as_val=${'$as_ac_Header'}
24913 $as_echo "$as_val"'`
24914 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24915$as_echo "$ac_res" >&6; }
24916else
24917 # Is the header compilable?
24918{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24919$as_echo_n "checking $ac_header usability... " >&6; }
24920cat >conftest.$ac_ext <<_ACEOF
24921/* confdefs.h. */
24922_ACEOF
24923cat confdefs.h >>conftest.$ac_ext
24924cat >>conftest.$ac_ext <<_ACEOF
24925/* end confdefs.h. */
24926$ac_includes_default
24927#include <$ac_header>
24928_ACEOF
24929rm -f conftest.$ac_objext
24930if { (ac_try="$ac_compile"
24931case "(($ac_try" in
24932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24933 *) ac_try_echo=$ac_try;;
24934esac
24935eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24936$as_echo "$ac_try_echo") >&5
24937 (eval "$ac_compile") 2>conftest.er1
24938 ac_status=$?
24939 grep -v '^ *+' conftest.er1 >conftest.err
24940 rm -f conftest.er1
24941 cat conftest.err >&5
24942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24943 (exit $ac_status); } && {
24944 test -z "$ac_c_werror_flag" ||
24945 test ! -s conftest.err
24946 } && test -s conftest.$ac_objext; then
24947 ac_header_compiler=yes
24948else
24949 $as_echo "$as_me: failed program was:" >&5
24950sed 's/^/| /' conftest.$ac_ext >&5
24951
24952 ac_header_compiler=no
24953fi
24954
24955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24956{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24957$as_echo "$ac_header_compiler" >&6; }
24958
24959# Is the header present?
24960{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24961$as_echo_n "checking $ac_header presence... " >&6; }
24962cat >conftest.$ac_ext <<_ACEOF
24963/* confdefs.h. */
24964_ACEOF
24965cat confdefs.h >>conftest.$ac_ext
24966cat >>conftest.$ac_ext <<_ACEOF
24967/* end confdefs.h. */
24968#include <$ac_header>
24969_ACEOF
24970if { (ac_try="$ac_cpp conftest.$ac_ext"
24971case "(($ac_try" in
24972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24973 *) ac_try_echo=$ac_try;;
24974esac
24975eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24976$as_echo "$ac_try_echo") >&5
24977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24978 ac_status=$?
24979 grep -v '^ *+' conftest.er1 >conftest.err
24980 rm -f conftest.er1
24981 cat conftest.err >&5
24982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24983 (exit $ac_status); } >/dev/null && {
24984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24985 test ! -s conftest.err
24986 }; then
24987 ac_header_preproc=yes
24988else
24989 $as_echo "$as_me: failed program was:" >&5
24990sed 's/^/| /' conftest.$ac_ext >&5
24991
24992 ac_header_preproc=no
24993fi
24994
24995rm -f conftest.err conftest.$ac_ext
24996{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24997$as_echo "$ac_header_preproc" >&6; }
24998
24999# So? What about this header?
25000case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25001 yes:no: )
25002 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25003$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25004 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25005$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25006 ac_header_preproc=yes
25007 ;;
25008 no:yes:* )
25009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25010$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25012$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25014$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25016$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25017 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25018$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25019 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25020$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25021
25022 ;;
25023esac
25024{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25025$as_echo_n "checking for $ac_header... " >&6; }
25026if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25027 $as_echo_n "(cached) " >&6
25028else
25029 eval "$as_ac_Header=\$ac_header_preproc"
25030fi
25031ac_res=`eval 'as_val=${'$as_ac_Header'}
25032 $as_echo "$as_val"'`
25033 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25034$as_echo "$ac_res" >&6; }
25035
25036fi
25037if test `eval 'as_val=${'$as_ac_Header'}
25038 $as_echo "$as_val"'` = yes; then
13059 cat >>confdefs.h <<_ACEOF 25039 cat >>confdefs.h <<_ACEOF
13060#define HAVE_SYS_IOCTL_H 1 25040#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13061_ACEOF 25041_ACEOF
13062 25042
13063fi 25043fi
@@ -13067,26 +25047,123 @@ done
13067 25047
13068if test -f /usr/lpp/X11/bin/smt.exp; then 25048if test -f /usr/lpp/X11/bin/smt.exp; then
13069 25049
13070$as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h 25050cat >>confdefs.h <<\_ACEOF
25051#define HAVE_AIX_SMT_EXP 1
25052_ACEOF
13071 25053
13072fi 25054fi
13073 25055
13074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5 25056{ $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
13075$as_echo_n "checking whether system supports dynamic ptys... " >&6; } 25057$as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13076if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 25058if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25059 { $as_echo "$as_me:$LINENO: result: yes" >&5
13078$as_echo "yes" >&6; } 25060$as_echo "yes" >&6; }
13079 25061
13080$as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h 25062cat >>confdefs.h <<\_ACEOF
25063#define HAVE_DEV_PTMX 1
25064_ACEOF
13081 25065
13082else 25066else
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25067 { $as_echo "$as_me:$LINENO: result: no" >&5
13084$as_echo "no" >&6; } 25068$as_echo "no" >&6; }
13085fi 25069fi
13086 25070
13087ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 25071{ $as_echo "$as_me:$LINENO: checking for pid_t" >&5
13088if test "x$ac_cv_type_pid_t" = x""yes; then : 25072$as_echo_n "checking for pid_t... " >&6; }
25073if test "${ac_cv_type_pid_t+set}" = set; then
25074 $as_echo_n "(cached) " >&6
25075else
25076 ac_cv_type_pid_t=no
25077cat >conftest.$ac_ext <<_ACEOF
25078/* confdefs.h. */
25079_ACEOF
25080cat confdefs.h >>conftest.$ac_ext
25081cat >>conftest.$ac_ext <<_ACEOF
25082/* end confdefs.h. */
25083$ac_includes_default
25084int
25085main ()
25086{
25087if (sizeof (pid_t))
25088 return 0;
25089 ;
25090 return 0;
25091}
25092_ACEOF
25093rm -f conftest.$ac_objext
25094if { (ac_try="$ac_compile"
25095case "(($ac_try" in
25096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25097 *) ac_try_echo=$ac_try;;
25098esac
25099eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25100$as_echo "$ac_try_echo") >&5
25101 (eval "$ac_compile") 2>conftest.er1
25102 ac_status=$?
25103 grep -v '^ *+' conftest.er1 >conftest.err
25104 rm -f conftest.er1
25105 cat conftest.err >&5
25106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25107 (exit $ac_status); } && {
25108 test -z "$ac_c_werror_flag" ||
25109 test ! -s conftest.err
25110 } && test -s conftest.$ac_objext; then
25111 cat >conftest.$ac_ext <<_ACEOF
25112/* confdefs.h. */
25113_ACEOF
25114cat confdefs.h >>conftest.$ac_ext
25115cat >>conftest.$ac_ext <<_ACEOF
25116/* end confdefs.h. */
25117$ac_includes_default
25118int
25119main ()
25120{
25121if (sizeof ((pid_t)))
25122 return 0;
25123 ;
25124 return 0;
25125}
25126_ACEOF
25127rm -f conftest.$ac_objext
25128if { (ac_try="$ac_compile"
25129case "(($ac_try" in
25130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25131 *) ac_try_echo=$ac_try;;
25132esac
25133eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25134$as_echo "$ac_try_echo") >&5
25135 (eval "$ac_compile") 2>conftest.er1
25136 ac_status=$?
25137 grep -v '^ *+' conftest.er1 >conftest.err
25138 rm -f conftest.er1
25139 cat conftest.err >&5
25140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25141 (exit $ac_status); } && {
25142 test -z "$ac_c_werror_flag" ||
25143 test ! -s conftest.err
25144 } && test -s conftest.$ac_objext; then
25145 :
25146else
25147 $as_echo "$as_me: failed program was:" >&5
25148sed 's/^/| /' conftest.$ac_ext >&5
25149
25150 ac_cv_type_pid_t=yes
25151fi
25152
25153rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25154else
25155 $as_echo "$as_me: failed program was:" >&5
25156sed 's/^/| /' conftest.$ac_ext >&5
25157
25158
25159fi
13089 25160
25161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25162fi
25163{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25164$as_echo "$ac_cv_type_pid_t" >&6; }
25165if test $ac_cv_type_pid_t = yes; then
25166 :
13090else 25167else
13091 25168
13092cat >>confdefs.h <<_ACEOF 25169cat >>confdefs.h <<_ACEOF
@@ -13095,24 +25172,245 @@ _ACEOF
13095 25172
13096fi 25173fi
13097 25174
25175
13098for ac_header in vfork.h 25176for ac_header in vfork.h
13099do : 25177do
13100 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 25178as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13101if test "x$ac_cv_header_vfork_h" = x""yes; then : 25179if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25180 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25181$as_echo_n "checking for $ac_header... " >&6; }
25182if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25183 $as_echo_n "(cached) " >&6
25184fi
25185ac_res=`eval 'as_val=${'$as_ac_Header'}
25186 $as_echo "$as_val"'`
25187 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25188$as_echo "$ac_res" >&6; }
25189else
25190 # Is the header compilable?
25191{ $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25192$as_echo_n "checking $ac_header usability... " >&6; }
25193cat >conftest.$ac_ext <<_ACEOF
25194/* confdefs.h. */
25195_ACEOF
25196cat confdefs.h >>conftest.$ac_ext
25197cat >>conftest.$ac_ext <<_ACEOF
25198/* end confdefs.h. */
25199$ac_includes_default
25200#include <$ac_header>
25201_ACEOF
25202rm -f conftest.$ac_objext
25203if { (ac_try="$ac_compile"
25204case "(($ac_try" in
25205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25206 *) ac_try_echo=$ac_try;;
25207esac
25208eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25209$as_echo "$ac_try_echo") >&5
25210 (eval "$ac_compile") 2>conftest.er1
25211 ac_status=$?
25212 grep -v '^ *+' conftest.er1 >conftest.err
25213 rm -f conftest.er1
25214 cat conftest.err >&5
25215 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); } && {
25217 test -z "$ac_c_werror_flag" ||
25218 test ! -s conftest.err
25219 } && test -s conftest.$ac_objext; then
25220 ac_header_compiler=yes
25221else
25222 $as_echo "$as_me: failed program was:" >&5
25223sed 's/^/| /' conftest.$ac_ext >&5
25224
25225 ac_header_compiler=no
25226fi
25227
25228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25229{ $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25230$as_echo "$ac_header_compiler" >&6; }
25231
25232# Is the header present?
25233{ $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25234$as_echo_n "checking $ac_header presence... " >&6; }
25235cat >conftest.$ac_ext <<_ACEOF
25236/* confdefs.h. */
25237_ACEOF
25238cat confdefs.h >>conftest.$ac_ext
25239cat >>conftest.$ac_ext <<_ACEOF
25240/* end confdefs.h. */
25241#include <$ac_header>
25242_ACEOF
25243if { (ac_try="$ac_cpp conftest.$ac_ext"
25244case "(($ac_try" in
25245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25246 *) ac_try_echo=$ac_try;;
25247esac
25248eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25249$as_echo "$ac_try_echo") >&5
25250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25251 ac_status=$?
25252 grep -v '^ *+' conftest.er1 >conftest.err
25253 rm -f conftest.er1
25254 cat conftest.err >&5
25255 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25256 (exit $ac_status); } >/dev/null && {
25257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25258 test ! -s conftest.err
25259 }; then
25260 ac_header_preproc=yes
25261else
25262 $as_echo "$as_me: failed program was:" >&5
25263sed 's/^/| /' conftest.$ac_ext >&5
25264
25265 ac_header_preproc=no
25266fi
25267
25268rm -f conftest.err conftest.$ac_ext
25269{ $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25270$as_echo "$ac_header_preproc" >&6; }
25271
25272# So? What about this header?
25273case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25274 yes:no: )
25275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25276$as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25278$as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25279 ac_header_preproc=yes
25280 ;;
25281 no:yes:* )
25282 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25283$as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25284 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25285$as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25287$as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25289$as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25290 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25291$as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25292 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25293$as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25294
25295 ;;
25296esac
25297{ $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25298$as_echo_n "checking for $ac_header... " >&6; }
25299if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25300 $as_echo_n "(cached) " >&6
25301else
25302 eval "$as_ac_Header=\$ac_header_preproc"
25303fi
25304ac_res=`eval 'as_val=${'$as_ac_Header'}
25305 $as_echo "$as_val"'`
25306 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25307$as_echo "$ac_res" >&6; }
25308
25309fi
25310if test `eval 'as_val=${'$as_ac_Header'}
25311 $as_echo "$as_val"'` = yes; then
13102 cat >>confdefs.h <<_ACEOF 25312 cat >>confdefs.h <<_ACEOF
13103#define HAVE_VFORK_H 1 25313#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13104_ACEOF 25314_ACEOF
13105 25315
13106fi 25316fi
13107 25317
13108done 25318done
13109 25319
25320
25321
13110for ac_func in fork vfork 25322for ac_func in fork vfork
13111do : 25323do
13112 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 25324as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13113ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 25325{ $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
13114eval as_val=\$$as_ac_var 25326$as_echo_n "checking for $ac_func... " >&6; }
13115 if test "x$as_val" = x""yes; then : 25327if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25328 $as_echo_n "(cached) " >&6
25329else
25330 cat >conftest.$ac_ext <<_ACEOF
25331/* confdefs.h. */
25332_ACEOF
25333cat confdefs.h >>conftest.$ac_ext
25334cat >>conftest.$ac_ext <<_ACEOF
25335/* end confdefs.h. */
25336/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25338#define $ac_func innocuous_$ac_func
25339
25340/* System header to define __stub macros and hopefully few prototypes,
25341 which can conflict with char $ac_func (); below.
25342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25343 <limits.h> exists even on freestanding compilers. */
25344
25345#ifdef __STDC__
25346# include <limits.h>
25347#else
25348# include <assert.h>
25349#endif
25350
25351#undef $ac_func
25352
25353/* Override any GCC internal prototype to avoid an error.
25354 Use char because int might match the return type of a GCC
25355 builtin and then its argument prototype would still apply. */
25356#ifdef __cplusplus
25357extern "C"
25358#endif
25359char $ac_func ();
25360/* The GNU C library defines this for functions which it implements
25361 to always fail with ENOSYS. Some functions are actually named
25362 something starting with __ and the normal name is an alias. */
25363#if defined __stub_$ac_func || defined __stub___$ac_func
25364choke me
25365#endif
25366
25367int
25368main ()
25369{
25370return $ac_func ();
25371 ;
25372 return 0;
25373}
25374_ACEOF
25375rm -f conftest.$ac_objext conftest$ac_exeext
25376if { (ac_try="$ac_link"
25377case "(($ac_try" in
25378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25379 *) ac_try_echo=$ac_try;;
25380esac
25381eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25382$as_echo "$ac_try_echo") >&5
25383 (eval "$ac_link") 2>conftest.er1
25384 ac_status=$?
25385 grep -v '^ *+' conftest.er1 >conftest.err
25386 rm -f conftest.er1
25387 cat conftest.err >&5
25388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); } && {
25390 test -z "$ac_c_werror_flag" ||
25391 test ! -s conftest.err
25392 } && test -s conftest$ac_exeext && {
25393 test "$cross_compiling" = yes ||
25394 $as_test_x conftest$ac_exeext
25395 }; then
25396 eval "$as_ac_var=yes"
25397else
25398 $as_echo "$as_me: failed program was:" >&5
25399sed 's/^/| /' conftest.$ac_ext >&5
25400
25401 eval "$as_ac_var=no"
25402fi
25403
25404rm -rf conftest.dSYM
25405rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25406 conftest$ac_exeext conftest.$ac_ext
25407fi
25408ac_res=`eval 'as_val=${'$as_ac_var'}
25409 $as_echo "$as_val"'`
25410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25411$as_echo "$ac_res" >&6; }
25412if test `eval 'as_val=${'$as_ac_var'}
25413 $as_echo "$as_val"'` = yes; then
13116 cat >>confdefs.h <<_ACEOF 25414 cat >>confdefs.h <<_ACEOF
13117#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 25415#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13118_ACEOF 25416_ACEOF
@@ -13121,15 +25419,19 @@ fi
13121done 25419done
13122 25420
13123if test "x$ac_cv_func_fork" = xyes; then 25421if test "x$ac_cv_func_fork" = xyes; then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 25422 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
13125$as_echo_n "checking for working fork... " >&6; } 25423$as_echo_n "checking for working fork... " >&6; }
13126if test "${ac_cv_func_fork_works+set}" = set; then : 25424if test "${ac_cv_func_fork_works+set}" = set; then
13127 $as_echo_n "(cached) " >&6 25425 $as_echo_n "(cached) " >&6
13128else 25426else
13129 if test "$cross_compiling" = yes; then : 25427 if test "$cross_compiling" = yes; then
13130 ac_cv_func_fork_works=cross 25428 ac_cv_func_fork_works=cross
13131else 25429else
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25430 cat >conftest.$ac_ext <<_ACEOF
25431/* confdefs.h. */
25432_ACEOF
25433cat confdefs.h >>conftest.$ac_ext
25434cat >>conftest.$ac_ext <<_ACEOF
13133/* end confdefs.h. */ 25435/* end confdefs.h. */
13134$ac_includes_default 25436$ac_includes_default
13135int 25437int
@@ -13143,17 +25445,44 @@ main ()
13143 return 0; 25445 return 0;
13144} 25446}
13145_ACEOF 25447_ACEOF
13146if ac_fn_c_try_run "$LINENO"; then : 25448rm -f conftest$ac_exeext
25449if { (ac_try="$ac_link"
25450case "(($ac_try" in
25451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25452 *) ac_try_echo=$ac_try;;
25453esac
25454eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25455$as_echo "$ac_try_echo") >&5
25456 (eval "$ac_link") 2>&5
25457 ac_status=$?
25458 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25459 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25460 { (case "(($ac_try" in
25461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25462 *) ac_try_echo=$ac_try;;
25463esac
25464eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25465$as_echo "$ac_try_echo") >&5
25466 (eval "$ac_try") 2>&5
25467 ac_status=$?
25468 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25469 (exit $ac_status); }; }; then
13147 ac_cv_func_fork_works=yes 25470 ac_cv_func_fork_works=yes
13148else 25471else
13149 ac_cv_func_fork_works=no 25472 $as_echo "$as_me: program exited with status $ac_status" >&5
25473$as_echo "$as_me: failed program was:" >&5
25474sed 's/^/| /' conftest.$ac_ext >&5
25475
25476( exit $ac_status )
25477ac_cv_func_fork_works=no
13150fi 25478fi
13151rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25479rm -rf conftest.dSYM
13152 conftest.$ac_objext conftest.beam conftest.$ac_ext 25480rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13153fi 25481fi
13154 25482
25483
13155fi 25484fi
13156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 25485{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
13157$as_echo "$ac_cv_func_fork_works" >&6; } 25486$as_echo "$ac_cv_func_fork_works" >&6; }
13158 25487
13159else 25488else
@@ -13169,20 +25498,24 @@ if test "x$ac_cv_func_fork_works" = xcross; then
13169 ac_cv_func_fork_works=yes 25498 ac_cv_func_fork_works=yes
13170 ;; 25499 ;;
13171 esac 25500 esac
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 25501 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13173$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 25502$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13174fi 25503fi
13175ac_cv_func_vfork_works=$ac_cv_func_vfork 25504ac_cv_func_vfork_works=$ac_cv_func_vfork
13176if test "x$ac_cv_func_vfork" = xyes; then 25505if test "x$ac_cv_func_vfork" = xyes; then
13177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 25506 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
13178$as_echo_n "checking for working vfork... " >&6; } 25507$as_echo_n "checking for working vfork... " >&6; }
13179if test "${ac_cv_func_vfork_works+set}" = set; then : 25508if test "${ac_cv_func_vfork_works+set}" = set; then
13180 $as_echo_n "(cached) " >&6 25509 $as_echo_n "(cached) " >&6
13181else 25510else
13182 if test "$cross_compiling" = yes; then : 25511 if test "$cross_compiling" = yes; then
13183 ac_cv_func_vfork_works=cross 25512 ac_cv_func_vfork_works=cross
13184else 25513else
13185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25514 cat >conftest.$ac_ext <<_ACEOF
25515/* confdefs.h. */
25516_ACEOF
25517cat confdefs.h >>conftest.$ac_ext
25518cat >>conftest.$ac_ext <<_ACEOF
13186/* end confdefs.h. */ 25519/* end confdefs.h. */
13187/* Thanks to Paul Eggert for this test. */ 25520/* Thanks to Paul Eggert for this test. */
13188$ac_includes_default 25521$ac_includes_default
@@ -13274,48 +25607,85 @@ main ()
13274 } 25607 }
13275} 25608}
13276_ACEOF 25609_ACEOF
13277if ac_fn_c_try_run "$LINENO"; then : 25610rm -f conftest$ac_exeext
25611if { (ac_try="$ac_link"
25612case "(($ac_try" in
25613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25614 *) ac_try_echo=$ac_try;;
25615esac
25616eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25617$as_echo "$ac_try_echo") >&5
25618 (eval "$ac_link") 2>&5
25619 ac_status=$?
25620 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25621 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25622 { (case "(($ac_try" in
25623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25624 *) ac_try_echo=$ac_try;;
25625esac
25626eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25627$as_echo "$ac_try_echo") >&5
25628 (eval "$ac_try") 2>&5
25629 ac_status=$?
25630 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25631 (exit $ac_status); }; }; then
13278 ac_cv_func_vfork_works=yes 25632 ac_cv_func_vfork_works=yes
13279else 25633else
13280 ac_cv_func_vfork_works=no 25634 $as_echo "$as_me: program exited with status $ac_status" >&5
25635$as_echo "$as_me: failed program was:" >&5
25636sed 's/^/| /' conftest.$ac_ext >&5
25637
25638( exit $ac_status )
25639ac_cv_func_vfork_works=no
13281fi 25640fi
13282rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25641rm -rf conftest.dSYM
13283 conftest.$ac_objext conftest.beam conftest.$ac_ext 25642rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
13284fi 25643fi
13285 25644
25645
13286fi 25646fi
13287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 25647{ $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
13288$as_echo "$ac_cv_func_vfork_works" >&6; } 25648$as_echo "$ac_cv_func_vfork_works" >&6; }
13289 25649
13290fi; 25650fi;
13291if test "x$ac_cv_func_fork_works" = xcross; then 25651if test "x$ac_cv_func_fork_works" = xcross; then
13292 ac_cv_func_vfork_works=$ac_cv_func_vfork 25652 ac_cv_func_vfork_works=$ac_cv_func_vfork
13293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 25653 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13294$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 25654$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13295fi 25655fi
13296 25656
13297if test "x$ac_cv_func_vfork_works" = xyes; then 25657if test "x$ac_cv_func_vfork_works" = xyes; then
13298 25658
13299$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 25659cat >>confdefs.h <<\_ACEOF
25660#define HAVE_WORKING_VFORK 1
25661_ACEOF
13300 25662
13301else 25663else
13302 25664
13303$as_echo "#define vfork fork" >>confdefs.h 25665cat >>confdefs.h <<\_ACEOF
25666#define vfork fork
25667_ACEOF
13304 25668
13305fi 25669fi
13306if test "x$ac_cv_func_fork_works" = xyes; then 25670if test "x$ac_cv_func_fork_works" = xyes; then
13307 25671
13308$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 25672cat >>confdefs.h <<\_ACEOF
25673#define HAVE_WORKING_FORK 1
25674_ACEOF
13309 25675
13310fi 25676fi
13311 25677
13312 25678
13313{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 25679{ $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13314$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 25680$as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13315if test "${emacs_cv_langinfo_codeset+set}" = set; then : 25681if test "${emacs_cv_langinfo_codeset+set}" = set; then
13316 $as_echo_n "(cached) " >&6 25682 $as_echo_n "(cached) " >&6
13317else 25683else
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25684 cat >conftest.$ac_ext <<_ACEOF
25685/* confdefs.h. */
25686_ACEOF
25687cat confdefs.h >>conftest.$ac_ext
25688cat >>conftest.$ac_ext <<_ACEOF
13319/* end confdefs.h. */ 25689/* end confdefs.h. */
13320#include <langinfo.h> 25690#include <langinfo.h>
13321int 25691int
@@ -13326,25 +25696,145 @@ char* cs = nl_langinfo(CODESET);
13326 return 0; 25696 return 0;
13327} 25697}
13328_ACEOF 25698_ACEOF
13329if ac_fn_c_try_link "$LINENO"; then : 25699rm -f conftest.$ac_objext conftest$ac_exeext
25700if { (ac_try="$ac_link"
25701case "(($ac_try" in
25702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25703 *) ac_try_echo=$ac_try;;
25704esac
25705eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25706$as_echo "$ac_try_echo") >&5
25707 (eval "$ac_link") 2>conftest.er1
25708 ac_status=$?
25709 grep -v '^ *+' conftest.er1 >conftest.err
25710 rm -f conftest.er1
25711 cat conftest.err >&5
25712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); } && {
25714 test -z "$ac_c_werror_flag" ||
25715 test ! -s conftest.err
25716 } && test -s conftest$ac_exeext && {
25717 test "$cross_compiling" = yes ||
25718 $as_test_x conftest$ac_exeext
25719 }; then
13330 emacs_cv_langinfo_codeset=yes 25720 emacs_cv_langinfo_codeset=yes
13331else 25721else
13332 emacs_cv_langinfo_codeset=no 25722 $as_echo "$as_me: failed program was:" >&5
25723sed 's/^/| /' conftest.$ac_ext >&5
25724
25725 emacs_cv_langinfo_codeset=no
13333fi 25726fi
13334rm -f core conftest.err conftest.$ac_objext \ 25727
13335 conftest$ac_exeext conftest.$ac_ext 25728rm -rf conftest.dSYM
25729rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25730 conftest$ac_exeext conftest.$ac_ext
13336 25731
13337fi 25732fi
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5 25733{ $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
13339$as_echo "$emacs_cv_langinfo_codeset" >&6; } 25734$as_echo "$emacs_cv_langinfo_codeset" >&6; }
13340if test $emacs_cv_langinfo_codeset = yes; then 25735if test $emacs_cv_langinfo_codeset = yes; then
13341 25736
13342$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 25737cat >>confdefs.h <<\_ACEOF
25738#define HAVE_LANGINFO_CODESET 1
25739_ACEOF
13343 25740
13344fi 25741fi
13345 25742
13346ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 25743{ $as_echo "$as_me:$LINENO: checking for size_t" >&5
13347if test "x$ac_cv_type_size_t" = x""yes; then : 25744$as_echo_n "checking for size_t... " >&6; }
25745if test "${ac_cv_type_size_t+set}" = set; then
25746 $as_echo_n "(cached) " >&6
25747else
25748 ac_cv_type_size_t=no
25749cat >conftest.$ac_ext <<_ACEOF
25750/* confdefs.h. */
25751_ACEOF
25752cat confdefs.h >>conftest.$ac_ext
25753cat >>conftest.$ac_ext <<_ACEOF
25754/* end confdefs.h. */
25755$ac_includes_default
25756int
25757main ()
25758{
25759if (sizeof (size_t))
25760 return 0;
25761 ;
25762 return 0;
25763}
25764_ACEOF
25765rm -f conftest.$ac_objext
25766if { (ac_try="$ac_compile"
25767case "(($ac_try" in
25768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25769 *) ac_try_echo=$ac_try;;
25770esac
25771eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25772$as_echo "$ac_try_echo") >&5
25773 (eval "$ac_compile") 2>conftest.er1
25774 ac_status=$?
25775 grep -v '^ *+' conftest.er1 >conftest.err
25776 rm -f conftest.er1
25777 cat conftest.err >&5
25778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25779 (exit $ac_status); } && {
25780 test -z "$ac_c_werror_flag" ||
25781 test ! -s conftest.err
25782 } && test -s conftest.$ac_objext; then
25783 cat >conftest.$ac_ext <<_ACEOF
25784/* confdefs.h. */
25785_ACEOF
25786cat confdefs.h >>conftest.$ac_ext
25787cat >>conftest.$ac_ext <<_ACEOF
25788/* end confdefs.h. */
25789$ac_includes_default
25790int
25791main ()
25792{
25793if (sizeof ((size_t)))
25794 return 0;
25795 ;
25796 return 0;
25797}
25798_ACEOF
25799rm -f conftest.$ac_objext
25800if { (ac_try="$ac_compile"
25801case "(($ac_try" in
25802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25803 *) ac_try_echo=$ac_try;;
25804esac
25805eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25806$as_echo "$ac_try_echo") >&5
25807 (eval "$ac_compile") 2>conftest.er1
25808 ac_status=$?
25809 grep -v '^ *+' conftest.er1 >conftest.err
25810 rm -f conftest.er1
25811 cat conftest.err >&5
25812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25813 (exit $ac_status); } && {
25814 test -z "$ac_c_werror_flag" ||
25815 test ! -s conftest.err
25816 } && test -s conftest.$ac_objext; then
25817 :
25818else
25819 $as_echo "$as_me: failed program was:" >&5
25820sed 's/^/| /' conftest.$ac_ext >&5
25821
25822 ac_cv_type_size_t=yes
25823fi
25824
25825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25826else
25827 $as_echo "$as_me: failed program was:" >&5
25828sed 's/^/| /' conftest.$ac_ext >&5
25829
25830
25831fi
25832
25833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25834fi
25835{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25836$as_echo "$ac_cv_type_size_t" >&6; }
25837if test $ac_cv_type_size_t = yes; then
13348 25838
13349cat >>confdefs.h <<_ACEOF 25839cat >>confdefs.h <<_ACEOF
13350#define HAVE_SIZE_T 1 25840#define HAVE_SIZE_T 1
@@ -13354,12 +25844,16 @@ _ACEOF
13354fi 25844fi
13355 25845
13356 25846
13357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 25847{ $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
13358$as_echo_n "checking for mbstate_t... " >&6; } 25848$as_echo_n "checking for mbstate_t... " >&6; }
13359if test "${ac_cv_type_mbstate_t+set}" = set; then : 25849if test "${ac_cv_type_mbstate_t+set}" = set; then
13360 $as_echo_n "(cached) " >&6 25850 $as_echo_n "(cached) " >&6
13361else 25851else
13362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25852 cat >conftest.$ac_ext <<_ACEOF
25853/* confdefs.h. */
25854_ACEOF
25855cat confdefs.h >>conftest.$ac_ext
25856cat >>conftest.$ac_ext <<_ACEOF
13363/* end confdefs.h. */ 25857/* end confdefs.h. */
13364$ac_includes_default 25858$ac_includes_default
13365# include <wchar.h> 25859# include <wchar.h>
@@ -13371,31 +25865,60 @@ mbstate_t x; return sizeof x;
13371 return 0; 25865 return 0;
13372} 25866}
13373_ACEOF 25867_ACEOF
13374if ac_fn_c_try_compile "$LINENO"; then : 25868rm -f conftest.$ac_objext
25869if { (ac_try="$ac_compile"
25870case "(($ac_try" in
25871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25872 *) ac_try_echo=$ac_try;;
25873esac
25874eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25875$as_echo "$ac_try_echo") >&5
25876 (eval "$ac_compile") 2>conftest.er1
25877 ac_status=$?
25878 grep -v '^ *+' conftest.er1 >conftest.err
25879 rm -f conftest.er1
25880 cat conftest.err >&5
25881 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25882 (exit $ac_status); } && {
25883 test -z "$ac_c_werror_flag" ||
25884 test ! -s conftest.err
25885 } && test -s conftest.$ac_objext; then
13375 ac_cv_type_mbstate_t=yes 25886 ac_cv_type_mbstate_t=yes
13376else 25887else
13377 ac_cv_type_mbstate_t=no 25888 $as_echo "$as_me: failed program was:" >&5
25889sed 's/^/| /' conftest.$ac_ext >&5
25890
25891 ac_cv_type_mbstate_t=no
13378fi 25892fi
25893
13379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25894rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13380fi 25895fi
13381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 25896{ $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
13382$as_echo "$ac_cv_type_mbstate_t" >&6; } 25897$as_echo "$ac_cv_type_mbstate_t" >&6; }
13383 if test $ac_cv_type_mbstate_t = yes; then 25898 if test $ac_cv_type_mbstate_t = yes; then
13384 25899
13385$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 25900cat >>confdefs.h <<\_ACEOF
25901#define HAVE_MBSTATE_T 1
25902_ACEOF
13386 25903
13387 else 25904 else
13388 25905
13389$as_echo "#define mbstate_t int" >>confdefs.h 25906cat >>confdefs.h <<\_ACEOF
25907#define mbstate_t int
25908_ACEOF
13390 25909
13391 fi 25910 fi
13392 25911
13393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5 25912{ $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
13394$as_echo_n "checking for C restrict keyword... " >&6; } 25913$as_echo_n "checking for C restrict keyword... " >&6; }
13395if test "${emacs_cv_c_restrict+set}" = set; then : 25914if test "${emacs_cv_c_restrict+set}" = set; then
13396 $as_echo_n "(cached) " >&6 25915 $as_echo_n "(cached) " >&6
13397else 25916else
13398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25917 cat >conftest.$ac_ext <<_ACEOF
25918/* confdefs.h. */
25919_ACEOF
25920cat confdefs.h >>conftest.$ac_ext
25921cat >>conftest.$ac_ext <<_ACEOF
13399/* end confdefs.h. */ 25922/* end confdefs.h. */
13400void fred (int *restrict x); 25923void fred (int *restrict x);
13401int 25924int
@@ -13406,10 +25929,34 @@ main ()
13406 return 0; 25929 return 0;
13407} 25930}
13408_ACEOF 25931_ACEOF
13409if ac_fn_c_try_compile "$LINENO"; then : 25932rm -f conftest.$ac_objext
25933if { (ac_try="$ac_compile"
25934case "(($ac_try" in
25935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25936 *) ac_try_echo=$ac_try;;
25937esac
25938eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25939$as_echo "$ac_try_echo") >&5
25940 (eval "$ac_compile") 2>conftest.er1
25941 ac_status=$?
25942 grep -v '^ *+' conftest.er1 >conftest.err
25943 rm -f conftest.er1
25944 cat conftest.err >&5
25945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25946 (exit $ac_status); } && {
25947 test -z "$ac_c_werror_flag" ||
25948 test ! -s conftest.err
25949 } && test -s conftest.$ac_objext; then
13410 emacs_cv_c_restrict=yes 25950 emacs_cv_c_restrict=yes
13411else 25951else
13412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25952 $as_echo "$as_me: failed program was:" >&5
25953sed 's/^/| /' conftest.$ac_ext >&5
25954
25955 cat >conftest.$ac_ext <<_ACEOF
25956/* confdefs.h. */
25957_ACEOF
25958cat confdefs.h >>conftest.$ac_ext
25959cat >>conftest.$ac_ext <<_ACEOF
13413/* end confdefs.h. */ 25960/* end confdefs.h. */
13414void fred (int *__restrict x); 25961void fred (int *__restrict x);
13415int 25962int
@@ -13420,16 +25967,38 @@ main ()
13420 return 0; 25967 return 0;
13421} 25968}
13422_ACEOF 25969_ACEOF
13423if ac_fn_c_try_compile "$LINENO"; then : 25970rm -f conftest.$ac_objext
25971if { (ac_try="$ac_compile"
25972case "(($ac_try" in
25973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25974 *) ac_try_echo=$ac_try;;
25975esac
25976eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25977$as_echo "$ac_try_echo") >&5
25978 (eval "$ac_compile") 2>conftest.er1
25979 ac_status=$?
25980 grep -v '^ *+' conftest.er1 >conftest.err
25981 rm -f conftest.er1
25982 cat conftest.err >&5
25983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25984 (exit $ac_status); } && {
25985 test -z "$ac_c_werror_flag" ||
25986 test ! -s conftest.err
25987 } && test -s conftest.$ac_objext; then
13424 emacs_cv_c_restrict=__restrict 25988 emacs_cv_c_restrict=__restrict
13425else 25989else
13426 emacs_cv_c_restrict=no 25990 $as_echo "$as_me: failed program was:" >&5
25991sed 's/^/| /' conftest.$ac_ext >&5
25992
25993 emacs_cv_c_restrict=no
13427fi 25994fi
25995
13428rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13429fi 25997fi
25998
13430rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13431fi 26000fi
13432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5 26001{ $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
13433$as_echo "$emacs_cv_c_restrict" >&6; } 26002$as_echo "$emacs_cv_c_restrict" >&6; }
13434case "$emacs_cv_c_restrict" in 26003case "$emacs_cv_c_restrict" in
13435 yes) emacs_restrict=restrict;; 26004 yes) emacs_restrict=restrict;;
@@ -13444,12 +26013,16 @@ _ACEOF
13444 26013
13445fi 26014fi
13446 26015
13447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5 26016{ $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
13448$as_echo_n "checking for C restricted array declarations... " >&6; } 26017$as_echo_n "checking for C restricted array declarations... " >&6; }
13449if test "${emacs_cv_c_restrict_arr+set}" = set; then : 26018if test "${emacs_cv_c_restrict_arr+set}" = set; then
13450 $as_echo_n "(cached) " >&6 26019 $as_echo_n "(cached) " >&6
13451else 26020else
13452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26021 cat >conftest.$ac_ext <<_ACEOF
26022/* confdefs.h. */
26023_ACEOF
26024cat confdefs.h >>conftest.$ac_ext
26025cat >>conftest.$ac_ext <<_ACEOF
13453/* end confdefs.h. */ 26026/* end confdefs.h. */
13454void fred (int x[__restrict]); 26027void fred (int x[__restrict]);
13455int 26028int
@@ -13460,18 +26033,41 @@ main ()
13460 return 0; 26033 return 0;
13461} 26034}
13462_ACEOF 26035_ACEOF
13463if ac_fn_c_try_compile "$LINENO"; then : 26036rm -f conftest.$ac_objext
26037if { (ac_try="$ac_compile"
26038case "(($ac_try" in
26039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26040 *) ac_try_echo=$ac_try;;
26041esac
26042eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26043$as_echo "$ac_try_echo") >&5
26044 (eval "$ac_compile") 2>conftest.er1
26045 ac_status=$?
26046 grep -v '^ *+' conftest.er1 >conftest.err
26047 rm -f conftest.er1
26048 cat conftest.err >&5
26049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); } && {
26051 test -z "$ac_c_werror_flag" ||
26052 test ! -s conftest.err
26053 } && test -s conftest.$ac_objext; then
13464 emacs_cv_c_restrict_arr=yes 26054 emacs_cv_c_restrict_arr=yes
13465else 26055else
13466 emacs_cv_c_restrict_arr=no 26056 $as_echo "$as_me: failed program was:" >&5
26057sed 's/^/| /' conftest.$ac_ext >&5
26058
26059 emacs_cv_c_restrict_arr=no
13467fi 26060fi
26061
13468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26062rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13469fi 26063fi
13470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5 26064{ $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
13471$as_echo "$emacs_cv_c_restrict_arr" >&6; } 26065$as_echo "$emacs_cv_c_restrict_arr" >&6; }
13472if test "$emacs_cv_c_restrict_arr" = yes; then 26066if test "$emacs_cv_c_restrict_arr" = yes; then
13473 26067
13474$as_echo "#define __restrict_arr __restrict" >>confdefs.h 26068cat >>confdefs.h <<\_ACEOF
26069#define __restrict_arr __restrict
26070_ACEOF
13475 26071
13476fi 26072fi
13477 26073
@@ -13485,10 +26081,12 @@ CPPFLAGS="$REAL_CPPFLAGS"
13485version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ 26081version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13486 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 26082 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13487if test x"${version}" = x; then 26083if test x"${version}" = x; then
13488 as_fn_error "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5 26084 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
26085$as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
26086 { (exit 1); exit 1; }; }
13489fi 26087fi
13490if test x"${version}" != x"$PACKAGE_VERSION"; then 26088if test x"${version}" != x"$PACKAGE_VERSION"; then
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5 26089 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13492$as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;} 26090$as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13493fi 26091fi
13494 26092
@@ -13572,7 +26170,9 @@ XMENU_OBJ=
13572XOBJ= 26170XOBJ=
13573if test "${HAVE_X_WINDOWS}" = "yes" ; then 26171if test "${HAVE_X_WINDOWS}" = "yes" ; then
13574 26172
13575$as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h 26173cat >>confdefs.h <<\_ACEOF
26174#define HAVE_X_WINDOWS 1
26175_ACEOF
13576 26176
13577 XMENU_OBJ=xmenu.o 26177 XMENU_OBJ=xmenu.o
13578 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o" 26178 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
@@ -13585,15 +26185,21 @@ MOTIF_LIBW=
13585if test "${USE_X_TOOLKIT}" != "none" ; then 26185if test "${USE_X_TOOLKIT}" != "none" ; then
13586 WIDGET_OBJ=widget.o 26186 WIDGET_OBJ=widget.o
13587 26187
13588$as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h 26188cat >>confdefs.h <<\_ACEOF
26189#define USE_X_TOOLKIT 1
26190_ACEOF
13589 26191
13590 if test "${USE_X_TOOLKIT}" = "LUCID"; then 26192 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13591 26193
13592$as_echo "#define USE_LUCID 1" >>confdefs.h 26194cat >>confdefs.h <<\_ACEOF
26195#define USE_LUCID 1
26196_ACEOF
13593 26197
13594 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then 26198 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13595 26199
13596$as_echo "#define USE_MOTIF 1" >>confdefs.h 26200cat >>confdefs.h <<\_ACEOF
26201#define USE_MOTIF 1
26202_ACEOF
13597 26203
13598 MOTIF_LIBW=-lXm 26204 MOTIF_LIBW=-lXm
13599 case "$opsys" in 26205 case "$opsys" in
@@ -13638,7 +26244,9 @@ fi
13638## otherwise, use our own copy. 26244## otherwise, use our own copy.
13639if test "${HAVE_X11}" = "yes" ; then 26245if test "${HAVE_X11}" = "yes" ; then
13640 26246
13641$as_echo "#define HAVE_X11 1" >>confdefs.h 26247cat >>confdefs.h <<\_ACEOF
26248#define HAVE_X11 1
26249_ACEOF
13642 26250
13643 26251
13644 if test "$USE_X_TOOLKIT" = "none"; then 26252 if test "$USE_X_TOOLKIT" = "none"; then
@@ -13665,17 +26273,23 @@ fi
13665 26273
13666if test "${HAVE_MENUS}" = "yes" ; then 26274if test "${HAVE_MENUS}" = "yes" ; then
13667 26275
13668$as_echo "#define HAVE_MENUS 1" >>confdefs.h 26276cat >>confdefs.h <<\_ACEOF
26277#define HAVE_MENUS 1
26278_ACEOF
13669 26279
13670fi 26280fi
13671if test "${GNU_MALLOC}" = "yes" ; then 26281if test "${GNU_MALLOC}" = "yes" ; then
13672 26282
13673$as_echo "#define GNU_MALLOC 1" >>confdefs.h 26283cat >>confdefs.h <<\_ACEOF
26284#define GNU_MALLOC 1
26285_ACEOF
13674 26286
13675fi 26287fi
13676if test "${REL_ALLOC}" = "yes" ; then 26288if test "${REL_ALLOC}" = "yes" ; then
13677 26289
13678$as_echo "#define REL_ALLOC 1" >>confdefs.h 26290cat >>confdefs.h <<\_ACEOF
26291#define REL_ALLOC 1
26292_ACEOF
13679 26293
13680fi 26294fi
13681 26295
@@ -13718,6 +26332,25 @@ esac
13718 26332
13719 26333
13720 26334
26335## This exists because src/Makefile.in did some extra fiddling around
26336## with LD_SWITCH_SYSTEM. The cpp logic was:
26337## #ifndef LD_SWITCH_SYSTEM
26338## #if !defined (__GNUC__) && ((defined (BSD_SYSTEM) && !defined (COFF)))
26339## Since all the *bsds define LD_SWITCH_SYSTEM, this simplifies to:
26340## not using gcc, darwin system not on an alpha (ie darwin, since
26341## darwin + alpha does not occur).
26342## Note that unlike L_S_S, this is not used in ac_link.
26343if test "x$LD_SWITCH_SYSTEM" = "x" && test "x$GCC" != "xyes" && \
26344 test "$opsys" = "darwin"; then
26345 LD_SWITCH_SYSTEM_EXTRA="-X"
26346else
26347 LD_SWITCH_SYSTEM_EXTRA=
26348fi
26349
26350
26351
26352
26353
13721 26354
13722 26355
13723#### Report on what we decided to do. 26356#### Report on what we decided to do.
@@ -13821,12 +26454,16 @@ cpp_undefs="`echo $srcdir $configuration $canonical unix |
13821## from Makefile.c can correctly provide the arg `-traditional' to the 26454## from Makefile.c can correctly provide the arg `-traditional' to the
13822## C preprocessor. 26455## C preprocessor.
13823 26456
13824cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26457cat >conftest.$ac_ext <<_ACEOF
26458/* confdefs.h. */
26459_ACEOF
26460cat confdefs.h >>conftest.$ac_ext
26461cat >>conftest.$ac_ext <<_ACEOF
13825/* end confdefs.h. */ 26462/* end confdefs.h. */
13826yes..yes 26463yes..yes
13827_ACEOF 26464_ACEOF
13828if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26465if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13829 $EGREP "yes..yes" >/dev/null 2>&1; then : 26466 $EGREP "yes..yes" >/dev/null 2>&1; then
13830 CPP_NEED_TRADITIONAL=no 26467 CPP_NEED_TRADITIONAL=no
13831else 26468else
13832 CPP_NEED_TRADITIONAL=yes 26469 CPP_NEED_TRADITIONAL=yes
@@ -13865,13 +26502,13 @@ _ACEOF
13865 case $ac_val in #( 26502 case $ac_val in #(
13866 *${as_nl}*) 26503 *${as_nl}*)
13867 case $ac_var in #( 26504 case $ac_var in #(
13868 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 26505 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13869$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 26506$as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13870 esac 26507 esac
13871 case $ac_var in #( 26508 case $ac_var in #(
13872 _ | IFS | as_nl) ;; #( 26509 _ | IFS | as_nl) ;; #(
13873 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 26510 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13874 *) { eval $ac_var=; unset $ac_var;} ;; 26511 *) $as_unset $ac_var ;;
13875 esac ;; 26512 esac ;;
13876 esac 26513 esac
13877 done 26514 done
@@ -13879,8 +26516,8 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13879 (set) 2>&1 | 26516 (set) 2>&1 |
13880 case $as_nl`(ac_space=' '; set) 2>&1` in #( 26517 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13881 *${as_nl}ac_space=\ *) 26518 *${as_nl}ac_space=\ *)
13882 # `set' does not quote correctly, so add quotes: double-quote 26519 # `set' does not quote correctly, so add quotes (double-quote
13883 # substitution turns \\\\ into \\, and sed turns \\ into \. 26520 # substitution turns \\\\ into \\, and sed turns \\ into \).
13884 sed -n \ 26521 sed -n \
13885 "s/'/'\\\\''/g; 26522 "s/'/'\\\\''/g;
13886 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26523 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
@@ -13903,11 +26540,11 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
13903if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 26540if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13904 if test -w "$cache_file"; then 26541 if test -w "$cache_file"; then
13905 test "x$cache_file" != "x/dev/null" && 26542 test "x$cache_file" != "x/dev/null" &&
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 26543 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13907$as_echo "$as_me: updating cache $cache_file" >&6;} 26544$as_echo "$as_me: updating cache $cache_file" >&6;}
13908 cat confcache >$cache_file 26545 cat confcache >$cache_file
13909 else 26546 else
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 26547 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13911$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 26548$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13912 fi 26549 fi
13913fi 26550fi
@@ -13927,8 +26564,8 @@ for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
13927 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 26564 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13928 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 26565 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13929 # will be set to the directory where LIBOBJS objects are built. 26566 # will be set to the directory where LIBOBJS objects are built.
13930 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 26567 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13931 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 26568 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13932done 26569done
13933LIBOBJS=$ac_libobjs 26570LIBOBJS=$ac_libobjs
13934 26571
@@ -13940,10 +26577,9 @@ LTLIBOBJS=$ac_ltlibobjs
13940ac_write_fail=0 26577ac_write_fail=0
13941ac_clean_files_save=$ac_clean_files 26578ac_clean_files_save=$ac_clean_files
13942ac_clean_files="$ac_clean_files $CONFIG_STATUS" 26579ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13943{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 26580{ $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
13944$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 26581$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
13945as_write_fail=0 26582cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
13946cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13947#! $SHELL 26583#! $SHELL
13948# Generated by $as_me. 26584# Generated by $as_me.
13949# Run this file to recreate the current configuration. 26585# Run this file to recreate the current configuration.
@@ -13953,18 +26589,17 @@ cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
13953debug=false 26589debug=false
13954ac_cs_recheck=false 26590ac_cs_recheck=false
13955ac_cs_silent=false 26591ac_cs_silent=false
13956
13957SHELL=\${CONFIG_SHELL-$SHELL} 26592SHELL=\${CONFIG_SHELL-$SHELL}
13958export SHELL 26593_ACEOF
13959_ASEOF 26594
13960cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 26595cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
13961## -------------------- ## 26596## --------------------- ##
13962## M4sh Initialization. ## 26597## M4sh Initialization. ##
13963## -------------------- ## 26598## --------------------- ##
13964 26599
13965# Be more Bourne compatible 26600# Be more Bourne compatible
13966DUALCASE=1; export DUALCASE # for MKS sh 26601DUALCASE=1; export DUALCASE # for MKS sh
13967if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26602if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
13968 emulate sh 26603 emulate sh
13969 NULLCMD=: 26604 NULLCMD=:
13970 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26605 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
@@ -13972,15 +26607,23 @@ if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
13972 alias -g '${1+"$@"}'='"$@"' 26607 alias -g '${1+"$@"}'='"$@"'
13973 setopt NO_GLOB_SUBST 26608 setopt NO_GLOB_SUBST
13974else 26609else
13975 case `(set -o) 2>/dev/null` in #( 26610 case `(set -o) 2>/dev/null` in
13976 *posix*) : 26611 *posix*) set -o posix ;;
13977 set -o posix ;; #(
13978 *) :
13979 ;;
13980esac 26612esac
26613
13981fi 26614fi
13982 26615
13983 26616
26617
26618
26619# PATH needs CR
26620# Avoid depending upon Character Ranges.
26621as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26622as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26623as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26624as_cr_digits='0123456789'
26625as_cr_alnum=$as_cr_Letters$as_cr_digits
26626
13984as_nl=' 26627as_nl='
13985' 26628'
13986export as_nl 26629export as_nl
@@ -13988,13 +26631,7 @@ export as_nl
13988as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 26631as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
13989as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 26632as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
13990as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 26633as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
13991# Prefer a ksh shell builtin over an external printf program on Solaris, 26634if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13992# but without wasting forks for bash or zsh.
13993if test -z "$BASH_VERSION$ZSH_VERSION" \
13994 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13995 as_echo='print -r --'
13996 as_echo_n='print -rn --'
13997elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
13998 as_echo='printf %s\n' 26635 as_echo='printf %s\n'
13999 as_echo_n='printf %s' 26636 as_echo_n='printf %s'
14000else 26637else
@@ -14005,7 +26642,7 @@ else
14005 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 26642 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14006 as_echo_n_body='eval 26643 as_echo_n_body='eval
14007 arg=$1; 26644 arg=$1;
14008 case $arg in #( 26645 case $arg in
14009 *"$as_nl"*) 26646 *"$as_nl"*)
14010 expr "X$arg" : "X\\(.*\\)$as_nl"; 26647 expr "X$arg" : "X\\(.*\\)$as_nl";
14011 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 26648 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
@@ -14028,6 +26665,13 @@ if test "${PATH_SEPARATOR+set}" != set; then
14028 } 26665 }
14029fi 26666fi
14030 26667
26668# Support unset when possible.
26669if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26670 as_unset=unset
26671else
26672 as_unset=false
26673fi
26674
14031 26675
14032# IFS 26676# IFS
14033# We need space, tab and new line, in precisely that order. Quoting is 26677# We need space, tab and new line, in precisely that order. Quoting is
@@ -14037,15 +26681,15 @@ fi
14037IFS=" "" $as_nl" 26681IFS=" "" $as_nl"
14038 26682
14039# Find who we are. Look in the path if we contain no directory separator. 26683# Find who we are. Look in the path if we contain no directory separator.
14040case $0 in #(( 26684case $0 in
14041 *[\\/]* ) as_myself=$0 ;; 26685 *[\\/]* ) as_myself=$0 ;;
14042 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26686 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14043for as_dir in $PATH 26687for as_dir in $PATH
14044do 26688do
14045 IFS=$as_save_IFS 26689 IFS=$as_save_IFS
14046 test -z "$as_dir" && as_dir=. 26690 test -z "$as_dir" && as_dir=.
14047 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 26691 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14048 done 26692done
14049IFS=$as_save_IFS 26693IFS=$as_save_IFS
14050 26694
14051 ;; 26695 ;;
@@ -14057,16 +26701,12 @@ if test "x$as_myself" = x; then
14057fi 26701fi
14058if test ! -f "$as_myself"; then 26702if test ! -f "$as_myself"; then
14059 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 26703 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14060 exit 1 26704 { (exit 1); exit 1; }
14061fi 26705fi
14062 26706
14063# Unset variables that we do not need and which cause bugs (e.g. in 26707# Work around bugs in pre-3.0 UWIN ksh.
14064# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 26708for as_var in ENV MAIL MAILPATH
14065# suppresses any "Segmentation fault" message there. '((' could 26709do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14066# trigger a bug in pdksh 5.2.14.
14067for as_var in BASH_ENV ENV MAIL MAILPATH
14068do eval test x\${$as_var+set} = xset \
14069 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14070done 26710done
14071PS1='$ ' 26711PS1='$ '
14072PS2='> ' 26712PS2='> '
@@ -14078,89 +26718,7 @@ export LC_ALL
14078LANGUAGE=C 26718LANGUAGE=C
14079export LANGUAGE 26719export LANGUAGE
14080 26720
14081# CDPATH. 26721# Required to use basename.
14082(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14083
14084
14085# as_fn_error ERROR [LINENO LOG_FD]
14086# ---------------------------------
14087# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14088# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14089# script with status $?, using 1 if that was 0.
14090as_fn_error ()
14091{
14092 as_status=$?; test $as_status -eq 0 && as_status=1
14093 if test "$3"; then
14094 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14095 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14096 fi
14097 $as_echo "$as_me: error: $1" >&2
14098 as_fn_exit $as_status
14099} # as_fn_error
14100
14101
14102# as_fn_set_status STATUS
14103# -----------------------
14104# Set $? to STATUS, without forking.
14105as_fn_set_status ()
14106{
14107 return $1
14108} # as_fn_set_status
14109
14110# as_fn_exit STATUS
14111# -----------------
14112# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14113as_fn_exit ()
14114{
14115 set +e
14116 as_fn_set_status $1
14117 exit $1
14118} # as_fn_exit
14119
14120# as_fn_unset VAR
14121# ---------------
14122# Portably unset VAR.
14123as_fn_unset ()
14124{
14125 { eval $1=; unset $1;}
14126}
14127as_unset=as_fn_unset
14128# as_fn_append VAR VALUE
14129# ----------------------
14130# Append the text in VALUE to the end of the definition contained in VAR. Take
14131# advantage of any shell optimizations that allow amortized linear growth over
14132# repeated appends, instead of the typical quadratic growth present in naive
14133# implementations.
14134if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14135 eval 'as_fn_append ()
14136 {
14137 eval $1+=\$2
14138 }'
14139else
14140 as_fn_append ()
14141 {
14142 eval $1=\$$1\$2
14143 }
14144fi # as_fn_append
14145
14146# as_fn_arith ARG...
14147# ------------------
14148# Perform arithmetic evaluation on the ARGs, and store the result in the
14149# global $as_val. Take advantage of shells that can avoid forks. The arguments
14150# must be portable across $(()) and expr.
14151if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14152 eval 'as_fn_arith ()
14153 {
14154 as_val=$(( $* ))
14155 }'
14156else
14157 as_fn_arith ()
14158 {
14159 as_val=`expr "$@" || test $? -eq 1`
14160 }
14161fi # as_fn_arith
14162
14163
14164if expr a : '\(a\)' >/dev/null 2>&1 && 26722if expr a : '\(a\)' >/dev/null 2>&1 &&
14165 test "X`expr 00001 : '.*\(...\)'`" = X001; then 26723 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14166 as_expr=expr 26724 as_expr=expr
@@ -14174,12 +26732,8 @@ else
14174 as_basename=false 26732 as_basename=false
14175fi 26733fi
14176 26734
14177if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
14178 as_dirname=dirname
14179else
14180 as_dirname=false
14181fi
14182 26735
26736# Name of the executable.
14183as_me=`$as_basename -- "$0" || 26737as_me=`$as_basename -- "$0" ||
14184$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 26738$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14185 X"$0" : 'X\(//\)$' \| \ 26739 X"$0" : 'X\(//\)$' \| \
@@ -14199,25 +26753,76 @@ $as_echo X/"$0" |
14199 } 26753 }
14200 s/.*/./; q'` 26754 s/.*/./; q'`
14201 26755
14202# Avoid depending upon Character Ranges. 26756# CDPATH.
14203as_cr_letters='abcdefghijklmnopqrstuvwxyz' 26757$as_unset CDPATH
14204as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 26758
14205as_cr_Letters=$as_cr_letters$as_cr_LETTERS 26759
14206as_cr_digits='0123456789' 26760
14207as_cr_alnum=$as_cr_Letters$as_cr_digits 26761 as_lineno_1=$LINENO
26762 as_lineno_2=$LINENO
26763 test "x$as_lineno_1" != "x$as_lineno_2" &&
26764 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26765
26766 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26767 # uniformly replaced by the line number. The first 'sed' inserts a
26768 # line-number line after each line using $LINENO; the second 'sed'
26769 # does the real work. The second script uses 'N' to pair each
26770 # line-number line with the line containing $LINENO, and appends
26771 # trailing '-' during substitution so that $LINENO is not a special
26772 # case at line end.
26773 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26774 # scripts with optimization help from Paolo Bonzini. Blame Lee
26775 # E. McMahon (1931-1989) for sed's syntax. :-)
26776 sed -n '
26777 p
26778 /[$]LINENO/=
26779 ' <$as_myself |
26780 sed '
26781 s/[$]LINENO.*/&-/
26782 t lineno
26783 b
26784 :lineno
26785 N
26786 :loop
26787 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26788 t loop
26789 s/-\n.*//
26790 ' >$as_me.lineno &&
26791 chmod +x "$as_me.lineno" ||
26792 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26793 { (exit 1); exit 1; }; }
26794
26795 # Don't try to exec as it changes $[0], causing all sort of problems
26796 # (the dirname of $[0] is not the place where we might find the
26797 # original and so on. Autoconf is especially sensitive to this).
26798 . "./$as_me.lineno"
26799 # Exit status is that of the last command.
26800 exit
26801}
26802
26803
26804if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26805 as_dirname=dirname
26806else
26807 as_dirname=false
26808fi
14208 26809
14209ECHO_C= ECHO_N= ECHO_T= 26810ECHO_C= ECHO_N= ECHO_T=
14210case `echo -n x` in #((((( 26811case `echo -n x` in
14211-n*) 26812-n*)
14212 case `echo 'xy\c'` in 26813 case `echo 'x\c'` in
14213 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 26814 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14214 xy) ECHO_C='\c';; 26815 *) ECHO_C='\c';;
14215 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14216 ECHO_T=' ';;
14217 esac;; 26816 esac;;
14218*) 26817*)
14219 ECHO_N='-n';; 26818 ECHO_N='-n';;
14220esac 26819esac
26820if expr a : '\(a\)' >/dev/null 2>&1 &&
26821 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26822 as_expr=expr
26823else
26824 as_expr=false
26825fi
14221 26826
14222rm -f conf$$ conf$$.exe conf$$.file 26827rm -f conf$$ conf$$.exe conf$$.file
14223if test -d conf$$.dir; then 26828if test -d conf$$.dir; then
@@ -14246,56 +26851,8 @@ fi
14246rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 26851rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14247rmdir conf$$.dir 2>/dev/null 26852rmdir conf$$.dir 2>/dev/null
14248 26853
14249
14250# as_fn_mkdir_p
14251# -------------
14252# Create "$as_dir" as a directory, including parents if necessary.
14253as_fn_mkdir_p ()
14254{
14255
14256 case $as_dir in #(
14257 -*) as_dir=./$as_dir;;
14258 esac
14259 test -d "$as_dir" || eval $as_mkdir_p || {
14260 as_dirs=
14261 while :; do
14262 case $as_dir in #(
14263 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14264 *) as_qdir=$as_dir;;
14265 esac
14266 as_dirs="'$as_qdir' $as_dirs"
14267 as_dir=`$as_dirname -- "$as_dir" ||
14268$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14269 X"$as_dir" : 'X\(//\)[^/]' \| \
14270 X"$as_dir" : 'X\(//\)$' \| \
14271 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14272$as_echo X"$as_dir" |
14273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14274 s//\1/
14275 q
14276 }
14277 /^X\(\/\/\)[^/].*/{
14278 s//\1/
14279 q
14280 }
14281 /^X\(\/\/\)$/{
14282 s//\1/
14283 q
14284 }
14285 /^X\(\/\).*/{
14286 s//\1/
14287 q
14288 }
14289 s/.*/./; q'`
14290 test -d "$as_dir" && break
14291 done
14292 test -z "$as_dirs" || eval "mkdir $as_dirs"
14293 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14294
14295
14296} # as_fn_mkdir_p
14297if mkdir -p . 2>/dev/null; then 26854if mkdir -p . 2>/dev/null; then
14298 as_mkdir_p='mkdir -p "$as_dir"' 26855 as_mkdir_p=:
14299else 26856else
14300 test -d ./-p && rmdir ./-p 26857 test -d ./-p && rmdir ./-p
14301 as_mkdir_p=false 26858 as_mkdir_p=false
@@ -14314,10 +26871,10 @@ else
14314 if test -d "$1"; then 26871 if test -d "$1"; then
14315 test -d "$1/."; 26872 test -d "$1/.";
14316 else 26873 else
14317 case $1 in #( 26874 case $1 in
14318 -*)set "./$1";; 26875 -*)set "./$1";;
14319 esac; 26876 esac;
14320 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 26877 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14321 ???[sx]*):;;*)false;;esac;fi 26878 ???[sx]*):;;*)false;;esac;fi
14322 '\'' sh 26879 '\'' sh
14323 ' 26880 '
@@ -14332,19 +26889,13 @@ as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14332 26889
14333 26890
14334exec 6>&1 26891exec 6>&1
14335## ----------------------------------- ##
14336## Main body of $CONFIG_STATUS script. ##
14337## ----------------------------------- ##
14338_ASEOF
14339test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14340 26892
14341cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26893# Save the log message, to keep $[0] and so on meaningful, and to
14342# Save the log message, to keep $0 and so on meaningful, and to
14343# report actual input values of CONFIG_FILES etc. instead of their 26894# report actual input values of CONFIG_FILES etc. instead of their
14344# values after options handling. 26895# values after options handling.
14345ac_log=" 26896ac_log="
14346This file was extended by emacs $as_me 24.0.50, which was 26897This file was extended by emacs $as_me 24.0.50, which was
14347generated by GNU Autoconf 2.65. Invocation command line was 26898generated by GNU Autoconf 2.62. Invocation command line was
14348 26899
14349 CONFIG_FILES = $CONFIG_FILES 26900 CONFIG_FILES = $CONFIG_FILES
14350 CONFIG_HEADERS = $CONFIG_HEADERS 26901 CONFIG_HEADERS = $CONFIG_HEADERS
@@ -14357,15 +26908,6 @@ on `(hostname || uname -n) 2>/dev/null | sed 1q`
14357 26908
14358_ACEOF 26909_ACEOF
14359 26910
14360case $ac_config_files in *"
14361"*) set x $ac_config_files; shift; ac_config_files=$*;;
14362esac
14363
14364case $ac_config_headers in *"
14365"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14366esac
14367
14368
14369cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26911cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14370# Files that config.status was made for. 26912# Files that config.status was made for.
14371config_files="$ac_config_files" 26913config_files="$ac_config_files"
@@ -14376,22 +26918,19 @@ _ACEOF
14376 26918
14377cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 26919cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14378ac_cs_usage="\ 26920ac_cs_usage="\
14379\`$as_me' instantiates files and other configuration actions 26921\`$as_me' instantiates files from templates according to the
14380from templates according to the current configuration. Unless the files 26922current configuration.
14381and actions are specified as TAGs, all are instantiated by default.
14382 26923
14383Usage: $0 [OPTION]... [TAG]... 26924Usage: $0 [OPTIONS] [FILE]...
14384 26925
14385 -h, --help print this help, then exit 26926 -h, --help print this help, then exit
14386 -V, --version print version number and configuration settings, then exit 26927 -V, --version print version number and configuration settings, then exit
14387 --config print configuration, then exit 26928 -q, --quiet do not print progress messages
14388 -q, --quiet, --silent
14389 do not print progress messages
14390 -d, --debug don't remove temporary files 26929 -d, --debug don't remove temporary files
14391 --recheck update $as_me by reconfiguring in the same conditions 26930 --recheck update $as_me by reconfiguring in the same conditions
14392 --file=FILE[:TEMPLATE] 26931 --file=FILE[:TEMPLATE]
14393 instantiate the configuration file FILE 26932 instantiate the configuration file FILE
14394 --header=FILE[:TEMPLATE] 26933 --header=FILE[:TEMPLATE]
14395 instantiate the configuration header FILE 26934 instantiate the configuration header FILE
14396 26935
14397Configuration files: 26936Configuration files:
@@ -14403,17 +26942,16 @@ $config_headers
14403Configuration commands: 26942Configuration commands:
14404$config_commands 26943$config_commands
14405 26944
14406Report bugs to the package provider." 26945Report bugs to <bug-autoconf@gnu.org>."
14407 26946
14408_ACEOF 26947_ACEOF
14409cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 26948cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14410ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14411ac_cs_version="\\ 26949ac_cs_version="\\
14412emacs config.status 24.0.50 26950emacs config.status 24.0.50
14413configured by $0, generated by GNU Autoconf 2.65, 26951configured by $0, generated by GNU Autoconf 2.62,
14414 with options \\"\$ac_cs_config\\" 26952 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14415 26953
14416Copyright (C) 2009 Free Software Foundation, Inc. 26954Copyright (C) 2008 Free Software Foundation, Inc.
14417This config.status script is free software; the Free Software Foundation 26955This config.status script is free software; the Free Software Foundation
14418gives unlimited permission to copy, distribute and modify it." 26956gives unlimited permission to copy, distribute and modify it."
14419 26957
@@ -14447,8 +26985,6 @@ do
14447 ac_cs_recheck=: ;; 26985 ac_cs_recheck=: ;;
14448 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 26986 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14449 $as_echo "$ac_cs_version"; exit ;; 26987 $as_echo "$ac_cs_version"; exit ;;
14450 --config | --confi | --conf | --con | --co | --c )
14451 $as_echo "$ac_cs_config"; exit ;;
14452 --debug | --debu | --deb | --de | --d | -d ) 26988 --debug | --debu | --deb | --de | --d | -d )
14453 debug=: ;; 26989 debug=: ;;
14454 --file | --fil | --fi | --f ) 26990 --file | --fil | --fi | --f )
@@ -14456,19 +26992,20 @@ do
14456 case $ac_optarg in 26992 case $ac_optarg in
14457 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 26993 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14458 esac 26994 esac
14459 as_fn_append CONFIG_FILES " '$ac_optarg'" 26995 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14460 ac_need_defaults=false;; 26996 ac_need_defaults=false;;
14461 --header | --heade | --head | --hea ) 26997 --header | --heade | --head | --hea )
14462 $ac_shift 26998 $ac_shift
14463 case $ac_optarg in 26999 case $ac_optarg in
14464 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27000 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14465 esac 27001 esac
14466 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 27002 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14467 ac_need_defaults=false;; 27003 ac_need_defaults=false;;
14468 --he | --h) 27004 --he | --h)
14469 # Conflict between --help and --header 27005 # Conflict between --help and --header
14470 as_fn_error "ambiguous option: \`$1' 27006 { $as_echo "$as_me: error: ambiguous option: $1
14471Try \`$0 --help' for more information.";; 27007Try \`$0 --help' for more information." >&2
27008 { (exit 1); exit 1; }; };;
14472 --help | --hel | -h ) 27009 --help | --hel | -h )
14473 $as_echo "$ac_cs_usage"; exit ;; 27010 $as_echo "$ac_cs_usage"; exit ;;
14474 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 27011 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
@@ -14476,10 +27013,11 @@ Try \`$0 --help' for more information.";;
14476 ac_cs_silent=: ;; 27013 ac_cs_silent=: ;;
14477 27014
14478 # This is an error. 27015 # This is an error.
14479 -*) as_fn_error "unrecognized option: \`$1' 27016 -*) { $as_echo "$as_me: error: unrecognized option: $1
14480Try \`$0 --help' for more information." ;; 27017Try \`$0 --help' for more information." >&2
27018 { (exit 1); exit 1; }; } ;;
14481 27019
14482 *) as_fn_append ac_config_targets " $1" 27020 *) ac_config_targets="$ac_config_targets $1"
14483 ac_need_defaults=false ;; 27021 ac_need_defaults=false ;;
14484 27022
14485 esac 27023 esac
@@ -14544,7 +27082,9 @@ do
14544 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; 27082 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14545 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 27083 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14546 27084
14547 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 27085 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27086$as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27087 { (exit 1); exit 1; }; };;
14548 esac 27088 esac
14549done 27089done
14550 27090
@@ -14571,7 +27111,7 @@ $debug ||
14571 trap 'exit_status=$? 27111 trap 'exit_status=$?
14572 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 27112 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14573' 0 27113' 0
14574 trap 'as_fn_exit 1' 1 2 13 15 27114 trap '{ (exit 1); exit 1; }' 1 2 13 15
14575} 27115}
14576# Create a (secure) tmp directory for tmp files. 27116# Create a (secure) tmp directory for tmp files.
14577 27117
@@ -14582,7 +27122,11 @@ $debug ||
14582{ 27122{
14583 tmp=./conf$$-$RANDOM 27123 tmp=./conf$$-$RANDOM
14584 (umask 077 && mkdir "$tmp") 27124 (umask 077 && mkdir "$tmp")
14585} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 27125} ||
27126{
27127 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27128 { (exit 1); exit 1; }
27129}
14586 27130
14587# Set up the scripts for CONFIG_FILES section. 27131# Set up the scripts for CONFIG_FILES section.
14588# No need to generate them if there are no CONFIG_FILES. 27132# No need to generate them if there are no CONFIG_FILES.
@@ -14590,16 +27134,10 @@ $debug ||
14590if test -n "$CONFIG_FILES"; then 27134if test -n "$CONFIG_FILES"; then
14591 27135
14592 27136
14593ac_cr=`echo X | tr X '\015'` 27137ac_cr=' '
14594# On cygwin, bash can eat \r inside `` if the user requested igncr.
14595# But we know of no other shell where ac_cr would be empty at this
14596# point, so we can use a bashism as a fallback.
14597if test "x$ac_cr" = x; then
14598 eval ac_cr=\$\'\\r\'
14599fi
14600ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 27138ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14601if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 27139if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14602 ac_cs_awk_cr='\r' 27140 ac_cs_awk_cr='\\r'
14603else 27141else
14604 ac_cs_awk_cr=$ac_cr 27142 ac_cs_awk_cr=$ac_cr
14605fi 27143fi
@@ -14613,18 +27151,23 @@ _ACEOF
14613 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 27151 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14614 echo "_ACEOF" 27152 echo "_ACEOF"
14615} >conf$$subs.sh || 27153} >conf$$subs.sh ||
14616 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 27154 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27155$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27156 { (exit 1); exit 1; }; }
14617ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 27157ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14618ac_delim='%!_!# ' 27158ac_delim='%!_!# '
14619for ac_last_try in false false false false false :; do 27159for ac_last_try in false false false false false :; do
14620 . ./conf$$subs.sh || 27160 . ./conf$$subs.sh ||
14621 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 27161 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27162$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27163 { (exit 1); exit 1; }; }
14622 27164
14623 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 27165 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
14624 if test $ac_delim_n = $ac_delim_num; then
14625 break 27166 break
14626 elif $ac_last_try; then 27167 elif $ac_last_try; then
14627 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 27168 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27169$as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27170 { (exit 1); exit 1; }; }
14628 else 27171 else
14629 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27172 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14630 fi 27173 fi
@@ -14646,7 +27189,7 @@ s/'"$ac_delim"'$//
14646t delim 27189t delim
14647:nl 27190:nl
14648h 27191h
14649s/\(.\{148\}\)..*/\1/ 27192s/\(.\{148\}\).*/\1/
14650t more1 27193t more1
14651s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 27194s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14652p 27195p
@@ -14660,7 +27203,7 @@ s/.\{148\}//
14660t nl 27203t nl
14661:delim 27204:delim
14662h 27205h
14663s/\(.\{148\}\)..*/\1/ 27206s/\(.\{148\}\).*/\1/
14664t more2 27207t more2
14665s/["\\]/\\&/g; s/^/"/; s/$/"/ 27208s/["\\]/\\&/g; s/^/"/; s/$/"/
14666p 27209p
@@ -14713,7 +27256,9 @@ if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14713else 27256else
14714 cat 27257 cat
14715fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 27258fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14716 || as_fn_error "could not setup config files machinery" "$LINENO" 5 27259 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27260$as_echo "$as_me: error: could not setup config files machinery" >&2;}
27261 { (exit 1); exit 1; }; }
14717_ACEOF 27262_ACEOF
14718 27263
14719# VPATH may cause trouble with some makes, so we remove $(srcdir), 27264# VPATH may cause trouble with some makes, so we remove $(srcdir),
@@ -14754,7 +27299,9 @@ for ac_last_try in false false :; do
14754 if test -z "$ac_t"; then 27299 if test -z "$ac_t"; then
14755 break 27300 break
14756 elif $ac_last_try; then 27301 elif $ac_last_try; then
14757 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 27302 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27303$as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27304 { (exit 1); exit 1; }; }
14758 else 27305 else
14759 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27306 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14760 fi 27307 fi
@@ -14820,9 +27367,9 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14820 } 27367 }
14821 split(mac1, mac2, "(") #) 27368 split(mac1, mac2, "(") #)
14822 macro = mac2[1] 27369 macro = mac2[1]
14823 prefix = substr(line, 1, index(line, defundef) - 1)
14824 if (D_is_set[macro]) { 27370 if (D_is_set[macro]) {
14825 # Preserve the white space surrounding the "#". 27371 # Preserve the white space surrounding the "#".
27372 prefix = substr(line, 1, index(line, defundef) - 1)
14826 print prefix "define", macro P[macro] D[macro] 27373 print prefix "define", macro P[macro] D[macro]
14827 next 27374 next
14828 } else { 27375 } else {
@@ -14830,7 +27377,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14830 # in the case of _POSIX_SOURCE, which is predefined and required 27377 # in the case of _POSIX_SOURCE, which is predefined and required
14831 # on some systems where configure will not decide to define it. 27378 # on some systems where configure will not decide to define it.
14832 if (defundef == "undef") { 27379 if (defundef == "undef") {
14833 print "/*", prefix defundef, macro, "*/" 27380 print "/*", line, "*/"
14834 next 27381 next
14835 } 27382 }
14836 } 27383 }
@@ -14839,7 +27386,9 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14839_ACAWK 27386_ACAWK
14840_ACEOF 27387_ACEOF
14841cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14842 as_fn_error "could not setup config headers machinery" "$LINENO" 5 27389 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27390$as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27391 { (exit 1); exit 1; }; }
14843fi # test -n "$CONFIG_HEADERS" 27392fi # test -n "$CONFIG_HEADERS"
14844 27393
14845 27394
@@ -14852,7 +27401,9 @@ do
14852 esac 27401 esac
14853 case $ac_mode$ac_tag in 27402 case $ac_mode$ac_tag in
14854 :[FHL]*:*);; 27403 :[FHL]*:*);;
14855 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 27404 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27405$as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27406 { (exit 1); exit 1; }; };;
14856 :[FH]-) ac_tag=-:-;; 27407 :[FH]-) ac_tag=-:-;;
14857 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 27408 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14858 esac 27409 esac
@@ -14880,10 +27431,12 @@ do
14880 [\\/$]*) false;; 27431 [\\/$]*) false;;
14881 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 27432 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14882 esac || 27433 esac ||
14883 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 27434 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27435$as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27436 { (exit 1); exit 1; }; };;
14884 esac 27437 esac
14885 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 27438 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14886 as_fn_append ac_file_inputs " '$ac_f'" 27439 ac_file_inputs="$ac_file_inputs '$ac_f'"
14887 done 27440 done
14888 27441
14889 # Let's still pretend it is `configure' which instantiates (i.e., don't 27442 # Let's still pretend it is `configure' which instantiates (i.e., don't
@@ -14894,7 +27447,7 @@ do
14894 `' by configure.' 27447 `' by configure.'
14895 if test x"$ac_file" != x-; then 27448 if test x"$ac_file" != x-; then
14896 configure_input="$ac_file. $configure_input" 27449 configure_input="$ac_file. $configure_input"
14897 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 27450 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14898$as_echo "$as_me: creating $ac_file" >&6;} 27451$as_echo "$as_me: creating $ac_file" >&6;}
14899 fi 27452 fi
14900 # Neutralize special characters interpreted by sed in replacement strings. 27453 # Neutralize special characters interpreted by sed in replacement strings.
@@ -14907,7 +27460,9 @@ $as_echo "$as_me: creating $ac_file" >&6;}
14907 27460
14908 case $ac_tag in 27461 case $ac_tag in
14909 *:-:* | *:-) cat >"$tmp/stdin" \ 27462 *:-:* | *:-) cat >"$tmp/stdin" \
14910 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 27463 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27464$as_echo "$as_me: error: could not create $ac_file" >&2;}
27465 { (exit 1); exit 1; }; } ;;
14911 esac 27466 esac
14912 ;; 27467 ;;
14913 esac 27468 esac
@@ -14935,7 +27490,47 @@ $as_echo X"$ac_file" |
14935 q 27490 q
14936 } 27491 }
14937 s/.*/./; q'` 27492 s/.*/./; q'`
14938 as_dir="$ac_dir"; as_fn_mkdir_p 27493 { as_dir="$ac_dir"
27494 case $as_dir in #(
27495 -*) as_dir=./$as_dir;;
27496 esac
27497 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27498 as_dirs=
27499 while :; do
27500 case $as_dir in #(
27501 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27502 *) as_qdir=$as_dir;;
27503 esac
27504 as_dirs="'$as_qdir' $as_dirs"
27505 as_dir=`$as_dirname -- "$as_dir" ||
27506$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27507 X"$as_dir" : 'X\(//\)[^/]' \| \
27508 X"$as_dir" : 'X\(//\)$' \| \
27509 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27510$as_echo X"$as_dir" |
27511 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27512 s//\1/
27513 q
27514 }
27515 /^X\(\/\/\)[^/].*/{
27516 s//\1/
27517 q
27518 }
27519 /^X\(\/\/\)$/{
27520 s//\1/
27521 q
27522 }
27523 /^X\(\/\).*/{
27524 s//\1/
27525 q
27526 }
27527 s/.*/./; q'`
27528 test -d "$as_dir" && break
27529 done
27530 test -z "$as_dirs" || eval "mkdir $as_dirs"
27531 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27532$as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27533 { (exit 1); exit 1; }; }; }
14939 ac_builddir=. 27534 ac_builddir=.
14940 27535
14941case "$ac_dir" in 27536case "$ac_dir" in
@@ -14987,6 +27582,7 @@ cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14987# If the template does not know about datarootdir, expand it. 27582# If the template does not know about datarootdir, expand it.
14988# FIXME: This hack should be removed a few years after 2.60. 27583# FIXME: This hack should be removed a few years after 2.60.
14989ac_datarootdir_hack=; ac_datarootdir_seen= 27584ac_datarootdir_hack=; ac_datarootdir_seen=
27585
14990ac_sed_dataroot=' 27586ac_sed_dataroot='
14991/datarootdir/ { 27587/datarootdir/ {
14992 p 27588 p
@@ -14996,11 +27592,12 @@ ac_sed_dataroot='
14996/@docdir@/p 27592/@docdir@/p
14997/@infodir@/p 27593/@infodir@/p
14998/@localedir@/p 27594/@localedir@/p
14999/@mandir@/p' 27595/@mandir@/p
27596'
15000case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 27597case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15001*datarootdir*) ac_datarootdir_seen=yes;; 27598*datarootdir*) ac_datarootdir_seen=yes;;
15002*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 27599*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 27600 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15004$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 27601$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15005_ACEOF 27602_ACEOF
15006cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27603cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
@@ -15010,7 +27607,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15010 s&@infodir@&$infodir&g 27607 s&@infodir@&$infodir&g
15011 s&@localedir@&$localedir&g 27608 s&@localedir@&$localedir&g
15012 s&@mandir@&$mandir&g 27609 s&@mandir@&$mandir&g
15013 s&\\\${datarootdir}&$datarootdir&g' ;; 27610 s&\\\${datarootdir}&$datarootdir&g' ;;
15014esac 27611esac
15015_ACEOF 27612_ACEOF
15016 27613
@@ -15038,12 +27635,14 @@ s&@INSTALL@&$ac_INSTALL&;t t
15038$ac_datarootdir_hack 27635$ac_datarootdir_hack
15039" 27636"
15040eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 27637eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15041 || as_fn_error "could not create $ac_file" "$LINENO" 5 27638 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27639$as_echo "$as_me: error: could not create $ac_file" >&2;}
27640 { (exit 1); exit 1; }; }
15042 27641
15043test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 27642test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15044 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 27643 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15045 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 27644 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27645 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15047which seems to be undefined. Please make sure it is defined." >&5 27646which seems to be undefined. Please make sure it is defined." >&5
15048$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27647$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15049which seems to be undefined. Please make sure it is defined." >&2;} 27648which seems to be undefined. Please make sure it is defined." >&2;}
@@ -15053,7 +27652,9 @@ which seems to be undefined. Please make sure it is defined." >&2;}
15053 -) cat "$tmp/out" && rm -f "$tmp/out";; 27652 -) cat "$tmp/out" && rm -f "$tmp/out";;
15054 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 27653 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15055 esac \ 27654 esac \
15056 || as_fn_error "could not create $ac_file" "$LINENO" 5 27655 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27656$as_echo "$as_me: error: could not create $ac_file" >&2;}
27657 { (exit 1); exit 1; }; }
15057 ;; 27658 ;;
15058 :H) 27659 :H)
15059 # 27660 #
@@ -15064,23 +27665,29 @@ which seems to be undefined. Please make sure it is defined." >&2;}
15064 $as_echo "/* $configure_input */" \ 27665 $as_echo "/* $configure_input */" \
15065 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 27666 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15066 } >"$tmp/config.h" \ 27667 } >"$tmp/config.h" \
15067 || as_fn_error "could not create $ac_file" "$LINENO" 5 27668 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27669$as_echo "$as_me: error: could not create $ac_file" >&2;}
27670 { (exit 1); exit 1; }; }
15068 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 27671 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 27672 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15070$as_echo "$as_me: $ac_file is unchanged" >&6;} 27673$as_echo "$as_me: $ac_file is unchanged" >&6;}
15071 else 27674 else
15072 rm -f "$ac_file" 27675 rm -f "$ac_file"
15073 mv "$tmp/config.h" "$ac_file" \ 27676 mv "$tmp/config.h" "$ac_file" \
15074 || as_fn_error "could not create $ac_file" "$LINENO" 5 27677 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27678$as_echo "$as_me: error: could not create $ac_file" >&2;}
27679 { (exit 1); exit 1; }; }
15075 fi 27680 fi
15076 else 27681 else
15077 $as_echo "/* $configure_input */" \ 27682 $as_echo "/* $configure_input */" \
15078 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 27683 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15079 || as_fn_error "could not create -" "$LINENO" 5 27684 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27685$as_echo "$as_me: error: could not create -" >&2;}
27686 { (exit 1); exit 1; }; }
15080 fi 27687 fi
15081 ;; 27688 ;;
15082 27689
15083 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 27690 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15084$as_echo "$as_me: executing $ac_file commands" >&6;} 27691$as_echo "$as_me: executing $ac_file commands" >&6;}
15085 ;; 27692 ;;
15086 esac 27693 esac
@@ -15151,12 +27758,15 @@ fi
15151done # for ac_tag 27758done # for ac_tag
15152 27759
15153 27760
15154as_fn_exit 0 27761{ (exit 0); exit 0; }
15155_ACEOF 27762_ACEOF
27763chmod +x $CONFIG_STATUS
15156ac_clean_files=$ac_clean_files_save 27764ac_clean_files=$ac_clean_files_save
15157 27765
15158test $ac_write_fail = 0 || 27766test $ac_write_fail = 0 ||
15159 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 27767 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27768$as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27769 { (exit 1); exit 1; }; }
15160 27770
15161 27771
15162# configure is writing to config.log, and then calls config.status. 27772# configure is writing to config.log, and then calls config.status.
@@ -15177,11 +27787,11 @@ if test "$no_create" != yes; then
15177 exec 5>>config.log 27787 exec 5>>config.log
15178 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27788 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15179 # would make configure fail if this is the last instruction. 27789 # would make configure fail if this is the last instruction.
15180 $ac_cs_success || as_fn_exit $? 27790 $ac_cs_success || { (exit 1); exit 1; }
15181fi 27791fi
15182if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27792if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27793 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15184$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27794$as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
15185fi 27795fi
15186 27796
15187 27797