comparison configure @ 108036:df986d0bd8cd

Update configure
author Miles Bader <miles@gnu.org>
date Thu, 22 Apr 2010 09:10:43 +0900
parents 8ff86e76b50f
children c89b196107b3
comparison
equal deleted inserted replaced
108035:98d289f97679 108036:df986d0bd8cd
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.62 for emacs 24.0.50. 3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
4 #
4 # 5 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
7 # This configure script is free software; the Free Software Foundation 11 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it. 12 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ## 13 ## -------------------- ##
10 ## M4sh Initialization. ## 14 ## M4sh Initialization. ##
11 ## --------------------- ## 15 ## -------------------- ##
12 16
13 # Be more Bourne compatible 17 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh 18 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16 emulate sh 20 emulate sh
17 NULLCMD=: 21 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature. 23 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"' 24 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST 25 setopt NO_GLOB_SUBST
22 else 26 else
23 case `(set -o) 2>/dev/null` in 27 case `(set -o) 2>/dev/null` in #(
24 *posix*) set -o posix ;; 28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25 esac 32 esac
26 33 fi
27 fi 34
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39 35
40 as_nl=' 36 as_nl='
41 ' 37 '
42 export as_nl 38 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf. 39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if 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 --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n' 50 as_echo='printf %s\n'
49 as_echo_n='printf %s' 51 as_echo_n='printf %s'
50 else 52 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n' 55 as_echo_n='/usr/ucb/echo -n'
54 else 56 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval 58 as_echo_n_body='eval
57 arg=$1; 59 arg=$1;
58 case $arg in 60 case $arg in #(
59 *"$as_nl"*) 61 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl"; 62 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac; 64 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';' 79 PATH_SEPARATOR=';'
78 } 80 }
79 fi 81 fi
80 82
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88 83
89 # IFS 84 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is 85 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab. 86 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.) 88 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl" 89 IFS=" "" $as_nl"
95 90
96 # Find who we are. Look in the path if we contain no directory separator. 91 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in 92 case $0 in #((
98 *[\\/]* ) as_myself=$0 ;; 93 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH 95 for as_dir in $PATH
101 do 96 do
102 IFS=$as_save_IFS 97 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=. 98 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done 100 done
106 IFS=$as_save_IFS 101 IFS=$as_save_IFS
107 102
108 ;; 103 ;;
109 esac 104 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND' 105 # We did not find ourselves, most probably we were run as `sh COMMAND'
112 if test "x$as_myself" = x; then 107 if test "x$as_myself" = x; then
113 as_myself=$0 108 as_myself=$0
114 fi 109 fi
115 if test ! -f "$as_myself"; then 110 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; } 112 exit 1
118 fi 113 fi
119 114
120 # Work around bugs in pre-3.0 UWIN ksh. 115 # Unset variables that we do not need and which cause bugs (e.g. in
121 for as_var in ENV MAIL MAILPATH 116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done 122 done
124 PS1='$ ' 123 PS1='$ '
125 PS2='> ' 124 PS2='> '
126 PS4='+ ' 125 PS4='+ '
127 126
129 LC_ALL=C 128 LC_ALL=C
130 export LC_ALL 129 export LC_ALL
131 LANGUAGE=C 130 LANGUAGE=C
132 export LANGUAGE 131 export LANGUAGE
133 132
134 # Required to use basename. 133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test 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
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
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
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
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
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (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 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_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
135 if expr a : '\(a\)' >/dev/null 2>&1 && 375 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr 377 as_expr=expr
138 else 378 else
139 as_expr=false 379 as_expr=false
143 as_basename=basename 383 as_basename=basename
144 else 384 else
145 as_basename=false 385 as_basename=false
146 fi 386 fi
147 387
148 388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
149 # Name of the executable. 389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
150 as_me=`$as_basename -- "$0" || 394 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \ 396 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null || 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" | 398 $as_echo X/"$0" |
164 s//\1/ 408 s//\1/
165 q 409 q
166 } 410 }
167 s/.*/./; q'` 411 s/.*/./; q'`
168 412
169 # CDPATH. 413 # Avoid depending upon Character Ranges.
170 $as_unset CDPATH 414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
171 415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
172 416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
173 if test "x$CONFIG_SHELL" = x; then 417 as_cr_digits='0123456789'
174 if (eval ":") 2>/dev/null; then 418 as_cr_alnum=$as_cr_Letters$as_cr_digits
175 as_have_required=yes 419
176 else 420
177 as_have_required=no 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
178 fi 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
179 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
180 if test $as_have_required = yes && (eval ": 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
181 (as_func_return () { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$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 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
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
280 if 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
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
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+"$@"}
367 fi
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; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
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" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
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. :-)
458 sed -n ' 426 sed -n '
459 p 427 p
460 /[$]LINENO/= 428 /[$]LINENO/=
461 ' <$as_myself | 429 ' <$as_myself |
462 sed ' 430 sed '
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop 438 t loop
471 s/-\n.*// 439 s/-\n.*//
472 ' >$as_me.lineno && 440 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" || 441 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
475 { (exit 1); exit 1; }; }
476 443
477 # Don't try to exec as it changes $[0], causing all sort of problems 444 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the 445 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this). 446 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno" 447 . "./$as_me.lineno"
481 # Exit status is that of the last command. 448 # Exit status is that of the last command.
482 exit 449 exit
483 } 450 }
484 451
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T= 452 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in 453 case `echo -n x` in #(((((
494 -n*) 454 -n*)
495 case `echo 'x\c'` in 455 case `echo 'xy\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';; 457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
498 esac;; 460 esac;;
499 *) 461 *)
500 ECHO_N='-n';; 462 ECHO_N='-n';;
501 esac 463 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508 464
509 rm -f conf$$ conf$$.exe conf$$.file 465 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then 466 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file 467 rm -f conf$$.dir/conf$$.file
512 else 468 else
532 fi 488 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null 490 rmdir conf$$.dir 2>/dev/null
535 491
536 if mkdir -p . 2>/dev/null; then 492 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=: 493 as_mkdir_p='mkdir -p "$as_dir"'
538 else 494 else
539 test -d ./-p && rmdir ./-p 495 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false 496 as_mkdir_p=false
541 fi 497 fi
542 498
551 as_test_x=' 507 as_test_x='
552 eval sh -c '\'' 508 eval sh -c '\''
553 if test -d "$1"; then 509 if test -d "$1"; then
554 test -d "$1/."; 510 test -d "$1/.";
555 else 511 else
556 case $1 in 512 case $1 in #(
557 -*)set "./$1";; 513 -*)set "./$1";;
558 esac; 514 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
560 ???[sx]*):;;*)false;;esac;fi 516 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh 517 '\'' sh
562 ' 518 '
563 fi 519 fi
564 as_executable_p=$as_test_x 520 as_executable_p=$as_test_x
568 524
569 # Sed expression to map a string onto a valid variable name. 525 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571 527
572 528
573 529 test -n "$DJDIR" || exec 7<&0 </dev/null
574 exec 7<&0 </dev/null 6>&1 530 exec 6>&1
575 531
576 # Name of the host. 532 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too. 534 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
587 LIBOBJS= 543 LIBOBJS=
588 cross_compiling=no 544 cross_compiling=no
589 subdirs= 545 subdirs=
590 MFLAGS= 546 MFLAGS=
591 MAKEFLAGS= 547 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593 548
594 # Identity of this package. 549 # Identity of this package.
595 PACKAGE_NAME='emacs' 550 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs' 551 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='24.0.50' 552 PACKAGE_VERSION='24.0.50'
598 PACKAGE_STRING='emacs 24.0.50' 553 PACKAGE_STRING='emacs 24.0.50'
599 PACKAGE_BUGREPORT='' 554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
600 556
601 ac_unique_file="src/lisp.h" 557 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests. 558 # Factoring default headers for most tests.
603 ac_includes_default="\ 559 ac_includes_default="\
604 #include <stdio.h> 560 #include <stdio.h>
636 #endif" 592 #endif"
637 593
638 ac_config_libobj_dir=src 594 ac_config_libobj_dir=src
639 ac_header_list= 595 ac_header_list=
640 ac_func_list= 596 ac_func_list=
641 ac_subst_vars='SHELL 597 ac_subst_vars='LTLIBOBJS
598 XOBJ
599 XMENU_OBJ
600 OTHER_FILES
601 LIB_SRC_EXTRA_INSTALLABLES
602 GNU_OBJC_CFLAGS
603 GNUSTEP_SYSTEM_LIBRARIES
604 GNUSTEP_SYSTEM_HEADERS
605 GNUSTEP_MAKEFILES
606 ns_appsrc
607 ns_appresdir
608 ns_appbindir
609 ns_appdir
610 opsysfile
611 machfile
612 X_TOOLKIT_TYPE
613 C_SWITCH_X_SITE
614 LD_SWITCH_X_SITE_AUX
615 LD_SWITCH_X_SITE
616 c_switch_machine
617 c_switch_system
618 gameuser
619 gamedir
620 bitmapdir
621 archlibdir
622 etcdir
623 x_default_search_path
624 lisppath
625 locallisppath
626 lispdir
627 srcdir
628 canonical
629 configuration
630 version
631 KRB4LIB
632 DESLIB
633 KRB5LIB
634 CRYPTOLIB
635 COM_ERRLIB
636 LIBRESOLV
637 LIBHESIOD
638 GETOPTOBJS
639 GETOPT_H
640 GETLOADAVG_LIBS
641 KMEM_GROUP
642 NEED_SETGID
643 LIBOBJS
644 LIBS_MAIL
645 liblockfile
646 ALLOCA
647 LIBXSM
648 LIBGPM
649 LIBGIF
650 LIBTIFF
651 LIBPNG
652 LIBJPEG
653 LIBXPM
654 FREETYPE_LIBS
655 FREETYPE_CFLAGS
656 M17N_FLT_LIBS
657 M17N_FLT_CFLAGS
658 LIBOTF_LIBS
659 LIBOTF_CFLAGS
660 XFT_LIBS
661 XFT_CFLAGS
662 FONTCONFIG_LIBS
663 FONTCONFIG_CFLAGS
664 LIBSELINUX_LIBS
665 GCONF_LIBS
666 GCONF_CFLAGS
667 DBUS_OBJ
668 DBUS_LIBS
669 DBUS_CFLAGS
670 GTK_OBJ
671 GTK_LIBS
672 GTK_CFLAGS
673 RSVG_LIBS
674 RSVG_CFLAGS
675 HAVE_XSERVER
676 XMKMF
677 SET_MAKE
678 CFLAGS_SOUND
679 ALSA_LIBS
680 ALSA_CFLAGS
681 PKG_CONFIG
682 LIBSOUND
683 MAKEINFO
684 GZIP_PROG
685 INSTALL_INFO
686 RANLIB
687 INSTALL_DATA
688 INSTALL_SCRIPT
689 INSTALL_PROGRAM
690 LN_S
691 EGREP
692 GREP
693 CPP
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 host_os
702 host_vendor
703 host_cpu
704 host
705 build_os
706 build_vendor
707 build_cpu
708 build
709 MAINT
710 target_alias
711 host_alias
712 build_alias
713 LIBS
714 ECHO_T
715 ECHO_N
716 ECHO_C
717 DEFS
718 mandir
719 localedir
720 libdir
721 psdir
722 pdfdir
723 dvidir
724 htmldir
725 infodir
726 docdir
727 oldincludedir
728 includedir
729 localstatedir
730 sharedstatedir
731 sysconfdir
732 datadir
733 datarootdir
734 libexecdir
735 sbindir
736 bindir
737 program_transform_name
738 prefix
739 exec_prefix
740 PACKAGE_URL
741 PACKAGE_BUGREPORT
742 PACKAGE_STRING
743 PACKAGE_VERSION
744 PACKAGE_TARNAME
745 PACKAGE_NAME
642 PATH_SEPARATOR 746 PATH_SEPARATOR
643 PACKAGE_NAME 747 SHELL'
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
687 CC
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
694 CPP
695 GREP
696 EGREP
697 LN_S
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 RANLIB
702 INSTALL_INFO
703 GZIP_PROG
704 MAKEINFO
705 LIBSOUND
706 PKG_CONFIG
707 ALSA_CFLAGS
708 ALSA_LIBS
709 CFLAGS_SOUND
710 SET_MAKE
711 XMKMF
712 HAVE_XSERVER
713 RSVG_CFLAGS
714 RSVG_LIBS
715 GTK_CFLAGS
716 GTK_LIBS
717 GTK_OBJ
718 DBUS_CFLAGS
719 DBUS_LIBS
720 DBUS_OBJ
721 GCONF_CFLAGS
722 GCONF_LIBS
723 LIBSELINUX_LIBS
724 FONTCONFIG_CFLAGS
725 FONTCONFIG_LIBS
726 XFT_CFLAGS
727 XFT_LIBS
728 LIBOTF_CFLAGS
729 LIBOTF_LIBS
730 M17N_FLT_CFLAGS
731 M17N_FLT_LIBS
732 FREETYPE_CFLAGS
733 FREETYPE_LIBS
734 LIBXPM
735 LIBJPEG
736 LIBPNG
737 LIBTIFF
738 LIBGIF
739 LIBGPM
740 LIBXSM
741 ALLOCA
742 liblockfile
743 LIBS_MAIL
744 LIBOBJS
745 NEED_SETGID
746 KMEM_GROUP
747 GETLOADAVG_LIBS
748 GETOPT_H
749 GETOPTOBJS
750 LIBHESIOD
751 LIBRESOLV
752 COM_ERRLIB
753 CRYPTOLIB
754 KRB5LIB
755 DESLIB
756 KRB4LIB
757 version
758 configuration
759 canonical
760 srcdir
761 lispdir
762 locallisppath
763 lisppath
764 x_default_search_path
765 etcdir
766 archlibdir
767 bitmapdir
768 gamedir
769 gameuser
770 c_switch_system
771 c_switch_machine
772 LD_SWITCH_X_SITE
773 LD_SWITCH_X_SITE_AUX
774 C_SWITCH_X_SITE
775 X_TOOLKIT_TYPE
776 machfile
777 opsysfile
778 ns_appdir
779 ns_appbindir
780 ns_appresdir
781 ns_appsrc
782 GNUSTEP_MAKEFILES
783 GNUSTEP_SYSTEM_HEADERS
784 GNUSTEP_SYSTEM_LIBRARIES
785 GNU_OBJC_CFLAGS
786 LIB_SRC_EXTRA_INSTALLABLES
787 OTHER_FILES
788 XMENU_OBJ
789 XOBJ
790 LTLIBOBJS'
791 ac_subst_files='' 748 ac_subst_files=''
792 ac_user_opts=' 749 ac_user_opts='
793 enable_option_checking 750 enable_option_checking
794 with_pop 751 with_pop
795 with_kerberos 752 with_kerberos
949 906
950 -disable-* | --disable-*) 907 -disable-* | --disable-*)
951 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 908 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
952 # Reject names that are not valid shell variable names. 909 # Reject names that are not valid shell variable names.
953 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 910 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
954 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 911 as_fn_error "invalid feature name: $ac_useropt"
955 { (exit 1); exit 1; }; }
956 ac_useropt_orig=$ac_useropt 912 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 913 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in 914 case $ac_user_opts in
959 *" 915 *"
960 "enable_$ac_useropt" 916 "enable_$ac_useropt"
976 932
977 -enable-* | --enable-*) 933 -enable-* | --enable-*)
978 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 934 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
979 # Reject names that are not valid shell variable names. 935 # Reject names that are not valid shell variable names.
980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 936 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
981 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 937 as_fn_error "invalid feature name: $ac_useropt"
982 { (exit 1); exit 1; }; }
983 ac_useropt_orig=$ac_useropt 938 ac_useropt_orig=$ac_useropt
984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 939 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
985 case $ac_user_opts in 940 case $ac_user_opts in
986 *" 941 *"
987 "enable_$ac_useropt" 942 "enable_$ac_useropt"
1181 1136
1182 -with-* | --with-*) 1137 -with-* | --with-*)
1183 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1138 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1184 # Reject names that are not valid shell variable names. 1139 # Reject names that are not valid shell variable names.
1185 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1186 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1141 as_fn_error "invalid package name: $ac_useropt"
1187 { (exit 1); exit 1; }; }
1188 ac_useropt_orig=$ac_useropt 1142 ac_useropt_orig=$ac_useropt
1189 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1190 case $ac_user_opts in 1144 case $ac_user_opts in
1191 *" 1145 *"
1192 "with_$ac_useropt" 1146 "with_$ac_useropt"
1198 1152
1199 -without-* | --without-*) 1153 -without-* | --without-*)
1200 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1154 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1201 # Reject names that are not valid shell variable names. 1155 # Reject names that are not valid shell variable names.
1202 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1203 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1157 as_fn_error "invalid package name: $ac_useropt"
1204 { (exit 1); exit 1; }; }
1205 ac_useropt_orig=$ac_useropt 1158 ac_useropt_orig=$ac_useropt
1206 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1207 case $ac_user_opts in 1160 case $ac_user_opts in
1208 *" 1161 *"
1209 "with_$ac_useropt" 1162 "with_$ac_useropt"
1229 ac_prev=x_libraries ;; 1182 ac_prev=x_libraries ;;
1230 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1183 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1231 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1184 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1232 x_libraries=$ac_optarg ;; 1185 x_libraries=$ac_optarg ;;
1233 1186
1234 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1187 -*) as_fn_error "unrecognized option: \`$ac_option'
1235 Try \`$0 --help' for more information." >&2 1188 Try \`$0 --help' for more information."
1236 { (exit 1); exit 1; }; }
1237 ;; 1189 ;;
1238 1190
1239 *=*) 1191 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1192 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names. 1193 # Reject names that are not valid shell variable names.
1242 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1194 case $ac_envvar in #(
1243 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1195 '' | [0-9]* | *[!_$as_cr_alnum]* )
1244 { (exit 1); exit 1; }; } 1196 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1197 esac
1245 eval $ac_envvar=\$ac_optarg 1198 eval $ac_envvar=\$ac_optarg
1246 export $ac_envvar ;; 1199 export $ac_envvar ;;
1247 1200
1248 *) 1201 *)
1249 # FIXME: should be removed in autoconf 3.0. 1202 # FIXME: should be removed in autoconf 3.0.
1256 esac 1209 esac
1257 done 1210 done
1258 1211
1259 if test -n "$ac_prev"; then 1212 if test -n "$ac_prev"; then
1260 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1213 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1261 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1214 as_fn_error "missing argument to $ac_option"
1262 { (exit 1); exit 1; }; }
1263 fi 1215 fi
1264 1216
1265 if test -n "$ac_unrecognized_opts"; then 1217 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in 1218 case $enable_option_checking in
1267 no) ;; 1219 no) ;;
1268 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1220 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1269 { (exit 1); exit 1; }; } ;; 1221 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1271 esac 1222 esac
1272 fi 1223 fi
1273 1224
1274 # Check all directory arguments for consistency. 1225 # Check all directory arguments for consistency.
1275 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1226 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1287 # Be sure to have absolute directory names. 1238 # Be sure to have absolute directory names.
1288 case $ac_val in 1239 case $ac_val in
1289 [\\/$]* | ?:[\\/]* ) continue;; 1240 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1241 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac 1242 esac
1292 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1243 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1293 { (exit 1); exit 1; }; }
1294 done 1244 done
1295 1245
1296 # There might be people who depend on the old broken behavior: `$host' 1246 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc. 1247 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day. 1248 # FIXME: To remove some day.
1318 1268
1319 1269
1320 ac_pwd=`pwd` && test -n "$ac_pwd" && 1270 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` && 1271 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1272 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1273 as_fn_error "working directory cannot be determined"
1324 { (exit 1); exit 1; }; }
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1274 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1275 as_fn_error "pwd does not report name of working directory"
1327 { (exit 1); exit 1; }; }
1328 1276
1329 1277
1330 # Find the source files, if location was not specified. 1278 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then 1279 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes 1280 ac_srcdir_defaulted=yes
1361 else 1309 else
1362 ac_srcdir_defaulted=no 1310 ac_srcdir_defaulted=no
1363 fi 1311 fi
1364 if test ! -r "$srcdir/$ac_unique_file"; then 1312 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1313 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1314 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1367 { (exit 1); exit 1; }; }
1368 fi 1315 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1316 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`( 1317 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1318 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1372 { (exit 1); exit 1; }; }
1373 pwd)` 1319 pwd)`
1374 # When building in place, set srcdir=. 1320 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then 1321 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=. 1322 srcdir=.
1377 fi 1323 fi
1545 CC C compiler command 1491 CC C compiler command
1546 CFLAGS C compiler flags 1492 CFLAGS C compiler flags
1547 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1493 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1548 nonstandard directory <lib dir> 1494 nonstandard directory <lib dir>
1549 LIBS libraries to pass to the linker, e.g. -l<library> 1495 LIBS libraries to pass to the linker, e.g. -l<library>
1550 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1496 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1551 you have headers in a nonstandard directory <include dir> 1497 you have headers in a nonstandard directory <include dir>
1552 CPP C preprocessor 1498 CPP C preprocessor
1553 XMKMF Path to xmkmf, Makefile generator for X Window System 1499 XMKMF Path to xmkmf, Makefile generator for X Window System
1554 1500
1555 Use these variables to override the choices made by `configure' or to help 1501 Use these variables to override the choices made by `configure' or to help
1556 it to find libraries and programs with nonstandard names/locations. 1502 it to find libraries and programs with nonstandard names/locations.
1557 1503
1504 Report bugs to the package provider.
1558 _ACEOF 1505 _ACEOF
1559 ac_status=$? 1506 ac_status=$?
1560 fi 1507 fi
1561 1508
1562 if test "$ac_init_help" = "recursive"; then 1509 if test "$ac_init_help" = "recursive"; then
1616 1563
1617 test -n "$ac_init_help" && exit $ac_status 1564 test -n "$ac_init_help" && exit $ac_status
1618 if $ac_init_version; then 1565 if $ac_init_version; then
1619 cat <<\_ACEOF 1566 cat <<\_ACEOF
1620 emacs configure 24.0.50 1567 emacs configure 24.0.50
1621 generated by GNU Autoconf 2.62 1568 generated by GNU Autoconf 2.65
1622 1569
1623 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1570 Copyright (C) 2009 Free Software Foundation, Inc.
1624 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1625 This configure script is free software; the Free Software Foundation 1571 This configure script is free software; the Free Software Foundation
1626 gives unlimited permission to copy, distribute and modify it. 1572 gives unlimited permission to copy, distribute and modify it.
1627 _ACEOF 1573 _ACEOF
1628 exit 1574 exit
1629 fi 1575 fi
1576
1577 ## ------------------------ ##
1578 ## Autoconf initialization. ##
1579 ## ------------------------ ##
1580
1581 # ac_fn_c_try_compile LINENO
1582 # --------------------------
1583 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1584 ac_fn_c_try_compile ()
1585 {
1586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1587 rm -f conftest.$ac_objext
1588 if { { ac_try="$ac_compile"
1589 case "(($ac_try" in
1590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1591 *) ac_try_echo=$ac_try;;
1592 esac
1593 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1594 $as_echo "$ac_try_echo"; } >&5
1595 (eval "$ac_compile") 2>conftest.err
1596 ac_status=$?
1597 if test -s conftest.err; then
1598 grep -v '^ *+' conftest.err >conftest.er1
1599 cat conftest.er1 >&5
1600 mv -f conftest.er1 conftest.err
1601 fi
1602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1603 test $ac_status = 0; } && {
1604 test -z "$ac_c_werror_flag" ||
1605 test ! -s conftest.err
1606 } && test -s conftest.$ac_objext; then :
1607 ac_retval=0
1608 else
1609 $as_echo "$as_me: failed program was:" >&5
1610 sed 's/^/| /' conftest.$ac_ext >&5
1611
1612 ac_retval=1
1613 fi
1614 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1615 as_fn_set_status $ac_retval
1616
1617 } # ac_fn_c_try_compile
1618
1619 # ac_fn_c_try_link LINENO
1620 # -----------------------
1621 # Try to link conftest.$ac_ext, and return whether this succeeded.
1622 ac_fn_c_try_link ()
1623 {
1624 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1625 rm -f conftest.$ac_objext conftest$ac_exeext
1626 if { { ac_try="$ac_link"
1627 case "(($ac_try" in
1628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1629 *) ac_try_echo=$ac_try;;
1630 esac
1631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1632 $as_echo "$ac_try_echo"; } >&5
1633 (eval "$ac_link") 2>conftest.err
1634 ac_status=$?
1635 if test -s conftest.err; then
1636 grep -v '^ *+' conftest.err >conftest.er1
1637 cat conftest.er1 >&5
1638 mv -f conftest.er1 conftest.err
1639 fi
1640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1641 test $ac_status = 0; } && {
1642 test -z "$ac_c_werror_flag" ||
1643 test ! -s conftest.err
1644 } && test -s conftest$ac_exeext && {
1645 test "$cross_compiling" = yes ||
1646 $as_test_x conftest$ac_exeext
1647 }; then :
1648 ac_retval=0
1649 else
1650 $as_echo "$as_me: failed program was:" >&5
1651 sed 's/^/| /' conftest.$ac_ext >&5
1652
1653 ac_retval=1
1654 fi
1655 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1656 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1657 # interfere with the next link command; also delete a directory that is
1658 # left behind by Apple's compiler. We do this before executing the actions.
1659 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1660 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1661 as_fn_set_status $ac_retval
1662
1663 } # ac_fn_c_try_link
1664
1665 # ac_fn_c_try_cpp LINENO
1666 # ----------------------
1667 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1668 ac_fn_c_try_cpp ()
1669 {
1670 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1671 if { { ac_try="$ac_cpp conftest.$ac_ext"
1672 case "(($ac_try" in
1673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1674 *) ac_try_echo=$ac_try;;
1675 esac
1676 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1677 $as_echo "$ac_try_echo"; } >&5
1678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1679 ac_status=$?
1680 if test -s conftest.err; then
1681 grep -v '^ *+' conftest.err >conftest.er1
1682 cat conftest.er1 >&5
1683 mv -f conftest.er1 conftest.err
1684 fi
1685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1686 test $ac_status = 0; } >/dev/null && {
1687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1688 test ! -s conftest.err
1689 }; then :
1690 ac_retval=0
1691 else
1692 $as_echo "$as_me: failed program was:" >&5
1693 sed 's/^/| /' conftest.$ac_ext >&5
1694
1695 ac_retval=1
1696 fi
1697 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1698 as_fn_set_status $ac_retval
1699
1700 } # ac_fn_c_try_cpp
1701
1702 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1703 # -------------------------------------------------------
1704 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1705 # the include files in INCLUDES and setting the cache variable VAR
1706 # accordingly.
1707 ac_fn_c_check_header_mongrel ()
1708 {
1709 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1710 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1714 $as_echo_n "(cached) " >&6
1715 fi
1716 eval ac_res=\$$3
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718 $as_echo "$ac_res" >&6; }
1719 else
1720 # Is the header compilable?
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1722 $as_echo_n "checking $2 usability... " >&6; }
1723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1724 /* end confdefs.h. */
1725 $4
1726 #include <$2>
1727 _ACEOF
1728 if ac_fn_c_try_compile "$LINENO"; then :
1729 ac_header_compiler=yes
1730 else
1731 ac_header_compiler=no
1732 fi
1733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1735 $as_echo "$ac_header_compiler" >&6; }
1736
1737 # Is the header present?
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1739 $as_echo_n "checking $2 presence... " >&6; }
1740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1741 /* end confdefs.h. */
1742 #include <$2>
1743 _ACEOF
1744 if ac_fn_c_try_cpp "$LINENO"; then :
1745 ac_header_preproc=yes
1746 else
1747 ac_header_preproc=no
1748 fi
1749 rm -f conftest.err conftest.$ac_ext
1750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1751 $as_echo "$ac_header_preproc" >&6; }
1752
1753 # So? What about this header?
1754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1755 yes:no: )
1756 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1757 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1759 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1760 ;;
1761 no:yes:* )
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1763 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1765 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1766 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1767 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1769 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1771 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1772 ;;
1773 esac
1774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1775 $as_echo_n "checking for $2... " >&6; }
1776 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1777 $as_echo_n "(cached) " >&6
1778 else
1779 eval "$3=\$ac_header_compiler"
1780 fi
1781 eval ac_res=\$$3
1782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1783 $as_echo "$ac_res" >&6; }
1784 fi
1785 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1786
1787 } # ac_fn_c_check_header_mongrel
1788
1789 # ac_fn_c_try_run LINENO
1790 # ----------------------
1791 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1792 # that executables *can* be run.
1793 ac_fn_c_try_run ()
1794 {
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 if { { ac_try="$ac_link"
1797 case "(($ac_try" in
1798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1799 *) ac_try_echo=$ac_try;;
1800 esac
1801 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1802 $as_echo "$ac_try_echo"; } >&5
1803 (eval "$ac_link") 2>&5
1804 ac_status=$?
1805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1806 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1807 { { case "(($ac_try" in
1808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1810 esac
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_try") 2>&5
1814 ac_status=$?
1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1816 test $ac_status = 0; }; }; then :
1817 ac_retval=0
1818 else
1819 $as_echo "$as_me: program exited with status $ac_status" >&5
1820 $as_echo "$as_me: failed program was:" >&5
1821 sed 's/^/| /' conftest.$ac_ext >&5
1822
1823 ac_retval=$ac_status
1824 fi
1825 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1826 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1827 as_fn_set_status $ac_retval
1828
1829 } # ac_fn_c_try_run
1830
1831 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1832 # -------------------------------------------------------
1833 # Tests whether HEADER exists and can be compiled using the include files in
1834 # INCLUDES, setting the cache variable VAR accordingly.
1835 ac_fn_c_check_header_compile ()
1836 {
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1839 $as_echo_n "checking for $2... " >&6; }
1840 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1841 $as_echo_n "(cached) " >&6
1842 else
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1845 $4
1846 #include <$2>
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 eval "$3=yes"
1850 else
1851 eval "$3=no"
1852 fi
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 fi
1855 eval ac_res=\$$3
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1857 $as_echo "$ac_res" >&6; }
1858 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1859
1860 } # ac_fn_c_check_header_compile
1861
1862 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1863 # ----------------------------------------------
1864 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1865 ac_fn_c_check_header_preproc ()
1866 {
1867 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1869 $as_echo_n "checking for $2... " >&6; }
1870 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1871 $as_echo_n "(cached) " >&6
1872 else
1873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1874 /* end confdefs.h. */
1875 #include <$2>
1876 _ACEOF
1877 if ac_fn_c_try_cpp "$LINENO"; then :
1878 eval "$3=yes"
1879 else
1880 eval "$3=no"
1881 fi
1882 rm -f conftest.err conftest.$ac_ext
1883 fi
1884 eval ac_res=\$$3
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1886 $as_echo "$ac_res" >&6; }
1887 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1888
1889 } # ac_fn_c_check_header_preproc
1890
1891 # ac_fn_c_check_decl LINENO SYMBOL VAR
1892 # ------------------------------------
1893 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1894 ac_fn_c_check_decl ()
1895 {
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1898 $as_echo_n "checking whether $2 is declared... " >&6; }
1899 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1903 /* end confdefs.h. */
1904 $4
1905 int
1906 main ()
1907 {
1908 #ifndef $2
1909 (void) $2;
1910 #endif
1911
1912 ;
1913 return 0;
1914 }
1915 _ACEOF
1916 if ac_fn_c_try_compile "$LINENO"; then :
1917 eval "$3=yes"
1918 else
1919 eval "$3=no"
1920 fi
1921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1922 fi
1923 eval ac_res=\$$3
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1925 $as_echo "$ac_res" >&6; }
1926 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1927
1928 } # ac_fn_c_check_decl
1929
1930 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1931 # ----------------------------------------------------
1932 # Tries to find if the field MEMBER exists in type AGGR, after including
1933 # INCLUDES, setting cache variable VAR accordingly.
1934 ac_fn_c_check_member ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1938 $as_echo_n "checking for $2.$3... " >&6; }
1939 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1940 $as_echo_n "(cached) " >&6
1941 else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 $5
1945 int
1946 main ()
1947 {
1948 static $2 ac_aggr;
1949 if (ac_aggr.$3)
1950 return 0;
1951 ;
1952 return 0;
1953 }
1954 _ACEOF
1955 if ac_fn_c_try_compile "$LINENO"; then :
1956 eval "$4=yes"
1957 else
1958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1959 /* end confdefs.h. */
1960 $5
1961 int
1962 main ()
1963 {
1964 static $2 ac_aggr;
1965 if (sizeof ac_aggr.$3)
1966 return 0;
1967 ;
1968 return 0;
1969 }
1970 _ACEOF
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 eval "$4=yes"
1973 else
1974 eval "$4=no"
1975 fi
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 fi
1978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1979 fi
1980 eval ac_res=\$$4
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1982 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1984
1985 } # ac_fn_c_check_member
1986
1987 # ac_fn_c_check_func LINENO FUNC VAR
1988 # ----------------------------------
1989 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1990 ac_fn_c_check_func ()
1991 {
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1994 $as_echo_n "checking for $2... " >&6; }
1995 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1996 $as_echo_n "(cached) " >&6
1997 else
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2002 #define $2 innocuous_$2
2003
2004 /* System header to define __stub macros and hopefully few prototypes,
2005 which can conflict with char $2 (); below.
2006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2007 <limits.h> exists even on freestanding compilers. */
2008
2009 #ifdef __STDC__
2010 # include <limits.h>
2011 #else
2012 # include <assert.h>
2013 #endif
2014
2015 #undef $2
2016
2017 /* Override any GCC internal prototype to avoid an error.
2018 Use char because int might match the return type of a GCC
2019 builtin and then its argument prototype would still apply. */
2020 #ifdef __cplusplus
2021 extern "C"
2022 #endif
2023 char $2 ();
2024 /* The GNU C library defines this for functions which it implements
2025 to always fail with ENOSYS. Some functions are actually named
2026 something starting with __ and the normal name is an alias. */
2027 #if defined __stub_$2 || defined __stub___$2
2028 choke me
2029 #endif
2030
2031 int
2032 main ()
2033 {
2034 return $2 ();
2035 ;
2036 return 0;
2037 }
2038 _ACEOF
2039 if ac_fn_c_try_link "$LINENO"; then :
2040 eval "$3=yes"
2041 else
2042 eval "$3=no"
2043 fi
2044 rm -f core conftest.err conftest.$ac_objext \
2045 conftest$ac_exeext conftest.$ac_ext
2046 fi
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2050 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2051
2052 } # ac_fn_c_check_func
2053
2054 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2055 # -------------------------------------------
2056 # Tests whether TYPE exists after having included INCLUDES, setting cache
2057 # variable VAR accordingly.
2058 ac_fn_c_check_type ()
2059 {
2060 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2062 $as_echo_n "checking for $2... " >&6; }
2063 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2064 $as_echo_n "(cached) " >&6
2065 else
2066 eval "$3=no"
2067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2068 /* end confdefs.h. */
2069 $4
2070 int
2071 main ()
2072 {
2073 if (sizeof ($2))
2074 return 0;
2075 ;
2076 return 0;
2077 }
2078 _ACEOF
2079 if ac_fn_c_try_compile "$LINENO"; then :
2080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2081 /* end confdefs.h. */
2082 $4
2083 int
2084 main ()
2085 {
2086 if (sizeof (($2)))
2087 return 0;
2088 ;
2089 return 0;
2090 }
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093
2094 else
2095 eval "$3=yes"
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 fi
2099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 fi
2101 eval ac_res=\$$3
2102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2103 $as_echo "$ac_res" >&6; }
2104 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2105
2106 } # ac_fn_c_check_type
1630 cat >config.log <<_ACEOF 2107 cat >config.log <<_ACEOF
1631 This file contains any messages produced by compilers while 2108 This file contains any messages produced by compilers while
1632 running configure, to aid debugging if configure makes a mistake. 2109 running configure, to aid debugging if configure makes a mistake.
1633 2110
1634 It was created by emacs $as_me 24.0.50, which was 2111 It was created by emacs $as_me 24.0.50, which was
1635 generated by GNU Autoconf 2.62. Invocation command line was 2112 generated by GNU Autoconf 2.65. Invocation command line was
1636 2113
1637 $ $0 $@ 2114 $ $0 $@
1638 2115
1639 _ACEOF 2116 _ACEOF
1640 exec 5>>config.log 2117 exec 5>>config.log
1666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1667 for as_dir in $PATH 2144 for as_dir in $PATH
1668 do 2145 do
1669 IFS=$as_save_IFS 2146 IFS=$as_save_IFS
1670 test -z "$as_dir" && as_dir=. 2147 test -z "$as_dir" && as_dir=.
1671 $as_echo "PATH: $as_dir" 2148 $as_echo "PATH: $as_dir"
1672 done 2149 done
1673 IFS=$as_save_IFS 2150 IFS=$as_save_IFS
1674 2151
1675 } >&5 2152 } >&5
1676 2153
1677 cat >&5 <<_ACEOF 2154 cat >&5 <<_ACEOF
1704 continue ;; 2181 continue ;;
1705 *\'*) 2182 *\'*)
1706 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2183 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1707 esac 2184 esac
1708 case $ac_pass in 2185 case $ac_pass in
1709 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2186 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1710 2) 2187 2)
1711 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 2188 as_fn_append ac_configure_args1 " '$ac_arg'"
1712 if test $ac_must_keep_next = true; then 2189 if test $ac_must_keep_next = true; then
1713 ac_must_keep_next=false # Got value, back to normal. 2190 ac_must_keep_next=false # Got value, back to normal.
1714 else 2191 else
1715 case $ac_arg in 2192 case $ac_arg in
1716 *=* | --config-cache | -C | -disable-* | --disable-* \ 2193 *=* | --config-cache | -C | -disable-* | --disable-* \
1722 esac 2199 esac
1723 ;; 2200 ;;
1724 -* ) ac_must_keep_next=true ;; 2201 -* ) ac_must_keep_next=true ;;
1725 esac 2202 esac
1726 fi 2203 fi
1727 ac_configure_args="$ac_configure_args '$ac_arg'" 2204 as_fn_append ac_configure_args " '$ac_arg'"
1728 ;; 2205 ;;
1729 esac 2206 esac
1730 done 2207 done
1731 done 2208 done
1732 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 2209 { ac_configure_args0=; unset ac_configure_args0;}
1733 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 2210 { ac_configure_args1=; unset ac_configure_args1;}
1734 2211
1735 # When interrupted or exit'd, cleanup temporary files, and complete 2212 # When interrupted or exit'd, cleanup temporary files, and complete
1736 # config.log. We remove comments because anyway the quotes in there 2213 # config.log. We remove comments because anyway the quotes in there
1737 # would cause problems or look ugly. 2214 # would cause problems or look ugly.
1738 # WARNING: Use '\'' to represent an apostrophe within the trap. 2215 # WARNING: Use '\'' to represent an apostrophe within the trap.
1753 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2230 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1754 eval ac_val=\$$ac_var 2231 eval ac_val=\$$ac_var
1755 case $ac_val in #( 2232 case $ac_val in #(
1756 *${as_nl}*) 2233 *${as_nl}*)
1757 case $ac_var in #( 2234 case $ac_var in #(
1758 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 2235 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1759 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 2236 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1760 esac 2237 esac
1761 case $ac_var in #( 2238 case $ac_var in #(
1762 _ | IFS | as_nl) ;; #( 2239 _ | IFS | as_nl) ;; #(
1763 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2240 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1764 *) $as_unset $ac_var ;; 2241 *) { eval $ac_var=; unset $ac_var;} ;;
1765 esac ;; 2242 esac ;;
1766 esac 2243 esac
1767 done 2244 done
1768 (set) 2>&1 | 2245 (set) 2>&1 |
1769 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2246 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1831 rm -f core *.core core.conftest.* && 2308 rm -f core *.core core.conftest.* &&
1832 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2309 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1833 exit $exit_status 2310 exit $exit_status
1834 ' 0 2311 ' 0
1835 for ac_signal in 1 2 13 15; do 2312 for ac_signal in 1 2 13 15; do
1836 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 2313 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1837 done 2314 done
1838 ac_signal=0 2315 ac_signal=0
1839 2316
1840 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2317 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1841 rm -f -r conftest* confdefs.h 2318 rm -f -r conftest* confdefs.h
1842 2319
2320 $as_echo "/* confdefs.h */" > confdefs.h
2321
1843 # Predefined preprocessor variables. 2322 # Predefined preprocessor variables.
1844 2323
1845 cat >>confdefs.h <<_ACEOF 2324 cat >>confdefs.h <<_ACEOF
1846 #define PACKAGE_NAME "$PACKAGE_NAME" 2325 #define PACKAGE_NAME "$PACKAGE_NAME"
1847 _ACEOF 2326 _ACEOF
1848 2327
1849
1850 cat >>confdefs.h <<_ACEOF 2328 cat >>confdefs.h <<_ACEOF
1851 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2329 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1852 _ACEOF 2330 _ACEOF
1853 2331
1854
1855 cat >>confdefs.h <<_ACEOF 2332 cat >>confdefs.h <<_ACEOF
1856 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2333 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1857 _ACEOF 2334 _ACEOF
1858 2335
1859
1860 cat >>confdefs.h <<_ACEOF 2336 cat >>confdefs.h <<_ACEOF
1861 #define PACKAGE_STRING "$PACKAGE_STRING" 2337 #define PACKAGE_STRING "$PACKAGE_STRING"
1862 _ACEOF 2338 _ACEOF
1863 2339
1864
1865 cat >>confdefs.h <<_ACEOF 2340 cat >>confdefs.h <<_ACEOF
1866 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2341 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2342 _ACEOF
2343
2344 cat >>confdefs.h <<_ACEOF
2345 #define PACKAGE_URL "$PACKAGE_URL"
1867 _ACEOF 2346 _ACEOF
1868 2347
1869 2348
1870 # Let the site file select an alternate cache file if it wants to. 2349 # Let the site file select an alternate cache file if it wants to.
1871 # Prefer an explicitly selected file to automatically selected ones. 2350 # Prefer an explicitly selected file to automatically selected ones.
1881 ac_site_file2=$ac_default_prefix/etc/config.site 2360 ac_site_file2=$ac_default_prefix/etc/config.site
1882 fi 2361 fi
1883 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2362 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1884 do 2363 do
1885 test "x$ac_site_file" = xNONE && continue 2364 test "x$ac_site_file" = xNONE && continue
1886 if test -r "$ac_site_file"; then 2365 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1887 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 2366 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1888 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2367 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1889 sed 's/^/| /' "$ac_site_file" >&5 2368 sed 's/^/| /' "$ac_site_file" >&5
1890 . "$ac_site_file" 2369 . "$ac_site_file"
1891 fi 2370 fi
1892 done 2371 done
1893 2372
1894 if test -r "$cache_file"; then 2373 if test -r "$cache_file"; then
1895 # Some versions of bash will fail to source /dev/null (special 2374 # Some versions of bash will fail to source /dev/null (special files
1896 # files actually), so we avoid doing that. 2375 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1897 if test -f "$cache_file"; then 2376 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1898 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1899 $as_echo "$as_me: loading cache $cache_file" >&6;} 2378 $as_echo "$as_me: loading cache $cache_file" >&6;}
1900 case $cache_file in 2379 case $cache_file in
1901 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2380 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1902 *) . "./$cache_file";; 2381 *) . "./$cache_file";;
1903 esac 2382 esac
1904 fi 2383 fi
1905 else 2384 else
1906 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 2385 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1907 $as_echo "$as_me: creating cache $cache_file" >&6;} 2386 $as_echo "$as_me: creating cache $cache_file" >&6;}
1908 >$cache_file 2387 >$cache_file
1909 fi 2388 fi
1910 2389
1911 ac_header_list="$ac_header_list sys/time.h" 2390 as_fn_append ac_header_list " stdlib.h"
1912 ac_header_list="$ac_header_list unistd.h" 2391 as_fn_append ac_header_list " unistd.h"
1913 ac_func_list="$ac_func_list alarm" 2392 as_fn_append ac_header_list " sys/param.h"
2393 as_fn_append ac_header_list " sys/time.h"
2394 as_fn_append ac_func_list " alarm"
1914 # Check that the precious variables saved in the cache have kept the same 2395 # Check that the precious variables saved in the cache have kept the same
1915 # value. 2396 # value.
1916 ac_cache_corrupted=false 2397 ac_cache_corrupted=false
1917 for ac_var in $ac_precious_vars; do 2398 for ac_var in $ac_precious_vars; do
1918 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2399 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1919 eval ac_new_set=\$ac_env_${ac_var}_set 2400 eval ac_new_set=\$ac_env_${ac_var}_set
1920 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2401 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1921 eval ac_new_val=\$ac_env_${ac_var}_value 2402 eval ac_new_val=\$ac_env_${ac_var}_value
1922 case $ac_old_set,$ac_new_set in 2403 case $ac_old_set,$ac_new_set in
1923 set,) 2404 set,)
1924 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1925 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2406 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1926 ac_cache_corrupted=: ;; 2407 ac_cache_corrupted=: ;;
1927 ,set) 2408 ,set)
1928 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2409 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1929 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2410 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1930 ac_cache_corrupted=: ;; 2411 ac_cache_corrupted=: ;;
1931 ,);; 2412 ,);;
1932 *) 2413 *)
1933 if test "x$ac_old_val" != "x$ac_new_val"; then 2414 if test "x$ac_old_val" != "x$ac_new_val"; then
1934 # differences in whitespace do not lead to failure. 2415 # differences in whitespace do not lead to failure.
1935 ac_old_val_w=`echo x $ac_old_val` 2416 ac_old_val_w=`echo x $ac_old_val`
1936 ac_new_val_w=`echo x $ac_new_val` 2417 ac_new_val_w=`echo x $ac_new_val`
1937 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2418 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1938 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2419 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1939 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2420 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1940 ac_cache_corrupted=: 2421 ac_cache_corrupted=:
1941 else 2422 else
1942 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2423 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1943 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2424 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1944 eval $ac_var=\$ac_old_val 2425 eval $ac_var=\$ac_old_val
1945 fi 2426 fi
1946 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2427 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1947 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2428 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1948 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2429 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1949 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2430 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1950 fi;; 2431 fi;;
1951 esac 2432 esac
1952 # Pass precious variables to config.status. 2433 # Pass precious variables to config.status.
1953 if test "$ac_new_set" = set; then 2434 if test "$ac_new_set" = set; then
1955 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2436 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1956 *) ac_arg=$ac_var=$ac_new_val ;; 2437 *) ac_arg=$ac_var=$ac_new_val ;;
1957 esac 2438 esac
1958 case " $ac_configure_args " in 2439 case " $ac_configure_args " in
1959 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2440 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1960 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2441 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1961 esac 2442 esac
1962 fi 2443 fi
1963 done 2444 done
1964 if $ac_cache_corrupted; then 2445 if $ac_cache_corrupted; then
1965 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1966 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2449 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1967 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2450 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1968 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2451 fi
1969 { (exit 1); exit 1; }; } 2452 ## -------------------- ##
1970 fi 2453 ## Main body of script. ##
1971 2454 ## -------------------- ##
1972
1973
1974
1975
1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995 2455
1996 ac_ext=c 2456 ac_ext=c
1997 ac_cpp='$CPP $CPPFLAGS' 2457 ac_cpp='$CPP $CPPFLAGS'
1998 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1999 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2028 2488
2029 2489
2030 2490
2031 2491
2032 # Check whether --with-pop was given. 2492 # Check whether --with-pop was given.
2033 if test "${with_pop+set}" = set; then 2493 if test "${with_pop+set}" = set; then :
2034 withval=$with_pop; 2494 withval=$with_pop;
2035 else 2495 else
2036 with_pop=yes 2496 with_pop=yes
2037 fi 2497 fi
2038 2498
2039 if test "$with_pop" = yes; then 2499 if test "$with_pop" = yes; then
2040 cat >>confdefs.h <<\_ACEOF 2500 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2041 #define MAIL_USE_POP 1 2501
2042 _ACEOF 2502 fi
2043
2044 fi
2045
2046 2503
2047 2504
2048 # Check whether --with-kerberos was given. 2505 # Check whether --with-kerberos was given.
2049 if test "${with_kerberos+set}" = set; then 2506 if test "${with_kerberos+set}" = set; then :
2050 withval=$with_kerberos; 2507 withval=$with_kerberos;
2051 else 2508 else
2052 with_kerberos=no 2509 with_kerberos=no
2053 fi 2510 fi
2054 2511
2055 if test "$with_kerberos" != no; then 2512 if test "$with_kerberos" != no; then
2056 cat >>confdefs.h <<\_ACEOF 2513 $as_echo "#define KERBEROS 1" >>confdefs.h
2057 #define KERBEROS 1 2514
2058 _ACEOF 2515 fi
2059
2060 fi
2061
2062 2516
2063 2517
2064 # Check whether --with-kerberos5 was given. 2518 # Check whether --with-kerberos5 was given.
2065 if test "${with_kerberos5+set}" = set; then 2519 if test "${with_kerberos5+set}" = set; then :
2066 withval=$with_kerberos5; 2520 withval=$with_kerberos5;
2067 else 2521 else
2068 with_kerberos5=no 2522 with_kerberos5=no
2069 fi 2523 fi
2070 2524
2071 if test "${with_kerberos5}" != no; then 2525 if test "${with_kerberos5}" != no; then
2072 if test "${with_kerberos}" = no; then 2526 if test "${with_kerberos}" = no; then
2073 with_kerberos=yes 2527 with_kerberos=yes
2074 cat >>confdefs.h <<\_ACEOF 2528 $as_echo "#define KERBEROS 1" >>confdefs.h
2075 #define KERBEROS 1
2076 _ACEOF
2077 2529
2078 fi 2530 fi
2079 2531
2080 cat >>confdefs.h <<\_ACEOF 2532 $as_echo "#define KERBEROS5 1" >>confdefs.h
2081 #define KERBEROS5 1
2082 _ACEOF
2083 2533
2084 fi 2534 fi
2085 2535
2086 2536
2087 # Check whether --with-hesiod was given. 2537 # Check whether --with-hesiod was given.
2088 if test "${with_hesiod+set}" = set; then 2538 if test "${with_hesiod+set}" = set; then :
2089 withval=$with_hesiod; 2539 withval=$with_hesiod;
2090 else 2540 else
2091 with_hesiod=no 2541 with_hesiod=no
2092 fi 2542 fi
2093 2543
2094 if test "$with_hesiod" != no; then 2544 if test "$with_hesiod" != no; then
2095 2545
2096 cat >>confdefs.h <<\_ACEOF 2546 $as_echo "#define HESIOD 1" >>confdefs.h
2097 #define HESIOD 1
2098 _ACEOF
2099 2547
2100 fi 2548 fi
2101 2549
2102 2550
2103 # Check whether --with-mmdf was given. 2551 # Check whether --with-mmdf was given.
2104 if test "${with_mmdf+set}" = set; then 2552 if test "${with_mmdf+set}" = set; then :
2105 withval=$with_mmdf; 2553 withval=$with_mmdf;
2106 else 2554 else
2107 with_mmdf=no 2555 with_mmdf=no
2108 fi 2556 fi
2109 2557
2110 if test "$with_mmdf" != no; then 2558 if test "$with_mmdf" != no; then
2111 2559
2112 cat >>confdefs.h <<\_ACEOF 2560 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2113 #define MAIL_USE_MMDF 1
2114 _ACEOF
2115 2561
2116 fi 2562 fi
2117 2563
2118 2564
2119 # Check whether --with-mail-unlink was given. 2565 # Check whether --with-mail-unlink was given.
2120 if test "${with_mail_unlink+set}" = set; then 2566 if test "${with_mail_unlink+set}" = set; then :
2121 withval=$with_mail_unlink; 2567 withval=$with_mail_unlink;
2122 else 2568 else
2123 with_mail_unlink=no 2569 with_mail_unlink=no
2124 fi 2570 fi
2125 2571
2126 if test "$with_mail_unlink" != no; then 2572 if test "$with_mail_unlink" != no; then
2127 2573
2128 cat >>confdefs.h <<\_ACEOF 2574 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2129 #define MAIL_UNLINK_SPOOL 1
2130 _ACEOF
2131 2575
2132 fi 2576 fi
2133 2577
2134 2578
2135 # Check whether --with-mailhost was given. 2579 # Check whether --with-mailhost was given.
2136 if test "${with_mailhost+set}" = set; then 2580 if test "${with_mailhost+set}" = set; then :
2137 withval=$with_mailhost; 2581 withval=$with_mailhost;
2138 cat >>confdefs.h <<_ACEOF 2582 cat >>confdefs.h <<_ACEOF
2139 #define MAILHOST "$withval" 2583 #define MAILHOST "$withval"
2140 _ACEOF 2584 _ACEOF
2141 2585
2142 fi 2586 fi
2143 2587
2144 2588
2145 2589
2146 # Check whether --with-sound was given. 2590 # Check whether --with-sound was given.
2147 if test "${with_sound+set}" = set; then 2591 if test "${with_sound+set}" = set; then :
2148 withval=$with_sound; 2592 withval=$with_sound;
2149 else 2593 else
2150 with_sound=yes 2594 with_sound=yes
2151 fi 2595 fi
2152 2596
2153 2597
2154 2598
2155 # Check whether --with-sync-input was given. 2599 # Check whether --with-sync-input was given.
2156 if test "${with_sync_input+set}" = set; then 2600 if test "${with_sync_input+set}" = set; then :
2157 withval=$with_sync_input; 2601 withval=$with_sync_input;
2158 else 2602 else
2159 with_sync_input=yes 2603 with_sync_input=yes
2160 fi 2604 fi
2161 2605
2162 if test "$with_sync_input" = yes; then 2606 if test "$with_sync_input" = yes; then
2163 2607
2164 cat >>confdefs.h <<\_ACEOF 2608 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2165 #define SYNC_INPUT 1
2166 _ACEOF
2167 2609
2168 fi 2610 fi
2169 2611
2170 2612
2171 # Check whether --with-x-toolkit was given. 2613 # Check whether --with-x-toolkit was given.
2172 if test "${with_x_toolkit+set}" = set; then 2614 if test "${with_x_toolkit+set}" = set; then :
2173 withval=$with_x_toolkit; case "${withval}" in 2615 withval=$with_x_toolkit; case "${withval}" in
2174 y | ye | yes ) val=gtk ;; 2616 y | ye | yes ) val=gtk ;;
2175 n | no ) val=no ;; 2617 n | no ) val=no ;;
2176 l | lu | luc | luci | lucid ) val=lucid ;; 2618 l | lu | luc | luci | lucid ) val=lucid ;;
2177 a | at | ath | athe | athen | athena ) val=athena ;; 2619 a | at | ath | athe | athen | athena ) val=athena ;;
2178 m | mo | mot | moti | motif ) val=motif ;; 2620 m | mo | mot | moti | motif ) val=motif ;;
2179 g | gt | gtk ) val=gtk ;; 2621 g | gt | gtk ) val=gtk ;;
2180 * ) 2622 * )
2181 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid; 2623 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2182 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. 2624 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2183 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5 2625 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2184 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2185 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2186 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2187 { (exit 1); exit 1; }; }
2188 ;; 2626 ;;
2189 esac 2627 esac
2190 with_x_toolkit=$val 2628 with_x_toolkit=$val
2191 2629
2192 fi 2630 fi
2193 2631
2194 2632
2195 2633
2196 # Check whether --with-xpm was given. 2634 # Check whether --with-xpm was given.
2197 if test "${with_xpm+set}" = set; then 2635 if test "${with_xpm+set}" = set; then :
2198 withval=$with_xpm; 2636 withval=$with_xpm;
2199 else 2637 else
2200 with_xpm=yes 2638 with_xpm=yes
2201 fi 2639 fi
2202 2640
2203 2641
2204 # Check whether --with-jpeg was given. 2642 # Check whether --with-jpeg was given.
2205 if test "${with_jpeg+set}" = set; then 2643 if test "${with_jpeg+set}" = set; then :
2206 withval=$with_jpeg; 2644 withval=$with_jpeg;
2207 else 2645 else
2208 with_jpeg=yes 2646 with_jpeg=yes
2209 fi 2647 fi
2210 2648
2211 2649
2212 # Check whether --with-tiff was given. 2650 # Check whether --with-tiff was given.
2213 if test "${with_tiff+set}" = set; then 2651 if test "${with_tiff+set}" = set; then :
2214 withval=$with_tiff; 2652 withval=$with_tiff;
2215 else 2653 else
2216 with_tiff=yes 2654 with_tiff=yes
2217 fi 2655 fi
2218 2656
2219 2657
2220 # Check whether --with-gif was given. 2658 # Check whether --with-gif was given.
2221 if test "${with_gif+set}" = set; then 2659 if test "${with_gif+set}" = set; then :
2222 withval=$with_gif; 2660 withval=$with_gif;
2223 else 2661 else
2224 with_gif=yes 2662 with_gif=yes
2225 fi 2663 fi
2226 2664
2227 2665
2228 # Check whether --with-png was given. 2666 # Check whether --with-png was given.
2229 if test "${with_png+set}" = set; then 2667 if test "${with_png+set}" = set; then :
2230 withval=$with_png; 2668 withval=$with_png;
2231 else 2669 else
2232 with_png=yes 2670 with_png=yes
2233 fi 2671 fi
2234 2672
2235 2673
2236 # Check whether --with-rsvg was given. 2674 # Check whether --with-rsvg was given.
2237 if test "${with_rsvg+set}" = set; then 2675 if test "${with_rsvg+set}" = set; then :
2238 withval=$with_rsvg; 2676 withval=$with_rsvg;
2239 else 2677 else
2240 with_rsvg=yes 2678 with_rsvg=yes
2241 fi 2679 fi
2242 2680
2243 2681
2244 2682
2245 # Check whether --with-xft was given. 2683 # Check whether --with-xft was given.
2246 if test "${with_xft+set}" = set; then 2684 if test "${with_xft+set}" = set; then :
2247 withval=$with_xft; 2685 withval=$with_xft;
2248 else 2686 else
2249 with_xft=yes 2687 with_xft=yes
2250 fi 2688 fi
2251 2689
2252 2690
2253 # Check whether --with-libotf was given. 2691 # Check whether --with-libotf was given.
2254 if test "${with_libotf+set}" = set; then 2692 if test "${with_libotf+set}" = set; then :
2255 withval=$with_libotf; 2693 withval=$with_libotf;
2256 else 2694 else
2257 with_libotf=yes 2695 with_libotf=yes
2258 fi 2696 fi
2259 2697
2260 2698
2261 # Check whether --with-m17n-flt was given. 2699 # Check whether --with-m17n-flt was given.
2262 if test "${with_m17n_flt+set}" = set; then 2700 if test "${with_m17n_flt+set}" = set; then :
2263 withval=$with_m17n_flt; 2701 withval=$with_m17n_flt;
2264 else 2702 else
2265 with_m17n_flt=yes 2703 with_m17n_flt=yes
2266 fi 2704 fi
2267 2705
2268 2706
2269 2707
2270 # Check whether --with-toolkit-scroll-bars was given. 2708 # Check whether --with-toolkit-scroll-bars was given.
2271 if test "${with_toolkit_scroll_bars+set}" = set; then 2709 if test "${with_toolkit_scroll_bars+set}" = set; then :
2272 withval=$with_toolkit_scroll_bars; 2710 withval=$with_toolkit_scroll_bars;
2273 else 2711 else
2274 with_toolkit_scroll_bars=yes 2712 with_toolkit_scroll_bars=yes
2275 fi 2713 fi
2276 2714
2277 2715
2278 # Check whether --with-xaw3d was given. 2716 # Check whether --with-xaw3d was given.
2279 if test "${with_xaw3d+set}" = set; then 2717 if test "${with_xaw3d+set}" = set; then :
2280 withval=$with_xaw3d; 2718 withval=$with_xaw3d;
2281 else 2719 else
2282 with_xaw3d=yes 2720 with_xaw3d=yes
2283 fi 2721 fi
2284 2722
2285 2723
2286 # Check whether --with-xim was given. 2724 # Check whether --with-xim was given.
2287 if test "${with_xim+set}" = set; then 2725 if test "${with_xim+set}" = set; then :
2288 withval=$with_xim; 2726 withval=$with_xim;
2289 else 2727 else
2290 with_xim=yes 2728 with_xim=yes
2291 fi 2729 fi
2292 2730
2293 2731
2294 # Check whether --with-ns was given. 2732 # Check whether --with-ns was given.
2295 if test "${with_ns+set}" = set; then 2733 if test "${with_ns+set}" = set; then :
2296 withval=$with_ns; 2734 withval=$with_ns;
2297 else 2735 else
2298 with_ns=no 2736 with_ns=no
2299 fi 2737 fi
2300 2738
2301 2739
2302 2740
2303 # Check whether --with-gpm was given. 2741 # Check whether --with-gpm was given.
2304 if test "${with_gpm+set}" = set; then 2742 if test "${with_gpm+set}" = set; then :
2305 withval=$with_gpm; 2743 withval=$with_gpm;
2306 else 2744 else
2307 with_gpm=yes 2745 with_gpm=yes
2308 fi 2746 fi
2309 2747
2310 2748
2311 # Check whether --with-dbus was given. 2749 # Check whether --with-dbus was given.
2312 if test "${with_dbus+set}" = set; then 2750 if test "${with_dbus+set}" = set; then :
2313 withval=$with_dbus; 2751 withval=$with_dbus;
2314 else 2752 else
2315 with_dbus=yes 2753 with_dbus=yes
2316 fi 2754 fi
2317 2755
2318 2756
2319 # Check whether --with-gconf was given. 2757 # Check whether --with-gconf was given.
2320 if test "${with_gconf+set}" = set; then 2758 if test "${with_gconf+set}" = set; then :
2321 withval=$with_gconf; 2759 withval=$with_gconf;
2322 else 2760 else
2323 with_gconf=yes 2761 with_gconf=yes
2324 fi 2762 fi
2325 2763
2326 2764
2327 # Check whether --with-selinux was given. 2765 # Check whether --with-selinux was given.
2328 if test "${with_selinux+set}" = set; then 2766 if test "${with_selinux+set}" = set; then :
2329 withval=$with_selinux; 2767 withval=$with_selinux;
2330 else 2768 else
2331 with_selinux=yes 2769 with_selinux=yes
2332 fi 2770 fi
2333 2771
2334 2772
2335 ## For the times when you want to build Emacs but don't have 2773 ## For the times when you want to build Emacs but don't have
2336 ## a suitable makeinfo, and can live without the manuals. 2774 ## a suitable makeinfo, and can live without the manuals.
2337 2775
2338 # Check whether --with-makeinfo was given. 2776 # Check whether --with-makeinfo was given.
2339 if test "${with_makeinfo+set}" = set; then 2777 if test "${with_makeinfo+set}" = set; then :
2340 withval=$with_makeinfo; 2778 withval=$with_makeinfo;
2341 else 2779 else
2342 with_makeinfo=yes 2780 with_makeinfo=yes
2343 fi 2781 fi
2344 2782
2345 2783
2346 2784
2347 # Check whether --with-gtk was given. 2785 # Check whether --with-gtk was given.
2348 if test "${with_gtk+set}" = set; then 2786 if test "${with_gtk+set}" = set; then :
2349 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to 2787 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to
2350 specify a toolkit." >&5 2788 specify a toolkit." "$LINENO" 5
2351 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2352 specify a toolkit." >&2;}
2353 { (exit 1); exit 1; }; }
2354 fi 2789 fi
2355 2790
2356 2791
2357 2792
2358 # Check whether --with-gcc was given. 2793 # Check whether --with-gcc was given.
2359 if test "${with_gcc+set}" = set; then 2794 if test "${with_gcc+set}" = set; then :
2360 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment 2795 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment
2361 variable to specify a compiler." >&5 2796 variable to specify a compiler." "$LINENO" 5
2362 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2363 variable to specify a compiler." >&2;}
2364 { (exit 1); exit 1; }; }
2365 fi 2797 fi
2366 2798
2367 2799
2368 2800
2369 # Check whether --with-pkg-config-prog was given. 2801 # Check whether --with-pkg-config-prog was given.
2370 if test "${with_pkg_config_prog+set}" = set; then 2802 if test "${with_pkg_config_prog+set}" = set; then :
2371 withval=$with_pkg_config_prog; 2803 withval=$with_pkg_config_prog;
2372 fi 2804 fi
2373 2805
2374 if test "X${with_pkg_config_prog}" != X; then 2806 if test "X${with_pkg_config_prog}" != X; then
2375 if test "${with_pkg_config_prog}" != yes; then 2807 if test "${with_pkg_config_prog}" != yes; then
2377 fi 2809 fi
2378 fi 2810 fi
2379 2811
2380 2812
2381 # Check whether --with-gnustep-conf was given. 2813 # Check whether --with-gnustep-conf was given.
2382 if test "${with_gnustep_conf+set}" = set; then 2814 if test "${with_gnustep_conf+set}" = set; then :
2383 withval=$with_gnustep_conf; 2815 withval=$with_gnustep_conf;
2384 fi 2816 fi
2385 2817
2386 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \ 2818 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2387 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}" 2819 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2388 test "X$GNUSTEP_CONFIG_FILE" = "X" && \ 2820 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2389 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf 2821 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2390 2822
2391 # Check whether --enable-ns-self-contained was given. 2823 # Check whether --enable-ns-self-contained was given.
2392 if test "${enable_ns_self_contained+set}" = set; then 2824 if test "${enable_ns_self_contained+set}" = set; then :
2393 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval 2825 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2394 else 2826 else
2395 EN_NS_SELF_CONTAINED=yes 2827 EN_NS_SELF_CONTAINED=yes
2396 fi 2828 fi
2397 2829
2398 2830
2399 # Check whether --enable-asserts was given. 2831 # Check whether --enable-asserts was given.
2400 if test "${enable_asserts+set}" = set; then 2832 if test "${enable_asserts+set}" = set; then :
2401 enableval=$enable_asserts; USE_XASSERTS=$enableval 2833 enableval=$enable_asserts; USE_XASSERTS=$enableval
2402 else 2834 else
2403 USE_XASSERTS=no 2835 USE_XASSERTS=no
2404 fi 2836 fi
2405 2837
2406 2838
2407 # Check whether --enable-maintainer-mode was given. 2839 # Check whether --enable-maintainer-mode was given.
2408 if test "${enable_maintainer_mode+set}" = set; then 2840 if test "${enable_maintainer_mode+set}" = set; then :
2409 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2841 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2410 else 2842 else
2411 USE_MAINTAINER_MODE=no 2843 USE_MAINTAINER_MODE=no
2412 fi 2844 fi
2413 2845
2417 MAINT=# 2849 MAINT=#
2418 fi 2850 fi
2419 2851
2420 2852
2421 # Check whether --enable-locallisppath was given. 2853 # Check whether --enable-locallisppath was given.
2422 if test "${enable_locallisppath+set}" = set; then 2854 if test "${enable_locallisppath+set}" = set; then :
2423 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then 2855 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2424 locallisppath= 2856 locallisppath=
2425 elif test "${enableval}" != "yes"; then 2857 elif test "${enableval}" != "yes"; then
2426 locallisppath=${enableval} 2858 locallisppath=${enableval}
2427 fi 2859 fi
2428 fi 2860 fi
2429 2861
2430 2862
2431 # Check whether --enable-checking was given. 2863 # Check whether --enable-checking was given.
2432 if test "${enable_checking+set}" = set; then 2864 if test "${enable_checking+set}" = set; then :
2433 enableval=$enable_checking; ac_checking_flags="${enableval}" 2865 enableval=$enable_checking; ac_checking_flags="${enableval}"
2434 fi 2866 fi
2435 2867
2436 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," 2868 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2437 for check in $ac_checking_flags 2869 for check in $ac_checking_flags
2455 stringbytes) ac_gc_check_stringbytes=1 ;; 2887 stringbytes) ac_gc_check_stringbytes=1 ;;
2456 stringoverrun) ac_gc_check_string_overrun=1 ;; 2888 stringoverrun) ac_gc_check_string_overrun=1 ;;
2457 stringfreelist) ac_gc_check_string_free_list=1 ;; 2889 stringfreelist) ac_gc_check_string_free_list=1 ;;
2458 xmallocoverrun) ac_xmalloc_overrun=1 ;; 2890 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2459 conslist) ac_gc_check_cons_list=1 ;; 2891 conslist) ac_gc_check_cons_list=1 ;;
2460 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5 2892 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2461 $as_echo "$as_me: error: unknown check category $check" >&2;}
2462 { (exit 1); exit 1; }; } ;;
2463 esac 2893 esac
2464 done 2894 done
2465 IFS="$ac_save_IFS" 2895 IFS="$ac_save_IFS"
2466 2896
2467 if test x$ac_enable_checking != x ; then 2897 if test x$ac_enable_checking != x ; then
2468 2898
2469 cat >>confdefs.h <<\_ACEOF 2899 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2470 #define ENABLE_CHECKING 1
2471 _ACEOF
2472 2900
2473 fi 2901 fi
2474 if test x$ac_gc_check_stringbytes != x ; then 2902 if test x$ac_gc_check_stringbytes != x ; then
2475 2903
2476 cat >>confdefs.h <<\_ACEOF 2904 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2477 #define GC_CHECK_STRING_BYTES 1
2478 _ACEOF
2479 2905
2480 fi 2906 fi
2481 if test x$ac_gc_check_stringoverrun != x ; then 2907 if test x$ac_gc_check_stringoverrun != x ; then
2482 2908
2483 cat >>confdefs.h <<\_ACEOF 2909 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2484 #define GC_CHECK_STRING_OVERRUN 1
2485 _ACEOF
2486 2910
2487 fi 2911 fi
2488 if test x$ac_gc_check_string_free_list != x ; then 2912 if test x$ac_gc_check_string_free_list != x ; then
2489 2913
2490 cat >>confdefs.h <<\_ACEOF 2914 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2491 #define GC_CHECK_STRING_FREE_LIST 1
2492 _ACEOF
2493 2915
2494 fi 2916 fi
2495 if test x$ac_xmalloc_overrun != x ; then 2917 if test x$ac_xmalloc_overrun != x ; then
2496 2918
2497 cat >>confdefs.h <<\_ACEOF 2919 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2498 #define XMALLOC_OVERRUN_CHECK 1
2499 _ACEOF
2500 2920
2501 fi 2921 fi
2502 if test x$ac_gc_check_cons_list != x ; then 2922 if test x$ac_gc_check_cons_list != x ; then
2503 2923
2504 cat >>confdefs.h <<\_ACEOF 2924 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2505 #define GC_CHECK_CONS_LIST 1
2506 _ACEOF
2507 2925
2508 fi 2926 fi
2509 2927
2510 # Check whether --enable-profiling was given. 2928 # Check whether --enable-profiling was given.
2511 if test "${enable_profiling+set}" = set; then 2929 if test "${enable_profiling+set}" = set; then :
2512 enableval=$enable_profiling; ac_enable_profiling="${enableval}" 2930 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2513 fi 2931 fi
2514 2932
2515 if test x$ac_enable_profiling != x ; then 2933 if test x$ac_enable_profiling != x ; then
2516 PROFILING_CFLAGS="-DPROFILING=1 -pg" 2934 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2519 PROFILING_CFLAGS= 2937 PROFILING_CFLAGS=
2520 PROFILING_LDFLAGS= 2938 PROFILING_LDFLAGS=
2521 fi 2939 fi
2522 2940
2523 # Check whether --enable-autodepend was given. 2941 # Check whether --enable-autodepend was given.
2524 if test "${enable_autodepend+set}" = set; then 2942 if test "${enable_autodepend+set}" = set; then :
2525 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" 2943 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2526 else 2944 else
2527 ac_enable_autodepend=yes 2945 ac_enable_autodepend=yes
2528 fi 2946 fi
2529 2947
2553 esac 2971 esac
2554 2972
2555 #### Check if the source directory already has a configured system in it. 2973 #### Check if the source directory already has a configured system in it.
2556 if test `pwd` != `(cd ${srcdir} && pwd)` \ 2974 if test `pwd` != `(cd ${srcdir} && pwd)` \
2557 && test -f "${srcdir}/src/config.h" ; then 2975 && test -f "${srcdir}/src/config.h" ; then
2558 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used 2976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
2559 as a build directory right now; it has been configured in its own 2977 as a build directory right now; it has been configured in its own
2560 right. To configure in another directory as well, you MUST 2978 right. To configure in another directory as well, you MUST
2561 use GNU make. If you do not have GNU make, then you must 2979 use GNU make. If you do not have GNU make, then you must
2562 now do \`make distclean' in ${srcdir}, 2980 now do \`make distclean' in ${srcdir},
2563 and then run $0 again." >&5 2981 and then run $0 again." >&5
2574 2992
2575 ### Canonicalize the configuration name. 2993 ### Canonicalize the configuration name.
2576 2994
2577 ac_aux_dir= 2995 ac_aux_dir=
2578 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2996 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2579 if test -f "$ac_dir/install-sh"; then 2997 for ac_t in install-sh install.sh shtool; do
2580 ac_aux_dir=$ac_dir 2998 if test -f "$ac_dir/$ac_t"; then
2581 ac_install_sh="$ac_aux_dir/install-sh -c" 2999 ac_aux_dir=$ac_dir
2582 break 3000 ac_install_sh="$ac_aux_dir/$ac_t -c"
2583 elif test -f "$ac_dir/install.sh"; then 3001 break 2
2584 ac_aux_dir=$ac_dir 3002 fi
2585 ac_install_sh="$ac_aux_dir/install.sh -c" 3003 done
2586 break
2587 elif test -f "$ac_dir/shtool"; then
2588 ac_aux_dir=$ac_dir
2589 ac_install_sh="$ac_aux_dir/shtool install -c"
2590 break
2591 fi
2592 done 3004 done
2593 if test -z "$ac_aux_dir"; then 3005 if test -z "$ac_aux_dir"; then
2594 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 3006 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2595 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2596 { (exit 1); exit 1; }; }
2597 fi 3007 fi
2598 3008
2599 # These three variables are undocumented and unsupported, 3009 # These three variables are undocumented and unsupported,
2600 # and are intended to be withdrawn in a future Autoconf release. 3010 # and are intended to be withdrawn in a future Autoconf release.
2601 # They can cause serious problems if a builder's source tree is in a directory 3011 # They can cause serious problems if a builder's source tree is in a directory
2605 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3015 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2606 3016
2607 3017
2608 # Make sure we can run config.sub. 3018 # Make sure we can run config.sub.
2609 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3019 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2610 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3020 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2611 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3021
2612 { (exit 1); exit 1; }; } 3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2613
2614 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2615 $as_echo_n "checking build system type... " >&6; } 3023 $as_echo_n "checking build system type... " >&6; }
2616 if test "${ac_cv_build+set}" = set; then 3024 if test "${ac_cv_build+set}" = set; then :
2617 $as_echo_n "(cached) " >&6 3025 $as_echo_n "(cached) " >&6
2618 else 3026 else
2619 ac_build_alias=$build_alias 3027 ac_build_alias=$build_alias
2620 test "x$ac_build_alias" = x && 3028 test "x$ac_build_alias" = x &&
2621 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3029 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2622 test "x$ac_build_alias" = x && 3030 test "x$ac_build_alias" = x &&
2623 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3031 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2624 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2625 { (exit 1); exit 1; }; }
2626 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3032 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2627 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3033 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2628 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3034
2629 { (exit 1); exit 1; }; } 3035 fi
2630 3036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2631 fi
2632 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2633 $as_echo "$ac_cv_build" >&6; } 3037 $as_echo "$ac_cv_build" >&6; }
2634 case $ac_cv_build in 3038 case $ac_cv_build in
2635 *-*-*) ;; 3039 *-*-*) ;;
2636 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3040 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2637 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2638 { (exit 1); exit 1; }; };;
2639 esac 3041 esac
2640 build=$ac_cv_build 3042 build=$ac_cv_build
2641 ac_save_IFS=$IFS; IFS='-' 3043 ac_save_IFS=$IFS; IFS='-'
2642 set x $ac_cv_build 3044 set x $ac_cv_build
2643 shift 3045 shift
2649 build_os=$* 3051 build_os=$*
2650 IFS=$ac_save_IFS 3052 IFS=$ac_save_IFS
2651 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3053 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2652 3054
2653 3055
2654 { $as_echo "$as_me:$LINENO: checking host system type" >&5 3056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2655 $as_echo_n "checking host system type... " >&6; } 3057 $as_echo_n "checking host system type... " >&6; }
2656 if test "${ac_cv_host+set}" = set; then 3058 if test "${ac_cv_host+set}" = set; then :
2657 $as_echo_n "(cached) " >&6 3059 $as_echo_n "(cached) " >&6
2658 else 3060 else
2659 if test "x$host_alias" = x; then 3061 if test "x$host_alias" = x; then
2660 ac_cv_host=$ac_cv_build 3062 ac_cv_host=$ac_cv_build
2661 else 3063 else
2662 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3064 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2663 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3065 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2664 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3066 fi
2665 { (exit 1); exit 1; }; } 3067
2666 fi 3068 fi
2667 3069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2668 fi
2669 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2670 $as_echo "$ac_cv_host" >&6; } 3070 $as_echo "$ac_cv_host" >&6; }
2671 case $ac_cv_host in 3071 case $ac_cv_host in
2672 *-*-*) ;; 3072 *-*-*) ;;
2673 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3073 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2674 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2675 { (exit 1); exit 1; }; };;
2676 esac 3074 esac
2677 host=$ac_cv_host 3075 host=$ac_cv_host
2678 ac_save_IFS=$IFS; IFS='-' 3076 ac_save_IFS=$IFS; IFS='-'
2679 set x $ac_cv_host 3077 set x $ac_cv_host
2680 shift 3078 shift
2750 ## NetBSD ports 3148 ## NetBSD ports
2751 *-*-netbsd* ) 3149 *-*-netbsd* )
2752 opsys=netbsd 3150 opsys=netbsd
2753 if test -f /usr/lib/crti.o; then 3151 if test -f /usr/lib/crti.o; then
2754 3152
2755 cat >>confdefs.h <<\_ACEOF 3153 $as_echo "#define HAVE_CRTIN /**/" >>confdefs.h
2756 #define HAVE_CRTIN /**/
2757 _ACEOF
2758 3154
2759 fi 3155 fi
2760 3156
2761 case "${canonical}" in 3157 case "${canonical}" in
2762 alpha*-*-netbsd*) machine=alpha ;; 3158 alpha*-*-netbsd*) machine=alpha ;;
2977 fi 3373 fi
2978 3374
2979 3375
2980 3376
2981 if test $unported = yes; then 3377 if test $unported = yes; then
2982 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. 3378 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
2983 Check \`etc/MACHINES' for recognized configuration names." >&5 3379 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
2984 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2985 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2986 { (exit 1); exit 1; }; }
2987 fi 3380 fi
2988 3381
2989 machfile="m/${machine}.h" 3382 machfile="m/${machine}.h"
2990 opsysfile="s/${opsys}.h" 3383 opsysfile="s/${opsys}.h"
2991 3384
3002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3003 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3004 if test -n "$ac_tool_prefix"; then 3397 if test -n "$ac_tool_prefix"; then
3005 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3398 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3006 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3399 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3007 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3008 $as_echo_n "checking for $ac_word... " >&6; } 3401 $as_echo_n "checking for $ac_word... " >&6; }
3009 if test "${ac_cv_prog_CC+set}" = set; then 3402 if test "${ac_cv_prog_CC+set}" = set; then :
3010 $as_echo_n "(cached) " >&6 3403 $as_echo_n "(cached) " >&6
3011 else 3404 else
3012 if test -n "$CC"; then 3405 if test -n "$CC"; then
3013 ac_cv_prog_CC="$CC" # Let the user override the test. 3406 ac_cv_prog_CC="$CC" # Let the user override the test.
3014 else 3407 else
3015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3016 for as_dir in $PATH 3409 for as_dir in $PATH
3017 do 3410 do
3018 IFS=$as_save_IFS 3411 IFS=$as_save_IFS
3019 test -z "$as_dir" && as_dir=. 3412 test -z "$as_dir" && as_dir=.
3020 for ac_exec_ext in '' $ac_executable_extensions; do 3413 for ac_exec_ext in '' $ac_executable_extensions; do
3021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3022 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3415 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3023 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3024 break 2 3417 break 2
3025 fi 3418 fi
3026 done 3419 done
3027 done 3420 done
3028 IFS=$as_save_IFS 3421 IFS=$as_save_IFS
3029 3422
3030 fi 3423 fi
3031 fi 3424 fi
3032 CC=$ac_cv_prog_CC 3425 CC=$ac_cv_prog_CC
3033 if test -n "$CC"; then 3426 if test -n "$CC"; then
3034 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3035 $as_echo "$CC" >&6; } 3428 $as_echo "$CC" >&6; }
3036 else 3429 else
3037 { $as_echo "$as_me:$LINENO: result: no" >&5 3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3038 $as_echo "no" >&6; } 3431 $as_echo "no" >&6; }
3039 fi 3432 fi
3040 3433
3041 3434
3042 fi 3435 fi
3043 if test -z "$ac_cv_prog_CC"; then 3436 if test -z "$ac_cv_prog_CC"; then
3044 ac_ct_CC=$CC 3437 ac_ct_CC=$CC
3045 # Extract the first word of "gcc", so it can be a program name with args. 3438 # Extract the first word of "gcc", so it can be a program name with args.
3046 set dummy gcc; ac_word=$2 3439 set dummy gcc; ac_word=$2
3047 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3048 $as_echo_n "checking for $ac_word... " >&6; } 3441 $as_echo_n "checking for $ac_word... " >&6; }
3049 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3442 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3050 $as_echo_n "(cached) " >&6 3443 $as_echo_n "(cached) " >&6
3051 else 3444 else
3052 if test -n "$ac_ct_CC"; then 3445 if test -n "$ac_ct_CC"; then
3053 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3446 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3054 else 3447 else
3055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3056 for as_dir in $PATH 3449 for as_dir in $PATH
3057 do 3450 do
3058 IFS=$as_save_IFS 3451 IFS=$as_save_IFS
3059 test -z "$as_dir" && as_dir=. 3452 test -z "$as_dir" && as_dir=.
3060 for ac_exec_ext in '' $ac_executable_extensions; do 3453 for ac_exec_ext in '' $ac_executable_extensions; do
3061 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3454 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3062 ac_cv_prog_ac_ct_CC="gcc" 3455 ac_cv_prog_ac_ct_CC="gcc"
3063 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3064 break 2 3457 break 2
3065 fi 3458 fi
3066 done 3459 done
3067 done 3460 done
3068 IFS=$as_save_IFS 3461 IFS=$as_save_IFS
3069 3462
3070 fi 3463 fi
3071 fi 3464 fi
3072 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3465 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3073 if test -n "$ac_ct_CC"; then 3466 if test -n "$ac_ct_CC"; then
3074 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3075 $as_echo "$ac_ct_CC" >&6; } 3468 $as_echo "$ac_ct_CC" >&6; }
3076 else 3469 else
3077 { $as_echo "$as_me:$LINENO: result: no" >&5 3470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3078 $as_echo "no" >&6; } 3471 $as_echo "no" >&6; }
3079 fi 3472 fi
3080 3473
3081 if test "x$ac_ct_CC" = x; then 3474 if test "x$ac_ct_CC" = x; then
3082 CC="" 3475 CC=""
3083 else 3476 else
3084 case $cross_compiling:$ac_tool_warned in 3477 case $cross_compiling:$ac_tool_warned in
3085 yes:) 3478 yes:)
3086 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3087 whose name does not start with the host triplet. If you think this 3480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3088 configuration is useful to you, please write to autoconf@gnu.org." >&5
3089 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3090 whose name does not start with the host triplet. If you think this
3091 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3092 ac_tool_warned=yes ;; 3481 ac_tool_warned=yes ;;
3093 esac 3482 esac
3094 CC=$ac_ct_CC 3483 CC=$ac_ct_CC
3095 fi 3484 fi
3096 else 3485 else
3099 3488
3100 if test -z "$CC"; then 3489 if test -z "$CC"; then
3101 if test -n "$ac_tool_prefix"; then 3490 if test -n "$ac_tool_prefix"; then
3102 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3491 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3103 set dummy ${ac_tool_prefix}cc; ac_word=$2 3492 set dummy ${ac_tool_prefix}cc; ac_word=$2
3104 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3105 $as_echo_n "checking for $ac_word... " >&6; } 3494 $as_echo_n "checking for $ac_word... " >&6; }
3106 if test "${ac_cv_prog_CC+set}" = set; then 3495 if test "${ac_cv_prog_CC+set}" = set; then :
3107 $as_echo_n "(cached) " >&6 3496 $as_echo_n "(cached) " >&6
3108 else 3497 else
3109 if test -n "$CC"; then 3498 if test -n "$CC"; then
3110 ac_cv_prog_CC="$CC" # Let the user override the test. 3499 ac_cv_prog_CC="$CC" # Let the user override the test.
3111 else 3500 else
3112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3113 for as_dir in $PATH 3502 for as_dir in $PATH
3114 do 3503 do
3115 IFS=$as_save_IFS 3504 IFS=$as_save_IFS
3116 test -z "$as_dir" && as_dir=. 3505 test -z "$as_dir" && as_dir=.
3117 for ac_exec_ext in '' $ac_executable_extensions; do 3506 for ac_exec_ext in '' $ac_executable_extensions; do
3118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3119 ac_cv_prog_CC="${ac_tool_prefix}cc" 3508 ac_cv_prog_CC="${ac_tool_prefix}cc"
3120 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3121 break 2 3510 break 2
3122 fi 3511 fi
3123 done 3512 done
3124 done 3513 done
3125 IFS=$as_save_IFS 3514 IFS=$as_save_IFS
3126 3515
3127 fi 3516 fi
3128 fi 3517 fi
3129 CC=$ac_cv_prog_CC 3518 CC=$ac_cv_prog_CC
3130 if test -n "$CC"; then 3519 if test -n "$CC"; then
3131 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3132 $as_echo "$CC" >&6; } 3521 $as_echo "$CC" >&6; }
3133 else 3522 else
3134 { $as_echo "$as_me:$LINENO: result: no" >&5 3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3135 $as_echo "no" >&6; } 3524 $as_echo "no" >&6; }
3136 fi 3525 fi
3137 3526
3138 3527
3139 fi 3528 fi
3140 fi 3529 fi
3141 if test -z "$CC"; then 3530 if test -z "$CC"; then
3142 # Extract the first word of "cc", so it can be a program name with args. 3531 # Extract the first word of "cc", so it can be a program name with args.
3143 set dummy cc; ac_word=$2 3532 set dummy cc; ac_word=$2
3144 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3145 $as_echo_n "checking for $ac_word... " >&6; } 3534 $as_echo_n "checking for $ac_word... " >&6; }
3146 if test "${ac_cv_prog_CC+set}" = set; then 3535 if test "${ac_cv_prog_CC+set}" = set; then :
3147 $as_echo_n "(cached) " >&6 3536 $as_echo_n "(cached) " >&6
3148 else 3537 else
3149 if test -n "$CC"; then 3538 if test -n "$CC"; then
3150 ac_cv_prog_CC="$CC" # Let the user override the test. 3539 ac_cv_prog_CC="$CC" # Let the user override the test.
3151 else 3540 else
3153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3154 for as_dir in $PATH 3543 for as_dir in $PATH
3155 do 3544 do
3156 IFS=$as_save_IFS 3545 IFS=$as_save_IFS
3157 test -z "$as_dir" && as_dir=. 3546 test -z "$as_dir" && as_dir=.
3158 for ac_exec_ext in '' $ac_executable_extensions; do 3547 for ac_exec_ext in '' $ac_executable_extensions; do
3159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3160 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3549 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3161 ac_prog_rejected=yes 3550 ac_prog_rejected=yes
3162 continue 3551 continue
3163 fi 3552 fi
3164 ac_cv_prog_CC="cc" 3553 ac_cv_prog_CC="cc"
3165 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3166 break 2 3555 break 2
3167 fi 3556 fi
3168 done 3557 done
3169 done 3558 done
3170 IFS=$as_save_IFS 3559 IFS=$as_save_IFS
3171 3560
3172 if test $ac_prog_rejected = yes; then 3561 if test $ac_prog_rejected = yes; then
3173 # We found a bogon in the path, so make sure we never use it. 3562 # We found a bogon in the path, so make sure we never use it.
3174 set dummy $ac_cv_prog_CC 3563 set dummy $ac_cv_prog_CC
3183 fi 3572 fi
3184 fi 3573 fi
3185 fi 3574 fi
3186 CC=$ac_cv_prog_CC 3575 CC=$ac_cv_prog_CC
3187 if test -n "$CC"; then 3576 if test -n "$CC"; then
3188 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3189 $as_echo "$CC" >&6; } 3578 $as_echo "$CC" >&6; }
3190 else 3579 else
3191 { $as_echo "$as_me:$LINENO: result: no" >&5 3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192 $as_echo "no" >&6; } 3581 $as_echo "no" >&6; }
3193 fi 3582 fi
3194 3583
3195 3584
3196 fi 3585 fi
3198 if test -n "$ac_tool_prefix"; then 3587 if test -n "$ac_tool_prefix"; then
3199 for ac_prog in cl.exe 3588 for ac_prog in cl.exe
3200 do 3589 do
3201 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3590 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3202 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3591 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3203 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3204 $as_echo_n "checking for $ac_word... " >&6; } 3593 $as_echo_n "checking for $ac_word... " >&6; }
3205 if test "${ac_cv_prog_CC+set}" = set; then 3594 if test "${ac_cv_prog_CC+set}" = set; then :
3206 $as_echo_n "(cached) " >&6 3595 $as_echo_n "(cached) " >&6
3207 else 3596 else
3208 if test -n "$CC"; then 3597 if test -n "$CC"; then
3209 ac_cv_prog_CC="$CC" # Let the user override the test. 3598 ac_cv_prog_CC="$CC" # Let the user override the test.
3210 else 3599 else
3211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3212 for as_dir in $PATH 3601 for as_dir in $PATH
3213 do 3602 do
3214 IFS=$as_save_IFS 3603 IFS=$as_save_IFS
3215 test -z "$as_dir" && as_dir=. 3604 test -z "$as_dir" && as_dir=.
3216 for ac_exec_ext in '' $ac_executable_extensions; do 3605 for ac_exec_ext in '' $ac_executable_extensions; do
3217 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3218 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3607 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3219 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3220 break 2 3609 break 2
3221 fi 3610 fi
3222 done 3611 done
3223 done 3612 done
3224 IFS=$as_save_IFS 3613 IFS=$as_save_IFS
3225 3614
3226 fi 3615 fi
3227 fi 3616 fi
3228 CC=$ac_cv_prog_CC 3617 CC=$ac_cv_prog_CC
3229 if test -n "$CC"; then 3618 if test -n "$CC"; then
3230 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3231 $as_echo "$CC" >&6; } 3620 $as_echo "$CC" >&6; }
3232 else 3621 else
3233 { $as_echo "$as_me:$LINENO: result: no" >&5 3622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3234 $as_echo "no" >&6; } 3623 $as_echo "no" >&6; }
3235 fi 3624 fi
3236 3625
3237 3626
3238 test -n "$CC" && break 3627 test -n "$CC" && break
3242 ac_ct_CC=$CC 3631 ac_ct_CC=$CC
3243 for ac_prog in cl.exe 3632 for ac_prog in cl.exe
3244 do 3633 do
3245 # Extract the first word of "$ac_prog", so it can be a program name with args. 3634 # Extract the first word of "$ac_prog", so it can be a program name with args.
3246 set dummy $ac_prog; ac_word=$2 3635 set dummy $ac_prog; ac_word=$2
3247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3248 $as_echo_n "checking for $ac_word... " >&6; } 3637 $as_echo_n "checking for $ac_word... " >&6; }
3249 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3250 $as_echo_n "(cached) " >&6 3639 $as_echo_n "(cached) " >&6
3251 else 3640 else
3252 if test -n "$ac_ct_CC"; then 3641 if test -n "$ac_ct_CC"; then
3253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3254 else 3643 else
3255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3256 for as_dir in $PATH 3645 for as_dir in $PATH
3257 do 3646 do
3258 IFS=$as_save_IFS 3647 IFS=$as_save_IFS
3259 test -z "$as_dir" && as_dir=. 3648 test -z "$as_dir" && as_dir=.
3260 for ac_exec_ext in '' $ac_executable_extensions; do 3649 for ac_exec_ext in '' $ac_executable_extensions; do
3261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3650 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3262 ac_cv_prog_ac_ct_CC="$ac_prog" 3651 ac_cv_prog_ac_ct_CC="$ac_prog"
3263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 break 2 3653 break 2
3265 fi 3654 fi
3266 done 3655 done
3267 done 3656 done
3268 IFS=$as_save_IFS 3657 IFS=$as_save_IFS
3269 3658
3270 fi 3659 fi
3271 fi 3660 fi
3272 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3661 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3273 if test -n "$ac_ct_CC"; then 3662 if test -n "$ac_ct_CC"; then
3274 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3275 $as_echo "$ac_ct_CC" >&6; } 3664 $as_echo "$ac_ct_CC" >&6; }
3276 else 3665 else
3277 { $as_echo "$as_me:$LINENO: result: no" >&5 3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3278 $as_echo "no" >&6; } 3667 $as_echo "no" >&6; }
3279 fi 3668 fi
3280 3669
3281 3670
3282 test -n "$ac_ct_CC" && break 3671 test -n "$ac_ct_CC" && break
3285 if test "x$ac_ct_CC" = x; then 3674 if test "x$ac_ct_CC" = x; then
3286 CC="" 3675 CC=""
3287 else 3676 else
3288 case $cross_compiling:$ac_tool_warned in 3677 case $cross_compiling:$ac_tool_warned in
3289 yes:) 3678 yes:)
3290 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3679 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3291 whose name does not start with the host triplet. If you think this 3680 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3292 configuration is useful to you, please write to autoconf@gnu.org." >&5
3293 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3294 whose name does not start with the host triplet. If you think this
3295 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3296 ac_tool_warned=yes ;; 3681 ac_tool_warned=yes ;;
3297 esac 3682 esac
3298 CC=$ac_ct_CC 3683 CC=$ac_ct_CC
3299 fi 3684 fi
3300 fi 3685 fi
3301 3686
3302 fi 3687 fi
3303 3688
3304 3689
3305 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3690 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3306 See \`config.log' for more details." >&5 3691 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3307 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3692 as_fn_error "no acceptable C compiler found in \$PATH
3308 See \`config.log' for more details." >&2;} 3693 See \`config.log' for more details." "$LINENO" 5; }
3309 { (exit 1); exit 1; }; }
3310 3694
3311 # Provide some information about the compiler. 3695 # Provide some information about the compiler.
3312 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3696 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3313 set X $ac_compile 3697 set X $ac_compile
3314 ac_compiler=$2 3698 ac_compiler=$2
3315 { (ac_try="$ac_compiler --version >&5" 3699 for ac_option in --version -v -V -qversion; do
3700 { { ac_try="$ac_compiler $ac_option >&5"
3316 case "(($ac_try" in 3701 case "(($ac_try" in
3317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3318 *) ac_try_echo=$ac_try;; 3703 *) ac_try_echo=$ac_try;;
3319 esac 3704 esac
3320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3321 $as_echo "$ac_try_echo") >&5 3706 $as_echo "$ac_try_echo"; } >&5
3322 (eval "$ac_compiler --version >&5") 2>&5 3707 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3323 ac_status=$? 3708 ac_status=$?
3324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3709 if test -s conftest.err; then
3325 (exit $ac_status); } 3710 sed '10a\
3326 { (ac_try="$ac_compiler -v >&5" 3711 ... rest of stderr output deleted ...
3327 case "(($ac_try" in 3712 10q' conftest.err >conftest.er1
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3713 cat conftest.er1 >&5
3329 *) ac_try_echo=$ac_try;; 3714 fi
3330 esac 3715 rm -f conftest.er1 conftest.err
3331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3332 $as_echo "$ac_try_echo") >&5 3717 test $ac_status = 0; }
3333 (eval "$ac_compiler -v >&5") 2>&5 3718 done
3334 ac_status=$? 3719
3335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3336 (exit $ac_status); }
3337 { (ac_try="$ac_compiler -V >&5"
3338 case "(($ac_try" in
3339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3340 *) ac_try_echo=$ac_try;;
3341 esac
3342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3343 $as_echo "$ac_try_echo") >&5
3344 (eval "$ac_compiler -V >&5") 2>&5
3345 ac_status=$?
3346 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3347 (exit $ac_status); }
3348
3349 cat >conftest.$ac_ext <<_ACEOF
3350 /* confdefs.h. */
3351 _ACEOF
3352 cat confdefs.h >>conftest.$ac_ext
3353 cat >>conftest.$ac_ext <<_ACEOF
3354 /* end confdefs.h. */ 3721 /* end confdefs.h. */
3355 3722
3356 int 3723 int
3357 main () 3724 main ()
3358 { 3725 {
3364 ac_clean_files_save=$ac_clean_files 3731 ac_clean_files_save=$ac_clean_files
3365 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3732 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3366 # Try to create an executable without -o first, disregard a.out. 3733 # Try to create an executable without -o first, disregard a.out.
3367 # It will help us diagnose broken compilers, and finding out an intuition 3734 # It will help us diagnose broken compilers, and finding out an intuition
3368 # of exeext. 3735 # of exeext.
3369 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3370 $as_echo_n "checking for C compiler default output file name... " >&6; } 3737 $as_echo_n "checking whether the C compiler works... " >&6; }
3371 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3738 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3372 3739
3373 # The possible output files: 3740 # The possible output files:
3374 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3741 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3375 3742
3381 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3748 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3382 esac 3749 esac
3383 done 3750 done
3384 rm -f $ac_rmfiles 3751 rm -f $ac_rmfiles
3385 3752
3386 if { (ac_try="$ac_link_default" 3753 if { { ac_try="$ac_link_default"
3387 case "(($ac_try" in 3754 case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;; 3756 *) ac_try_echo=$ac_try;;
3390 esac 3757 esac
3391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo") >&5 3759 $as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_link_default") 2>&5 3760 (eval "$ac_link_default") 2>&5
3394 ac_status=$? 3761 ac_status=$?
3395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 (exit $ac_status); }; then 3763 test $ac_status = 0; }; then :
3397 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3764 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3398 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3765 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3399 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3766 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3400 # so that the user can short-circuit this test for compilers unknown to 3767 # so that the user can short-circuit this test for compilers unknown to
3401 # Autoconf. 3768 # Autoconf.
3408 [ab].out ) 3775 [ab].out )
3409 # We found the default executable, but exeext='' is most 3776 # We found the default executable, but exeext='' is most
3410 # certainly right. 3777 # certainly right.
3411 break;; 3778 break;;
3412 *.* ) 3779 *.* )
3413 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3780 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3414 then :; else 3781 then :; else
3415 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3782 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3416 fi 3783 fi
3417 # We set ac_cv_exeext here because the later test for it is not 3784 # We set ac_cv_exeext here because the later test for it is not
3418 # safe: cross compilers may not add the suffix if given an `-o' 3785 # safe: cross compilers may not add the suffix if given an `-o'
3427 test "$ac_cv_exeext" = no && ac_cv_exeext= 3794 test "$ac_cv_exeext" = no && ac_cv_exeext=
3428 3795
3429 else 3796 else
3430 ac_file='' 3797 ac_file=''
3431 fi 3798 fi
3432 3799 if test -z "$ac_file"; then :
3433 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3801 $as_echo "no" >&6; }
3802 $as_echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3804
3805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807 { as_fn_set_status 77
3808 as_fn_error "C compiler cannot create executables
3809 See \`config.log' for more details." "$LINENO" 5; }; }
3810 else
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3812 $as_echo "yes" >&6; }
3813 fi
3814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3815 $as_echo_n "checking for C compiler default output file name... " >&6; }
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3434 $as_echo "$ac_file" >&6; } 3817 $as_echo "$ac_file" >&6; }
3435 if test -z "$ac_file"; then
3436 $as_echo "$as_me: failed program was:" >&5
3437 sed 's/^/| /' conftest.$ac_ext >&5
3438
3439 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3440 See \`config.log' for more details." >&5
3441 $as_echo "$as_me: error: C compiler cannot create executables
3442 See \`config.log' for more details." >&2;}
3443 { (exit 77); exit 77; }; }
3444 fi
3445
3446 ac_exeext=$ac_cv_exeext 3818 ac_exeext=$ac_cv_exeext
3447
3448 # Check that the compiler produces executables we can run. If not, either
3449 # the compiler is broken, or we cross compile.
3450 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3451 $as_echo_n "checking whether the C compiler works... " >&6; }
3452 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3453 # If not cross compiling, check that we can run a simple program.
3454 if test "$cross_compiling" != yes; then
3455 if { ac_try='./$ac_file'
3456 { (case "(($ac_try" in
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3459 esac
3460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3461 $as_echo "$ac_try_echo") >&5
3462 (eval "$ac_try") 2>&5
3463 ac_status=$?
3464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3465 (exit $ac_status); }; }; then
3466 cross_compiling=no
3467 else
3468 if test "$cross_compiling" = maybe; then
3469 cross_compiling=yes
3470 else
3471 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3472 If you meant to cross compile, use \`--host'.
3473 See \`config.log' for more details." >&5
3474 $as_echo "$as_me: error: cannot run C compiled programs.
3475 If you meant to cross compile, use \`--host'.
3476 See \`config.log' for more details." >&2;}
3477 { (exit 1); exit 1; }; }
3478 fi
3479 fi
3480 fi
3481 { $as_echo "$as_me:$LINENO: result: yes" >&5
3482 $as_echo "yes" >&6; }
3483 3819
3484 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3820 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3485 ac_clean_files=$ac_clean_files_save 3821 ac_clean_files=$ac_clean_files_save
3486 # Check that the compiler produces executables we can run. If not, either 3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3487 # the compiler is broken, or we cross compile.
3488 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3489 $as_echo_n "checking whether we are cross compiling... " >&6; }
3490 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3491 $as_echo "$cross_compiling" >&6; }
3492
3493 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3494 $as_echo_n "checking for suffix of executables... " >&6; } 3823 $as_echo_n "checking for suffix of executables... " >&6; }
3495 if { (ac_try="$ac_link" 3824 if { { ac_try="$ac_link"
3496 case "(($ac_try" in 3825 case "(($ac_try" in
3497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3498 *) ac_try_echo=$ac_try;; 3827 *) ac_try_echo=$ac_try;;
3499 esac 3828 esac
3500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3829 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3501 $as_echo "$ac_try_echo") >&5 3830 $as_echo "$ac_try_echo"; } >&5
3502 (eval "$ac_link") 2>&5 3831 (eval "$ac_link") 2>&5
3503 ac_status=$? 3832 ac_status=$?
3504 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3505 (exit $ac_status); }; then 3834 test $ac_status = 0; }; then :
3506 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3835 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3507 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3836 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3508 # work properly (i.e., refer to `conftest.exe'), while it won't with 3837 # work properly (i.e., refer to `conftest.exe'), while it won't with
3509 # `rm'. 3838 # `rm'.
3510 for ac_file in conftest.exe conftest conftest.*; do 3839 for ac_file in conftest.exe conftest conftest.*; do
3515 break;; 3844 break;;
3516 * ) break;; 3845 * ) break;;
3517 esac 3846 esac
3518 done 3847 done
3519 else 3848 else
3520 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3849 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3521 See \`config.log' for more details." >&5 3850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3522 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3851 as_fn_error "cannot compute suffix of executables: cannot compile and link
3523 See \`config.log' for more details." >&2;} 3852 See \`config.log' for more details." "$LINENO" 5; }
3524 { (exit 1); exit 1; }; } 3853 fi
3525 fi 3854 rm -f conftest conftest$ac_cv_exeext
3526 3855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3527 rm -f conftest$ac_cv_exeext
3528 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3529 $as_echo "$ac_cv_exeext" >&6; } 3856 $as_echo "$ac_cv_exeext" >&6; }
3530 3857
3531 rm -f conftest.$ac_ext 3858 rm -f conftest.$ac_ext
3532 EXEEXT=$ac_cv_exeext 3859 EXEEXT=$ac_cv_exeext
3533 ac_exeext=$EXEEXT 3860 ac_exeext=$EXEEXT
3534 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3535 $as_echo_n "checking for suffix of object files... " >&6; }
3536 if test "${ac_cv_objext+set}" = set; then
3537 $as_echo_n "(cached) " >&6
3538 else
3539 cat >conftest.$ac_ext <<_ACEOF
3540 /* confdefs.h. */
3541 _ACEOF
3542 cat confdefs.h >>conftest.$ac_ext
3543 cat >>conftest.$ac_ext <<_ACEOF
3544 /* end confdefs.h. */ 3862 /* end confdefs.h. */
3545 3863 #include <stdio.h>
3546 int 3864 int
3547 main () 3865 main ()
3548 { 3866 {
3867 FILE *f = fopen ("conftest.out", "w");
3868 return ferror (f) || fclose (f) != 0;
3549 3869
3550 ; 3870 ;
3551 return 0; 3871 return 0;
3552 } 3872 }
3553 _ACEOF 3873 _ACEOF
3554 rm -f conftest.o conftest.obj 3874 ac_clean_files="$ac_clean_files conftest.out"
3555 if { (ac_try="$ac_compile" 3875 # Check that the compiler produces executables we can run. If not, either
3876 # the compiler is broken, or we cross compile.
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3878 $as_echo_n "checking whether we are cross compiling... " >&6; }
3879 if test "$cross_compiling" != yes; then
3880 { { ac_try="$ac_link"
3556 case "(($ac_try" in 3881 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;; 3883 *) ac_try_echo=$ac_try;;
3559 esac 3884 esac
3560 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo") >&5 3886 $as_echo "$ac_try_echo"; } >&5
3887 (eval "$ac_link") 2>&5
3888 ac_status=$?
3889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3890 test $ac_status = 0; }
3891 if { ac_try='./conftest$ac_cv_exeext'
3892 { { case "(($ac_try" in
3893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3894 *) ac_try_echo=$ac_try;;
3895 esac
3896 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3897 $as_echo "$ac_try_echo"; } >&5
3898 (eval "$ac_try") 2>&5
3899 ac_status=$?
3900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3901 test $ac_status = 0; }; }; then
3902 cross_compiling=no
3903 else
3904 if test "$cross_compiling" = maybe; then
3905 cross_compiling=yes
3906 else
3907 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3908 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3909 as_fn_error "cannot run C compiled programs.
3910 If you meant to cross compile, use \`--host'.
3911 See \`config.log' for more details." "$LINENO" 5; }
3912 fi
3913 fi
3914 fi
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3916 $as_echo "$cross_compiling" >&6; }
3917
3918 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3919 ac_clean_files=$ac_clean_files_save
3920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3921 $as_echo_n "checking for suffix of object files... " >&6; }
3922 if test "${ac_cv_objext+set}" = set; then :
3923 $as_echo_n "(cached) " >&6
3924 else
3925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3926 /* end confdefs.h. */
3927
3928 int
3929 main ()
3930 {
3931
3932 ;
3933 return 0;
3934 }
3935 _ACEOF
3936 rm -f conftest.o conftest.obj
3937 if { { ac_try="$ac_compile"
3938 case "(($ac_try" in
3939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3940 *) ac_try_echo=$ac_try;;
3941 esac
3942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3943 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_compile") 2>&5 3944 (eval "$ac_compile") 2>&5
3563 ac_status=$? 3945 ac_status=$?
3564 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 (exit $ac_status); }; then 3947 test $ac_status = 0; }; then :
3566 for ac_file in conftest.o conftest.obj conftest.*; do 3948 for ac_file in conftest.o conftest.obj conftest.*; do
3567 test -f "$ac_file" || continue; 3949 test -f "$ac_file" || continue;
3568 case $ac_file in 3950 case $ac_file in
3569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3951 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3570 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3952 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3573 done 3955 done
3574 else 3956 else
3575 $as_echo "$as_me: failed program was:" >&5 3957 $as_echo "$as_me: failed program was:" >&5
3576 sed 's/^/| /' conftest.$ac_ext >&5 3958 sed 's/^/| /' conftest.$ac_ext >&5
3577 3959
3578 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3960 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3579 See \`config.log' for more details." >&5 3961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3580 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3962 as_fn_error "cannot compute suffix of object files: cannot compile
3581 See \`config.log' for more details." >&2;} 3963 See \`config.log' for more details." "$LINENO" 5; }
3582 { (exit 1); exit 1; }; } 3964 fi
3583 fi
3584
3585 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3586 fi 3966 fi
3587 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3588 $as_echo "$ac_cv_objext" >&6; } 3968 $as_echo "$ac_cv_objext" >&6; }
3589 OBJEXT=$ac_cv_objext 3969 OBJEXT=$ac_cv_objext
3590 ac_objext=$OBJEXT 3970 ac_objext=$OBJEXT
3591 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3592 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3972 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3593 if test "${ac_cv_c_compiler_gnu+set}" = set; then 3973 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3594 $as_echo_n "(cached) " >&6 3974 $as_echo_n "(cached) " >&6
3595 else 3975 else
3596 cat >conftest.$ac_ext <<_ACEOF 3976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3597 /* confdefs.h. */
3598 _ACEOF
3599 cat confdefs.h >>conftest.$ac_ext
3600 cat >>conftest.$ac_ext <<_ACEOF
3601 /* end confdefs.h. */ 3977 /* end confdefs.h. */
3602 3978
3603 int 3979 int
3604 main () 3980 main ()
3605 { 3981 {
3609 3985
3610 ; 3986 ;
3611 return 0; 3987 return 0;
3612 } 3988 }
3613 _ACEOF 3989 _ACEOF
3614 rm -f conftest.$ac_objext 3990 if ac_fn_c_try_compile "$LINENO"; then :
3615 if { (ac_try="$ac_compile"
3616 case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3621 $as_echo "$ac_try_echo") >&5
3622 (eval "$ac_compile") 2>conftest.er1
3623 ac_status=$?
3624 grep -v '^ *+' conftest.er1 >conftest.err
3625 rm -f conftest.er1
3626 cat conftest.err >&5
3627 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); } && {
3629 test -z "$ac_c_werror_flag" ||
3630 test ! -s conftest.err
3631 } && test -s conftest.$ac_objext; then
3632 ac_compiler_gnu=yes 3991 ac_compiler_gnu=yes
3633 else 3992 else
3634 $as_echo "$as_me: failed program was:" >&5 3993 ac_compiler_gnu=no
3635 sed 's/^/| /' conftest.$ac_ext >&5 3994 fi
3636
3637 ac_compiler_gnu=no
3638 fi
3639
3640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3641 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3996 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3642 3997
3643 fi 3998 fi
3644 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3645 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4000 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3646 if test $ac_compiler_gnu = yes; then 4001 if test $ac_compiler_gnu = yes; then
3647 GCC=yes 4002 GCC=yes
3648 else 4003 else
3649 GCC= 4004 GCC=
3650 fi 4005 fi
3651 ac_test_CFLAGS=${CFLAGS+set} 4006 ac_test_CFLAGS=${CFLAGS+set}
3652 ac_save_CFLAGS=$CFLAGS 4007 ac_save_CFLAGS=$CFLAGS
3653 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3654 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4009 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3655 if test "${ac_cv_prog_cc_g+set}" = set; then 4010 if test "${ac_cv_prog_cc_g+set}" = set; then :
3656 $as_echo_n "(cached) " >&6 4011 $as_echo_n "(cached) " >&6
3657 else 4012 else
3658 ac_save_c_werror_flag=$ac_c_werror_flag 4013 ac_save_c_werror_flag=$ac_c_werror_flag
3659 ac_c_werror_flag=yes 4014 ac_c_werror_flag=yes
3660 ac_cv_prog_cc_g=no 4015 ac_cv_prog_cc_g=no
3661 CFLAGS="-g" 4016 CFLAGS="-g"
3662 cat >conftest.$ac_ext <<_ACEOF 4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3663 /* confdefs.h. */
3664 _ACEOF
3665 cat confdefs.h >>conftest.$ac_ext
3666 cat >>conftest.$ac_ext <<_ACEOF
3667 /* end confdefs.h. */ 4018 /* end confdefs.h. */
3668 4019
3669 int 4020 int
3670 main () 4021 main ()
3671 { 4022 {
3672 4023
3673 ; 4024 ;
3674 return 0; 4025 return 0;
3675 } 4026 }
3676 _ACEOF 4027 _ACEOF
3677 rm -f conftest.$ac_objext 4028 if ac_fn_c_try_compile "$LINENO"; then :
3678 if { (ac_try="$ac_compile"
3679 case "(($ac_try" in
3680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3681 *) ac_try_echo=$ac_try;;
3682 esac
3683 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3684 $as_echo "$ac_try_echo") >&5
3685 (eval "$ac_compile") 2>conftest.er1
3686 ac_status=$?
3687 grep -v '^ *+' conftest.er1 >conftest.err
3688 rm -f conftest.er1
3689 cat conftest.err >&5
3690 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); } && {
3692 test -z "$ac_c_werror_flag" ||
3693 test ! -s conftest.err
3694 } && test -s conftest.$ac_objext; then
3695 ac_cv_prog_cc_g=yes 4029 ac_cv_prog_cc_g=yes
3696 else 4030 else
3697 $as_echo "$as_me: failed program was:" >&5 4031 CFLAGS=""
3698 sed 's/^/| /' conftest.$ac_ext >&5 4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3699
3700 CFLAGS=""
3701 cat >conftest.$ac_ext <<_ACEOF
3702 /* confdefs.h. */
3703 _ACEOF
3704 cat confdefs.h >>conftest.$ac_ext
3705 cat >>conftest.$ac_ext <<_ACEOF
3706 /* end confdefs.h. */ 4033 /* end confdefs.h. */
3707 4034
3708 int 4035 int
3709 main () 4036 main ()
3710 { 4037 {
3711 4038
3712 ; 4039 ;
3713 return 0; 4040 return 0;
3714 } 4041 }
3715 _ACEOF 4042 _ACEOF
3716 rm -f conftest.$ac_objext 4043 if ac_fn_c_try_compile "$LINENO"; then :
3717 if { (ac_try="$ac_compile" 4044
3718 case "(($ac_try" in 4045 else
3719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4046 ac_c_werror_flag=$ac_save_c_werror_flag
3720 *) ac_try_echo=$ac_try;;
3721 esac
3722 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3723 $as_echo "$ac_try_echo") >&5
3724 (eval "$ac_compile") 2>conftest.er1
3725 ac_status=$?
3726 grep -v '^ *+' conftest.er1 >conftest.err
3727 rm -f conftest.er1
3728 cat conftest.err >&5
3729 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); } && {
3731 test -z "$ac_c_werror_flag" ||
3732 test ! -s conftest.err
3733 } && test -s conftest.$ac_objext; then
3734 :
3735 else
3736 $as_echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3738
3739 ac_c_werror_flag=$ac_save_c_werror_flag
3740 CFLAGS="-g" 4047 CFLAGS="-g"
3741 cat >conftest.$ac_ext <<_ACEOF 4048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* confdefs.h. */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */ 4049 /* end confdefs.h. */
3747 4050
3748 int 4051 int
3749 main () 4052 main ()
3750 { 4053 {
3751 4054
3752 ; 4055 ;
3753 return 0; 4056 return 0;
3754 } 4057 }
3755 _ACEOF 4058 _ACEOF
3756 rm -f conftest.$ac_objext 4059 if ac_fn_c_try_compile "$LINENO"; then :
3757 if { (ac_try="$ac_compile"
3758 case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761 esac
3762 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3763 $as_echo "$ac_try_echo") >&5
3764 (eval "$ac_compile") 2>conftest.er1
3765 ac_status=$?
3766 grep -v '^ *+' conftest.er1 >conftest.err
3767 rm -f conftest.er1
3768 cat conftest.err >&5
3769 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); } && {
3771 test -z "$ac_c_werror_flag" ||
3772 test ! -s conftest.err
3773 } && test -s conftest.$ac_objext; then
3774 ac_cv_prog_cc_g=yes 4060 ac_cv_prog_cc_g=yes
3775 else 4061 fi
3776 $as_echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3778
3779
3780 fi
3781
3782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 fi 4063 fi
3784
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3786 fi 4065 fi
3787
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 ac_c_werror_flag=$ac_save_c_werror_flag 4067 ac_c_werror_flag=$ac_save_c_werror_flag
3790 fi 4068 fi
3791 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3792 $as_echo "$ac_cv_prog_cc_g" >&6; } 4070 $as_echo "$ac_cv_prog_cc_g" >&6; }
3793 if test "$ac_test_CFLAGS" = set; then 4071 if test "$ac_test_CFLAGS" = set; then
3794 CFLAGS=$ac_save_CFLAGS 4072 CFLAGS=$ac_save_CFLAGS
3795 elif test $ac_cv_prog_cc_g = yes; then 4073 elif test $ac_cv_prog_cc_g = yes; then
3796 if test "$GCC" = yes; then 4074 if test "$GCC" = yes; then
3803 CFLAGS="-O2" 4081 CFLAGS="-O2"
3804 else 4082 else
3805 CFLAGS= 4083 CFLAGS=
3806 fi 4084 fi
3807 fi 4085 fi
3808 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 4086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3809 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4087 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3810 if test "${ac_cv_prog_cc_c89+set}" = set; then 4088 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3811 $as_echo_n "(cached) " >&6 4089 $as_echo_n "(cached) " >&6
3812 else 4090 else
3813 ac_cv_prog_cc_c89=no 4091 ac_cv_prog_cc_c89=no
3814 ac_save_CC=$CC 4092 ac_save_CC=$CC
3815 cat >conftest.$ac_ext <<_ACEOF 4093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3816 /* confdefs.h. */
3817 _ACEOF
3818 cat confdefs.h >>conftest.$ac_ext
3819 cat >>conftest.$ac_ext <<_ACEOF
3820 /* end confdefs.h. */ 4094 /* end confdefs.h. */
3821 #include <stdarg.h> 4095 #include <stdarg.h>
3822 #include <stdio.h> 4096 #include <stdio.h>
3823 #include <sys/types.h> 4097 #include <sys/types.h>
3824 #include <sys/stat.h> 4098 #include <sys/stat.h>
3871 _ACEOF 4145 _ACEOF
3872 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4146 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3873 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4147 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3874 do 4148 do
3875 CC="$ac_save_CC $ac_arg" 4149 CC="$ac_save_CC $ac_arg"
3876 rm -f conftest.$ac_objext 4150 if ac_fn_c_try_compile "$LINENO"; then :
3877 if { (ac_try="$ac_compile"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3883 $as_echo "$ac_try_echo") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3885 ac_status=$?
3886 grep -v '^ *+' conftest.er1 >conftest.err
3887 rm -f conftest.er1
3888 cat conftest.err >&5
3889 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3894 ac_cv_prog_cc_c89=$ac_arg 4151 ac_cv_prog_cc_c89=$ac_arg
3895 else 4152 fi
3896 $as_echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899
3900 fi
3901
3902 rm -f core conftest.err conftest.$ac_objext 4153 rm -f core conftest.err conftest.$ac_objext
3903 test "x$ac_cv_prog_cc_c89" != "xno" && break 4154 test "x$ac_cv_prog_cc_c89" != "xno" && break
3904 done 4155 done
3905 rm -f conftest.$ac_ext 4156 rm -f conftest.$ac_ext
3906 CC=$ac_save_CC 4157 CC=$ac_save_CC
3907 4158
3908 fi 4159 fi
3909 # AC_CACHE_VAL 4160 # AC_CACHE_VAL
3910 case "x$ac_cv_prog_cc_c89" in 4161 case "x$ac_cv_prog_cc_c89" in
3911 x) 4162 x)
3912 { $as_echo "$as_me:$LINENO: result: none needed" >&5 4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3913 $as_echo "none needed" >&6; } ;; 4164 $as_echo "none needed" >&6; } ;;
3914 xno) 4165 xno)
3915 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3916 $as_echo "unsupported" >&6; } ;; 4167 $as_echo "unsupported" >&6; } ;;
3917 *) 4168 *)
3918 CC="$CC $ac_cv_prog_cc_c89" 4169 CC="$CC $ac_cv_prog_cc_c89"
3919 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3920 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4171 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3921 esac 4172 esac
3922 4173 if test "x$ac_cv_prog_cc_c89" != xno; then :
4174
4175 fi
3923 4176
3924 ac_ext=c 4177 ac_ext=c
3925 ac_cpp='$CPP $CPPFLAGS' 4178 ac_cpp='$CPP $CPPFLAGS'
3926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 4188
3936 ## If not using gcc, and on Solaris, and no CPP specified, see if 4189 ## If not using gcc, and on Solaris, and no CPP specified, see if
3937 ## using a Sun compiler, which needs -Xs to prevent whitespace. 4190 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3938 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ 4191 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3939 test x"$CPP" = x; then 4192 test x"$CPP" = x; then
3940 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5 4193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
3941 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; } 4194 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3942 4195
3943 if test "${emacs_cv_sunpro_c+set}" = set; then 4196 if test "${emacs_cv_sunpro_c+set}" = set; then :
3944 $as_echo_n "(cached) " >&6 4197 $as_echo_n "(cached) " >&6
3945 else 4198 else
3946 cat >conftest.$ac_ext <<_ACEOF 4199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3947 /* confdefs.h. */
3948 _ACEOF
3949 cat confdefs.h >>conftest.$ac_ext
3950 cat >>conftest.$ac_ext <<_ACEOF
3951 /* end confdefs.h. */ 4200 /* end confdefs.h. */
3952 4201
3953 int 4202 int
3954 main () 4203 main ()
3955 { 4204 {
3959 4208
3960 ; 4209 ;
3961 return 0; 4210 return 0;
3962 } 4211 }
3963 _ACEOF 4212 _ACEOF
3964 rm -f conftest.$ac_objext conftest$ac_exeext 4213 if ac_fn_c_try_link "$LINENO"; then :
3965 if { (ac_try="$ac_link"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3971 $as_echo "$ac_try_echo") >&5
3972 (eval "$ac_link") 2>conftest.er1
3973 ac_status=$?
3974 grep -v '^ *+' conftest.er1 >conftest.err
3975 rm -f conftest.er1
3976 cat conftest.err >&5
3977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3978 (exit $ac_status); } && {
3979 test -z "$ac_c_werror_flag" ||
3980 test ! -s conftest.err
3981 } && test -s conftest$ac_exeext && {
3982 test "$cross_compiling" = yes ||
3983 $as_test_x conftest$ac_exeext
3984 }; then
3985 emacs_cv_sunpro_c=yes 4214 emacs_cv_sunpro_c=yes
3986 else 4215 else
3987 $as_echo "$as_me: failed program was:" >&5 4216 emacs_cv_sunpro_c=no
3988 sed 's/^/| /' conftest.$ac_ext >&5 4217 fi
3989 4218 rm -f core conftest.err conftest.$ac_objext \
3990 emacs_cv_sunpro_c=no 4219 conftest$ac_exeext conftest.$ac_ext
3991 fi 4220 fi
3992 4221
3993 rm -rf conftest.dSYM 4222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
3994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3995 conftest$ac_exeext conftest.$ac_ext
3996 fi
3997
3998 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3999 $as_echo "$emacs_cv_sunpro_c" >&6; } 4223 $as_echo "$emacs_cv_sunpro_c" >&6; }
4000 4224
4001 if test x"$emacs_cv_sunpro_c" = xyes; then 4225 if test x"$emacs_cv_sunpro_c" = xyes; then
4002 NON_GNU_CPP="$CC -E -Xs" 4226 NON_GNU_CPP="$CC -E -Xs"
4003 fi 4227 fi
4033 ac_ext=c 4257 ac_ext=c
4034 ac_cpp='$CPP $CPPFLAGS' 4258 ac_cpp='$CPP $CPPFLAGS'
4035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4259 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4260 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4037 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4261 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4038 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4039 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4263 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4040 # On Suns, sometimes $CPP names a directory. 4264 # On Suns, sometimes $CPP names a directory.
4041 if test -n "$CPP" && test -d "$CPP"; then 4265 if test -n "$CPP" && test -d "$CPP"; then
4042 CPP= 4266 CPP=
4043 fi 4267 fi
4044 if test -z "$CPP"; then 4268 if test -z "$CPP"; then
4045 if test "${ac_cv_prog_CPP+set}" = set; then 4269 if test "${ac_cv_prog_CPP+set}" = set; then :
4046 $as_echo_n "(cached) " >&6 4270 $as_echo_n "(cached) " >&6
4047 else 4271 else
4048 # Double quotes because CPP needs to be expanded 4272 # Double quotes because CPP needs to be expanded
4049 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4273 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4050 do 4274 do
4055 # with a fresh cross-compiler works. 4279 # with a fresh cross-compiler works.
4056 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4280 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057 # <limits.h> exists even on freestanding compilers. 4281 # <limits.h> exists even on freestanding compilers.
4058 # On the NeXT, cc -E runs the code through the compiler's parser, 4282 # On the NeXT, cc -E runs the code through the compiler's parser,
4059 # not just through cpp. "Syntax error" is here to catch this case. 4283 # not just through cpp. "Syntax error" is here to catch this case.
4060 cat >conftest.$ac_ext <<_ACEOF 4284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4061 /* confdefs.h. */
4062 _ACEOF
4063 cat confdefs.h >>conftest.$ac_ext
4064 cat >>conftest.$ac_ext <<_ACEOF
4065 /* end confdefs.h. */ 4285 /* end confdefs.h. */
4066 #ifdef __STDC__ 4286 #ifdef __STDC__
4067 # include <limits.h> 4287 # include <limits.h>
4068 #else 4288 #else
4069 # include <assert.h> 4289 # include <assert.h>
4070 #endif 4290 #endif
4071 Syntax error 4291 Syntax error
4072 _ACEOF 4292 _ACEOF
4073 if { (ac_try="$ac_cpp conftest.$ac_ext" 4293 if ac_fn_c_try_cpp "$LINENO"; then :
4074 case "(($ac_try" in 4294
4075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4295 else
4076 *) ac_try_echo=$ac_try;;
4077 esac
4078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4079 $as_echo "$ac_try_echo") >&5
4080 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4081 ac_status=$?
4082 grep -v '^ *+' conftest.er1 >conftest.err
4083 rm -f conftest.er1
4084 cat conftest.err >&5
4085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4086 (exit $ac_status); } >/dev/null && {
4087 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4089 }; then
4090 :
4091 else
4092 $as_echo "$as_me: failed program was:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4094
4095 # Broken: fails on valid input. 4296 # Broken: fails on valid input.
4096 continue 4297 continue
4097 fi 4298 fi
4098
4099 rm -f conftest.err conftest.$ac_ext 4299 rm -f conftest.err conftest.$ac_ext
4100 4300
4101 # OK, works on sane cases. Now check whether nonexistent headers 4301 # OK, works on sane cases. Now check whether nonexistent headers
4102 # can be detected and how. 4302 # can be detected and how.
4103 cat >conftest.$ac_ext <<_ACEOF 4303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* confdefs.h. */
4105 _ACEOF
4106 cat confdefs.h >>conftest.$ac_ext
4107 cat >>conftest.$ac_ext <<_ACEOF
4108 /* end confdefs.h. */ 4304 /* end confdefs.h. */
4109 #include <ac_nonexistent.h> 4305 #include <ac_nonexistent.h>
4110 _ACEOF 4306 _ACEOF
4111 if { (ac_try="$ac_cpp conftest.$ac_ext" 4307 if ac_fn_c_try_cpp "$LINENO"; then :
4112 case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4117 $as_echo "$ac_try_echo") >&5
4118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4119 ac_status=$?
4120 grep -v '^ *+' conftest.er1 >conftest.err
4121 rm -f conftest.er1
4122 cat conftest.err >&5
4123 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124 (exit $ac_status); } >/dev/null && {
4125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4126 test ! -s conftest.err
4127 }; then
4128 # Broken: success on invalid input. 4308 # Broken: success on invalid input.
4129 continue 4309 continue
4130 else 4310 else
4131 $as_echo "$as_me: failed program was:" >&5
4132 sed 's/^/| /' conftest.$ac_ext >&5
4133
4134 # Passes both tests. 4311 # Passes both tests.
4135 ac_preproc_ok=: 4312 ac_preproc_ok=:
4136 break 4313 break
4137 fi 4314 fi
4138
4139 rm -f conftest.err conftest.$ac_ext 4315 rm -f conftest.err conftest.$ac_ext
4140 4316
4141 done 4317 done
4142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4318 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4143 rm -f conftest.err conftest.$ac_ext 4319 rm -f conftest.err conftest.$ac_ext
4144 if $ac_preproc_ok; then 4320 if $ac_preproc_ok; then :
4145 break 4321 break
4146 fi 4322 fi
4147 4323
4148 done 4324 done
4149 ac_cv_prog_CPP=$CPP 4325 ac_cv_prog_CPP=$CPP
4151 fi 4327 fi
4152 CPP=$ac_cv_prog_CPP 4328 CPP=$ac_cv_prog_CPP
4153 else 4329 else
4154 ac_cv_prog_CPP=$CPP 4330 ac_cv_prog_CPP=$CPP
4155 fi 4331 fi
4156 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4157 $as_echo "$CPP" >&6; } 4333 $as_echo "$CPP" >&6; }
4158 ac_preproc_ok=false 4334 ac_preproc_ok=false
4159 for ac_c_preproc_warn_flag in '' yes 4335 for ac_c_preproc_warn_flag in '' yes
4160 do 4336 do
4161 # Use a header file that comes with gcc, so configuring glibc 4337 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works. 4338 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4339 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers. 4340 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser, 4341 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error" is here to catch this case. 4342 # not just through cpp. "Syntax error" is here to catch this case.
4167 cat >conftest.$ac_ext <<_ACEOF 4343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168 /* confdefs.h. */
4169 _ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */ 4344 /* end confdefs.h. */
4173 #ifdef __STDC__ 4345 #ifdef __STDC__
4174 # include <limits.h> 4346 # include <limits.h>
4175 #else 4347 #else
4176 # include <assert.h> 4348 # include <assert.h>
4177 #endif 4349 #endif
4178 Syntax error 4350 Syntax error
4179 _ACEOF 4351 _ACEOF
4180 if { (ac_try="$ac_cpp conftest.$ac_ext" 4352 if ac_fn_c_try_cpp "$LINENO"; then :
4181 case "(($ac_try" in 4353
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4354 else
4183 *) ac_try_echo=$ac_try;;
4184 esac
4185 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4186 $as_echo "$ac_try_echo") >&5
4187 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4188 ac_status=$?
4189 grep -v '^ *+' conftest.er1 >conftest.err
4190 rm -f conftest.er1
4191 cat conftest.err >&5
4192 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4193 (exit $ac_status); } >/dev/null && {
4194 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4195 test ! -s conftest.err
4196 }; then
4197 :
4198 else
4199 $as_echo "$as_me: failed program was:" >&5
4200 sed 's/^/| /' conftest.$ac_ext >&5
4201
4202 # Broken: fails on valid input. 4355 # Broken: fails on valid input.
4203 continue 4356 continue
4204 fi 4357 fi
4205
4206 rm -f conftest.err conftest.$ac_ext 4358 rm -f conftest.err conftest.$ac_ext
4207 4359
4208 # OK, works on sane cases. Now check whether nonexistent headers 4360 # OK, works on sane cases. Now check whether nonexistent headers
4209 # can be detected and how. 4361 # can be detected and how.
4210 cat >conftest.$ac_ext <<_ACEOF 4362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* confdefs.h. */
4212 _ACEOF
4213 cat confdefs.h >>conftest.$ac_ext
4214 cat >>conftest.$ac_ext <<_ACEOF
4215 /* end confdefs.h. */ 4363 /* end confdefs.h. */
4216 #include <ac_nonexistent.h> 4364 #include <ac_nonexistent.h>
4217 _ACEOF 4365 _ACEOF
4218 if { (ac_try="$ac_cpp conftest.$ac_ext" 4366 if ac_fn_c_try_cpp "$LINENO"; then :
4219 case "(($ac_try" in
4220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4221 *) ac_try_echo=$ac_try;;
4222 esac
4223 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4224 $as_echo "$ac_try_echo") >&5
4225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4226 ac_status=$?
4227 grep -v '^ *+' conftest.er1 >conftest.err
4228 rm -f conftest.er1
4229 cat conftest.err >&5
4230 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4231 (exit $ac_status); } >/dev/null && {
4232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4233 test ! -s conftest.err
4234 }; then
4235 # Broken: success on invalid input. 4367 # Broken: success on invalid input.
4236 continue 4368 continue
4237 else 4369 else
4238 $as_echo "$as_me: failed program was:" >&5
4239 sed 's/^/| /' conftest.$ac_ext >&5
4240
4241 # Passes both tests. 4370 # Passes both tests.
4242 ac_preproc_ok=: 4371 ac_preproc_ok=:
4243 break 4372 break
4244 fi 4373 fi
4245
4246 rm -f conftest.err conftest.$ac_ext 4374 rm -f conftest.err conftest.$ac_ext
4247 4375
4248 done 4376 done
4249 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4377 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4250 rm -f conftest.err conftest.$ac_ext 4378 rm -f conftest.err conftest.$ac_ext
4251 if $ac_preproc_ok; then 4379 if $ac_preproc_ok; then :
4252 : 4380
4253 else 4381 else
4254 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4255 See \`config.log' for more details." >&5 4383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4256 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4384 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4257 See \`config.log' for more details." >&2;} 4385 See \`config.log' for more details." "$LINENO" 5; }
4258 { (exit 1); exit 1; }; }
4259 fi 4386 fi
4260 4387
4261 ac_ext=c 4388 ac_ext=c
4262 ac_cpp='$CPP $CPPFLAGS' 4389 ac_cpp='$CPP $CPPFLAGS'
4263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4265 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4266 4393
4267 4394
4268 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4269 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4396 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4270 if test "${ac_cv_path_GREP+set}" = set; then 4397 if test "${ac_cv_path_GREP+set}" = set; then :
4271 $as_echo_n "(cached) " >&6 4398 $as_echo_n "(cached) " >&6
4272 else 4399 else
4273 if test -z "$GREP"; then 4400 if test -z "$GREP"; then
4274 ac_path_GREP_found=false 4401 ac_path_GREP_found=false
4275 # Loop through the user's path and test for each of PROGNAME-LIST 4402 # Loop through the user's path and test for each of PROGNAME-LIST
4276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4277 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4404 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4278 do 4405 do
4279 IFS=$as_save_IFS 4406 IFS=$as_save_IFS
4280 test -z "$as_dir" && as_dir=. 4407 test -z "$as_dir" && as_dir=.
4281 for ac_prog in grep ggrep; do 4408 for ac_prog in grep ggrep; do
4282 for ac_exec_ext in '' $ac_executable_extensions; do 4409 for ac_exec_ext in '' $ac_executable_extensions; do
4283 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4410 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4284 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4411 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4285 # Check for GNU ac_path_GREP and select it if it is found. 4412 # Check for GNU ac_path_GREP and select it if it is found.
4286 # Check for GNU $ac_path_GREP 4413 # Check for GNU $ac_path_GREP
4296 mv "conftest.tmp" "conftest.in" 4423 mv "conftest.tmp" "conftest.in"
4297 cp "conftest.in" "conftest.nl" 4424 cp "conftest.in" "conftest.nl"
4298 $as_echo 'GREP' >> "conftest.nl" 4425 $as_echo 'GREP' >> "conftest.nl"
4299 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4426 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4427 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4301 ac_count=`expr $ac_count + 1` 4428 as_fn_arith $ac_count + 1 && ac_count=$as_val
4302 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4429 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4303 # Best one so far, save it but keep looking for a better one 4430 # Best one so far, save it but keep looking for a better one
4304 ac_cv_path_GREP="$ac_path_GREP" 4431 ac_cv_path_GREP="$ac_path_GREP"
4305 ac_path_GREP_max=$ac_count 4432 ac_path_GREP_max=$ac_count
4306 fi 4433 fi
4311 esac 4438 esac
4312 4439
4313 $ac_path_GREP_found && break 3 4440 $ac_path_GREP_found && break 3
4314 done 4441 done
4315 done 4442 done
4316 done 4443 done
4317 IFS=$as_save_IFS 4444 IFS=$as_save_IFS
4318 if test -z "$ac_cv_path_GREP"; then 4445 if test -z "$ac_cv_path_GREP"; then
4319 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4446 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4320 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4321 { (exit 1); exit 1; }; }
4322 fi 4447 fi
4323 else 4448 else
4324 ac_cv_path_GREP=$GREP 4449 ac_cv_path_GREP=$GREP
4325 fi 4450 fi
4326 4451
4327 fi 4452 fi
4328 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4329 $as_echo "$ac_cv_path_GREP" >&6; } 4454 $as_echo "$ac_cv_path_GREP" >&6; }
4330 GREP="$ac_cv_path_GREP" 4455 GREP="$ac_cv_path_GREP"
4331 4456
4332 4457
4333 { $as_echo "$as_me:$LINENO: checking for egrep" >&5 4458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4334 $as_echo_n "checking for egrep... " >&6; } 4459 $as_echo_n "checking for egrep... " >&6; }
4335 if test "${ac_cv_path_EGREP+set}" = set; then 4460 if test "${ac_cv_path_EGREP+set}" = set; then :
4336 $as_echo_n "(cached) " >&6 4461 $as_echo_n "(cached) " >&6
4337 else 4462 else
4338 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4463 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4339 then ac_cv_path_EGREP="$GREP -E" 4464 then ac_cv_path_EGREP="$GREP -E"
4340 else 4465 else
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4470 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4346 do 4471 do
4347 IFS=$as_save_IFS 4472 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=. 4473 test -z "$as_dir" && as_dir=.
4349 for ac_prog in egrep; do 4474 for ac_prog in egrep; do
4350 for ac_exec_ext in '' $ac_executable_extensions; do 4475 for ac_exec_ext in '' $ac_executable_extensions; do
4351 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4476 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4352 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4477 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4353 # Check for GNU ac_path_EGREP and select it if it is found. 4478 # Check for GNU ac_path_EGREP and select it if it is found.
4354 # Check for GNU $ac_path_EGREP 4479 # Check for GNU $ac_path_EGREP
4364 mv "conftest.tmp" "conftest.in" 4489 mv "conftest.tmp" "conftest.in"
4365 cp "conftest.in" "conftest.nl" 4490 cp "conftest.in" "conftest.nl"
4366 $as_echo 'EGREP' >> "conftest.nl" 4491 $as_echo 'EGREP' >> "conftest.nl"
4367 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4492 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4368 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4493 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4369 ac_count=`expr $ac_count + 1` 4494 as_fn_arith $ac_count + 1 && ac_count=$as_val
4370 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4495 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4371 # Best one so far, save it but keep looking for a better one 4496 # Best one so far, save it but keep looking for a better one
4372 ac_cv_path_EGREP="$ac_path_EGREP" 4497 ac_cv_path_EGREP="$ac_path_EGREP"
4373 ac_path_EGREP_max=$ac_count 4498 ac_path_EGREP_max=$ac_count
4374 fi 4499 fi
4379 esac 4504 esac
4380 4505
4381 $ac_path_EGREP_found && break 3 4506 $ac_path_EGREP_found && break 3
4382 done 4507 done
4383 done 4508 done
4384 done 4509 done
4385 IFS=$as_save_IFS 4510 IFS=$as_save_IFS
4386 if test -z "$ac_cv_path_EGREP"; then 4511 if test -z "$ac_cv_path_EGREP"; then
4387 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4512 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4388 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4389 { (exit 1); exit 1; }; }
4390 fi 4513 fi
4391 else 4514 else
4392 ac_cv_path_EGREP=$EGREP 4515 ac_cv_path_EGREP=$EGREP
4393 fi 4516 fi
4394 4517
4395 fi 4518 fi
4396 fi 4519 fi
4397 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4398 $as_echo "$ac_cv_path_EGREP" >&6; } 4521 $as_echo "$ac_cv_path_EGREP" >&6; }
4399 EGREP="$ac_cv_path_EGREP" 4522 EGREP="$ac_cv_path_EGREP"
4400 4523
4401 4524
4402 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4403 $as_echo_n "checking for ANSI C header files... " >&6; } 4526 $as_echo_n "checking for ANSI C header files... " >&6; }
4404 if test "${ac_cv_header_stdc+set}" = set; then 4527 if test "${ac_cv_header_stdc+set}" = set; then :
4405 $as_echo_n "(cached) " >&6 4528 $as_echo_n "(cached) " >&6
4406 else 4529 else
4407 cat >conftest.$ac_ext <<_ACEOF 4530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4408 /* confdefs.h. */
4409 _ACEOF
4410 cat confdefs.h >>conftest.$ac_ext
4411 cat >>conftest.$ac_ext <<_ACEOF
4412 /* end confdefs.h. */ 4531 /* end confdefs.h. */
4413 #include <stdlib.h> 4532 #include <stdlib.h>
4414 #include <stdarg.h> 4533 #include <stdarg.h>
4415 #include <string.h> 4534 #include <string.h>
4416 #include <float.h> 4535 #include <float.h>
4421 4540
4422 ; 4541 ;
4423 return 0; 4542 return 0;
4424 } 4543 }
4425 _ACEOF 4544 _ACEOF
4426 rm -f conftest.$ac_objext 4545 if ac_fn_c_try_compile "$LINENO"; then :
4427 if { (ac_try="$ac_compile"
4428 case "(($ac_try" in
4429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4430 *) ac_try_echo=$ac_try;;
4431 esac
4432 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4433 $as_echo "$ac_try_echo") >&5
4434 (eval "$ac_compile") 2>conftest.er1
4435 ac_status=$?
4436 grep -v '^ *+' conftest.er1 >conftest.err
4437 rm -f conftest.er1
4438 cat conftest.err >&5
4439 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } && {
4441 test -z "$ac_c_werror_flag" ||
4442 test ! -s conftest.err
4443 } && test -s conftest.$ac_objext; then
4444 ac_cv_header_stdc=yes 4546 ac_cv_header_stdc=yes
4445 else 4547 else
4446 $as_echo "$as_me: failed program was:" >&5 4548 ac_cv_header_stdc=no
4447 sed 's/^/| /' conftest.$ac_ext >&5 4549 fi
4448
4449 ac_cv_header_stdc=no
4450 fi
4451
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453 4551
4454 if test $ac_cv_header_stdc = yes; then 4552 if test $ac_cv_header_stdc = yes; then
4455 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4553 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4456 cat >conftest.$ac_ext <<_ACEOF 4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* confdefs.h. */
4458 _ACEOF
4459 cat confdefs.h >>conftest.$ac_ext
4460 cat >>conftest.$ac_ext <<_ACEOF
4461 /* end confdefs.h. */ 4555 /* end confdefs.h. */
4462 #include <string.h> 4556 #include <string.h>
4463 4557
4464 _ACEOF 4558 _ACEOF
4465 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4466 $EGREP "memchr" >/dev/null 2>&1; then 4560 $EGREP "memchr" >/dev/null 2>&1; then :
4467 : 4561
4468 else 4562 else
4469 ac_cv_header_stdc=no 4563 ac_cv_header_stdc=no
4470 fi 4564 fi
4471 rm -f conftest* 4565 rm -f conftest*
4472 4566
4473 fi 4567 fi
4474 4568
4475 if test $ac_cv_header_stdc = yes; then 4569 if test $ac_cv_header_stdc = yes; then
4476 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4570 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4477 cat >conftest.$ac_ext <<_ACEOF 4571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4478 /* confdefs.h. */
4479 _ACEOF
4480 cat confdefs.h >>conftest.$ac_ext
4481 cat >>conftest.$ac_ext <<_ACEOF
4482 /* end confdefs.h. */ 4572 /* end confdefs.h. */
4483 #include <stdlib.h> 4573 #include <stdlib.h>
4484 4574
4485 _ACEOF 4575 _ACEOF
4486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4487 $EGREP "free" >/dev/null 2>&1; then 4577 $EGREP "free" >/dev/null 2>&1; then :
4488 : 4578
4489 else 4579 else
4490 ac_cv_header_stdc=no 4580 ac_cv_header_stdc=no
4491 fi 4581 fi
4492 rm -f conftest* 4582 rm -f conftest*
4493 4583
4494 fi 4584 fi
4495 4585
4496 if test $ac_cv_header_stdc = yes; then 4586 if test $ac_cv_header_stdc = yes; then
4497 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4587 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4498 if test "$cross_compiling" = yes; then 4588 if test "$cross_compiling" = yes; then :
4499 : 4589 :
4500 else 4590 else
4501 cat >conftest.$ac_ext <<_ACEOF 4591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* confdefs.h. */
4503 _ACEOF
4504 cat confdefs.h >>conftest.$ac_ext
4505 cat >>conftest.$ac_ext <<_ACEOF
4506 /* end confdefs.h. */ 4592 /* end confdefs.h. */
4507 #include <ctype.h> 4593 #include <ctype.h>
4508 #include <stdlib.h> 4594 #include <stdlib.h>
4509 #if ((' ' & 0x0FF) == 0x020) 4595 #if ((' ' & 0x0FF) == 0x020)
4510 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4596 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4527 || toupper (i) != TOUPPER (i)) 4613 || toupper (i) != TOUPPER (i))
4528 return 2; 4614 return 2;
4529 return 0; 4615 return 0;
4530 } 4616 }
4531 _ACEOF 4617 _ACEOF
4532 rm -f conftest$ac_exeext 4618 if ac_fn_c_try_run "$LINENO"; then :
4533 if { (ac_try="$ac_link" 4619
4534 case "(($ac_try" in 4620 else
4535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4621 ac_cv_header_stdc=no
4536 *) ac_try_echo=$ac_try;; 4622 fi
4537 esac 4623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4624 conftest.$ac_objext conftest.beam conftest.$ac_ext
4539 $as_echo "$ac_try_echo") >&5 4625 fi
4540 (eval "$ac_link") 2>&5 4626
4541 ac_status=$? 4627 fi
4542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4628 fi
4543 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4544 { (case "(($ac_try" in
4545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4546 *) ac_try_echo=$ac_try;;
4547 esac
4548 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4549 $as_echo "$ac_try_echo") >&5
4550 (eval "$ac_try") 2>&5
4551 ac_status=$?
4552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4553 (exit $ac_status); }; }; then
4554 :
4555 else
4556 $as_echo "$as_me: program exited with status $ac_status" >&5
4557 $as_echo "$as_me: failed program was:" >&5
4558 sed 's/^/| /' conftest.$ac_ext >&5
4559
4560 ( exit $ac_status )
4561 ac_cv_header_stdc=no
4562 fi
4563 rm -rf conftest.dSYM
4564 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4565 fi
4566
4567
4568 fi
4569 fi
4570 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4571 $as_echo "$ac_cv_header_stdc" >&6; } 4630 $as_echo "$ac_cv_header_stdc" >&6; }
4572 if test $ac_cv_header_stdc = yes; then 4631 if test $ac_cv_header_stdc = yes; then
4573 4632
4574 cat >>confdefs.h <<\_ACEOF 4633 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4575 #define STDC_HEADERS 1
4576 _ACEOF
4577 4634
4578 fi 4635 fi
4579 4636
4580 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4637 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4581
4582
4583
4584
4585
4586
4587
4588
4589
4590 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4638 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4591 inttypes.h stdint.h unistd.h 4639 inttypes.h stdint.h unistd.h
4592 do 4640 do :
4593 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4641 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4594 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4642 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4595 $as_echo_n "checking for $ac_header... " >&6; } 4643 "
4596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4644 eval as_val=\$$as_ac_Header
4597 $as_echo_n "(cached) " >&6 4645 if test "x$as_val" = x""yes; then :
4598 else
4599 cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h. */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605 $ac_includes_default
4606
4607 #include <$ac_header>
4608 _ACEOF
4609 rm -f conftest.$ac_objext
4610 if { (ac_try="$ac_compile"
4611 case "(($ac_try" in
4612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4614 esac
4615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4616 $as_echo "$ac_try_echo") >&5
4617 (eval "$ac_compile") 2>conftest.er1
4618 ac_status=$?
4619 grep -v '^ *+' conftest.er1 >conftest.err
4620 rm -f conftest.er1
4621 cat conftest.err >&5
4622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623 (exit $ac_status); } && {
4624 test -z "$ac_c_werror_flag" ||
4625 test ! -s conftest.err
4626 } && test -s conftest.$ac_objext; then
4627 eval "$as_ac_Header=yes"
4628 else
4629 $as_echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.$ac_ext >&5
4631
4632 eval "$as_ac_Header=no"
4633 fi
4634
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 fi
4637 ac_res=`eval 'as_val=${'$as_ac_Header'}
4638 $as_echo "$as_val"'`
4639 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4640 $as_echo "$ac_res" >&6; }
4641 if test `eval 'as_val=${'$as_ac_Header'}
4642 $as_echo "$as_val"'` = yes; then
4643 cat >>confdefs.h <<_ACEOF 4646 cat >>confdefs.h <<_ACEOF
4644 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4647 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4645 _ACEOF 4648 _ACEOF
4646 4649
4647 fi 4650 fi
4648 4651
4649 done 4652 done
4650 4653
4651 4654
4652 4655
4653 if test "${ac_cv_header_minix_config_h+set}" = set; then 4656 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4654 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 4657 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4655 $as_echo_n "checking for minix/config.h... " >&6; } 4658 MINIX=yes
4656 if test "${ac_cv_header_minix_config_h+set}" = set; then 4659 else
4660 MINIX=
4661 fi
4662
4663
4664 if test "$MINIX" = yes; then
4665
4666 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4667
4668
4669 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4670
4671
4672 $as_echo "#define _MINIX 1" >>confdefs.h
4673
4674 fi
4675
4676
4677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4678 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4679 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4657 $as_echo_n "(cached) " >&6 4680 $as_echo_n "(cached) " >&6
4658 fi 4681 else
4659 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 4682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4660 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4661 else
4662 # Is the header compilable?
4663 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4664 $as_echo_n "checking minix/config.h usability... " >&6; }
4665 cat >conftest.$ac_ext <<_ACEOF
4666 /* confdefs.h. */
4667 _ACEOF
4668 cat confdefs.h >>conftest.$ac_ext
4669 cat >>conftest.$ac_ext <<_ACEOF
4670 /* end confdefs.h. */
4671 $ac_includes_default
4672 #include <minix/config.h>
4673 _ACEOF
4674 rm -f conftest.$ac_objext
4675 if { (ac_try="$ac_compile"
4676 case "(($ac_try" in
4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4678 *) ac_try_echo=$ac_try;;
4679 esac
4680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4681 $as_echo "$ac_try_echo") >&5
4682 (eval "$ac_compile") 2>conftest.er1
4683 ac_status=$?
4684 grep -v '^ *+' conftest.er1 >conftest.err
4685 rm -f conftest.er1
4686 cat conftest.err >&5
4687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4688 (exit $ac_status); } && {
4689 test -z "$ac_c_werror_flag" ||
4690 test ! -s conftest.err
4691 } && test -s conftest.$ac_objext; then
4692 ac_header_compiler=yes
4693 else
4694 $as_echo "$as_me: failed program was:" >&5
4695 sed 's/^/| /' conftest.$ac_ext >&5
4696
4697 ac_header_compiler=no
4698 fi
4699
4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4701 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4702 $as_echo "$ac_header_compiler" >&6; }
4703
4704 # Is the header present?
4705 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4706 $as_echo_n "checking minix/config.h presence... " >&6; }
4707 cat >conftest.$ac_ext <<_ACEOF
4708 /* confdefs.h. */
4709 _ACEOF
4710 cat confdefs.h >>conftest.$ac_ext
4711 cat >>conftest.$ac_ext <<_ACEOF
4712 /* end confdefs.h. */
4713 #include <minix/config.h>
4714 _ACEOF
4715 if { (ac_try="$ac_cpp conftest.$ac_ext"
4716 case "(($ac_try" in
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4719 esac
4720 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4721 $as_echo "$ac_try_echo") >&5
4722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4723 ac_status=$?
4724 grep -v '^ *+' conftest.er1 >conftest.err
4725 rm -f conftest.er1
4726 cat conftest.err >&5
4727 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4728 (exit $ac_status); } >/dev/null && {
4729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4730 test ! -s conftest.err
4731 }; then
4732 ac_header_preproc=yes
4733 else
4734 $as_echo "$as_me: failed program was:" >&5
4735 sed 's/^/| /' conftest.$ac_ext >&5
4736
4737 ac_header_preproc=no
4738 fi
4739
4740 rm -f conftest.err conftest.$ac_ext
4741 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4742 $as_echo "$ac_header_preproc" >&6; }
4743
4744 # So? What about this header?
4745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4746 yes:no: )
4747 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4748 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4749 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4750 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4751 ac_header_preproc=yes
4752 ;;
4753 no:yes:* )
4754 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4755 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4756 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4757 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4758 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4759 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4760 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4761 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4762 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4763 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4764 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4765 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4766
4767 ;;
4768 esac
4769 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4770 $as_echo_n "checking for minix/config.h... " >&6; }
4771 if test "${ac_cv_header_minix_config_h+set}" = set; then
4772 $as_echo_n "(cached) " >&6
4773 else
4774 ac_cv_header_minix_config_h=$ac_header_preproc
4775 fi
4776 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4777 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4778
4779 fi
4780 if test $ac_cv_header_minix_config_h = yes; then
4781 MINIX=yes
4782 else
4783 MINIX=
4784 fi
4785
4786
4787 if test "$MINIX" = yes; then
4788
4789 cat >>confdefs.h <<\_ACEOF
4790 #define _POSIX_SOURCE 1
4791 _ACEOF
4792
4793
4794 cat >>confdefs.h <<\_ACEOF
4795 #define _POSIX_1_SOURCE 2
4796 _ACEOF
4797
4798
4799 cat >>confdefs.h <<\_ACEOF
4800 #define _MINIX 1
4801 _ACEOF
4802
4803 fi
4804
4805
4806
4807 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4808 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4809 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4810 $as_echo_n "(cached) " >&6
4811 else
4812 cat >conftest.$ac_ext <<_ACEOF
4813 /* confdefs.h. */
4814 _ACEOF
4815 cat confdefs.h >>conftest.$ac_ext
4816 cat >>conftest.$ac_ext <<_ACEOF
4817 /* end confdefs.h. */ 4683 /* end confdefs.h. */
4818 4684
4819 # define __EXTENSIONS__ 1 4685 # define __EXTENSIONS__ 1
4820 $ac_includes_default 4686 $ac_includes_default
4821 int 4687 int
4824 4690
4825 ; 4691 ;
4826 return 0; 4692 return 0;
4827 } 4693 }
4828 _ACEOF 4694 _ACEOF
4829 rm -f conftest.$ac_objext 4695 if ac_fn_c_try_compile "$LINENO"; then :
4830 if { (ac_try="$ac_compile"
4831 case "(($ac_try" in
4832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4833 *) ac_try_echo=$ac_try;;
4834 esac
4835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4836 $as_echo "$ac_try_echo") >&5
4837 (eval "$ac_compile") 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } && {
4844 test -z "$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 } && test -s conftest.$ac_objext; then
4847 ac_cv_safe_to_define___extensions__=yes 4696 ac_cv_safe_to_define___extensions__=yes
4848 else 4697 else
4849 $as_echo "$as_me: failed program was:" >&5 4698 ac_cv_safe_to_define___extensions__=no
4850 sed 's/^/| /' conftest.$ac_ext >&5 4699 fi
4851
4852 ac_cv_safe_to_define___extensions__=no
4853 fi
4854
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 fi 4701 fi
4857 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4858 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4703 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4859 test $ac_cv_safe_to_define___extensions__ = yes && 4704 test $ac_cv_safe_to_define___extensions__ = yes &&
4860 cat >>confdefs.h <<\_ACEOF 4705 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4861 #define __EXTENSIONS__ 1 4706
4862 _ACEOF 4707 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4863 4708
4864 cat >>confdefs.h <<\_ACEOF 4709 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4865 #define _ALL_SOURCE 1 4710
4866 _ACEOF 4711 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4867 4712
4868 cat >>confdefs.h <<\_ACEOF 4713 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4869 #define _GNU_SOURCE 1
4870 _ACEOF
4871
4872 cat >>confdefs.h <<\_ACEOF
4873 #define _POSIX_PTHREAD_SEMANTICS 1
4874 _ACEOF
4875
4876 cat >>confdefs.h <<\_ACEOF
4877 #define _TANDEM_SOURCE 1
4878 _ACEOF
4879 4714
4880 4715
4881 4716
4882 ### Use -Wno-pointer-sign if the compiler supports it 4717 ### Use -Wno-pointer-sign if the compiler supports it
4883 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4884 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; } 4719 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4885 SAVE_CFLAGS="$CFLAGS" 4720 SAVE_CFLAGS="$CFLAGS"
4886 CFLAGS="$CFLAGS -Wno-pointer-sign" 4721 CFLAGS="$CFLAGS -Wno-pointer-sign"
4887 cat >conftest.$ac_ext <<_ACEOF 4722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4888 /* confdefs.h. */
4889 _ACEOF
4890 cat confdefs.h >>conftest.$ac_ext
4891 cat >>conftest.$ac_ext <<_ACEOF
4892 /* end confdefs.h. */ 4723 /* end confdefs.h. */
4893 4724
4894 int 4725 int
4895 main () 4726 main ()
4896 { 4727 {
4897 4728
4898 ; 4729 ;
4899 return 0; 4730 return 0;
4900 } 4731 }
4901 _ACEOF 4732 _ACEOF
4902 rm -f conftest.$ac_objext 4733 if ac_fn_c_try_compile "$LINENO"; then :
4903 if { (ac_try="$ac_compile"
4904 case "(($ac_try" in
4905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4906 *) ac_try_echo=$ac_try;;
4907 esac
4908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4909 $as_echo "$ac_try_echo") >&5
4910 (eval "$ac_compile") 2>conftest.er1
4911 ac_status=$?
4912 grep -v '^ *+' conftest.er1 >conftest.err
4913 rm -f conftest.er1
4914 cat conftest.err >&5
4915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4916 (exit $ac_status); } && {
4917 test -z "$ac_c_werror_flag" ||
4918 test ! -s conftest.err
4919 } && test -s conftest.$ac_objext; then
4920 has_option=yes 4734 has_option=yes
4921 else 4735 else
4922 $as_echo "$as_me: failed program was:" >&5 4736 has_option=no
4923 sed 's/^/| /' conftest.$ac_ext >&5 4737 fi
4924
4925 has_option=no
4926 fi
4927
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4929 if test $has_option = yes; then 4739 if test $has_option = yes; then
4930 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" 4740 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4931 fi 4741 fi
4932 { $as_echo "$as_me:$LINENO: result: $has_option" >&5 4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4933 $as_echo "$has_option" >&6; } 4743 $as_echo "$has_option" >&6; }
4934 CFLAGS="$SAVE_CFLAGS" 4744 CFLAGS="$SAVE_CFLAGS"
4935 unset has_option 4745 unset has_option
4936 unset SAVE_CFLAGS 4746 unset SAVE_CFLAGS
4937 4747
4938 ### Use -Wdeclaration-after-statement if the compiler supports it 4748 ### Use -Wdeclaration-after-statement if the compiler supports it
4939 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5 4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4940 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } 4750 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4941 SAVE_CFLAGS="$CFLAGS" 4751 SAVE_CFLAGS="$CFLAGS"
4942 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 4752 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4943 cat >conftest.$ac_ext <<_ACEOF 4753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* confdefs.h. */
4945 _ACEOF
4946 cat confdefs.h >>conftest.$ac_ext
4947 cat >>conftest.$ac_ext <<_ACEOF
4948 /* end confdefs.h. */ 4754 /* end confdefs.h. */
4949 4755
4950 int 4756 int
4951 main () 4757 main ()
4952 { 4758 {
4953 4759
4954 ; 4760 ;
4955 return 0; 4761 return 0;
4956 } 4762 }
4957 _ACEOF 4763 _ACEOF
4958 rm -f conftest.$ac_objext 4764 if ac_fn_c_try_compile "$LINENO"; then :
4959 if { (ac_try="$ac_compile"
4960 case "(($ac_try" in
4961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4962 *) ac_try_echo=$ac_try;;
4963 esac
4964 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4965 $as_echo "$ac_try_echo") >&5
4966 (eval "$ac_compile") 2>conftest.er1
4967 ac_status=$?
4968 grep -v '^ *+' conftest.er1 >conftest.err
4969 rm -f conftest.er1
4970 cat conftest.err >&5
4971 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4972 (exit $ac_status); } && {
4973 test -z "$ac_c_werror_flag" ||
4974 test ! -s conftest.err
4975 } && test -s conftest.$ac_objext; then
4976 has_option=yes 4765 has_option=yes
4977 else 4766 else
4978 $as_echo "$as_me: failed program was:" >&5 4767 has_option=no
4979 sed 's/^/| /' conftest.$ac_ext >&5 4768 fi
4980
4981 has_option=no
4982 fi
4983
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 if test $has_option = yes; then 4770 if test $has_option = yes; then
4986 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" 4771 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4987 fi 4772 fi
4988 { $as_echo "$as_me:$LINENO: result: $has_option" >&5 4773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4989 $as_echo "$has_option" >&6; } 4774 $as_echo "$has_option" >&6; }
4990 CFLAGS="$SAVE_CFLAGS" 4775 CFLAGS="$SAVE_CFLAGS"
4991 unset has_option 4776 unset has_option
4992 unset SAVE_CFLAGS 4777 unset SAVE_CFLAGS
4993 4778
4994 #### Some other nice autoconf tests. 4779 #### Some other nice autoconf tests.
4995 4780
4996 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4997 $as_echo_n "checking whether ln -s works... " >&6; } 4782 $as_echo_n "checking whether ln -s works... " >&6; }
4998 LN_S=$as_ln_s 4783 LN_S=$as_ln_s
4999 if test "$LN_S" = "ln -s"; then 4784 if test "$LN_S" = "ln -s"; then
5000 { $as_echo "$as_me:$LINENO: result: yes" >&5 4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5001 $as_echo "yes" >&6; } 4786 $as_echo "yes" >&6; }
5002 else 4787 else
5003 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5004 $as_echo "no, using $LN_S" >&6; } 4789 $as_echo "no, using $LN_S" >&6; }
5005 fi 4790 fi
5006 4791
5007 ac_ext=c 4792 ac_ext=c
5008 ac_cpp='$CPP $CPPFLAGS' 4793 ac_cpp='$CPP $CPPFLAGS'
5009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5011 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5012 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5013 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4798 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5014 # On Suns, sometimes $CPP names a directory. 4799 # On Suns, sometimes $CPP names a directory.
5015 if test -n "$CPP" && test -d "$CPP"; then 4800 if test -n "$CPP" && test -d "$CPP"; then
5016 CPP= 4801 CPP=
5017 fi 4802 fi
5018 if test -z "$CPP"; then 4803 if test -z "$CPP"; then
5019 if test "${ac_cv_prog_CPP+set}" = set; then 4804 if test "${ac_cv_prog_CPP+set}" = set; then :
5020 $as_echo_n "(cached) " >&6 4805 $as_echo_n "(cached) " >&6
5021 else 4806 else
5022 # Double quotes because CPP needs to be expanded 4807 # Double quotes because CPP needs to be expanded
5023 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4808 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5024 do 4809 do
5029 # with a fresh cross-compiler works. 4814 # with a fresh cross-compiler works.
5030 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4815 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5031 # <limits.h> exists even on freestanding compilers. 4816 # <limits.h> exists even on freestanding compilers.
5032 # On the NeXT, cc -E runs the code through the compiler's parser, 4817 # On the NeXT, cc -E runs the code through the compiler's parser,
5033 # not just through cpp. "Syntax error" is here to catch this case. 4818 # not just through cpp. "Syntax error" is here to catch this case.
5034 cat >conftest.$ac_ext <<_ACEOF 4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5035 /* confdefs.h. */
5036 _ACEOF
5037 cat confdefs.h >>conftest.$ac_ext
5038 cat >>conftest.$ac_ext <<_ACEOF
5039 /* end confdefs.h. */ 4820 /* end confdefs.h. */
5040 #ifdef __STDC__ 4821 #ifdef __STDC__
5041 # include <limits.h> 4822 # include <limits.h>
5042 #else 4823 #else
5043 # include <assert.h> 4824 # include <assert.h>
5044 #endif 4825 #endif
5045 Syntax error 4826 Syntax error
5046 _ACEOF 4827 _ACEOF
5047 if { (ac_try="$ac_cpp conftest.$ac_ext" 4828 if ac_fn_c_try_cpp "$LINENO"; then :
5048 case "(($ac_try" in 4829
5049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4830 else
5050 *) ac_try_echo=$ac_try;;
5051 esac
5052 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5053 $as_echo "$ac_try_echo") >&5
5054 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5055 ac_status=$?
5056 grep -v '^ *+' conftest.er1 >conftest.err
5057 rm -f conftest.er1
5058 cat conftest.err >&5
5059 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5060 (exit $ac_status); } >/dev/null && {
5061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5062 test ! -s conftest.err
5063 }; then
5064 :
5065 else
5066 $as_echo "$as_me: failed program was:" >&5
5067 sed 's/^/| /' conftest.$ac_ext >&5
5068
5069 # Broken: fails on valid input. 4831 # Broken: fails on valid input.
5070 continue 4832 continue
5071 fi 4833 fi
5072
5073 rm -f conftest.err conftest.$ac_ext 4834 rm -f conftest.err conftest.$ac_ext
5074 4835
5075 # OK, works on sane cases. Now check whether nonexistent headers 4836 # OK, works on sane cases. Now check whether nonexistent headers
5076 # can be detected and how. 4837 # can be detected and how.
5077 cat >conftest.$ac_ext <<_ACEOF 4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5078 /* confdefs.h. */
5079 _ACEOF
5080 cat confdefs.h >>conftest.$ac_ext
5081 cat >>conftest.$ac_ext <<_ACEOF
5082 /* end confdefs.h. */ 4839 /* end confdefs.h. */
5083 #include <ac_nonexistent.h> 4840 #include <ac_nonexistent.h>
5084 _ACEOF 4841 _ACEOF
5085 if { (ac_try="$ac_cpp conftest.$ac_ext" 4842 if ac_fn_c_try_cpp "$LINENO"; then :
5086 case "(($ac_try" in
5087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5088 *) ac_try_echo=$ac_try;;
5089 esac
5090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5091 $as_echo "$ac_try_echo") >&5
5092 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5093 ac_status=$?
5094 grep -v '^ *+' conftest.er1 >conftest.err
5095 rm -f conftest.er1
5096 cat conftest.err >&5
5097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5098 (exit $ac_status); } >/dev/null && {
5099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5100 test ! -s conftest.err
5101 }; then
5102 # Broken: success on invalid input. 4843 # Broken: success on invalid input.
5103 continue 4844 continue
5104 else 4845 else
5105 $as_echo "$as_me: failed program was:" >&5
5106 sed 's/^/| /' conftest.$ac_ext >&5
5107
5108 # Passes both tests. 4846 # Passes both tests.
5109 ac_preproc_ok=: 4847 ac_preproc_ok=:
5110 break 4848 break
5111 fi 4849 fi
5112
5113 rm -f conftest.err conftest.$ac_ext 4850 rm -f conftest.err conftest.$ac_ext
5114 4851
5115 done 4852 done
5116 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5117 rm -f conftest.err conftest.$ac_ext 4854 rm -f conftest.err conftest.$ac_ext
5118 if $ac_preproc_ok; then 4855 if $ac_preproc_ok; then :
5119 break 4856 break
5120 fi 4857 fi
5121 4858
5122 done 4859 done
5123 ac_cv_prog_CPP=$CPP 4860 ac_cv_prog_CPP=$CPP
5125 fi 4862 fi
5126 CPP=$ac_cv_prog_CPP 4863 CPP=$ac_cv_prog_CPP
5127 else 4864 else
5128 ac_cv_prog_CPP=$CPP 4865 ac_cv_prog_CPP=$CPP
5129 fi 4866 fi
5130 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 4867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5131 $as_echo "$CPP" >&6; } 4868 $as_echo "$CPP" >&6; }
5132 ac_preproc_ok=false 4869 ac_preproc_ok=false
5133 for ac_c_preproc_warn_flag in '' yes 4870 for ac_c_preproc_warn_flag in '' yes
5134 do 4871 do
5135 # Use a header file that comes with gcc, so configuring glibc 4872 # Use a header file that comes with gcc, so configuring glibc
5136 # with a fresh cross-compiler works. 4873 # with a fresh cross-compiler works.
5137 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4874 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5138 # <limits.h> exists even on freestanding compilers. 4875 # <limits.h> exists even on freestanding compilers.
5139 # On the NeXT, cc -E runs the code through the compiler's parser, 4876 # On the NeXT, cc -E runs the code through the compiler's parser,
5140 # not just through cpp. "Syntax error" is here to catch this case. 4877 # not just through cpp. "Syntax error" is here to catch this case.
5141 cat >conftest.$ac_ext <<_ACEOF 4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5142 /* confdefs.h. */
5143 _ACEOF
5144 cat confdefs.h >>conftest.$ac_ext
5145 cat >>conftest.$ac_ext <<_ACEOF
5146 /* end confdefs.h. */ 4879 /* end confdefs.h. */
5147 #ifdef __STDC__ 4880 #ifdef __STDC__
5148 # include <limits.h> 4881 # include <limits.h>
5149 #else 4882 #else
5150 # include <assert.h> 4883 # include <assert.h>
5151 #endif 4884 #endif
5152 Syntax error 4885 Syntax error
5153 _ACEOF 4886 _ACEOF
5154 if { (ac_try="$ac_cpp conftest.$ac_ext" 4887 if ac_fn_c_try_cpp "$LINENO"; then :
5155 case "(($ac_try" in 4888
5156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4889 else
5157 *) ac_try_echo=$ac_try;;
5158 esac
5159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5160 $as_echo "$ac_try_echo") >&5
5161 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5162 ac_status=$?
5163 grep -v '^ *+' conftest.er1 >conftest.err
5164 rm -f conftest.er1
5165 cat conftest.err >&5
5166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5167 (exit $ac_status); } >/dev/null && {
5168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5169 test ! -s conftest.err
5170 }; then
5171 :
5172 else
5173 $as_echo "$as_me: failed program was:" >&5
5174 sed 's/^/| /' conftest.$ac_ext >&5
5175
5176 # Broken: fails on valid input. 4890 # Broken: fails on valid input.
5177 continue 4891 continue
5178 fi 4892 fi
5179
5180 rm -f conftest.err conftest.$ac_ext 4893 rm -f conftest.err conftest.$ac_ext
5181 4894
5182 # OK, works on sane cases. Now check whether nonexistent headers 4895 # OK, works on sane cases. Now check whether nonexistent headers
5183 # can be detected and how. 4896 # can be detected and how.
5184 cat >conftest.$ac_ext <<_ACEOF 4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185 /* confdefs.h. */
5186 _ACEOF
5187 cat confdefs.h >>conftest.$ac_ext
5188 cat >>conftest.$ac_ext <<_ACEOF
5189 /* end confdefs.h. */ 4898 /* end confdefs.h. */
5190 #include <ac_nonexistent.h> 4899 #include <ac_nonexistent.h>
5191 _ACEOF 4900 _ACEOF
5192 if { (ac_try="$ac_cpp conftest.$ac_ext" 4901 if ac_fn_c_try_cpp "$LINENO"; then :
5193 case "(($ac_try" in
5194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5195 *) ac_try_echo=$ac_try;;
5196 esac
5197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5198 $as_echo "$ac_try_echo") >&5
5199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5200 ac_status=$?
5201 grep -v '^ *+' conftest.er1 >conftest.err
5202 rm -f conftest.er1
5203 cat conftest.err >&5
5204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); } >/dev/null && {
5206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5207 test ! -s conftest.err
5208 }; then
5209 # Broken: success on invalid input. 4902 # Broken: success on invalid input.
5210 continue 4903 continue
5211 else 4904 else
5212 $as_echo "$as_me: failed program was:" >&5
5213 sed 's/^/| /' conftest.$ac_ext >&5
5214
5215 # Passes both tests. 4905 # Passes both tests.
5216 ac_preproc_ok=: 4906 ac_preproc_ok=:
5217 break 4907 break
5218 fi 4908 fi
5219
5220 rm -f conftest.err conftest.$ac_ext 4909 rm -f conftest.err conftest.$ac_ext
5221 4910
5222 done 4911 done
5223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5224 rm -f conftest.err conftest.$ac_ext 4913 rm -f conftest.err conftest.$ac_ext
5225 if $ac_preproc_ok; then 4914 if $ac_preproc_ok; then :
5226 : 4915
5227 else 4916 else
5228 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4917 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5229 See \`config.log' for more details." >&5 4918 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5230 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4919 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5231 See \`config.log' for more details." >&2;} 4920 See \`config.log' for more details." "$LINENO" 5; }
5232 { (exit 1); exit 1; }; }
5233 fi 4921 fi
5234 4922
5235 ac_ext=c 4923 ac_ext=c
5236 ac_cpp='$CPP $CPPFLAGS' 4924 ac_cpp='$CPP $CPPFLAGS'
5237 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4925 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5250 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 4938 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5251 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4939 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5252 # OS/2's system install, which has a completely different semantic 4940 # OS/2's system install, which has a completely different semantic
5253 # ./install, which can be erroneously created by make from ./install.sh. 4941 # ./install, which can be erroneously created by make from ./install.sh.
5254 # Reject install programs that cannot install multiple files. 4942 # Reject install programs that cannot install multiple files.
5255 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5256 $as_echo_n "checking for a BSD-compatible install... " >&6; } 4944 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5257 if test -z "$INSTALL"; then 4945 if test -z "$INSTALL"; then
5258 if test "${ac_cv_path_install+set}" = set; then 4946 if test "${ac_cv_path_install+set}" = set; then :
5259 $as_echo_n "(cached) " >&6 4947 $as_echo_n "(cached) " >&6
5260 else 4948 else
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in $PATH 4950 for as_dir in $PATH
5263 do 4951 do
5264 IFS=$as_save_IFS 4952 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=. 4953 test -z "$as_dir" && as_dir=.
5266 # Account for people who put trailing slashes in PATH elements. 4954 # Account for people who put trailing slashes in PATH elements.
5267 case $as_dir/ in 4955 case $as_dir/ in #((
5268 ./ | .// | /cC/* | \ 4956 ./ | .// | /[cC]/* | \
5269 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4957 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5270 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4958 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5271 /usr/ucb/* ) ;; 4959 /usr/ucb/* ) ;;
5272 *) 4960 *)
5273 # OSF1 and SCO ODT 3.0 have their own names for install. 4961 # OSF1 and SCO ODT 3.0 have their own names for install.
5274 # Don't use installbsd from OSF since it installs stuff as root 4962 # Don't use installbsd from OSF since it installs stuff as root
5275 # by default. 4963 # by default.
5302 done 4990 done
5303 done 4991 done
5304 ;; 4992 ;;
5305 esac 4993 esac
5306 4994
5307 done 4995 done
5308 IFS=$as_save_IFS 4996 IFS=$as_save_IFS
5309 4997
5310 rm -rf conftest.one conftest.two conftest.dir 4998 rm -rf conftest.one conftest.two conftest.dir
5311 4999
5312 fi 5000 fi
5318 # break other packages using the cache if that directory is 5006 # break other packages using the cache if that directory is
5319 # removed, or if the value is a relative name. 5007 # removed, or if the value is a relative name.
5320 INSTALL=$ac_install_sh 5008 INSTALL=$ac_install_sh
5321 fi 5009 fi
5322 fi 5010 fi
5323 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5324 $as_echo "$INSTALL" >&6; } 5012 $as_echo "$INSTALL" >&6; }
5325 5013
5326 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5014 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5327 # It thinks the first close brace ends the variable substitution. 5015 # It thinks the first close brace ends the variable substitution.
5328 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5016 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5333 5021
5334 if test "x$RANLIB" = x; then 5022 if test "x$RANLIB" = x; then
5335 if test -n "$ac_tool_prefix"; then 5023 if test -n "$ac_tool_prefix"; then
5336 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5024 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5337 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5025 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5338 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5339 $as_echo_n "checking for $ac_word... " >&6; } 5027 $as_echo_n "checking for $ac_word... " >&6; }
5340 if test "${ac_cv_prog_RANLIB+set}" = set; then 5028 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5341 $as_echo_n "(cached) " >&6 5029 $as_echo_n "(cached) " >&6
5342 else 5030 else
5343 if test -n "$RANLIB"; then 5031 if test -n "$RANLIB"; then
5344 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5032 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5345 else 5033 else
5346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5034 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5347 for as_dir in $PATH 5035 for as_dir in $PATH
5348 do 5036 do
5349 IFS=$as_save_IFS 5037 IFS=$as_save_IFS
5350 test -z "$as_dir" && as_dir=. 5038 test -z "$as_dir" && as_dir=.
5351 for ac_exec_ext in '' $ac_executable_extensions; do 5039 for ac_exec_ext in '' $ac_executable_extensions; do
5352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5040 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5353 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5041 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5354 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 break 2 5043 break 2
5356 fi 5044 fi
5357 done 5045 done
5358 done 5046 done
5359 IFS=$as_save_IFS 5047 IFS=$as_save_IFS
5360 5048
5361 fi 5049 fi
5362 fi 5050 fi
5363 RANLIB=$ac_cv_prog_RANLIB 5051 RANLIB=$ac_cv_prog_RANLIB
5364 if test -n "$RANLIB"; then 5052 if test -n "$RANLIB"; then
5365 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5366 $as_echo "$RANLIB" >&6; } 5054 $as_echo "$RANLIB" >&6; }
5367 else 5055 else
5368 { $as_echo "$as_me:$LINENO: result: no" >&5 5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5369 $as_echo "no" >&6; } 5057 $as_echo "no" >&6; }
5370 fi 5058 fi
5371 5059
5372 5060
5373 fi 5061 fi
5374 if test -z "$ac_cv_prog_RANLIB"; then 5062 if test -z "$ac_cv_prog_RANLIB"; then
5375 ac_ct_RANLIB=$RANLIB 5063 ac_ct_RANLIB=$RANLIB
5376 # Extract the first word of "ranlib", so it can be a program name with args. 5064 # Extract the first word of "ranlib", so it can be a program name with args.
5377 set dummy ranlib; ac_word=$2 5065 set dummy ranlib; ac_word=$2
5378 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5379 $as_echo_n "checking for $ac_word... " >&6; } 5067 $as_echo_n "checking for $ac_word... " >&6; }
5380 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5068 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5381 $as_echo_n "(cached) " >&6 5069 $as_echo_n "(cached) " >&6
5382 else 5070 else
5383 if test -n "$ac_ct_RANLIB"; then 5071 if test -n "$ac_ct_RANLIB"; then
5384 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5072 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5385 else 5073 else
5386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5387 for as_dir in $PATH 5075 for as_dir in $PATH
5388 do 5076 do
5389 IFS=$as_save_IFS 5077 IFS=$as_save_IFS
5390 test -z "$as_dir" && as_dir=. 5078 test -z "$as_dir" && as_dir=.
5391 for ac_exec_ext in '' $ac_executable_extensions; do 5079 for ac_exec_ext in '' $ac_executable_extensions; do
5392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5393 ac_cv_prog_ac_ct_RANLIB="ranlib" 5081 ac_cv_prog_ac_ct_RANLIB="ranlib"
5394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5395 break 2 5083 break 2
5396 fi 5084 fi
5397 done 5085 done
5398 done 5086 done
5399 IFS=$as_save_IFS 5087 IFS=$as_save_IFS
5400 5088
5401 fi 5089 fi
5402 fi 5090 fi
5403 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5091 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5404 if test -n "$ac_ct_RANLIB"; then 5092 if test -n "$ac_ct_RANLIB"; then
5405 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5406 $as_echo "$ac_ct_RANLIB" >&6; } 5094 $as_echo "$ac_ct_RANLIB" >&6; }
5407 else 5095 else
5408 { $as_echo "$as_me:$LINENO: result: no" >&5 5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5409 $as_echo "no" >&6; } 5097 $as_echo "no" >&6; }
5410 fi 5098 fi
5411 5099
5412 if test "x$ac_ct_RANLIB" = x; then 5100 if test "x$ac_ct_RANLIB" = x; then
5413 RANLIB=":" 5101 RANLIB=":"
5414 else 5102 else
5415 case $cross_compiling:$ac_tool_warned in 5103 case $cross_compiling:$ac_tool_warned in
5416 yes:) 5104 yes:)
5417 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5418 whose name does not start with the host triplet. If you think this 5106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5419 configuration is useful to you, please write to autoconf@gnu.org." >&5
5420 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5421 whose name does not start with the host triplet. If you think this
5422 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5423 ac_tool_warned=yes ;; 5107 ac_tool_warned=yes ;;
5424 esac 5108 esac
5425 RANLIB=$ac_ct_RANLIB 5109 RANLIB=$ac_ct_RANLIB
5426 fi 5110 fi
5427 else 5111 else
5429 fi 5113 fi
5430 5114
5431 fi 5115 fi
5432 # Extract the first word of "install-info", so it can be a program name with args. 5116 # Extract the first word of "install-info", so it can be a program name with args.
5433 set dummy install-info; ac_word=$2 5117 set dummy install-info; ac_word=$2
5434 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5435 $as_echo_n "checking for $ac_word... " >&6; } 5119 $as_echo_n "checking for $ac_word... " >&6; }
5436 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then 5120 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5437 $as_echo_n "(cached) " >&6 5121 $as_echo_n "(cached) " >&6
5438 else 5122 else
5439 case $INSTALL_INFO in 5123 case $INSTALL_INFO in
5440 [\\/]* | ?:[\\/]*) 5124 [\\/]* | ?:[\\/]*)
5441 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 5125 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445 for as_dir in $PATH 5129 for as_dir in $PATH
5446 do 5130 do
5447 IFS=$as_save_IFS 5131 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=. 5132 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do 5133 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5451 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5135 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5452 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2 5137 break 2
5454 fi 5138 fi
5455 done 5139 done
5456 done 5140 done
5457 IFS=$as_save_IFS 5141 IFS=$as_save_IFS
5458 5142
5459 ;; 5143 ;;
5460 esac 5144 esac
5461 fi 5145 fi
5462 INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5146 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5463 if test -n "$INSTALL_INFO"; then 5147 if test -n "$INSTALL_INFO"; then
5464 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5465 $as_echo "$INSTALL_INFO" >&6; } 5149 $as_echo "$INSTALL_INFO" >&6; }
5466 else 5150 else
5467 { $as_echo "$as_me:$LINENO: result: no" >&5 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5468 $as_echo "no" >&6; } 5152 $as_echo "no" >&6; }
5469 fi 5153 fi
5470 5154
5471 5155
5472 # Extract the first word of "install-info", so it can be a program name with args. 5156 # Extract the first word of "install-info", so it can be a program name with args.
5473 set dummy install-info; ac_word=$2 5157 set dummy install-info; ac_word=$2
5474 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5475 $as_echo_n "checking for $ac_word... " >&6; } 5159 $as_echo_n "checking for $ac_word... " >&6; }
5476 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then 5160 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5477 $as_echo_n "(cached) " >&6 5161 $as_echo_n "(cached) " >&6
5478 else 5162 else
5479 case $INSTALL_INFO in 5163 case $INSTALL_INFO in
5480 [\\/]* | ?:[\\/]*) 5164 [\\/]* | ?:[\\/]*)
5481 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 5165 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5485 for as_dir in /usr/sbin 5169 for as_dir in /usr/sbin
5486 do 5170 do
5487 IFS=$as_save_IFS 5171 IFS=$as_save_IFS
5488 test -z "$as_dir" && as_dir=. 5172 test -z "$as_dir" && as_dir=.
5489 for ac_exec_ext in '' $ac_executable_extensions; do 5173 for ac_exec_ext in '' $ac_executable_extensions; do
5490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5491 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5175 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5492 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5493 break 2 5177 break 2
5494 fi 5178 fi
5495 done 5179 done
5496 done 5180 done
5497 IFS=$as_save_IFS 5181 IFS=$as_save_IFS
5498 5182
5499 ;; 5183 ;;
5500 esac 5184 esac
5501 fi 5185 fi
5502 INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5186 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5503 if test -n "$INSTALL_INFO"; then 5187 if test -n "$INSTALL_INFO"; then
5504 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5505 $as_echo "$INSTALL_INFO" >&6; } 5189 $as_echo "$INSTALL_INFO" >&6; }
5506 else 5190 else
5507 { $as_echo "$as_me:$LINENO: result: no" >&5 5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5508 $as_echo "no" >&6; } 5192 $as_echo "no" >&6; }
5509 fi 5193 fi
5510 5194
5511 5195
5512 # Extract the first word of "install-info", so it can be a program name with args. 5196 # Extract the first word of "install-info", so it can be a program name with args.
5513 set dummy install-info; ac_word=$2 5197 set dummy install-info; ac_word=$2
5514 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; } 5199 $as_echo_n "checking for $ac_word... " >&6; }
5516 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then 5200 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5517 $as_echo_n "(cached) " >&6 5201 $as_echo_n "(cached) " >&6
5518 else 5202 else
5519 case $INSTALL_INFO in 5203 case $INSTALL_INFO in
5520 [\\/]* | ?:[\\/]*) 5204 [\\/]* | ?:[\\/]*)
5521 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 5205 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5525 for as_dir in /sbin 5209 for as_dir in /sbin
5526 do 5210 do
5527 IFS=$as_save_IFS 5211 IFS=$as_save_IFS
5528 test -z "$as_dir" && as_dir=. 5212 test -z "$as_dir" && as_dir=.
5529 for ac_exec_ext in '' $ac_executable_extensions; do 5213 for ac_exec_ext in '' $ac_executable_extensions; do
5530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5214 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5531 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5215 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5533 break 2 5217 break 2
5534 fi 5218 fi
5535 done 5219 done
5536 done 5220 done
5537 IFS=$as_save_IFS 5221 IFS=$as_save_IFS
5538 5222
5539 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" 5223 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5540 ;; 5224 ;;
5541 esac 5225 esac
5542 fi 5226 fi
5543 INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5227 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5544 if test -n "$INSTALL_INFO"; then 5228 if test -n "$INSTALL_INFO"; then
5545 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5546 $as_echo "$INSTALL_INFO" >&6; } 5230 $as_echo "$INSTALL_INFO" >&6; }
5547 else 5231 else
5548 { $as_echo "$as_me:$LINENO: result: no" >&5 5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; } 5233 $as_echo "no" >&6; }
5550 fi 5234 fi
5551 5235
5552 5236
5553 # Extract the first word of "gzip", so it can be a program name with args. 5237 # Extract the first word of "gzip", so it can be a program name with args.
5554 set dummy gzip; ac_word=$2 5238 set dummy gzip; ac_word=$2
5555 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5556 $as_echo_n "checking for $ac_word... " >&6; } 5240 $as_echo_n "checking for $ac_word... " >&6; }
5557 if test "${ac_cv_path_GZIP_PROG+set}" = set; then 5241 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5558 $as_echo_n "(cached) " >&6 5242 $as_echo_n "(cached) " >&6
5559 else 5243 else
5560 case $GZIP_PROG in 5244 case $GZIP_PROG in
5561 [\\/]* | ?:[\\/]*) 5245 [\\/]* | ?:[\\/]*)
5562 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. 5246 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5566 for as_dir in $PATH 5250 for as_dir in $PATH
5567 do 5251 do
5568 IFS=$as_save_IFS 5252 IFS=$as_save_IFS
5569 test -z "$as_dir" && as_dir=. 5253 test -z "$as_dir" && as_dir=.
5570 for ac_exec_ext in '' $ac_executable_extensions; do 5254 for ac_exec_ext in '' $ac_executable_extensions; do
5571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5572 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" 5256 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5573 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5574 break 2 5258 break 2
5575 fi 5259 fi
5576 done 5260 done
5577 done 5261 done
5578 IFS=$as_save_IFS 5262 IFS=$as_save_IFS
5579 5263
5580 ;; 5264 ;;
5581 esac 5265 esac
5582 fi 5266 fi
5583 GZIP_PROG=$ac_cv_path_GZIP_PROG 5267 GZIP_PROG=$ac_cv_path_GZIP_PROG
5584 if test -n "$GZIP_PROG"; then 5268 if test -n "$GZIP_PROG"; then
5585 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5 5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5586 $as_echo "$GZIP_PROG" >&6; } 5270 $as_echo "$GZIP_PROG" >&6; }
5587 else 5271 else
5588 { $as_echo "$as_me:$LINENO: result: no" >&5 5272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; } 5273 $as_echo "no" >&6; }
5590 fi 5274 fi
5591 5275
5592 5276
5593 5277
5594 5278
5595 ## Need makeinfo >= 4.6 (?) to build the manuals. 5279 ## Need makeinfo >= 4.6 (?) to build the manuals.
5596 # Extract the first word of "makeinfo", so it can be a program name with args. 5280 # Extract the first word of "makeinfo", so it can be a program name with args.
5597 set dummy makeinfo; ac_word=$2 5281 set dummy makeinfo; ac_word=$2
5598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5599 $as_echo_n "checking for $ac_word... " >&6; } 5283 $as_echo_n "checking for $ac_word... " >&6; }
5600 if test "${ac_cv_path_MAKEINFO+set}" = set; then 5284 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5601 $as_echo_n "(cached) " >&6 5285 $as_echo_n "(cached) " >&6
5602 else 5286 else
5603 case $MAKEINFO in 5287 case $MAKEINFO in
5604 [\\/]* | ?:[\\/]*) 5288 [\\/]* | ?:[\\/]*)
5605 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. 5289 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5609 for as_dir in $PATH 5293 for as_dir in $PATH
5610 do 5294 do
5611 IFS=$as_save_IFS 5295 IFS=$as_save_IFS
5612 test -z "$as_dir" && as_dir=. 5296 test -z "$as_dir" && as_dir=.
5613 for ac_exec_ext in '' $ac_executable_extensions; do 5297 for ac_exec_ext in '' $ac_executable_extensions; do
5614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5298 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5615 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" 5299 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5617 break 2 5301 break 2
5618 fi 5302 fi
5619 done 5303 done
5620 done 5304 done
5621 IFS=$as_save_IFS 5305 IFS=$as_save_IFS
5622 5306
5623 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" 5307 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5624 ;; 5308 ;;
5625 esac 5309 esac
5626 fi 5310 fi
5627 MAKEINFO=$ac_cv_path_MAKEINFO 5311 MAKEINFO=$ac_cv_path_MAKEINFO
5628 if test -n "$MAKEINFO"; then 5312 if test -n "$MAKEINFO"; then
5629 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5 5313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5630 $as_echo "$MAKEINFO" >&6; } 5314 $as_echo "$MAKEINFO" >&6; }
5631 else 5315 else
5632 { $as_echo "$as_me:$LINENO: result: no" >&5 5316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5633 $as_echo "no" >&6; } 5317 $as_echo "no" >&6; }
5634 fi 5318 fi
5635 5319
5636 5320
5637 if test "$MAKEINFO" != "no" && \ 5321 if test "$MAKEINFO" != "no" && \
5650 ## with pre-built manuals, from a Bazaar checkout. 5334 ## with pre-built manuals, from a Bazaar checkout.
5651 if test "$MAKEINFO" = "no"; then 5335 if test "$MAKEINFO" = "no"; then
5652 if test "x${with_makeinfo}" = "xno"; then 5336 if test "x${with_makeinfo}" = "xno"; then
5653 MAKEINFO=off 5337 MAKEINFO=off
5654 elif test ! -e $srcdir/info/emacs; then 5338 elif test ! -e $srcdir/info/emacs; then
5655 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your 5339 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5656 source tree does not seem to have pre-built manuals in the \`info' directory. 5340 source tree does not seem to have pre-built manuals in the \`info' directory.
5657 Either install a suitable version of makeinfo, or re-run configure 5341 Either install a suitable version of makeinfo, or re-run configure
5658 with the \`--without-makeinfo' option to build without the manuals. " >&5 5342 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5659 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5660 source tree does not seem to have pre-built manuals in the \`info' directory.
5661 Either install a suitable version of makeinfo, or re-run configure
5662 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5663 { (exit 1); exit 1; }; }
5664 fi 5343 fi
5665 fi 5344 fi
5666 5345
5667 5346
5668 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x 5347 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5681 LDFLAGS="$LDFLAGS -Wl,-znocombreloc" 5360 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5682 else 5361 else
5683 LDFLAGS="$LDFLAGS -znocombreloc" 5362 LDFLAGS="$LDFLAGS -znocombreloc"
5684 fi 5363 fi
5685 5364
5686 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5 5365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5687 $as_echo_n "checking for -znocombreloc... " >&6; } 5366 $as_echo_n "checking for -znocombreloc... " >&6; }
5688 cat >conftest.$ac_ext <<_ACEOF 5367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5368 /* end confdefs.h. */
5689 main(){return 0;} 5369 main(){return 0;}
5690 _ACEOF 5370 _ACEOF
5691 rm -f conftest.$ac_objext conftest$ac_exeext 5371 if ac_fn_c_try_link "$LINENO"; then :
5692 if { (ac_try="$ac_link" 5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5693 case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696 esac
5697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5698 $as_echo "$ac_try_echo") >&5
5699 (eval "$ac_link") 2>conftest.er1
5700 ac_status=$?
5701 grep -v '^ *+' conftest.er1 >conftest.err
5702 rm -f conftest.er1
5703 cat conftest.err >&5
5704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); } && {
5706 test -z "$ac_c_werror_flag" ||
5707 test ! -s conftest.err
5708 } && test -s conftest$ac_exeext && {
5709 test "$cross_compiling" = yes ||
5710 $as_test_x conftest$ac_exeext
5711 }; then
5712 { $as_echo "$as_me:$LINENO: result: yes" >&5
5713 $as_echo "yes" >&6; } 5373 $as_echo "yes" >&6; }
5714 else 5374 else
5715 $as_echo "$as_me: failed program was:" >&5 5375 LDFLAGS=$late_LDFLAGS
5716 sed 's/^/| /' conftest.$ac_ext >&5 5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5717
5718 LDFLAGS=$late_LDFLAGS
5719 { $as_echo "$as_me:$LINENO: result: no" >&5
5720 $as_echo "no" >&6; } 5377 $as_echo "no" >&6; }
5721 fi 5378 fi
5722 5379 rm -f core conftest.err conftest.$ac_objext \
5723 rm -rf conftest.dSYM 5380 conftest$ac_exeext conftest.$ac_ext
5724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5725 conftest$ac_exeext conftest.$ac_ext
5726 5381
5727 #### Extract some information from the operating system and machine files. 5382 #### Extract some information from the operating system and machine files.
5728 5383
5729 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5730 - which libraries the lib-src programs will want, and 5385 - which libraries the lib-src programs will want, and
5731 - whether the GNU malloc routines are usable..." >&5 5386 - whether the GNU malloc routines are usable..." >&5
5732 $as_echo "$as_me: checking the machine- and system-dependent files to find out 5387 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5733 - which libraries the lib-src programs will want, and 5388 - which libraries the lib-src programs will want, and
5734 - whether the GNU malloc routines are usable..." >&6;} 5389 - whether the GNU malloc routines are usable..." >&6;}
5865 fi 5520 fi
5866 5521
5867 5522
5868 5523
5869 # Check whether --enable-largefile was given. 5524 # Check whether --enable-largefile was given.
5870 if test "${enable_largefile+set}" = set; then 5525 if test "${enable_largefile+set}" = set; then :
5871 enableval=$enable_largefile; 5526 enableval=$enable_largefile;
5872 fi 5527 fi
5873 5528
5874 if test "$enable_largefile" != no; then 5529 if test "$enable_largefile" != no; then
5875 5530
5876 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5877 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5532 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5878 if test "${ac_cv_sys_largefile_CC+set}" = set; then 5533 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5879 $as_echo_n "(cached) " >&6 5534 $as_echo_n "(cached) " >&6
5880 else 5535 else
5881 ac_cv_sys_largefile_CC=no 5536 ac_cv_sys_largefile_CC=no
5882 if test "$GCC" != yes; then 5537 if test "$GCC" != yes; then
5883 ac_save_CC=$CC 5538 ac_save_CC=$CC
5884 while :; do 5539 while :; do
5885 # IRIX 6.2 and later do not support large files by default, 5540 # IRIX 6.2 and later do not support large files by default,
5886 # so use the C compiler's -n32 option if that helps. 5541 # so use the C compiler's -n32 option if that helps.
5887 cat >conftest.$ac_ext <<_ACEOF 5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* confdefs.h. */
5889 _ACEOF
5890 cat confdefs.h >>conftest.$ac_ext
5891 cat >>conftest.$ac_ext <<_ACEOF
5892 /* end confdefs.h. */ 5543 /* end confdefs.h. */
5893 #include <sys/types.h> 5544 #include <sys/types.h>
5894 /* Check that off_t can represent 2**63 - 1 correctly. 5545 /* Check that off_t can represent 2**63 - 1 correctly.
5895 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5546 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5896 since some C++ compilers masquerading as C compilers 5547 since some C++ compilers masquerading as C compilers
5905 5556
5906 ; 5557 ;
5907 return 0; 5558 return 0;
5908 } 5559 }
5909 _ACEOF 5560 _ACEOF
5910 rm -f conftest.$ac_objext 5561 if ac_fn_c_try_compile "$LINENO"; then :
5911 if { (ac_try="$ac_compile"
5912 case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915 esac
5916 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5917 $as_echo "$ac_try_echo") >&5
5918 (eval "$ac_compile") 2>conftest.er1
5919 ac_status=$?
5920 grep -v '^ *+' conftest.er1 >conftest.err
5921 rm -f conftest.er1
5922 cat conftest.err >&5
5923 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5924 (exit $ac_status); } && {
5925 test -z "$ac_c_werror_flag" ||
5926 test ! -s conftest.err
5927 } && test -s conftest.$ac_objext; then
5928 break 5562 break
5929 else 5563 fi
5930 $as_echo "$as_me: failed program was:" >&5
5931 sed 's/^/| /' conftest.$ac_ext >&5
5932
5933
5934 fi
5935
5936 rm -f core conftest.err conftest.$ac_objext 5564 rm -f core conftest.err conftest.$ac_objext
5937 CC="$CC -n32" 5565 CC="$CC -n32"
5938 rm -f conftest.$ac_objext 5566 if ac_fn_c_try_compile "$LINENO"; then :
5939 if { (ac_try="$ac_compile"
5940 case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943 esac
5944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945 $as_echo "$ac_try_echo") >&5
5946 (eval "$ac_compile") 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_c_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
5956 ac_cv_sys_largefile_CC=' -n32'; break 5567 ac_cv_sys_largefile_CC=' -n32'; break
5957 else 5568 fi
5958 $as_echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961
5962 fi
5963
5964 rm -f core conftest.err conftest.$ac_objext 5569 rm -f core conftest.err conftest.$ac_objext
5965 break 5570 break
5966 done 5571 done
5967 CC=$ac_save_CC 5572 CC=$ac_save_CC
5968 rm -f conftest.$ac_ext 5573 rm -f conftest.$ac_ext
5969 fi 5574 fi
5970 fi 5575 fi
5971 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 5576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
5972 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 5577 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5973 if test "$ac_cv_sys_largefile_CC" != no; then 5578 if test "$ac_cv_sys_largefile_CC" != no; then
5974 CC=$CC$ac_cv_sys_largefile_CC 5579 CC=$CC$ac_cv_sys_largefile_CC
5975 fi 5580 fi
5976 5581
5977 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5978 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5583 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5979 if test "${ac_cv_sys_file_offset_bits+set}" = set; then 5584 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
5980 $as_echo_n "(cached) " >&6 5585 $as_echo_n "(cached) " >&6
5981 else 5586 else
5982 while :; do 5587 while :; do
5983 cat >conftest.$ac_ext <<_ACEOF 5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */ 5589 /* end confdefs.h. */
5989 #include <sys/types.h> 5590 #include <sys/types.h>
5990 /* Check that off_t can represent 2**63 - 1 correctly. 5591 /* Check that off_t can represent 2**63 - 1 correctly.
5991 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5592 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5992 since some C++ compilers masquerading as C compilers 5593 since some C++ compilers masquerading as C compilers
6001 5602
6002 ; 5603 ;
6003 return 0; 5604 return 0;
6004 } 5605 }
6005 _ACEOF 5606 _ACEOF
6006 rm -f conftest.$ac_objext 5607 if ac_fn_c_try_compile "$LINENO"; then :
6007 if { (ac_try="$ac_compile"
6008 case "(($ac_try" in
6009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6010 *) ac_try_echo=$ac_try;;
6011 esac
6012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6013 $as_echo "$ac_try_echo") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6015 ac_status=$?
6016 grep -v '^ *+' conftest.er1 >conftest.err
6017 rm -f conftest.er1
6018 cat conftest.err >&5
6019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
6024 ac_cv_sys_file_offset_bits=no; break 5608 ac_cv_sys_file_offset_bits=no; break
6025 else 5609 fi
6026 $as_echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6028
6029
6030 fi
6031
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6033 cat >conftest.$ac_ext <<_ACEOF 5611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6034 /* confdefs.h. */
6035 _ACEOF
6036 cat confdefs.h >>conftest.$ac_ext
6037 cat >>conftest.$ac_ext <<_ACEOF
6038 /* end confdefs.h. */ 5612 /* end confdefs.h. */
6039 #define _FILE_OFFSET_BITS 64 5613 #define _FILE_OFFSET_BITS 64
6040 #include <sys/types.h> 5614 #include <sys/types.h>
6041 /* Check that off_t can represent 2**63 - 1 correctly. 5615 /* Check that off_t can represent 2**63 - 1 correctly.
6042 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5616 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6052 5626
6053 ; 5627 ;
6054 return 0; 5628 return 0;
6055 } 5629 }
6056 _ACEOF 5630 _ACEOF
6057 rm -f conftest.$ac_objext 5631 if ac_fn_c_try_compile "$LINENO"; then :
6058 if { (ac_try="$ac_compile"
6059 case "(($ac_try" in
6060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6061 *) ac_try_echo=$ac_try;;
6062 esac
6063 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6064 $as_echo "$ac_try_echo") >&5
6065 (eval "$ac_compile") 2>conftest.er1
6066 ac_status=$?
6067 grep -v '^ *+' conftest.er1 >conftest.err
6068 rm -f conftest.er1
6069 cat conftest.err >&5
6070 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6071 (exit $ac_status); } && {
6072 test -z "$ac_c_werror_flag" ||
6073 test ! -s conftest.err
6074 } && test -s conftest.$ac_objext; then
6075 ac_cv_sys_file_offset_bits=64; break 5632 ac_cv_sys_file_offset_bits=64; break
6076 else 5633 fi
6077 $as_echo "$as_me: failed program was:" >&5
6078 sed 's/^/| /' conftest.$ac_ext >&5
6079
6080
6081 fi
6082
6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6084 ac_cv_sys_file_offset_bits=unknown 5635 ac_cv_sys_file_offset_bits=unknown
6085 break 5636 break
6086 done 5637 done
6087 fi 5638 fi
6088 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6089 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5640 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6090 case $ac_cv_sys_file_offset_bits in #( 5641 case $ac_cv_sys_file_offset_bits in #(
6091 no | unknown) ;; 5642 no | unknown) ;;
6092 *) 5643 *)
6093 cat >>confdefs.h <<_ACEOF 5644 cat >>confdefs.h <<_ACEOF
6095 _ACEOF 5646 _ACEOF
6096 ;; 5647 ;;
6097 esac 5648 esac
6098 rm -rf conftest* 5649 rm -rf conftest*
6099 if test $ac_cv_sys_file_offset_bits = unknown; then 5650 if test $ac_cv_sys_file_offset_bits = unknown; then
6100 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6101 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5652 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6102 if test "${ac_cv_sys_large_files+set}" = set; then 5653 if test "${ac_cv_sys_large_files+set}" = set; then :
6103 $as_echo_n "(cached) " >&6 5654 $as_echo_n "(cached) " >&6
6104 else 5655 else
6105 while :; do 5656 while :; do
6106 cat >conftest.$ac_ext <<_ACEOF 5657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6107 /* confdefs.h. */
6108 _ACEOF
6109 cat confdefs.h >>conftest.$ac_ext
6110 cat >>conftest.$ac_ext <<_ACEOF
6111 /* end confdefs.h. */ 5658 /* end confdefs.h. */
6112 #include <sys/types.h> 5659 #include <sys/types.h>
6113 /* Check that off_t can represent 2**63 - 1 correctly. 5660 /* Check that off_t can represent 2**63 - 1 correctly.
6114 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5661 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6115 since some C++ compilers masquerading as C compilers 5662 since some C++ compilers masquerading as C compilers
6124 5671
6125 ; 5672 ;
6126 return 0; 5673 return 0;
6127 } 5674 }
6128 _ACEOF 5675 _ACEOF
6129 rm -f conftest.$ac_objext 5676 if ac_fn_c_try_compile "$LINENO"; then :
6130 if { (ac_try="$ac_compile"
6131 case "(($ac_try" in
6132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6133 *) ac_try_echo=$ac_try;;
6134 esac
6135 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6136 $as_echo "$ac_try_echo") >&5
6137 (eval "$ac_compile") 2>conftest.er1
6138 ac_status=$?
6139 grep -v '^ *+' conftest.er1 >conftest.err
6140 rm -f conftest.er1
6141 cat conftest.err >&5
6142 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6143 (exit $ac_status); } && {
6144 test -z "$ac_c_werror_flag" ||
6145 test ! -s conftest.err
6146 } && test -s conftest.$ac_objext; then
6147 ac_cv_sys_large_files=no; break 5677 ac_cv_sys_large_files=no; break
6148 else 5678 fi
6149 $as_echo "$as_me: failed program was:" >&5
6150 sed 's/^/| /' conftest.$ac_ext >&5
6151
6152
6153 fi
6154
6155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6156 cat >conftest.$ac_ext <<_ACEOF 5680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6157 /* confdefs.h. */
6158 _ACEOF
6159 cat confdefs.h >>conftest.$ac_ext
6160 cat >>conftest.$ac_ext <<_ACEOF
6161 /* end confdefs.h. */ 5681 /* end confdefs.h. */
6162 #define _LARGE_FILES 1 5682 #define _LARGE_FILES 1
6163 #include <sys/types.h> 5683 #include <sys/types.h>
6164 /* Check that off_t can represent 2**63 - 1 correctly. 5684 /* Check that off_t can represent 2**63 - 1 correctly.
6165 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5685 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6175 5695
6176 ; 5696 ;
6177 return 0; 5697 return 0;
6178 } 5698 }
6179 _ACEOF 5699 _ACEOF
6180 rm -f conftest.$ac_objext 5700 if ac_fn_c_try_compile "$LINENO"; then :
6181 if { (ac_try="$ac_compile"
6182 case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185 esac
6186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6187 $as_echo "$ac_try_echo") >&5
6188 (eval "$ac_compile") 2>conftest.er1
6189 ac_status=$?
6190 grep -v '^ *+' conftest.er1 >conftest.err
6191 rm -f conftest.er1
6192 cat conftest.err >&5
6193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6194 (exit $ac_status); } && {
6195 test -z "$ac_c_werror_flag" ||
6196 test ! -s conftest.err
6197 } && test -s conftest.$ac_objext; then
6198 ac_cv_sys_large_files=1; break 5701 ac_cv_sys_large_files=1; break
6199 else 5702 fi
6200 $as_echo "$as_me: failed program was:" >&5
6201 sed 's/^/| /' conftest.$ac_ext >&5
6202
6203
6204 fi
6205
6206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6207 ac_cv_sys_large_files=unknown 5704 ac_cv_sys_large_files=unknown
6208 break 5705 break
6209 done 5706 done
6210 fi 5707 fi
6211 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 5708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6212 $as_echo "$ac_cv_sys_large_files" >&6; } 5709 $as_echo "$ac_cv_sys_large_files" >&6; }
6213 case $ac_cv_sys_large_files in #( 5710 case $ac_cv_sys_large_files in #(
6214 no | unknown) ;; 5711 no | unknown) ;;
6215 *) 5712 *)
6216 cat >>confdefs.h <<_ACEOF 5713 cat >>confdefs.h <<_ACEOF
6230 ### relevant files (bug#1287). Hence test for crtn.o. 5727 ### relevant files (bug#1287). Hence test for crtn.o.
6231 case "${canonical}" in 5728 case "${canonical}" in
6232 x86_64-*-linux-gnu* | s390x-*-linux-gnu* ) 5729 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6233 if test -e /usr/lib64/crtn.o; then 5730 if test -e /usr/lib64/crtn.o; then
6234 5731
6235 cat >>confdefs.h <<\_ACEOF 5732 $as_echo "#define HAVE_LIB64_DIR 1" >>confdefs.h
6236 #define HAVE_LIB64_DIR 1
6237 _ACEOF
6238 5733
6239 fi 5734 fi
6240 esac 5735 esac
6241 5736
6242 5737
6243 5738
6244 5739
6245 if test "${with_sound}" != "no"; then 5740 if test "${with_sound}" != "no"; then
6246 # Sound support for GNU/Linux and the free BSDs. 5741 # Sound support for GNU/Linux and the free BSDs.
6247 5742 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6248 5743 do :
6249 5744 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6250 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h 5745 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6251 do 5746 eval as_val=\$$as_ac_Header
6252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5747 if test "x$as_val" = x""yes; then :
6253 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6254 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6255 $as_echo_n "checking for $ac_header... " >&6; }
6256 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6257 $as_echo_n "(cached) " >&6
6258 fi
6259 ac_res=`eval 'as_val=${'$as_ac_Header'}
6260 $as_echo "$as_val"'`
6261 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6262 $as_echo "$ac_res" >&6; }
6263 else
6264 # Is the header compilable?
6265 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6266 $as_echo_n "checking $ac_header usability... " >&6; }
6267 cat >conftest.$ac_ext <<_ACEOF
6268 /* confdefs.h. */
6269 _ACEOF
6270 cat confdefs.h >>conftest.$ac_ext
6271 cat >>conftest.$ac_ext <<_ACEOF
6272 /* end confdefs.h. */
6273 $ac_includes_default
6274 #include <$ac_header>
6275 _ACEOF
6276 rm -f conftest.$ac_objext
6277 if { (ac_try="$ac_compile"
6278 case "(($ac_try" in
6279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6280 *) ac_try_echo=$ac_try;;
6281 esac
6282 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6283 $as_echo "$ac_try_echo") >&5
6284 (eval "$ac_compile") 2>conftest.er1
6285 ac_status=$?
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest.$ac_objext; then
6294 ac_header_compiler=yes
6295 else
6296 $as_echo "$as_me: failed program was:" >&5
6297 sed 's/^/| /' conftest.$ac_ext >&5
6298
6299 ac_header_compiler=no
6300 fi
6301
6302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6303 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6304 $as_echo "$ac_header_compiler" >&6; }
6305
6306 # Is the header present?
6307 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6308 $as_echo_n "checking $ac_header presence... " >&6; }
6309 cat >conftest.$ac_ext <<_ACEOF
6310 /* confdefs.h. */
6311 _ACEOF
6312 cat confdefs.h >>conftest.$ac_ext
6313 cat >>conftest.$ac_ext <<_ACEOF
6314 /* end confdefs.h. */
6315 #include <$ac_header>
6316 _ACEOF
6317 if { (ac_try="$ac_cpp conftest.$ac_ext"
6318 case "(($ac_try" in
6319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6320 *) ac_try_echo=$ac_try;;
6321 esac
6322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6323 $as_echo "$ac_try_echo") >&5
6324 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6325 ac_status=$?
6326 grep -v '^ *+' conftest.er1 >conftest.err
6327 rm -f conftest.er1
6328 cat conftest.err >&5
6329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6330 (exit $ac_status); } >/dev/null && {
6331 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6332 test ! -s conftest.err
6333 }; then
6334 ac_header_preproc=yes
6335 else
6336 $as_echo "$as_me: failed program was:" >&5
6337 sed 's/^/| /' conftest.$ac_ext >&5
6338
6339 ac_header_preproc=no
6340 fi
6341
6342 rm -f conftest.err conftest.$ac_ext
6343 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6344 $as_echo "$ac_header_preproc" >&6; }
6345
6346 # So? What about this header?
6347 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6348 yes:no: )
6349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6350 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6351 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6352 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6353 ac_header_preproc=yes
6354 ;;
6355 no:yes:* )
6356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6357 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6359 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6361 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6363 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6365 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6366 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6367 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6368
6369 ;;
6370 esac
6371 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6372 $as_echo_n "checking for $ac_header... " >&6; }
6373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6374 $as_echo_n "(cached) " >&6
6375 else
6376 eval "$as_ac_Header=\$ac_header_preproc"
6377 fi
6378 ac_res=`eval 'as_val=${'$as_ac_Header'}
6379 $as_echo "$as_val"'`
6380 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6381 $as_echo "$ac_res" >&6; }
6382
6383 fi
6384 if test `eval 'as_val=${'$as_ac_Header'}
6385 $as_echo "$as_val"'` = yes; then
6386 cat >>confdefs.h <<_ACEOF 5748 cat >>confdefs.h <<_ACEOF
6387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5749 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6388 _ACEOF 5750 _ACEOF
6389 5751
6390 fi 5752 fi
6391 5753
6392 done 5754 done
6393 5755
6394 # Emulation library used on NetBSD. 5756 # Emulation library used on NetBSD.
6395 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6396 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } 5758 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6397 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then 5759 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
6398 $as_echo_n "(cached) " >&6 5760 $as_echo_n "(cached) " >&6
6399 else 5761 else
6400 ac_check_lib_save_LIBS=$LIBS 5762 ac_check_lib_save_LIBS=$LIBS
6401 LIBS="-lossaudio $LIBS" 5763 LIBS="-lossaudio $LIBS"
6402 cat >conftest.$ac_ext <<_ACEOF 5764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */ 5765 /* end confdefs.h. */
6408 5766
6409 /* Override any GCC internal prototype to avoid an error. 5767 /* Override any GCC internal prototype to avoid an error.
6410 Use char because int might match the return type of a GCC 5768 Use char because int might match the return type of a GCC
6411 builtin and then its argument prototype would still apply. */ 5769 builtin and then its argument prototype would still apply. */
6419 return _oss_ioctl (); 5777 return _oss_ioctl ();
6420 ; 5778 ;
6421 return 0; 5779 return 0;
6422 } 5780 }
6423 _ACEOF 5781 _ACEOF
6424 rm -f conftest.$ac_objext conftest$ac_exeext 5782 if ac_fn_c_try_link "$LINENO"; then :
6425 if { (ac_try="$ac_link"
6426 case "(($ac_try" in
6427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6428 *) ac_try_echo=$ac_try;;
6429 esac
6430 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6431 $as_echo "$ac_try_echo") >&5
6432 (eval "$ac_link") 2>conftest.er1
6433 ac_status=$?
6434 grep -v '^ *+' conftest.er1 >conftest.err
6435 rm -f conftest.er1
6436 cat conftest.err >&5
6437 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6438 (exit $ac_status); } && {
6439 test -z "$ac_c_werror_flag" ||
6440 test ! -s conftest.err
6441 } && test -s conftest$ac_exeext && {
6442 test "$cross_compiling" = yes ||
6443 $as_test_x conftest$ac_exeext
6444 }; then
6445 ac_cv_lib_ossaudio__oss_ioctl=yes 5783 ac_cv_lib_ossaudio__oss_ioctl=yes
6446 else 5784 else
6447 $as_echo "$as_me: failed program was:" >&5 5785 ac_cv_lib_ossaudio__oss_ioctl=no
6448 sed 's/^/| /' conftest.$ac_ext >&5 5786 fi
6449 5787 rm -f core conftest.err conftest.$ac_objext \
6450 ac_cv_lib_ossaudio__oss_ioctl=no 5788 conftest$ac_exeext conftest.$ac_ext
6451 fi
6452
6453 rm -rf conftest.dSYM
6454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6455 conftest$ac_exeext conftest.$ac_ext
6456 LIBS=$ac_check_lib_save_LIBS 5789 LIBS=$ac_check_lib_save_LIBS
6457 fi 5790 fi
6458 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 5791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6459 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } 5792 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6460 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then 5793 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6461 LIBSOUND=-lossaudio 5794 LIBSOUND=-lossaudio
6462 else 5795 else
6463 LIBSOUND= 5796 LIBSOUND=
6464 fi 5797 fi
6465 5798
6470 5803
6471 succeeded=no 5804 succeeded=no
6472 5805
6473 # Extract the first word of "pkg-config", so it can be a program name with args. 5806 # Extract the first word of "pkg-config", so it can be a program name with args.
6474 set dummy pkg-config; ac_word=$2 5807 set dummy pkg-config; ac_word=$2
6475 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6476 $as_echo_n "checking for $ac_word... " >&6; } 5809 $as_echo_n "checking for $ac_word... " >&6; }
6477 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 5810 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6478 $as_echo_n "(cached) " >&6 5811 $as_echo_n "(cached) " >&6
6479 else 5812 else
6480 case $PKG_CONFIG in 5813 case $PKG_CONFIG in
6481 [\\/]* | ?:[\\/]*) 5814 [\\/]* | ?:[\\/]*)
6482 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5815 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6486 for as_dir in $PATH 5819 for as_dir in $PATH
6487 do 5820 do
6488 IFS=$as_save_IFS 5821 IFS=$as_save_IFS
6489 test -z "$as_dir" && as_dir=. 5822 test -z "$as_dir" && as_dir=.
6490 for ac_exec_ext in '' $ac_executable_extensions; do 5823 for ac_exec_ext in '' $ac_executable_extensions; do
6491 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6492 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5825 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6493 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6494 break 2 5827 break 2
6495 fi 5828 fi
6496 done 5829 done
6497 done 5830 done
6498 IFS=$as_save_IFS 5831 IFS=$as_save_IFS
6499 5832
6500 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 5833 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6501 ;; 5834 ;;
6502 esac 5835 esac
6503 fi 5836 fi
6504 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5837 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6505 if test -n "$PKG_CONFIG"; then 5838 if test -n "$PKG_CONFIG"; then
6506 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 5839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6507 $as_echo "$PKG_CONFIG" >&6; } 5840 $as_echo "$PKG_CONFIG" >&6; }
6508 else 5841 else
6509 { $as_echo "$as_me:$LINENO: result: no" >&5 5842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6510 $as_echo "no" >&6; } 5843 $as_echo "no" >&6; }
6511 fi 5844 fi
6512 5845
6513 5846
6514 5847
6515 if test "$PKG_CONFIG" = "no" ; then 5848 if test "$PKG_CONFIG" = "no" ; then
6516 HAVE_ALSA=no 5849 HAVE_ALSA=no
6517 else 5850 else
6518 PKG_CONFIG_MIN_VERSION=0.9.0 5851 PKG_CONFIG_MIN_VERSION=0.9.0
6519 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 5852 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6520 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6521 $as_echo_n "checking for $ALSA_MODULES... " >&6; } 5854 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6522 5855
6523 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then 5856 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6524 { $as_echo "$as_me:$LINENO: result: yes" >&5 5857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6525 $as_echo "yes" >&6; } 5858 $as_echo "yes" >&6; }
6526 succeeded=yes 5859 succeeded=yes
6527 5860
6528 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5 5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6529 $as_echo_n "checking ALSA_CFLAGS... " >&6; } 5862 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6530 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` 5863 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6531 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5 5864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6532 $as_echo "$ALSA_CFLAGS" >&6; } 5865 $as_echo "$ALSA_CFLAGS" >&6; }
6533 5866
6534 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5 5867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6535 $as_echo_n "checking ALSA_LIBS... " >&6; } 5868 $as_echo_n "checking ALSA_LIBS... " >&6; }
6536 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` 5869 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6537 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5 5870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6538 $as_echo "$ALSA_LIBS" >&6; } 5871 $as_echo "$ALSA_LIBS" >&6; }
6539 else 5872 else
6540 { $as_echo "$as_me:$LINENO: result: no" >&5 5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541 $as_echo "no" >&6; } 5874 $as_echo "no" >&6; }
6542 ALSA_CFLAGS="" 5875 ALSA_CFLAGS=""
6543 ALSA_LIBS="" 5876 ALSA_LIBS=""
6544 ## If we have a custom action on failure, don't print errors, but 5877 ## If we have a custom action on failure, don't print errors, but
6545 ## do set a variable so people can do so. 5878 ## do set a variable so people can do so.
6564 if test $HAVE_ALSA = yes; then 5897 if test $HAVE_ALSA = yes; then
6565 SAVE_CFLAGS="$CFLAGS" 5898 SAVE_CFLAGS="$CFLAGS"
6566 SAVE_LDFLAGS="$LDFLAGS" 5899 SAVE_LDFLAGS="$LDFLAGS"
6567 CFLAGS="$ALSA_CFLAGS $CFLAGS" 5900 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6568 LDFLAGS="$ALSA_LIBS $LDFLAGS" 5901 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6569 cat >conftest.$ac_ext <<_ACEOF 5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6570 /* confdefs.h. */
6571 _ACEOF
6572 cat confdefs.h >>conftest.$ac_ext
6573 cat >>conftest.$ac_ext <<_ACEOF
6574 /* end confdefs.h. */ 5903 /* end confdefs.h. */
6575 #include <asoundlib.h> 5904 #include <asoundlib.h>
6576 int 5905 int
6577 main () 5906 main ()
6578 { 5907 {
6579 snd_lib_error_set_handler (0); 5908 snd_lib_error_set_handler (0);
6580 ; 5909 ;
6581 return 0; 5910 return 0;
6582 } 5911 }
6583 _ACEOF 5912 _ACEOF
6584 rm -f conftest.$ac_objext 5913 if ac_fn_c_try_compile "$LINENO"; then :
6585 if { (ac_try="$ac_compile"
6586 case "(($ac_try" in
6587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6588 *) ac_try_echo=$ac_try;;
6589 esac
6590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6591 $as_echo "$ac_try_echo") >&5
6592 (eval "$ac_compile") 2>conftest.er1
6593 ac_status=$?
6594 grep -v '^ *+' conftest.er1 >conftest.err
6595 rm -f conftest.er1
6596 cat conftest.err >&5
6597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } && {
6599 test -z "$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6601 } && test -s conftest.$ac_objext; then
6602 emacs_alsa_normal=yes 5914 emacs_alsa_normal=yes
6603 else 5915 else
6604 $as_echo "$as_me: failed program was:" >&5 5916 emacs_alsa_normal=no
6605 sed 's/^/| /' conftest.$ac_ext >&5 5917 fi
6606
6607 emacs_alsa_normal=no
6608 fi
6609
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 if test "$emacs_alsa_normal" != yes; then 5919 if test "$emacs_alsa_normal" != yes; then
6612 cat >conftest.$ac_ext <<_ACEOF 5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6613 /* confdefs.h. */
6614 _ACEOF
6615 cat confdefs.h >>conftest.$ac_ext
6616 cat >>conftest.$ac_ext <<_ACEOF
6617 /* end confdefs.h. */ 5921 /* end confdefs.h. */
6618 #include <alsa/asoundlib.h> 5922 #include <alsa/asoundlib.h>
6619 int 5923 int
6620 main () 5924 main ()
6621 { 5925 {
6622 snd_lib_error_set_handler (0); 5926 snd_lib_error_set_handler (0);
6623 ; 5927 ;
6624 return 0; 5928 return 0;
6625 } 5929 }
6626 _ACEOF 5930 _ACEOF
6627 rm -f conftest.$ac_objext 5931 if ac_fn_c_try_compile "$LINENO"; then :
6628 if { (ac_try="$ac_compile"
6629 case "(($ac_try" in
6630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6631 *) ac_try_echo=$ac_try;;
6632 esac
6633 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6634 $as_echo "$ac_try_echo") >&5
6635 (eval "$ac_compile") 2>conftest.er1
6636 ac_status=$?
6637 grep -v '^ *+' conftest.er1 >conftest.err
6638 rm -f conftest.er1
6639 cat conftest.err >&5
6640 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } && {
6642 test -z "$ac_c_werror_flag" ||
6643 test ! -s conftest.err
6644 } && test -s conftest.$ac_objext; then
6645 emacs_alsa_subdir=yes 5932 emacs_alsa_subdir=yes
6646 else 5933 else
6647 $as_echo "$as_me: failed program was:" >&5 5934 emacs_alsa_subdir=no
6648 sed 's/^/| /' conftest.$ac_ext >&5 5935 fi
6649
6650 emacs_alsa_subdir=no
6651 fi
6652
6653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654 if test "$emacs_alsa_subdir" != yes; then 5937 if test "$emacs_alsa_subdir" != yes; then
6655 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5 5938 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6656 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6657 { (exit 1); exit 1; }; }
6658 fi 5939 fi
6659 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" 5940 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6660 fi 5941 fi
6661 5942
6662 CFLAGS="$SAVE_CFLAGS" 5943 CFLAGS="$SAVE_CFLAGS"
6663 LDFLAGS="$SAVE_LDFLAGS" 5944 LDFLAGS="$SAVE_LDFLAGS"
6664 LIBSOUND="$LIBSOUND $ALSA_LIBS" 5945 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6665 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" 5946 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6666 5947
6667 cat >>confdefs.h <<\_ACEOF 5948 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6668 #define HAVE_ALSA 1
6669 _ACEOF
6670 5949
6671 fi 5950 fi
6672 5951
6673 fi 5952 fi
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699 5953
6700 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ 5954 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6701 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 5955 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6702 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ 5956 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6703 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ 5957 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6704 sys/utsname.h pwd.h utmp.h 5958 sys/utsname.h pwd.h utmp.h
6705 do 5959 do :
6706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5960 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 5961 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6708 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 5962 eval as_val=\$$as_ac_Header
6709 $as_echo_n "checking for $ac_header... " >&6; } 5963 if test "x$as_val" = x""yes; then :
6710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6711 $as_echo_n "(cached) " >&6
6712 fi
6713 ac_res=`eval 'as_val=${'$as_ac_Header'}
6714 $as_echo "$as_val"'`
6715 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6716 $as_echo "$ac_res" >&6; }
6717 else
6718 # Is the header compilable?
6719 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6720 $as_echo_n "checking $ac_header usability... " >&6; }
6721 cat >conftest.$ac_ext <<_ACEOF
6722 /* confdefs.h. */
6723 _ACEOF
6724 cat confdefs.h >>conftest.$ac_ext
6725 cat >>conftest.$ac_ext <<_ACEOF
6726 /* end confdefs.h. */
6727 $ac_includes_default
6728 #include <$ac_header>
6729 _ACEOF
6730 rm -f conftest.$ac_objext
6731 if { (ac_try="$ac_compile"
6732 case "(($ac_try" in
6733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6734 *) ac_try_echo=$ac_try;;
6735 esac
6736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6737 $as_echo "$ac_try_echo") >&5
6738 (eval "$ac_compile") 2>conftest.er1
6739 ac_status=$?
6740 grep -v '^ *+' conftest.er1 >conftest.err
6741 rm -f conftest.er1
6742 cat conftest.err >&5
6743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } && {
6745 test -z "$ac_c_werror_flag" ||
6746 test ! -s conftest.err
6747 } && test -s conftest.$ac_objext; then
6748 ac_header_compiler=yes
6749 else
6750 $as_echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.$ac_ext >&5
6752
6753 ac_header_compiler=no
6754 fi
6755
6756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6757 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6758 $as_echo "$ac_header_compiler" >&6; }
6759
6760 # Is the header present?
6761 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6762 $as_echo_n "checking $ac_header presence... " >&6; }
6763 cat >conftest.$ac_ext <<_ACEOF
6764 /* confdefs.h. */
6765 _ACEOF
6766 cat confdefs.h >>conftest.$ac_ext
6767 cat >>conftest.$ac_ext <<_ACEOF
6768 /* end confdefs.h. */
6769 #include <$ac_header>
6770 _ACEOF
6771 if { (ac_try="$ac_cpp conftest.$ac_ext"
6772 case "(($ac_try" in
6773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6774 *) ac_try_echo=$ac_try;;
6775 esac
6776 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6777 $as_echo "$ac_try_echo") >&5
6778 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6779 ac_status=$?
6780 grep -v '^ *+' conftest.er1 >conftest.err
6781 rm -f conftest.er1
6782 cat conftest.err >&5
6783 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } >/dev/null && {
6785 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6786 test ! -s conftest.err
6787 }; then
6788 ac_header_preproc=yes
6789 else
6790 $as_echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6792
6793 ac_header_preproc=no
6794 fi
6795
6796 rm -f conftest.err conftest.$ac_ext
6797 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6798 $as_echo "$ac_header_preproc" >&6; }
6799
6800 # So? What about this header?
6801 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6802 yes:no: )
6803 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6804 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6805 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6806 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6807 ac_header_preproc=yes
6808 ;;
6809 no:yes:* )
6810 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6811 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6812 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6813 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6814 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6815 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6816 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6817 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6818 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6819 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6820 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6821 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6822
6823 ;;
6824 esac
6825 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6826 $as_echo_n "checking for $ac_header... " >&6; }
6827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6828 $as_echo_n "(cached) " >&6
6829 else
6830 eval "$as_ac_Header=\$ac_header_preproc"
6831 fi
6832 ac_res=`eval 'as_val=${'$as_ac_Header'}
6833 $as_echo "$as_val"'`
6834 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6835 $as_echo "$ac_res" >&6; }
6836
6837 fi
6838 if test `eval 'as_val=${'$as_ac_Header'}
6839 $as_echo "$as_val"'` = yes; then
6840 cat >>confdefs.h <<_ACEOF 5964 cat >>confdefs.h <<_ACEOF
6841 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5965 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6842 _ACEOF 5966 _ACEOF
6843 5967
6844 fi 5968 fi
6845 5969
6846 done 5970 done
6847 5971
6848 5972
6849 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6850 $as_echo_n "checking if personality LINUX32 can be set... " >&6; } 5974 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6851 cat >conftest.$ac_ext <<_ACEOF 5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6852 /* confdefs.h. */
6853 _ACEOF
6854 cat confdefs.h >>conftest.$ac_ext
6855 cat >>conftest.$ac_ext <<_ACEOF
6856 /* end confdefs.h. */ 5976 /* end confdefs.h. */
6857 #include <sys/personality.h> 5977 #include <sys/personality.h>
6858 int 5978 int
6859 main () 5979 main ()
6860 { 5980 {
6861 personality (PER_LINUX32) 5981 personality (PER_LINUX32)
6862 ; 5982 ;
6863 return 0; 5983 return 0;
6864 } 5984 }
6865 _ACEOF 5985 _ACEOF
6866 rm -f conftest.$ac_objext 5986 if ac_fn_c_try_compile "$LINENO"; then :
6867 if { (ac_try="$ac_compile"
6868 case "(($ac_try" in
6869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6871 esac
6872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6873 $as_echo "$ac_try_echo") >&5
6874 (eval "$ac_compile") 2>conftest.er1
6875 ac_status=$?
6876 grep -v '^ *+' conftest.er1 >conftest.err
6877 rm -f conftest.er1
6878 cat conftest.err >&5
6879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); } && {
6881 test -z "$ac_c_werror_flag" ||
6882 test ! -s conftest.err
6883 } && test -s conftest.$ac_objext; then
6884 emacs_cv_personality_linux32=yes 5987 emacs_cv_personality_linux32=yes
6885 else 5988 else
6886 $as_echo "$as_me: failed program was:" >&5 5989 emacs_cv_personality_linux32=no
6887 sed 's/^/| /' conftest.$ac_ext >&5 5990 fi
6888
6889 emacs_cv_personality_linux32=no
6890 fi
6891
6892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6893 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5 5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6894 $as_echo "$emacs_cv_personality_linux32" >&6; } 5993 $as_echo "$emacs_cv_personality_linux32" >&6; }
6895 5994
6896 if test $emacs_cv_personality_linux32 = yes; then 5995 if test $emacs_cv_personality_linux32 = yes; then
6897 5996
6898 cat >>confdefs.h <<\_ACEOF 5997 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6899 #define HAVE_PERSONALITY_LINUX32 1 5998
6900 _ACEOF 5999 fi
6901
6902 fi
6903
6904 6000
6905 for ac_header in term.h 6001 for ac_header in term.h
6906 do 6002 do :
6907 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6003 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6908 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6004 if test "x$ac_cv_header_term_h" = x""yes; then :
6909 $as_echo_n "checking for $ac_header... " >&6; } 6005 cat >>confdefs.h <<_ACEOF
6910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6006 #define HAVE_TERM_H 1
6007 _ACEOF
6008
6009 fi
6010
6011 done
6012
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6014 $as_echo_n "checking for ANSI C header files... " >&6; }
6015 if test "${ac_cv_header_stdc+set}" = set; then :
6911 $as_echo_n "(cached) " >&6 6016 $as_echo_n "(cached) " >&6
6912 else 6017 else
6913 cat >conftest.$ac_ext <<_ACEOF 6018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6914 /* confdefs.h. */
6915 _ACEOF
6916 cat confdefs.h >>conftest.$ac_ext
6917 cat >>conftest.$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 #include <$ac_header>
6920 _ACEOF
6921 if { (ac_try="$ac_cpp conftest.$ac_ext"
6922 case "(($ac_try" in
6923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6924 *) ac_try_echo=$ac_try;;
6925 esac
6926 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6927 $as_echo "$ac_try_echo") >&5
6928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6929 ac_status=$?
6930 grep -v '^ *+' conftest.er1 >conftest.err
6931 rm -f conftest.er1
6932 cat conftest.err >&5
6933 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6934 (exit $ac_status); } >/dev/null && {
6935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6936 test ! -s conftest.err
6937 }; then
6938 eval "$as_ac_Header=yes"
6939 else
6940 $as_echo "$as_me: failed program was:" >&5
6941 sed 's/^/| /' conftest.$ac_ext >&5
6942
6943 eval "$as_ac_Header=no"
6944 fi
6945
6946 rm -f conftest.err conftest.$ac_ext
6947 fi
6948 ac_res=`eval 'as_val=${'$as_ac_Header'}
6949 $as_echo "$as_val"'`
6950 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6951 $as_echo "$ac_res" >&6; }
6952 if test `eval 'as_val=${'$as_ac_Header'}
6953 $as_echo "$as_val"'` = yes; then
6954 cat >>confdefs.h <<_ACEOF
6955 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6956 _ACEOF
6957
6958 fi
6959
6960 done
6961
6962 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6963 $as_echo_n "checking for ANSI C header files... " >&6; }
6964 if test "${ac_cv_header_stdc+set}" = set; then
6965 $as_echo_n "(cached) " >&6
6966 else
6967 cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h. */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */ 6019 /* end confdefs.h. */
6973 #include <stdlib.h> 6020 #include <stdlib.h>
6974 #include <stdarg.h> 6021 #include <stdarg.h>
6975 #include <string.h> 6022 #include <string.h>
6976 #include <float.h> 6023 #include <float.h>
6981 6028
6982 ; 6029 ;
6983 return 0; 6030 return 0;
6984 } 6031 }
6985 _ACEOF 6032 _ACEOF
6986 rm -f conftest.$ac_objext 6033 if ac_fn_c_try_compile "$LINENO"; then :
6987 if { (ac_try="$ac_compile"
6988 case "(($ac_try" in
6989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6991 esac
6992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6993 $as_echo "$ac_try_echo") >&5
6994 (eval "$ac_compile") 2>conftest.er1
6995 ac_status=$?
6996 grep -v '^ *+' conftest.er1 >conftest.err
6997 rm -f conftest.er1
6998 cat conftest.err >&5
6999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); } && {
7001 test -z "$ac_c_werror_flag" ||
7002 test ! -s conftest.err
7003 } && test -s conftest.$ac_objext; then
7004 ac_cv_header_stdc=yes 6034 ac_cv_header_stdc=yes
7005 else 6035 else
7006 $as_echo "$as_me: failed program was:" >&5 6036 ac_cv_header_stdc=no
7007 sed 's/^/| /' conftest.$ac_ext >&5 6037 fi
7008
7009 ac_cv_header_stdc=no
7010 fi
7011
7012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 6039
7014 if test $ac_cv_header_stdc = yes; then 6040 if test $ac_cv_header_stdc = yes; then
7015 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6041 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7016 cat >conftest.$ac_ext <<_ACEOF 6042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7017 /* confdefs.h. */
7018 _ACEOF
7019 cat confdefs.h >>conftest.$ac_ext
7020 cat >>conftest.$ac_ext <<_ACEOF
7021 /* end confdefs.h. */ 6043 /* end confdefs.h. */
7022 #include <string.h> 6044 #include <string.h>
7023 6045
7024 _ACEOF 6046 _ACEOF
7025 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7026 $EGREP "memchr" >/dev/null 2>&1; then 6048 $EGREP "memchr" >/dev/null 2>&1; then :
7027 : 6049
7028 else 6050 else
7029 ac_cv_header_stdc=no 6051 ac_cv_header_stdc=no
7030 fi 6052 fi
7031 rm -f conftest* 6053 rm -f conftest*
7032 6054
7033 fi 6055 fi
7034 6056
7035 if test $ac_cv_header_stdc = yes; then 6057 if test $ac_cv_header_stdc = yes; then
7036 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6058 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7037 cat >conftest.$ac_ext <<_ACEOF 6059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7038 /* confdefs.h. */
7039 _ACEOF
7040 cat confdefs.h >>conftest.$ac_ext
7041 cat >>conftest.$ac_ext <<_ACEOF
7042 /* end confdefs.h. */ 6060 /* end confdefs.h. */
7043 #include <stdlib.h> 6061 #include <stdlib.h>
7044 6062
7045 _ACEOF 6063 _ACEOF
7046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7047 $EGREP "free" >/dev/null 2>&1; then 6065 $EGREP "free" >/dev/null 2>&1; then :
7048 : 6066
7049 else 6067 else
7050 ac_cv_header_stdc=no 6068 ac_cv_header_stdc=no
7051 fi 6069 fi
7052 rm -f conftest* 6070 rm -f conftest*
7053 6071
7054 fi 6072 fi
7055 6073
7056 if test $ac_cv_header_stdc = yes; then 6074 if test $ac_cv_header_stdc = yes; then
7057 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6075 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7058 if test "$cross_compiling" = yes; then 6076 if test "$cross_compiling" = yes; then :
7059 : 6077 :
7060 else 6078 else
7061 cat >conftest.$ac_ext <<_ACEOF 6079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7062 /* confdefs.h. */
7063 _ACEOF
7064 cat confdefs.h >>conftest.$ac_ext
7065 cat >>conftest.$ac_ext <<_ACEOF
7066 /* end confdefs.h. */ 6080 /* end confdefs.h. */
7067 #include <ctype.h> 6081 #include <ctype.h>
7068 #include <stdlib.h> 6082 #include <stdlib.h>
7069 #if ((' ' & 0x0FF) == 0x020) 6083 #if ((' ' & 0x0FF) == 0x020)
7070 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6084 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7087 || toupper (i) != TOUPPER (i)) 6101 || toupper (i) != TOUPPER (i))
7088 return 2; 6102 return 2;
7089 return 0; 6103 return 0;
7090 } 6104 }
7091 _ACEOF 6105 _ACEOF
7092 rm -f conftest$ac_exeext 6106 if ac_fn_c_try_run "$LINENO"; then :
7093 if { (ac_try="$ac_link" 6107
7094 case "(($ac_try" in 6108 else
7095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6109 ac_cv_header_stdc=no
7096 *) ac_try_echo=$ac_try;; 6110 fi
7097 esac 6111 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6112 conftest.$ac_objext conftest.beam conftest.$ac_ext
7099 $as_echo "$ac_try_echo") >&5 6113 fi
7100 (eval "$ac_link") 2>&5 6114
7101 ac_status=$? 6115 fi
7102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6116 fi
7103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7104 { (case "(($ac_try" in
7105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7106 *) ac_try_echo=$ac_try;;
7107 esac
7108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7109 $as_echo "$ac_try_echo") >&5
7110 (eval "$ac_try") 2>&5
7111 ac_status=$?
7112 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7113 (exit $ac_status); }; }; then
7114 :
7115 else
7116 $as_echo "$as_me: program exited with status $ac_status" >&5
7117 $as_echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.$ac_ext >&5
7119
7120 ( exit $ac_status )
7121 ac_cv_header_stdc=no
7122 fi
7123 rm -rf conftest.dSYM
7124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7125 fi
7126
7127
7128 fi
7129 fi
7130 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7131 $as_echo "$ac_cv_header_stdc" >&6; } 6118 $as_echo "$ac_cv_header_stdc" >&6; }
7132 if test $ac_cv_header_stdc = yes; then 6119 if test $ac_cv_header_stdc = yes; then
7133 6120
7134 cat >>confdefs.h <<\_ACEOF 6121 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7135 #define STDC_HEADERS 1 6122
7136 _ACEOF 6123 fi
7137 6124
7138 fi 6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7139
7140 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7141 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 6126 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7142 if test "${ac_cv_header_time+set}" = set; then 6127 if test "${ac_cv_header_time+set}" = set; then :
7143 $as_echo_n "(cached) " >&6 6128 $as_echo_n "(cached) " >&6
7144 else 6129 else
7145 cat >conftest.$ac_ext <<_ACEOF 6130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* confdefs.h. */
7147 _ACEOF
7148 cat confdefs.h >>conftest.$ac_ext
7149 cat >>conftest.$ac_ext <<_ACEOF
7150 /* end confdefs.h. */ 6131 /* end confdefs.h. */
7151 #include <sys/types.h> 6132 #include <sys/types.h>
7152 #include <sys/time.h> 6133 #include <sys/time.h>
7153 #include <time.h> 6134 #include <time.h>
7154 6135
7159 return 0; 6140 return 0;
7160 ; 6141 ;
7161 return 0; 6142 return 0;
7162 } 6143 }
7163 _ACEOF 6144 _ACEOF
7164 rm -f conftest.$ac_objext 6145 if ac_fn_c_try_compile "$LINENO"; then :
7165 if { (ac_try="$ac_compile"
7166 case "(($ac_try" in
7167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7168 *) ac_try_echo=$ac_try;;
7169 esac
7170 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7171 $as_echo "$ac_try_echo") >&5
7172 (eval "$ac_compile") 2>conftest.er1
7173 ac_status=$?
7174 grep -v '^ *+' conftest.er1 >conftest.err
7175 rm -f conftest.er1
7176 cat conftest.err >&5
7177 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7178 (exit $ac_status); } && {
7179 test -z "$ac_c_werror_flag" ||
7180 test ! -s conftest.err
7181 } && test -s conftest.$ac_objext; then
7182 ac_cv_header_time=yes 6146 ac_cv_header_time=yes
7183 else 6147 else
7184 $as_echo "$as_me: failed program was:" >&5 6148 ac_cv_header_time=no
7185 sed 's/^/| /' conftest.$ac_ext >&5 6149 fi
7186
7187 ac_cv_header_time=no
7188 fi
7189
7190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7191 fi 6151 fi
7192 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7193 $as_echo "$ac_cv_header_time" >&6; } 6153 $as_echo "$ac_cv_header_time" >&6; }
7194 if test $ac_cv_header_time = yes; then 6154 if test $ac_cv_header_time = yes; then
7195 6155
7196 cat >>confdefs.h <<\_ACEOF 6156 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7197 #define TIME_WITH_SYS_TIME 1 6157
7198 _ACEOF 6158 fi
7199 6159
7200 fi 6160 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7201 6161 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
7202 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 6162 ac_have_decl=1
7203 $as_echo_n "checking whether sys_siglist is declared... " >&6; } 6163 else
7204 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then 6164 ac_have_decl=0
7205 $as_echo_n "(cached) " >&6 6165 fi
7206 else
7207 cat >conftest.$ac_ext <<_ACEOF
7208 /* confdefs.h. */
7209 _ACEOF
7210 cat confdefs.h >>conftest.$ac_ext
7211 cat >>conftest.$ac_ext <<_ACEOF
7212 /* end confdefs.h. */
7213 $ac_includes_default
7214 int
7215 main ()
7216 {
7217 #ifndef sys_siglist
7218 (void) sys_siglist;
7219 #endif
7220
7221 ;
7222 return 0;
7223 }
7224 _ACEOF
7225 rm -f conftest.$ac_objext
7226 if { (ac_try="$ac_compile"
7227 case "(($ac_try" in
7228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7229 *) ac_try_echo=$ac_try;;
7230 esac
7231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7232 $as_echo "$ac_try_echo") >&5
7233 (eval "$ac_compile") 2>conftest.er1
7234 ac_status=$?
7235 grep -v '^ *+' conftest.er1 >conftest.err
7236 rm -f conftest.er1
7237 cat conftest.err >&5
7238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7239 (exit $ac_status); } && {
7240 test -z "$ac_c_werror_flag" ||
7241 test ! -s conftest.err
7242 } && test -s conftest.$ac_objext; then
7243 ac_cv_have_decl_sys_siglist=yes
7244 else
7245 $as_echo "$as_me: failed program was:" >&5
7246 sed 's/^/| /' conftest.$ac_ext >&5
7247
7248 ac_cv_have_decl_sys_siglist=no
7249 fi
7250
7251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7252 fi
7253 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7254 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7255 if test $ac_cv_have_decl_sys_siglist = yes; then
7256 6166
7257 cat >>confdefs.h <<_ACEOF 6167 cat >>confdefs.h <<_ACEOF
7258 #define HAVE_DECL_SYS_SIGLIST 1 6168 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7259 _ACEOF 6169 _ACEOF
7260
7261
7262 else
7263 cat >>confdefs.h <<_ACEOF
7264 #define HAVE_DECL_SYS_SIGLIST 0
7265 _ACEOF
7266
7267
7268 fi
7269
7270 6170
7271 if test $ac_cv_have_decl_sys_siglist != yes; then 6171 if test $ac_cv_have_decl_sys_siglist != yes; then
7272 # For Tru64, at least: 6172 # For Tru64, at least:
7273 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 6173 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7274 $as_echo_n "checking whether __sys_siglist is declared... " >&6; } 6174 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
7275 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then 6175 ac_have_decl=1
6176 else
6177 ac_have_decl=0
6178 fi
6179
6180 cat >>confdefs.h <<_ACEOF
6181 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6182 _ACEOF
6183
6184 if test $ac_cv_have_decl___sys_siglist = yes; then
6185
6186 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6187
6188 fi
6189 fi
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6191 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6192 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7276 $as_echo_n "(cached) " >&6 6193 $as_echo_n "(cached) " >&6
7277 else 6194 else
7278 cat >conftest.$ac_ext <<_ACEOF 6195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7279 /* confdefs.h. */
7280 _ACEOF
7281 cat confdefs.h >>conftest.$ac_ext
7282 cat >>conftest.$ac_ext <<_ACEOF
7283 /* end confdefs.h. */
7284 $ac_includes_default
7285 int
7286 main ()
7287 {
7288 #ifndef __sys_siglist
7289 (void) __sys_siglist;
7290 #endif
7291
7292 ;
7293 return 0;
7294 }
7295 _ACEOF
7296 rm -f conftest.$ac_objext
7297 if { (ac_try="$ac_compile"
7298 case "(($ac_try" in
7299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7300 *) ac_try_echo=$ac_try;;
7301 esac
7302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7303 $as_echo "$ac_try_echo") >&5
7304 (eval "$ac_compile") 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 } && test -s conftest.$ac_objext; then
7314 ac_cv_have_decl___sys_siglist=yes
7315 else
7316 $as_echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7318
7319 ac_cv_have_decl___sys_siglist=no
7320 fi
7321
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323 fi
7324 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7325 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7326 if test $ac_cv_have_decl___sys_siglist = yes; then
7327
7328 cat >>confdefs.h <<_ACEOF
7329 #define HAVE_DECL___SYS_SIGLIST 1
7330 _ACEOF
7331
7332
7333 else
7334 cat >>confdefs.h <<_ACEOF
7335 #define HAVE_DECL___SYS_SIGLIST 0
7336 _ACEOF
7337
7338
7339 fi
7340
7341
7342 if test $ac_cv_have_decl___sys_siglist = yes; then
7343
7344 cat >>confdefs.h <<\_ACEOF
7345 #define sys_siglist __sys_siglist
7346 _ACEOF
7347
7348 fi
7349 fi
7350 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7351 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7352 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7353 $as_echo_n "(cached) " >&6
7354 else
7355 cat >conftest.$ac_ext <<_ACEOF
7356 /* confdefs.h. */
7357 _ACEOF
7358 cat confdefs.h >>conftest.$ac_ext
7359 cat >>conftest.$ac_ext <<_ACEOF
7360 /* end confdefs.h. */ 6196 /* end confdefs.h. */
7361 #include <sys/types.h> 6197 #include <sys/types.h>
7362 #include <sys/wait.h> 6198 #include <sys/wait.h>
7363 #ifndef WEXITSTATUS 6199 #ifndef WEXITSTATUS
7364 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 6200 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7375 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 6211 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7376 ; 6212 ;
7377 return 0; 6213 return 0;
7378 } 6214 }
7379 _ACEOF 6215 _ACEOF
7380 rm -f conftest.$ac_objext 6216 if ac_fn_c_try_compile "$LINENO"; then :
7381 if { (ac_try="$ac_compile"
7382 case "(($ac_try" in
7383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7384 *) ac_try_echo=$ac_try;;
7385 esac
7386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7387 $as_echo "$ac_try_echo") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
7393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 ac_cv_header_sys_wait_h=yes 6217 ac_cv_header_sys_wait_h=yes
7399 else 6218 else
7400 $as_echo "$as_me: failed program was:" >&5 6219 ac_cv_header_sys_wait_h=no
7401 sed 's/^/| /' conftest.$ac_ext >&5 6220 fi
7402
7403 ac_cv_header_sys_wait_h=no
7404 fi
7405
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 fi 6222 fi
7408 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7409 $as_echo "$ac_cv_header_sys_wait_h" >&6; } 6224 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7410 if test $ac_cv_header_sys_wait_h = yes; then 6225 if test $ac_cv_header_sys_wait_h = yes; then
7411 6226
7412 cat >>confdefs.h <<\_ACEOF 6227 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7413 #define HAVE_SYS_WAIT_H 1 6228
7414 _ACEOF 6229 fi
7415 6230
7416 fi 6231
7417 6232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7418
7419 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7420 $as_echo_n "checking for struct utimbuf... " >&6; } 6233 $as_echo_n "checking for struct utimbuf... " >&6; }
7421 if test "${emacs_cv_struct_utimbuf+set}" = set; then 6234 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7422 $as_echo_n "(cached) " >&6 6235 $as_echo_n "(cached) " >&6
7423 else 6236 else
7424 cat >conftest.$ac_ext <<_ACEOF 6237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7425 /* confdefs.h. */
7426 _ACEOF
7427 cat confdefs.h >>conftest.$ac_ext
7428 cat >>conftest.$ac_ext <<_ACEOF
7429 /* end confdefs.h. */ 6238 /* end confdefs.h. */
7430 #ifdef TIME_WITH_SYS_TIME 6239 #ifdef TIME_WITH_SYS_TIME
7431 #include <sys/time.h> 6240 #include <sys/time.h>
7432 #include <time.h> 6241 #include <time.h>
7433 #else 6242 #else
7446 static struct utimbuf x; x.actime = x.modtime; 6255 static struct utimbuf x; x.actime = x.modtime;
7447 ; 6256 ;
7448 return 0; 6257 return 0;
7449 } 6258 }
7450 _ACEOF 6259 _ACEOF
7451 rm -f conftest.$ac_objext 6260 if ac_fn_c_try_compile "$LINENO"; then :
7452 if { (ac_try="$ac_compile"
7453 case "(($ac_try" in
7454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7455 *) ac_try_echo=$ac_try;;
7456 esac
7457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7458 $as_echo "$ac_try_echo") >&5
7459 (eval "$ac_compile") 2>conftest.er1
7460 ac_status=$?
7461 grep -v '^ *+' conftest.er1 >conftest.err
7462 rm -f conftest.er1
7463 cat conftest.err >&5
7464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } && {
7466 test -z "$ac_c_werror_flag" ||
7467 test ! -s conftest.err
7468 } && test -s conftest.$ac_objext; then
7469 emacs_cv_struct_utimbuf=yes 6261 emacs_cv_struct_utimbuf=yes
7470 else 6262 else
7471 $as_echo "$as_me: failed program was:" >&5 6263 emacs_cv_struct_utimbuf=no
7472 sed 's/^/| /' conftest.$ac_ext >&5 6264 fi
7473
7474 emacs_cv_struct_utimbuf=no
7475 fi
7476
7477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7478 fi 6266 fi
7479 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 6267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7480 $as_echo "$emacs_cv_struct_utimbuf" >&6; } 6268 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7481 if test $emacs_cv_struct_utimbuf = yes; then 6269 if test $emacs_cv_struct_utimbuf = yes; then
7482 6270
7483 cat >>confdefs.h <<\_ACEOF 6271 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7484 #define HAVE_STRUCT_UTIMBUF 1 6272
7485 _ACEOF 6273 fi
7486 6274
7487 fi 6275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7488
7489 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7490 $as_echo_n "checking return type of signal handlers... " >&6; } 6276 $as_echo_n "checking return type of signal handlers... " >&6; }
7491 if test "${ac_cv_type_signal+set}" = set; then 6277 if test "${ac_cv_type_signal+set}" = set; then :
7492 $as_echo_n "(cached) " >&6 6278 $as_echo_n "(cached) " >&6
7493 else 6279 else
7494 cat >conftest.$ac_ext <<_ACEOF 6280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7495 /* confdefs.h. */
7496 _ACEOF
7497 cat confdefs.h >>conftest.$ac_ext
7498 cat >>conftest.$ac_ext <<_ACEOF
7499 /* end confdefs.h. */ 6281 /* end confdefs.h. */
7500 #include <sys/types.h> 6282 #include <sys/types.h>
7501 #include <signal.h> 6283 #include <signal.h>
7502 6284
7503 int 6285 int
7506 return *(signal (0, 0)) (0) == 1; 6288 return *(signal (0, 0)) (0) == 1;
7507 ; 6289 ;
7508 return 0; 6290 return 0;
7509 } 6291 }
7510 _ACEOF 6292 _ACEOF
7511 rm -f conftest.$ac_objext 6293 if ac_fn_c_try_compile "$LINENO"; then :
7512 if { (ac_try="$ac_compile"
7513 case "(($ac_try" in
7514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7515 *) ac_try_echo=$ac_try;;
7516 esac
7517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7518 $as_echo "$ac_try_echo") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7520 ac_status=$?
7521 grep -v '^ *+' conftest.er1 >conftest.err
7522 rm -f conftest.er1
7523 cat conftest.err >&5
7524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_c_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest.$ac_objext; then
7529 ac_cv_type_signal=int 6294 ac_cv_type_signal=int
7530 else 6295 else
7531 $as_echo "$as_me: failed program was:" >&5 6296 ac_cv_type_signal=void
7532 sed 's/^/| /' conftest.$ac_ext >&5 6297 fi
7533
7534 ac_cv_type_signal=void
7535 fi
7536
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 fi 6299 fi
7539 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7540 $as_echo "$ac_cv_type_signal" >&6; } 6301 $as_echo "$ac_cv_type_signal" >&6; }
7541 6302
7542 cat >>confdefs.h <<_ACEOF 6303 cat >>confdefs.h <<_ACEOF
7543 #define RETSIGTYPE $ac_cv_type_signal 6304 #define RETSIGTYPE $ac_cv_type_signal
7544 _ACEOF 6305 _ACEOF
7545 6306
7546 6307
7547 6308
7548 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5 6309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7549 $as_echo_n "checking for speed_t... " >&6; } 6310 $as_echo_n "checking for speed_t... " >&6; }
7550 if test "${emacs_cv_speed_t+set}" = set; then 6311 if test "${emacs_cv_speed_t+set}" = set; then :
7551 $as_echo_n "(cached) " >&6 6312 $as_echo_n "(cached) " >&6
7552 else 6313 else
7553 cat >conftest.$ac_ext <<_ACEOF 6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* confdefs.h. */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */ 6315 /* end confdefs.h. */
7559 #include <termios.h> 6316 #include <termios.h>
7560 int 6317 int
7561 main () 6318 main ()
7562 { 6319 {
7563 speed_t x = 1; 6320 speed_t x = 1;
7564 ; 6321 ;
7565 return 0; 6322 return 0;
7566 } 6323 }
7567 _ACEOF 6324 _ACEOF
7568 rm -f conftest.$ac_objext 6325 if ac_fn_c_try_compile "$LINENO"; then :
7569 if { (ac_try="$ac_compile"
7570 case "(($ac_try" in
7571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7572 *) ac_try_echo=$ac_try;;
7573 esac
7574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7575 $as_echo "$ac_try_echo") >&5
7576 (eval "$ac_compile") 2>conftest.er1
7577 ac_status=$?
7578 grep -v '^ *+' conftest.er1 >conftest.err
7579 rm -f conftest.er1
7580 cat conftest.err >&5
7581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } && {
7583 test -z "$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7585 } && test -s conftest.$ac_objext; then
7586 emacs_cv_speed_t=yes 6326 emacs_cv_speed_t=yes
7587 else 6327 else
7588 $as_echo "$as_me: failed program was:" >&5 6328 emacs_cv_speed_t=no
7589 sed 's/^/| /' conftest.$ac_ext >&5 6329 fi
7590
7591 emacs_cv_speed_t=no
7592 fi
7593
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 fi 6331 fi
7596 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7597 $as_echo "$emacs_cv_speed_t" >&6; } 6333 $as_echo "$emacs_cv_speed_t" >&6; }
7598 if test $emacs_cv_speed_t = yes; then 6334 if test $emacs_cv_speed_t = yes; then
7599 6335
7600 cat >>confdefs.h <<\_ACEOF 6336 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7601 #define HAVE_SPEED_T 1 6337
7602 _ACEOF 6338 fi
7603 6339
7604 fi 6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7605
7606 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7607 $as_echo_n "checking for struct timeval... " >&6; } 6341 $as_echo_n "checking for struct timeval... " >&6; }
7608 if test "${emacs_cv_struct_timeval+set}" = set; then 6342 if test "${emacs_cv_struct_timeval+set}" = set; then :
7609 $as_echo_n "(cached) " >&6 6343 $as_echo_n "(cached) " >&6
7610 else 6344 else
7611 cat >conftest.$ac_ext <<_ACEOF 6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */ 6346 /* end confdefs.h. */
7617 #ifdef TIME_WITH_SYS_TIME 6347 #ifdef TIME_WITH_SYS_TIME
7618 #include <sys/time.h> 6348 #include <sys/time.h>
7619 #include <time.h> 6349 #include <time.h>
7620 #else 6350 #else
7630 static struct timeval x; x.tv_sec = x.tv_usec; 6360 static struct timeval x; x.tv_sec = x.tv_usec;
7631 ; 6361 ;
7632 return 0; 6362 return 0;
7633 } 6363 }
7634 _ACEOF 6364 _ACEOF
7635 rm -f conftest.$ac_objext 6365 if ac_fn_c_try_compile "$LINENO"; then :
7636 if { (ac_try="$ac_compile"
7637 case "(($ac_try" in
7638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7639 *) ac_try_echo=$ac_try;;
7640 esac
7641 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7642 $as_echo "$ac_try_echo") >&5
7643 (eval "$ac_compile") 2>conftest.er1
7644 ac_status=$?
7645 grep -v '^ *+' conftest.er1 >conftest.err
7646 rm -f conftest.er1
7647 cat conftest.err >&5
7648 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } && {
7650 test -z "$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 } && test -s conftest.$ac_objext; then
7653 emacs_cv_struct_timeval=yes 6366 emacs_cv_struct_timeval=yes
7654 else 6367 else
7655 $as_echo "$as_me: failed program was:" >&5 6368 emacs_cv_struct_timeval=no
7656 sed 's/^/| /' conftest.$ac_ext >&5 6369 fi
7657
7658 emacs_cv_struct_timeval=no
7659 fi
7660
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 fi 6371 fi
7663 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7664 $as_echo "$emacs_cv_struct_timeval" >&6; } 6373 $as_echo "$emacs_cv_struct_timeval" >&6; }
7665 HAVE_TIMEVAL=$emacs_cv_struct_timeval 6374 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7666 if test $emacs_cv_struct_timeval = yes; then 6375 if test $emacs_cv_struct_timeval = yes; then
7667 6376
7668 cat >>confdefs.h <<\_ACEOF 6377 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7669 #define HAVE_TIMEVAL 1 6378
7670 _ACEOF 6379 fi
7671 6380
7672 fi 6381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7673
7674 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7675 $as_echo_n "checking for struct exception... " >&6; } 6382 $as_echo_n "checking for struct exception... " >&6; }
7676 if test "${emacs_cv_struct_exception+set}" = set; then 6383 if test "${emacs_cv_struct_exception+set}" = set; then :
7677 $as_echo_n "(cached) " >&6 6384 $as_echo_n "(cached) " >&6
7678 else 6385 else
7679 cat >conftest.$ac_ext <<_ACEOF 6386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* confdefs.h. */
7681 _ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */ 6387 /* end confdefs.h. */
7685 #include <math.h> 6388 #include <math.h>
7686 int 6389 int
7687 main () 6390 main ()
7688 { 6391 {
7689 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; 6392 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7690 ; 6393 ;
7691 return 0; 6394 return 0;
7692 } 6395 }
7693 _ACEOF 6396 _ACEOF
7694 rm -f conftest.$ac_objext 6397 if ac_fn_c_try_compile "$LINENO"; then :
7695 if { (ac_try="$ac_compile"
7696 case "(($ac_try" in
7697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7698 *) ac_try_echo=$ac_try;;
7699 esac
7700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7701 $as_echo "$ac_try_echo") >&5
7702 (eval "$ac_compile") 2>conftest.er1
7703 ac_status=$?
7704 grep -v '^ *+' conftest.er1 >conftest.err
7705 rm -f conftest.er1
7706 cat conftest.err >&5
7707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7708 (exit $ac_status); } && {
7709 test -z "$ac_c_werror_flag" ||
7710 test ! -s conftest.err
7711 } && test -s conftest.$ac_objext; then
7712 emacs_cv_struct_exception=yes 6398 emacs_cv_struct_exception=yes
7713 else 6399 else
7714 $as_echo "$as_me: failed program was:" >&5 6400 emacs_cv_struct_exception=no
7715 sed 's/^/| /' conftest.$ac_ext >&5 6401 fi
7716
7717 emacs_cv_struct_exception=no
7718 fi
7719
7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721 fi 6403 fi
7722 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7723 $as_echo "$emacs_cv_struct_exception" >&6; } 6405 $as_echo "$emacs_cv_struct_exception" >&6; }
7724 HAVE_EXCEPTION=$emacs_cv_struct_exception 6406 HAVE_EXCEPTION=$emacs_cv_struct_exception
7725 if test $emacs_cv_struct_exception != yes; then 6407 if test $emacs_cv_struct_exception != yes; then
7726 6408
7727 cat >>confdefs.h <<\_ACEOF 6409 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7728 #define NO_MATHERR 1 6410
7729 _ACEOF 6411 fi
7730
7731 fi
7732
7733 6412
7734 for ac_header in sys/socket.h 6413 for ac_header in sys/socket.h
7735 do 6414 do :
7736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6415 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7737 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6416 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
7738 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7739 $as_echo_n "checking for $ac_header... " >&6; }
7740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7741 $as_echo_n "(cached) " >&6
7742 fi
7743 ac_res=`eval 'as_val=${'$as_ac_Header'}
7744 $as_echo "$as_val"'`
7745 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7746 $as_echo "$ac_res" >&6; }
7747 else
7748 # Is the header compilable?
7749 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7750 $as_echo_n "checking $ac_header usability... " >&6; }
7751 cat >conftest.$ac_ext <<_ACEOF
7752 /* confdefs.h. */
7753 _ACEOF
7754 cat confdefs.h >>conftest.$ac_ext
7755 cat >>conftest.$ac_ext <<_ACEOF
7756 /* end confdefs.h. */
7757 $ac_includes_default
7758 #include <$ac_header>
7759 _ACEOF
7760 rm -f conftest.$ac_objext
7761 if { (ac_try="$ac_compile"
7762 case "(($ac_try" in
7763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7764 *) ac_try_echo=$ac_try;;
7765 esac
7766 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7767 $as_echo "$ac_try_echo") >&5
7768 (eval "$ac_compile") 2>conftest.er1
7769 ac_status=$?
7770 grep -v '^ *+' conftest.er1 >conftest.err
7771 rm -f conftest.er1
7772 cat conftest.err >&5
7773 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } && {
7775 test -z "$ac_c_werror_flag" ||
7776 test ! -s conftest.err
7777 } && test -s conftest.$ac_objext; then
7778 ac_header_compiler=yes
7779 else
7780 $as_echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7782
7783 ac_header_compiler=no
7784 fi
7785
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7787 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7788 $as_echo "$ac_header_compiler" >&6; }
7789
7790 # Is the header present?
7791 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7792 $as_echo_n "checking $ac_header presence... " >&6; }
7793 cat >conftest.$ac_ext <<_ACEOF
7794 /* confdefs.h. */
7795 _ACEOF
7796 cat confdefs.h >>conftest.$ac_ext
7797 cat >>conftest.$ac_ext <<_ACEOF
7798 /* end confdefs.h. */
7799 #include <$ac_header>
7800 _ACEOF
7801 if { (ac_try="$ac_cpp conftest.$ac_ext"
7802 case "(($ac_try" in
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7805 esac
7806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7807 $as_echo "$ac_try_echo") >&5
7808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7809 ac_status=$?
7810 grep -v '^ *+' conftest.er1 >conftest.err
7811 rm -f conftest.er1
7812 cat conftest.err >&5
7813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } >/dev/null && {
7815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7816 test ! -s conftest.err
7817 }; then
7818 ac_header_preproc=yes
7819 else
7820 $as_echo "$as_me: failed program was:" >&5
7821 sed 's/^/| /' conftest.$ac_ext >&5
7822
7823 ac_header_preproc=no
7824 fi
7825
7826 rm -f conftest.err conftest.$ac_ext
7827 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7828 $as_echo "$ac_header_preproc" >&6; }
7829
7830 # So? What about this header?
7831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7832 yes:no: )
7833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7834 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7836 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7837 ac_header_preproc=yes
7838 ;;
7839 no:yes:* )
7840 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7841 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7842 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7843 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7844 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7845 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7846 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7847 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7848 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7849 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7851 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7852
7853 ;;
7854 esac
7855 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7856 $as_echo_n "checking for $ac_header... " >&6; }
7857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7858 $as_echo_n "(cached) " >&6
7859 else
7860 eval "$as_ac_Header=\$ac_header_preproc"
7861 fi
7862 ac_res=`eval 'as_val=${'$as_ac_Header'}
7863 $as_echo "$as_val"'`
7864 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7865 $as_echo "$ac_res" >&6; }
7866
7867 fi
7868 if test `eval 'as_val=${'$as_ac_Header'}
7869 $as_echo "$as_val"'` = yes; then
7870 cat >>confdefs.h <<_ACEOF 6417 cat >>confdefs.h <<_ACEOF
7871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6418 #define HAVE_SYS_SOCKET_H 1
7872 _ACEOF 6419 _ACEOF
7873 6420
7874 fi 6421 fi
7875 6422
7876 done 6423 done
7877 6424
7878
7879 for ac_header in net/if.h 6425 for ac_header in net/if.h
7880 do 6426 do :
7881 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6427 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7882 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7883 $as_echo_n "checking for $ac_header... " >&6; }
7884 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7885 $as_echo_n "(cached) " >&6
7886 else
7887 cat >conftest.$ac_ext <<_ACEOF
7888 /* confdefs.h. */
7889 _ACEOF
7890 cat confdefs.h >>conftest.$ac_ext
7891 cat >>conftest.$ac_ext <<_ACEOF
7892 /* end confdefs.h. */
7893 $ac_includes_default
7894 #if HAVE_SYS_SOCKET_H 6428 #if HAVE_SYS_SOCKET_H
7895 #include <sys/socket.h> 6429 #include <sys/socket.h>
7896 #endif 6430 #endif
7897 6431 "
7898 #include <$ac_header> 6432 if test "x$ac_cv_header_net_if_h" = x""yes; then :
7899 _ACEOF
7900 rm -f conftest.$ac_objext
7901 if { (ac_try="$ac_compile"
7902 case "(($ac_try" in
7903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7904 *) ac_try_echo=$ac_try;;
7905 esac
7906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7907 $as_echo "$ac_try_echo") >&5
7908 (eval "$ac_compile") 2>conftest.er1
7909 ac_status=$?
7910 grep -v '^ *+' conftest.er1 >conftest.err
7911 rm -f conftest.er1
7912 cat conftest.err >&5
7913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7914 (exit $ac_status); } && {
7915 test -z "$ac_c_werror_flag" ||
7916 test ! -s conftest.err
7917 } && test -s conftest.$ac_objext; then
7918 eval "$as_ac_Header=yes"
7919 else
7920 $as_echo "$as_me: failed program was:" >&5
7921 sed 's/^/| /' conftest.$ac_ext >&5
7922
7923 eval "$as_ac_Header=no"
7924 fi
7925
7926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7927 fi
7928 ac_res=`eval 'as_val=${'$as_ac_Header'}
7929 $as_echo "$as_val"'`
7930 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7931 $as_echo "$ac_res" >&6; }
7932 if test `eval 'as_val=${'$as_ac_Header'}
7933 $as_echo "$as_val"'` = yes; then
7934 cat >>confdefs.h <<_ACEOF 6433 cat >>confdefs.h <<_ACEOF
7935 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6434 #define HAVE_NET_IF_H 1
7936 _ACEOF 6435 _ACEOF
7937 6436
7938 fi 6437 fi
7939 6438
7940 done 6439 done
7941 6440
7942 6441
7943 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 6442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7944 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 6443 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7945 if test "${ac_cv_struct_tm+set}" = set; then 6444 if test "${ac_cv_struct_tm+set}" = set; then :
7946 $as_echo_n "(cached) " >&6 6445 $as_echo_n "(cached) " >&6
7947 else 6446 else
7948 cat >conftest.$ac_ext <<_ACEOF 6447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7949 /* confdefs.h. */
7950 _ACEOF
7951 cat confdefs.h >>conftest.$ac_ext
7952 cat >>conftest.$ac_ext <<_ACEOF
7953 /* end confdefs.h. */ 6448 /* end confdefs.h. */
7954 #include <sys/types.h> 6449 #include <sys/types.h>
7955 #include <time.h> 6450 #include <time.h>
7956 6451
7957 int 6452 int
7962 return !p; 6457 return !p;
7963 ; 6458 ;
7964 return 0; 6459 return 0;
7965 } 6460 }
7966 _ACEOF 6461 _ACEOF
7967 rm -f conftest.$ac_objext 6462 if ac_fn_c_try_compile "$LINENO"; then :
7968 if { (ac_try="$ac_compile"
7969 case "(($ac_try" in
7970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7971 *) ac_try_echo=$ac_try;;
7972 esac
7973 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7974 $as_echo "$ac_try_echo") >&5
7975 (eval "$ac_compile") 2>conftest.er1
7976 ac_status=$?
7977 grep -v '^ *+' conftest.er1 >conftest.err
7978 rm -f conftest.er1
7979 cat conftest.err >&5
7980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7981 (exit $ac_status); } && {
7982 test -z "$ac_c_werror_flag" ||
7983 test ! -s conftest.err
7984 } && test -s conftest.$ac_objext; then
7985 ac_cv_struct_tm=time.h 6463 ac_cv_struct_tm=time.h
7986 else 6464 else
7987 $as_echo "$as_me: failed program was:" >&5 6465 ac_cv_struct_tm=sys/time.h
7988 sed 's/^/| /' conftest.$ac_ext >&5 6466 fi
7989
7990 ac_cv_struct_tm=sys/time.h
7991 fi
7992
7993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7994 fi 6468 fi
7995 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 6469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
7996 $as_echo "$ac_cv_struct_tm" >&6; } 6470 $as_echo "$ac_cv_struct_tm" >&6; }
7997 if test $ac_cv_struct_tm = sys/time.h; then 6471 if test $ac_cv_struct_tm = sys/time.h; then
7998 6472
7999 cat >>confdefs.h <<\_ACEOF 6473 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8000 #define TM_IN_SYS_TIME 1 6474
8001 _ACEOF 6475 fi
8002 6476
8003 fi 6477 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8004
8005 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8006 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8007 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8008 $as_echo_n "(cached) " >&6
8009 else
8010 cat >conftest.$ac_ext <<_ACEOF
8011 /* confdefs.h. */
8012 _ACEOF
8013 cat confdefs.h >>conftest.$ac_ext
8014 cat >>conftest.$ac_ext <<_ACEOF
8015 /* end confdefs.h. */
8016 #include <sys/types.h>
8017 #include <$ac_cv_struct_tm> 6478 #include <$ac_cv_struct_tm>
8018 6479
8019 6480 "
8020 int 6481 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8021 main ()
8022 {
8023 static struct tm ac_aggr;
8024 if (ac_aggr.tm_zone)
8025 return 0;
8026 ;
8027 return 0;
8028 }
8029 _ACEOF
8030 rm -f conftest.$ac_objext
8031 if { (ac_try="$ac_compile"
8032 case "(($ac_try" in
8033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8034 *) ac_try_echo=$ac_try;;
8035 esac
8036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8037 $as_echo "$ac_try_echo") >&5
8038 (eval "$ac_compile") 2>conftest.er1
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest.$ac_objext; then
8048 ac_cv_member_struct_tm_tm_zone=yes
8049 else
8050 $as_echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8052
8053 cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h. */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 #include <sys/types.h>
8060 #include <$ac_cv_struct_tm>
8061
8062
8063 int
8064 main ()
8065 {
8066 static struct tm ac_aggr;
8067 if (sizeof ac_aggr.tm_zone)
8068 return 0;
8069 ;
8070 return 0;
8071 }
8072 _ACEOF
8073 rm -f conftest.$ac_objext
8074 if { (ac_try="$ac_compile"
8075 case "(($ac_try" in
8076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8077 *) ac_try_echo=$ac_try;;
8078 esac
8079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8080 $as_echo "$ac_try_echo") >&5
8081 (eval "$ac_compile") 2>conftest.er1
8082 ac_status=$?
8083 grep -v '^ *+' conftest.er1 >conftest.err
8084 rm -f conftest.er1
8085 cat conftest.err >&5
8086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } && {
8088 test -z "$ac_c_werror_flag" ||
8089 test ! -s conftest.err
8090 } && test -s conftest.$ac_objext; then
8091 ac_cv_member_struct_tm_tm_zone=yes
8092 else
8093 $as_echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.$ac_ext >&5
8095
8096 ac_cv_member_struct_tm_tm_zone=no
8097 fi
8098
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8100 fi
8101
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 fi
8104 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8105 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8106 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8107 6482
8108 cat >>confdefs.h <<_ACEOF 6483 cat >>confdefs.h <<_ACEOF
8109 #define HAVE_STRUCT_TM_TM_ZONE 1 6484 #define HAVE_STRUCT_TM_TM_ZONE 1
8110 _ACEOF 6485 _ACEOF
8111 6486
8112 6487
8113 fi 6488 fi
8114 6489
8115 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 6490 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8116 6491
8117 cat >>confdefs.h <<\_ACEOF 6492 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8118 #define HAVE_TM_ZONE 1 6493
8119 _ACEOF 6494 else
8120 6495 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8121 else 6496 "
8122 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 6497 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8123 $as_echo_n "checking whether tzname is declared... " >&6; } 6498 ac_have_decl=1
8124 if test "${ac_cv_have_decl_tzname+set}" = set; then 6499 else
6500 ac_have_decl=0
6501 fi
6502
6503 cat >>confdefs.h <<_ACEOF
6504 #define HAVE_DECL_TZNAME $ac_have_decl
6505 _ACEOF
6506
6507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6508 $as_echo_n "checking for tzname... " >&6; }
6509 if test "${ac_cv_var_tzname+set}" = set; then :
8125 $as_echo_n "(cached) " >&6 6510 $as_echo_n "(cached) " >&6
8126 else 6511 else
8127 cat >conftest.$ac_ext <<_ACEOF 6512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8128 /* confdefs.h. */
8129 _ACEOF
8130 cat confdefs.h >>conftest.$ac_ext
8131 cat >>conftest.$ac_ext <<_ACEOF
8132 /* end confdefs.h. */
8133 #include <time.h>
8134
8135 int
8136 main ()
8137 {
8138 #ifndef tzname
8139 (void) tzname;
8140 #endif
8141
8142 ;
8143 return 0;
8144 }
8145 _ACEOF
8146 rm -f conftest.$ac_objext
8147 if { (ac_try="$ac_compile"
8148 case "(($ac_try" in
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8151 esac
8152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8153 $as_echo "$ac_try_echo") >&5
8154 (eval "$ac_compile") 2>conftest.er1
8155 ac_status=$?
8156 grep -v '^ *+' conftest.er1 >conftest.err
8157 rm -f conftest.er1
8158 cat conftest.err >&5
8159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); } && {
8161 test -z "$ac_c_werror_flag" ||
8162 test ! -s conftest.err
8163 } && test -s conftest.$ac_objext; then
8164 ac_cv_have_decl_tzname=yes
8165 else
8166 $as_echo "$as_me: failed program was:" >&5
8167 sed 's/^/| /' conftest.$ac_ext >&5
8168
8169 ac_cv_have_decl_tzname=no
8170 fi
8171
8172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8173 fi
8174 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8175 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8176 if test $ac_cv_have_decl_tzname = yes; then
8177
8178 cat >>confdefs.h <<_ACEOF
8179 #define HAVE_DECL_TZNAME 1
8180 _ACEOF
8181
8182
8183 else
8184 cat >>confdefs.h <<_ACEOF
8185 #define HAVE_DECL_TZNAME 0
8186 _ACEOF
8187
8188
8189 fi
8190
8191
8192 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8193 $as_echo_n "checking for tzname... " >&6; }
8194 if test "${ac_cv_var_tzname+set}" = set; then
8195 $as_echo_n "(cached) " >&6
8196 else
8197 cat >conftest.$ac_ext <<_ACEOF
8198 /* confdefs.h. */
8199 _ACEOF
8200 cat confdefs.h >>conftest.$ac_ext
8201 cat >>conftest.$ac_ext <<_ACEOF
8202 /* end confdefs.h. */ 6513 /* end confdefs.h. */
8203 #include <time.h> 6514 #include <time.h>
8204 #if !HAVE_DECL_TZNAME 6515 #if !HAVE_DECL_TZNAME
8205 extern char *tzname[]; 6516 extern char *tzname[];
8206 #endif 6517 #endif
8211 return tzname[0][0]; 6522 return tzname[0][0];
8212 ; 6523 ;
8213 return 0; 6524 return 0;
8214 } 6525 }
8215 _ACEOF 6526 _ACEOF
8216 rm -f conftest.$ac_objext conftest$ac_exeext 6527 if ac_fn_c_try_link "$LINENO"; then :
8217 if { (ac_try="$ac_link"
8218 case "(($ac_try" in
8219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8220 *) ac_try_echo=$ac_try;;
8221 esac
8222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8223 $as_echo "$ac_try_echo") >&5
8224 (eval "$ac_link") 2>conftest.er1
8225 ac_status=$?
8226 grep -v '^ *+' conftest.er1 >conftest.err
8227 rm -f conftest.er1
8228 cat conftest.err >&5
8229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } && {
8231 test -z "$ac_c_werror_flag" ||
8232 test ! -s conftest.err
8233 } && test -s conftest$ac_exeext && {
8234 test "$cross_compiling" = yes ||
8235 $as_test_x conftest$ac_exeext
8236 }; then
8237 ac_cv_var_tzname=yes 6528 ac_cv_var_tzname=yes
8238 else 6529 else
8239 $as_echo "$as_me: failed program was:" >&5 6530 ac_cv_var_tzname=no
8240 sed 's/^/| /' conftest.$ac_ext >&5 6531 fi
8241 6532 rm -f core conftest.err conftest.$ac_objext \
8242 ac_cv_var_tzname=no 6533 conftest$ac_exeext conftest.$ac_ext
8243 fi 6534 fi
8244 6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8245 rm -rf conftest.dSYM
8246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8247 conftest$ac_exeext conftest.$ac_ext
8248 fi
8249 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8250 $as_echo "$ac_cv_var_tzname" >&6; } 6536 $as_echo "$ac_cv_var_tzname" >&6; }
8251 if test $ac_cv_var_tzname = yes; then 6537 if test $ac_cv_var_tzname = yes; then
8252 6538
8253 cat >>confdefs.h <<\_ACEOF 6539 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8254 #define HAVE_TZNAME 1
8255 _ACEOF
8256 6540
8257 fi 6541 fi
8258 fi 6542 fi
8259 6543
8260 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 6544 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8261 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; } 6545 "
8262 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then 6546 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8263 $as_echo_n "(cached) " >&6 6547
8264 else 6548 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8265 cat >conftest.$ac_ext <<_ACEOF 6549
8266 /* confdefs.h. */ 6550 fi
8267 _ACEOF 6551
8268 cat confdefs.h >>conftest.$ac_ext 6552 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8269 cat >>conftest.$ac_ext <<_ACEOF
8270 /* end confdefs.h. */
8271 #include <time.h>
8272
8273 int
8274 main ()
8275 {
8276 static struct tm ac_aggr;
8277 if (ac_aggr.tm_gmtoff)
8278 return 0;
8279 ;
8280 return 0;
8281 }
8282 _ACEOF
8283 rm -f conftest.$ac_objext
8284 if { (ac_try="$ac_compile"
8285 case "(($ac_try" in
8286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8287 *) ac_try_echo=$ac_try;;
8288 esac
8289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8290 $as_echo "$ac_try_echo") >&5
8291 (eval "$ac_compile") 2>conftest.er1
8292 ac_status=$?
8293 grep -v '^ *+' conftest.er1 >conftest.err
8294 rm -f conftest.er1
8295 cat conftest.err >&5
8296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8297 (exit $ac_status); } && {
8298 test -z "$ac_c_werror_flag" ||
8299 test ! -s conftest.err
8300 } && test -s conftest.$ac_objext; then
8301 ac_cv_member_struct_tm_tm_gmtoff=yes
8302 else
8303 $as_echo "$as_me: failed program was:" >&5
8304 sed 's/^/| /' conftest.$ac_ext >&5
8305
8306 cat >conftest.$ac_ext <<_ACEOF
8307 /* confdefs.h. */
8308 _ACEOF
8309 cat confdefs.h >>conftest.$ac_ext
8310 cat >>conftest.$ac_ext <<_ACEOF
8311 /* end confdefs.h. */
8312 #include <time.h>
8313
8314 int
8315 main ()
8316 {
8317 static struct tm ac_aggr;
8318 if (sizeof ac_aggr.tm_gmtoff)
8319 return 0;
8320 ;
8321 return 0;
8322 }
8323 _ACEOF
8324 rm -f conftest.$ac_objext
8325 if { (ac_try="$ac_compile"
8326 case "(($ac_try" in
8327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8328 *) ac_try_echo=$ac_try;;
8329 esac
8330 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8331 $as_echo "$ac_try_echo") >&5
8332 (eval "$ac_compile") 2>conftest.er1
8333 ac_status=$?
8334 grep -v '^ *+' conftest.er1 >conftest.err
8335 rm -f conftest.er1
8336 cat conftest.err >&5
8337 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8338 (exit $ac_status); } && {
8339 test -z "$ac_c_werror_flag" ||
8340 test ! -s conftest.err
8341 } && test -s conftest.$ac_objext; then
8342 ac_cv_member_struct_tm_tm_gmtoff=yes
8343 else
8344 $as_echo "$as_me: failed program was:" >&5
8345 sed 's/^/| /' conftest.$ac_ext >&5
8346
8347 ac_cv_member_struct_tm_tm_gmtoff=no
8348 fi
8349
8350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8351 fi
8352
8353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8354 fi
8355 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8356 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8357 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8358
8359 cat >>confdefs.h <<\_ACEOF
8360 #define HAVE_TM_GMTOFF 1
8361 _ACEOF
8362
8363 fi
8364
8365 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8366 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8367 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8368 $as_echo_n "(cached) " >&6
8369 else
8370 cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h. */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 $ac_includes_default
8377 #if HAVE_SYS_SOCKET_H 6553 #if HAVE_SYS_SOCKET_H
8378 #include <sys/socket.h> 6554 #include <sys/socket.h>
8379 #endif 6555 #endif
8380 #if HAVE_NET_IF_H 6556 #if HAVE_NET_IF_H
8381 #include <net/if.h> 6557 #include <net/if.h>
8382 #endif 6558 #endif
8383 6559 "
8384 int 6560 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8385 main () 6561
8386 { 6562 cat >>confdefs.h <<_ACEOF
8387 static struct ifreq ac_aggr; 6563 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8388 if (ac_aggr.ifr_flags) 6564 _ACEOF
8389 return 0; 6565
8390 ; 6566
8391 return 0; 6567 fi
8392 } 6568 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8393 _ACEOF
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8396 case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8399 esac
8400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8401 $as_echo "$ac_try_echo") >&5
8402 (eval "$ac_compile") 2>conftest.er1
8403 ac_status=$?
8404 grep -v '^ *+' conftest.er1 >conftest.err
8405 rm -f conftest.er1
8406 cat conftest.err >&5
8407 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8408 (exit $ac_status); } && {
8409 test -z "$ac_c_werror_flag" ||
8410 test ! -s conftest.err
8411 } && test -s conftest.$ac_objext; then
8412 ac_cv_member_struct_ifreq_ifr_flags=yes
8413 else
8414 $as_echo "$as_me: failed program was:" >&5
8415 sed 's/^/| /' conftest.$ac_ext >&5
8416
8417 cat >conftest.$ac_ext <<_ACEOF
8418 /* confdefs.h. */
8419 _ACEOF
8420 cat confdefs.h >>conftest.$ac_ext
8421 cat >>conftest.$ac_ext <<_ACEOF
8422 /* end confdefs.h. */
8423 $ac_includes_default
8424 #if HAVE_SYS_SOCKET_H 6569 #if HAVE_SYS_SOCKET_H
8425 #include <sys/socket.h> 6570 #include <sys/socket.h>
8426 #endif 6571 #endif
8427 #if HAVE_NET_IF_H 6572 #if HAVE_NET_IF_H
8428 #include <net/if.h> 6573 #include <net/if.h>
8429 #endif 6574 #endif
8430 6575 "
8431 int 6576 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8432 main ()
8433 {
8434 static struct ifreq ac_aggr;
8435 if (sizeof ac_aggr.ifr_flags)
8436 return 0;
8437 ;
8438 return 0;
8439 }
8440 _ACEOF
8441 rm -f conftest.$ac_objext
8442 if { (ac_try="$ac_compile"
8443 case "(($ac_try" in
8444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8445 *) ac_try_echo=$ac_try;;
8446 esac
8447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8448 $as_echo "$ac_try_echo") >&5
8449 (eval "$ac_compile") 2>conftest.er1
8450 ac_status=$?
8451 grep -v '^ *+' conftest.er1 >conftest.err
8452 rm -f conftest.er1
8453 cat conftest.err >&5
8454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8455 (exit $ac_status); } && {
8456 test -z "$ac_c_werror_flag" ||
8457 test ! -s conftest.err
8458 } && test -s conftest.$ac_objext; then
8459 ac_cv_member_struct_ifreq_ifr_flags=yes
8460 else
8461 $as_echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ac_cv_member_struct_ifreq_ifr_flags=no
8465 fi
8466
8467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8468 fi
8469
8470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8471 fi
8472 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8473 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8474 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8475 6577
8476 cat >>confdefs.h <<_ACEOF 6578 cat >>confdefs.h <<_ACEOF
8477 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 6579 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8478 _ACEOF 6580 _ACEOF
8479 6581
8480 6582
8481 fi 6583 fi
8482 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5 6584 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8483 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8484 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8485 $as_echo_n "(cached) " >&6
8486 else
8487 cat >conftest.$ac_ext <<_ACEOF
8488 /* confdefs.h. */
8489 _ACEOF
8490 cat confdefs.h >>conftest.$ac_ext
8491 cat >>conftest.$ac_ext <<_ACEOF
8492 /* end confdefs.h. */
8493 $ac_includes_default
8494 #if HAVE_SYS_SOCKET_H 6585 #if HAVE_SYS_SOCKET_H
8495 #include <sys/socket.h> 6586 #include <sys/socket.h>
8496 #endif 6587 #endif
8497 #if HAVE_NET_IF_H 6588 #if HAVE_NET_IF_H
8498 #include <net/if.h> 6589 #include <net/if.h>
8499 #endif 6590 #endif
8500 6591 "
8501 int 6592 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8502 main () 6593
8503 { 6594 cat >>confdefs.h <<_ACEOF
8504 static struct ifreq ac_aggr; 6595 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8505 if (ac_aggr.ifr_hwaddr) 6596 _ACEOF
8506 return 0; 6597
8507 ; 6598
8508 return 0; 6599 fi
8509 } 6600 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8510 _ACEOF
8511 rm -f conftest.$ac_objext
8512 if { (ac_try="$ac_compile"
8513 case "(($ac_try" in
8514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8515 *) ac_try_echo=$ac_try;;
8516 esac
8517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8518 $as_echo "$ac_try_echo") >&5
8519 (eval "$ac_compile") 2>conftest.er1
8520 ac_status=$?
8521 grep -v '^ *+' conftest.er1 >conftest.err
8522 rm -f conftest.er1
8523 cat conftest.err >&5
8524 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8525 (exit $ac_status); } && {
8526 test -z "$ac_c_werror_flag" ||
8527 test ! -s conftest.err
8528 } && test -s conftest.$ac_objext; then
8529 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8530 else
8531 $as_echo "$as_me: failed program was:" >&5
8532 sed 's/^/| /' conftest.$ac_ext >&5
8533
8534 cat >conftest.$ac_ext <<_ACEOF
8535 /* confdefs.h. */
8536 _ACEOF
8537 cat confdefs.h >>conftest.$ac_ext
8538 cat >>conftest.$ac_ext <<_ACEOF
8539 /* end confdefs.h. */
8540 $ac_includes_default
8541 #if HAVE_SYS_SOCKET_H 6601 #if HAVE_SYS_SOCKET_H
8542 #include <sys/socket.h> 6602 #include <sys/socket.h>
8543 #endif 6603 #endif
8544 #if HAVE_NET_IF_H 6604 #if HAVE_NET_IF_H
8545 #include <net/if.h> 6605 #include <net/if.h>
8546 #endif 6606 #endif
8547 6607 "
8548 int 6608 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8549 main ()
8550 {
8551 static struct ifreq ac_aggr;
8552 if (sizeof ac_aggr.ifr_hwaddr)
8553 return 0;
8554 ;
8555 return 0;
8556 }
8557 _ACEOF
8558 rm -f conftest.$ac_objext
8559 if { (ac_try="$ac_compile"
8560 case "(($ac_try" in
8561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8562 *) ac_try_echo=$ac_try;;
8563 esac
8564 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8565 $as_echo "$ac_try_echo") >&5
8566 (eval "$ac_compile") 2>conftest.er1
8567 ac_status=$?
8568 grep -v '^ *+' conftest.er1 >conftest.err
8569 rm -f conftest.er1
8570 cat conftest.err >&5
8571 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8572 (exit $ac_status); } && {
8573 test -z "$ac_c_werror_flag" ||
8574 test ! -s conftest.err
8575 } && test -s conftest.$ac_objext; then
8576 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8577 else
8578 $as_echo "$as_me: failed program was:" >&5
8579 sed 's/^/| /' conftest.$ac_ext >&5
8580
8581 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8582 fi
8583
8584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8585 fi
8586
8587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 fi
8589 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8590 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8591 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8592 6609
8593 cat >>confdefs.h <<_ACEOF 6610 cat >>confdefs.h <<_ACEOF
8594 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 6611 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8595 _ACEOF 6612 _ACEOF
8596 6613
8597 6614
8598 fi 6615 fi
8599 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5 6616 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8600 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8601 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8602 $as_echo_n "(cached) " >&6
8603 else
8604 cat >conftest.$ac_ext <<_ACEOF
8605 /* confdefs.h. */
8606 _ACEOF
8607 cat confdefs.h >>conftest.$ac_ext
8608 cat >>conftest.$ac_ext <<_ACEOF
8609 /* end confdefs.h. */
8610 $ac_includes_default
8611 #if HAVE_SYS_SOCKET_H 6617 #if HAVE_SYS_SOCKET_H
8612 #include <sys/socket.h> 6618 #include <sys/socket.h>
8613 #endif 6619 #endif
8614 #if HAVE_NET_IF_H 6620 #if HAVE_NET_IF_H
8615 #include <net/if.h> 6621 #include <net/if.h>
8616 #endif 6622 #endif
8617 6623 "
8618 int 6624 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8619 main ()
8620 {
8621 static struct ifreq ac_aggr;
8622 if (ac_aggr.ifr_netmask)
8623 return 0;
8624 ;
8625 return 0;
8626 }
8627 _ACEOF
8628 rm -f conftest.$ac_objext
8629 if { (ac_try="$ac_compile"
8630 case "(($ac_try" in
8631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8632 *) ac_try_echo=$ac_try;;
8633 esac
8634 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8635 $as_echo "$ac_try_echo") >&5
8636 (eval "$ac_compile") 2>conftest.er1
8637 ac_status=$?
8638 grep -v '^ *+' conftest.er1 >conftest.err
8639 rm -f conftest.er1
8640 cat conftest.err >&5
8641 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8642 (exit $ac_status); } && {
8643 test -z "$ac_c_werror_flag" ||
8644 test ! -s conftest.err
8645 } && test -s conftest.$ac_objext; then
8646 ac_cv_member_struct_ifreq_ifr_netmask=yes
8647 else
8648 $as_echo "$as_me: failed program was:" >&5
8649 sed 's/^/| /' conftest.$ac_ext >&5
8650
8651 cat >conftest.$ac_ext <<_ACEOF
8652 /* confdefs.h. */
8653 _ACEOF
8654 cat confdefs.h >>conftest.$ac_ext
8655 cat >>conftest.$ac_ext <<_ACEOF
8656 /* end confdefs.h. */
8657 $ac_includes_default
8658 #if HAVE_SYS_SOCKET_H
8659 #include <sys/socket.h>
8660 #endif
8661 #if HAVE_NET_IF_H
8662 #include <net/if.h>
8663 #endif
8664
8665 int
8666 main ()
8667 {
8668 static struct ifreq ac_aggr;
8669 if (sizeof ac_aggr.ifr_netmask)
8670 return 0;
8671 ;
8672 return 0;
8673 }
8674 _ACEOF
8675 rm -f conftest.$ac_objext
8676 if { (ac_try="$ac_compile"
8677 case "(($ac_try" in
8678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8679 *) ac_try_echo=$ac_try;;
8680 esac
8681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8682 $as_echo "$ac_try_echo") >&5
8683 (eval "$ac_compile") 2>conftest.er1
8684 ac_status=$?
8685 grep -v '^ *+' conftest.er1 >conftest.err
8686 rm -f conftest.er1
8687 cat conftest.err >&5
8688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8689 (exit $ac_status); } && {
8690 test -z "$ac_c_werror_flag" ||
8691 test ! -s conftest.err
8692 } && test -s conftest.$ac_objext; then
8693 ac_cv_member_struct_ifreq_ifr_netmask=yes
8694 else
8695 $as_echo "$as_me: failed program was:" >&5
8696 sed 's/^/| /' conftest.$ac_ext >&5
8697
8698 ac_cv_member_struct_ifreq_ifr_netmask=no
8699 fi
8700
8701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8702 fi
8703
8704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8705 fi
8706 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8707 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8708 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8709
8710 cat >>confdefs.h <<_ACEOF
8711 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8712 _ACEOF
8713
8714
8715 fi
8716 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8717 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8718 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8719 $as_echo_n "(cached) " >&6
8720 else
8721 cat >conftest.$ac_ext <<_ACEOF
8722 /* confdefs.h. */
8723 _ACEOF
8724 cat confdefs.h >>conftest.$ac_ext
8725 cat >>conftest.$ac_ext <<_ACEOF
8726 /* end confdefs.h. */
8727 $ac_includes_default
8728 #if HAVE_SYS_SOCKET_H
8729 #include <sys/socket.h>
8730 #endif
8731 #if HAVE_NET_IF_H
8732 #include <net/if.h>
8733 #endif
8734
8735 int
8736 main ()
8737 {
8738 static struct ifreq ac_aggr;
8739 if (ac_aggr.ifr_broadaddr)
8740 return 0;
8741 ;
8742 return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext
8746 if { (ac_try="$ac_compile"
8747 case "(($ac_try" in
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8750 esac
8751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8752 $as_echo "$ac_try_echo") >&5
8753 (eval "$ac_compile") 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } && {
8760 test -z "$ac_c_werror_flag" ||
8761 test ! -s conftest.err
8762 } && test -s conftest.$ac_objext; then
8763 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8764 else
8765 $as_echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.$ac_ext >&5
8767
8768 cat >conftest.$ac_ext <<_ACEOF
8769 /* confdefs.h. */
8770 _ACEOF
8771 cat confdefs.h >>conftest.$ac_ext
8772 cat >>conftest.$ac_ext <<_ACEOF
8773 /* end confdefs.h. */
8774 $ac_includes_default
8775 #if HAVE_SYS_SOCKET_H
8776 #include <sys/socket.h>
8777 #endif
8778 #if HAVE_NET_IF_H
8779 #include <net/if.h>
8780 #endif
8781
8782 int
8783 main ()
8784 {
8785 static struct ifreq ac_aggr;
8786 if (sizeof ac_aggr.ifr_broadaddr)
8787 return 0;
8788 ;
8789 return 0;
8790 }
8791 _ACEOF
8792 rm -f conftest.$ac_objext
8793 if { (ac_try="$ac_compile"
8794 case "(($ac_try" in
8795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8796 *) ac_try_echo=$ac_try;;
8797 esac
8798 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8799 $as_echo "$ac_try_echo") >&5
8800 (eval "$ac_compile") 2>conftest.er1
8801 ac_status=$?
8802 grep -v '^ *+' conftest.er1 >conftest.err
8803 rm -f conftest.er1
8804 cat conftest.err >&5
8805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8806 (exit $ac_status); } && {
8807 test -z "$ac_c_werror_flag" ||
8808 test ! -s conftest.err
8809 } && test -s conftest.$ac_objext; then
8810 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8811 else
8812 $as_echo "$as_me: failed program was:" >&5
8813 sed 's/^/| /' conftest.$ac_ext >&5
8814
8815 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8816 fi
8817
8818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8819 fi
8820
8821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8822 fi
8823 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8824 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8825 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8826
8827 cat >>confdefs.h <<_ACEOF
8828 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8829 _ACEOF
8830
8831
8832 fi
8833 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8834 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8835 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8836 $as_echo_n "(cached) " >&6
8837 else
8838 cat >conftest.$ac_ext <<_ACEOF
8839 /* confdefs.h. */
8840 _ACEOF
8841 cat confdefs.h >>conftest.$ac_ext
8842 cat >>conftest.$ac_ext <<_ACEOF
8843 /* end confdefs.h. */
8844 $ac_includes_default
8845 #if HAVE_SYS_SOCKET_H
8846 #include <sys/socket.h>
8847 #endif
8848 #if HAVE_NET_IF_H
8849 #include <net/if.h>
8850 #endif
8851
8852 int
8853 main ()
8854 {
8855 static struct ifreq ac_aggr;
8856 if (ac_aggr.ifr_addr)
8857 return 0;
8858 ;
8859 return 0;
8860 }
8861 _ACEOF
8862 rm -f conftest.$ac_objext
8863 if { (ac_try="$ac_compile"
8864 case "(($ac_try" in
8865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8866 *) ac_try_echo=$ac_try;;
8867 esac
8868 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8869 $as_echo "$ac_try_echo") >&5
8870 (eval "$ac_compile") 2>conftest.er1
8871 ac_status=$?
8872 grep -v '^ *+' conftest.er1 >conftest.err
8873 rm -f conftest.er1
8874 cat conftest.err >&5
8875 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8876 (exit $ac_status); } && {
8877 test -z "$ac_c_werror_flag" ||
8878 test ! -s conftest.err
8879 } && test -s conftest.$ac_objext; then
8880 ac_cv_member_struct_ifreq_ifr_addr=yes
8881 else
8882 $as_echo "$as_me: failed program was:" >&5
8883 sed 's/^/| /' conftest.$ac_ext >&5
8884
8885 cat >conftest.$ac_ext <<_ACEOF
8886 /* confdefs.h. */
8887 _ACEOF
8888 cat confdefs.h >>conftest.$ac_ext
8889 cat >>conftest.$ac_ext <<_ACEOF
8890 /* end confdefs.h. */
8891 $ac_includes_default
8892 #if HAVE_SYS_SOCKET_H
8893 #include <sys/socket.h>
8894 #endif
8895 #if HAVE_NET_IF_H
8896 #include <net/if.h>
8897 #endif
8898
8899 int
8900 main ()
8901 {
8902 static struct ifreq ac_aggr;
8903 if (sizeof ac_aggr.ifr_addr)
8904 return 0;
8905 ;
8906 return 0;
8907 }
8908 _ACEOF
8909 rm -f conftest.$ac_objext
8910 if { (ac_try="$ac_compile"
8911 case "(($ac_try" in
8912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8913 *) ac_try_echo=$ac_try;;
8914 esac
8915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8916 $as_echo "$ac_try_echo") >&5
8917 (eval "$ac_compile") 2>conftest.er1
8918 ac_status=$?
8919 grep -v '^ *+' conftest.er1 >conftest.err
8920 rm -f conftest.er1
8921 cat conftest.err >&5
8922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8923 (exit $ac_status); } && {
8924 test -z "$ac_c_werror_flag" ||
8925 test ! -s conftest.err
8926 } && test -s conftest.$ac_objext; then
8927 ac_cv_member_struct_ifreq_ifr_addr=yes
8928 else
8929 $as_echo "$as_me: failed program was:" >&5
8930 sed 's/^/| /' conftest.$ac_ext >&5
8931
8932 ac_cv_member_struct_ifreq_ifr_addr=no
8933 fi
8934
8935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8936 fi
8937
8938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8939 fi
8940 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8941 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8942 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8943 6625
8944 cat >>confdefs.h <<_ACEOF 6626 cat >>confdefs.h <<_ACEOF
8945 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 6627 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8946 _ACEOF 6628 _ACEOF
8947 6629
8948 6630
8949 fi 6631 fi
8950 6632
8951 6633
8952 6634
8953 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5 6635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
8954 $as_echo_n "checking for function prototypes... " >&6; } 6636 $as_echo_n "checking for function prototypes... " >&6; }
8955 if test "$ac_cv_prog_cc_c89" != no; then 6637 if test "$ac_cv_prog_cc_c89" != no; then
8956 { $as_echo "$as_me:$LINENO: result: yes" >&5 6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8957 $as_echo "yes" >&6; } 6639 $as_echo "yes" >&6; }
8958 6640
8959 cat >>confdefs.h <<\_ACEOF 6641 $as_echo "#define PROTOTYPES 1" >>confdefs.h
8960 #define PROTOTYPES 1 6642
8961 _ACEOF 6643
8962 6644 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
8963 6645
8964 cat >>confdefs.h <<\_ACEOF 6646 else
8965 #define __PROTOTYPES 1 6647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8966 _ACEOF
8967
8968 else
8969 { $as_echo "$as_me:$LINENO: result: no" >&5
8970 $as_echo "no" >&6; } 6648 $as_echo "no" >&6; }
8971 fi 6649 fi
8972 6650
8973 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5 6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
8974 $as_echo_n "checking for working volatile... " >&6; } 6652 $as_echo_n "checking for working volatile... " >&6; }
8975 if test "${ac_cv_c_volatile+set}" = set; then 6653 if test "${ac_cv_c_volatile+set}" = set; then :
8976 $as_echo_n "(cached) " >&6 6654 $as_echo_n "(cached) " >&6
8977 else 6655 else
8978 cat >conftest.$ac_ext <<_ACEOF 6656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8979 /* confdefs.h. */
8980 _ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */ 6657 /* end confdefs.h. */
8984 6658
8985 int 6659 int
8986 main () 6660 main ()
8987 { 6661 {
8991 return !x && !y; 6665 return !x && !y;
8992 ; 6666 ;
8993 return 0; 6667 return 0;
8994 } 6668 }
8995 _ACEOF 6669 _ACEOF
8996 rm -f conftest.$ac_objext 6670 if ac_fn_c_try_compile "$LINENO"; then :
8997 if { (ac_try="$ac_compile"
8998 case "(($ac_try" in
8999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9000 *) ac_try_echo=$ac_try;;
9001 esac
9002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9003 $as_echo "$ac_try_echo") >&5
9004 (eval "$ac_compile") 2>conftest.er1
9005 ac_status=$?
9006 grep -v '^ *+' conftest.er1 >conftest.err
9007 rm -f conftest.er1
9008 cat conftest.err >&5
9009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } && {
9011 test -z "$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9013 } && test -s conftest.$ac_objext; then
9014 ac_cv_c_volatile=yes 6671 ac_cv_c_volatile=yes
9015 else 6672 else
9016 $as_echo "$as_me: failed program was:" >&5 6673 ac_cv_c_volatile=no
9017 sed 's/^/| /' conftest.$ac_ext >&5 6674 fi
9018
9019 ac_cv_c_volatile=no
9020 fi
9021
9022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9023 fi 6676 fi
9024 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 6677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9025 $as_echo "$ac_cv_c_volatile" >&6; } 6678 $as_echo "$ac_cv_c_volatile" >&6; }
9026 if test $ac_cv_c_volatile = no; then 6679 if test $ac_cv_c_volatile = no; then
9027 6680
9028 cat >>confdefs.h <<\_ACEOF 6681 $as_echo "#define volatile /**/" >>confdefs.h
9029 #define volatile /**/ 6682
9030 _ACEOF 6683 fi
9031 6684
9032 fi 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9033
9034 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9035 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 6686 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9036 if test "${ac_cv_c_const+set}" = set; then 6687 if test "${ac_cv_c_const+set}" = set; then :
9037 $as_echo_n "(cached) " >&6 6688 $as_echo_n "(cached) " >&6
9038 else 6689 else
9039 cat >conftest.$ac_ext <<_ACEOF 6690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9040 /* confdefs.h. */
9041 _ACEOF
9042 cat confdefs.h >>conftest.$ac_ext
9043 cat >>conftest.$ac_ext <<_ACEOF
9044 /* end confdefs.h. */ 6691 /* end confdefs.h. */
9045 6692
9046 int 6693 int
9047 main () 6694 main ()
9048 { 6695 {
9098 6745
9099 ; 6746 ;
9100 return 0; 6747 return 0;
9101 } 6748 }
9102 _ACEOF 6749 _ACEOF
9103 rm -f conftest.$ac_objext 6750 if ac_fn_c_try_compile "$LINENO"; then :
9104 if { (ac_try="$ac_compile"
9105 case "(($ac_try" in
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9108 esac
9109 eval 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_c_const=yes 6751 ac_cv_c_const=yes
9122 else 6752 else
9123 $as_echo "$as_me: failed program was:" >&5 6753 ac_cv_c_const=no
9124 sed 's/^/| /' conftest.$ac_ext >&5 6754 fi
9125
9126 ac_cv_c_const=no
9127 fi
9128
9129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9130 fi 6756 fi
9131 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9132 $as_echo "$ac_cv_c_const" >&6; } 6758 $as_echo "$ac_cv_c_const" >&6; }
9133 if test $ac_cv_c_const = no; then 6759 if test $ac_cv_c_const = no; then
9134 6760
9135 cat >>confdefs.h <<\_ACEOF 6761 $as_echo "#define const /**/" >>confdefs.h
9136 #define const /**/ 6762
9137 _ACEOF 6763 fi
9138 6764
9139 fi 6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9140
9141 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9142 $as_echo_n "checking for void * support... " >&6; } 6766 $as_echo_n "checking for void * support... " >&6; }
9143 if test "${emacs_cv_void_star+set}" = set; then 6767 if test "${emacs_cv_void_star+set}" = set; then :
9144 $as_echo_n "(cached) " >&6 6768 $as_echo_n "(cached) " >&6
9145 else 6769 else
9146 cat >conftest.$ac_ext <<_ACEOF 6770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9147 /* confdefs.h. */
9148 _ACEOF
9149 cat confdefs.h >>conftest.$ac_ext
9150 cat >>conftest.$ac_ext <<_ACEOF
9151 /* end confdefs.h. */ 6771 /* end confdefs.h. */
9152 6772
9153 int 6773 int
9154 main () 6774 main ()
9155 { 6775 {
9156 void * foo; 6776 void * foo;
9157 ; 6777 ;
9158 return 0; 6778 return 0;
9159 } 6779 }
9160 _ACEOF 6780 _ACEOF
9161 rm -f conftest.$ac_objext 6781 if ac_fn_c_try_compile "$LINENO"; then :
9162 if { (ac_try="$ac_compile"
9163 case "(($ac_try" in
9164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9165 *) ac_try_echo=$ac_try;;
9166 esac
9167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9168 $as_echo "$ac_try_echo") >&5
9169 (eval "$ac_compile") 2>conftest.er1
9170 ac_status=$?
9171 grep -v '^ *+' conftest.er1 >conftest.err
9172 rm -f conftest.er1
9173 cat conftest.err >&5
9174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } && {
9176 test -z "$ac_c_werror_flag" ||
9177 test ! -s conftest.err
9178 } && test -s conftest.$ac_objext; then
9179 emacs_cv_void_star=yes 6782 emacs_cv_void_star=yes
9180 else 6783 else
9181 $as_echo "$as_me: failed program was:" >&5 6784 emacs_cv_void_star=no
9182 sed 's/^/| /' conftest.$ac_ext >&5 6785 fi
9183
9184 emacs_cv_void_star=no
9185 fi
9186
9187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9188 fi 6787 fi
9189 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 6788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9190 $as_echo "$emacs_cv_void_star" >&6; } 6789 $as_echo "$emacs_cv_void_star" >&6; }
9191 if test $emacs_cv_void_star = yes; then 6790 if test $emacs_cv_void_star = yes; then
9192 cat >>confdefs.h <<\_ACEOF 6791 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9193 #define POINTER_TYPE void 6792
9194 _ACEOF 6793 else
9195 6794 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9196 else 6795
9197 cat >>confdefs.h <<\_ACEOF 6796 fi
9198 #define POINTER_TYPE char 6797
9199 _ACEOF 6798
9200 6799
9201 fi 6800
9202 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9203
9204
9205
9206
9207 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9208 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6802 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9209 set x ${MAKE-make} 6803 set x ${MAKE-make}
9210 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6804 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9211 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 6805 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9212 $as_echo_n "(cached) " >&6 6806 $as_echo_n "(cached) " >&6
9213 else 6807 else
9214 cat >conftest.make <<\_ACEOF 6808 cat >conftest.make <<\_ACEOF
9215 SHELL = /bin/sh 6809 SHELL = /bin/sh
9216 all: 6810 all:
9224 eval ac_cv_prog_make_${ac_make}_set=no;; 6818 eval ac_cv_prog_make_${ac_make}_set=no;;
9225 esac 6819 esac
9226 rm -f conftest.make 6820 rm -f conftest.make
9227 fi 6821 fi
9228 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6822 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9229 { $as_echo "$as_me:$LINENO: result: yes" >&5 6823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9230 $as_echo "yes" >&6; } 6824 $as_echo "yes" >&6; }
9231 SET_MAKE= 6825 SET_MAKE=
9232 else 6826 else
9233 { $as_echo "$as_me:$LINENO: result: no" >&5 6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9234 $as_echo "no" >&6; } 6828 $as_echo "no" >&6; }
9235 SET_MAKE="MAKE=${MAKE-make}" 6829 SET_MAKE="MAKE=${MAKE-make}"
9236 fi 6830 fi
9237 6831
9238 6832
9239 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then 6833 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9240 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5 6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9241 $as_echo_n "checking whether we are using GNU Make... " >&6; } 6835 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9242 HAVE_GNU_MAKE=no 6836 HAVE_GNU_MAKE=no
9243 testval=`make --version 2>/dev/null | grep 'GNU Make'` 6837 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9244 if test "x$testval" != x; then 6838 if test "x$testval" != x; then
9245 HAVE_GNU_MAKE=yes 6839 HAVE_GNU_MAKE=yes
9246 else 6840 else
9247 ac_enable_autodepend=no 6841 ac_enable_autodepend=no
9248 fi 6842 fi
9249 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5 6843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9250 $as_echo "$HAVE_GNU_MAKE" >&6; } 6844 $as_echo "$HAVE_GNU_MAKE" >&6; }
9251 if test $HAVE_GNU_MAKE = yes; then 6845 if test $HAVE_GNU_MAKE = yes; then
9252 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9253 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } 6847 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9254 SAVE_CFLAGS="$CFLAGS" 6848 SAVE_CFLAGS="$CFLAGS"
9255 CFLAGS="$CFLAGS -MMD -MF deps.d" 6849 CFLAGS="$CFLAGS -MMD -MF deps.d"
9256 cat >conftest.$ac_ext <<_ACEOF 6850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9257 /* confdefs.h. */
9258 _ACEOF
9259 cat confdefs.h >>conftest.$ac_ext
9260 cat >>conftest.$ac_ext <<_ACEOF
9261 /* end confdefs.h. */ 6851 /* end confdefs.h. */
9262 6852
9263 int 6853 int
9264 main () 6854 main ()
9265 { 6855 {
9266 6856
9267 ; 6857 ;
9268 return 0; 6858 return 0;
9269 } 6859 }
9270 _ACEOF 6860 _ACEOF
9271 rm -f conftest.$ac_objext 6861 if ac_fn_c_try_compile "$LINENO"; then :
9272 if { (ac_try="$ac_compile" 6862
9273 case "(($ac_try" in 6863 else
9274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6864 ac_enable_autodepend=no
9275 *) ac_try_echo=$ac_try;; 6865 fi
9276 esac
9277 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9278 $as_echo "$ac_try_echo") >&5
9279 (eval "$ac_compile") 2>conftest.er1
9280 ac_status=$?
9281 grep -v '^ *+' conftest.er1 >conftest.err
9282 rm -f conftest.er1
9283 cat conftest.err >&5
9284 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); } && {
9286 test -z "$ac_c_werror_flag" ||
9287 test ! -s conftest.err
9288 } && test -s conftest.$ac_objext; then
9289 :
9290 else
9291 $as_echo "$as_me: failed program was:" >&5
9292 sed 's/^/| /' conftest.$ac_ext >&5
9293
9294 ac_enable_autodepend=no
9295 fi
9296
9297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9298 CFLAGS="$SAVE_CFLAGS" 6867 CFLAGS="$SAVE_CFLAGS"
9299 test -f deps.d || ac_enable_autodepend=no 6868 test -f deps.d || ac_enable_autodepend=no
9300 rm -rf deps.d 6869 rm -rf deps.d
9301 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5 6870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9302 $as_echo "$ac_enable_autodepend" >&6; } 6871 $as_echo "$ac_enable_autodepend" >&6; }
9303 fi 6872 fi
9304 if test $ac_enable_autodepend = yes; then 6873 if test $ac_enable_autodepend = yes; then
9305 6874
9306 cat >>confdefs.h <<\_ACEOF 6875 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
9307 #define AUTO_DEPEND 1
9308 _ACEOF
9309 6876
9310 fi 6877 fi
9311 fi 6878 fi
9312 6879
9313 { $as_echo "$as_me:$LINENO: checking for long file names" >&5 6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9314 $as_echo_n "checking for long file names... " >&6; } 6881 $as_echo_n "checking for long file names... " >&6; }
9315 if test "${ac_cv_sys_long_file_names+set}" = set; then 6882 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9316 $as_echo_n "(cached) " >&6 6883 $as_echo_n "(cached) " >&6
9317 else 6884 else
9318 ac_cv_sys_long_file_names=yes 6885 ac_cv_sys_long_file_names=yes
9319 # Test for long file names in all the places we know might matter: 6886 # Test for long file names in all the places we know might matter:
9320 # . the current directory, where building will happen 6887 # . the current directory, where building will happen
9340 ac_cv_sys_long_file_names=no 6907 ac_cv_sys_long_file_names=no
9341 rm -f -r "$ac_xdir" 2>/dev/null 6908 rm -f -r "$ac_xdir" 2>/dev/null
9342 test $ac_cv_sys_long_file_names = no && break 6909 test $ac_cv_sys_long_file_names = no && break
9343 done 6910 done
9344 fi 6911 fi
9345 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9346 $as_echo "$ac_cv_sys_long_file_names" >&6; } 6913 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9347 if test $ac_cv_sys_long_file_names = yes; then 6914 if test $ac_cv_sys_long_file_names = yes; then
9348 6915
9349 cat >>confdefs.h <<\_ACEOF 6916 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9350 #define HAVE_LONG_FILE_NAMES 1
9351 _ACEOF
9352 6917
9353 fi 6918 fi
9354 6919
9355 6920
9356 #### Choose a window system. 6921 #### Choose a window system.
9357 6922
9358 { $as_echo "$as_me:$LINENO: checking for X" >&5 6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9359 $as_echo_n "checking for X... " >&6; } 6924 $as_echo_n "checking for X... " >&6; }
9360 6925
9361 6926
9362 # Check whether --with-x was given. 6927 # Check whether --with-x was given.
9363 if test "${with_x+set}" = set; then 6928 if test "${with_x+set}" = set; then :
9364 withval=$with_x; 6929 withval=$with_x;
9365 fi 6930 fi
9366 6931
9367 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 6932 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9368 if test "x$with_x" = xno; then 6933 if test "x$with_x" = xno; then
9369 # The user explicitly disabled X. 6934 # The user explicitly disabled X.
9370 have_x=disabled 6935 have_x=disabled
9371 else 6936 else
9372 case $x_includes,$x_libraries in #( 6937 case $x_includes,$x_libraries in #(
9373 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 6938 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9374 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;} 6939 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9375 { (exit 1); exit 1; }; };; #(
9376 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9377 $as_echo_n "(cached) " >&6 6940 $as_echo_n "(cached) " >&6
9378 else 6941 else
9379 # One or both of the vars are not set, and there is no cached value. 6942 # One or both of the vars are not set, and there is no cached value.
9380 ac_x_includes=no ac_x_libraries=no 6943 ac_x_includes=no ac_x_libraries=no
9381 rm -f -r conftest.dir 6944 rm -f -r conftest.dir
9407 case $ac_im_incroot in 6970 case $ac_im_incroot in
9408 /usr/include) ac_x_includes= ;; 6971 /usr/include) ac_x_includes= ;;
9409 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 6972 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9410 esac 6973 esac
9411 case $ac_im_usrlibdir in 6974 case $ac_im_usrlibdir in
9412 /usr/lib | /lib) ;; 6975 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9413 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 6976 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9414 esac 6977 esac
9415 fi 6978 fi
9416 cd .. 6979 cd ..
9417 rm -f -r conftest.dir 6980 rm -f -r conftest.dir
9419 6982
9420 # Standard set of common directories for X headers. 6983 # Standard set of common directories for X headers.
9421 # Check X11 before X11Rn because it is often a symlink to the current release. 6984 # Check X11 before X11Rn because it is often a symlink to the current release.
9422 ac_x_header_dirs=' 6985 ac_x_header_dirs='
9423 /usr/X11/include 6986 /usr/X11/include
6987 /usr/X11R7/include
9424 /usr/X11R6/include 6988 /usr/X11R6/include
9425 /usr/X11R5/include 6989 /usr/X11R5/include
9426 /usr/X11R4/include 6990 /usr/X11R4/include
9427 6991
9428 /usr/include/X11 6992 /usr/include/X11
6993 /usr/include/X11R7
9429 /usr/include/X11R6 6994 /usr/include/X11R6
9430 /usr/include/X11R5 6995 /usr/include/X11R5
9431 /usr/include/X11R4 6996 /usr/include/X11R4
9432 6997
9433 /usr/local/X11/include 6998 /usr/local/X11/include
6999 /usr/local/X11R7/include
9434 /usr/local/X11R6/include 7000 /usr/local/X11R6/include
9435 /usr/local/X11R5/include 7001 /usr/local/X11R5/include
9436 /usr/local/X11R4/include 7002 /usr/local/X11R4/include
9437 7003
9438 /usr/local/include/X11 7004 /usr/local/include/X11
7005 /usr/local/include/X11R7
9439 /usr/local/include/X11R6 7006 /usr/local/include/X11R6
9440 /usr/local/include/X11R5 7007 /usr/local/include/X11R5
9441 /usr/local/include/X11R4 7008 /usr/local/include/X11R4
9442 7009
9443 /usr/X386/include 7010 /usr/X386/include
9455 /usr/openwin/share/include' 7022 /usr/openwin/share/include'
9456 7023
9457 if test "$ac_x_includes" = no; then 7024 if test "$ac_x_includes" = no; then
9458 # Guess where to find include files, by looking for Xlib.h. 7025 # Guess where to find include files, by looking for Xlib.h.
9459 # First, try using that file with no special directory specified. 7026 # First, try using that file with no special directory specified.
9460 cat >conftest.$ac_ext <<_ACEOF 7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9461 /* confdefs.h. */
9462 _ACEOF
9463 cat confdefs.h >>conftest.$ac_ext
9464 cat >>conftest.$ac_ext <<_ACEOF
9465 /* end confdefs.h. */ 7028 /* end confdefs.h. */
9466 #include <X11/Xlib.h> 7029 #include <X11/Xlib.h>
9467 _ACEOF 7030 _ACEOF
9468 if { (ac_try="$ac_cpp conftest.$ac_ext" 7031 if ac_fn_c_try_cpp "$LINENO"; then :
9469 case "(($ac_try" in
9470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9471 *) ac_try_echo=$ac_try;;
9472 esac
9473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9474 $as_echo "$ac_try_echo") >&5
9475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9476 ac_status=$?
9477 grep -v '^ *+' conftest.er1 >conftest.err
9478 rm -f conftest.er1
9479 cat conftest.err >&5
9480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9481 (exit $ac_status); } >/dev/null && {
9482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9483 test ! -s conftest.err
9484 }; then
9485 # We can compile using X headers with no special include directory. 7032 # We can compile using X headers with no special include directory.
9486 ac_x_includes= 7033 ac_x_includes=
9487 else 7034 else
9488 $as_echo "$as_me: failed program was:" >&5
9489 sed 's/^/| /' conftest.$ac_ext >&5
9490
9491 for ac_dir in $ac_x_header_dirs; do 7035 for ac_dir in $ac_x_header_dirs; do
9492 if test -r "$ac_dir/X11/Xlib.h"; then 7036 if test -r "$ac_dir/X11/Xlib.h"; then
9493 ac_x_includes=$ac_dir 7037 ac_x_includes=$ac_dir
9494 break 7038 break
9495 fi 7039 fi
9496 done 7040 done
9497 fi 7041 fi
9498
9499 rm -f conftest.err conftest.$ac_ext 7042 rm -f conftest.err conftest.$ac_ext
9500 fi # $ac_x_includes = no 7043 fi # $ac_x_includes = no
9501 7044
9502 if test "$ac_x_libraries" = no; then 7045 if test "$ac_x_libraries" = no; then
9503 # Check for the libraries. 7046 # Check for the libraries.
9504 # See if we find them without any special options. 7047 # See if we find them without any special options.
9505 # Don't add to $LIBS permanently. 7048 # Don't add to $LIBS permanently.
9506 ac_save_LIBS=$LIBS 7049 ac_save_LIBS=$LIBS
9507 LIBS="-lX11 $LIBS" 7050 LIBS="-lX11 $LIBS"
9508 cat >conftest.$ac_ext <<_ACEOF 7051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9509 /* confdefs.h. */
9510 _ACEOF
9511 cat confdefs.h >>conftest.$ac_ext
9512 cat >>conftest.$ac_ext <<_ACEOF
9513 /* end confdefs.h. */ 7052 /* end confdefs.h. */
9514 #include <X11/Xlib.h> 7053 #include <X11/Xlib.h>
9515 int 7054 int
9516 main () 7055 main ()
9517 { 7056 {
9518 XrmInitialize () 7057 XrmInitialize ()
9519 ; 7058 ;
9520 return 0; 7059 return 0;
9521 } 7060 }
9522 _ACEOF 7061 _ACEOF
9523 rm -f conftest.$ac_objext conftest$ac_exeext 7062 if ac_fn_c_try_link "$LINENO"; then :
9524 if { (ac_try="$ac_link"
9525 case "(($ac_try" in
9526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9527 *) ac_try_echo=$ac_try;;
9528 esac
9529 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9530 $as_echo "$ac_try_echo") >&5
9531 (eval "$ac_link") 2>conftest.er1
9532 ac_status=$?
9533 grep -v '^ *+' conftest.er1 >conftest.err
9534 rm -f conftest.er1
9535 cat conftest.err >&5
9536 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9537 (exit $ac_status); } && {
9538 test -z "$ac_c_werror_flag" ||
9539 test ! -s conftest.err
9540 } && test -s conftest$ac_exeext && {
9541 test "$cross_compiling" = yes ||
9542 $as_test_x conftest$ac_exeext
9543 }; then
9544 LIBS=$ac_save_LIBS 7063 LIBS=$ac_save_LIBS
9545 # We can link X programs with no special library path. 7064 # We can link X programs with no special library path.
9546 ac_x_libraries= 7065 ac_x_libraries=
9547 else 7066 else
9548 $as_echo "$as_me: failed program was:" >&5 7067 LIBS=$ac_save_LIBS
9549 sed 's/^/| /' conftest.$ac_ext >&5
9550
9551 LIBS=$ac_save_LIBS
9552 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7068 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9553 do 7069 do
9554 # Don't even attempt the hair of trying to link an X program! 7070 # Don't even attempt the hair of trying to link an X program!
9555 for ac_extension in a so sl dylib la dll; do 7071 for ac_extension in a so sl dylib la dll; do
9556 if test -r "$ac_dir/libX11.$ac_extension"; then 7072 if test -r "$ac_dir/libX11.$ac_extension"; then
9558 break 2 7074 break 2
9559 fi 7075 fi
9560 done 7076 done
9561 done 7077 done
9562 fi 7078 fi
9563 7079 rm -f core conftest.err conftest.$ac_objext \
9564 rm -rf conftest.dSYM 7080 conftest$ac_exeext conftest.$ac_ext
9565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9566 conftest$ac_exeext conftest.$ac_ext
9567 fi # $ac_x_libraries = no 7081 fi # $ac_x_libraries = no
9568 7082
9569 case $ac_x_includes,$ac_x_libraries in #( 7083 case $ac_x_includes,$ac_x_libraries in #(
9570 no,* | *,no | *\'*) 7084 no,* | *,no | *\'*)
9571 # Didn't find X, or a directory has "'" in its name. 7085 # Didn't find X, or a directory has "'" in its name.
9582 esac 7096 esac
9583 eval "$ac_cv_have_x" 7097 eval "$ac_cv_have_x"
9584 fi # $with_x != no 7098 fi # $with_x != no
9585 7099
9586 if test "$have_x" != yes; then 7100 if test "$have_x" != yes; then
9587 { $as_echo "$as_me:$LINENO: result: $have_x" >&5 7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9588 $as_echo "$have_x" >&6; } 7102 $as_echo "$have_x" >&6; }
9589 no_x=yes 7103 no_x=yes
9590 else 7104 else
9591 # If each of the values was on the command line, it overrides each guess. 7105 # If each of the values was on the command line, it overrides each guess.
9592 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7106 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9593 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7107 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9594 # Update the cache value to reflect the command line values. 7108 # Update the cache value to reflect the command line values.
9595 ac_cv_have_x="have_x=yes\ 7109 ac_cv_have_x="have_x=yes\
9596 ac_x_includes='$x_includes'\ 7110 ac_x_includes='$x_includes'\
9597 ac_x_libraries='$x_libraries'" 7111 ac_x_libraries='$x_libraries'"
9598 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9599 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 7113 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9600 fi 7114 fi
9601 7115
9602 if test "$no_x" = yes; then 7116 if test "$no_x" = yes; then
9603 window_system=none 7117 window_system=none
9689 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 7203 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9690 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 7204 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9691 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 7205 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9692 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" 7206 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9693 fi 7207 fi
9694 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then 7208 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9695 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5 7209 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9696 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9697 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9698 $as_echo_n "(cached) " >&6
9699 fi
9700 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9701 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9702 else
9703 # Is the header compilable?
9704 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9705 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9706 cat >conftest.$ac_ext <<_ACEOF
9707 /* confdefs.h. */
9708 _ACEOF
9709 cat confdefs.h >>conftest.$ac_ext
9710 cat >>conftest.$ac_ext <<_ACEOF
9711 /* end confdefs.h. */
9712 $ac_includes_default
9713 #include <AppKit/AppKit.h>
9714 _ACEOF
9715 rm -f conftest.$ac_objext
9716 if { (ac_try="$ac_compile"
9717 case "(($ac_try" in
9718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9719 *) ac_try_echo=$ac_try;;
9720 esac
9721 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9722 $as_echo "$ac_try_echo") >&5
9723 (eval "$ac_compile") 2>conftest.er1
9724 ac_status=$?
9725 grep -v '^ *+' conftest.er1 >conftest.err
9726 rm -f conftest.er1
9727 cat conftest.err >&5
9728 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9729 (exit $ac_status); } && {
9730 test -z "$ac_c_werror_flag" ||
9731 test ! -s conftest.err
9732 } && test -s conftest.$ac_objext; then
9733 ac_header_compiler=yes
9734 else
9735 $as_echo "$as_me: failed program was:" >&5
9736 sed 's/^/| /' conftest.$ac_ext >&5
9737
9738 ac_header_compiler=no
9739 fi
9740
9741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9742 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9743 $as_echo "$ac_header_compiler" >&6; }
9744
9745 # Is the header present?
9746 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9747 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9748 cat >conftest.$ac_ext <<_ACEOF
9749 /* confdefs.h. */
9750 _ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 #include <AppKit/AppKit.h>
9755 _ACEOF
9756 if { (ac_try="$ac_cpp conftest.$ac_ext"
9757 case "(($ac_try" in
9758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9759 *) ac_try_echo=$ac_try;;
9760 esac
9761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9762 $as_echo "$ac_try_echo") >&5
9763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9764 ac_status=$?
9765 grep -v '^ *+' conftest.er1 >conftest.err
9766 rm -f conftest.er1
9767 cat conftest.err >&5
9768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9769 (exit $ac_status); } >/dev/null && {
9770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9771 test ! -s conftest.err
9772 }; then
9773 ac_header_preproc=yes
9774 else
9775 $as_echo "$as_me: failed program was:" >&5
9776 sed 's/^/| /' conftest.$ac_ext >&5
9777
9778 ac_header_preproc=no
9779 fi
9780
9781 rm -f conftest.err conftest.$ac_ext
9782 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9783 $as_echo "$ac_header_preproc" >&6; }
9784
9785 # So? What about this header?
9786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9787 yes:no: )
9788 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9789 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9790 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9791 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9792 ac_header_preproc=yes
9793 ;;
9794 no:yes:* )
9795 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9796 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9797 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9798 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9799 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9800 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9801 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9802 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9803 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9804 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9805 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9806 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9807
9808 ;;
9809 esac
9810 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9811 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9812 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9813 $as_echo_n "(cached) " >&6
9814 else
9815 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9816 fi
9817 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9818 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9819
9820 fi
9821 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9822 HAVE_NS=yes 7210 HAVE_NS=yes
9823 else 7211 else
9824 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include 7212 as_fn_error "\`--with-ns' was specified, but the include
9825 files are missing or cannot be compiled." >&5 7213 files are missing or cannot be compiled." "$LINENO" 5
9826 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9827 files are missing or cannot be compiled." >&2;}
9828 { (exit 1); exit 1; }; }
9829 fi 7214 fi
9830 7215
9831 7216
9832 NS_HAVE_NSINTEGER=yes 7217 NS_HAVE_NSINTEGER=yes
9833 cat >conftest.$ac_ext <<_ACEOF 7218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9834 /* confdefs.h. */
9835 _ACEOF
9836 cat confdefs.h >>conftest.$ac_ext
9837 cat >>conftest.$ac_ext <<_ACEOF
9838 /* end confdefs.h. */ 7219 /* end confdefs.h. */
9839 #include <Foundation/NSObjCRuntime.h> 7220 #include <Foundation/NSObjCRuntime.h>
9840 int 7221 int
9841 main () 7222 main ()
9842 { 7223 {
9843 NSInteger i; 7224 NSInteger i;
9844 ; 7225 ;
9845 return 0; 7226 return 0;
9846 } 7227 }
9847 _ACEOF 7228 _ACEOF
9848 rm -f conftest.$ac_objext 7229 if ac_fn_c_try_compile "$LINENO"; then :
9849 if { (ac_try="$ac_compile"
9850 case "(($ac_try" in
9851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9852 *) ac_try_echo=$ac_try;;
9853 esac
9854 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9855 $as_echo "$ac_try_echo") >&5
9856 (eval "$ac_compile") 2>conftest.er1
9857 ac_status=$?
9858 grep -v '^ *+' conftest.er1 >conftest.err
9859 rm -f conftest.er1
9860 cat conftest.err >&5
9861 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9862 (exit $ac_status); } && {
9863 test -z "$ac_c_werror_flag" ||
9864 test ! -s conftest.err
9865 } && test -s conftest.$ac_objext; then
9866 ns_have_nsinteger=yes 7230 ns_have_nsinteger=yes
9867 else 7231 else
9868 $as_echo "$as_me: failed program was:" >&5 7232 ns_have_nsinteger=no
9869 sed 's/^/| /' conftest.$ac_ext >&5 7233 fi
9870
9871 ns_have_nsinteger=no
9872 fi
9873
9874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9875 if test $ns_have_nsinteger = no; then 7235 if test $ns_have_nsinteger = no; then
9876 NS_HAVE_NSINTEGER=no 7236 NS_HAVE_NSINTEGER=no
9877 fi 7237 fi
9878 fi 7238 fi
9910 esac 7270 esac
9911 7271
9912 if test "$window_system" = none && test "X$with_x" != "Xno"; then 7272 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9913 # Extract the first word of "X", so it can be a program name with args. 7273 # Extract the first word of "X", so it can be a program name with args.
9914 set dummy X; ac_word=$2 7274 set dummy X; ac_word=$2
9915 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9916 $as_echo_n "checking for $ac_word... " >&6; } 7276 $as_echo_n "checking for $ac_word... " >&6; }
9917 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then 7277 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9918 $as_echo_n "(cached) " >&6 7278 $as_echo_n "(cached) " >&6
9919 else 7279 else
9920 if test -n "$HAVE_XSERVER"; then 7280 if test -n "$HAVE_XSERVER"; then
9921 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. 7281 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9922 else 7282 else
9923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 for as_dir in $PATH 7284 for as_dir in $PATH
9925 do 7285 do
9926 IFS=$as_save_IFS 7286 IFS=$as_save_IFS
9927 test -z "$as_dir" && as_dir=. 7287 test -z "$as_dir" && as_dir=.
9928 for ac_exec_ext in '' $ac_executable_extensions; do 7288 for ac_exec_ext in '' $ac_executable_extensions; do
9929 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9930 ac_cv_prog_HAVE_XSERVER="true" 7290 ac_cv_prog_HAVE_XSERVER="true"
9931 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9932 break 2 7292 break 2
9933 fi 7293 fi
9934 done 7294 done
9935 done 7295 done
9936 IFS=$as_save_IFS 7296 IFS=$as_save_IFS
9937 7297
9938 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" 7298 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9939 fi 7299 fi
9940 fi 7300 fi
9941 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER 7301 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9942 if test -n "$HAVE_XSERVER"; then 7302 if test -n "$HAVE_XSERVER"; then
9943 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9944 $as_echo "$HAVE_XSERVER" >&6; } 7304 $as_echo "$HAVE_XSERVER" >&6; }
9945 else 7305 else
9946 { $as_echo "$as_me:$LINENO: result: no" >&5 7306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; } 7307 $as_echo "no" >&6; }
9948 fi 7308 fi
9949 7309
9950 7310
9951 if test "$HAVE_XSERVER" = true || 7311 if test "$HAVE_XSERVER" = true ||
9952 test -n "$DISPLAY" || 7312 test -n "$DISPLAY" ||
9953 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then 7313 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9954 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries 7314 as_fn_error "You seem to be running X, but no X development libraries
9955 were found. You should install the relevant development files for X 7315 were found. You should install the relevant development files for X
9956 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make 7316 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9957 sure you have development files for image handling, i.e. 7317 sure you have development files for image handling, i.e.
9958 tiff, gif, jpeg, png and xpm. 7318 tiff, gif, jpeg, png and xpm.
9959 If you are sure you want Emacs compiled without X window support, pass 7319 If you are sure you want Emacs compiled without X window support, pass
9960 --without-x 7320 --without-x
9961 to configure." >&5 7321 to configure." "$LINENO" 5
9962 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
9963 were found. You should install the relevant development files for X
9964 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9965 sure you have development files for image handling, i.e.
9966 tiff, gif, jpeg, png and xpm.
9967 If you are sure you want Emacs compiled without X window support, pass
9968 --without-x
9969 to configure." >&2;}
9970 { (exit 1); exit 1; }; }
9971 fi 7322 fi
9972 fi 7323 fi
9973 7324
9974 ### If we're using X11, we should use the X menu package. 7325 ### If we're using X11, we should use the X menu package.
9975 HAVE_MENUS=no 7326 HAVE_MENUS=no
9979 7330
9980 # Do the opsystem or machine files prohibit the use of the GNU malloc? 7331 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9981 # Assume not, until told otherwise. 7332 # Assume not, until told otherwise.
9982 GNU_MALLOC=yes 7333 GNU_MALLOC=yes
9983 doug_lea_malloc=yes 7334 doug_lea_malloc=yes
9984 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5 7335 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
9985 $as_echo_n "checking for malloc_get_state... " >&6; } 7336 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
9986 if test "${ac_cv_func_malloc_get_state+set}" = set; then 7337
7338 else
7339 doug_lea_malloc=no
7340 fi
7341
7342 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7343 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7344
7345 else
7346 doug_lea_malloc=no
7347 fi
7348
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7350 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7351 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
9987 $as_echo_n "(cached) " >&6 7352 $as_echo_n "(cached) " >&6
9988 else 7353 else
9989 cat >conftest.$ac_ext <<_ACEOF 7354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9990 /* confdefs.h. */
9991 _ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h. */
9995 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9997 #define malloc_get_state innocuous_malloc_get_state
9998
9999 /* System header to define __stub macros and hopefully few prototypes,
10000 which can conflict with char malloc_get_state (); below.
10001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10002 <limits.h> exists even on freestanding compilers. */
10003
10004 #ifdef __STDC__
10005 # include <limits.h>
10006 #else
10007 # include <assert.h>
10008 #endif
10009
10010 #undef malloc_get_state
10011
10012 /* Override any GCC internal prototype to avoid an error.
10013 Use char because int might match the return type of a GCC
10014 builtin and then its argument prototype would still apply. */
10015 #ifdef __cplusplus
10016 extern "C"
10017 #endif
10018 char malloc_get_state ();
10019 /* The GNU C library defines this for functions which it implements
10020 to always fail with ENOSYS. Some functions are actually named
10021 something starting with __ and the normal name is an alias. */
10022 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10023 choke me
10024 #endif
10025
10026 int
10027 main ()
10028 {
10029 return malloc_get_state ();
10030 ;
10031 return 0;
10032 }
10033 _ACEOF
10034 rm -f conftest.$ac_objext conftest$ac_exeext
10035 if { (ac_try="$ac_link"
10036 case "(($ac_try" in
10037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10038 *) ac_try_echo=$ac_try;;
10039 esac
10040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10041 $as_echo "$ac_try_echo") >&5
10042 (eval "$ac_link") 2>conftest.er1
10043 ac_status=$?
10044 grep -v '^ *+' conftest.er1 >conftest.err
10045 rm -f conftest.er1
10046 cat conftest.err >&5
10047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10048 (exit $ac_status); } && {
10049 test -z "$ac_c_werror_flag" ||
10050 test ! -s conftest.err
10051 } && test -s conftest$ac_exeext && {
10052 test "$cross_compiling" = yes ||
10053 $as_test_x conftest$ac_exeext
10054 }; then
10055 ac_cv_func_malloc_get_state=yes
10056 else
10057 $as_echo "$as_me: failed program was:" >&5
10058 sed 's/^/| /' conftest.$ac_ext >&5
10059
10060 ac_cv_func_malloc_get_state=no
10061 fi
10062
10063 rm -rf conftest.dSYM
10064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10065 conftest$ac_exeext conftest.$ac_ext
10066 fi
10067 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10068 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10069 if test $ac_cv_func_malloc_get_state = yes; then
10070 :
10071 else
10072 doug_lea_malloc=no
10073 fi
10074
10075 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10076 $as_echo_n "checking for malloc_set_state... " >&6; }
10077 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10078 $as_echo_n "(cached) " >&6
10079 else
10080 cat >conftest.$ac_ext <<_ACEOF
10081 /* confdefs.h. */
10082 _ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h. */
10086 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10087 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10088 #define malloc_set_state innocuous_malloc_set_state
10089
10090 /* System header to define __stub macros and hopefully few prototypes,
10091 which can conflict with char malloc_set_state (); below.
10092 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10093 <limits.h> exists even on freestanding compilers. */
10094
10095 #ifdef __STDC__
10096 # include <limits.h>
10097 #else
10098 # include <assert.h>
10099 #endif
10100
10101 #undef malloc_set_state
10102
10103 /* Override any GCC internal prototype to avoid an error.
10104 Use char because int might match the return type of a GCC
10105 builtin and then its argument prototype would still apply. */
10106 #ifdef __cplusplus
10107 extern "C"
10108 #endif
10109 char malloc_set_state ();
10110 /* The GNU C library defines this for functions which it implements
10111 to always fail with ENOSYS. Some functions are actually named
10112 something starting with __ and the normal name is an alias. */
10113 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10114 choke me
10115 #endif
10116
10117 int
10118 main ()
10119 {
10120 return malloc_set_state ();
10121 ;
10122 return 0;
10123 }
10124 _ACEOF
10125 rm -f conftest.$ac_objext conftest$ac_exeext
10126 if { (ac_try="$ac_link"
10127 case "(($ac_try" in
10128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10129 *) ac_try_echo=$ac_try;;
10130 esac
10131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10132 $as_echo "$ac_try_echo") >&5
10133 (eval "$ac_link") 2>conftest.er1
10134 ac_status=$?
10135 grep -v '^ *+' conftest.er1 >conftest.err
10136 rm -f conftest.er1
10137 cat conftest.err >&5
10138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10139 (exit $ac_status); } && {
10140 test -z "$ac_c_werror_flag" ||
10141 test ! -s conftest.err
10142 } && test -s conftest$ac_exeext && {
10143 test "$cross_compiling" = yes ||
10144 $as_test_x conftest$ac_exeext
10145 }; then
10146 ac_cv_func_malloc_set_state=yes
10147 else
10148 $as_echo "$as_me: failed program was:" >&5
10149 sed 's/^/| /' conftest.$ac_ext >&5
10150
10151 ac_cv_func_malloc_set_state=no
10152 fi
10153
10154 rm -rf conftest.dSYM
10155 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10156 conftest$ac_exeext conftest.$ac_ext
10157 fi
10158 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10159 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10160 if test $ac_cv_func_malloc_set_state = yes; then
10161 :
10162 else
10163 doug_lea_malloc=no
10164 fi
10165
10166 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10167 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10168 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10169 $as_echo_n "(cached) " >&6
10170 else
10171 cat >conftest.$ac_ext <<_ACEOF
10172 /* confdefs.h. */
10173 _ACEOF
10174 cat confdefs.h >>conftest.$ac_ext
10175 cat >>conftest.$ac_ext <<_ACEOF
10176 /* end confdefs.h. */ 7355 /* end confdefs.h. */
10177 extern void (* __after_morecore_hook)(); 7356 extern void (* __after_morecore_hook)();
10178 int 7357 int
10179 main () 7358 main ()
10180 { 7359 {
10181 __after_morecore_hook = 0 7360 __after_morecore_hook = 0
10182 ; 7361 ;
10183 return 0; 7362 return 0;
10184 } 7363 }
10185 _ACEOF 7364 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext 7365 if ac_fn_c_try_link "$LINENO"; then :
10187 if { (ac_try="$ac_link"
10188 case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10191 esac
10192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10193 $as_echo "$ac_try_echo") >&5
10194 (eval "$ac_link") 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && {
10201 test -z "$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10203 } && test -s conftest$ac_exeext && {
10204 test "$cross_compiling" = yes ||
10205 $as_test_x conftest$ac_exeext
10206 }; then
10207 emacs_cv_var___after_morecore_hook=yes 7366 emacs_cv_var___after_morecore_hook=yes
10208 else 7367 else
10209 $as_echo "$as_me: failed program was:" >&5 7368 emacs_cv_var___after_morecore_hook=no
10210 sed 's/^/| /' conftest.$ac_ext >&5 7369 fi
10211 7370 rm -f core conftest.err conftest.$ac_objext \
10212 emacs_cv_var___after_morecore_hook=no 7371 conftest$ac_exeext conftest.$ac_ext
10213 fi 7372 fi
10214 7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10215 rm -rf conftest.dSYM
10216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10217 conftest$ac_exeext conftest.$ac_ext
10218 fi
10219 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10220 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; } 7374 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10221 if test $emacs_cv_var___after_morecore_hook = no; then 7375 if test $emacs_cv_var___after_morecore_hook = no; then
10222 doug_lea_malloc=no 7376 doug_lea_malloc=no
10223 fi 7377 fi
10224 if test "${system_malloc}" = "yes"; then 7378 if test "${system_malloc}" = "yes"; then
10230 if test "$GNU_MALLOC" = yes ; then 7384 if test "$GNU_MALLOC" = yes ; then
10231 GNU_MALLOC_reason=" 7385 GNU_MALLOC_reason="
10232 (Using Doug Lea's new malloc from the GNU C Library.)" 7386 (Using Doug Lea's new malloc from the GNU C Library.)"
10233 fi 7387 fi
10234 7388
10235 cat >>confdefs.h <<\_ACEOF 7389 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10236 #define DOUG_LEA_MALLOC 1
10237 _ACEOF
10238 7390
10239 fi 7391 fi
10240 7392
10241 if test x"${REL_ALLOC}" = x; then 7393 if test x"${REL_ALLOC}" = x; then
10242 REL_ALLOC=${GNU_MALLOC} 7394 REL_ALLOC=${GNU_MALLOC}
10243 fi 7395 fi
10244 7396
10245 7397
10246 7398
10247 7399
10248 for ac_header in stdlib.h unistd.h 7400
10249 do 7401 for ac_header in $ac_header_list
10250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7402 do :
10251 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7403 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10252 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7404 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10253 $as_echo_n "checking for $ac_header... " >&6; } 7405 "
10254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7406 eval as_val=\$$as_ac_Header
10255 $as_echo_n "(cached) " >&6 7407 if test "x$as_val" = x""yes; then :
10256 fi
10257 ac_res=`eval 'as_val=${'$as_ac_Header'}
10258 $as_echo "$as_val"'`
10259 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10260 $as_echo "$ac_res" >&6; }
10261 else
10262 # Is the header compilable?
10263 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10264 $as_echo_n "checking $ac_header usability... " >&6; }
10265 cat >conftest.$ac_ext <<_ACEOF
10266 /* confdefs.h. */
10267 _ACEOF
10268 cat confdefs.h >>conftest.$ac_ext
10269 cat >>conftest.$ac_ext <<_ACEOF
10270 /* end confdefs.h. */
10271 $ac_includes_default
10272 #include <$ac_header>
10273 _ACEOF
10274 rm -f conftest.$ac_objext
10275 if { (ac_try="$ac_compile"
10276 case "(($ac_try" in
10277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10278 *) ac_try_echo=$ac_try;;
10279 esac
10280 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10281 $as_echo "$ac_try_echo") >&5
10282 (eval "$ac_compile") 2>conftest.er1
10283 ac_status=$?
10284 grep -v '^ *+' conftest.er1 >conftest.err
10285 rm -f conftest.er1
10286 cat conftest.err >&5
10287 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10288 (exit $ac_status); } && {
10289 test -z "$ac_c_werror_flag" ||
10290 test ! -s conftest.err
10291 } && test -s conftest.$ac_objext; then
10292 ac_header_compiler=yes
10293 else
10294 $as_echo "$as_me: failed program was:" >&5
10295 sed 's/^/| /' conftest.$ac_ext >&5
10296
10297 ac_header_compiler=no
10298 fi
10299
10300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10301 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10302 $as_echo "$ac_header_compiler" >&6; }
10303
10304 # Is the header present?
10305 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10306 $as_echo_n "checking $ac_header presence... " >&6; }
10307 cat >conftest.$ac_ext <<_ACEOF
10308 /* confdefs.h. */
10309 _ACEOF
10310 cat confdefs.h >>conftest.$ac_ext
10311 cat >>conftest.$ac_ext <<_ACEOF
10312 /* end confdefs.h. */
10313 #include <$ac_header>
10314 _ACEOF
10315 if { (ac_try="$ac_cpp conftest.$ac_ext"
10316 case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10319 esac
10320 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10321 $as_echo "$ac_try_echo") >&5
10322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10323 ac_status=$?
10324 grep -v '^ *+' conftest.er1 >conftest.err
10325 rm -f conftest.er1
10326 cat conftest.err >&5
10327 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10328 (exit $ac_status); } >/dev/null && {
10329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10330 test ! -s conftest.err
10331 }; then
10332 ac_header_preproc=yes
10333 else
10334 $as_echo "$as_me: failed program was:" >&5
10335 sed 's/^/| /' conftest.$ac_ext >&5
10336
10337 ac_header_preproc=no
10338 fi
10339
10340 rm -f conftest.err conftest.$ac_ext
10341 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10342 $as_echo "$ac_header_preproc" >&6; }
10343
10344 # So? What about this header?
10345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10346 yes:no: )
10347 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10348 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10349 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10350 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10351 ac_header_preproc=yes
10352 ;;
10353 no:yes:* )
10354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10355 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10357 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10359 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10360 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10361 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10362 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10363 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10364 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10365 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10366
10367 ;;
10368 esac
10369 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10370 $as_echo_n "checking for $ac_header... " >&6; }
10371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10372 $as_echo_n "(cached) " >&6
10373 else
10374 eval "$as_ac_Header=\$ac_header_preproc"
10375 fi
10376 ac_res=`eval 'as_val=${'$as_ac_Header'}
10377 $as_echo "$as_val"'`
10378 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10379 $as_echo "$ac_res" >&6; }
10380
10381 fi
10382 if test `eval 'as_val=${'$as_ac_Header'}
10383 $as_echo "$as_val"'` = yes; then
10384 cat >>confdefs.h <<_ACEOF 7408 cat >>confdefs.h <<_ACEOF
10385 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10386 _ACEOF 7410 _ACEOF
10387 7411
10388 fi 7412 fi
10389 7413
10390 done 7414 done
10391 7415
10392 7416
7417
7418
7419
7420
7421
7422
10393 for ac_func in getpagesize 7423 for ac_func in getpagesize
10394 do 7424 do :
10395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7425 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10396 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 7426 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10397 $as_echo_n "checking for $ac_func... " >&6; } 7427 cat >>confdefs.h <<_ACEOF
10398 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7428 #define HAVE_GETPAGESIZE 1
7429 _ACEOF
7430
7431 fi
7432 done
7433
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7435 $as_echo_n "checking for working mmap... " >&6; }
7436 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10399 $as_echo_n "(cached) " >&6 7437 $as_echo_n "(cached) " >&6
10400 else 7438 else
10401 cat >conftest.$ac_ext <<_ACEOF 7439 if test "$cross_compiling" = yes; then :
10402 /* confdefs.h. */
10403 _ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10407 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10408 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10409 #define $ac_func innocuous_$ac_func
10410
10411 /* System header to define __stub macros and hopefully few prototypes,
10412 which can conflict with char $ac_func (); below.
10413 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10414 <limits.h> exists even on freestanding compilers. */
10415
10416 #ifdef __STDC__
10417 # include <limits.h>
10418 #else
10419 # include <assert.h>
10420 #endif
10421
10422 #undef $ac_func
10423
10424 /* Override any GCC internal prototype to avoid an error.
10425 Use char because int might match the return type of a GCC
10426 builtin and then its argument prototype would still apply. */
10427 #ifdef __cplusplus
10428 extern "C"
10429 #endif
10430 char $ac_func ();
10431 /* The GNU C library defines this for functions which it implements
10432 to always fail with ENOSYS. Some functions are actually named
10433 something starting with __ and the normal name is an alias. */
10434 #if defined __stub_$ac_func || defined __stub___$ac_func
10435 choke me
10436 #endif
10437
10438 int
10439 main ()
10440 {
10441 return $ac_func ();
10442 ;
10443 return 0;
10444 }
10445 _ACEOF
10446 rm -f conftest.$ac_objext conftest$ac_exeext
10447 if { (ac_try="$ac_link"
10448 case "(($ac_try" in
10449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10450 *) ac_try_echo=$ac_try;;
10451 esac
10452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10453 $as_echo "$ac_try_echo") >&5
10454 (eval "$ac_link") 2>conftest.er1
10455 ac_status=$?
10456 grep -v '^ *+' conftest.er1 >conftest.err
10457 rm -f conftest.er1
10458 cat conftest.err >&5
10459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && {
10461 test -z "$ac_c_werror_flag" ||
10462 test ! -s conftest.err
10463 } && test -s conftest$ac_exeext && {
10464 test "$cross_compiling" = yes ||
10465 $as_test_x conftest$ac_exeext
10466 }; then
10467 eval "$as_ac_var=yes"
10468 else
10469 $as_echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10471
10472 eval "$as_ac_var=no"
10473 fi
10474
10475 rm -rf conftest.dSYM
10476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10477 conftest$ac_exeext conftest.$ac_ext
10478 fi
10479 ac_res=`eval 'as_val=${'$as_ac_var'}
10480 $as_echo "$as_val"'`
10481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10482 $as_echo "$ac_res" >&6; }
10483 if test `eval 'as_val=${'$as_ac_var'}
10484 $as_echo "$as_val"'` = yes; then
10485 cat >>confdefs.h <<_ACEOF
10486 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10487 _ACEOF
10488
10489 fi
10490 done
10491
10492 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10493 $as_echo_n "checking for working mmap... " >&6; }
10494 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10495 $as_echo_n "(cached) " >&6
10496 else
10497 if test "$cross_compiling" = yes; then
10498 ac_cv_func_mmap_fixed_mapped=no 7440 ac_cv_func_mmap_fixed_mapped=no
10499 else 7441 else
10500 cat >conftest.$ac_ext <<_ACEOF 7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10501 /* confdefs.h. */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */ 7443 /* end confdefs.h. */
10506 $ac_includes_default 7444 $ac_includes_default
10507 /* malloc might have been renamed as rpl_malloc. */ 7445 /* malloc might have been renamed as rpl_malloc. */
10508 #undef malloc 7446 #undef malloc
10509 7447
10536 char *malloc (); 7474 char *malloc ();
10537 #endif 7475 #endif
10538 7476
10539 /* This mess was copied from the GNU getpagesize.h. */ 7477 /* This mess was copied from the GNU getpagesize.h. */
10540 #ifndef HAVE_GETPAGESIZE 7478 #ifndef HAVE_GETPAGESIZE
10541 /* Assume that all systems that can run configure have sys/param.h. */
10542 # ifndef HAVE_SYS_PARAM_H
10543 # define HAVE_SYS_PARAM_H 1
10544 # endif
10545
10546 # ifdef _SC_PAGESIZE 7479 # ifdef _SC_PAGESIZE
10547 # define getpagesize() sysconf(_SC_PAGESIZE) 7480 # define getpagesize() sysconf(_SC_PAGESIZE)
10548 # else /* no _SC_PAGESIZE */ 7481 # else /* no _SC_PAGESIZE */
10549 # ifdef HAVE_SYS_PARAM_H 7482 # ifdef HAVE_SYS_PARAM_H
10550 # include <sys/param.h> 7483 # include <sys/param.h>
10575 7508
10576 int 7509 int
10577 main () 7510 main ()
10578 { 7511 {
10579 char *data, *data2, *data3; 7512 char *data, *data2, *data3;
7513 const char *cdata2;
10580 int i, pagesize; 7514 int i, pagesize;
10581 int fd; 7515 int fd, fd2;
10582 7516
10583 pagesize = getpagesize (); 7517 pagesize = getpagesize ();
10584 7518
10585 /* First, make a file with some known garbage in it. */ 7519 /* First, make a file with some known garbage in it. */
10586 data = (char *) malloc (pagesize); 7520 data = (char *) malloc (pagesize);
10589 for (i = 0; i < pagesize; ++i) 7523 for (i = 0; i < pagesize; ++i)
10590 *(data + i) = rand (); 7524 *(data + i) = rand ();
10591 umask (0); 7525 umask (0);
10592 fd = creat ("conftest.mmap", 0600); 7526 fd = creat ("conftest.mmap", 0600);
10593 if (fd < 0) 7527 if (fd < 0)
10594 return 1; 7528 return 2;
10595 if (write (fd, data, pagesize) != pagesize) 7529 if (write (fd, data, pagesize) != pagesize)
10596 return 1; 7530 return 3;
10597 close (fd); 7531 close (fd);
7532
7533 /* Next, check that the tail of a page is zero-filled. File must have
7534 non-zero length, otherwise we risk SIGBUS for entire page. */
7535 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7536 if (fd2 < 0)
7537 return 4;
7538 cdata2 = "";
7539 if (write (fd2, cdata2, 1) != 1)
7540 return 5;
7541 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7542 if (data2 == MAP_FAILED)
7543 return 6;
7544 for (i = 0; i < pagesize; ++i)
7545 if (*(data2 + i))
7546 return 7;
7547 close (fd2);
7548 if (munmap (data2, pagesize))
7549 return 8;
10598 7550
10599 /* Next, try to mmap the file at a fixed address which already has 7551 /* Next, try to mmap the file at a fixed address which already has
10600 something else allocated at it. If we can, also make sure that 7552 something else allocated at it. If we can, also make sure that
10601 we see the same garbage. */ 7553 we see the same garbage. */
10602 fd = open ("conftest.mmap", O_RDWR); 7554 fd = open ("conftest.mmap", O_RDWR);
10603 if (fd < 0) 7555 if (fd < 0)
10604 return 1; 7556 return 9;
10605 data2 = (char *) malloc (2 * pagesize);
10606 if (!data2)
10607 return 1;
10608 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10609 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 7557 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10610 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 7558 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10611 return 1; 7559 return 10;
10612 for (i = 0; i < pagesize; ++i) 7560 for (i = 0; i < pagesize; ++i)
10613 if (*(data + i) != *(data2 + i)) 7561 if (*(data + i) != *(data2 + i))
10614 return 1; 7562 return 11;
10615 7563
10616 /* Finally, make sure that changes to the mapped area do not 7564 /* Finally, make sure that changes to the mapped area do not
10617 percolate back to the file as seen by read(). (This is a bug on 7565 percolate back to the file as seen by read(). (This is a bug on
10618 some variants of i386 svr4.0.) */ 7566 some variants of i386 svr4.0.) */
10619 for (i = 0; i < pagesize; ++i) 7567 for (i = 0; i < pagesize; ++i)
10620 *(data2 + i) = *(data2 + i) + 1; 7568 *(data2 + i) = *(data2 + i) + 1;
10621 data3 = (char *) malloc (pagesize); 7569 data3 = (char *) malloc (pagesize);
10622 if (!data3) 7570 if (!data3)
10623 return 1; 7571 return 12;
10624 if (read (fd, data3, pagesize) != pagesize) 7572 if (read (fd, data3, pagesize) != pagesize)
10625 return 1; 7573 return 13;
10626 for (i = 0; i < pagesize; ++i) 7574 for (i = 0; i < pagesize; ++i)
10627 if (*(data + i) != *(data3 + i)) 7575 if (*(data + i) != *(data3 + i))
10628 return 1; 7576 return 14;
10629 close (fd); 7577 close (fd);
10630 return 0; 7578 return 0;
10631 } 7579 }
10632 _ACEOF 7580 _ACEOF
10633 rm -f conftest$ac_exeext 7581 if ac_fn_c_try_run "$LINENO"; then :
10634 if { (ac_try="$ac_link"
10635 case "(($ac_try" in
10636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10637 *) ac_try_echo=$ac_try;;
10638 esac
10639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10640 $as_echo "$ac_try_echo") >&5
10641 (eval "$ac_link") 2>&5
10642 ac_status=$?
10643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10644 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10645 { (case "(($ac_try" in
10646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10648 esac
10649 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10650 $as_echo "$ac_try_echo") >&5
10651 (eval "$ac_try") 2>&5
10652 ac_status=$?
10653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10654 (exit $ac_status); }; }; then
10655 ac_cv_func_mmap_fixed_mapped=yes 7582 ac_cv_func_mmap_fixed_mapped=yes
10656 else 7583 else
10657 $as_echo "$as_me: program exited with status $ac_status" >&5 7584 ac_cv_func_mmap_fixed_mapped=no
10658 $as_echo "$as_me: failed program was:" >&5 7585 fi
10659 sed 's/^/| /' conftest.$ac_ext >&5 7586 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10660 7587 conftest.$ac_objext conftest.beam conftest.$ac_ext
10661 ( exit $ac_status ) 7588 fi
10662 ac_cv_func_mmap_fixed_mapped=no 7589
10663 fi 7590 fi
10664 rm -rf conftest.dSYM 7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10666 fi
10667
10668
10669 fi
10670 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10671 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 7592 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10672 if test $ac_cv_func_mmap_fixed_mapped = yes; then 7593 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10673 7594
10674 cat >>confdefs.h <<\_ACEOF 7595 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10675 #define HAVE_MMAP 1 7596
10676 _ACEOF 7597 fi
10677 7598 rm -f conftest.mmap conftest.txt
10678 fi
10679 rm -f conftest.mmap
10680 7599
10681 if test $use_mmap_for_buffers = yes; then 7600 if test $use_mmap_for_buffers = yes; then
10682 REL_ALLOC=no 7601 REL_ALLOC=no
10683 fi 7602 fi
10684 7603
10685 LIBS="$libsrc_libs $LIBS" 7604 LIBS="$libsrc_libs $LIBS"
10686 7605
10687 7606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10688 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10689 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 7607 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10690 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 7608 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10691 $as_echo_n "(cached) " >&6 7609 $as_echo_n "(cached) " >&6
10692 else 7610 else
10693 ac_check_lib_save_LIBS=$LIBS 7611 ac_check_lib_save_LIBS=$LIBS
10694 LIBS="-ldnet $LIBS" 7612 LIBS="-ldnet $LIBS"
10695 cat >conftest.$ac_ext <<_ACEOF 7613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10696 /* confdefs.h. */
10697 _ACEOF
10698 cat confdefs.h >>conftest.$ac_ext
10699 cat >>conftest.$ac_ext <<_ACEOF
10700 /* end confdefs.h. */ 7614 /* end confdefs.h. */
10701 7615
10702 /* Override any GCC internal prototype to avoid an error. 7616 /* Override any GCC internal prototype to avoid an error.
10703 Use char because int might match the return type of a GCC 7617 Use char because int might match the return type of a GCC
10704 builtin and then its argument prototype would still apply. */ 7618 builtin and then its argument prototype would still apply. */
10712 return dnet_ntoa (); 7626 return dnet_ntoa ();
10713 ; 7627 ;
10714 return 0; 7628 return 0;
10715 } 7629 }
10716 _ACEOF 7630 _ACEOF
10717 rm -f conftest.$ac_objext conftest$ac_exeext 7631 if ac_fn_c_try_link "$LINENO"; then :
10718 if { (ac_try="$ac_link"
10719 case "(($ac_try" in
10720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10721 *) ac_try_echo=$ac_try;;
10722 esac
10723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10724 $as_echo "$ac_try_echo") >&5
10725 (eval "$ac_link") 2>conftest.er1
10726 ac_status=$?
10727 grep -v '^ *+' conftest.er1 >conftest.err
10728 rm -f conftest.er1
10729 cat conftest.err >&5
10730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10731 (exit $ac_status); } && {
10732 test -z "$ac_c_werror_flag" ||
10733 test ! -s conftest.err
10734 } && test -s conftest$ac_exeext && {
10735 test "$cross_compiling" = yes ||
10736 $as_test_x conftest$ac_exeext
10737 }; then
10738 ac_cv_lib_dnet_dnet_ntoa=yes 7632 ac_cv_lib_dnet_dnet_ntoa=yes
10739 else 7633 else
10740 $as_echo "$as_me: failed program was:" >&5 7634 ac_cv_lib_dnet_dnet_ntoa=no
10741 sed 's/^/| /' conftest.$ac_ext >&5 7635 fi
10742 7636 rm -f core conftest.err conftest.$ac_objext \
10743 ac_cv_lib_dnet_dnet_ntoa=no 7637 conftest$ac_exeext conftest.$ac_ext
10744 fi
10745
10746 rm -rf conftest.dSYM
10747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10748 conftest$ac_exeext conftest.$ac_ext
10749 LIBS=$ac_check_lib_save_LIBS 7638 LIBS=$ac_check_lib_save_LIBS
10750 fi 7639 fi
10751 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10752 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 7641 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10753 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 7642 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10754 cat >>confdefs.h <<_ACEOF 7643 cat >>confdefs.h <<_ACEOF
10755 #define HAVE_LIBDNET 1 7644 #define HAVE_LIBDNET 1
10756 _ACEOF 7645 _ACEOF
10757 7646
10758 LIBS="-ldnet $LIBS" 7647 LIBS="-ldnet $LIBS"
10759 7648
10760 fi 7649 fi
10761 7650
10762 7651
10763 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 7652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10764 $as_echo_n "checking for main in -lXbsd... " >&6; } 7653 $as_echo_n "checking for main in -lXbsd... " >&6; }
10765 if test "${ac_cv_lib_Xbsd_main+set}" = set; then 7654 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10766 $as_echo_n "(cached) " >&6 7655 $as_echo_n "(cached) " >&6
10767 else 7656 else
10768 ac_check_lib_save_LIBS=$LIBS 7657 ac_check_lib_save_LIBS=$LIBS
10769 LIBS="-lXbsd $LIBS" 7658 LIBS="-lXbsd $LIBS"
10770 cat >conftest.$ac_ext <<_ACEOF 7659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10771 /* confdefs.h. */
10772 _ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */ 7660 /* end confdefs.h. */
10776 7661
10777 7662
10778 int 7663 int
10779 main () 7664 main ()
10781 return main (); 7666 return main ();
10782 ; 7667 ;
10783 return 0; 7668 return 0;
10784 } 7669 }
10785 _ACEOF 7670 _ACEOF
10786 rm -f conftest.$ac_objext conftest$ac_exeext 7671 if ac_fn_c_try_link "$LINENO"; then :
10787 if { (ac_try="$ac_link"
10788 case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791 esac
10792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10793 $as_echo "$ac_try_echo") >&5
10794 (eval "$ac_link") 2>conftest.er1
10795 ac_status=$?
10796 grep -v '^ *+' conftest.er1 >conftest.err
10797 rm -f conftest.er1
10798 cat conftest.err >&5
10799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10800 (exit $ac_status); } && {
10801 test -z "$ac_c_werror_flag" ||
10802 test ! -s conftest.err
10803 } && test -s conftest$ac_exeext && {
10804 test "$cross_compiling" = yes ||
10805 $as_test_x conftest$ac_exeext
10806 }; then
10807 ac_cv_lib_Xbsd_main=yes 7672 ac_cv_lib_Xbsd_main=yes
10808 else 7673 else
10809 $as_echo "$as_me: failed program was:" >&5 7674 ac_cv_lib_Xbsd_main=no
10810 sed 's/^/| /' conftest.$ac_ext >&5 7675 fi
10811 7676 rm -f core conftest.err conftest.$ac_objext \
10812 ac_cv_lib_Xbsd_main=no 7677 conftest$ac_exeext conftest.$ac_ext
10813 fi
10814
10815 rm -rf conftest.dSYM
10816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10817 conftest$ac_exeext conftest.$ac_ext
10818 LIBS=$ac_check_lib_save_LIBS 7678 LIBS=$ac_check_lib_save_LIBS
10819 fi 7679 fi
10820 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10821 $as_echo "$ac_cv_lib_Xbsd_main" >&6; } 7681 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10822 if test $ac_cv_lib_Xbsd_main = yes; then 7682 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10823 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" 7683 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10824 fi 7684 fi
10825 7685
10826 7686
10827 7687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10828 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10829 $as_echo_n "checking for cma_open in -lpthreads... " >&6; } 7688 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10830 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then 7689 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10831 $as_echo_n "(cached) " >&6 7690 $as_echo_n "(cached) " >&6
10832 else 7691 else
10833 ac_check_lib_save_LIBS=$LIBS 7692 ac_check_lib_save_LIBS=$LIBS
10834 LIBS="-lpthreads $LIBS" 7693 LIBS="-lpthreads $LIBS"
10835 cat >conftest.$ac_ext <<_ACEOF 7694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* confdefs.h. */
10837 _ACEOF
10838 cat confdefs.h >>conftest.$ac_ext
10839 cat >>conftest.$ac_ext <<_ACEOF
10840 /* end confdefs.h. */ 7695 /* end confdefs.h. */
10841 7696
10842 /* Override any GCC internal prototype to avoid an error. 7697 /* Override any GCC internal prototype to avoid an error.
10843 Use char because int might match the return type of a GCC 7698 Use char because int might match the return type of a GCC
10844 builtin and then its argument prototype would still apply. */ 7699 builtin and then its argument prototype would still apply. */
10852 return cma_open (); 7707 return cma_open ();
10853 ; 7708 ;
10854 return 0; 7709 return 0;
10855 } 7710 }
10856 _ACEOF 7711 _ACEOF
10857 rm -f conftest.$ac_objext conftest$ac_exeext 7712 if ac_fn_c_try_link "$LINENO"; then :
10858 if { (ac_try="$ac_link"
10859 case "(($ac_try" in
10860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10861 *) ac_try_echo=$ac_try;;
10862 esac
10863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10864 $as_echo "$ac_try_echo") >&5
10865 (eval "$ac_link") 2>conftest.er1
10866 ac_status=$?
10867 grep -v '^ *+' conftest.er1 >conftest.err
10868 rm -f conftest.er1
10869 cat conftest.err >&5
10870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10871 (exit $ac_status); } && {
10872 test -z "$ac_c_werror_flag" ||
10873 test ! -s conftest.err
10874 } && test -s conftest$ac_exeext && {
10875 test "$cross_compiling" = yes ||
10876 $as_test_x conftest$ac_exeext
10877 }; then
10878 ac_cv_lib_pthreads_cma_open=yes 7713 ac_cv_lib_pthreads_cma_open=yes
10879 else 7714 else
10880 $as_echo "$as_me: failed program was:" >&5 7715 ac_cv_lib_pthreads_cma_open=no
10881 sed 's/^/| /' conftest.$ac_ext >&5 7716 fi
10882 7717 rm -f core conftest.err conftest.$ac_objext \
10883 ac_cv_lib_pthreads_cma_open=no 7718 conftest$ac_exeext conftest.$ac_ext
10884 fi
10885
10886 rm -rf conftest.dSYM
10887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10888 conftest$ac_exeext conftest.$ac_ext
10889 LIBS=$ac_check_lib_save_LIBS 7719 LIBS=$ac_check_lib_save_LIBS
10890 fi 7720 fi
10891 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10892 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } 7722 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10893 if test $ac_cv_lib_pthreads_cma_open = yes; then 7723 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10894 cat >>confdefs.h <<_ACEOF 7724 cat >>confdefs.h <<_ACEOF
10895 #define HAVE_LIBPTHREADS 1 7725 #define HAVE_LIBPTHREADS 1
10896 _ACEOF 7726 _ACEOF
10897 7727
10898 LIBS="-lpthreads $LIBS" 7728 LIBS="-lpthreads $LIBS"
10901 7731
10902 7732
10903 7733
10904 case ${host_os} in 7734 case ${host_os} in
10905 aix*) 7735 aix*)
10906 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 7736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10907 $as_echo_n "checking for -bbigtoc option... " >&6; } 7737 $as_echo_n "checking for -bbigtoc option... " >&6; }
10908 if test "${gdb_cv_bigtoc+set}" = set; then 7738 if test "${gdb_cv_bigtoc+set}" = set; then :
10909 $as_echo_n "(cached) " >&6 7739 $as_echo_n "(cached) " >&6
10910 else 7740 else
10911 7741
10912 case $GCC in 7742 case $GCC in
10913 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; 7743 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10914 *) gdb_cv_bigtoc=-bbigtoc ;; 7744 *) gdb_cv_bigtoc=-bbigtoc ;;
10915 esac 7745 esac
10916 7746
10917 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc 7747 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10918 cat >conftest.$ac_ext <<_ACEOF 7748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10919 /* confdefs.h. */
10920 _ACEOF
10921 cat confdefs.h >>conftest.$ac_ext
10922 cat >>conftest.$ac_ext <<_ACEOF
10923 /* end confdefs.h. */ 7749 /* end confdefs.h. */
10924 7750
10925 int 7751 int
10926 main () 7752 main ()
10927 { 7753 {
10928 int i; 7754 int i;
10929 ; 7755 ;
10930 return 0; 7756 return 0;
10931 } 7757 }
10932 _ACEOF 7758 _ACEOF
10933 rm -f conftest.$ac_objext conftest$ac_exeext 7759 if ac_fn_c_try_link "$LINENO"; then :
10934 if { (ac_try="$ac_link" 7760
10935 case "(($ac_try" in 7761 else
10936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7762 gdb_cv_bigtoc=
10937 *) ac_try_echo=$ac_try;; 7763 fi
10938 esac 7764 rm -f core conftest.err conftest.$ac_objext \
10939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7765 conftest$ac_exeext conftest.$ac_ext
10940 $as_echo "$ac_try_echo") >&5 7766
10941 (eval "$ac_link") 2>conftest.er1 7767 fi
10942 ac_status=$? 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10943 grep -v '^ *+' conftest.er1 >conftest.err
10944 rm -f conftest.er1
10945 cat conftest.err >&5
10946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10947 (exit $ac_status); } && {
10948 test -z "$ac_c_werror_flag" ||
10949 test ! -s conftest.err
10950 } && test -s conftest$ac_exeext && {
10951 test "$cross_compiling" = yes ||
10952 $as_test_x conftest$ac_exeext
10953 }; then
10954 :
10955 else
10956 $as_echo "$as_me: failed program was:" >&5
10957 sed 's/^/| /' conftest.$ac_ext >&5
10958
10959 gdb_cv_bigtoc=
10960 fi
10961
10962 rm -rf conftest.dSYM
10963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10964 conftest$ac_exeext conftest.$ac_ext
10965
10966 fi
10967 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10968 $as_echo "$gdb_cv_bigtoc" >&6; } 7769 $as_echo "$gdb_cv_bigtoc" >&6; }
10969 ;; 7770 ;;
10970 esac 7771 esac
10971 7772
10972 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets 7773 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10990 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH 7791 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10991 export LD_RUN_PATH 7792 export LD_RUN_PATH
10992 fi 7793 fi
10993 7794
10994 if test "${opsys}" = "gnu-linux"; then 7795 if test "${opsys}" = "gnu-linux"; then
10995 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
10996 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } 7797 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
10997 cat >conftest.$ac_ext <<_ACEOF 7798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10998 /* confdefs.h. */
10999 _ACEOF
11000 cat confdefs.h >>conftest.$ac_ext
11001 cat >>conftest.$ac_ext <<_ACEOF
11002 /* end confdefs.h. */ 7799 /* end confdefs.h. */
11003 7800
11004 int 7801 int
11005 main () 7802 main ()
11006 { 7803 {
11007 XOpenDisplay ("foo"); 7804 XOpenDisplay ("foo");
11008 ; 7805 ;
11009 return 0; 7806 return 0;
11010 } 7807 }
11011 _ACEOF 7808 _ACEOF
11012 rm -f conftest.$ac_objext conftest$ac_exeext 7809 if ac_fn_c_try_link "$LINENO"; then :
11013 if { (ac_try="$ac_link"
11014 case "(($ac_try" in
11015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016 *) ac_try_echo=$ac_try;;
11017 esac
11018 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11019 $as_echo "$ac_try_echo") >&5
11020 (eval "$ac_link") 2>conftest.er1
11021 ac_status=$?
11022 grep -v '^ *+' conftest.er1 >conftest.err
11023 rm -f conftest.er1
11024 cat conftest.err >&5
11025 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11026 (exit $ac_status); } && {
11027 test -z "$ac_c_werror_flag" ||
11028 test ! -s conftest.err
11029 } && test -s conftest$ac_exeext && {
11030 test "$cross_compiling" = yes ||
11031 $as_test_x conftest$ac_exeext
11032 }; then
11033 xlinux_first_failure=no 7810 xlinux_first_failure=no
11034 else 7811 else
11035 $as_echo "$as_me: failed program was:" >&5 7812 xlinux_first_failure=yes
11036 sed 's/^/| /' conftest.$ac_ext >&5 7813 fi
11037 7814 rm -f core conftest.err conftest.$ac_objext \
11038 xlinux_first_failure=yes 7815 conftest$ac_exeext conftest.$ac_ext
11039 fi
11040
11041 rm -rf conftest.dSYM
11042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11043 conftest$ac_exeext conftest.$ac_ext
11044 if test "${xlinux_first_failure}" = "yes"; then 7816 if test "${xlinux_first_failure}" = "yes"; then
11045 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" 7817 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11046 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" 7818 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11047 OLD_CPPFLAGS="$CPPFLAGS" 7819 OLD_CPPFLAGS="$CPPFLAGS"
11048 OLD_LIBS="$LIBS" 7820 OLD_LIBS="$LIBS"
11049 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 7821 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11050 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 7822 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11051 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 7823 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11052 LIBS="$LIBS -b i486-linuxaout" 7824 LIBS="$LIBS -b i486-linuxaout"
11053 cat >conftest.$ac_ext <<_ACEOF 7825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* confdefs.h. */
11055 _ACEOF
11056 cat confdefs.h >>conftest.$ac_ext
11057 cat >>conftest.$ac_ext <<_ACEOF
11058 /* end confdefs.h. */ 7826 /* end confdefs.h. */
11059 7827
11060 int 7828 int
11061 main () 7829 main ()
11062 { 7830 {
11063 XOpenDisplay ("foo"); 7831 XOpenDisplay ("foo");
11064 ; 7832 ;
11065 return 0; 7833 return 0;
11066 } 7834 }
11067 _ACEOF 7835 _ACEOF
11068 rm -f conftest.$ac_objext conftest$ac_exeext 7836 if ac_fn_c_try_link "$LINENO"; then :
11069 if { (ac_try="$ac_link"
11070 case "(($ac_try" in
11071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11072 *) ac_try_echo=$ac_try;;
11073 esac
11074 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11075 $as_echo "$ac_try_echo") >&5
11076 (eval "$ac_link") 2>conftest.er1
11077 ac_status=$?
11078 grep -v '^ *+' conftest.er1 >conftest.err
11079 rm -f conftest.er1
11080 cat conftest.err >&5
11081 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11082 (exit $ac_status); } && {
11083 test -z "$ac_c_werror_flag" ||
11084 test ! -s conftest.err
11085 } && test -s conftest$ac_exeext && {
11086 test "$cross_compiling" = yes ||
11087 $as_test_x conftest$ac_exeext
11088 }; then
11089 xlinux_second_failure=no 7837 xlinux_second_failure=no
11090 else 7838 else
11091 $as_echo "$as_me: failed program was:" >&5 7839 xlinux_second_failure=yes
11092 sed 's/^/| /' conftest.$ac_ext >&5 7840 fi
11093 7841 rm -f core conftest.err conftest.$ac_objext \
11094 xlinux_second_failure=yes 7842 conftest$ac_exeext conftest.$ac_ext
11095 fi
11096
11097 rm -rf conftest.dSYM
11098 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11099 conftest$ac_exeext conftest.$ac_ext
11100 if test "${xlinux_second_failure}" = "yes"; then 7843 if test "${xlinux_second_failure}" = "yes"; then
11101 # If we get the same failure with -b, there is no use adding -b. 7844 # If we get the same failure with -b, there is no use adding -b.
11102 # So take it out. This plays safe. 7845 # So take it out. This plays safe.
11103 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" 7846 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11104 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" 7847 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11105 CPPFLAGS="$OLD_CPPFLAGS" 7848 CPPFLAGS="$OLD_CPPFLAGS"
11106 LIBS="$OLD_LIBS" 7849 LIBS="$OLD_LIBS"
11107 { $as_echo "$as_me:$LINENO: result: no" >&5 7850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; } 7851 $as_echo "no" >&6; }
11109 else 7852 else
11110 { $as_echo "$as_me:$LINENO: result: yes" >&5 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11111 $as_echo "yes" >&6; } 7854 $as_echo "yes" >&6; }
11112 fi 7855 fi
11113 else 7856 else
11114 { $as_echo "$as_me:$LINENO: result: no" >&5 7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11115 $as_echo "no" >&6; } 7858 $as_echo "no" >&6; }
11116 fi 7859 fi
11117 fi 7860 fi
11118 7861
11119 # Reportedly, some broken Solaris systems have XKBlib.h but are missing 7862 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11120 # header files included from there. 7863 # header files included from there.
11121 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5 7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11122 $as_echo_n "checking for Xkb... " >&6; } 7865 $as_echo_n "checking for Xkb... " >&6; }
11123 cat >conftest.$ac_ext <<_ACEOF 7866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124 /* confdefs.h. */
11125 _ACEOF
11126 cat confdefs.h >>conftest.$ac_ext
11127 cat >>conftest.$ac_ext <<_ACEOF
11128 /* end confdefs.h. */ 7867 /* end confdefs.h. */
11129 #include <X11/Xlib.h> 7868 #include <X11/Xlib.h>
11130 #include <X11/XKBlib.h> 7869 #include <X11/XKBlib.h>
11131 int 7870 int
11132 main () 7871 main ()
11134 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); 7873 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11135 ; 7874 ;
11136 return 0; 7875 return 0;
11137 } 7876 }
11138 _ACEOF 7877 _ACEOF
11139 rm -f conftest.$ac_objext conftest$ac_exeext 7878 if ac_fn_c_try_link "$LINENO"; then :
11140 if { (ac_try="$ac_link"
11141 case "(($ac_try" in
11142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11143 *) ac_try_echo=$ac_try;;
11144 esac
11145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11146 $as_echo "$ac_try_echo") >&5
11147 (eval "$ac_link") 2>conftest.er1
11148 ac_status=$?
11149 grep -v '^ *+' conftest.er1 >conftest.err
11150 rm -f conftest.er1
11151 cat conftest.err >&5
11152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11153 (exit $ac_status); } && {
11154 test -z "$ac_c_werror_flag" ||
11155 test ! -s conftest.err
11156 } && test -s conftest$ac_exeext && {
11157 test "$cross_compiling" = yes ||
11158 $as_test_x conftest$ac_exeext
11159 }; then
11160 emacs_xkb=yes 7879 emacs_xkb=yes
11161 else 7880 else
11162 $as_echo "$as_me: failed program was:" >&5 7881 emacs_xkb=no
11163 sed 's/^/| /' conftest.$ac_ext >&5 7882 fi
11164 7883 rm -f core conftest.err conftest.$ac_objext \
11165 emacs_xkb=no 7884 conftest$ac_exeext conftest.$ac_ext
11166 fi 7885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11167
11168 rm -rf conftest.dSYM
11169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11170 conftest$ac_exeext conftest.$ac_ext
11171 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11172 $as_echo "$emacs_xkb" >&6; } 7886 $as_echo "$emacs_xkb" >&6; }
11173 if test $emacs_xkb = yes; then 7887 if test $emacs_xkb = yes; then
11174 7888
11175 cat >>confdefs.h <<\_ACEOF 7889 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
11176 #define HAVE_XKBGETKEYBOARD 1
11177 _ACEOF
11178 7890
11179 fi 7891 fi
11180 7892
11181 7893 for ac_func in XrmSetDatabase XScreenResourceString \
11182
11183
11184
11185 for ac_func in XrmSetDatabase XScreenResourceString \
11186 XScreenNumberOfScreen XSetWMProtocols 7894 XScreenNumberOfScreen XSetWMProtocols
11187 do 7895 do :
11188 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7896 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11189 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 7897 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11190 $as_echo_n "checking for $ac_func... " >&6; } 7898 eval as_val=\$$as_ac_var
11191 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7899 if test "x$as_val" = x""yes; then :
11192 $as_echo_n "(cached) " >&6
11193 else
11194 cat >conftest.$ac_ext <<_ACEOF
11195 /* confdefs.h. */
11196 _ACEOF
11197 cat confdefs.h >>conftest.$ac_ext
11198 cat >>conftest.$ac_ext <<_ACEOF
11199 /* end confdefs.h. */
11200 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11201 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11202 #define $ac_func innocuous_$ac_func
11203
11204 /* System header to define __stub macros and hopefully few prototypes,
11205 which can conflict with char $ac_func (); below.
11206 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11207 <limits.h> exists even on freestanding compilers. */
11208
11209 #ifdef __STDC__
11210 # include <limits.h>
11211 #else
11212 # include <assert.h>
11213 #endif
11214
11215 #undef $ac_func
11216
11217 /* Override any GCC internal prototype to avoid an error.
11218 Use char because int might match the return type of a GCC
11219 builtin and then its argument prototype would still apply. */
11220 #ifdef __cplusplus
11221 extern "C"
11222 #endif
11223 char $ac_func ();
11224 /* The GNU C library defines this for functions which it implements
11225 to always fail with ENOSYS. Some functions are actually named
11226 something starting with __ and the normal name is an alias. */
11227 #if defined __stub_$ac_func || defined __stub___$ac_func
11228 choke me
11229 #endif
11230
11231 int
11232 main ()
11233 {
11234 return $ac_func ();
11235 ;
11236 return 0;
11237 }
11238 _ACEOF
11239 rm -f conftest.$ac_objext conftest$ac_exeext
11240 if { (ac_try="$ac_link"
11241 case "(($ac_try" in
11242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11243 *) ac_try_echo=$ac_try;;
11244 esac
11245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11246 $as_echo "$ac_try_echo") >&5
11247 (eval "$ac_link") 2>conftest.er1
11248 ac_status=$?
11249 grep -v '^ *+' conftest.er1 >conftest.err
11250 rm -f conftest.er1
11251 cat conftest.err >&5
11252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11253 (exit $ac_status); } && {
11254 test -z "$ac_c_werror_flag" ||
11255 test ! -s conftest.err
11256 } && test -s conftest$ac_exeext && {
11257 test "$cross_compiling" = yes ||
11258 $as_test_x conftest$ac_exeext
11259 }; then
11260 eval "$as_ac_var=yes"
11261 else
11262 $as_echo "$as_me: failed program was:" >&5
11263 sed 's/^/| /' conftest.$ac_ext >&5
11264
11265 eval "$as_ac_var=no"
11266 fi
11267
11268 rm -rf conftest.dSYM
11269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11270 conftest$ac_exeext conftest.$ac_ext
11271 fi
11272 ac_res=`eval 'as_val=${'$as_ac_var'}
11273 $as_echo "$as_val"'`
11274 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11275 $as_echo "$ac_res" >&6; }
11276 if test `eval 'as_val=${'$as_ac_var'}
11277 $as_echo "$as_val"'` = yes; then
11278 cat >>confdefs.h <<_ACEOF 7900 cat >>confdefs.h <<_ACEOF
11279 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7901 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11280 _ACEOF 7902 _ACEOF
11281 7903
11282 fi 7904 fi
11283 done 7905 done
11284 7906
11285 fi 7907 fi
11286 7908
11287 if test "${window_system}" = "x11"; then 7909 if test "${window_system}" = "x11"; then
11288 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5 7910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11289 $as_echo_n "checking X11 version 6... " >&6; } 7911 $as_echo_n "checking X11 version 6... " >&6; }
11290 if test "${emacs_cv_x11_version_6+set}" = set; then 7912 if test "${emacs_cv_x11_version_6+set}" = set; then :
11291 $as_echo_n "(cached) " >&6 7913 $as_echo_n "(cached) " >&6
11292 else 7914 else
11293 cat >conftest.$ac_ext <<_ACEOF 7915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11294 /* confdefs.h. */
11295 _ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */ 7916 /* end confdefs.h. */
11299 #include <X11/Xlib.h> 7917 #include <X11/Xlib.h>
11300 int 7918 int
11301 main () 7919 main ()
11302 { 7920 {
11306 7924
11307 ; 7925 ;
11308 return 0; 7926 return 0;
11309 } 7927 }
11310 _ACEOF 7928 _ACEOF
11311 rm -f conftest.$ac_objext conftest$ac_exeext 7929 if ac_fn_c_try_link "$LINENO"; then :
11312 if { (ac_try="$ac_link"
11313 case "(($ac_try" in
11314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11315 *) ac_try_echo=$ac_try;;
11316 esac
11317 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11318 $as_echo "$ac_try_echo") >&5
11319 (eval "$ac_link") 2>conftest.er1
11320 ac_status=$?
11321 grep -v '^ *+' conftest.er1 >conftest.err
11322 rm -f conftest.er1
11323 cat conftest.err >&5
11324 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11325 (exit $ac_status); } && {
11326 test -z "$ac_c_werror_flag" ||
11327 test ! -s conftest.err
11328 } && test -s conftest$ac_exeext && {
11329 test "$cross_compiling" = yes ||
11330 $as_test_x conftest$ac_exeext
11331 }; then
11332 emacs_cv_x11_version_6=yes 7930 emacs_cv_x11_version_6=yes
11333 else 7931 else
11334 $as_echo "$as_me: failed program was:" >&5 7932 emacs_cv_x11_version_6=no
11335 sed 's/^/| /' conftest.$ac_ext >&5 7933 fi
11336 7934 rm -f core conftest.err conftest.$ac_objext \
11337 emacs_cv_x11_version_6=no 7935 conftest$ac_exeext conftest.$ac_ext
11338 fi
11339
11340 rm -rf conftest.dSYM
11341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11342 conftest$ac_exeext conftest.$ac_ext
11343 fi 7936 fi
11344 7937
11345 if test $emacs_cv_x11_version_6 = yes; then 7938 if test $emacs_cv_x11_version_6 = yes; then
11346 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5 7939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11347 $as_echo "6 or newer" >&6; } 7940 $as_echo "6 or newer" >&6; }
11348 7941
11349 cat >>confdefs.h <<\_ACEOF 7942 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11350 #define HAVE_X11R6 1
11351 _ACEOF
11352 7943
11353 else 7944 else
11354 { $as_echo "$as_me:$LINENO: result: before 6" >&5 7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11355 $as_echo "before 6" >&6; } 7946 $as_echo "before 6" >&6; }
11356 fi 7947 fi
11357 fi 7948 fi
11358 7949
11359 7950
11367 7958
11368 succeeded=no 7959 succeeded=no
11369 7960
11370 # Extract the first word of "pkg-config", so it can be a program name with args. 7961 # Extract the first word of "pkg-config", so it can be a program name with args.
11371 set dummy pkg-config; ac_word=$2 7962 set dummy pkg-config; ac_word=$2
11372 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11373 $as_echo_n "checking for $ac_word... " >&6; } 7964 $as_echo_n "checking for $ac_word... " >&6; }
11374 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 7965 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11375 $as_echo_n "(cached) " >&6 7966 $as_echo_n "(cached) " >&6
11376 else 7967 else
11377 case $PKG_CONFIG in 7968 case $PKG_CONFIG in
11378 [\\/]* | ?:[\\/]*) 7969 [\\/]* | ?:[\\/]*)
11379 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 7970 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11383 for as_dir in $PATH 7974 for as_dir in $PATH
11384 do 7975 do
11385 IFS=$as_save_IFS 7976 IFS=$as_save_IFS
11386 test -z "$as_dir" && as_dir=. 7977 test -z "$as_dir" && as_dir=.
11387 for ac_exec_ext in '' $ac_executable_extensions; do 7978 for ac_exec_ext in '' $ac_executable_extensions; do
11388 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11389 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 7980 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11390 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11391 break 2 7982 break 2
11392 fi 7983 fi
11393 done 7984 done
11394 done 7985 done
11395 IFS=$as_save_IFS 7986 IFS=$as_save_IFS
11396 7987
11397 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 7988 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11398 ;; 7989 ;;
11399 esac 7990 esac
11400 fi 7991 fi
11401 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 7992 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11402 if test -n "$PKG_CONFIG"; then 7993 if test -n "$PKG_CONFIG"; then
11403 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11404 $as_echo "$PKG_CONFIG" >&6; } 7995 $as_echo "$PKG_CONFIG" >&6; }
11405 else 7996 else
11406 { $as_echo "$as_me:$LINENO: result: no" >&5 7997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11407 $as_echo "no" >&6; } 7998 $as_echo "no" >&6; }
11408 fi 7999 fi
11409 8000
11410 8001
11411 8002
11412 if test "$PKG_CONFIG" = "no" ; then 8003 if test "$PKG_CONFIG" = "no" ; then
11413 : 8004 :
11414 else 8005 else
11415 PKG_CONFIG_MIN_VERSION=0.9.0 8006 PKG_CONFIG_MIN_VERSION=0.9.0
11416 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 8007 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11417 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11418 $as_echo_n "checking for $RSVG_MODULE... " >&6; } 8009 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11419 8010
11420 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then 8011 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11421 { $as_echo "$as_me:$LINENO: result: yes" >&5 8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11422 $as_echo "yes" >&6; } 8013 $as_echo "yes" >&6; }
11423 succeeded=yes 8014 succeeded=yes
11424 8015
11425 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5 8016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
11426 $as_echo_n "checking RSVG_CFLAGS... " >&6; } 8017 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11427 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` 8018 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11428 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5 8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
11429 $as_echo "$RSVG_CFLAGS" >&6; } 8020 $as_echo "$RSVG_CFLAGS" >&6; }
11430 8021
11431 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5 8022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
11432 $as_echo_n "checking RSVG_LIBS... " >&6; } 8023 $as_echo_n "checking RSVG_LIBS... " >&6; }
11433 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` 8024 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11434 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5 8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
11435 $as_echo "$RSVG_LIBS" >&6; } 8026 $as_echo "$RSVG_LIBS" >&6; }
11436 else 8027 else
11437 { $as_echo "$as_me:$LINENO: result: no" >&5 8028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11438 $as_echo "no" >&6; } 8029 $as_echo "no" >&6; }
11439 RSVG_CFLAGS="" 8030 RSVG_CFLAGS=""
11440 RSVG_LIBS="" 8031 RSVG_LIBS=""
11441 ## If we have a custom action on failure, don't print errors, but 8032 ## If we have a custom action on failure, don't print errors, but
11442 ## do set a variable so people can do so. 8033 ## do set a variable so people can do so.
11462 8053
11463 8054
11464 if test ".${RSVG_CFLAGS}" != "."; then 8055 if test ".${RSVG_CFLAGS}" != "."; then
11465 HAVE_RSVG=yes 8056 HAVE_RSVG=yes
11466 8057
11467 cat >>confdefs.h <<\_ACEOF 8058 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11468 #define HAVE_RSVG 1
11469 _ACEOF
11470 8059
11471 CFLAGS="$CFLAGS $RSVG_CFLAGS" 8060 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11472 LIBS="$RSVG_LIBS $LIBS" 8061 LIBS="$RSVG_LIBS $LIBS"
11473 fi 8062 fi
11474 fi 8063 fi
11484 8073
11485 succeeded=no 8074 succeeded=no
11486 8075
11487 # Extract the first word of "pkg-config", so it can be a program name with args. 8076 # Extract the first word of "pkg-config", so it can be a program name with args.
11488 set dummy pkg-config; ac_word=$2 8077 set dummy pkg-config; ac_word=$2
11489 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11490 $as_echo_n "checking for $ac_word... " >&6; } 8079 $as_echo_n "checking for $ac_word... " >&6; }
11491 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 8080 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11492 $as_echo_n "(cached) " >&6 8081 $as_echo_n "(cached) " >&6
11493 else 8082 else
11494 case $PKG_CONFIG in 8083 case $PKG_CONFIG in
11495 [\\/]* | ?:[\\/]*) 8084 [\\/]* | ?:[\\/]*)
11496 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8085 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11500 for as_dir in $PATH 8089 for as_dir in $PATH
11501 do 8090 do
11502 IFS=$as_save_IFS 8091 IFS=$as_save_IFS
11503 test -z "$as_dir" && as_dir=. 8092 test -z "$as_dir" && as_dir=.
11504 for ac_exec_ext in '' $ac_executable_extensions; do 8093 for ac_exec_ext in '' $ac_executable_extensions; do
11505 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11506 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8095 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11507 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11508 break 2 8097 break 2
11509 fi 8098 fi
11510 done 8099 done
11511 done 8100 done
11512 IFS=$as_save_IFS 8101 IFS=$as_save_IFS
11513 8102
11514 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8103 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11515 ;; 8104 ;;
11516 esac 8105 esac
11517 fi 8106 fi
11518 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8107 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11519 if test -n "$PKG_CONFIG"; then 8108 if test -n "$PKG_CONFIG"; then
11520 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11521 $as_echo "$PKG_CONFIG" >&6; } 8110 $as_echo "$PKG_CONFIG" >&6; }
11522 else 8111 else
11523 { $as_echo "$as_me:$LINENO: result: no" >&5 8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; } 8113 $as_echo "no" >&6; }
11525 fi 8114 fi
11526 8115
11527 8116
11528 8117
11529 if test "$PKG_CONFIG" = "no" ; then 8118 if test "$PKG_CONFIG" = "no" ; then
11530 pkg_check_gtk=no 8119 pkg_check_gtk=no
11531 else 8120 else
11532 PKG_CONFIG_MIN_VERSION=0.9.0 8121 PKG_CONFIG_MIN_VERSION=0.9.0
11533 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 8122 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11534 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11535 $as_echo_n "checking for $GTK_MODULES... " >&6; } 8124 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11536 8125
11537 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then 8126 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11538 { $as_echo "$as_me:$LINENO: result: yes" >&5 8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11539 $as_echo "yes" >&6; } 8128 $as_echo "yes" >&6; }
11540 succeeded=yes 8129 succeeded=yes
11541 8130
11542 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11543 $as_echo_n "checking GTK_CFLAGS... " >&6; } 8132 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11544 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` 8133 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11545 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11546 $as_echo "$GTK_CFLAGS" >&6; } 8135 $as_echo "$GTK_CFLAGS" >&6; }
11547 8136
11548 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5 8137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11549 $as_echo_n "checking GTK_LIBS... " >&6; } 8138 $as_echo_n "checking GTK_LIBS... " >&6; }
11550 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` 8139 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11551 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 8140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11552 $as_echo "$GTK_LIBS" >&6; } 8141 $as_echo "$GTK_LIBS" >&6; }
11553 else 8142 else
11554 { $as_echo "$as_me:$LINENO: result: no" >&5 8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11555 $as_echo "no" >&6; } 8144 $as_echo "no" >&6; }
11556 GTK_CFLAGS="" 8145 GTK_CFLAGS=""
11557 GTK_LIBS="" 8146 GTK_LIBS=""
11558 ## If we have a custom action on failure, don't print errors, but 8147 ## If we have a custom action on failure, don't print errors, but
11559 ## do set a variable so people can do so. 8148 ## do set a variable so people can do so.
11574 else 8163 else
11575 pkg_check_gtk=no 8164 pkg_check_gtk=no
11576 fi 8165 fi
11577 8166
11578 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then 8167 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11579 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5 8168 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11580 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11581 { (exit 1); exit 1; }; }
11582 fi 8169 fi
11583 fi 8170 fi
11584 8171
11585 8172
11586 GTK_OBJ= 8173 GTK_OBJ=
11590 8177
11591 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" 8178 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11592 CFLAGS="$CFLAGS $GTK_CFLAGS" 8179 CFLAGS="$CFLAGS $GTK_CFLAGS"
11593 LIBS="$GTK_LIBS $LIBS" 8180 LIBS="$GTK_LIBS $LIBS"
11594 GTK_COMPILES=no 8181 GTK_COMPILES=no
11595 8182 for ac_func in gtk_main
11596 for ac_func in gtk_main 8183 do :
11597 do 8184 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11598 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8185 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11599 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11600 $as_echo_n "checking for $ac_func... " >&6; }
11601 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11602 $as_echo_n "(cached) " >&6
11603 else
11604 cat >conftest.$ac_ext <<_ACEOF
11605 /* confdefs.h. */
11606 _ACEOF
11607 cat confdefs.h >>conftest.$ac_ext
11608 cat >>conftest.$ac_ext <<_ACEOF
11609 /* end confdefs.h. */
11610 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11611 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11612 #define $ac_func innocuous_$ac_func
11613
11614 /* System header to define __stub macros and hopefully few prototypes,
11615 which can conflict with char $ac_func (); below.
11616 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11617 <limits.h> exists even on freestanding compilers. */
11618
11619 #ifdef __STDC__
11620 # include <limits.h>
11621 #else
11622 # include <assert.h>
11623 #endif
11624
11625 #undef $ac_func
11626
11627 /* Override any GCC internal prototype to avoid an error.
11628 Use char because int might match the return type of a GCC
11629 builtin and then its argument prototype would still apply. */
11630 #ifdef __cplusplus
11631 extern "C"
11632 #endif
11633 char $ac_func ();
11634 /* The GNU C library defines this for functions which it implements
11635 to always fail with ENOSYS. Some functions are actually named
11636 something starting with __ and the normal name is an alias. */
11637 #if defined __stub_$ac_func || defined __stub___$ac_func
11638 choke me
11639 #endif
11640
11641 int
11642 main ()
11643 {
11644 return $ac_func ();
11645 ;
11646 return 0;
11647 }
11648 _ACEOF
11649 rm -f conftest.$ac_objext conftest$ac_exeext
11650 if { (ac_try="$ac_link"
11651 case "(($ac_try" in
11652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11653 *) ac_try_echo=$ac_try;;
11654 esac
11655 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11656 $as_echo "$ac_try_echo") >&5
11657 (eval "$ac_link") 2>conftest.er1
11658 ac_status=$?
11659 grep -v '^ *+' conftest.er1 >conftest.err
11660 rm -f conftest.er1
11661 cat conftest.err >&5
11662 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11663 (exit $ac_status); } && {
11664 test -z "$ac_c_werror_flag" ||
11665 test ! -s conftest.err
11666 } && test -s conftest$ac_exeext && {
11667 test "$cross_compiling" = yes ||
11668 $as_test_x conftest$ac_exeext
11669 }; then
11670 eval "$as_ac_var=yes"
11671 else
11672 $as_echo "$as_me: failed program was:" >&5
11673 sed 's/^/| /' conftest.$ac_ext >&5
11674
11675 eval "$as_ac_var=no"
11676 fi
11677
11678 rm -rf conftest.dSYM
11679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11680 conftest$ac_exeext conftest.$ac_ext
11681 fi
11682 ac_res=`eval 'as_val=${'$as_ac_var'}
11683 $as_echo "$as_val"'`
11684 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11685 $as_echo "$ac_res" >&6; }
11686 if test `eval 'as_val=${'$as_ac_var'}
11687 $as_echo "$as_val"'` = yes; then
11688 cat >>confdefs.h <<_ACEOF 8186 cat >>confdefs.h <<_ACEOF
11689 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8187 #define HAVE_GTK_MAIN 1
11690 _ACEOF 8188 _ACEOF
11691 GTK_COMPILES=yes 8189 GTK_COMPILES=yes
11692 fi 8190 fi
11693 done 8191 done
11694 8192
11695 if test "${GTK_COMPILES}" != "yes"; then 8193 if test "${GTK_COMPILES}" != "yes"; then
11696 if test "$USE_X_TOOLKIT" != "maybe"; then 8194 if test "$USE_X_TOOLKIT" != "maybe"; then
11697 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5 8195 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11698 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11699 { (exit 1); exit 1; }; };
11700 fi 8196 fi
11701 else 8197 else
11702 HAVE_GTK=yes 8198 HAVE_GTK=yes
11703 8199
11704 cat >>confdefs.h <<\_ACEOF 8200 $as_echo "#define USE_GTK 1" >>confdefs.h
11705 #define USE_GTK 1
11706 _ACEOF
11707 8201
11708 GTK_OBJ=gtkutil.o 8202 GTK_OBJ=gtkutil.o
11709 USE_X_TOOLKIT=none 8203 USE_X_TOOLKIT=none
11710 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then 8204 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11711 : 8205 :
11712 else 8206 else
11713 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with 8207 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11714 closing open displays. This is no problem if you just use 8208 closing open displays. This is no problem if you just use
11715 one display, but if you use more than one and close one of them 8209 one display, but if you use more than one and close one of them
11716 Emacs may crash." >&5 8210 Emacs may crash." >&5
11717 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with 8211 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11718 closing open displays. This is no problem if you just use 8212 closing open displays. This is no problem if you just use
11731 if test "$with_toolkit_scroll_bars" != no; then 8225 if test "$with_toolkit_scroll_bars" != no; then
11732 with_toolkit_scroll_bars=yes 8226 with_toolkit_scroll_bars=yes
11733 fi 8227 fi
11734 8228
11735 HAVE_GTK_MULTIDISPLAY=no 8229 HAVE_GTK_MULTIDISPLAY=no
11736 8230 for ac_func in gdk_display_open
11737 for ac_func in gdk_display_open 8231 do :
11738 do 8232 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
11739 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8233 if test "x$ac_cv_func_gdk_display_open" = x""yes; then :
11740 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11741 $as_echo_n "checking for $ac_func... " >&6; }
11742 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11743 $as_echo_n "(cached) " >&6
11744 else
11745 cat >conftest.$ac_ext <<_ACEOF
11746 /* confdefs.h. */
11747 _ACEOF
11748 cat confdefs.h >>conftest.$ac_ext
11749 cat >>conftest.$ac_ext <<_ACEOF
11750 /* end confdefs.h. */
11751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11753 #define $ac_func innocuous_$ac_func
11754
11755 /* System header to define __stub macros and hopefully few prototypes,
11756 which can conflict with char $ac_func (); below.
11757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11758 <limits.h> exists even on freestanding compilers. */
11759
11760 #ifdef __STDC__
11761 # include <limits.h>
11762 #else
11763 # include <assert.h>
11764 #endif
11765
11766 #undef $ac_func
11767
11768 /* Override any GCC internal prototype to avoid an error.
11769 Use char because int might match the return type of a GCC
11770 builtin and then its argument prototype would still apply. */
11771 #ifdef __cplusplus
11772 extern "C"
11773 #endif
11774 char $ac_func ();
11775 /* The GNU C library defines this for functions which it implements
11776 to always fail with ENOSYS. Some functions are actually named
11777 something starting with __ and the normal name is an alias. */
11778 #if defined __stub_$ac_func || defined __stub___$ac_func
11779 choke me
11780 #endif
11781
11782 int
11783 main ()
11784 {
11785 return $ac_func ();
11786 ;
11787 return 0;
11788 }
11789 _ACEOF
11790 rm -f conftest.$ac_objext conftest$ac_exeext
11791 if { (ac_try="$ac_link"
11792 case "(($ac_try" in
11793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11794 *) ac_try_echo=$ac_try;;
11795 esac
11796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11797 $as_echo "$ac_try_echo") >&5
11798 (eval "$ac_link") 2>conftest.er1
11799 ac_status=$?
11800 grep -v '^ *+' conftest.er1 >conftest.err
11801 rm -f conftest.er1
11802 cat conftest.err >&5
11803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11804 (exit $ac_status); } && {
11805 test -z "$ac_c_werror_flag" ||
11806 test ! -s conftest.err
11807 } && test -s conftest$ac_exeext && {
11808 test "$cross_compiling" = yes ||
11809 $as_test_x conftest$ac_exeext
11810 }; then
11811 eval "$as_ac_var=yes"
11812 else
11813 $as_echo "$as_me: failed program was:" >&5
11814 sed 's/^/| /' conftest.$ac_ext >&5
11815
11816 eval "$as_ac_var=no"
11817 fi
11818
11819 rm -rf conftest.dSYM
11820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11821 conftest$ac_exeext conftest.$ac_ext
11822 fi
11823 ac_res=`eval 'as_val=${'$as_ac_var'}
11824 $as_echo "$as_val"'`
11825 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11826 $as_echo "$ac_res" >&6; }
11827 if test `eval 'as_val=${'$as_ac_var'}
11828 $as_echo "$as_val"'` = yes; then
11829 cat >>confdefs.h <<_ACEOF 8234 cat >>confdefs.h <<_ACEOF
11830 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8235 #define HAVE_GDK_DISPLAY_OPEN 1
11831 _ACEOF 8236 _ACEOF
11832 HAVE_GTK_MULTIDISPLAY=yes 8237 HAVE_GTK_MULTIDISPLAY=yes
11833 fi 8238 fi
11834 done 8239 done
11835 8240
11836 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then 8241 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11837 8242
11838 cat >>confdefs.h <<\_ACEOF 8243 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
11839 #define HAVE_GTK_MULTIDISPLAY 1
11840 _ACEOF
11841 8244
11842 fi 8245 fi
11843 8246
11844 HAVE_GTK_FILE_SELECTION=no 8247 HAVE_GTK_FILE_SELECTION=no
11845 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5 8248 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11846 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11847 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11848 $as_echo_n "(cached) " >&6
11849 else
11850 cat >conftest.$ac_ext <<_ACEOF
11851 /* confdefs.h. */
11852 _ACEOF
11853 cat confdefs.h >>conftest.$ac_ext
11854 cat >>conftest.$ac_ext <<_ACEOF
11855 /* end confdefs.h. */
11856 $ac_includes_default
11857 #include <gtk/gtk.h> 8249 #include <gtk/gtk.h>
11858 8250 "
11859 int 8251 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11860 main ()
11861 {
11862 #ifndef GTK_TYPE_FILE_SELECTION
11863 (void) GTK_TYPE_FILE_SELECTION;
11864 #endif
11865
11866 ;
11867 return 0;
11868 }
11869 _ACEOF
11870 rm -f conftest.$ac_objext
11871 if { (ac_try="$ac_compile"
11872 case "(($ac_try" in
11873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874 *) ac_try_echo=$ac_try;;
11875 esac
11876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11877 $as_echo "$ac_try_echo") >&5
11878 (eval "$ac_compile") 2>conftest.er1
11879 ac_status=$?
11880 grep -v '^ *+' conftest.er1 >conftest.err
11881 rm -f conftest.er1
11882 cat conftest.err >&5
11883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11884 (exit $ac_status); } && {
11885 test -z "$ac_c_werror_flag" ||
11886 test ! -s conftest.err
11887 } && test -s conftest.$ac_objext; then
11888 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11889 else
11890 $as_echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.$ac_ext >&5
11892
11893 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11894 fi
11895
11896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11897 fi
11898 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11899 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11900 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11901 HAVE_GTK_FILE_SELECTION=yes 8252 HAVE_GTK_FILE_SELECTION=yes
11902 else 8253 else
11903 HAVE_GTK_FILE_SELECTION=no 8254 HAVE_GTK_FILE_SELECTION=no
11904 fi 8255 fi
11905 8256
11906 if test "$HAVE_GTK_FILE_SELECTION" = yes; then 8257 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11907 8258 for ac_func in gtk_file_selection_new
11908 for ac_func in gtk_file_selection_new 8259 do :
11909 do 8260 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11910 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8261 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11911 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11912 $as_echo_n "checking for $ac_func... " >&6; }
11913 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11914 $as_echo_n "(cached) " >&6
11915 else
11916 cat >conftest.$ac_ext <<_ACEOF
11917 /* confdefs.h. */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11924 #define $ac_func innocuous_$ac_func
11925
11926 /* System header to define __stub macros and hopefully few prototypes,
11927 which can conflict with char $ac_func (); below.
11928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11929 <limits.h> exists even on freestanding compilers. */
11930
11931 #ifdef __STDC__
11932 # include <limits.h>
11933 #else
11934 # include <assert.h>
11935 #endif
11936
11937 #undef $ac_func
11938
11939 /* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11942 #ifdef __cplusplus
11943 extern "C"
11944 #endif
11945 char $ac_func ();
11946 /* The GNU C library defines this for functions which it implements
11947 to always fail with ENOSYS. Some functions are actually named
11948 something starting with __ and the normal name is an alias. */
11949 #if defined __stub_$ac_func || defined __stub___$ac_func
11950 choke me
11951 #endif
11952
11953 int
11954 main ()
11955 {
11956 return $ac_func ();
11957 ;
11958 return 0;
11959 }
11960 _ACEOF
11961 rm -f conftest.$ac_objext conftest$ac_exeext
11962 if { (ac_try="$ac_link"
11963 case "(($ac_try" in
11964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11965 *) ac_try_echo=$ac_try;;
11966 esac
11967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11968 $as_echo "$ac_try_echo") >&5
11969 (eval "$ac_link") 2>conftest.er1
11970 ac_status=$?
11971 grep -v '^ *+' conftest.er1 >conftest.err
11972 rm -f conftest.er1
11973 cat conftest.err >&5
11974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && {
11976 test -z "$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11978 } && test -s conftest$ac_exeext && {
11979 test "$cross_compiling" = yes ||
11980 $as_test_x conftest$ac_exeext
11981 }; then
11982 eval "$as_ac_var=yes"
11983 else
11984 $as_echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.$ac_ext >&5
11986
11987 eval "$as_ac_var=no"
11988 fi
11989
11990 rm -rf conftest.dSYM
11991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11992 conftest$ac_exeext conftest.$ac_ext
11993 fi
11994 ac_res=`eval 'as_val=${'$as_ac_var'}
11995 $as_echo "$as_val"'`
11996 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11997 $as_echo "$ac_res" >&6; }
11998 if test `eval 'as_val=${'$as_ac_var'}
11999 $as_echo "$as_val"'` = yes; then
12000 cat >>confdefs.h <<_ACEOF 8262 cat >>confdefs.h <<_ACEOF
12001 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8263 #define HAVE_GTK_FILE_SELECTION_NEW 1
12002 _ACEOF 8264 _ACEOF
12003 HAVE_GTK_FILE_SELECTION=yes 8265 HAVE_GTK_FILE_SELECTION=yes
12004 else 8266 else
12005 HAVE_GTK_FILE_SELECTION=no 8267 HAVE_GTK_FILE_SELECTION=no
12006 fi 8268 fi
12007 done 8269 done
12008 8270
12009 fi 8271 fi
12010 8272
12011 HAVE_GTK_FILE_CHOOSER=no 8273 HAVE_GTK_FILE_CHOOSER=no
12012 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5 8274 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
12013 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12014 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12015 $as_echo_n "(cached) " >&6
12016 else
12017 cat >conftest.$ac_ext <<_ACEOF
12018 /* confdefs.h. */
12019 _ACEOF
12020 cat confdefs.h >>conftest.$ac_ext
12021 cat >>conftest.$ac_ext <<_ACEOF
12022 /* end confdefs.h. */
12023 $ac_includes_default
12024 #include <gtk/gtk.h> 8275 #include <gtk/gtk.h>
12025 8276 "
12026 int 8277 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then :
12027 main ()
12028 {
12029 #ifndef GTK_TYPE_FILE_CHOOSER
12030 (void) GTK_TYPE_FILE_CHOOSER;
12031 #endif
12032
12033 ;
12034 return 0;
12035 }
12036 _ACEOF
12037 rm -f conftest.$ac_objext
12038 if { (ac_try="$ac_compile"
12039 case "(($ac_try" in
12040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12041 *) ac_try_echo=$ac_try;;
12042 esac
12043 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12044 $as_echo "$ac_try_echo") >&5
12045 (eval "$ac_compile") 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest.$ac_objext; then
12055 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12056 else
12057 $as_echo "$as_me: failed program was:" >&5
12058 sed 's/^/| /' conftest.$ac_ext >&5
12059
12060 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12061 fi
12062
12063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12064 fi
12065 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12066 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12067 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12068 HAVE_GTK_FILE_CHOOSER=yes 8278 HAVE_GTK_FILE_CHOOSER=yes
12069 else 8279 else
12070 HAVE_GTK_FILE_CHOOSER=no 8280 HAVE_GTK_FILE_CHOOSER=no
12071 fi 8281 fi
12072 8282
12073 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 8283 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12074 8284 for ac_func in gtk_file_chooser_dialog_new
12075 for ac_func in gtk_file_chooser_dialog_new 8285 do :
12076 do 8286 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
12077 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8287 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then :
12078 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12079 $as_echo_n "checking for $ac_func... " >&6; }
12080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12081 $as_echo_n "(cached) " >&6
12082 else
12083 cat >conftest.$ac_ext <<_ACEOF
12084 /* confdefs.h. */
12085 _ACEOF
12086 cat confdefs.h >>conftest.$ac_ext
12087 cat >>conftest.$ac_ext <<_ACEOF
12088 /* end confdefs.h. */
12089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12091 #define $ac_func innocuous_$ac_func
12092
12093 /* System header to define __stub macros and hopefully few prototypes,
12094 which can conflict with char $ac_func (); below.
12095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12096 <limits.h> exists even on freestanding compilers. */
12097
12098 #ifdef __STDC__
12099 # include <limits.h>
12100 #else
12101 # include <assert.h>
12102 #endif
12103
12104 #undef $ac_func
12105
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12109 #ifdef __cplusplus
12110 extern "C"
12111 #endif
12112 char $ac_func ();
12113 /* The GNU C library defines this for functions which it implements
12114 to always fail with ENOSYS. Some functions are actually named
12115 something starting with __ and the normal name is an alias. */
12116 #if defined __stub_$ac_func || defined __stub___$ac_func
12117 choke me
12118 #endif
12119
12120 int
12121 main ()
12122 {
12123 return $ac_func ();
12124 ;
12125 return 0;
12126 }
12127 _ACEOF
12128 rm -f conftest.$ac_objext conftest$ac_exeext
12129 if { (ac_try="$ac_link"
12130 case "(($ac_try" in
12131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12132 *) ac_try_echo=$ac_try;;
12133 esac
12134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12135 $as_echo "$ac_try_echo") >&5
12136 (eval "$ac_link") 2>conftest.er1
12137 ac_status=$?
12138 grep -v '^ *+' conftest.er1 >conftest.err
12139 rm -f conftest.er1
12140 cat conftest.err >&5
12141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12142 (exit $ac_status); } && {
12143 test -z "$ac_c_werror_flag" ||
12144 test ! -s conftest.err
12145 } && test -s conftest$ac_exeext && {
12146 test "$cross_compiling" = yes ||
12147 $as_test_x conftest$ac_exeext
12148 }; then
12149 eval "$as_ac_var=yes"
12150 else
12151 $as_echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12153
12154 eval "$as_ac_var=no"
12155 fi
12156
12157 rm -rf conftest.dSYM
12158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12159 conftest$ac_exeext conftest.$ac_ext
12160 fi
12161 ac_res=`eval 'as_val=${'$as_ac_var'}
12162 $as_echo "$as_val"'`
12163 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12164 $as_echo "$ac_res" >&6; }
12165 if test `eval 'as_val=${'$as_ac_var'}
12166 $as_echo "$as_val"'` = yes; then
12167 cat >>confdefs.h <<_ACEOF 8288 cat >>confdefs.h <<_ACEOF
12168 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8289 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
12169 _ACEOF 8290 _ACEOF
12170 HAVE_GTK_FILE_CHOOSER=yes 8291 HAVE_GTK_FILE_CHOOSER=yes
12171 else 8292 else
12172 HAVE_GTK_FILE_CHOOSER=no 8293 HAVE_GTK_FILE_CHOOSER=no
12173 fi 8294 fi
12176 fi 8297 fi
12177 8298
12178 if test "$HAVE_GTK_FILE_SELECTION" = yes \ 8299 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12179 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then 8300 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12180 8301
12181 cat >>confdefs.h <<\_ACEOF 8302 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
12182 #define HAVE_GTK_FILE_BOTH 1
12183 _ACEOF
12184 8303
12185 fi 8304 fi
12186 8305
12187 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 8306 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12188 HAVE_GTK_AND_PTHREAD=no 8307 HAVE_GTK_AND_PTHREAD=no
12189 8308 for ac_header in pthread.h
12190 for ac_header in pthread.h 8309 do :
12191 do 8310 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8311 if test "x$ac_cv_header_pthread_h" = x""yes; then :
12193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12194 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12195 $as_echo_n "checking for $ac_header... " >&6; }
12196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12197 $as_echo_n "(cached) " >&6
12198 fi
12199 ac_res=`eval 'as_val=${'$as_ac_Header'}
12200 $as_echo "$as_val"'`
12201 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12202 $as_echo "$ac_res" >&6; }
12203 else
12204 # Is the header compilable?
12205 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12206 $as_echo_n "checking $ac_header usability... " >&6; }
12207 cat >conftest.$ac_ext <<_ACEOF
12208 /* confdefs.h. */
12209 _ACEOF
12210 cat confdefs.h >>conftest.$ac_ext
12211 cat >>conftest.$ac_ext <<_ACEOF
12212 /* end confdefs.h. */
12213 $ac_includes_default
12214 #include <$ac_header>
12215 _ACEOF
12216 rm -f conftest.$ac_objext
12217 if { (ac_try="$ac_compile"
12218 case "(($ac_try" in
12219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12220 *) ac_try_echo=$ac_try;;
12221 esac
12222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12223 $as_echo "$ac_try_echo") >&5
12224 (eval "$ac_compile") 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_objext; then
12234 ac_header_compiler=yes
12235 else
12236 $as_echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 ac_header_compiler=no
12240 fi
12241
12242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12243 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12244 $as_echo "$ac_header_compiler" >&6; }
12245
12246 # Is the header present?
12247 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12248 $as_echo_n "checking $ac_header presence... " >&6; }
12249 cat >conftest.$ac_ext <<_ACEOF
12250 /* confdefs.h. */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h. */
12255 #include <$ac_header>
12256 _ACEOF
12257 if { (ac_try="$ac_cpp conftest.$ac_ext"
12258 case "(($ac_try" in
12259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12260 *) ac_try_echo=$ac_try;;
12261 esac
12262 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12263 $as_echo "$ac_try_echo") >&5
12264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12265 ac_status=$?
12266 grep -v '^ *+' conftest.er1 >conftest.err
12267 rm -f conftest.er1
12268 cat conftest.err >&5
12269 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12270 (exit $ac_status); } >/dev/null && {
12271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12272 test ! -s conftest.err
12273 }; then
12274 ac_header_preproc=yes
12275 else
12276 $as_echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.$ac_ext >&5
12278
12279 ac_header_preproc=no
12280 fi
12281
12282 rm -f conftest.err conftest.$ac_ext
12283 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12284 $as_echo "$ac_header_preproc" >&6; }
12285
12286 # So? What about this header?
12287 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12288 yes:no: )
12289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12290 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12291 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12292 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12293 ac_header_preproc=yes
12294 ;;
12295 no:yes:* )
12296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12297 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12299 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12301 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12303 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12305 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12306 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12307 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12308
12309 ;;
12310 esac
12311 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12312 $as_echo_n "checking for $ac_header... " >&6; }
12313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12314 $as_echo_n "(cached) " >&6
12315 else
12316 eval "$as_ac_Header=\$ac_header_preproc"
12317 fi
12318 ac_res=`eval 'as_val=${'$as_ac_Header'}
12319 $as_echo "$as_val"'`
12320 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12321 $as_echo "$ac_res" >&6; }
12322
12323 fi
12324 if test `eval 'as_val=${'$as_ac_Header'}
12325 $as_echo "$as_val"'` = yes; then
12326 cat >>confdefs.h <<_ACEOF 8312 cat >>confdefs.h <<_ACEOF
12327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8313 #define HAVE_PTHREAD_H 1
12328 _ACEOF 8314 _ACEOF
12329 8315
12330 fi 8316 fi
12331 8317
12332 done 8318 done
12333 8319
12334 if test "$ac_cv_header_pthread_h"; then 8320 if test "$ac_cv_header_pthread_h"; then
12335 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5 8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
12336 $as_echo_n "checking for pthread_self in -lpthread... " >&6; } 8322 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12337 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then 8323 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
12338 $as_echo_n "(cached) " >&6 8324 $as_echo_n "(cached) " >&6
12339 else 8325 else
12340 ac_check_lib_save_LIBS=$LIBS 8326 ac_check_lib_save_LIBS=$LIBS
12341 LIBS="-lpthread $LIBS" 8327 LIBS="-lpthread $LIBS"
12342 cat >conftest.$ac_ext <<_ACEOF 8328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343 /* confdefs.h. */
12344 _ACEOF
12345 cat confdefs.h >>conftest.$ac_ext
12346 cat >>conftest.$ac_ext <<_ACEOF
12347 /* end confdefs.h. */ 8329 /* end confdefs.h. */
12348 8330
12349 /* Override any GCC internal prototype to avoid an error. 8331 /* Override any GCC internal prototype to avoid an error.
12350 Use char because int might match the return type of a GCC 8332 Use char because int might match the return type of a GCC
12351 builtin and then its argument prototype would still apply. */ 8333 builtin and then its argument prototype would still apply. */
12359 return pthread_self (); 8341 return pthread_self ();
12360 ; 8342 ;
12361 return 0; 8343 return 0;
12362 } 8344 }
12363 _ACEOF 8345 _ACEOF
12364 rm -f conftest.$ac_objext conftest$ac_exeext 8346 if ac_fn_c_try_link "$LINENO"; then :
12365 if { (ac_try="$ac_link"
12366 case "(($ac_try" in
12367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12368 *) ac_try_echo=$ac_try;;
12369 esac
12370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12371 $as_echo "$ac_try_echo") >&5
12372 (eval "$ac_link") 2>conftest.er1
12373 ac_status=$?
12374 grep -v '^ *+' conftest.er1 >conftest.err
12375 rm -f conftest.er1
12376 cat conftest.err >&5
12377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12378 (exit $ac_status); } && {
12379 test -z "$ac_c_werror_flag" ||
12380 test ! -s conftest.err
12381 } && test -s conftest$ac_exeext && {
12382 test "$cross_compiling" = yes ||
12383 $as_test_x conftest$ac_exeext
12384 }; then
12385 ac_cv_lib_pthread_pthread_self=yes 8347 ac_cv_lib_pthread_pthread_self=yes
12386 else 8348 else
12387 $as_echo "$as_me: failed program was:" >&5 8349 ac_cv_lib_pthread_pthread_self=no
12388 sed 's/^/| /' conftest.$ac_ext >&5 8350 fi
12389 8351 rm -f core conftest.err conftest.$ac_objext \
12390 ac_cv_lib_pthread_pthread_self=no 8352 conftest$ac_exeext conftest.$ac_ext
12391 fi
12392
12393 rm -rf conftest.dSYM
12394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12395 conftest$ac_exeext conftest.$ac_ext
12396 LIBS=$ac_check_lib_save_LIBS 8353 LIBS=$ac_check_lib_save_LIBS
12397 fi 8354 fi
12398 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5 8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
12399 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } 8356 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12400 if test $ac_cv_lib_pthread_pthread_self = yes; then 8357 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
12401 HAVE_GTK_AND_PTHREAD=yes 8358 HAVE_GTK_AND_PTHREAD=yes
12402 fi 8359 fi
12403 8360
12404 fi 8361 fi
12405 if test "$HAVE_GTK_AND_PTHREAD" = yes; then 8362 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12406 case "${canonical}" in 8363 case "${canonical}" in
12407 *-hpux*) ;; 8364 *-hpux*) ;;
12408 *) GTK_LIBS="$GTK_LIBS -lpthread" ;; 8365 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12409 esac 8366 esac
12410 8367
12411 cat >>confdefs.h <<\_ACEOF 8368 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
12412 #define HAVE_GTK_AND_PTHREAD 1
12413 _ACEOF
12414 8369
12415 fi 8370 fi
12416 fi 8371 fi
12417 fi 8372 fi
12418 8373
12422 8377
12423 succeeded=no 8378 succeeded=no
12424 8379
12425 # Extract the first word of "pkg-config", so it can be a program name with args. 8380 # Extract the first word of "pkg-config", so it can be a program name with args.
12426 set dummy pkg-config; ac_word=$2 8381 set dummy pkg-config; ac_word=$2
12427 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12428 $as_echo_n "checking for $ac_word... " >&6; } 8383 $as_echo_n "checking for $ac_word... " >&6; }
12429 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 8384 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12430 $as_echo_n "(cached) " >&6 8385 $as_echo_n "(cached) " >&6
12431 else 8386 else
12432 case $PKG_CONFIG in 8387 case $PKG_CONFIG in
12433 [\\/]* | ?:[\\/]*) 8388 [\\/]* | ?:[\\/]*)
12434 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8389 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12438 for as_dir in $PATH 8393 for as_dir in $PATH
12439 do 8394 do
12440 IFS=$as_save_IFS 8395 IFS=$as_save_IFS
12441 test -z "$as_dir" && as_dir=. 8396 test -z "$as_dir" && as_dir=.
12442 for ac_exec_ext in '' $ac_executable_extensions; do 8397 for ac_exec_ext in '' $ac_executable_extensions; do
12443 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8398 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12444 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8399 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12445 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8400 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12446 break 2 8401 break 2
12447 fi 8402 fi
12448 done 8403 done
12449 done 8404 done
12450 IFS=$as_save_IFS 8405 IFS=$as_save_IFS
12451 8406
12452 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8407 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12453 ;; 8408 ;;
12454 esac 8409 esac
12455 fi 8410 fi
12456 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8411 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12457 if test -n "$PKG_CONFIG"; then 8412 if test -n "$PKG_CONFIG"; then
12458 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12459 $as_echo "$PKG_CONFIG" >&6; } 8414 $as_echo "$PKG_CONFIG" >&6; }
12460 else 8415 else
12461 { $as_echo "$as_me:$LINENO: result: no" >&5 8416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12462 $as_echo "no" >&6; } 8417 $as_echo "no" >&6; }
12463 fi 8418 fi
12464 8419
12465 8420
12466 8421
12467 if test "$PKG_CONFIG" = "no" ; then 8422 if test "$PKG_CONFIG" = "no" ; then
12468 HAVE_DBUS=no 8423 HAVE_DBUS=no
12469 else 8424 else
12470 PKG_CONFIG_MIN_VERSION=0.9.0 8425 PKG_CONFIG_MIN_VERSION=0.9.0
12471 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 8426 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12472 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5 8427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
12473 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; } 8428 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12474 8429
12475 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then 8430 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12476 { $as_echo "$as_me:$LINENO: result: yes" >&5 8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12477 $as_echo "yes" >&6; } 8432 $as_echo "yes" >&6; }
12478 succeeded=yes 8433 succeeded=yes
12479 8434
12480 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5 8435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
12481 $as_echo_n "checking DBUS_CFLAGS... " >&6; } 8436 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12482 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 8437 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12483 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5 8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
12484 $as_echo "$DBUS_CFLAGS" >&6; } 8439 $as_echo "$DBUS_CFLAGS" >&6; }
12485 8440
12486 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5 8441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
12487 $as_echo_n "checking DBUS_LIBS... " >&6; } 8442 $as_echo_n "checking DBUS_LIBS... " >&6; }
12488 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 8443 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12489 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5 8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
12490 $as_echo "$DBUS_LIBS" >&6; } 8445 $as_echo "$DBUS_LIBS" >&6; }
12491 else 8446 else
12492 { $as_echo "$as_me:$LINENO: result: no" >&5 8447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12493 $as_echo "no" >&6; } 8448 $as_echo "no" >&6; }
12494 DBUS_CFLAGS="" 8449 DBUS_CFLAGS=""
12495 DBUS_LIBS="" 8450 DBUS_LIBS=""
12496 ## If we have a custom action on failure, don't print errors, but 8451 ## If we have a custom action on failure, don't print errors, but
12497 ## do set a variable so people can do so. 8452 ## do set a variable so people can do so.
12514 fi 8469 fi
12515 8470
12516 if test "$HAVE_DBUS" = yes; then 8471 if test "$HAVE_DBUS" = yes; then
12517 LIBS="$LIBS $DBUS_LIBS" 8472 LIBS="$LIBS $DBUS_LIBS"
12518 8473
12519 cat >>confdefs.h <<\_ACEOF 8474 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
12520 #define HAVE_DBUS 1 8475
12521 _ACEOF 8476 for ac_func in dbus_watch_get_unix_fd
12522 8477 do :
12523 8478 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
12524 for ac_func in dbus_watch_get_unix_fd 8479 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
12525 do
12526 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12527 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12528 $as_echo_n "checking for $ac_func... " >&6; }
12529 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12530 $as_echo_n "(cached) " >&6
12531 else
12532 cat >conftest.$ac_ext <<_ACEOF
12533 /* confdefs.h. */
12534 _ACEOF
12535 cat confdefs.h >>conftest.$ac_ext
12536 cat >>conftest.$ac_ext <<_ACEOF
12537 /* end confdefs.h. */
12538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12540 #define $ac_func innocuous_$ac_func
12541
12542 /* System header to define __stub macros and hopefully few prototypes,
12543 which can conflict with char $ac_func (); below.
12544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12545 <limits.h> exists even on freestanding compilers. */
12546
12547 #ifdef __STDC__
12548 # include <limits.h>
12549 #else
12550 # include <assert.h>
12551 #endif
12552
12553 #undef $ac_func
12554
12555 /* Override any GCC internal prototype to avoid an error.
12556 Use char because int might match the return type of a GCC
12557 builtin and then its argument prototype would still apply. */
12558 #ifdef __cplusplus
12559 extern "C"
12560 #endif
12561 char $ac_func ();
12562 /* The GNU C library defines this for functions which it implements
12563 to always fail with ENOSYS. Some functions are actually named
12564 something starting with __ and the normal name is an alias. */
12565 #if defined __stub_$ac_func || defined __stub___$ac_func
12566 choke me
12567 #endif
12568
12569 int
12570 main ()
12571 {
12572 return $ac_func ();
12573 ;
12574 return 0;
12575 }
12576 _ACEOF
12577 rm -f conftest.$ac_objext conftest$ac_exeext
12578 if { (ac_try="$ac_link"
12579 case "(($ac_try" in
12580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12581 *) ac_try_echo=$ac_try;;
12582 esac
12583 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12584 $as_echo "$ac_try_echo") >&5
12585 (eval "$ac_link") 2>conftest.er1
12586 ac_status=$?
12587 grep -v '^ *+' conftest.er1 >conftest.err
12588 rm -f conftest.er1
12589 cat conftest.err >&5
12590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12591 (exit $ac_status); } && {
12592 test -z "$ac_c_werror_flag" ||
12593 test ! -s conftest.err
12594 } && test -s conftest$ac_exeext && {
12595 test "$cross_compiling" = yes ||
12596 $as_test_x conftest$ac_exeext
12597 }; then
12598 eval "$as_ac_var=yes"
12599 else
12600 $as_echo "$as_me: failed program was:" >&5
12601 sed 's/^/| /' conftest.$ac_ext >&5
12602
12603 eval "$as_ac_var=no"
12604 fi
12605
12606 rm -rf conftest.dSYM
12607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12608 conftest$ac_exeext conftest.$ac_ext
12609 fi
12610 ac_res=`eval 'as_val=${'$as_ac_var'}
12611 $as_echo "$as_val"'`
12612 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12613 $as_echo "$ac_res" >&6; }
12614 if test `eval 'as_val=${'$as_ac_var'}
12615 $as_echo "$as_val"'` = yes; then
12616 cat >>confdefs.h <<_ACEOF 8480 cat >>confdefs.h <<_ACEOF
12617 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8481 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
12618 _ACEOF 8482 _ACEOF
12619 8483
12620 fi 8484 fi
12621 done 8485 done
12622 8486
12630 8494
12631 succeeded=no 8495 succeeded=no
12632 8496
12633 # Extract the first word of "pkg-config", so it can be a program name with args. 8497 # Extract the first word of "pkg-config", so it can be a program name with args.
12634 set dummy pkg-config; ac_word=$2 8498 set dummy pkg-config; ac_word=$2
12635 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12636 $as_echo_n "checking for $ac_word... " >&6; } 8500 $as_echo_n "checking for $ac_word... " >&6; }
12637 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 8501 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12638 $as_echo_n "(cached) " >&6 8502 $as_echo_n "(cached) " >&6
12639 else 8503 else
12640 case $PKG_CONFIG in 8504 case $PKG_CONFIG in
12641 [\\/]* | ?:[\\/]*) 8505 [\\/]* | ?:[\\/]*)
12642 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8506 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646 for as_dir in $PATH 8510 for as_dir in $PATH
12647 do 8511 do
12648 IFS=$as_save_IFS 8512 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=. 8513 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do 8514 for ac_exec_ext in '' $ac_executable_extensions; do
12651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12652 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8516 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12653 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654 break 2 8518 break 2
12655 fi 8519 fi
12656 done 8520 done
12657 done 8521 done
12658 IFS=$as_save_IFS 8522 IFS=$as_save_IFS
12659 8523
12660 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8524 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12661 ;; 8525 ;;
12662 esac 8526 esac
12663 fi 8527 fi
12664 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8528 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12665 if test -n "$PKG_CONFIG"; then 8529 if test -n "$PKG_CONFIG"; then
12666 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12667 $as_echo "$PKG_CONFIG" >&6; } 8531 $as_echo "$PKG_CONFIG" >&6; }
12668 else 8532 else
12669 { $as_echo "$as_me:$LINENO: result: no" >&5 8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12670 $as_echo "no" >&6; } 8534 $as_echo "no" >&6; }
12671 fi 8535 fi
12672 8536
12673 8537
12674 8538
12675 if test "$PKG_CONFIG" = "no" ; then 8539 if test "$PKG_CONFIG" = "no" ; then
12676 HAVE_GCONF=no 8540 HAVE_GCONF=no
12677 else 8541 else
12678 PKG_CONFIG_MIN_VERSION=0.9.0 8542 PKG_CONFIG_MIN_VERSION=0.9.0
12679 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 8543 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12680 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12681 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } 8545 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12682 8546
12683 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then 8547 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12684 { $as_echo "$as_me:$LINENO: result: yes" >&5 8548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12685 $as_echo "yes" >&6; } 8549 $as_echo "yes" >&6; }
12686 succeeded=yes 8550 succeeded=yes
12687 8551
12688 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5 8552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
12689 $as_echo_n "checking GCONF_CFLAGS... " >&6; } 8553 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12690 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 8554 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12691 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5 8555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
12692 $as_echo "$GCONF_CFLAGS" >&6; } 8556 $as_echo "$GCONF_CFLAGS" >&6; }
12693 8557
12694 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5 8558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
12695 $as_echo_n "checking GCONF_LIBS... " >&6; } 8559 $as_echo_n "checking GCONF_LIBS... " >&6; }
12696 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 8560 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12697 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5 8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
12698 $as_echo "$GCONF_LIBS" >&6; } 8562 $as_echo "$GCONF_LIBS" >&6; }
12699 else 8563 else
12700 { $as_echo "$as_me:$LINENO: result: no" >&5 8564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12701 $as_echo "no" >&6; } 8565 $as_echo "no" >&6; }
12702 GCONF_CFLAGS="" 8566 GCONF_CFLAGS=""
12703 GCONF_LIBS="" 8567 GCONF_LIBS=""
12704 ## If we have a custom action on failure, don't print errors, but 8568 ## If we have a custom action on failure, don't print errors, but
12705 ## do set a variable so people can do so. 8569 ## do set a variable so people can do so.
12721 HAVE_GCONF=no 8585 HAVE_GCONF=no
12722 fi 8586 fi
12723 8587
12724 if test "$HAVE_GCONF" = yes; then 8588 if test "$HAVE_GCONF" = yes; then
12725 8589
12726 cat >>confdefs.h <<\_ACEOF 8590 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12727 #define HAVE_GCONF 1
12728 _ACEOF
12729 8591
12730 fi 8592 fi
12731 fi 8593 fi
12732 8594
12733 HAVE_LIBSELINUX=no 8595 HAVE_LIBSELINUX=no
12734 LIBSELINUX_LIBS= 8596 LIBSELINUX_LIBS=
12735 if test "${with_selinux}" = "yes"; then 8597 if test "${with_selinux}" = "yes"; then
12736 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5 8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12737 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } 8599 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12738 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then 8600 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12739 $as_echo_n "(cached) " >&6 8601 $as_echo_n "(cached) " >&6
12740 else 8602 else
12741 ac_check_lib_save_LIBS=$LIBS 8603 ac_check_lib_save_LIBS=$LIBS
12742 LIBS="-lselinux $LIBS" 8604 LIBS="-lselinux $LIBS"
12743 cat >conftest.$ac_ext <<_ACEOF 8605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12744 /* confdefs.h. */
12745 _ACEOF
12746 cat confdefs.h >>conftest.$ac_ext
12747 cat >>conftest.$ac_ext <<_ACEOF
12748 /* end confdefs.h. */ 8606 /* end confdefs.h. */
12749 8607
12750 /* Override any GCC internal prototype to avoid an error. 8608 /* Override any GCC internal prototype to avoid an error.
12751 Use char because int might match the return type of a GCC 8609 Use char because int might match the return type of a GCC
12752 builtin and then its argument prototype would still apply. */ 8610 builtin and then its argument prototype would still apply. */
12760 return lgetfilecon (); 8618 return lgetfilecon ();
12761 ; 8619 ;
12762 return 0; 8620 return 0;
12763 } 8621 }
12764 _ACEOF 8622 _ACEOF
12765 rm -f conftest.$ac_objext conftest$ac_exeext 8623 if ac_fn_c_try_link "$LINENO"; then :
12766 if { (ac_try="$ac_link"
12767 case "(($ac_try" in
12768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12769 *) ac_try_echo=$ac_try;;
12770 esac
12771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12772 $as_echo "$ac_try_echo") >&5
12773 (eval "$ac_link") 2>conftest.er1
12774 ac_status=$?
12775 grep -v '^ *+' conftest.er1 >conftest.err
12776 rm -f conftest.er1
12777 cat conftest.err >&5
12778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12779 (exit $ac_status); } && {
12780 test -z "$ac_c_werror_flag" ||
12781 test ! -s conftest.err
12782 } && test -s conftest$ac_exeext && {
12783 test "$cross_compiling" = yes ||
12784 $as_test_x conftest$ac_exeext
12785 }; then
12786 ac_cv_lib_selinux_lgetfilecon=yes 8624 ac_cv_lib_selinux_lgetfilecon=yes
12787 else 8625 else
12788 $as_echo "$as_me: failed program was:" >&5 8626 ac_cv_lib_selinux_lgetfilecon=no
12789 sed 's/^/| /' conftest.$ac_ext >&5 8627 fi
12790 8628 rm -f core conftest.err conftest.$ac_objext \
12791 ac_cv_lib_selinux_lgetfilecon=no 8629 conftest$ac_exeext conftest.$ac_ext
12792 fi
12793
12794 rm -rf conftest.dSYM
12795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12796 conftest$ac_exeext conftest.$ac_ext
12797 LIBS=$ac_check_lib_save_LIBS 8630 LIBS=$ac_check_lib_save_LIBS
12798 fi 8631 fi
12799 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5 8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12800 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } 8633 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12801 if test $ac_cv_lib_selinux_lgetfilecon = yes; then 8634 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
12802 HAVE_LIBSELINUX=yes 8635 HAVE_LIBSELINUX=yes
12803 else 8636 else
12804 HAVE_LIBSELINUX=no 8637 HAVE_LIBSELINUX=no
12805 fi 8638 fi
12806 8639
12807 if test "$HAVE_LIBSELINUX" = yes; then 8640 if test "$HAVE_LIBSELINUX" = yes; then
12808 8641
12809 cat >>confdefs.h <<\_ACEOF 8642 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12810 #define HAVE_LIBSELINUX 1
12811 _ACEOF
12812 8643
12813 LIBSELINUX_LIBS=-lselinux 8644 LIBSELINUX_LIBS=-lselinux
12814 fi 8645 fi
12815 fi 8646 fi
12816 8647
12817 8648
12818 HAVE_XAW3D=no 8649 HAVE_XAW3D=no
12819 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then 8650 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12820 if test "$with_xaw3d" != no; then 8651 if test "$with_xaw3d" != no; then
12821 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5 8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12822 $as_echo_n "checking for xaw3d... " >&6; } 8653 $as_echo_n "checking for xaw3d... " >&6; }
12823 if test "${emacs_cv_xaw3d+set}" = set; then 8654 if test "${emacs_cv_xaw3d+set}" = set; then :
12824 $as_echo_n "(cached) " >&6 8655 $as_echo_n "(cached) " >&6
12825 else 8656 else
12826 cat >conftest.$ac_ext <<_ACEOF 8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12827 /* confdefs.h. */
12828 _ACEOF
12829 cat confdefs.h >>conftest.$ac_ext
12830 cat >>conftest.$ac_ext <<_ACEOF
12831 /* end confdefs.h. */ 8658 /* end confdefs.h. */
12832 8659
12833 #include <X11/Intrinsic.h> 8660 #include <X11/Intrinsic.h>
12834 #include <X11/Xaw3d/Simple.h> 8661 #include <X11/Xaw3d/Simple.h>
12835 int 8662 int
12838 8665
12839 ; 8666 ;
12840 return 0; 8667 return 0;
12841 } 8668 }
12842 _ACEOF 8669 _ACEOF
12843 rm -f conftest.$ac_objext conftest$ac_exeext 8670 if ac_fn_c_try_link "$LINENO"; then :
12844 if { (ac_try="$ac_link"
12845 case "(($ac_try" in
12846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12847 *) ac_try_echo=$ac_try;;
12848 esac
12849 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12850 $as_echo "$ac_try_echo") >&5
12851 (eval "$ac_link") 2>conftest.er1
12852 ac_status=$?
12853 grep -v '^ *+' conftest.er1 >conftest.err
12854 rm -f conftest.er1
12855 cat conftest.err >&5
12856 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 (exit $ac_status); } && {
12858 test -z "$ac_c_werror_flag" ||
12859 test ! -s conftest.err
12860 } && test -s conftest$ac_exeext && {
12861 test "$cross_compiling" = yes ||
12862 $as_test_x conftest$ac_exeext
12863 }; then
12864 emacs_cv_xaw3d=yes 8671 emacs_cv_xaw3d=yes
12865 else 8672 else
12866 $as_echo "$as_me: failed program was:" >&5 8673 emacs_cv_xaw3d=no
12867 sed 's/^/| /' conftest.$ac_ext >&5 8674 fi
12868 8675 rm -f core conftest.err conftest.$ac_objext \
12869 emacs_cv_xaw3d=no 8676 conftest$ac_exeext conftest.$ac_ext
12870 fi
12871
12872 rm -rf conftest.dSYM
12873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12874 conftest$ac_exeext conftest.$ac_ext
12875 fi 8677 fi
12876 8678
12877 else 8679 else
12878 emacs_cv_xaw3d=no 8680 emacs_cv_xaw3d=no
12879 fi 8681 fi
12880 if test $emacs_cv_xaw3d = yes; then 8682 if test $emacs_cv_xaw3d = yes; then
12881 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12882 $as_echo "yes; using Lucid toolkit" >&6; } 8684 $as_echo "yes; using Lucid toolkit" >&6; }
12883 USE_X_TOOLKIT=LUCID 8685 USE_X_TOOLKIT=LUCID
12884 HAVE_XAW3D=yes 8686 HAVE_XAW3D=yes
12885 8687
12886 cat >>confdefs.h <<\_ACEOF 8688 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12887 #define HAVE_XAW3D 1
12888 _ACEOF
12889 8689
12890 else 8690 else
12891 { $as_echo "$as_me:$LINENO: result: no" >&5 8691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892 $as_echo "no" >&6; } 8692 $as_echo "no" >&6; }
12893 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5 8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12894 $as_echo_n "checking for libXaw... " >&6; } 8694 $as_echo_n "checking for libXaw... " >&6; }
12895 if test "${emacs_cv_xaw+set}" = set; then 8695 if test "${emacs_cv_xaw+set}" = set; then :
12896 $as_echo_n "(cached) " >&6 8696 $as_echo_n "(cached) " >&6
12897 else 8697 else
12898 cat >conftest.$ac_ext <<_ACEOF 8698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12899 /* confdefs.h. */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h. */ 8699 /* end confdefs.h. */
12904 8700
12905 #include <X11/Intrinsic.h> 8701 #include <X11/Intrinsic.h>
12906 #include <X11/Xaw/Simple.h> 8702 #include <X11/Xaw/Simple.h>
12907 int 8703 int
12910 8706
12911 ; 8707 ;
12912 return 0; 8708 return 0;
12913 } 8709 }
12914 _ACEOF 8710 _ACEOF
12915 rm -f conftest.$ac_objext conftest$ac_exeext 8711 if ac_fn_c_try_link "$LINENO"; then :
12916 if { (ac_try="$ac_link"
12917 case "(($ac_try" in
12918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12919 *) ac_try_echo=$ac_try;;
12920 esac
12921 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12922 $as_echo "$ac_try_echo") >&5
12923 (eval "$ac_link") 2>conftest.er1
12924 ac_status=$?
12925 grep -v '^ *+' conftest.er1 >conftest.err
12926 rm -f conftest.er1
12927 cat conftest.err >&5
12928 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12929 (exit $ac_status); } && {
12930 test -z "$ac_c_werror_flag" ||
12931 test ! -s conftest.err
12932 } && test -s conftest$ac_exeext && {
12933 test "$cross_compiling" = yes ||
12934 $as_test_x conftest$ac_exeext
12935 }; then
12936 emacs_cv_xaw=yes 8712 emacs_cv_xaw=yes
12937 else 8713 else
12938 $as_echo "$as_me: failed program was:" >&5 8714 emacs_cv_xaw=no
12939 sed 's/^/| /' conftest.$ac_ext >&5 8715 fi
12940 8716 rm -f core conftest.err conftest.$ac_objext \
12941 emacs_cv_xaw=no 8717 conftest$ac_exeext conftest.$ac_ext
12942 fi
12943
12944 rm -rf conftest.dSYM
12945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12946 conftest$ac_exeext conftest.$ac_ext
12947 fi 8718 fi
12948 8719
12949 if test $emacs_cv_xaw = yes; then 8720 if test $emacs_cv_xaw = yes; then
12950 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12951 $as_echo "yes; using Lucid toolkit" >&6; } 8722 $as_echo "yes; using Lucid toolkit" >&6; }
12952 USE_X_TOOLKIT=LUCID 8723 USE_X_TOOLKIT=LUCID
12953 elif test x"${USE_X_TOOLKIT}" = xLUCID; then 8724 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12954 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5 8725 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
12955 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12956 { (exit 1); exit 1; }; }
12957 else 8726 else
12958 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5 8727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
12959 $as_echo "no; do not use toolkit by default" >&6; } 8728 $as_echo "no; do not use toolkit by default" >&6; }
12960 USE_X_TOOLKIT=none 8729 USE_X_TOOLKIT=none
12961 fi 8730 fi
12962 fi 8731 fi
12963 fi 8732 fi
12964 8733
12965 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 8734 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12966 8735
12967 if test "${USE_X_TOOLKIT}" != "none"; then 8736 if test "${USE_X_TOOLKIT}" != "none"; then
12968 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
12969 $as_echo_n "checking X11 toolkit version... " >&6; } 8738 $as_echo_n "checking X11 toolkit version... " >&6; }
12970 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then 8739 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
12971 $as_echo_n "(cached) " >&6 8740 $as_echo_n "(cached) " >&6
12972 else 8741 else
12973 cat >conftest.$ac_ext <<_ACEOF 8742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12974 /* confdefs.h. */
12975 _ACEOF
12976 cat confdefs.h >>conftest.$ac_ext
12977 cat >>conftest.$ac_ext <<_ACEOF
12978 /* end confdefs.h. */ 8743 /* end confdefs.h. */
12979 #include <X11/Intrinsic.h> 8744 #include <X11/Intrinsic.h>
12980 int 8745 int
12981 main () 8746 main ()
12982 { 8747 {
12986 8751
12987 ; 8752 ;
12988 return 0; 8753 return 0;
12989 } 8754 }
12990 _ACEOF 8755 _ACEOF
12991 rm -f conftest.$ac_objext conftest$ac_exeext 8756 if ac_fn_c_try_link "$LINENO"; then :
12992 if { (ac_try="$ac_link"
12993 case "(($ac_try" in
12994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12995 *) ac_try_echo=$ac_try;;
12996 esac
12997 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12998 $as_echo "$ac_try_echo") >&5
12999 (eval "$ac_link") 2>conftest.er1
13000 ac_status=$?
13001 grep -v '^ *+' conftest.er1 >conftest.err
13002 rm -f conftest.er1
13003 cat conftest.err >&5
13004 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13005 (exit $ac_status); } && {
13006 test -z "$ac_c_werror_flag" ||
13007 test ! -s conftest.err
13008 } && test -s conftest$ac_exeext && {
13009 test "$cross_compiling" = yes ||
13010 $as_test_x conftest$ac_exeext
13011 }; then
13012 emacs_cv_x11_toolkit_version_6=yes 8757 emacs_cv_x11_toolkit_version_6=yes
13013 else 8758 else
13014 $as_echo "$as_me: failed program was:" >&5 8759 emacs_cv_x11_toolkit_version_6=no
13015 sed 's/^/| /' conftest.$ac_ext >&5 8760 fi
13016 8761 rm -f core conftest.err conftest.$ac_objext \
13017 emacs_cv_x11_toolkit_version_6=no 8762 conftest$ac_exeext conftest.$ac_ext
13018 fi
13019
13020 rm -rf conftest.dSYM
13021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13022 conftest$ac_exeext conftest.$ac_ext
13023 fi 8763 fi
13024 8764
13025 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 8765 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13026 if test $emacs_cv_x11_toolkit_version_6 = yes; then 8766 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13027 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
13028 $as_echo "6 or newer" >&6; } 8768 $as_echo "6 or newer" >&6; }
13029 8769
13030 cat >>confdefs.h <<\_ACEOF 8770 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
13031 #define HAVE_X11XTR6 1
13032 _ACEOF
13033 8771
13034 else 8772 else
13035 { $as_echo "$as_me:$LINENO: result: before 6" >&5 8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
13036 $as_echo "before 6" >&6; } 8774 $as_echo "before 6" >&6; }
13037 fi 8775 fi
13038 8776
13039 OLDLIBS="$LIBS" 8777 OLDLIBS="$LIBS"
13040 if test x$HAVE_X11XTR6 = xyes; then 8778 if test x$HAVE_X11XTR6 = xyes; then
13041 LIBS="-lXt -lSM -lICE $LIBS" 8779 LIBS="-lXt -lSM -lICE $LIBS"
13042 else 8780 else
13043 LIBS="-lXt $LIBS" 8781 LIBS="-lXt $LIBS"
13044 fi 8782 fi
13045 8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
13046 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13047 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } 8784 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13048 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then 8785 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
13049 $as_echo_n "(cached) " >&6 8786 $as_echo_n "(cached) " >&6
13050 else 8787 else
13051 ac_check_lib_save_LIBS=$LIBS 8788 ac_check_lib_save_LIBS=$LIBS
13052 LIBS="-lXmu $LIBS" 8789 LIBS="-lXmu $LIBS"
13053 cat >conftest.$ac_ext <<_ACEOF 8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13054 /* confdefs.h. */
13055 _ACEOF
13056 cat confdefs.h >>conftest.$ac_ext
13057 cat >>conftest.$ac_ext <<_ACEOF
13058 /* end confdefs.h. */ 8791 /* end confdefs.h. */
13059 8792
13060 /* Override any GCC internal prototype to avoid an error. 8793 /* Override any GCC internal prototype to avoid an error.
13061 Use char because int might match the return type of a GCC 8794 Use char because int might match the return type of a GCC
13062 builtin and then its argument prototype would still apply. */ 8795 builtin and then its argument prototype would still apply. */
13070 return XmuConvertStandardSelection (); 8803 return XmuConvertStandardSelection ();
13071 ; 8804 ;
13072 return 0; 8805 return 0;
13073 } 8806 }
13074 _ACEOF 8807 _ACEOF
13075 rm -f conftest.$ac_objext conftest$ac_exeext 8808 if ac_fn_c_try_link "$LINENO"; then :
13076 if { (ac_try="$ac_link"
13077 case "(($ac_try" in
13078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13079 *) ac_try_echo=$ac_try;;
13080 esac
13081 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13082 $as_echo "$ac_try_echo") >&5
13083 (eval "$ac_link") 2>conftest.er1
13084 ac_status=$?
13085 grep -v '^ *+' conftest.er1 >conftest.err
13086 rm -f conftest.er1
13087 cat conftest.err >&5
13088 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13089 (exit $ac_status); } && {
13090 test -z "$ac_c_werror_flag" ||
13091 test ! -s conftest.err
13092 } && test -s conftest$ac_exeext && {
13093 test "$cross_compiling" = yes ||
13094 $as_test_x conftest$ac_exeext
13095 }; then
13096 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes 8809 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13097 else 8810 else
13098 $as_echo "$as_me: failed program was:" >&5 8811 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13099 sed 's/^/| /' conftest.$ac_ext >&5 8812 fi
13100 8813 rm -f core conftest.err conftest.$ac_objext \
13101 ac_cv_lib_Xmu_XmuConvertStandardSelection=no 8814 conftest$ac_exeext conftest.$ac_ext
13102 fi
13103
13104 rm -rf conftest.dSYM
13105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13106 conftest$ac_exeext conftest.$ac_ext
13107 LIBS=$ac_check_lib_save_LIBS 8815 LIBS=$ac_check_lib_save_LIBS
13108 fi 8816 fi
13109 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13110 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } 8818 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13111 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then 8819 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
13112 cat >>confdefs.h <<_ACEOF 8820 cat >>confdefs.h <<_ACEOF
13113 #define HAVE_LIBXMU 1 8821 #define HAVE_LIBXMU 1
13114 _ACEOF 8822 _ACEOF
13115 8823
13116 LIBS="-lXmu $LIBS" 8824 LIBS="-lXmu $LIBS"
13121 fi 8829 fi
13122 8830
13123 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. 8831 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13124 if test "${HAVE_X11}" = "yes"; then 8832 if test "${HAVE_X11}" = "yes"; then
13125 if test "${USE_X_TOOLKIT}" != "none"; then 8833 if test "${USE_X_TOOLKIT}" != "none"; then
13126 8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
13127 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13128 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 8835 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13129 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then 8836 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
13130 $as_echo_n "(cached) " >&6 8837 $as_echo_n "(cached) " >&6
13131 else 8838 else
13132 ac_check_lib_save_LIBS=$LIBS 8839 ac_check_lib_save_LIBS=$LIBS
13133 LIBS="-lXext $LIBS" 8840 LIBS="-lXext $LIBS"
13134 cat >conftest.$ac_ext <<_ACEOF 8841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13135 /* confdefs.h. */
13136 _ACEOF
13137 cat confdefs.h >>conftest.$ac_ext
13138 cat >>conftest.$ac_ext <<_ACEOF
13139 /* end confdefs.h. */ 8842 /* end confdefs.h. */
13140 8843
13141 /* Override any GCC internal prototype to avoid an error. 8844 /* Override any GCC internal prototype to avoid an error.
13142 Use char because int might match the return type of a GCC 8845 Use char because int might match the return type of a GCC
13143 builtin and then its argument prototype would still apply. */ 8846 builtin and then its argument prototype would still apply. */
13151 return XShapeQueryExtension (); 8854 return XShapeQueryExtension ();
13152 ; 8855 ;
13153 return 0; 8856 return 0;
13154 } 8857 }
13155 _ACEOF 8858 _ACEOF
13156 rm -f conftest.$ac_objext conftest$ac_exeext 8859 if ac_fn_c_try_link "$LINENO"; then :
13157 if { (ac_try="$ac_link"
13158 case "(($ac_try" in
13159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13160 *) ac_try_echo=$ac_try;;
13161 esac
13162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13163 $as_echo "$ac_try_echo") >&5
13164 (eval "$ac_link") 2>conftest.er1
13165 ac_status=$?
13166 grep -v '^ *+' conftest.er1 >conftest.err
13167 rm -f conftest.er1
13168 cat conftest.err >&5
13169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13170 (exit $ac_status); } && {
13171 test -z "$ac_c_werror_flag" ||
13172 test ! -s conftest.err
13173 } && test -s conftest$ac_exeext && {
13174 test "$cross_compiling" = yes ||
13175 $as_test_x conftest$ac_exeext
13176 }; then
13177 ac_cv_lib_Xext_XShapeQueryExtension=yes 8860 ac_cv_lib_Xext_XShapeQueryExtension=yes
13178 else 8861 else
13179 $as_echo "$as_me: failed program was:" >&5 8862 ac_cv_lib_Xext_XShapeQueryExtension=no
13180 sed 's/^/| /' conftest.$ac_ext >&5 8863 fi
13181 8864 rm -f core conftest.err conftest.$ac_objext \
13182 ac_cv_lib_Xext_XShapeQueryExtension=no 8865 conftest$ac_exeext conftest.$ac_ext
13183 fi
13184
13185 rm -rf conftest.dSYM
13186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13187 conftest$ac_exeext conftest.$ac_ext
13188 LIBS=$ac_check_lib_save_LIBS 8866 LIBS=$ac_check_lib_save_LIBS
13189 fi 8867 fi
13190 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 8868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13191 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 8869 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13192 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then 8870 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
13193 cat >>confdefs.h <<_ACEOF 8871 cat >>confdefs.h <<_ACEOF
13194 #define HAVE_LIBXEXT 1 8872 #define HAVE_LIBXEXT 1
13195 _ACEOF 8873 _ACEOF
13196 8874
13197 LIBS="-lXext $LIBS" 8875 LIBS="-lXext $LIBS"
13200 8878
13201 fi 8879 fi
13202 fi 8880 fi
13203 8881
13204 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 8882 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13205 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
13206 $as_echo_n "checking for Motif version 2.1... " >&6; } 8884 $as_echo_n "checking for Motif version 2.1... " >&6; }
13207 if test "${emacs_cv_motif_version_2_1+set}" = set; then 8885 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
13208 $as_echo_n "(cached) " >&6 8886 $as_echo_n "(cached) " >&6
13209 else 8887 else
13210 cat >conftest.$ac_ext <<_ACEOF 8888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13211 /* confdefs.h. */
13212 _ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h. */ 8889 /* end confdefs.h. */
13216 #include <Xm/Xm.h> 8890 #include <Xm/Xm.h>
13217 int 8891 int
13218 main () 8892 main ()
13219 { 8893 {
13224 #endif 8898 #endif
13225 ; 8899 ;
13226 return 0; 8900 return 0;
13227 } 8901 }
13228 _ACEOF 8902 _ACEOF
13229 rm -f conftest.$ac_objext 8903 if ac_fn_c_try_compile "$LINENO"; then :
13230 if { (ac_try="$ac_compile"
13231 case "(($ac_try" in
13232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13233 *) ac_try_echo=$ac_try;;
13234 esac
13235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13236 $as_echo "$ac_try_echo") >&5
13237 (eval "$ac_compile") 2>conftest.er1
13238 ac_status=$?
13239 grep -v '^ *+' conftest.er1 >conftest.err
13240 rm -f conftest.er1
13241 cat conftest.err >&5
13242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13243 (exit $ac_status); } && {
13244 test -z "$ac_c_werror_flag" ||
13245 test ! -s conftest.err
13246 } && test -s conftest.$ac_objext; then
13247 emacs_cv_motif_version_2_1=yes 8904 emacs_cv_motif_version_2_1=yes
13248 else 8905 else
13249 $as_echo "$as_me: failed program was:" >&5 8906 emacs_cv_motif_version_2_1=no
13250 sed 's/^/| /' conftest.$ac_ext >&5 8907 fi
13251
13252 emacs_cv_motif_version_2_1=no
13253 fi
13254
13255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13256 fi 8909 fi
13257 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 8910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
13258 $as_echo "$emacs_cv_motif_version_2_1" >&6; } 8911 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13259 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 8912 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13260 if test $emacs_cv_motif_version_2_1 = yes; then 8913 if test $emacs_cv_motif_version_2_1 = yes; then
13261 HAVE_LIBXP=no 8914 HAVE_LIBXP=no
13262 8915
13263 cat >>confdefs.h <<\_ACEOF 8916 $as_echo "#define HAVE_MOTIF_2_1 1" >>confdefs.h
13264 #define HAVE_MOTIF_2_1 1 8917
13265 _ACEOF 8918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
13266
13267 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13268 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; } 8919 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13269 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then 8920 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
13270 $as_echo_n "(cached) " >&6 8921 $as_echo_n "(cached) " >&6
13271 else 8922 else
13272 ac_check_lib_save_LIBS=$LIBS 8923 ac_check_lib_save_LIBS=$LIBS
13273 LIBS="-lXp $LIBS" 8924 LIBS="-lXp $LIBS"
13274 cat >conftest.$ac_ext <<_ACEOF 8925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13275 /* confdefs.h. */
13276 _ACEOF
13277 cat confdefs.h >>conftest.$ac_ext
13278 cat >>conftest.$ac_ext <<_ACEOF
13279 /* end confdefs.h. */ 8926 /* end confdefs.h. */
13280 8927
13281 /* Override any GCC internal prototype to avoid an error. 8928 /* Override any GCC internal prototype to avoid an error.
13282 Use char because int might match the return type of a GCC 8929 Use char because int might match the return type of a GCC
13283 builtin and then its argument prototype would still apply. */ 8930 builtin and then its argument prototype would still apply. */
13291 return XpCreateContext (); 8938 return XpCreateContext ();
13292 ; 8939 ;
13293 return 0; 8940 return 0;
13294 } 8941 }
13295 _ACEOF 8942 _ACEOF
13296 rm -f conftest.$ac_objext conftest$ac_exeext 8943 if ac_fn_c_try_link "$LINENO"; then :
13297 if { (ac_try="$ac_link"
13298 case "(($ac_try" in
13299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13300 *) ac_try_echo=$ac_try;;
13301 esac
13302 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13303 $as_echo "$ac_try_echo") >&5
13304 (eval "$ac_link") 2>conftest.er1
13305 ac_status=$?
13306 grep -v '^ *+' conftest.er1 >conftest.err
13307 rm -f conftest.er1
13308 cat conftest.err >&5
13309 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } && {
13311 test -z "$ac_c_werror_flag" ||
13312 test ! -s conftest.err
13313 } && test -s conftest$ac_exeext && {
13314 test "$cross_compiling" = yes ||
13315 $as_test_x conftest$ac_exeext
13316 }; then
13317 ac_cv_lib_Xp_XpCreateContext=yes 8944 ac_cv_lib_Xp_XpCreateContext=yes
13318 else 8945 else
13319 $as_echo "$as_me: failed program was:" >&5 8946 ac_cv_lib_Xp_XpCreateContext=no
13320 sed 's/^/| /' conftest.$ac_ext >&5 8947 fi
13321 8948 rm -f core conftest.err conftest.$ac_objext \
13322 ac_cv_lib_Xp_XpCreateContext=no 8949 conftest$ac_exeext conftest.$ac_ext
13323 fi
13324
13325 rm -rf conftest.dSYM
13326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13327 conftest$ac_exeext conftest.$ac_ext
13328 LIBS=$ac_check_lib_save_LIBS 8950 LIBS=$ac_check_lib_save_LIBS
13329 fi 8951 fi
13330 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 8952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13331 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } 8953 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13332 if test $ac_cv_lib_Xp_XpCreateContext = yes; then 8954 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
13333 HAVE_LIBXP=yes 8955 HAVE_LIBXP=yes
13334 fi 8956 fi
13335 8957
13336 if test ${HAVE_LIBXP} = yes; then 8958 if test ${HAVE_LIBXP} = yes; then
13337 8959
13338 cat >>confdefs.h <<\_ACEOF 8960 $as_echo "#define HAVE_LIBXP 1" >>confdefs.h
13339 #define HAVE_LIBXP 1
13340 _ACEOF
13341 8961
13342 fi 8962 fi
13343 else 8963 else
13344 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
13345 $as_echo_n "checking for LessTif where some systems put it... " >&6; } 8965 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13346 if test "${emacs_cv_lesstif+set}" = set; then 8966 if test "${emacs_cv_lesstif+set}" = set; then :
13347 $as_echo_n "(cached) " >&6 8967 $as_echo_n "(cached) " >&6
13348 else 8968 else
13349 # We put this in CFLAGS temporarily to precede other -I options 8969 # We put this in CFLAGS temporarily to precede other -I options
13350 # that might be in CFLAGS temporarily. 8970 # that might be in CFLAGS temporarily.
13351 # We put this in CPPFLAGS where it precedes the other -I options. 8971 # We put this in CPPFLAGS where it precedes the other -I options.
13352 OLD_CPPFLAGS=$CPPFLAGS 8972 OLD_CPPFLAGS=$CPPFLAGS
13353 OLD_CFLAGS=$CFLAGS 8973 OLD_CFLAGS=$CFLAGS
13354 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" 8974 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13355 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" 8975 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13356 cat >conftest.$ac_ext <<_ACEOF 8976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13357 /* confdefs.h. */
13358 _ACEOF
13359 cat confdefs.h >>conftest.$ac_ext
13360 cat >>conftest.$ac_ext <<_ACEOF
13361 /* end confdefs.h. */ 8977 /* end confdefs.h. */
13362 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> 8978 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13363 int 8979 int
13364 main () 8980 main ()
13365 { 8981 {
13366 int x = 5; 8982 int x = 5;
13367 ; 8983 ;
13368 return 0; 8984 return 0;
13369 } 8985 }
13370 _ACEOF 8986 _ACEOF
13371 rm -f conftest.$ac_objext 8987 if ac_fn_c_try_compile "$LINENO"; then :
13372 if { (ac_try="$ac_compile"
13373 case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376 esac
13377 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13378 $as_echo "$ac_try_echo") >&5
13379 (eval "$ac_compile") 2>conftest.er1
13380 ac_status=$?
13381 grep -v '^ *+' conftest.er1 >conftest.err
13382 rm -f conftest.er1
13383 cat conftest.err >&5
13384 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); } && {
13386 test -z "$ac_c_werror_flag" ||
13387 test ! -s conftest.err
13388 } && test -s conftest.$ac_objext; then
13389 emacs_cv_lesstif=yes 8988 emacs_cv_lesstif=yes
13390 else 8989 else
13391 $as_echo "$as_me: failed program was:" >&5 8990 emacs_cv_lesstif=no
13392 sed 's/^/| /' conftest.$ac_ext >&5 8991 fi
13393
13394 emacs_cv_lesstif=no
13395 fi
13396
13397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13398 fi 8993 fi
13399 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
13400 $as_echo "$emacs_cv_lesstif" >&6; } 8995 $as_echo "$emacs_cv_lesstif" >&6; }
13401 if test $emacs_cv_lesstif = yes; then 8996 if test $emacs_cv_lesstif = yes; then
13402 # Make sure this -I option remains in CPPFLAGS after it is set 8997 # Make sure this -I option remains in CPPFLAGS after it is set
13403 # back to REAL_CPPFLAGS. 8998 # back to REAL_CPPFLAGS.
13404 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not 8999 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13412 fi 9007 fi
13413 fi 9008 fi
13414 fi 9009 fi
13415 9010
13416 9011
13417
13418 USE_TOOLKIT_SCROLL_BARS=no 9012 USE_TOOLKIT_SCROLL_BARS=no
13419 if test "${with_toolkit_scroll_bars}" != "no"; then 9013 if test "${with_toolkit_scroll_bars}" != "no"; then
13420 if test "${USE_X_TOOLKIT}" != "none"; then 9014 if test "${USE_X_TOOLKIT}" != "none"; then
13421 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 9015 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13422 cat >>confdefs.h <<\_ACEOF 9016 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
13423 #define USE_TOOLKIT_SCROLL_BARS 1
13424 _ACEOF
13425 9017
13426 HAVE_XAW3D=no 9018 HAVE_XAW3D=no
13427 USE_TOOLKIT_SCROLL_BARS=yes 9019 USE_TOOLKIT_SCROLL_BARS=yes
13428 elif test "${HAVE_XAW3D}" = "yes"; then 9020 elif test "${HAVE_XAW3D}" = "yes"; then
13429 cat >>confdefs.h <<\_ACEOF 9021 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
13430 #define USE_TOOLKIT_SCROLL_BARS 1
13431 _ACEOF
13432 9022
13433 USE_TOOLKIT_SCROLL_BARS=yes 9023 USE_TOOLKIT_SCROLL_BARS=yes
13434 fi 9024 fi
13435 elif test "${HAVE_GTK}" = "yes"; then 9025 elif test "${HAVE_GTK}" = "yes"; then
13436 cat >>confdefs.h <<\_ACEOF 9026 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
13437 #define USE_TOOLKIT_SCROLL_BARS 1
13438 _ACEOF
13439 9027
13440 USE_TOOLKIT_SCROLL_BARS=yes 9028 USE_TOOLKIT_SCROLL_BARS=yes
13441 elif test "${HAVE_NS}" = "yes"; then 9029 elif test "${HAVE_NS}" = "yes"; then
13442 cat >>confdefs.h <<\_ACEOF 9030 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
13443 #define USE_TOOLKIT_SCROLL_BARS 1
13444 _ACEOF
13445 9031
13446 USE_TOOLKIT_SCROLL_BARS=yes 9032 USE_TOOLKIT_SCROLL_BARS=yes
13447 fi 9033 fi
13448 fi 9034 fi
13449 9035
13450 cat >conftest.$ac_ext <<_ACEOF 9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13451 /* confdefs.h. */
13452 _ACEOF
13453 cat confdefs.h >>conftest.$ac_ext
13454 cat >>conftest.$ac_ext <<_ACEOF
13455 /* end confdefs.h. */ 9037 /* end confdefs.h. */
13456 9038
13457 #include <X11/Xlib.h> 9039 #include <X11/Xlib.h>
13458 #include <X11/Xresource.h> 9040 #include <X11/Xresource.h>
13459 int 9041 int
13462 XIMProc callback; 9044 XIMProc callback;
13463 ; 9045 ;
13464 return 0; 9046 return 0;
13465 } 9047 }
13466 _ACEOF 9048 _ACEOF
13467 rm -f conftest.$ac_objext 9049 if ac_fn_c_try_compile "$LINENO"; then :
13468 if { (ac_try="$ac_compile"
13469 case "(($ac_try" in
13470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13471 *) ac_try_echo=$ac_try;;
13472 esac
13473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13474 $as_echo "$ac_try_echo") >&5
13475 (eval "$ac_compile") 2>conftest.er1
13476 ac_status=$?
13477 grep -v '^ *+' conftest.er1 >conftest.err
13478 rm -f conftest.er1
13479 cat conftest.err >&5
13480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } && {
13482 test -z "$ac_c_werror_flag" ||
13483 test ! -s conftest.err
13484 } && test -s conftest.$ac_objext; then
13485 HAVE_XIM=yes 9050 HAVE_XIM=yes
13486 9051
13487 cat >>confdefs.h <<\_ACEOF 9052 $as_echo "#define HAVE_XIM 1" >>confdefs.h
13488 #define HAVE_XIM 1 9053
13489 _ACEOF 9054 else
13490 9055 HAVE_XIM=no
13491 else 9056 fi
13492 $as_echo "$as_me: failed program was:" >&5
13493 sed 's/^/| /' conftest.$ac_ext >&5
13494
13495 HAVE_XIM=no
13496 fi
13497
13498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13499 9058
13500 9059
13501 if test "${with_xim}" != "no"; then 9060 if test "${with_xim}" != "no"; then
13502 9061
13503 cat >>confdefs.h <<\_ACEOF 9062 $as_echo "#define USE_XIM 1" >>confdefs.h
13504 #define USE_XIM 1
13505 _ACEOF
13506 9063
13507 fi 9064 fi
13508 9065
13509 9066
13510 if test "${HAVE_XIM}" != "no"; then 9067 if test "${HAVE_XIM}" != "no"; then
13511 late_CFLAGS=$CFLAGS 9068 late_CFLAGS=$CFLAGS
13512 if test "$GCC" = yes; then 9069 if test "$GCC" = yes; then
13513 CFLAGS="$CFLAGS --pedantic-errors" 9070 CFLAGS="$CFLAGS --pedantic-errors"
13514 fi 9071 fi
13515 cat >conftest.$ac_ext <<_ACEOF 9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13516 /* confdefs.h. */
13517 _ACEOF
13518 cat confdefs.h >>conftest.$ac_ext
13519 cat >>conftest.$ac_ext <<_ACEOF
13520 /* end confdefs.h. */ 9073 /* end confdefs.h. */
13521 9074
13522 #include <X11/Xlib.h> 9075 #include <X11/Xlib.h>
13523 #include <X11/Xresource.h> 9076 #include <X11/Xresource.h>
13524 int 9077 int
13540 client_data); 9093 client_data);
13541 ; 9094 ;
13542 return 0; 9095 return 0;
13543 } 9096 }
13544 _ACEOF 9097 _ACEOF
13545 rm -f conftest.$ac_objext 9098 if ac_fn_c_try_compile "$LINENO"; then :
13546 if { (ac_try="$ac_compile"
13547 case "(($ac_try" in
13548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13549 *) ac_try_echo=$ac_try;;
13550 esac
13551 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13552 $as_echo "$ac_try_echo") >&5
13553 (eval "$ac_compile") 2>conftest.er1
13554 ac_status=$?
13555 grep -v '^ *+' conftest.er1 >conftest.err
13556 rm -f conftest.er1
13557 cat conftest.err >&5
13558 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13559 (exit $ac_status); } && {
13560 test -z "$ac_c_werror_flag" ||
13561 test ! -s conftest.err
13562 } && test -s conftest.$ac_objext; then
13563 emacs_cv_arg6_star=yes 9099 emacs_cv_arg6_star=yes
13564 else 9100 fi
13565 $as_echo "$as_me: failed program was:" >&5
13566 sed 's/^/| /' conftest.$ac_ext >&5
13567
13568
13569 fi
13570
13571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13572 9102 if test "$emacs_cv_arg6_star" = yes; then
13573 if test "$emacs_cv_arg6_star" = yes; then 9103 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
13574 cat >>confdefs.h <<\_ACEOF
13575 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13576 _ACEOF
13577 9104
13578 else 9105 else
13579 cat >>confdefs.h <<\_ACEOF 9106 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
13580 #define XRegisterIMInstantiateCallback_arg6 XPointer
13581 _ACEOF
13582 9107
13583 fi 9108 fi
13584 CFLAGS=$late_CFLAGS 9109 CFLAGS=$late_CFLAGS
13585 fi 9110 fi
13586 9111
13593 9118
13594 succeeded=no 9119 succeeded=no
13595 9120
13596 # Extract the first word of "pkg-config", so it can be a program name with args. 9121 # Extract the first word of "pkg-config", so it can be a program name with args.
13597 set dummy pkg-config; ac_word=$2 9122 set dummy pkg-config; ac_word=$2
13598 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13599 $as_echo_n "checking for $ac_word... " >&6; } 9124 $as_echo_n "checking for $ac_word... " >&6; }
13600 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 9125 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13601 $as_echo_n "(cached) " >&6 9126 $as_echo_n "(cached) " >&6
13602 else 9127 else
13603 case $PKG_CONFIG in 9128 case $PKG_CONFIG in
13604 [\\/]* | ?:[\\/]*) 9129 [\\/]* | ?:[\\/]*)
13605 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9130 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13609 for as_dir in $PATH 9134 for as_dir in $PATH
13610 do 9135 do
13611 IFS=$as_save_IFS 9136 IFS=$as_save_IFS
13612 test -z "$as_dir" && as_dir=. 9137 test -z "$as_dir" && as_dir=.
13613 for ac_exec_ext in '' $ac_executable_extensions; do 9138 for ac_exec_ext in '' $ac_executable_extensions; do
13614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13615 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9140 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13616 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13617 break 2 9142 break 2
13618 fi 9143 fi
13619 done 9144 done
13620 done 9145 done
13621 IFS=$as_save_IFS 9146 IFS=$as_save_IFS
13622 9147
13623 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9148 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13624 ;; 9149 ;;
13625 esac 9150 esac
13626 fi 9151 fi
13627 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9152 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13628 if test -n "$PKG_CONFIG"; then 9153 if test -n "$PKG_CONFIG"; then
13629 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13630 $as_echo "$PKG_CONFIG" >&6; } 9155 $as_echo "$PKG_CONFIG" >&6; }
13631 else 9156 else
13632 { $as_echo "$as_me:$LINENO: result: no" >&5 9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13633 $as_echo "no" >&6; } 9158 $as_echo "no" >&6; }
13634 fi 9159 fi
13635 9160
13636 9161
13637 9162
13638 if test "$PKG_CONFIG" = "no" ; then 9163 if test "$PKG_CONFIG" = "no" ; then
13639 HAVE_FC=no 9164 HAVE_FC=no
13640 else 9165 else
13641 PKG_CONFIG_MIN_VERSION=0.9.0 9166 PKG_CONFIG_MIN_VERSION=0.9.0
13642 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 9167 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13643 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5 9168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
13644 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } 9169 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13645 9170
13646 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then 9171 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13647 { $as_echo "$as_me:$LINENO: result: yes" >&5 9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13648 $as_echo "yes" >&6; } 9173 $as_echo "yes" >&6; }
13649 succeeded=yes 9174 succeeded=yes
13650 9175
13651 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5 9176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
13652 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } 9177 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13653 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 9178 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13654 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5 9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
13655 $as_echo "$FONTCONFIG_CFLAGS" >&6; } 9180 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13656 9181
13657 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5 9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
13658 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; } 9183 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13659 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 9184 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13660 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5 9185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
13661 $as_echo "$FONTCONFIG_LIBS" >&6; } 9186 $as_echo "$FONTCONFIG_LIBS" >&6; }
13662 else 9187 else
13663 { $as_echo "$as_me:$LINENO: result: no" >&5 9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13664 $as_echo "no" >&6; } 9189 $as_echo "no" >&6; }
13665 FONTCONFIG_CFLAGS="" 9190 FONTCONFIG_CFLAGS=""
13666 FONTCONFIG_LIBS="" 9191 FONTCONFIG_LIBS=""
13667 ## If we have a custom action on failure, don't print errors, but 9192 ## If we have a custom action on failure, don't print errors, but
13668 ## do set a variable so people can do so. 9193 ## do set a variable so people can do so.
13695 9220
13696 succeeded=no 9221 succeeded=no
13697 9222
13698 # Extract the first word of "pkg-config", so it can be a program name with args. 9223 # Extract the first word of "pkg-config", so it can be a program name with args.
13699 set dummy pkg-config; ac_word=$2 9224 set dummy pkg-config; ac_word=$2
13700 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 9225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13701 $as_echo_n "checking for $ac_word... " >&6; } 9226 $as_echo_n "checking for $ac_word... " >&6; }
13702 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 9227 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13703 $as_echo_n "(cached) " >&6 9228 $as_echo_n "(cached) " >&6
13704 else 9229 else
13705 case $PKG_CONFIG in 9230 case $PKG_CONFIG in
13706 [\\/]* | ?:[\\/]*) 9231 [\\/]* | ?:[\\/]*)
13707 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9232 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13711 for as_dir in $PATH 9236 for as_dir in $PATH
13712 do 9237 do
13713 IFS=$as_save_IFS 9238 IFS=$as_save_IFS
13714 test -z "$as_dir" && as_dir=. 9239 test -z "$as_dir" && as_dir=.
13715 for ac_exec_ext in '' $ac_executable_extensions; do 9240 for ac_exec_ext in '' $ac_executable_extensions; do
13716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13717 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9242 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13718 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13719 break 2 9244 break 2
13720 fi 9245 fi
13721 done 9246 done
13722 done 9247 done
13723 IFS=$as_save_IFS 9248 IFS=$as_save_IFS
13724 9249
13725 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9250 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13726 ;; 9251 ;;
13727 esac 9252 esac
13728 fi 9253 fi
13729 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9254 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13730 if test -n "$PKG_CONFIG"; then 9255 if test -n "$PKG_CONFIG"; then
13731 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 9256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13732 $as_echo "$PKG_CONFIG" >&6; } 9257 $as_echo "$PKG_CONFIG" >&6; }
13733 else 9258 else
13734 { $as_echo "$as_me:$LINENO: result: no" >&5 9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13735 $as_echo "no" >&6; } 9260 $as_echo "no" >&6; }
13736 fi 9261 fi
13737 9262
13738 9263
13739 9264
13740 if test "$PKG_CONFIG" = "no" ; then 9265 if test "$PKG_CONFIG" = "no" ; then
13741 HAVE_XFT=no 9266 HAVE_XFT=no
13742 else 9267 else
13743 PKG_CONFIG_MIN_VERSION=0.9.0 9268 PKG_CONFIG_MIN_VERSION=0.9.0
13744 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 9269 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13745 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5 9270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13746 $as_echo_n "checking for xft >= 0.13.0... " >&6; } 9271 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13747 9272
13748 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then 9273 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13749 { $as_echo "$as_me:$LINENO: result: yes" >&5 9274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13750 $as_echo "yes" >&6; } 9275 $as_echo "yes" >&6; }
13751 succeeded=yes 9276 succeeded=yes
13752 9277
13753 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5 9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
13754 $as_echo_n "checking XFT_CFLAGS... " >&6; } 9279 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13755 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` 9280 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13756 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5 9281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
13757 $as_echo "$XFT_CFLAGS" >&6; } 9282 $as_echo "$XFT_CFLAGS" >&6; }
13758 9283
13759 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5 9284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
13760 $as_echo_n "checking XFT_LIBS... " >&6; } 9285 $as_echo_n "checking XFT_LIBS... " >&6; }
13761 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` 9286 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13762 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5 9287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
13763 $as_echo "$XFT_LIBS" >&6; } 9288 $as_echo "$XFT_LIBS" >&6; }
13764 else 9289 else
13765 { $as_echo "$as_me:$LINENO: result: no" >&5 9290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13766 $as_echo "no" >&6; } 9291 $as_echo "no" >&6; }
13767 XFT_CFLAGS="" 9292 XFT_CFLAGS=""
13768 XFT_LIBS="" 9293 XFT_LIBS=""
13769 ## If we have a custom action on failure, don't print errors, but 9294 ## If we have a custom action on failure, don't print errors, but
13770 ## do set a variable so people can do so. 9295 ## do set a variable so people can do so.
13787 fi 9312 fi
13788 9313
13789 ## Because xftfont.c uses XRenderQueryExtension, we also 9314 ## Because xftfont.c uses XRenderQueryExtension, we also
13790 ## need to link to -lXrender. 9315 ## need to link to -lXrender.
13791 HAVE_XRENDER=no 9316 HAVE_XRENDER=no
13792 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5 9317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13793 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } 9318 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13794 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then 9319 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13795 $as_echo_n "(cached) " >&6 9320 $as_echo_n "(cached) " >&6
13796 else 9321 else
13797 ac_check_lib_save_LIBS=$LIBS 9322 ac_check_lib_save_LIBS=$LIBS
13798 LIBS="-lXrender $LIBS" 9323 LIBS="-lXrender $LIBS"
13799 cat >conftest.$ac_ext <<_ACEOF 9324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13800 /* confdefs.h. */
13801 _ACEOF
13802 cat confdefs.h >>conftest.$ac_ext
13803 cat >>conftest.$ac_ext <<_ACEOF
13804 /* end confdefs.h. */ 9325 /* end confdefs.h. */
13805 9326
13806 /* Override any GCC internal prototype to avoid an error. 9327 /* Override any GCC internal prototype to avoid an error.
13807 Use char because int might match the return type of a GCC 9328 Use char because int might match the return type of a GCC
13808 builtin and then its argument prototype would still apply. */ 9329 builtin and then its argument prototype would still apply. */
13816 return XRenderQueryExtension (); 9337 return XRenderQueryExtension ();
13817 ; 9338 ;
13818 return 0; 9339 return 0;
13819 } 9340 }
13820 _ACEOF 9341 _ACEOF
13821 rm -f conftest.$ac_objext conftest$ac_exeext 9342 if ac_fn_c_try_link "$LINENO"; then :
13822 if { (ac_try="$ac_link"
13823 case "(($ac_try" in
13824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13825 *) ac_try_echo=$ac_try;;
13826 esac
13827 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13828 $as_echo "$ac_try_echo") >&5
13829 (eval "$ac_link") 2>conftest.er1
13830 ac_status=$?
13831 grep -v '^ *+' conftest.er1 >conftest.err
13832 rm -f conftest.er1
13833 cat conftest.err >&5
13834 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13835 (exit $ac_status); } && {
13836 test -z "$ac_c_werror_flag" ||
13837 test ! -s conftest.err
13838 } && test -s conftest$ac_exeext && {
13839 test "$cross_compiling" = yes ||
13840 $as_test_x conftest$ac_exeext
13841 }; then
13842 ac_cv_lib_Xrender_XRenderQueryExtension=yes 9343 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13843 else 9344 else
13844 $as_echo "$as_me: failed program was:" >&5 9345 ac_cv_lib_Xrender_XRenderQueryExtension=no
13845 sed 's/^/| /' conftest.$ac_ext >&5 9346 fi
13846 9347 rm -f core conftest.err conftest.$ac_objext \
13847 ac_cv_lib_Xrender_XRenderQueryExtension=no 9348 conftest$ac_exeext conftest.$ac_ext
13848 fi
13849
13850 rm -rf conftest.dSYM
13851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13852 conftest$ac_exeext conftest.$ac_ext
13853 LIBS=$ac_check_lib_save_LIBS 9349 LIBS=$ac_check_lib_save_LIBS
13854 fi 9350 fi
13855 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 9351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13856 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } 9352 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13857 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then 9353 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
13858 HAVE_XRENDER=yes 9354 HAVE_XRENDER=yes
13859 fi 9355 fi
13860 9356
13861 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then 9357 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13862 OLD_CPPFLAGS="$CPPFLAGS" 9358 OLD_CPPFLAGS="$CPPFLAGS"
13864 OLD_LIBS="$LIBS" 9360 OLD_LIBS="$LIBS"
13865 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" 9361 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13866 CFLAGS="$CFLAGS $XFT_CFLAGS" 9362 CFLAGS="$CFLAGS $XFT_CFLAGS"
13867 XFT_LIBS="-lXrender $XFT_LIBS" 9363 XFT_LIBS="-lXrender $XFT_LIBS"
13868 LIBS="$XFT_LIBS $LIBS" 9364 LIBS="$XFT_LIBS $LIBS"
13869 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then 9365 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
13870 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 9366 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
13871 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; } 9367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13872 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13873 $as_echo_n "(cached) " >&6
13874 fi
13875 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13876 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13877 else
13878 # Is the header compilable?
13879 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13880 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13881 cat >conftest.$ac_ext <<_ACEOF
13882 /* confdefs.h. */
13883 _ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13887 $ac_includes_default
13888 #include <X11/Xft/Xft.h>
13889 _ACEOF
13890 rm -f conftest.$ac_objext
13891 if { (ac_try="$ac_compile"
13892 case "(($ac_try" in
13893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894 *) ac_try_echo=$ac_try;;
13895 esac
13896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13897 $as_echo "$ac_try_echo") >&5
13898 (eval "$ac_compile") 2>conftest.er1
13899 ac_status=$?
13900 grep -v '^ *+' conftest.er1 >conftest.err
13901 rm -f conftest.er1
13902 cat conftest.err >&5
13903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13904 (exit $ac_status); } && {
13905 test -z "$ac_c_werror_flag" ||
13906 test ! -s conftest.err
13907 } && test -s conftest.$ac_objext; then
13908 ac_header_compiler=yes
13909 else
13910 $as_echo "$as_me: failed program was:" >&5
13911 sed 's/^/| /' conftest.$ac_ext >&5
13912
13913 ac_header_compiler=no
13914 fi
13915
13916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13917 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13918 $as_echo "$ac_header_compiler" >&6; }
13919
13920 # Is the header present?
13921 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13922 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13923 cat >conftest.$ac_ext <<_ACEOF
13924 /* confdefs.h. */
13925 _ACEOF
13926 cat confdefs.h >>conftest.$ac_ext
13927 cat >>conftest.$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13929 #include <X11/Xft/Xft.h>
13930 _ACEOF
13931 if { (ac_try="$ac_cpp conftest.$ac_ext"
13932 case "(($ac_try" in
13933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13934 *) ac_try_echo=$ac_try;;
13935 esac
13936 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13937 $as_echo "$ac_try_echo") >&5
13938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13939 ac_status=$?
13940 grep -v '^ *+' conftest.er1 >conftest.err
13941 rm -f conftest.er1
13942 cat conftest.err >&5
13943 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } >/dev/null && {
13945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13946 test ! -s conftest.err
13947 }; then
13948 ac_header_preproc=yes
13949 else
13950 $as_echo "$as_me: failed program was:" >&5
13951 sed 's/^/| /' conftest.$ac_ext >&5
13952
13953 ac_header_preproc=no
13954 fi
13955
13956 rm -f conftest.err conftest.$ac_ext
13957 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13958 $as_echo "$ac_header_preproc" >&6; }
13959
13960 # So? What about this header?
13961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13962 yes:no: )
13963 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
13964 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13965 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
13966 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
13967 ac_header_preproc=yes
13968 ;;
13969 no:yes:* )
13970 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
13971 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
13972 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
13973 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
13974 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
13975 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
13976 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
13977 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
13978 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
13979 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
13980 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
13981 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
13982
13983 ;;
13984 esac
13985 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
13986 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
13987 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13988 $as_echo_n "(cached) " >&6
13989 else
13990 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
13991 fi
13992 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13993 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13994
13995 fi
13996 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
13997 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
13998 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; } 9368 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
13999 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then 9369 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
14000 $as_echo_n "(cached) " >&6 9370 $as_echo_n "(cached) " >&6
14001 else 9371 else
14002 ac_check_lib_save_LIBS=$LIBS 9372 ac_check_lib_save_LIBS=$LIBS
14003 LIBS="-lXft $XFT_LIBS $LIBS" 9373 LIBS="-lXft $XFT_LIBS $LIBS"
14004 cat >conftest.$ac_ext <<_ACEOF 9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14005 /* confdefs.h. */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */ 9375 /* end confdefs.h. */
14010 9376
14011 /* Override any GCC internal prototype to avoid an error. 9377 /* Override any GCC internal prototype to avoid an error.
14012 Use char because int might match the return type of a GCC 9378 Use char because int might match the return type of a GCC
14013 builtin and then its argument prototype would still apply. */ 9379 builtin and then its argument prototype would still apply. */
14021 return XftFontOpen (); 9387 return XftFontOpen ();
14022 ; 9388 ;
14023 return 0; 9389 return 0;
14024 } 9390 }
14025 _ACEOF 9391 _ACEOF
14026 rm -f conftest.$ac_objext conftest$ac_exeext 9392 if ac_fn_c_try_link "$LINENO"; then :
14027 if { (ac_try="$ac_link"
14028 case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14031 esac
14032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14033 $as_echo "$ac_try_echo") >&5
14034 (eval "$ac_link") 2>conftest.er1
14035 ac_status=$?
14036 grep -v '^ *+' conftest.er1 >conftest.err
14037 rm -f conftest.er1
14038 cat conftest.err >&5
14039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14040 (exit $ac_status); } && {
14041 test -z "$ac_c_werror_flag" ||
14042 test ! -s conftest.err
14043 } && test -s conftest$ac_exeext && {
14044 test "$cross_compiling" = yes ||
14045 $as_test_x conftest$ac_exeext
14046 }; then
14047 ac_cv_lib_Xft_XftFontOpen=yes 9393 ac_cv_lib_Xft_XftFontOpen=yes
14048 else 9394 else
14049 $as_echo "$as_me: failed program was:" >&5 9395 ac_cv_lib_Xft_XftFontOpen=no
14050 sed 's/^/| /' conftest.$ac_ext >&5 9396 fi
14051 9397 rm -f core conftest.err conftest.$ac_objext \
14052 ac_cv_lib_Xft_XftFontOpen=no 9398 conftest$ac_exeext conftest.$ac_ext
14053 fi
14054
14055 rm -rf conftest.dSYM
14056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14057 conftest$ac_exeext conftest.$ac_ext
14058 LIBS=$ac_check_lib_save_LIBS 9399 LIBS=$ac_check_lib_save_LIBS
14059 fi 9400 fi
14060 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5 9401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14061 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } 9402 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14062 if test $ac_cv_lib_Xft_XftFontOpen = yes; then 9403 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
14063 HAVE_XFT=yes 9404 HAVE_XFT=yes
14064 fi 9405 fi
14065 9406
14066 fi 9407 fi
14067 9408
14068 9409
14069 9410
14070 if test "${HAVE_XFT}" = "yes"; then 9411 if test "${HAVE_XFT}" = "yes"; then
14071 9412
14072 cat >>confdefs.h <<\_ACEOF 9413 $as_echo "#define HAVE_XFT 1" >>confdefs.h
14073 #define HAVE_XFT 1
14074 _ACEOF
14075 9414
14076 9415
14077 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" 9416 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14078 else 9417 else
14079 CPPFLAGS="$OLD_CPPFLAGS" 9418 CPPFLAGS="$OLD_CPPFLAGS"
14098 fi 9437 fi
14099 9438
14100 HAVE_LIBOTF=no 9439 HAVE_LIBOTF=no
14101 if test "${HAVE_FREETYPE}" = "yes"; then 9440 if test "${HAVE_FREETYPE}" = "yes"; then
14102 9441
14103 cat >>confdefs.h <<\_ACEOF 9442 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
14104 #define HAVE_FREETYPE 1
14105 _ACEOF
14106 9443
14107 if test "${with_libotf}" != "no"; then 9444 if test "${with_libotf}" != "no"; then
14108 9445
14109 succeeded=no 9446 succeeded=no
14110 9447
14111 # Extract the first word of "pkg-config", so it can be a program name with args. 9448 # Extract the first word of "pkg-config", so it can be a program name with args.
14112 set dummy pkg-config; ac_word=$2 9449 set dummy pkg-config; ac_word=$2
14113 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14114 $as_echo_n "checking for $ac_word... " >&6; } 9451 $as_echo_n "checking for $ac_word... " >&6; }
14115 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 9452 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14116 $as_echo_n "(cached) " >&6 9453 $as_echo_n "(cached) " >&6
14117 else 9454 else
14118 case $PKG_CONFIG in 9455 case $PKG_CONFIG in
14119 [\\/]* | ?:[\\/]*) 9456 [\\/]* | ?:[\\/]*)
14120 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9457 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14124 for as_dir in $PATH 9461 for as_dir in $PATH
14125 do 9462 do
14126 IFS=$as_save_IFS 9463 IFS=$as_save_IFS
14127 test -z "$as_dir" && as_dir=. 9464 test -z "$as_dir" && as_dir=.
14128 for ac_exec_ext in '' $ac_executable_extensions; do 9465 for ac_exec_ext in '' $ac_executable_extensions; do
14129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9466 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14130 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9467 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14132 break 2 9469 break 2
14133 fi 9470 fi
14134 done 9471 done
14135 done 9472 done
14136 IFS=$as_save_IFS 9473 IFS=$as_save_IFS
14137 9474
14138 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9475 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14139 ;; 9476 ;;
14140 esac 9477 esac
14141 fi 9478 fi
14142 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9479 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14143 if test -n "$PKG_CONFIG"; then 9480 if test -n "$PKG_CONFIG"; then
14144 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14145 $as_echo "$PKG_CONFIG" >&6; } 9482 $as_echo "$PKG_CONFIG" >&6; }
14146 else 9483 else
14147 { $as_echo "$as_me:$LINENO: result: no" >&5 9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14148 $as_echo "no" >&6; } 9485 $as_echo "no" >&6; }
14149 fi 9486 fi
14150 9487
14151 9488
14152 9489
14153 if test "$PKG_CONFIG" = "no" ; then 9490 if test "$PKG_CONFIG" = "no" ; then
14154 HAVE_LIBOTF=no 9491 HAVE_LIBOTF=no
14155 else 9492 else
14156 PKG_CONFIG_MIN_VERSION=0.9.0 9493 PKG_CONFIG_MIN_VERSION=0.9.0
14157 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 9494 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14158 { $as_echo "$as_me:$LINENO: checking for libotf" >&5 9495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
14159 $as_echo_n "checking for libotf... " >&6; } 9496 $as_echo_n "checking for libotf... " >&6; }
14160 9497
14161 if $PKG_CONFIG --exists "libotf" 2>&5; then 9498 if $PKG_CONFIG --exists "libotf" 2>&5; then
14162 { $as_echo "$as_me:$LINENO: result: yes" >&5 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14163 $as_echo "yes" >&6; } 9500 $as_echo "yes" >&6; }
14164 succeeded=yes 9501 succeeded=yes
14165 9502
14166 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5 9503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
14167 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; } 9504 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14168 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` 9505 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14169 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5 9506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
14170 $as_echo "$LIBOTF_CFLAGS" >&6; } 9507 $as_echo "$LIBOTF_CFLAGS" >&6; }
14171 9508
14172 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5 9509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
14173 $as_echo_n "checking LIBOTF_LIBS... " >&6; } 9510 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14174 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` 9511 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14175 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5 9512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
14176 $as_echo "$LIBOTF_LIBS" >&6; } 9513 $as_echo "$LIBOTF_LIBS" >&6; }
14177 else 9514 else
14178 { $as_echo "$as_me:$LINENO: result: no" >&5 9515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14179 $as_echo "no" >&6; } 9516 $as_echo "no" >&6; }
14180 LIBOTF_CFLAGS="" 9517 LIBOTF_CFLAGS=""
14181 LIBOTF_LIBS="" 9518 LIBOTF_LIBS=""
14182 ## If we have a custom action on failure, don't print errors, but 9519 ## If we have a custom action on failure, don't print errors, but
14183 ## do set a variable so people can do so. 9520 ## do set a variable so people can do so.
14199 HAVE_LIBOTF=no 9536 HAVE_LIBOTF=no
14200 fi 9537 fi
14201 9538
14202 if test "$HAVE_LIBOTF" = "yes"; then 9539 if test "$HAVE_LIBOTF" = "yes"; then
14203 9540
14204 cat >>confdefs.h <<\_ACEOF 9541 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
14205 #define HAVE_LIBOTF 1 9542
14206 _ACEOF 9543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
14207
14208 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14209 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } 9544 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14210 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then 9545 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
14211 $as_echo_n "(cached) " >&6 9546 $as_echo_n "(cached) " >&6
14212 else 9547 else
14213 ac_check_lib_save_LIBS=$LIBS 9548 ac_check_lib_save_LIBS=$LIBS
14214 LIBS="-lotf $LIBS" 9549 LIBS="-lotf $LIBS"
14215 cat >conftest.$ac_ext <<_ACEOF 9550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14216 /* confdefs.h. */
14217 _ACEOF
14218 cat confdefs.h >>conftest.$ac_ext
14219 cat >>conftest.$ac_ext <<_ACEOF
14220 /* end confdefs.h. */ 9551 /* end confdefs.h. */
14221 9552
14222 /* Override any GCC internal prototype to avoid an error. 9553 /* Override any GCC internal prototype to avoid an error.
14223 Use char because int might match the return type of a GCC 9554 Use char because int might match the return type of a GCC
14224 builtin and then its argument prototype would still apply. */ 9555 builtin and then its argument prototype would still apply. */
14232 return OTF_get_variation_glyphs (); 9563 return OTF_get_variation_glyphs ();
14233 ; 9564 ;
14234 return 0; 9565 return 0;
14235 } 9566 }
14236 _ACEOF 9567 _ACEOF
14237 rm -f conftest.$ac_objext conftest$ac_exeext 9568 if ac_fn_c_try_link "$LINENO"; then :
14238 if { (ac_try="$ac_link"
14239 case "(($ac_try" in
14240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14241 *) ac_try_echo=$ac_try;;
14242 esac
14243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14244 $as_echo "$ac_try_echo") >&5
14245 (eval "$ac_link") 2>conftest.er1
14246 ac_status=$?
14247 grep -v '^ *+' conftest.er1 >conftest.err
14248 rm -f conftest.er1
14249 cat conftest.err >&5
14250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14251 (exit $ac_status); } && {
14252 test -z "$ac_c_werror_flag" ||
14253 test ! -s conftest.err
14254 } && test -s conftest$ac_exeext && {
14255 test "$cross_compiling" = yes ||
14256 $as_test_x conftest$ac_exeext
14257 }; then
14258 ac_cv_lib_otf_OTF_get_variation_glyphs=yes 9569 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14259 else 9570 else
14260 $as_echo "$as_me: failed program was:" >&5 9571 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14261 sed 's/^/| /' conftest.$ac_ext >&5 9572 fi
14262 9573 rm -f core conftest.err conftest.$ac_objext \
14263 ac_cv_lib_otf_OTF_get_variation_glyphs=no 9574 conftest$ac_exeext conftest.$ac_ext
14264 fi
14265
14266 rm -rf conftest.dSYM
14267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14268 conftest$ac_exeext conftest.$ac_ext
14269 LIBS=$ac_check_lib_save_LIBS 9575 LIBS=$ac_check_lib_save_LIBS
14270 fi 9576 fi
14271 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 9577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14272 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } 9578 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14273 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then 9579 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
14274 HAVE_OTF_GET_VARIATION_GLYPHS=yes 9580 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14275 else 9581 else
14276 HAVE_OTF_GET_VARIATION_GLYPHS=no 9582 HAVE_OTF_GET_VARIATION_GLYPHS=no
14277 fi 9583 fi
14278 9584
14279 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then 9585 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14280 9586
14281 cat >>confdefs.h <<\_ACEOF 9587 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
14282 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14283 _ACEOF
14284 9588
14285 fi 9589 fi
14286 fi 9590 fi
14287 fi 9591 fi
14288 fi 9592 fi
14293 9597
14294 succeeded=no 9598 succeeded=no
14295 9599
14296 # Extract the first word of "pkg-config", so it can be a program name with args. 9600 # Extract the first word of "pkg-config", so it can be a program name with args.
14297 set dummy pkg-config; ac_word=$2 9601 set dummy pkg-config; ac_word=$2
14298 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 9602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14299 $as_echo_n "checking for $ac_word... " >&6; } 9603 $as_echo_n "checking for $ac_word... " >&6; }
14300 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 9604 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14301 $as_echo_n "(cached) " >&6 9605 $as_echo_n "(cached) " >&6
14302 else 9606 else
14303 case $PKG_CONFIG in 9607 case $PKG_CONFIG in
14304 [\\/]* | ?:[\\/]*) 9608 [\\/]* | ?:[\\/]*)
14305 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9609 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309 for as_dir in $PATH 9613 for as_dir in $PATH
14310 do 9614 do
14311 IFS=$as_save_IFS 9615 IFS=$as_save_IFS
14312 test -z "$as_dir" && as_dir=. 9616 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do 9617 for ac_exec_ext in '' $ac_executable_extensions; do
14314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9618 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14315 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9619 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14316 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14317 break 2 9621 break 2
14318 fi 9622 fi
14319 done 9623 done
14320 done 9624 done
14321 IFS=$as_save_IFS 9625 IFS=$as_save_IFS
14322 9626
14323 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9627 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14324 ;; 9628 ;;
14325 esac 9629 esac
14326 fi 9630 fi
14327 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9631 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14328 if test -n "$PKG_CONFIG"; then 9632 if test -n "$PKG_CONFIG"; then
14329 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 9633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14330 $as_echo "$PKG_CONFIG" >&6; } 9634 $as_echo "$PKG_CONFIG" >&6; }
14331 else 9635 else
14332 { $as_echo "$as_me:$LINENO: result: no" >&5 9636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14333 $as_echo "no" >&6; } 9637 $as_echo "no" >&6; }
14334 fi 9638 fi
14335 9639
14336 9640
14337 9641
14338 if test "$PKG_CONFIG" = "no" ; then 9642 if test "$PKG_CONFIG" = "no" ; then
14339 HAVE_M17N_FLT=no 9643 HAVE_M17N_FLT=no
14340 else 9644 else
14341 PKG_CONFIG_MIN_VERSION=0.9.0 9645 PKG_CONFIG_MIN_VERSION=0.9.0
14342 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 9646 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14343 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5 9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
14344 $as_echo_n "checking for m17n-flt... " >&6; } 9648 $as_echo_n "checking for m17n-flt... " >&6; }
14345 9649
14346 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then 9650 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14347 { $as_echo "$as_me:$LINENO: result: yes" >&5 9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14348 $as_echo "yes" >&6; } 9652 $as_echo "yes" >&6; }
14349 succeeded=yes 9653 succeeded=yes
14350 9654
14351 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5 9655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
14352 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } 9656 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14353 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` 9657 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14354 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5 9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
14355 $as_echo "$M17N_FLT_CFLAGS" >&6; } 9659 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14356 9660
14357 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5 9661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
14358 $as_echo_n "checking M17N_FLT_LIBS... " >&6; } 9662 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14359 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` 9663 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14360 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5 9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
14361 $as_echo "$M17N_FLT_LIBS" >&6; } 9665 $as_echo "$M17N_FLT_LIBS" >&6; }
14362 else 9666 else
14363 { $as_echo "$as_me:$LINENO: result: no" >&5 9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14364 $as_echo "no" >&6; } 9668 $as_echo "no" >&6; }
14365 M17N_FLT_CFLAGS="" 9669 M17N_FLT_CFLAGS=""
14366 M17N_FLT_LIBS="" 9670 M17N_FLT_LIBS=""
14367 ## If we have a custom action on failure, don't print errors, but 9671 ## If we have a custom action on failure, don't print errors, but
14368 ## do set a variable so people can do so. 9672 ## do set a variable so people can do so.
14384 HAVE_M17N_FLT=no 9688 HAVE_M17N_FLT=no
14385 fi 9689 fi
14386 9690
14387 if test "$HAVE_M17N_FLT" = "yes"; then 9691 if test "$HAVE_M17N_FLT" = "yes"; then
14388 9692
14389 cat >>confdefs.h <<\_ACEOF 9693 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
14390 #define HAVE_M17N_FLT 1
14391 _ACEOF
14392 9694
14393 fi 9695 fi
14394 fi 9696 fi
14395 fi 9697 fi
14396 else 9698 else
14413 ### Use -lXpm if available, unless `--with-xpm=no'. 9715 ### Use -lXpm if available, unless `--with-xpm=no'.
14414 HAVE_XPM=no 9716 HAVE_XPM=no
14415 LIBXPM= 9717 LIBXPM=
14416 if test "${HAVE_X11}" = "yes"; then 9718 if test "${HAVE_X11}" = "yes"; then
14417 if test "${with_xpm}" != "no"; then 9719 if test "${with_xpm}" != "no"; then
14418 if test "${ac_cv_header_X11_xpm_h+set}" = set; then 9720 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
14419 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 9721 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
14420 $as_echo_n "checking for X11/xpm.h... " >&6; } 9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
14421 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14422 $as_echo_n "(cached) " >&6
14423 fi
14424 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14425 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14426 else
14427 # Is the header compilable?
14428 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14429 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14430 cat >conftest.$ac_ext <<_ACEOF
14431 /* confdefs.h. */
14432 _ACEOF
14433 cat confdefs.h >>conftest.$ac_ext
14434 cat >>conftest.$ac_ext <<_ACEOF
14435 /* end confdefs.h. */
14436 $ac_includes_default
14437 #include <X11/xpm.h>
14438 _ACEOF
14439 rm -f conftest.$ac_objext
14440 if { (ac_try="$ac_compile"
14441 case "(($ac_try" in
14442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14443 *) ac_try_echo=$ac_try;;
14444 esac
14445 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14446 $as_echo "$ac_try_echo") >&5
14447 (eval "$ac_compile") 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } && {
14454 test -z "$ac_c_werror_flag" ||
14455 test ! -s conftest.err
14456 } && test -s conftest.$ac_objext; then
14457 ac_header_compiler=yes
14458 else
14459 $as_echo "$as_me: failed program was:" >&5
14460 sed 's/^/| /' conftest.$ac_ext >&5
14461
14462 ac_header_compiler=no
14463 fi
14464
14465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14466 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14467 $as_echo "$ac_header_compiler" >&6; }
14468
14469 # Is the header present?
14470 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14471 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14472 cat >conftest.$ac_ext <<_ACEOF
14473 /* confdefs.h. */
14474 _ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 #include <X11/xpm.h>
14479 _ACEOF
14480 if { (ac_try="$ac_cpp conftest.$ac_ext"
14481 case "(($ac_try" in
14482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14483 *) ac_try_echo=$ac_try;;
14484 esac
14485 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14486 $as_echo "$ac_try_echo") >&5
14487 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14488 ac_status=$?
14489 grep -v '^ *+' conftest.er1 >conftest.err
14490 rm -f conftest.er1
14491 cat conftest.err >&5
14492 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14493 (exit $ac_status); } >/dev/null && {
14494 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14495 test ! -s conftest.err
14496 }; then
14497 ac_header_preproc=yes
14498 else
14499 $as_echo "$as_me: failed program was:" >&5
14500 sed 's/^/| /' conftest.$ac_ext >&5
14501
14502 ac_header_preproc=no
14503 fi
14504
14505 rm -f conftest.err conftest.$ac_ext
14506 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14507 $as_echo "$ac_header_preproc" >&6; }
14508
14509 # So? What about this header?
14510 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14511 yes:no: )
14512 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14513 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14514 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14515 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14516 ac_header_preproc=yes
14517 ;;
14518 no:yes:* )
14519 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14520 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14521 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14522 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14523 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14524 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14525 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14526 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14527 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14528 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14529 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14530 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14531
14532 ;;
14533 esac
14534 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14535 $as_echo_n "checking for X11/xpm.h... " >&6; }
14536 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14537 $as_echo_n "(cached) " >&6
14538 else
14539 ac_cv_header_X11_xpm_h=$ac_header_preproc
14540 fi
14541 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14542 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14543
14544 fi
14545 if test $ac_cv_header_X11_xpm_h = yes; then
14546 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14547 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } 9723 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14548 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then 9724 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
14549 $as_echo_n "(cached) " >&6 9725 $as_echo_n "(cached) " >&6
14550 else 9726 else
14551 ac_check_lib_save_LIBS=$LIBS 9727 ac_check_lib_save_LIBS=$LIBS
14552 LIBS="-lXpm -lX11 $LIBS" 9728 LIBS="-lXpm -lX11 $LIBS"
14553 cat >conftest.$ac_ext <<_ACEOF 9729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14554 /* confdefs.h. */
14555 _ACEOF
14556 cat confdefs.h >>conftest.$ac_ext
14557 cat >>conftest.$ac_ext <<_ACEOF
14558 /* end confdefs.h. */ 9730 /* end confdefs.h. */
14559 9731
14560 /* Override any GCC internal prototype to avoid an error. 9732 /* Override any GCC internal prototype to avoid an error.
14561 Use char because int might match the return type of a GCC 9733 Use char because int might match the return type of a GCC
14562 builtin and then its argument prototype would still apply. */ 9734 builtin and then its argument prototype would still apply. */
14570 return XpmReadFileToPixmap (); 9742 return XpmReadFileToPixmap ();
14571 ; 9743 ;
14572 return 0; 9744 return 0;
14573 } 9745 }
14574 _ACEOF 9746 _ACEOF
14575 rm -f conftest.$ac_objext conftest$ac_exeext 9747 if ac_fn_c_try_link "$LINENO"; then :
14576 if { (ac_try="$ac_link"
14577 case "(($ac_try" in
14578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14579 *) ac_try_echo=$ac_try;;
14580 esac
14581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14582 $as_echo "$ac_try_echo") >&5
14583 (eval "$ac_link") 2>conftest.er1
14584 ac_status=$?
14585 grep -v '^ *+' conftest.er1 >conftest.err
14586 rm -f conftest.er1
14587 cat conftest.err >&5
14588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14589 (exit $ac_status); } && {
14590 test -z "$ac_c_werror_flag" ||
14591 test ! -s conftest.err
14592 } && test -s conftest$ac_exeext && {
14593 test "$cross_compiling" = yes ||
14594 $as_test_x conftest$ac_exeext
14595 }; then
14596 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes 9748 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14597 else 9749 else
14598 $as_echo "$as_me: failed program was:" >&5 9750 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14599 sed 's/^/| /' conftest.$ac_ext >&5 9751 fi
14600 9752 rm -f core conftest.err conftest.$ac_objext \
14601 ac_cv_lib_Xpm_XpmReadFileToPixmap=no 9753 conftest$ac_exeext conftest.$ac_ext
14602 fi
14603
14604 rm -rf conftest.dSYM
14605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14606 conftest$ac_exeext conftest.$ac_ext
14607 LIBS=$ac_check_lib_save_LIBS 9754 LIBS=$ac_check_lib_save_LIBS
14608 fi 9755 fi
14609 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 9756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14610 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } 9757 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14611 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then 9758 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
14612 HAVE_XPM=yes 9759 HAVE_XPM=yes
14613 fi 9760 fi
14614 9761
14615 fi 9762 fi
14616 9763
14617 9764
14618 if test "${HAVE_XPM}" = "yes"; then 9765 if test "${HAVE_XPM}" = "yes"; then
14619 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 9766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
14620 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } 9767 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14621 cat >conftest.$ac_ext <<_ACEOF 9768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14622 /* confdefs.h. */
14623 _ACEOF
14624 cat confdefs.h >>conftest.$ac_ext
14625 cat >>conftest.$ac_ext <<_ACEOF
14626 /* end confdefs.h. */ 9769 /* end confdefs.h. */
14627 #include "X11/xpm.h" 9770 #include "X11/xpm.h"
14628 #ifndef XpmReturnAllocPixels 9771 #ifndef XpmReturnAllocPixels
14629 no_return_alloc_pixels 9772 no_return_alloc_pixels
14630 #endif 9773 #endif
14631 9774
14632 _ACEOF 9775 _ACEOF
14633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14634 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then 9777 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
14635 HAVE_XPM=no 9778 HAVE_XPM=no
14636 else 9779 else
14637 HAVE_XPM=yes 9780 HAVE_XPM=yes
14638 fi 9781 fi
14639 rm -f conftest* 9782 rm -f conftest*
14640 9783
14641 9784
14642 if test "${HAVE_XPM}" = "yes"; then 9785 if test "${HAVE_XPM}" = "yes"; then
14643 { $as_echo "$as_me:$LINENO: result: yes" >&5 9786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14644 $as_echo "yes" >&6; } 9787 $as_echo "yes" >&6; }
14645 else 9788 else
14646 { $as_echo "$as_me:$LINENO: result: no" >&5 9789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14647 $as_echo "no" >&6; } 9790 $as_echo "no" >&6; }
14648 fi 9791 fi
14649 fi 9792 fi
14650 fi 9793 fi
14651 9794
14652 if test "${HAVE_XPM}" = "yes"; then 9795 if test "${HAVE_XPM}" = "yes"; then
14653 9796
14654 cat >>confdefs.h <<\_ACEOF 9797 $as_echo "#define HAVE_XPM 1" >>confdefs.h
14655 #define HAVE_XPM 1
14656 _ACEOF
14657 9798
14658 LIBXPM=-lXpm 9799 LIBXPM=-lXpm
14659 fi 9800 fi
14660 fi 9801 fi
14661 9802
14663 ### Use -ljpeg if available, unless `--with-jpeg=no'. 9804 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14664 HAVE_JPEG=no 9805 HAVE_JPEG=no
14665 LIBJPEG= 9806 LIBJPEG=
14666 if test "${HAVE_X11}" = "yes"; then 9807 if test "${HAVE_X11}" = "yes"; then
14667 if test "${with_jpeg}" != "no"; then 9808 if test "${with_jpeg}" != "no"; then
14668 if test "${ac_cv_header_jerror_h+set}" = set; then 9809 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
14669 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5 9810 if test "x$ac_cv_header_jerror_h" = x""yes; then :
14670 $as_echo_n "checking for jerror.h... " >&6; } 9811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
14671 if test "${ac_cv_header_jerror_h+set}" = set; then
14672 $as_echo_n "(cached) " >&6
14673 fi
14674 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14675 $as_echo "$ac_cv_header_jerror_h" >&6; }
14676 else
14677 # Is the header compilable?
14678 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14679 $as_echo_n "checking jerror.h usability... " >&6; }
14680 cat >conftest.$ac_ext <<_ACEOF
14681 /* confdefs.h. */
14682 _ACEOF
14683 cat confdefs.h >>conftest.$ac_ext
14684 cat >>conftest.$ac_ext <<_ACEOF
14685 /* end confdefs.h. */
14686 $ac_includes_default
14687 #include <jerror.h>
14688 _ACEOF
14689 rm -f conftest.$ac_objext
14690 if { (ac_try="$ac_compile"
14691 case "(($ac_try" in
14692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14694 esac
14695 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14696 $as_echo "$ac_try_echo") >&5
14697 (eval "$ac_compile") 2>conftest.er1
14698 ac_status=$?
14699 grep -v '^ *+' conftest.er1 >conftest.err
14700 rm -f conftest.er1
14701 cat conftest.err >&5
14702 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && {
14704 test -z "$ac_c_werror_flag" ||
14705 test ! -s conftest.err
14706 } && test -s conftest.$ac_objext; then
14707 ac_header_compiler=yes
14708 else
14709 $as_echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14711
14712 ac_header_compiler=no
14713 fi
14714
14715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14716 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14717 $as_echo "$ac_header_compiler" >&6; }
14718
14719 # Is the header present?
14720 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14721 $as_echo_n "checking jerror.h presence... " >&6; }
14722 cat >conftest.$ac_ext <<_ACEOF
14723 /* confdefs.h. */
14724 _ACEOF
14725 cat confdefs.h >>conftest.$ac_ext
14726 cat >>conftest.$ac_ext <<_ACEOF
14727 /* end confdefs.h. */
14728 #include <jerror.h>
14729 _ACEOF
14730 if { (ac_try="$ac_cpp conftest.$ac_ext"
14731 case "(($ac_try" in
14732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14733 *) ac_try_echo=$ac_try;;
14734 esac
14735 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14736 $as_echo "$ac_try_echo") >&5
14737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } >/dev/null && {
14744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14745 test ! -s conftest.err
14746 }; then
14747 ac_header_preproc=yes
14748 else
14749 $as_echo "$as_me: failed program was:" >&5
14750 sed 's/^/| /' conftest.$ac_ext >&5
14751
14752 ac_header_preproc=no
14753 fi
14754
14755 rm -f conftest.err conftest.$ac_ext
14756 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14757 $as_echo "$ac_header_preproc" >&6; }
14758
14759 # So? What about this header?
14760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14761 yes:no: )
14762 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14763 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14764 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14765 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14766 ac_header_preproc=yes
14767 ;;
14768 no:yes:* )
14769 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14770 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14771 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14772 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14773 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14774 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14775 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14776 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14777 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14778 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14779 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14780 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14781
14782 ;;
14783 esac
14784 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14785 $as_echo_n "checking for jerror.h... " >&6; }
14786 if test "${ac_cv_header_jerror_h+set}" = set; then
14787 $as_echo_n "(cached) " >&6
14788 else
14789 ac_cv_header_jerror_h=$ac_header_preproc
14790 fi
14791 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14792 $as_echo "$ac_cv_header_jerror_h" >&6; }
14793
14794 fi
14795 if test $ac_cv_header_jerror_h = yes; then
14796 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14797 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } 9812 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14798 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then 9813 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
14799 $as_echo_n "(cached) " >&6 9814 $as_echo_n "(cached) " >&6
14800 else 9815 else
14801 ac_check_lib_save_LIBS=$LIBS 9816 ac_check_lib_save_LIBS=$LIBS
14802 LIBS="-ljpeg $LIBS" 9817 LIBS="-ljpeg $LIBS"
14803 cat >conftest.$ac_ext <<_ACEOF 9818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14804 /* confdefs.h. */
14805 _ACEOF
14806 cat confdefs.h >>conftest.$ac_ext
14807 cat >>conftest.$ac_ext <<_ACEOF
14808 /* end confdefs.h. */ 9819 /* end confdefs.h. */
14809 9820
14810 /* Override any GCC internal prototype to avoid an error. 9821 /* Override any GCC internal prototype to avoid an error.
14811 Use char because int might match the return type of a GCC 9822 Use char because int might match the return type of a GCC
14812 builtin and then its argument prototype would still apply. */ 9823 builtin and then its argument prototype would still apply. */
14820 return jpeg_destroy_compress (); 9831 return jpeg_destroy_compress ();
14821 ; 9832 ;
14822 return 0; 9833 return 0;
14823 } 9834 }
14824 _ACEOF 9835 _ACEOF
14825 rm -f conftest.$ac_objext conftest$ac_exeext 9836 if ac_fn_c_try_link "$LINENO"; then :
14826 if { (ac_try="$ac_link"
14827 case "(($ac_try" in
14828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14829 *) ac_try_echo=$ac_try;;
14830 esac
14831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14832 $as_echo "$ac_try_echo") >&5
14833 (eval "$ac_link") 2>conftest.er1
14834 ac_status=$?
14835 grep -v '^ *+' conftest.er1 >conftest.err
14836 rm -f conftest.er1
14837 cat conftest.err >&5
14838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14839 (exit $ac_status); } && {
14840 test -z "$ac_c_werror_flag" ||
14841 test ! -s conftest.err
14842 } && test -s conftest$ac_exeext && {
14843 test "$cross_compiling" = yes ||
14844 $as_test_x conftest$ac_exeext
14845 }; then
14846 ac_cv_lib_jpeg_jpeg_destroy_compress=yes 9837 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14847 else 9838 else
14848 $as_echo "$as_me: failed program was:" >&5 9839 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14849 sed 's/^/| /' conftest.$ac_ext >&5 9840 fi
14850 9841 rm -f core conftest.err conftest.$ac_objext \
14851 ac_cv_lib_jpeg_jpeg_destroy_compress=no 9842 conftest$ac_exeext conftest.$ac_ext
14852 fi
14853
14854 rm -rf conftest.dSYM
14855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14856 conftest$ac_exeext conftest.$ac_ext
14857 LIBS=$ac_check_lib_save_LIBS 9843 LIBS=$ac_check_lib_save_LIBS
14858 fi 9844 fi
14859 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 9845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14860 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } 9846 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14861 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then 9847 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
14862 HAVE_JPEG=yes 9848 HAVE_JPEG=yes
14863 fi 9849 fi
14864 9850
14865 fi 9851 fi
14866 9852
14867 9853
14868 fi 9854 fi
14869 9855
14870 9856 if test "${HAVE_JPEG}" = "yes"; then
14871 if test "${HAVE_JPEG}" = "yes"; then 9857 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
14872 cat >>confdefs.h <<\_ACEOF 9858
14873 #define HAVE_JPEG 1 9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14874 _ACEOF
14875
14876 cat >conftest.$ac_ext <<_ACEOF
14877 /* confdefs.h. */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */ 9860 /* end confdefs.h. */
14882 #include <jpeglib.h> 9861 #include <jpeglib.h>
14883 version=JPEG_LIB_VERSION 9862 version=JPEG_LIB_VERSION
14884 9863
14885 _ACEOF 9864 _ACEOF
14886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14887 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then 9866 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
14888 cat >>confdefs.h <<\_ACEOF 9867 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
14889 #define HAVE_JPEG 1 9868
14890 _ACEOF 9869 else
14891 9870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
14892 else
14893 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14894 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} 9871 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14895 HAVE_JPEG=no 9872 HAVE_JPEG=no
14896 fi 9873 fi
14897 rm -f conftest* 9874 rm -f conftest*
14898 9875
14908 LIBPNG= 9885 LIBPNG=
14909 if test "${HAVE_X11}" = "yes"; then 9886 if test "${HAVE_X11}" = "yes"; then
14910 if test "${with_png}" != "no"; then 9887 if test "${with_png}" != "no"; then
14911 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h 9888 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14912 # in /usr/include/libpng. 9889 # in /usr/include/libpng.
14913 9890 for ac_header in png.h libpng/png.h
14914 9891 do :
14915 for ac_header in png.h libpng/png.h 9892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14916 do 9893 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14917 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9894 eval as_val=\$$as_ac_Header
14918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9895 if test "x$as_val" = x""yes; then :
14919 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14920 $as_echo_n "checking for $ac_header... " >&6; }
14921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14922 $as_echo_n "(cached) " >&6
14923 fi
14924 ac_res=`eval 'as_val=${'$as_ac_Header'}
14925 $as_echo "$as_val"'`
14926 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14927 $as_echo "$ac_res" >&6; }
14928 else
14929 # Is the header compilable?
14930 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14931 $as_echo_n "checking $ac_header usability... " >&6; }
14932 cat >conftest.$ac_ext <<_ACEOF
14933 /* confdefs.h. */
14934 _ACEOF
14935 cat confdefs.h >>conftest.$ac_ext
14936 cat >>conftest.$ac_ext <<_ACEOF
14937 /* end confdefs.h. */
14938 $ac_includes_default
14939 #include <$ac_header>
14940 _ACEOF
14941 rm -f conftest.$ac_objext
14942 if { (ac_try="$ac_compile"
14943 case "(($ac_try" in
14944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14945 *) ac_try_echo=$ac_try;;
14946 esac
14947 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14948 $as_echo "$ac_try_echo") >&5
14949 (eval "$ac_compile") 2>conftest.er1
14950 ac_status=$?
14951 grep -v '^ *+' conftest.er1 >conftest.err
14952 rm -f conftest.er1
14953 cat conftest.err >&5
14954 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); } && {
14956 test -z "$ac_c_werror_flag" ||
14957 test ! -s conftest.err
14958 } && test -s conftest.$ac_objext; then
14959 ac_header_compiler=yes
14960 else
14961 $as_echo "$as_me: failed program was:" >&5
14962 sed 's/^/| /' conftest.$ac_ext >&5
14963
14964 ac_header_compiler=no
14965 fi
14966
14967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14968 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14969 $as_echo "$ac_header_compiler" >&6; }
14970
14971 # Is the header present?
14972 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
14973 $as_echo_n "checking $ac_header presence... " >&6; }
14974 cat >conftest.$ac_ext <<_ACEOF
14975 /* confdefs.h. */
14976 _ACEOF
14977 cat confdefs.h >>conftest.$ac_ext
14978 cat >>conftest.$ac_ext <<_ACEOF
14979 /* end confdefs.h. */
14980 #include <$ac_header>
14981 _ACEOF
14982 if { (ac_try="$ac_cpp conftest.$ac_ext"
14983 case "(($ac_try" in
14984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14985 *) ac_try_echo=$ac_try;;
14986 esac
14987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14988 $as_echo "$ac_try_echo") >&5
14989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14990 ac_status=$?
14991 grep -v '^ *+' conftest.er1 >conftest.err
14992 rm -f conftest.er1
14993 cat conftest.err >&5
14994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995 (exit $ac_status); } >/dev/null && {
14996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14997 test ! -s conftest.err
14998 }; then
14999 ac_header_preproc=yes
15000 else
15001 $as_echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15003
15004 ac_header_preproc=no
15005 fi
15006
15007 rm -f conftest.err conftest.$ac_ext
15008 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15009 $as_echo "$ac_header_preproc" >&6; }
15010
15011 # So? What about this header?
15012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15013 yes:no: )
15014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15015 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15017 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15018 ac_header_preproc=yes
15019 ;;
15020 no:yes:* )
15021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15022 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15024 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15025 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15026 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15027 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15028 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15030 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15032 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15033
15034 ;;
15035 esac
15036 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15037 $as_echo_n "checking for $ac_header... " >&6; }
15038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15039 $as_echo_n "(cached) " >&6
15040 else
15041 eval "$as_ac_Header=\$ac_header_preproc"
15042 fi
15043 ac_res=`eval 'as_val=${'$as_ac_Header'}
15044 $as_echo "$as_val"'`
15045 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15046 $as_echo "$ac_res" >&6; }
15047
15048 fi
15049 if test `eval 'as_val=${'$as_ac_Header'}
15050 $as_echo "$as_val"'` = yes; then
15051 cat >>confdefs.h <<_ACEOF 9896 cat >>confdefs.h <<_ACEOF
15052 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9897 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15053 _ACEOF 9898 _ACEOF
15054 9899
15055 fi 9900 fi
15056 9901
15057 done 9902 done
15058 9903
15059 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then 9904 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15060 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
15061 $as_echo_n "checking for png_get_channels in -lpng... " >&6; } 9906 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15062 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then 9907 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
15063 $as_echo_n "(cached) " >&6 9908 $as_echo_n "(cached) " >&6
15064 else 9909 else
15065 ac_check_lib_save_LIBS=$LIBS 9910 ac_check_lib_save_LIBS=$LIBS
15066 LIBS="-lpng -lz -lm $LIBS" 9911 LIBS="-lpng -lz -lm $LIBS"
15067 cat >conftest.$ac_ext <<_ACEOF 9912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15068 /* confdefs.h. */
15069 _ACEOF
15070 cat confdefs.h >>conftest.$ac_ext
15071 cat >>conftest.$ac_ext <<_ACEOF
15072 /* end confdefs.h. */ 9913 /* end confdefs.h. */
15073 9914
15074 /* Override any GCC internal prototype to avoid an error. 9915 /* Override any GCC internal prototype to avoid an error.
15075 Use char because int might match the return type of a GCC 9916 Use char because int might match the return type of a GCC
15076 builtin and then its argument prototype would still apply. */ 9917 builtin and then its argument prototype would still apply. */
15084 return png_get_channels (); 9925 return png_get_channels ();
15085 ; 9926 ;
15086 return 0; 9927 return 0;
15087 } 9928 }
15088 _ACEOF 9929 _ACEOF
15089 rm -f conftest.$ac_objext conftest$ac_exeext 9930 if ac_fn_c_try_link "$LINENO"; then :
15090 if { (ac_try="$ac_link"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094 esac
15095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15096 $as_echo "$ac_try_echo") >&5
15097 (eval "$ac_link") 2>conftest.er1
15098 ac_status=$?
15099 grep -v '^ *+' conftest.er1 >conftest.err
15100 rm -f conftest.er1
15101 cat conftest.err >&5
15102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15103 (exit $ac_status); } && {
15104 test -z "$ac_c_werror_flag" ||
15105 test ! -s conftest.err
15106 } && test -s conftest$ac_exeext && {
15107 test "$cross_compiling" = yes ||
15108 $as_test_x conftest$ac_exeext
15109 }; then
15110 ac_cv_lib_png_png_get_channels=yes 9931 ac_cv_lib_png_png_get_channels=yes
15111 else 9932 else
15112 $as_echo "$as_me: failed program was:" >&5 9933 ac_cv_lib_png_png_get_channels=no
15113 sed 's/^/| /' conftest.$ac_ext >&5 9934 fi
15114 9935 rm -f core conftest.err conftest.$ac_objext \
15115 ac_cv_lib_png_png_get_channels=no 9936 conftest$ac_exeext conftest.$ac_ext
15116 fi
15117
15118 rm -rf conftest.dSYM
15119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15120 conftest$ac_exeext conftest.$ac_ext
15121 LIBS=$ac_check_lib_save_LIBS 9937 LIBS=$ac_check_lib_save_LIBS
15122 fi 9938 fi
15123 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
15124 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; } 9940 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15125 if test $ac_cv_lib_png_png_get_channels = yes; then 9941 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
15126 HAVE_PNG=yes 9942 HAVE_PNG=yes
15127 fi 9943 fi
15128 9944
15129 fi 9945 fi
15130 fi 9946 fi
15131 9947
15132 if test "${HAVE_PNG}" = "yes"; then 9948 if test "${HAVE_PNG}" = "yes"; then
15133 9949
15134 cat >>confdefs.h <<\_ACEOF 9950 $as_echo "#define HAVE_PNG 1" >>confdefs.h
15135 #define HAVE_PNG 1
15136 _ACEOF
15137 9951
15138 LIBPNG="-lpng -lz -lm" 9952 LIBPNG="-lpng -lz -lm"
15139 fi 9953 fi
15140 fi 9954 fi
15141 9955
15143 ### Use -ltiff if available, unless `--with-tiff=no'. 9957 ### Use -ltiff if available, unless `--with-tiff=no'.
15144 HAVE_TIFF=no 9958 HAVE_TIFF=no
15145 LIBTIFF= 9959 LIBTIFF=
15146 if test "${HAVE_X11}" = "yes"; then 9960 if test "${HAVE_X11}" = "yes"; then
15147 if test "${with_tiff}" != "no"; then 9961 if test "${with_tiff}" != "no"; then
15148 if test "${ac_cv_header_tiffio_h+set}" = set; then 9962 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
15149 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5 9963 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
15150 $as_echo_n "checking for tiffio.h... " >&6; }
15151 if test "${ac_cv_header_tiffio_h+set}" = set; then
15152 $as_echo_n "(cached) " >&6
15153 fi
15154 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15155 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15156 else
15157 # Is the header compilable?
15158 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15159 $as_echo_n "checking tiffio.h usability... " >&6; }
15160 cat >conftest.$ac_ext <<_ACEOF
15161 /* confdefs.h. */
15162 _ACEOF
15163 cat confdefs.h >>conftest.$ac_ext
15164 cat >>conftest.$ac_ext <<_ACEOF
15165 /* end confdefs.h. */
15166 $ac_includes_default
15167 #include <tiffio.h>
15168 _ACEOF
15169 rm -f conftest.$ac_objext
15170 if { (ac_try="$ac_compile"
15171 case "(($ac_try" in
15172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15173 *) ac_try_echo=$ac_try;;
15174 esac
15175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15176 $as_echo "$ac_try_echo") >&5
15177 (eval "$ac_compile") 2>conftest.er1
15178 ac_status=$?
15179 grep -v '^ *+' conftest.er1 >conftest.err
15180 rm -f conftest.er1
15181 cat conftest.err >&5
15182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15183 (exit $ac_status); } && {
15184 test -z "$ac_c_werror_flag" ||
15185 test ! -s conftest.err
15186 } && test -s conftest.$ac_objext; then
15187 ac_header_compiler=yes
15188 else
15189 $as_echo "$as_me: failed program was:" >&5
15190 sed 's/^/| /' conftest.$ac_ext >&5
15191
15192 ac_header_compiler=no
15193 fi
15194
15195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15196 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15197 $as_echo "$ac_header_compiler" >&6; }
15198
15199 # Is the header present?
15200 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15201 $as_echo_n "checking tiffio.h presence... " >&6; }
15202 cat >conftest.$ac_ext <<_ACEOF
15203 /* confdefs.h. */
15204 _ACEOF
15205 cat confdefs.h >>conftest.$ac_ext
15206 cat >>conftest.$ac_ext <<_ACEOF
15207 /* end confdefs.h. */
15208 #include <tiffio.h>
15209 _ACEOF
15210 if { (ac_try="$ac_cpp conftest.$ac_ext"
15211 case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214 esac
15215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15216 $as_echo "$ac_try_echo") >&5
15217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15218 ac_status=$?
15219 grep -v '^ *+' conftest.er1 >conftest.err
15220 rm -f conftest.er1
15221 cat conftest.err >&5
15222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } >/dev/null && {
15224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15225 test ! -s conftest.err
15226 }; then
15227 ac_header_preproc=yes
15228 else
15229 $as_echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15231
15232 ac_header_preproc=no
15233 fi
15234
15235 rm -f conftest.err conftest.$ac_ext
15236 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15237 $as_echo "$ac_header_preproc" >&6; }
15238
15239 # So? What about this header?
15240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15241 yes:no: )
15242 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15243 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15244 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15245 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15246 ac_header_preproc=yes
15247 ;;
15248 no:yes:* )
15249 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15250 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15251 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15252 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15253 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15254 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15255 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15256 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15257 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15258 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15259 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15260 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15261
15262 ;;
15263 esac
15264 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15265 $as_echo_n "checking for tiffio.h... " >&6; }
15266 if test "${ac_cv_header_tiffio_h+set}" = set; then
15267 $as_echo_n "(cached) " >&6
15268 else
15269 ac_cv_header_tiffio_h=$ac_header_preproc
15270 fi
15271 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15272 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15273
15274 fi
15275 if test $ac_cv_header_tiffio_h = yes; then
15276 tifflibs="-lz -lm" 9964 tifflibs="-lz -lm"
15277 # At least one tiff package requires the jpeg library. 9965 # At least one tiff package requires the jpeg library.
15278 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 9966 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15279 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 9967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
15280 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } 9968 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15281 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then 9969 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
15282 $as_echo_n "(cached) " >&6 9970 $as_echo_n "(cached) " >&6
15283 else 9971 else
15284 ac_check_lib_save_LIBS=$LIBS 9972 ac_check_lib_save_LIBS=$LIBS
15285 LIBS="-ltiff $tifflibs $LIBS" 9973 LIBS="-ltiff $tifflibs $LIBS"
15286 cat >conftest.$ac_ext <<_ACEOF 9974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15287 /* confdefs.h. */
15288 _ACEOF
15289 cat confdefs.h >>conftest.$ac_ext
15290 cat >>conftest.$ac_ext <<_ACEOF
15291 /* end confdefs.h. */ 9975 /* end confdefs.h. */
15292 9976
15293 /* Override any GCC internal prototype to avoid an error. 9977 /* Override any GCC internal prototype to avoid an error.
15294 Use char because int might match the return type of a GCC 9978 Use char because int might match the return type of a GCC
15295 builtin and then its argument prototype would still apply. */ 9979 builtin and then its argument prototype would still apply. */
15303 return TIFFGetVersion (); 9987 return TIFFGetVersion ();
15304 ; 9988 ;
15305 return 0; 9989 return 0;
15306 } 9990 }
15307 _ACEOF 9991 _ACEOF
15308 rm -f conftest.$ac_objext conftest$ac_exeext 9992 if ac_fn_c_try_link "$LINENO"; then :
15309 if { (ac_try="$ac_link"
15310 case "(($ac_try" in
15311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15312 *) ac_try_echo=$ac_try;;
15313 esac
15314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15315 $as_echo "$ac_try_echo") >&5
15316 (eval "$ac_link") 2>conftest.er1
15317 ac_status=$?
15318 grep -v '^ *+' conftest.er1 >conftest.err
15319 rm -f conftest.er1
15320 cat conftest.err >&5
15321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15322 (exit $ac_status); } && {
15323 test -z "$ac_c_werror_flag" ||
15324 test ! -s conftest.err
15325 } && test -s conftest$ac_exeext && {
15326 test "$cross_compiling" = yes ||
15327 $as_test_x conftest$ac_exeext
15328 }; then
15329 ac_cv_lib_tiff_TIFFGetVersion=yes 9993 ac_cv_lib_tiff_TIFFGetVersion=yes
15330 else 9994 else
15331 $as_echo "$as_me: failed program was:" >&5 9995 ac_cv_lib_tiff_TIFFGetVersion=no
15332 sed 's/^/| /' conftest.$ac_ext >&5 9996 fi
15333 9997 rm -f core conftest.err conftest.$ac_objext \
15334 ac_cv_lib_tiff_TIFFGetVersion=no 9998 conftest$ac_exeext conftest.$ac_ext
15335 fi
15336
15337 rm -rf conftest.dSYM
15338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15339 conftest$ac_exeext conftest.$ac_ext
15340 LIBS=$ac_check_lib_save_LIBS 9999 LIBS=$ac_check_lib_save_LIBS
15341 fi 10000 fi
15342 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 10001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15343 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } 10002 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15344 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then 10003 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
15345 HAVE_TIFF=yes 10004 HAVE_TIFF=yes
15346 fi 10005 fi
15347 10006
15348 fi 10007 fi
15349 10008
15350 10009
15351 fi 10010 fi
15352 10011
15353 if test "${HAVE_TIFF}" = "yes"; then 10012 if test "${HAVE_TIFF}" = "yes"; then
15354 10013
15355 cat >>confdefs.h <<\_ACEOF 10014 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
15356 #define HAVE_TIFF 1
15357 _ACEOF
15358 10015
15359 LIBTIFF=-ltiff 10016 LIBTIFF=-ltiff
15360 fi 10017 fi
15361 fi 10018 fi
15362 10019
15363 10020
15364 ### Use -lgif or -lungif if available, unless `--with-gif=no'. 10021 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15365 HAVE_GIF=no 10022 HAVE_GIF=no
15366 LIBGIF= 10023 LIBGIF=
15367 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then 10024 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15368 if test "${ac_cv_header_gif_lib_h+set}" = set; then 10025 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
15369 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5 10026 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
15370 $as_echo_n "checking for gif_lib.h... " >&6; }
15371 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15372 $as_echo_n "(cached) " >&6
15373 fi
15374 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15375 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15376 else
15377 # Is the header compilable?
15378 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15379 $as_echo_n "checking gif_lib.h usability... " >&6; }
15380 cat >conftest.$ac_ext <<_ACEOF
15381 /* confdefs.h. */
15382 _ACEOF
15383 cat confdefs.h >>conftest.$ac_ext
15384 cat >>conftest.$ac_ext <<_ACEOF
15385 /* end confdefs.h. */
15386 $ac_includes_default
15387 #include <gif_lib.h>
15388 _ACEOF
15389 rm -f conftest.$ac_objext
15390 if { (ac_try="$ac_compile"
15391 case "(($ac_try" in
15392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15393 *) ac_try_echo=$ac_try;;
15394 esac
15395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15396 $as_echo "$ac_try_echo") >&5
15397 (eval "$ac_compile") 2>conftest.er1
15398 ac_status=$?
15399 grep -v '^ *+' conftest.er1 >conftest.err
15400 rm -f conftest.er1
15401 cat conftest.err >&5
15402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15403 (exit $ac_status); } && {
15404 test -z "$ac_c_werror_flag" ||
15405 test ! -s conftest.err
15406 } && test -s conftest.$ac_objext; then
15407 ac_header_compiler=yes
15408 else
15409 $as_echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15411
15412 ac_header_compiler=no
15413 fi
15414
15415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15417 $as_echo "$ac_header_compiler" >&6; }
15418
15419 # Is the header present?
15420 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15421 $as_echo_n "checking gif_lib.h presence... " >&6; }
15422 cat >conftest.$ac_ext <<_ACEOF
15423 /* confdefs.h. */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428 #include <gif_lib.h>
15429 _ACEOF
15430 if { (ac_try="$ac_cpp conftest.$ac_ext"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15434 esac
15435 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15436 $as_echo "$ac_try_echo") >&5
15437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15438 ac_status=$?
15439 grep -v '^ *+' conftest.er1 >conftest.err
15440 rm -f conftest.er1
15441 cat conftest.err >&5
15442 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443 (exit $ac_status); } >/dev/null && {
15444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15445 test ! -s conftest.err
15446 }; then
15447 ac_header_preproc=yes
15448 else
15449 $as_echo "$as_me: failed program was:" >&5
15450 sed 's/^/| /' conftest.$ac_ext >&5
15451
15452 ac_header_preproc=no
15453 fi
15454
15455 rm -f conftest.err conftest.$ac_ext
15456 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15457 $as_echo "$ac_header_preproc" >&6; }
15458
15459 # So? What about this header?
15460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15461 yes:no: )
15462 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15463 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15464 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15465 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15466 ac_header_preproc=yes
15467 ;;
15468 no:yes:* )
15469 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15470 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15471 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15472 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15473 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15474 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15475 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15476 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15477 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15478 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15479 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15480 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15481
15482 ;;
15483 esac
15484 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15485 $as_echo_n "checking for gif_lib.h... " >&6; }
15486 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15487 $as_echo_n "(cached) " >&6
15488 else
15489 ac_cv_header_gif_lib_h=$ac_header_preproc
15490 fi
15491 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15492 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15493
15494 fi
15495 if test $ac_cv_header_gif_lib_h = yes; then
15496 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. 10027 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15497 # Earlier versions can crash Emacs. 10028 # Earlier versions can crash Emacs.
15498 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5 10029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
15499 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } 10030 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15500 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then 10031 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
15501 $as_echo_n "(cached) " >&6 10032 $as_echo_n "(cached) " >&6
15502 else 10033 else
15503 ac_check_lib_save_LIBS=$LIBS 10034 ac_check_lib_save_LIBS=$LIBS
15504 LIBS="-lgif $LIBS" 10035 LIBS="-lgif $LIBS"
15505 cat >conftest.$ac_ext <<_ACEOF 10036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15506 /* confdefs.h. */
15507 _ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h. */ 10037 /* end confdefs.h. */
15511 10038
15512 /* Override any GCC internal prototype to avoid an error. 10039 /* Override any GCC internal prototype to avoid an error.
15513 Use char because int might match the return type of a GCC 10040 Use char because int might match the return type of a GCC
15514 builtin and then its argument prototype would still apply. */ 10041 builtin and then its argument prototype would still apply. */
15522 return EGifPutExtensionLast (); 10049 return EGifPutExtensionLast ();
15523 ; 10050 ;
15524 return 0; 10051 return 0;
15525 } 10052 }
15526 _ACEOF 10053 _ACEOF
15527 rm -f conftest.$ac_objext conftest$ac_exeext 10054 if ac_fn_c_try_link "$LINENO"; then :
15528 if { (ac_try="$ac_link"
15529 case "(($ac_try" in
15530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15531 *) ac_try_echo=$ac_try;;
15532 esac
15533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15534 $as_echo "$ac_try_echo") >&5
15535 (eval "$ac_link") 2>conftest.er1
15536 ac_status=$?
15537 grep -v '^ *+' conftest.er1 >conftest.err
15538 rm -f conftest.er1
15539 cat conftest.err >&5
15540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15541 (exit $ac_status); } && {
15542 test -z "$ac_c_werror_flag" ||
15543 test ! -s conftest.err
15544 } && test -s conftest$ac_exeext && {
15545 test "$cross_compiling" = yes ||
15546 $as_test_x conftest$ac_exeext
15547 }; then
15548 ac_cv_lib_gif_EGifPutExtensionLast=yes 10055 ac_cv_lib_gif_EGifPutExtensionLast=yes
15549 else 10056 else
15550 $as_echo "$as_me: failed program was:" >&5 10057 ac_cv_lib_gif_EGifPutExtensionLast=no
15551 sed 's/^/| /' conftest.$ac_ext >&5 10058 fi
15552 10059 rm -f core conftest.err conftest.$ac_objext \
15553 ac_cv_lib_gif_EGifPutExtensionLast=no 10060 conftest$ac_exeext conftest.$ac_ext
15554 fi
15555
15556 rm -rf conftest.dSYM
15557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15558 conftest$ac_exeext conftest.$ac_ext
15559 LIBS=$ac_check_lib_save_LIBS 10061 LIBS=$ac_check_lib_save_LIBS
15560 fi 10062 fi
15561 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 10063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15562 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } 10064 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15563 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then 10065 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
15564 HAVE_GIF=yes 10066 HAVE_GIF=yes
15565 else 10067 else
15566 HAVE_GIF=maybe 10068 HAVE_GIF=maybe
15567 fi 10069 fi
15568 10070
15572 10074
15573 if test "$HAVE_GIF" = yes; then 10075 if test "$HAVE_GIF" = yes; then
15574 LIBGIF=-lgif 10076 LIBGIF=-lgif
15575 elif test "$HAVE_GIF" = maybe; then 10077 elif test "$HAVE_GIF" = maybe; then
15576 # If gif_lib.h but no libgif, try libungif. 10078 # If gif_lib.h but no libgif, try libungif.
15577 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 10079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
15578 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } 10080 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15579 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then 10081 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
15580 $as_echo_n "(cached) " >&6 10082 $as_echo_n "(cached) " >&6
15581 else 10083 else
15582 ac_check_lib_save_LIBS=$LIBS 10084 ac_check_lib_save_LIBS=$LIBS
15583 LIBS="-lungif $LIBS" 10085 LIBS="-lungif $LIBS"
15584 cat >conftest.$ac_ext <<_ACEOF 10086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15585 /* confdefs.h. */
15586 _ACEOF
15587 cat confdefs.h >>conftest.$ac_ext
15588 cat >>conftest.$ac_ext <<_ACEOF
15589 /* end confdefs.h. */ 10087 /* end confdefs.h. */
15590 10088
15591 /* Override any GCC internal prototype to avoid an error. 10089 /* Override any GCC internal prototype to avoid an error.
15592 Use char because int might match the return type of a GCC 10090 Use char because int might match the return type of a GCC
15593 builtin and then its argument prototype would still apply. */ 10091 builtin and then its argument prototype would still apply. */
15601 return EGifPutExtensionLast (); 10099 return EGifPutExtensionLast ();
15602 ; 10100 ;
15603 return 0; 10101 return 0;
15604 } 10102 }
15605 _ACEOF 10103 _ACEOF
15606 rm -f conftest.$ac_objext conftest$ac_exeext 10104 if ac_fn_c_try_link "$LINENO"; then :
15607 if { (ac_try="$ac_link"
15608 case "(($ac_try" in
15609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15610 *) ac_try_echo=$ac_try;;
15611 esac
15612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15613 $as_echo "$ac_try_echo") >&5
15614 (eval "$ac_link") 2>conftest.er1
15615 ac_status=$?
15616 grep -v '^ *+' conftest.er1 >conftest.err
15617 rm -f conftest.er1
15618 cat conftest.err >&5
15619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15620 (exit $ac_status); } && {
15621 test -z "$ac_c_werror_flag" ||
15622 test ! -s conftest.err
15623 } && test -s conftest$ac_exeext && {
15624 test "$cross_compiling" = yes ||
15625 $as_test_x conftest$ac_exeext
15626 }; then
15627 ac_cv_lib_ungif_EGifPutExtensionLast=yes 10105 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15628 else 10106 else
15629 $as_echo "$as_me: failed program was:" >&5 10107 ac_cv_lib_ungif_EGifPutExtensionLast=no
15630 sed 's/^/| /' conftest.$ac_ext >&5 10108 fi
15631 10109 rm -f core conftest.err conftest.$ac_objext \
15632 ac_cv_lib_ungif_EGifPutExtensionLast=no 10110 conftest$ac_exeext conftest.$ac_ext
15633 fi
15634
15635 rm -rf conftest.dSYM
15636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15637 conftest$ac_exeext conftest.$ac_ext
15638 LIBS=$ac_check_lib_save_LIBS 10111 LIBS=$ac_check_lib_save_LIBS
15639 fi 10112 fi
15640 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15641 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } 10114 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15642 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then 10115 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
15643 HAVE_GIF=yes 10116 HAVE_GIF=yes
15644 else 10117 else
15645 HAVE_GIF=no 10118 HAVE_GIF=no
15646 fi 10119 fi
15647 10120
15648 test "$HAVE_GIF" = yes && LIBGIF=-lungif 10121 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15649 fi 10122 fi
15650 10123
15651 if test "${HAVE_GIF}" = "yes"; then 10124 if test "${HAVE_GIF}" = "yes"; then
15652 10125
15653 cat >>confdefs.h <<\_ACEOF 10126 $as_echo "#define HAVE_GIF 1" >>confdefs.h
15654 #define HAVE_GIF 1
15655 _ACEOF
15656 10127
15657 fi 10128 fi
15658 fi 10129 fi
15659 10130
15660 10131
15671 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" 10142 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15672 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && 10143 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15673 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" 10144 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15674 10145
15675 if test "X${MISSING}" != X; then 10146 if test "X${MISSING}" != X; then
15676 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found: 10147 as_fn_error "The following required libraries were not found:
15677 $MISSING 10148 $MISSING
15678 Maybe some development libraries/packages are missing? 10149 Maybe some development libraries/packages are missing?
15679 If you don't want to link with them give 10150 If you don't want to link with them give
15680 $WITH_NO 10151 $WITH_NO
15681 as options to configure" >&5 10152 as options to configure" "$LINENO" 5
15682 $as_echo "$as_me: error: The following required libraries were not found:
15683 $MISSING
15684 Maybe some development libraries/packages are missing?
15685 If you don't want to link with them give
15686 $WITH_NO
15687 as options to configure" >&2;}
15688 { (exit 1); exit 1; }; }
15689 fi 10153 fi
15690 fi 10154 fi
15691 10155
15692 ### Use -lgpm if available, unless `--with-gpm=no'. 10156 ### Use -lgpm if available, unless `--with-gpm=no'.
15693 HAVE_GPM=no 10157 HAVE_GPM=no
15694 LIBGPM= 10158 LIBGPM=
15695 if test "${with_gpm}" != "no"; then 10159 if test "${with_gpm}" != "no"; then
15696 if test "${ac_cv_header_gpm_h+set}" = set; then 10160 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
15697 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5 10161 if test "x$ac_cv_header_gpm_h" = x""yes; then :
15698 $as_echo_n "checking for gpm.h... " >&6; } 10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
15699 if test "${ac_cv_header_gpm_h+set}" = set; then
15700 $as_echo_n "(cached) " >&6
15701 fi
15702 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15703 $as_echo "$ac_cv_header_gpm_h" >&6; }
15704 else
15705 # Is the header compilable?
15706 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15707 $as_echo_n "checking gpm.h usability... " >&6; }
15708 cat >conftest.$ac_ext <<_ACEOF
15709 /* confdefs.h. */
15710 _ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15714 $ac_includes_default
15715 #include <gpm.h>
15716 _ACEOF
15717 rm -f conftest.$ac_objext
15718 if { (ac_try="$ac_compile"
15719 case "(($ac_try" in
15720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15721 *) ac_try_echo=$ac_try;;
15722 esac
15723 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15724 $as_echo "$ac_try_echo") >&5
15725 (eval "$ac_compile") 2>conftest.er1
15726 ac_status=$?
15727 grep -v '^ *+' conftest.er1 >conftest.err
15728 rm -f conftest.er1
15729 cat conftest.err >&5
15730 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15731 (exit $ac_status); } && {
15732 test -z "$ac_c_werror_flag" ||
15733 test ! -s conftest.err
15734 } && test -s conftest.$ac_objext; then
15735 ac_header_compiler=yes
15736 else
15737 $as_echo "$as_me: failed program was:" >&5
15738 sed 's/^/| /' conftest.$ac_ext >&5
15739
15740 ac_header_compiler=no
15741 fi
15742
15743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15744 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15745 $as_echo "$ac_header_compiler" >&6; }
15746
15747 # Is the header present?
15748 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15749 $as_echo_n "checking gpm.h presence... " >&6; }
15750 cat >conftest.$ac_ext <<_ACEOF
15751 /* confdefs.h. */
15752 _ACEOF
15753 cat confdefs.h >>conftest.$ac_ext
15754 cat >>conftest.$ac_ext <<_ACEOF
15755 /* end confdefs.h. */
15756 #include <gpm.h>
15757 _ACEOF
15758 if { (ac_try="$ac_cpp conftest.$ac_ext"
15759 case "(($ac_try" in
15760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15761 *) ac_try_echo=$ac_try;;
15762 esac
15763 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15764 $as_echo "$ac_try_echo") >&5
15765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15766 ac_status=$?
15767 grep -v '^ *+' conftest.er1 >conftest.err
15768 rm -f conftest.er1
15769 cat conftest.err >&5
15770 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15771 (exit $ac_status); } >/dev/null && {
15772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15773 test ! -s conftest.err
15774 }; then
15775 ac_header_preproc=yes
15776 else
15777 $as_echo "$as_me: failed program was:" >&5
15778 sed 's/^/| /' conftest.$ac_ext >&5
15779
15780 ac_header_preproc=no
15781 fi
15782
15783 rm -f conftest.err conftest.$ac_ext
15784 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15785 $as_echo "$ac_header_preproc" >&6; }
15786
15787 # So? What about this header?
15788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15789 yes:no: )
15790 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15791 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15792 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15793 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15794 ac_header_preproc=yes
15795 ;;
15796 no:yes:* )
15797 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15798 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15799 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15800 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15801 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15802 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15803 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15804 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15805 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15806 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15807 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15808 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15809
15810 ;;
15811 esac
15812 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15813 $as_echo_n "checking for gpm.h... " >&6; }
15814 if test "${ac_cv_header_gpm_h+set}" = set; then
15815 $as_echo_n "(cached) " >&6
15816 else
15817 ac_cv_header_gpm_h=$ac_header_preproc
15818 fi
15819 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15820 $as_echo "$ac_cv_header_gpm_h" >&6; }
15821
15822 fi
15823 if test $ac_cv_header_gpm_h = yes; then
15824 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15825 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } 10163 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15826 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then 10164 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
15827 $as_echo_n "(cached) " >&6 10165 $as_echo_n "(cached) " >&6
15828 else 10166 else
15829 ac_check_lib_save_LIBS=$LIBS 10167 ac_check_lib_save_LIBS=$LIBS
15830 LIBS="-lgpm $LIBS" 10168 LIBS="-lgpm $LIBS"
15831 cat >conftest.$ac_ext <<_ACEOF 10169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15832 /* confdefs.h. */
15833 _ACEOF
15834 cat confdefs.h >>conftest.$ac_ext
15835 cat >>conftest.$ac_ext <<_ACEOF
15836 /* end confdefs.h. */ 10170 /* end confdefs.h. */
15837 10171
15838 /* Override any GCC internal prototype to avoid an error. 10172 /* Override any GCC internal prototype to avoid an error.
15839 Use char because int might match the return type of a GCC 10173 Use char because int might match the return type of a GCC
15840 builtin and then its argument prototype would still apply. */ 10174 builtin and then its argument prototype would still apply. */
15848 return Gpm_Open (); 10182 return Gpm_Open ();
15849 ; 10183 ;
15850 return 0; 10184 return 0;
15851 } 10185 }
15852 _ACEOF 10186 _ACEOF
15853 rm -f conftest.$ac_objext conftest$ac_exeext 10187 if ac_fn_c_try_link "$LINENO"; then :
15854 if { (ac_try="$ac_link"
15855 case "(($ac_try" in
15856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15857 *) ac_try_echo=$ac_try;;
15858 esac
15859 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15860 $as_echo "$ac_try_echo") >&5
15861 (eval "$ac_link") 2>conftest.er1
15862 ac_status=$?
15863 grep -v '^ *+' conftest.er1 >conftest.err
15864 rm -f conftest.er1
15865 cat conftest.err >&5
15866 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867 (exit $ac_status); } && {
15868 test -z "$ac_c_werror_flag" ||
15869 test ! -s conftest.err
15870 } && test -s conftest$ac_exeext && {
15871 test "$cross_compiling" = yes ||
15872 $as_test_x conftest$ac_exeext
15873 }; then
15874 ac_cv_lib_gpm_Gpm_Open=yes 10188 ac_cv_lib_gpm_Gpm_Open=yes
15875 else 10189 else
15876 $as_echo "$as_me: failed program was:" >&5 10190 ac_cv_lib_gpm_Gpm_Open=no
15877 sed 's/^/| /' conftest.$ac_ext >&5 10191 fi
15878 10192 rm -f core conftest.err conftest.$ac_objext \
15879 ac_cv_lib_gpm_Gpm_Open=no 10193 conftest$ac_exeext conftest.$ac_ext
15880 fi
15881
15882 rm -rf conftest.dSYM
15883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15884 conftest$ac_exeext conftest.$ac_ext
15885 LIBS=$ac_check_lib_save_LIBS 10194 LIBS=$ac_check_lib_save_LIBS
15886 fi 10195 fi
15887 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5 10196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15888 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } 10197 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15889 if test $ac_cv_lib_gpm_Gpm_Open = yes; then 10198 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
15890 HAVE_GPM=yes 10199 HAVE_GPM=yes
15891 fi 10200 fi
15892 10201
15893 fi 10202 fi
15894 10203
15895 10204
15896 10205
15897 if test "${HAVE_GPM}" = "yes"; then 10206 if test "${HAVE_GPM}" = "yes"; then
15898 10207
15899 cat >>confdefs.h <<\_ACEOF 10208 $as_echo "#define HAVE_GPM 1" >>confdefs.h
15900 #define HAVE_GPM 1
15901 _ACEOF
15902 10209
15903 LIBGPM=-lgpm 10210 LIBGPM=-lgpm
15904 fi 10211 fi
15905 fi 10212 fi
15906 10213
15907 10214
15908 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then 10215 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
15909 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 10216 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
15910 $as_echo_n "checking for malloc/malloc.h... " >&6; } 10217
15911 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then 10218 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
15912 $as_echo_n "(cached) " >&6
15913 fi
15914 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15915 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15916 else
15917 # Is the header compilable?
15918 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15919 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15920 cat >conftest.$ac_ext <<_ACEOF
15921 /* confdefs.h. */
15922 _ACEOF
15923 cat confdefs.h >>conftest.$ac_ext
15924 cat >>conftest.$ac_ext <<_ACEOF
15925 /* end confdefs.h. */
15926 $ac_includes_default
15927 #include <malloc/malloc.h>
15928 _ACEOF
15929 rm -f conftest.$ac_objext
15930 if { (ac_try="$ac_compile"
15931 case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15934 esac
15935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15936 $as_echo "$ac_try_echo") >&5
15937 (eval "$ac_compile") 2>conftest.er1
15938 ac_status=$?
15939 grep -v '^ *+' conftest.er1 >conftest.err
15940 rm -f conftest.er1
15941 cat conftest.err >&5
15942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15943 (exit $ac_status); } && {
15944 test -z "$ac_c_werror_flag" ||
15945 test ! -s conftest.err
15946 } && test -s conftest.$ac_objext; then
15947 ac_header_compiler=yes
15948 else
15949 $as_echo "$as_me: failed program was:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15951
15952 ac_header_compiler=no
15953 fi
15954
15955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15956 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15957 $as_echo "$ac_header_compiler" >&6; }
15958
15959 # Is the header present?
15960 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15961 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
15962 cat >conftest.$ac_ext <<_ACEOF
15963 /* confdefs.h. */
15964 _ACEOF
15965 cat confdefs.h >>conftest.$ac_ext
15966 cat >>conftest.$ac_ext <<_ACEOF
15967 /* end confdefs.h. */
15968 #include <malloc/malloc.h>
15969 _ACEOF
15970 if { (ac_try="$ac_cpp conftest.$ac_ext"
15971 case "(($ac_try" in
15972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15973 *) ac_try_echo=$ac_try;;
15974 esac
15975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15976 $as_echo "$ac_try_echo") >&5
15977 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15978 ac_status=$?
15979 grep -v '^ *+' conftest.er1 >conftest.err
15980 rm -f conftest.er1
15981 cat conftest.err >&5
15982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15983 (exit $ac_status); } >/dev/null && {
15984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15985 test ! -s conftest.err
15986 }; then
15987 ac_header_preproc=yes
15988 else
15989 $as_echo "$as_me: failed program was:" >&5
15990 sed 's/^/| /' conftest.$ac_ext >&5
15991
15992 ac_header_preproc=no
15993 fi
15994
15995 rm -f conftest.err conftest.$ac_ext
15996 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15997 $as_echo "$ac_header_preproc" >&6; }
15998
15999 # So? What about this header?
16000 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16001 yes:no: )
16002 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16003 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16004 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16005 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16006 ac_header_preproc=yes
16007 ;;
16008 no:yes:* )
16009 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16010 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16011 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16012 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16013 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16014 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16015 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16016 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16017 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16018 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16019 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16020 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16021
16022 ;;
16023 esac
16024 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16025 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16026 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16027 $as_echo_n "(cached) " >&6
16028 else
16029 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16030 fi
16031 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16032 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16033
16034 fi
16035 if test $ac_cv_header_malloc_malloc_h = yes; then
16036
16037 cat >>confdefs.h <<\_ACEOF
16038 #define HAVE_MALLOC_MALLOC_H 1
16039 _ACEOF
16040 10219
16041 fi 10220 fi
16042 10221
16043 10222
16044 10223
16045 ### Use NeXTstep API to implement GUI. 10224 ### Use NeXTstep API to implement GUI.
16046 if test "${HAVE_NS}" = "yes"; then 10225 if test "${HAVE_NS}" = "yes"; then
16047 10226
16048 cat >>confdefs.h <<\_ACEOF 10227 $as_echo "#define HAVE_NS 1" >>confdefs.h
16049 #define HAVE_NS 1
16050 _ACEOF
16051 10228
16052 if test "${NS_IMPL_COCOA}" = "yes"; then 10229 if test "${NS_IMPL_COCOA}" = "yes"; then
16053 10230
16054 cat >>confdefs.h <<\_ACEOF 10231 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
16055 #define NS_IMPL_COCOA 1
16056 _ACEOF
16057 10232
16058 GNU_OBJC_CFLAGS= 10233 GNU_OBJC_CFLAGS=
16059 fi 10234 fi
16060 if test "${NS_IMPL_GNUSTEP}" = "yes"; then 10235 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16061 10236
16062 cat >>confdefs.h <<\_ACEOF 10237 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
16063 #define NS_IMPL_GNUSTEP 1
16064 _ACEOF
16065 10238
16066 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" 10239 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16067 fi 10240 fi
16068 if test "${NS_HAVE_NSINTEGER}" = "yes"; then 10241 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16069 10242
16070 cat >>confdefs.h <<\_ACEOF 10243 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
16071 #define NS_HAVE_NSINTEGER 1
16072 _ACEOF
16073 10244
16074 fi 10245 fi
16075 # We also have mouse menus. 10246 # We also have mouse menus.
16076 HAVE_MENUS=yes 10247 HAVE_MENUS=yes
16077 OTHER_FILES=ns-app 10248 OTHER_FILES=ns-app
16080 10251
16081 ### Use session management (-lSM -lICE) if available 10252 ### Use session management (-lSM -lICE) if available
16082 HAVE_X_SM=no 10253 HAVE_X_SM=no
16083 LIBXSM= 10254 LIBXSM=
16084 if test "${HAVE_X11}" = "yes"; then 10255 if test "${HAVE_X11}" = "yes"; then
16085 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then 10256 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
16086 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 10257 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
16087 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; } 10258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
16088 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16089 $as_echo_n "(cached) " >&6
16090 fi
16091 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16092 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16093 else
16094 # Is the header compilable?
16095 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16096 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16097 cat >conftest.$ac_ext <<_ACEOF
16098 /* confdefs.h. */
16099 _ACEOF
16100 cat confdefs.h >>conftest.$ac_ext
16101 cat >>conftest.$ac_ext <<_ACEOF
16102 /* end confdefs.h. */
16103 $ac_includes_default
16104 #include <X11/SM/SMlib.h>
16105 _ACEOF
16106 rm -f conftest.$ac_objext
16107 if { (ac_try="$ac_compile"
16108 case "(($ac_try" in
16109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16110 *) ac_try_echo=$ac_try;;
16111 esac
16112 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16113 $as_echo "$ac_try_echo") >&5
16114 (eval "$ac_compile") 2>conftest.er1
16115 ac_status=$?
16116 grep -v '^ *+' conftest.er1 >conftest.err
16117 rm -f conftest.er1
16118 cat conftest.err >&5
16119 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16120 (exit $ac_status); } && {
16121 test -z "$ac_c_werror_flag" ||
16122 test ! -s conftest.err
16123 } && test -s conftest.$ac_objext; then
16124 ac_header_compiler=yes
16125 else
16126 $as_echo "$as_me: failed program was:" >&5
16127 sed 's/^/| /' conftest.$ac_ext >&5
16128
16129 ac_header_compiler=no
16130 fi
16131
16132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16133 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16134 $as_echo "$ac_header_compiler" >&6; }
16135
16136 # Is the header present?
16137 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16138 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16139 cat >conftest.$ac_ext <<_ACEOF
16140 /* confdefs.h. */
16141 _ACEOF
16142 cat confdefs.h >>conftest.$ac_ext
16143 cat >>conftest.$ac_ext <<_ACEOF
16144 /* end confdefs.h. */
16145 #include <X11/SM/SMlib.h>
16146 _ACEOF
16147 if { (ac_try="$ac_cpp conftest.$ac_ext"
16148 case "(($ac_try" in
16149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16150 *) ac_try_echo=$ac_try;;
16151 esac
16152 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16153 $as_echo "$ac_try_echo") >&5
16154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16155 ac_status=$?
16156 grep -v '^ *+' conftest.er1 >conftest.err
16157 rm -f conftest.er1
16158 cat conftest.err >&5
16159 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } >/dev/null && {
16161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16162 test ! -s conftest.err
16163 }; then
16164 ac_header_preproc=yes
16165 else
16166 $as_echo "$as_me: failed program was:" >&5
16167 sed 's/^/| /' conftest.$ac_ext >&5
16168
16169 ac_header_preproc=no
16170 fi
16171
16172 rm -f conftest.err conftest.$ac_ext
16173 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16174 $as_echo "$ac_header_preproc" >&6; }
16175
16176 # So? What about this header?
16177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16178 yes:no: )
16179 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16180 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16181 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16182 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16183 ac_header_preproc=yes
16184 ;;
16185 no:yes:* )
16186 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16187 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16188 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16189 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16190 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16191 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16192 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16193 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16194 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16195 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16196 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16197 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16198
16199 ;;
16200 esac
16201 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16202 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16203 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16204 $as_echo_n "(cached) " >&6
16205 else
16206 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16207 fi
16208 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16209 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16210
16211 fi
16212 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16213 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16214 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } 10259 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16215 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then 10260 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
16216 $as_echo_n "(cached) " >&6 10261 $as_echo_n "(cached) " >&6
16217 else 10262 else
16218 ac_check_lib_save_LIBS=$LIBS 10263 ac_check_lib_save_LIBS=$LIBS
16219 LIBS="-lSM -lICE $LIBS" 10264 LIBS="-lSM -lICE $LIBS"
16220 cat >conftest.$ac_ext <<_ACEOF 10265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16221 /* confdefs.h. */
16222 _ACEOF
16223 cat confdefs.h >>conftest.$ac_ext
16224 cat >>conftest.$ac_ext <<_ACEOF
16225 /* end confdefs.h. */ 10266 /* end confdefs.h. */
16226 10267
16227 /* Override any GCC internal prototype to avoid an error. 10268 /* Override any GCC internal prototype to avoid an error.
16228 Use char because int might match the return type of a GCC 10269 Use char because int might match the return type of a GCC
16229 builtin and then its argument prototype would still apply. */ 10270 builtin and then its argument prototype would still apply. */
16237 return SmcOpenConnection (); 10278 return SmcOpenConnection ();
16238 ; 10279 ;
16239 return 0; 10280 return 0;
16240 } 10281 }
16241 _ACEOF 10282 _ACEOF
16242 rm -f conftest.$ac_objext conftest$ac_exeext 10283 if ac_fn_c_try_link "$LINENO"; then :
16243 if { (ac_try="$ac_link"
16244 case "(($ac_try" in
16245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16246 *) ac_try_echo=$ac_try;;
16247 esac
16248 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16249 $as_echo "$ac_try_echo") >&5
16250 (eval "$ac_link") 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); } && {
16257 test -z "$ac_c_werror_flag" ||
16258 test ! -s conftest.err
16259 } && test -s conftest$ac_exeext && {
16260 test "$cross_compiling" = yes ||
16261 $as_test_x conftest$ac_exeext
16262 }; then
16263 ac_cv_lib_SM_SmcOpenConnection=yes 10284 ac_cv_lib_SM_SmcOpenConnection=yes
16264 else 10285 else
16265 $as_echo "$as_me: failed program was:" >&5 10286 ac_cv_lib_SM_SmcOpenConnection=no
16266 sed 's/^/| /' conftest.$ac_ext >&5 10287 fi
16267 10288 rm -f core conftest.err conftest.$ac_objext \
16268 ac_cv_lib_SM_SmcOpenConnection=no 10289 conftest$ac_exeext conftest.$ac_ext
16269 fi
16270
16271 rm -rf conftest.dSYM
16272 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16273 conftest$ac_exeext conftest.$ac_ext
16274 LIBS=$ac_check_lib_save_LIBS 10290 LIBS=$ac_check_lib_save_LIBS
16275 fi 10291 fi
16276 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16277 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } 10293 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16278 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then 10294 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
16279 HAVE_X_SM=yes 10295 HAVE_X_SM=yes
16280 fi 10296 fi
16281 10297
16282 fi 10298 fi
16283 10299
16284 10300
16285 10301
16286 if test "${HAVE_X_SM}" = "yes"; then 10302 if test "${HAVE_X_SM}" = "yes"; then
16287 10303
16288 cat >>confdefs.h <<\_ACEOF 10304 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
16289 #define HAVE_X_SM 1
16290 _ACEOF
16291 10305
16292 LIBXSM="-lSM -lICE" 10306 LIBXSM="-lSM -lICE"
16293 case "$LIBS" in 10307 case "$LIBS" in
16294 *-lSM*) ;; 10308 *-lSM*) ;;
16295 *) LIBS="$LIBXSM $LIBS" ;; 10309 *) LIBS="$LIBXSM $LIBS" ;;
16297 fi 10311 fi
16298 fi 10312 fi
16299 10313
16300 10314
16301 # If netdb.h doesn't declare h_errno, we must declare it by hand. 10315 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16302 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 10316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
16303 $as_echo_n "checking whether netdb declares h_errno... " >&6; } 10317 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16304 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then 10318 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
16305 $as_echo_n "(cached) " >&6 10319 $as_echo_n "(cached) " >&6
16306 else 10320 else
16307 cat >conftest.$ac_ext <<_ACEOF 10321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16308 /* confdefs.h. */
16309 _ACEOF
16310 cat confdefs.h >>conftest.$ac_ext
16311 cat >>conftest.$ac_ext <<_ACEOF
16312 /* end confdefs.h. */ 10322 /* end confdefs.h. */
16313 #include <netdb.h> 10323 #include <netdb.h>
16314 int 10324 int
16315 main () 10325 main ()
16316 { 10326 {
16317 return h_errno; 10327 return h_errno;
16318 ; 10328 ;
16319 return 0; 10329 return 0;
16320 } 10330 }
16321 _ACEOF 10331 _ACEOF
16322 rm -f conftest.$ac_objext conftest$ac_exeext 10332 if ac_fn_c_try_link "$LINENO"; then :
16323 if { (ac_try="$ac_link"
16324 case "(($ac_try" in
16325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16326 *) ac_try_echo=$ac_try;;
16327 esac
16328 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16329 $as_echo "$ac_try_echo") >&5
16330 (eval "$ac_link") 2>conftest.er1
16331 ac_status=$?
16332 grep -v '^ *+' conftest.er1 >conftest.err
16333 rm -f conftest.er1
16334 cat conftest.err >&5
16335 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16336 (exit $ac_status); } && {
16337 test -z "$ac_c_werror_flag" ||
16338 test ! -s conftest.err
16339 } && test -s conftest$ac_exeext && {
16340 test "$cross_compiling" = yes ||
16341 $as_test_x conftest$ac_exeext
16342 }; then
16343 emacs_cv_netdb_declares_h_errno=yes 10333 emacs_cv_netdb_declares_h_errno=yes
16344 else 10334 else
16345 $as_echo "$as_me: failed program was:" >&5 10335 emacs_cv_netdb_declares_h_errno=no
16346 sed 's/^/| /' conftest.$ac_ext >&5 10336 fi
16347 10337 rm -f core conftest.err conftest.$ac_objext \
16348 emacs_cv_netdb_declares_h_errno=no 10338 conftest$ac_exeext conftest.$ac_ext
16349 fi 10339 fi
16350 10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
16351 rm -rf conftest.dSYM
16352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16353 conftest$ac_exeext conftest.$ac_ext
16354 fi
16355 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16356 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } 10341 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16357 if test $emacs_cv_netdb_declares_h_errno = yes; then 10342 if test $emacs_cv_netdb_declares_h_errno = yes; then
16358 10343
16359 cat >>confdefs.h <<\_ACEOF 10344 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
16360 #define HAVE_H_ERRNO 1
16361 _ACEOF
16362 10345
16363 fi 10346 fi
16364 10347
16365 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 10348 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16366 # for constant arguments. Useless! 10349 # for constant arguments. Useless!
16367 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16368 $as_echo_n "checking for working alloca.h... " >&6; } 10351 $as_echo_n "checking for working alloca.h... " >&6; }
16369 if test "${ac_cv_working_alloca_h+set}" = set; then 10352 if test "${ac_cv_working_alloca_h+set}" = set; then :
16370 $as_echo_n "(cached) " >&6 10353 $as_echo_n "(cached) " >&6
16371 else 10354 else
16372 cat >conftest.$ac_ext <<_ACEOF 10355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373 /* confdefs.h. */
16374 _ACEOF
16375 cat confdefs.h >>conftest.$ac_ext
16376 cat >>conftest.$ac_ext <<_ACEOF
16377 /* end confdefs.h. */ 10356 /* end confdefs.h. */
16378 #include <alloca.h> 10357 #include <alloca.h>
16379 int 10358 int
16380 main () 10359 main ()
16381 { 10360 {
16383 if (p) return 0; 10362 if (p) return 0;
16384 ; 10363 ;
16385 return 0; 10364 return 0;
16386 } 10365 }
16387 _ACEOF 10366 _ACEOF
16388 rm -f conftest.$ac_objext conftest$ac_exeext 10367 if ac_fn_c_try_link "$LINENO"; then :
16389 if { (ac_try="$ac_link"
16390 case "(($ac_try" in
16391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16392 *) ac_try_echo=$ac_try;;
16393 esac
16394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16395 $as_echo "$ac_try_echo") >&5
16396 (eval "$ac_link") 2>conftest.er1
16397 ac_status=$?
16398 grep -v '^ *+' conftest.er1 >conftest.err
16399 rm -f conftest.er1
16400 cat conftest.err >&5
16401 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16402 (exit $ac_status); } && {
16403 test -z "$ac_c_werror_flag" ||
16404 test ! -s conftest.err
16405 } && test -s conftest$ac_exeext && {
16406 test "$cross_compiling" = yes ||
16407 $as_test_x conftest$ac_exeext
16408 }; then
16409 ac_cv_working_alloca_h=yes 10368 ac_cv_working_alloca_h=yes
16410 else 10369 else
16411 $as_echo "$as_me: failed program was:" >&5 10370 ac_cv_working_alloca_h=no
16412 sed 's/^/| /' conftest.$ac_ext >&5 10371 fi
16413 10372 rm -f core conftest.err conftest.$ac_objext \
16414 ac_cv_working_alloca_h=no 10373 conftest$ac_exeext conftest.$ac_ext
16415 fi 10374 fi
16416 10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16417 rm -rf conftest.dSYM
16418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16419 conftest$ac_exeext conftest.$ac_ext
16420 fi
16421 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16422 $as_echo "$ac_cv_working_alloca_h" >&6; } 10376 $as_echo "$ac_cv_working_alloca_h" >&6; }
16423 if test $ac_cv_working_alloca_h = yes; then 10377 if test $ac_cv_working_alloca_h = yes; then
16424 10378
16425 cat >>confdefs.h <<\_ACEOF 10379 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16426 #define HAVE_ALLOCA_H 1 10380
16427 _ACEOF 10381 fi
16428 10382
16429 fi 10383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16430
16431 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16432 $as_echo_n "checking for alloca... " >&6; } 10384 $as_echo_n "checking for alloca... " >&6; }
16433 if test "${ac_cv_func_alloca_works+set}" = set; then 10385 if test "${ac_cv_func_alloca_works+set}" = set; then :
16434 $as_echo_n "(cached) " >&6 10386 $as_echo_n "(cached) " >&6
16435 else 10387 else
16436 cat >conftest.$ac_ext <<_ACEOF 10388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16437 /* confdefs.h. */
16438 _ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */ 10389 /* end confdefs.h. */
16442 #ifdef __GNUC__ 10390 #ifdef __GNUC__
16443 # define alloca __builtin_alloca 10391 # define alloca __builtin_alloca
16444 #else 10392 #else
16445 # ifdef _MSC_VER 10393 # ifdef _MSC_VER
16467 if (p) return 0; 10415 if (p) return 0;
16468 ; 10416 ;
16469 return 0; 10417 return 0;
16470 } 10418 }
16471 _ACEOF 10419 _ACEOF
16472 rm -f conftest.$ac_objext conftest$ac_exeext 10420 if ac_fn_c_try_link "$LINENO"; then :
16473 if { (ac_try="$ac_link"
16474 case "(($ac_try" in
16475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16476 *) ac_try_echo=$ac_try;;
16477 esac
16478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16479 $as_echo "$ac_try_echo") >&5
16480 (eval "$ac_link") 2>conftest.er1
16481 ac_status=$?
16482 grep -v '^ *+' conftest.er1 >conftest.err
16483 rm -f conftest.er1
16484 cat conftest.err >&5
16485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16486 (exit $ac_status); } && {
16487 test -z "$ac_c_werror_flag" ||
16488 test ! -s conftest.err
16489 } && test -s conftest$ac_exeext && {
16490 test "$cross_compiling" = yes ||
16491 $as_test_x conftest$ac_exeext
16492 }; then
16493 ac_cv_func_alloca_works=yes 10421 ac_cv_func_alloca_works=yes
16494 else 10422 else
16495 $as_echo "$as_me: failed program was:" >&5 10423 ac_cv_func_alloca_works=no
16496 sed 's/^/| /' conftest.$ac_ext >&5 10424 fi
16497 10425 rm -f core conftest.err conftest.$ac_objext \
16498 ac_cv_func_alloca_works=no 10426 conftest$ac_exeext conftest.$ac_ext
16499 fi 10427 fi
16500 10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16501 rm -rf conftest.dSYM
16502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16503 conftest$ac_exeext conftest.$ac_ext
16504 fi
16505 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16506 $as_echo "$ac_cv_func_alloca_works" >&6; } 10429 $as_echo "$ac_cv_func_alloca_works" >&6; }
16507 10430
16508 if test $ac_cv_func_alloca_works = yes; then 10431 if test $ac_cv_func_alloca_works = yes; then
16509 10432
16510 cat >>confdefs.h <<\_ACEOF 10433 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16511 #define HAVE_ALLOCA 1
16512 _ACEOF
16513 10434
16514 else 10435 else
16515 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 10436 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16516 # that cause trouble. Some versions do not even contain alloca or 10437 # that cause trouble. Some versions do not even contain alloca or
16517 # contain a buggy version. If you still want to use their alloca, 10438 # contain a buggy version. If you still want to use their alloca,
16518 # use ar to extract alloca.o from them instead of compiling alloca.c. 10439 # use ar to extract alloca.o from them instead of compiling alloca.c.
16519 10440
16520 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 10441 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16521 10442
16522 cat >>confdefs.h <<\_ACEOF 10443 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16523 #define C_ALLOCA 1 10444
16524 _ACEOF 10445
16525 10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16526
16527 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16528 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 10447 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16529 if test "${ac_cv_os_cray+set}" = set; then 10448 if test "${ac_cv_os_cray+set}" = set; then :
16530 $as_echo_n "(cached) " >&6 10449 $as_echo_n "(cached) " >&6
16531 else 10450 else
16532 cat >conftest.$ac_ext <<_ACEOF 10451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16533 /* confdefs.h. */
16534 _ACEOF
16535 cat confdefs.h >>conftest.$ac_ext
16536 cat >>conftest.$ac_ext <<_ACEOF
16537 /* end confdefs.h. */ 10452 /* end confdefs.h. */
16538 #if defined CRAY && ! defined CRAY2 10453 #if defined CRAY && ! defined CRAY2
16539 webecray 10454 webecray
16540 #else 10455 #else
16541 wenotbecray 10456 wenotbecray
16542 #endif 10457 #endif
16543 10458
16544 _ACEOF 10459 _ACEOF
16545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16546 $EGREP "webecray" >/dev/null 2>&1; then 10461 $EGREP "webecray" >/dev/null 2>&1; then :
16547 ac_cv_os_cray=yes 10462 ac_cv_os_cray=yes
16548 else 10463 else
16549 ac_cv_os_cray=no 10464 ac_cv_os_cray=no
16550 fi 10465 fi
16551 rm -f conftest* 10466 rm -f conftest*
16552 10467
16553 fi 10468 fi
16554 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16555 $as_echo "$ac_cv_os_cray" >&6; } 10470 $as_echo "$ac_cv_os_cray" >&6; }
16556 if test $ac_cv_os_cray = yes; then 10471 if test $ac_cv_os_cray = yes; then
16557 for ac_func in _getb67 GETB67 getb67; do 10472 for ac_func in _getb67 GETB67 getb67; do
16558 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10473 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16559 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 10474 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16560 $as_echo_n "checking for $ac_func... " >&6; } 10475 eval as_val=\$$as_ac_var
16561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10476 if test "x$as_val" = x""yes; then :
16562 $as_echo_n "(cached) " >&6
16563 else
16564 cat >conftest.$ac_ext <<_ACEOF
16565 /* confdefs.h. */
16566 _ACEOF
16567 cat confdefs.h >>conftest.$ac_ext
16568 cat >>conftest.$ac_ext <<_ACEOF
16569 /* end confdefs.h. */
16570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16572 #define $ac_func innocuous_$ac_func
16573
16574 /* System header to define __stub macros and hopefully few prototypes,
16575 which can conflict with char $ac_func (); below.
16576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16577 <limits.h> exists even on freestanding compilers. */
16578
16579 #ifdef __STDC__
16580 # include <limits.h>
16581 #else
16582 # include <assert.h>
16583 #endif
16584
16585 #undef $ac_func
16586
16587 /* Override any GCC internal prototype to avoid an error.
16588 Use char because int might match the return type of a GCC
16589 builtin and then its argument prototype would still apply. */
16590 #ifdef __cplusplus
16591 extern "C"
16592 #endif
16593 char $ac_func ();
16594 /* The GNU C library defines this for functions which it implements
16595 to always fail with ENOSYS. Some functions are actually named
16596 something starting with __ and the normal name is an alias. */
16597 #if defined __stub_$ac_func || defined __stub___$ac_func
16598 choke me
16599 #endif
16600
16601 int
16602 main ()
16603 {
16604 return $ac_func ();
16605 ;
16606 return 0;
16607 }
16608 _ACEOF
16609 rm -f conftest.$ac_objext conftest$ac_exeext
16610 if { (ac_try="$ac_link"
16611 case "(($ac_try" in
16612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16613 *) ac_try_echo=$ac_try;;
16614 esac
16615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16616 $as_echo "$ac_try_echo") >&5
16617 (eval "$ac_link") 2>conftest.er1
16618 ac_status=$?
16619 grep -v '^ *+' conftest.er1 >conftest.err
16620 rm -f conftest.er1
16621 cat conftest.err >&5
16622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16623 (exit $ac_status); } && {
16624 test -z "$ac_c_werror_flag" ||
16625 test ! -s conftest.err
16626 } && test -s conftest$ac_exeext && {
16627 test "$cross_compiling" = yes ||
16628 $as_test_x conftest$ac_exeext
16629 }; then
16630 eval "$as_ac_var=yes"
16631 else
16632 $as_echo "$as_me: failed program was:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16634
16635 eval "$as_ac_var=no"
16636 fi
16637
16638 rm -rf conftest.dSYM
16639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16640 conftest$ac_exeext conftest.$ac_ext
16641 fi
16642 ac_res=`eval 'as_val=${'$as_ac_var'}
16643 $as_echo "$as_val"'`
16644 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16645 $as_echo "$ac_res" >&6; }
16646 if test `eval 'as_val=${'$as_ac_var'}
16647 $as_echo "$as_val"'` = yes; then
16648 10477
16649 cat >>confdefs.h <<_ACEOF 10478 cat >>confdefs.h <<_ACEOF
16650 #define CRAY_STACKSEG_END $ac_func 10479 #define CRAY_STACKSEG_END $ac_func
16651 _ACEOF 10480 _ACEOF
16652 10481
16654 fi 10483 fi
16655 10484
16656 done 10485 done
16657 fi 10486 fi
16658 10487
16659 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16660 $as_echo_n "checking stack direction for C alloca... " >&6; } 10489 $as_echo_n "checking stack direction for C alloca... " >&6; }
16661 if test "${ac_cv_c_stack_direction+set}" = set; then 10490 if test "${ac_cv_c_stack_direction+set}" = set; then :
16662 $as_echo_n "(cached) " >&6 10491 $as_echo_n "(cached) " >&6
16663 else 10492 else
16664 if test "$cross_compiling" = yes; then 10493 if test "$cross_compiling" = yes; then :
16665 ac_cv_c_stack_direction=0 10494 ac_cv_c_stack_direction=0
16666 else 10495 else
16667 cat >conftest.$ac_ext <<_ACEOF 10496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16668 /* confdefs.h. */
16669 _ACEOF
16670 cat confdefs.h >>conftest.$ac_ext
16671 cat >>conftest.$ac_ext <<_ACEOF
16672 /* end confdefs.h. */ 10497 /* end confdefs.h. */
16673 $ac_includes_default 10498 $ac_includes_default
16674 int 10499 int
16675 find_stack_direction () 10500 find_stack_direction ()
16676 { 10501 {
16689 main () 10514 main ()
16690 { 10515 {
16691 return find_stack_direction () < 0; 10516 return find_stack_direction () < 0;
16692 } 10517 }
16693 _ACEOF 10518 _ACEOF
16694 rm -f conftest$ac_exeext 10519 if ac_fn_c_try_run "$LINENO"; then :
16695 if { (ac_try="$ac_link"
16696 case "(($ac_try" in
16697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16698 *) ac_try_echo=$ac_try;;
16699 esac
16700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16701 $as_echo "$ac_try_echo") >&5
16702 (eval "$ac_link") 2>&5
16703 ac_status=$?
16704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16705 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16706 { (case "(($ac_try" in
16707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16708 *) ac_try_echo=$ac_try;;
16709 esac
16710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16711 $as_echo "$ac_try_echo") >&5
16712 (eval "$ac_try") 2>&5
16713 ac_status=$?
16714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16715 (exit $ac_status); }; }; then
16716 ac_cv_c_stack_direction=1 10520 ac_cv_c_stack_direction=1
16717 else 10521 else
16718 $as_echo "$as_me: program exited with status $ac_status" >&5 10522 ac_cv_c_stack_direction=-1
16719 $as_echo "$as_me: failed program was:" >&5 10523 fi
16720 sed 's/^/| /' conftest.$ac_ext >&5 10524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16721 10525 conftest.$ac_objext conftest.beam conftest.$ac_ext
16722 ( exit $ac_status ) 10526 fi
16723 ac_cv_c_stack_direction=-1 10527
16724 fi 10528 fi
16725 rm -rf conftest.dSYM 10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16727 fi
16728
16729
16730 fi
16731 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16732 $as_echo "$ac_cv_c_stack_direction" >&6; } 10530 $as_echo "$ac_cv_c_stack_direction" >&6; }
16733
16734 cat >>confdefs.h <<_ACEOF 10531 cat >>confdefs.h <<_ACEOF
16735 #define STACK_DIRECTION $ac_cv_c_stack_direction 10532 #define STACK_DIRECTION $ac_cv_c_stack_direction
16736 _ACEOF 10533 _ACEOF
16737 10534
16738 10535
16739 fi 10536 fi
16740 10537
16741 10538
16742 if test x"$ac_cv_func_alloca_works" != xyes; then 10539 if test x"$ac_cv_func_alloca_works" != xyes; then
16743 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5 10540 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
16744 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16745 { (exit 1); exit 1; }; }
16746 fi 10541 fi
16747 10542
16748 # fmod, logb, and frexp are found in -lm on most systems. 10543 # fmod, logb, and frexp are found in -lm on most systems.
16749 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 10544 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16750 10545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
16751 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16752 $as_echo_n "checking for sqrt in -lm... " >&6; } 10546 $as_echo_n "checking for sqrt in -lm... " >&6; }
16753 if test "${ac_cv_lib_m_sqrt+set}" = set; then 10547 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
16754 $as_echo_n "(cached) " >&6 10548 $as_echo_n "(cached) " >&6
16755 else 10549 else
16756 ac_check_lib_save_LIBS=$LIBS 10550 ac_check_lib_save_LIBS=$LIBS
16757 LIBS="-lm $LIBS" 10551 LIBS="-lm $LIBS"
16758 cat >conftest.$ac_ext <<_ACEOF 10552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16759 /* confdefs.h. */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */ 10553 /* end confdefs.h. */
16764 10554
16765 /* Override any GCC internal prototype to avoid an error. 10555 /* Override any GCC internal prototype to avoid an error.
16766 Use char because int might match the return type of a GCC 10556 Use char because int might match the return type of a GCC
16767 builtin and then its argument prototype would still apply. */ 10557 builtin and then its argument prototype would still apply. */
16775 return sqrt (); 10565 return sqrt ();
16776 ; 10566 ;
16777 return 0; 10567 return 0;
16778 } 10568 }
16779 _ACEOF 10569 _ACEOF
16780 rm -f conftest.$ac_objext conftest$ac_exeext 10570 if ac_fn_c_try_link "$LINENO"; then :
16781 if { (ac_try="$ac_link"
16782 case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16785 esac
16786 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16787 $as_echo "$ac_try_echo") >&5
16788 (eval "$ac_link") 2>conftest.er1
16789 ac_status=$?
16790 grep -v '^ *+' conftest.er1 >conftest.err
16791 rm -f conftest.er1
16792 cat conftest.err >&5
16793 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16794 (exit $ac_status); } && {
16795 test -z "$ac_c_werror_flag" ||
16796 test ! -s conftest.err
16797 } && test -s conftest$ac_exeext && {
16798 test "$cross_compiling" = yes ||
16799 $as_test_x conftest$ac_exeext
16800 }; then
16801 ac_cv_lib_m_sqrt=yes 10571 ac_cv_lib_m_sqrt=yes
16802 else 10572 else
16803 $as_echo "$as_me: failed program was:" >&5 10573 ac_cv_lib_m_sqrt=no
16804 sed 's/^/| /' conftest.$ac_ext >&5 10574 fi
16805 10575 rm -f core conftest.err conftest.$ac_objext \
16806 ac_cv_lib_m_sqrt=no 10576 conftest$ac_exeext conftest.$ac_ext
16807 fi
16808
16809 rm -rf conftest.dSYM
16810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16811 conftest$ac_exeext conftest.$ac_ext
16812 LIBS=$ac_check_lib_save_LIBS 10577 LIBS=$ac_check_lib_save_LIBS
16813 fi 10578 fi
16814 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
16815 $as_echo "$ac_cv_lib_m_sqrt" >&6; } 10580 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16816 if test $ac_cv_lib_m_sqrt = yes; then 10581 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
16817 cat >>confdefs.h <<_ACEOF 10582 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_LIBM 1 10583 #define HAVE_LIBM 1
16819 _ACEOF 10584 _ACEOF
16820 10585
16821 LIBS="-lm $LIBS" 10586 LIBS="-lm $LIBS"
16823 fi 10588 fi
16824 10589
16825 10590
16826 # Check for mail-locking functions in a "mail" library. Probably this should 10591 # Check for mail-locking functions in a "mail" library. Probably this should
16827 # have the same check as for liblockfile below. 10592 # have the same check as for liblockfile below.
16828 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 10593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
16829 $as_echo_n "checking for maillock in -lmail... " >&6; } 10594 $as_echo_n "checking for maillock in -lmail... " >&6; }
16830 if test "${ac_cv_lib_mail_maillock+set}" = set; then 10595 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
16831 $as_echo_n "(cached) " >&6 10596 $as_echo_n "(cached) " >&6
16832 else 10597 else
16833 ac_check_lib_save_LIBS=$LIBS 10598 ac_check_lib_save_LIBS=$LIBS
16834 LIBS="-lmail $LIBS" 10599 LIBS="-lmail $LIBS"
16835 cat >conftest.$ac_ext <<_ACEOF 10600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16836 /* confdefs.h. */
16837 _ACEOF
16838 cat confdefs.h >>conftest.$ac_ext
16839 cat >>conftest.$ac_ext <<_ACEOF
16840 /* end confdefs.h. */ 10601 /* end confdefs.h. */
16841 10602
16842 /* Override any GCC internal prototype to avoid an error. 10603 /* Override any GCC internal prototype to avoid an error.
16843 Use char because int might match the return type of a GCC 10604 Use char because int might match the return type of a GCC
16844 builtin and then its argument prototype would still apply. */ 10605 builtin and then its argument prototype would still apply. */
16852 return maillock (); 10613 return maillock ();
16853 ; 10614 ;
16854 return 0; 10615 return 0;
16855 } 10616 }
16856 _ACEOF 10617 _ACEOF
16857 rm -f conftest.$ac_objext conftest$ac_exeext 10618 if ac_fn_c_try_link "$LINENO"; then :
16858 if { (ac_try="$ac_link"
16859 case "(($ac_try" in
16860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16861 *) ac_try_echo=$ac_try;;
16862 esac
16863 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16864 $as_echo "$ac_try_echo") >&5
16865 (eval "$ac_link") 2>conftest.er1
16866 ac_status=$?
16867 grep -v '^ *+' conftest.er1 >conftest.err
16868 rm -f conftest.er1
16869 cat conftest.err >&5
16870 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16871 (exit $ac_status); } && {
16872 test -z "$ac_c_werror_flag" ||
16873 test ! -s conftest.err
16874 } && test -s conftest$ac_exeext && {
16875 test "$cross_compiling" = yes ||
16876 $as_test_x conftest$ac_exeext
16877 }; then
16878 ac_cv_lib_mail_maillock=yes 10619 ac_cv_lib_mail_maillock=yes
16879 else 10620 else
16880 $as_echo "$as_me: failed program was:" >&5 10621 ac_cv_lib_mail_maillock=no
16881 sed 's/^/| /' conftest.$ac_ext >&5 10622 fi
16882 10623 rm -f core conftest.err conftest.$ac_objext \
16883 ac_cv_lib_mail_maillock=no 10624 conftest$ac_exeext conftest.$ac_ext
16884 fi
16885
16886 rm -rf conftest.dSYM
16887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16888 conftest$ac_exeext conftest.$ac_ext
16889 LIBS=$ac_check_lib_save_LIBS 10625 LIBS=$ac_check_lib_save_LIBS
16890 fi 10626 fi
16891 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
16892 $as_echo "$ac_cv_lib_mail_maillock" >&6; } 10628 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16893 if test $ac_cv_lib_mail_maillock = yes; then 10629 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
16894 have_mail=yes 10630 have_mail=yes
16895 else 10631 else
16896 have_mail=no 10632 have_mail=no
16897 fi 10633 fi
16898 10634
16899 if test $have_mail = yes; then 10635 if test $have_mail = yes; then
16900 LIBS_MAIL=-lmail 10636 LIBS_MAIL=-lmail
16901 LIBS="$LIBS_MAIL $LIBS" 10637 LIBS="$LIBS_MAIL $LIBS"
16902 10638
16903 cat >>confdefs.h <<\_ACEOF 10639 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
16904 #define HAVE_LIBMAIL 1
16905 _ACEOF
16906 10640
16907 else 10641 else
16908 LIBS_MAIL= 10642 LIBS_MAIL=
16909 fi 10643 fi
16910 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 10644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
16911 $as_echo_n "checking for maillock in -llockfile... " >&6; } 10645 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16912 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then 10646 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
16913 $as_echo_n "(cached) " >&6 10647 $as_echo_n "(cached) " >&6
16914 else 10648 else
16915 ac_check_lib_save_LIBS=$LIBS 10649 ac_check_lib_save_LIBS=$LIBS
16916 LIBS="-llockfile $LIBS" 10650 LIBS="-llockfile $LIBS"
16917 cat >conftest.$ac_ext <<_ACEOF 10651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16918 /* confdefs.h. */
16919 _ACEOF
16920 cat confdefs.h >>conftest.$ac_ext
16921 cat >>conftest.$ac_ext <<_ACEOF
16922 /* end confdefs.h. */ 10652 /* end confdefs.h. */
16923 10653
16924 /* Override any GCC internal prototype to avoid an error. 10654 /* Override any GCC internal prototype to avoid an error.
16925 Use char because int might match the return type of a GCC 10655 Use char because int might match the return type of a GCC
16926 builtin and then its argument prototype would still apply. */ 10656 builtin and then its argument prototype would still apply. */
16934 return maillock (); 10664 return maillock ();
16935 ; 10665 ;
16936 return 0; 10666 return 0;
16937 } 10667 }
16938 _ACEOF 10668 _ACEOF
16939 rm -f conftest.$ac_objext conftest$ac_exeext 10669 if ac_fn_c_try_link "$LINENO"; then :
16940 if { (ac_try="$ac_link"
16941 case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16944 esac
16945 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16946 $as_echo "$ac_try_echo") >&5
16947 (eval "$ac_link") 2>conftest.er1
16948 ac_status=$?
16949 grep -v '^ *+' conftest.er1 >conftest.err
16950 rm -f conftest.er1
16951 cat conftest.err >&5
16952 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } && {
16954 test -z "$ac_c_werror_flag" ||
16955 test ! -s conftest.err
16956 } && test -s conftest$ac_exeext && {
16957 test "$cross_compiling" = yes ||
16958 $as_test_x conftest$ac_exeext
16959 }; then
16960 ac_cv_lib_lockfile_maillock=yes 10670 ac_cv_lib_lockfile_maillock=yes
16961 else 10671 else
16962 $as_echo "$as_me: failed program was:" >&5 10672 ac_cv_lib_lockfile_maillock=no
16963 sed 's/^/| /' conftest.$ac_ext >&5 10673 fi
16964 10674 rm -f core conftest.err conftest.$ac_objext \
16965 ac_cv_lib_lockfile_maillock=no 10675 conftest$ac_exeext conftest.$ac_ext
16966 fi
16967
16968 rm -rf conftest.dSYM
16969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16970 conftest$ac_exeext conftest.$ac_ext
16971 LIBS=$ac_check_lib_save_LIBS 10676 LIBS=$ac_check_lib_save_LIBS
16972 fi 10677 fi
16973 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 10678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
16974 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; } 10679 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
16975 if test $ac_cv_lib_lockfile_maillock = yes; then 10680 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
16976 have_lockfile=yes 10681 have_lockfile=yes
16977 else 10682 else
16978 have_lockfile=no 10683 have_lockfile=no
16979 fi 10684 fi
16980 10685
16981 if test $have_lockfile = yes; then 10686 if test $have_lockfile = yes; then
16982 LIBS_MAIL=-llockfile 10687 LIBS_MAIL=-llockfile
16983 LIBS="$LIBS_MAIL $LIBS" 10688 LIBS="$LIBS_MAIL $LIBS"
16984 10689
16985 cat >>confdefs.h <<\_ACEOF 10690 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
16986 #define HAVE_LIBLOCKFILE 1
16987 _ACEOF
16988 10691
16989 else 10692 else
16990 # If we have the shared liblockfile, assume we must use it for mail 10693 # If we have the shared liblockfile, assume we must use it for mail
16991 # locking (e.g. Debian). If we couldn't link against liblockfile 10694 # locking (e.g. Debian). If we couldn't link against liblockfile
16992 # (no liblockfile.a installed), ensure that we don't need to. 10695 # (no liblockfile.a installed), ensure that we don't need to.
16993 # Extract the first word of "liblockfile.so", so it can be a program name with args. 10696 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16994 set dummy liblockfile.so; ac_word=$2 10697 set dummy liblockfile.so; ac_word=$2
16995 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 10698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16996 $as_echo_n "checking for $ac_word... " >&6; } 10699 $as_echo_n "checking for $ac_word... " >&6; }
16997 if test "${ac_cv_prog_liblockfile+set}" = set; then 10700 if test "${ac_cv_prog_liblockfile+set}" = set; then :
16998 $as_echo_n "(cached) " >&6 10701 $as_echo_n "(cached) " >&6
16999 else 10702 else
17000 if test -n "$liblockfile"; then 10703 if test -n "$liblockfile"; then
17001 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 10704 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17002 else 10705 else
17004 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" 10707 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17005 for as_dir in $as_dummy 10708 for as_dir in $as_dummy
17006 do 10709 do
17007 IFS=$as_save_IFS 10710 IFS=$as_save_IFS
17008 test -z "$as_dir" && as_dir=. 10711 test -z "$as_dir" && as_dir=.
17009 for ac_exec_ext in '' $ac_executable_extensions; do 10712 for ac_exec_ext in '' $ac_executable_extensions; do
17010 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10713 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17011 ac_cv_prog_liblockfile="yes" 10714 ac_cv_prog_liblockfile="yes"
17012 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10715 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17013 break 2 10716 break 2
17014 fi 10717 fi
17015 done 10718 done
17016 done 10719 done
17017 IFS=$as_save_IFS 10720 IFS=$as_save_IFS
17018 10721
17019 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" 10722 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17020 fi 10723 fi
17021 fi 10724 fi
17022 liblockfile=$ac_cv_prog_liblockfile 10725 liblockfile=$ac_cv_prog_liblockfile
17023 if test -n "$liblockfile"; then 10726 if test -n "$liblockfile"; then
17024 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5 10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
17025 $as_echo "$liblockfile" >&6; } 10728 $as_echo "$liblockfile" >&6; }
17026 else 10729 else
17027 { $as_echo "$as_me:$LINENO: result: no" >&5 10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17028 $as_echo "no" >&6; } 10731 $as_echo "no" >&6; }
17029 fi 10732 fi
17030 10733
17031 10734
17032 if test $ac_cv_prog_liblockfile = yes; then 10735 if test $ac_cv_prog_liblockfile = yes; then
17033 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. 10736 as_fn_error "Shared liblockfile found but can't link against it.
17034 This probably means that movemail could lose mail. 10737 This probably means that movemail could lose mail.
17035 There may be a \`development' package to install containing liblockfile." >&5 10738 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
17036 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17037 This probably means that movemail could lose mail.
17038 There may be a \`development' package to install containing liblockfile." >&2;}
17039 { (exit 1); exit 1; }; }
17040 fi 10739 fi
17041 fi 10740 fi
17042
17043 for ac_func in touchlock 10741 for ac_func in touchlock
17044 do 10742 do :
17045 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10743 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
17046 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 10744 if test "x$ac_cv_func_touchlock" = x""yes; then :
17047 $as_echo_n "checking for $ac_func... " >&6; }
17048 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17049 $as_echo_n "(cached) " >&6
17050 else
17051 cat >conftest.$ac_ext <<_ACEOF
17052 /* confdefs.h. */
17053 _ACEOF
17054 cat confdefs.h >>conftest.$ac_ext
17055 cat >>conftest.$ac_ext <<_ACEOF
17056 /* end confdefs.h. */
17057 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17059 #define $ac_func innocuous_$ac_func
17060
17061 /* System header to define __stub macros and hopefully few prototypes,
17062 which can conflict with char $ac_func (); below.
17063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17064 <limits.h> exists even on freestanding compilers. */
17065
17066 #ifdef __STDC__
17067 # include <limits.h>
17068 #else
17069 # include <assert.h>
17070 #endif
17071
17072 #undef $ac_func
17073
17074 /* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17077 #ifdef __cplusplus
17078 extern "C"
17079 #endif
17080 char $ac_func ();
17081 /* The GNU C library defines this for functions which it implements
17082 to always fail with ENOSYS. Some functions are actually named
17083 something starting with __ and the normal name is an alias. */
17084 #if defined __stub_$ac_func || defined __stub___$ac_func
17085 choke me
17086 #endif
17087
17088 int
17089 main ()
17090 {
17091 return $ac_func ();
17092 ;
17093 return 0;
17094 }
17095 _ACEOF
17096 rm -f conftest.$ac_objext conftest$ac_exeext
17097 if { (ac_try="$ac_link"
17098 case "(($ac_try" in
17099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17100 *) ac_try_echo=$ac_try;;
17101 esac
17102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17103 $as_echo "$ac_try_echo") >&5
17104 (eval "$ac_link") 2>conftest.er1
17105 ac_status=$?
17106 grep -v '^ *+' conftest.er1 >conftest.err
17107 rm -f conftest.er1
17108 cat conftest.err >&5
17109 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17110 (exit $ac_status); } && {
17111 test -z "$ac_c_werror_flag" ||
17112 test ! -s conftest.err
17113 } && test -s conftest$ac_exeext && {
17114 test "$cross_compiling" = yes ||
17115 $as_test_x conftest$ac_exeext
17116 }; then
17117 eval "$as_ac_var=yes"
17118 else
17119 $as_echo "$as_me: failed program was:" >&5
17120 sed 's/^/| /' conftest.$ac_ext >&5
17121
17122 eval "$as_ac_var=no"
17123 fi
17124
17125 rm -rf conftest.dSYM
17126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17127 conftest$ac_exeext conftest.$ac_ext
17128 fi
17129 ac_res=`eval 'as_val=${'$as_ac_var'}
17130 $as_echo "$as_val"'`
17131 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17132 $as_echo "$ac_res" >&6; }
17133 if test `eval 'as_val=${'$as_ac_var'}
17134 $as_echo "$as_val"'` = yes; then
17135 cat >>confdefs.h <<_ACEOF 10745 cat >>confdefs.h <<_ACEOF
17136 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10746 #define HAVE_TOUCHLOCK 1
17137 _ACEOF 10747 _ACEOF
17138 10748
17139 fi 10749 fi
17140 done 10750 done
17141 10751
17142
17143 for ac_header in maillock.h 10752 for ac_header in maillock.h
17144 do 10753 do :
17145 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10754 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
17146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10755 if test "x$ac_cv_header_maillock_h" = x""yes; then :
17147 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17148 $as_echo_n "checking for $ac_header... " >&6; }
17149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17150 $as_echo_n "(cached) " >&6
17151 fi
17152 ac_res=`eval 'as_val=${'$as_ac_Header'}
17153 $as_echo "$as_val"'`
17154 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17155 $as_echo "$ac_res" >&6; }
17156 else
17157 # Is the header compilable?
17158 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17159 $as_echo_n "checking $ac_header usability... " >&6; }
17160 cat >conftest.$ac_ext <<_ACEOF
17161 /* confdefs.h. */
17162 _ACEOF
17163 cat confdefs.h >>conftest.$ac_ext
17164 cat >>conftest.$ac_ext <<_ACEOF
17165 /* end confdefs.h. */
17166 $ac_includes_default
17167 #include <$ac_header>
17168 _ACEOF
17169 rm -f conftest.$ac_objext
17170 if { (ac_try="$ac_compile"
17171 case "(($ac_try" in
17172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17173 *) ac_try_echo=$ac_try;;
17174 esac
17175 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17176 $as_echo "$ac_try_echo") >&5
17177 (eval "$ac_compile") 2>conftest.er1
17178 ac_status=$?
17179 grep -v '^ *+' conftest.er1 >conftest.err
17180 rm -f conftest.er1
17181 cat conftest.err >&5
17182 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17183 (exit $ac_status); } && {
17184 test -z "$ac_c_werror_flag" ||
17185 test ! -s conftest.err
17186 } && test -s conftest.$ac_objext; then
17187 ac_header_compiler=yes
17188 else
17189 $as_echo "$as_me: failed program was:" >&5
17190 sed 's/^/| /' conftest.$ac_ext >&5
17191
17192 ac_header_compiler=no
17193 fi
17194
17195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17196 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17197 $as_echo "$ac_header_compiler" >&6; }
17198
17199 # Is the header present?
17200 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17201 $as_echo_n "checking $ac_header presence... " >&6; }
17202 cat >conftest.$ac_ext <<_ACEOF
17203 /* confdefs.h. */
17204 _ACEOF
17205 cat confdefs.h >>conftest.$ac_ext
17206 cat >>conftest.$ac_ext <<_ACEOF
17207 /* end confdefs.h. */
17208 #include <$ac_header>
17209 _ACEOF
17210 if { (ac_try="$ac_cpp conftest.$ac_ext"
17211 case "(($ac_try" in
17212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17213 *) ac_try_echo=$ac_try;;
17214 esac
17215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17216 $as_echo "$ac_try_echo") >&5
17217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17218 ac_status=$?
17219 grep -v '^ *+' conftest.er1 >conftest.err
17220 rm -f conftest.er1
17221 cat conftest.err >&5
17222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223 (exit $ac_status); } >/dev/null && {
17224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17225 test ! -s conftest.err
17226 }; then
17227 ac_header_preproc=yes
17228 else
17229 $as_echo "$as_me: failed program was:" >&5
17230 sed 's/^/| /' conftest.$ac_ext >&5
17231
17232 ac_header_preproc=no
17233 fi
17234
17235 rm -f conftest.err conftest.$ac_ext
17236 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17237 $as_echo "$ac_header_preproc" >&6; }
17238
17239 # So? What about this header?
17240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17241 yes:no: )
17242 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17243 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17244 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17245 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17246 ac_header_preproc=yes
17247 ;;
17248 no:yes:* )
17249 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17250 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17251 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17252 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17253 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17254 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17255 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17256 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17257 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17258 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17259 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17260 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17261
17262 ;;
17263 esac
17264 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17265 $as_echo_n "checking for $ac_header... " >&6; }
17266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17267 $as_echo_n "(cached) " >&6
17268 else
17269 eval "$as_ac_Header=\$ac_header_preproc"
17270 fi
17271 ac_res=`eval 'as_val=${'$as_ac_Header'}
17272 $as_echo "$as_val"'`
17273 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17274 $as_echo "$ac_res" >&6; }
17275
17276 fi
17277 if test `eval 'as_val=${'$as_ac_Header'}
17278 $as_echo "$as_val"'` = yes; then
17279 cat >>confdefs.h <<_ACEOF 10756 cat >>confdefs.h <<_ACEOF
17280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10757 #define HAVE_MAILLOCK_H 1
17281 _ACEOF 10758 _ACEOF
17282 10759
17283 fi 10760 fi
17284 10761
17285 done 10762 done
17286
17287
17288
17289
17290
17291
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306
17307
17308
17309
17310
17311
17312
17313
17314
17315
17316
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357 10763
17358 10764
17359 10765
17360 for ac_func in gethostname getdomainname dup2 \ 10766 for ac_func in gethostname getdomainname dup2 \
17361 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ 10767 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17365 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ 10771 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17366 sendto recvfrom getsockopt setsockopt getsockname getpeername \ 10772 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17367 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ 10773 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17368 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ 10774 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17369 cfmakeraw cfsetspeed 10775 cfmakeraw cfsetspeed
17370 do 10776 do :
17371 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10777 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17372 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 10778 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17373 $as_echo_n "checking for $ac_func... " >&6; } 10779 eval as_val=\$$as_ac_var
17374 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10780 if test "x$as_val" = x""yes; then :
17375 $as_echo_n "(cached) " >&6
17376 else
17377 cat >conftest.$ac_ext <<_ACEOF
17378 /* confdefs.h. */
17379 _ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17383 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17384 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17385 #define $ac_func innocuous_$ac_func
17386
17387 /* System header to define __stub macros and hopefully few prototypes,
17388 which can conflict with char $ac_func (); below.
17389 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17390 <limits.h> exists even on freestanding compilers. */
17391
17392 #ifdef __STDC__
17393 # include <limits.h>
17394 #else
17395 # include <assert.h>
17396 #endif
17397
17398 #undef $ac_func
17399
17400 /* Override any GCC internal prototype to avoid an error.
17401 Use char because int might match the return type of a GCC
17402 builtin and then its argument prototype would still apply. */
17403 #ifdef __cplusplus
17404 extern "C"
17405 #endif
17406 char $ac_func ();
17407 /* The GNU C library defines this for functions which it implements
17408 to always fail with ENOSYS. Some functions are actually named
17409 something starting with __ and the normal name is an alias. */
17410 #if defined __stub_$ac_func || defined __stub___$ac_func
17411 choke me
17412 #endif
17413
17414 int
17415 main ()
17416 {
17417 return $ac_func ();
17418 ;
17419 return 0;
17420 }
17421 _ACEOF
17422 rm -f conftest.$ac_objext conftest$ac_exeext
17423 if { (ac_try="$ac_link"
17424 case "(($ac_try" in
17425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17426 *) ac_try_echo=$ac_try;;
17427 esac
17428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17429 $as_echo "$ac_try_echo") >&5
17430 (eval "$ac_link") 2>conftest.er1
17431 ac_status=$?
17432 grep -v '^ *+' conftest.er1 >conftest.err
17433 rm -f conftest.er1
17434 cat conftest.err >&5
17435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17436 (exit $ac_status); } && {
17437 test -z "$ac_c_werror_flag" ||
17438 test ! -s conftest.err
17439 } && test -s conftest$ac_exeext && {
17440 test "$cross_compiling" = yes ||
17441 $as_test_x conftest$ac_exeext
17442 }; then
17443 eval "$as_ac_var=yes"
17444 else
17445 $as_echo "$as_me: failed program was:" >&5
17446 sed 's/^/| /' conftest.$ac_ext >&5
17447
17448 eval "$as_ac_var=no"
17449 fi
17450
17451 rm -rf conftest.dSYM
17452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17453 conftest$ac_exeext conftest.$ac_ext
17454 fi
17455 ac_res=`eval 'as_val=${'$as_ac_var'}
17456 $as_echo "$as_val"'`
17457 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17458 $as_echo "$ac_res" >&6; }
17459 if test `eval 'as_val=${'$as_ac_var'}
17460 $as_echo "$as_val"'` = yes; then
17461 cat >>confdefs.h <<_ACEOF 10781 cat >>confdefs.h <<_ACEOF
17462 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10782 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17463 _ACEOF 10783 _ACEOF
17464 10784
17465 fi 10785 fi
17466 done 10786 done
17467 10787
17468 10788
17469
17470 for ac_header in sys/un.h 10789 for ac_header in sys/un.h
17471 do 10790 do :
17472 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10791 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
17473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10792 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
17474 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17475 $as_echo_n "checking for $ac_header... " >&6; }
17476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17477 $as_echo_n "(cached) " >&6
17478 fi
17479 ac_res=`eval 'as_val=${'$as_ac_Header'}
17480 $as_echo "$as_val"'`
17481 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17482 $as_echo "$ac_res" >&6; }
17483 else
17484 # Is the header compilable?
17485 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17486 $as_echo_n "checking $ac_header usability... " >&6; }
17487 cat >conftest.$ac_ext <<_ACEOF
17488 /* confdefs.h. */
17489 _ACEOF
17490 cat confdefs.h >>conftest.$ac_ext
17491 cat >>conftest.$ac_ext <<_ACEOF
17492 /* end confdefs.h. */
17493 $ac_includes_default
17494 #include <$ac_header>
17495 _ACEOF
17496 rm -f conftest.$ac_objext
17497 if { (ac_try="$ac_compile"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17501 esac
17502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17503 $as_echo "$ac_try_echo") >&5
17504 (eval "$ac_compile") 2>conftest.er1
17505 ac_status=$?
17506 grep -v '^ *+' conftest.er1 >conftest.err
17507 rm -f conftest.er1
17508 cat conftest.err >&5
17509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510 (exit $ac_status); } && {
17511 test -z "$ac_c_werror_flag" ||
17512 test ! -s conftest.err
17513 } && test -s conftest.$ac_objext; then
17514 ac_header_compiler=yes
17515 else
17516 $as_echo "$as_me: failed program was:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17518
17519 ac_header_compiler=no
17520 fi
17521
17522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17523 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17524 $as_echo "$ac_header_compiler" >&6; }
17525
17526 # Is the header present?
17527 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17528 $as_echo_n "checking $ac_header presence... " >&6; }
17529 cat >conftest.$ac_ext <<_ACEOF
17530 /* confdefs.h. */
17531 _ACEOF
17532 cat confdefs.h >>conftest.$ac_ext
17533 cat >>conftest.$ac_ext <<_ACEOF
17534 /* end confdefs.h. */
17535 #include <$ac_header>
17536 _ACEOF
17537 if { (ac_try="$ac_cpp conftest.$ac_ext"
17538 case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17541 esac
17542 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17543 $as_echo "$ac_try_echo") >&5
17544 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17545 ac_status=$?
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
17549 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } >/dev/null && {
17551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17552 test ! -s conftest.err
17553 }; then
17554 ac_header_preproc=yes
17555 else
17556 $as_echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17558
17559 ac_header_preproc=no
17560 fi
17561
17562 rm -f conftest.err conftest.$ac_ext
17563 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17564 $as_echo "$ac_header_preproc" >&6; }
17565
17566 # So? What about this header?
17567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17568 yes:no: )
17569 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17570 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17571 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17572 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17573 ac_header_preproc=yes
17574 ;;
17575 no:yes:* )
17576 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17577 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17578 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17579 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17580 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17581 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17582 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17583 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17584 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17585 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17586 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17587 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17588
17589 ;;
17590 esac
17591 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17592 $as_echo_n "checking for $ac_header... " >&6; }
17593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17594 $as_echo_n "(cached) " >&6
17595 else
17596 eval "$as_ac_Header=\$ac_header_preproc"
17597 fi
17598 ac_res=`eval 'as_val=${'$as_ac_Header'}
17599 $as_echo "$as_val"'`
17600 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17601 $as_echo "$ac_res" >&6; }
17602
17603 fi
17604 if test `eval 'as_val=${'$as_ac_Header'}
17605 $as_echo "$as_val"'` = yes; then
17606 cat >>confdefs.h <<_ACEOF 10793 cat >>confdefs.h <<_ACEOF
17607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10794 #define HAVE_SYS_UN_H 1
17608 _ACEOF 10795 _ACEOF
17609 10796
17610 fi 10797 fi
17611 10798
17612 done 10799 done
17614 10801
17615 10802
17616 10803
17617 10804
17618 10805
17619 for ac_header in $ac_header_list 10806
17620 do 10807 for ac_func in $ac_func_list
17621 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10808 do :
17622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10809 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17623 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 10810 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17624 $as_echo_n "checking for $ac_header... " >&6; } 10811 eval as_val=\$$as_ac_var
17625 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10812 if test "x$as_val" = x""yes; then :
17626 $as_echo_n "(cached) " >&6
17627 fi
17628 ac_res=`eval 'as_val=${'$as_ac_Header'}
17629 $as_echo "$as_val"'`
17630 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17631 $as_echo "$ac_res" >&6; }
17632 else
17633 # Is the header compilable?
17634 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17635 $as_echo_n "checking $ac_header usability... " >&6; }
17636 cat >conftest.$ac_ext <<_ACEOF
17637 /* confdefs.h. */
17638 _ACEOF
17639 cat confdefs.h >>conftest.$ac_ext
17640 cat >>conftest.$ac_ext <<_ACEOF
17641 /* end confdefs.h. */
17642 $ac_includes_default
17643 #include <$ac_header>
17644 _ACEOF
17645 rm -f conftest.$ac_objext
17646 if { (ac_try="$ac_compile"
17647 case "(($ac_try" in
17648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17649 *) ac_try_echo=$ac_try;;
17650 esac
17651 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17652 $as_echo "$ac_try_echo") >&5
17653 (eval "$ac_compile") 2>conftest.er1
17654 ac_status=$?
17655 grep -v '^ *+' conftest.er1 >conftest.err
17656 rm -f conftest.er1
17657 cat conftest.err >&5
17658 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } && {
17660 test -z "$ac_c_werror_flag" ||
17661 test ! -s conftest.err
17662 } && test -s conftest.$ac_objext; then
17663 ac_header_compiler=yes
17664 else
17665 $as_echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668 ac_header_compiler=no
17669 fi
17670
17671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17672 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17673 $as_echo "$ac_header_compiler" >&6; }
17674
17675 # Is the header present?
17676 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17677 $as_echo_n "checking $ac_header presence... " >&6; }
17678 cat >conftest.$ac_ext <<_ACEOF
17679 /* confdefs.h. */
17680 _ACEOF
17681 cat confdefs.h >>conftest.$ac_ext
17682 cat >>conftest.$ac_ext <<_ACEOF
17683 /* end confdefs.h. */
17684 #include <$ac_header>
17685 _ACEOF
17686 if { (ac_try="$ac_cpp conftest.$ac_ext"
17687 case "(($ac_try" in
17688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17689 *) ac_try_echo=$ac_try;;
17690 esac
17691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17692 $as_echo "$ac_try_echo") >&5
17693 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17694 ac_status=$?
17695 grep -v '^ *+' conftest.er1 >conftest.err
17696 rm -f conftest.er1
17697 cat conftest.err >&5
17698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17699 (exit $ac_status); } >/dev/null && {
17700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17701 test ! -s conftest.err
17702 }; then
17703 ac_header_preproc=yes
17704 else
17705 $as_echo "$as_me: failed program was:" >&5
17706 sed 's/^/| /' conftest.$ac_ext >&5
17707
17708 ac_header_preproc=no
17709 fi
17710
17711 rm -f conftest.err conftest.$ac_ext
17712 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17713 $as_echo "$ac_header_preproc" >&6; }
17714
17715 # So? What about this header?
17716 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17717 yes:no: )
17718 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17719 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17720 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17721 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17722 ac_header_preproc=yes
17723 ;;
17724 no:yes:* )
17725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17726 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17728 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17729 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17730 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17731 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17732 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17734 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17736 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17737
17738 ;;
17739 esac
17740 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17741 $as_echo_n "checking for $ac_header... " >&6; }
17742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17743 $as_echo_n "(cached) " >&6
17744 else
17745 eval "$as_ac_Header=\$ac_header_preproc"
17746 fi
17747 ac_res=`eval 'as_val=${'$as_ac_Header'}
17748 $as_echo "$as_val"'`
17749 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17750 $as_echo "$ac_res" >&6; }
17751
17752 fi
17753 if test `eval 'as_val=${'$as_ac_Header'}
17754 $as_echo "$as_val"'` = yes; then
17755 cat >>confdefs.h <<_ACEOF
17756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17757 _ACEOF
17758
17759 fi
17760
17761 done
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771 for ac_func in $ac_func_list
17772 do
17773 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17774 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17775 $as_echo_n "checking for $ac_func... " >&6; }
17776 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17777 $as_echo_n "(cached) " >&6
17778 else
17779 cat >conftest.$ac_ext <<_ACEOF
17780 /* confdefs.h. */
17781 _ACEOF
17782 cat confdefs.h >>conftest.$ac_ext
17783 cat >>conftest.$ac_ext <<_ACEOF
17784 /* end confdefs.h. */
17785 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17786 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17787 #define $ac_func innocuous_$ac_func
17788
17789 /* System header to define __stub macros and hopefully few prototypes,
17790 which can conflict with char $ac_func (); below.
17791 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17792 <limits.h> exists even on freestanding compilers. */
17793
17794 #ifdef __STDC__
17795 # include <limits.h>
17796 #else
17797 # include <assert.h>
17798 #endif
17799
17800 #undef $ac_func
17801
17802 /* Override any GCC internal prototype to avoid an error.
17803 Use char because int might match the return type of a GCC
17804 builtin and then its argument prototype would still apply. */
17805 #ifdef __cplusplus
17806 extern "C"
17807 #endif
17808 char $ac_func ();
17809 /* The GNU C library defines this for functions which it implements
17810 to always fail with ENOSYS. Some functions are actually named
17811 something starting with __ and the normal name is an alias. */
17812 #if defined __stub_$ac_func || defined __stub___$ac_func
17813 choke me
17814 #endif
17815
17816 int
17817 main ()
17818 {
17819 return $ac_func ();
17820 ;
17821 return 0;
17822 }
17823 _ACEOF
17824 rm -f conftest.$ac_objext conftest$ac_exeext
17825 if { (ac_try="$ac_link"
17826 case "(($ac_try" in
17827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828 *) ac_try_echo=$ac_try;;
17829 esac
17830 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17831 $as_echo "$ac_try_echo") >&5
17832 (eval "$ac_link") 2>conftest.er1
17833 ac_status=$?
17834 grep -v '^ *+' conftest.er1 >conftest.err
17835 rm -f conftest.er1
17836 cat conftest.err >&5
17837 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); } && {
17839 test -z "$ac_c_werror_flag" ||
17840 test ! -s conftest.err
17841 } && test -s conftest$ac_exeext && {
17842 test "$cross_compiling" = yes ||
17843 $as_test_x conftest$ac_exeext
17844 }; then
17845 eval "$as_ac_var=yes"
17846 else
17847 $as_echo "$as_me: failed program was:" >&5
17848 sed 's/^/| /' conftest.$ac_ext >&5
17849
17850 eval "$as_ac_var=no"
17851 fi
17852
17853 rm -rf conftest.dSYM
17854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17855 conftest$ac_exeext conftest.$ac_ext
17856 fi
17857 ac_res=`eval 'as_val=${'$as_ac_var'}
17858 $as_echo "$as_val"'`
17859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17860 $as_echo "$ac_res" >&6; }
17861 if test `eval 'as_val=${'$as_ac_var'}
17862 $as_echo "$as_val"'` = yes; then
17863 cat >>confdefs.h <<_ACEOF 10813 cat >>confdefs.h <<_ACEOF
17864 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10814 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17865 _ACEOF 10815 _ACEOF
17866 10816
17867 fi 10817 fi
17869 10819
17870 10820
17871 10821
17872 10822
17873 10823
17874 10824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17887 $as_echo_n "checking for working mktime... " >&6; } 10825 $as_echo_n "checking for working mktime... " >&6; }
17888 if test "${ac_cv_func_working_mktime+set}" = set; then 10826 if test "${ac_cv_func_working_mktime+set}" = set; then :
17889 $as_echo_n "(cached) " >&6 10827 $as_echo_n "(cached) " >&6
17890 else 10828 else
17891 if test "$cross_compiling" = yes; then 10829 if test "$cross_compiling" = yes; then :
17892 ac_cv_func_working_mktime=no 10830 ac_cv_func_working_mktime=no
17893 else 10831 else
17894 cat >conftest.$ac_ext <<_ACEOF 10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17895 /* confdefs.h. */
17896 _ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */ 10833 /* end confdefs.h. */
17900 /* Test program from Paul Eggert and Tony Leneis. */ 10834 /* Test program from Paul Eggert and Tony Leneis. */
17901 #ifdef TIME_WITH_SYS_TIME 10835 #ifdef TIME_WITH_SYS_TIME
17902 # include <sys/time.h> 10836 # include <sys/time.h>
17903 # include <time.h> 10837 # include <time.h>
18090 return 1; 11024 return 1;
18091 } 11025 }
18092 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 11026 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18093 } 11027 }
18094 _ACEOF 11028 _ACEOF
18095 rm -f conftest$ac_exeext 11029 if ac_fn_c_try_run "$LINENO"; then :
18096 if { (ac_try="$ac_link"
18097 case "(($ac_try" in
18098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18099 *) ac_try_echo=$ac_try;;
18100 esac
18101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18102 $as_echo "$ac_try_echo") >&5
18103 (eval "$ac_link") 2>&5
18104 ac_status=$?
18105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18106 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18107 { (case "(($ac_try" in
18108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18109 *) ac_try_echo=$ac_try;;
18110 esac
18111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18112 $as_echo "$ac_try_echo") >&5
18113 (eval "$ac_try") 2>&5
18114 ac_status=$?
18115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18116 (exit $ac_status); }; }; then
18117 ac_cv_func_working_mktime=yes 11030 ac_cv_func_working_mktime=yes
18118 else 11031 else
18119 $as_echo "$as_me: program exited with status $ac_status" >&5 11032 ac_cv_func_working_mktime=no
18120 $as_echo "$as_me: failed program was:" >&5 11033 fi
18121 sed 's/^/| /' conftest.$ac_ext >&5 11034 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18122 11035 conftest.$ac_objext conftest.beam conftest.$ac_ext
18123 ( exit $ac_status ) 11036 fi
18124 ac_cv_func_working_mktime=no 11037
18125 fi 11038 fi
18126 rm -rf conftest.dSYM 11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
18127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18128 fi
18129
18130
18131 fi
18132 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18133 $as_echo "$ac_cv_func_working_mktime" >&6; } 11040 $as_echo "$ac_cv_func_working_mktime" >&6; }
18134 if test $ac_cv_func_working_mktime = no; then 11041 if test $ac_cv_func_working_mktime = no; then
18135 case " $LIBOBJS " in 11042 case " $LIBOBJS " in
18136 *" mktime.$ac_objext "* ) ;; 11043 *" mktime.$ac_objext "* ) ;;
18137 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" 11044 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18140 11047
18141 fi 11048 fi
18142 11049
18143 if test "$ac_cv_func_working_mktime" = no; then 11050 if test "$ac_cv_func_working_mktime" = no; then
18144 11051
18145 cat >>confdefs.h <<\_ACEOF 11052 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
18146 #define BROKEN_MKTIME 1
18147 _ACEOF
18148 11053
18149 fi 11054 fi
18150 11055
18151 ac_have_func=no # yes means we've found a way to get the load average. 11056 ac_have_func=no # yes means we've found a way to get the load average.
18152 11057
18153 # Make sure getloadavg.c is where it belongs, at configure-time. 11058 # Make sure getloadavg.c is where it belongs, at configure-time.
18154 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 11059 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18155 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 11060 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
18156 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18157 { (exit 1); exit 1; }; }
18158 11061
18159 ac_save_LIBS=$LIBS 11062 ac_save_LIBS=$LIBS
18160 11063
18161 # Check for getloadavg, but be sure not to touch the cache variable. 11064 # Check for getloadavg, but be sure not to touch the cache variable.
18162 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5 11065 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18163 $as_echo_n "checking for getloadavg... " >&6; } 11066 if test "x$ac_cv_func_getloadavg" = x""yes; then :
18164 if test "${ac_cv_func_getloadavg+set}" = set; then
18165 $as_echo_n "(cached) " >&6
18166 else
18167 cat >conftest.$ac_ext <<_ACEOF
18168 /* confdefs.h. */
18169 _ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h. */
18173 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18174 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18175 #define getloadavg innocuous_getloadavg
18176
18177 /* System header to define __stub macros and hopefully few prototypes,
18178 which can conflict with char getloadavg (); below.
18179 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18180 <limits.h> exists even on freestanding compilers. */
18181
18182 #ifdef __STDC__
18183 # include <limits.h>
18184 #else
18185 # include <assert.h>
18186 #endif
18187
18188 #undef getloadavg
18189
18190 /* Override any GCC internal prototype to avoid an error.
18191 Use char because int might match the return type of a GCC
18192 builtin and then its argument prototype would still apply. */
18193 #ifdef __cplusplus
18194 extern "C"
18195 #endif
18196 char getloadavg ();
18197 /* The GNU C library defines this for functions which it implements
18198 to always fail with ENOSYS. Some functions are actually named
18199 something starting with __ and the normal name is an alias. */
18200 #if defined __stub_getloadavg || defined __stub___getloadavg
18201 choke me
18202 #endif
18203
18204 int
18205 main ()
18206 {
18207 return getloadavg ();
18208 ;
18209 return 0;
18210 }
18211 _ACEOF
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216 *) ac_try_echo=$ac_try;;
18217 esac
18218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18219 $as_echo "$ac_try_echo") >&5
18220 (eval "$ac_link") 2>conftest.er1
18221 ac_status=$?
18222 grep -v '^ *+' conftest.er1 >conftest.err
18223 rm -f conftest.er1
18224 cat conftest.err >&5
18225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18226 (exit $ac_status); } && {
18227 test -z "$ac_c_werror_flag" ||
18228 test ! -s conftest.err
18229 } && test -s conftest$ac_exeext && {
18230 test "$cross_compiling" = yes ||
18231 $as_test_x conftest$ac_exeext
18232 }; then
18233 ac_cv_func_getloadavg=yes
18234 else
18235 $as_echo "$as_me: failed program was:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18237
18238 ac_cv_func_getloadavg=no
18239 fi
18240
18241 rm -rf conftest.dSYM
18242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18243 conftest$ac_exeext conftest.$ac_ext
18244 fi
18245 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18246 $as_echo "$ac_cv_func_getloadavg" >&6; }
18247 if test $ac_cv_func_getloadavg = yes; then
18248 exit 0 11067 exit 0
18249 else 11068 else
18250 exit 1 11069 exit 1
18251 fi 11070 fi
18252 ) && ac_have_func=yes 11071 ) && ac_have_func=yes
18253 11072
18254 # On HPUX9, an unprivileged user can get load averages through this function. 11073 # On HPUX9, an unprivileged user can get load averages through this function.
18255
18256 for ac_func in pstat_getdynamic 11074 for ac_func in pstat_getdynamic
18257 do 11075 do :
18258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11076 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
18259 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11077 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
18260 $as_echo_n "checking for $ac_func... " >&6; }
18261 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18262 $as_echo_n "(cached) " >&6
18263 else
18264 cat >conftest.$ac_ext <<_ACEOF
18265 /* confdefs.h. */
18266 _ACEOF
18267 cat confdefs.h >>conftest.$ac_ext
18268 cat >>conftest.$ac_ext <<_ACEOF
18269 /* end confdefs.h. */
18270 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18271 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18272 #define $ac_func innocuous_$ac_func
18273
18274 /* System header to define __stub macros and hopefully few prototypes,
18275 which can conflict with char $ac_func (); below.
18276 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18277 <limits.h> exists even on freestanding compilers. */
18278
18279 #ifdef __STDC__
18280 # include <limits.h>
18281 #else
18282 # include <assert.h>
18283 #endif
18284
18285 #undef $ac_func
18286
18287 /* Override any GCC internal prototype to avoid an error.
18288 Use char because int might match the return type of a GCC
18289 builtin and then its argument prototype would still apply. */
18290 #ifdef __cplusplus
18291 extern "C"
18292 #endif
18293 char $ac_func ();
18294 /* The GNU C library defines this for functions which it implements
18295 to always fail with ENOSYS. Some functions are actually named
18296 something starting with __ and the normal name is an alias. */
18297 #if defined __stub_$ac_func || defined __stub___$ac_func
18298 choke me
18299 #endif
18300
18301 int
18302 main ()
18303 {
18304 return $ac_func ();
18305 ;
18306 return 0;
18307 }
18308 _ACEOF
18309 rm -f conftest.$ac_objext conftest$ac_exeext
18310 if { (ac_try="$ac_link"
18311 case "(($ac_try" in
18312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18313 *) ac_try_echo=$ac_try;;
18314 esac
18315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18316 $as_echo "$ac_try_echo") >&5
18317 (eval "$ac_link") 2>conftest.er1
18318 ac_status=$?
18319 grep -v '^ *+' conftest.er1 >conftest.err
18320 rm -f conftest.er1
18321 cat conftest.err >&5
18322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18323 (exit $ac_status); } && {
18324 test -z "$ac_c_werror_flag" ||
18325 test ! -s conftest.err
18326 } && test -s conftest$ac_exeext && {
18327 test "$cross_compiling" = yes ||
18328 $as_test_x conftest$ac_exeext
18329 }; then
18330 eval "$as_ac_var=yes"
18331 else
18332 $as_echo "$as_me: failed program was:" >&5
18333 sed 's/^/| /' conftest.$ac_ext >&5
18334
18335 eval "$as_ac_var=no"
18336 fi
18337
18338 rm -rf conftest.dSYM
18339 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18340 conftest$ac_exeext conftest.$ac_ext
18341 fi
18342 ac_res=`eval 'as_val=${'$as_ac_var'}
18343 $as_echo "$as_val"'`
18344 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18345 $as_echo "$ac_res" >&6; }
18346 if test `eval 'as_val=${'$as_ac_var'}
18347 $as_echo "$as_val"'` = yes; then
18348 cat >>confdefs.h <<_ACEOF 11078 cat >>confdefs.h <<_ACEOF
18349 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11079 #define HAVE_PSTAT_GETDYNAMIC 1
18350 _ACEOF 11080 _ACEOF
18351 11081
18352 fi 11082 fi
18353 done 11083 done
18354 11084
18355 11085
18356 # Solaris has libkstat which does not require root. 11086 # Solaris has libkstat which does not require root.
18357 11087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18358 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18359 $as_echo_n "checking for kstat_open in -lkstat... " >&6; } 11088 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18360 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then 11089 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
18361 $as_echo_n "(cached) " >&6 11090 $as_echo_n "(cached) " >&6
18362 else 11091 else
18363 ac_check_lib_save_LIBS=$LIBS 11092 ac_check_lib_save_LIBS=$LIBS
18364 LIBS="-lkstat $LIBS" 11093 LIBS="-lkstat $LIBS"
18365 cat >conftest.$ac_ext <<_ACEOF 11094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18366 /* confdefs.h. */
18367 _ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */ 11095 /* end confdefs.h. */
18371 11096
18372 /* Override any GCC internal prototype to avoid an error. 11097 /* Override any GCC internal prototype to avoid an error.
18373 Use char because int might match the return type of a GCC 11098 Use char because int might match the return type of a GCC
18374 builtin and then its argument prototype would still apply. */ 11099 builtin and then its argument prototype would still apply. */
18382 return kstat_open (); 11107 return kstat_open ();
18383 ; 11108 ;
18384 return 0; 11109 return 0;
18385 } 11110 }
18386 _ACEOF 11111 _ACEOF
18387 rm -f conftest.$ac_objext conftest$ac_exeext 11112 if ac_fn_c_try_link "$LINENO"; then :
18388 if { (ac_try="$ac_link"
18389 case "(($ac_try" in
18390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18391 *) ac_try_echo=$ac_try;;
18392 esac
18393 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18394 $as_echo "$ac_try_echo") >&5
18395 (eval "$ac_link") 2>conftest.er1
18396 ac_status=$?
18397 grep -v '^ *+' conftest.er1 >conftest.err
18398 rm -f conftest.er1
18399 cat conftest.err >&5
18400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); } && {
18402 test -z "$ac_c_werror_flag" ||
18403 test ! -s conftest.err
18404 } && test -s conftest$ac_exeext && {
18405 test "$cross_compiling" = yes ||
18406 $as_test_x conftest$ac_exeext
18407 }; then
18408 ac_cv_lib_kstat_kstat_open=yes 11113 ac_cv_lib_kstat_kstat_open=yes
18409 else 11114 else
18410 $as_echo "$as_me: failed program was:" >&5 11115 ac_cv_lib_kstat_kstat_open=no
18411 sed 's/^/| /' conftest.$ac_ext >&5 11116 fi
18412 11117 rm -f core conftest.err conftest.$ac_objext \
18413 ac_cv_lib_kstat_kstat_open=no 11118 conftest$ac_exeext conftest.$ac_ext
18414 fi
18415
18416 rm -rf conftest.dSYM
18417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18418 conftest$ac_exeext conftest.$ac_ext
18419 LIBS=$ac_check_lib_save_LIBS 11119 LIBS=$ac_check_lib_save_LIBS
18420 fi 11120 fi
18421 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18422 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } 11122 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18423 if test $ac_cv_lib_kstat_kstat_open = yes; then 11123 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
18424 cat >>confdefs.h <<_ACEOF 11124 cat >>confdefs.h <<_ACEOF
18425 #define HAVE_LIBKSTAT 1 11125 #define HAVE_LIBKSTAT 1
18426 _ACEOF 11126 _ACEOF
18427 11127
18428 LIBS="-lkstat $LIBS" 11128 LIBS="-lkstat $LIBS"
18434 # Some systems with -lutil have (and need) -lkvm as well, some do not. 11134 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18435 # On Solaris, -lkvm requires nlist from -lelf, so check that first 11135 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18436 # to get the right answer into the cache. 11136 # to get the right answer into the cache.
18437 # For kstat on solaris, we need libelf to force the definition of SVR4 below. 11137 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18438 if test $ac_have_func = no; then 11138 if test $ac_have_func = no; then
18439 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 11139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18440 $as_echo_n "checking for elf_begin in -lelf... " >&6; } 11140 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18441 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 11141 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18442 $as_echo_n "(cached) " >&6 11142 $as_echo_n "(cached) " >&6
18443 else 11143 else
18444 ac_check_lib_save_LIBS=$LIBS 11144 ac_check_lib_save_LIBS=$LIBS
18445 LIBS="-lelf $LIBS" 11145 LIBS="-lelf $LIBS"
18446 cat >conftest.$ac_ext <<_ACEOF 11146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18447 /* confdefs.h. */
18448 _ACEOF
18449 cat confdefs.h >>conftest.$ac_ext
18450 cat >>conftest.$ac_ext <<_ACEOF
18451 /* end confdefs.h. */ 11147 /* end confdefs.h. */
18452 11148
18453 /* Override any GCC internal prototype to avoid an error. 11149 /* Override any GCC internal prototype to avoid an error.
18454 Use char because int might match the return type of a GCC 11150 Use char because int might match the return type of a GCC
18455 builtin and then its argument prototype would still apply. */ 11151 builtin and then its argument prototype would still apply. */
18463 return elf_begin (); 11159 return elf_begin ();
18464 ; 11160 ;
18465 return 0; 11161 return 0;
18466 } 11162 }
18467 _ACEOF 11163 _ACEOF
18468 rm -f conftest.$ac_objext conftest$ac_exeext 11164 if ac_fn_c_try_link "$LINENO"; then :
18469 if { (ac_try="$ac_link"
18470 case "(($ac_try" in
18471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18472 *) ac_try_echo=$ac_try;;
18473 esac
18474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18475 $as_echo "$ac_try_echo") >&5
18476 (eval "$ac_link") 2>conftest.er1
18477 ac_status=$?
18478 grep -v '^ *+' conftest.er1 >conftest.err
18479 rm -f conftest.er1
18480 cat conftest.err >&5
18481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18482 (exit $ac_status); } && {
18483 test -z "$ac_c_werror_flag" ||
18484 test ! -s conftest.err
18485 } && test -s conftest$ac_exeext && {
18486 test "$cross_compiling" = yes ||
18487 $as_test_x conftest$ac_exeext
18488 }; then
18489 ac_cv_lib_elf_elf_begin=yes 11165 ac_cv_lib_elf_elf_begin=yes
18490 else 11166 else
18491 $as_echo "$as_me: failed program was:" >&5 11167 ac_cv_lib_elf_elf_begin=no
18492 sed 's/^/| /' conftest.$ac_ext >&5 11168 fi
18493 11169 rm -f core conftest.err conftest.$ac_objext \
18494 ac_cv_lib_elf_elf_begin=no 11170 conftest$ac_exeext conftest.$ac_ext
18495 fi
18496
18497 rm -rf conftest.dSYM
18498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18499 conftest$ac_exeext conftest.$ac_ext
18500 LIBS=$ac_check_lib_save_LIBS 11171 LIBS=$ac_check_lib_save_LIBS
18501 fi 11172 fi
18502 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18503 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } 11174 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18504 if test $ac_cv_lib_elf_elf_begin = yes; then 11175 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
18505 LIBS="-lelf $LIBS" 11176 LIBS="-lelf $LIBS"
18506 fi 11177 fi
18507 11178
18508 fi 11179 fi
18509 if test $ac_have_func = no; then 11180 if test $ac_have_func = no; then
18510 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 11181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18511 $as_echo_n "checking for kvm_open in -lkvm... " >&6; } 11182 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18512 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then 11183 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18513 $as_echo_n "(cached) " >&6 11184 $as_echo_n "(cached) " >&6
18514 else 11185 else
18515 ac_check_lib_save_LIBS=$LIBS 11186 ac_check_lib_save_LIBS=$LIBS
18516 LIBS="-lkvm $LIBS" 11187 LIBS="-lkvm $LIBS"
18517 cat >conftest.$ac_ext <<_ACEOF 11188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18518 /* confdefs.h. */
18519 _ACEOF
18520 cat confdefs.h >>conftest.$ac_ext
18521 cat >>conftest.$ac_ext <<_ACEOF
18522 /* end confdefs.h. */ 11189 /* end confdefs.h. */
18523 11190
18524 /* Override any GCC internal prototype to avoid an error. 11191 /* Override any GCC internal prototype to avoid an error.
18525 Use char because int might match the return type of a GCC 11192 Use char because int might match the return type of a GCC
18526 builtin and then its argument prototype would still apply. */ 11193 builtin and then its argument prototype would still apply. */
18534 return kvm_open (); 11201 return kvm_open ();
18535 ; 11202 ;
18536 return 0; 11203 return 0;
18537 } 11204 }
18538 _ACEOF 11205 _ACEOF
18539 rm -f conftest.$ac_objext conftest$ac_exeext 11206 if ac_fn_c_try_link "$LINENO"; then :
18540 if { (ac_try="$ac_link"
18541 case "(($ac_try" in
18542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18543 *) ac_try_echo=$ac_try;;
18544 esac
18545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18546 $as_echo "$ac_try_echo") >&5
18547 (eval "$ac_link") 2>conftest.er1
18548 ac_status=$?
18549 grep -v '^ *+' conftest.er1 >conftest.err
18550 rm -f conftest.er1
18551 cat conftest.err >&5
18552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } && {
18554 test -z "$ac_c_werror_flag" ||
18555 test ! -s conftest.err
18556 } && test -s conftest$ac_exeext && {
18557 test "$cross_compiling" = yes ||
18558 $as_test_x conftest$ac_exeext
18559 }; then
18560 ac_cv_lib_kvm_kvm_open=yes 11207 ac_cv_lib_kvm_kvm_open=yes
18561 else 11208 else
18562 $as_echo "$as_me: failed program was:" >&5 11209 ac_cv_lib_kvm_kvm_open=no
18563 sed 's/^/| /' conftest.$ac_ext >&5 11210 fi
18564 11211 rm -f core conftest.err conftest.$ac_objext \
18565 ac_cv_lib_kvm_kvm_open=no 11212 conftest$ac_exeext conftest.$ac_ext
18566 fi
18567
18568 rm -rf conftest.dSYM
18569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18570 conftest$ac_exeext conftest.$ac_ext
18571 LIBS=$ac_check_lib_save_LIBS 11213 LIBS=$ac_check_lib_save_LIBS
18572 fi 11214 fi
18573 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18574 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } 11216 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18575 if test $ac_cv_lib_kvm_kvm_open = yes; then 11217 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
18576 LIBS="-lkvm $LIBS" 11218 LIBS="-lkvm $LIBS"
18577 fi 11219 fi
18578 11220
18579 # Check for the 4.4BSD definition of getloadavg. 11221 # Check for the 4.4BSD definition of getloadavg.
18580 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18581 $as_echo_n "checking for getloadavg in -lutil... " >&6; } 11223 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18582 if test "${ac_cv_lib_util_getloadavg+set}" = set; then 11224 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18583 $as_echo_n "(cached) " >&6 11225 $as_echo_n "(cached) " >&6
18584 else 11226 else
18585 ac_check_lib_save_LIBS=$LIBS 11227 ac_check_lib_save_LIBS=$LIBS
18586 LIBS="-lutil $LIBS" 11228 LIBS="-lutil $LIBS"
18587 cat >conftest.$ac_ext <<_ACEOF 11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18588 /* confdefs.h. */
18589 _ACEOF
18590 cat confdefs.h >>conftest.$ac_ext
18591 cat >>conftest.$ac_ext <<_ACEOF
18592 /* end confdefs.h. */ 11230 /* end confdefs.h. */
18593 11231
18594 /* Override any GCC internal prototype to avoid an error. 11232 /* Override any GCC internal prototype to avoid an error.
18595 Use char because int might match the return type of a GCC 11233 Use char because int might match the return type of a GCC
18596 builtin and then its argument prototype would still apply. */ 11234 builtin and then its argument prototype would still apply. */
18604 return getloadavg (); 11242 return getloadavg ();
18605 ; 11243 ;
18606 return 0; 11244 return 0;
18607 } 11245 }
18608 _ACEOF 11246 _ACEOF
18609 rm -f conftest.$ac_objext conftest$ac_exeext 11247 if ac_fn_c_try_link "$LINENO"; then :
18610 if { (ac_try="$ac_link"
18611 case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18614 esac
18615 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18616 $as_echo "$ac_try_echo") >&5
18617 (eval "$ac_link") 2>conftest.er1
18618 ac_status=$?
18619 grep -v '^ *+' conftest.er1 >conftest.err
18620 rm -f conftest.er1
18621 cat conftest.err >&5
18622 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18623 (exit $ac_status); } && {
18624 test -z "$ac_c_werror_flag" ||
18625 test ! -s conftest.err
18626 } && test -s conftest$ac_exeext && {
18627 test "$cross_compiling" = yes ||
18628 $as_test_x conftest$ac_exeext
18629 }; then
18630 ac_cv_lib_util_getloadavg=yes 11248 ac_cv_lib_util_getloadavg=yes
18631 else 11249 else
18632 $as_echo "$as_me: failed program was:" >&5 11250 ac_cv_lib_util_getloadavg=no
18633 sed 's/^/| /' conftest.$ac_ext >&5 11251 fi
18634 11252 rm -f core conftest.err conftest.$ac_objext \
18635 ac_cv_lib_util_getloadavg=no 11253 conftest$ac_exeext conftest.$ac_ext
18636 fi
18637
18638 rm -rf conftest.dSYM
18639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18640 conftest$ac_exeext conftest.$ac_ext
18641 LIBS=$ac_check_lib_save_LIBS 11254 LIBS=$ac_check_lib_save_LIBS
18642 fi 11255 fi
18643 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18644 $as_echo "$ac_cv_lib_util_getloadavg" >&6; } 11257 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18645 if test $ac_cv_lib_util_getloadavg = yes; then 11258 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
18646 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 11259 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18647 fi 11260 fi
18648 11261
18649 fi 11262 fi
18650 11263
18651 if test $ac_have_func = no; then 11264 if test $ac_have_func = no; then
18652 # There is a commonly available library for RS/6000 AIX. 11265 # There is a commonly available library for RS/6000 AIX.
18653 # Since it is not a standard part of AIX, it might be installed locally. 11266 # Since it is not a standard part of AIX, it might be installed locally.
18654 ac_getloadavg_LIBS=$LIBS 11267 ac_getloadavg_LIBS=$LIBS
18655 LIBS="-L/usr/local/lib $LIBS" 11268 LIBS="-L/usr/local/lib $LIBS"
18656 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18657 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } 11270 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18658 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then 11271 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18659 $as_echo_n "(cached) " >&6 11272 $as_echo_n "(cached) " >&6
18660 else 11273 else
18661 ac_check_lib_save_LIBS=$LIBS 11274 ac_check_lib_save_LIBS=$LIBS
18662 LIBS="-lgetloadavg $LIBS" 11275 LIBS="-lgetloadavg $LIBS"
18663 cat >conftest.$ac_ext <<_ACEOF 11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664 /* confdefs.h. */
18665 _ACEOF
18666 cat confdefs.h >>conftest.$ac_ext
18667 cat >>conftest.$ac_ext <<_ACEOF
18668 /* end confdefs.h. */ 11277 /* end confdefs.h. */
18669 11278
18670 /* Override any GCC internal prototype to avoid an error. 11279 /* Override any GCC internal prototype to avoid an error.
18671 Use char because int might match the return type of a GCC 11280 Use char because int might match the return type of a GCC
18672 builtin and then its argument prototype would still apply. */ 11281 builtin and then its argument prototype would still apply. */
18680 return getloadavg (); 11289 return getloadavg ();
18681 ; 11290 ;
18682 return 0; 11291 return 0;
18683 } 11292 }
18684 _ACEOF 11293 _ACEOF
18685 rm -f conftest.$ac_objext conftest$ac_exeext 11294 if ac_fn_c_try_link "$LINENO"; then :
18686 if { (ac_try="$ac_link"
18687 case "(($ac_try" in
18688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18689 *) ac_try_echo=$ac_try;;
18690 esac
18691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18692 $as_echo "$ac_try_echo") >&5
18693 (eval "$ac_link") 2>conftest.er1
18694 ac_status=$?
18695 grep -v '^ *+' conftest.er1 >conftest.err
18696 rm -f conftest.er1
18697 cat conftest.err >&5
18698 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18699 (exit $ac_status); } && {
18700 test -z "$ac_c_werror_flag" ||
18701 test ! -s conftest.err
18702 } && test -s conftest$ac_exeext && {
18703 test "$cross_compiling" = yes ||
18704 $as_test_x conftest$ac_exeext
18705 }; then
18706 ac_cv_lib_getloadavg_getloadavg=yes 11295 ac_cv_lib_getloadavg_getloadavg=yes
18707 else 11296 else
18708 $as_echo "$as_me: failed program was:" >&5 11297 ac_cv_lib_getloadavg_getloadavg=no
18709 sed 's/^/| /' conftest.$ac_ext >&5 11298 fi
18710 11299 rm -f core conftest.err conftest.$ac_objext \
18711 ac_cv_lib_getloadavg_getloadavg=no 11300 conftest$ac_exeext conftest.$ac_ext
18712 fi
18713
18714 rm -rf conftest.dSYM
18715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18716 conftest$ac_exeext conftest.$ac_ext
18717 LIBS=$ac_check_lib_save_LIBS 11301 LIBS=$ac_check_lib_save_LIBS
18718 fi 11302 fi
18719 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18720 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } 11304 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18721 if test $ac_cv_lib_getloadavg_getloadavg = yes; then 11305 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
18722 LIBS="-lgetloadavg $LIBS" 11306 LIBS="-lgetloadavg $LIBS"
18723 else 11307 else
18724 LIBS=$ac_getloadavg_LIBS 11308 LIBS=$ac_getloadavg_LIBS
18725 fi 11309 fi
18726 11310
18727 fi 11311 fi
18728 11312
18729 # Make sure it is really in the library, if we think we found it, 11313 # Make sure it is really in the library, if we think we found it,
18730 # otherwise set up the replacement function. 11314 # otherwise set up the replacement function.
18731
18732 for ac_func in getloadavg 11315 for ac_func in getloadavg
18733 do 11316 do :
18734 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11317 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18735 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11318 if test "x$ac_cv_func_getloadavg" = x""yes; then :
18736 $as_echo_n "checking for $ac_func... " >&6; }
18737 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18738 $as_echo_n "(cached) " >&6
18739 else
18740 cat >conftest.$ac_ext <<_ACEOF
18741 /* confdefs.h. */
18742 _ACEOF
18743 cat confdefs.h >>conftest.$ac_ext
18744 cat >>conftest.$ac_ext <<_ACEOF
18745 /* end confdefs.h. */
18746 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18748 #define $ac_func innocuous_$ac_func
18749
18750 /* System header to define __stub macros and hopefully few prototypes,
18751 which can conflict with char $ac_func (); below.
18752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18753 <limits.h> exists even on freestanding compilers. */
18754
18755 #ifdef __STDC__
18756 # include <limits.h>
18757 #else
18758 # include <assert.h>
18759 #endif
18760
18761 #undef $ac_func
18762
18763 /* Override any GCC internal prototype to avoid an error.
18764 Use char because int might match the return type of a GCC
18765 builtin and then its argument prototype would still apply. */
18766 #ifdef __cplusplus
18767 extern "C"
18768 #endif
18769 char $ac_func ();
18770 /* The GNU C library defines this for functions which it implements
18771 to always fail with ENOSYS. Some functions are actually named
18772 something starting with __ and the normal name is an alias. */
18773 #if defined __stub_$ac_func || defined __stub___$ac_func
18774 choke me
18775 #endif
18776
18777 int
18778 main ()
18779 {
18780 return $ac_func ();
18781 ;
18782 return 0;
18783 }
18784 _ACEOF
18785 rm -f conftest.$ac_objext conftest$ac_exeext
18786 if { (ac_try="$ac_link"
18787 case "(($ac_try" in
18788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18789 *) ac_try_echo=$ac_try;;
18790 esac
18791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18792 $as_echo "$ac_try_echo") >&5
18793 (eval "$ac_link") 2>conftest.er1
18794 ac_status=$?
18795 grep -v '^ *+' conftest.er1 >conftest.err
18796 rm -f conftest.er1
18797 cat conftest.err >&5
18798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18799 (exit $ac_status); } && {
18800 test -z "$ac_c_werror_flag" ||
18801 test ! -s conftest.err
18802 } && test -s conftest$ac_exeext && {
18803 test "$cross_compiling" = yes ||
18804 $as_test_x conftest$ac_exeext
18805 }; then
18806 eval "$as_ac_var=yes"
18807 else
18808 $as_echo "$as_me: failed program was:" >&5
18809 sed 's/^/| /' conftest.$ac_ext >&5
18810
18811 eval "$as_ac_var=no"
18812 fi
18813
18814 rm -rf conftest.dSYM
18815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18816 conftest$ac_exeext conftest.$ac_ext
18817 fi
18818 ac_res=`eval 'as_val=${'$as_ac_var'}
18819 $as_echo "$as_val"'`
18820 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18821 $as_echo "$ac_res" >&6; }
18822 if test `eval 'as_val=${'$as_ac_var'}
18823 $as_echo "$as_val"'` = yes; then
18824 cat >>confdefs.h <<_ACEOF 11319 cat >>confdefs.h <<_ACEOF
18825 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11320 #define HAVE_GETLOADAVG 1
18826 _ACEOF 11321 _ACEOF
18827 11322
18828 else 11323 else
18829 case " $LIBOBJS " in 11324 case " $LIBOBJS " in
18830 *" getloadavg.$ac_objext "* ) ;; 11325 *" getloadavg.$ac_objext "* ) ;;
18831 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" 11326 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18832 ;; 11327 ;;
18833 esac 11328 esac
18834 11329
18835 11330
18836 cat >>confdefs.h <<\_ACEOF 11331 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
18837 #define C_GETLOADAVG 1
18838 _ACEOF
18839 11332
18840 # Figure out what our getloadavg.c needs. 11333 # Figure out what our getloadavg.c needs.
18841 ac_have_func=no 11334 ac_have_func=no
18842 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then 11335 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18843 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 11336 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
18844 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18845 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18846 $as_echo_n "(cached) " >&6
18847 fi
18848 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18849 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18850 else
18851 # Is the header compilable?
18852 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18853 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18854 cat >conftest.$ac_ext <<_ACEOF
18855 /* confdefs.h. */
18856 _ACEOF
18857 cat confdefs.h >>conftest.$ac_ext
18858 cat >>conftest.$ac_ext <<_ACEOF
18859 /* end confdefs.h. */
18860 $ac_includes_default
18861 #include <sys/dg_sys_info.h>
18862 _ACEOF
18863 rm -f conftest.$ac_objext
18864 if { (ac_try="$ac_compile"
18865 case "(($ac_try" in
18866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18867 *) ac_try_echo=$ac_try;;
18868 esac
18869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18870 $as_echo "$ac_try_echo") >&5
18871 (eval "$ac_compile") 2>conftest.er1
18872 ac_status=$?
18873 grep -v '^ *+' conftest.er1 >conftest.err
18874 rm -f conftest.er1
18875 cat conftest.err >&5
18876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18877 (exit $ac_status); } && {
18878 test -z "$ac_c_werror_flag" ||
18879 test ! -s conftest.err
18880 } && test -s conftest.$ac_objext; then
18881 ac_header_compiler=yes
18882 else
18883 $as_echo "$as_me: failed program was:" >&5
18884 sed 's/^/| /' conftest.$ac_ext >&5
18885
18886 ac_header_compiler=no
18887 fi
18888
18889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18890 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18891 $as_echo "$ac_header_compiler" >&6; }
18892
18893 # Is the header present?
18894 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18895 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18896 cat >conftest.$ac_ext <<_ACEOF
18897 /* confdefs.h. */
18898 _ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18902 #include <sys/dg_sys_info.h>
18903 _ACEOF
18904 if { (ac_try="$ac_cpp conftest.$ac_ext"
18905 case "(($ac_try" in
18906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18907 *) ac_try_echo=$ac_try;;
18908 esac
18909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18910 $as_echo "$ac_try_echo") >&5
18911 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18912 ac_status=$?
18913 grep -v '^ *+' conftest.er1 >conftest.err
18914 rm -f conftest.er1
18915 cat conftest.err >&5
18916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18917 (exit $ac_status); } >/dev/null && {
18918 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18919 test ! -s conftest.err
18920 }; then
18921 ac_header_preproc=yes
18922 else
18923 $as_echo "$as_me: failed program was:" >&5
18924 sed 's/^/| /' conftest.$ac_ext >&5
18925
18926 ac_header_preproc=no
18927 fi
18928
18929 rm -f conftest.err conftest.$ac_ext
18930 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18931 $as_echo "$ac_header_preproc" >&6; }
18932
18933 # So? What about this header?
18934 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18935 yes:no: )
18936 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18937 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18938 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18939 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18940 ac_header_preproc=yes
18941 ;;
18942 no:yes:* )
18943 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18944 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18945 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18946 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18947 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18948 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18949 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18950 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18951 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18952 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18953 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18954 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18955
18956 ;;
18957 esac
18958 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18959 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18960 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18961 $as_echo_n "(cached) " >&6
18962 else
18963 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18964 fi
18965 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18966 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18967
18968 fi
18969 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18970 ac_have_func=yes 11337 ac_have_func=yes
18971 11338
18972 cat >>confdefs.h <<\_ACEOF 11339 $as_echo "#define DGUX 1" >>confdefs.h
18973 #define DGUX 1 11340
18974 _ACEOF 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
18975
18976
18977 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18978 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } 11342 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
18979 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then 11343 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
18980 $as_echo_n "(cached) " >&6 11344 $as_echo_n "(cached) " >&6
18981 else 11345 else
18982 ac_check_lib_save_LIBS=$LIBS 11346 ac_check_lib_save_LIBS=$LIBS
18983 LIBS="-ldgc $LIBS" 11347 LIBS="-ldgc $LIBS"
18984 cat >conftest.$ac_ext <<_ACEOF 11348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18985 /* confdefs.h. */
18986 _ACEOF
18987 cat confdefs.h >>conftest.$ac_ext
18988 cat >>conftest.$ac_ext <<_ACEOF
18989 /* end confdefs.h. */ 11349 /* end confdefs.h. */
18990 11350
18991 /* Override any GCC internal prototype to avoid an error. 11351 /* Override any GCC internal prototype to avoid an error.
18992 Use char because int might match the return type of a GCC 11352 Use char because int might match the return type of a GCC
18993 builtin and then its argument prototype would still apply. */ 11353 builtin and then its argument prototype would still apply. */
19001 return dg_sys_info (); 11361 return dg_sys_info ();
19002 ; 11362 ;
19003 return 0; 11363 return 0;
19004 } 11364 }
19005 _ACEOF 11365 _ACEOF
19006 rm -f conftest.$ac_objext conftest$ac_exeext 11366 if ac_fn_c_try_link "$LINENO"; then :
19007 if { (ac_try="$ac_link"
19008 case "(($ac_try" in
19009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19010 *) ac_try_echo=$ac_try;;
19011 esac
19012 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19013 $as_echo "$ac_try_echo") >&5
19014 (eval "$ac_link") 2>conftest.er1
19015 ac_status=$?
19016 grep -v '^ *+' conftest.er1 >conftest.err
19017 rm -f conftest.er1
19018 cat conftest.err >&5
19019 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19020 (exit $ac_status); } && {
19021 test -z "$ac_c_werror_flag" ||
19022 test ! -s conftest.err
19023 } && test -s conftest$ac_exeext && {
19024 test "$cross_compiling" = yes ||
19025 $as_test_x conftest$ac_exeext
19026 }; then
19027 ac_cv_lib_dgc_dg_sys_info=yes 11367 ac_cv_lib_dgc_dg_sys_info=yes
19028 else 11368 else
19029 $as_echo "$as_me: failed program was:" >&5 11369 ac_cv_lib_dgc_dg_sys_info=no
19030 sed 's/^/| /' conftest.$ac_ext >&5 11370 fi
19031 11371 rm -f core conftest.err conftest.$ac_objext \
19032 ac_cv_lib_dgc_dg_sys_info=no 11372 conftest$ac_exeext conftest.$ac_ext
19033 fi
19034
19035 rm -rf conftest.dSYM
19036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19037 conftest$ac_exeext conftest.$ac_ext
19038 LIBS=$ac_check_lib_save_LIBS 11373 LIBS=$ac_check_lib_save_LIBS
19039 fi 11374 fi
19040 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19041 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } 11376 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19042 if test $ac_cv_lib_dgc_dg_sys_info = yes; then 11377 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19043 cat >>confdefs.h <<_ACEOF 11378 cat >>confdefs.h <<_ACEOF
19044 #define HAVE_LIBDGC 1 11379 #define HAVE_LIBDGC 1
19045 _ACEOF 11380 _ACEOF
19046 11381
19047 LIBS="-ldgc $LIBS" 11382 LIBS="-ldgc $LIBS"
19050 11385
19051 fi 11386 fi
19052 11387
19053 11388
19054 11389
19055 if test "${ac_cv_header_locale_h+set}" = set; then 11390 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
19056 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5 11391 if test "x$ac_cv_header_locale_h" = x""yes; then :
19057 $as_echo_n "checking for locale.h... " >&6; } 11392
19058 if test "${ac_cv_header_locale_h+set}" = set; then 11393 fi
19059 $as_echo_n "(cached) " >&6
19060 fi
19061 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19062 $as_echo "$ac_cv_header_locale_h" >&6; }
19063 else
19064 # Is the header compilable?
19065 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19066 $as_echo_n "checking locale.h usability... " >&6; }
19067 cat >conftest.$ac_ext <<_ACEOF
19068 /* confdefs.h. */
19069 _ACEOF
19070 cat confdefs.h >>conftest.$ac_ext
19071 cat >>conftest.$ac_ext <<_ACEOF
19072 /* end confdefs.h. */
19073 $ac_includes_default
19074 #include <locale.h>
19075 _ACEOF
19076 rm -f conftest.$ac_objext
19077 if { (ac_try="$ac_compile"
19078 case "(($ac_try" in
19079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19080 *) ac_try_echo=$ac_try;;
19081 esac
19082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19083 $as_echo "$ac_try_echo") >&5
19084 (eval "$ac_compile") 2>conftest.er1
19085 ac_status=$?
19086 grep -v '^ *+' conftest.er1 >conftest.err
19087 rm -f conftest.er1
19088 cat conftest.err >&5
19089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19090 (exit $ac_status); } && {
19091 test -z "$ac_c_werror_flag" ||
19092 test ! -s conftest.err
19093 } && test -s conftest.$ac_objext; then
19094 ac_header_compiler=yes
19095 else
19096 $as_echo "$as_me: failed program was:" >&5
19097 sed 's/^/| /' conftest.$ac_ext >&5
19098
19099 ac_header_compiler=no
19100 fi
19101
19102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19103 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19104 $as_echo "$ac_header_compiler" >&6; }
19105
19106 # Is the header present?
19107 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19108 $as_echo_n "checking locale.h presence... " >&6; }
19109 cat >conftest.$ac_ext <<_ACEOF
19110 /* confdefs.h. */
19111 _ACEOF
19112 cat confdefs.h >>conftest.$ac_ext
19113 cat >>conftest.$ac_ext <<_ACEOF
19114 /* end confdefs.h. */
19115 #include <locale.h>
19116 _ACEOF
19117 if { (ac_try="$ac_cpp conftest.$ac_ext"
19118 case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19121 esac
19122 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19123 $as_echo "$ac_try_echo") >&5
19124 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19125 ac_status=$?
19126 grep -v '^ *+' conftest.er1 >conftest.err
19127 rm -f conftest.er1
19128 cat conftest.err >&5
19129 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); } >/dev/null && {
19131 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19132 test ! -s conftest.err
19133 }; then
19134 ac_header_preproc=yes
19135 else
19136 $as_echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19138
19139 ac_header_preproc=no
19140 fi
19141
19142 rm -f conftest.err conftest.$ac_ext
19143 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19144 $as_echo "$ac_header_preproc" >&6; }
19145
19146 # So? What about this header?
19147 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19148 yes:no: )
19149 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19150 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19151 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19152 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19153 ac_header_preproc=yes
19154 ;;
19155 no:yes:* )
19156 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19157 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19158 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19159 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19160 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19161 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19162 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19163 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19164 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19165 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19166 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19167 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19168
19169 ;;
19170 esac
19171 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19172 $as_echo_n "checking for locale.h... " >&6; }
19173 if test "${ac_cv_header_locale_h+set}" = set; then
19174 $as_echo_n "(cached) " >&6
19175 else
19176 ac_cv_header_locale_h=$ac_header_preproc
19177 fi
19178 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19179 $as_echo "$ac_cv_header_locale_h" >&6; }
19180
19181 fi
19182
19183 11394
19184 11395
19185 for ac_func in setlocale 11396 for ac_func in setlocale
19186 do 11397 do :
19187 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11398 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
19188 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11399 if test "x$ac_cv_func_setlocale" = x""yes; then :
19189 $as_echo_n "checking for $ac_func... " >&6; }
19190 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19191 $as_echo_n "(cached) " >&6
19192 else
19193 cat >conftest.$ac_ext <<_ACEOF
19194 /* confdefs.h. */
19195 _ACEOF
19196 cat confdefs.h >>conftest.$ac_ext
19197 cat >>conftest.$ac_ext <<_ACEOF
19198 /* end confdefs.h. */
19199 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19200 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19201 #define $ac_func innocuous_$ac_func
19202
19203 /* System header to define __stub macros and hopefully few prototypes,
19204 which can conflict with char $ac_func (); below.
19205 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19206 <limits.h> exists even on freestanding compilers. */
19207
19208 #ifdef __STDC__
19209 # include <limits.h>
19210 #else
19211 # include <assert.h>
19212 #endif
19213
19214 #undef $ac_func
19215
19216 /* Override any GCC internal prototype to avoid an error.
19217 Use char because int might match the return type of a GCC
19218 builtin and then its argument prototype would still apply. */
19219 #ifdef __cplusplus
19220 extern "C"
19221 #endif
19222 char $ac_func ();
19223 /* The GNU C library defines this for functions which it implements
19224 to always fail with ENOSYS. Some functions are actually named
19225 something starting with __ and the normal name is an alias. */
19226 #if defined __stub_$ac_func || defined __stub___$ac_func
19227 choke me
19228 #endif
19229
19230 int
19231 main ()
19232 {
19233 return $ac_func ();
19234 ;
19235 return 0;
19236 }
19237 _ACEOF
19238 rm -f conftest.$ac_objext conftest$ac_exeext
19239 if { (ac_try="$ac_link"
19240 case "(($ac_try" in
19241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19242 *) ac_try_echo=$ac_try;;
19243 esac
19244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19245 $as_echo "$ac_try_echo") >&5
19246 (eval "$ac_link") 2>conftest.er1
19247 ac_status=$?
19248 grep -v '^ *+' conftest.er1 >conftest.err
19249 rm -f conftest.er1
19250 cat conftest.err >&5
19251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252 (exit $ac_status); } && {
19253 test -z "$ac_c_werror_flag" ||
19254 test ! -s conftest.err
19255 } && test -s conftest$ac_exeext && {
19256 test "$cross_compiling" = yes ||
19257 $as_test_x conftest$ac_exeext
19258 }; then
19259 eval "$as_ac_var=yes"
19260 else
19261 $as_echo "$as_me: failed program was:" >&5
19262 sed 's/^/| /' conftest.$ac_ext >&5
19263
19264 eval "$as_ac_var=no"
19265 fi
19266
19267 rm -rf conftest.dSYM
19268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19269 conftest$ac_exeext conftest.$ac_ext
19270 fi
19271 ac_res=`eval 'as_val=${'$as_ac_var'}
19272 $as_echo "$as_val"'`
19273 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19274 $as_echo "$ac_res" >&6; }
19275 if test `eval 'as_val=${'$as_ac_var'}
19276 $as_echo "$as_val"'` = yes; then
19277 cat >>confdefs.h <<_ACEOF 11400 cat >>confdefs.h <<_ACEOF
19278 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11401 #define HAVE_SETLOCALE 1
19279 _ACEOF 11402 _ACEOF
19280 11403
19281 fi 11404 fi
19282 done 11405 done
19283 11406
19286 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because 11409 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19287 # Irix 4.0.5F has the header but not the library. 11410 # Irix 4.0.5F has the header but not the library.
19288 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then 11411 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19289 ac_have_func=yes 11412 ac_have_func=yes
19290 11413
19291 cat >>confdefs.h <<\_ACEOF 11414 $as_echo "#define SVR4 1" >>confdefs.h
19292 #define SVR4 1
19293 _ACEOF
19294 11415
19295 fi 11416 fi
19296 11417
19297 if test $ac_have_func = no; then 11418 if test $ac_have_func = no; then
19298 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then 11419 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19299 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 11420 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19300 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19301 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19302 $as_echo_n "(cached) " >&6
19303 fi
19304 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19305 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19306 else
19307 # Is the header compilable?
19308 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19309 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19310 cat >conftest.$ac_ext <<_ACEOF
19311 /* confdefs.h. */
19312 _ACEOF
19313 cat confdefs.h >>conftest.$ac_ext
19314 cat >>conftest.$ac_ext <<_ACEOF
19315 /* end confdefs.h. */
19316 $ac_includes_default
19317 #include <inq_stats/cpustats.h>
19318 _ACEOF
19319 rm -f conftest.$ac_objext
19320 if { (ac_try="$ac_compile"
19321 case "(($ac_try" in
19322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19323 *) ac_try_echo=$ac_try;;
19324 esac
19325 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19326 $as_echo "$ac_try_echo") >&5
19327 (eval "$ac_compile") 2>conftest.er1
19328 ac_status=$?
19329 grep -v '^ *+' conftest.er1 >conftest.err
19330 rm -f conftest.er1
19331 cat conftest.err >&5
19332 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19333 (exit $ac_status); } && {
19334 test -z "$ac_c_werror_flag" ||
19335 test ! -s conftest.err
19336 } && test -s conftest.$ac_objext; then
19337 ac_header_compiler=yes
19338 else
19339 $as_echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19341
19342 ac_header_compiler=no
19343 fi
19344
19345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19346 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19347 $as_echo "$ac_header_compiler" >&6; }
19348
19349 # Is the header present?
19350 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19351 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19352 cat >conftest.$ac_ext <<_ACEOF
19353 /* confdefs.h. */
19354 _ACEOF
19355 cat confdefs.h >>conftest.$ac_ext
19356 cat >>conftest.$ac_ext <<_ACEOF
19357 /* end confdefs.h. */
19358 #include <inq_stats/cpustats.h>
19359 _ACEOF
19360 if { (ac_try="$ac_cpp conftest.$ac_ext"
19361 case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19364 esac
19365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19366 $as_echo "$ac_try_echo") >&5
19367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19368 ac_status=$?
19369 grep -v '^ *+' conftest.er1 >conftest.err
19370 rm -f conftest.er1
19371 cat conftest.err >&5
19372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19373 (exit $ac_status); } >/dev/null && {
19374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19375 test ! -s conftest.err
19376 }; then
19377 ac_header_preproc=yes
19378 else
19379 $as_echo "$as_me: failed program was:" >&5
19380 sed 's/^/| /' conftest.$ac_ext >&5
19381
19382 ac_header_preproc=no
19383 fi
19384
19385 rm -f conftest.err conftest.$ac_ext
19386 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19387 $as_echo "$ac_header_preproc" >&6; }
19388
19389 # So? What about this header?
19390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19391 yes:no: )
19392 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19393 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19394 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19395 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19396 ac_header_preproc=yes
19397 ;;
19398 no:yes:* )
19399 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19400 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19401 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19402 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19403 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19404 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19405 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19406 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19407 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19408 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19409 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19410 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19411
19412 ;;
19413 esac
19414 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19415 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19416 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19417 $as_echo_n "(cached) " >&6
19418 else
19419 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19420 fi
19421 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19422 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19423
19424 fi
19425 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19426 ac_have_func=yes 11421 ac_have_func=yes
19427 11422
19428 cat >>confdefs.h <<\_ACEOF 11423 $as_echo "#define UMAX 1" >>confdefs.h
19429 #define UMAX 1 11424
19430 _ACEOF 11425
19431 11426 $as_echo "#define UMAX4_3 1" >>confdefs.h
19432
19433 cat >>confdefs.h <<\_ACEOF
19434 #define UMAX4_3 1
19435 _ACEOF
19436 11427
19437 fi 11428 fi
19438 11429
19439 11430
19440 fi 11431 fi
19441 11432
19442 if test $ac_have_func = no; then 11433 if test $ac_have_func = no; then
19443 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then 11434 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19444 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 11435 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19445 $as_echo_n "checking for sys/cpustats.h... " >&6; } 11436 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
19446 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19447 $as_echo_n "(cached) " >&6
19448 fi
19449 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19450 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19451 else
19452 # Is the header compilable?
19453 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19454 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19455 cat >conftest.$ac_ext <<_ACEOF
19456 /* confdefs.h. */
19457 _ACEOF
19458 cat confdefs.h >>conftest.$ac_ext
19459 cat >>conftest.$ac_ext <<_ACEOF
19460 /* end confdefs.h. */
19461 $ac_includes_default
19462 #include <sys/cpustats.h>
19463 _ACEOF
19464 rm -f conftest.$ac_objext
19465 if { (ac_try="$ac_compile"
19466 case "(($ac_try" in
19467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19468 *) ac_try_echo=$ac_try;;
19469 esac
19470 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19471 $as_echo "$ac_try_echo") >&5
19472 (eval "$ac_compile") 2>conftest.er1
19473 ac_status=$?
19474 grep -v '^ *+' conftest.er1 >conftest.err
19475 rm -f conftest.er1
19476 cat conftest.err >&5
19477 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19478 (exit $ac_status); } && {
19479 test -z "$ac_c_werror_flag" ||
19480 test ! -s conftest.err
19481 } && test -s conftest.$ac_objext; then
19482 ac_header_compiler=yes
19483 else
19484 $as_echo "$as_me: failed program was:" >&5
19485 sed 's/^/| /' conftest.$ac_ext >&5
19486
19487 ac_header_compiler=no
19488 fi
19489
19490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19491 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19492 $as_echo "$ac_header_compiler" >&6; }
19493
19494 # Is the header present?
19495 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19496 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19497 cat >conftest.$ac_ext <<_ACEOF
19498 /* confdefs.h. */
19499 _ACEOF
19500 cat confdefs.h >>conftest.$ac_ext
19501 cat >>conftest.$ac_ext <<_ACEOF
19502 /* end confdefs.h. */
19503 #include <sys/cpustats.h>
19504 _ACEOF
19505 if { (ac_try="$ac_cpp conftest.$ac_ext"
19506 case "(($ac_try" in
19507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508 *) ac_try_echo=$ac_try;;
19509 esac
19510 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19511 $as_echo "$ac_try_echo") >&5
19512 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19513 ac_status=$?
19514 grep -v '^ *+' conftest.er1 >conftest.err
19515 rm -f conftest.er1
19516 cat conftest.err >&5
19517 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19518 (exit $ac_status); } >/dev/null && {
19519 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19520 test ! -s conftest.err
19521 }; then
19522 ac_header_preproc=yes
19523 else
19524 $as_echo "$as_me: failed program was:" >&5
19525 sed 's/^/| /' conftest.$ac_ext >&5
19526
19527 ac_header_preproc=no
19528 fi
19529
19530 rm -f conftest.err conftest.$ac_ext
19531 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19532 $as_echo "$ac_header_preproc" >&6; }
19533
19534 # So? What about this header?
19535 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19536 yes:no: )
19537 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19538 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19539 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19540 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19541 ac_header_preproc=yes
19542 ;;
19543 no:yes:* )
19544 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19545 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19546 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19547 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19548 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19549 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19550 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19551 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19552 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19553 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19554 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19555 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19556
19557 ;;
19558 esac
19559 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19560 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19561 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19562 $as_echo_n "(cached) " >&6
19563 else
19564 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19565 fi
19566 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19567 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19568
19569 fi
19570 if test $ac_cv_header_sys_cpustats_h = yes; then
19571 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19572 #define UMAX 1
19573 _ACEOF
19574 11437
19575 fi 11438 fi
19576 11439
19577 11440
19578 fi 11441 fi
19579 11442
19580 if test $ac_have_func = no; then 11443 if test $ac_have_func = no; then
19581 11444 for ac_header in mach/mach.h
19582 for ac_header in mach/mach.h 11445 do :
19583 do 11446 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19584 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11447 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19586 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19587 $as_echo_n "checking for $ac_header... " >&6; }
19588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19589 $as_echo_n "(cached) " >&6
19590 fi
19591 ac_res=`eval 'as_val=${'$as_ac_Header'}
19592 $as_echo "$as_val"'`
19593 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19594 $as_echo "$ac_res" >&6; }
19595 else
19596 # Is the header compilable?
19597 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19598 $as_echo_n "checking $ac_header usability... " >&6; }
19599 cat >conftest.$ac_ext <<_ACEOF
19600 /* confdefs.h. */
19601 _ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19605 $ac_includes_default
19606 #include <$ac_header>
19607 _ACEOF
19608 rm -f conftest.$ac_objext
19609 if { (ac_try="$ac_compile"
19610 case "(($ac_try" in
19611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612 *) ac_try_echo=$ac_try;;
19613 esac
19614 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19615 $as_echo "$ac_try_echo") >&5
19616 (eval "$ac_compile") 2>conftest.er1
19617 ac_status=$?
19618 grep -v '^ *+' conftest.er1 >conftest.err
19619 rm -f conftest.er1
19620 cat conftest.err >&5
19621 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19622 (exit $ac_status); } && {
19623 test -z "$ac_c_werror_flag" ||
19624 test ! -s conftest.err
19625 } && test -s conftest.$ac_objext; then
19626 ac_header_compiler=yes
19627 else
19628 $as_echo "$as_me: failed program was:" >&5
19629 sed 's/^/| /' conftest.$ac_ext >&5
19630
19631 ac_header_compiler=no
19632 fi
19633
19634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19635 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19636 $as_echo "$ac_header_compiler" >&6; }
19637
19638 # Is the header present?
19639 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19640 $as_echo_n "checking $ac_header presence... " >&6; }
19641 cat >conftest.$ac_ext <<_ACEOF
19642 /* confdefs.h. */
19643 _ACEOF
19644 cat confdefs.h >>conftest.$ac_ext
19645 cat >>conftest.$ac_ext <<_ACEOF
19646 /* end confdefs.h. */
19647 #include <$ac_header>
19648 _ACEOF
19649 if { (ac_try="$ac_cpp conftest.$ac_ext"
19650 case "(($ac_try" in
19651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19652 *) ac_try_echo=$ac_try;;
19653 esac
19654 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19655 $as_echo "$ac_try_echo") >&5
19656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19657 ac_status=$?
19658 grep -v '^ *+' conftest.er1 >conftest.err
19659 rm -f conftest.er1
19660 cat conftest.err >&5
19661 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19662 (exit $ac_status); } >/dev/null && {
19663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19664 test ! -s conftest.err
19665 }; then
19666 ac_header_preproc=yes
19667 else
19668 $as_echo "$as_me: failed program was:" >&5
19669 sed 's/^/| /' conftest.$ac_ext >&5
19670
19671 ac_header_preproc=no
19672 fi
19673
19674 rm -f conftest.err conftest.$ac_ext
19675 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19676 $as_echo "$ac_header_preproc" >&6; }
19677
19678 # So? What about this header?
19679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19680 yes:no: )
19681 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19682 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19683 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19684 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19685 ac_header_preproc=yes
19686 ;;
19687 no:yes:* )
19688 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19689 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19690 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19691 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19692 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19693 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19694 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19695 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19696 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19697 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19698 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19699 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19700
19701 ;;
19702 esac
19703 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19704 $as_echo_n "checking for $ac_header... " >&6; }
19705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19706 $as_echo_n "(cached) " >&6
19707 else
19708 eval "$as_ac_Header=\$ac_header_preproc"
19709 fi
19710 ac_res=`eval 'as_val=${'$as_ac_Header'}
19711 $as_echo "$as_val"'`
19712 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19713 $as_echo "$ac_res" >&6; }
19714
19715 fi
19716 if test `eval 'as_val=${'$as_ac_Header'}
19717 $as_echo "$as_val"'` = yes; then
19718 cat >>confdefs.h <<_ACEOF 11448 cat >>confdefs.h <<_ACEOF
19719 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11449 #define HAVE_MACH_MACH_H 1
19720 _ACEOF 11450 _ACEOF
19721 11451
19722 fi 11452 fi
19723 11453
19724 done 11454 done
19725 11455
19726 fi 11456 fi
19727 11457
19728
19729 for ac_header in nlist.h 11458 for ac_header in nlist.h
19730 do 11459 do :
19731 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11460 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19732 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11461 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19733 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19734 $as_echo_n "checking for $ac_header... " >&6; }
19735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19736 $as_echo_n "(cached) " >&6
19737 fi
19738 ac_res=`eval 'as_val=${'$as_ac_Header'}
19739 $as_echo "$as_val"'`
19740 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19741 $as_echo "$ac_res" >&6; }
19742 else
19743 # Is the header compilable?
19744 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19745 $as_echo_n "checking $ac_header usability... " >&6; }
19746 cat >conftest.$ac_ext <<_ACEOF
19747 /* confdefs.h. */
19748 _ACEOF
19749 cat confdefs.h >>conftest.$ac_ext
19750 cat >>conftest.$ac_ext <<_ACEOF
19751 /* end confdefs.h. */
19752 $ac_includes_default
19753 #include <$ac_header>
19754 _ACEOF
19755 rm -f conftest.$ac_objext
19756 if { (ac_try="$ac_compile"
19757 case "(($ac_try" in
19758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759 *) ac_try_echo=$ac_try;;
19760 esac
19761 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19762 $as_echo "$ac_try_echo") >&5
19763 (eval "$ac_compile") 2>conftest.er1
19764 ac_status=$?
19765 grep -v '^ *+' conftest.er1 >conftest.err
19766 rm -f conftest.er1
19767 cat conftest.err >&5
19768 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19769 (exit $ac_status); } && {
19770 test -z "$ac_c_werror_flag" ||
19771 test ! -s conftest.err
19772 } && test -s conftest.$ac_objext; then
19773 ac_header_compiler=yes
19774 else
19775 $as_echo "$as_me: failed program was:" >&5
19776 sed 's/^/| /' conftest.$ac_ext >&5
19777
19778 ac_header_compiler=no
19779 fi
19780
19781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19782 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19783 $as_echo "$ac_header_compiler" >&6; }
19784
19785 # Is the header present?
19786 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19787 $as_echo_n "checking $ac_header presence... " >&6; }
19788 cat >conftest.$ac_ext <<_ACEOF
19789 /* confdefs.h. */
19790 _ACEOF
19791 cat confdefs.h >>conftest.$ac_ext
19792 cat >>conftest.$ac_ext <<_ACEOF
19793 /* end confdefs.h. */
19794 #include <$ac_header>
19795 _ACEOF
19796 if { (ac_try="$ac_cpp conftest.$ac_ext"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800 esac
19801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19802 $as_echo "$ac_try_echo") >&5
19803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19804 ac_status=$?
19805 grep -v '^ *+' conftest.er1 >conftest.err
19806 rm -f conftest.er1
19807 cat conftest.err >&5
19808 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19809 (exit $ac_status); } >/dev/null && {
19810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19811 test ! -s conftest.err
19812 }; then
19813 ac_header_preproc=yes
19814 else
19815 $as_echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19817
19818 ac_header_preproc=no
19819 fi
19820
19821 rm -f conftest.err conftest.$ac_ext
19822 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19823 $as_echo "$ac_header_preproc" >&6; }
19824
19825 # So? What about this header?
19826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19827 yes:no: )
19828 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19829 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19830 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19831 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19832 ac_header_preproc=yes
19833 ;;
19834 no:yes:* )
19835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19836 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19838 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19840 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19841 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19842 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19843 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19844 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19845 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19846 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19847
19848 ;;
19849 esac
19850 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19851 $as_echo_n "checking for $ac_header... " >&6; }
19852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19853 $as_echo_n "(cached) " >&6
19854 else
19855 eval "$as_ac_Header=\$ac_header_preproc"
19856 fi
19857 ac_res=`eval 'as_val=${'$as_ac_Header'}
19858 $as_echo "$as_val"'`
19859 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19860 $as_echo "$ac_res" >&6; }
19861
19862 fi
19863 if test `eval 'as_val=${'$as_ac_Header'}
19864 $as_echo "$as_val"'` = yes; then
19865 cat >>confdefs.h <<_ACEOF 11462 cat >>confdefs.h <<_ACEOF
19866 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11463 #define HAVE_NLIST_H 1
19867 _ACEOF 11464 _ACEOF
19868 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 11465 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19869 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; } 11466 "
19870 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then 11467 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19871 $as_echo_n "(cached) " >&6
19872 else
19873 cat >conftest.$ac_ext <<_ACEOF
19874 /* confdefs.h. */
19875 _ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19879 #include <nlist.h>
19880
19881 int
19882 main ()
19883 {
19884 static struct nlist ac_aggr;
19885 if (ac_aggr.n_un.n_name)
19886 return 0;
19887 ;
19888 return 0;
19889 }
19890 _ACEOF
19891 rm -f conftest.$ac_objext
19892 if { (ac_try="$ac_compile"
19893 case "(($ac_try" in
19894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19895 *) ac_try_echo=$ac_try;;
19896 esac
19897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19898 $as_echo "$ac_try_echo") >&5
19899 (eval "$ac_compile") 2>conftest.er1
19900 ac_status=$?
19901 grep -v '^ *+' conftest.er1 >conftest.err
19902 rm -f conftest.er1
19903 cat conftest.err >&5
19904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); } && {
19906 test -z "$ac_c_werror_flag" ||
19907 test ! -s conftest.err
19908 } && test -s conftest.$ac_objext; then
19909 ac_cv_member_struct_nlist_n_un_n_name=yes
19910 else
19911 $as_echo "$as_me: failed program was:" >&5
19912 sed 's/^/| /' conftest.$ac_ext >&5
19913
19914 cat >conftest.$ac_ext <<_ACEOF
19915 /* confdefs.h. */
19916 _ACEOF
19917 cat confdefs.h >>conftest.$ac_ext
19918 cat >>conftest.$ac_ext <<_ACEOF
19919 /* end confdefs.h. */
19920 #include <nlist.h>
19921
19922 int
19923 main ()
19924 {
19925 static struct nlist ac_aggr;
19926 if (sizeof ac_aggr.n_un.n_name)
19927 return 0;
19928 ;
19929 return 0;
19930 }
19931 _ACEOF
19932 rm -f conftest.$ac_objext
19933 if { (ac_try="$ac_compile"
19934 case "(($ac_try" in
19935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19936 *) ac_try_echo=$ac_try;;
19937 esac
19938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19939 $as_echo "$ac_try_echo") >&5
19940 (eval "$ac_compile") 2>conftest.er1
19941 ac_status=$?
19942 grep -v '^ *+' conftest.er1 >conftest.err
19943 rm -f conftest.er1
19944 cat conftest.err >&5
19945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); } && {
19947 test -z "$ac_c_werror_flag" ||
19948 test ! -s conftest.err
19949 } && test -s conftest.$ac_objext; then
19950 ac_cv_member_struct_nlist_n_un_n_name=yes
19951 else
19952 $as_echo "$as_me: failed program was:" >&5
19953 sed 's/^/| /' conftest.$ac_ext >&5
19954
19955 ac_cv_member_struct_nlist_n_un_n_name=no
19956 fi
19957
19958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19959 fi
19960
19961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19962 fi
19963 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19964 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19965 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19966 11468
19967 cat >>confdefs.h <<_ACEOF 11469 cat >>confdefs.h <<_ACEOF
19968 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 11470 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19969 _ACEOF 11471 _ACEOF
19970 11472
19971 11473
19972 cat >>confdefs.h <<\_ACEOF 11474 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
19973 #define NLIST_NAME_UNION 1
19974 _ACEOF
19975 11475
19976 fi 11476 fi
19977 11477
19978 11478
19979 fi 11479 fi
19983 fi 11483 fi
19984 done 11484 done
19985 11485
19986 11486
19987 # Some definitions of getloadavg require that the program be installed setgid. 11487 # Some definitions of getloadavg require that the program be installed setgid.
19988 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
19989 $as_echo_n "checking whether getloadavg requires setgid... " >&6; } 11489 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
19990 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then 11490 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
19991 $as_echo_n "(cached) " >&6 11491 $as_echo_n "(cached) " >&6
19992 else 11492 else
19993 cat >conftest.$ac_ext <<_ACEOF 11493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* confdefs.h. */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h. */ 11494 /* end confdefs.h. */
19999 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" 11495 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20000 #ifdef LDAV_PRIVILEGED 11496 #ifdef LDAV_PRIVILEGED
20001 Yowza Am I SETGID yet 11497 Yowza Am I SETGID yet
20002 #endif 11498 #endif
20003 _ACEOF 11499 _ACEOF
20004 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20005 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then 11501 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
20006 ac_cv_func_getloadavg_setgid=yes 11502 ac_cv_func_getloadavg_setgid=yes
20007 else 11503 else
20008 ac_cv_func_getloadavg_setgid=no 11504 ac_cv_func_getloadavg_setgid=no
20009 fi 11505 fi
20010 rm -f conftest* 11506 rm -f conftest*
20011 11507
20012 fi 11508 fi
20013 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 11509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
20014 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; } 11510 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20015 if test $ac_cv_func_getloadavg_setgid = yes; then 11511 if test $ac_cv_func_getloadavg_setgid = yes; then
20016 NEED_SETGID=true 11512 NEED_SETGID=true
20017 11513
20018 cat >>confdefs.h <<\_ACEOF 11514 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
20019 #define GETLOADAVG_PRIVILEGED 1
20020 _ACEOF
20021 11515
20022 else 11516 else
20023 NEED_SETGID=false 11517 NEED_SETGID=false
20024 fi 11518 fi
20025 11519
20026 if test $ac_cv_func_getloadavg_setgid = yes; then 11520 if test $ac_cv_func_getloadavg_setgid = yes; then
20027 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 11521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
20028 $as_echo_n "checking group of /dev/kmem... " >&6; } 11522 $as_echo_n "checking group of /dev/kmem... " >&6; }
20029 if test "${ac_cv_group_kmem+set}" = set; then 11523 if test "${ac_cv_group_kmem+set}" = set; then :
20030 $as_echo_n "(cached) " >&6 11524 $as_echo_n "(cached) " >&6
20031 else 11525 else
20032 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 11526 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20033 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` 11527 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20034 # If we got an error (system does not support symlinks), try without -L. 11528 # If we got an error (system does not support symlinks), try without -L.
20037 | sed -ne 's/[ ][ ]*/ /g; 11531 | sed -ne 's/[ ][ ]*/ /g;
20038 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; 11532 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20039 / /s/.* //;p;'` 11533 / /s/.* //;p;'`
20040 11534
20041 fi 11535 fi
20042 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
20043 $as_echo "$ac_cv_group_kmem" >&6; } 11537 $as_echo "$ac_cv_group_kmem" >&6; }
20044 KMEM_GROUP=$ac_cv_group_kmem 11538 KMEM_GROUP=$ac_cv_group_kmem
20045 fi 11539 fi
20046 if test "x$ac_save_LIBS" = x; then 11540 if test "x$ac_save_LIBS" = x; then
20047 GETLOADAVG_LIBS=$LIBS 11541 GETLOADAVG_LIBS=$LIBS
20050 fi 11544 fi
20051 LIBS=$ac_save_LIBS 11545 LIBS=$ac_save_LIBS
20052 11546
20053 11547
20054 11548
20055 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 11549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20056 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 11550 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20057 if test "${ac_cv_sys_largefile_source+set}" = set; then 11551 if test "${ac_cv_sys_largefile_source+set}" = set; then :
20058 $as_echo_n "(cached) " >&6 11552 $as_echo_n "(cached) " >&6
20059 else 11553 else
20060 while :; do 11554 while :; do
20061 cat >conftest.$ac_ext <<_ACEOF 11555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20062 /* confdefs.h. */
20063 _ACEOF
20064 cat confdefs.h >>conftest.$ac_ext
20065 cat >>conftest.$ac_ext <<_ACEOF
20066 /* end confdefs.h. */ 11556 /* end confdefs.h. */
20067 #include <sys/types.h> /* for off_t */ 11557 #include <sys/types.h> /* for off_t */
20068 #include <stdio.h> 11558 #include <stdio.h>
20069 int 11559 int
20070 main () 11560 main ()
20073 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 11563 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20074 ; 11564 ;
20075 return 0; 11565 return 0;
20076 } 11566 }
20077 _ACEOF 11567 _ACEOF
20078 rm -f conftest.$ac_objext conftest$ac_exeext 11568 if ac_fn_c_try_link "$LINENO"; then :
20079 if { (ac_try="$ac_link"
20080 case "(($ac_try" in
20081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20082 *) ac_try_echo=$ac_try;;
20083 esac
20084 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20085 $as_echo "$ac_try_echo") >&5
20086 (eval "$ac_link") 2>conftest.er1
20087 ac_status=$?
20088 grep -v '^ *+' conftest.er1 >conftest.err
20089 rm -f conftest.er1
20090 cat conftest.err >&5
20091 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20092 (exit $ac_status); } && {
20093 test -z "$ac_c_werror_flag" ||
20094 test ! -s conftest.err
20095 } && test -s conftest$ac_exeext && {
20096 test "$cross_compiling" = yes ||
20097 $as_test_x conftest$ac_exeext
20098 }; then
20099 ac_cv_sys_largefile_source=no; break 11569 ac_cv_sys_largefile_source=no; break
20100 else 11570 fi
20101 $as_echo "$as_me: failed program was:" >&5 11571 rm -f core conftest.err conftest.$ac_objext \
20102 sed 's/^/| /' conftest.$ac_ext >&5 11572 conftest$ac_exeext conftest.$ac_ext
20103 11573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20104
20105 fi
20106
20107 rm -rf conftest.dSYM
20108 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20109 conftest$ac_exeext conftest.$ac_ext
20110 cat >conftest.$ac_ext <<_ACEOF
20111 /* confdefs.h. */
20112 _ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h. */ 11574 /* end confdefs.h. */
20116 #define _LARGEFILE_SOURCE 1 11575 #define _LARGEFILE_SOURCE 1
20117 #include <sys/types.h> /* for off_t */ 11576 #include <sys/types.h> /* for off_t */
20118 #include <stdio.h> 11577 #include <stdio.h>
20119 int 11578 int
20123 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 11582 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20124 ; 11583 ;
20125 return 0; 11584 return 0;
20126 } 11585 }
20127 _ACEOF 11586 _ACEOF
20128 rm -f conftest.$ac_objext conftest$ac_exeext 11587 if ac_fn_c_try_link "$LINENO"; then :
20129 if { (ac_try="$ac_link"
20130 case "(($ac_try" in
20131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20132 *) ac_try_echo=$ac_try;;
20133 esac
20134 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20135 $as_echo "$ac_try_echo") >&5
20136 (eval "$ac_link") 2>conftest.er1
20137 ac_status=$?
20138 grep -v '^ *+' conftest.er1 >conftest.err
20139 rm -f conftest.er1
20140 cat conftest.err >&5
20141 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20142 (exit $ac_status); } && {
20143 test -z "$ac_c_werror_flag" ||
20144 test ! -s conftest.err
20145 } && test -s conftest$ac_exeext && {
20146 test "$cross_compiling" = yes ||
20147 $as_test_x conftest$ac_exeext
20148 }; then
20149 ac_cv_sys_largefile_source=1; break 11588 ac_cv_sys_largefile_source=1; break
20150 else 11589 fi
20151 $as_echo "$as_me: failed program was:" >&5 11590 rm -f core conftest.err conftest.$ac_objext \
20152 sed 's/^/| /' conftest.$ac_ext >&5 11591 conftest$ac_exeext conftest.$ac_ext
20153
20154
20155 fi
20156
20157 rm -rf conftest.dSYM
20158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20159 conftest$ac_exeext conftest.$ac_ext
20160 ac_cv_sys_largefile_source=unknown 11592 ac_cv_sys_largefile_source=unknown
20161 break 11593 break
20162 done 11594 done
20163 fi 11595 fi
20164 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
20165 $as_echo "$ac_cv_sys_largefile_source" >&6; } 11597 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20166 case $ac_cv_sys_largefile_source in #( 11598 case $ac_cv_sys_largefile_source in #(
20167 no | unknown) ;; 11599 no | unknown) ;;
20168 *) 11600 *)
20169 cat >>confdefs.h <<_ACEOF 11601 cat >>confdefs.h <<_ACEOF
20176 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 11608 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20177 # in glibc 2.1.3, but that breaks too many other things. 11609 # in glibc 2.1.3, but that breaks too many other things.
20178 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 11610 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20179 if test $ac_cv_sys_largefile_source != unknown; then 11611 if test $ac_cv_sys_largefile_source != unknown; then
20180 11612
20181 cat >>confdefs.h <<\_ACEOF 11613 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
20182 #define HAVE_FSEEKO 1
20183 _ACEOF
20184 11614
20185 fi 11615 fi
20186 11616
20187 11617
20188 # Configure getopt. 11618 # Configure getopt.
20206 11636
20207 11637
20208 11638
20209 11639
20210 GETOPT_H= 11640 GETOPT_H=
20211 11641 for ac_header in getopt.h
20212 for ac_header in getopt.h 11642 do :
20213 do 11643 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
20214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11644 if test "x$ac_cv_header_getopt_h" = x""yes; then :
20215 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11645 cat >>confdefs.h <<_ACEOF
20216 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11646 #define HAVE_GETOPT_H 1
20217 $as_echo_n "checking for $ac_header... " >&6; } 11647 _ACEOF
20218 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11648
11649 else
11650 GETOPT_H=getopt.h
11651 fi
11652
11653 done
11654
11655 if test -z "$GETOPT_H"; then
11656 for ac_func in getopt_long_only
11657 do :
11658 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11659 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
11660 cat >>confdefs.h <<_ACEOF
11661 #define HAVE_GETOPT_LONG_ONLY 1
11662 _ACEOF
11663
11664 else
11665 GETOPT_H=getopt.h
11666 fi
11667 done
11668
11669 fi
11670
11671 if test -z "$GETOPT_H"; then
11672 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11673 "
11674 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
11675 GETOPT_H=getopt.h
11676 fi
11677
11678 fi
11679
11680 if test -z "$GETOPT_H"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11682 $as_echo_n "checking for working GNU getopt function... " >&6; }
11683 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
20219 $as_echo_n "(cached) " >&6 11684 $as_echo_n "(cached) " >&6
20220 fi 11685 else
20221 ac_res=`eval 'as_val=${'$as_ac_Header'} 11686 if test "$cross_compiling" = yes; then :
20222 $as_echo "$as_val"'` 11687 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
20223 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11688 "
20224 $as_echo "$ac_res" >&6; } 11689 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
20225 else
20226 # Is the header compilable?
20227 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20228 $as_echo_n "checking $ac_header usability... " >&6; }
20229 cat >conftest.$ac_ext <<_ACEOF
20230 /* confdefs.h. */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235 $ac_includes_default
20236 #include <$ac_header>
20237 _ACEOF
20238 rm -f conftest.$ac_objext
20239 if { (ac_try="$ac_compile"
20240 case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20243 esac
20244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20245 $as_echo "$ac_try_echo") >&5
20246 (eval "$ac_compile") 2>conftest.er1
20247 ac_status=$?
20248 grep -v '^ *+' conftest.er1 >conftest.err
20249 rm -f conftest.er1
20250 cat conftest.err >&5
20251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20252 (exit $ac_status); } && {
20253 test -z "$ac_c_werror_flag" ||
20254 test ! -s conftest.err
20255 } && test -s conftest.$ac_objext; then
20256 ac_header_compiler=yes
20257 else
20258 $as_echo "$as_me: failed program was:" >&5
20259 sed 's/^/| /' conftest.$ac_ext >&5
20260
20261 ac_header_compiler=no
20262 fi
20263
20264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20265 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20266 $as_echo "$ac_header_compiler" >&6; }
20267
20268 # Is the header present?
20269 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20270 $as_echo_n "checking $ac_header presence... " >&6; }
20271 cat >conftest.$ac_ext <<_ACEOF
20272 /* confdefs.h. */
20273 _ACEOF
20274 cat confdefs.h >>conftest.$ac_ext
20275 cat >>conftest.$ac_ext <<_ACEOF
20276 /* end confdefs.h. */
20277 #include <$ac_header>
20278 _ACEOF
20279 if { (ac_try="$ac_cpp conftest.$ac_ext"
20280 case "(($ac_try" in
20281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282 *) ac_try_echo=$ac_try;;
20283 esac
20284 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20285 $as_echo "$ac_try_echo") >&5
20286 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20287 ac_status=$?
20288 grep -v '^ *+' conftest.er1 >conftest.err
20289 rm -f conftest.er1
20290 cat conftest.err >&5
20291 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } >/dev/null && {
20293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20294 test ! -s conftest.err
20295 }; then
20296 ac_header_preproc=yes
20297 else
20298 $as_echo "$as_me: failed program was:" >&5
20299 sed 's/^/| /' conftest.$ac_ext >&5
20300
20301 ac_header_preproc=no
20302 fi
20303
20304 rm -f conftest.err conftest.$ac_ext
20305 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20306 $as_echo "$ac_header_preproc" >&6; }
20307
20308 # So? What about this header?
20309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20310 yes:no: )
20311 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20312 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20313 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20314 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20315 ac_header_preproc=yes
20316 ;;
20317 no:yes:* )
20318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20319 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20321 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20323 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20324 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20325 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20326 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20327 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20328 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20329 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20330
20331 ;;
20332 esac
20333 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20334 $as_echo_n "checking for $ac_header... " >&6; }
20335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20336 $as_echo_n "(cached) " >&6
20337 else
20338 eval "$as_ac_Header=\$ac_header_preproc"
20339 fi
20340 ac_res=`eval 'as_val=${'$as_ac_Header'}
20341 $as_echo "$as_val"'`
20342 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20343 $as_echo "$ac_res" >&6; }
20344
20345 fi
20346 if test `eval 'as_val=${'$as_ac_Header'}
20347 $as_echo "$as_val"'` = yes; then
20348 cat >>confdefs.h <<_ACEOF
20349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20350 _ACEOF
20351
20352 else
20353 GETOPT_H=getopt.h
20354 fi
20355
20356 done
20357
20358 if test -z "$GETOPT_H"; then
20359
20360 for ac_func in getopt_long_only
20361 do
20362 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20363 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20364 $as_echo_n "checking for $ac_func... " >&6; }
20365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20366 $as_echo_n "(cached) " >&6
20367 else
20368 cat >conftest.$ac_ext <<_ACEOF
20369 /* confdefs.h. */
20370 _ACEOF
20371 cat confdefs.h >>conftest.$ac_ext
20372 cat >>conftest.$ac_ext <<_ACEOF
20373 /* end confdefs.h. */
20374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20376 #define $ac_func innocuous_$ac_func
20377
20378 /* System header to define __stub macros and hopefully few prototypes,
20379 which can conflict with char $ac_func (); below.
20380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20381 <limits.h> exists even on freestanding compilers. */
20382
20383 #ifdef __STDC__
20384 # include <limits.h>
20385 #else
20386 # include <assert.h>
20387 #endif
20388
20389 #undef $ac_func
20390
20391 /* Override any GCC internal prototype to avoid an error.
20392 Use char because int might match the return type of a GCC
20393 builtin and then its argument prototype would still apply. */
20394 #ifdef __cplusplus
20395 extern "C"
20396 #endif
20397 char $ac_func ();
20398 /* The GNU C library defines this for functions which it implements
20399 to always fail with ENOSYS. Some functions are actually named
20400 something starting with __ and the normal name is an alias. */
20401 #if defined __stub_$ac_func || defined __stub___$ac_func
20402 choke me
20403 #endif
20404
20405 int
20406 main ()
20407 {
20408 return $ac_func ();
20409 ;
20410 return 0;
20411 }
20412 _ACEOF
20413 rm -f conftest.$ac_objext conftest$ac_exeext
20414 if { (ac_try="$ac_link"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20418 esac
20419 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20420 $as_echo "$ac_try_echo") >&5
20421 (eval "$ac_link") 2>conftest.er1
20422 ac_status=$?
20423 grep -v '^ *+' conftest.er1 >conftest.err
20424 rm -f conftest.er1
20425 cat conftest.err >&5
20426 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20427 (exit $ac_status); } && {
20428 test -z "$ac_c_werror_flag" ||
20429 test ! -s conftest.err
20430 } && test -s conftest$ac_exeext && {
20431 test "$cross_compiling" = yes ||
20432 $as_test_x conftest$ac_exeext
20433 }; then
20434 eval "$as_ac_var=yes"
20435 else
20436 $as_echo "$as_me: failed program was:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20438
20439 eval "$as_ac_var=no"
20440 fi
20441
20442 rm -rf conftest.dSYM
20443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20444 conftest$ac_exeext conftest.$ac_ext
20445 fi
20446 ac_res=`eval 'as_val=${'$as_ac_var'}
20447 $as_echo "$as_val"'`
20448 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20449 $as_echo "$ac_res" >&6; }
20450 if test `eval 'as_val=${'$as_ac_var'}
20451 $as_echo "$as_val"'` = yes; then
20452 cat >>confdefs.h <<_ACEOF
20453 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20454 _ACEOF
20455
20456 else
20457 GETOPT_H=getopt.h
20458 fi
20459 done
20460
20461 fi
20462
20463 if test -z "$GETOPT_H"; then
20464 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20465 $as_echo_n "checking whether optreset is declared... " >&6; }
20466 if test "${ac_cv_have_decl_optreset+set}" = set; then
20467 $as_echo_n "(cached) " >&6
20468 else
20469 cat >conftest.$ac_ext <<_ACEOF
20470 /* confdefs.h. */
20471 _ACEOF
20472 cat confdefs.h >>conftest.$ac_ext
20473 cat >>conftest.$ac_ext <<_ACEOF
20474 /* end confdefs.h. */
20475 #include <getopt.h>
20476
20477 int
20478 main ()
20479 {
20480 #ifndef optreset
20481 (void) optreset;
20482 #endif
20483
20484 ;
20485 return 0;
20486 }
20487 _ACEOF
20488 rm -f conftest.$ac_objext
20489 if { (ac_try="$ac_compile"
20490 case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20493 esac
20494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20495 $as_echo "$ac_try_echo") >&5
20496 (eval "$ac_compile") 2>conftest.er1
20497 ac_status=$?
20498 grep -v '^ *+' conftest.er1 >conftest.err
20499 rm -f conftest.er1
20500 cat conftest.err >&5
20501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20502 (exit $ac_status); } && {
20503 test -z "$ac_c_werror_flag" ||
20504 test ! -s conftest.err
20505 } && test -s conftest.$ac_objext; then
20506 ac_cv_have_decl_optreset=yes
20507 else
20508 $as_echo "$as_me: failed program was:" >&5
20509 sed 's/^/| /' conftest.$ac_ext >&5
20510
20511 ac_cv_have_decl_optreset=no
20512 fi
20513
20514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20515 fi
20516 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20517 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20518 if test $ac_cv_have_decl_optreset = yes; then
20519 GETOPT_H=getopt.h
20520 fi
20521
20522 fi
20523
20524 if test -z "$GETOPT_H"; then
20525 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20526 $as_echo_n "checking for working GNU getopt function... " >&6; }
20527 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20528 $as_echo_n "(cached) " >&6
20529 else
20530 if test "$cross_compiling" = yes; then
20531 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20532 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20533 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20534 $as_echo_n "(cached) " >&6
20535 else
20536 cat >conftest.$ac_ext <<_ACEOF
20537 /* confdefs.h. */
20538 _ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 #include <getopt.h>
20543
20544 int
20545 main ()
20546 {
20547 #ifndef getopt_clip
20548 (void) getopt_clip;
20549 #endif
20550
20551 ;
20552 return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest.$ac_objext
20556 if { (ac_try="$ac_compile"
20557 case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20560 esac
20561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20562 $as_echo "$ac_try_echo") >&5
20563 (eval "$ac_compile") 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); } && {
20570 test -z "$ac_c_werror_flag" ||
20571 test ! -s conftest.err
20572 } && test -s conftest.$ac_objext; then
20573 ac_cv_have_decl_getopt_clip=yes
20574 else
20575 $as_echo "$as_me: failed program was:" >&5
20576 sed 's/^/| /' conftest.$ac_ext >&5
20577
20578 ac_cv_have_decl_getopt_clip=no
20579 fi
20580
20581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20582 fi
20583 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20584 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20585 if test $ac_cv_have_decl_getopt_clip = yes; then
20586 gl_cv_func_gnu_getopt=no 11690 gl_cv_func_gnu_getopt=no
20587 else 11691 else
20588 gl_cv_func_gnu_getopt=yes 11692 gl_cv_func_gnu_getopt=yes
20589 fi 11693 fi
20590 11694
20591 else 11695 else
20592 cat >conftest.$ac_ext <<_ACEOF 11696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20593 /* confdefs.h. */
20594 _ACEOF
20595 cat confdefs.h >>conftest.$ac_ext
20596 cat >>conftest.$ac_ext <<_ACEOF
20597 /* end confdefs.h. */ 11697 /* end confdefs.h. */
20598 #include <getopt.h> 11698 #include <getopt.h>
20599 int 11699 int
20600 main () 11700 main ()
20601 { 11701 {
20608 11708
20609 ; 11709 ;
20610 return 0; 11710 return 0;
20611 } 11711 }
20612 _ACEOF 11712 _ACEOF
20613 rm -f conftest$ac_exeext 11713 if ac_fn_c_try_run "$LINENO"; then :
20614 if { (ac_try="$ac_link"
20615 case "(($ac_try" in
20616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20617 *) ac_try_echo=$ac_try;;
20618 esac
20619 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20620 $as_echo "$ac_try_echo") >&5
20621 (eval "$ac_link") 2>&5
20622 ac_status=$?
20623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20624 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20625 { (case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20628 esac
20629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20630 $as_echo "$ac_try_echo") >&5
20631 (eval "$ac_try") 2>&5
20632 ac_status=$?
20633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20634 (exit $ac_status); }; }; then
20635 gl_cv_func_gnu_getopt=yes 11714 gl_cv_func_gnu_getopt=yes
20636 else 11715 else
20637 $as_echo "$as_me: program exited with status $ac_status" >&5 11716 gl_cv_func_gnu_getopt=no
20638 $as_echo "$as_me: failed program was:" >&5 11717 fi
20639 sed 's/^/| /' conftest.$ac_ext >&5 11718 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20640 11719 conftest.$ac_objext conftest.beam conftest.$ac_ext
20641 ( exit $ac_status ) 11720 fi
20642 gl_cv_func_gnu_getopt=no 11721
20643 fi 11722 fi
20644 rm -rf conftest.dSYM 11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
20645 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20646 fi
20647
20648
20649 fi
20650 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20651 $as_echo "$gl_cv_func_gnu_getopt" >&6; } 11724 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20652 if test "$gl_cv_func_gnu_getopt" = "no"; then 11725 if test "$gl_cv_func_gnu_getopt" = "no"; then
20653 GETOPT_H=getopt.h 11726 GETOPT_H=getopt.h
20654 fi 11727 fi
20655 fi 11728 fi
20656 11729
20657 11730
20658 11731
20659 if test -n "$GETOPT_H"; then 11732 if test -n "$GETOPT_H"; then :
20660 11733
20661 11734
20662 GETOPT_H=getopt.h 11735 GETOPT_H=getopt.h
20663 11736
20664 cat >>confdefs.h <<\_ACEOF 11737 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20665 #define __GETOPT_PREFIX rpl_
20666 _ACEOF
20667 11738
20668 11739
20669 11740
20670 : 11741 :
20671 GETOPTOBJS='getopt.o getopt1.o' 11742 GETOPTOBJS='getopt.o getopt1.o'
20672 11743
20673 fi 11744 fi
20674 11745
20675 11746
20676 11747
20677 11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
20678 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20679 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 11749 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20680 if test "${ac_cv_func_getpgrp_void+set}" = set; then 11750 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
20681 $as_echo_n "(cached) " >&6 11751 $as_echo_n "(cached) " >&6
20682 else 11752 else
20683 # Use it with a single arg. 11753 # Use it with a single arg.
20684 cat >conftest.$ac_ext <<_ACEOF 11754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685 /* confdefs.h. */
20686 _ACEOF
20687 cat confdefs.h >>conftest.$ac_ext
20688 cat >>conftest.$ac_ext <<_ACEOF
20689 /* end confdefs.h. */ 11755 /* end confdefs.h. */
20690 $ac_includes_default 11756 $ac_includes_default
20691 int 11757 int
20692 main () 11758 main ()
20693 { 11759 {
20694 getpgrp (0); 11760 getpgrp (0);
20695 ; 11761 ;
20696 return 0; 11762 return 0;
20697 } 11763 }
20698 _ACEOF 11764 _ACEOF
20699 rm -f conftest.$ac_objext 11765 if ac_fn_c_try_compile "$LINENO"; then :
20700 if { (ac_try="$ac_compile"
20701 case "(($ac_try" in
20702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20703 *) ac_try_echo=$ac_try;;
20704 esac
20705 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20706 $as_echo "$ac_try_echo") >&5
20707 (eval "$ac_compile") 2>conftest.er1
20708 ac_status=$?
20709 grep -v '^ *+' conftest.er1 >conftest.err
20710 rm -f conftest.er1
20711 cat conftest.err >&5
20712 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20713 (exit $ac_status); } && {
20714 test -z "$ac_c_werror_flag" ||
20715 test ! -s conftest.err
20716 } && test -s conftest.$ac_objext; then
20717 ac_cv_func_getpgrp_void=no 11766 ac_cv_func_getpgrp_void=no
20718 else 11767 else
20719 $as_echo "$as_me: failed program was:" >&5 11768 ac_cv_func_getpgrp_void=yes
20720 sed 's/^/| /' conftest.$ac_ext >&5 11769 fi
20721
20722 ac_cv_func_getpgrp_void=yes
20723 fi
20724
20725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20726 11771
20727 fi 11772 fi
20728 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
20729 $as_echo "$ac_cv_func_getpgrp_void" >&6; } 11774 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20730 if test $ac_cv_func_getpgrp_void = yes; then 11775 if test $ac_cv_func_getpgrp_void = yes; then
20731 11776
20732 cat >>confdefs.h <<\_ACEOF 11777 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
20733 #define GETPGRP_VOID 1 11778
20734 _ACEOF 11779 fi
20735
20736 fi
20737
20738 11780
20739 11781
20740 for ac_func in strftime 11782 for ac_func in strftime
20741 do 11783 do :
20742 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11784 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
20743 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11785 if test "x$ac_cv_func_strftime" = x""yes; then :
20744 $as_echo_n "checking for $ac_func... " >&6; }
20745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20746 $as_echo_n "(cached) " >&6
20747 else
20748 cat >conftest.$ac_ext <<_ACEOF
20749 /* confdefs.h. */
20750 _ACEOF
20751 cat confdefs.h >>conftest.$ac_ext
20752 cat >>conftest.$ac_ext <<_ACEOF
20753 /* end confdefs.h. */
20754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20756 #define $ac_func innocuous_$ac_func
20757
20758 /* System header to define __stub macros and hopefully few prototypes,
20759 which can conflict with char $ac_func (); below.
20760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20761 <limits.h> exists even on freestanding compilers. */
20762
20763 #ifdef __STDC__
20764 # include <limits.h>
20765 #else
20766 # include <assert.h>
20767 #endif
20768
20769 #undef $ac_func
20770
20771 /* Override any GCC internal prototype to avoid an error.
20772 Use char because int might match the return type of a GCC
20773 builtin and then its argument prototype would still apply. */
20774 #ifdef __cplusplus
20775 extern "C"
20776 #endif
20777 char $ac_func ();
20778 /* The GNU C library defines this for functions which it implements
20779 to always fail with ENOSYS. Some functions are actually named
20780 something starting with __ and the normal name is an alias. */
20781 #if defined __stub_$ac_func || defined __stub___$ac_func
20782 choke me
20783 #endif
20784
20785 int
20786 main ()
20787 {
20788 return $ac_func ();
20789 ;
20790 return 0;
20791 }
20792 _ACEOF
20793 rm -f conftest.$ac_objext conftest$ac_exeext
20794 if { (ac_try="$ac_link"
20795 case "(($ac_try" in
20796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20797 *) ac_try_echo=$ac_try;;
20798 esac
20799 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20800 $as_echo "$ac_try_echo") >&5
20801 (eval "$ac_link") 2>conftest.er1
20802 ac_status=$?
20803 grep -v '^ *+' conftest.er1 >conftest.err
20804 rm -f conftest.er1
20805 cat conftest.err >&5
20806 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20807 (exit $ac_status); } && {
20808 test -z "$ac_c_werror_flag" ||
20809 test ! -s conftest.err
20810 } && test -s conftest$ac_exeext && {
20811 test "$cross_compiling" = yes ||
20812 $as_test_x conftest$ac_exeext
20813 }; then
20814 eval "$as_ac_var=yes"
20815 else
20816 $as_echo "$as_me: failed program was:" >&5
20817 sed 's/^/| /' conftest.$ac_ext >&5
20818
20819 eval "$as_ac_var=no"
20820 fi
20821
20822 rm -rf conftest.dSYM
20823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20824 conftest$ac_exeext conftest.$ac_ext
20825 fi
20826 ac_res=`eval 'as_val=${'$as_ac_var'}
20827 $as_echo "$as_val"'`
20828 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20829 $as_echo "$ac_res" >&6; }
20830 if test `eval 'as_val=${'$as_ac_var'}
20831 $as_echo "$as_val"'` = yes; then
20832 cat >>confdefs.h <<_ACEOF 11786 cat >>confdefs.h <<_ACEOF
20833 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11787 #define HAVE_STRFTIME 1
20834 _ACEOF 11788 _ACEOF
20835 11789
20836 else 11790 else
20837 # strftime is in -lintl on SCO UNIX. 11791 # strftime is in -lintl on SCO UNIX.
20838 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 11792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
20839 $as_echo_n "checking for strftime in -lintl... " >&6; } 11793 $as_echo_n "checking for strftime in -lintl... " >&6; }
20840 if test "${ac_cv_lib_intl_strftime+set}" = set; then 11794 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
20841 $as_echo_n "(cached) " >&6 11795 $as_echo_n "(cached) " >&6
20842 else 11796 else
20843 ac_check_lib_save_LIBS=$LIBS 11797 ac_check_lib_save_LIBS=$LIBS
20844 LIBS="-lintl $LIBS" 11798 LIBS="-lintl $LIBS"
20845 cat >conftest.$ac_ext <<_ACEOF 11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20846 /* confdefs.h. */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */ 11800 /* end confdefs.h. */
20851 11801
20852 /* Override any GCC internal prototype to avoid an error. 11802 /* Override any GCC internal prototype to avoid an error.
20853 Use char because int might match the return type of a GCC 11803 Use char because int might match the return type of a GCC
20854 builtin and then its argument prototype would still apply. */ 11804 builtin and then its argument prototype would still apply. */
20862 return strftime (); 11812 return strftime ();
20863 ; 11813 ;
20864 return 0; 11814 return 0;
20865 } 11815 }
20866 _ACEOF 11816 _ACEOF
20867 rm -f conftest.$ac_objext conftest$ac_exeext 11817 if ac_fn_c_try_link "$LINENO"; then :
20868 if { (ac_try="$ac_link"
20869 case "(($ac_try" in
20870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20871 *) ac_try_echo=$ac_try;;
20872 esac
20873 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20874 $as_echo "$ac_try_echo") >&5
20875 (eval "$ac_link") 2>conftest.er1
20876 ac_status=$?
20877 grep -v '^ *+' conftest.er1 >conftest.err
20878 rm -f conftest.er1
20879 cat conftest.err >&5
20880 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20881 (exit $ac_status); } && {
20882 test -z "$ac_c_werror_flag" ||
20883 test ! -s conftest.err
20884 } && test -s conftest$ac_exeext && {
20885 test "$cross_compiling" = yes ||
20886 $as_test_x conftest$ac_exeext
20887 }; then
20888 ac_cv_lib_intl_strftime=yes 11818 ac_cv_lib_intl_strftime=yes
20889 else 11819 else
20890 $as_echo "$as_me: failed program was:" >&5 11820 ac_cv_lib_intl_strftime=no
20891 sed 's/^/| /' conftest.$ac_ext >&5 11821 fi
20892 11822 rm -f core conftest.err conftest.$ac_objext \
20893 ac_cv_lib_intl_strftime=no 11823 conftest$ac_exeext conftest.$ac_ext
20894 fi
20895
20896 rm -rf conftest.dSYM
20897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20898 conftest$ac_exeext conftest.$ac_ext
20899 LIBS=$ac_check_lib_save_LIBS 11824 LIBS=$ac_check_lib_save_LIBS
20900 fi 11825 fi
20901 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 11826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
20902 $as_echo "$ac_cv_lib_intl_strftime" >&6; } 11827 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20903 if test $ac_cv_lib_intl_strftime = yes; then 11828 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
20904 cat >>confdefs.h <<\_ACEOF 11829 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
20905 #define HAVE_STRFTIME 1
20906 _ACEOF
20907 11830
20908 LIBS="-lintl $LIBS" 11831 LIBS="-lintl $LIBS"
20909 fi 11832 fi
20910 11833
20911 fi 11834 fi
20912 done 11835 done
20913 11836
20914 11837
20915 # UNIX98 PTYs. 11838 # UNIX98 PTYs.
20916
20917 for ac_func in grantpt 11839 for ac_func in grantpt
20918 do 11840 do :
20919 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11841 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
20920 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11842 if test "x$ac_cv_func_grantpt" = x""yes; then :
20921 $as_echo_n "checking for $ac_func... " >&6; }
20922 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20923 $as_echo_n "(cached) " >&6
20924 else
20925 cat >conftest.$ac_ext <<_ACEOF
20926 /* confdefs.h. */
20927 _ACEOF
20928 cat confdefs.h >>conftest.$ac_ext
20929 cat >>conftest.$ac_ext <<_ACEOF
20930 /* end confdefs.h. */
20931 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20932 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20933 #define $ac_func innocuous_$ac_func
20934
20935 /* System header to define __stub macros and hopefully few prototypes,
20936 which can conflict with char $ac_func (); below.
20937 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20938 <limits.h> exists even on freestanding compilers. */
20939
20940 #ifdef __STDC__
20941 # include <limits.h>
20942 #else
20943 # include <assert.h>
20944 #endif
20945
20946 #undef $ac_func
20947
20948 /* Override any GCC internal prototype to avoid an error.
20949 Use char because int might match the return type of a GCC
20950 builtin and then its argument prototype would still apply. */
20951 #ifdef __cplusplus
20952 extern "C"
20953 #endif
20954 char $ac_func ();
20955 /* The GNU C library defines this for functions which it implements
20956 to always fail with ENOSYS. Some functions are actually named
20957 something starting with __ and the normal name is an alias. */
20958 #if defined __stub_$ac_func || defined __stub___$ac_func
20959 choke me
20960 #endif
20961
20962 int
20963 main ()
20964 {
20965 return $ac_func ();
20966 ;
20967 return 0;
20968 }
20969 _ACEOF
20970 rm -f conftest.$ac_objext conftest$ac_exeext
20971 if { (ac_try="$ac_link"
20972 case "(($ac_try" in
20973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20974 *) ac_try_echo=$ac_try;;
20975 esac
20976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20977 $as_echo "$ac_try_echo") >&5
20978 (eval "$ac_link") 2>conftest.er1
20979 ac_status=$?
20980 grep -v '^ *+' conftest.er1 >conftest.err
20981 rm -f conftest.er1
20982 cat conftest.err >&5
20983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20984 (exit $ac_status); } && {
20985 test -z "$ac_c_werror_flag" ||
20986 test ! -s conftest.err
20987 } && test -s conftest$ac_exeext && {
20988 test "$cross_compiling" = yes ||
20989 $as_test_x conftest$ac_exeext
20990 }; then
20991 eval "$as_ac_var=yes"
20992 else
20993 $as_echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20995
20996 eval "$as_ac_var=no"
20997 fi
20998
20999 rm -rf conftest.dSYM
21000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21001 conftest$ac_exeext conftest.$ac_ext
21002 fi
21003 ac_res=`eval 'as_val=${'$as_ac_var'}
21004 $as_echo "$as_val"'`
21005 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21006 $as_echo "$ac_res" >&6; }
21007 if test `eval 'as_val=${'$as_ac_var'}
21008 $as_echo "$as_val"'` = yes; then
21009 cat >>confdefs.h <<_ACEOF 11843 cat >>confdefs.h <<_ACEOF
21010 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11844 #define HAVE_GRANTPT 1
21011 _ACEOF 11845 _ACEOF
21012 11846
21013 fi 11847 fi
21014 done 11848 done
21015 11849
21016 11850
21017 # PTY-related GNU extensions. 11851 # PTY-related GNU extensions.
21018
21019 for ac_func in getpt 11852 for ac_func in getpt
21020 do 11853 do :
21021 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11854 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
21022 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11855 if test "x$ac_cv_func_getpt" = x""yes; then :
21023 $as_echo_n "checking for $ac_func... " >&6; }
21024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21025 $as_echo_n "(cached) " >&6
21026 else
21027 cat >conftest.$ac_ext <<_ACEOF
21028 /* confdefs.h. */
21029 _ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21034 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21035 #define $ac_func innocuous_$ac_func
21036
21037 /* System header to define __stub macros and hopefully few prototypes,
21038 which can conflict with char $ac_func (); below.
21039 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21040 <limits.h> exists even on freestanding compilers. */
21041
21042 #ifdef __STDC__
21043 # include <limits.h>
21044 #else
21045 # include <assert.h>
21046 #endif
21047
21048 #undef $ac_func
21049
21050 /* Override any GCC internal prototype to avoid an error.
21051 Use char because int might match the return type of a GCC
21052 builtin and then its argument prototype would still apply. */
21053 #ifdef __cplusplus
21054 extern "C"
21055 #endif
21056 char $ac_func ();
21057 /* The GNU C library defines this for functions which it implements
21058 to always fail with ENOSYS. Some functions are actually named
21059 something starting with __ and the normal name is an alias. */
21060 #if defined __stub_$ac_func || defined __stub___$ac_func
21061 choke me
21062 #endif
21063
21064 int
21065 main ()
21066 {
21067 return $ac_func ();
21068 ;
21069 return 0;
21070 }
21071 _ACEOF
21072 rm -f conftest.$ac_objext conftest$ac_exeext
21073 if { (ac_try="$ac_link"
21074 case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21077 esac
21078 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21079 $as_echo "$ac_try_echo") >&5
21080 (eval "$ac_link") 2>conftest.er1
21081 ac_status=$?
21082 grep -v '^ *+' conftest.er1 >conftest.err
21083 rm -f conftest.er1
21084 cat conftest.err >&5
21085 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21086 (exit $ac_status); } && {
21087 test -z "$ac_c_werror_flag" ||
21088 test ! -s conftest.err
21089 } && test -s conftest$ac_exeext && {
21090 test "$cross_compiling" = yes ||
21091 $as_test_x conftest$ac_exeext
21092 }; then
21093 eval "$as_ac_var=yes"
21094 else
21095 $as_echo "$as_me: failed program was:" >&5
21096 sed 's/^/| /' conftest.$ac_ext >&5
21097
21098 eval "$as_ac_var=no"
21099 fi
21100
21101 rm -rf conftest.dSYM
21102 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21103 conftest$ac_exeext conftest.$ac_ext
21104 fi
21105 ac_res=`eval 'as_val=${'$as_ac_var'}
21106 $as_echo "$as_val"'`
21107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21108 $as_echo "$ac_res" >&6; }
21109 if test `eval 'as_val=${'$as_ac_var'}
21110 $as_echo "$as_val"'` = yes; then
21111 cat >>confdefs.h <<_ACEOF 11856 cat >>confdefs.h <<_ACEOF
21112 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11857 #define HAVE_GETPT 1
21113 _ACEOF 11858 _ACEOF
21114 11859
21115 fi 11860 fi
21116 done 11861 done
21117 11862
21120 # That is because we have not set up to link ncurses in lib-src. 11865 # That is because we have not set up to link ncurses in lib-src.
21121 # It's better to believe a function is not available 11866 # It's better to believe a function is not available
21122 # than to expect to find it in ncurses. 11867 # than to expect to find it in ncurses.
21123 # Also we need tputs and frieds to be able to build at all. 11868 # Also we need tputs and frieds to be able to build at all.
21124 have_tputs_et_al=true 11869 have_tputs_et_al=true
21125 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5 11870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
21126 $as_echo_n "checking for library containing tputs... " >&6; } 11871 $as_echo_n "checking for library containing tputs... " >&6; }
21127 if test "${ac_cv_search_tputs+set}" = set; then 11872 if test "${ac_cv_search_tputs+set}" = set; then :
21128 $as_echo_n "(cached) " >&6 11873 $as_echo_n "(cached) " >&6
21129 else 11874 else
21130 ac_func_search_save_LIBS=$LIBS 11875 ac_func_search_save_LIBS=$LIBS
21131 cat >conftest.$ac_ext <<_ACEOF 11876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21132 /* confdefs.h. */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */ 11877 /* end confdefs.h. */
21137 11878
21138 /* Override any GCC internal prototype to avoid an error. 11879 /* Override any GCC internal prototype to avoid an error.
21139 Use char because int might match the return type of a GCC 11880 Use char because int might match the return type of a GCC
21140 builtin and then its argument prototype would still apply. */ 11881 builtin and then its argument prototype would still apply. */
21155 ac_res="none required" 11896 ac_res="none required"
21156 else 11897 else
21157 ac_res=-l$ac_lib 11898 ac_res=-l$ac_lib
21158 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11899 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21159 fi 11900 fi
21160 rm -f conftest.$ac_objext conftest$ac_exeext 11901 if ac_fn_c_try_link "$LINENO"; then :
21161 if { (ac_try="$ac_link"
21162 case "(($ac_try" in
21163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21164 *) ac_try_echo=$ac_try;;
21165 esac
21166 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21167 $as_echo "$ac_try_echo") >&5
21168 (eval "$ac_link") 2>conftest.er1
21169 ac_status=$?
21170 grep -v '^ *+' conftest.er1 >conftest.err
21171 rm -f conftest.er1
21172 cat conftest.err >&5
21173 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21174 (exit $ac_status); } && {
21175 test -z "$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21177 } && test -s conftest$ac_exeext && {
21178 test "$cross_compiling" = yes ||
21179 $as_test_x conftest$ac_exeext
21180 }; then
21181 ac_cv_search_tputs=$ac_res 11902 ac_cv_search_tputs=$ac_res
21182 else 11903 fi
21183 $as_echo "$as_me: failed program was:" >&5 11904 rm -f core conftest.err conftest.$ac_objext \
21184 sed 's/^/| /' conftest.$ac_ext >&5 11905 conftest$ac_exeext
21185 11906 if test "${ac_cv_search_tputs+set}" = set; then :
21186
21187 fi
21188
21189 rm -rf conftest.dSYM
21190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21191 conftest$ac_exeext
21192 if test "${ac_cv_search_tputs+set}" = set; then
21193 break 11907 break
21194 fi 11908 fi
21195 done 11909 done
21196 if test "${ac_cv_search_tputs+set}" = set; then 11910 if test "${ac_cv_search_tputs+set}" = set; then :
21197 : 11911
21198 else 11912 else
21199 ac_cv_search_tputs=no 11913 ac_cv_search_tputs=no
21200 fi 11914 fi
21201 rm conftest.$ac_ext 11915 rm conftest.$ac_ext
21202 LIBS=$ac_func_search_save_LIBS 11916 LIBS=$ac_func_search_save_LIBS
21203 fi 11917 fi
21204 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5 11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
21205 $as_echo "$ac_cv_search_tputs" >&6; } 11919 $as_echo "$ac_cv_search_tputs" >&6; }
21206 ac_res=$ac_cv_search_tputs 11920 ac_res=$ac_cv_search_tputs
21207 if test "$ac_res" != no; then 11921 if test "$ac_res" != no; then :
21208 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11922 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21209 11923
21210 else 11924 else
21211 have_tputs_et_al=false 11925 have_tputs_et_al=false
21212 fi 11926 fi
21213 11927
21214 if test "$have_tputs_et_al" != true; then 11928 if test "$have_tputs_et_al" != true; then
21215 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends). 11929 as_fn_error "I couldn't find termcap functions (tputs and friends).
21216 Maybe some development libraries/packages are missing? Try installing 11930 Maybe some development libraries/packages are missing? Try installing
21217 libncurses-dev(el), libterminfo-dev(el) or similar." >&5 11931 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
21218 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21219 Maybe some development libraries/packages are missing? Try installing
21220 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21221 { (exit 1); exit 1; }; }
21222 fi 11932 fi
21223 # Must define this when any termcap library is found. 11933 # Must define this when any termcap library is found.
21224 11934
21225 cat >>confdefs.h <<\_ACEOF 11935 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
21226 #define HAVE_LIBNCURSES 1
21227 _ACEOF
21228 11936
21229 11937
21230 # Do we have res_init, for detecting changes in /etc/resolv.conf? 11938 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21231 11939
21232 resolv=no 11940 resolv=no
21233 cat >conftest.$ac_ext <<_ACEOF 11941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21234 /* confdefs.h. */
21235 _ACEOF
21236 cat confdefs.h >>conftest.$ac_ext
21237 cat >>conftest.$ac_ext <<_ACEOF
21238 /* end confdefs.h. */ 11942 /* end confdefs.h. */
21239 #include <netinet/in.h> 11943 #include <netinet/in.h>
21240 #include <arpa/nameser.h> 11944 #include <arpa/nameser.h>
21241 #include <resolv.h> 11945 #include <resolv.h>
21242 int 11946 int
21245 return res_init(); 11949 return res_init();
21246 ; 11950 ;
21247 return 0; 11951 return 0;
21248 } 11952 }
21249 _ACEOF 11953 _ACEOF
21250 rm -f conftest.$ac_objext conftest$ac_exeext 11954 if ac_fn_c_try_link "$LINENO"; then :
21251 if { (ac_try="$ac_link"
21252 case "(($ac_try" in
21253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21254 *) ac_try_echo=$ac_try;;
21255 esac
21256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21257 $as_echo "$ac_try_echo") >&5
21258 (eval "$ac_link") 2>conftest.er1
21259 ac_status=$?
21260 grep -v '^ *+' conftest.er1 >conftest.err
21261 rm -f conftest.er1
21262 cat conftest.err >&5
21263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21264 (exit $ac_status); } && {
21265 test -z "$ac_c_werror_flag" ||
21266 test ! -s conftest.err
21267 } && test -s conftest$ac_exeext && {
21268 test "$cross_compiling" = yes ||
21269 $as_test_x conftest$ac_exeext
21270 }; then
21271 have_res_init=yes 11955 have_res_init=yes
21272 else 11956 else
21273 $as_echo "$as_me: failed program was:" >&5 11957 have_res_init=no
21274 sed 's/^/| /' conftest.$ac_ext >&5 11958 fi
21275 11959 rm -f core conftest.err conftest.$ac_objext \
21276 have_res_init=no 11960 conftest$ac_exeext conftest.$ac_ext
21277 fi
21278
21279 rm -rf conftest.dSYM
21280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21281 conftest$ac_exeext conftest.$ac_ext
21282 if test "$have_res_init" = no; then 11961 if test "$have_res_init" = no; then
21283 OLIBS="$LIBS" 11962 OLIBS="$LIBS"
21284 LIBS="$LIBS -lresolv" 11963 LIBS="$LIBS -lresolv"
21285 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
21286 $as_echo_n "checking for res_init with -lresolv... " >&6; } 11965 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21287 cat >conftest.$ac_ext <<_ACEOF 11966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21288 /* confdefs.h. */
21289 _ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */ 11967 /* end confdefs.h. */
21293 #include <netinet/in.h> 11968 #include <netinet/in.h>
21294 #include <arpa/nameser.h> 11969 #include <arpa/nameser.h>
21295 #include <resolv.h> 11970 #include <resolv.h>
21296 int 11971 int
21299 return res_init(); 11974 return res_init();
21300 ; 11975 ;
21301 return 0; 11976 return 0;
21302 } 11977 }
21303 _ACEOF 11978 _ACEOF
21304 rm -f conftest.$ac_objext conftest$ac_exeext 11979 if ac_fn_c_try_link "$LINENO"; then :
21305 if { (ac_try="$ac_link"
21306 case "(($ac_try" in
21307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21308 *) ac_try_echo=$ac_try;;
21309 esac
21310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21311 $as_echo "$ac_try_echo") >&5
21312 (eval "$ac_link") 2>conftest.er1
21313 ac_status=$?
21314 grep -v '^ *+' conftest.er1 >conftest.err
21315 rm -f conftest.er1
21316 cat conftest.err >&5
21317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21318 (exit $ac_status); } && {
21319 test -z "$ac_c_werror_flag" ||
21320 test ! -s conftest.err
21321 } && test -s conftest$ac_exeext && {
21322 test "$cross_compiling" = yes ||
21323 $as_test_x conftest$ac_exeext
21324 }; then
21325 have_res_init=yes 11980 have_res_init=yes
21326 else 11981 else
21327 $as_echo "$as_me: failed program was:" >&5 11982 have_res_init=no
21328 sed 's/^/| /' conftest.$ac_ext >&5 11983 fi
21329 11984 rm -f core conftest.err conftest.$ac_objext \
21330 have_res_init=no 11985 conftest$ac_exeext conftest.$ac_ext
21331 fi 11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
21332
21333 rm -rf conftest.dSYM
21334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21335 conftest$ac_exeext conftest.$ac_ext
21336 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21337 $as_echo "$have_res_init" >&6; } 11987 $as_echo "$have_res_init" >&6; }
21338 if test "$have_res_init" = yes ; then 11988 if test "$have_res_init" = yes ; then
21339 resolv=yes 11989 resolv=yes
21340 fi 11990 fi
21341 LIBS="$OLIBS" 11991 LIBS="$OLIBS"
21342 fi 11992 fi
21343 11993
21344 if test "$have_res_init" = yes; then 11994 if test "$have_res_init" = yes; then
21345 11995
21346 cat >>confdefs.h <<\_ACEOF 11996 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
21347 #define HAVE_RES_INIT 1
21348 _ACEOF
21349 11997
21350 fi 11998 fi
21351 11999
21352 # Do we need the Hesiod library to provide the support routines? 12000 # Do we need the Hesiod library to provide the support routines?
21353 LIBHESIOD= 12001 LIBHESIOD=
21354 if test "$with_hesiod" != no ; then 12002 if test "$with_hesiod" != no ; then
21355 # Don't set $LIBS here -- see comments above. FIXME which comments? 12003 # Don't set $LIBS here -- see comments above. FIXME which comments?
21356 { $as_echo "$as_me:$LINENO: checking for res_send" >&5 12004 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
21357 $as_echo_n "checking for res_send... " >&6; } 12005 if test "x$ac_cv_func_res_send" = x""yes; then :
21358 if test "${ac_cv_func_res_send+set}" = set; then 12006
21359 $as_echo_n "(cached) " >&6 12007 else
21360 else 12008 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
21361 cat >conftest.$ac_ext <<_ACEOF 12009 if test "x$ac_cv_func___res_send" = x""yes; then :
21362 /* confdefs.h. */ 12010
21363 _ACEOF 12011 else
21364 cat confdefs.h >>conftest.$ac_ext 12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
21365 cat >>conftest.$ac_ext <<_ACEOF
21366 /* end confdefs.h. */
21367 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21368 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21369 #define res_send innocuous_res_send
21370
21371 /* System header to define __stub macros and hopefully few prototypes,
21372 which can conflict with char res_send (); below.
21373 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21374 <limits.h> exists even on freestanding compilers. */
21375
21376 #ifdef __STDC__
21377 # include <limits.h>
21378 #else
21379 # include <assert.h>
21380 #endif
21381
21382 #undef res_send
21383
21384 /* Override any GCC internal prototype to avoid an error.
21385 Use char because int might match the return type of a GCC
21386 builtin and then its argument prototype would still apply. */
21387 #ifdef __cplusplus
21388 extern "C"
21389 #endif
21390 char res_send ();
21391 /* The GNU C library defines this for functions which it implements
21392 to always fail with ENOSYS. Some functions are actually named
21393 something starting with __ and the normal name is an alias. */
21394 #if defined __stub_res_send || defined __stub___res_send
21395 choke me
21396 #endif
21397
21398 int
21399 main ()
21400 {
21401 return res_send ();
21402 ;
21403 return 0;
21404 }
21405 _ACEOF
21406 rm -f conftest.$ac_objext conftest$ac_exeext
21407 if { (ac_try="$ac_link"
21408 case "(($ac_try" in
21409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21410 *) ac_try_echo=$ac_try;;
21411 esac
21412 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21413 $as_echo "$ac_try_echo") >&5
21414 (eval "$ac_link") 2>conftest.er1
21415 ac_status=$?
21416 grep -v '^ *+' conftest.er1 >conftest.err
21417 rm -f conftest.er1
21418 cat conftest.err >&5
21419 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21420 (exit $ac_status); } && {
21421 test -z "$ac_c_werror_flag" ||
21422 test ! -s conftest.err
21423 } && test -s conftest$ac_exeext && {
21424 test "$cross_compiling" = yes ||
21425 $as_test_x conftest$ac_exeext
21426 }; then
21427 ac_cv_func_res_send=yes
21428 else
21429 $as_echo "$as_me: failed program was:" >&5
21430 sed 's/^/| /' conftest.$ac_ext >&5
21431
21432 ac_cv_func_res_send=no
21433 fi
21434
21435 rm -rf conftest.dSYM
21436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21437 conftest$ac_exeext conftest.$ac_ext
21438 fi
21439 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21440 $as_echo "$ac_cv_func_res_send" >&6; }
21441 if test $ac_cv_func_res_send = yes; then
21442 :
21443 else
21444 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21445 $as_echo_n "checking for __res_send... " >&6; }
21446 if test "${ac_cv_func___res_send+set}" = set; then
21447 $as_echo_n "(cached) " >&6
21448 else
21449 cat >conftest.$ac_ext <<_ACEOF
21450 /* confdefs.h. */
21451 _ACEOF
21452 cat confdefs.h >>conftest.$ac_ext
21453 cat >>conftest.$ac_ext <<_ACEOF
21454 /* end confdefs.h. */
21455 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21456 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21457 #define __res_send innocuous___res_send
21458
21459 /* System header to define __stub macros and hopefully few prototypes,
21460 which can conflict with char __res_send (); below.
21461 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21462 <limits.h> exists even on freestanding compilers. */
21463
21464 #ifdef __STDC__
21465 # include <limits.h>
21466 #else
21467 # include <assert.h>
21468 #endif
21469
21470 #undef __res_send
21471
21472 /* Override any GCC internal prototype to avoid an error.
21473 Use char because int might match the return type of a GCC
21474 builtin and then its argument prototype would still apply. */
21475 #ifdef __cplusplus
21476 extern "C"
21477 #endif
21478 char __res_send ();
21479 /* The GNU C library defines this for functions which it implements
21480 to always fail with ENOSYS. Some functions are actually named
21481 something starting with __ and the normal name is an alias. */
21482 #if defined __stub___res_send || defined __stub_____res_send
21483 choke me
21484 #endif
21485
21486 int
21487 main ()
21488 {
21489 return __res_send ();
21490 ;
21491 return 0;
21492 }
21493 _ACEOF
21494 rm -f conftest.$ac_objext conftest$ac_exeext
21495 if { (ac_try="$ac_link"
21496 case "(($ac_try" in
21497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21498 *) ac_try_echo=$ac_try;;
21499 esac
21500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21501 $as_echo "$ac_try_echo") >&5
21502 (eval "$ac_link") 2>conftest.er1
21503 ac_status=$?
21504 grep -v '^ *+' conftest.er1 >conftest.err
21505 rm -f conftest.er1
21506 cat conftest.err >&5
21507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21508 (exit $ac_status); } && {
21509 test -z "$ac_c_werror_flag" ||
21510 test ! -s conftest.err
21511 } && test -s conftest$ac_exeext && {
21512 test "$cross_compiling" = yes ||
21513 $as_test_x conftest$ac_exeext
21514 }; then
21515 ac_cv_func___res_send=yes
21516 else
21517 $as_echo "$as_me: failed program was:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21519
21520 ac_cv_func___res_send=no
21521 fi
21522
21523 rm -rf conftest.dSYM
21524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21525 conftest$ac_exeext conftest.$ac_ext
21526 fi
21527 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21528 $as_echo "$ac_cv_func___res_send" >&6; }
21529 if test $ac_cv_func___res_send = yes; then
21530 :
21531 else
21532 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21533 $as_echo_n "checking for res_send in -lresolv... " >&6; } 12013 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21534 if test "${ac_cv_lib_resolv_res_send+set}" = set; then 12014 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
21535 $as_echo_n "(cached) " >&6 12015 $as_echo_n "(cached) " >&6
21536 else 12016 else
21537 ac_check_lib_save_LIBS=$LIBS 12017 ac_check_lib_save_LIBS=$LIBS
21538 LIBS="-lresolv $LIBS" 12018 LIBS="-lresolv $LIBS"
21539 cat >conftest.$ac_ext <<_ACEOF 12019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21540 /* confdefs.h. */
21541 _ACEOF
21542 cat confdefs.h >>conftest.$ac_ext
21543 cat >>conftest.$ac_ext <<_ACEOF
21544 /* end confdefs.h. */ 12020 /* end confdefs.h. */
21545 12021
21546 /* Override any GCC internal prototype to avoid an error. 12022 /* Override any GCC internal prototype to avoid an error.
21547 Use char because int might match the return type of a GCC 12023 Use char because int might match the return type of a GCC
21548 builtin and then its argument prototype would still apply. */ 12024 builtin and then its argument prototype would still apply. */
21556 return res_send (); 12032 return res_send ();
21557 ; 12033 ;
21558 return 0; 12034 return 0;
21559 } 12035 }
21560 _ACEOF 12036 _ACEOF
21561 rm -f conftest.$ac_objext conftest$ac_exeext 12037 if ac_fn_c_try_link "$LINENO"; then :
21562 if { (ac_try="$ac_link"
21563 case "(($ac_try" in
21564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21565 *) ac_try_echo=$ac_try;;
21566 esac
21567 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21568 $as_echo "$ac_try_echo") >&5
21569 (eval "$ac_link") 2>conftest.er1
21570 ac_status=$?
21571 grep -v '^ *+' conftest.er1 >conftest.err
21572 rm -f conftest.er1
21573 cat conftest.err >&5
21574 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } && {
21576 test -z "$ac_c_werror_flag" ||
21577 test ! -s conftest.err
21578 } && test -s conftest$ac_exeext && {
21579 test "$cross_compiling" = yes ||
21580 $as_test_x conftest$ac_exeext
21581 }; then
21582 ac_cv_lib_resolv_res_send=yes 12038 ac_cv_lib_resolv_res_send=yes
21583 else 12039 else
21584 $as_echo "$as_me: failed program was:" >&5 12040 ac_cv_lib_resolv_res_send=no
21585 sed 's/^/| /' conftest.$ac_ext >&5 12041 fi
21586 12042 rm -f core conftest.err conftest.$ac_objext \
21587 ac_cv_lib_resolv_res_send=no 12043 conftest$ac_exeext conftest.$ac_ext
21588 fi
21589
21590 rm -rf conftest.dSYM
21591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21592 conftest$ac_exeext conftest.$ac_ext
21593 LIBS=$ac_check_lib_save_LIBS 12044 LIBS=$ac_check_lib_save_LIBS
21594 fi 12045 fi
21595 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
21596 $as_echo "$ac_cv_lib_resolv_res_send" >&6; } 12047 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21597 if test $ac_cv_lib_resolv_res_send = yes; then 12048 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
21598 resolv=yes 12049 resolv=yes
21599 else 12050 else
21600 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 12051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
21601 $as_echo_n "checking for __res_send in -lresolv... " >&6; } 12052 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21602 if test "${ac_cv_lib_resolv___res_send+set}" = set; then 12053 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
21603 $as_echo_n "(cached) " >&6 12054 $as_echo_n "(cached) " >&6
21604 else 12055 else
21605 ac_check_lib_save_LIBS=$LIBS 12056 ac_check_lib_save_LIBS=$LIBS
21606 LIBS="-lresolv $LIBS" 12057 LIBS="-lresolv $LIBS"
21607 cat >conftest.$ac_ext <<_ACEOF 12058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21608 /* confdefs.h. */
21609 _ACEOF
21610 cat confdefs.h >>conftest.$ac_ext
21611 cat >>conftest.$ac_ext <<_ACEOF
21612 /* end confdefs.h. */ 12059 /* end confdefs.h. */
21613 12060
21614 /* Override any GCC internal prototype to avoid an error. 12061 /* Override any GCC internal prototype to avoid an error.
21615 Use char because int might match the return type of a GCC 12062 Use char because int might match the return type of a GCC
21616 builtin and then its argument prototype would still apply. */ 12063 builtin and then its argument prototype would still apply. */
21624 return __res_send (); 12071 return __res_send ();
21625 ; 12072 ;
21626 return 0; 12073 return 0;
21627 } 12074 }
21628 _ACEOF 12075 _ACEOF
21629 rm -f conftest.$ac_objext conftest$ac_exeext 12076 if ac_fn_c_try_link "$LINENO"; then :
21630 if { (ac_try="$ac_link"
21631 case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21634 esac
21635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21636 $as_echo "$ac_try_echo") >&5
21637 (eval "$ac_link") 2>conftest.er1
21638 ac_status=$?
21639 grep -v '^ *+' conftest.er1 >conftest.err
21640 rm -f conftest.er1
21641 cat conftest.err >&5
21642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21643 (exit $ac_status); } && {
21644 test -z "$ac_c_werror_flag" ||
21645 test ! -s conftest.err
21646 } && test -s conftest$ac_exeext && {
21647 test "$cross_compiling" = yes ||
21648 $as_test_x conftest$ac_exeext
21649 }; then
21650 ac_cv_lib_resolv___res_send=yes 12077 ac_cv_lib_resolv___res_send=yes
21651 else 12078 else
21652 $as_echo "$as_me: failed program was:" >&5 12079 ac_cv_lib_resolv___res_send=no
21653 sed 's/^/| /' conftest.$ac_ext >&5 12080 fi
21654 12081 rm -f core conftest.err conftest.$ac_objext \
21655 ac_cv_lib_resolv___res_send=no 12082 conftest$ac_exeext conftest.$ac_ext
21656 fi
21657
21658 rm -rf conftest.dSYM
21659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21660 conftest$ac_exeext conftest.$ac_ext
21661 LIBS=$ac_check_lib_save_LIBS 12083 LIBS=$ac_check_lib_save_LIBS
21662 fi 12084 fi
21663 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
21664 $as_echo "$ac_cv_lib_resolv___res_send" >&6; } 12086 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21665 if test $ac_cv_lib_resolv___res_send = yes; then 12087 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
21666 resolv=yes 12088 resolv=yes
21667 fi 12089 fi
21668 12090
21669 fi 12091 fi
21670 12092
21675 if test "$resolv" = yes ; then 12097 if test "$resolv" = yes ; then
21676 RESOLVLIB=-lresolv 12098 RESOLVLIB=-lresolv
21677 else 12099 else
21678 RESOLVLIB= 12100 RESOLVLIB=
21679 fi 12101 fi
21680 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 12102 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
21681 $as_echo_n "checking for hes_getmailhost... " >&6; } 12103 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
21682 if test "${ac_cv_func_hes_getmailhost+set}" = set; then 12104
21683 $as_echo_n "(cached) " >&6 12105 else
21684 else 12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
21685 cat >conftest.$ac_ext <<_ACEOF
21686 /* confdefs.h. */
21687 _ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21692 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21693 #define hes_getmailhost innocuous_hes_getmailhost
21694
21695 /* System header to define __stub macros and hopefully few prototypes,
21696 which can conflict with char hes_getmailhost (); below.
21697 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21698 <limits.h> exists even on freestanding compilers. */
21699
21700 #ifdef __STDC__
21701 # include <limits.h>
21702 #else
21703 # include <assert.h>
21704 #endif
21705
21706 #undef hes_getmailhost
21707
21708 /* Override any GCC internal prototype to avoid an error.
21709 Use char because int might match the return type of a GCC
21710 builtin and then its argument prototype would still apply. */
21711 #ifdef __cplusplus
21712 extern "C"
21713 #endif
21714 char hes_getmailhost ();
21715 /* The GNU C library defines this for functions which it implements
21716 to always fail with ENOSYS. Some functions are actually named
21717 something starting with __ and the normal name is an alias. */
21718 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21719 choke me
21720 #endif
21721
21722 int
21723 main ()
21724 {
21725 return hes_getmailhost ();
21726 ;
21727 return 0;
21728 }
21729 _ACEOF
21730 rm -f conftest.$ac_objext conftest$ac_exeext
21731 if { (ac_try="$ac_link"
21732 case "(($ac_try" in
21733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21734 *) ac_try_echo=$ac_try;;
21735 esac
21736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21737 $as_echo "$ac_try_echo") >&5
21738 (eval "$ac_link") 2>conftest.er1
21739 ac_status=$?
21740 grep -v '^ *+' conftest.er1 >conftest.err
21741 rm -f conftest.er1
21742 cat conftest.err >&5
21743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21744 (exit $ac_status); } && {
21745 test -z "$ac_c_werror_flag" ||
21746 test ! -s conftest.err
21747 } && test -s conftest$ac_exeext && {
21748 test "$cross_compiling" = yes ||
21749 $as_test_x conftest$ac_exeext
21750 }; then
21751 ac_cv_func_hes_getmailhost=yes
21752 else
21753 $as_echo "$as_me: failed program was:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21755
21756 ac_cv_func_hes_getmailhost=no
21757 fi
21758
21759 rm -rf conftest.dSYM
21760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21761 conftest$ac_exeext conftest.$ac_ext
21762 fi
21763 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21764 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21765 if test $ac_cv_func_hes_getmailhost = yes; then
21766 :
21767 else
21768 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21769 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } 12107 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21770 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then 12108 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
21771 $as_echo_n "(cached) " >&6 12109 $as_echo_n "(cached) " >&6
21772 else 12110 else
21773 ac_check_lib_save_LIBS=$LIBS 12111 ac_check_lib_save_LIBS=$LIBS
21774 LIBS="-lhesiod $RESOLVLIB $LIBS" 12112 LIBS="-lhesiod $RESOLVLIB $LIBS"
21775 cat >conftest.$ac_ext <<_ACEOF 12113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21776 /* confdefs.h. */
21777 _ACEOF
21778 cat confdefs.h >>conftest.$ac_ext
21779 cat >>conftest.$ac_ext <<_ACEOF
21780 /* end confdefs.h. */ 12114 /* end confdefs.h. */
21781 12115
21782 /* Override any GCC internal prototype to avoid an error. 12116 /* Override any GCC internal prototype to avoid an error.
21783 Use char because int might match the return type of a GCC 12117 Use char because int might match the return type of a GCC
21784 builtin and then its argument prototype would still apply. */ 12118 builtin and then its argument prototype would still apply. */
21792 return hes_getmailhost (); 12126 return hes_getmailhost ();
21793 ; 12127 ;
21794 return 0; 12128 return 0;
21795 } 12129 }
21796 _ACEOF 12130 _ACEOF
21797 rm -f conftest.$ac_objext conftest$ac_exeext 12131 if ac_fn_c_try_link "$LINENO"; then :
21798 if { (ac_try="$ac_link"
21799 case "(($ac_try" in
21800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21801 *) ac_try_echo=$ac_try;;
21802 esac
21803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21804 $as_echo "$ac_try_echo") >&5
21805 (eval "$ac_link") 2>conftest.er1
21806 ac_status=$?
21807 grep -v '^ *+' conftest.er1 >conftest.err
21808 rm -f conftest.er1
21809 cat conftest.err >&5
21810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); } && {
21812 test -z "$ac_c_werror_flag" ||
21813 test ! -s conftest.err
21814 } && test -s conftest$ac_exeext && {
21815 test "$cross_compiling" = yes ||
21816 $as_test_x conftest$ac_exeext
21817 }; then
21818 ac_cv_lib_hesiod_hes_getmailhost=yes 12132 ac_cv_lib_hesiod_hes_getmailhost=yes
21819 else 12133 else
21820 $as_echo "$as_me: failed program was:" >&5 12134 ac_cv_lib_hesiod_hes_getmailhost=no
21821 sed 's/^/| /' conftest.$ac_ext >&5 12135 fi
21822 12136 rm -f core conftest.err conftest.$ac_objext \
21823 ac_cv_lib_hesiod_hes_getmailhost=no 12137 conftest$ac_exeext conftest.$ac_ext
21824 fi
21825
21826 rm -rf conftest.dSYM
21827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21828 conftest$ac_exeext conftest.$ac_ext
21829 LIBS=$ac_check_lib_save_LIBS 12138 LIBS=$ac_check_lib_save_LIBS
21830 fi 12139 fi
21831 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21832 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } 12141 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21833 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then 12142 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
21834 hesiod=yes 12143 hesiod=yes
21835 else 12144 else
21836 : 12145 :
21837 fi 12146 fi
21838 12147
21839 fi 12148 fi
21840 12149
21841 12150
21842 if test x"$hesiod" = xyes; then 12151 if test x"$hesiod" = xyes; then
21843 12152
21844 cat >>confdefs.h <<\_ACEOF 12153 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
21845 #define HAVE_LIBHESIOD 1
21846 _ACEOF
21847 12154
21848 LIBHESIOD=-lhesiod 12155 LIBHESIOD=-lhesiod
21849 fi 12156 fi
21850 fi 12157 fi
21851 12158
21852 12159
21853 # Do we need libresolv (due to res_init or Hesiod)? 12160 # Do we need libresolv (due to res_init or Hesiod)?
21854 if test "$resolv" = yes ; then 12161 if test "$resolv" = yes ; then
21855 12162
21856 cat >>confdefs.h <<\_ACEOF 12163 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
21857 #define HAVE_LIBRESOLV 1
21858 _ACEOF
21859 12164
21860 LIBRESOLV=-lresolv 12165 LIBRESOLV=-lresolv
21861 else 12166 else
21862 LIBRESOLV= 12167 LIBRESOLV=
21863 fi 12168 fi
21869 KRB5LIB= 12174 KRB5LIB=
21870 DESLIB= 12175 DESLIB=
21871 KRB4LIB= 12176 KRB4LIB=
21872 12177
21873 if test "${with_kerberos}" != no; then 12178 if test "${with_kerberos}" != no; then
21874 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
21875 $as_echo_n "checking for com_err in -lcom_err... " >&6; } 12180 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21876 if test "${ac_cv_lib_com_err_com_err+set}" = set; then 12181 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
21877 $as_echo_n "(cached) " >&6 12182 $as_echo_n "(cached) " >&6
21878 else 12183 else
21879 ac_check_lib_save_LIBS=$LIBS 12184 ac_check_lib_save_LIBS=$LIBS
21880 LIBS="-lcom_err $LIBS" 12185 LIBS="-lcom_err $LIBS"
21881 cat >conftest.$ac_ext <<_ACEOF 12186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21882 /* confdefs.h. */
21883 _ACEOF
21884 cat confdefs.h >>conftest.$ac_ext
21885 cat >>conftest.$ac_ext <<_ACEOF
21886 /* end confdefs.h. */ 12187 /* end confdefs.h. */
21887 12188
21888 /* Override any GCC internal prototype to avoid an error. 12189 /* Override any GCC internal prototype to avoid an error.
21889 Use char because int might match the return type of a GCC 12190 Use char because int might match the return type of a GCC
21890 builtin and then its argument prototype would still apply. */ 12191 builtin and then its argument prototype would still apply. */
21898 return com_err (); 12199 return com_err ();
21899 ; 12200 ;
21900 return 0; 12201 return 0;
21901 } 12202 }
21902 _ACEOF 12203 _ACEOF
21903 rm -f conftest.$ac_objext conftest$ac_exeext 12204 if ac_fn_c_try_link "$LINENO"; then :
21904 if { (ac_try="$ac_link"
21905 case "(($ac_try" in
21906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21907 *) ac_try_echo=$ac_try;;
21908 esac
21909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21910 $as_echo "$ac_try_echo") >&5
21911 (eval "$ac_link") 2>conftest.er1
21912 ac_status=$?
21913 grep -v '^ *+' conftest.er1 >conftest.err
21914 rm -f conftest.er1
21915 cat conftest.err >&5
21916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21917 (exit $ac_status); } && {
21918 test -z "$ac_c_werror_flag" ||
21919 test ! -s conftest.err
21920 } && test -s conftest$ac_exeext && {
21921 test "$cross_compiling" = yes ||
21922 $as_test_x conftest$ac_exeext
21923 }; then
21924 ac_cv_lib_com_err_com_err=yes 12205 ac_cv_lib_com_err_com_err=yes
21925 else 12206 else
21926 $as_echo "$as_me: failed program was:" >&5 12207 ac_cv_lib_com_err_com_err=no
21927 sed 's/^/| /' conftest.$ac_ext >&5 12208 fi
21928 12209 rm -f core conftest.err conftest.$ac_objext \
21929 ac_cv_lib_com_err_com_err=no 12210 conftest$ac_exeext conftest.$ac_ext
21930 fi
21931
21932 rm -rf conftest.dSYM
21933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21934 conftest$ac_exeext conftest.$ac_ext
21935 LIBS=$ac_check_lib_save_LIBS 12211 LIBS=$ac_check_lib_save_LIBS
21936 fi 12212 fi
21937 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
21938 $as_echo "$ac_cv_lib_com_err_com_err" >&6; } 12214 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21939 if test $ac_cv_lib_com_err_com_err = yes; then 12215 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
21940 have_com_err=yes 12216 have_com_err=yes
21941 else 12217 else
21942 have_com_err=no 12218 have_com_err=no
21943 fi 12219 fi
21944 12220
21945 if test $have_com_err = yes; then 12221 if test $have_com_err = yes; then
21946 COM_ERRLIB=-lcom_err 12222 COM_ERRLIB=-lcom_err
21947 LIBS="$COM_ERRLIB $LIBS" 12223 LIBS="$COM_ERRLIB $LIBS"
21948 12224
21949 cat >>confdefs.h <<\_ACEOF 12225 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
21950 #define HAVE_LIBCOM_ERR 1
21951 _ACEOF
21952 12226
21953 fi 12227 fi
21954 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 12228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21955 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } 12229 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
21956 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then 12230 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
21957 $as_echo_n "(cached) " >&6 12231 $as_echo_n "(cached) " >&6
21958 else 12232 else
21959 ac_check_lib_save_LIBS=$LIBS 12233 ac_check_lib_save_LIBS=$LIBS
21960 LIBS="-lcrypto $LIBS" 12234 LIBS="-lcrypto $LIBS"
21961 cat >conftest.$ac_ext <<_ACEOF 12235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21962 /* confdefs.h. */
21963 _ACEOF
21964 cat confdefs.h >>conftest.$ac_ext
21965 cat >>conftest.$ac_ext <<_ACEOF
21966 /* end confdefs.h. */ 12236 /* end confdefs.h. */
21967 12237
21968 /* Override any GCC internal prototype to avoid an error. 12238 /* Override any GCC internal prototype to avoid an error.
21969 Use char because int might match the return type of a GCC 12239 Use char because int might match the return type of a GCC
21970 builtin and then its argument prototype would still apply. */ 12240 builtin and then its argument prototype would still apply. */
21978 return mit_des_cbc_encrypt (); 12248 return mit_des_cbc_encrypt ();
21979 ; 12249 ;
21980 return 0; 12250 return 0;
21981 } 12251 }
21982 _ACEOF 12252 _ACEOF
21983 rm -f conftest.$ac_objext conftest$ac_exeext 12253 if ac_fn_c_try_link "$LINENO"; then :
21984 if { (ac_try="$ac_link"
21985 case "(($ac_try" in
21986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21987 *) ac_try_echo=$ac_try;;
21988 esac
21989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21990 $as_echo "$ac_try_echo") >&5
21991 (eval "$ac_link") 2>conftest.er1
21992 ac_status=$?
21993 grep -v '^ *+' conftest.er1 >conftest.err
21994 rm -f conftest.er1
21995 cat conftest.err >&5
21996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } && {
21998 test -z "$ac_c_werror_flag" ||
21999 test ! -s conftest.err
22000 } && test -s conftest$ac_exeext && {
22001 test "$cross_compiling" = yes ||
22002 $as_test_x conftest$ac_exeext
22003 }; then
22004 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes 12254 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22005 else 12255 else
22006 $as_echo "$as_me: failed program was:" >&5 12256 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22007 sed 's/^/| /' conftest.$ac_ext >&5 12257 fi
22008 12258 rm -f core conftest.err conftest.$ac_objext \
22009 ac_cv_lib_crypto_mit_des_cbc_encrypt=no 12259 conftest$ac_exeext conftest.$ac_ext
22010 fi
22011
22012 rm -rf conftest.dSYM
22013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22014 conftest$ac_exeext conftest.$ac_ext
22015 LIBS=$ac_check_lib_save_LIBS 12260 LIBS=$ac_check_lib_save_LIBS
22016 fi 12261 fi
22017 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22018 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } 12263 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22019 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then 12264 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
22020 have_crypto=yes 12265 have_crypto=yes
22021 else 12266 else
22022 have_crypto=no 12267 have_crypto=no
22023 fi 12268 fi
22024 12269
22025 if test $have_crypto = yes; then 12270 if test $have_crypto = yes; then
22026 CRYPTOLIB=-lcrypto 12271 CRYPTOLIB=-lcrypto
22027 LIBS="$CRYPTOLIB $LIBS" 12272 LIBS="$CRYPTOLIB $LIBS"
22028 12273
22029 cat >>confdefs.h <<\_ACEOF 12274 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
22030 #define HAVE_LIBCRYPTO 1
22031 _ACEOF
22032 12275
22033 fi 12276 fi
22034 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22035 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } 12278 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22036 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then 12279 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
22037 $as_echo_n "(cached) " >&6 12280 $as_echo_n "(cached) " >&6
22038 else 12281 else
22039 ac_check_lib_save_LIBS=$LIBS 12282 ac_check_lib_save_LIBS=$LIBS
22040 LIBS="-lk5crypto $LIBS" 12283 LIBS="-lk5crypto $LIBS"
22041 cat >conftest.$ac_ext <<_ACEOF 12284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22042 /* confdefs.h. */
22043 _ACEOF
22044 cat confdefs.h >>conftest.$ac_ext
22045 cat >>conftest.$ac_ext <<_ACEOF
22046 /* end confdefs.h. */ 12285 /* end confdefs.h. */
22047 12286
22048 /* Override any GCC internal prototype to avoid an error. 12287 /* Override any GCC internal prototype to avoid an error.
22049 Use char because int might match the return type of a GCC 12288 Use char because int might match the return type of a GCC
22050 builtin and then its argument prototype would still apply. */ 12289 builtin and then its argument prototype would still apply. */
22058 return mit_des_cbc_encrypt (); 12297 return mit_des_cbc_encrypt ();
22059 ; 12298 ;
22060 return 0; 12299 return 0;
22061 } 12300 }
22062 _ACEOF 12301 _ACEOF
22063 rm -f conftest.$ac_objext conftest$ac_exeext 12302 if ac_fn_c_try_link "$LINENO"; then :
22064 if { (ac_try="$ac_link"
22065 case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22068 esac
22069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22070 $as_echo "$ac_try_echo") >&5
22071 (eval "$ac_link") 2>conftest.er1
22072 ac_status=$?
22073 grep -v '^ *+' conftest.er1 >conftest.err
22074 rm -f conftest.er1
22075 cat conftest.err >&5
22076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22077 (exit $ac_status); } && {
22078 test -z "$ac_c_werror_flag" ||
22079 test ! -s conftest.err
22080 } && test -s conftest$ac_exeext && {
22081 test "$cross_compiling" = yes ||
22082 $as_test_x conftest$ac_exeext
22083 }; then
22084 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes 12303 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22085 else 12304 else
22086 $as_echo "$as_me: failed program was:" >&5 12305 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22087 sed 's/^/| /' conftest.$ac_ext >&5 12306 fi
22088 12307 rm -f core conftest.err conftest.$ac_objext \
22089 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no 12308 conftest$ac_exeext conftest.$ac_ext
22090 fi
22091
22092 rm -rf conftest.dSYM
22093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22094 conftest$ac_exeext conftest.$ac_ext
22095 LIBS=$ac_check_lib_save_LIBS 12309 LIBS=$ac_check_lib_save_LIBS
22096 fi 12310 fi
22097 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22098 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } 12312 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22099 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then 12313 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
22100 have_k5crypto=yes 12314 have_k5crypto=yes
22101 else 12315 else
22102 have_k5crypto=no 12316 have_k5crypto=no
22103 fi 12317 fi
22104 12318
22105 if test $have_k5crypto = yes; then 12319 if test $have_k5crypto = yes; then
22106 CRYPTOLIB=-lk5crypto 12320 CRYPTOLIB=-lk5crypto
22107 LIBS="$CRYPTOLIB $LIBS" 12321 LIBS="$CRYPTOLIB $LIBS"
22108 12322
22109 cat >>confdefs.h <<\_ACEOF 12323 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
22110 #define HAVE_LIBK5CRYPTO 1
22111 _ACEOF
22112 12324
22113 fi 12325 fi
22114 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 12326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
22115 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } 12327 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22116 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then 12328 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
22117 $as_echo_n "(cached) " >&6 12329 $as_echo_n "(cached) " >&6
22118 else 12330 else
22119 ac_check_lib_save_LIBS=$LIBS 12331 ac_check_lib_save_LIBS=$LIBS
22120 LIBS="-lkrb5 $LIBS" 12332 LIBS="-lkrb5 $LIBS"
22121 cat >conftest.$ac_ext <<_ACEOF 12333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22122 /* confdefs.h. */
22123 _ACEOF
22124 cat confdefs.h >>conftest.$ac_ext
22125 cat >>conftest.$ac_ext <<_ACEOF
22126 /* end confdefs.h. */ 12334 /* end confdefs.h. */
22127 12335
22128 /* Override any GCC internal prototype to avoid an error. 12336 /* Override any GCC internal prototype to avoid an error.
22129 Use char because int might match the return type of a GCC 12337 Use char because int might match the return type of a GCC
22130 builtin and then its argument prototype would still apply. */ 12338 builtin and then its argument prototype would still apply. */
22138 return krb5_init_context (); 12346 return krb5_init_context ();
22139 ; 12347 ;
22140 return 0; 12348 return 0;
22141 } 12349 }
22142 _ACEOF 12350 _ACEOF
22143 rm -f conftest.$ac_objext conftest$ac_exeext 12351 if ac_fn_c_try_link "$LINENO"; then :
22144 if { (ac_try="$ac_link"
22145 case "(($ac_try" in
22146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22147 *) ac_try_echo=$ac_try;;
22148 esac
22149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22150 $as_echo "$ac_try_echo") >&5
22151 (eval "$ac_link") 2>conftest.er1
22152 ac_status=$?
22153 grep -v '^ *+' conftest.er1 >conftest.err
22154 rm -f conftest.er1
22155 cat conftest.err >&5
22156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22157 (exit $ac_status); } && {
22158 test -z "$ac_c_werror_flag" ||
22159 test ! -s conftest.err
22160 } && test -s conftest$ac_exeext && {
22161 test "$cross_compiling" = yes ||
22162 $as_test_x conftest$ac_exeext
22163 }; then
22164 ac_cv_lib_krb5_krb5_init_context=yes 12352 ac_cv_lib_krb5_krb5_init_context=yes
22165 else 12353 else
22166 $as_echo "$as_me: failed program was:" >&5 12354 ac_cv_lib_krb5_krb5_init_context=no
22167 sed 's/^/| /' conftest.$ac_ext >&5 12355 fi
22168 12356 rm -f core conftest.err conftest.$ac_objext \
22169 ac_cv_lib_krb5_krb5_init_context=no 12357 conftest$ac_exeext conftest.$ac_ext
22170 fi
22171
22172 rm -rf conftest.dSYM
22173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22174 conftest$ac_exeext conftest.$ac_ext
22175 LIBS=$ac_check_lib_save_LIBS 12358 LIBS=$ac_check_lib_save_LIBS
22176 fi 12359 fi
22177 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22178 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } 12361 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22179 if test $ac_cv_lib_krb5_krb5_init_context = yes; then 12362 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
22180 have_krb5=yes 12363 have_krb5=yes
22181 else 12364 else
22182 have_krb5=no 12365 have_krb5=no
22183 fi 12366 fi
22184 12367
22185 if test $have_krb5=yes; then 12368 if test $have_krb5=yes; then
22186 KRB5LIB=-lkrb5 12369 KRB5LIB=-lkrb5
22187 LIBS="$KRB5LIB $LIBS" 12370 LIBS="$KRB5LIB $LIBS"
22188 12371
22189 cat >>confdefs.h <<\_ACEOF 12372 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
22190 #define HAVE_LIBKRB5 1
22191 _ACEOF
22192 12373
22193 fi 12374 fi
22194 if test "${with_kerberos5}" = no; then 12375 if test "${with_kerberos5}" = no; then
22195 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
22196 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } 12377 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22197 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then 12378 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
22198 $as_echo_n "(cached) " >&6 12379 $as_echo_n "(cached) " >&6
22199 else 12380 else
22200 ac_check_lib_save_LIBS=$LIBS 12381 ac_check_lib_save_LIBS=$LIBS
22201 LIBS="-ldes425 $LIBS" 12382 LIBS="-ldes425 $LIBS"
22202 cat >conftest.$ac_ext <<_ACEOF 12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22203 /* confdefs.h. */
22204 _ACEOF
22205 cat confdefs.h >>conftest.$ac_ext
22206 cat >>conftest.$ac_ext <<_ACEOF
22207 /* end confdefs.h. */ 12384 /* end confdefs.h. */
22208 12385
22209 /* Override any GCC internal prototype to avoid an error. 12386 /* Override any GCC internal prototype to avoid an error.
22210 Use char because int might match the return type of a GCC 12387 Use char because int might match the return type of a GCC
22211 builtin and then its argument prototype would still apply. */ 12388 builtin and then its argument prototype would still apply. */
22219 return des_cbc_encrypt (); 12396 return des_cbc_encrypt ();
22220 ; 12397 ;
22221 return 0; 12398 return 0;
22222 } 12399 }
22223 _ACEOF 12400 _ACEOF
22224 rm -f conftest.$ac_objext conftest$ac_exeext 12401 if ac_fn_c_try_link "$LINENO"; then :
22225 if { (ac_try="$ac_link"
22226 case "(($ac_try" in
22227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22228 *) ac_try_echo=$ac_try;;
22229 esac
22230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22231 $as_echo "$ac_try_echo") >&5
22232 (eval "$ac_link") 2>conftest.er1
22233 ac_status=$?
22234 grep -v '^ *+' conftest.er1 >conftest.err
22235 rm -f conftest.er1
22236 cat conftest.err >&5
22237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest$ac_exeext && {
22242 test "$cross_compiling" = yes ||
22243 $as_test_x conftest$ac_exeext
22244 }; then
22245 ac_cv_lib_des425_des_cbc_encrypt=yes 12402 ac_cv_lib_des425_des_cbc_encrypt=yes
22246 else 12403 else
22247 $as_echo "$as_me: failed program was:" >&5 12404 ac_cv_lib_des425_des_cbc_encrypt=no
22248 sed 's/^/| /' conftest.$ac_ext >&5 12405 fi
22249 12406 rm -f core conftest.err conftest.$ac_objext \
22250 ac_cv_lib_des425_des_cbc_encrypt=no 12407 conftest$ac_exeext conftest.$ac_ext
22251 fi
22252
22253 rm -rf conftest.dSYM
22254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22255 conftest$ac_exeext conftest.$ac_ext
22256 LIBS=$ac_check_lib_save_LIBS 12408 LIBS=$ac_check_lib_save_LIBS
22257 fi 12409 fi
22258 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22259 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } 12411 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22260 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then 12412 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
22261 have_des425=yes 12413 have_des425=yes
22262 else 12414 else
22263 have_des425=no 12415 have_des425=no
22264 fi 12416 fi
22265 12417
22266 if test $have_des425 = yes; then 12418 if test $have_des425 = yes; then
22267 DESLIB=-ldes425 12419 DESLIB=-ldes425
22268 LIBS="$DESLIB $LIBS" 12420 LIBS="$DESLIB $LIBS"
22269 12421
22270 cat >>confdefs.h <<\_ACEOF 12422 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
22271 #define HAVE_LIBDES425 1
22272 _ACEOF
22273 12423
22274 else 12424 else
22275 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 12425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
22276 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 12426 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22277 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then 12427 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
22278 $as_echo_n "(cached) " >&6 12428 $as_echo_n "(cached) " >&6
22279 else 12429 else
22280 ac_check_lib_save_LIBS=$LIBS 12430 ac_check_lib_save_LIBS=$LIBS
22281 LIBS="-ldes $LIBS" 12431 LIBS="-ldes $LIBS"
22282 cat >conftest.$ac_ext <<_ACEOF 12432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22283 /* confdefs.h. */
22284 _ACEOF
22285 cat confdefs.h >>conftest.$ac_ext
22286 cat >>conftest.$ac_ext <<_ACEOF
22287 /* end confdefs.h. */ 12433 /* end confdefs.h. */
22288 12434
22289 /* Override any GCC internal prototype to avoid an error. 12435 /* Override any GCC internal prototype to avoid an error.
22290 Use char because int might match the return type of a GCC 12436 Use char because int might match the return type of a GCC
22291 builtin and then its argument prototype would still apply. */ 12437 builtin and then its argument prototype would still apply. */
22299 return des_cbc_encrypt (); 12445 return des_cbc_encrypt ();
22300 ; 12446 ;
22301 return 0; 12447 return 0;
22302 } 12448 }
22303 _ACEOF 12449 _ACEOF
22304 rm -f conftest.$ac_objext conftest$ac_exeext 12450 if ac_fn_c_try_link "$LINENO"; then :
22305 if { (ac_try="$ac_link"
22306 case "(($ac_try" in
22307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22308 *) ac_try_echo=$ac_try;;
22309 esac
22310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22311 $as_echo "$ac_try_echo") >&5
22312 (eval "$ac_link") 2>conftest.er1
22313 ac_status=$?
22314 grep -v '^ *+' conftest.er1 >conftest.err
22315 rm -f conftest.er1
22316 cat conftest.err >&5
22317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22318 (exit $ac_status); } && {
22319 test -z "$ac_c_werror_flag" ||
22320 test ! -s conftest.err
22321 } && test -s conftest$ac_exeext && {
22322 test "$cross_compiling" = yes ||
22323 $as_test_x conftest$ac_exeext
22324 }; then
22325 ac_cv_lib_des_des_cbc_encrypt=yes 12451 ac_cv_lib_des_des_cbc_encrypt=yes
22326 else 12452 else
22327 $as_echo "$as_me: failed program was:" >&5 12453 ac_cv_lib_des_des_cbc_encrypt=no
22328 sed 's/^/| /' conftest.$ac_ext >&5 12454 fi
22329 12455 rm -f core conftest.err conftest.$ac_objext \
22330 ac_cv_lib_des_des_cbc_encrypt=no 12456 conftest$ac_exeext conftest.$ac_ext
22331 fi
22332
22333 rm -rf conftest.dSYM
22334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22335 conftest$ac_exeext conftest.$ac_ext
22336 LIBS=$ac_check_lib_save_LIBS 12457 LIBS=$ac_check_lib_save_LIBS
22337 fi 12458 fi
22338 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 12459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22339 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 12460 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22340 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then 12461 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
22341 have_des=yes 12462 have_des=yes
22342 else 12463 else
22343 have_des=no 12464 have_des=no
22344 fi 12465 fi
22345 12466
22346 if test $have_des = yes; then 12467 if test $have_des = yes; then
22347 DESLIB=-ldes 12468 DESLIB=-ldes
22348 LIBS="$DESLIB $LIBS" 12469 LIBS="$DESLIB $LIBS"
22349 12470
22350 cat >>confdefs.h <<\_ACEOF 12471 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
22351 #define HAVE_LIBDES 1
22352 _ACEOF
22353 12472
22354 fi 12473 fi
22355 fi 12474 fi
22356 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
22357 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } 12476 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22358 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then 12477 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
22359 $as_echo_n "(cached) " >&6 12478 $as_echo_n "(cached) " >&6
22360 else 12479 else
22361 ac_check_lib_save_LIBS=$LIBS 12480 ac_check_lib_save_LIBS=$LIBS
22362 LIBS="-lkrb4 $LIBS" 12481 LIBS="-lkrb4 $LIBS"
22363 cat >conftest.$ac_ext <<_ACEOF 12482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22364 /* confdefs.h. */
22365 _ACEOF
22366 cat confdefs.h >>conftest.$ac_ext
22367 cat >>conftest.$ac_ext <<_ACEOF
22368 /* end confdefs.h. */ 12483 /* end confdefs.h. */
22369 12484
22370 /* Override any GCC internal prototype to avoid an error. 12485 /* Override any GCC internal prototype to avoid an error.
22371 Use char because int might match the return type of a GCC 12486 Use char because int might match the return type of a GCC
22372 builtin and then its argument prototype would still apply. */ 12487 builtin and then its argument prototype would still apply. */
22380 return krb_get_cred (); 12495 return krb_get_cred ();
22381 ; 12496 ;
22382 return 0; 12497 return 0;
22383 } 12498 }
22384 _ACEOF 12499 _ACEOF
22385 rm -f conftest.$ac_objext conftest$ac_exeext 12500 if ac_fn_c_try_link "$LINENO"; then :
22386 if { (ac_try="$ac_link"
22387 case "(($ac_try" in
22388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22389 *) ac_try_echo=$ac_try;;
22390 esac
22391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22392 $as_echo "$ac_try_echo") >&5
22393 (eval "$ac_link") 2>conftest.er1
22394 ac_status=$?
22395 grep -v '^ *+' conftest.er1 >conftest.err
22396 rm -f conftest.er1
22397 cat conftest.err >&5
22398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22399 (exit $ac_status); } && {
22400 test -z "$ac_c_werror_flag" ||
22401 test ! -s conftest.err
22402 } && test -s conftest$ac_exeext && {
22403 test "$cross_compiling" = yes ||
22404 $as_test_x conftest$ac_exeext
22405 }; then
22406 ac_cv_lib_krb4_krb_get_cred=yes 12501 ac_cv_lib_krb4_krb_get_cred=yes
22407 else 12502 else
22408 $as_echo "$as_me: failed program was:" >&5 12503 ac_cv_lib_krb4_krb_get_cred=no
22409 sed 's/^/| /' conftest.$ac_ext >&5 12504 fi
22410 12505 rm -f core conftest.err conftest.$ac_objext \
22411 ac_cv_lib_krb4_krb_get_cred=no 12506 conftest$ac_exeext conftest.$ac_ext
22412 fi
22413
22414 rm -rf conftest.dSYM
22415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22416 conftest$ac_exeext conftest.$ac_ext
22417 LIBS=$ac_check_lib_save_LIBS 12507 LIBS=$ac_check_lib_save_LIBS
22418 fi 12508 fi
22419 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 12509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22420 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } 12510 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22421 if test $ac_cv_lib_krb4_krb_get_cred = yes; then 12511 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
22422 have_krb4=yes 12512 have_krb4=yes
22423 else 12513 else
22424 have_krb4=no 12514 have_krb4=no
22425 fi 12515 fi
22426 12516
22427 if test $have_krb4 = yes; then 12517 if test $have_krb4 = yes; then
22428 KRB4LIB=-lkrb4 12518 KRB4LIB=-lkrb4
22429 LIBS="$KRB4LIB $LIBS" 12519 LIBS="$KRB4LIB $LIBS"
22430 12520
22431 cat >>confdefs.h <<\_ACEOF 12521 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
22432 #define HAVE_LIBKRB4 1
22433 _ACEOF
22434 12522
22435 else 12523 else
22436 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 12524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
22437 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } 12525 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22438 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then 12526 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
22439 $as_echo_n "(cached) " >&6 12527 $as_echo_n "(cached) " >&6
22440 else 12528 else
22441 ac_check_lib_save_LIBS=$LIBS 12529 ac_check_lib_save_LIBS=$LIBS
22442 LIBS="-lkrb $LIBS" 12530 LIBS="-lkrb $LIBS"
22443 cat >conftest.$ac_ext <<_ACEOF 12531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22444 /* confdefs.h. */
22445 _ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h. */ 12532 /* end confdefs.h. */
22449 12533
22450 /* Override any GCC internal prototype to avoid an error. 12534 /* Override any GCC internal prototype to avoid an error.
22451 Use char because int might match the return type of a GCC 12535 Use char because int might match the return type of a GCC
22452 builtin and then its argument prototype would still apply. */ 12536 builtin and then its argument prototype would still apply. */
22460 return krb_get_cred (); 12544 return krb_get_cred ();
22461 ; 12545 ;
22462 return 0; 12546 return 0;
22463 } 12547 }
22464 _ACEOF 12548 _ACEOF
22465 rm -f conftest.$ac_objext conftest$ac_exeext 12549 if ac_fn_c_try_link "$LINENO"; then :
22466 if { (ac_try="$ac_link"
22467 case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22470 esac
22471 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22472 $as_echo "$ac_try_echo") >&5
22473 (eval "$ac_link") 2>conftest.er1
22474 ac_status=$?
22475 grep -v '^ *+' conftest.er1 >conftest.err
22476 rm -f conftest.er1
22477 cat conftest.err >&5
22478 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22479 (exit $ac_status); } && {
22480 test -z "$ac_c_werror_flag" ||
22481 test ! -s conftest.err
22482 } && test -s conftest$ac_exeext && {
22483 test "$cross_compiling" = yes ||
22484 $as_test_x conftest$ac_exeext
22485 }; then
22486 ac_cv_lib_krb_krb_get_cred=yes 12550 ac_cv_lib_krb_krb_get_cred=yes
22487 else 12551 else
22488 $as_echo "$as_me: failed program was:" >&5 12552 ac_cv_lib_krb_krb_get_cred=no
22489 sed 's/^/| /' conftest.$ac_ext >&5 12553 fi
22490 12554 rm -f core conftest.err conftest.$ac_objext \
22491 ac_cv_lib_krb_krb_get_cred=no 12555 conftest$ac_exeext conftest.$ac_ext
22492 fi
22493
22494 rm -rf conftest.dSYM
22495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22496 conftest$ac_exeext conftest.$ac_ext
22497 LIBS=$ac_check_lib_save_LIBS 12556 LIBS=$ac_check_lib_save_LIBS
22498 fi 12557 fi
22499 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 12558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
22500 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } 12559 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22501 if test $ac_cv_lib_krb_krb_get_cred = yes; then 12560 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
22502 have_krb=yes 12561 have_krb=yes
22503 else 12562 else
22504 have_krb=no 12563 have_krb=no
22505 fi 12564 fi
22506 12565
22507 if test $have_krb = yes; then 12566 if test $have_krb = yes; then
22508 KRB4LIB=-lkrb 12567 KRB4LIB=-lkrb
22509 LIBS="$KRB4LIB $LIBS" 12568 LIBS="$KRB4LIB $LIBS"
22510 12569
22511 cat >>confdefs.h <<\_ACEOF 12570 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
22512 #define HAVE_LIBKRB 1
22513 _ACEOF
22514 12571
22515 fi 12572 fi
22516 fi 12573 fi
22517 fi 12574 fi
22518 12575
22519 if test "${with_kerberos5}" != no; then 12576 if test "${with_kerberos5}" != no; then
22520 12577 for ac_header in krb5.h
22521 for ac_header in krb5.h 12578 do :
22522 do 12579 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
22523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12580 if test "x$ac_cv_header_krb5_h" = x""yes; then :
22524 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22525 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22526 $as_echo_n "checking for $ac_header... " >&6; }
22527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22528 $as_echo_n "(cached) " >&6
22529 fi
22530 ac_res=`eval 'as_val=${'$as_ac_Header'}
22531 $as_echo "$as_val"'`
22532 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22533 $as_echo "$ac_res" >&6; }
22534 else
22535 # Is the header compilable?
22536 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22537 $as_echo_n "checking $ac_header usability... " >&6; }
22538 cat >conftest.$ac_ext <<_ACEOF
22539 /* confdefs.h. */
22540 _ACEOF
22541 cat confdefs.h >>conftest.$ac_ext
22542 cat >>conftest.$ac_ext <<_ACEOF
22543 /* end confdefs.h. */
22544 $ac_includes_default
22545 #include <$ac_header>
22546 _ACEOF
22547 rm -f conftest.$ac_objext
22548 if { (ac_try="$ac_compile"
22549 case "(($ac_try" in
22550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22551 *) ac_try_echo=$ac_try;;
22552 esac
22553 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22554 $as_echo "$ac_try_echo") >&5
22555 (eval "$ac_compile") 2>conftest.er1
22556 ac_status=$?
22557 grep -v '^ *+' conftest.er1 >conftest.err
22558 rm -f conftest.er1
22559 cat conftest.err >&5
22560 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22561 (exit $ac_status); } && {
22562 test -z "$ac_c_werror_flag" ||
22563 test ! -s conftest.err
22564 } && test -s conftest.$ac_objext; then
22565 ac_header_compiler=yes
22566 else
22567 $as_echo "$as_me: failed program was:" >&5
22568 sed 's/^/| /' conftest.$ac_ext >&5
22569
22570 ac_header_compiler=no
22571 fi
22572
22573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22574 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22575 $as_echo "$ac_header_compiler" >&6; }
22576
22577 # Is the header present?
22578 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22579 $as_echo_n "checking $ac_header presence... " >&6; }
22580 cat >conftest.$ac_ext <<_ACEOF
22581 /* confdefs.h. */
22582 _ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22586 #include <$ac_header>
22587 _ACEOF
22588 if { (ac_try="$ac_cpp conftest.$ac_ext"
22589 case "(($ac_try" in
22590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591 *) ac_try_echo=$ac_try;;
22592 esac
22593 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22594 $as_echo "$ac_try_echo") >&5
22595 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22596 ac_status=$?
22597 grep -v '^ *+' conftest.er1 >conftest.err
22598 rm -f conftest.er1
22599 cat conftest.err >&5
22600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22601 (exit $ac_status); } >/dev/null && {
22602 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22603 test ! -s conftest.err
22604 }; then
22605 ac_header_preproc=yes
22606 else
22607 $as_echo "$as_me: failed program was:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22609
22610 ac_header_preproc=no
22611 fi
22612
22613 rm -f conftest.err conftest.$ac_ext
22614 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22615 $as_echo "$ac_header_preproc" >&6; }
22616
22617 # So? What about this header?
22618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22619 yes:no: )
22620 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22621 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22622 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22623 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22624 ac_header_preproc=yes
22625 ;;
22626 no:yes:* )
22627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22628 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22630 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22632 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22633 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22634 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22635 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22636 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22637 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22638 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22639
22640 ;;
22641 esac
22642 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22643 $as_echo_n "checking for $ac_header... " >&6; }
22644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22645 $as_echo_n "(cached) " >&6
22646 else
22647 eval "$as_ac_Header=\$ac_header_preproc"
22648 fi
22649 ac_res=`eval 'as_val=${'$as_ac_Header'}
22650 $as_echo "$as_val"'`
22651 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22652 $as_echo "$ac_res" >&6; }
22653
22654 fi
22655 if test `eval 'as_val=${'$as_ac_Header'}
22656 $as_echo "$as_val"'` = yes; then
22657 cat >>confdefs.h <<_ACEOF 12581 cat >>confdefs.h <<_ACEOF
22658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12582 #define HAVE_KRB5_H 1
22659 _ACEOF 12583 _ACEOF
22660 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5 12584 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
22661 $as_echo_n "checking for krb5_error.text... " >&6; } 12585 "
22662 if test "${ac_cv_member_krb5_error_text+set}" = set; then 12586 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
22663 $as_echo_n "(cached) " >&6
22664 else
22665 cat >conftest.$ac_ext <<_ACEOF
22666 /* confdefs.h. */
22667 _ACEOF
22668 cat confdefs.h >>conftest.$ac_ext
22669 cat >>conftest.$ac_ext <<_ACEOF
22670 /* end confdefs.h. */
22671 #include <krb5.h>
22672
22673 int
22674 main ()
22675 {
22676 static krb5_error ac_aggr;
22677 if (ac_aggr.text)
22678 return 0;
22679 ;
22680 return 0;
22681 }
22682 _ACEOF
22683 rm -f conftest.$ac_objext
22684 if { (ac_try="$ac_compile"
22685 case "(($ac_try" in
22686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22687 *) ac_try_echo=$ac_try;;
22688 esac
22689 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22690 $as_echo "$ac_try_echo") >&5
22691 (eval "$ac_compile") 2>conftest.er1
22692 ac_status=$?
22693 grep -v '^ *+' conftest.er1 >conftest.err
22694 rm -f conftest.er1
22695 cat conftest.err >&5
22696 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22697 (exit $ac_status); } && {
22698 test -z "$ac_c_werror_flag" ||
22699 test ! -s conftest.err
22700 } && test -s conftest.$ac_objext; then
22701 ac_cv_member_krb5_error_text=yes
22702 else
22703 $as_echo "$as_me: failed program was:" >&5
22704 sed 's/^/| /' conftest.$ac_ext >&5
22705
22706 cat >conftest.$ac_ext <<_ACEOF
22707 /* confdefs.h. */
22708 _ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h. */
22712 #include <krb5.h>
22713
22714 int
22715 main ()
22716 {
22717 static krb5_error ac_aggr;
22718 if (sizeof ac_aggr.text)
22719 return 0;
22720 ;
22721 return 0;
22722 }
22723 _ACEOF
22724 rm -f conftest.$ac_objext
22725 if { (ac_try="$ac_compile"
22726 case "(($ac_try" in
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22729 esac
22730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22731 $as_echo "$ac_try_echo") >&5
22732 (eval "$ac_compile") 2>conftest.er1
22733 ac_status=$?
22734 grep -v '^ *+' conftest.er1 >conftest.err
22735 rm -f conftest.er1
22736 cat conftest.err >&5
22737 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22738 (exit $ac_status); } && {
22739 test -z "$ac_c_werror_flag" ||
22740 test ! -s conftest.err
22741 } && test -s conftest.$ac_objext; then
22742 ac_cv_member_krb5_error_text=yes
22743 else
22744 $as_echo "$as_me: failed program was:" >&5
22745 sed 's/^/| /' conftest.$ac_ext >&5
22746
22747 ac_cv_member_krb5_error_text=no
22748 fi
22749
22750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22751 fi
22752
22753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22754 fi
22755 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22756 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22757 if test $ac_cv_member_krb5_error_text = yes; then
22758 12587
22759 cat >>confdefs.h <<_ACEOF 12588 cat >>confdefs.h <<_ACEOF
22760 #define HAVE_KRB5_ERROR_TEXT 1 12589 #define HAVE_KRB5_ERROR_TEXT 1
22761 _ACEOF 12590 _ACEOF
22762 12591
22763 12592
22764 fi 12593 fi
22765 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5 12594 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
22766 $as_echo_n "checking for krb5_error.e_text... " >&6; } 12595 "
22767 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then 12596 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
22768 $as_echo_n "(cached) " >&6
22769 else
22770 cat >conftest.$ac_ext <<_ACEOF
22771 /* confdefs.h. */
22772 _ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h. */
22776 #include <krb5.h>
22777
22778 int
22779 main ()
22780 {
22781 static krb5_error ac_aggr;
22782 if (ac_aggr.e_text)
22783 return 0;
22784 ;
22785 return 0;
22786 }
22787 _ACEOF
22788 rm -f conftest.$ac_objext
22789 if { (ac_try="$ac_compile"
22790 case "(($ac_try" in
22791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22792 *) ac_try_echo=$ac_try;;
22793 esac
22794 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22795 $as_echo "$ac_try_echo") >&5
22796 (eval "$ac_compile") 2>conftest.er1
22797 ac_status=$?
22798 grep -v '^ *+' conftest.er1 >conftest.err
22799 rm -f conftest.er1
22800 cat conftest.err >&5
22801 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22802 (exit $ac_status); } && {
22803 test -z "$ac_c_werror_flag" ||
22804 test ! -s conftest.err
22805 } && test -s conftest.$ac_objext; then
22806 ac_cv_member_krb5_error_e_text=yes
22807 else
22808 $as_echo "$as_me: failed program was:" >&5
22809 sed 's/^/| /' conftest.$ac_ext >&5
22810
22811 cat >conftest.$ac_ext <<_ACEOF
22812 /* confdefs.h. */
22813 _ACEOF
22814 cat confdefs.h >>conftest.$ac_ext
22815 cat >>conftest.$ac_ext <<_ACEOF
22816 /* end confdefs.h. */
22817 #include <krb5.h>
22818
22819 int
22820 main ()
22821 {
22822 static krb5_error ac_aggr;
22823 if (sizeof ac_aggr.e_text)
22824 return 0;
22825 ;
22826 return 0;
22827 }
22828 _ACEOF
22829 rm -f conftest.$ac_objext
22830 if { (ac_try="$ac_compile"
22831 case "(($ac_try" in
22832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22833 *) ac_try_echo=$ac_try;;
22834 esac
22835 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22836 $as_echo "$ac_try_echo") >&5
22837 (eval "$ac_compile") 2>conftest.er1
22838 ac_status=$?
22839 grep -v '^ *+' conftest.er1 >conftest.err
22840 rm -f conftest.er1
22841 cat conftest.err >&5
22842 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22843 (exit $ac_status); } && {
22844 test -z "$ac_c_werror_flag" ||
22845 test ! -s conftest.err
22846 } && test -s conftest.$ac_objext; then
22847 ac_cv_member_krb5_error_e_text=yes
22848 else
22849 $as_echo "$as_me: failed program was:" >&5
22850 sed 's/^/| /' conftest.$ac_ext >&5
22851
22852 ac_cv_member_krb5_error_e_text=no
22853 fi
22854
22855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22856 fi
22857
22858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22859 fi
22860 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22861 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22862 if test $ac_cv_member_krb5_error_e_text = yes; then
22863 12597
22864 cat >>confdefs.h <<_ACEOF 12598 cat >>confdefs.h <<_ACEOF
22865 #define HAVE_KRB5_ERROR_E_TEXT 1 12599 #define HAVE_KRB5_ERROR_E_TEXT 1
22866 _ACEOF 12600 _ACEOF
22867 12601
22871 fi 12605 fi
22872 12606
22873 done 12607 done
22874 12608
22875 else 12609 else
22876 12610 for ac_header in des.h
22877 for ac_header in des.h 12611 do :
22878 do 12612 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
22879 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12613 if test "x$ac_cv_header_des_h" = x""yes; then :
22880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22881 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22882 $as_echo_n "checking for $ac_header... " >&6; }
22883 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22884 $as_echo_n "(cached) " >&6
22885 fi
22886 ac_res=`eval 'as_val=${'$as_ac_Header'}
22887 $as_echo "$as_val"'`
22888 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22889 $as_echo "$ac_res" >&6; }
22890 else
22891 # Is the header compilable?
22892 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22893 $as_echo_n "checking $ac_header usability... " >&6; }
22894 cat >conftest.$ac_ext <<_ACEOF
22895 /* confdefs.h. */
22896 _ACEOF
22897 cat confdefs.h >>conftest.$ac_ext
22898 cat >>conftest.$ac_ext <<_ACEOF
22899 /* end confdefs.h. */
22900 $ac_includes_default
22901 #include <$ac_header>
22902 _ACEOF
22903 rm -f conftest.$ac_objext
22904 if { (ac_try="$ac_compile"
22905 case "(($ac_try" in
22906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22907 *) ac_try_echo=$ac_try;;
22908 esac
22909 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22910 $as_echo "$ac_try_echo") >&5
22911 (eval "$ac_compile") 2>conftest.er1
22912 ac_status=$?
22913 grep -v '^ *+' conftest.er1 >conftest.err
22914 rm -f conftest.er1
22915 cat conftest.err >&5
22916 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); } && {
22918 test -z "$ac_c_werror_flag" ||
22919 test ! -s conftest.err
22920 } && test -s conftest.$ac_objext; then
22921 ac_header_compiler=yes
22922 else
22923 $as_echo "$as_me: failed program was:" >&5
22924 sed 's/^/| /' conftest.$ac_ext >&5
22925
22926 ac_header_compiler=no
22927 fi
22928
22929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22930 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22931 $as_echo "$ac_header_compiler" >&6; }
22932
22933 # Is the header present?
22934 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22935 $as_echo_n "checking $ac_header presence... " >&6; }
22936 cat >conftest.$ac_ext <<_ACEOF
22937 /* confdefs.h. */
22938 _ACEOF
22939 cat confdefs.h >>conftest.$ac_ext
22940 cat >>conftest.$ac_ext <<_ACEOF
22941 /* end confdefs.h. */
22942 #include <$ac_header>
22943 _ACEOF
22944 if { (ac_try="$ac_cpp conftest.$ac_ext"
22945 case "(($ac_try" in
22946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947 *) ac_try_echo=$ac_try;;
22948 esac
22949 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22950 $as_echo "$ac_try_echo") >&5
22951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22952 ac_status=$?
22953 grep -v '^ *+' conftest.er1 >conftest.err
22954 rm -f conftest.er1
22955 cat conftest.err >&5
22956 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22957 (exit $ac_status); } >/dev/null && {
22958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22959 test ! -s conftest.err
22960 }; then
22961 ac_header_preproc=yes
22962 else
22963 $as_echo "$as_me: failed program was:" >&5
22964 sed 's/^/| /' conftest.$ac_ext >&5
22965
22966 ac_header_preproc=no
22967 fi
22968
22969 rm -f conftest.err conftest.$ac_ext
22970 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22971 $as_echo "$ac_header_preproc" >&6; }
22972
22973 # So? What about this header?
22974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22975 yes:no: )
22976 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22977 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22978 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22979 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22980 ac_header_preproc=yes
22981 ;;
22982 no:yes:* )
22983 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22984 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22985 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22986 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22987 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22988 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22989 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22990 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22991 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22992 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22993 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22994 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22995
22996 ;;
22997 esac
22998 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22999 $as_echo_n "checking for $ac_header... " >&6; }
23000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23001 $as_echo_n "(cached) " >&6
23002 else
23003 eval "$as_ac_Header=\$ac_header_preproc"
23004 fi
23005 ac_res=`eval 'as_val=${'$as_ac_Header'}
23006 $as_echo "$as_val"'`
23007 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23008 $as_echo "$ac_res" >&6; }
23009
23010 fi
23011 if test `eval 'as_val=${'$as_ac_Header'}
23012 $as_echo "$as_val"'` = yes; then
23013 cat >>confdefs.h <<_ACEOF 12614 cat >>confdefs.h <<_ACEOF
23014 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12615 #define HAVE_DES_H 1
23015 _ACEOF 12616 _ACEOF
23016 12617
23017 else 12618 else
23018 12619 for ac_header in kerberosIV/des.h
23019 for ac_header in kerberosIV/des.h 12620 do :
23020 do 12621 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
23021 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12622 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
23022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23023 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23024 $as_echo_n "checking for $ac_header... " >&6; }
23025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23026 $as_echo_n "(cached) " >&6
23027 fi
23028 ac_res=`eval 'as_val=${'$as_ac_Header'}
23029 $as_echo "$as_val"'`
23030 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23031 $as_echo "$ac_res" >&6; }
23032 else
23033 # Is the header compilable?
23034 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23035 $as_echo_n "checking $ac_header usability... " >&6; }
23036 cat >conftest.$ac_ext <<_ACEOF
23037 /* confdefs.h. */
23038 _ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23042 $ac_includes_default
23043 #include <$ac_header>
23044 _ACEOF
23045 rm -f conftest.$ac_objext
23046 if { (ac_try="$ac_compile"
23047 case "(($ac_try" in
23048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23049 *) ac_try_echo=$ac_try;;
23050 esac
23051 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23052 $as_echo "$ac_try_echo") >&5
23053 (eval "$ac_compile") 2>conftest.er1
23054 ac_status=$?
23055 grep -v '^ *+' conftest.er1 >conftest.err
23056 rm -f conftest.er1
23057 cat conftest.err >&5
23058 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23059 (exit $ac_status); } && {
23060 test -z "$ac_c_werror_flag" ||
23061 test ! -s conftest.err
23062 } && test -s conftest.$ac_objext; then
23063 ac_header_compiler=yes
23064 else
23065 $as_echo "$as_me: failed program was:" >&5
23066 sed 's/^/| /' conftest.$ac_ext >&5
23067
23068 ac_header_compiler=no
23069 fi
23070
23071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23073 $as_echo "$ac_header_compiler" >&6; }
23074
23075 # Is the header present?
23076 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23077 $as_echo_n "checking $ac_header presence... " >&6; }
23078 cat >conftest.$ac_ext <<_ACEOF
23079 /* confdefs.h. */
23080 _ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23084 #include <$ac_header>
23085 _ACEOF
23086 if { (ac_try="$ac_cpp conftest.$ac_ext"
23087 case "(($ac_try" in
23088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089 *) ac_try_echo=$ac_try;;
23090 esac
23091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23092 $as_echo "$ac_try_echo") >&5
23093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23094 ac_status=$?
23095 grep -v '^ *+' conftest.er1 >conftest.err
23096 rm -f conftest.er1
23097 cat conftest.err >&5
23098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099 (exit $ac_status); } >/dev/null && {
23100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23101 test ! -s conftest.err
23102 }; then
23103 ac_header_preproc=yes
23104 else
23105 $as_echo "$as_me: failed program was:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23107
23108 ac_header_preproc=no
23109 fi
23110
23111 rm -f conftest.err conftest.$ac_ext
23112 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23113 $as_echo "$ac_header_preproc" >&6; }
23114
23115 # So? What about this header?
23116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23117 yes:no: )
23118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23119 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23121 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23122 ac_header_preproc=yes
23123 ;;
23124 no:yes:* )
23125 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23126 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23127 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23128 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23129 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23130 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23131 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23132 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23133 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23134 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23135 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23136 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23137
23138 ;;
23139 esac
23140 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23141 $as_echo_n "checking for $ac_header... " >&6; }
23142 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23143 $as_echo_n "(cached) " >&6
23144 else
23145 eval "$as_ac_Header=\$ac_header_preproc"
23146 fi
23147 ac_res=`eval 'as_val=${'$as_ac_Header'}
23148 $as_echo "$as_val"'`
23149 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23150 $as_echo "$ac_res" >&6; }
23151
23152 fi
23153 if test `eval 'as_val=${'$as_ac_Header'}
23154 $as_echo "$as_val"'` = yes; then
23155 cat >>confdefs.h <<_ACEOF 12623 cat >>confdefs.h <<_ACEOF
23156 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12624 #define HAVE_KERBEROSIV_DES_H 1
23157 _ACEOF 12625 _ACEOF
23158 12626
23159 else 12627 else
23160 12628 for ac_header in kerberos/des.h
23161 for ac_header in kerberos/des.h 12629 do :
23162 do 12630 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
23163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12631 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
23164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23165 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23166 $as_echo_n "checking for $ac_header... " >&6; }
23167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23168 $as_echo_n "(cached) " >&6
23169 fi
23170 ac_res=`eval 'as_val=${'$as_ac_Header'}
23171 $as_echo "$as_val"'`
23172 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23173 $as_echo "$ac_res" >&6; }
23174 else
23175 # Is the header compilable?
23176 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23177 $as_echo_n "checking $ac_header usability... " >&6; }
23178 cat >conftest.$ac_ext <<_ACEOF
23179 /* confdefs.h. */
23180 _ACEOF
23181 cat confdefs.h >>conftest.$ac_ext
23182 cat >>conftest.$ac_ext <<_ACEOF
23183 /* end confdefs.h. */
23184 $ac_includes_default
23185 #include <$ac_header>
23186 _ACEOF
23187 rm -f conftest.$ac_objext
23188 if { (ac_try="$ac_compile"
23189 case "(($ac_try" in
23190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23191 *) ac_try_echo=$ac_try;;
23192 esac
23193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23194 $as_echo "$ac_try_echo") >&5
23195 (eval "$ac_compile") 2>conftest.er1
23196 ac_status=$?
23197 grep -v '^ *+' conftest.er1 >conftest.err
23198 rm -f conftest.er1
23199 cat conftest.err >&5
23200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23201 (exit $ac_status); } && {
23202 test -z "$ac_c_werror_flag" ||
23203 test ! -s conftest.err
23204 } && test -s conftest.$ac_objext; then
23205 ac_header_compiler=yes
23206 else
23207 $as_echo "$as_me: failed program was:" >&5
23208 sed 's/^/| /' conftest.$ac_ext >&5
23209
23210 ac_header_compiler=no
23211 fi
23212
23213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23214 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23215 $as_echo "$ac_header_compiler" >&6; }
23216
23217 # Is the header present?
23218 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23219 $as_echo_n "checking $ac_header presence... " >&6; }
23220 cat >conftest.$ac_ext <<_ACEOF
23221 /* confdefs.h. */
23222 _ACEOF
23223 cat confdefs.h >>conftest.$ac_ext
23224 cat >>conftest.$ac_ext <<_ACEOF
23225 /* end confdefs.h. */
23226 #include <$ac_header>
23227 _ACEOF
23228 if { (ac_try="$ac_cpp conftest.$ac_ext"
23229 case "(($ac_try" in
23230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23231 *) ac_try_echo=$ac_try;;
23232 esac
23233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23234 $as_echo "$ac_try_echo") >&5
23235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23236 ac_status=$?
23237 grep -v '^ *+' conftest.er1 >conftest.err
23238 rm -f conftest.er1
23239 cat conftest.err >&5
23240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23241 (exit $ac_status); } >/dev/null && {
23242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23243 test ! -s conftest.err
23244 }; then
23245 ac_header_preproc=yes
23246 else
23247 $as_echo "$as_me: failed program was:" >&5
23248 sed 's/^/| /' conftest.$ac_ext >&5
23249
23250 ac_header_preproc=no
23251 fi
23252
23253 rm -f conftest.err conftest.$ac_ext
23254 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23255 $as_echo "$ac_header_preproc" >&6; }
23256
23257 # So? What about this header?
23258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23259 yes:no: )
23260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23261 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23263 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23264 ac_header_preproc=yes
23265 ;;
23266 no:yes:* )
23267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23268 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23270 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23272 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23274 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23276 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23278 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23279
23280 ;;
23281 esac
23282 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23283 $as_echo_n "checking for $ac_header... " >&6; }
23284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23285 $as_echo_n "(cached) " >&6
23286 else
23287 eval "$as_ac_Header=\$ac_header_preproc"
23288 fi
23289 ac_res=`eval 'as_val=${'$as_ac_Header'}
23290 $as_echo "$as_val"'`
23291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23292 $as_echo "$ac_res" >&6; }
23293
23294 fi
23295 if test `eval 'as_val=${'$as_ac_Header'}
23296 $as_echo "$as_val"'` = yes; then
23297 cat >>confdefs.h <<_ACEOF 12632 cat >>confdefs.h <<_ACEOF
23298 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12633 #define HAVE_KERBEROS_DES_H 1
23299 _ACEOF 12634 _ACEOF
23300 12635
23301 fi 12636 fi
23302 12637
23303 done 12638 done
23308 12643
23309 fi 12644 fi
23310 12645
23311 done 12646 done
23312 12647
23313 12648 for ac_header in krb.h
23314 for ac_header in krb.h 12649 do :
23315 do 12650 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
23316 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12651 if test "x$ac_cv_header_krb_h" = x""yes; then :
23317 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23318 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23319 $as_echo_n "checking for $ac_header... " >&6; }
23320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23321 $as_echo_n "(cached) " >&6
23322 fi
23323 ac_res=`eval 'as_val=${'$as_ac_Header'}
23324 $as_echo "$as_val"'`
23325 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23326 $as_echo "$ac_res" >&6; }
23327 else
23328 # Is the header compilable?
23329 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23330 $as_echo_n "checking $ac_header usability... " >&6; }
23331 cat >conftest.$ac_ext <<_ACEOF
23332 /* confdefs.h. */
23333 _ACEOF
23334 cat confdefs.h >>conftest.$ac_ext
23335 cat >>conftest.$ac_ext <<_ACEOF
23336 /* end confdefs.h. */
23337 $ac_includes_default
23338 #include <$ac_header>
23339 _ACEOF
23340 rm -f conftest.$ac_objext
23341 if { (ac_try="$ac_compile"
23342 case "(($ac_try" in
23343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23344 *) ac_try_echo=$ac_try;;
23345 esac
23346 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23347 $as_echo "$ac_try_echo") >&5
23348 (eval "$ac_compile") 2>conftest.er1
23349 ac_status=$?
23350 grep -v '^ *+' conftest.er1 >conftest.err
23351 rm -f conftest.er1
23352 cat conftest.err >&5
23353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23354 (exit $ac_status); } && {
23355 test -z "$ac_c_werror_flag" ||
23356 test ! -s conftest.err
23357 } && test -s conftest.$ac_objext; then
23358 ac_header_compiler=yes
23359 else
23360 $as_echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23362
23363 ac_header_compiler=no
23364 fi
23365
23366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23367 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23368 $as_echo "$ac_header_compiler" >&6; }
23369
23370 # Is the header present?
23371 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23372 $as_echo_n "checking $ac_header presence... " >&6; }
23373 cat >conftest.$ac_ext <<_ACEOF
23374 /* confdefs.h. */
23375 _ACEOF
23376 cat confdefs.h >>conftest.$ac_ext
23377 cat >>conftest.$ac_ext <<_ACEOF
23378 /* end confdefs.h. */
23379 #include <$ac_header>
23380 _ACEOF
23381 if { (ac_try="$ac_cpp conftest.$ac_ext"
23382 case "(($ac_try" in
23383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23384 *) ac_try_echo=$ac_try;;
23385 esac
23386 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23387 $as_echo "$ac_try_echo") >&5
23388 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23389 ac_status=$?
23390 grep -v '^ *+' conftest.er1 >conftest.err
23391 rm -f conftest.er1
23392 cat conftest.err >&5
23393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23394 (exit $ac_status); } >/dev/null && {
23395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23396 test ! -s conftest.err
23397 }; then
23398 ac_header_preproc=yes
23399 else
23400 $as_echo "$as_me: failed program was:" >&5
23401 sed 's/^/| /' conftest.$ac_ext >&5
23402
23403 ac_header_preproc=no
23404 fi
23405
23406 rm -f conftest.err conftest.$ac_ext
23407 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23408 $as_echo "$ac_header_preproc" >&6; }
23409
23410 # So? What about this header?
23411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23412 yes:no: )
23413 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23414 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23415 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23416 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23417 ac_header_preproc=yes
23418 ;;
23419 no:yes:* )
23420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23421 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23423 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23425 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23426 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23427 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23428 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23429 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23430 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23431 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23432
23433 ;;
23434 esac
23435 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23436 $as_echo_n "checking for $ac_header... " >&6; }
23437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23438 $as_echo_n "(cached) " >&6
23439 else
23440 eval "$as_ac_Header=\$ac_header_preproc"
23441 fi
23442 ac_res=`eval 'as_val=${'$as_ac_Header'}
23443 $as_echo "$as_val"'`
23444 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23445 $as_echo "$ac_res" >&6; }
23446
23447 fi
23448 if test `eval 'as_val=${'$as_ac_Header'}
23449 $as_echo "$as_val"'` = yes; then
23450 cat >>confdefs.h <<_ACEOF 12652 cat >>confdefs.h <<_ACEOF
23451 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12653 #define HAVE_KRB_H 1
23452 _ACEOF 12654 _ACEOF
23453 12655
23454 else 12656 else
23455 12657 for ac_header in kerberosIV/krb.h
23456 for ac_header in kerberosIV/krb.h 12658 do :
23457 do 12659 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
23458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12660 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
23459 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23460 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23461 $as_echo_n "checking for $ac_header... " >&6; }
23462 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23463 $as_echo_n "(cached) " >&6
23464 fi
23465 ac_res=`eval 'as_val=${'$as_ac_Header'}
23466 $as_echo "$as_val"'`
23467 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23468 $as_echo "$ac_res" >&6; }
23469 else
23470 # Is the header compilable?
23471 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23472 $as_echo_n "checking $ac_header usability... " >&6; }
23473 cat >conftest.$ac_ext <<_ACEOF
23474 /* confdefs.h. */
23475 _ACEOF
23476 cat confdefs.h >>conftest.$ac_ext
23477 cat >>conftest.$ac_ext <<_ACEOF
23478 /* end confdefs.h. */
23479 $ac_includes_default
23480 #include <$ac_header>
23481 _ACEOF
23482 rm -f conftest.$ac_objext
23483 if { (ac_try="$ac_compile"
23484 case "(($ac_try" in
23485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23486 *) ac_try_echo=$ac_try;;
23487 esac
23488 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23489 $as_echo "$ac_try_echo") >&5
23490 (eval "$ac_compile") 2>conftest.er1
23491 ac_status=$?
23492 grep -v '^ *+' conftest.er1 >conftest.err
23493 rm -f conftest.er1
23494 cat conftest.err >&5
23495 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23496 (exit $ac_status); } && {
23497 test -z "$ac_c_werror_flag" ||
23498 test ! -s conftest.err
23499 } && test -s conftest.$ac_objext; then
23500 ac_header_compiler=yes
23501 else
23502 $as_echo "$as_me: failed program was:" >&5
23503 sed 's/^/| /' conftest.$ac_ext >&5
23504
23505 ac_header_compiler=no
23506 fi
23507
23508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23509 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23510 $as_echo "$ac_header_compiler" >&6; }
23511
23512 # Is the header present?
23513 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23514 $as_echo_n "checking $ac_header presence... " >&6; }
23515 cat >conftest.$ac_ext <<_ACEOF
23516 /* confdefs.h. */
23517 _ACEOF
23518 cat confdefs.h >>conftest.$ac_ext
23519 cat >>conftest.$ac_ext <<_ACEOF
23520 /* end confdefs.h. */
23521 #include <$ac_header>
23522 _ACEOF
23523 if { (ac_try="$ac_cpp conftest.$ac_ext"
23524 case "(($ac_try" in
23525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23526 *) ac_try_echo=$ac_try;;
23527 esac
23528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23529 $as_echo "$ac_try_echo") >&5
23530 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23531 ac_status=$?
23532 grep -v '^ *+' conftest.er1 >conftest.err
23533 rm -f conftest.er1
23534 cat conftest.err >&5
23535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23536 (exit $ac_status); } >/dev/null && {
23537 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23538 test ! -s conftest.err
23539 }; then
23540 ac_header_preproc=yes
23541 else
23542 $as_echo "$as_me: failed program was:" >&5
23543 sed 's/^/| /' conftest.$ac_ext >&5
23544
23545 ac_header_preproc=no
23546 fi
23547
23548 rm -f conftest.err conftest.$ac_ext
23549 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23550 $as_echo "$ac_header_preproc" >&6; }
23551
23552 # So? What about this header?
23553 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23554 yes:no: )
23555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23556 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23558 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23559 ac_header_preproc=yes
23560 ;;
23561 no:yes:* )
23562 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23563 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23564 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23565 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23566 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23567 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23568 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23569 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23570 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23571 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23572 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23573 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23574
23575 ;;
23576 esac
23577 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23578 $as_echo_n "checking for $ac_header... " >&6; }
23579 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23580 $as_echo_n "(cached) " >&6
23581 else
23582 eval "$as_ac_Header=\$ac_header_preproc"
23583 fi
23584 ac_res=`eval 'as_val=${'$as_ac_Header'}
23585 $as_echo "$as_val"'`
23586 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23587 $as_echo "$ac_res" >&6; }
23588
23589 fi
23590 if test `eval 'as_val=${'$as_ac_Header'}
23591 $as_echo "$as_val"'` = yes; then
23592 cat >>confdefs.h <<_ACEOF 12661 cat >>confdefs.h <<_ACEOF
23593 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12662 #define HAVE_KERBEROSIV_KRB_H 1
23594 _ACEOF 12663 _ACEOF
23595 12664
23596 else 12665 else
23597 12666 for ac_header in kerberos/krb.h
23598 for ac_header in kerberos/krb.h 12667 do :
23599 do 12668 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
23600 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12669 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
23601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23602 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23603 $as_echo_n "checking for $ac_header... " >&6; }
23604 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23605 $as_echo_n "(cached) " >&6
23606 fi
23607 ac_res=`eval 'as_val=${'$as_ac_Header'}
23608 $as_echo "$as_val"'`
23609 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23610 $as_echo "$ac_res" >&6; }
23611 else
23612 # Is the header compilable?
23613 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23614 $as_echo_n "checking $ac_header usability... " >&6; }
23615 cat >conftest.$ac_ext <<_ACEOF
23616 /* confdefs.h. */
23617 _ACEOF
23618 cat confdefs.h >>conftest.$ac_ext
23619 cat >>conftest.$ac_ext <<_ACEOF
23620 /* end confdefs.h. */
23621 $ac_includes_default
23622 #include <$ac_header>
23623 _ACEOF
23624 rm -f conftest.$ac_objext
23625 if { (ac_try="$ac_compile"
23626 case "(($ac_try" in
23627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23628 *) ac_try_echo=$ac_try;;
23629 esac
23630 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23631 $as_echo "$ac_try_echo") >&5
23632 (eval "$ac_compile") 2>conftest.er1
23633 ac_status=$?
23634 grep -v '^ *+' conftest.er1 >conftest.err
23635 rm -f conftest.er1
23636 cat conftest.err >&5
23637 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23638 (exit $ac_status); } && {
23639 test -z "$ac_c_werror_flag" ||
23640 test ! -s conftest.err
23641 } && test -s conftest.$ac_objext; then
23642 ac_header_compiler=yes
23643 else
23644 $as_echo "$as_me: failed program was:" >&5
23645 sed 's/^/| /' conftest.$ac_ext >&5
23646
23647 ac_header_compiler=no
23648 fi
23649
23650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23651 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23652 $as_echo "$ac_header_compiler" >&6; }
23653
23654 # Is the header present?
23655 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23656 $as_echo_n "checking $ac_header presence... " >&6; }
23657 cat >conftest.$ac_ext <<_ACEOF
23658 /* confdefs.h. */
23659 _ACEOF
23660 cat confdefs.h >>conftest.$ac_ext
23661 cat >>conftest.$ac_ext <<_ACEOF
23662 /* end confdefs.h. */
23663 #include <$ac_header>
23664 _ACEOF
23665 if { (ac_try="$ac_cpp conftest.$ac_ext"
23666 case "(($ac_try" in
23667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23668 *) ac_try_echo=$ac_try;;
23669 esac
23670 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23671 $as_echo "$ac_try_echo") >&5
23672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23673 ac_status=$?
23674 grep -v '^ *+' conftest.er1 >conftest.err
23675 rm -f conftest.er1
23676 cat conftest.err >&5
23677 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23678 (exit $ac_status); } >/dev/null && {
23679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23680 test ! -s conftest.err
23681 }; then
23682 ac_header_preproc=yes
23683 else
23684 $as_echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23686
23687 ac_header_preproc=no
23688 fi
23689
23690 rm -f conftest.err conftest.$ac_ext
23691 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23692 $as_echo "$ac_header_preproc" >&6; }
23693
23694 # So? What about this header?
23695 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23696 yes:no: )
23697 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23698 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23699 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23700 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23701 ac_header_preproc=yes
23702 ;;
23703 no:yes:* )
23704 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23705 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23706 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23707 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23708 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23709 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23710 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23711 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23712 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23713 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23714 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23715 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23716
23717 ;;
23718 esac
23719 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23720 $as_echo_n "checking for $ac_header... " >&6; }
23721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23722 $as_echo_n "(cached) " >&6
23723 else
23724 eval "$as_ac_Header=\$ac_header_preproc"
23725 fi
23726 ac_res=`eval 'as_val=${'$as_ac_Header'}
23727 $as_echo "$as_val"'`
23728 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23729 $as_echo "$ac_res" >&6; }
23730
23731 fi
23732 if test `eval 'as_val=${'$as_ac_Header'}
23733 $as_echo "$as_val"'` = yes; then
23734 cat >>confdefs.h <<_ACEOF 12670 cat >>confdefs.h <<_ACEOF
23735 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12671 #define HAVE_KERBEROS_KRB_H 1
23736 _ACEOF 12672 _ACEOF
23737 12673
23738 fi 12674 fi
23739 12675
23740 done 12676 done
23746 fi 12682 fi
23747 12683
23748 done 12684 done
23749 12685
23750 fi 12686 fi
23751 12687 for ac_header in com_err.h
23752 for ac_header in com_err.h 12688 do :
23753 do 12689 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
23754 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12690 if test "x$ac_cv_header_com_err_h" = x""yes; then :
23755 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23756 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23757 $as_echo_n "checking for $ac_header... " >&6; }
23758 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23759 $as_echo_n "(cached) " >&6
23760 fi
23761 ac_res=`eval 'as_val=${'$as_ac_Header'}
23762 $as_echo "$as_val"'`
23763 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23764 $as_echo "$ac_res" >&6; }
23765 else
23766 # Is the header compilable?
23767 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23768 $as_echo_n "checking $ac_header usability... " >&6; }
23769 cat >conftest.$ac_ext <<_ACEOF
23770 /* confdefs.h. */
23771 _ACEOF
23772 cat confdefs.h >>conftest.$ac_ext
23773 cat >>conftest.$ac_ext <<_ACEOF
23774 /* end confdefs.h. */
23775 $ac_includes_default
23776 #include <$ac_header>
23777 _ACEOF
23778 rm -f conftest.$ac_objext
23779 if { (ac_try="$ac_compile"
23780 case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23783 esac
23784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23785 $as_echo "$ac_try_echo") >&5
23786 (eval "$ac_compile") 2>conftest.er1
23787 ac_status=$?
23788 grep -v '^ *+' conftest.er1 >conftest.err
23789 rm -f conftest.er1
23790 cat conftest.err >&5
23791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23792 (exit $ac_status); } && {
23793 test -z "$ac_c_werror_flag" ||
23794 test ! -s conftest.err
23795 } && test -s conftest.$ac_objext; then
23796 ac_header_compiler=yes
23797 else
23798 $as_echo "$as_me: failed program was:" >&5
23799 sed 's/^/| /' conftest.$ac_ext >&5
23800
23801 ac_header_compiler=no
23802 fi
23803
23804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23806 $as_echo "$ac_header_compiler" >&6; }
23807
23808 # Is the header present?
23809 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23810 $as_echo_n "checking $ac_header presence... " >&6; }
23811 cat >conftest.$ac_ext <<_ACEOF
23812 /* confdefs.h. */
23813 _ACEOF
23814 cat confdefs.h >>conftest.$ac_ext
23815 cat >>conftest.$ac_ext <<_ACEOF
23816 /* end confdefs.h. */
23817 #include <$ac_header>
23818 _ACEOF
23819 if { (ac_try="$ac_cpp conftest.$ac_ext"
23820 case "(($ac_try" in
23821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822 *) ac_try_echo=$ac_try;;
23823 esac
23824 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23825 $as_echo "$ac_try_echo") >&5
23826 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23827 ac_status=$?
23828 grep -v '^ *+' conftest.er1 >conftest.err
23829 rm -f conftest.er1
23830 cat conftest.err >&5
23831 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); } >/dev/null && {
23833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23834 test ! -s conftest.err
23835 }; then
23836 ac_header_preproc=yes
23837 else
23838 $as_echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23840
23841 ac_header_preproc=no
23842 fi
23843
23844 rm -f conftest.err conftest.$ac_ext
23845 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23846 $as_echo "$ac_header_preproc" >&6; }
23847
23848 # So? What about this header?
23849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23850 yes:no: )
23851 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23852 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23853 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23854 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23855 ac_header_preproc=yes
23856 ;;
23857 no:yes:* )
23858 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23859 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23860 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23861 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23863 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23865 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23867 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23869 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23870
23871 ;;
23872 esac
23873 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23874 $as_echo_n "checking for $ac_header... " >&6; }
23875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23876 $as_echo_n "(cached) " >&6
23877 else
23878 eval "$as_ac_Header=\$ac_header_preproc"
23879 fi
23880 ac_res=`eval 'as_val=${'$as_ac_Header'}
23881 $as_echo "$as_val"'`
23882 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23883 $as_echo "$ac_res" >&6; }
23884
23885 fi
23886 if test `eval 'as_val=${'$as_ac_Header'}
23887 $as_echo "$as_val"'` = yes; then
23888 cat >>confdefs.h <<_ACEOF 12691 cat >>confdefs.h <<_ACEOF
23889 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12692 #define HAVE_COM_ERR_H 1
23890 _ACEOF 12693 _ACEOF
23891 12694
23892 fi 12695 fi
23893 12696
23894 done 12697 done
23901 12704
23902 12705
23903 12706
23904 # Solaris requires -lintl if you want strerror (which calls dgettext) 12707 # Solaris requires -lintl if you want strerror (which calls dgettext)
23905 # to return localized messages. 12708 # to return localized messages.
23906 12709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
23907 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23908 $as_echo_n "checking for dgettext in -lintl... " >&6; } 12710 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23909 if test "${ac_cv_lib_intl_dgettext+set}" = set; then 12711 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
23910 $as_echo_n "(cached) " >&6 12712 $as_echo_n "(cached) " >&6
23911 else 12713 else
23912 ac_check_lib_save_LIBS=$LIBS 12714 ac_check_lib_save_LIBS=$LIBS
23913 LIBS="-lintl $LIBS" 12715 LIBS="-lintl $LIBS"
23914 cat >conftest.$ac_ext <<_ACEOF 12716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23915 /* confdefs.h. */
23916 _ACEOF
23917 cat confdefs.h >>conftest.$ac_ext
23918 cat >>conftest.$ac_ext <<_ACEOF
23919 /* end confdefs.h. */ 12717 /* end confdefs.h. */
23920 12718
23921 /* Override any GCC internal prototype to avoid an error. 12719 /* Override any GCC internal prototype to avoid an error.
23922 Use char because int might match the return type of a GCC 12720 Use char because int might match the return type of a GCC
23923 builtin and then its argument prototype would still apply. */ 12721 builtin and then its argument prototype would still apply. */
23931 return dgettext (); 12729 return dgettext ();
23932 ; 12730 ;
23933 return 0; 12731 return 0;
23934 } 12732 }
23935 _ACEOF 12733 _ACEOF
23936 rm -f conftest.$ac_objext conftest$ac_exeext 12734 if ac_fn_c_try_link "$LINENO"; then :
23937 if { (ac_try="$ac_link"
23938 case "(($ac_try" in
23939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23940 *) ac_try_echo=$ac_try;;
23941 esac
23942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23943 $as_echo "$ac_try_echo") >&5
23944 (eval "$ac_link") 2>conftest.er1
23945 ac_status=$?
23946 grep -v '^ *+' conftest.er1 >conftest.err
23947 rm -f conftest.er1
23948 cat conftest.err >&5
23949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23950 (exit $ac_status); } && {
23951 test -z "$ac_c_werror_flag" ||
23952 test ! -s conftest.err
23953 } && test -s conftest$ac_exeext && {
23954 test "$cross_compiling" = yes ||
23955 $as_test_x conftest$ac_exeext
23956 }; then
23957 ac_cv_lib_intl_dgettext=yes 12735 ac_cv_lib_intl_dgettext=yes
23958 else 12736 else
23959 $as_echo "$as_me: failed program was:" >&5 12737 ac_cv_lib_intl_dgettext=no
23960 sed 's/^/| /' conftest.$ac_ext >&5 12738 fi
23961 12739 rm -f core conftest.err conftest.$ac_objext \
23962 ac_cv_lib_intl_dgettext=no 12740 conftest$ac_exeext conftest.$ac_ext
23963 fi
23964
23965 rm -rf conftest.dSYM
23966 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23967 conftest$ac_exeext conftest.$ac_ext
23968 LIBS=$ac_check_lib_save_LIBS 12741 LIBS=$ac_check_lib_save_LIBS
23969 fi 12742 fi
23970 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
23971 $as_echo "$ac_cv_lib_intl_dgettext" >&6; } 12744 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
23972 if test $ac_cv_lib_intl_dgettext = yes; then 12745 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
23973 cat >>confdefs.h <<_ACEOF 12746 cat >>confdefs.h <<_ACEOF
23974 #define HAVE_LIBINTL 1 12747 #define HAVE_LIBINTL 1
23975 _ACEOF 12748 _ACEOF
23976 12749
23977 LIBS="-lintl $LIBS" 12750 LIBS="-lintl $LIBS"
23978 12751
23979 fi 12752 fi
23980 12753
23981 12754
23982 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
23983 $as_echo_n "checking whether localtime caches TZ... " >&6; } 12756 $as_echo_n "checking whether localtime caches TZ... " >&6; }
23984 if test "${emacs_cv_localtime_cache+set}" = set; then 12757 if test "${emacs_cv_localtime_cache+set}" = set; then :
23985 $as_echo_n "(cached) " >&6 12758 $as_echo_n "(cached) " >&6
23986 else 12759 else
23987 if test x$ac_cv_func_tzset = xyes; then 12760 if test x$ac_cv_func_tzset = xyes; then
23988 if test "$cross_compiling" = yes; then 12761 if test "$cross_compiling" = yes; then :
23989 # If we have tzset, assume the worst when cross-compiling. 12762 # If we have tzset, assume the worst when cross-compiling.
23990 emacs_cv_localtime_cache=yes 12763 emacs_cv_localtime_cache=yes
23991 else 12764 else
23992 cat >conftest.$ac_ext <<_ACEOF 12765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23993 /* confdefs.h. */
23994 _ACEOF
23995 cat confdefs.h >>conftest.$ac_ext
23996 cat >>conftest.$ac_ext <<_ACEOF
23997 /* end confdefs.h. */ 12766 /* end confdefs.h. */
23998 #include <time.h> 12767 #include <time.h>
23999 extern char **environ; 12768 extern char **environ;
24000 unset_TZ () 12769 unset_TZ ()
24001 { 12770 {
24023 if (localtime (&now)->tm_hour != hour_unset) 12792 if (localtime (&now)->tm_hour != hour_unset)
24024 exit (1); 12793 exit (1);
24025 exit (0); 12794 exit (0);
24026 } 12795 }
24027 _ACEOF 12796 _ACEOF
24028 rm -f conftest$ac_exeext 12797 if ac_fn_c_try_run "$LINENO"; then :
24029 if { (ac_try="$ac_link"
24030 case "(($ac_try" in
24031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24032 *) ac_try_echo=$ac_try;;
24033 esac
24034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24035 $as_echo "$ac_try_echo") >&5
24036 (eval "$ac_link") 2>&5
24037 ac_status=$?
24038 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24039 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24040 { (case "(($ac_try" in
24041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24042 *) ac_try_echo=$ac_try;;
24043 esac
24044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24045 $as_echo "$ac_try_echo") >&5
24046 (eval "$ac_try") 2>&5
24047 ac_status=$?
24048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); }; }; then
24050 emacs_cv_localtime_cache=no 12798 emacs_cv_localtime_cache=no
24051 else 12799 else
24052 $as_echo "$as_me: program exited with status $ac_status" >&5 12800 emacs_cv_localtime_cache=yes
24053 $as_echo "$as_me: failed program was:" >&5 12801 fi
24054 sed 's/^/| /' conftest.$ac_ext >&5 12802 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24055 12803 conftest.$ac_objext conftest.beam conftest.$ac_ext
24056 ( exit $ac_status ) 12804 fi
24057 emacs_cv_localtime_cache=yes
24058 fi
24059 rm -rf conftest.dSYM
24060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24061 fi
24062
24063 12805
24064 else 12806 else
24065 # If we lack tzset, report that localtime does not cache TZ, 12807 # If we lack tzset, report that localtime does not cache TZ,
24066 # since we can't invalidate the cache if we don't have tzset. 12808 # since we can't invalidate the cache if we don't have tzset.
24067 emacs_cv_localtime_cache=no 12809 emacs_cv_localtime_cache=no
24068 fi 12810 fi
24069 fi 12811 fi
24070 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 12812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
24071 $as_echo "$emacs_cv_localtime_cache" >&6; } 12813 $as_echo "$emacs_cv_localtime_cache" >&6; }
24072 if test $emacs_cv_localtime_cache = yes; then 12814 if test $emacs_cv_localtime_cache = yes; then
24073 12815
24074 cat >>confdefs.h <<\_ACEOF 12816 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
24075 #define LOCALTIME_CACHE 1
24076 _ACEOF
24077 12817
24078 fi 12818 fi
24079 12819
24080 if test "x$HAVE_TIMEVAL" = xyes; then 12820 if test "x$HAVE_TIMEVAL" = xyes; then
24081 12821 for ac_func in gettimeofday
24082 for ac_func in gettimeofday 12822 do :
24083 do 12823 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
24084 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12824 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
24085 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12825 cat >>confdefs.h <<_ACEOF
24086 $as_echo_n "checking for $ac_func... " >&6; } 12826 #define HAVE_GETTIMEOFDAY 1
24087 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12827 _ACEOF
12828
12829 fi
12830 done
12831
12832 if test $ac_cv_func_gettimeofday = yes; then
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
12834 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12835 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
24088 $as_echo_n "(cached) " >&6 12836 $as_echo_n "(cached) " >&6
24089 else 12837 else
24090 cat >conftest.$ac_ext <<_ACEOF 12838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24091 /* confdefs.h. */
24092 _ACEOF
24093 cat confdefs.h >>conftest.$ac_ext
24094 cat >>conftest.$ac_ext <<_ACEOF
24095 /* end confdefs.h. */
24096 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24097 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24098 #define $ac_func innocuous_$ac_func
24099
24100 /* System header to define __stub macros and hopefully few prototypes,
24101 which can conflict with char $ac_func (); below.
24102 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24103 <limits.h> exists even on freestanding compilers. */
24104
24105 #ifdef __STDC__
24106 # include <limits.h>
24107 #else
24108 # include <assert.h>
24109 #endif
24110
24111 #undef $ac_func
24112
24113 /* Override any GCC internal prototype to avoid an error.
24114 Use char because int might match the return type of a GCC
24115 builtin and then its argument prototype would still apply. */
24116 #ifdef __cplusplus
24117 extern "C"
24118 #endif
24119 char $ac_func ();
24120 /* The GNU C library defines this for functions which it implements
24121 to always fail with ENOSYS. Some functions are actually named
24122 something starting with __ and the normal name is an alias. */
24123 #if defined __stub_$ac_func || defined __stub___$ac_func
24124 choke me
24125 #endif
24126
24127 int
24128 main ()
24129 {
24130 return $ac_func ();
24131 ;
24132 return 0;
24133 }
24134 _ACEOF
24135 rm -f conftest.$ac_objext conftest$ac_exeext
24136 if { (ac_try="$ac_link"
24137 case "(($ac_try" in
24138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24139 *) ac_try_echo=$ac_try;;
24140 esac
24141 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24142 $as_echo "$ac_try_echo") >&5
24143 (eval "$ac_link") 2>conftest.er1
24144 ac_status=$?
24145 grep -v '^ *+' conftest.er1 >conftest.err
24146 rm -f conftest.er1
24147 cat conftest.err >&5
24148 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24149 (exit $ac_status); } && {
24150 test -z "$ac_c_werror_flag" ||
24151 test ! -s conftest.err
24152 } && test -s conftest$ac_exeext && {
24153 test "$cross_compiling" = yes ||
24154 $as_test_x conftest$ac_exeext
24155 }; then
24156 eval "$as_ac_var=yes"
24157 else
24158 $as_echo "$as_me: failed program was:" >&5
24159 sed 's/^/| /' conftest.$ac_ext >&5
24160
24161 eval "$as_ac_var=no"
24162 fi
24163
24164 rm -rf conftest.dSYM
24165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24166 conftest$ac_exeext conftest.$ac_ext
24167 fi
24168 ac_res=`eval 'as_val=${'$as_ac_var'}
24169 $as_echo "$as_val"'`
24170 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24171 $as_echo "$ac_res" >&6; }
24172 if test `eval 'as_val=${'$as_ac_var'}
24173 $as_echo "$as_val"'` = yes; then
24174 cat >>confdefs.h <<_ACEOF
24175 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24176 _ACEOF
24177
24178 fi
24179 done
24180
24181 if test $ac_cv_func_gettimeofday = yes; then
24182 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24183 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24184 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24185 $as_echo_n "(cached) " >&6
24186 else
24187 cat >conftest.$ac_ext <<_ACEOF
24188 /* confdefs.h. */
24189 _ACEOF
24190 cat confdefs.h >>conftest.$ac_ext
24191 cat >>conftest.$ac_ext <<_ACEOF
24192 /* end confdefs.h. */ 12839 /* end confdefs.h. */
24193 12840
24194 #ifdef TIME_WITH_SYS_TIME 12841 #ifdef TIME_WITH_SYS_TIME
24195 #include <sys/time.h> 12842 #include <sys/time.h>
24196 #include <time.h> 12843 #include <time.h>
24208 gettimeofday (&time, 0); 12855 gettimeofday (&time, 0);
24209 ; 12856 ;
24210 return 0; 12857 return 0;
24211 } 12858 }
24212 _ACEOF 12859 _ACEOF
24213 rm -f conftest.$ac_objext 12860 if ac_fn_c_try_compile "$LINENO"; then :
24214 if { (ac_try="$ac_compile"
24215 case "(($ac_try" in
24216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24217 *) ac_try_echo=$ac_try;;
24218 esac
24219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24220 $as_echo "$ac_try_echo") >&5
24221 (eval "$ac_compile") 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_objext; then
24231 emacs_cv_gettimeofday_two_arguments=yes 12861 emacs_cv_gettimeofday_two_arguments=yes
24232 else 12862 else
24233 $as_echo "$as_me: failed program was:" >&5 12863 emacs_cv_gettimeofday_two_arguments=no
24234 sed 's/^/| /' conftest.$ac_ext >&5 12864 fi
24235
24236 emacs_cv_gettimeofday_two_arguments=no
24237 fi
24238
24239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24240 fi 12866 fi
24241 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
24242 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } 12868 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24243 if test $emacs_cv_gettimeofday_two_arguments = no; then 12869 if test $emacs_cv_gettimeofday_two_arguments = no; then
24244 12870
24245 cat >>confdefs.h <<\_ACEOF 12871 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
24246 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24247 _ACEOF
24248 12872
24249 fi 12873 fi
24250 fi 12874 fi
24251 fi 12875 fi
24252 12876
24253 ok_so_far=yes 12877 ok_so_far=yes
24254 { $as_echo "$as_me:$LINENO: checking for socket" >&5 12878 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
24255 $as_echo_n "checking for socket... " >&6; } 12879 if test "x$ac_cv_func_socket" = x""yes; then :
24256 if test "${ac_cv_func_socket+set}" = set; then 12880
24257 $as_echo_n "(cached) " >&6
24258 else
24259 cat >conftest.$ac_ext <<_ACEOF
24260 /* confdefs.h. */
24261 _ACEOF
24262 cat confdefs.h >>conftest.$ac_ext
24263 cat >>conftest.$ac_ext <<_ACEOF
24264 /* end confdefs.h. */
24265 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24266 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24267 #define socket innocuous_socket
24268
24269 /* System header to define __stub macros and hopefully few prototypes,
24270 which can conflict with char socket (); below.
24271 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24272 <limits.h> exists even on freestanding compilers. */
24273
24274 #ifdef __STDC__
24275 # include <limits.h>
24276 #else
24277 # include <assert.h>
24278 #endif
24279
24280 #undef socket
24281
24282 /* Override any GCC internal prototype to avoid an error.
24283 Use char because int might match the return type of a GCC
24284 builtin and then its argument prototype would still apply. */
24285 #ifdef __cplusplus
24286 extern "C"
24287 #endif
24288 char socket ();
24289 /* The GNU C library defines this for functions which it implements
24290 to always fail with ENOSYS. Some functions are actually named
24291 something starting with __ and the normal name is an alias. */
24292 #if defined __stub_socket || defined __stub___socket
24293 choke me
24294 #endif
24295
24296 int
24297 main ()
24298 {
24299 return socket ();
24300 ;
24301 return 0;
24302 }
24303 _ACEOF
24304 rm -f conftest.$ac_objext conftest$ac_exeext
24305 if { (ac_try="$ac_link"
24306 case "(($ac_try" in
24307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24308 *) ac_try_echo=$ac_try;;
24309 esac
24310 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24311 $as_echo "$ac_try_echo") >&5
24312 (eval "$ac_link") 2>conftest.er1
24313 ac_status=$?
24314 grep -v '^ *+' conftest.er1 >conftest.err
24315 rm -f conftest.er1
24316 cat conftest.err >&5
24317 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24318 (exit $ac_status); } && {
24319 test -z "$ac_c_werror_flag" ||
24320 test ! -s conftest.err
24321 } && test -s conftest$ac_exeext && {
24322 test "$cross_compiling" = yes ||
24323 $as_test_x conftest$ac_exeext
24324 }; then
24325 ac_cv_func_socket=yes
24326 else
24327 $as_echo "$as_me: failed program was:" >&5
24328 sed 's/^/| /' conftest.$ac_ext >&5
24329
24330 ac_cv_func_socket=no
24331 fi
24332
24333 rm -rf conftest.dSYM
24334 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24335 conftest$ac_exeext conftest.$ac_ext
24336 fi
24337 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24338 $as_echo "$ac_cv_func_socket" >&6; }
24339 if test $ac_cv_func_socket = yes; then
24340 :
24341 else 12881 else
24342 ok_so_far=no 12882 ok_so_far=no
24343 fi 12883 fi
24344 12884
24345 if test $ok_so_far = yes; then 12885 if test $ok_so_far = yes; then
24346 if test "${ac_cv_header_netinet_in_h+set}" = set; then 12886 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
24347 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5 12887 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
24348 $as_echo_n "checking for netinet/in.h... " >&6; } 12888
24349 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24350 $as_echo_n "(cached) " >&6
24351 fi
24352 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24353 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24354 else
24355 # Is the header compilable?
24356 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24357 $as_echo_n "checking netinet/in.h usability... " >&6; }
24358 cat >conftest.$ac_ext <<_ACEOF
24359 /* confdefs.h. */
24360 _ACEOF
24361 cat confdefs.h >>conftest.$ac_ext
24362 cat >>conftest.$ac_ext <<_ACEOF
24363 /* end confdefs.h. */
24364 $ac_includes_default
24365 #include <netinet/in.h>
24366 _ACEOF
24367 rm -f conftest.$ac_objext
24368 if { (ac_try="$ac_compile"
24369 case "(($ac_try" in
24370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24371 *) ac_try_echo=$ac_try;;
24372 esac
24373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24374 $as_echo "$ac_try_echo") >&5
24375 (eval "$ac_compile") 2>conftest.er1
24376 ac_status=$?
24377 grep -v '^ *+' conftest.er1 >conftest.err
24378 rm -f conftest.er1
24379 cat conftest.err >&5
24380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24381 (exit $ac_status); } && {
24382 test -z "$ac_c_werror_flag" ||
24383 test ! -s conftest.err
24384 } && test -s conftest.$ac_objext; then
24385 ac_header_compiler=yes
24386 else
24387 $as_echo "$as_me: failed program was:" >&5
24388 sed 's/^/| /' conftest.$ac_ext >&5
24389
24390 ac_header_compiler=no
24391 fi
24392
24393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24394 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24395 $as_echo "$ac_header_compiler" >&6; }
24396
24397 # Is the header present?
24398 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24399 $as_echo_n "checking netinet/in.h presence... " >&6; }
24400 cat >conftest.$ac_ext <<_ACEOF
24401 /* confdefs.h. */
24402 _ACEOF
24403 cat confdefs.h >>conftest.$ac_ext
24404 cat >>conftest.$ac_ext <<_ACEOF
24405 /* end confdefs.h. */
24406 #include <netinet/in.h>
24407 _ACEOF
24408 if { (ac_try="$ac_cpp conftest.$ac_ext"
24409 case "(($ac_try" in
24410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24411 *) ac_try_echo=$ac_try;;
24412 esac
24413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24414 $as_echo "$ac_try_echo") >&5
24415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24416 ac_status=$?
24417 grep -v '^ *+' conftest.er1 >conftest.err
24418 rm -f conftest.er1
24419 cat conftest.err >&5
24420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24421 (exit $ac_status); } >/dev/null && {
24422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24423 test ! -s conftest.err
24424 }; then
24425 ac_header_preproc=yes
24426 else
24427 $as_echo "$as_me: failed program was:" >&5
24428 sed 's/^/| /' conftest.$ac_ext >&5
24429
24430 ac_header_preproc=no
24431 fi
24432
24433 rm -f conftest.err conftest.$ac_ext
24434 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24435 $as_echo "$ac_header_preproc" >&6; }
24436
24437 # So? What about this header?
24438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24439 yes:no: )
24440 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24441 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24442 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24443 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24444 ac_header_preproc=yes
24445 ;;
24446 no:yes:* )
24447 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24448 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24449 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24450 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24451 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24452 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24453 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24454 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24455 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24456 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24457 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24458 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24459
24460 ;;
24461 esac
24462 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24463 $as_echo_n "checking for netinet/in.h... " >&6; }
24464 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24465 $as_echo_n "(cached) " >&6
24466 else
24467 ac_cv_header_netinet_in_h=$ac_header_preproc
24468 fi
24469 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24470 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24471
24472 fi
24473 if test $ac_cv_header_netinet_in_h = yes; then
24474 :
24475 else 12889 else
24476 ok_so_far=no 12890 ok_so_far=no
24477 fi 12891 fi
24478 12892
24479 12893
24480 fi 12894 fi
24481 if test $ok_so_far = yes; then 12895 if test $ok_so_far = yes; then
24482 if test "${ac_cv_header_arpa_inet_h+set}" = set; then 12896 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
24483 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 12897 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
24484 $as_echo_n "checking for arpa/inet.h... " >&6; } 12898
24485 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24486 $as_echo_n "(cached) " >&6
24487 fi
24488 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24489 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24490 else
24491 # Is the header compilable?
24492 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24493 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24494 cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h. */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 $ac_includes_default
24501 #include <arpa/inet.h>
24502 _ACEOF
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24508 esac
24509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24510 $as_echo "$ac_try_echo") >&5
24511 (eval "$ac_compile") 2>conftest.er1
24512 ac_status=$?
24513 grep -v '^ *+' conftest.er1 >conftest.err
24514 rm -f conftest.er1
24515 cat conftest.err >&5
24516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24517 (exit $ac_status); } && {
24518 test -z "$ac_c_werror_flag" ||
24519 test ! -s conftest.err
24520 } && test -s conftest.$ac_objext; then
24521 ac_header_compiler=yes
24522 else
24523 $as_echo "$as_me: failed program was:" >&5
24524 sed 's/^/| /' conftest.$ac_ext >&5
24525
24526 ac_header_compiler=no
24527 fi
24528
24529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24530 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24531 $as_echo "$ac_header_compiler" >&6; }
24532
24533 # Is the header present?
24534 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24535 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24536 cat >conftest.$ac_ext <<_ACEOF
24537 /* confdefs.h. */
24538 _ACEOF
24539 cat confdefs.h >>conftest.$ac_ext
24540 cat >>conftest.$ac_ext <<_ACEOF
24541 /* end confdefs.h. */
24542 #include <arpa/inet.h>
24543 _ACEOF
24544 if { (ac_try="$ac_cpp conftest.$ac_ext"
24545 case "(($ac_try" in
24546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24547 *) ac_try_echo=$ac_try;;
24548 esac
24549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24550 $as_echo "$ac_try_echo") >&5
24551 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24552 ac_status=$?
24553 grep -v '^ *+' conftest.er1 >conftest.err
24554 rm -f conftest.er1
24555 cat conftest.err >&5
24556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24557 (exit $ac_status); } >/dev/null && {
24558 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24559 test ! -s conftest.err
24560 }; then
24561 ac_header_preproc=yes
24562 else
24563 $as_echo "$as_me: failed program was:" >&5
24564 sed 's/^/| /' conftest.$ac_ext >&5
24565
24566 ac_header_preproc=no
24567 fi
24568
24569 rm -f conftest.err conftest.$ac_ext
24570 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24571 $as_echo "$ac_header_preproc" >&6; }
24572
24573 # So? What about this header?
24574 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24575 yes:no: )
24576 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24577 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24578 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24579 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24580 ac_header_preproc=yes
24581 ;;
24582 no:yes:* )
24583 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24584 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24585 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24586 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24587 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24588 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24589 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24590 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24591 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24592 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24593 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24594 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24595
24596 ;;
24597 esac
24598 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24599 $as_echo_n "checking for arpa/inet.h... " >&6; }
24600 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24601 $as_echo_n "(cached) " >&6
24602 else
24603 ac_cv_header_arpa_inet_h=$ac_header_preproc
24604 fi
24605 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24606 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24607
24608 fi
24609 if test $ac_cv_header_arpa_inet_h = yes; then
24610 :
24611 else 12899 else
24612 ok_so_far=no 12900 ok_so_far=no
24613 fi 12901 fi
24614 12902
24615 12903
24616 fi 12904 fi
24617 if test $ok_so_far = yes; then 12905 if test $ok_so_far = yes; then
24618 12906
24619 cat >>confdefs.h <<\_ACEOF 12907 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
24620 #define HAVE_INET_SOCKETS 1 12908
24621 _ACEOF 12909 fi
24622
24623 fi
24624
24625 12910
24626 for ac_header in sys/ioctl.h 12911 for ac_header in sys/ioctl.h
24627 do 12912 do :
24628 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12913 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
24629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12914 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
24630 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24631 $as_echo_n "checking for $ac_header... " >&6; }
24632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24633 $as_echo_n "(cached) " >&6
24634 fi
24635 ac_res=`eval 'as_val=${'$as_ac_Header'}
24636 $as_echo "$as_val"'`
24637 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24638 $as_echo "$ac_res" >&6; }
24639 else
24640 # Is the header compilable?
24641 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24642 $as_echo_n "checking $ac_header usability... " >&6; }
24643 cat >conftest.$ac_ext <<_ACEOF
24644 /* confdefs.h. */
24645 _ACEOF
24646 cat confdefs.h >>conftest.$ac_ext
24647 cat >>conftest.$ac_ext <<_ACEOF
24648 /* end confdefs.h. */
24649 $ac_includes_default
24650 #include <$ac_header>
24651 _ACEOF
24652 rm -f conftest.$ac_objext
24653 if { (ac_try="$ac_compile"
24654 case "(($ac_try" in
24655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24656 *) ac_try_echo=$ac_try;;
24657 esac
24658 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24659 $as_echo "$ac_try_echo") >&5
24660 (eval "$ac_compile") 2>conftest.er1
24661 ac_status=$?
24662 grep -v '^ *+' conftest.er1 >conftest.err
24663 rm -f conftest.er1
24664 cat conftest.err >&5
24665 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); } && {
24667 test -z "$ac_c_werror_flag" ||
24668 test ! -s conftest.err
24669 } && test -s conftest.$ac_objext; then
24670 ac_header_compiler=yes
24671 else
24672 $as_echo "$as_me: failed program was:" >&5
24673 sed 's/^/| /' conftest.$ac_ext >&5
24674
24675 ac_header_compiler=no
24676 fi
24677
24678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24679 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24680 $as_echo "$ac_header_compiler" >&6; }
24681
24682 # Is the header present?
24683 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24684 $as_echo_n "checking $ac_header presence... " >&6; }
24685 cat >conftest.$ac_ext <<_ACEOF
24686 /* confdefs.h. */
24687 _ACEOF
24688 cat confdefs.h >>conftest.$ac_ext
24689 cat >>conftest.$ac_ext <<_ACEOF
24690 /* end confdefs.h. */
24691 #include <$ac_header>
24692 _ACEOF
24693 if { (ac_try="$ac_cpp conftest.$ac_ext"
24694 case "(($ac_try" in
24695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24696 *) ac_try_echo=$ac_try;;
24697 esac
24698 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24699 $as_echo "$ac_try_echo") >&5
24700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24701 ac_status=$?
24702 grep -v '^ *+' conftest.er1 >conftest.err
24703 rm -f conftest.er1
24704 cat conftest.err >&5
24705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } >/dev/null && {
24707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24708 test ! -s conftest.err
24709 }; then
24710 ac_header_preproc=yes
24711 else
24712 $as_echo "$as_me: failed program was:" >&5
24713 sed 's/^/| /' conftest.$ac_ext >&5
24714
24715 ac_header_preproc=no
24716 fi
24717
24718 rm -f conftest.err conftest.$ac_ext
24719 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24720 $as_echo "$ac_header_preproc" >&6; }
24721
24722 # So? What about this header?
24723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24724 yes:no: )
24725 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24726 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24727 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24728 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24729 ac_header_preproc=yes
24730 ;;
24731 no:yes:* )
24732 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24733 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24734 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24735 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24736 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24737 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24738 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24739 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24740 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24741 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24743 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24744
24745 ;;
24746 esac
24747 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24748 $as_echo_n "checking for $ac_header... " >&6; }
24749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24750 $as_echo_n "(cached) " >&6
24751 else
24752 eval "$as_ac_Header=\$ac_header_preproc"
24753 fi
24754 ac_res=`eval 'as_val=${'$as_ac_Header'}
24755 $as_echo "$as_val"'`
24756 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24757 $as_echo "$ac_res" >&6; }
24758
24759 fi
24760 if test `eval 'as_val=${'$as_ac_Header'}
24761 $as_echo "$as_val"'` = yes; then
24762 cat >>confdefs.h <<_ACEOF 12915 cat >>confdefs.h <<_ACEOF
24763 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12916 #define HAVE_SYS_IOCTL_H 1
24764 _ACEOF 12917 _ACEOF
24765 12918
24766 fi 12919 fi
24767 12920
24768 done 12921 done
24769 12922
24770 12923
24771 if test -f /usr/lpp/X11/bin/smt.exp; then 12924 if test -f /usr/lpp/X11/bin/smt.exp; then
24772 12925
24773 cat >>confdefs.h <<\_ACEOF 12926 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
24774 #define HAVE_AIX_SMT_EXP 1 12927
24775 _ACEOF 12928 fi
24776 12929
24777 fi 12930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
24778
24779 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24780 $as_echo_n "checking whether system supports dynamic ptys... " >&6; } 12931 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24781 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 12932 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24782 { $as_echo "$as_me:$LINENO: result: yes" >&5 12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24783 $as_echo "yes" >&6; } 12934 $as_echo "yes" >&6; }
24784 12935
24785 cat >>confdefs.h <<\_ACEOF 12936 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
24786 #define HAVE_DEV_PTMX 1 12937
24787 _ACEOF 12938 else
24788 12939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24789 else
24790 { $as_echo "$as_me:$LINENO: result: no" >&5
24791 $as_echo "no" >&6; } 12940 $as_echo "no" >&6; }
24792 fi 12941 fi
24793 12942
24794 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 12943 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24795 $as_echo_n "checking for pid_t... " >&6; } 12944 if test "x$ac_cv_type_pid_t" = x""yes; then :
24796 if test "${ac_cv_type_pid_t+set}" = set; then 12945
12946 else
12947
12948 cat >>confdefs.h <<_ACEOF
12949 #define pid_t int
12950 _ACEOF
12951
12952 fi
12953
12954 for ac_header in vfork.h
12955 do :
12956 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12957 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12958 cat >>confdefs.h <<_ACEOF
12959 #define HAVE_VFORK_H 1
12960 _ACEOF
12961
12962 fi
12963
12964 done
12965
12966 for ac_func in fork vfork
12967 do :
12968 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12969 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12970 eval as_val=\$$as_ac_var
12971 if test "x$as_val" = x""yes; then :
12972 cat >>confdefs.h <<_ACEOF
12973 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12974 _ACEOF
12975
12976 fi
12977 done
12978
12979 if test "x$ac_cv_func_fork" = xyes; then
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
12981 $as_echo_n "checking for working fork... " >&6; }
12982 if test "${ac_cv_func_fork_works+set}" = set; then :
24797 $as_echo_n "(cached) " >&6 12983 $as_echo_n "(cached) " >&6
24798 else 12984 else
24799 ac_cv_type_pid_t=no 12985 if test "$cross_compiling" = yes; then :
24800 cat >conftest.$ac_ext <<_ACEOF 12986 ac_cv_func_fork_works=cross
24801 /* confdefs.h. */ 12987 else
24802 _ACEOF 12988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24803 cat confdefs.h >>conftest.$ac_ext
24804 cat >>conftest.$ac_ext <<_ACEOF
24805 /* end confdefs.h. */ 12989 /* end confdefs.h. */
24806 $ac_includes_default 12990 $ac_includes_default
24807 int 12991 int
24808 main () 12992 main ()
24809 { 12993 {
24810 if (sizeof (pid_t)) 12994
24811 return 0; 12995 /* By Ruediger Kuhlmann. */
12996 return fork () < 0;
12997
24812 ; 12998 ;
24813 return 0; 12999 return 0;
24814 } 13000 }
24815 _ACEOF 13001 _ACEOF
24816 rm -f conftest.$ac_objext 13002 if ac_fn_c_try_run "$LINENO"; then :
24817 if { (ac_try="$ac_compile"
24818 case "(($ac_try" in
24819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24820 *) ac_try_echo=$ac_try;;
24821 esac
24822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24823 $as_echo "$ac_try_echo") >&5
24824 (eval "$ac_compile") 2>conftest.er1
24825 ac_status=$?
24826 grep -v '^ *+' conftest.er1 >conftest.err
24827 rm -f conftest.er1
24828 cat conftest.err >&5
24829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); } && {
24831 test -z "$ac_c_werror_flag" ||
24832 test ! -s conftest.err
24833 } && test -s conftest.$ac_objext; then
24834 cat >conftest.$ac_ext <<_ACEOF
24835 /* confdefs.h. */
24836 _ACEOF
24837 cat confdefs.h >>conftest.$ac_ext
24838 cat >>conftest.$ac_ext <<_ACEOF
24839 /* end confdefs.h. */
24840 $ac_includes_default
24841 int
24842 main ()
24843 {
24844 if (sizeof ((pid_t)))
24845 return 0;
24846 ;
24847 return 0;
24848 }
24849 _ACEOF
24850 rm -f conftest.$ac_objext
24851 if { (ac_try="$ac_compile"
24852 case "(($ac_try" in
24853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24854 *) ac_try_echo=$ac_try;;
24855 esac
24856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24857 $as_echo "$ac_try_echo") >&5
24858 (eval "$ac_compile") 2>conftest.er1
24859 ac_status=$?
24860 grep -v '^ *+' conftest.er1 >conftest.err
24861 rm -f conftest.er1
24862 cat conftest.err >&5
24863 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24864 (exit $ac_status); } && {
24865 test -z "$ac_c_werror_flag" ||
24866 test ! -s conftest.err
24867 } && test -s conftest.$ac_objext; then
24868 :
24869 else
24870 $as_echo "$as_me: failed program was:" >&5
24871 sed 's/^/| /' conftest.$ac_ext >&5
24872
24873 ac_cv_type_pid_t=yes
24874 fi
24875
24876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24877 else
24878 $as_echo "$as_me: failed program was:" >&5
24879 sed 's/^/| /' conftest.$ac_ext >&5
24880
24881
24882 fi
24883
24884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24885 fi
24886 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24887 $as_echo "$ac_cv_type_pid_t" >&6; }
24888 if test $ac_cv_type_pid_t = yes; then
24889 :
24890 else
24891
24892 cat >>confdefs.h <<_ACEOF
24893 #define pid_t int
24894 _ACEOF
24895
24896 fi
24897
24898
24899 for ac_header in vfork.h
24900 do
24901 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24902 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24903 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24904 $as_echo_n "checking for $ac_header... " >&6; }
24905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24906 $as_echo_n "(cached) " >&6
24907 fi
24908 ac_res=`eval 'as_val=${'$as_ac_Header'}
24909 $as_echo "$as_val"'`
24910 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24911 $as_echo "$ac_res" >&6; }
24912 else
24913 # Is the header compilable?
24914 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24915 $as_echo_n "checking $ac_header usability... " >&6; }
24916 cat >conftest.$ac_ext <<_ACEOF
24917 /* confdefs.h. */
24918 _ACEOF
24919 cat confdefs.h >>conftest.$ac_ext
24920 cat >>conftest.$ac_ext <<_ACEOF
24921 /* end confdefs.h. */
24922 $ac_includes_default
24923 #include <$ac_header>
24924 _ACEOF
24925 rm -f conftest.$ac_objext
24926 if { (ac_try="$ac_compile"
24927 case "(($ac_try" in
24928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24929 *) ac_try_echo=$ac_try;;
24930 esac
24931 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24932 $as_echo "$ac_try_echo") >&5
24933 (eval "$ac_compile") 2>conftest.er1
24934 ac_status=$?
24935 grep -v '^ *+' conftest.er1 >conftest.err
24936 rm -f conftest.er1
24937 cat conftest.err >&5
24938 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24939 (exit $ac_status); } && {
24940 test -z "$ac_c_werror_flag" ||
24941 test ! -s conftest.err
24942 } && test -s conftest.$ac_objext; then
24943 ac_header_compiler=yes
24944 else
24945 $as_echo "$as_me: failed program was:" >&5
24946 sed 's/^/| /' conftest.$ac_ext >&5
24947
24948 ac_header_compiler=no
24949 fi
24950
24951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24952 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24953 $as_echo "$ac_header_compiler" >&6; }
24954
24955 # Is the header present?
24956 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24957 $as_echo_n "checking $ac_header presence... " >&6; }
24958 cat >conftest.$ac_ext <<_ACEOF
24959 /* confdefs.h. */
24960 _ACEOF
24961 cat confdefs.h >>conftest.$ac_ext
24962 cat >>conftest.$ac_ext <<_ACEOF
24963 /* end confdefs.h. */
24964 #include <$ac_header>
24965 _ACEOF
24966 if { (ac_try="$ac_cpp conftest.$ac_ext"
24967 case "(($ac_try" in
24968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24969 *) ac_try_echo=$ac_try;;
24970 esac
24971 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24972 $as_echo "$ac_try_echo") >&5
24973 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24974 ac_status=$?
24975 grep -v '^ *+' conftest.er1 >conftest.err
24976 rm -f conftest.er1
24977 cat conftest.err >&5
24978 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24979 (exit $ac_status); } >/dev/null && {
24980 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24981 test ! -s conftest.err
24982 }; then
24983 ac_header_preproc=yes
24984 else
24985 $as_echo "$as_me: failed program was:" >&5
24986 sed 's/^/| /' conftest.$ac_ext >&5
24987
24988 ac_header_preproc=no
24989 fi
24990
24991 rm -f conftest.err conftest.$ac_ext
24992 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24993 $as_echo "$ac_header_preproc" >&6; }
24994
24995 # So? What about this header?
24996 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24997 yes:no: )
24998 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24999 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25000 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25001 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25002 ac_header_preproc=yes
25003 ;;
25004 no:yes:* )
25005 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25006 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25007 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25008 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25009 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25010 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25011 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25012 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25013 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25014 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25015 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25016 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25017
25018 ;;
25019 esac
25020 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25021 $as_echo_n "checking for $ac_header... " >&6; }
25022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25023 $as_echo_n "(cached) " >&6
25024 else
25025 eval "$as_ac_Header=\$ac_header_preproc"
25026 fi
25027 ac_res=`eval 'as_val=${'$as_ac_Header'}
25028 $as_echo "$as_val"'`
25029 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25030 $as_echo "$ac_res" >&6; }
25031
25032 fi
25033 if test `eval 'as_val=${'$as_ac_Header'}
25034 $as_echo "$as_val"'` = yes; then
25035 cat >>confdefs.h <<_ACEOF
25036 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25037 _ACEOF
25038
25039 fi
25040
25041 done
25042
25043
25044
25045 for ac_func in fork vfork
25046 do
25047 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25048 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25049 $as_echo_n "checking for $ac_func... " >&6; }
25050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25051 $as_echo_n "(cached) " >&6
25052 else
25053 cat >conftest.$ac_ext <<_ACEOF
25054 /* confdefs.h. */
25055 _ACEOF
25056 cat confdefs.h >>conftest.$ac_ext
25057 cat >>conftest.$ac_ext <<_ACEOF
25058 /* end confdefs.h. */
25059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25060 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25061 #define $ac_func innocuous_$ac_func
25062
25063 /* System header to define __stub macros and hopefully few prototypes,
25064 which can conflict with char $ac_func (); below.
25065 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25066 <limits.h> exists even on freestanding compilers. */
25067
25068 #ifdef __STDC__
25069 # include <limits.h>
25070 #else
25071 # include <assert.h>
25072 #endif
25073
25074 #undef $ac_func
25075
25076 /* Override any GCC internal prototype to avoid an error.
25077 Use char because int might match the return type of a GCC
25078 builtin and then its argument prototype would still apply. */
25079 #ifdef __cplusplus
25080 extern "C"
25081 #endif
25082 char $ac_func ();
25083 /* The GNU C library defines this for functions which it implements
25084 to always fail with ENOSYS. Some functions are actually named
25085 something starting with __ and the normal name is an alias. */
25086 #if defined __stub_$ac_func || defined __stub___$ac_func
25087 choke me
25088 #endif
25089
25090 int
25091 main ()
25092 {
25093 return $ac_func ();
25094 ;
25095 return 0;
25096 }
25097 _ACEOF
25098 rm -f conftest.$ac_objext conftest$ac_exeext
25099 if { (ac_try="$ac_link"
25100 case "(($ac_try" in
25101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25102 *) ac_try_echo=$ac_try;;
25103 esac
25104 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25105 $as_echo "$ac_try_echo") >&5
25106 (eval "$ac_link") 2>conftest.er1
25107 ac_status=$?
25108 grep -v '^ *+' conftest.er1 >conftest.err
25109 rm -f conftest.er1
25110 cat conftest.err >&5
25111 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25112 (exit $ac_status); } && {
25113 test -z "$ac_c_werror_flag" ||
25114 test ! -s conftest.err
25115 } && test -s conftest$ac_exeext && {
25116 test "$cross_compiling" = yes ||
25117 $as_test_x conftest$ac_exeext
25118 }; then
25119 eval "$as_ac_var=yes"
25120 else
25121 $as_echo "$as_me: failed program was:" >&5
25122 sed 's/^/| /' conftest.$ac_ext >&5
25123
25124 eval "$as_ac_var=no"
25125 fi
25126
25127 rm -rf conftest.dSYM
25128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25129 conftest$ac_exeext conftest.$ac_ext
25130 fi
25131 ac_res=`eval 'as_val=${'$as_ac_var'}
25132 $as_echo "$as_val"'`
25133 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25134 $as_echo "$ac_res" >&6; }
25135 if test `eval 'as_val=${'$as_ac_var'}
25136 $as_echo "$as_val"'` = yes; then
25137 cat >>confdefs.h <<_ACEOF
25138 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25139 _ACEOF
25140
25141 fi
25142 done
25143
25144 if test "x$ac_cv_func_fork" = xyes; then
25145 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25146 $as_echo_n "checking for working fork... " >&6; }
25147 if test "${ac_cv_func_fork_works+set}" = set; then
25148 $as_echo_n "(cached) " >&6
25149 else
25150 if test "$cross_compiling" = yes; then
25151 ac_cv_func_fork_works=cross
25152 else
25153 cat >conftest.$ac_ext <<_ACEOF
25154 /* confdefs.h. */
25155 _ACEOF
25156 cat confdefs.h >>conftest.$ac_ext
25157 cat >>conftest.$ac_ext <<_ACEOF
25158 /* end confdefs.h. */
25159 $ac_includes_default
25160 int
25161 main ()
25162 {
25163
25164 /* By Ruediger Kuhlmann. */
25165 return fork () < 0;
25166
25167 ;
25168 return 0;
25169 }
25170 _ACEOF
25171 rm -f conftest$ac_exeext
25172 if { (ac_try="$ac_link"
25173 case "(($ac_try" in
25174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25175 *) ac_try_echo=$ac_try;;
25176 esac
25177 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25178 $as_echo "$ac_try_echo") >&5
25179 (eval "$ac_link") 2>&5
25180 ac_status=$?
25181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25182 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25183 { (case "(($ac_try" in
25184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25185 *) ac_try_echo=$ac_try;;
25186 esac
25187 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25188 $as_echo "$ac_try_echo") >&5
25189 (eval "$ac_try") 2>&5
25190 ac_status=$?
25191 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); }; }; then
25193 ac_cv_func_fork_works=yes 13003 ac_cv_func_fork_works=yes
25194 else 13004 else
25195 $as_echo "$as_me: program exited with status $ac_status" >&5 13005 ac_cv_func_fork_works=no
25196 $as_echo "$as_me: failed program was:" >&5 13006 fi
25197 sed 's/^/| /' conftest.$ac_ext >&5 13007 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25198 13008 conftest.$ac_objext conftest.beam conftest.$ac_ext
25199 ( exit $ac_status ) 13009 fi
25200 ac_cv_func_fork_works=no 13010
25201 fi 13011 fi
25202 rm -rf conftest.dSYM 13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25204 fi
25205
25206
25207 fi
25208 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25209 $as_echo "$ac_cv_func_fork_works" >&6; } 13013 $as_echo "$ac_cv_func_fork_works" >&6; }
25210 13014
25211 else 13015 else
25212 ac_cv_func_fork_works=$ac_cv_func_fork 13016 ac_cv_func_fork_works=$ac_cv_func_fork
25213 fi 13017 fi
25219 ;; 13023 ;;
25220 *) 13024 *)
25221 ac_cv_func_fork_works=yes 13025 ac_cv_func_fork_works=yes
25222 ;; 13026 ;;
25223 esac 13027 esac
25224 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 13028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25225 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 13029 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25226 fi 13030 fi
25227 ac_cv_func_vfork_works=$ac_cv_func_vfork 13031 ac_cv_func_vfork_works=$ac_cv_func_vfork
25228 if test "x$ac_cv_func_vfork" = xyes; then 13032 if test "x$ac_cv_func_vfork" = xyes; then
25229 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 13033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25230 $as_echo_n "checking for working vfork... " >&6; } 13034 $as_echo_n "checking for working vfork... " >&6; }
25231 if test "${ac_cv_func_vfork_works+set}" = set; then 13035 if test "${ac_cv_func_vfork_works+set}" = set; then :
25232 $as_echo_n "(cached) " >&6 13036 $as_echo_n "(cached) " >&6
25233 else 13037 else
25234 if test "$cross_compiling" = yes; then 13038 if test "$cross_compiling" = yes; then :
25235 ac_cv_func_vfork_works=cross 13039 ac_cv_func_vfork_works=cross
25236 else 13040 else
25237 cat >conftest.$ac_ext <<_ACEOF 13041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25238 /* confdefs.h. */
25239 _ACEOF
25240 cat confdefs.h >>conftest.$ac_ext
25241 cat >>conftest.$ac_ext <<_ACEOF
25242 /* end confdefs.h. */ 13042 /* end confdefs.h. */
25243 /* Thanks to Paul Eggert for this test. */ 13043 /* Thanks to Paul Eggert for this test. */
25244 $ac_includes_default 13044 $ac_includes_default
25245 #include <sys/wait.h> 13045 #include <sys/wait.h>
25246 #ifdef HAVE_VFORK_H 13046 #ifdef HAVE_VFORK_H
25328 || fstat(fileno(stdout), &st) != 0 13128 || fstat(fileno(stdout), &st) != 0
25329 ); 13129 );
25330 } 13130 }
25331 } 13131 }
25332 _ACEOF 13132 _ACEOF
25333 rm -f conftest$ac_exeext 13133 if ac_fn_c_try_run "$LINENO"; then :
25334 if { (ac_try="$ac_link"
25335 case "(($ac_try" in
25336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25337 *) ac_try_echo=$ac_try;;
25338 esac
25339 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25340 $as_echo "$ac_try_echo") >&5
25341 (eval "$ac_link") 2>&5
25342 ac_status=$?
25343 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25344 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25345 { (case "(($ac_try" in
25346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25347 *) ac_try_echo=$ac_try;;
25348 esac
25349 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25350 $as_echo "$ac_try_echo") >&5
25351 (eval "$ac_try") 2>&5
25352 ac_status=$?
25353 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25354 (exit $ac_status); }; }; then
25355 ac_cv_func_vfork_works=yes 13134 ac_cv_func_vfork_works=yes
25356 else 13135 else
25357 $as_echo "$as_me: program exited with status $ac_status" >&5 13136 ac_cv_func_vfork_works=no
25358 $as_echo "$as_me: failed program was:" >&5 13137 fi
25359 sed 's/^/| /' conftest.$ac_ext >&5 13138 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25360 13139 conftest.$ac_objext conftest.beam conftest.$ac_ext
25361 ( exit $ac_status ) 13140 fi
25362 ac_cv_func_vfork_works=no 13141
25363 fi 13142 fi
25364 rm -rf conftest.dSYM 13143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25365 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25366 fi
25367
25368
25369 fi
25370 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25371 $as_echo "$ac_cv_func_vfork_works" >&6; } 13144 $as_echo "$ac_cv_func_vfork_works" >&6; }
25372 13145
25373 fi; 13146 fi;
25374 if test "x$ac_cv_func_fork_works" = xcross; then 13147 if test "x$ac_cv_func_fork_works" = xcross; then
25375 ac_cv_func_vfork_works=$ac_cv_func_vfork 13148 ac_cv_func_vfork_works=$ac_cv_func_vfork
25376 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 13149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25377 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 13150 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25378 fi 13151 fi
25379 13152
25380 if test "x$ac_cv_func_vfork_works" = xyes; then 13153 if test "x$ac_cv_func_vfork_works" = xyes; then
25381 13154
25382 cat >>confdefs.h <<\_ACEOF 13155 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25383 #define HAVE_WORKING_VFORK 1 13156
25384 _ACEOF 13157 else
25385 13158
25386 else 13159 $as_echo "#define vfork fork" >>confdefs.h
25387
25388 cat >>confdefs.h <<\_ACEOF
25389 #define vfork fork
25390 _ACEOF
25391 13160
25392 fi 13161 fi
25393 if test "x$ac_cv_func_fork_works" = xyes; then 13162 if test "x$ac_cv_func_fork_works" = xyes; then
25394 13163
25395 cat >>confdefs.h <<\_ACEOF 13164 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25396 #define HAVE_WORKING_FORK 1 13165
25397 _ACEOF 13166 fi
25398 13167
25399 fi 13168
25400 13169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
25401
25402 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25403 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 13170 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25404 if test "${emacs_cv_langinfo_codeset+set}" = set; then 13171 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
25405 $as_echo_n "(cached) " >&6 13172 $as_echo_n "(cached) " >&6
25406 else 13173 else
25407 cat >conftest.$ac_ext <<_ACEOF 13174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25408 /* confdefs.h. */
25409 _ACEOF
25410 cat confdefs.h >>conftest.$ac_ext
25411 cat >>conftest.$ac_ext <<_ACEOF
25412 /* end confdefs.h. */ 13175 /* end confdefs.h. */
25413 #include <langinfo.h> 13176 #include <langinfo.h>
25414 int 13177 int
25415 main () 13178 main ()
25416 { 13179 {
25417 char* cs = nl_langinfo(CODESET); 13180 char* cs = nl_langinfo(CODESET);
25418 ; 13181 ;
25419 return 0; 13182 return 0;
25420 } 13183 }
25421 _ACEOF 13184 _ACEOF
25422 rm -f conftest.$ac_objext conftest$ac_exeext 13185 if ac_fn_c_try_link "$LINENO"; then :
25423 if { (ac_try="$ac_link"
25424 case "(($ac_try" in
25425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25426 *) ac_try_echo=$ac_try;;
25427 esac
25428 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25429 $as_echo "$ac_try_echo") >&5
25430 (eval "$ac_link") 2>conftest.er1
25431 ac_status=$?
25432 grep -v '^ *+' conftest.er1 >conftest.err
25433 rm -f conftest.er1
25434 cat conftest.err >&5
25435 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25436 (exit $ac_status); } && {
25437 test -z "$ac_c_werror_flag" ||
25438 test ! -s conftest.err
25439 } && test -s conftest$ac_exeext && {
25440 test "$cross_compiling" = yes ||
25441 $as_test_x conftest$ac_exeext
25442 }; then
25443 emacs_cv_langinfo_codeset=yes 13186 emacs_cv_langinfo_codeset=yes
25444 else 13187 else
25445 $as_echo "$as_me: failed program was:" >&5 13188 emacs_cv_langinfo_codeset=no
25446 sed 's/^/| /' conftest.$ac_ext >&5 13189 fi
25447 13190 rm -f core conftest.err conftest.$ac_objext \
25448 emacs_cv_langinfo_codeset=no 13191 conftest$ac_exeext conftest.$ac_ext
25449 fi 13192
25450 13193 fi
25451 rm -rf conftest.dSYM 13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
25452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25453 conftest$ac_exeext conftest.$ac_ext
25454
25455 fi
25456 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25457 $as_echo "$emacs_cv_langinfo_codeset" >&6; } 13195 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25458 if test $emacs_cv_langinfo_codeset = yes; then 13196 if test $emacs_cv_langinfo_codeset = yes; then
25459 13197
25460 cat >>confdefs.h <<\_ACEOF 13198 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
25461 #define HAVE_LANGINFO_CODESET 1 13199
25462 _ACEOF 13200 fi
25463 13201
25464 fi 13202 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25465 13203 if test "x$ac_cv_type_size_t" = x""yes; then :
25466 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25467 $as_echo_n "checking for size_t... " >&6; }
25468 if test "${ac_cv_type_size_t+set}" = set; then
25469 $as_echo_n "(cached) " >&6
25470 else
25471 ac_cv_type_size_t=no
25472 cat >conftest.$ac_ext <<_ACEOF
25473 /* confdefs.h. */
25474 _ACEOF
25475 cat confdefs.h >>conftest.$ac_ext
25476 cat >>conftest.$ac_ext <<_ACEOF
25477 /* end confdefs.h. */
25478 $ac_includes_default
25479 int
25480 main ()
25481 {
25482 if (sizeof (size_t))
25483 return 0;
25484 ;
25485 return 0;
25486 }
25487 _ACEOF
25488 rm -f conftest.$ac_objext
25489 if { (ac_try="$ac_compile"
25490 case "(($ac_try" in
25491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25492 *) ac_try_echo=$ac_try;;
25493 esac
25494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25495 $as_echo "$ac_try_echo") >&5
25496 (eval "$ac_compile") 2>conftest.er1
25497 ac_status=$?
25498 grep -v '^ *+' conftest.er1 >conftest.err
25499 rm -f conftest.er1
25500 cat conftest.err >&5
25501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25502 (exit $ac_status); } && {
25503 test -z "$ac_c_werror_flag" ||
25504 test ! -s conftest.err
25505 } && test -s conftest.$ac_objext; then
25506 cat >conftest.$ac_ext <<_ACEOF
25507 /* confdefs.h. */
25508 _ACEOF
25509 cat confdefs.h >>conftest.$ac_ext
25510 cat >>conftest.$ac_ext <<_ACEOF
25511 /* end confdefs.h. */
25512 $ac_includes_default
25513 int
25514 main ()
25515 {
25516 if (sizeof ((size_t)))
25517 return 0;
25518 ;
25519 return 0;
25520 }
25521 _ACEOF
25522 rm -f conftest.$ac_objext
25523 if { (ac_try="$ac_compile"
25524 case "(($ac_try" in
25525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25526 *) ac_try_echo=$ac_try;;
25527 esac
25528 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25529 $as_echo "$ac_try_echo") >&5
25530 (eval "$ac_compile") 2>conftest.er1
25531 ac_status=$?
25532 grep -v '^ *+' conftest.er1 >conftest.err
25533 rm -f conftest.er1
25534 cat conftest.err >&5
25535 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25536 (exit $ac_status); } && {
25537 test -z "$ac_c_werror_flag" ||
25538 test ! -s conftest.err
25539 } && test -s conftest.$ac_objext; then
25540 :
25541 else
25542 $as_echo "$as_me: failed program was:" >&5
25543 sed 's/^/| /' conftest.$ac_ext >&5
25544
25545 ac_cv_type_size_t=yes
25546 fi
25547
25548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25549 else
25550 $as_echo "$as_me: failed program was:" >&5
25551 sed 's/^/| /' conftest.$ac_ext >&5
25552
25553
25554 fi
25555
25556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25557 fi
25558 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25559 $as_echo "$ac_cv_type_size_t" >&6; }
25560 if test $ac_cv_type_size_t = yes; then
25561 13204
25562 cat >>confdefs.h <<_ACEOF 13205 cat >>confdefs.h <<_ACEOF
25563 #define HAVE_SIZE_T 1 13206 #define HAVE_SIZE_T 1
25564 _ACEOF 13207 _ACEOF
25565 13208
25566 13209
25567 fi 13210 fi
25568 13211
25569 13212
25570 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5 13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
25571 $as_echo_n "checking for mbstate_t... " >&6; } 13214 $as_echo_n "checking for mbstate_t... " >&6; }
25572 if test "${ac_cv_type_mbstate_t+set}" = set; then 13215 if test "${ac_cv_type_mbstate_t+set}" = set; then :
25573 $as_echo_n "(cached) " >&6 13216 $as_echo_n "(cached) " >&6
25574 else 13217 else
25575 cat >conftest.$ac_ext <<_ACEOF 13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25576 /* confdefs.h. */
25577 _ACEOF
25578 cat confdefs.h >>conftest.$ac_ext
25579 cat >>conftest.$ac_ext <<_ACEOF
25580 /* end confdefs.h. */ 13219 /* end confdefs.h. */
25581 $ac_includes_default 13220 $ac_includes_default
25582 # include <wchar.h> 13221 # include <wchar.h>
25583 int 13222 int
25584 main () 13223 main ()
25586 mbstate_t x; return sizeof x; 13225 mbstate_t x; return sizeof x;
25587 ; 13226 ;
25588 return 0; 13227 return 0;
25589 } 13228 }
25590 _ACEOF 13229 _ACEOF
25591 rm -f conftest.$ac_objext 13230 if ac_fn_c_try_compile "$LINENO"; then :
25592 if { (ac_try="$ac_compile"
25593 case "(($ac_try" in
25594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25595 *) ac_try_echo=$ac_try;;
25596 esac
25597 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25598 $as_echo "$ac_try_echo") >&5
25599 (eval "$ac_compile") 2>conftest.er1
25600 ac_status=$?
25601 grep -v '^ *+' conftest.er1 >conftest.err
25602 rm -f conftest.er1
25603 cat conftest.err >&5
25604 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25605 (exit $ac_status); } && {
25606 test -z "$ac_c_werror_flag" ||
25607 test ! -s conftest.err
25608 } && test -s conftest.$ac_objext; then
25609 ac_cv_type_mbstate_t=yes 13231 ac_cv_type_mbstate_t=yes
25610 else 13232 else
25611 $as_echo "$as_me: failed program was:" >&5 13233 ac_cv_type_mbstate_t=no
25612 sed 's/^/| /' conftest.$ac_ext >&5 13234 fi
25613
25614 ac_cv_type_mbstate_t=no
25615 fi
25616
25617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25618 fi 13236 fi
25619 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 13237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
25620 $as_echo "$ac_cv_type_mbstate_t" >&6; } 13238 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25621 if test $ac_cv_type_mbstate_t = yes; then 13239 if test $ac_cv_type_mbstate_t = yes; then
25622 13240
25623 cat >>confdefs.h <<\_ACEOF 13241 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
25624 #define HAVE_MBSTATE_T 1
25625 _ACEOF
25626 13242
25627 else 13243 else
25628 13244
25629 cat >>confdefs.h <<\_ACEOF 13245 $as_echo "#define mbstate_t int" >>confdefs.h
25630 #define mbstate_t int
25631 _ACEOF
25632 13246
25633 fi 13247 fi
25634 13248
25635 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5 13249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
25636 $as_echo_n "checking for C restrict keyword... " >&6; } 13250 $as_echo_n "checking for C restrict keyword... " >&6; }
25637 if test "${emacs_cv_c_restrict+set}" = set; then 13251 if test "${emacs_cv_c_restrict+set}" = set; then :
25638 $as_echo_n "(cached) " >&6 13252 $as_echo_n "(cached) " >&6
25639 else 13253 else
25640 cat >conftest.$ac_ext <<_ACEOF 13254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25641 /* confdefs.h. */
25642 _ACEOF
25643 cat confdefs.h >>conftest.$ac_ext
25644 cat >>conftest.$ac_ext <<_ACEOF
25645 /* end confdefs.h. */ 13255 /* end confdefs.h. */
25646 void fred (int *restrict x); 13256 void fred (int *restrict x);
25647 int 13257 int
25648 main () 13258 main ()
25649 { 13259 {
25650 13260
25651 ; 13261 ;
25652 return 0; 13262 return 0;
25653 } 13263 }
25654 _ACEOF 13264 _ACEOF
25655 rm -f conftest.$ac_objext 13265 if ac_fn_c_try_compile "$LINENO"; then :
25656 if { (ac_try="$ac_compile"
25657 case "(($ac_try" in
25658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25659 *) ac_try_echo=$ac_try;;
25660 esac
25661 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25662 $as_echo "$ac_try_echo") >&5
25663 (eval "$ac_compile") 2>conftest.er1
25664 ac_status=$?
25665 grep -v '^ *+' conftest.er1 >conftest.err
25666 rm -f conftest.er1
25667 cat conftest.err >&5
25668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25669 (exit $ac_status); } && {
25670 test -z "$ac_c_werror_flag" ||
25671 test ! -s conftest.err
25672 } && test -s conftest.$ac_objext; then
25673 emacs_cv_c_restrict=yes 13266 emacs_cv_c_restrict=yes
25674 else 13267 else
25675 $as_echo "$as_me: failed program was:" >&5 13268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25676 sed 's/^/| /' conftest.$ac_ext >&5
25677
25678 cat >conftest.$ac_ext <<_ACEOF
25679 /* confdefs.h. */
25680 _ACEOF
25681 cat confdefs.h >>conftest.$ac_ext
25682 cat >>conftest.$ac_ext <<_ACEOF
25683 /* end confdefs.h. */ 13269 /* end confdefs.h. */
25684 void fred (int *__restrict x); 13270 void fred (int *__restrict x);
25685 int 13271 int
25686 main () 13272 main ()
25687 { 13273 {
25688 13274
25689 ; 13275 ;
25690 return 0; 13276 return 0;
25691 } 13277 }
25692 _ACEOF 13278 _ACEOF
25693 rm -f conftest.$ac_objext 13279 if ac_fn_c_try_compile "$LINENO"; then :
25694 if { (ac_try="$ac_compile"
25695 case "(($ac_try" in
25696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25697 *) ac_try_echo=$ac_try;;
25698 esac
25699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25700 $as_echo "$ac_try_echo") >&5
25701 (eval "$ac_compile") 2>conftest.er1
25702 ac_status=$?
25703 grep -v '^ *+' conftest.er1 >conftest.err
25704 rm -f conftest.er1
25705 cat conftest.err >&5
25706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25707 (exit $ac_status); } && {
25708 test -z "$ac_c_werror_flag" ||
25709 test ! -s conftest.err
25710 } && test -s conftest.$ac_objext; then
25711 emacs_cv_c_restrict=__restrict 13280 emacs_cv_c_restrict=__restrict
25712 else 13281 else
25713 $as_echo "$as_me: failed program was:" >&5 13282 emacs_cv_c_restrict=no
25714 sed 's/^/| /' conftest.$ac_ext >&5 13283 fi
25715
25716 emacs_cv_c_restrict=no
25717 fi
25718
25719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25720 fi 13285 fi
25721
25722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25723 fi 13287 fi
25724 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
25725 $as_echo "$emacs_cv_c_restrict" >&6; } 13289 $as_echo "$emacs_cv_c_restrict" >&6; }
25726 case "$emacs_cv_c_restrict" in 13290 case "$emacs_cv_c_restrict" in
25727 yes) emacs_restrict=restrict;; 13291 yes) emacs_restrict=restrict;;
25728 no) emacs_restrict="";; 13292 no) emacs_restrict="";;
25729 *) emacs_restrict="$emacs_cv_c_restrict";; 13293 *) emacs_restrict="$emacs_cv_c_restrict";;
25734 #define __restrict $emacs_restrict 13298 #define __restrict $emacs_restrict
25735 _ACEOF 13299 _ACEOF
25736 13300
25737 fi 13301 fi
25738 13302
25739 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
25740 $as_echo_n "checking for C restricted array declarations... " >&6; } 13304 $as_echo_n "checking for C restricted array declarations... " >&6; }
25741 if test "${emacs_cv_c_restrict_arr+set}" = set; then 13305 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
25742 $as_echo_n "(cached) " >&6 13306 $as_echo_n "(cached) " >&6
25743 else 13307 else
25744 cat >conftest.$ac_ext <<_ACEOF 13308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25745 /* confdefs.h. */
25746 _ACEOF
25747 cat confdefs.h >>conftest.$ac_ext
25748 cat >>conftest.$ac_ext <<_ACEOF
25749 /* end confdefs.h. */ 13309 /* end confdefs.h. */
25750 void fred (int x[__restrict]); 13310 void fred (int x[__restrict]);
25751 int 13311 int
25752 main () 13312 main ()
25753 { 13313 {
25754 13314
25755 ; 13315 ;
25756 return 0; 13316 return 0;
25757 } 13317 }
25758 _ACEOF 13318 _ACEOF
25759 rm -f conftest.$ac_objext 13319 if ac_fn_c_try_compile "$LINENO"; then :
25760 if { (ac_try="$ac_compile"
25761 case "(($ac_try" in
25762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25763 *) ac_try_echo=$ac_try;;
25764 esac
25765 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25766 $as_echo "$ac_try_echo") >&5
25767 (eval "$ac_compile") 2>conftest.er1
25768 ac_status=$?
25769 grep -v '^ *+' conftest.er1 >conftest.err
25770 rm -f conftest.er1
25771 cat conftest.err >&5
25772 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25773 (exit $ac_status); } && {
25774 test -z "$ac_c_werror_flag" ||
25775 test ! -s conftest.err
25776 } && test -s conftest.$ac_objext; then
25777 emacs_cv_c_restrict_arr=yes 13320 emacs_cv_c_restrict_arr=yes
25778 else 13321 else
25779 $as_echo "$as_me: failed program was:" >&5 13322 emacs_cv_c_restrict_arr=no
25780 sed 's/^/| /' conftest.$ac_ext >&5 13323 fi
25781
25782 emacs_cv_c_restrict_arr=no
25783 fi
25784
25785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25786 fi 13325 fi
25787 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
25788 $as_echo "$emacs_cv_c_restrict_arr" >&6; } 13327 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25789 if test "$emacs_cv_c_restrict_arr" = yes; then 13328 if test "$emacs_cv_c_restrict_arr" = yes; then
25790 13329
25791 cat >>confdefs.h <<\_ACEOF 13330 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
25792 #define __restrict_arr __restrict
25793 _ACEOF
25794 13331
25795 fi 13332 fi
25796 13333
25797 13334
25798 13335
25802 13339
25803 #### Find out which version of Emacs this is. 13340 #### Find out which version of Emacs this is.
25804 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ 13341 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25805 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 13342 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25806 if test x"${version}" = x; then 13343 if test x"${version}" = x; then
25807 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 13344 as_fn_error "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
25808 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25809 { (exit 1); exit 1; }; }
25810 fi 13345 fi
25811 if test x"${version}" != x"$PACKAGE_VERSION"; then 13346 if test x"${version}" != x"$PACKAGE_VERSION"; then
25812 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5 13347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25813 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;} 13348 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25814 fi 13349 fi
25815 13350
25816 ### Specify what sort of things we'll be editing into Makefile and config.h. 13351 ### Specify what sort of things we'll be editing into Makefile and config.h.
25817 ### Use configuration here uncanonicalized to avoid exceeding size limits. 13352 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25901 13436
25902 XMENU_OBJ= 13437 XMENU_OBJ=
25903 XOBJ= 13438 XOBJ=
25904 if test "${HAVE_X_WINDOWS}" = "yes" ; then 13439 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25905 13440
25906 cat >>confdefs.h <<\_ACEOF 13441 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
25907 #define HAVE_X_WINDOWS 1
25908 _ACEOF
25909 13442
25910 XMENU_OBJ=xmenu.o 13443 XMENU_OBJ=xmenu.o
25911 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o" 13444 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
25912 fi 13445 fi
25913 13446
25914 13447
25915 13448
25916 if test "${USE_X_TOOLKIT}" != "none" ; then 13449 if test "${USE_X_TOOLKIT}" != "none" ; then
25917 13450
25918 cat >>confdefs.h <<\_ACEOF 13451 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
25919 #define USE_X_TOOLKIT 1
25920 _ACEOF
25921 13452
25922 if test "${USE_X_TOOLKIT}" = "LUCID"; then 13453 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25923 13454
25924 cat >>confdefs.h <<\_ACEOF 13455 $as_echo "#define USE_LUCID 1" >>confdefs.h
25925 #define USE_LUCID 1
25926 _ACEOF
25927 13456
25928 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then 13457 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25929 13458
25930 cat >>confdefs.h <<\_ACEOF 13459 $as_echo "#define USE_MOTIF 1" >>confdefs.h
25931 #define USE_MOTIF 1
25932 _ACEOF
25933 13460
25934 fi 13461 fi
25935 fi 13462 fi
25936 if test "${HAVE_X11}" = "yes" ; then 13463 if test "${HAVE_X11}" = "yes" ; then
25937 13464
25938 cat >>confdefs.h <<\_ACEOF 13465 $as_echo "#define HAVE_X11 1" >>confdefs.h
25939 #define HAVE_X11 1
25940 _ACEOF
25941 13466
25942 fi 13467 fi
25943 if test "${HAVE_MENUS}" = "yes" ; then 13468 if test "${HAVE_MENUS}" = "yes" ; then
25944 13469
25945 cat >>confdefs.h <<\_ACEOF 13470 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
25946 #define HAVE_MENUS 1
25947 _ACEOF
25948 13471
25949 fi 13472 fi
25950 if test "${GNU_MALLOC}" = "yes" ; then 13473 if test "${GNU_MALLOC}" = "yes" ; then
25951 13474
25952 cat >>confdefs.h <<\_ACEOF 13475 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
25953 #define GNU_MALLOC 1
25954 _ACEOF
25955 13476
25956 fi 13477 fi
25957 if test "${REL_ALLOC}" = "yes" ; then 13478 if test "${REL_ALLOC}" = "yes" ; then
25958 13479
25959 cat >>confdefs.h <<\_ACEOF 13480 $as_echo "#define REL_ALLOC 1" >>confdefs.h
25960 #define REL_ALLOC 1 13481
25961 _ACEOF 13482 fi
25962
25963 fi
25964
25965
25966 13483
25967 13484
25968 13485
25969 13486
25970 #### Report on what we decided to do. 13487 #### Report on what we decided to do.
26057 # or the ${configuration} value might, just might, happen to be an 13574 # or the ${configuration} value might, just might, happen to be an
26058 # identifier like `sun4' or `i386' or something, and be predefined by 13575 # identifier like `sun4' or `i386' or something, and be predefined by
26059 # the C preprocessor to some helpful value like 1, or maybe the empty 13576 # the C preprocessor to some helpful value like 1, or maybe the empty
26060 # string. Needless to say consequent macro substitutions are less 13577 # string. Needless to say consequent macro substitutions are less
26061 # than conducive to the makefile finding the correct directory. 13578 # than conducive to the makefile finding the correct directory.
26062 cpp_undefs="`echo $srcdir $configuration $canonical | 13579 cpp_undefs="`echo $srcdir $configuration $canonical unix |
26063 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \ 13580 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
26064 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`" 13581 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
26065 13582
26066 ## Check if the C preprocessor will convert `..' to `. .'. If so, set 13583 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26067 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile 13584 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26068 ## from Makefile.c can correctly provide the arg `-traditional' to the 13585 ## from Makefile.c can correctly provide the arg `-traditional' to the
26069 ## C preprocessor. 13586 ## C preprocessor.
26070 13587
26071 cat >conftest.$ac_ext <<_ACEOF 13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26072 /* confdefs.h. */
26073 _ACEOF
26074 cat confdefs.h >>conftest.$ac_ext
26075 cat >>conftest.$ac_ext <<_ACEOF
26076 /* end confdefs.h. */ 13589 /* end confdefs.h. */
26077 yes..yes 13590 yes..yes
26078 _ACEOF 13591 _ACEOF
26079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13592 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26080 $EGREP "yes..yes" >/dev/null 2>&1; then 13593 $EGREP "yes..yes" >/dev/null 2>&1; then :
26081 CPP_NEED_TRADITIONAL=no 13594 CPP_NEED_TRADITIONAL=no
26082 else 13595 else
26083 CPP_NEED_TRADITIONAL=yes 13596 CPP_NEED_TRADITIONAL=yes
26084 fi 13597 fi
26085 rm -f conftest* 13598 rm -f conftest*
26114 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13627 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26115 eval ac_val=\$$ac_var 13628 eval ac_val=\$$ac_var
26116 case $ac_val in #( 13629 case $ac_val in #(
26117 *${as_nl}*) 13630 *${as_nl}*)
26118 case $ac_var in #( 13631 case $ac_var in #(
26119 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 13632 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26120 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 13633 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26121 esac 13634 esac
26122 case $ac_var in #( 13635 case $ac_var in #(
26123 _ | IFS | as_nl) ;; #( 13636 _ | IFS | as_nl) ;; #(
26124 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13637 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26125 *) $as_unset $ac_var ;; 13638 *) { eval $ac_var=; unset $ac_var;} ;;
26126 esac ;; 13639 esac ;;
26127 esac 13640 esac
26128 done 13641 done
26129 13642
26130 (set) 2>&1 | 13643 (set) 2>&1 |
26131 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13644 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26132 *${as_nl}ac_space=\ *) 13645 *${as_nl}ac_space=\ *)
26133 # `set' does not quote correctly, so add quotes (double-quote 13646 # `set' does not quote correctly, so add quotes: double-quote
26134 # substitution turns \\\\ into \\, and sed turns \\ into \). 13647 # substitution turns \\\\ into \\, and sed turns \\ into \.
26135 sed -n \ 13648 sed -n \
26136 "s/'/'\\\\''/g; 13649 "s/'/'\\\\''/g;
26137 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13650 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26138 ;; #( 13651 ;; #(
26139 *) 13652 *)
26152 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13665 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26153 :end' >>confcache 13666 :end' >>confcache
26154 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13667 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26155 if test -w "$cache_file"; then 13668 if test -w "$cache_file"; then
26156 test "x$cache_file" != "x/dev/null" && 13669 test "x$cache_file" != "x/dev/null" &&
26157 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13670 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26158 $as_echo "$as_me: updating cache $cache_file" >&6;} 13671 $as_echo "$as_me: updating cache $cache_file" >&6;}
26159 cat confcache >$cache_file 13672 cat confcache >$cache_file
26160 else 13673 else
26161 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13674 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26162 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13675 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26163 fi 13676 fi
26164 fi 13677 fi
26165 rm -f confcache 13678 rm -f confcache
26166 13679
26176 # 1. Remove the extension, and $U if already installed. 13689 # 1. Remove the extension, and $U if already installed.
26177 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13690 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26178 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13691 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26179 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13692 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26180 # will be set to the directory where LIBOBJS objects are built. 13693 # will be set to the directory where LIBOBJS objects are built.
26181 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13694 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26182 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13695 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26183 done 13696 done
26184 LIBOBJS=$ac_libobjs 13697 LIBOBJS=$ac_libobjs
26185 13698
26186 LTLIBOBJS=$ac_ltlibobjs 13699 LTLIBOBJS=$ac_ltlibobjs
26187 13700
26189 13702
26190 : ${CONFIG_STATUS=./config.status} 13703 : ${CONFIG_STATUS=./config.status}
26191 ac_write_fail=0 13704 ac_write_fail=0
26192 ac_clean_files_save=$ac_clean_files 13705 ac_clean_files_save=$ac_clean_files
26193 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13706 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26194 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26195 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13708 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26196 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13709 as_write_fail=0
13710 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26197 #! $SHELL 13711 #! $SHELL
26198 # Generated by $as_me. 13712 # Generated by $as_me.
26199 # Run this file to recreate the current configuration. 13713 # Run this file to recreate the current configuration.
26200 # Compiler output produced by configure, useful for debugging 13714 # Compiler output produced by configure, useful for debugging
26201 # configure, is in config.log if it exists. 13715 # configure, is in config.log if it exists.
26202 13716
26203 debug=false 13717 debug=false
26204 ac_cs_recheck=false 13718 ac_cs_recheck=false
26205 ac_cs_silent=false 13719 ac_cs_silent=false
13720
26206 SHELL=\${CONFIG_SHELL-$SHELL} 13721 SHELL=\${CONFIG_SHELL-$SHELL}
26207 _ACEOF 13722 export SHELL
26208 13723 _ASEOF
26209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13724 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26210 ## --------------------- ## 13725 ## -------------------- ##
26211 ## M4sh Initialization. ## 13726 ## M4sh Initialization. ##
26212 ## --------------------- ## 13727 ## -------------------- ##
26213 13728
26214 # Be more Bourne compatible 13729 # Be more Bourne compatible
26215 DUALCASE=1; export DUALCASE # for MKS sh 13730 DUALCASE=1; export DUALCASE # for MKS sh
26216 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13731 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26217 emulate sh 13732 emulate sh
26218 NULLCMD=: 13733 NULLCMD=:
26219 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13734 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26220 # is contrary to our usage. Disable this feature. 13735 # is contrary to our usage. Disable this feature.
26221 alias -g '${1+"$@"}'='"$@"' 13736 alias -g '${1+"$@"}'='"$@"'
26222 setopt NO_GLOB_SUBST 13737 setopt NO_GLOB_SUBST
26223 else 13738 else
26224 case `(set -o) 2>/dev/null` in 13739 case `(set -o) 2>/dev/null` in #(
26225 *posix*) set -o posix ;; 13740 *posix*) :
13741 set -o posix ;; #(
13742 *) :
13743 ;;
26226 esac 13744 esac
26227 13745 fi
26228 fi 13746
26229
26230
26231
26232
26233 # PATH needs CR
26234 # Avoid depending upon Character Ranges.
26235 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26236 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26237 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26238 as_cr_digits='0123456789'
26239 as_cr_alnum=$as_cr_Letters$as_cr_digits
26240 13747
26241 as_nl=' 13748 as_nl='
26242 ' 13749 '
26243 export as_nl 13750 export as_nl
26244 # Printing a long string crashes Solaris 7 /usr/bin/printf. 13751 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26245 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13752 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26246 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13753 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26247 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13754 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26248 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13755 # Prefer a ksh shell builtin over an external printf program on Solaris,
13756 # but without wasting forks for bash or zsh.
13757 if test -z "$BASH_VERSION$ZSH_VERSION" \
13758 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13759 as_echo='print -r --'
13760 as_echo_n='print -rn --'
13761 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26249 as_echo='printf %s\n' 13762 as_echo='printf %s\n'
26250 as_echo_n='printf %s' 13763 as_echo_n='printf %s'
26251 else 13764 else
26252 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13765 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26253 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13766 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26254 as_echo_n='/usr/ucb/echo -n' 13767 as_echo_n='/usr/ucb/echo -n'
26255 else 13768 else
26256 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13769 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26257 as_echo_n_body='eval 13770 as_echo_n_body='eval
26258 arg=$1; 13771 arg=$1;
26259 case $arg in 13772 case $arg in #(
26260 *"$as_nl"*) 13773 *"$as_nl"*)
26261 expr "X$arg" : "X\\(.*\\)$as_nl"; 13774 expr "X$arg" : "X\\(.*\\)$as_nl";
26262 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13775 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26263 esac; 13776 esac;
26264 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13777 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26277 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13790 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26278 PATH_SEPARATOR=';' 13791 PATH_SEPARATOR=';'
26279 } 13792 }
26280 fi 13793 fi
26281 13794
26282 # Support unset when possible.
26283 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26284 as_unset=unset
26285 else
26286 as_unset=false
26287 fi
26288
26289 13795
26290 # IFS 13796 # IFS
26291 # We need space, tab and new line, in precisely that order. Quoting is 13797 # We need space, tab and new line, in precisely that order. Quoting is
26292 # there to prevent editors from complaining about space-tab. 13798 # there to prevent editors from complaining about space-tab.
26293 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 13799 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26294 # splitting by setting IFS to empty value.) 13800 # splitting by setting IFS to empty value.)
26295 IFS=" "" $as_nl" 13801 IFS=" "" $as_nl"
26296 13802
26297 # Find who we are. Look in the path if we contain no directory separator. 13803 # Find who we are. Look in the path if we contain no directory separator.
26298 case $0 in 13804 case $0 in #((
26299 *[\\/]* ) as_myself=$0 ;; 13805 *[\\/]* ) as_myself=$0 ;;
26300 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13806 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26301 for as_dir in $PATH 13807 for as_dir in $PATH
26302 do 13808 do
26303 IFS=$as_save_IFS 13809 IFS=$as_save_IFS
26304 test -z "$as_dir" && as_dir=. 13810 test -z "$as_dir" && as_dir=.
26305 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13811 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26306 done 13812 done
26307 IFS=$as_save_IFS 13813 IFS=$as_save_IFS
26308 13814
26309 ;; 13815 ;;
26310 esac 13816 esac
26311 # We did not find ourselves, most probably we were run as `sh COMMAND' 13817 # We did not find ourselves, most probably we were run as `sh COMMAND'
26313 if test "x$as_myself" = x; then 13819 if test "x$as_myself" = x; then
26314 as_myself=$0 13820 as_myself=$0
26315 fi 13821 fi
26316 if test ! -f "$as_myself"; then 13822 if test ! -f "$as_myself"; then
26317 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13823 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26318 { (exit 1); exit 1; } 13824 exit 1
26319 fi 13825 fi
26320 13826
26321 # Work around bugs in pre-3.0 UWIN ksh. 13827 # Unset variables that we do not need and which cause bugs (e.g. in
26322 for as_var in ENV MAIL MAILPATH 13828 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26323 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13829 # suppresses any "Segmentation fault" message there. '((' could
13830 # trigger a bug in pdksh 5.2.14.
13831 for as_var in BASH_ENV ENV MAIL MAILPATH
13832 do eval test x\${$as_var+set} = xset \
13833 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26324 done 13834 done
26325 PS1='$ ' 13835 PS1='$ '
26326 PS2='> ' 13836 PS2='> '
26327 PS4='+ ' 13837 PS4='+ '
26328 13838
26330 LC_ALL=C 13840 LC_ALL=C
26331 export LC_ALL 13841 export LC_ALL
26332 LANGUAGE=C 13842 LANGUAGE=C
26333 export LANGUAGE 13843 export LANGUAGE
26334 13844
26335 # Required to use basename. 13845 # CDPATH.
13846 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13847
13848
13849 # as_fn_error ERROR [LINENO LOG_FD]
13850 # ---------------------------------
13851 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13852 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13853 # script with status $?, using 1 if that was 0.
13854 as_fn_error ()
13855 {
13856 as_status=$?; test $as_status -eq 0 && as_status=1
13857 if test "$3"; then
13858 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13859 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13860 fi
13861 $as_echo "$as_me: error: $1" >&2
13862 as_fn_exit $as_status
13863 } # as_fn_error
13864
13865
13866 # as_fn_set_status STATUS
13867 # -----------------------
13868 # Set $? to STATUS, without forking.
13869 as_fn_set_status ()
13870 {
13871 return $1
13872 } # as_fn_set_status
13873
13874 # as_fn_exit STATUS
13875 # -----------------
13876 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13877 as_fn_exit ()
13878 {
13879 set +e
13880 as_fn_set_status $1
13881 exit $1
13882 } # as_fn_exit
13883
13884 # as_fn_unset VAR
13885 # ---------------
13886 # Portably unset VAR.
13887 as_fn_unset ()
13888 {
13889 { eval $1=; unset $1;}
13890 }
13891 as_unset=as_fn_unset
13892 # as_fn_append VAR VALUE
13893 # ----------------------
13894 # Append the text in VALUE to the end of the definition contained in VAR. Take
13895 # advantage of any shell optimizations that allow amortized linear growth over
13896 # repeated appends, instead of the typical quadratic growth present in naive
13897 # implementations.
13898 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13899 eval 'as_fn_append ()
13900 {
13901 eval $1+=\$2
13902 }'
13903 else
13904 as_fn_append ()
13905 {
13906 eval $1=\$$1\$2
13907 }
13908 fi # as_fn_append
13909
13910 # as_fn_arith ARG...
13911 # ------------------
13912 # Perform arithmetic evaluation on the ARGs, and store the result in the
13913 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13914 # must be portable across $(()) and expr.
13915 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13916 eval 'as_fn_arith ()
13917 {
13918 as_val=$(( $* ))
13919 }'
13920 else
13921 as_fn_arith ()
13922 {
13923 as_val=`expr "$@" || test $? -eq 1`
13924 }
13925 fi # as_fn_arith
13926
13927
26336 if expr a : '\(a\)' >/dev/null 2>&1 && 13928 if expr a : '\(a\)' >/dev/null 2>&1 &&
26337 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13929 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26338 as_expr=expr 13930 as_expr=expr
26339 else 13931 else
26340 as_expr=false 13932 as_expr=false
26344 as_basename=basename 13936 as_basename=basename
26345 else 13937 else
26346 as_basename=false 13938 as_basename=false
26347 fi 13939 fi
26348 13940
26349 13941 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26350 # Name of the executable. 13942 as_dirname=dirname
13943 else
13944 as_dirname=false
13945 fi
13946
26351 as_me=`$as_basename -- "$0" || 13947 as_me=`$as_basename -- "$0" ||
26352 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13948 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26353 X"$0" : 'X\(//\)$' \| \ 13949 X"$0" : 'X\(//\)$' \| \
26354 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13950 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26355 $as_echo X/"$0" | 13951 $as_echo X/"$0" |
26365 s//\1/ 13961 s//\1/
26366 q 13962 q
26367 } 13963 }
26368 s/.*/./; q'` 13964 s/.*/./; q'`
26369 13965
26370 # CDPATH. 13966 # Avoid depending upon Character Ranges.
26371 $as_unset CDPATH 13967 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26372 13968 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26373 13969 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26374 13970 as_cr_digits='0123456789'
26375 as_lineno_1=$LINENO 13971 as_cr_alnum=$as_cr_Letters$as_cr_digits
26376 as_lineno_2=$LINENO
26377 test "x$as_lineno_1" != "x$as_lineno_2" &&
26378 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26379
26380 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26381 # uniformly replaced by the line number. The first 'sed' inserts a
26382 # line-number line after each line using $LINENO; the second 'sed'
26383 # does the real work. The second script uses 'N' to pair each
26384 # line-number line with the line containing $LINENO, and appends
26385 # trailing '-' during substitution so that $LINENO is not a special
26386 # case at line end.
26387 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26388 # scripts with optimization help from Paolo Bonzini. Blame Lee
26389 # E. McMahon (1931-1989) for sed's syntax. :-)
26390 sed -n '
26391 p
26392 /[$]LINENO/=
26393 ' <$as_myself |
26394 sed '
26395 s/[$]LINENO.*/&-/
26396 t lineno
26397 b
26398 :lineno
26399 N
26400 :loop
26401 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26402 t loop
26403 s/-\n.*//
26404 ' >$as_me.lineno &&
26405 chmod +x "$as_me.lineno" ||
26406 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26407 { (exit 1); exit 1; }; }
26408
26409 # Don't try to exec as it changes $[0], causing all sort of problems
26410 # (the dirname of $[0] is not the place where we might find the
26411 # original and so on. Autoconf is especially sensitive to this).
26412 . "./$as_me.lineno"
26413 # Exit status is that of the last command.
26414 exit
26415 }
26416
26417
26418 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26419 as_dirname=dirname
26420 else
26421 as_dirname=false
26422 fi
26423 13972
26424 ECHO_C= ECHO_N= ECHO_T= 13973 ECHO_C= ECHO_N= ECHO_T=
26425 case `echo -n x` in 13974 case `echo -n x` in #(((((
26426 -n*) 13975 -n*)
26427 case `echo 'x\c'` in 13976 case `echo 'xy\c'` in
26428 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 13977 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26429 *) ECHO_C='\c';; 13978 xy) ECHO_C='\c';;
13979 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
13980 ECHO_T=' ';;
26430 esac;; 13981 esac;;
26431 *) 13982 *)
26432 ECHO_N='-n';; 13983 ECHO_N='-n';;
26433 esac 13984 esac
26434 if expr a : '\(a\)' >/dev/null 2>&1 &&
26435 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26436 as_expr=expr
26437 else
26438 as_expr=false
26439 fi
26440 13985
26441 rm -f conf$$ conf$$.exe conf$$.file 13986 rm -f conf$$ conf$$.exe conf$$.file
26442 if test -d conf$$.dir; then 13987 if test -d conf$$.dir; then
26443 rm -f conf$$.dir/conf$$.file 13988 rm -f conf$$.dir/conf$$.file
26444 else 13989 else
26463 as_ln_s='cp -p' 14008 as_ln_s='cp -p'
26464 fi 14009 fi
26465 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14010 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26466 rmdir conf$$.dir 2>/dev/null 14011 rmdir conf$$.dir 2>/dev/null
26467 14012
14013
14014 # as_fn_mkdir_p
14015 # -------------
14016 # Create "$as_dir" as a directory, including parents if necessary.
14017 as_fn_mkdir_p ()
14018 {
14019
14020 case $as_dir in #(
14021 -*) as_dir=./$as_dir;;
14022 esac
14023 test -d "$as_dir" || eval $as_mkdir_p || {
14024 as_dirs=
14025 while :; do
14026 case $as_dir in #(
14027 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14028 *) as_qdir=$as_dir;;
14029 esac
14030 as_dirs="'$as_qdir' $as_dirs"
14031 as_dir=`$as_dirname -- "$as_dir" ||
14032 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14033 X"$as_dir" : 'X\(//\)[^/]' \| \
14034 X"$as_dir" : 'X\(//\)$' \| \
14035 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14036 $as_echo X"$as_dir" |
14037 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14038 s//\1/
14039 q
14040 }
14041 /^X\(\/\/\)[^/].*/{
14042 s//\1/
14043 q
14044 }
14045 /^X\(\/\/\)$/{
14046 s//\1/
14047 q
14048 }
14049 /^X\(\/\).*/{
14050 s//\1/
14051 q
14052 }
14053 s/.*/./; q'`
14054 test -d "$as_dir" && break
14055 done
14056 test -z "$as_dirs" || eval "mkdir $as_dirs"
14057 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14058
14059
14060 } # as_fn_mkdir_p
26468 if mkdir -p . 2>/dev/null; then 14061 if mkdir -p . 2>/dev/null; then
26469 as_mkdir_p=: 14062 as_mkdir_p='mkdir -p "$as_dir"'
26470 else 14063 else
26471 test -d ./-p && rmdir ./-p 14064 test -d ./-p && rmdir ./-p
26472 as_mkdir_p=false 14065 as_mkdir_p=false
26473 fi 14066 fi
26474 14067
26483 as_test_x=' 14076 as_test_x='
26484 eval sh -c '\'' 14077 eval sh -c '\''
26485 if test -d "$1"; then 14078 if test -d "$1"; then
26486 test -d "$1/."; 14079 test -d "$1/.";
26487 else 14080 else
26488 case $1 in 14081 case $1 in #(
26489 -*)set "./$1";; 14082 -*)set "./$1";;
26490 esac; 14083 esac;
26491 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14084 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26492 ???[sx]*):;;*)false;;esac;fi 14085 ???[sx]*):;;*)false;;esac;fi
26493 '\'' sh 14086 '\'' sh
26494 ' 14087 '
26495 fi 14088 fi
26496 as_executable_p=$as_test_x 14089 as_executable_p=$as_test_x
26501 # Sed expression to map a string onto a valid variable name. 14094 # Sed expression to map a string onto a valid variable name.
26502 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14095 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26503 14096
26504 14097
26505 exec 6>&1 14098 exec 6>&1
26506 14099 ## ----------------------------------- ##
26507 # Save the log message, to keep $[0] and so on meaningful, and to 14100 ## Main body of $CONFIG_STATUS script. ##
14101 ## ----------------------------------- ##
14102 _ASEOF
14103 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14104
14105 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14106 # Save the log message, to keep $0 and so on meaningful, and to
26508 # report actual input values of CONFIG_FILES etc. instead of their 14107 # report actual input values of CONFIG_FILES etc. instead of their
26509 # values after options handling. 14108 # values after options handling.
26510 ac_log=" 14109 ac_log="
26511 This file was extended by emacs $as_me 24.0.50, which was 14110 This file was extended by emacs $as_me 24.0.50, which was
26512 generated by GNU Autoconf 2.62. Invocation command line was 14111 generated by GNU Autoconf 2.65. Invocation command line was
26513 14112
26514 CONFIG_FILES = $CONFIG_FILES 14113 CONFIG_FILES = $CONFIG_FILES
26515 CONFIG_HEADERS = $CONFIG_HEADERS 14114 CONFIG_HEADERS = $CONFIG_HEADERS
26516 CONFIG_LINKS = $CONFIG_LINKS 14115 CONFIG_LINKS = $CONFIG_LINKS
26517 CONFIG_COMMANDS = $CONFIG_COMMANDS 14116 CONFIG_COMMANDS = $CONFIG_COMMANDS
26520 on `(hostname || uname -n) 2>/dev/null | sed 1q` 14119 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26521 " 14120 "
26522 14121
26523 _ACEOF 14122 _ACEOF
26524 14123
14124 case $ac_config_files in *"
14125 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14126 esac
14127
14128 case $ac_config_headers in *"
14129 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14130 esac
14131
14132
26525 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26526 # Files that config.status was made for. 14134 # Files that config.status was made for.
26527 config_files="$ac_config_files" 14135 config_files="$ac_config_files"
26528 config_headers="$ac_config_headers" 14136 config_headers="$ac_config_headers"
26529 config_commands="$ac_config_commands" 14137 config_commands="$ac_config_commands"
26530 14138
26531 _ACEOF 14139 _ACEOF
26532 14140
26533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14141 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26534 ac_cs_usage="\ 14142 ac_cs_usage="\
26535 \`$as_me' instantiates files from templates according to the 14143 \`$as_me' instantiates files and other configuration actions
26536 current configuration. 14144 from templates according to the current configuration. Unless the files
26537 14145 and actions are specified as TAGs, all are instantiated by default.
26538 Usage: $0 [OPTIONS] [FILE]... 14146
14147 Usage: $0 [OPTION]... [TAG]...
26539 14148
26540 -h, --help print this help, then exit 14149 -h, --help print this help, then exit
26541 -V, --version print version number and configuration settings, then exit 14150 -V, --version print version number and configuration settings, then exit
26542 -q, --quiet do not print progress messages 14151 --config print configuration, then exit
14152 -q, --quiet, --silent
14153 do not print progress messages
26543 -d, --debug don't remove temporary files 14154 -d, --debug don't remove temporary files
26544 --recheck update $as_me by reconfiguring in the same conditions 14155 --recheck update $as_me by reconfiguring in the same conditions
26545 --file=FILE[:TEMPLATE] 14156 --file=FILE[:TEMPLATE]
26546 instantiate the configuration file FILE 14157 instantiate the configuration file FILE
26547 --header=FILE[:TEMPLATE] 14158 --header=FILE[:TEMPLATE]
26548 instantiate the configuration header FILE 14159 instantiate the configuration header FILE
26549 14160
26550 Configuration files: 14161 Configuration files:
26551 $config_files 14162 $config_files
26552 14163
26554 $config_headers 14165 $config_headers
26555 14166
26556 Configuration commands: 14167 Configuration commands:
26557 $config_commands 14168 $config_commands
26558 14169
26559 Report bugs to <bug-autoconf@gnu.org>." 14170 Report bugs to the package provider."
26560 14171
26561 _ACEOF 14172 _ACEOF
26562 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14174 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26563 ac_cs_version="\\ 14175 ac_cs_version="\\
26564 emacs config.status 24.0.50 14176 emacs config.status 24.0.50
26565 configured by $0, generated by GNU Autoconf 2.62, 14177 configured by $0, generated by GNU Autoconf 2.65,
26566 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14178 with options \\"\$ac_cs_config\\"
26567 14179
26568 Copyright (C) 2008 Free Software Foundation, Inc. 14180 Copyright (C) 2009 Free Software Foundation, Inc.
26569 This config.status script is free software; the Free Software Foundation 14181 This config.status script is free software; the Free Software Foundation
26570 gives unlimited permission to copy, distribute and modify it." 14182 gives unlimited permission to copy, distribute and modify it."
26571 14183
26572 ac_pwd='$ac_pwd' 14184 ac_pwd='$ac_pwd'
26573 srcdir='$srcdir' 14185 srcdir='$srcdir'
26597 # Handling of the options. 14209 # Handling of the options.
26598 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14210 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26599 ac_cs_recheck=: ;; 14211 ac_cs_recheck=: ;;
26600 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14212 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26601 $as_echo "$ac_cs_version"; exit ;; 14213 $as_echo "$ac_cs_version"; exit ;;
14214 --config | --confi | --conf | --con | --co | --c )
14215 $as_echo "$ac_cs_config"; exit ;;
26602 --debug | --debu | --deb | --de | --d | -d ) 14216 --debug | --debu | --deb | --de | --d | -d )
26603 debug=: ;; 14217 debug=: ;;
26604 --file | --fil | --fi | --f ) 14218 --file | --fil | --fi | --f )
26605 $ac_shift 14219 $ac_shift
26606 case $ac_optarg in 14220 case $ac_optarg in
26607 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14221 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26608 esac 14222 esac
26609 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 14223 as_fn_append CONFIG_FILES " '$ac_optarg'"
26610 ac_need_defaults=false;; 14224 ac_need_defaults=false;;
26611 --header | --heade | --head | --hea ) 14225 --header | --heade | --head | --hea )
26612 $ac_shift 14226 $ac_shift
26613 case $ac_optarg in 14227 case $ac_optarg in
26614 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14228 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26615 esac 14229 esac
26616 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 14230 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26617 ac_need_defaults=false;; 14231 ac_need_defaults=false;;
26618 --he | --h) 14232 --he | --h)
26619 # Conflict between --help and --header 14233 # Conflict between --help and --header
26620 { $as_echo "$as_me: error: ambiguous option: $1 14234 as_fn_error "ambiguous option: \`$1'
26621 Try \`$0 --help' for more information." >&2 14235 Try \`$0 --help' for more information.";;
26622 { (exit 1); exit 1; }; };;
26623 --help | --hel | -h ) 14236 --help | --hel | -h )
26624 $as_echo "$ac_cs_usage"; exit ;; 14237 $as_echo "$ac_cs_usage"; exit ;;
26625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26626 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14239 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26627 ac_cs_silent=: ;; 14240 ac_cs_silent=: ;;
26628 14241
26629 # This is an error. 14242 # This is an error.
26630 -*) { $as_echo "$as_me: error: unrecognized option: $1 14243 -*) as_fn_error "unrecognized option: \`$1'
26631 Try \`$0 --help' for more information." >&2 14244 Try \`$0 --help' for more information." ;;
26632 { (exit 1); exit 1; }; } ;; 14245
26633 14246 *) as_fn_append ac_config_targets " $1"
26634 *) ac_config_targets="$ac_config_targets $1"
26635 ac_need_defaults=false ;; 14247 ac_need_defaults=false ;;
26636 14248
26637 esac 14249 esac
26638 shift 14250 shift
26639 done 14251 done
26694 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; 14306 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26695 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; 14307 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26696 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; 14308 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26697 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 14309 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26698 14310
26699 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14311 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26700 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26701 { (exit 1); exit 1; }; };;
26702 esac 14312 esac
26703 done 14313 done
26704 14314
26705 14315
26706 # If the user did not use the arguments to specify the items to instantiate, 14316 # If the user did not use the arguments to specify the items to instantiate,
26723 { 14333 {
26724 tmp= 14334 tmp=
26725 trap 'exit_status=$? 14335 trap 'exit_status=$?
26726 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14336 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26727 ' 0 14337 ' 0
26728 trap '{ (exit 1); exit 1; }' 1 2 13 15 14338 trap 'as_fn_exit 1' 1 2 13 15
26729 } 14339 }
26730 # Create a (secure) tmp directory for tmp files. 14340 # Create a (secure) tmp directory for tmp files.
26731 14341
26732 { 14342 {
26733 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14343 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26734 test -n "$tmp" && test -d "$tmp" 14344 test -n "$tmp" && test -d "$tmp"
26735 } || 14345 } ||
26736 { 14346 {
26737 tmp=./conf$$-$RANDOM 14347 tmp=./conf$$-$RANDOM
26738 (umask 077 && mkdir "$tmp") 14348 (umask 077 && mkdir "$tmp")
26739 } || 14349 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26740 {
26741 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26742 { (exit 1); exit 1; }
26743 }
26744 14350
26745 # Set up the scripts for CONFIG_FILES section. 14351 # Set up the scripts for CONFIG_FILES section.
26746 # No need to generate them if there are no CONFIG_FILES. 14352 # No need to generate them if there are no CONFIG_FILES.
26747 # This happens for instance with `./config.status config.h'. 14353 # This happens for instance with `./config.status config.h'.
26748 if test -n "$CONFIG_FILES"; then 14354 if test -n "$CONFIG_FILES"; then
26749 14355
26750 14356
26751 ac_cr=' 14357 ac_cr=`echo X | tr X '\015'`
26752 ' 14358 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14359 # But we know of no other shell where ac_cr would be empty at this
14360 # point, so we can use a bashism as a fallback.
14361 if test "x$ac_cr" = x; then
14362 eval ac_cr=\$\'\\r\'
14363 fi
26753 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14364 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26754 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14365 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26755 ac_cs_awk_cr='\\r' 14366 ac_cs_awk_cr='\r'
26756 else 14367 else
26757 ac_cs_awk_cr=$ac_cr 14368 ac_cs_awk_cr=$ac_cr
26758 fi 14369 fi
26759 14370
26760 echo 'BEGIN {' >"$tmp/subs1.awk" && 14371 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26764 { 14375 {
26765 echo "cat >conf$$subs.awk <<_ACEOF" && 14376 echo "cat >conf$$subs.awk <<_ACEOF" &&
26766 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14377 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26767 echo "_ACEOF" 14378 echo "_ACEOF"
26768 } >conf$$subs.sh || 14379 } >conf$$subs.sh ||
26769 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14380 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26770 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26771 { (exit 1); exit 1; }; }
26772 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14381 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26773 ac_delim='%!_!# ' 14382 ac_delim='%!_!# '
26774 for ac_last_try in false false false false false :; do 14383 for ac_last_try in false false false false false :; do
26775 . ./conf$$subs.sh || 14384 . ./conf$$subs.sh ||
26776 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14385 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26777 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14386
26778 { (exit 1); exit 1; }; } 14387 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26779 14388 if test $ac_delim_n = $ac_delim_num; then
26780 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26781 break 14389 break
26782 elif $ac_last_try; then 14390 elif $ac_last_try; then
26783 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14391 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26784 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26785 { (exit 1); exit 1; }; }
26786 else 14392 else
26787 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14393 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26788 fi 14394 fi
26789 done 14395 done
26790 rm -f conf$$subs.sh 14396 rm -f conf$$subs.sh
26802 t repl 14408 t repl
26803 s/'"$ac_delim"'$// 14409 s/'"$ac_delim"'$//
26804 t delim 14410 t delim
26805 :nl 14411 :nl
26806 h 14412 h
26807 s/\(.\{148\}\).*/\1/ 14413 s/\(.\{148\}\)..*/\1/
26808 t more1 14414 t more1
26809 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14415 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26810 p 14416 p
26811 n 14417 n
26812 b repl 14418 b repl
26816 g 14422 g
26817 s/.\{148\}// 14423 s/.\{148\}//
26818 t nl 14424 t nl
26819 :delim 14425 :delim
26820 h 14426 h
26821 s/\(.\{148\}\).*/\1/ 14427 s/\(.\{148\}\)..*/\1/
26822 t more2 14428 t more2
26823 s/["\\]/\\&/g; s/^/"/; s/$/"/ 14429 s/["\\]/\\&/g; s/^/"/; s/$/"/
26824 p 14430 p
26825 b 14431 b
26826 :more2 14432 :more2
26869 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14475 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26870 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14476 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26871 else 14477 else
26872 cat 14478 cat
26873 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14479 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26874 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14480 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26875 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26876 { (exit 1); exit 1; }; }
26877 _ACEOF 14481 _ACEOF
26878 14482
26879 # VPATH may cause trouble with some makes, so we remove $(srcdir), 14483 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26880 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14484 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26881 # trailing colons and then remove the whole line if VPATH becomes empty 14485 # trailing colons and then remove the whole line if VPATH becomes empty
26912 for ac_last_try in false false :; do 14516 for ac_last_try in false false :; do
26913 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14517 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26914 if test -z "$ac_t"; then 14518 if test -z "$ac_t"; then
26915 break 14519 break
26916 elif $ac_last_try; then 14520 elif $ac_last_try; then
26917 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14521 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26918 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26919 { (exit 1); exit 1; }; }
26920 else 14522 else
26921 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14523 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26922 fi 14524 fi
26923 done 14525 done
26924 14526
26980 defundef = substr(arg[1], 2) 14582 defundef = substr(arg[1], 2)
26981 mac1 = arg[2] 14583 mac1 = arg[2]
26982 } 14584 }
26983 split(mac1, mac2, "(") #) 14585 split(mac1, mac2, "(") #)
26984 macro = mac2[1] 14586 macro = mac2[1]
14587 prefix = substr(line, 1, index(line, defundef) - 1)
26985 if (D_is_set[macro]) { 14588 if (D_is_set[macro]) {
26986 # Preserve the white space surrounding the "#". 14589 # Preserve the white space surrounding the "#".
26987 prefix = substr(line, 1, index(line, defundef) - 1)
26988 print prefix "define", macro P[macro] D[macro] 14590 print prefix "define", macro P[macro] D[macro]
26989 next 14591 next
26990 } else { 14592 } else {
26991 # Replace #undef with comments. This is necessary, for example, 14593 # Replace #undef with comments. This is necessary, for example,
26992 # in the case of _POSIX_SOURCE, which is predefined and required 14594 # in the case of _POSIX_SOURCE, which is predefined and required
26993 # on some systems where configure will not decide to define it. 14595 # on some systems where configure will not decide to define it.
26994 if (defundef == "undef") { 14596 if (defundef == "undef") {
26995 print "/*", line, "*/" 14597 print "/*", prefix defundef, macro, "*/"
26996 next 14598 next
26997 } 14599 }
26998 } 14600 }
26999 } 14601 }
27000 { print } 14602 { print }
27001 _ACAWK 14603 _ACAWK
27002 _ACEOF 14604 _ACEOF
27003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14605 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27004 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14606 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27005 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27006 { (exit 1); exit 1; }; }
27007 fi # test -n "$CONFIG_HEADERS" 14607 fi # test -n "$CONFIG_HEADERS"
27008 14608
27009 14609
27010 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14610 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27011 shift 14611 shift
27014 case $ac_tag in 14614 case $ac_tag in
27015 :[FHLC]) ac_mode=$ac_tag; continue;; 14615 :[FHLC]) ac_mode=$ac_tag; continue;;
27016 esac 14616 esac
27017 case $ac_mode$ac_tag in 14617 case $ac_mode$ac_tag in
27018 :[FHL]*:*);; 14618 :[FHL]*:*);;
27019 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 14619 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27020 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27021 { (exit 1); exit 1; }; };;
27022 :[FH]-) ac_tag=-:-;; 14620 :[FH]-) ac_tag=-:-;;
27023 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14621 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27024 esac 14622 esac
27025 ac_save_IFS=$IFS 14623 ac_save_IFS=$IFS
27026 IFS=: 14624 IFS=:
27044 test -f "$ac_f" || 14642 test -f "$ac_f" ||
27045 case $ac_f in 14643 case $ac_f in
27046 [\\/$]*) false;; 14644 [\\/$]*) false;;
27047 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14645 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27048 esac || 14646 esac ||
27049 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14647 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27050 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27051 { (exit 1); exit 1; }; };;
27052 esac 14648 esac
27053 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14649 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27054 ac_file_inputs="$ac_file_inputs '$ac_f'" 14650 as_fn_append ac_file_inputs " '$ac_f'"
27055 done 14651 done
27056 14652
27057 # Let's still pretend it is `configure' which instantiates (i.e., don't 14653 # Let's still pretend it is `configure' which instantiates (i.e., don't
27058 # use $as_me), people would be surprised to read: 14654 # use $as_me), people would be surprised to read:
27059 # /* config.h. Generated by config.status. */ 14655 # /* config.h. Generated by config.status. */
27060 configure_input='Generated from '` 14656 configure_input='Generated from '`
27061 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14657 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27062 `' by configure.' 14658 `' by configure.'
27063 if test x"$ac_file" != x-; then 14659 if test x"$ac_file" != x-; then
27064 configure_input="$ac_file. $configure_input" 14660 configure_input="$ac_file. $configure_input"
27065 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14661 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27066 $as_echo "$as_me: creating $ac_file" >&6;} 14662 $as_echo "$as_me: creating $ac_file" >&6;}
27067 fi 14663 fi
27068 # Neutralize special characters interpreted by sed in replacement strings. 14664 # Neutralize special characters interpreted by sed in replacement strings.
27069 case $configure_input in #( 14665 case $configure_input in #(
27070 *\&* | *\|* | *\\* ) 14666 *\&* | *\|* | *\\* )
27073 *) ac_sed_conf_input=$configure_input;; 14669 *) ac_sed_conf_input=$configure_input;;
27074 esac 14670 esac
27075 14671
27076 case $ac_tag in 14672 case $ac_tag in
27077 *:-:* | *:-) cat >"$tmp/stdin" \ 14673 *:-:* | *:-) cat >"$tmp/stdin" \
27078 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14674 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27079 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27080 { (exit 1); exit 1; }; } ;;
27081 esac 14675 esac
27082 ;; 14676 ;;
27083 esac 14677 esac
27084 14678
27085 ac_dir=`$as_dirname -- "$ac_file" || 14679 ac_dir=`$as_dirname -- "$ac_file" ||
27103 /^X\(\/\).*/{ 14697 /^X\(\/\).*/{
27104 s//\1/ 14698 s//\1/
27105 q 14699 q
27106 } 14700 }
27107 s/.*/./; q'` 14701 s/.*/./; q'`
27108 { as_dir="$ac_dir" 14702 as_dir="$ac_dir"; as_fn_mkdir_p
27109 case $as_dir in #(
27110 -*) as_dir=./$as_dir;;
27111 esac
27112 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27113 as_dirs=
27114 while :; do
27115 case $as_dir in #(
27116 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27117 *) as_qdir=$as_dir;;
27118 esac
27119 as_dirs="'$as_qdir' $as_dirs"
27120 as_dir=`$as_dirname -- "$as_dir" ||
27121 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27122 X"$as_dir" : 'X\(//\)[^/]' \| \
27123 X"$as_dir" : 'X\(//\)$' \| \
27124 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27125 $as_echo X"$as_dir" |
27126 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27127 s//\1/
27128 q
27129 }
27130 /^X\(\/\/\)[^/].*/{
27131 s//\1/
27132 q
27133 }
27134 /^X\(\/\/\)$/{
27135 s//\1/
27136 q
27137 }
27138 /^X\(\/\).*/{
27139 s//\1/
27140 q
27141 }
27142 s/.*/./; q'`
27143 test -d "$as_dir" && break
27144 done
27145 test -z "$as_dirs" || eval "mkdir $as_dirs"
27146 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27147 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27148 { (exit 1); exit 1; }; }; }
27149 ac_builddir=. 14703 ac_builddir=.
27150 14704
27151 case "$ac_dir" in 14705 case "$ac_dir" in
27152 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14706 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27153 *) 14707 *)
27195 14749
27196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27197 # If the template does not know about datarootdir, expand it. 14751 # If the template does not know about datarootdir, expand it.
27198 # FIXME: This hack should be removed a few years after 2.60. 14752 # FIXME: This hack should be removed a few years after 2.60.
27199 ac_datarootdir_hack=; ac_datarootdir_seen= 14753 ac_datarootdir_hack=; ac_datarootdir_seen=
27200
27201 ac_sed_dataroot=' 14754 ac_sed_dataroot='
27202 /datarootdir/ { 14755 /datarootdir/ {
27203 p 14756 p
27204 q 14757 q
27205 } 14758 }
27206 /@datadir@/p 14759 /@datadir@/p
27207 /@docdir@/p 14760 /@docdir@/p
27208 /@infodir@/p 14761 /@infodir@/p
27209 /@localedir@/p 14762 /@localedir@/p
27210 /@mandir@/p 14763 /@mandir@/p'
27211 '
27212 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14764 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27213 *datarootdir*) ac_datarootdir_seen=yes;; 14765 *datarootdir*) ac_datarootdir_seen=yes;;
27214 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14766 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27215 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27216 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14768 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27217 _ACEOF 14769 _ACEOF
27218 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27219 ac_datarootdir_hack=' 14771 ac_datarootdir_hack='
27220 s&@datadir@&$datadir&g 14772 s&@datadir@&$datadir&g
27221 s&@docdir@&$docdir&g 14773 s&@docdir@&$docdir&g
27222 s&@infodir@&$infodir&g 14774 s&@infodir@&$infodir&g
27223 s&@localedir@&$localedir&g 14775 s&@localedir@&$localedir&g
27224 s&@mandir@&$mandir&g 14776 s&@mandir@&$mandir&g
27225 s&\\\${datarootdir}&$datarootdir&g' ;; 14777 s&\\\${datarootdir}&$datarootdir&g' ;;
27226 esac 14778 esac
27227 _ACEOF 14779 _ACEOF
27228 14780
27229 # Neutralize VPATH when `$srcdir' = `.'. 14781 # Neutralize VPATH when `$srcdir' = `.'.
27230 # Shell code in configure.ac might set extrasub. 14782 # Shell code in configure.ac might set extrasub.
27248 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14800 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27249 s&@INSTALL@&$ac_INSTALL&;t t 14801 s&@INSTALL@&$ac_INSTALL&;t t
27250 $ac_datarootdir_hack 14802 $ac_datarootdir_hack
27251 " 14803 "
27252 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14804 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27253 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14805 || as_fn_error "could not create $ac_file" "$LINENO" 5
27254 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27255 { (exit 1); exit 1; }; }
27256 14806
27257 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14807 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27258 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14808 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27259 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14809 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27260 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27261 which seems to be undefined. Please make sure it is defined." >&5 14811 which seems to be undefined. Please make sure it is defined." >&5
27262 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14812 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27263 which seems to be undefined. Please make sure it is defined." >&2;} 14813 which seems to be undefined. Please make sure it is defined." >&2;}
27264 14814
27265 rm -f "$tmp/stdin" 14815 rm -f "$tmp/stdin"
27266 case $ac_file in 14816 case $ac_file in
27267 -) cat "$tmp/out" && rm -f "$tmp/out";; 14817 -) cat "$tmp/out" && rm -f "$tmp/out";;
27268 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14818 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27269 esac \ 14819 esac \
27270 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14820 || as_fn_error "could not create $ac_file" "$LINENO" 5
27271 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27272 { (exit 1); exit 1; }; }
27273 ;; 14821 ;;
27274 :H) 14822 :H)
27275 # 14823 #
27276 # CONFIG_HEADER 14824 # CONFIG_HEADER
27277 # 14825 #
27278 if test x"$ac_file" != x-; then 14826 if test x"$ac_file" != x-; then
27279 { 14827 {
27280 $as_echo "/* $configure_input */" \ 14828 $as_echo "/* $configure_input */" \
27281 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14829 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27282 } >"$tmp/config.h" \ 14830 } >"$tmp/config.h" \
27283 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14831 || as_fn_error "could not create $ac_file" "$LINENO" 5
27284 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27285 { (exit 1); exit 1; }; }
27286 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14832 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27287 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14833 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27288 $as_echo "$as_me: $ac_file is unchanged" >&6;} 14834 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27289 else 14835 else
27290 rm -f "$ac_file" 14836 rm -f "$ac_file"
27291 mv "$tmp/config.h" "$ac_file" \ 14837 mv "$tmp/config.h" "$ac_file" \
27292 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14838 || as_fn_error "could not create $ac_file" "$LINENO" 5
27293 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27294 { (exit 1); exit 1; }; }
27295 fi 14839 fi
27296 else 14840 else
27297 $as_echo "/* $configure_input */" \ 14841 $as_echo "/* $configure_input */" \
27298 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14842 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27299 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14843 || as_fn_error "could not create -" "$LINENO" 5
27300 $as_echo "$as_me: error: could not create -" >&2;}
27301 { (exit 1); exit 1; }; }
27302 fi 14844 fi
27303 ;; 14845 ;;
27304 14846
27305 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14847 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27306 $as_echo "$as_me: executing $ac_file commands" >&6;} 14848 $as_echo "$as_me: executing $ac_file commands" >&6;}
27307 ;; 14849 ;;
27308 esac 14850 esac
27309 14851
27310 14852
27371 14913
27372 esac 14914 esac
27373 done # for ac_tag 14915 done # for ac_tag
27374 14916
27375 14917
27376 { (exit 0); exit 0; } 14918 as_fn_exit 0
27377 _ACEOF 14919 _ACEOF
27378 chmod +x $CONFIG_STATUS
27379 ac_clean_files=$ac_clean_files_save 14920 ac_clean_files=$ac_clean_files_save
27380 14921
27381 test $ac_write_fail = 0 || 14922 test $ac_write_fail = 0 ||
27382 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 14923 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27383 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27384 { (exit 1); exit 1; }; }
27385 14924
27386 14925
27387 # configure is writing to config.log, and then calls config.status. 14926 # configure is writing to config.log, and then calls config.status.
27388 # config.status does its own redirection, appending to config.log. 14927 # config.status does its own redirection, appending to config.log.
27389 # Unfortunately, on DOS this fails, as config.log is still kept open 14928 # Unfortunately, on DOS this fails, as config.log is still kept open
27400 exec 5>/dev/null 14939 exec 5>/dev/null
27401 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14940 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27402 exec 5>>config.log 14941 exec 5>>config.log
27403 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14942 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27404 # would make configure fail if this is the last instruction. 14943 # would make configure fail if this is the last instruction.
27405 $ac_cs_success || { (exit 1); exit 1; } 14944 $ac_cs_success || as_fn_exit $?
27406 fi 14945 fi
27407 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14946 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27408 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 14947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27409 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 14948 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27410 fi 14949 fi
27411 14950
27412 14951