comparison configure @ 108312:3bda5d5b9038

Regenerate configure.
author Glenn Morris <rgm@gnu.org>
date Fri, 07 May 2010 19:13:50 -0700
parents 767894eefe6c
children 973b5bc5fcfe
comparison
equal deleted inserted replaced
108311:3c3969cfa7a1 108312:3bda5d5b9038
1 #! /bin/sh 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles. 2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50. 3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50.
4 #
5 # 4 #
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
8 # Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation 7 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it. 8 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ## 9 ## --------------------- ##
14 ## M4sh Initialization. ## 10 ## M4sh Initialization. ##
15 ## -------------------- ## 11 ## --------------------- ##
16 12
17 # Be more Bourne compatible 13 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh 14 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20 emulate sh 16 emulate sh
21 NULLCMD=: 17 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature. 19 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"' 20 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST 21 setopt NO_GLOB_SUBST
26 else 22 else
27 case `(set -o) 2>/dev/null` in #( 23 case `(set -o) 2>/dev/null` in
28 *posix*) : 24 *posix*) set -o posix ;;
29 set -o posix ;; #( 25 esac
30 *) : 26
31 ;; 27 fi
32 esac 28
33 fi 29
34 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
35 39
36 as_nl=' 40 as_nl='
37 ' 41 '
38 export as_nl 42 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf. 43 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 45 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 46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris, 47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
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
50 as_echo='printf %s\n' 48 as_echo='printf %s\n'
51 as_echo_n='printf %s' 49 as_echo_n='printf %s'
52 else 50 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n' 53 as_echo_n='/usr/ucb/echo -n'
56 else 54 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval 56 as_echo_n_body='eval
59 arg=$1; 57 arg=$1;
60 case $arg in #( 58 case $arg in
61 *"$as_nl"*) 59 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl"; 60 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac; 62 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';' 77 PATH_SEPARATOR=';'
80 } 78 }
81 fi 79 fi
82 80
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
83 88
84 # IFS 89 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is 90 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab. 91 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.) 93 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl" 94 IFS=" "" $as_nl"
90 95
91 # Find who we are. Look in the path if we contain no directory separator. 96 # Find who we are. Look in the path if we contain no directory separator.
92 case $0 in #(( 97 case $0 in
93 *[\\/]* ) as_myself=$0 ;; 98 *[\\/]* ) as_myself=$0 ;;
94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH 100 for as_dir in $PATH
96 do 101 do
97 IFS=$as_save_IFS 102 IFS=$as_save_IFS
98 test -z "$as_dir" && as_dir=. 103 test -z "$as_dir" && as_dir=.
99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100 done 105 done
101 IFS=$as_save_IFS 106 IFS=$as_save_IFS
102 107
103 ;; 108 ;;
104 esac 109 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND' 110 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 if test "x$as_myself" = x; then 112 if test "x$as_myself" = x; then
108 as_myself=$0 113 as_myself=$0
109 fi 114 fi
110 if test ! -f "$as_myself"; then 115 if test ! -f "$as_myself"; then
111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112 exit 1 117 { (exit 1); exit 1; }
113 fi 118 fi
114 119
115 # Unset variables that we do not need and which cause bugs (e.g. in 120 # Work around bugs in pre-3.0 UWIN ksh.
116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 121 for as_var in ENV MAIL MAILPATH
117 # suppresses any "Segmentation fault" message there. '((' could 122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
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 || :
122 done 123 done
123 PS1='$ ' 124 PS1='$ '
124 PS2='> ' 125 PS2='> '
125 PS4='+ ' 126 PS4='+ '
126 127
128 LC_ALL=C 129 LC_ALL=C
129 export LC_ALL 130 export LC_ALL
130 LANGUAGE=C 131 LANGUAGE=C
131 export LANGUAGE 132 export LANGUAGE
132 133
133 # CDPATH. 134 # Required to use basename.
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
375 if expr a : '\(a\)' >/dev/null 2>&1 && 135 if expr a : '\(a\)' >/dev/null 2>&1 &&
376 test "X`expr 00001 : '.*\(...\)'`" = X001; then 136 test "X`expr 00001 : '.*\(...\)'`" = X001; then
377 as_expr=expr 137 as_expr=expr
378 else 138 else
379 as_expr=false 139 as_expr=false
383 as_basename=basename 143 as_basename=basename
384 else 144 else
385 as_basename=false 145 as_basename=false
386 fi 146 fi
387 147
388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 148
389 as_dirname=dirname 149 # Name of the executable.
390 else
391 as_dirname=false
392 fi
393
394 as_me=`$as_basename -- "$0" || 150 as_me=`$as_basename -- "$0" ||
395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
396 X"$0" : 'X\(//\)$' \| \ 152 X"$0" : 'X\(//\)$' \| \
397 X"$0" : 'X\(/\)' \| . 2>/dev/null || 153 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
398 $as_echo X/"$0" | 154 $as_echo X/"$0" |
408 s//\1/ 164 s//\1/
409 q 165 q
410 } 166 }
411 s/.*/./; q'` 167 s/.*/./; q'`
412 168
413 # Avoid depending upon Character Ranges. 169 # CDPATH.
414 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 170 $as_unset CDPATH
415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 171
416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 172
417 as_cr_digits='0123456789' 173 if test "x$CONFIG_SHELL" = x; then
418 as_cr_alnum=$as_cr_Letters$as_cr_digits 174 if (eval ":") 2>/dev/null; then
419 175 as_have_required=yes
420 176 else
421 as_lineno_1=$LINENO as_lineno_1a=$LINENO 177 as_have_required=no
422 as_lineno_2=$LINENO as_lineno_2a=$LINENO 178 fi
423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 179
424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 180 if test $as_have_required = yes && (eval ":
425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 181 (as_func_return () {
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. :-)
426 sed -n ' 458 sed -n '
427 p 459 p
428 /[$]LINENO/= 460 /[$]LINENO/=
429 ' <$as_myself | 461 ' <$as_myself |
430 sed ' 462 sed '
437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
438 t loop 470 t loop
439 s/-\n.*// 471 s/-\n.*//
440 ' >$as_me.lineno && 472 ' >$as_me.lineno &&
441 chmod +x "$as_me.lineno" || 473 chmod +x "$as_me.lineno" ||
442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
475 { (exit 1); exit 1; }; }
443 476
444 # Don't try to exec as it changes $[0], causing all sort of problems 477 # Don't try to exec as it changes $[0], causing all sort of problems
445 # (the dirname of $[0] is not the place where we might find the 478 # (the dirname of $[0] is not the place where we might find the
446 # original and so on. Autoconf is especially sensitive to this). 479 # original and so on. Autoconf is especially sensitive to this).
447 . "./$as_me.lineno" 480 . "./$as_me.lineno"
448 # Exit status is that of the last command. 481 # Exit status is that of the last command.
449 exit 482 exit
450 } 483 }
451 484
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
452 ECHO_C= ECHO_N= ECHO_T= 492 ECHO_C= ECHO_N= ECHO_T=
453 case `echo -n x` in #((((( 493 case `echo -n x` in
454 -n*) 494 -n*)
455 case `echo 'xy\c'` in 495 case `echo 'x\c'` in
456 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 496 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
457 xy) ECHO_C='\c';; 497 *) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
460 esac;; 498 esac;;
461 *) 499 *)
462 ECHO_N='-n';; 500 ECHO_N='-n';;
463 esac 501 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
464 508
465 rm -f conf$$ conf$$.exe conf$$.file 509 rm -f conf$$ conf$$.exe conf$$.file
466 if test -d conf$$.dir; then 510 if test -d conf$$.dir; then
467 rm -f conf$$.dir/conf$$.file 511 rm -f conf$$.dir/conf$$.file
468 else 512 else
488 fi 532 fi
489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
490 rmdir conf$$.dir 2>/dev/null 534 rmdir conf$$.dir 2>/dev/null
491 535
492 if mkdir -p . 2>/dev/null; then 536 if mkdir -p . 2>/dev/null; then
493 as_mkdir_p='mkdir -p "$as_dir"' 537 as_mkdir_p=:
494 else 538 else
495 test -d ./-p && rmdir ./-p 539 test -d ./-p && rmdir ./-p
496 as_mkdir_p=false 540 as_mkdir_p=false
497 fi 541 fi
498 542
507 as_test_x=' 551 as_test_x='
508 eval sh -c '\'' 552 eval sh -c '\''
509 if test -d "$1"; then 553 if test -d "$1"; then
510 test -d "$1/."; 554 test -d "$1/.";
511 else 555 else
512 case $1 in #( 556 case $1 in
513 -*)set "./$1";; 557 -*)set "./$1";;
514 esac; 558 esac;
515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
516 ???[sx]*):;;*)false;;esac;fi 560 ???[sx]*):;;*)false;;esac;fi
517 '\'' sh 561 '\'' sh
518 ' 562 '
519 fi 563 fi
520 as_executable_p=$as_test_x 564 as_executable_p=$as_test_x
524 568
525 # Sed expression to map a string onto a valid variable name. 569 # Sed expression to map a string onto a valid variable name.
526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
527 571
528 572
529 test -n "$DJDIR" || exec 7<&0 </dev/null 573
530 exec 6>&1 574 exec 7<&0 </dev/null 6>&1
531 575
532 # Name of the host. 576 # Name of the host.
533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
534 # so uname gets run too. 578 # so uname gets run too.
535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 LIBOBJS= 587 LIBOBJS=
544 cross_compiling=no 588 cross_compiling=no
545 subdirs= 589 subdirs=
546 MFLAGS= 590 MFLAGS=
547 MAKEFLAGS= 591 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
548 593
549 # Identity of this package. 594 # Identity of this package.
550 PACKAGE_NAME='emacs' 595 PACKAGE_NAME='emacs'
551 PACKAGE_TARNAME='emacs' 596 PACKAGE_TARNAME='emacs'
552 PACKAGE_VERSION='24.0.50' 597 PACKAGE_VERSION='24.0.50'
553 PACKAGE_STRING='emacs 24.0.50' 598 PACKAGE_STRING='emacs 24.0.50'
554 PACKAGE_BUGREPORT='' 599 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
556 600
557 ac_unique_file="src/lisp.h" 601 ac_unique_file="src/lisp.h"
558 # Factoring default headers for most tests. 602 # Factoring default headers for most tests.
559 ac_includes_default="\ 603 ac_includes_default="\
560 #include <stdio.h> 604 #include <stdio.h>
592 #endif" 636 #endif"
593 637
594 ac_config_libobj_dir=src 638 ac_config_libobj_dir=src
595 ac_header_list= 639 ac_header_list=
596 ac_func_list= 640 ac_func_list=
597 ac_subst_vars='LTLIBOBJS 641 ac_subst_vars='SHELL
642 PATH_SEPARATOR
643 PACKAGE_NAME
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 INSTALL_PROGRAM
698 INSTALL_SCRIPT
699 INSTALL_DATA
700 RANLIB
701 INSTALL_INFO
702 GZIP_PROG
703 MAKEINFO
704 LD_SWITCH_SYSTEM
705 C_SWITCH_MACHINE
706 C_SWITCH_SYSTEM
707 CRT_DIR
708 LIB_MATH
709 START_FILES
710 LIBSOUND
711 PKG_CONFIG
712 ALSA_CFLAGS
713 ALSA_LIBS
714 CFLAGS_SOUND
715 SET_MAKE
716 XMKMF
717 LD_SWITCH_X_SITE_AUX
718 LD_SWITCH_X_SITE_AUX_RPATH
719 NS_OBJ
720 NS_SUPPORT
721 LIB_STANDARD
722 HAVE_XSERVER
723 RSVG_CFLAGS
724 RSVG_LIBS
725 GTK_CFLAGS
726 GTK_LIBS
727 GTK_OBJ
728 DBUS_CFLAGS
729 DBUS_LIBS
730 DBUS_OBJ
731 GCONF_CFLAGS
732 GCONF_LIBS
733 LIBSELINUX_LIBS
734 LIBXTR6
735 LIBXMU
736 FONTCONFIG_CFLAGS
737 FONTCONFIG_LIBS
738 XFT_CFLAGS
739 XFT_LIBS
740 LIBOTF_CFLAGS
741 LIBOTF_LIBS
742 M17N_FLT_CFLAGS
743 M17N_FLT_LIBS
744 FONT_OBJ
745 FREETYPE_CFLAGS
746 FREETYPE_LIBS
747 LIBXPM
748 LIBJPEG
749 LIBPNG
750 LIBTIFF
751 LIBGIF
752 LIBGPM
753 GPM_MOUSE_SUPPORT
754 LIBXSM
755 ALLOCA
756 liblockfile
757 LIBS_MAIL
758 LIBOBJS
759 NEED_SETGID
760 KMEM_GROUP
761 GETLOADAVG_LIBS
762 GETOPT_H
763 GETOPTOBJS
764 LIBS_TERMCAP
765 TERMCAP_OBJ
766 LIBHESIOD
767 LIBRESOLV
768 COM_ERRLIB
769 CRYPTOLIB
770 KRB5LIB
771 DESLIB
772 KRB4LIB
773 version
774 configuration
775 canonical
776 srcdir
777 lispdir
778 locallisppath
779 lisppath
780 x_default_search_path
781 etcdir
782 archlibdir
783 bitmapdir
784 gamedir
785 gameuser
786 unexec
787 LD_SWITCH_X_SITE
788 C_SWITCH_X_SITE
789 C_SWITCH_X_SYSTEM
790 X_TOOLKIT_TYPE
791 machfile
792 opsysfile
793 ns_appdir
794 ns_appbindir
795 ns_appresdir
796 ns_appsrc
797 GNUSTEP_MAKEFILES
798 GNUSTEP_SYSTEM_HEADERS
799 GNUSTEP_SYSTEM_LIBRARIES
800 GNU_OBJC_CFLAGS
801 LIB_SRC_EXTRA_INSTALLABLES
802 OTHER_FILES
803 XMENU_OBJ
804 XOBJ
805 WIDGET_OBJ
806 TOOLKIT_LIBW
807 LIBXT_OTHER
808 OLDXMENU
809 LIBXMENU
810 LIBX_OTHER
811 CYGWIN_OBJ
812 PRE_ALLOC_OBJ
813 POST_ALLOC_OBJ
814 LD_SWITCH_SYSTEM_TEMACS
598 LD_SWITCH_SYSTEM_EXTRA 815 LD_SWITCH_SYSTEM_EXTRA
599 LD_SWITCH_SYSTEM_TEMACS 816 LTLIBOBJS'
600 POST_ALLOC_OBJ
601 PRE_ALLOC_OBJ
602 CYGWIN_OBJ
603 LIBX_OTHER
604 LIBXMENU
605 OLDXMENU
606 LIBXT_OTHER
607 TOOLKIT_LIBW
608 WIDGET_OBJ
609 XOBJ
610 XMENU_OBJ
611 OTHER_FILES
612 LIB_SRC_EXTRA_INSTALLABLES
613 GNU_OBJC_CFLAGS
614 GNUSTEP_SYSTEM_LIBRARIES
615 GNUSTEP_SYSTEM_HEADERS
616 GNUSTEP_MAKEFILES
617 ns_appsrc
618 ns_appresdir
619 ns_appbindir
620 ns_appdir
621 opsysfile
622 machfile
623 X_TOOLKIT_TYPE
624 C_SWITCH_X_SYSTEM
625 C_SWITCH_X_SITE
626 LD_SWITCH_X_SITE
627 unexec
628 gameuser
629 gamedir
630 bitmapdir
631 archlibdir
632 etcdir
633 x_default_search_path
634 lisppath
635 locallisppath
636 lispdir
637 srcdir
638 canonical
639 configuration
640 version
641 KRB4LIB
642 DESLIB
643 KRB5LIB
644 CRYPTOLIB
645 COM_ERRLIB
646 LIBRESOLV
647 LIBHESIOD
648 GETOPTOBJS
649 GETOPT_H
650 GETLOADAVG_LIBS
651 KMEM_GROUP
652 NEED_SETGID
653 LIBOBJS
654 LIBS_MAIL
655 liblockfile
656 ALLOCA
657 LIBXSM
658 GPM_MOUSE_SUPPORT
659 LIBGPM
660 LIBGIF
661 LIBTIFF
662 LIBPNG
663 LIBJPEG
664 LIBXPM
665 FREETYPE_LIBS
666 FREETYPE_CFLAGS
667 FONT_OBJ
668 M17N_FLT_LIBS
669 M17N_FLT_CFLAGS
670 LIBOTF_LIBS
671 LIBOTF_CFLAGS
672 XFT_LIBS
673 XFT_CFLAGS
674 FONTCONFIG_LIBS
675 FONTCONFIG_CFLAGS
676 LIBXMU
677 LIBXTR6
678 LIBSELINUX_LIBS
679 GCONF_LIBS
680 GCONF_CFLAGS
681 DBUS_OBJ
682 DBUS_LIBS
683 DBUS_CFLAGS
684 GTK_OBJ
685 GTK_LIBS
686 GTK_CFLAGS
687 RSVG_LIBS
688 RSVG_CFLAGS
689 HAVE_XSERVER
690 LIB_STANDARD
691 NS_SUPPORT
692 NS_OBJ
693 LD_SWITCH_X_SITE_AUX_RPATH
694 LD_SWITCH_X_SITE_AUX
695 XMKMF
696 SET_MAKE
697 CFLAGS_SOUND
698 ALSA_LIBS
699 ALSA_CFLAGS
700 PKG_CONFIG
701 LIBSOUND
702 START_FILES
703 LIB_MATH
704 CRT_DIR
705 C_SWITCH_SYSTEM
706 C_SWITCH_MACHINE
707 LD_SWITCH_SYSTEM
708 MAKEINFO
709 GZIP_PROG
710 INSTALL_INFO
711 RANLIB
712 INSTALL_DATA
713 INSTALL_SCRIPT
714 INSTALL_PROGRAM
715 EGREP
716 GREP
717 CPP
718 OBJEXT
719 EXEEXT
720 ac_ct_CC
721 CPPFLAGS
722 LDFLAGS
723 CFLAGS
724 CC
725 host_os
726 host_vendor
727 host_cpu
728 host
729 build_os
730 build_vendor
731 build_cpu
732 build
733 MAINT
734 target_alias
735 host_alias
736 build_alias
737 LIBS
738 ECHO_T
739 ECHO_N
740 ECHO_C
741 DEFS
742 mandir
743 localedir
744 libdir
745 psdir
746 pdfdir
747 dvidir
748 htmldir
749 infodir
750 docdir
751 oldincludedir
752 includedir
753 localstatedir
754 sharedstatedir
755 sysconfdir
756 datadir
757 datarootdir
758 libexecdir
759 sbindir
760 bindir
761 program_transform_name
762 prefix
763 exec_prefix
764 PACKAGE_URL
765 PACKAGE_BUGREPORT
766 PACKAGE_STRING
767 PACKAGE_VERSION
768 PACKAGE_TARNAME
769 PACKAGE_NAME
770 PATH_SEPARATOR
771 SHELL'
772 ac_subst_files='' 817 ac_subst_files=''
773 ac_user_opts=' 818 ac_user_opts='
774 enable_option_checking 819 enable_option_checking
775 with_pop 820 with_pop
776 with_kerberos 821 with_kerberos
931 976
932 -disable-* | --disable-*) 977 -disable-* | --disable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 978 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
934 # Reject names that are not valid shell variable names. 979 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 980 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error "invalid feature name: $ac_useropt" 981 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
982 { (exit 1); exit 1; }; }
937 ac_useropt_orig=$ac_useropt 983 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 984 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in 985 case $ac_user_opts in
940 *" 986 *"
941 "enable_$ac_useropt" 987 "enable_$ac_useropt"
957 1003
958 -enable-* | --enable-*) 1004 -enable-* | --enable-*)
959 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1005 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
960 # Reject names that are not valid shell variable names. 1006 # Reject names that are not valid shell variable names.
961 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
962 as_fn_error "invalid feature name: $ac_useropt" 1008 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1009 { (exit 1); exit 1; }; }
963 ac_useropt_orig=$ac_useropt 1010 ac_useropt_orig=$ac_useropt
964 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1011 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
965 case $ac_user_opts in 1012 case $ac_user_opts in
966 *" 1013 *"
967 "enable_$ac_useropt" 1014 "enable_$ac_useropt"
1161 1208
1162 -with-* | --with-*) 1209 -with-* | --with-*)
1163 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1210 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164 # Reject names that are not valid shell variable names. 1211 # Reject names that are not valid shell variable names.
1165 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1212 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166 as_fn_error "invalid package name: $ac_useropt" 1213 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1214 { (exit 1); exit 1; }; }
1167 ac_useropt_orig=$ac_useropt 1215 ac_useropt_orig=$ac_useropt
1168 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1169 case $ac_user_opts in 1217 case $ac_user_opts in
1170 *" 1218 *"
1171 "with_$ac_useropt" 1219 "with_$ac_useropt"
1177 1225
1178 -without-* | --without-*) 1226 -without-* | --without-*)
1179 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1227 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180 # Reject names that are not valid shell variable names. 1228 # Reject names that are not valid shell variable names.
1181 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1229 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182 as_fn_error "invalid package name: $ac_useropt" 1230 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1231 { (exit 1); exit 1; }; }
1183 ac_useropt_orig=$ac_useropt 1232 ac_useropt_orig=$ac_useropt
1184 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1233 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1185 case $ac_user_opts in 1234 case $ac_user_opts in
1186 *" 1235 *"
1187 "with_$ac_useropt" 1236 "with_$ac_useropt"
1207 ac_prev=x_libraries ;; 1256 ac_prev=x_libraries ;;
1208 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1257 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1258 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210 x_libraries=$ac_optarg ;; 1259 x_libraries=$ac_optarg ;;
1211 1260
1212 -*) as_fn_error "unrecognized option: \`$ac_option' 1261 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1213 Try \`$0 --help' for more information." 1262 Try \`$0 --help' for more information." >&2
1263 { (exit 1); exit 1; }; }
1214 ;; 1264 ;;
1215 1265
1216 *=*) 1266 *=*)
1217 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1267 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218 # Reject names that are not valid shell variable names. 1268 # Reject names that are not valid shell variable names.
1219 case $ac_envvar in #( 1269 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1220 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1270 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1221 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1271 { (exit 1); exit 1; }; }
1222 esac
1223 eval $ac_envvar=\$ac_optarg 1272 eval $ac_envvar=\$ac_optarg
1224 export $ac_envvar ;; 1273 export $ac_envvar ;;
1225 1274
1226 *) 1275 *)
1227 # FIXME: should be removed in autoconf 3.0. 1276 # FIXME: should be removed in autoconf 3.0.
1234 esac 1283 esac
1235 done 1284 done
1236 1285
1237 if test -n "$ac_prev"; then 1286 if test -n "$ac_prev"; then
1238 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1287 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239 as_fn_error "missing argument to $ac_option" 1288 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1289 { (exit 1); exit 1; }; }
1240 fi 1290 fi
1241 1291
1242 if test -n "$ac_unrecognized_opts"; then 1292 if test -n "$ac_unrecognized_opts"; then
1243 case $enable_option_checking in 1293 case $enable_option_checking in
1244 no) ;; 1294 no) ;;
1245 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1295 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2
1246 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1296 { (exit 1); exit 1; }; } ;;
1297 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247 esac 1298 esac
1248 fi 1299 fi
1249 1300
1250 # Check all directory arguments for consistency. 1301 # Check all directory arguments for consistency.
1251 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1302 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1263 # Be sure to have absolute directory names. 1314 # Be sure to have absolute directory names.
1264 case $ac_val in 1315 case $ac_val in
1265 [\\/$]* | ?:[\\/]* ) continue;; 1316 [\\/$]* | ?:[\\/]* ) continue;;
1266 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1317 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267 esac 1318 esac
1268 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1319 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1320 { (exit 1); exit 1; }; }
1269 done 1321 done
1270 1322
1271 # There might be people who depend on the old broken behavior: `$host' 1323 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc. 1324 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day. 1325 # FIXME: To remove some day.
1293 1345
1294 1346
1295 ac_pwd=`pwd` && test -n "$ac_pwd" && 1347 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1296 ac_ls_di=`ls -di .` && 1348 ac_ls_di=`ls -di .` &&
1297 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1349 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1298 as_fn_error "working directory cannot be determined" 1350 { $as_echo "$as_me: error: Working directory cannot be determined" >&2
1351 { (exit 1); exit 1; }; }
1299 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1352 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1300 as_fn_error "pwd does not report name of working directory" 1353 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1354 { (exit 1); exit 1; }; }
1301 1355
1302 1356
1303 # Find the source files, if location was not specified. 1357 # Find the source files, if location was not specified.
1304 if test -z "$srcdir"; then 1358 if test -z "$srcdir"; then
1305 ac_srcdir_defaulted=yes 1359 ac_srcdir_defaulted=yes
1334 else 1388 else
1335 ac_srcdir_defaulted=no 1389 ac_srcdir_defaulted=no
1336 fi 1390 fi
1337 if test ! -r "$srcdir/$ac_unique_file"; then 1391 if test ! -r "$srcdir/$ac_unique_file"; then
1338 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1392 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1339 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1393 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1394 { (exit 1); exit 1; }; }
1340 fi 1395 fi
1341 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1396 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1342 ac_abs_confdir=`( 1397 ac_abs_confdir=`(
1343 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1398 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1399 { (exit 1); exit 1; }; }
1344 pwd)` 1400 pwd)`
1345 # When building in place, set srcdir=. 1401 # When building in place, set srcdir=.
1346 if test "$ac_abs_confdir" = "$ac_pwd"; then 1402 if test "$ac_abs_confdir" = "$ac_pwd"; then
1347 srcdir=. 1403 srcdir=.
1348 fi 1404 fi
1518 CC C compiler command 1574 CC C compiler command
1519 CFLAGS C compiler flags 1575 CFLAGS C compiler flags
1520 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1576 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1521 nonstandard directory <lib dir> 1577 nonstandard directory <lib dir>
1522 LIBS libraries to pass to the linker, e.g. -l<library> 1578 LIBS libraries to pass to the linker, e.g. -l<library>
1523 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1579 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1524 you have headers in a nonstandard directory <include dir> 1580 you have headers in a nonstandard directory <include dir>
1525 CPP C preprocessor 1581 CPP C preprocessor
1526 XMKMF Path to xmkmf, Makefile generator for X Window System 1582 XMKMF Path to xmkmf, Makefile generator for X Window System
1527 1583
1528 Use these variables to override the choices made by `configure' or to help 1584 Use these variables to override the choices made by `configure' or to help
1529 it to find libraries and programs with nonstandard names/locations. 1585 it to find libraries and programs with nonstandard names/locations.
1530 1586
1531 Report bugs to the package provider.
1532 _ACEOF 1587 _ACEOF
1533 ac_status=$? 1588 ac_status=$?
1534 fi 1589 fi
1535 1590
1536 if test "$ac_init_help" = "recursive"; then 1591 if test "$ac_init_help" = "recursive"; then
1590 1645
1591 test -n "$ac_init_help" && exit $ac_status 1646 test -n "$ac_init_help" && exit $ac_status
1592 if $ac_init_version; then 1647 if $ac_init_version; then
1593 cat <<\_ACEOF 1648 cat <<\_ACEOF
1594 emacs configure 24.0.50 1649 emacs configure 24.0.50
1595 generated by GNU Autoconf 2.65 1650 generated by GNU Autoconf 2.62
1596 1651
1597 Copyright (C) 2009 Free Software Foundation, Inc. 1652 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1653 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1598 This configure script is free software; the Free Software Foundation 1654 This configure script is free software; the Free Software Foundation
1599 gives unlimited permission to copy, distribute and modify it. 1655 gives unlimited permission to copy, distribute and modify it.
1600 _ACEOF 1656 _ACEOF
1601 exit 1657 exit
1602 fi 1658 fi
1603
1604 ## ------------------------ ##
1605 ## Autoconf initialization. ##
1606 ## ------------------------ ##
1607
1608 # ac_fn_c_try_compile LINENO
1609 # --------------------------
1610 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1611 ac_fn_c_try_compile ()
1612 {
1613 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1614 rm -f conftest.$ac_objext
1615 if { { ac_try="$ac_compile"
1616 case "(($ac_try" in
1617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1618 *) ac_try_echo=$ac_try;;
1619 esac
1620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1621 $as_echo "$ac_try_echo"; } >&5
1622 (eval "$ac_compile") 2>conftest.err
1623 ac_status=$?
1624 if test -s conftest.err; then
1625 grep -v '^ *+' conftest.err >conftest.er1
1626 cat conftest.er1 >&5
1627 mv -f conftest.er1 conftest.err
1628 fi
1629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1630 test $ac_status = 0; } && {
1631 test -z "$ac_c_werror_flag" ||
1632 test ! -s conftest.err
1633 } && test -s conftest.$ac_objext; then :
1634 ac_retval=0
1635 else
1636 $as_echo "$as_me: failed program was:" >&5
1637 sed 's/^/| /' conftest.$ac_ext >&5
1638
1639 ac_retval=1
1640 fi
1641 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1642 as_fn_set_status $ac_retval
1643
1644 } # ac_fn_c_try_compile
1645
1646 # ac_fn_c_try_link LINENO
1647 # -----------------------
1648 # Try to link conftest.$ac_ext, and return whether this succeeded.
1649 ac_fn_c_try_link ()
1650 {
1651 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1652 rm -f conftest.$ac_objext conftest$ac_exeext
1653 if { { ac_try="$ac_link"
1654 case "(($ac_try" in
1655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1656 *) ac_try_echo=$ac_try;;
1657 esac
1658 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1659 $as_echo "$ac_try_echo"; } >&5
1660 (eval "$ac_link") 2>conftest.err
1661 ac_status=$?
1662 if test -s conftest.err; then
1663 grep -v '^ *+' conftest.err >conftest.er1
1664 cat conftest.er1 >&5
1665 mv -f conftest.er1 conftest.err
1666 fi
1667 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1668 test $ac_status = 0; } && {
1669 test -z "$ac_c_werror_flag" ||
1670 test ! -s conftest.err
1671 } && test -s conftest$ac_exeext && {
1672 test "$cross_compiling" = yes ||
1673 $as_test_x conftest$ac_exeext
1674 }; then :
1675 ac_retval=0
1676 else
1677 $as_echo "$as_me: failed program was:" >&5
1678 sed 's/^/| /' conftest.$ac_ext >&5
1679
1680 ac_retval=1
1681 fi
1682 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1683 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1684 # interfere with the next link command; also delete a directory that is
1685 # left behind by Apple's compiler. We do this before executing the actions.
1686 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1687 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 as_fn_set_status $ac_retval
1689
1690 } # ac_fn_c_try_link
1691
1692 # ac_fn_c_try_cpp LINENO
1693 # ----------------------
1694 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1695 ac_fn_c_try_cpp ()
1696 {
1697 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1698 if { { ac_try="$ac_cpp conftest.$ac_ext"
1699 case "(($ac_try" in
1700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1701 *) ac_try_echo=$ac_try;;
1702 esac
1703 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1704 $as_echo "$ac_try_echo"; } >&5
1705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1706 ac_status=$?
1707 if test -s conftest.err; then
1708 grep -v '^ *+' conftest.err >conftest.er1
1709 cat conftest.er1 >&5
1710 mv -f conftest.er1 conftest.err
1711 fi
1712 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1713 test $ac_status = 0; } >/dev/null && {
1714 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1715 test ! -s conftest.err
1716 }; then :
1717 ac_retval=0
1718 else
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=1
1723 fi
1724 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1725 as_fn_set_status $ac_retval
1726
1727 } # ac_fn_c_try_cpp
1728
1729 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1730 # -------------------------------------------------------
1731 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1732 # the include files in INCLUDES and setting the cache variable VAR
1733 # accordingly.
1734 ac_fn_c_check_header_mongrel ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1739 $as_echo_n "checking for $2... " >&6; }
1740 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1741 $as_echo_n "(cached) " >&6
1742 fi
1743 eval ac_res=\$$3
1744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1745 $as_echo "$ac_res" >&6; }
1746 else
1747 # Is the header compilable?
1748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1749 $as_echo_n "checking $2 usability... " >&6; }
1750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1751 /* end confdefs.h. */
1752 $4
1753 #include <$2>
1754 _ACEOF
1755 if ac_fn_c_try_compile "$LINENO"; then :
1756 ac_header_compiler=yes
1757 else
1758 ac_header_compiler=no
1759 fi
1760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1762 $as_echo "$ac_header_compiler" >&6; }
1763
1764 # Is the header present?
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1766 $as_echo_n "checking $2 presence... " >&6; }
1767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1768 /* end confdefs.h. */
1769 #include <$2>
1770 _ACEOF
1771 if ac_fn_c_try_cpp "$LINENO"; then :
1772 ac_header_preproc=yes
1773 else
1774 ac_header_preproc=no
1775 fi
1776 rm -f conftest.err conftest.$ac_ext
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1778 $as_echo "$ac_header_preproc" >&6; }
1779
1780 # So? What about this header?
1781 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1782 yes:no: )
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1784 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1786 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1787 ;;
1788 no:yes:* )
1789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1790 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1792 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1794 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1796 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1798 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1799 ;;
1800 esac
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1804 $as_echo_n "(cached) " >&6
1805 else
1806 eval "$3=\$ac_header_compiler"
1807 fi
1808 eval ac_res=\$$3
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1810 $as_echo "$ac_res" >&6; }
1811 fi
1812 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1813
1814 } # ac_fn_c_check_header_mongrel
1815
1816 # ac_fn_c_try_run LINENO
1817 # ----------------------
1818 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1819 # that executables *can* be run.
1820 ac_fn_c_try_run ()
1821 {
1822 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1823 if { { ac_try="$ac_link"
1824 case "(($ac_try" in
1825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1827 esac
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_link") 2>&5
1831 ac_status=$?
1832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1833 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1834 { { case "(($ac_try" in
1835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1836 *) ac_try_echo=$ac_try;;
1837 esac
1838 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1839 $as_echo "$ac_try_echo"; } >&5
1840 (eval "$ac_try") 2>&5
1841 ac_status=$?
1842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1843 test $ac_status = 0; }; }; then :
1844 ac_retval=0
1845 else
1846 $as_echo "$as_me: program exited with status $ac_status" >&5
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1849
1850 ac_retval=$ac_status
1851 fi
1852 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1853 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1854 as_fn_set_status $ac_retval
1855
1856 } # ac_fn_c_try_run
1857
1858 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1859 # -------------------------------------------------------
1860 # Tests whether HEADER exists and can be compiled using the include files in
1861 # INCLUDES, setting the cache variable VAR accordingly.
1862 ac_fn_c_check_header_compile ()
1863 {
1864 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1866 $as_echo_n "checking for $2... " >&6; }
1867 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1868 $as_echo_n "(cached) " >&6
1869 else
1870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1871 /* end confdefs.h. */
1872 $4
1873 #include <$2>
1874 _ACEOF
1875 if ac_fn_c_try_compile "$LINENO"; then :
1876 eval "$3=yes"
1877 else
1878 eval "$3=no"
1879 fi
1880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1881 fi
1882 eval ac_res=\$$3
1883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1884 $as_echo "$ac_res" >&6; }
1885 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1886
1887 } # ac_fn_c_check_header_compile
1888
1889 # ac_fn_c_check_decl LINENO SYMBOL VAR
1890 # ------------------------------------
1891 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1892 ac_fn_c_check_decl ()
1893 {
1894 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1896 $as_echo_n "checking whether $2 is declared... " >&6; }
1897 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1898 $as_echo_n "(cached) " >&6
1899 else
1900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1901 /* end confdefs.h. */
1902 $4
1903 int
1904 main ()
1905 {
1906 #ifndef $2
1907 (void) $2;
1908 #endif
1909
1910 ;
1911 return 0;
1912 }
1913 _ACEOF
1914 if ac_fn_c_try_compile "$LINENO"; then :
1915 eval "$3=yes"
1916 else
1917 eval "$3=no"
1918 fi
1919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1920 fi
1921 eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923 $as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1925
1926 } # ac_fn_c_check_decl
1927
1928 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1929 # ----------------------------------------------
1930 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1931 ac_fn_c_check_header_preproc ()
1932 {
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1935 $as_echo_n "checking for $2... " >&6; }
1936 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1937 $as_echo_n "(cached) " >&6
1938 else
1939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1940 /* end confdefs.h. */
1941 #include <$2>
1942 _ACEOF
1943 if ac_fn_c_try_cpp "$LINENO"; then :
1944 eval "$3=yes"
1945 else
1946 eval "$3=no"
1947 fi
1948 rm -f conftest.err conftest.$ac_ext
1949 fi
1950 eval ac_res=\$$3
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1952 $as_echo "$ac_res" >&6; }
1953 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1954
1955 } # ac_fn_c_check_header_preproc
1956
1957 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1958 # ----------------------------------------------------
1959 # Tries to find if the field MEMBER exists in type AGGR, after including
1960 # INCLUDES, setting cache variable VAR accordingly.
1961 ac_fn_c_check_member ()
1962 {
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1965 $as_echo_n "checking for $2.$3... " >&6; }
1966 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1967 $as_echo_n "(cached) " >&6
1968 else
1969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1970 /* end confdefs.h. */
1971 $5
1972 int
1973 main ()
1974 {
1975 static $2 ac_aggr;
1976 if (ac_aggr.$3)
1977 return 0;
1978 ;
1979 return 0;
1980 }
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"; then :
1983 eval "$4=yes"
1984 else
1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1986 /* end confdefs.h. */
1987 $5
1988 int
1989 main ()
1990 {
1991 static $2 ac_aggr;
1992 if (sizeof ac_aggr.$3)
1993 return 0;
1994 ;
1995 return 0;
1996 }
1997 _ACEOF
1998 if ac_fn_c_try_compile "$LINENO"; then :
1999 eval "$4=yes"
2000 else
2001 eval "$4=no"
2002 fi
2003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 fi
2005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2006 fi
2007 eval ac_res=\$$4
2008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2009 $as_echo "$ac_res" >&6; }
2010 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2011
2012 } # ac_fn_c_check_member
2013
2014 # ac_fn_c_check_func LINENO FUNC VAR
2015 # ----------------------------------
2016 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2017 ac_fn_c_check_func ()
2018 {
2019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2021 $as_echo_n "checking for $2... " >&6; }
2022 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2023 $as_echo_n "(cached) " >&6
2024 else
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2029 #define $2 innocuous_$2
2030
2031 /* System header to define __stub macros and hopefully few prototypes,
2032 which can conflict with char $2 (); below.
2033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2034 <limits.h> exists even on freestanding compilers. */
2035
2036 #ifdef __STDC__
2037 # include <limits.h>
2038 #else
2039 # include <assert.h>
2040 #endif
2041
2042 #undef $2
2043
2044 /* Override any GCC internal prototype to avoid an error.
2045 Use char because int might match the return type of a GCC
2046 builtin and then its argument prototype would still apply. */
2047 #ifdef __cplusplus
2048 extern "C"
2049 #endif
2050 char $2 ();
2051 /* The GNU C library defines this for functions which it implements
2052 to always fail with ENOSYS. Some functions are actually named
2053 something starting with __ and the normal name is an alias. */
2054 #if defined __stub_$2 || defined __stub___$2
2055 choke me
2056 #endif
2057
2058 int
2059 main ()
2060 {
2061 return $2 ();
2062 ;
2063 return 0;
2064 }
2065 _ACEOF
2066 if ac_fn_c_try_link "$LINENO"; then :
2067 eval "$3=yes"
2068 else
2069 eval "$3=no"
2070 fi
2071 rm -f core conftest.err conftest.$ac_objext \
2072 conftest$ac_exeext conftest.$ac_ext
2073 fi
2074 eval ac_res=\$$3
2075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2076 $as_echo "$ac_res" >&6; }
2077 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2078
2079 } # ac_fn_c_check_func
2080
2081 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2082 # -------------------------------------------
2083 # Tests whether TYPE exists after having included INCLUDES, setting cache
2084 # variable VAR accordingly.
2085 ac_fn_c_check_type ()
2086 {
2087 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2089 $as_echo_n "checking for $2... " >&6; }
2090 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2091 $as_echo_n "(cached) " >&6
2092 else
2093 eval "$3=no"
2094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2095 /* end confdefs.h. */
2096 $4
2097 int
2098 main ()
2099 {
2100 if (sizeof ($2))
2101 return 0;
2102 ;
2103 return 0;
2104 }
2105 _ACEOF
2106 if ac_fn_c_try_compile "$LINENO"; then :
2107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2108 /* end confdefs.h. */
2109 $4
2110 int
2111 main ()
2112 {
2113 if (sizeof (($2)))
2114 return 0;
2115 ;
2116 return 0;
2117 }
2118 _ACEOF
2119 if ac_fn_c_try_compile "$LINENO"; then :
2120
2121 else
2122 eval "$3=yes"
2123 fi
2124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2125 fi
2126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2127 fi
2128 eval ac_res=\$$3
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2132
2133 } # ac_fn_c_check_type
2134 cat >config.log <<_ACEOF 1659 cat >config.log <<_ACEOF
2135 This file contains any messages produced by compilers while 1660 This file contains any messages produced by compilers while
2136 running configure, to aid debugging if configure makes a mistake. 1661 running configure, to aid debugging if configure makes a mistake.
2137 1662
2138 It was created by emacs $as_me 24.0.50, which was 1663 It was created by emacs $as_me 24.0.50, which was
2139 generated by GNU Autoconf 2.65. Invocation command line was 1664 generated by GNU Autoconf 2.62. Invocation command line was
2140 1665
2141 $ $0 $@ 1666 $ $0 $@
2142 1667
2143 _ACEOF 1668 _ACEOF
2144 exec 5>>config.log 1669 exec 5>>config.log
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH 1696 for as_dir in $PATH
2172 do 1697 do
2173 IFS=$as_save_IFS 1698 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=. 1699 test -z "$as_dir" && as_dir=.
2175 $as_echo "PATH: $as_dir" 1700 $as_echo "PATH: $as_dir"
2176 done 1701 done
2177 IFS=$as_save_IFS 1702 IFS=$as_save_IFS
2178 1703
2179 } >&5 1704 } >&5
2180 1705
2181 cat >&5 <<_ACEOF 1706 cat >&5 <<_ACEOF
2208 continue ;; 1733 continue ;;
2209 *\'*) 1734 *\'*)
2210 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1735 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2211 esac 1736 esac
2212 case $ac_pass in 1737 case $ac_pass in
2213 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1738 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
2214 2) 1739 2)
2215 as_fn_append ac_configure_args1 " '$ac_arg'" 1740 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
2216 if test $ac_must_keep_next = true; then 1741 if test $ac_must_keep_next = true; then
2217 ac_must_keep_next=false # Got value, back to normal. 1742 ac_must_keep_next=false # Got value, back to normal.
2218 else 1743 else
2219 case $ac_arg in 1744 case $ac_arg in
2220 *=* | --config-cache | -C | -disable-* | --disable-* \ 1745 *=* | --config-cache | -C | -disable-* | --disable-* \
2226 esac 1751 esac
2227 ;; 1752 ;;
2228 -* ) ac_must_keep_next=true ;; 1753 -* ) ac_must_keep_next=true ;;
2229 esac 1754 esac
2230 fi 1755 fi
2231 as_fn_append ac_configure_args " '$ac_arg'" 1756 ac_configure_args="$ac_configure_args '$ac_arg'"
2232 ;; 1757 ;;
2233 esac 1758 esac
2234 done 1759 done
2235 done 1760 done
2236 { ac_configure_args0=; unset ac_configure_args0;} 1761 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
2237 { ac_configure_args1=; unset ac_configure_args1;} 1762 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
2238 1763
2239 # When interrupted or exit'd, cleanup temporary files, and complete 1764 # When interrupted or exit'd, cleanup temporary files, and complete
2240 # config.log. We remove comments because anyway the quotes in there 1765 # config.log. We remove comments because anyway the quotes in there
2241 # would cause problems or look ugly. 1766 # would cause problems or look ugly.
2242 # WARNING: Use '\'' to represent an apostrophe within the trap. 1767 # WARNING: Use '\'' to represent an apostrophe within the trap.
2257 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1782 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2258 eval ac_val=\$$ac_var 1783 eval ac_val=\$$ac_var
2259 case $ac_val in #( 1784 case $ac_val in #(
2260 *${as_nl}*) 1785 *${as_nl}*)
2261 case $ac_var in #( 1786 case $ac_var in #(
2262 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1787 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
2263 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1788 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
2264 esac 1789 esac
2265 case $ac_var in #( 1790 case $ac_var in #(
2266 _ | IFS | as_nl) ;; #( 1791 _ | IFS | as_nl) ;; #(
2267 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1792 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2268 *) { eval $ac_var=; unset $ac_var;} ;; 1793 *) $as_unset $ac_var ;;
2269 esac ;; 1794 esac ;;
2270 esac 1795 esac
2271 done 1796 done
2272 (set) 2>&1 | 1797 (set) 2>&1 |
2273 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1798 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2335 rm -f core *.core core.conftest.* && 1860 rm -f core *.core core.conftest.* &&
2336 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 1861 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2337 exit $exit_status 1862 exit $exit_status
2338 ' 0 1863 ' 0
2339 for ac_signal in 1 2 13 15; do 1864 for ac_signal in 1 2 13 15; do
2340 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 1865 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
2341 done 1866 done
2342 ac_signal=0 1867 ac_signal=0
2343 1868
2344 # confdefs.h avoids OS command line length limits that DEFS can exceed. 1869 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2345 rm -f -r conftest* confdefs.h 1870 rm -f -r conftest* confdefs.h
2346 1871
2347 $as_echo "/* confdefs.h */" > confdefs.h
2348
2349 # Predefined preprocessor variables. 1872 # Predefined preprocessor variables.
2350 1873
2351 cat >>confdefs.h <<_ACEOF 1874 cat >>confdefs.h <<_ACEOF
2352 #define PACKAGE_NAME "$PACKAGE_NAME" 1875 #define PACKAGE_NAME "$PACKAGE_NAME"
2353 _ACEOF 1876 _ACEOF
2354 1877
1878
2355 cat >>confdefs.h <<_ACEOF 1879 cat >>confdefs.h <<_ACEOF
2356 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1880 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2357 _ACEOF 1881 _ACEOF
2358 1882
1883
2359 cat >>confdefs.h <<_ACEOF 1884 cat >>confdefs.h <<_ACEOF
2360 #define PACKAGE_VERSION "$PACKAGE_VERSION" 1885 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2361 _ACEOF 1886 _ACEOF
2362 1887
1888
2363 cat >>confdefs.h <<_ACEOF 1889 cat >>confdefs.h <<_ACEOF
2364 #define PACKAGE_STRING "$PACKAGE_STRING" 1890 #define PACKAGE_STRING "$PACKAGE_STRING"
2365 _ACEOF 1891 _ACEOF
2366 1892
1893
2367 cat >>confdefs.h <<_ACEOF 1894 cat >>confdefs.h <<_ACEOF
2368 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1895 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2369 _ACEOF
2370
2371 cat >>confdefs.h <<_ACEOF
2372 #define PACKAGE_URL "$PACKAGE_URL"
2373 _ACEOF 1896 _ACEOF
2374 1897
2375 1898
2376 # Let the site file select an alternate cache file if it wants to. 1899 # Let the site file select an alternate cache file if it wants to.
2377 # Prefer an explicitly selected file to automatically selected ones. 1900 # Prefer an explicitly selected file to automatically selected ones.
2387 ac_site_file2=$ac_default_prefix/etc/config.site 1910 ac_site_file2=$ac_default_prefix/etc/config.site
2388 fi 1911 fi
2389 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 1912 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2390 do 1913 do
2391 test "x$ac_site_file" = xNONE && continue 1914 test "x$ac_site_file" = xNONE && continue
2392 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 1915 if test -r "$ac_site_file"; then
2393 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 1916 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
2394 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 1917 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2395 sed 's/^/| /' "$ac_site_file" >&5 1918 sed 's/^/| /' "$ac_site_file" >&5
2396 . "$ac_site_file" 1919 . "$ac_site_file"
2397 fi 1920 fi
2398 done 1921 done
2399 1922
2400 if test -r "$cache_file"; then 1923 if test -r "$cache_file"; then
2401 # Some versions of bash will fail to source /dev/null (special files 1924 # Some versions of bash will fail to source /dev/null (special
2402 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 1925 # files actually), so we avoid doing that.
2403 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 1926 if test -f "$cache_file"; then
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 1927 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
2405 $as_echo "$as_me: loading cache $cache_file" >&6;} 1928 $as_echo "$as_me: loading cache $cache_file" >&6;}
2406 case $cache_file in 1929 case $cache_file in
2407 [\\/]* | ?:[\\/]* ) . "$cache_file";; 1930 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2408 *) . "./$cache_file";; 1931 *) . "./$cache_file";;
2409 esac 1932 esac
2410 fi 1933 fi
2411 else 1934 else
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 1935 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
2413 $as_echo "$as_me: creating cache $cache_file" >&6;} 1936 $as_echo "$as_me: creating cache $cache_file" >&6;}
2414 >$cache_file 1937 >$cache_file
2415 fi 1938 fi
2416 1939
2417 as_fn_append ac_header_list " stdlib.h" 1940 ac_header_list="$ac_header_list sys/time.h"
2418 as_fn_append ac_header_list " unistd.h" 1941 ac_header_list="$ac_header_list unistd.h"
2419 as_fn_append ac_header_list " sys/param.h" 1942 ac_func_list="$ac_func_list alarm"
2420 as_fn_append ac_header_list " sys/time.h"
2421 as_fn_append ac_func_list " alarm"
2422 # Check that the precious variables saved in the cache have kept the same 1943 # Check that the precious variables saved in the cache have kept the same
2423 # value. 1944 # value.
2424 ac_cache_corrupted=false 1945 ac_cache_corrupted=false
2425 for ac_var in $ac_precious_vars; do 1946 for ac_var in $ac_precious_vars; do
2426 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1947 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2427 eval ac_new_set=\$ac_env_${ac_var}_set 1948 eval ac_new_set=\$ac_env_${ac_var}_set
2428 eval ac_old_val=\$ac_cv_env_${ac_var}_value 1949 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2429 eval ac_new_val=\$ac_env_${ac_var}_value 1950 eval ac_new_val=\$ac_env_${ac_var}_value
2430 case $ac_old_set,$ac_new_set in 1951 case $ac_old_set,$ac_new_set in
2431 set,) 1952 set,)
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1953 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2433 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1954 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2434 ac_cache_corrupted=: ;; 1955 ac_cache_corrupted=: ;;
2435 ,set) 1956 ,set)
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 1957 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
2437 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1958 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2438 ac_cache_corrupted=: ;; 1959 ac_cache_corrupted=: ;;
2439 ,);; 1960 ,);;
2440 *) 1961 *)
2441 if test "x$ac_old_val" != "x$ac_new_val"; then 1962 if test "x$ac_old_val" != "x$ac_new_val"; then
2442 # differences in whitespace do not lead to failure. 1963 # differences in whitespace do not lead to failure.
2443 ac_old_val_w=`echo x $ac_old_val` 1964 ac_old_val_w=`echo x $ac_old_val`
2444 ac_new_val_w=`echo x $ac_new_val` 1965 ac_new_val_w=`echo x $ac_new_val`
2445 if test "$ac_old_val_w" != "$ac_new_val_w"; then 1966 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 1967 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
2447 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1968 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2448 ac_cache_corrupted=: 1969 ac_cache_corrupted=:
2449 else 1970 else
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 1971 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2451 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 1972 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2452 eval $ac_var=\$ac_old_val 1973 eval $ac_var=\$ac_old_val
2453 fi 1974 fi
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 1975 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
2455 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 1976 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 1977 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
2457 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 1978 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2458 fi;; 1979 fi;;
2459 esac 1980 esac
2460 # Pass precious variables to config.status. 1981 # Pass precious variables to config.status.
2461 if test "$ac_new_set" = set; then 1982 if test "$ac_new_set" = set; then
2463 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1984 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2464 *) ac_arg=$ac_var=$ac_new_val ;; 1985 *) ac_arg=$ac_var=$ac_new_val ;;
2465 esac 1986 esac
2466 case " $ac_configure_args " in 1987 case " $ac_configure_args " in
2467 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1988 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2468 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 1989 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2469 esac 1990 esac
2470 fi 1991 fi
2471 done 1992 done
2472 if $ac_cache_corrupted; then 1993 if $ac_cache_corrupted; then
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 1994 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2474 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2476 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1995 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2477 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 1996 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2478 fi 1997 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2479 ## -------------------- ## 1998 { (exit 1); exit 1; }; }
2480 ## Main body of script. ## 1999 fi
2481 ## -------------------- ## 2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2482 2024
2483 ac_ext=c 2025 ac_ext=c
2484 ac_cpp='$CPP $CPPFLAGS' 2026 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2515 2057
2516 2058
2517 2059
2518 2060
2519 # Check whether --with-pop was given. 2061 # Check whether --with-pop was given.
2520 if test "${with_pop+set}" = set; then : 2062 if test "${with_pop+set}" = set; then
2521 withval=$with_pop; 2063 withval=$with_pop;
2522 else 2064 else
2523 with_pop=yes 2065 with_pop=yes
2524 fi 2066 fi
2525 2067
2526 if test "$with_pop" = yes; then 2068 if test "$with_pop" = yes; then
2527 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h 2069 cat >>confdefs.h <<\_ACEOF
2528 2070 #define MAIL_USE_POP 1
2529 fi 2071 _ACEOF
2072
2073 fi
2074
2530 2075
2531 2076
2532 # Check whether --with-kerberos was given. 2077 # Check whether --with-kerberos was given.
2533 if test "${with_kerberos+set}" = set; then : 2078 if test "${with_kerberos+set}" = set; then
2534 withval=$with_kerberos; 2079 withval=$with_kerberos;
2535 else 2080 else
2536 with_kerberos=no 2081 with_kerberos=no
2537 fi 2082 fi
2538 2083
2539 if test "$with_kerberos" != no; then 2084 if test "$with_kerberos" != no; then
2540 $as_echo "#define KERBEROS 1" >>confdefs.h 2085 cat >>confdefs.h <<\_ACEOF
2541 2086 #define KERBEROS 1
2542 fi 2087 _ACEOF
2088
2089 fi
2090
2543 2091
2544 2092
2545 # Check whether --with-kerberos5 was given. 2093 # Check whether --with-kerberos5 was given.
2546 if test "${with_kerberos5+set}" = set; then : 2094 if test "${with_kerberos5+set}" = set; then
2547 withval=$with_kerberos5; 2095 withval=$with_kerberos5;
2548 else 2096 else
2549 with_kerberos5=no 2097 with_kerberos5=no
2550 fi 2098 fi
2551 2099
2552 if test "${with_kerberos5}" != no; then 2100 if test "${with_kerberos5}" != no; then
2553 if test "${with_kerberos}" = no; then 2101 if test "${with_kerberos}" = no; then
2554 with_kerberos=yes 2102 with_kerberos=yes
2555 $as_echo "#define KERBEROS 1" >>confdefs.h 2103 cat >>confdefs.h <<\_ACEOF
2104 #define KERBEROS 1
2105 _ACEOF
2556 2106
2557 fi 2107 fi
2558 2108
2559 $as_echo "#define KERBEROS5 1" >>confdefs.h 2109 cat >>confdefs.h <<\_ACEOF
2110 #define KERBEROS5 1
2111 _ACEOF
2560 2112
2561 fi 2113 fi
2562 2114
2563 2115
2564 # Check whether --with-hesiod was given. 2116 # Check whether --with-hesiod was given.
2565 if test "${with_hesiod+set}" = set; then : 2117 if test "${with_hesiod+set}" = set; then
2566 withval=$with_hesiod; 2118 withval=$with_hesiod;
2567 else 2119 else
2568 with_hesiod=no 2120 with_hesiod=no
2569 fi 2121 fi
2570 2122
2571 if test "$with_hesiod" != no; then 2123 if test "$with_hesiod" != no; then
2572 2124
2573 $as_echo "#define HESIOD 1" >>confdefs.h 2125 cat >>confdefs.h <<\_ACEOF
2126 #define HESIOD 1
2127 _ACEOF
2574 2128
2575 fi 2129 fi
2576 2130
2577 2131
2578 # Check whether --with-mmdf was given. 2132 # Check whether --with-mmdf was given.
2579 if test "${with_mmdf+set}" = set; then : 2133 if test "${with_mmdf+set}" = set; then
2580 withval=$with_mmdf; 2134 withval=$with_mmdf;
2581 else 2135 else
2582 with_mmdf=no 2136 with_mmdf=no
2583 fi 2137 fi
2584 2138
2585 if test "$with_mmdf" != no; then 2139 if test "$with_mmdf" != no; then
2586 2140
2587 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h 2141 cat >>confdefs.h <<\_ACEOF
2142 #define MAIL_USE_MMDF 1
2143 _ACEOF
2588 2144
2589 fi 2145 fi
2590 2146
2591 2147
2592 # Check whether --with-mail-unlink was given. 2148 # Check whether --with-mail-unlink was given.
2593 if test "${with_mail_unlink+set}" = set; then : 2149 if test "${with_mail_unlink+set}" = set; then
2594 withval=$with_mail_unlink; 2150 withval=$with_mail_unlink;
2595 else 2151 else
2596 with_mail_unlink=no 2152 with_mail_unlink=no
2597 fi 2153 fi
2598 2154
2599 if test "$with_mail_unlink" != no; then 2155 if test "$with_mail_unlink" != no; then
2600 2156
2601 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h 2157 cat >>confdefs.h <<\_ACEOF
2158 #define MAIL_UNLINK_SPOOL 1
2159 _ACEOF
2602 2160
2603 fi 2161 fi
2604 2162
2605 2163
2606 # Check whether --with-mailhost was given. 2164 # Check whether --with-mailhost was given.
2607 if test "${with_mailhost+set}" = set; then : 2165 if test "${with_mailhost+set}" = set; then
2608 withval=$with_mailhost; 2166 withval=$with_mailhost;
2609 cat >>confdefs.h <<_ACEOF 2167 cat >>confdefs.h <<_ACEOF
2610 #define MAILHOST "$withval" 2168 #define MAILHOST "$withval"
2611 _ACEOF 2169 _ACEOF
2612 2170
2613 fi 2171 fi
2614 2172
2615 2173
2616 2174
2617 # Check whether --with-sound was given. 2175 # Check whether --with-sound was given.
2618 if test "${with_sound+set}" = set; then : 2176 if test "${with_sound+set}" = set; then
2619 withval=$with_sound; 2177 withval=$with_sound;
2620 else 2178 else
2621 with_sound=yes 2179 with_sound=yes
2622 fi 2180 fi
2623 2181
2624 2182
2625 2183
2626 # Check whether --with-sync-input was given. 2184 # Check whether --with-sync-input was given.
2627 if test "${with_sync_input+set}" = set; then : 2185 if test "${with_sync_input+set}" = set; then
2628 withval=$with_sync_input; 2186 withval=$with_sync_input;
2629 else 2187 else
2630 with_sync_input=yes 2188 with_sync_input=yes
2631 fi 2189 fi
2632 2190
2633 if test "$with_sync_input" = yes; then 2191 if test "$with_sync_input" = yes; then
2634 2192
2635 $as_echo "#define SYNC_INPUT 1" >>confdefs.h 2193 cat >>confdefs.h <<\_ACEOF
2194 #define SYNC_INPUT 1
2195 _ACEOF
2636 2196
2637 fi 2197 fi
2638 2198
2639 2199
2640 # Check whether --with-x-toolkit was given. 2200 # Check whether --with-x-toolkit was given.
2641 if test "${with_x_toolkit+set}" = set; then : 2201 if test "${with_x_toolkit+set}" = set; then
2642 withval=$with_x_toolkit; case "${withval}" in 2202 withval=$with_x_toolkit; case "${withval}" in
2643 y | ye | yes ) val=gtk ;; 2203 y | ye | yes ) val=gtk ;;
2644 n | no ) val=no ;; 2204 n | no ) val=no ;;
2645 l | lu | luc | luci | lucid ) val=lucid ;; 2205 l | lu | luc | luci | lucid ) val=lucid ;;
2646 a | at | ath | athe | athen | athena ) val=athena ;; 2206 a | at | ath | athe | athen | athena ) val=athena ;;
2647 m | mo | mot | moti | motif ) val=motif ;; 2207 m | mo | mot | moti | motif ) val=motif ;;
2648 g | gt | gtk ) val=gtk ;; 2208 g | gt | gtk ) val=gtk ;;
2649 * ) 2209 * )
2650 as_fn_error "\`--with-x-toolkit=$withval' is invalid; 2210 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
2651 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. 2211 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2652 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5 2212 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
2213 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2214 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2215 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2216 { (exit 1); exit 1; }; }
2653 ;; 2217 ;;
2654 esac 2218 esac
2655 with_x_toolkit=$val 2219 with_x_toolkit=$val
2656 2220
2657 fi 2221 fi
2658 2222
2659 2223
2660 2224
2661 # Check whether --with-xpm was given. 2225 # Check whether --with-xpm was given.
2662 if test "${with_xpm+set}" = set; then : 2226 if test "${with_xpm+set}" = set; then
2663 withval=$with_xpm; 2227 withval=$with_xpm;
2664 else 2228 else
2665 with_xpm=yes 2229 with_xpm=yes
2666 fi 2230 fi
2667 2231
2668 2232
2669 # Check whether --with-jpeg was given. 2233 # Check whether --with-jpeg was given.
2670 if test "${with_jpeg+set}" = set; then : 2234 if test "${with_jpeg+set}" = set; then
2671 withval=$with_jpeg; 2235 withval=$with_jpeg;
2672 else 2236 else
2673 with_jpeg=yes 2237 with_jpeg=yes
2674 fi 2238 fi
2675 2239
2676 2240
2677 # Check whether --with-tiff was given. 2241 # Check whether --with-tiff was given.
2678 if test "${with_tiff+set}" = set; then : 2242 if test "${with_tiff+set}" = set; then
2679 withval=$with_tiff; 2243 withval=$with_tiff;
2680 else 2244 else
2681 with_tiff=yes 2245 with_tiff=yes
2682 fi 2246 fi
2683 2247
2684 2248
2685 # Check whether --with-gif was given. 2249 # Check whether --with-gif was given.
2686 if test "${with_gif+set}" = set; then : 2250 if test "${with_gif+set}" = set; then
2687 withval=$with_gif; 2251 withval=$with_gif;
2688 else 2252 else
2689 with_gif=yes 2253 with_gif=yes
2690 fi 2254 fi
2691 2255
2692 2256
2693 # Check whether --with-png was given. 2257 # Check whether --with-png was given.
2694 if test "${with_png+set}" = set; then : 2258 if test "${with_png+set}" = set; then
2695 withval=$with_png; 2259 withval=$with_png;
2696 else 2260 else
2697 with_png=yes 2261 with_png=yes
2698 fi 2262 fi
2699 2263
2700 2264
2701 # Check whether --with-rsvg was given. 2265 # Check whether --with-rsvg was given.
2702 if test "${with_rsvg+set}" = set; then : 2266 if test "${with_rsvg+set}" = set; then
2703 withval=$with_rsvg; 2267 withval=$with_rsvg;
2704 else 2268 else
2705 with_rsvg=yes 2269 with_rsvg=yes
2706 fi 2270 fi
2707 2271
2708 2272
2709 2273
2710 # Check whether --with-xft was given. 2274 # Check whether --with-xft was given.
2711 if test "${with_xft+set}" = set; then : 2275 if test "${with_xft+set}" = set; then
2712 withval=$with_xft; 2276 withval=$with_xft;
2713 else 2277 else
2714 with_xft=yes 2278 with_xft=yes
2715 fi 2279 fi
2716 2280
2717 2281
2718 # Check whether --with-libotf was given. 2282 # Check whether --with-libotf was given.
2719 if test "${with_libotf+set}" = set; then : 2283 if test "${with_libotf+set}" = set; then
2720 withval=$with_libotf; 2284 withval=$with_libotf;
2721 else 2285 else
2722 with_libotf=yes 2286 with_libotf=yes
2723 fi 2287 fi
2724 2288
2725 2289
2726 # Check whether --with-m17n-flt was given. 2290 # Check whether --with-m17n-flt was given.
2727 if test "${with_m17n_flt+set}" = set; then : 2291 if test "${with_m17n_flt+set}" = set; then
2728 withval=$with_m17n_flt; 2292 withval=$with_m17n_flt;
2729 else 2293 else
2730 with_m17n_flt=yes 2294 with_m17n_flt=yes
2731 fi 2295 fi
2732 2296
2733 2297
2734 2298
2735 # Check whether --with-toolkit-scroll-bars was given. 2299 # Check whether --with-toolkit-scroll-bars was given.
2736 if test "${with_toolkit_scroll_bars+set}" = set; then : 2300 if test "${with_toolkit_scroll_bars+set}" = set; then
2737 withval=$with_toolkit_scroll_bars; 2301 withval=$with_toolkit_scroll_bars;
2738 else 2302 else
2739 with_toolkit_scroll_bars=yes 2303 with_toolkit_scroll_bars=yes
2740 fi 2304 fi
2741 2305
2742 2306
2743 # Check whether --with-xaw3d was given. 2307 # Check whether --with-xaw3d was given.
2744 if test "${with_xaw3d+set}" = set; then : 2308 if test "${with_xaw3d+set}" = set; then
2745 withval=$with_xaw3d; 2309 withval=$with_xaw3d;
2746 else 2310 else
2747 with_xaw3d=yes 2311 with_xaw3d=yes
2748 fi 2312 fi
2749 2313
2750 2314
2751 # Check whether --with-xim was given. 2315 # Check whether --with-xim was given.
2752 if test "${with_xim+set}" = set; then : 2316 if test "${with_xim+set}" = set; then
2753 withval=$with_xim; 2317 withval=$with_xim;
2754 else 2318 else
2755 with_xim=yes 2319 with_xim=yes
2756 fi 2320 fi
2757 2321
2758 2322
2759 # Check whether --with-ns was given. 2323 # Check whether --with-ns was given.
2760 if test "${with_ns+set}" = set; then : 2324 if test "${with_ns+set}" = set; then
2761 withval=$with_ns; 2325 withval=$with_ns;
2762 else 2326 else
2763 with_ns=no 2327 with_ns=no
2764 fi 2328 fi
2765 2329
2766 2330
2767 2331
2768 # Check whether --with-gpm was given. 2332 # Check whether --with-gpm was given.
2769 if test "${with_gpm+set}" = set; then : 2333 if test "${with_gpm+set}" = set; then
2770 withval=$with_gpm; 2334 withval=$with_gpm;
2771 else 2335 else
2772 with_gpm=yes 2336 with_gpm=yes
2773 fi 2337 fi
2774 2338
2775 2339
2776 # Check whether --with-dbus was given. 2340 # Check whether --with-dbus was given.
2777 if test "${with_dbus+set}" = set; then : 2341 if test "${with_dbus+set}" = set; then
2778 withval=$with_dbus; 2342 withval=$with_dbus;
2779 else 2343 else
2780 with_dbus=yes 2344 with_dbus=yes
2781 fi 2345 fi
2782 2346
2783 2347
2784 # Check whether --with-gconf was given. 2348 # Check whether --with-gconf was given.
2785 if test "${with_gconf+set}" = set; then : 2349 if test "${with_gconf+set}" = set; then
2786 withval=$with_gconf; 2350 withval=$with_gconf;
2787 else 2351 else
2788 with_gconf=yes 2352 with_gconf=yes
2789 fi 2353 fi
2790 2354
2791 2355
2792 # Check whether --with-selinux was given. 2356 # Check whether --with-selinux was given.
2793 if test "${with_selinux+set}" = set; then : 2357 if test "${with_selinux+set}" = set; then
2794 withval=$with_selinux; 2358 withval=$with_selinux;
2795 else 2359 else
2796 with_selinux=yes 2360 with_selinux=yes
2797 fi 2361 fi
2798 2362
2799 2363
2800 ## For the times when you want to build Emacs but don't have 2364 ## For the times when you want to build Emacs but don't have
2801 ## a suitable makeinfo, and can live without the manuals. 2365 ## a suitable makeinfo, and can live without the manuals.
2802 2366
2803 # Check whether --with-makeinfo was given. 2367 # Check whether --with-makeinfo was given.
2804 if test "${with_makeinfo+set}" = set; then : 2368 if test "${with_makeinfo+set}" = set; then
2805 withval=$with_makeinfo; 2369 withval=$with_makeinfo;
2806 else 2370 else
2807 with_makeinfo=yes 2371 with_makeinfo=yes
2808 fi 2372 fi
2809 2373
2810 2374
2811 2375
2812 # Check whether --with-gtk was given. 2376 # Check whether --with-gtk was given.
2813 if test "${with_gtk+set}" = set; then : 2377 if test "${with_gtk+set}" = set; then
2814 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to 2378 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2815 specify a toolkit." "$LINENO" 5 2379 specify a toolkit." >&5
2380 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2381 specify a toolkit." >&2;}
2382 { (exit 1); exit 1; }; }
2816 fi 2383 fi
2817 2384
2818 2385
2819 2386
2820 # Check whether --with-gcc was given. 2387 # Check whether --with-gcc was given.
2821 if test "${with_gcc+set}" = set; then : 2388 if test "${with_gcc+set}" = set; then
2822 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment 2389 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2823 variable to specify a compiler." "$LINENO" 5 2390 variable to specify a compiler." >&5
2391 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2392 variable to specify a compiler." >&2;}
2393 { (exit 1); exit 1; }; }
2824 fi 2394 fi
2825 2395
2826 2396
2827 2397
2828 # Check whether --with-pkg-config-prog was given. 2398 # Check whether --with-pkg-config-prog was given.
2829 if test "${with_pkg_config_prog+set}" = set; then : 2399 if test "${with_pkg_config_prog+set}" = set; then
2830 withval=$with_pkg_config_prog; 2400 withval=$with_pkg_config_prog;
2831 fi 2401 fi
2832 2402
2833 if test "X${with_pkg_config_prog}" != X; then 2403 if test "X${with_pkg_config_prog}" != X; then
2834 if test "${with_pkg_config_prog}" != yes; then 2404 if test "${with_pkg_config_prog}" != yes; then
2837 fi 2407 fi
2838 2408
2839 CRT_DIR= 2409 CRT_DIR=
2840 2410
2841 # Check whether --with-crt-dir was given. 2411 # Check whether --with-crt-dir was given.
2842 if test "${with_crt_dir+set}" = set; then : 2412 if test "${with_crt_dir+set}" = set; then
2843 withval=$with_crt_dir; 2413 withval=$with_crt_dir;
2844 fi 2414 fi
2845 2415
2846 CRT_DIR="${with_crt_dir}" 2416 CRT_DIR="${with_crt_dir}"
2847 2417
2848 2418
2849 # Check whether --with-gnustep-conf was given. 2419 # Check whether --with-gnustep-conf was given.
2850 if test "${with_gnustep_conf+set}" = set; then : 2420 if test "${with_gnustep_conf+set}" = set; then
2851 withval=$with_gnustep_conf; 2421 withval=$with_gnustep_conf;
2852 fi 2422 fi
2853 2423
2854 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \ 2424 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2855 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}" 2425 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2856 test "X$GNUSTEP_CONFIG_FILE" = "X" && \ 2426 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2857 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf 2427 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2858 2428
2859 # Check whether --enable-ns-self-contained was given. 2429 # Check whether --enable-ns-self-contained was given.
2860 if test "${enable_ns_self_contained+set}" = set; then : 2430 if test "${enable_ns_self_contained+set}" = set; then
2861 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval 2431 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2862 else 2432 else
2863 EN_NS_SELF_CONTAINED=yes 2433 EN_NS_SELF_CONTAINED=yes
2864 fi 2434 fi
2865 2435
2866 2436
2867 # Check whether --enable-asserts was given. 2437 # Check whether --enable-asserts was given.
2868 if test "${enable_asserts+set}" = set; then : 2438 if test "${enable_asserts+set}" = set; then
2869 enableval=$enable_asserts; USE_XASSERTS=$enableval 2439 enableval=$enable_asserts; USE_XASSERTS=$enableval
2870 else 2440 else
2871 USE_XASSERTS=no 2441 USE_XASSERTS=no
2872 fi 2442 fi
2873 2443
2874 2444
2875 # Check whether --enable-maintainer-mode was given. 2445 # Check whether --enable-maintainer-mode was given.
2876 if test "${enable_maintainer_mode+set}" = set; then : 2446 if test "${enable_maintainer_mode+set}" = set; then
2877 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2447 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2878 else 2448 else
2879 USE_MAINTAINER_MODE=no 2449 USE_MAINTAINER_MODE=no
2880 fi 2450 fi
2881 2451
2885 MAINT=# 2455 MAINT=#
2886 fi 2456 fi
2887 2457
2888 2458
2889 # Check whether --enable-locallisppath was given. 2459 # Check whether --enable-locallisppath was given.
2890 if test "${enable_locallisppath+set}" = set; then : 2460 if test "${enable_locallisppath+set}" = set; then
2891 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then 2461 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2892 locallisppath= 2462 locallisppath=
2893 elif test "${enableval}" != "yes"; then 2463 elif test "${enableval}" != "yes"; then
2894 locallisppath=${enableval} 2464 locallisppath=${enableval}
2895 fi 2465 fi
2896 fi 2466 fi
2897 2467
2898 2468
2899 # Check whether --enable-checking was given. 2469 # Check whether --enable-checking was given.
2900 if test "${enable_checking+set}" = set; then : 2470 if test "${enable_checking+set}" = set; then
2901 enableval=$enable_checking; ac_checking_flags="${enableval}" 2471 enableval=$enable_checking; ac_checking_flags="${enableval}"
2902 fi 2472 fi
2903 2473
2904 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," 2474 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2905 for check in $ac_checking_flags 2475 for check in $ac_checking_flags
2923 stringbytes) ac_gc_check_stringbytes=1 ;; 2493 stringbytes) ac_gc_check_stringbytes=1 ;;
2924 stringoverrun) ac_gc_check_string_overrun=1 ;; 2494 stringoverrun) ac_gc_check_string_overrun=1 ;;
2925 stringfreelist) ac_gc_check_string_free_list=1 ;; 2495 stringfreelist) ac_gc_check_string_free_list=1 ;;
2926 xmallocoverrun) ac_xmalloc_overrun=1 ;; 2496 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2927 conslist) ac_gc_check_cons_list=1 ;; 2497 conslist) ac_gc_check_cons_list=1 ;;
2928 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;; 2498 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5
2499 $as_echo "$as_me: error: unknown check category $check" >&2;}
2500 { (exit 1); exit 1; }; } ;;
2929 esac 2501 esac
2930 done 2502 done
2931 IFS="$ac_save_IFS" 2503 IFS="$ac_save_IFS"
2932 2504
2933 if test x$ac_enable_checking != x ; then 2505 if test x$ac_enable_checking != x ; then
2934 2506
2935 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h 2507 cat >>confdefs.h <<\_ACEOF
2508 #define ENABLE_CHECKING 1
2509 _ACEOF
2936 2510
2937 fi 2511 fi
2938 if test x$ac_gc_check_stringbytes != x ; then 2512 if test x$ac_gc_check_stringbytes != x ; then
2939 2513
2940 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h 2514 cat >>confdefs.h <<\_ACEOF
2515 #define GC_CHECK_STRING_BYTES 1
2516 _ACEOF
2941 2517
2942 fi 2518 fi
2943 if test x$ac_gc_check_stringoverrun != x ; then 2519 if test x$ac_gc_check_stringoverrun != x ; then
2944 2520
2945 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h 2521 cat >>confdefs.h <<\_ACEOF
2522 #define GC_CHECK_STRING_OVERRUN 1
2523 _ACEOF
2946 2524
2947 fi 2525 fi
2948 if test x$ac_gc_check_string_free_list != x ; then 2526 if test x$ac_gc_check_string_free_list != x ; then
2949 2527
2950 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h 2528 cat >>confdefs.h <<\_ACEOF
2529 #define GC_CHECK_STRING_FREE_LIST 1
2530 _ACEOF
2951 2531
2952 fi 2532 fi
2953 if test x$ac_xmalloc_overrun != x ; then 2533 if test x$ac_xmalloc_overrun != x ; then
2954 2534
2955 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h 2535 cat >>confdefs.h <<\_ACEOF
2536 #define XMALLOC_OVERRUN_CHECK 1
2537 _ACEOF
2956 2538
2957 fi 2539 fi
2958 if test x$ac_gc_check_cons_list != x ; then 2540 if test x$ac_gc_check_cons_list != x ; then
2959 2541
2960 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h 2542 cat >>confdefs.h <<\_ACEOF
2543 #define GC_CHECK_CONS_LIST 1
2544 _ACEOF
2961 2545
2962 fi 2546 fi
2963 2547
2964 # Check whether --enable-profiling was given. 2548 # Check whether --enable-profiling was given.
2965 if test "${enable_profiling+set}" = set; then : 2549 if test "${enable_profiling+set}" = set; then
2966 enableval=$enable_profiling; ac_enable_profiling="${enableval}" 2550 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2967 fi 2551 fi
2968 2552
2969 if test x$ac_enable_profiling != x ; then 2553 if test x$ac_enable_profiling != x ; then
2970 PROFILING_CFLAGS="-DPROFILING=1 -pg" 2554 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2973 PROFILING_CFLAGS= 2557 PROFILING_CFLAGS=
2974 PROFILING_LDFLAGS= 2558 PROFILING_LDFLAGS=
2975 fi 2559 fi
2976 2560
2977 # Check whether --enable-autodepend was given. 2561 # Check whether --enable-autodepend was given.
2978 if test "${enable_autodepend+set}" = set; then : 2562 if test "${enable_autodepend+set}" = set; then
2979 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" 2563 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2980 else 2564 else
2981 ac_enable_autodepend=yes 2565 ac_enable_autodepend=yes
2982 fi 2566 fi
2983 2567
3007 esac 2591 esac
3008 2592
3009 #### Check if the source directory already has a configured system in it. 2593 #### Check if the source directory already has a configured system in it.
3010 if test `pwd` != `(cd ${srcdir} && pwd)` \ 2594 if test `pwd` != `(cd ${srcdir} && pwd)` \
3011 && test -f "${srcdir}/src/config.h" ; then 2595 && test -f "${srcdir}/src/config.h" ; then
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used 2596 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
3013 as a build directory right now; it has been configured in its own 2597 as a build directory right now; it has been configured in its own
3014 right. To configure in another directory as well, you MUST 2598 right. To configure in another directory as well, you MUST
3015 use GNU make. If you do not have GNU make, then you must 2599 use GNU make. If you do not have GNU make, then you must
3016 now do \`make distclean' in ${srcdir}, 2600 now do \`make distclean' in ${srcdir},
3017 and then run $0 again." >&5 2601 and then run $0 again." >&5
3028 2612
3029 ### Canonicalize the configuration name. 2613 ### Canonicalize the configuration name.
3030 2614
3031 ac_aux_dir= 2615 ac_aux_dir=
3032 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2616 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3033 for ac_t in install-sh install.sh shtool; do 2617 if test -f "$ac_dir/install-sh"; then
3034 if test -f "$ac_dir/$ac_t"; then 2618 ac_aux_dir=$ac_dir
3035 ac_aux_dir=$ac_dir 2619 ac_install_sh="$ac_aux_dir/install-sh -c"
3036 ac_install_sh="$ac_aux_dir/$ac_t -c" 2620 break
3037 break 2 2621 elif test -f "$ac_dir/install.sh"; then
3038 fi 2622 ac_aux_dir=$ac_dir
3039 done 2623 ac_install_sh="$ac_aux_dir/install.sh -c"
2624 break
2625 elif test -f "$ac_dir/shtool"; then
2626 ac_aux_dir=$ac_dir
2627 ac_install_sh="$ac_aux_dir/shtool install -c"
2628 break
2629 fi
3040 done 2630 done
3041 if test -z "$ac_aux_dir"; then 2631 if test -z "$ac_aux_dir"; then
3042 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2632 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2633 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2634 { (exit 1); exit 1; }; }
3043 fi 2635 fi
3044 2636
3045 # These three variables are undocumented and unsupported, 2637 # These three variables are undocumented and unsupported,
3046 # and are intended to be withdrawn in a future Autoconf release. 2638 # and are intended to be withdrawn in a future Autoconf release.
3047 # They can cause serious problems if a builder's source tree is in a directory 2639 # They can cause serious problems if a builder's source tree is in a directory
3051 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2643 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3052 2644
3053 2645
3054 # Make sure we can run config.sub. 2646 # Make sure we can run config.sub.
3055 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2647 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3056 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2648 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3057 2649 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2650 { (exit 1); exit 1; }; }
2651
2652 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3059 $as_echo_n "checking build system type... " >&6; } 2653 $as_echo_n "checking build system type... " >&6; }
3060 if test "${ac_cv_build+set}" = set; then : 2654 if test "${ac_cv_build+set}" = set; then
3061 $as_echo_n "(cached) " >&6 2655 $as_echo_n "(cached) " >&6
3062 else 2656 else
3063 ac_build_alias=$build_alias 2657 ac_build_alias=$build_alias
3064 test "x$ac_build_alias" = x && 2658 test "x$ac_build_alias" = x &&
3065 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2659 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3066 test "x$ac_build_alias" = x && 2660 test "x$ac_build_alias" = x &&
3067 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2661 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2662 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2663 { (exit 1); exit 1; }; }
3068 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2664 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3069 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2665 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3070 2666 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3071 fi 2667 { (exit 1); exit 1; }; }
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2668
2669 fi
2670 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3073 $as_echo "$ac_cv_build" >&6; } 2671 $as_echo "$ac_cv_build" >&6; }
3074 case $ac_cv_build in 2672 case $ac_cv_build in
3075 *-*-*) ;; 2673 *-*-*) ;;
3076 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2674 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2675 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2676 { (exit 1); exit 1; }; };;
3077 esac 2677 esac
3078 build=$ac_cv_build 2678 build=$ac_cv_build
3079 ac_save_IFS=$IFS; IFS='-' 2679 ac_save_IFS=$IFS; IFS='-'
3080 set x $ac_cv_build 2680 set x $ac_cv_build
3081 shift 2681 shift
3087 build_os=$* 2687 build_os=$*
3088 IFS=$ac_save_IFS 2688 IFS=$ac_save_IFS
3089 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2689 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3090 2690
3091 2691
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2692 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3093 $as_echo_n "checking host system type... " >&6; } 2693 $as_echo_n "checking host system type... " >&6; }
3094 if test "${ac_cv_host+set}" = set; then : 2694 if test "${ac_cv_host+set}" = set; then
3095 $as_echo_n "(cached) " >&6 2695 $as_echo_n "(cached) " >&6
3096 else 2696 else
3097 if test "x$host_alias" = x; then 2697 if test "x$host_alias" = x; then
3098 ac_cv_host=$ac_cv_build 2698 ac_cv_host=$ac_cv_build
3099 else 2699 else
3100 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2700 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3101 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2701 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3102 fi 2702 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3103 2703 { (exit 1); exit 1; }; }
3104 fi 2704 fi
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2705
2706 fi
2707 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3106 $as_echo "$ac_cv_host" >&6; } 2708 $as_echo "$ac_cv_host" >&6; }
3107 case $ac_cv_host in 2709 case $ac_cv_host in
3108 *-*-*) ;; 2710 *-*-*) ;;
3109 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2711 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2712 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2713 { (exit 1); exit 1; }; };;
3110 esac 2714 esac
3111 host=$ac_cv_host 2715 host=$ac_cv_host
3112 ac_save_IFS=$IFS; IFS='-' 2716 ac_save_IFS=$IFS; IFS='-'
3113 set x $ac_cv_host 2717 set x $ac_cv_host
3114 shift 2718 shift
3403 fi 3007 fi
3404 3008
3405 3009
3406 3010
3407 if test $unported = yes; then 3011 if test $unported = yes; then
3408 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems. 3012 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3409 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5 3013 Check \`etc/MACHINES' for recognized configuration names." >&5
3014 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3015 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3016 { (exit 1); exit 1; }; }
3410 fi 3017 fi
3411 3018
3412 machfile="m/${machine}.h" 3019 machfile="m/${machine}.h"
3413 opsysfile="s/${opsys}.h" 3020 opsysfile="s/${opsys}.h"
3414 3021
3425 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3032 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3426 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3033 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3427 if test -n "$ac_tool_prefix"; then 3034 if test -n "$ac_tool_prefix"; then
3428 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3035 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3429 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3036 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3037 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 $as_echo_n "checking for $ac_word... " >&6; } 3038 $as_echo_n "checking for $ac_word... " >&6; }
3432 if test "${ac_cv_prog_CC+set}" = set; then : 3039 if test "${ac_cv_prog_CC+set}" = set; then
3433 $as_echo_n "(cached) " >&6 3040 $as_echo_n "(cached) " >&6
3434 else 3041 else
3435 if test -n "$CC"; then 3042 if test -n "$CC"; then
3436 ac_cv_prog_CC="$CC" # Let the user override the test. 3043 ac_cv_prog_CC="$CC" # Let the user override the test.
3437 else 3044 else
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH 3046 for as_dir in $PATH
3440 do 3047 do
3441 IFS=$as_save_IFS 3048 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=. 3049 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do 3050 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3051 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3445 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3052 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3053 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 break 2 3054 break 2
3448 fi 3055 fi
3449 done 3056 done
3450 done 3057 done
3451 IFS=$as_save_IFS 3058 IFS=$as_save_IFS
3452 3059
3453 fi 3060 fi
3454 fi 3061 fi
3455 CC=$ac_cv_prog_CC 3062 CC=$ac_cv_prog_CC
3456 if test -n "$CC"; then 3063 if test -n "$CC"; then
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3064 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3458 $as_echo "$CC" >&6; } 3065 $as_echo "$CC" >&6; }
3459 else 3066 else
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3067 { $as_echo "$as_me:$LINENO: result: no" >&5
3461 $as_echo "no" >&6; } 3068 $as_echo "no" >&6; }
3462 fi 3069 fi
3463 3070
3464 3071
3465 fi 3072 fi
3466 if test -z "$ac_cv_prog_CC"; then 3073 if test -z "$ac_cv_prog_CC"; then
3467 ac_ct_CC=$CC 3074 ac_ct_CC=$CC
3468 # Extract the first word of "gcc", so it can be a program name with args. 3075 # Extract the first word of "gcc", so it can be a program name with args.
3469 set dummy gcc; ac_word=$2 3076 set dummy gcc; ac_word=$2
3470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3077 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3471 $as_echo_n "checking for $ac_word... " >&6; } 3078 $as_echo_n "checking for $ac_word... " >&6; }
3472 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3079 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3473 $as_echo_n "(cached) " >&6 3080 $as_echo_n "(cached) " >&6
3474 else 3081 else
3475 if test -n "$ac_ct_CC"; then 3082 if test -n "$ac_ct_CC"; then
3476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3083 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3477 else 3084 else
3478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3479 for as_dir in $PATH 3086 for as_dir in $PATH
3480 do 3087 do
3481 IFS=$as_save_IFS 3088 IFS=$as_save_IFS
3482 test -z "$as_dir" && as_dir=. 3089 test -z "$as_dir" && as_dir=.
3483 for ac_exec_ext in '' $ac_executable_extensions; do 3090 for ac_exec_ext in '' $ac_executable_extensions; do
3484 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3091 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3485 ac_cv_prog_ac_ct_CC="gcc" 3092 ac_cv_prog_ac_ct_CC="gcc"
3486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3093 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3487 break 2 3094 break 2
3488 fi 3095 fi
3489 done 3096 done
3490 done 3097 done
3491 IFS=$as_save_IFS 3098 IFS=$as_save_IFS
3492 3099
3493 fi 3100 fi
3494 fi 3101 fi
3495 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3102 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3496 if test -n "$ac_ct_CC"; then 3103 if test -n "$ac_ct_CC"; then
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3104 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3498 $as_echo "$ac_ct_CC" >&6; } 3105 $as_echo "$ac_ct_CC" >&6; }
3499 else 3106 else
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3107 { $as_echo "$as_me:$LINENO: result: no" >&5
3501 $as_echo "no" >&6; } 3108 $as_echo "no" >&6; }
3502 fi 3109 fi
3503 3110
3504 if test "x$ac_ct_CC" = x; then 3111 if test "x$ac_ct_CC" = x; then
3505 CC="" 3112 CC=""
3506 else 3113 else
3507 case $cross_compiling:$ac_tool_warned in 3114 case $cross_compiling:$ac_tool_warned in
3508 yes:) 3115 yes:)
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3116 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3510 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3117 whose name does not start with the host triplet. If you think this
3118 configuration is useful to you, please write to autoconf@gnu.org." >&5
3119 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3120 whose name does not start with the host triplet. If you think this
3121 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3511 ac_tool_warned=yes ;; 3122 ac_tool_warned=yes ;;
3512 esac 3123 esac
3513 CC=$ac_ct_CC 3124 CC=$ac_ct_CC
3514 fi 3125 fi
3515 else 3126 else
3518 3129
3519 if test -z "$CC"; then 3130 if test -z "$CC"; then
3520 if test -n "$ac_tool_prefix"; then 3131 if test -n "$ac_tool_prefix"; then
3521 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3132 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3522 set dummy ${ac_tool_prefix}cc; ac_word=$2 3133 set dummy ${ac_tool_prefix}cc; ac_word=$2
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3134 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3524 $as_echo_n "checking for $ac_word... " >&6; } 3135 $as_echo_n "checking for $ac_word... " >&6; }
3525 if test "${ac_cv_prog_CC+set}" = set; then : 3136 if test "${ac_cv_prog_CC+set}" = set; then
3526 $as_echo_n "(cached) " >&6 3137 $as_echo_n "(cached) " >&6
3527 else 3138 else
3528 if test -n "$CC"; then 3139 if test -n "$CC"; then
3529 ac_cv_prog_CC="$CC" # Let the user override the test. 3140 ac_cv_prog_CC="$CC" # Let the user override the test.
3530 else 3141 else
3531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3532 for as_dir in $PATH 3143 for as_dir in $PATH
3533 do 3144 do
3534 IFS=$as_save_IFS 3145 IFS=$as_save_IFS
3535 test -z "$as_dir" && as_dir=. 3146 test -z "$as_dir" && as_dir=.
3536 for ac_exec_ext in '' $ac_executable_extensions; do 3147 for ac_exec_ext in '' $ac_executable_extensions; do
3537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3148 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3538 ac_cv_prog_CC="${ac_tool_prefix}cc" 3149 ac_cv_prog_CC="${ac_tool_prefix}cc"
3539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3150 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3540 break 2 3151 break 2
3541 fi 3152 fi
3542 done 3153 done
3543 done 3154 done
3544 IFS=$as_save_IFS 3155 IFS=$as_save_IFS
3545 3156
3546 fi 3157 fi
3547 fi 3158 fi
3548 CC=$ac_cv_prog_CC 3159 CC=$ac_cv_prog_CC
3549 if test -n "$CC"; then 3160 if test -n "$CC"; then
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3161 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3551 $as_echo "$CC" >&6; } 3162 $as_echo "$CC" >&6; }
3552 else 3163 else
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3164 { $as_echo "$as_me:$LINENO: result: no" >&5
3554 $as_echo "no" >&6; } 3165 $as_echo "no" >&6; }
3555 fi 3166 fi
3556 3167
3557 3168
3558 fi 3169 fi
3559 fi 3170 fi
3560 if test -z "$CC"; then 3171 if test -z "$CC"; then
3561 # Extract the first word of "cc", so it can be a program name with args. 3172 # Extract the first word of "cc", so it can be a program name with args.
3562 set dummy cc; ac_word=$2 3173 set dummy cc; ac_word=$2
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3174 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3564 $as_echo_n "checking for $ac_word... " >&6; } 3175 $as_echo_n "checking for $ac_word... " >&6; }
3565 if test "${ac_cv_prog_CC+set}" = set; then : 3176 if test "${ac_cv_prog_CC+set}" = set; then
3566 $as_echo_n "(cached) " >&6 3177 $as_echo_n "(cached) " >&6
3567 else 3178 else
3568 if test -n "$CC"; then 3179 if test -n "$CC"; then
3569 ac_cv_prog_CC="$CC" # Let the user override the test. 3180 ac_cv_prog_CC="$CC" # Let the user override the test.
3570 else 3181 else
3572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3573 for as_dir in $PATH 3184 for as_dir in $PATH
3574 do 3185 do
3575 IFS=$as_save_IFS 3186 IFS=$as_save_IFS
3576 test -z "$as_dir" && as_dir=. 3187 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do 3188 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3579 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3190 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3580 ac_prog_rejected=yes 3191 ac_prog_rejected=yes
3581 continue 3192 continue
3582 fi 3193 fi
3583 ac_cv_prog_CC="cc" 3194 ac_cv_prog_CC="cc"
3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3195 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3585 break 2 3196 break 2
3586 fi 3197 fi
3587 done 3198 done
3588 done 3199 done
3589 IFS=$as_save_IFS 3200 IFS=$as_save_IFS
3590 3201
3591 if test $ac_prog_rejected = yes; then 3202 if test $ac_prog_rejected = yes; then
3592 # We found a bogon in the path, so make sure we never use it. 3203 # We found a bogon in the path, so make sure we never use it.
3593 set dummy $ac_cv_prog_CC 3204 set dummy $ac_cv_prog_CC
3602 fi 3213 fi
3603 fi 3214 fi
3604 fi 3215 fi
3605 CC=$ac_cv_prog_CC 3216 CC=$ac_cv_prog_CC
3606 if test -n "$CC"; then 3217 if test -n "$CC"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3218 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3608 $as_echo "$CC" >&6; } 3219 $as_echo "$CC" >&6; }
3609 else 3220 else
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3221 { $as_echo "$as_me:$LINENO: result: no" >&5
3611 $as_echo "no" >&6; } 3222 $as_echo "no" >&6; }
3612 fi 3223 fi
3613 3224
3614 3225
3615 fi 3226 fi
3617 if test -n "$ac_tool_prefix"; then 3228 if test -n "$ac_tool_prefix"; then
3618 for ac_prog in cl.exe 3229 for ac_prog in cl.exe
3619 do 3230 do
3620 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3231 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3621 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3232 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3233 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3623 $as_echo_n "checking for $ac_word... " >&6; } 3234 $as_echo_n "checking for $ac_word... " >&6; }
3624 if test "${ac_cv_prog_CC+set}" = set; then : 3235 if test "${ac_cv_prog_CC+set}" = set; then
3625 $as_echo_n "(cached) " >&6 3236 $as_echo_n "(cached) " >&6
3626 else 3237 else
3627 if test -n "$CC"; then 3238 if test -n "$CC"; then
3628 ac_cv_prog_CC="$CC" # Let the user override the test. 3239 ac_cv_prog_CC="$CC" # Let the user override the test.
3629 else 3240 else
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 for as_dir in $PATH 3242 for as_dir in $PATH
3632 do 3243 do
3633 IFS=$as_save_IFS 3244 IFS=$as_save_IFS
3634 test -z "$as_dir" && as_dir=. 3245 test -z "$as_dir" && as_dir=.
3635 for ac_exec_ext in '' $ac_executable_extensions; do 3246 for ac_exec_ext in '' $ac_executable_extensions; do
3636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3637 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3248 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3249 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3639 break 2 3250 break 2
3640 fi 3251 fi
3641 done 3252 done
3642 done 3253 done
3643 IFS=$as_save_IFS 3254 IFS=$as_save_IFS
3644 3255
3645 fi 3256 fi
3646 fi 3257 fi
3647 CC=$ac_cv_prog_CC 3258 CC=$ac_cv_prog_CC
3648 if test -n "$CC"; then 3259 if test -n "$CC"; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3260 { $as_echo "$as_me:$LINENO: result: $CC" >&5
3650 $as_echo "$CC" >&6; } 3261 $as_echo "$CC" >&6; }
3651 else 3262 else
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3263 { $as_echo "$as_me:$LINENO: result: no" >&5
3653 $as_echo "no" >&6; } 3264 $as_echo "no" >&6; }
3654 fi 3265 fi
3655 3266
3656 3267
3657 test -n "$CC" && break 3268 test -n "$CC" && break
3661 ac_ct_CC=$CC 3272 ac_ct_CC=$CC
3662 for ac_prog in cl.exe 3273 for ac_prog in cl.exe
3663 do 3274 do
3664 # Extract the first word of "$ac_prog", so it can be a program name with args. 3275 # Extract the first word of "$ac_prog", so it can be a program name with args.
3665 set dummy $ac_prog; ac_word=$2 3276 set dummy $ac_prog; ac_word=$2
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3277 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3667 $as_echo_n "checking for $ac_word... " >&6; } 3278 $as_echo_n "checking for $ac_word... " >&6; }
3668 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3279 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3669 $as_echo_n "(cached) " >&6 3280 $as_echo_n "(cached) " >&6
3670 else 3281 else
3671 if test -n "$ac_ct_CC"; then 3282 if test -n "$ac_ct_CC"; then
3672 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3283 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3673 else 3284 else
3674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3675 for as_dir in $PATH 3286 for as_dir in $PATH
3676 do 3287 do
3677 IFS=$as_save_IFS 3288 IFS=$as_save_IFS
3678 test -z "$as_dir" && as_dir=. 3289 test -z "$as_dir" && as_dir=.
3679 for ac_exec_ext in '' $ac_executable_extensions; do 3290 for ac_exec_ext in '' $ac_executable_extensions; do
3680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3291 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3681 ac_cv_prog_ac_ct_CC="$ac_prog" 3292 ac_cv_prog_ac_ct_CC="$ac_prog"
3682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3293 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3683 break 2 3294 break 2
3684 fi 3295 fi
3685 done 3296 done
3686 done 3297 done
3687 IFS=$as_save_IFS 3298 IFS=$as_save_IFS
3688 3299
3689 fi 3300 fi
3690 fi 3301 fi
3691 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3302 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3692 if test -n "$ac_ct_CC"; then 3303 if test -n "$ac_ct_CC"; then
3693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3304 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3694 $as_echo "$ac_ct_CC" >&6; } 3305 $as_echo "$ac_ct_CC" >&6; }
3695 else 3306 else
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3307 { $as_echo "$as_me:$LINENO: result: no" >&5
3697 $as_echo "no" >&6; } 3308 $as_echo "no" >&6; }
3698 fi 3309 fi
3699 3310
3700 3311
3701 test -n "$ac_ct_CC" && break 3312 test -n "$ac_ct_CC" && break
3704 if test "x$ac_ct_CC" = x; then 3315 if test "x$ac_ct_CC" = x; then
3705 CC="" 3316 CC=""
3706 else 3317 else
3707 case $cross_compiling:$ac_tool_warned in 3318 case $cross_compiling:$ac_tool_warned in
3708 yes:) 3319 yes:)
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3320 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3321 whose name does not start with the host triplet. If you think this
3322 configuration is useful to you, please write to autoconf@gnu.org." >&5
3323 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3324 whose name does not start with the host triplet. If you think this
3325 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3711 ac_tool_warned=yes ;; 3326 ac_tool_warned=yes ;;
3712 esac 3327 esac
3713 CC=$ac_ct_CC 3328 CC=$ac_ct_CC
3714 fi 3329 fi
3715 fi 3330 fi
3716 3331
3717 fi 3332 fi
3718 3333
3719 3334
3720 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3335 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3336 See \`config.log' for more details." >&5
3722 as_fn_error "no acceptable C compiler found in \$PATH 3337 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
3723 See \`config.log' for more details." "$LINENO" 5; } 3338 See \`config.log' for more details." >&2;}
3339 { (exit 1); exit 1; }; }
3724 3340
3725 # Provide some information about the compiler. 3341 # Provide some information about the compiler.
3726 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3342 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
3727 set X $ac_compile 3343 set X $ac_compile
3728 ac_compiler=$2 3344 ac_compiler=$2
3729 for ac_option in --version -v -V -qversion; do 3345 { (ac_try="$ac_compiler --version >&5"
3730 { { ac_try="$ac_compiler $ac_option >&5"
3731 case "(($ac_try" in 3346 case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;; 3348 *) ac_try_echo=$ac_try;;
3734 esac 3349 esac
3735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3736 $as_echo "$ac_try_echo"; } >&5 3351 $as_echo "$ac_try_echo") >&5
3737 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3352 (eval "$ac_compiler --version >&5") 2>&5
3738 ac_status=$? 3353 ac_status=$?
3739 if test -s conftest.err; then 3354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3740 sed '10a\ 3355 (exit $ac_status); }
3741 ... rest of stderr output deleted ... 3356 { (ac_try="$ac_compiler -v >&5"
3742 10q' conftest.err >conftest.er1 3357 case "(($ac_try" in
3743 cat conftest.er1 >&5 3358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3744 fi 3359 *) ac_try_echo=$ac_try;;
3745 rm -f conftest.er1 conftest.err 3360 esac
3746 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3361 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3747 test $ac_status = 0; } 3362 $as_echo "$ac_try_echo") >&5
3748 done 3363 (eval "$ac_compiler -v >&5") 2>&5
3749 3364 ac_status=$?
3750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3366 (exit $ac_status); }
3367 { (ac_try="$ac_compiler -V >&5"
3368 case "(($ac_try" in
3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3370 *) ac_try_echo=$ac_try;;
3371 esac
3372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3373 $as_echo "$ac_try_echo") >&5
3374 (eval "$ac_compiler -V >&5") 2>&5
3375 ac_status=$?
3376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3377 (exit $ac_status); }
3378
3379 cat >conftest.$ac_ext <<_ACEOF
3380 /* confdefs.h. */
3381 _ACEOF
3382 cat confdefs.h >>conftest.$ac_ext
3383 cat >>conftest.$ac_ext <<_ACEOF
3751 /* end confdefs.h. */ 3384 /* end confdefs.h. */
3752 3385
3753 int 3386 int
3754 main () 3387 main ()
3755 { 3388 {
3761 ac_clean_files_save=$ac_clean_files 3394 ac_clean_files_save=$ac_clean_files
3762 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3395 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3763 # Try to create an executable without -o first, disregard a.out. 3396 # Try to create an executable without -o first, disregard a.out.
3764 # It will help us diagnose broken compilers, and finding out an intuition 3397 # It will help us diagnose broken compilers, and finding out an intuition
3765 # of exeext. 3398 # of exeext.
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3399 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3767 $as_echo_n "checking whether the C compiler works... " >&6; } 3400 $as_echo_n "checking for C compiler default output file name... " >&6; }
3768 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3401 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3769 3402
3770 # The possible output files: 3403 # The possible output files:
3771 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3404 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3772 3405
3778 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3411 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3779 esac 3412 esac
3780 done 3413 done
3781 rm -f $ac_rmfiles 3414 rm -f $ac_rmfiles
3782 3415
3783 if { { ac_try="$ac_link_default" 3416 if { (ac_try="$ac_link_default"
3784 case "(($ac_try" in 3417 case "(($ac_try" in
3785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3786 *) ac_try_echo=$ac_try;; 3419 *) ac_try_echo=$ac_try;;
3787 esac 3420 esac
3788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3789 $as_echo "$ac_try_echo"; } >&5 3422 $as_echo "$ac_try_echo") >&5
3790 (eval "$ac_link_default") 2>&5 3423 (eval "$ac_link_default") 2>&5
3791 ac_status=$? 3424 ac_status=$?
3792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3793 test $ac_status = 0; }; then : 3426 (exit $ac_status); }; then
3794 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3427 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3795 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3428 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3796 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3429 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3797 # so that the user can short-circuit this test for compilers unknown to 3430 # so that the user can short-circuit this test for compilers unknown to
3798 # Autoconf. 3431 # Autoconf.
3805 [ab].out ) 3438 [ab].out )
3806 # We found the default executable, but exeext='' is most 3439 # We found the default executable, but exeext='' is most
3807 # certainly right. 3440 # certainly right.
3808 break;; 3441 break;;
3809 *.* ) 3442 *.* )
3810 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3443 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3811 then :; else 3444 then :; else
3812 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3445 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3813 fi 3446 fi
3814 # We set ac_cv_exeext here because the later test for it is not 3447 # We set ac_cv_exeext here because the later test for it is not
3815 # safe: cross compilers may not add the suffix if given an `-o' 3448 # safe: cross compilers may not add the suffix if given an `-o'
3824 test "$ac_cv_exeext" = no && ac_cv_exeext= 3457 test "$ac_cv_exeext" = no && ac_cv_exeext=
3825 3458
3826 else 3459 else
3827 ac_file='' 3460 ac_file=''
3828 fi 3461 fi
3829 if test -z "$ac_file"; then : 3462
3830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3463 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
3831 $as_echo "no" >&6; } 3464 $as_echo "$ac_file" >&6; }
3832 $as_echo "$as_me: failed program was:" >&5 3465 if test -z "$ac_file"; then
3466 $as_echo "$as_me: failed program was:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5 3467 sed 's/^/| /' conftest.$ac_ext >&5
3834 3468
3835 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3469 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3836 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3470 See \`config.log' for more details." >&5
3837 { as_fn_set_status 77 3471 $as_echo "$as_me: error: C compiler cannot create executables
3838 as_fn_error "C compiler cannot create executables 3472 See \`config.log' for more details." >&2;}
3839 See \`config.log' for more details." "$LINENO" 5; }; } 3473 { (exit 77); exit 77; }; }
3840 else 3474 fi
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3475
3476 ac_exeext=$ac_cv_exeext
3477
3478 # Check that the compiler produces executables we can run. If not, either
3479 # the compiler is broken, or we cross compile.
3480 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3481 $as_echo_n "checking whether the C compiler works... " >&6; }
3482 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3483 # If not cross compiling, check that we can run a simple program.
3484 if test "$cross_compiling" != yes; then
3485 if { ac_try='./$ac_file'
3486 { (case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3491 $as_echo "$ac_try_echo") >&5
3492 (eval "$ac_try") 2>&5
3493 ac_status=$?
3494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }; }; then
3496 cross_compiling=no
3497 else
3498 if test "$cross_compiling" = maybe; then
3499 cross_compiling=yes
3500 else
3501 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3502 If you meant to cross compile, use \`--host'.
3503 See \`config.log' for more details." >&5
3504 $as_echo "$as_me: error: cannot run C compiled programs.
3505 If you meant to cross compile, use \`--host'.
3506 See \`config.log' for more details." >&2;}
3507 { (exit 1); exit 1; }; }
3508 fi
3509 fi
3510 fi
3511 { $as_echo "$as_me:$LINENO: result: yes" >&5
3842 $as_echo "yes" >&6; } 3512 $as_echo "yes" >&6; }
3843 fi
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3845 $as_echo_n "checking for C compiler default output file name... " >&6; }
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3847 $as_echo "$ac_file" >&6; }
3848 ac_exeext=$ac_cv_exeext
3849 3513
3850 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3514 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3851 ac_clean_files=$ac_clean_files_save 3515 ac_clean_files=$ac_clean_files_save
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3516 # Check that the compiler produces executables we can run. If not, either
3517 # the compiler is broken, or we cross compile.
3518 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3519 $as_echo_n "checking whether we are cross compiling... " >&6; }
3520 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3521 $as_echo "$cross_compiling" >&6; }
3522
3523 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3853 $as_echo_n "checking for suffix of executables... " >&6; } 3524 $as_echo_n "checking for suffix of executables... " >&6; }
3854 if { { ac_try="$ac_link" 3525 if { (ac_try="$ac_link"
3855 case "(($ac_try" in 3526 case "(($ac_try" in
3856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3857 *) ac_try_echo=$ac_try;; 3528 *) ac_try_echo=$ac_try;;
3858 esac 3529 esac
3859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3860 $as_echo "$ac_try_echo"; } >&5 3531 $as_echo "$ac_try_echo") >&5
3861 (eval "$ac_link") 2>&5 3532 (eval "$ac_link") 2>&5
3862 ac_status=$? 3533 ac_status=$?
3863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3864 test $ac_status = 0; }; then : 3535 (exit $ac_status); }; then
3865 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3536 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3866 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3537 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3867 # work properly (i.e., refer to `conftest.exe'), while it won't with 3538 # work properly (i.e., refer to `conftest.exe'), while it won't with
3868 # `rm'. 3539 # `rm'.
3869 for ac_file in conftest.exe conftest conftest.*; do 3540 for ac_file in conftest.exe conftest conftest.*; do
3874 break;; 3545 break;;
3875 * ) break;; 3546 * ) break;;
3876 esac 3547 esac
3877 done 3548 done
3878 else 3549 else
3879 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3550 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3880 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3551 See \`config.log' for more details." >&5
3881 as_fn_error "cannot compute suffix of executables: cannot compile and link 3552 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3882 See \`config.log' for more details." "$LINENO" 5; } 3553 See \`config.log' for more details." >&2;}
3883 fi 3554 { (exit 1); exit 1; }; }
3884 rm -f conftest conftest$ac_cv_exeext 3555 fi
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3556
3557 rm -f conftest$ac_cv_exeext
3558 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3886 $as_echo "$ac_cv_exeext" >&6; } 3559 $as_echo "$ac_cv_exeext" >&6; }
3887 3560
3888 rm -f conftest.$ac_ext 3561 rm -f conftest.$ac_ext
3889 EXEEXT=$ac_cv_exeext 3562 EXEEXT=$ac_cv_exeext
3890 ac_exeext=$EXEEXT 3563 ac_exeext=$EXEEXT
3891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3564 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3565 $as_echo_n "checking for suffix of object files... " >&6; }
3566 if test "${ac_cv_objext+set}" = set; then
3567 $as_echo_n "(cached) " >&6
3568 else
3569 cat >conftest.$ac_ext <<_ACEOF
3570 /* confdefs.h. */
3571 _ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3892 /* end confdefs.h. */ 3574 /* end confdefs.h. */
3893 #include <stdio.h> 3575
3894 int 3576 int
3895 main () 3577 main ()
3896 { 3578 {
3897 FILE *f = fopen ("conftest.out", "w");
3898 return ferror (f) || fclose (f) != 0;
3899 3579
3900 ; 3580 ;
3901 return 0; 3581 return 0;
3902 } 3582 }
3903 _ACEOF 3583 _ACEOF
3904 ac_clean_files="$ac_clean_files conftest.out" 3584 rm -f conftest.o conftest.obj
3905 # Check that the compiler produces executables we can run. If not, either 3585 if { (ac_try="$ac_compile"
3906 # the compiler is broken, or we cross compile.
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3908 $as_echo_n "checking whether we are cross compiling... " >&6; }
3909 if test "$cross_compiling" != yes; then
3910 { { ac_try="$ac_link"
3911 case "(($ac_try" in 3586 case "(($ac_try" in
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;; 3588 *) ac_try_echo=$ac_try;;
3914 esac 3589 esac
3915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3916 $as_echo "$ac_try_echo"; } >&5 3591 $as_echo "$ac_try_echo") >&5
3917 (eval "$ac_link") 2>&5
3918 ac_status=$?
3919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3920 test $ac_status = 0; }
3921 if { ac_try='./conftest$ac_cv_exeext'
3922 { { case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925 esac
3926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3927 $as_echo "$ac_try_echo"; } >&5
3928 (eval "$ac_try") 2>&5
3929 ac_status=$?
3930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3931 test $ac_status = 0; }; }; then
3932 cross_compiling=no
3933 else
3934 if test "$cross_compiling" = maybe; then
3935 cross_compiling=yes
3936 else
3937 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3938 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3939 as_fn_error "cannot run C compiled programs.
3940 If you meant to cross compile, use \`--host'.
3941 See \`config.log' for more details." "$LINENO" 5; }
3942 fi
3943 fi
3944 fi
3945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3946 $as_echo "$cross_compiling" >&6; }
3947
3948 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3949 ac_clean_files=$ac_clean_files_save
3950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3951 $as_echo_n "checking for suffix of object files... " >&6; }
3952 if test "${ac_cv_objext+set}" = set; then :
3953 $as_echo_n "(cached) " >&6
3954 else
3955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3956 /* end confdefs.h. */
3957
3958 int
3959 main ()
3960 {
3961
3962 ;
3963 return 0;
3964 }
3965 _ACEOF
3966 rm -f conftest.o conftest.obj
3967 if { { ac_try="$ac_compile"
3968 case "(($ac_try" in
3969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970 *) ac_try_echo=$ac_try;;
3971 esac
3972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3973 $as_echo "$ac_try_echo"; } >&5
3974 (eval "$ac_compile") 2>&5 3592 (eval "$ac_compile") 2>&5
3975 ac_status=$? 3593 ac_status=$?
3976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3977 test $ac_status = 0; }; then : 3595 (exit $ac_status); }; then
3978 for ac_file in conftest.o conftest.obj conftest.*; do 3596 for ac_file in conftest.o conftest.obj conftest.*; do
3979 test -f "$ac_file" || continue; 3597 test -f "$ac_file" || continue;
3980 case $ac_file in 3598 case $ac_file in
3981 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3599 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3982 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3600 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3985 done 3603 done
3986 else 3604 else
3987 $as_echo "$as_me: failed program was:" >&5 3605 $as_echo "$as_me: failed program was:" >&5
3988 sed 's/^/| /' conftest.$ac_ext >&5 3606 sed 's/^/| /' conftest.$ac_ext >&5
3989 3607
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3608 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3609 See \`config.log' for more details." >&5
3992 as_fn_error "cannot compute suffix of object files: cannot compile 3610 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3993 See \`config.log' for more details." "$LINENO" 5; } 3611 See \`config.log' for more details." >&2;}
3994 fi 3612 { (exit 1); exit 1; }; }
3613 fi
3614
3995 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3615 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3996 fi 3616 fi
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3617 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3998 $as_echo "$ac_cv_objext" >&6; } 3618 $as_echo "$ac_cv_objext" >&6; }
3999 OBJEXT=$ac_cv_objext 3619 OBJEXT=$ac_cv_objext
4000 ac_objext=$OBJEXT 3620 ac_objext=$OBJEXT
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3621 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4002 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3622 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4003 if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3623 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4004 $as_echo_n "(cached) " >&6 3624 $as_echo_n "(cached) " >&6
4005 else 3625 else
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3626 cat >conftest.$ac_ext <<_ACEOF
3627 /* confdefs.h. */
3628 _ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
4007 /* end confdefs.h. */ 3631 /* end confdefs.h. */
4008 3632
4009 int 3633 int
4010 main () 3634 main ()
4011 { 3635 {
4015 3639
4016 ; 3640 ;
4017 return 0; 3641 return 0;
4018 } 3642 }
4019 _ACEOF 3643 _ACEOF
4020 if ac_fn_c_try_compile "$LINENO"; then : 3644 rm -f conftest.$ac_objext
3645 if { (ac_try="$ac_compile"
3646 case "(($ac_try" in
3647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3648 *) ac_try_echo=$ac_try;;
3649 esac
3650 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3651 $as_echo "$ac_try_echo") >&5
3652 (eval "$ac_compile") 2>conftest.er1
3653 ac_status=$?
3654 grep -v '^ *+' conftest.er1 >conftest.err
3655 rm -f conftest.er1
3656 cat conftest.err >&5
3657 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3658 (exit $ac_status); } && {
3659 test -z "$ac_c_werror_flag" ||
3660 test ! -s conftest.err
3661 } && test -s conftest.$ac_objext; then
4021 ac_compiler_gnu=yes 3662 ac_compiler_gnu=yes
4022 else 3663 else
4023 ac_compiler_gnu=no 3664 $as_echo "$as_me: failed program was:" >&5
4024 fi 3665 sed 's/^/| /' conftest.$ac_ext >&5
3666
3667 ac_compiler_gnu=no
3668 fi
3669
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_cv_c_compiler_gnu=$ac_compiler_gnu 3671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4027 3672
4028 fi 3673 fi
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3674 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4030 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 3675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4031 if test $ac_compiler_gnu = yes; then 3676 if test $ac_compiler_gnu = yes; then
4032 GCC=yes 3677 GCC=yes
4033 else 3678 else
4034 GCC= 3679 GCC=
4035 fi 3680 fi
4036 ac_test_CFLAGS=${CFLAGS+set} 3681 ac_test_CFLAGS=${CFLAGS+set}
4037 ac_save_CFLAGS=$CFLAGS 3682 ac_save_CFLAGS=$CFLAGS
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3683 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4039 $as_echo_n "checking whether $CC accepts -g... " >&6; } 3684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4040 if test "${ac_cv_prog_cc_g+set}" = set; then : 3685 if test "${ac_cv_prog_cc_g+set}" = set; then
4041 $as_echo_n "(cached) " >&6 3686 $as_echo_n "(cached) " >&6
4042 else 3687 else
4043 ac_save_c_werror_flag=$ac_c_werror_flag 3688 ac_save_c_werror_flag=$ac_c_werror_flag
4044 ac_c_werror_flag=yes 3689 ac_c_werror_flag=yes
4045 ac_cv_prog_cc_g=no 3690 ac_cv_prog_cc_g=no
4046 CFLAGS="-g" 3691 CFLAGS="-g"
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3692 cat >conftest.$ac_ext <<_ACEOF
3693 /* confdefs.h. */
3694 _ACEOF
3695 cat confdefs.h >>conftest.$ac_ext
3696 cat >>conftest.$ac_ext <<_ACEOF
4048 /* end confdefs.h. */ 3697 /* end confdefs.h. */
4049 3698
4050 int 3699 int
4051 main () 3700 main ()
4052 { 3701 {
4053 3702
4054 ; 3703 ;
4055 return 0; 3704 return 0;
4056 } 3705 }
4057 _ACEOF 3706 _ACEOF
4058 if ac_fn_c_try_compile "$LINENO"; then : 3707 rm -f conftest.$ac_objext
3708 if { (ac_try="$ac_compile"
3709 case "(($ac_try" in
3710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3711 *) ac_try_echo=$ac_try;;
3712 esac
3713 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3714 $as_echo "$ac_try_echo") >&5
3715 (eval "$ac_compile") 2>conftest.er1
3716 ac_status=$?
3717 grep -v '^ *+' conftest.er1 >conftest.err
3718 rm -f conftest.er1
3719 cat conftest.err >&5
3720 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3721 (exit $ac_status); } && {
3722 test -z "$ac_c_werror_flag" ||
3723 test ! -s conftest.err
3724 } && test -s conftest.$ac_objext; then
4059 ac_cv_prog_cc_g=yes 3725 ac_cv_prog_cc_g=yes
4060 else 3726 else
4061 CFLAGS="" 3727 $as_echo "$as_me: failed program was:" >&5
4062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3728 sed 's/^/| /' conftest.$ac_ext >&5
3729
3730 CFLAGS=""
3731 cat >conftest.$ac_ext <<_ACEOF
3732 /* confdefs.h. */
3733 _ACEOF
3734 cat confdefs.h >>conftest.$ac_ext
3735 cat >>conftest.$ac_ext <<_ACEOF
4063 /* end confdefs.h. */ 3736 /* end confdefs.h. */
4064 3737
4065 int 3738 int
4066 main () 3739 main ()
4067 { 3740 {
4068 3741
4069 ; 3742 ;
4070 return 0; 3743 return 0;
4071 } 3744 }
4072 _ACEOF 3745 _ACEOF
4073 if ac_fn_c_try_compile "$LINENO"; then : 3746 rm -f conftest.$ac_objext
4074 3747 if { (ac_try="$ac_compile"
4075 else 3748 case "(($ac_try" in
4076 ac_c_werror_flag=$ac_save_c_werror_flag 3749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3750 *) ac_try_echo=$ac_try;;
3751 esac
3752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3753 $as_echo "$ac_try_echo") >&5
3754 (eval "$ac_compile") 2>conftest.er1
3755 ac_status=$?
3756 grep -v '^ *+' conftest.er1 >conftest.err
3757 rm -f conftest.er1
3758 cat conftest.err >&5
3759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3760 (exit $ac_status); } && {
3761 test -z "$ac_c_werror_flag" ||
3762 test ! -s conftest.err
3763 } && test -s conftest.$ac_objext; then
3764 :
3765 else
3766 $as_echo "$as_me: failed program was:" >&5
3767 sed 's/^/| /' conftest.$ac_ext >&5
3768
3769 ac_c_werror_flag=$ac_save_c_werror_flag
4077 CFLAGS="-g" 3770 CFLAGS="-g"
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3771 cat >conftest.$ac_ext <<_ACEOF
3772 /* confdefs.h. */
3773 _ACEOF
3774 cat confdefs.h >>conftest.$ac_ext
3775 cat >>conftest.$ac_ext <<_ACEOF
4079 /* end confdefs.h. */ 3776 /* end confdefs.h. */
4080 3777
4081 int 3778 int
4082 main () 3779 main ()
4083 { 3780 {
4084 3781
4085 ; 3782 ;
4086 return 0; 3783 return 0;
4087 } 3784 }
4088 _ACEOF 3785 _ACEOF
4089 if ac_fn_c_try_compile "$LINENO"; then : 3786 rm -f conftest.$ac_objext
3787 if { (ac_try="$ac_compile"
3788 case "(($ac_try" in
3789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3790 *) ac_try_echo=$ac_try;;
3791 esac
3792 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3793 $as_echo "$ac_try_echo") >&5
3794 (eval "$ac_compile") 2>conftest.er1
3795 ac_status=$?
3796 grep -v '^ *+' conftest.er1 >conftest.err
3797 rm -f conftest.er1
3798 cat conftest.err >&5
3799 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3800 (exit $ac_status); } && {
3801 test -z "$ac_c_werror_flag" ||
3802 test ! -s conftest.err
3803 } && test -s conftest.$ac_objext; then
4090 ac_cv_prog_cc_g=yes 3804 ac_cv_prog_cc_g=yes
4091 fi 3805 else
3806 $as_echo "$as_me: failed program was:" >&5
3807 sed 's/^/| /' conftest.$ac_ext >&5
3808
3809
3810 fi
3811
4092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4093 fi 3813 fi
3814
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 fi 3816 fi
3817
4096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 ac_c_werror_flag=$ac_save_c_werror_flag 3819 ac_c_werror_flag=$ac_save_c_werror_flag
4098 fi 3820 fi
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3821 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4100 $as_echo "$ac_cv_prog_cc_g" >&6; } 3822 $as_echo "$ac_cv_prog_cc_g" >&6; }
4101 if test "$ac_test_CFLAGS" = set; then 3823 if test "$ac_test_CFLAGS" = set; then
4102 CFLAGS=$ac_save_CFLAGS 3824 CFLAGS=$ac_save_CFLAGS
4103 elif test $ac_cv_prog_cc_g = yes; then 3825 elif test $ac_cv_prog_cc_g = yes; then
4104 if test "$GCC" = yes; then 3826 if test "$GCC" = yes; then
4111 CFLAGS="-O2" 3833 CFLAGS="-O2"
4112 else 3834 else
4113 CFLAGS= 3835 CFLAGS=
4114 fi 3836 fi
4115 fi 3837 fi
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3838 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4117 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3839 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4118 if test "${ac_cv_prog_cc_c89+set}" = set; then : 3840 if test "${ac_cv_prog_cc_c89+set}" = set; then
4119 $as_echo_n "(cached) " >&6 3841 $as_echo_n "(cached) " >&6
4120 else 3842 else
4121 ac_cv_prog_cc_c89=no 3843 ac_cv_prog_cc_c89=no
4122 ac_save_CC=$CC 3844 ac_save_CC=$CC
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3845 cat >conftest.$ac_ext <<_ACEOF
3846 /* confdefs.h. */
3847 _ACEOF
3848 cat confdefs.h >>conftest.$ac_ext
3849 cat >>conftest.$ac_ext <<_ACEOF
4124 /* end confdefs.h. */ 3850 /* end confdefs.h. */
4125 #include <stdarg.h> 3851 #include <stdarg.h>
4126 #include <stdio.h> 3852 #include <stdio.h>
4127 #include <sys/types.h> 3853 #include <sys/types.h>
4128 #include <sys/stat.h> 3854 #include <sys/stat.h>
4175 _ACEOF 3901 _ACEOF
4176 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3902 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4177 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3903 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4178 do 3904 do
4179 CC="$ac_save_CC $ac_arg" 3905 CC="$ac_save_CC $ac_arg"
4180 if ac_fn_c_try_compile "$LINENO"; then : 3906 rm -f conftest.$ac_objext
3907 if { (ac_try="$ac_compile"
3908 case "(($ac_try" in
3909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3910 *) ac_try_echo=$ac_try;;
3911 esac
3912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3913 $as_echo "$ac_try_echo") >&5
3914 (eval "$ac_compile") 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } && {
3921 test -z "$ac_c_werror_flag" ||
3922 test ! -s conftest.err
3923 } && test -s conftest.$ac_objext; then
4181 ac_cv_prog_cc_c89=$ac_arg 3924 ac_cv_prog_cc_c89=$ac_arg
4182 fi 3925 else
3926 $as_echo "$as_me: failed program was:" >&5
3927 sed 's/^/| /' conftest.$ac_ext >&5
3928
3929
3930 fi
3931
4183 rm -f core conftest.err conftest.$ac_objext 3932 rm -f core conftest.err conftest.$ac_objext
4184 test "x$ac_cv_prog_cc_c89" != "xno" && break 3933 test "x$ac_cv_prog_cc_c89" != "xno" && break
4185 done 3934 done
4186 rm -f conftest.$ac_ext 3935 rm -f conftest.$ac_ext
4187 CC=$ac_save_CC 3936 CC=$ac_save_CC
4188 3937
4189 fi 3938 fi
4190 # AC_CACHE_VAL 3939 # AC_CACHE_VAL
4191 case "x$ac_cv_prog_cc_c89" in 3940 case "x$ac_cv_prog_cc_c89" in
4192 x) 3941 x)
4193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3942 { $as_echo "$as_me:$LINENO: result: none needed" >&5
4194 $as_echo "none needed" >&6; } ;; 3943 $as_echo "none needed" >&6; } ;;
4195 xno) 3944 xno)
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3945 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
4197 $as_echo "unsupported" >&6; } ;; 3946 $as_echo "unsupported" >&6; } ;;
4198 *) 3947 *)
4199 CC="$CC $ac_cv_prog_cc_c89" 3948 CC="$CC $ac_cv_prog_cc_c89"
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3949 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4201 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3950 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4202 esac 3951 esac
4203 if test "x$ac_cv_prog_cc_c89" != xno; then : 3952
4204
4205 fi
4206 3953
4207 ac_ext=c 3954 ac_ext=c
4208 ac_cpp='$CPP $CPPFLAGS' 3955 ac_cpp='$CPP $CPPFLAGS'
4209 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4210 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4218 3965
4219 ## If not using gcc, and on Solaris, and no CPP specified, see if 3966 ## If not using gcc, and on Solaris, and no CPP specified, see if
4220 ## using a Sun compiler, which needs -Xs to prevent whitespace. 3967 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4221 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ 3968 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4222 test x"$CPP" = x; then 3969 test x"$CPP" = x; then
4223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5 3970 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4224 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; } 3971 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
4225 3972
4226 if test "${emacs_cv_sunpro_c+set}" = set; then : 3973 if test "${emacs_cv_sunpro_c+set}" = set; then
4227 $as_echo_n "(cached) " >&6 3974 $as_echo_n "(cached) " >&6
4228 else 3975 else
4229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */ 3981 /* end confdefs.h. */
4231 3982
4232 int 3983 int
4233 main () 3984 main ()
4234 { 3985 {
4238 3989
4239 ; 3990 ;
4240 return 0; 3991 return 0;
4241 } 3992 }
4242 _ACEOF 3993 _ACEOF
4243 if ac_fn_c_try_link "$LINENO"; then : 3994 rm -f conftest.$ac_objext conftest$ac_exeext
3995 if { (ac_try="$ac_link"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4001 $as_echo "$ac_try_echo") >&5
4002 (eval "$ac_link") 2>conftest.er1
4003 ac_status=$?
4004 grep -v '^ *+' conftest.er1 >conftest.err
4005 rm -f conftest.er1
4006 cat conftest.err >&5
4007 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008 (exit $ac_status); } && {
4009 test -z "$ac_c_werror_flag" ||
4010 test ! -s conftest.err
4011 } && test -s conftest$ac_exeext && {
4012 test "$cross_compiling" = yes ||
4013 $as_test_x conftest$ac_exeext
4014 }; then
4244 emacs_cv_sunpro_c=yes 4015 emacs_cv_sunpro_c=yes
4245 else 4016 else
4246 emacs_cv_sunpro_c=no 4017 $as_echo "$as_me: failed program was:" >&5
4247 fi 4018 sed 's/^/| /' conftest.$ac_ext >&5
4248 rm -f core conftest.err conftest.$ac_objext \ 4019
4249 conftest$ac_exeext conftest.$ac_ext 4020 emacs_cv_sunpro_c=no
4250 fi 4021 fi
4251 4022
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5 4023 rm -rf conftest.dSYM
4024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4025 conftest$ac_exeext conftest.$ac_ext
4026 fi
4027
4028 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4253 $as_echo "$emacs_cv_sunpro_c" >&6; } 4029 $as_echo "$emacs_cv_sunpro_c" >&6; }
4254 4030
4255 if test x"$emacs_cv_sunpro_c" = xyes; then 4031 if test x"$emacs_cv_sunpro_c" = xyes; then
4256 NON_GNU_CPP="$CC -E -Xs" 4032 NON_GNU_CPP="$CC -E -Xs"
4257 fi 4033 fi
4287 ac_ext=c 4063 ac_ext=c
4288 ac_cpp='$CPP $CPPFLAGS' 4064 ac_cpp='$CPP $CPPFLAGS'
4289 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4290 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4291 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 4068 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4293 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4069 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4294 # On Suns, sometimes $CPP names a directory. 4070 # On Suns, sometimes $CPP names a directory.
4295 if test -n "$CPP" && test -d "$CPP"; then 4071 if test -n "$CPP" && test -d "$CPP"; then
4296 CPP= 4072 CPP=
4297 fi 4073 fi
4298 if test -z "$CPP"; then 4074 if test -z "$CPP"; then
4299 if test "${ac_cv_prog_CPP+set}" = set; then : 4075 if test "${ac_cv_prog_CPP+set}" = set; then
4300 $as_echo_n "(cached) " >&6 4076 $as_echo_n "(cached) " >&6
4301 else 4077 else
4302 # Double quotes because CPP needs to be expanded 4078 # Double quotes because CPP needs to be expanded
4303 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4079 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4304 do 4080 do
4309 # with a fresh cross-compiler works. 4085 # with a fresh cross-compiler works.
4310 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4311 # <limits.h> exists even on freestanding compilers. 4087 # <limits.h> exists even on freestanding compilers.
4312 # On the NeXT, cc -E runs the code through the compiler's parser, 4088 # On the NeXT, cc -E runs the code through the compiler's parser,
4313 # not just through cpp. "Syntax error" is here to catch this case. 4089 # not just through cpp. "Syntax error" is here to catch this case.
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4090 cat >conftest.$ac_ext <<_ACEOF
4091 /* confdefs.h. */
4092 _ACEOF
4093 cat confdefs.h >>conftest.$ac_ext
4094 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */ 4095 /* end confdefs.h. */
4316 #ifdef __STDC__ 4096 #ifdef __STDC__
4317 # include <limits.h> 4097 # include <limits.h>
4318 #else 4098 #else
4319 # include <assert.h> 4099 # include <assert.h>
4320 #endif 4100 #endif
4321 Syntax error 4101 Syntax error
4322 _ACEOF 4102 _ACEOF
4323 if ac_fn_c_try_cpp "$LINENO"; then : 4103 if { (ac_try="$ac_cpp conftest.$ac_ext"
4324 4104 case "(($ac_try" in
4325 else 4105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4106 *) ac_try_echo=$ac_try;;
4107 esac
4108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4109 $as_echo "$ac_try_echo") >&5
4110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4111 ac_status=$?
4112 grep -v '^ *+' conftest.er1 >conftest.err
4113 rm -f conftest.er1
4114 cat conftest.err >&5
4115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116 (exit $ac_status); } >/dev/null && {
4117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4118 test ! -s conftest.err
4119 }; then
4120 :
4121 else
4122 $as_echo "$as_me: failed program was:" >&5
4123 sed 's/^/| /' conftest.$ac_ext >&5
4124
4326 # Broken: fails on valid input. 4125 # Broken: fails on valid input.
4327 continue 4126 continue
4328 fi 4127 fi
4128
4329 rm -f conftest.err conftest.$ac_ext 4129 rm -f conftest.err conftest.$ac_ext
4330 4130
4331 # OK, works on sane cases. Now check whether nonexistent headers 4131 # OK, works on sane cases. Now check whether nonexistent headers
4332 # can be detected and how. 4132 # can be detected and how.
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4133 cat >conftest.$ac_ext <<_ACEOF
4134 /* confdefs.h. */
4135 _ACEOF
4136 cat confdefs.h >>conftest.$ac_ext
4137 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */ 4138 /* end confdefs.h. */
4335 #include <ac_nonexistent.h> 4139 #include <ac_nonexistent.h>
4336 _ACEOF 4140 _ACEOF
4337 if ac_fn_c_try_cpp "$LINENO"; then : 4141 if { (ac_try="$ac_cpp conftest.$ac_ext"
4142 case "(($ac_try" in
4143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4144 *) ac_try_echo=$ac_try;;
4145 esac
4146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4147 $as_echo "$ac_try_echo") >&5
4148 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4149 ac_status=$?
4150 grep -v '^ *+' conftest.er1 >conftest.err
4151 rm -f conftest.er1
4152 cat conftest.err >&5
4153 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4154 (exit $ac_status); } >/dev/null && {
4155 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4156 test ! -s conftest.err
4157 }; then
4338 # Broken: success on invalid input. 4158 # Broken: success on invalid input.
4339 continue 4159 continue
4340 else 4160 else
4161 $as_echo "$as_me: failed program was:" >&5
4162 sed 's/^/| /' conftest.$ac_ext >&5
4163
4341 # Passes both tests. 4164 # Passes both tests.
4342 ac_preproc_ok=: 4165 ac_preproc_ok=:
4343 break 4166 break
4344 fi 4167 fi
4168
4345 rm -f conftest.err conftest.$ac_ext 4169 rm -f conftest.err conftest.$ac_ext
4346 4170
4347 done 4171 done
4348 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4172 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4349 rm -f conftest.err conftest.$ac_ext 4173 rm -f conftest.err conftest.$ac_ext
4350 if $ac_preproc_ok; then : 4174 if $ac_preproc_ok; then
4351 break 4175 break
4352 fi 4176 fi
4353 4177
4354 done 4178 done
4355 ac_cv_prog_CPP=$CPP 4179 ac_cv_prog_CPP=$CPP
4357 fi 4181 fi
4358 CPP=$ac_cv_prog_CPP 4182 CPP=$ac_cv_prog_CPP
4359 else 4183 else
4360 ac_cv_prog_CPP=$CPP 4184 ac_cv_prog_CPP=$CPP
4361 fi 4185 fi
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4186 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4363 $as_echo "$CPP" >&6; } 4187 $as_echo "$CPP" >&6; }
4364 ac_preproc_ok=false 4188 ac_preproc_ok=false
4365 for ac_c_preproc_warn_flag in '' yes 4189 for ac_c_preproc_warn_flag in '' yes
4366 do 4190 do
4367 # Use a header file that comes with gcc, so configuring glibc 4191 # Use a header file that comes with gcc, so configuring glibc
4368 # with a fresh cross-compiler works. 4192 # with a fresh cross-compiler works.
4369 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4193 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4370 # <limits.h> exists even on freestanding compilers. 4194 # <limits.h> exists even on freestanding compilers.
4371 # On the NeXT, cc -E runs the code through the compiler's parser, 4195 # On the NeXT, cc -E runs the code through the compiler's parser,
4372 # not just through cpp. "Syntax error" is here to catch this case. 4196 # not just through cpp. "Syntax error" is here to catch this case.
4373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4197 cat >conftest.$ac_ext <<_ACEOF
4198 /* confdefs.h. */
4199 _ACEOF
4200 cat confdefs.h >>conftest.$ac_ext
4201 cat >>conftest.$ac_ext <<_ACEOF
4374 /* end confdefs.h. */ 4202 /* end confdefs.h. */
4375 #ifdef __STDC__ 4203 #ifdef __STDC__
4376 # include <limits.h> 4204 # include <limits.h>
4377 #else 4205 #else
4378 # include <assert.h> 4206 # include <assert.h>
4379 #endif 4207 #endif
4380 Syntax error 4208 Syntax error
4381 _ACEOF 4209 _ACEOF
4382 if ac_fn_c_try_cpp "$LINENO"; then : 4210 if { (ac_try="$ac_cpp conftest.$ac_ext"
4383 4211 case "(($ac_try" in
4384 else 4212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4213 *) ac_try_echo=$ac_try;;
4214 esac
4215 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4216 $as_echo "$ac_try_echo") >&5
4217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4218 ac_status=$?
4219 grep -v '^ *+' conftest.er1 >conftest.err
4220 rm -f conftest.er1
4221 cat conftest.err >&5
4222 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4223 (exit $ac_status); } >/dev/null && {
4224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4225 test ! -s conftest.err
4226 }; then
4227 :
4228 else
4229 $as_echo "$as_me: failed program was:" >&5
4230 sed 's/^/| /' conftest.$ac_ext >&5
4231
4385 # Broken: fails on valid input. 4232 # Broken: fails on valid input.
4386 continue 4233 continue
4387 fi 4234 fi
4235
4388 rm -f conftest.err conftest.$ac_ext 4236 rm -f conftest.err conftest.$ac_ext
4389 4237
4390 # OK, works on sane cases. Now check whether nonexistent headers 4238 # OK, works on sane cases. Now check whether nonexistent headers
4391 # can be detected and how. 4239 # can be detected and how.
4392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4240 cat >conftest.$ac_ext <<_ACEOF
4241 /* confdefs.h. */
4242 _ACEOF
4243 cat confdefs.h >>conftest.$ac_ext
4244 cat >>conftest.$ac_ext <<_ACEOF
4393 /* end confdefs.h. */ 4245 /* end confdefs.h. */
4394 #include <ac_nonexistent.h> 4246 #include <ac_nonexistent.h>
4395 _ACEOF 4247 _ACEOF
4396 if ac_fn_c_try_cpp "$LINENO"; then : 4248 if { (ac_try="$ac_cpp conftest.$ac_ext"
4249 case "(($ac_try" in
4250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4251 *) ac_try_echo=$ac_try;;
4252 esac
4253 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4254 $as_echo "$ac_try_echo") >&5
4255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4256 ac_status=$?
4257 grep -v '^ *+' conftest.er1 >conftest.err
4258 rm -f conftest.er1
4259 cat conftest.err >&5
4260 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4261 (exit $ac_status); } >/dev/null && {
4262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4263 test ! -s conftest.err
4264 }; then
4397 # Broken: success on invalid input. 4265 # Broken: success on invalid input.
4398 continue 4266 continue
4399 else 4267 else
4268 $as_echo "$as_me: failed program was:" >&5
4269 sed 's/^/| /' conftest.$ac_ext >&5
4270
4400 # Passes both tests. 4271 # Passes both tests.
4401 ac_preproc_ok=: 4272 ac_preproc_ok=:
4402 break 4273 break
4403 fi 4274 fi
4275
4404 rm -f conftest.err conftest.$ac_ext 4276 rm -f conftest.err conftest.$ac_ext
4405 4277
4406 done 4278 done
4407 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4279 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4408 rm -f conftest.err conftest.$ac_ext 4280 rm -f conftest.err conftest.$ac_ext
4409 if $ac_preproc_ok; then : 4281 if $ac_preproc_ok; then
4410 4282 :
4411 else 4283 else
4412 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4284 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4413 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4285 See \`config.log' for more details." >&5
4414 as_fn_error "C preprocessor \"$CPP\" fails sanity check 4286 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4415 See \`config.log' for more details." "$LINENO" 5; } 4287 See \`config.log' for more details." >&2;}
4288 { (exit 1); exit 1; }; }
4416 fi 4289 fi
4417 4290
4418 ac_ext=c 4291 ac_ext=c
4419 ac_cpp='$CPP $CPPFLAGS' 4292 ac_cpp='$CPP $CPPFLAGS'
4420 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4293 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4421 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4294 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4422 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4295 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4423 4296
4424 4297
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4298 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4426 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4299 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4427 if test "${ac_cv_path_GREP+set}" = set; then : 4300 if test "${ac_cv_path_GREP+set}" = set; then
4428 $as_echo_n "(cached) " >&6 4301 $as_echo_n "(cached) " >&6
4429 else 4302 else
4430 if test -z "$GREP"; then 4303 if test -z "$GREP"; then
4431 ac_path_GREP_found=false 4304 ac_path_GREP_found=false
4432 # Loop through the user's path and test for each of PROGNAME-LIST 4305 # Loop through the user's path and test for each of PROGNAME-LIST
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4434 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4307 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4435 do 4308 do
4436 IFS=$as_save_IFS 4309 IFS=$as_save_IFS
4437 test -z "$as_dir" && as_dir=. 4310 test -z "$as_dir" && as_dir=.
4438 for ac_prog in grep ggrep; do 4311 for ac_prog in grep ggrep; do
4439 for ac_exec_ext in '' $ac_executable_extensions; do 4312 for ac_exec_ext in '' $ac_executable_extensions; do
4440 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4313 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4441 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4314 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4442 # Check for GNU ac_path_GREP and select it if it is found. 4315 # Check for GNU ac_path_GREP and select it if it is found.
4443 # Check for GNU $ac_path_GREP 4316 # Check for GNU $ac_path_GREP
4453 mv "conftest.tmp" "conftest.in" 4326 mv "conftest.tmp" "conftest.in"
4454 cp "conftest.in" "conftest.nl" 4327 cp "conftest.in" "conftest.nl"
4455 $as_echo 'GREP' >> "conftest.nl" 4328 $as_echo 'GREP' >> "conftest.nl"
4456 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4329 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4457 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4330 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4458 as_fn_arith $ac_count + 1 && ac_count=$as_val 4331 ac_count=`expr $ac_count + 1`
4459 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4332 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4460 # Best one so far, save it but keep looking for a better one 4333 # Best one so far, save it but keep looking for a better one
4461 ac_cv_path_GREP="$ac_path_GREP" 4334 ac_cv_path_GREP="$ac_path_GREP"
4462 ac_path_GREP_max=$ac_count 4335 ac_path_GREP_max=$ac_count
4463 fi 4336 fi
4468 esac 4341 esac
4469 4342
4470 $ac_path_GREP_found && break 3 4343 $ac_path_GREP_found && break 3
4471 done 4344 done
4472 done 4345 done
4473 done 4346 done
4474 IFS=$as_save_IFS 4347 IFS=$as_save_IFS
4475 if test -z "$ac_cv_path_GREP"; then 4348 if test -z "$ac_cv_path_GREP"; then
4476 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4349 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4350 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4351 { (exit 1); exit 1; }; }
4477 fi 4352 fi
4478 else 4353 else
4479 ac_cv_path_GREP=$GREP 4354 ac_cv_path_GREP=$GREP
4480 fi 4355 fi
4481 4356
4482 fi 4357 fi
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4358 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4484 $as_echo "$ac_cv_path_GREP" >&6; } 4359 $as_echo "$ac_cv_path_GREP" >&6; }
4485 GREP="$ac_cv_path_GREP" 4360 GREP="$ac_cv_path_GREP"
4486 4361
4487 4362
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4363 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4489 $as_echo_n "checking for egrep... " >&6; } 4364 $as_echo_n "checking for egrep... " >&6; }
4490 if test "${ac_cv_path_EGREP+set}" = set; then : 4365 if test "${ac_cv_path_EGREP+set}" = set; then
4491 $as_echo_n "(cached) " >&6 4366 $as_echo_n "(cached) " >&6
4492 else 4367 else
4493 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4368 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4494 then ac_cv_path_EGREP="$GREP -E" 4369 then ac_cv_path_EGREP="$GREP -E"
4495 else 4370 else
4499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4500 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4375 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4501 do 4376 do
4502 IFS=$as_save_IFS 4377 IFS=$as_save_IFS
4503 test -z "$as_dir" && as_dir=. 4378 test -z "$as_dir" && as_dir=.
4504 for ac_prog in egrep; do 4379 for ac_prog in egrep; do
4505 for ac_exec_ext in '' $ac_executable_extensions; do 4380 for ac_exec_ext in '' $ac_executable_extensions; do
4506 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4381 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4507 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4382 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4508 # Check for GNU ac_path_EGREP and select it if it is found. 4383 # Check for GNU ac_path_EGREP and select it if it is found.
4509 # Check for GNU $ac_path_EGREP 4384 # Check for GNU $ac_path_EGREP
4519 mv "conftest.tmp" "conftest.in" 4394 mv "conftest.tmp" "conftest.in"
4520 cp "conftest.in" "conftest.nl" 4395 cp "conftest.in" "conftest.nl"
4521 $as_echo 'EGREP' >> "conftest.nl" 4396 $as_echo 'EGREP' >> "conftest.nl"
4522 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4397 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4523 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4524 as_fn_arith $ac_count + 1 && ac_count=$as_val 4399 ac_count=`expr $ac_count + 1`
4525 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4400 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4526 # Best one so far, save it but keep looking for a better one 4401 # Best one so far, save it but keep looking for a better one
4527 ac_cv_path_EGREP="$ac_path_EGREP" 4402 ac_cv_path_EGREP="$ac_path_EGREP"
4528 ac_path_EGREP_max=$ac_count 4403 ac_path_EGREP_max=$ac_count
4529 fi 4404 fi
4534 esac 4409 esac
4535 4410
4536 $ac_path_EGREP_found && break 3 4411 $ac_path_EGREP_found && break 3
4537 done 4412 done
4538 done 4413 done
4539 done 4414 done
4540 IFS=$as_save_IFS 4415 IFS=$as_save_IFS
4541 if test -z "$ac_cv_path_EGREP"; then 4416 if test -z "$ac_cv_path_EGREP"; then
4542 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4417 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4418 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4419 { (exit 1); exit 1; }; }
4543 fi 4420 fi
4544 else 4421 else
4545 ac_cv_path_EGREP=$EGREP 4422 ac_cv_path_EGREP=$EGREP
4546 fi 4423 fi
4547 4424
4548 fi 4425 fi
4549 fi 4426 fi
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4427 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4551 $as_echo "$ac_cv_path_EGREP" >&6; } 4428 $as_echo "$ac_cv_path_EGREP" >&6; }
4552 EGREP="$ac_cv_path_EGREP" 4429 EGREP="$ac_cv_path_EGREP"
4553 4430
4554 4431
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4432 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4556 $as_echo_n "checking for ANSI C header files... " >&6; } 4433 $as_echo_n "checking for ANSI C header files... " >&6; }
4557 if test "${ac_cv_header_stdc+set}" = set; then : 4434 if test "${ac_cv_header_stdc+set}" = set; then
4558 $as_echo_n "(cached) " >&6 4435 $as_echo_n "(cached) " >&6
4559 else 4436 else
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4437 cat >conftest.$ac_ext <<_ACEOF
4438 /* confdefs.h. */
4439 _ACEOF
4440 cat confdefs.h >>conftest.$ac_ext
4441 cat >>conftest.$ac_ext <<_ACEOF
4561 /* end confdefs.h. */ 4442 /* end confdefs.h. */
4562 #include <stdlib.h> 4443 #include <stdlib.h>
4563 #include <stdarg.h> 4444 #include <stdarg.h>
4564 #include <string.h> 4445 #include <string.h>
4565 #include <float.h> 4446 #include <float.h>
4570 4451
4571 ; 4452 ;
4572 return 0; 4453 return 0;
4573 } 4454 }
4574 _ACEOF 4455 _ACEOF
4575 if ac_fn_c_try_compile "$LINENO"; then : 4456 rm -f conftest.$ac_objext
4457 if { (ac_try="$ac_compile"
4458 case "(($ac_try" in
4459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4460 *) ac_try_echo=$ac_try;;
4461 esac
4462 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4463 $as_echo "$ac_try_echo") >&5
4464 (eval "$ac_compile") 2>conftest.er1
4465 ac_status=$?
4466 grep -v '^ *+' conftest.er1 >conftest.err
4467 rm -f conftest.er1
4468 cat conftest.err >&5
4469 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4470 (exit $ac_status); } && {
4471 test -z "$ac_c_werror_flag" ||
4472 test ! -s conftest.err
4473 } && test -s conftest.$ac_objext; then
4576 ac_cv_header_stdc=yes 4474 ac_cv_header_stdc=yes
4577 else 4475 else
4578 ac_cv_header_stdc=no 4476 $as_echo "$as_me: failed program was:" >&5
4579 fi 4477 sed 's/^/| /' conftest.$ac_ext >&5
4478
4479 ac_cv_header_stdc=no
4480 fi
4481
4580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4581 4483
4582 if test $ac_cv_header_stdc = yes; then 4484 if test $ac_cv_header_stdc = yes; then
4583 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4485 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4486 cat >conftest.$ac_ext <<_ACEOF
4487 /* confdefs.h. */
4488 _ACEOF
4489 cat confdefs.h >>conftest.$ac_ext
4490 cat >>conftest.$ac_ext <<_ACEOF
4585 /* end confdefs.h. */ 4491 /* end confdefs.h. */
4586 #include <string.h> 4492 #include <string.h>
4587 4493
4588 _ACEOF 4494 _ACEOF
4589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4590 $EGREP "memchr" >/dev/null 2>&1; then : 4496 $EGREP "memchr" >/dev/null 2>&1; then
4591 4497 :
4592 else 4498 else
4593 ac_cv_header_stdc=no 4499 ac_cv_header_stdc=no
4594 fi 4500 fi
4595 rm -f conftest* 4501 rm -f conftest*
4596 4502
4597 fi 4503 fi
4598 4504
4599 if test $ac_cv_header_stdc = yes; then 4505 if test $ac_cv_header_stdc = yes; then
4600 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4506 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h. */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4602 /* end confdefs.h. */ 4512 /* end confdefs.h. */
4603 #include <stdlib.h> 4513 #include <stdlib.h>
4604 4514
4605 _ACEOF 4515 _ACEOF
4606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4607 $EGREP "free" >/dev/null 2>&1; then : 4517 $EGREP "free" >/dev/null 2>&1; then
4608 4518 :
4609 else 4519 else
4610 ac_cv_header_stdc=no 4520 ac_cv_header_stdc=no
4611 fi 4521 fi
4612 rm -f conftest* 4522 rm -f conftest*
4613 4523
4614 fi 4524 fi
4615 4525
4616 if test $ac_cv_header_stdc = yes; then 4526 if test $ac_cv_header_stdc = yes; then
4617 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4527 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4618 if test "$cross_compiling" = yes; then : 4528 if test "$cross_compiling" = yes; then
4619 : 4529 :
4620 else 4530 else
4621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4531 cat >conftest.$ac_ext <<_ACEOF
4532 /* confdefs.h. */
4533 _ACEOF
4534 cat confdefs.h >>conftest.$ac_ext
4535 cat >>conftest.$ac_ext <<_ACEOF
4622 /* end confdefs.h. */ 4536 /* end confdefs.h. */
4623 #include <ctype.h> 4537 #include <ctype.h>
4624 #include <stdlib.h> 4538 #include <stdlib.h>
4625 #if ((' ' & 0x0FF) == 0x020) 4539 #if ((' ' & 0x0FF) == 0x020)
4626 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4540 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4643 || toupper (i) != TOUPPER (i)) 4557 || toupper (i) != TOUPPER (i))
4644 return 2; 4558 return 2;
4645 return 0; 4559 return 0;
4646 } 4560 }
4647 _ACEOF 4561 _ACEOF
4648 if ac_fn_c_try_run "$LINENO"; then : 4562 rm -f conftest$ac_exeext
4649 4563 if { (ac_try="$ac_link"
4650 else 4564 case "(($ac_try" in
4651 ac_cv_header_stdc=no 4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4652 fi 4566 *) ac_try_echo=$ac_try;;
4653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4567 esac
4654 conftest.$ac_objext conftest.beam conftest.$ac_ext 4568 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4655 fi 4569 $as_echo "$ac_try_echo") >&5
4656 4570 (eval "$ac_link") 2>&5
4657 fi 4571 ac_status=$?
4658 fi 4572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4573 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4574 { (case "(($ac_try" in
4575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4577 esac
4578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4579 $as_echo "$ac_try_echo") >&5
4580 (eval "$ac_try") 2>&5
4581 ac_status=$?
4582 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4583 (exit $ac_status); }; }; then
4584 :
4585 else
4586 $as_echo "$as_me: program exited with status $ac_status" >&5
4587 $as_echo "$as_me: failed program was:" >&5
4588 sed 's/^/| /' conftest.$ac_ext >&5
4589
4590 ( exit $ac_status )
4591 ac_cv_header_stdc=no
4592 fi
4593 rm -rf conftest.dSYM
4594 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4595 fi
4596
4597
4598 fi
4599 fi
4600 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4660 $as_echo "$ac_cv_header_stdc" >&6; } 4601 $as_echo "$ac_cv_header_stdc" >&6; }
4661 if test $ac_cv_header_stdc = yes; then 4602 if test $ac_cv_header_stdc = yes; then
4662 4603
4663 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 4604 cat >>confdefs.h <<\_ACEOF
4605 #define STDC_HEADERS 1
4606 _ACEOF
4664 4607
4665 fi 4608 fi
4666 4609
4667 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4610 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4611
4612
4613
4614
4615
4616
4617
4618
4619
4668 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4620 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4669 inttypes.h stdint.h unistd.h 4621 inttypes.h stdint.h unistd.h
4670 do : 4622 do
4671 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4672 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4624 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
4673 " 4625 $as_echo_n "checking for $ac_header... " >&6; }
4674 eval as_val=\$$as_ac_Header 4626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4675 if test "x$as_val" = x""yes; then : 4627 $as_echo_n "(cached) " >&6
4628 else
4629 cat >conftest.$ac_ext <<_ACEOF
4630 /* confdefs.h. */
4631 _ACEOF
4632 cat confdefs.h >>conftest.$ac_ext
4633 cat >>conftest.$ac_ext <<_ACEOF
4634 /* end confdefs.h. */
4635 $ac_includes_default
4636
4637 #include <$ac_header>
4638 _ACEOF
4639 rm -f conftest.$ac_objext
4640 if { (ac_try="$ac_compile"
4641 case "(($ac_try" in
4642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4643 *) ac_try_echo=$ac_try;;
4644 esac
4645 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4646 $as_echo "$ac_try_echo") >&5
4647 (eval "$ac_compile") 2>conftest.er1
4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
4652 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest.$ac_objext; then
4657 eval "$as_ac_Header=yes"
4658 else
4659 $as_echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.$ac_ext >&5
4661
4662 eval "$as_ac_Header=no"
4663 fi
4664
4665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4666 fi
4667 ac_res=`eval 'as_val=${'$as_ac_Header'}
4668 $as_echo "$as_val"'`
4669 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4670 $as_echo "$ac_res" >&6; }
4671 if test `eval 'as_val=${'$as_ac_Header'}
4672 $as_echo "$as_val"'` = yes; then
4676 cat >>confdefs.h <<_ACEOF 4673 cat >>confdefs.h <<_ACEOF
4677 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4674 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4678 _ACEOF 4675 _ACEOF
4679 4676
4680 fi 4677 fi
4681 4678
4682 done 4679 done
4683 4680
4684 4681
4685 4682
4686 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4683 if test "${ac_cv_header_minix_config_h+set}" = set; then
4687 if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4684 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4685 $as_echo_n "checking for minix/config.h... " >&6; }
4686 if test "${ac_cv_header_minix_config_h+set}" = set; then
4687 $as_echo_n "(cached) " >&6
4688 fi
4689 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4690 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4691 else
4692 # Is the header compilable?
4693 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4694 $as_echo_n "checking minix/config.h usability... " >&6; }
4695 cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h. */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 $ac_includes_default
4702 #include <minix/config.h>
4703 _ACEOF
4704 rm -f conftest.$ac_objext
4705 if { (ac_try="$ac_compile"
4706 case "(($ac_try" in
4707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4709 esac
4710 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4711 $as_echo "$ac_try_echo") >&5
4712 (eval "$ac_compile") 2>conftest.er1
4713 ac_status=$?
4714 grep -v '^ *+' conftest.er1 >conftest.err
4715 rm -f conftest.er1
4716 cat conftest.err >&5
4717 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4718 (exit $ac_status); } && {
4719 test -z "$ac_c_werror_flag" ||
4720 test ! -s conftest.err
4721 } && test -s conftest.$ac_objext; then
4722 ac_header_compiler=yes
4723 else
4724 $as_echo "$as_me: failed program was:" >&5
4725 sed 's/^/| /' conftest.$ac_ext >&5
4726
4727 ac_header_compiler=no
4728 fi
4729
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4732 $as_echo "$ac_header_compiler" >&6; }
4733
4734 # Is the header present?
4735 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4736 $as_echo_n "checking minix/config.h presence... " >&6; }
4737 cat >conftest.$ac_ext <<_ACEOF
4738 /* confdefs.h. */
4739 _ACEOF
4740 cat confdefs.h >>conftest.$ac_ext
4741 cat >>conftest.$ac_ext <<_ACEOF
4742 /* end confdefs.h. */
4743 #include <minix/config.h>
4744 _ACEOF
4745 if { (ac_try="$ac_cpp conftest.$ac_ext"
4746 case "(($ac_try" in
4747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4748 *) ac_try_echo=$ac_try;;
4749 esac
4750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4751 $as_echo "$ac_try_echo") >&5
4752 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4753 ac_status=$?
4754 grep -v '^ *+' conftest.er1 >conftest.err
4755 rm -f conftest.er1
4756 cat conftest.err >&5
4757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); } >/dev/null && {
4759 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4760 test ! -s conftest.err
4761 }; then
4762 ac_header_preproc=yes
4763 else
4764 $as_echo "$as_me: failed program was:" >&5
4765 sed 's/^/| /' conftest.$ac_ext >&5
4766
4767 ac_header_preproc=no
4768 fi
4769
4770 rm -f conftest.err conftest.$ac_ext
4771 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4772 $as_echo "$ac_header_preproc" >&6; }
4773
4774 # So? What about this header?
4775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4776 yes:no: )
4777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4778 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4780 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4781 ac_header_preproc=yes
4782 ;;
4783 no:yes:* )
4784 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4785 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4786 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4787 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4788 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4789 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4790 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4791 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4792 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4793 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4794 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4795 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4796
4797 ;;
4798 esac
4799 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4800 $as_echo_n "checking for minix/config.h... " >&6; }
4801 if test "${ac_cv_header_minix_config_h+set}" = set; then
4802 $as_echo_n "(cached) " >&6
4803 else
4804 ac_cv_header_minix_config_h=$ac_header_preproc
4805 fi
4806 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4807 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4808
4809 fi
4810 if test $ac_cv_header_minix_config_h = yes; then
4688 MINIX=yes 4811 MINIX=yes
4689 else 4812 else
4690 MINIX= 4813 MINIX=
4691 fi 4814 fi
4692 4815
4693 4816
4694 if test "$MINIX" = yes; then 4817 if test "$MINIX" = yes; then
4695 4818
4696 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4819 cat >>confdefs.h <<\_ACEOF
4697 4820 #define _POSIX_SOURCE 1
4698 4821 _ACEOF
4699 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4822
4700 4823
4701 4824 cat >>confdefs.h <<\_ACEOF
4702 $as_echo "#define _MINIX 1" >>confdefs.h 4825 #define _POSIX_1_SOURCE 2
4826 _ACEOF
4827
4828
4829 cat >>confdefs.h <<\_ACEOF
4830 #define _MINIX 1
4831 _ACEOF
4703 4832
4704 fi 4833 fi
4705 4834
4706 4835
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4836
4837 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4708 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4838 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4709 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4839 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4710 $as_echo_n "(cached) " >&6 4840 $as_echo_n "(cached) " >&6
4711 else 4841 else
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4842 cat >conftest.$ac_ext <<_ACEOF
4843 /* confdefs.h. */
4844 _ACEOF
4845 cat confdefs.h >>conftest.$ac_ext
4846 cat >>conftest.$ac_ext <<_ACEOF
4713 /* end confdefs.h. */ 4847 /* end confdefs.h. */
4714 4848
4715 # define __EXTENSIONS__ 1 4849 # define __EXTENSIONS__ 1
4716 $ac_includes_default 4850 $ac_includes_default
4717 int 4851 int
4720 4854
4721 ; 4855 ;
4722 return 0; 4856 return 0;
4723 } 4857 }
4724 _ACEOF 4858 _ACEOF
4725 if ac_fn_c_try_compile "$LINENO"; then : 4859 rm -f conftest.$ac_objext
4860 if { (ac_try="$ac_compile"
4861 case "(($ac_try" in
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4864 esac
4865 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4866 $as_echo "$ac_try_echo") >&5
4867 (eval "$ac_compile") 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } && {
4874 test -z "$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 } && test -s conftest.$ac_objext; then
4726 ac_cv_safe_to_define___extensions__=yes 4877 ac_cv_safe_to_define___extensions__=yes
4727 else 4878 else
4728 ac_cv_safe_to_define___extensions__=no 4879 $as_echo "$as_me: failed program was:" >&5
4729 fi 4880 sed 's/^/| /' conftest.$ac_ext >&5
4881
4882 ac_cv_safe_to_define___extensions__=no
4883 fi
4884
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 fi 4886 fi
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4887 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4733 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4888 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4734 test $ac_cv_safe_to_define___extensions__ = yes && 4889 test $ac_cv_safe_to_define___extensions__ = yes &&
4735 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4890 cat >>confdefs.h <<\_ACEOF
4736 4891 #define __EXTENSIONS__ 1
4737 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4892 _ACEOF
4738 4893
4739 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4894 cat >>confdefs.h <<\_ACEOF
4740 4895 #define _ALL_SOURCE 1
4741 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4896 _ACEOF
4742 4897
4743 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4898 cat >>confdefs.h <<\_ACEOF
4899 #define _GNU_SOURCE 1
4900 _ACEOF
4901
4902 cat >>confdefs.h <<\_ACEOF
4903 #define _POSIX_PTHREAD_SEMANTICS 1
4904 _ACEOF
4905
4906 cat >>confdefs.h <<\_ACEOF
4907 #define _TANDEM_SOURCE 1
4908 _ACEOF
4744 4909
4745 4910
4746 4911
4747 ### Use -Wno-pointer-sign if the compiler supports it 4912 ### Use -Wno-pointer-sign if the compiler supports it
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5 4913 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4749 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; } 4914 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4750 SAVE_CFLAGS="$CFLAGS" 4915 SAVE_CFLAGS="$CFLAGS"
4751 CFLAGS="$CFLAGS -Wno-pointer-sign" 4916 CFLAGS="$CFLAGS -Wno-pointer-sign"
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4917 cat >conftest.$ac_ext <<_ACEOF
4918 /* confdefs.h. */
4919 _ACEOF
4920 cat confdefs.h >>conftest.$ac_ext
4921 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */ 4922 /* end confdefs.h. */
4754 4923
4755 int 4924 int
4756 main () 4925 main ()
4757 { 4926 {
4758 4927
4759 ; 4928 ;
4760 return 0; 4929 return 0;
4761 } 4930 }
4762 _ACEOF 4931 _ACEOF
4763 if ac_fn_c_try_compile "$LINENO"; then : 4932 rm -f conftest.$ac_objext
4933 if { (ac_try="$ac_compile"
4934 case "(($ac_try" in
4935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4936 *) ac_try_echo=$ac_try;;
4937 esac
4938 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4939 $as_echo "$ac_try_echo") >&5
4940 (eval "$ac_compile") 2>conftest.er1
4941 ac_status=$?
4942 grep -v '^ *+' conftest.er1 >conftest.err
4943 rm -f conftest.er1
4944 cat conftest.err >&5
4945 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4946 (exit $ac_status); } && {
4947 test -z "$ac_c_werror_flag" ||
4948 test ! -s conftest.err
4949 } && test -s conftest.$ac_objext; then
4764 has_option=yes 4950 has_option=yes
4765 else 4951 else
4766 has_option=no 4952 $as_echo "$as_me: failed program was:" >&5
4767 fi 4953 sed 's/^/| /' conftest.$ac_ext >&5
4954
4955 has_option=no
4956 fi
4957
4768 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 if test $has_option = yes; then 4959 if test $has_option = yes; then
4770 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" 4960 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4771 fi 4961 fi
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 4962 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4773 $as_echo "$has_option" >&6; } 4963 $as_echo "$has_option" >&6; }
4774 CFLAGS="$SAVE_CFLAGS" 4964 CFLAGS="$SAVE_CFLAGS"
4775 unset has_option 4965 unset has_option
4776 unset SAVE_CFLAGS 4966 unset SAVE_CFLAGS
4777 4967
4778 ### Use -Wdeclaration-after-statement if the compiler supports it 4968 ### Use -Wdeclaration-after-statement if the compiler supports it
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5 4969 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5
4780 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } 4970 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4781 SAVE_CFLAGS="$CFLAGS" 4971 SAVE_CFLAGS="$CFLAGS"
4782 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 4972 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4973 cat >conftest.$ac_ext <<_ACEOF
4974 /* confdefs.h. */
4975 _ACEOF
4976 cat confdefs.h >>conftest.$ac_ext
4977 cat >>conftest.$ac_ext <<_ACEOF
4784 /* end confdefs.h. */ 4978 /* end confdefs.h. */
4785 4979
4786 int 4980 int
4787 main () 4981 main ()
4788 { 4982 {
4789 4983
4790 ; 4984 ;
4791 return 0; 4985 return 0;
4792 } 4986 }
4793 _ACEOF 4987 _ACEOF
4794 if ac_fn_c_try_compile "$LINENO"; then : 4988 rm -f conftest.$ac_objext
4989 if { (ac_try="$ac_compile"
4990 case "(($ac_try" in
4991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4992 *) ac_try_echo=$ac_try;;
4993 esac
4994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4995 $as_echo "$ac_try_echo") >&5
4996 (eval "$ac_compile") 2>conftest.er1
4997 ac_status=$?
4998 grep -v '^ *+' conftest.er1 >conftest.err
4999 rm -f conftest.er1
5000 cat conftest.err >&5
5001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5002 (exit $ac_status); } && {
5003 test -z "$ac_c_werror_flag" ||
5004 test ! -s conftest.err
5005 } && test -s conftest.$ac_objext; then
4795 has_option=yes 5006 has_option=yes
4796 else 5007 else
4797 has_option=no 5008 $as_echo "$as_me: failed program was:" >&5
4798 fi 5009 sed 's/^/| /' conftest.$ac_ext >&5
5010
5011 has_option=no
5012 fi
5013
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4800 if test $has_option = yes; then 5015 if test $has_option = yes; then
4801 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" 5016 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
4802 fi 5017 fi
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5 5018 { $as_echo "$as_me:$LINENO: result: $has_option" >&5
4804 $as_echo "$has_option" >&6; } 5019 $as_echo "$has_option" >&6; }
4805 CFLAGS="$SAVE_CFLAGS" 5020 CFLAGS="$SAVE_CFLAGS"
4806 unset has_option 5021 unset has_option
4807 unset SAVE_CFLAGS 5022 unset SAVE_CFLAGS
4808 5023
4811 ac_ext=c 5026 ac_ext=c
4812 ac_cpp='$CPP $CPPFLAGS' 5027 ac_cpp='$CPP $CPPFLAGS'
4813 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4814 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4815 ac_compiler_gnu=$ac_cv_c_compiler_gnu 5030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 5031 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4817 $as_echo_n "checking how to run the C preprocessor... " >&6; } 5032 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4818 # On Suns, sometimes $CPP names a directory. 5033 # On Suns, sometimes $CPP names a directory.
4819 if test -n "$CPP" && test -d "$CPP"; then 5034 if test -n "$CPP" && test -d "$CPP"; then
4820 CPP= 5035 CPP=
4821 fi 5036 fi
4822 if test -z "$CPP"; then 5037 if test -z "$CPP"; then
4823 if test "${ac_cv_prog_CPP+set}" = set; then : 5038 if test "${ac_cv_prog_CPP+set}" = set; then
4824 $as_echo_n "(cached) " >&6 5039 $as_echo_n "(cached) " >&6
4825 else 5040 else
4826 # Double quotes because CPP needs to be expanded 5041 # Double quotes because CPP needs to be expanded
4827 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5042 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4828 do 5043 do
4833 # with a fresh cross-compiler works. 5048 # with a fresh cross-compiler works.
4834 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4835 # <limits.h> exists even on freestanding compilers. 5050 # <limits.h> exists even on freestanding compilers.
4836 # On the NeXT, cc -E runs the code through the compiler's parser, 5051 # On the NeXT, cc -E runs the code through the compiler's parser,
4837 # not just through cpp. "Syntax error" is here to catch this case. 5052 # not just through cpp. "Syntax error" is here to catch this case.
4838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5053 cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h. */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */ 5058 /* end confdefs.h. */
4840 #ifdef __STDC__ 5059 #ifdef __STDC__
4841 # include <limits.h> 5060 # include <limits.h>
4842 #else 5061 #else
4843 # include <assert.h> 5062 # include <assert.h>
4844 #endif 5063 #endif
4845 Syntax error 5064 Syntax error
4846 _ACEOF 5065 _ACEOF
4847 if ac_fn_c_try_cpp "$LINENO"; then : 5066 if { (ac_try="$ac_cpp conftest.$ac_ext"
4848 5067 case "(($ac_try" in
4849 else 5068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5069 *) ac_try_echo=$ac_try;;
5070 esac
5071 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5072 $as_echo "$ac_try_echo") >&5
5073 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5074 ac_status=$?
5075 grep -v '^ *+' conftest.er1 >conftest.err
5076 rm -f conftest.er1
5077 cat conftest.err >&5
5078 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5079 (exit $ac_status); } >/dev/null && {
5080 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5081 test ! -s conftest.err
5082 }; then
5083 :
5084 else
5085 $as_echo "$as_me: failed program was:" >&5
5086 sed 's/^/| /' conftest.$ac_ext >&5
5087
4850 # Broken: fails on valid input. 5088 # Broken: fails on valid input.
4851 continue 5089 continue
4852 fi 5090 fi
5091
4853 rm -f conftest.err conftest.$ac_ext 5092 rm -f conftest.err conftest.$ac_ext
4854 5093
4855 # OK, works on sane cases. Now check whether nonexistent headers 5094 # OK, works on sane cases. Now check whether nonexistent headers
4856 # can be detected and how. 5095 # can be detected and how.
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5096 cat >conftest.$ac_ext <<_ACEOF
5097 /* confdefs.h. */
5098 _ACEOF
5099 cat confdefs.h >>conftest.$ac_ext
5100 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */ 5101 /* end confdefs.h. */
4859 #include <ac_nonexistent.h> 5102 #include <ac_nonexistent.h>
4860 _ACEOF 5103 _ACEOF
4861 if ac_fn_c_try_cpp "$LINENO"; then : 5104 if { (ac_try="$ac_cpp conftest.$ac_ext"
5105 case "(($ac_try" in
5106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5107 *) ac_try_echo=$ac_try;;
5108 esac
5109 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5110 $as_echo "$ac_try_echo") >&5
5111 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5112 ac_status=$?
5113 grep -v '^ *+' conftest.er1 >conftest.err
5114 rm -f conftest.er1
5115 cat conftest.err >&5
5116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5117 (exit $ac_status); } >/dev/null && {
5118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5119 test ! -s conftest.err
5120 }; then
4862 # Broken: success on invalid input. 5121 # Broken: success on invalid input.
4863 continue 5122 continue
4864 else 5123 else
5124 $as_echo "$as_me: failed program was:" >&5
5125 sed 's/^/| /' conftest.$ac_ext >&5
5126
4865 # Passes both tests. 5127 # Passes both tests.
4866 ac_preproc_ok=: 5128 ac_preproc_ok=:
4867 break 5129 break
4868 fi 5130 fi
5131
4869 rm -f conftest.err conftest.$ac_ext 5132 rm -f conftest.err conftest.$ac_ext
4870 5133
4871 done 5134 done
4872 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5135 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4873 rm -f conftest.err conftest.$ac_ext 5136 rm -f conftest.err conftest.$ac_ext
4874 if $ac_preproc_ok; then : 5137 if $ac_preproc_ok; then
4875 break 5138 break
4876 fi 5139 fi
4877 5140
4878 done 5141 done
4879 ac_cv_prog_CPP=$CPP 5142 ac_cv_prog_CPP=$CPP
4881 fi 5144 fi
4882 CPP=$ac_cv_prog_CPP 5145 CPP=$ac_cv_prog_CPP
4883 else 5146 else
4884 ac_cv_prog_CPP=$CPP 5147 ac_cv_prog_CPP=$CPP
4885 fi 5148 fi
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 5149 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4887 $as_echo "$CPP" >&6; } 5150 $as_echo "$CPP" >&6; }
4888 ac_preproc_ok=false 5151 ac_preproc_ok=false
4889 for ac_c_preproc_warn_flag in '' yes 5152 for ac_c_preproc_warn_flag in '' yes
4890 do 5153 do
4891 # Use a header file that comes with gcc, so configuring glibc 5154 # Use a header file that comes with gcc, so configuring glibc
4892 # with a fresh cross-compiler works. 5155 # with a fresh cross-compiler works.
4893 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5156 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4894 # <limits.h> exists even on freestanding compilers. 5157 # <limits.h> exists even on freestanding compilers.
4895 # On the NeXT, cc -E runs the code through the compiler's parser, 5158 # On the NeXT, cc -E runs the code through the compiler's parser,
4896 # not just through cpp. "Syntax error" is here to catch this case. 5159 # not just through cpp. "Syntax error" is here to catch this case.
4897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5160 cat >conftest.$ac_ext <<_ACEOF
5161 /* confdefs.h. */
5162 _ACEOF
5163 cat confdefs.h >>conftest.$ac_ext
5164 cat >>conftest.$ac_ext <<_ACEOF
4898 /* end confdefs.h. */ 5165 /* end confdefs.h. */
4899 #ifdef __STDC__ 5166 #ifdef __STDC__
4900 # include <limits.h> 5167 # include <limits.h>
4901 #else 5168 #else
4902 # include <assert.h> 5169 # include <assert.h>
4903 #endif 5170 #endif
4904 Syntax error 5171 Syntax error
4905 _ACEOF 5172 _ACEOF
4906 if ac_fn_c_try_cpp "$LINENO"; then : 5173 if { (ac_try="$ac_cpp conftest.$ac_ext"
4907 5174 case "(($ac_try" in
4908 else 5175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5176 *) ac_try_echo=$ac_try;;
5177 esac
5178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5179 $as_echo "$ac_try_echo") >&5
5180 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5181 ac_status=$?
5182 grep -v '^ *+' conftest.er1 >conftest.err
5183 rm -f conftest.er1
5184 cat conftest.err >&5
5185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5186 (exit $ac_status); } >/dev/null && {
5187 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5188 test ! -s conftest.err
5189 }; then
5190 :
5191 else
5192 $as_echo "$as_me: failed program was:" >&5
5193 sed 's/^/| /' conftest.$ac_ext >&5
5194
4909 # Broken: fails on valid input. 5195 # Broken: fails on valid input.
4910 continue 5196 continue
4911 fi 5197 fi
5198
4912 rm -f conftest.err conftest.$ac_ext 5199 rm -f conftest.err conftest.$ac_ext
4913 5200
4914 # OK, works on sane cases. Now check whether nonexistent headers 5201 # OK, works on sane cases. Now check whether nonexistent headers
4915 # can be detected and how. 5202 # can be detected and how.
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5203 cat >conftest.$ac_ext <<_ACEOF
5204 /* confdefs.h. */
5205 _ACEOF
5206 cat confdefs.h >>conftest.$ac_ext
5207 cat >>conftest.$ac_ext <<_ACEOF
4917 /* end confdefs.h. */ 5208 /* end confdefs.h. */
4918 #include <ac_nonexistent.h> 5209 #include <ac_nonexistent.h>
4919 _ACEOF 5210 _ACEOF
4920 if ac_fn_c_try_cpp "$LINENO"; then : 5211 if { (ac_try="$ac_cpp conftest.$ac_ext"
5212 case "(($ac_try" in
5213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5214 *) ac_try_echo=$ac_try;;
5215 esac
5216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5217 $as_echo "$ac_try_echo") >&5
5218 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5219 ac_status=$?
5220 grep -v '^ *+' conftest.er1 >conftest.err
5221 rm -f conftest.er1
5222 cat conftest.err >&5
5223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5224 (exit $ac_status); } >/dev/null && {
5225 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5226 test ! -s conftest.err
5227 }; then
4921 # Broken: success on invalid input. 5228 # Broken: success on invalid input.
4922 continue 5229 continue
4923 else 5230 else
5231 $as_echo "$as_me: failed program was:" >&5
5232 sed 's/^/| /' conftest.$ac_ext >&5
5233
4924 # Passes both tests. 5234 # Passes both tests.
4925 ac_preproc_ok=: 5235 ac_preproc_ok=:
4926 break 5236 break
4927 fi 5237 fi
5238
4928 rm -f conftest.err conftest.$ac_ext 5239 rm -f conftest.err conftest.$ac_ext
4929 5240
4930 done 5241 done
4931 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5242 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4932 rm -f conftest.err conftest.$ac_ext 5243 rm -f conftest.err conftest.$ac_ext
4933 if $ac_preproc_ok; then : 5244 if $ac_preproc_ok; then
4934 5245 :
4935 else 5246 else
4936 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5247 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4937 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5248 See \`config.log' for more details." >&5
4938 as_fn_error "C preprocessor \"$CPP\" fails sanity check 5249 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4939 See \`config.log' for more details." "$LINENO" 5; } 5250 See \`config.log' for more details." >&2;}
5251 { (exit 1); exit 1; }; }
4940 fi 5252 fi
4941 5253
4942 ac_ext=c 5254 ac_ext=c
4943 ac_cpp='$CPP $CPPFLAGS' 5255 ac_cpp='$CPP $CPPFLAGS'
4944 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4957 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 5269 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4958 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 5270 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4959 # OS/2's system install, which has a completely different semantic 5271 # OS/2's system install, which has a completely different semantic
4960 # ./install, which can be erroneously created by make from ./install.sh. 5272 # ./install, which can be erroneously created by make from ./install.sh.
4961 # Reject install programs that cannot install multiple files. 5273 # Reject install programs that cannot install multiple files.
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 5274 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4963 $as_echo_n "checking for a BSD-compatible install... " >&6; } 5275 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4964 if test -z "$INSTALL"; then 5276 if test -z "$INSTALL"; then
4965 if test "${ac_cv_path_install+set}" = set; then : 5277 if test "${ac_cv_path_install+set}" = set; then
4966 $as_echo_n "(cached) " >&6 5278 $as_echo_n "(cached) " >&6
4967 else 5279 else
4968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4969 for as_dir in $PATH 5281 for as_dir in $PATH
4970 do 5282 do
4971 IFS=$as_save_IFS 5283 IFS=$as_save_IFS
4972 test -z "$as_dir" && as_dir=. 5284 test -z "$as_dir" && as_dir=.
4973 # Account for people who put trailing slashes in PATH elements. 5285 # Account for people who put trailing slashes in PATH elements.
4974 case $as_dir/ in #(( 5286 case $as_dir/ in
4975 ./ | .// | /[cC]/* | \ 5287 ./ | .// | /cC/* | \
4976 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 5288 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4977 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 5289 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4978 /usr/ucb/* ) ;; 5290 /usr/ucb/* ) ;;
4979 *) 5291 *)
4980 # OSF1 and SCO ODT 3.0 have their own names for install. 5292 # OSF1 and SCO ODT 3.0 have their own names for install.
4981 # Don't use installbsd from OSF since it installs stuff as root 5293 # Don't use installbsd from OSF since it installs stuff as root
4982 # by default. 5294 # by default.
5009 done 5321 done
5010 done 5322 done
5011 ;; 5323 ;;
5012 esac 5324 esac
5013 5325
5014 done 5326 done
5015 IFS=$as_save_IFS 5327 IFS=$as_save_IFS
5016 5328
5017 rm -rf conftest.one conftest.two conftest.dir 5329 rm -rf conftest.one conftest.two conftest.dir
5018 5330
5019 fi 5331 fi
5025 # break other packages using the cache if that directory is 5337 # break other packages using the cache if that directory is
5026 # removed, or if the value is a relative name. 5338 # removed, or if the value is a relative name.
5027 INSTALL=$ac_install_sh 5339 INSTALL=$ac_install_sh
5028 fi 5340 fi
5029 fi 5341 fi
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 5342 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5031 $as_echo "$INSTALL" >&6; } 5343 $as_echo "$INSTALL" >&6; }
5032 5344
5033 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5345 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5034 # It thinks the first close brace ends the variable substitution. 5346 # It thinks the first close brace ends the variable substitution.
5035 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5347 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5040 5352
5041 if test "x$RANLIB" = x; then 5353 if test "x$RANLIB" = x; then
5042 if test -n "$ac_tool_prefix"; then 5354 if test -n "$ac_tool_prefix"; then
5043 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5355 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5044 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5356 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5046 $as_echo_n "checking for $ac_word... " >&6; } 5358 $as_echo_n "checking for $ac_word... " >&6; }
5047 if test "${ac_cv_prog_RANLIB+set}" = set; then : 5359 if test "${ac_cv_prog_RANLIB+set}" = set; then
5048 $as_echo_n "(cached) " >&6 5360 $as_echo_n "(cached) " >&6
5049 else 5361 else
5050 if test -n "$RANLIB"; then 5362 if test -n "$RANLIB"; then
5051 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5363 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5052 else 5364 else
5053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5054 for as_dir in $PATH 5366 for as_dir in $PATH
5055 do 5367 do
5056 IFS=$as_save_IFS 5368 IFS=$as_save_IFS
5057 test -z "$as_dir" && as_dir=. 5369 test -z "$as_dir" && as_dir=.
5058 for ac_exec_ext in '' $ac_executable_extensions; do 5370 for ac_exec_ext in '' $ac_executable_extensions; do
5059 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5060 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5372 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5062 break 2 5374 break 2
5063 fi 5375 fi
5064 done 5376 done
5065 done 5377 done
5066 IFS=$as_save_IFS 5378 IFS=$as_save_IFS
5067 5379
5068 fi 5380 fi
5069 fi 5381 fi
5070 RANLIB=$ac_cv_prog_RANLIB 5382 RANLIB=$ac_cv_prog_RANLIB
5071 if test -n "$RANLIB"; then 5383 if test -n "$RANLIB"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5384 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
5073 $as_echo "$RANLIB" >&6; } 5385 $as_echo "$RANLIB" >&6; }
5074 else 5386 else
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5387 { $as_echo "$as_me:$LINENO: result: no" >&5
5076 $as_echo "no" >&6; } 5388 $as_echo "no" >&6; }
5077 fi 5389 fi
5078 5390
5079 5391
5080 fi 5392 fi
5081 if test -z "$ac_cv_prog_RANLIB"; then 5393 if test -z "$ac_cv_prog_RANLIB"; then
5082 ac_ct_RANLIB=$RANLIB 5394 ac_ct_RANLIB=$RANLIB
5083 # Extract the first word of "ranlib", so it can be a program name with args. 5395 # Extract the first word of "ranlib", so it can be a program name with args.
5084 set dummy ranlib; ac_word=$2 5396 set dummy ranlib; ac_word=$2
5085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5397 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5086 $as_echo_n "checking for $ac_word... " >&6; } 5398 $as_echo_n "checking for $ac_word... " >&6; }
5087 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5399 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5088 $as_echo_n "(cached) " >&6 5400 $as_echo_n "(cached) " >&6
5089 else 5401 else
5090 if test -n "$ac_ct_RANLIB"; then 5402 if test -n "$ac_ct_RANLIB"; then
5091 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5403 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5092 else 5404 else
5093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 for as_dir in $PATH 5406 for as_dir in $PATH
5095 do 5407 do
5096 IFS=$as_save_IFS 5408 IFS=$as_save_IFS
5097 test -z "$as_dir" && as_dir=. 5409 test -z "$as_dir" && as_dir=.
5098 for ac_exec_ext in '' $ac_executable_extensions; do 5410 for ac_exec_ext in '' $ac_executable_extensions; do
5099 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5411 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5100 ac_cv_prog_ac_ct_RANLIB="ranlib" 5412 ac_cv_prog_ac_ct_RANLIB="ranlib"
5101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5413 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5102 break 2 5414 break 2
5103 fi 5415 fi
5104 done 5416 done
5105 done 5417 done
5106 IFS=$as_save_IFS 5418 IFS=$as_save_IFS
5107 5419
5108 fi 5420 fi
5109 fi 5421 fi
5110 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5422 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5111 if test -n "$ac_ct_RANLIB"; then 5423 if test -n "$ac_ct_RANLIB"; then
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5424 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5113 $as_echo "$ac_ct_RANLIB" >&6; } 5425 $as_echo "$ac_ct_RANLIB" >&6; }
5114 else 5426 else
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5427 { $as_echo "$as_me:$LINENO: result: no" >&5
5116 $as_echo "no" >&6; } 5428 $as_echo "no" >&6; }
5117 fi 5429 fi
5118 5430
5119 if test "x$ac_ct_RANLIB" = x; then 5431 if test "x$ac_ct_RANLIB" = x; then
5120 RANLIB=":" 5432 RANLIB=":"
5121 else 5433 else
5122 case $cross_compiling:$ac_tool_warned in 5434 case $cross_compiling:$ac_tool_warned in
5123 yes:) 5435 yes:)
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5436 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5437 whose name does not start with the host triplet. If you think this
5438 configuration is useful to you, please write to autoconf@gnu.org." >&5
5439 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5440 whose name does not start with the host triplet. If you think this
5441 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5126 ac_tool_warned=yes ;; 5442 ac_tool_warned=yes ;;
5127 esac 5443 esac
5128 RANLIB=$ac_ct_RANLIB 5444 RANLIB=$ac_ct_RANLIB
5129 fi 5445 fi
5130 else 5446 else
5136 ## Although we're running on an amd64 kernel, we're actually compiling for 5452 ## Although we're running on an amd64 kernel, we're actually compiling for
5137 ## the x86 architecture. The user should probably have provided an 5453 ## the x86 architecture. The user should probably have provided an
5138 ## explicit --build to `configure', but if everything else than the kernel 5454 ## explicit --build to `configure', but if everything else than the kernel
5139 ## is running in i386 mode, we can help them out. 5455 ## is running in i386 mode, we can help them out.
5140 if test "$machine" = "amdx86-64"; then 5456 if test "$machine" = "amdx86-64"; then
5141 ac_fn_c_check_decl "$LINENO" "i386" "ac_cv_have_decl_i386" "$ac_includes_default" 5457 { $as_echo "$as_me:$LINENO: checking whether i386 is declared" >&5
5142 if test "x$ac_cv_have_decl_i386" = x""yes; then : 5458 $as_echo_n "checking whether i386 is declared... " >&6; }
5143 5459 if test "${ac_cv_have_decl_i386+set}" = set; then
5144 fi 5460 $as_echo_n "(cached) " >&6
5461 else
5462 cat >conftest.$ac_ext <<_ACEOF
5463 /* confdefs.h. */
5464 _ACEOF
5465 cat confdefs.h >>conftest.$ac_ext
5466 cat >>conftest.$ac_ext <<_ACEOF
5467 /* end confdefs.h. */
5468 $ac_includes_default
5469 int
5470 main ()
5471 {
5472 #ifndef i386
5473 (void) i386;
5474 #endif
5475
5476 ;
5477 return 0;
5478 }
5479 _ACEOF
5480 rm -f conftest.$ac_objext
5481 if { (ac_try="$ac_compile"
5482 case "(($ac_try" in
5483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5484 *) ac_try_echo=$ac_try;;
5485 esac
5486 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5487 $as_echo "$ac_try_echo") >&5
5488 (eval "$ac_compile") 2>conftest.er1
5489 ac_status=$?
5490 grep -v '^ *+' conftest.er1 >conftest.err
5491 rm -f conftest.er1
5492 cat conftest.err >&5
5493 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5494 (exit $ac_status); } && {
5495 test -z "$ac_c_werror_flag" ||
5496 test ! -s conftest.err
5497 } && test -s conftest.$ac_objext; then
5498 ac_cv_have_decl_i386=yes
5499 else
5500 $as_echo "$as_me: failed program was:" >&5
5501 sed 's/^/| /' conftest.$ac_ext >&5
5502
5503 ac_cv_have_decl_i386=no
5504 fi
5505
5506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5507 fi
5508 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_i386" >&5
5509 $as_echo "$ac_cv_have_decl_i386" >&6; }
5145 5510
5146 if test "$ac_cv_have_decl_i386" = "yes"; then 5511 if test "$ac_cv_have_decl_i386" = "yes"; then
5147 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'` 5512 canonical=`echo "$canonical" | sed -e 's/^amd64/i386/' -e 's/^x86_64/i386/'`
5148 machine=intel386 5513 machine=intel386
5149 machfile="m/${machine}.h" 5514 machfile="m/${machine}.h"
5150 fi 5515 fi
5151 fi 5516 fi
5152 5517
5153 # Extract the first word of "install-info", so it can be a program name with args. 5518 # Extract the first word of "install-info", so it can be a program name with args.
5154 set dummy install-info; ac_word=$2 5519 set dummy install-info; ac_word=$2
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5520 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 $as_echo_n "checking for $ac_word... " >&6; } 5521 $as_echo_n "checking for $ac_word... " >&6; }
5157 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5522 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5158 $as_echo_n "(cached) " >&6 5523 $as_echo_n "(cached) " >&6
5159 else 5524 else
5160 case $INSTALL_INFO in 5525 case $INSTALL_INFO in
5161 [\\/]* | ?:[\\/]*) 5526 [\\/]* | ?:[\\/]*)
5162 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 5527 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5166 for as_dir in $PATH 5531 for as_dir in $PATH
5167 do 5532 do
5168 IFS=$as_save_IFS 5533 IFS=$as_save_IFS
5169 test -z "$as_dir" && as_dir=. 5534 test -z "$as_dir" && as_dir=.
5170 for ac_exec_ext in '' $ac_executable_extensions; do 5535 for ac_exec_ext in '' $ac_executable_extensions; do
5171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5172 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5537 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5538 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5174 break 2 5539 break 2
5175 fi 5540 fi
5176 done 5541 done
5177 done 5542 done
5178 IFS=$as_save_IFS 5543 IFS=$as_save_IFS
5179 5544
5180 ;; 5545 ;;
5181 esac 5546 esac
5182 fi 5547 fi
5183 INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5548 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5184 if test -n "$INSTALL_INFO"; then 5549 if test -n "$INSTALL_INFO"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5550 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5186 $as_echo "$INSTALL_INFO" >&6; } 5551 $as_echo "$INSTALL_INFO" >&6; }
5187 else 5552 else
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5553 { $as_echo "$as_me:$LINENO: result: no" >&5
5189 $as_echo "no" >&6; } 5554 $as_echo "no" >&6; }
5190 fi 5555 fi
5191 5556
5192 5557
5193 # Extract the first word of "install-info", so it can be a program name with args. 5558 # Extract the first word of "install-info", so it can be a program name with args.
5194 set dummy install-info; ac_word=$2 5559 set dummy install-info; ac_word=$2
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5560 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5196 $as_echo_n "checking for $ac_word... " >&6; } 5561 $as_echo_n "checking for $ac_word... " >&6; }
5197 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5562 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5198 $as_echo_n "(cached) " >&6 5563 $as_echo_n "(cached) " >&6
5199 else 5564 else
5200 case $INSTALL_INFO in 5565 case $INSTALL_INFO in
5201 [\\/]* | ?:[\\/]*) 5566 [\\/]* | ?:[\\/]*)
5202 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 5567 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5206 for as_dir in /usr/sbin 5571 for as_dir in /usr/sbin
5207 do 5572 do
5208 IFS=$as_save_IFS 5573 IFS=$as_save_IFS
5209 test -z "$as_dir" && as_dir=. 5574 test -z "$as_dir" && as_dir=.
5210 for ac_exec_ext in '' $ac_executable_extensions; do 5575 for ac_exec_ext in '' $ac_executable_extensions; do
5211 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5212 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5577 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5578 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5214 break 2 5579 break 2
5215 fi 5580 fi
5216 done 5581 done
5217 done 5582 done
5218 IFS=$as_save_IFS 5583 IFS=$as_save_IFS
5219 5584
5220 ;; 5585 ;;
5221 esac 5586 esac
5222 fi 5587 fi
5223 INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5588 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5224 if test -n "$INSTALL_INFO"; then 5589 if test -n "$INSTALL_INFO"; then
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5590 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5226 $as_echo "$INSTALL_INFO" >&6; } 5591 $as_echo "$INSTALL_INFO" >&6; }
5227 else 5592 else
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5593 { $as_echo "$as_me:$LINENO: result: no" >&5
5229 $as_echo "no" >&6; } 5594 $as_echo "no" >&6; }
5230 fi 5595 fi
5231 5596
5232 5597
5233 # Extract the first word of "install-info", so it can be a program name with args. 5598 # Extract the first word of "install-info", so it can be a program name with args.
5234 set dummy install-info; ac_word=$2 5599 set dummy install-info; ac_word=$2
5235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5600 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5236 $as_echo_n "checking for $ac_word... " >&6; } 5601 $as_echo_n "checking for $ac_word... " >&6; }
5237 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then : 5602 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5238 $as_echo_n "(cached) " >&6 5603 $as_echo_n "(cached) " >&6
5239 else 5604 else
5240 case $INSTALL_INFO in 5605 case $INSTALL_INFO in
5241 [\\/]* | ?:[\\/]*) 5606 [\\/]* | ?:[\\/]*)
5242 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 5607 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5246 for as_dir in /sbin 5611 for as_dir in /sbin
5247 do 5612 do
5248 IFS=$as_save_IFS 5613 IFS=$as_save_IFS
5249 test -z "$as_dir" && as_dir=. 5614 test -z "$as_dir" && as_dir=.
5250 for ac_exec_ext in '' $ac_executable_extensions; do 5615 for ac_exec_ext in '' $ac_executable_extensions; do
5251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5252 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5617 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5618 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5254 break 2 5619 break 2
5255 fi 5620 fi
5256 done 5621 done
5257 done 5622 done
5258 IFS=$as_save_IFS 5623 IFS=$as_save_IFS
5259 5624
5260 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" 5625 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5261 ;; 5626 ;;
5262 esac 5627 esac
5263 fi 5628 fi
5264 INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5629 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5265 if test -n "$INSTALL_INFO"; then 5630 if test -n "$INSTALL_INFO"; then
5266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5 5631 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5267 $as_echo "$INSTALL_INFO" >&6; } 5632 $as_echo "$INSTALL_INFO" >&6; }
5268 else 5633 else
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5634 { $as_echo "$as_me:$LINENO: result: no" >&5
5270 $as_echo "no" >&6; } 5635 $as_echo "no" >&6; }
5271 fi 5636 fi
5272 5637
5273 5638
5274 # Extract the first word of "gzip", so it can be a program name with args. 5639 # Extract the first word of "gzip", so it can be a program name with args.
5275 set dummy gzip; ac_word=$2 5640 set dummy gzip; ac_word=$2
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 $as_echo_n "checking for $ac_word... " >&6; } 5642 $as_echo_n "checking for $ac_word... " >&6; }
5278 if test "${ac_cv_path_GZIP_PROG+set}" = set; then : 5643 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5279 $as_echo_n "(cached) " >&6 5644 $as_echo_n "(cached) " >&6
5280 else 5645 else
5281 case $GZIP_PROG in 5646 case $GZIP_PROG in
5282 [\\/]* | ?:[\\/]*) 5647 [\\/]* | ?:[\\/]*)
5283 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. 5648 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in $PATH 5652 for as_dir in $PATH
5288 do 5653 do
5289 IFS=$as_save_IFS 5654 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=. 5655 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do 5656 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5293 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" 5658 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5659 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2 5660 break 2
5296 fi 5661 fi
5297 done 5662 done
5298 done 5663 done
5299 IFS=$as_save_IFS 5664 IFS=$as_save_IFS
5300 5665
5301 ;; 5666 ;;
5302 esac 5667 esac
5303 fi 5668 fi
5304 GZIP_PROG=$ac_cv_path_GZIP_PROG 5669 GZIP_PROG=$ac_cv_path_GZIP_PROG
5305 if test -n "$GZIP_PROG"; then 5670 if test -n "$GZIP_PROG"; then
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5 5671 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5307 $as_echo "$GZIP_PROG" >&6; } 5672 $as_echo "$GZIP_PROG" >&6; }
5308 else 5673 else
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5674 { $as_echo "$as_me:$LINENO: result: no" >&5
5310 $as_echo "no" >&6; } 5675 $as_echo "no" >&6; }
5311 fi 5676 fi
5312 5677
5313 5678
5314 5679
5315 5680
5316 ## Need makeinfo >= 4.6 (?) to build the manuals. 5681 ## Need makeinfo >= 4.6 (?) to build the manuals.
5317 # Extract the first word of "makeinfo", so it can be a program name with args. 5682 # Extract the first word of "makeinfo", so it can be a program name with args.
5318 set dummy makeinfo; ac_word=$2 5683 set dummy makeinfo; ac_word=$2
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5320 $as_echo_n "checking for $ac_word... " >&6; } 5685 $as_echo_n "checking for $ac_word... " >&6; }
5321 if test "${ac_cv_path_MAKEINFO+set}" = set; then : 5686 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5322 $as_echo_n "(cached) " >&6 5687 $as_echo_n "(cached) " >&6
5323 else 5688 else
5324 case $MAKEINFO in 5689 case $MAKEINFO in
5325 [\\/]* | ?:[\\/]*) 5690 [\\/]* | ?:[\\/]*)
5326 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. 5691 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5330 for as_dir in $PATH 5695 for as_dir in $PATH
5331 do 5696 do
5332 IFS=$as_save_IFS 5697 IFS=$as_save_IFS
5333 test -z "$as_dir" && as_dir=. 5698 test -z "$as_dir" && as_dir=.
5334 for ac_exec_ext in '' $ac_executable_extensions; do 5699 for ac_exec_ext in '' $ac_executable_extensions; do
5335 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5336 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" 5701 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5702 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5338 break 2 5703 break 2
5339 fi 5704 fi
5340 done 5705 done
5341 done 5706 done
5342 IFS=$as_save_IFS 5707 IFS=$as_save_IFS
5343 5708
5344 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" 5709 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5345 ;; 5710 ;;
5346 esac 5711 esac
5347 fi 5712 fi
5348 MAKEINFO=$ac_cv_path_MAKEINFO 5713 MAKEINFO=$ac_cv_path_MAKEINFO
5349 if test -n "$MAKEINFO"; then 5714 if test -n "$MAKEINFO"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5 5715 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5351 $as_echo "$MAKEINFO" >&6; } 5716 $as_echo "$MAKEINFO" >&6; }
5352 else 5717 else
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5718 { $as_echo "$as_me:$LINENO: result: no" >&5
5354 $as_echo "no" >&6; } 5719 $as_echo "no" >&6; }
5355 fi 5720 fi
5356 5721
5357 5722
5358 if test "$MAKEINFO" != "no" && \ 5723 if test "$MAKEINFO" != "no" && \
5371 ## with pre-built manuals, from a Bazaar checkout. 5736 ## with pre-built manuals, from a Bazaar checkout.
5372 if test "$MAKEINFO" = "no"; then 5737 if test "$MAKEINFO" = "no"; then
5373 if test "x${with_makeinfo}" = "xno"; then 5738 if test "x${with_makeinfo}" = "xno"; then
5374 MAKEINFO=off 5739 MAKEINFO=off
5375 elif test ! -e $srcdir/info/emacs; then 5740 elif test ! -e $srcdir/info/emacs; then
5376 as_fn_error "You do not seem to have makeinfo >= 4.6, and your 5741 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5377 source tree does not seem to have pre-built manuals in the \`info' directory. 5742 source tree does not seem to have pre-built manuals in the \`info' directory.
5378 Either install a suitable version of makeinfo, or re-run configure 5743 Either install a suitable version of makeinfo, or re-run configure
5379 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5 5744 with the \`--without-makeinfo' option to build without the manuals. " >&5
5745 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5746 source tree does not seem to have pre-built manuals in the \`info' directory.
5747 Either install a suitable version of makeinfo, or re-run configure
5748 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5749 { (exit 1); exit 1; }; }
5380 fi 5750 fi
5381 fi 5751 fi
5382 5752
5383 5753
5384 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x 5754 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5397 LDFLAGS="$LDFLAGS -Wl,-znocombreloc" 5767 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5398 else 5768 else
5399 LDFLAGS="$LDFLAGS -znocombreloc" 5769 LDFLAGS="$LDFLAGS -znocombreloc"
5400 fi 5770 fi
5401 5771
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5 5772 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5403 $as_echo_n "checking for -znocombreloc... " >&6; } 5773 $as_echo_n "checking for -znocombreloc... " >&6; }
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5774 cat >conftest.$ac_ext <<_ACEOF
5405 /* end confdefs.h. */
5406 main(){return 0;} 5775 main(){return 0;}
5407 _ACEOF 5776 _ACEOF
5408 if ac_fn_c_try_link "$LINENO"; then : 5777 rm -f conftest.$ac_objext conftest$ac_exeext
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5778 if { (ac_try="$ac_link"
5779 case "(($ac_try" in
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5782 esac
5783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5784 $as_echo "$ac_try_echo") >&5
5785 (eval "$ac_link") 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } && {
5792 test -z "$ac_c_werror_flag" ||
5793 test ! -s conftest.err
5794 } && test -s conftest$ac_exeext && {
5795 test "$cross_compiling" = yes ||
5796 $as_test_x conftest$ac_exeext
5797 }; then
5798 { $as_echo "$as_me:$LINENO: result: yes" >&5
5410 $as_echo "yes" >&6; } 5799 $as_echo "yes" >&6; }
5411 else 5800 else
5412 LDFLAGS=$late_LDFLAGS 5801 $as_echo "$as_me: failed program was:" >&5
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5802 sed 's/^/| /' conftest.$ac_ext >&5
5803
5804 LDFLAGS=$late_LDFLAGS
5805 { $as_echo "$as_me:$LINENO: result: no" >&5
5414 $as_echo "no" >&6; } 5806 $as_echo "no" >&6; }
5415 fi 5807 fi
5416 rm -f core conftest.err conftest.$ac_objext \ 5808
5417 conftest$ac_exeext conftest.$ac_ext 5809 rm -rf conftest.dSYM
5810 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5811 conftest$ac_exeext conftest.$ac_ext
5418 5812
5419 #### Extract some information from the operating system and machine files. 5813 #### Extract some information from the operating system and machine files.
5420 5814
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out 5815 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5422 - which libraries the lib-src programs will want, and 5816 - which libraries the lib-src programs will want, and
5423 - whether the GNU malloc routines are usable..." >&5 5817 - whether the GNU malloc routines are usable..." >&5
5424 $as_echo "$as_me: checking the machine- and system-dependent files to find out 5818 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5425 - which libraries the lib-src programs will want, and 5819 - which libraries the lib-src programs will want, and
5426 - whether the GNU malloc routines are usable..." >&6;} 5820 - whether the GNU malloc routines are usable..." >&6;}
5557 esac 5951 esac
5558 5952
5559 5953
5560 C_SWITCH_MACHINE= 5954 C_SWITCH_MACHINE=
5561 if test "$machine" = "alpha"; then 5955 if test "$machine" = "alpha"; then
5562 ac_fn_c_check_decl "$LINENO" "__ELF__" "ac_cv_have_decl___ELF__" "$ac_includes_default" 5956 { $as_echo "$as_me:$LINENO: checking whether __ELF__ is declared" >&5
5563 if test "x$ac_cv_have_decl___ELF__" = x""yes; then : 5957 $as_echo_n "checking whether __ELF__ is declared... " >&6; }
5564 5958 if test "${ac_cv_have_decl___ELF__+set}" = set; then
5565 fi 5959 $as_echo_n "(cached) " >&6
5960 else
5961 cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h. */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5968 int
5969 main ()
5970 {
5971 #ifndef __ELF__
5972 (void) __ELF__;
5973 #endif
5974
5975 ;
5976 return 0;
5977 }
5978 _ACEOF
5979 rm -f conftest.$ac_objext
5980 if { (ac_try="$ac_compile"
5981 case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984 esac
5985 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5986 $as_echo "$ac_try_echo") >&5
5987 (eval "$ac_compile") 2>conftest.er1
5988 ac_status=$?
5989 grep -v '^ *+' conftest.er1 >conftest.err
5990 rm -f conftest.er1
5991 cat conftest.err >&5
5992 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993 (exit $ac_status); } && {
5994 test -z "$ac_c_werror_flag" ||
5995 test ! -s conftest.err
5996 } && test -s conftest.$ac_objext; then
5997 ac_cv_have_decl___ELF__=yes
5998 else
5999 $as_echo "$as_me: failed program was:" >&5
6000 sed 's/^/| /' conftest.$ac_ext >&5
6001
6002 ac_cv_have_decl___ELF__=no
6003 fi
6004
6005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6006 fi
6007 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___ELF__" >&5
6008 $as_echo "$ac_cv_have_decl___ELF__" >&6; }
5566 6009
5567 if test "$ac_cv_have_decl___ELF__" = "yes"; then 6010 if test "$ac_cv_have_decl___ELF__" = "yes"; then
5568 ## With ELF, make sure that all common symbols get allocated to in the 6011 ## With ELF, make sure that all common symbols get allocated to in the
5569 ## data section. Otherwise, the dump of temacs may miss variables in 6012 ## data section. Otherwise, the dump of temacs may miss variables in
5570 ## the shared library that have been initialized. For example, with 6013 ## the shared library that have been initialized. For example, with
5571 ## GNU libc, __malloc_initialized would normally be resolved to the 6014 ## GNU libc, __malloc_initialized would normally be resolved to the
5572 ## shared library's .bss section, which is fatal. 6015 ## shared library's .bss section, which is fatal.
5573 if test "x$GCC" = "xyes"; then 6016 if test "x$GCC" = "xyes"; then
5574 C_SWITCH_MACHINE="-fno-common" 6017 C_SWITCH_MACHINE="-fno-common"
5575 else 6018 else
5576 as_fn_error "What gives? Fix me if DEC Unix supports ELF now." "$LINENO" 5 6019 { { $as_echo "$as_me:$LINENO: error: What gives? Fix me if DEC Unix supports ELF now." >&5
6020 $as_echo "$as_me: error: What gives? Fix me if DEC Unix supports ELF now." >&2;}
6021 { (exit 1); exit 1; }; }
5577 fi 6022 fi
5578 fi 6023 fi
5579 fi 6024 fi
5580 6025
5581 6026
5600 fi 6045 fi
5601 6046
5602 6047
5603 6048
5604 # Check whether --enable-largefile was given. 6049 # Check whether --enable-largefile was given.
5605 if test "${enable_largefile+set}" = set; then : 6050 if test "${enable_largefile+set}" = set; then
5606 enableval=$enable_largefile; 6051 enableval=$enable_largefile;
5607 fi 6052 fi
5608 6053
5609 if test "$enable_largefile" != no; then 6054 if test "$enable_largefile" != no; then
5610 6055
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 6056 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5612 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 6057 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5613 if test "${ac_cv_sys_largefile_CC+set}" = set; then : 6058 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5614 $as_echo_n "(cached) " >&6 6059 $as_echo_n "(cached) " >&6
5615 else 6060 else
5616 ac_cv_sys_largefile_CC=no 6061 ac_cv_sys_largefile_CC=no
5617 if test "$GCC" != yes; then 6062 if test "$GCC" != yes; then
5618 ac_save_CC=$CC 6063 ac_save_CC=$CC
5619 while :; do 6064 while :; do
5620 # IRIX 6.2 and later do not support large files by default, 6065 # IRIX 6.2 and later do not support large files by default,
5621 # so use the C compiler's -n32 option if that helps. 6066 # so use the C compiler's -n32 option if that helps.
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6067 cat >conftest.$ac_ext <<_ACEOF
6068 /* confdefs.h. */
6069 _ACEOF
6070 cat confdefs.h >>conftest.$ac_ext
6071 cat >>conftest.$ac_ext <<_ACEOF
5623 /* end confdefs.h. */ 6072 /* end confdefs.h. */
5624 #include <sys/types.h> 6073 #include <sys/types.h>
5625 /* Check that off_t can represent 2**63 - 1 correctly. 6074 /* Check that off_t can represent 2**63 - 1 correctly.
5626 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6075 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5627 since some C++ compilers masquerading as C compilers 6076 since some C++ compilers masquerading as C compilers
5636 6085
5637 ; 6086 ;
5638 return 0; 6087 return 0;
5639 } 6088 }
5640 _ACEOF 6089 _ACEOF
5641 if ac_fn_c_try_compile "$LINENO"; then : 6090 rm -f conftest.$ac_objext
6091 if { (ac_try="$ac_compile"
6092 case "(($ac_try" in
6093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6094 *) ac_try_echo=$ac_try;;
6095 esac
6096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6097 $as_echo "$ac_try_echo") >&5
6098 (eval "$ac_compile") 2>conftest.er1
6099 ac_status=$?
6100 grep -v '^ *+' conftest.er1 >conftest.err
6101 rm -f conftest.er1
6102 cat conftest.err >&5
6103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); } && {
6105 test -z "$ac_c_werror_flag" ||
6106 test ! -s conftest.err
6107 } && test -s conftest.$ac_objext; then
5642 break 6108 break
5643 fi 6109 else
6110 $as_echo "$as_me: failed program was:" >&5
6111 sed 's/^/| /' conftest.$ac_ext >&5
6112
6113
6114 fi
6115
5644 rm -f core conftest.err conftest.$ac_objext 6116 rm -f core conftest.err conftest.$ac_objext
5645 CC="$CC -n32" 6117 CC="$CC -n32"
5646 if ac_fn_c_try_compile "$LINENO"; then : 6118 rm -f conftest.$ac_objext
6119 if { (ac_try="$ac_compile"
6120 case "(($ac_try" in
6121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6122 *) ac_try_echo=$ac_try;;
6123 esac
6124 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6125 $as_echo "$ac_try_echo") >&5
6126 (eval "$ac_compile") 2>conftest.er1
6127 ac_status=$?
6128 grep -v '^ *+' conftest.er1 >conftest.err
6129 rm -f conftest.er1
6130 cat conftest.err >&5
6131 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6132 (exit $ac_status); } && {
6133 test -z "$ac_c_werror_flag" ||
6134 test ! -s conftest.err
6135 } && test -s conftest.$ac_objext; then
5647 ac_cv_sys_largefile_CC=' -n32'; break 6136 ac_cv_sys_largefile_CC=' -n32'; break
5648 fi 6137 else
6138 $as_echo "$as_me: failed program was:" >&5
6139 sed 's/^/| /' conftest.$ac_ext >&5
6140
6141
6142 fi
6143
5649 rm -f core conftest.err conftest.$ac_objext 6144 rm -f core conftest.err conftest.$ac_objext
5650 break 6145 break
5651 done 6146 done
5652 CC=$ac_save_CC 6147 CC=$ac_save_CC
5653 rm -f conftest.$ac_ext 6148 rm -f conftest.$ac_ext
5654 fi 6149 fi
5655 fi 6150 fi
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 6151 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5657 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 6152 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
5658 if test "$ac_cv_sys_largefile_CC" != no; then 6153 if test "$ac_cv_sys_largefile_CC" != no; then
5659 CC=$CC$ac_cv_sys_largefile_CC 6154 CC=$CC$ac_cv_sys_largefile_CC
5660 fi 6155 fi
5661 6156
5662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 6157 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5663 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 6158 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
5664 if test "${ac_cv_sys_file_offset_bits+set}" = set; then : 6159 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5665 $as_echo_n "(cached) " >&6 6160 $as_echo_n "(cached) " >&6
5666 else 6161 else
5667 while :; do 6162 while :; do
5668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6163 cat >conftest.$ac_ext <<_ACEOF
6164 /* confdefs.h. */
6165 _ACEOF
6166 cat confdefs.h >>conftest.$ac_ext
6167 cat >>conftest.$ac_ext <<_ACEOF
5669 /* end confdefs.h. */ 6168 /* end confdefs.h. */
5670 #include <sys/types.h> 6169 #include <sys/types.h>
5671 /* Check that off_t can represent 2**63 - 1 correctly. 6170 /* Check that off_t can represent 2**63 - 1 correctly.
5672 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6171 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5673 since some C++ compilers masquerading as C compilers 6172 since some C++ compilers masquerading as C compilers
5682 6181
5683 ; 6182 ;
5684 return 0; 6183 return 0;
5685 } 6184 }
5686 _ACEOF 6185 _ACEOF
5687 if ac_fn_c_try_compile "$LINENO"; then : 6186 rm -f conftest.$ac_objext
6187 if { (ac_try="$ac_compile"
6188 case "(($ac_try" in
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6191 esac
6192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6193 $as_echo "$ac_try_echo") >&5
6194 (eval "$ac_compile") 2>conftest.er1
6195 ac_status=$?
6196 grep -v '^ *+' conftest.er1 >conftest.err
6197 rm -f conftest.er1
6198 cat conftest.err >&5
6199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } && {
6201 test -z "$ac_c_werror_flag" ||
6202 test ! -s conftest.err
6203 } && test -s conftest.$ac_objext; then
5688 ac_cv_sys_file_offset_bits=no; break 6204 ac_cv_sys_file_offset_bits=no; break
5689 fi 6205 else
6206 $as_echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209
6210 fi
6211
5690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6213 cat >conftest.$ac_ext <<_ACEOF
6214 /* confdefs.h. */
6215 _ACEOF
6216 cat confdefs.h >>conftest.$ac_ext
6217 cat >>conftest.$ac_ext <<_ACEOF
5692 /* end confdefs.h. */ 6218 /* end confdefs.h. */
5693 #define _FILE_OFFSET_BITS 64 6219 #define _FILE_OFFSET_BITS 64
5694 #include <sys/types.h> 6220 #include <sys/types.h>
5695 /* Check that off_t can represent 2**63 - 1 correctly. 6221 /* Check that off_t can represent 2**63 - 1 correctly.
5696 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6222 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5706 6232
5707 ; 6233 ;
5708 return 0; 6234 return 0;
5709 } 6235 }
5710 _ACEOF 6236 _ACEOF
5711 if ac_fn_c_try_compile "$LINENO"; then : 6237 rm -f conftest.$ac_objext
6238 if { (ac_try="$ac_compile"
6239 case "(($ac_try" in
6240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6241 *) ac_try_echo=$ac_try;;
6242 esac
6243 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6244 $as_echo "$ac_try_echo") >&5
6245 (eval "$ac_compile") 2>conftest.er1
6246 ac_status=$?
6247 grep -v '^ *+' conftest.er1 >conftest.err
6248 rm -f conftest.er1
6249 cat conftest.err >&5
6250 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6251 (exit $ac_status); } && {
6252 test -z "$ac_c_werror_flag" ||
6253 test ! -s conftest.err
6254 } && test -s conftest.$ac_objext; then
5712 ac_cv_sys_file_offset_bits=64; break 6255 ac_cv_sys_file_offset_bits=64; break
5713 fi 6256 else
6257 $as_echo "$as_me: failed program was:" >&5
6258 sed 's/^/| /' conftest.$ac_ext >&5
6259
6260
6261 fi
6262
5714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5715 ac_cv_sys_file_offset_bits=unknown 6264 ac_cv_sys_file_offset_bits=unknown
5716 break 6265 break
5717 done 6266 done
5718 fi 6267 fi
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 6268 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5720 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 6269 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
5721 case $ac_cv_sys_file_offset_bits in #( 6270 case $ac_cv_sys_file_offset_bits in #(
5722 no | unknown) ;; 6271 no | unknown) ;;
5723 *) 6272 *)
5724 cat >>confdefs.h <<_ACEOF 6273 cat >>confdefs.h <<_ACEOF
5726 _ACEOF 6275 _ACEOF
5727 ;; 6276 ;;
5728 esac 6277 esac
5729 rm -rf conftest* 6278 rm -rf conftest*
5730 if test $ac_cv_sys_file_offset_bits = unknown; then 6279 if test $ac_cv_sys_file_offset_bits = unknown; then
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 6280 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5732 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 6281 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
5733 if test "${ac_cv_sys_large_files+set}" = set; then : 6282 if test "${ac_cv_sys_large_files+set}" = set; then
5734 $as_echo_n "(cached) " >&6 6283 $as_echo_n "(cached) " >&6
5735 else 6284 else
5736 while :; do 6285 while :; do
5737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6286 cat >conftest.$ac_ext <<_ACEOF
6287 /* confdefs.h. */
6288 _ACEOF
6289 cat confdefs.h >>conftest.$ac_ext
6290 cat >>conftest.$ac_ext <<_ACEOF
5738 /* end confdefs.h. */ 6291 /* end confdefs.h. */
5739 #include <sys/types.h> 6292 #include <sys/types.h>
5740 /* Check that off_t can represent 2**63 - 1 correctly. 6293 /* Check that off_t can represent 2**63 - 1 correctly.
5741 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6294 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5742 since some C++ compilers masquerading as C compilers 6295 since some C++ compilers masquerading as C compilers
5751 6304
5752 ; 6305 ;
5753 return 0; 6306 return 0;
5754 } 6307 }
5755 _ACEOF 6308 _ACEOF
5756 if ac_fn_c_try_compile "$LINENO"; then : 6309 rm -f conftest.$ac_objext
6310 if { (ac_try="$ac_compile"
6311 case "(($ac_try" in
6312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6313 *) ac_try_echo=$ac_try;;
6314 esac
6315 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6316 $as_echo "$ac_try_echo") >&5
6317 (eval "$ac_compile") 2>conftest.er1
6318 ac_status=$?
6319 grep -v '^ *+' conftest.er1 >conftest.err
6320 rm -f conftest.er1
6321 cat conftest.err >&5
6322 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6323 (exit $ac_status); } && {
6324 test -z "$ac_c_werror_flag" ||
6325 test ! -s conftest.err
6326 } && test -s conftest.$ac_objext; then
5757 ac_cv_sys_large_files=no; break 6327 ac_cv_sys_large_files=no; break
5758 fi 6328 else
6329 $as_echo "$as_me: failed program was:" >&5
6330 sed 's/^/| /' conftest.$ac_ext >&5
6331
6332
6333 fi
6334
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6336 cat >conftest.$ac_ext <<_ACEOF
6337 /* confdefs.h. */
6338 _ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
5761 /* end confdefs.h. */ 6341 /* end confdefs.h. */
5762 #define _LARGE_FILES 1 6342 #define _LARGE_FILES 1
5763 #include <sys/types.h> 6343 #include <sys/types.h>
5764 /* Check that off_t can represent 2**63 - 1 correctly. 6344 /* Check that off_t can represent 2**63 - 1 correctly.
5765 We can't simply define LARGE_OFF_T to be 9223372036854775807, 6345 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5775 6355
5776 ; 6356 ;
5777 return 0; 6357 return 0;
5778 } 6358 }
5779 _ACEOF 6359 _ACEOF
5780 if ac_fn_c_try_compile "$LINENO"; then : 6360 rm -f conftest.$ac_objext
6361 if { (ac_try="$ac_compile"
6362 case "(($ac_try" in
6363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6365 esac
6366 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6367 $as_echo "$ac_try_echo") >&5
6368 (eval "$ac_compile") 2>conftest.er1
6369 ac_status=$?
6370 grep -v '^ *+' conftest.er1 >conftest.err
6371 rm -f conftest.er1
6372 cat conftest.err >&5
6373 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6374 (exit $ac_status); } && {
6375 test -z "$ac_c_werror_flag" ||
6376 test ! -s conftest.err
6377 } && test -s conftest.$ac_objext; then
5781 ac_cv_sys_large_files=1; break 6378 ac_cv_sys_large_files=1; break
5782 fi 6379 else
6380 $as_echo "$as_me: failed program was:" >&5
6381 sed 's/^/| /' conftest.$ac_ext >&5
6382
6383
6384 fi
6385
5783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5784 ac_cv_sys_large_files=unknown 6387 ac_cv_sys_large_files=unknown
5785 break 6388 break
5786 done 6389 done
5787 fi 6390 fi
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 6391 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5789 $as_echo "$ac_cv_sys_large_files" >&6; } 6392 $as_echo "$ac_cv_sys_large_files" >&6; }
5790 case $ac_cv_sys_large_files in #( 6393 case $ac_cv_sys_large_files in #(
5791 no | unknown) ;; 6394 no | unknown) ;;
5792 *) 6395 *)
5793 cat >>confdefs.h <<_ACEOF 6396 cat >>confdefs.h <<_ACEOF
5829 else 6432 else
5830 6433
5831 ## Some platforms don't use any of these files, so it is not 6434 ## Some platforms don't use any of these files, so it is not
5832 ## appropriate to put this test outside the if block. 6435 ## appropriate to put this test outside the if block.
5833 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ 6436 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
5834 as_fn_error "crt*.o not found in specified location." "$LINENO" 5 6437 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5
6438 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6439 { (exit 1); exit 1; }; }
5835 6440
5836 fi 6441 fi
5837 6442
5838 6443
5839 6444
5880 6485
5881 6486
5882 6487
5883 if test "${with_sound}" != "no"; then 6488 if test "${with_sound}" != "no"; then
5884 # Sound support for GNU/Linux and the free BSDs. 6489 # Sound support for GNU/Linux and the free BSDs.
5885 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h 6490
5886 do : 6491
5887 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6492
5888 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6493 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5889 eval as_val=\$$as_ac_Header 6494 do
5890 if test "x$as_val" = x""yes; then : 6495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6497 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6498 $as_echo_n "checking for $ac_header... " >&6; }
6499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6500 $as_echo_n "(cached) " >&6
6501 fi
6502 ac_res=`eval 'as_val=${'$as_ac_Header'}
6503 $as_echo "$as_val"'`
6504 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6505 $as_echo "$ac_res" >&6; }
6506 else
6507 # Is the header compilable?
6508 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6509 $as_echo_n "checking $ac_header usability... " >&6; }
6510 cat >conftest.$ac_ext <<_ACEOF
6511 /* confdefs.h. */
6512 _ACEOF
6513 cat confdefs.h >>conftest.$ac_ext
6514 cat >>conftest.$ac_ext <<_ACEOF
6515 /* end confdefs.h. */
6516 $ac_includes_default
6517 #include <$ac_header>
6518 _ACEOF
6519 rm -f conftest.$ac_objext
6520 if { (ac_try="$ac_compile"
6521 case "(($ac_try" in
6522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6524 esac
6525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6526 $as_echo "$ac_try_echo") >&5
6527 (eval "$ac_compile") 2>conftest.er1
6528 ac_status=$?
6529 grep -v '^ *+' conftest.er1 >conftest.err
6530 rm -f conftest.er1
6531 cat conftest.err >&5
6532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } && {
6534 test -z "$ac_c_werror_flag" ||
6535 test ! -s conftest.err
6536 } && test -s conftest.$ac_objext; then
6537 ac_header_compiler=yes
6538 else
6539 $as_echo "$as_me: failed program was:" >&5
6540 sed 's/^/| /' conftest.$ac_ext >&5
6541
6542 ac_header_compiler=no
6543 fi
6544
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6547 $as_echo "$ac_header_compiler" >&6; }
6548
6549 # Is the header present?
6550 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6551 $as_echo_n "checking $ac_header presence... " >&6; }
6552 cat >conftest.$ac_ext <<_ACEOF
6553 /* confdefs.h. */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 #include <$ac_header>
6559 _ACEOF
6560 if { (ac_try="$ac_cpp conftest.$ac_ext"
6561 case "(($ac_try" in
6562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6563 *) ac_try_echo=$ac_try;;
6564 esac
6565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6566 $as_echo "$ac_try_echo") >&5
6567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6568 ac_status=$?
6569 grep -v '^ *+' conftest.er1 >conftest.err
6570 rm -f conftest.er1
6571 cat conftest.err >&5
6572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } >/dev/null && {
6574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6575 test ! -s conftest.err
6576 }; then
6577 ac_header_preproc=yes
6578 else
6579 $as_echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.$ac_ext >&5
6581
6582 ac_header_preproc=no
6583 fi
6584
6585 rm -f conftest.err conftest.$ac_ext
6586 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6587 $as_echo "$ac_header_preproc" >&6; }
6588
6589 # So? What about this header?
6590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6591 yes:no: )
6592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6593 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6595 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6596 ac_header_preproc=yes
6597 ;;
6598 no:yes:* )
6599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6600 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6602 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6604 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6606 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6608 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6610 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6611
6612 ;;
6613 esac
6614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6615 $as_echo_n "checking for $ac_header... " >&6; }
6616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6617 $as_echo_n "(cached) " >&6
6618 else
6619 eval "$as_ac_Header=\$ac_header_preproc"
6620 fi
6621 ac_res=`eval 'as_val=${'$as_ac_Header'}
6622 $as_echo "$as_val"'`
6623 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6624 $as_echo "$ac_res" >&6; }
6625
6626 fi
6627 if test `eval 'as_val=${'$as_ac_Header'}
6628 $as_echo "$as_val"'` = yes; then
5891 cat >>confdefs.h <<_ACEOF 6629 cat >>confdefs.h <<_ACEOF
5892 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5893 _ACEOF 6631 _ACEOF
5894 6632
5895 fi 6633 fi
5896 6634
5897 done 6635 done
5898 6636
5899 # Emulation library used on NetBSD. 6637 # Emulation library used on NetBSD.
5900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5 6638 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5901 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } 6639 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5902 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then : 6640 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5903 $as_echo_n "(cached) " >&6 6641 $as_echo_n "(cached) " >&6
5904 else 6642 else
5905 ac_check_lib_save_LIBS=$LIBS 6643 ac_check_lib_save_LIBS=$LIBS
5906 LIBS="-lossaudio $LIBS" 6644 LIBS="-lossaudio $LIBS"
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6645 cat >conftest.$ac_ext <<_ACEOF
6646 /* confdefs.h. */
6647 _ACEOF
6648 cat confdefs.h >>conftest.$ac_ext
6649 cat >>conftest.$ac_ext <<_ACEOF
5908 /* end confdefs.h. */ 6650 /* end confdefs.h. */
5909 6651
5910 /* Override any GCC internal prototype to avoid an error. 6652 /* Override any GCC internal prototype to avoid an error.
5911 Use char because int might match the return type of a GCC 6653 Use char because int might match the return type of a GCC
5912 builtin and then its argument prototype would still apply. */ 6654 builtin and then its argument prototype would still apply. */
5920 return _oss_ioctl (); 6662 return _oss_ioctl ();
5921 ; 6663 ;
5922 return 0; 6664 return 0;
5923 } 6665 }
5924 _ACEOF 6666 _ACEOF
5925 if ac_fn_c_try_link "$LINENO"; then : 6667 rm -f conftest.$ac_objext conftest$ac_exeext
6668 if { (ac_try="$ac_link"
6669 case "(($ac_try" in
6670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671 *) ac_try_echo=$ac_try;;
6672 esac
6673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6674 $as_echo "$ac_try_echo") >&5
6675 (eval "$ac_link") 2>conftest.er1
6676 ac_status=$?
6677 grep -v '^ *+' conftest.er1 >conftest.err
6678 rm -f conftest.er1
6679 cat conftest.err >&5
6680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6681 (exit $ac_status); } && {
6682 test -z "$ac_c_werror_flag" ||
6683 test ! -s conftest.err
6684 } && test -s conftest$ac_exeext && {
6685 test "$cross_compiling" = yes ||
6686 $as_test_x conftest$ac_exeext
6687 }; then
5926 ac_cv_lib_ossaudio__oss_ioctl=yes 6688 ac_cv_lib_ossaudio__oss_ioctl=yes
5927 else 6689 else
5928 ac_cv_lib_ossaudio__oss_ioctl=no 6690 $as_echo "$as_me: failed program was:" >&5
5929 fi 6691 sed 's/^/| /' conftest.$ac_ext >&5
5930 rm -f core conftest.err conftest.$ac_objext \ 6692
5931 conftest$ac_exeext conftest.$ac_ext 6693 ac_cv_lib_ossaudio__oss_ioctl=no
6694 fi
6695
6696 rm -rf conftest.dSYM
6697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6698 conftest$ac_exeext conftest.$ac_ext
5932 LIBS=$ac_check_lib_save_LIBS 6699 LIBS=$ac_check_lib_save_LIBS
5933 fi 6700 fi
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 6701 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
5935 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } 6702 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
5936 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then : 6703 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
5937 LIBSOUND=-lossaudio 6704 LIBSOUND=-lossaudio
5938 else 6705 else
5939 LIBSOUND= 6706 LIBSOUND=
5940 fi 6707 fi
5941 6708
5946 6713
5947 succeeded=no 6714 succeeded=no
5948 6715
5949 # Extract the first word of "pkg-config", so it can be a program name with args. 6716 # Extract the first word of "pkg-config", so it can be a program name with args.
5950 set dummy pkg-config; ac_word=$2 6717 set dummy pkg-config; ac_word=$2
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6718 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5952 $as_echo_n "checking for $ac_word... " >&6; } 6719 $as_echo_n "checking for $ac_word... " >&6; }
5953 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 6720 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
5954 $as_echo_n "(cached) " >&6 6721 $as_echo_n "(cached) " >&6
5955 else 6722 else
5956 case $PKG_CONFIG in 6723 case $PKG_CONFIG in
5957 [\\/]* | ?:[\\/]*) 6724 [\\/]* | ?:[\\/]*)
5958 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 6725 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
5961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5962 for as_dir in $PATH 6729 for as_dir in $PATH
5963 do 6730 do
5964 IFS=$as_save_IFS 6731 IFS=$as_save_IFS
5965 test -z "$as_dir" && as_dir=. 6732 test -z "$as_dir" && as_dir=.
5966 for ac_exec_ext in '' $ac_executable_extensions; do 6733 for ac_exec_ext in '' $ac_executable_extensions; do
5967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5968 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 6735 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6736 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5970 break 2 6737 break 2
5971 fi 6738 fi
5972 done 6739 done
5973 done 6740 done
5974 IFS=$as_save_IFS 6741 IFS=$as_save_IFS
5975 6742
5976 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 6743 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
5977 ;; 6744 ;;
5978 esac 6745 esac
5979 fi 6746 fi
5980 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 6747 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
5981 if test -n "$PKG_CONFIG"; then 6748 if test -n "$PKG_CONFIG"; then
5982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 6749 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5983 $as_echo "$PKG_CONFIG" >&6; } 6750 $as_echo "$PKG_CONFIG" >&6; }
5984 else 6751 else
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6752 { $as_echo "$as_me:$LINENO: result: no" >&5
5986 $as_echo "no" >&6; } 6753 $as_echo "no" >&6; }
5987 fi 6754 fi
5988 6755
5989 6756
5990 6757
5991 if test "$PKG_CONFIG" = "no" ; then 6758 if test "$PKG_CONFIG" = "no" ; then
5992 HAVE_ALSA=no 6759 HAVE_ALSA=no
5993 else 6760 else
5994 PKG_CONFIG_MIN_VERSION=0.9.0 6761 PKG_CONFIG_MIN_VERSION=0.9.0
5995 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 6762 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5 6763 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
5997 $as_echo_n "checking for $ALSA_MODULES... " >&6; } 6764 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
5998 6765
5999 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then 6766 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6767 { $as_echo "$as_me:$LINENO: result: yes" >&5
6001 $as_echo "yes" >&6; } 6768 $as_echo "yes" >&6; }
6002 succeeded=yes 6769 succeeded=yes
6003 6770
6004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5 6771 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6005 $as_echo_n "checking ALSA_CFLAGS... " >&6; } 6772 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6006 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` 6773 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5 6774 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6008 $as_echo "$ALSA_CFLAGS" >&6; } 6775 $as_echo "$ALSA_CFLAGS" >&6; }
6009 6776
6010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5 6777 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6011 $as_echo_n "checking ALSA_LIBS... " >&6; } 6778 $as_echo_n "checking ALSA_LIBS... " >&6; }
6012 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` 6779 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5 6780 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6014 $as_echo "$ALSA_LIBS" >&6; } 6781 $as_echo "$ALSA_LIBS" >&6; }
6015 else 6782 else
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6783 { $as_echo "$as_me:$LINENO: result: no" >&5
6017 $as_echo "no" >&6; } 6784 $as_echo "no" >&6; }
6018 ALSA_CFLAGS="" 6785 ALSA_CFLAGS=""
6019 ALSA_LIBS="" 6786 ALSA_LIBS=""
6020 ## If we have a custom action on failure, don't print errors, but 6787 ## If we have a custom action on failure, don't print errors, but
6021 ## do set a variable so people can do so. 6788 ## do set a variable so people can do so.
6040 if test $HAVE_ALSA = yes; then 6807 if test $HAVE_ALSA = yes; then
6041 SAVE_CFLAGS="$CFLAGS" 6808 SAVE_CFLAGS="$CFLAGS"
6042 SAVE_LDFLAGS="$LDFLAGS" 6809 SAVE_LDFLAGS="$LDFLAGS"
6043 CFLAGS="$ALSA_CFLAGS $CFLAGS" 6810 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6044 LDFLAGS="$ALSA_LIBS $LDFLAGS" 6811 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6812 cat >conftest.$ac_ext <<_ACEOF
6813 /* confdefs.h. */
6814 _ACEOF
6815 cat confdefs.h >>conftest.$ac_ext
6816 cat >>conftest.$ac_ext <<_ACEOF
6046 /* end confdefs.h. */ 6817 /* end confdefs.h. */
6047 #include <asoundlib.h> 6818 #include <asoundlib.h>
6048 int 6819 int
6049 main () 6820 main ()
6050 { 6821 {
6051 snd_lib_error_set_handler (0); 6822 snd_lib_error_set_handler (0);
6052 ; 6823 ;
6053 return 0; 6824 return 0;
6054 } 6825 }
6055 _ACEOF 6826 _ACEOF
6056 if ac_fn_c_try_compile "$LINENO"; then : 6827 rm -f conftest.$ac_objext
6828 if { (ac_try="$ac_compile"
6829 case "(($ac_try" in
6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831 *) ac_try_echo=$ac_try;;
6832 esac
6833 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6834 $as_echo "$ac_try_echo") >&5
6835 (eval "$ac_compile") 2>conftest.er1
6836 ac_status=$?
6837 grep -v '^ *+' conftest.er1 >conftest.err
6838 rm -f conftest.er1
6839 cat conftest.err >&5
6840 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6841 (exit $ac_status); } && {
6842 test -z "$ac_c_werror_flag" ||
6843 test ! -s conftest.err
6844 } && test -s conftest.$ac_objext; then
6057 emacs_alsa_normal=yes 6845 emacs_alsa_normal=yes
6058 else 6846 else
6059 emacs_alsa_normal=no 6847 $as_echo "$as_me: failed program was:" >&5
6060 fi 6848 sed 's/^/| /' conftest.$ac_ext >&5
6849
6850 emacs_alsa_normal=no
6851 fi
6852
6061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6062 if test "$emacs_alsa_normal" != yes; then 6854 if test "$emacs_alsa_normal" != yes; then
6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6855 cat >conftest.$ac_ext <<_ACEOF
6856 /* confdefs.h. */
6857 _ACEOF
6858 cat confdefs.h >>conftest.$ac_ext
6859 cat >>conftest.$ac_ext <<_ACEOF
6064 /* end confdefs.h. */ 6860 /* end confdefs.h. */
6065 #include <alsa/asoundlib.h> 6861 #include <alsa/asoundlib.h>
6066 int 6862 int
6067 main () 6863 main ()
6068 { 6864 {
6069 snd_lib_error_set_handler (0); 6865 snd_lib_error_set_handler (0);
6070 ; 6866 ;
6071 return 0; 6867 return 0;
6072 } 6868 }
6073 _ACEOF 6869 _ACEOF
6074 if ac_fn_c_try_compile "$LINENO"; then : 6870 rm -f conftest.$ac_objext
6871 if { (ac_try="$ac_compile"
6872 case "(($ac_try" in
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6875 esac
6876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6877 $as_echo "$ac_try_echo") >&5
6878 (eval "$ac_compile") 2>conftest.er1
6879 ac_status=$?
6880 grep -v '^ *+' conftest.er1 >conftest.err
6881 rm -f conftest.er1
6882 cat conftest.err >&5
6883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6884 (exit $ac_status); } && {
6885 test -z "$ac_c_werror_flag" ||
6886 test ! -s conftest.err
6887 } && test -s conftest.$ac_objext; then
6075 emacs_alsa_subdir=yes 6888 emacs_alsa_subdir=yes
6076 else 6889 else
6077 emacs_alsa_subdir=no 6890 $as_echo "$as_me: failed program was:" >&5
6078 fi 6891 sed 's/^/| /' conftest.$ac_ext >&5
6892
6893 emacs_alsa_subdir=no
6894 fi
6895
6079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6080 if test "$emacs_alsa_subdir" != yes; then 6897 if test "$emacs_alsa_subdir" != yes; then
6081 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5 6898 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6899 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6900 { (exit 1); exit 1; }; }
6082 fi 6901 fi
6083 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" 6902 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6084 fi 6903 fi
6085 6904
6086 CFLAGS="$SAVE_CFLAGS" 6905 CFLAGS="$SAVE_CFLAGS"
6087 LDFLAGS="$SAVE_LDFLAGS" 6906 LDFLAGS="$SAVE_LDFLAGS"
6088 LIBSOUND="$LIBSOUND $ALSA_LIBS" 6907 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6089 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" 6908 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6090 6909
6091 $as_echo "#define HAVE_ALSA 1" >>confdefs.h 6910 cat >>confdefs.h <<\_ACEOF
6911 #define HAVE_ALSA 1
6912 _ACEOF
6092 6913
6093 fi 6914 fi
6094 6915
6095 fi 6916 fi
6917
6918
6919
6920
6921
6922
6923
6924
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938
6939
6940
6941
6096 6942
6097 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ 6943 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6098 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 6944 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6099 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ 6945 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6100 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ 6946 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6101 sys/utsname.h pwd.h utmp.h 6947 sys/utsname.h pwd.h utmp.h
6102 do : 6948 do
6103 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6104 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 6950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6105 eval as_val=\$$as_ac_Header 6951 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6106 if test "x$as_val" = x""yes; then : 6952 $as_echo_n "checking for $ac_header... " >&6; }
6953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6954 $as_echo_n "(cached) " >&6
6955 fi
6956 ac_res=`eval 'as_val=${'$as_ac_Header'}
6957 $as_echo "$as_val"'`
6958 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6959 $as_echo "$ac_res" >&6; }
6960 else
6961 # Is the header compilable?
6962 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6963 $as_echo_n "checking $ac_header usability... " >&6; }
6964 cat >conftest.$ac_ext <<_ACEOF
6965 /* confdefs.h. */
6966 _ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 $ac_includes_default
6971 #include <$ac_header>
6972 _ACEOF
6973 rm -f conftest.$ac_objext
6974 if { (ac_try="$ac_compile"
6975 case "(($ac_try" in
6976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6977 *) ac_try_echo=$ac_try;;
6978 esac
6979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6980 $as_echo "$ac_try_echo") >&5
6981 (eval "$ac_compile") 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && {
6988 test -z "$ac_c_werror_flag" ||
6989 test ! -s conftest.err
6990 } && test -s conftest.$ac_objext; then
6991 ac_header_compiler=yes
6992 else
6993 $as_echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 ac_header_compiler=no
6997 fi
6998
6999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7001 $as_echo "$ac_header_compiler" >&6; }
7002
7003 # Is the header present?
7004 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7005 $as_echo_n "checking $ac_header presence... " >&6; }
7006 cat >conftest.$ac_ext <<_ACEOF
7007 /* confdefs.h. */
7008 _ACEOF
7009 cat confdefs.h >>conftest.$ac_ext
7010 cat >>conftest.$ac_ext <<_ACEOF
7011 /* end confdefs.h. */
7012 #include <$ac_header>
7013 _ACEOF
7014 if { (ac_try="$ac_cpp conftest.$ac_ext"
7015 case "(($ac_try" in
7016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7017 *) ac_try_echo=$ac_try;;
7018 esac
7019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7020 $as_echo "$ac_try_echo") >&5
7021 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7022 ac_status=$?
7023 grep -v '^ *+' conftest.er1 >conftest.err
7024 rm -f conftest.er1
7025 cat conftest.err >&5
7026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7027 (exit $ac_status); } >/dev/null && {
7028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7029 test ! -s conftest.err
7030 }; then
7031 ac_header_preproc=yes
7032 else
7033 $as_echo "$as_me: failed program was:" >&5
7034 sed 's/^/| /' conftest.$ac_ext >&5
7035
7036 ac_header_preproc=no
7037 fi
7038
7039 rm -f conftest.err conftest.$ac_ext
7040 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7041 $as_echo "$ac_header_preproc" >&6; }
7042
7043 # So? What about this header?
7044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7045 yes:no: )
7046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7047 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7048 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7049 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7050 ac_header_preproc=yes
7051 ;;
7052 no:yes:* )
7053 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7054 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7055 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7056 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7057 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7058 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7060 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7063 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7064 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7065
7066 ;;
7067 esac
7068 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7069 $as_echo_n "checking for $ac_header... " >&6; }
7070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7071 $as_echo_n "(cached) " >&6
7072 else
7073 eval "$as_ac_Header=\$ac_header_preproc"
7074 fi
7075 ac_res=`eval 'as_val=${'$as_ac_Header'}
7076 $as_echo "$as_val"'`
7077 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7078 $as_echo "$ac_res" >&6; }
7079
7080 fi
7081 if test `eval 'as_val=${'$as_ac_Header'}
7082 $as_echo "$as_val"'` = yes; then
6107 cat >>confdefs.h <<_ACEOF 7083 cat >>confdefs.h <<_ACEOF
6108 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7084 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6109 _ACEOF 7085 _ACEOF
6110 7086
6111 fi 7087 fi
6112 7088
6113 done 7089 done
6114 7090
6115 7091
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5 7092 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6117 $as_echo_n "checking if personality LINUX32 can be set... " >&6; } 7093 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7094 cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
6119 /* end confdefs.h. */ 7099 /* end confdefs.h. */
6120 #include <sys/personality.h> 7100 #include <sys/personality.h>
6121 int 7101 int
6122 main () 7102 main ()
6123 { 7103 {
6124 personality (PER_LINUX32) 7104 personality (PER_LINUX32)
6125 ; 7105 ;
6126 return 0; 7106 return 0;
6127 } 7107 }
6128 _ACEOF 7108 _ACEOF
6129 if ac_fn_c_try_compile "$LINENO"; then : 7109 rm -f conftest.$ac_objext
7110 if { (ac_try="$ac_compile"
7111 case "(($ac_try" in
7112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7113 *) ac_try_echo=$ac_try;;
7114 esac
7115 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7116 $as_echo "$ac_try_echo") >&5
7117 (eval "$ac_compile") 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } && {
7124 test -z "$ac_c_werror_flag" ||
7125 test ! -s conftest.err
7126 } && test -s conftest.$ac_objext; then
6130 emacs_cv_personality_linux32=yes 7127 emacs_cv_personality_linux32=yes
6131 else 7128 else
6132 emacs_cv_personality_linux32=no 7129 $as_echo "$as_me: failed program was:" >&5
6133 fi 7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132 emacs_cv_personality_linux32=no
7133 fi
7134
6134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5 7136 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6136 $as_echo "$emacs_cv_personality_linux32" >&6; } 7137 $as_echo "$emacs_cv_personality_linux32" >&6; }
6137 7138
6138 if test $emacs_cv_personality_linux32 = yes; then 7139 if test $emacs_cv_personality_linux32 = yes; then
6139 7140
6140 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h 7141 cat >>confdefs.h <<\_ACEOF
6141 7142 #define HAVE_PERSONALITY_LINUX32 1
6142 fi 7143 _ACEOF
7144
7145 fi
7146
6143 7147
6144 for ac_header in term.h 7148 for ac_header in term.h
6145 do : 7149 do
6146 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h" 7150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6147 if test "x$ac_cv_header_term_h" = x""yes; then : 7151 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7152 $as_echo_n "checking for $ac_header... " >&6; }
7153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7154 $as_echo_n "(cached) " >&6
7155 else
7156 cat >conftest.$ac_ext <<_ACEOF
7157 /* confdefs.h. */
7158 _ACEOF
7159 cat confdefs.h >>conftest.$ac_ext
7160 cat >>conftest.$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 #include <$ac_header>
7163 _ACEOF
7164 if { (ac_try="$ac_cpp conftest.$ac_ext"
7165 case "(($ac_try" in
7166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7167 *) ac_try_echo=$ac_try;;
7168 esac
7169 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7170 $as_echo "$ac_try_echo") >&5
7171 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7172 ac_status=$?
7173 grep -v '^ *+' conftest.er1 >conftest.err
7174 rm -f conftest.er1
7175 cat conftest.err >&5
7176 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } >/dev/null && {
7178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 }; then
7181 eval "$as_ac_Header=yes"
7182 else
7183 $as_echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.$ac_ext >&5
7185
7186 eval "$as_ac_Header=no"
7187 fi
7188
7189 rm -f conftest.err conftest.$ac_ext
7190 fi
7191 ac_res=`eval 'as_val=${'$as_ac_Header'}
7192 $as_echo "$as_val"'`
7193 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7194 $as_echo "$ac_res" >&6; }
7195 if test `eval 'as_val=${'$as_ac_Header'}
7196 $as_echo "$as_val"'` = yes; then
6148 cat >>confdefs.h <<_ACEOF 7197 cat >>confdefs.h <<_ACEOF
6149 #define HAVE_TERM_H 1 7198 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6150 _ACEOF 7199 _ACEOF
6151 7200
6152 fi 7201 fi
6153 7202
6154 done 7203 done
6155 7204
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7205 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6157 $as_echo_n "checking for ANSI C header files... " >&6; } 7206 $as_echo_n "checking for ANSI C header files... " >&6; }
6158 if test "${ac_cv_header_stdc+set}" = set; then : 7207 if test "${ac_cv_header_stdc+set}" = set; then
6159 $as_echo_n "(cached) " >&6 7208 $as_echo_n "(cached) " >&6
6160 else 7209 else
6161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7210 cat >conftest.$ac_ext <<_ACEOF
7211 /* confdefs.h. */
7212 _ACEOF
7213 cat confdefs.h >>conftest.$ac_ext
7214 cat >>conftest.$ac_ext <<_ACEOF
6162 /* end confdefs.h. */ 7215 /* end confdefs.h. */
6163 #include <stdlib.h> 7216 #include <stdlib.h>
6164 #include <stdarg.h> 7217 #include <stdarg.h>
6165 #include <string.h> 7218 #include <string.h>
6166 #include <float.h> 7219 #include <float.h>
6171 7224
6172 ; 7225 ;
6173 return 0; 7226 return 0;
6174 } 7227 }
6175 _ACEOF 7228 _ACEOF
6176 if ac_fn_c_try_compile "$LINENO"; then : 7229 rm -f conftest.$ac_objext
7230 if { (ac_try="$ac_compile"
7231 case "(($ac_try" in
7232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7233 *) ac_try_echo=$ac_try;;
7234 esac
7235 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7236 $as_echo "$ac_try_echo") >&5
7237 (eval "$ac_compile") 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && {
7244 test -z "$ac_c_werror_flag" ||
7245 test ! -s conftest.err
7246 } && test -s conftest.$ac_objext; then
6177 ac_cv_header_stdc=yes 7247 ac_cv_header_stdc=yes
6178 else 7248 else
6179 ac_cv_header_stdc=no 7249 $as_echo "$as_me: failed program was:" >&5
6180 fi 7250 sed 's/^/| /' conftest.$ac_ext >&5
7251
7252 ac_cv_header_stdc=no
7253 fi
7254
6181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6182 7256
6183 if test $ac_cv_header_stdc = yes; then 7257 if test $ac_cv_header_stdc = yes; then
6184 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7258 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7259 cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h. */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */ 7264 /* end confdefs.h. */
6187 #include <string.h> 7265 #include <string.h>
6188 7266
6189 _ACEOF 7267 _ACEOF
6190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7268 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6191 $EGREP "memchr" >/dev/null 2>&1; then : 7269 $EGREP "memchr" >/dev/null 2>&1; then
6192 7270 :
6193 else 7271 else
6194 ac_cv_header_stdc=no 7272 ac_cv_header_stdc=no
6195 fi 7273 fi
6196 rm -f conftest* 7274 rm -f conftest*
6197 7275
6198 fi 7276 fi
6199 7277
6200 if test $ac_cv_header_stdc = yes; then 7278 if test $ac_cv_header_stdc = yes; then
6201 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7279 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7280 cat >conftest.$ac_ext <<_ACEOF
7281 /* confdefs.h. */
7282 _ACEOF
7283 cat confdefs.h >>conftest.$ac_ext
7284 cat >>conftest.$ac_ext <<_ACEOF
6203 /* end confdefs.h. */ 7285 /* end confdefs.h. */
6204 #include <stdlib.h> 7286 #include <stdlib.h>
6205 7287
6206 _ACEOF 7288 _ACEOF
6207 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7289 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6208 $EGREP "free" >/dev/null 2>&1; then : 7290 $EGREP "free" >/dev/null 2>&1; then
6209 7291 :
6210 else 7292 else
6211 ac_cv_header_stdc=no 7293 ac_cv_header_stdc=no
6212 fi 7294 fi
6213 rm -f conftest* 7295 rm -f conftest*
6214 7296
6215 fi 7297 fi
6216 7298
6217 if test $ac_cv_header_stdc = yes; then 7299 if test $ac_cv_header_stdc = yes; then
6218 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7300 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6219 if test "$cross_compiling" = yes; then : 7301 if test "$cross_compiling" = yes; then
6220 : 7302 :
6221 else 7303 else
6222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7304 cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h. */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
6223 /* end confdefs.h. */ 7309 /* end confdefs.h. */
6224 #include <ctype.h> 7310 #include <ctype.h>
6225 #include <stdlib.h> 7311 #include <stdlib.h>
6226 #if ((' ' & 0x0FF) == 0x020) 7312 #if ((' ' & 0x0FF) == 0x020)
6227 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7313 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6244 || toupper (i) != TOUPPER (i)) 7330 || toupper (i) != TOUPPER (i))
6245 return 2; 7331 return 2;
6246 return 0; 7332 return 0;
6247 } 7333 }
6248 _ACEOF 7334 _ACEOF
6249 if ac_fn_c_try_run "$LINENO"; then : 7335 rm -f conftest$ac_exeext
6250 7336 if { (ac_try="$ac_link"
6251 else 7337 case "(($ac_try" in
6252 ac_cv_header_stdc=no 7338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6253 fi 7339 *) ac_try_echo=$ac_try;;
6254 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7340 esac
6255 conftest.$ac_objext conftest.beam conftest.$ac_ext 7341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6256 fi 7342 $as_echo "$ac_try_echo") >&5
6257 7343 (eval "$ac_link") 2>&5
6258 fi 7344 ac_status=$?
6259 fi 7345 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7346 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7347 { (case "(($ac_try" in
7348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349 *) ac_try_echo=$ac_try;;
7350 esac
7351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7352 $as_echo "$ac_try_echo") >&5
7353 (eval "$ac_try") 2>&5
7354 ac_status=$?
7355 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7356 (exit $ac_status); }; }; then
7357 :
7358 else
7359 $as_echo "$as_me: program exited with status $ac_status" >&5
7360 $as_echo "$as_me: failed program was:" >&5
7361 sed 's/^/| /' conftest.$ac_ext >&5
7362
7363 ( exit $ac_status )
7364 ac_cv_header_stdc=no
7365 fi
7366 rm -rf conftest.dSYM
7367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7368 fi
7369
7370
7371 fi
7372 fi
7373 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6261 $as_echo "$ac_cv_header_stdc" >&6; } 7374 $as_echo "$ac_cv_header_stdc" >&6; }
6262 if test $ac_cv_header_stdc = yes; then 7375 if test $ac_cv_header_stdc = yes; then
6263 7376
6264 $as_echo "#define STDC_HEADERS 1" >>confdefs.h 7377 cat >>confdefs.h <<\_ACEOF
6265 7378 #define STDC_HEADERS 1
6266 fi 7379 _ACEOF
6267 7380
6268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 7381 fi
7382
7383 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6269 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 7384 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
6270 if test "${ac_cv_header_time+set}" = set; then : 7385 if test "${ac_cv_header_time+set}" = set; then
6271 $as_echo_n "(cached) " >&6 7386 $as_echo_n "(cached) " >&6
6272 else 7387 else
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7388 cat >conftest.$ac_ext <<_ACEOF
7389 /* confdefs.h. */
7390 _ACEOF
7391 cat confdefs.h >>conftest.$ac_ext
7392 cat >>conftest.$ac_ext <<_ACEOF
6274 /* end confdefs.h. */ 7393 /* end confdefs.h. */
6275 #include <sys/types.h> 7394 #include <sys/types.h>
6276 #include <sys/time.h> 7395 #include <sys/time.h>
6277 #include <time.h> 7396 #include <time.h>
6278 7397
6283 return 0; 7402 return 0;
6284 ; 7403 ;
6285 return 0; 7404 return 0;
6286 } 7405 }
6287 _ACEOF 7406 _ACEOF
6288 if ac_fn_c_try_compile "$LINENO"; then : 7407 rm -f conftest.$ac_objext
7408 if { (ac_try="$ac_compile"
7409 case "(($ac_try" in
7410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7411 *) ac_try_echo=$ac_try;;
7412 esac
7413 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7414 $as_echo "$ac_try_echo") >&5
7415 (eval "$ac_compile") 2>conftest.er1
7416 ac_status=$?
7417 grep -v '^ *+' conftest.er1 >conftest.err
7418 rm -f conftest.er1
7419 cat conftest.err >&5
7420 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7421 (exit $ac_status); } && {
7422 test -z "$ac_c_werror_flag" ||
7423 test ! -s conftest.err
7424 } && test -s conftest.$ac_objext; then
6289 ac_cv_header_time=yes 7425 ac_cv_header_time=yes
6290 else 7426 else
6291 ac_cv_header_time=no 7427 $as_echo "$as_me: failed program was:" >&5
6292 fi 7428 sed 's/^/| /' conftest.$ac_ext >&5
7429
7430 ac_cv_header_time=no
7431 fi
7432
6293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6294 fi 7434 fi
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 7435 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6296 $as_echo "$ac_cv_header_time" >&6; } 7436 $as_echo "$ac_cv_header_time" >&6; }
6297 if test $ac_cv_header_time = yes; then 7437 if test $ac_cv_header_time = yes; then
6298 7438
6299 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 7439 cat >>confdefs.h <<\_ACEOF
6300 7440 #define TIME_WITH_SYS_TIME 1
6301 fi 7441 _ACEOF
6302 7442
6303 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default" 7443 fi
6304 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then : 7444
6305 ac_have_decl=1 7445 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6306 else 7446 $as_echo_n "checking whether sys_siglist is declared... " >&6; }
6307 ac_have_decl=0 7447 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6308 fi 7448 $as_echo_n "(cached) " >&6
7449 else
7450 cat >conftest.$ac_ext <<_ACEOF
7451 /* confdefs.h. */
7452 _ACEOF
7453 cat confdefs.h >>conftest.$ac_ext
7454 cat >>conftest.$ac_ext <<_ACEOF
7455 /* end confdefs.h. */
7456 $ac_includes_default
7457 int
7458 main ()
7459 {
7460 #ifndef sys_siglist
7461 (void) sys_siglist;
7462 #endif
7463
7464 ;
7465 return 0;
7466 }
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (ac_try="$ac_compile"
7470 case "(($ac_try" in
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7473 esac
7474 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7475 $as_echo "$ac_try_echo") >&5
7476 (eval "$ac_compile") 2>conftest.er1
7477 ac_status=$?
7478 grep -v '^ *+' conftest.er1 >conftest.err
7479 rm -f conftest.er1
7480 cat conftest.err >&5
7481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } && {
7483 test -z "$ac_c_werror_flag" ||
7484 test ! -s conftest.err
7485 } && test -s conftest.$ac_objext; then
7486 ac_cv_have_decl_sys_siglist=yes
7487 else
7488 $as_echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491 ac_cv_have_decl_sys_siglist=no
7492 fi
7493
7494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7495 fi
7496 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7497 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7498 if test $ac_cv_have_decl_sys_siglist = yes; then
6309 7499
6310 cat >>confdefs.h <<_ACEOF 7500 cat >>confdefs.h <<_ACEOF
6311 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl 7501 #define HAVE_DECL_SYS_SIGLIST 1
6312 _ACEOF 7502 _ACEOF
7503
7504
7505 else
7506 cat >>confdefs.h <<_ACEOF
7507 #define HAVE_DECL_SYS_SIGLIST 0
7508 _ACEOF
7509
7510
7511 fi
7512
6313 7513
6314 if test $ac_cv_have_decl_sys_siglist != yes; then 7514 if test $ac_cv_have_decl_sys_siglist != yes; then
6315 # For Tru64, at least: 7515 # For Tru64, at least:
6316 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default" 7516 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6317 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then : 7517 $as_echo_n "checking whether __sys_siglist is declared... " >&6; }
6318 ac_have_decl=1 7518 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6319 else 7519 $as_echo_n "(cached) " >&6
6320 ac_have_decl=0 7520 else
6321 fi 7521 cat >conftest.$ac_ext <<_ACEOF
7522 /* confdefs.h. */
7523 _ACEOF
7524 cat confdefs.h >>conftest.$ac_ext
7525 cat >>conftest.$ac_ext <<_ACEOF
7526 /* end confdefs.h. */
7527 $ac_includes_default
7528 int
7529 main ()
7530 {
7531 #ifndef __sys_siglist
7532 (void) __sys_siglist;
7533 #endif
7534
7535 ;
7536 return 0;
7537 }
7538 _ACEOF
7539 rm -f conftest.$ac_objext
7540 if { (ac_try="$ac_compile"
7541 case "(($ac_try" in
7542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7543 *) ac_try_echo=$ac_try;;
7544 esac
7545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7546 $as_echo "$ac_try_echo") >&5
7547 (eval "$ac_compile") 2>conftest.er1
7548 ac_status=$?
7549 grep -v '^ *+' conftest.er1 >conftest.err
7550 rm -f conftest.er1
7551 cat conftest.err >&5
7552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } && {
7554 test -z "$ac_c_werror_flag" ||
7555 test ! -s conftest.err
7556 } && test -s conftest.$ac_objext; then
7557 ac_cv_have_decl___sys_siglist=yes
7558 else
7559 $as_echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7561
7562 ac_cv_have_decl___sys_siglist=no
7563 fi
7564
7565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7566 fi
7567 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7568 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7569 if test $ac_cv_have_decl___sys_siglist = yes; then
6322 7570
6323 cat >>confdefs.h <<_ACEOF 7571 cat >>confdefs.h <<_ACEOF
6324 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl 7572 #define HAVE_DECL___SYS_SIGLIST 1
6325 _ACEOF 7573 _ACEOF
7574
7575
7576 else
7577 cat >>confdefs.h <<_ACEOF
7578 #define HAVE_DECL___SYS_SIGLIST 0
7579 _ACEOF
7580
7581
7582 fi
7583
6326 7584
6327 if test $ac_cv_have_decl___sys_siglist = yes; then 7585 if test $ac_cv_have_decl___sys_siglist = yes; then
6328 7586
6329 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h 7587 cat >>confdefs.h <<\_ACEOF
7588 #define sys_siglist __sys_siglist
7589 _ACEOF
6330 7590
6331 fi 7591 fi
6332 fi 7592 fi
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 7593 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6334 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 7594 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6335 if test "${ac_cv_header_sys_wait_h+set}" = set; then : 7595 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6336 $as_echo_n "(cached) " >&6 7596 $as_echo_n "(cached) " >&6
6337 else 7597 else
6338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7598 cat >conftest.$ac_ext <<_ACEOF
7599 /* confdefs.h. */
7600 _ACEOF
7601 cat confdefs.h >>conftest.$ac_ext
7602 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */ 7603 /* end confdefs.h. */
6340 #include <sys/types.h> 7604 #include <sys/types.h>
6341 #include <sys/wait.h> 7605 #include <sys/wait.h>
6342 #ifndef WEXITSTATUS 7606 #ifndef WEXITSTATUS
6343 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 7607 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6354 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 7618 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6355 ; 7619 ;
6356 return 0; 7620 return 0;
6357 } 7621 }
6358 _ACEOF 7622 _ACEOF
6359 if ac_fn_c_try_compile "$LINENO"; then : 7623 rm -f conftest.$ac_objext
7624 if { (ac_try="$ac_compile"
7625 case "(($ac_try" in
7626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7627 *) ac_try_echo=$ac_try;;
7628 esac
7629 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7630 $as_echo "$ac_try_echo") >&5
7631 (eval "$ac_compile") 2>conftest.er1
7632 ac_status=$?
7633 grep -v '^ *+' conftest.er1 >conftest.err
7634 rm -f conftest.er1
7635 cat conftest.err >&5
7636 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7637 (exit $ac_status); } && {
7638 test -z "$ac_c_werror_flag" ||
7639 test ! -s conftest.err
7640 } && test -s conftest.$ac_objext; then
6360 ac_cv_header_sys_wait_h=yes 7641 ac_cv_header_sys_wait_h=yes
6361 else 7642 else
6362 ac_cv_header_sys_wait_h=no 7643 $as_echo "$as_me: failed program was:" >&5
6363 fi 7644 sed 's/^/| /' conftest.$ac_ext >&5
7645
7646 ac_cv_header_sys_wait_h=no
7647 fi
7648
6364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6365 fi 7650 fi
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 7651 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6367 $as_echo "$ac_cv_header_sys_wait_h" >&6; } 7652 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6368 if test $ac_cv_header_sys_wait_h = yes; then 7653 if test $ac_cv_header_sys_wait_h = yes; then
6369 7654
6370 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 7655 cat >>confdefs.h <<\_ACEOF
6371 7656 #define HAVE_SYS_WAIT_H 1
6372 fi 7657 _ACEOF
6373 7658
6374 7659 fi
6375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5 7660
7661
7662 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6376 $as_echo_n "checking for struct utimbuf... " >&6; } 7663 $as_echo_n "checking for struct utimbuf... " >&6; }
6377 if test "${emacs_cv_struct_utimbuf+set}" = set; then : 7664 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6378 $as_echo_n "(cached) " >&6 7665 $as_echo_n "(cached) " >&6
6379 else 7666 else
6380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7667 cat >conftest.$ac_ext <<_ACEOF
7668 /* confdefs.h. */
7669 _ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */ 7672 /* end confdefs.h. */
6382 #ifdef TIME_WITH_SYS_TIME 7673 #ifdef TIME_WITH_SYS_TIME
6383 #include <sys/time.h> 7674 #include <sys/time.h>
6384 #include <time.h> 7675 #include <time.h>
6385 #else 7676 #else
6398 static struct utimbuf x; x.actime = x.modtime; 7689 static struct utimbuf x; x.actime = x.modtime;
6399 ; 7690 ;
6400 return 0; 7691 return 0;
6401 } 7692 }
6402 _ACEOF 7693 _ACEOF
6403 if ac_fn_c_try_compile "$LINENO"; then : 7694 rm -f conftest.$ac_objext
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
6404 emacs_cv_struct_utimbuf=yes 7712 emacs_cv_struct_utimbuf=yes
6405 else 7713 else
6406 emacs_cv_struct_utimbuf=no 7714 $as_echo "$as_me: failed program was:" >&5
6407 fi 7715 sed 's/^/| /' conftest.$ac_ext >&5
7716
7717 emacs_cv_struct_utimbuf=no
7718 fi
7719
6408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6409 fi 7721 fi
6410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5 7722 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
6411 $as_echo "$emacs_cv_struct_utimbuf" >&6; } 7723 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
6412 if test $emacs_cv_struct_utimbuf = yes; then 7724 if test $emacs_cv_struct_utimbuf = yes; then
6413 7725
6414 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h 7726 cat >>confdefs.h <<\_ACEOF
6415 7727 #define HAVE_STRUCT_UTIMBUF 1
6416 fi 7728 _ACEOF
6417 7729
6418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 7730 fi
7731
7732 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
6419 $as_echo_n "checking return type of signal handlers... " >&6; } 7733 $as_echo_n "checking return type of signal handlers... " >&6; }
6420 if test "${ac_cv_type_signal+set}" = set; then : 7734 if test "${ac_cv_type_signal+set}" = set; then
6421 $as_echo_n "(cached) " >&6 7735 $as_echo_n "(cached) " >&6
6422 else 7736 else
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7737 cat >conftest.$ac_ext <<_ACEOF
7738 /* confdefs.h. */
7739 _ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */ 7742 /* end confdefs.h. */
6425 #include <sys/types.h> 7743 #include <sys/types.h>
6426 #include <signal.h> 7744 #include <signal.h>
6427 7745
6428 int 7746 int
6431 return *(signal (0, 0)) (0) == 1; 7749 return *(signal (0, 0)) (0) == 1;
6432 ; 7750 ;
6433 return 0; 7751 return 0;
6434 } 7752 }
6435 _ACEOF 7753 _ACEOF
6436 if ac_fn_c_try_compile "$LINENO"; then : 7754 rm -f conftest.$ac_objext
7755 if { (ac_try="$ac_compile"
7756 case "(($ac_try" in
7757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7758 *) ac_try_echo=$ac_try;;
7759 esac
7760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7761 $as_echo "$ac_try_echo") >&5
7762 (eval "$ac_compile") 2>conftest.er1
7763 ac_status=$?
7764 grep -v '^ *+' conftest.er1 >conftest.err
7765 rm -f conftest.er1
7766 cat conftest.err >&5
7767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } && {
7769 test -z "$ac_c_werror_flag" ||
7770 test ! -s conftest.err
7771 } && test -s conftest.$ac_objext; then
6437 ac_cv_type_signal=int 7772 ac_cv_type_signal=int
6438 else 7773 else
6439 ac_cv_type_signal=void 7774 $as_echo "$as_me: failed program was:" >&5
6440 fi 7775 sed 's/^/| /' conftest.$ac_ext >&5
7776
7777 ac_cv_type_signal=void
7778 fi
7779
6441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6442 fi 7781 fi
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 7782 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
6444 $as_echo "$ac_cv_type_signal" >&6; } 7783 $as_echo "$ac_cv_type_signal" >&6; }
6445 7784
6446 cat >>confdefs.h <<_ACEOF 7785 cat >>confdefs.h <<_ACEOF
6447 #define RETSIGTYPE $ac_cv_type_signal 7786 #define RETSIGTYPE $ac_cv_type_signal
6448 _ACEOF 7787 _ACEOF
6449 7788
6450 7789
6451 7790
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5 7791 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5
6453 $as_echo_n "checking for speed_t... " >&6; } 7792 $as_echo_n "checking for speed_t... " >&6; }
6454 if test "${emacs_cv_speed_t+set}" = set; then : 7793 if test "${emacs_cv_speed_t+set}" = set; then
6455 $as_echo_n "(cached) " >&6 7794 $as_echo_n "(cached) " >&6
6456 else 7795 else
6457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7796 cat >conftest.$ac_ext <<_ACEOF
7797 /* confdefs.h. */
7798 _ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
6458 /* end confdefs.h. */ 7801 /* end confdefs.h. */
6459 #include <termios.h> 7802 #include <termios.h>
6460 int 7803 int
6461 main () 7804 main ()
6462 { 7805 {
6463 speed_t x = 1; 7806 speed_t x = 1;
6464 ; 7807 ;
6465 return 0; 7808 return 0;
6466 } 7809 }
6467 _ACEOF 7810 _ACEOF
6468 if ac_fn_c_try_compile "$LINENO"; then : 7811 rm -f conftest.$ac_objext
7812 if { (ac_try="$ac_compile"
7813 case "(($ac_try" in
7814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7815 *) ac_try_echo=$ac_try;;
7816 esac
7817 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7818 $as_echo "$ac_try_echo") >&5
7819 (eval "$ac_compile") 2>conftest.er1
7820 ac_status=$?
7821 grep -v '^ *+' conftest.er1 >conftest.err
7822 rm -f conftest.er1
7823 cat conftest.err >&5
7824 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7825 (exit $ac_status); } && {
7826 test -z "$ac_c_werror_flag" ||
7827 test ! -s conftest.err
7828 } && test -s conftest.$ac_objext; then
6469 emacs_cv_speed_t=yes 7829 emacs_cv_speed_t=yes
6470 else 7830 else
6471 emacs_cv_speed_t=no 7831 $as_echo "$as_me: failed program was:" >&5
6472 fi 7832 sed 's/^/| /' conftest.$ac_ext >&5
7833
7834 emacs_cv_speed_t=no
7835 fi
7836
6473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6474 fi 7838 fi
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5 7839 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
6476 $as_echo "$emacs_cv_speed_t" >&6; } 7840 $as_echo "$emacs_cv_speed_t" >&6; }
6477 if test $emacs_cv_speed_t = yes; then 7841 if test $emacs_cv_speed_t = yes; then
6478 7842
6479 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h 7843 cat >>confdefs.h <<\_ACEOF
6480 7844 #define HAVE_SPEED_T 1
6481 fi 7845 _ACEOF
6482 7846
6483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5 7847 fi
7848
7849 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
6484 $as_echo_n "checking for struct timeval... " >&6; } 7850 $as_echo_n "checking for struct timeval... " >&6; }
6485 if test "${emacs_cv_struct_timeval+set}" = set; then : 7851 if test "${emacs_cv_struct_timeval+set}" = set; then
6486 $as_echo_n "(cached) " >&6 7852 $as_echo_n "(cached) " >&6
6487 else 7853 else
6488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7854 cat >conftest.$ac_ext <<_ACEOF
7855 /* confdefs.h. */
7856 _ACEOF
7857 cat confdefs.h >>conftest.$ac_ext
7858 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */ 7859 /* end confdefs.h. */
6490 #ifdef TIME_WITH_SYS_TIME 7860 #ifdef TIME_WITH_SYS_TIME
6491 #include <sys/time.h> 7861 #include <sys/time.h>
6492 #include <time.h> 7862 #include <time.h>
6493 #else 7863 #else
6503 static struct timeval x; x.tv_sec = x.tv_usec; 7873 static struct timeval x; x.tv_sec = x.tv_usec;
6504 ; 7874 ;
6505 return 0; 7875 return 0;
6506 } 7876 }
6507 _ACEOF 7877 _ACEOF
6508 if ac_fn_c_try_compile "$LINENO"; then : 7878 rm -f conftest.$ac_objext
7879 if { (ac_try="$ac_compile"
7880 case "(($ac_try" in
7881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7882 *) ac_try_echo=$ac_try;;
7883 esac
7884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7885 $as_echo "$ac_try_echo") >&5
7886 (eval "$ac_compile") 2>conftest.er1
7887 ac_status=$?
7888 grep -v '^ *+' conftest.er1 >conftest.err
7889 rm -f conftest.er1
7890 cat conftest.err >&5
7891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7892 (exit $ac_status); } && {
7893 test -z "$ac_c_werror_flag" ||
7894 test ! -s conftest.err
7895 } && test -s conftest.$ac_objext; then
6509 emacs_cv_struct_timeval=yes 7896 emacs_cv_struct_timeval=yes
6510 else 7897 else
6511 emacs_cv_struct_timeval=no 7898 $as_echo "$as_me: failed program was:" >&5
6512 fi 7899 sed 's/^/| /' conftest.$ac_ext >&5
7900
7901 emacs_cv_struct_timeval=no
7902 fi
7903
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 fi 7905 fi
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5 7906 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
6516 $as_echo "$emacs_cv_struct_timeval" >&6; } 7907 $as_echo "$emacs_cv_struct_timeval" >&6; }
6517 HAVE_TIMEVAL=$emacs_cv_struct_timeval 7908 HAVE_TIMEVAL=$emacs_cv_struct_timeval
6518 if test $emacs_cv_struct_timeval = yes; then 7909 if test $emacs_cv_struct_timeval = yes; then
6519 7910
6520 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h 7911 cat >>confdefs.h <<\_ACEOF
6521 7912 #define HAVE_TIMEVAL 1
6522 fi 7913 _ACEOF
6523 7914
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5 7915 fi
7916
7917 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
6525 $as_echo_n "checking for struct exception... " >&6; } 7918 $as_echo_n "checking for struct exception... " >&6; }
6526 if test "${emacs_cv_struct_exception+set}" = set; then : 7919 if test "${emacs_cv_struct_exception+set}" = set; then
6527 $as_echo_n "(cached) " >&6 7920 $as_echo_n "(cached) " >&6
6528 else 7921 else
6529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h. */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */ 7927 /* end confdefs.h. */
6531 #include <math.h> 7928 #include <math.h>
6532 int 7929 int
6533 main () 7930 main ()
6534 { 7931 {
6535 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; 7932 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
6536 ; 7933 ;
6537 return 0; 7934 return 0;
6538 } 7935 }
6539 _ACEOF 7936 _ACEOF
6540 if ac_fn_c_try_compile "$LINENO"; then : 7937 rm -f conftest.$ac_objext
7938 if { (ac_try="$ac_compile"
7939 case "(($ac_try" in
7940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7941 *) ac_try_echo=$ac_try;;
7942 esac
7943 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7944 $as_echo "$ac_try_echo") >&5
7945 (eval "$ac_compile") 2>conftest.er1
7946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest.$ac_objext; then
6541 emacs_cv_struct_exception=yes 7955 emacs_cv_struct_exception=yes
6542 else 7956 else
6543 emacs_cv_struct_exception=no 7957 $as_echo "$as_me: failed program was:" >&5
6544 fi 7958 sed 's/^/| /' conftest.$ac_ext >&5
7959
7960 emacs_cv_struct_exception=no
7961 fi
7962
6545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6546 fi 7964 fi
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5 7965 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
6548 $as_echo "$emacs_cv_struct_exception" >&6; } 7966 $as_echo "$emacs_cv_struct_exception" >&6; }
6549 HAVE_EXCEPTION=$emacs_cv_struct_exception 7967 HAVE_EXCEPTION=$emacs_cv_struct_exception
6550 if test $emacs_cv_struct_exception != yes; then 7968 if test $emacs_cv_struct_exception != yes; then
6551 7969
6552 $as_echo "#define NO_MATHERR 1" >>confdefs.h 7970 cat >>confdefs.h <<\_ACEOF
6553 7971 #define NO_MATHERR 1
6554 fi 7972 _ACEOF
7973
7974 fi
7975
6555 7976
6556 for ac_header in sys/socket.h 7977 for ac_header in sys/socket.h
6557 do : 7978 do
6558 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default" 7979 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6559 if test "x$ac_cv_header_sys_socket_h" = x""yes; then : 7980 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7981 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7982 $as_echo_n "checking for $ac_header... " >&6; }
7983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7984 $as_echo_n "(cached) " >&6
7985 fi
7986 ac_res=`eval 'as_val=${'$as_ac_Header'}
7987 $as_echo "$as_val"'`
7988 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7989 $as_echo "$ac_res" >&6; }
7990 else
7991 # Is the header compilable?
7992 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7993 $as_echo_n "checking $ac_header usability... " >&6; }
7994 cat >conftest.$ac_ext <<_ACEOF
7995 /* confdefs.h. */
7996 _ACEOF
7997 cat confdefs.h >>conftest.$ac_ext
7998 cat >>conftest.$ac_ext <<_ACEOF
7999 /* end confdefs.h. */
8000 $ac_includes_default
8001 #include <$ac_header>
8002 _ACEOF
8003 rm -f conftest.$ac_objext
8004 if { (ac_try="$ac_compile"
8005 case "(($ac_try" in
8006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8007 *) ac_try_echo=$ac_try;;
8008 esac
8009 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8010 $as_echo "$ac_try_echo") >&5
8011 (eval "$ac_compile") 2>conftest.er1
8012 ac_status=$?
8013 grep -v '^ *+' conftest.er1 >conftest.err
8014 rm -f conftest.er1
8015 cat conftest.err >&5
8016 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } && {
8018 test -z "$ac_c_werror_flag" ||
8019 test ! -s conftest.err
8020 } && test -s conftest.$ac_objext; then
8021 ac_header_compiler=yes
8022 else
8023 $as_echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8025
8026 ac_header_compiler=no
8027 fi
8028
8029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8030 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8031 $as_echo "$ac_header_compiler" >&6; }
8032
8033 # Is the header present?
8034 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
8035 $as_echo_n "checking $ac_header presence... " >&6; }
8036 cat >conftest.$ac_ext <<_ACEOF
8037 /* confdefs.h. */
8038 _ACEOF
8039 cat confdefs.h >>conftest.$ac_ext
8040 cat >>conftest.$ac_ext <<_ACEOF
8041 /* end confdefs.h. */
8042 #include <$ac_header>
8043 _ACEOF
8044 if { (ac_try="$ac_cpp conftest.$ac_ext"
8045 case "(($ac_try" in
8046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8048 esac
8049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8050 $as_echo "$ac_try_echo") >&5
8051 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } >/dev/null && {
8058 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 }; then
8061 ac_header_preproc=yes
8062 else
8063 $as_echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8065
8066 ac_header_preproc=no
8067 fi
8068
8069 rm -f conftest.err conftest.$ac_ext
8070 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8071 $as_echo "$ac_header_preproc" >&6; }
8072
8073 # So? What about this header?
8074 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8075 yes:no: )
8076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8077 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8078 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8079 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8080 ac_header_preproc=yes
8081 ;;
8082 no:yes:* )
8083 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8084 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8085 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8086 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8087 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8088 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8089 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8090 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8091 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8092 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8093 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8094 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8095
8096 ;;
8097 esac
8098 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8099 $as_echo_n "checking for $ac_header... " >&6; }
8100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8101 $as_echo_n "(cached) " >&6
8102 else
8103 eval "$as_ac_Header=\$ac_header_preproc"
8104 fi
8105 ac_res=`eval 'as_val=${'$as_ac_Header'}
8106 $as_echo "$as_val"'`
8107 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8108 $as_echo "$ac_res" >&6; }
8109
8110 fi
8111 if test `eval 'as_val=${'$as_ac_Header'}
8112 $as_echo "$as_val"'` = yes; then
6560 cat >>confdefs.h <<_ACEOF 8113 cat >>confdefs.h <<_ACEOF
6561 #define HAVE_SYS_SOCKET_H 1 8114 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6562 _ACEOF 8115 _ACEOF
6563 8116
6564 fi 8117 fi
6565 8118
6566 done 8119 done
6567 8120
8121
6568 for ac_header in net/if.h 8122 for ac_header in net/if.h
6569 do : 8123 do
6570 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default 8124 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8125 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
8126 $as_echo_n "checking for $ac_header... " >&6; }
8127 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8128 $as_echo_n "(cached) " >&6
8129 else
8130 cat >conftest.$ac_ext <<_ACEOF
8131 /* confdefs.h. */
8132 _ACEOF
8133 cat confdefs.h >>conftest.$ac_ext
8134 cat >>conftest.$ac_ext <<_ACEOF
8135 /* end confdefs.h. */
8136 $ac_includes_default
6571 #if HAVE_SYS_SOCKET_H 8137 #if HAVE_SYS_SOCKET_H
6572 #include <sys/socket.h> 8138 #include <sys/socket.h>
6573 #endif 8139 #endif
6574 " 8140
6575 if test "x$ac_cv_header_net_if_h" = x""yes; then : 8141 #include <$ac_header>
8142 _ACEOF
8143 rm -f conftest.$ac_objext
8144 if { (ac_try="$ac_compile"
8145 case "(($ac_try" in
8146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8148 esac
8149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8150 $as_echo "$ac_try_echo") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8161 eval "$as_ac_Header=yes"
8162 else
8163 $as_echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8165
8166 eval "$as_ac_Header=no"
8167 fi
8168
8169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8170 fi
8171 ac_res=`eval 'as_val=${'$as_ac_Header'}
8172 $as_echo "$as_val"'`
8173 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
8174 $as_echo "$ac_res" >&6; }
8175 if test `eval 'as_val=${'$as_ac_Header'}
8176 $as_echo "$as_val"'` = yes; then
6576 cat >>confdefs.h <<_ACEOF 8177 cat >>confdefs.h <<_ACEOF
6577 #define HAVE_NET_IF_H 1 8178 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6578 _ACEOF 8179 _ACEOF
6579 8180
6580 fi 8181 fi
6581 8182
6582 done 8183 done
6583 8184
6584 8185
6585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 8186 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
6586 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 8187 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
6587 if test "${ac_cv_struct_tm+set}" = set; then : 8188 if test "${ac_cv_struct_tm+set}" = set; then
6588 $as_echo_n "(cached) " >&6 8189 $as_echo_n "(cached) " >&6
6589 else 8190 else
6590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8191 cat >conftest.$ac_ext <<_ACEOF
8192 /* confdefs.h. */
8193 _ACEOF
8194 cat confdefs.h >>conftest.$ac_ext
8195 cat >>conftest.$ac_ext <<_ACEOF
6591 /* end confdefs.h. */ 8196 /* end confdefs.h. */
6592 #include <sys/types.h> 8197 #include <sys/types.h>
6593 #include <time.h> 8198 #include <time.h>
6594 8199
6595 int 8200 int
6600 return !p; 8205 return !p;
6601 ; 8206 ;
6602 return 0; 8207 return 0;
6603 } 8208 }
6604 _ACEOF 8209 _ACEOF
6605 if ac_fn_c_try_compile "$LINENO"; then : 8210 rm -f conftest.$ac_objext
8211 if { (ac_try="$ac_compile"
8212 case "(($ac_try" in
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8215 esac
8216 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8217 $as_echo "$ac_try_echo") >&5
8218 (eval "$ac_compile") 2>conftest.er1
8219 ac_status=$?
8220 grep -v '^ *+' conftest.er1 >conftest.err
8221 rm -f conftest.er1
8222 cat conftest.err >&5
8223 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8224 (exit $ac_status); } && {
8225 test -z "$ac_c_werror_flag" ||
8226 test ! -s conftest.err
8227 } && test -s conftest.$ac_objext; then
6606 ac_cv_struct_tm=time.h 8228 ac_cv_struct_tm=time.h
6607 else 8229 else
6608 ac_cv_struct_tm=sys/time.h 8230 $as_echo "$as_me: failed program was:" >&5
6609 fi 8231 sed 's/^/| /' conftest.$ac_ext >&5
8232
8233 ac_cv_struct_tm=sys/time.h
8234 fi
8235
6610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611 fi 8237 fi
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 8238 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
6613 $as_echo "$ac_cv_struct_tm" >&6; } 8239 $as_echo "$ac_cv_struct_tm" >&6; }
6614 if test $ac_cv_struct_tm = sys/time.h; then 8240 if test $ac_cv_struct_tm = sys/time.h; then
6615 8241
6616 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 8242 cat >>confdefs.h <<\_ACEOF
6617 8243 #define TM_IN_SYS_TIME 1
6618 fi 8244 _ACEOF
6619 8245
6620 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h> 8246 fi
8247
8248 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8249 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8250 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8251 $as_echo_n "(cached) " >&6
8252 else
8253 cat >conftest.$ac_ext <<_ACEOF
8254 /* confdefs.h. */
8255 _ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h. */
8259 #include <sys/types.h>
6621 #include <$ac_cv_struct_tm> 8260 #include <$ac_cv_struct_tm>
6622 8261
6623 " 8262
6624 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then : 8263 int
8264 main ()
8265 {
8266 static struct tm ac_aggr;
8267 if (ac_aggr.tm_zone)
8268 return 0;
8269 ;
8270 return 0;
8271 }
8272 _ACEOF
8273 rm -f conftest.$ac_objext
8274 if { (ac_try="$ac_compile"
8275 case "(($ac_try" in
8276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8278 esac
8279 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8280 $as_echo "$ac_try_echo") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 ac_cv_member_struct_tm_tm_zone=yes
8292 else
8293 $as_echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8295
8296 cat >conftest.$ac_ext <<_ACEOF
8297 /* confdefs.h. */
8298 _ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 #include <sys/types.h>
8303 #include <$ac_cv_struct_tm>
8304
8305
8306 int
8307 main ()
8308 {
8309 static struct tm ac_aggr;
8310 if (sizeof ac_aggr.tm_zone)
8311 return 0;
8312 ;
8313 return 0;
8314 }
8315 _ACEOF
8316 rm -f conftest.$ac_objext
8317 if { (ac_try="$ac_compile"
8318 case "(($ac_try" in
8319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8320 *) ac_try_echo=$ac_try;;
8321 esac
8322 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8323 $as_echo "$ac_try_echo") >&5
8324 (eval "$ac_compile") 2>conftest.er1
8325 ac_status=$?
8326 grep -v '^ *+' conftest.er1 >conftest.err
8327 rm -f conftest.er1
8328 cat conftest.err >&5
8329 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8330 (exit $ac_status); } && {
8331 test -z "$ac_c_werror_flag" ||
8332 test ! -s conftest.err
8333 } && test -s conftest.$ac_objext; then
8334 ac_cv_member_struct_tm_tm_zone=yes
8335 else
8336 $as_echo "$as_me: failed program was:" >&5
8337 sed 's/^/| /' conftest.$ac_ext >&5
8338
8339 ac_cv_member_struct_tm_tm_zone=no
8340 fi
8341
8342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8343 fi
8344
8345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8346 fi
8347 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8348 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8349 if test $ac_cv_member_struct_tm_tm_zone = yes; then
6625 8350
6626 cat >>confdefs.h <<_ACEOF 8351 cat >>confdefs.h <<_ACEOF
6627 #define HAVE_STRUCT_TM_TM_ZONE 1 8352 #define HAVE_STRUCT_TM_TM_ZONE 1
6628 _ACEOF 8353 _ACEOF
6629 8354
6630 8355
6631 fi 8356 fi
6632 8357
6633 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 8358 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
6634 8359
6635 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h 8360 cat >>confdefs.h <<\_ACEOF
6636 8361 #define HAVE_TM_ZONE 1
6637 else 8362 _ACEOF
6638 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h> 8363
6639 " 8364 else
6640 if test "x$ac_cv_have_decl_tzname" = x""yes; then : 8365 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5
6641 ac_have_decl=1 8366 $as_echo_n "checking whether tzname is declared... " >&6; }
6642 else 8367 if test "${ac_cv_have_decl_tzname+set}" = set; then
6643 ac_have_decl=0 8368 $as_echo_n "(cached) " >&6
6644 fi 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 #include <time.h>
8377
8378 int
8379 main ()
8380 {
8381 #ifndef tzname
8382 (void) tzname;
8383 #endif
8384
8385 ;
8386 return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8391 case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394 esac
8395 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8396 $as_echo "$ac_try_echo") >&5
8397 (eval "$ac_compile") 2>conftest.er1
8398 ac_status=$?
8399 grep -v '^ *+' conftest.er1 >conftest.err
8400 rm -f conftest.er1
8401 cat conftest.err >&5
8402 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8403 (exit $ac_status); } && {
8404 test -z "$ac_c_werror_flag" ||
8405 test ! -s conftest.err
8406 } && test -s conftest.$ac_objext; then
8407 ac_cv_have_decl_tzname=yes
8408 else
8409 $as_echo "$as_me: failed program was:" >&5
8410 sed 's/^/| /' conftest.$ac_ext >&5
8411
8412 ac_cv_have_decl_tzname=no
8413 fi
8414
8415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8416 fi
8417 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8418 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8419 if test $ac_cv_have_decl_tzname = yes; then
6645 8420
6646 cat >>confdefs.h <<_ACEOF 8421 cat >>confdefs.h <<_ACEOF
6647 #define HAVE_DECL_TZNAME $ac_have_decl 8422 #define HAVE_DECL_TZNAME 1
6648 _ACEOF 8423 _ACEOF
6649 8424
6650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5 8425
8426 else
8427 cat >>confdefs.h <<_ACEOF
8428 #define HAVE_DECL_TZNAME 0
8429 _ACEOF
8430
8431
8432 fi
8433
8434
8435 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
6651 $as_echo_n "checking for tzname... " >&6; } 8436 $as_echo_n "checking for tzname... " >&6; }
6652 if test "${ac_cv_var_tzname+set}" = set; then : 8437 if test "${ac_cv_var_tzname+set}" = set; then
6653 $as_echo_n "(cached) " >&6 8438 $as_echo_n "(cached) " >&6
6654 else 8439 else
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8440 cat >conftest.$ac_ext <<_ACEOF
8441 /* confdefs.h. */
8442 _ACEOF
8443 cat confdefs.h >>conftest.$ac_ext
8444 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */ 8445 /* end confdefs.h. */
6657 #include <time.h> 8446 #include <time.h>
6658 #if !HAVE_DECL_TZNAME 8447 #if !HAVE_DECL_TZNAME
6659 extern char *tzname[]; 8448 extern char *tzname[];
6660 #endif 8449 #endif
6665 return tzname[0][0]; 8454 return tzname[0][0];
6666 ; 8455 ;
6667 return 0; 8456 return 0;
6668 } 8457 }
6669 _ACEOF 8458 _ACEOF
6670 if ac_fn_c_try_link "$LINENO"; then : 8459 rm -f conftest.$ac_objext conftest$ac_exeext
8460 if { (ac_try="$ac_link"
8461 case "(($ac_try" in
8462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8463 *) ac_try_echo=$ac_try;;
8464 esac
8465 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8466 $as_echo "$ac_try_echo") >&5
8467 (eval "$ac_link") 2>conftest.er1
8468 ac_status=$?
8469 grep -v '^ *+' conftest.er1 >conftest.err
8470 rm -f conftest.er1
8471 cat conftest.err >&5
8472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } && {
8474 test -z "$ac_c_werror_flag" ||
8475 test ! -s conftest.err
8476 } && test -s conftest$ac_exeext && {
8477 test "$cross_compiling" = yes ||
8478 $as_test_x conftest$ac_exeext
8479 }; then
6671 ac_cv_var_tzname=yes 8480 ac_cv_var_tzname=yes
6672 else 8481 else
6673 ac_cv_var_tzname=no 8482 $as_echo "$as_me: failed program was:" >&5
6674 fi 8483 sed 's/^/| /' conftest.$ac_ext >&5
6675 rm -f core conftest.err conftest.$ac_objext \ 8484
6676 conftest$ac_exeext conftest.$ac_ext 8485 ac_cv_var_tzname=no
6677 fi 8486 fi
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5 8487
8488 rm -rf conftest.dSYM
8489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8490 conftest$ac_exeext conftest.$ac_ext
8491 fi
8492 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
6679 $as_echo "$ac_cv_var_tzname" >&6; } 8493 $as_echo "$ac_cv_var_tzname" >&6; }
6680 if test $ac_cv_var_tzname = yes; then 8494 if test $ac_cv_var_tzname = yes; then
6681 8495
6682 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h 8496 cat >>confdefs.h <<\_ACEOF
8497 #define HAVE_TZNAME 1
8498 _ACEOF
6683 8499
6684 fi 8500 fi
6685 fi 8501 fi
6686 8502
6687 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h> 8503 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
6688 " 8504 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; }
6689 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then : 8505 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
6690 8506 $as_echo_n "(cached) " >&6
6691 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h 8507 else
6692 8508 cat >conftest.$ac_ext <<_ACEOF
6693 fi 8509 /* confdefs.h. */
6694 8510 _ACEOF
6695 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default 8511 cat confdefs.h >>conftest.$ac_ext
8512 cat >>conftest.$ac_ext <<_ACEOF
8513 /* end confdefs.h. */
8514 #include <time.h>
8515
8516 int
8517 main ()
8518 {
8519 static struct tm ac_aggr;
8520 if (ac_aggr.tm_gmtoff)
8521 return 0;
8522 ;
8523 return 0;
8524 }
8525 _ACEOF
8526 rm -f conftest.$ac_objext
8527 if { (ac_try="$ac_compile"
8528 case "(($ac_try" in
8529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8530 *) ac_try_echo=$ac_try;;
8531 esac
8532 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8533 $as_echo "$ac_try_echo") >&5
8534 (eval "$ac_compile") 2>conftest.er1
8535 ac_status=$?
8536 grep -v '^ *+' conftest.er1 >conftest.err
8537 rm -f conftest.er1
8538 cat conftest.err >&5
8539 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8540 (exit $ac_status); } && {
8541 test -z "$ac_c_werror_flag" ||
8542 test ! -s conftest.err
8543 } && test -s conftest.$ac_objext; then
8544 ac_cv_member_struct_tm_tm_gmtoff=yes
8545 else
8546 $as_echo "$as_me: failed program was:" >&5
8547 sed 's/^/| /' conftest.$ac_ext >&5
8548
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h. */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 #include <time.h>
8556
8557 int
8558 main ()
8559 {
8560 static struct tm ac_aggr;
8561 if (sizeof ac_aggr.tm_gmtoff)
8562 return 0;
8563 ;
8564 return 0;
8565 }
8566 _ACEOF
8567 rm -f conftest.$ac_objext
8568 if { (ac_try="$ac_compile"
8569 case "(($ac_try" in
8570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8571 *) ac_try_echo=$ac_try;;
8572 esac
8573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8574 $as_echo "$ac_try_echo") >&5
8575 (eval "$ac_compile") 2>conftest.er1
8576 ac_status=$?
8577 grep -v '^ *+' conftest.er1 >conftest.err
8578 rm -f conftest.er1
8579 cat conftest.err >&5
8580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8581 (exit $ac_status); } && {
8582 test -z "$ac_c_werror_flag" ||
8583 test ! -s conftest.err
8584 } && test -s conftest.$ac_objext; then
8585 ac_cv_member_struct_tm_tm_gmtoff=yes
8586 else
8587 $as_echo "$as_me: failed program was:" >&5
8588 sed 's/^/| /' conftest.$ac_ext >&5
8589
8590 ac_cv_member_struct_tm_tm_gmtoff=no
8591 fi
8592
8593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8594 fi
8595
8596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8597 fi
8598 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8599 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8600 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8601
8602 cat >>confdefs.h <<\_ACEOF
8603 #define HAVE_TM_GMTOFF 1
8604 _ACEOF
8605
8606 fi
8607
8608 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8609 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8610 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8611 $as_echo_n "(cached) " >&6
8612 else
8613 cat >conftest.$ac_ext <<_ACEOF
8614 /* confdefs.h. */
8615 _ACEOF
8616 cat confdefs.h >>conftest.$ac_ext
8617 cat >>conftest.$ac_ext <<_ACEOF
8618 /* end confdefs.h. */
8619 $ac_includes_default
6696 #if HAVE_SYS_SOCKET_H 8620 #if HAVE_SYS_SOCKET_H
6697 #include <sys/socket.h> 8621 #include <sys/socket.h>
6698 #endif 8622 #endif
6699 #if HAVE_NET_IF_H 8623 #if HAVE_NET_IF_H
6700 #include <net/if.h> 8624 #include <net/if.h>
6701 #endif 8625 #endif
6702 " 8626
6703 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then : 8627 int
6704 8628 main ()
6705 cat >>confdefs.h <<_ACEOF 8629 {
6706 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 8630 static struct ifreq ac_aggr;
6707 _ACEOF 8631 if (ac_aggr.ifr_flags)
6708 8632 return 0;
6709 8633 ;
6710 fi 8634 return 0;
6711 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default 8635 }
8636 _ACEOF
8637 rm -f conftest.$ac_objext
8638 if { (ac_try="$ac_compile"
8639 case "(($ac_try" in
8640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8641 *) ac_try_echo=$ac_try;;
8642 esac
8643 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8644 $as_echo "$ac_try_echo") >&5
8645 (eval "$ac_compile") 2>conftest.er1
8646 ac_status=$?
8647 grep -v '^ *+' conftest.er1 >conftest.err
8648 rm -f conftest.er1
8649 cat conftest.err >&5
8650 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8651 (exit $ac_status); } && {
8652 test -z "$ac_c_werror_flag" ||
8653 test ! -s conftest.err
8654 } && test -s conftest.$ac_objext; then
8655 ac_cv_member_struct_ifreq_ifr_flags=yes
8656 else
8657 $as_echo "$as_me: failed program was:" >&5
8658 sed 's/^/| /' conftest.$ac_ext >&5
8659
8660 cat >conftest.$ac_ext <<_ACEOF
8661 /* confdefs.h. */
8662 _ACEOF
8663 cat confdefs.h >>conftest.$ac_ext
8664 cat >>conftest.$ac_ext <<_ACEOF
8665 /* end confdefs.h. */
8666 $ac_includes_default
6712 #if HAVE_SYS_SOCKET_H 8667 #if HAVE_SYS_SOCKET_H
6713 #include <sys/socket.h> 8668 #include <sys/socket.h>
6714 #endif 8669 #endif
6715 #if HAVE_NET_IF_H 8670 #if HAVE_NET_IF_H
6716 #include <net/if.h> 8671 #include <net/if.h>
6717 #endif 8672 #endif
6718 " 8673
6719 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then : 8674 int
8675 main ()
8676 {
8677 static struct ifreq ac_aggr;
8678 if (sizeof ac_aggr.ifr_flags)
8679 return 0;
8680 ;
8681 return 0;
8682 }
8683 _ACEOF
8684 rm -f conftest.$ac_objext
8685 if { (ac_try="$ac_compile"
8686 case "(($ac_try" in
8687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8689 esac
8690 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8691 $as_echo "$ac_try_echo") >&5
8692 (eval "$ac_compile") 2>conftest.er1
8693 ac_status=$?
8694 grep -v '^ *+' conftest.er1 >conftest.err
8695 rm -f conftest.er1
8696 cat conftest.err >&5
8697 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8698 (exit $ac_status); } && {
8699 test -z "$ac_c_werror_flag" ||
8700 test ! -s conftest.err
8701 } && test -s conftest.$ac_objext; then
8702 ac_cv_member_struct_ifreq_ifr_flags=yes
8703 else
8704 $as_echo "$as_me: failed program was:" >&5
8705 sed 's/^/| /' conftest.$ac_ext >&5
8706
8707 ac_cv_member_struct_ifreq_ifr_flags=no
8708 fi
8709
8710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 fi
8712
8713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8714 fi
8715 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8716 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8717 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
6720 8718
6721 cat >>confdefs.h <<_ACEOF 8719 cat >>confdefs.h <<_ACEOF
6722 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 8720 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
6723 _ACEOF 8721 _ACEOF
6724 8722
6725 8723
6726 fi 8724 fi
6727 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default 8725 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8726 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8727 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8728 $as_echo_n "(cached) " >&6
8729 else
8730 cat >conftest.$ac_ext <<_ACEOF
8731 /* confdefs.h. */
8732 _ACEOF
8733 cat confdefs.h >>conftest.$ac_ext
8734 cat >>conftest.$ac_ext <<_ACEOF
8735 /* end confdefs.h. */
8736 $ac_includes_default
6728 #if HAVE_SYS_SOCKET_H 8737 #if HAVE_SYS_SOCKET_H
6729 #include <sys/socket.h> 8738 #include <sys/socket.h>
6730 #endif 8739 #endif
6731 #if HAVE_NET_IF_H 8740 #if HAVE_NET_IF_H
6732 #include <net/if.h> 8741 #include <net/if.h>
6733 #endif 8742 #endif
6734 " 8743
6735 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then : 8744 int
6736 8745 main ()
6737 cat >>confdefs.h <<_ACEOF 8746 {
6738 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1 8747 static struct ifreq ac_aggr;
6739 _ACEOF 8748 if (ac_aggr.ifr_hwaddr)
6740 8749 return 0;
6741 8750 ;
6742 fi 8751 return 0;
6743 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default 8752 }
8753 _ACEOF
8754 rm -f conftest.$ac_objext
8755 if { (ac_try="$ac_compile"
8756 case "(($ac_try" in
8757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8758 *) ac_try_echo=$ac_try;;
8759 esac
8760 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8761 $as_echo "$ac_try_echo") >&5
8762 (eval "$ac_compile") 2>conftest.er1
8763 ac_status=$?
8764 grep -v '^ *+' conftest.er1 >conftest.err
8765 rm -f conftest.er1
8766 cat conftest.err >&5
8767 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } && {
8769 test -z "$ac_c_werror_flag" ||
8770 test ! -s conftest.err
8771 } && test -s conftest.$ac_objext; then
8772 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8773 else
8774 $as_echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8776
8777 cat >conftest.$ac_ext <<_ACEOF
8778 /* confdefs.h. */
8779 _ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8783 $ac_includes_default
6744 #if HAVE_SYS_SOCKET_H 8784 #if HAVE_SYS_SOCKET_H
6745 #include <sys/socket.h> 8785 #include <sys/socket.h>
6746 #endif 8786 #endif
6747 #if HAVE_NET_IF_H 8787 #if HAVE_NET_IF_H
6748 #include <net/if.h> 8788 #include <net/if.h>
6749 #endif 8789 #endif
6750 " 8790
6751 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then : 8791 int
8792 main ()
8793 {
8794 static struct ifreq ac_aggr;
8795 if (sizeof ac_aggr.ifr_hwaddr)
8796 return 0;
8797 ;
8798 return 0;
8799 }
8800 _ACEOF
8801 rm -f conftest.$ac_objext
8802 if { (ac_try="$ac_compile"
8803 case "(($ac_try" in
8804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8805 *) ac_try_echo=$ac_try;;
8806 esac
8807 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8808 $as_echo "$ac_try_echo") >&5
8809 (eval "$ac_compile") 2>conftest.er1
8810 ac_status=$?
8811 grep -v '^ *+' conftest.er1 >conftest.err
8812 rm -f conftest.er1
8813 cat conftest.err >&5
8814 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } && {
8816 test -z "$ac_c_werror_flag" ||
8817 test ! -s conftest.err
8818 } && test -s conftest.$ac_objext; then
8819 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8820 else
8821 $as_echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8823
8824 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8825 fi
8826
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 fi
8829
8830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8831 fi
8832 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8833 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8834 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
6752 8835
6753 cat >>confdefs.h <<_ACEOF 8836 cat >>confdefs.h <<_ACEOF
6754 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1 8837 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
6755 _ACEOF 8838 _ACEOF
6756 8839
6757 8840
6758 fi 8841 fi
6759 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default 8842 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8843 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8844 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8845 $as_echo_n "(cached) " >&6
8846 else
8847 cat >conftest.$ac_ext <<_ACEOF
8848 /* confdefs.h. */
8849 _ACEOF
8850 cat confdefs.h >>conftest.$ac_ext
8851 cat >>conftest.$ac_ext <<_ACEOF
8852 /* end confdefs.h. */
8853 $ac_includes_default
6760 #if HAVE_SYS_SOCKET_H 8854 #if HAVE_SYS_SOCKET_H
6761 #include <sys/socket.h> 8855 #include <sys/socket.h>
6762 #endif 8856 #endif
6763 #if HAVE_NET_IF_H 8857 #if HAVE_NET_IF_H
6764 #include <net/if.h> 8858 #include <net/if.h>
6765 #endif 8859 #endif
6766 " 8860
6767 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then : 8861 int
8862 main ()
8863 {
8864 static struct ifreq ac_aggr;
8865 if (ac_aggr.ifr_netmask)
8866 return 0;
8867 ;
8868 return 0;
8869 }
8870 _ACEOF
8871 rm -f conftest.$ac_objext
8872 if { (ac_try="$ac_compile"
8873 case "(($ac_try" in
8874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8875 *) ac_try_echo=$ac_try;;
8876 esac
8877 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8878 $as_echo "$ac_try_echo") >&5
8879 (eval "$ac_compile") 2>conftest.er1
8880 ac_status=$?
8881 grep -v '^ *+' conftest.er1 >conftest.err
8882 rm -f conftest.er1
8883 cat conftest.err >&5
8884 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8885 (exit $ac_status); } && {
8886 test -z "$ac_c_werror_flag" ||
8887 test ! -s conftest.err
8888 } && test -s conftest.$ac_objext; then
8889 ac_cv_member_struct_ifreq_ifr_netmask=yes
8890 else
8891 $as_echo "$as_me: failed program was:" >&5
8892 sed 's/^/| /' conftest.$ac_ext >&5
8893
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h. */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900 $ac_includes_default
8901 #if HAVE_SYS_SOCKET_H
8902 #include <sys/socket.h>
8903 #endif
8904 #if HAVE_NET_IF_H
8905 #include <net/if.h>
8906 #endif
8907
8908 int
8909 main ()
8910 {
8911 static struct ifreq ac_aggr;
8912 if (sizeof ac_aggr.ifr_netmask)
8913 return 0;
8914 ;
8915 return 0;
8916 }
8917 _ACEOF
8918 rm -f conftest.$ac_objext
8919 if { (ac_try="$ac_compile"
8920 case "(($ac_try" in
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8923 esac
8924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8925 $as_echo "$ac_try_echo") >&5
8926 (eval "$ac_compile") 2>conftest.er1
8927 ac_status=$?
8928 grep -v '^ *+' conftest.er1 >conftest.err
8929 rm -f conftest.er1
8930 cat conftest.err >&5
8931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8932 (exit $ac_status); } && {
8933 test -z "$ac_c_werror_flag" ||
8934 test ! -s conftest.err
8935 } && test -s conftest.$ac_objext; then
8936 ac_cv_member_struct_ifreq_ifr_netmask=yes
8937 else
8938 $as_echo "$as_me: failed program was:" >&5
8939 sed 's/^/| /' conftest.$ac_ext >&5
8940
8941 ac_cv_member_struct_ifreq_ifr_netmask=no
8942 fi
8943
8944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8945 fi
8946
8947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8948 fi
8949 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8950 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8951 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8952
8953 cat >>confdefs.h <<_ACEOF
8954 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8955 _ACEOF
8956
8957
8958 fi
8959 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8960 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8961 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8962 $as_echo_n "(cached) " >&6
8963 else
8964 cat >conftest.$ac_ext <<_ACEOF
8965 /* confdefs.h. */
8966 _ACEOF
8967 cat confdefs.h >>conftest.$ac_ext
8968 cat >>conftest.$ac_ext <<_ACEOF
8969 /* end confdefs.h. */
8970 $ac_includes_default
8971 #if HAVE_SYS_SOCKET_H
8972 #include <sys/socket.h>
8973 #endif
8974 #if HAVE_NET_IF_H
8975 #include <net/if.h>
8976 #endif
8977
8978 int
8979 main ()
8980 {
8981 static struct ifreq ac_aggr;
8982 if (ac_aggr.ifr_broadaddr)
8983 return 0;
8984 ;
8985 return 0;
8986 }
8987 _ACEOF
8988 rm -f conftest.$ac_objext
8989 if { (ac_try="$ac_compile"
8990 case "(($ac_try" in
8991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8992 *) ac_try_echo=$ac_try;;
8993 esac
8994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8995 $as_echo "$ac_try_echo") >&5
8996 (eval "$ac_compile") 2>conftest.er1
8997 ac_status=$?
8998 grep -v '^ *+' conftest.er1 >conftest.err
8999 rm -f conftest.er1
9000 cat conftest.err >&5
9001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9002 (exit $ac_status); } && {
9003 test -z "$ac_c_werror_flag" ||
9004 test ! -s conftest.err
9005 } && test -s conftest.$ac_objext; then
9006 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9007 else
9008 $as_echo "$as_me: failed program was:" >&5
9009 sed 's/^/| /' conftest.$ac_ext >&5
9010
9011 cat >conftest.$ac_ext <<_ACEOF
9012 /* confdefs.h. */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9017 $ac_includes_default
9018 #if HAVE_SYS_SOCKET_H
9019 #include <sys/socket.h>
9020 #endif
9021 #if HAVE_NET_IF_H
9022 #include <net/if.h>
9023 #endif
9024
9025 int
9026 main ()
9027 {
9028 static struct ifreq ac_aggr;
9029 if (sizeof ac_aggr.ifr_broadaddr)
9030 return 0;
9031 ;
9032 return 0;
9033 }
9034 _ACEOF
9035 rm -f conftest.$ac_objext
9036 if { (ac_try="$ac_compile"
9037 case "(($ac_try" in
9038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9039 *) ac_try_echo=$ac_try;;
9040 esac
9041 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9042 $as_echo "$ac_try_echo") >&5
9043 (eval "$ac_compile") 2>conftest.er1
9044 ac_status=$?
9045 grep -v '^ *+' conftest.er1 >conftest.err
9046 rm -f conftest.er1
9047 cat conftest.err >&5
9048 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9049 (exit $ac_status); } && {
9050 test -z "$ac_c_werror_flag" ||
9051 test ! -s conftest.err
9052 } && test -s conftest.$ac_objext; then
9053 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9054 else
9055 $as_echo "$as_me: failed program was:" >&5
9056 sed 's/^/| /' conftest.$ac_ext >&5
9057
9058 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9059 fi
9060
9061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9062 fi
9063
9064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9065 fi
9066 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9067 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9068 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9069
9070 cat >>confdefs.h <<_ACEOF
9071 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9072 _ACEOF
9073
9074
9075 fi
9076 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9077 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
9078 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9079 $as_echo_n "(cached) " >&6
9080 else
9081 cat >conftest.$ac_ext <<_ACEOF
9082 /* confdefs.h. */
9083 _ACEOF
9084 cat confdefs.h >>conftest.$ac_ext
9085 cat >>conftest.$ac_ext <<_ACEOF
9086 /* end confdefs.h. */
9087 $ac_includes_default
9088 #if HAVE_SYS_SOCKET_H
9089 #include <sys/socket.h>
9090 #endif
9091 #if HAVE_NET_IF_H
9092 #include <net/if.h>
9093 #endif
9094
9095 int
9096 main ()
9097 {
9098 static struct ifreq ac_aggr;
9099 if (ac_aggr.ifr_addr)
9100 return 0;
9101 ;
9102 return 0;
9103 }
9104 _ACEOF
9105 rm -f conftest.$ac_objext
9106 if { (ac_try="$ac_compile"
9107 case "(($ac_try" in
9108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9109 *) ac_try_echo=$ac_try;;
9110 esac
9111 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9112 $as_echo "$ac_try_echo") >&5
9113 (eval "$ac_compile") 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } && {
9120 test -z "$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 } && test -s conftest.$ac_objext; then
9123 ac_cv_member_struct_ifreq_ifr_addr=yes
9124 else
9125 $as_echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9127
9128 cat >conftest.$ac_ext <<_ACEOF
9129 /* confdefs.h. */
9130 _ACEOF
9131 cat confdefs.h >>conftest.$ac_ext
9132 cat >>conftest.$ac_ext <<_ACEOF
9133 /* end confdefs.h. */
9134 $ac_includes_default
9135 #if HAVE_SYS_SOCKET_H
9136 #include <sys/socket.h>
9137 #endif
9138 #if HAVE_NET_IF_H
9139 #include <net/if.h>
9140 #endif
9141
9142 int
9143 main ()
9144 {
9145 static struct ifreq ac_aggr;
9146 if (sizeof ac_aggr.ifr_addr)
9147 return 0;
9148 ;
9149 return 0;
9150 }
9151 _ACEOF
9152 rm -f conftest.$ac_objext
9153 if { (ac_try="$ac_compile"
9154 case "(($ac_try" in
9155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9156 *) ac_try_echo=$ac_try;;
9157 esac
9158 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9159 $as_echo "$ac_try_echo") >&5
9160 (eval "$ac_compile") 2>conftest.er1
9161 ac_status=$?
9162 grep -v '^ *+' conftest.er1 >conftest.err
9163 rm -f conftest.er1
9164 cat conftest.err >&5
9165 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } && {
9167 test -z "$ac_c_werror_flag" ||
9168 test ! -s conftest.err
9169 } && test -s conftest.$ac_objext; then
9170 ac_cv_member_struct_ifreq_ifr_addr=yes
9171 else
9172 $as_echo "$as_me: failed program was:" >&5
9173 sed 's/^/| /' conftest.$ac_ext >&5
9174
9175 ac_cv_member_struct_ifreq_ifr_addr=no
9176 fi
9177
9178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9179 fi
9180
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 fi
9183 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9184 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9185 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
6768 9186
6769 cat >>confdefs.h <<_ACEOF 9187 cat >>confdefs.h <<_ACEOF
6770 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 9188 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
6771 _ACEOF 9189 _ACEOF
6772 9190
6773 9191
6774 fi 9192 fi
6775 9193
6776 9194
6777 9195
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 9196 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5
6779 $as_echo_n "checking for function prototypes... " >&6; } 9197 $as_echo_n "checking for function prototypes... " >&6; }
6780 if test "$ac_cv_prog_cc_c89" != no; then 9198 if test "$ac_cv_prog_cc_c89" != no; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9199 { $as_echo "$as_me:$LINENO: result: yes" >&5
6782 $as_echo "yes" >&6; } 9200 $as_echo "yes" >&6; }
6783 9201
6784 $as_echo "#define PROTOTYPES 1" >>confdefs.h 9202 cat >>confdefs.h <<\_ACEOF
6785 9203 #define PROTOTYPES 1
6786 9204 _ACEOF
6787 $as_echo "#define __PROTOTYPES 1" >>confdefs.h 9205
6788 9206
6789 else 9207 cat >>confdefs.h <<\_ACEOF
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9208 #define __PROTOTYPES 1
9209 _ACEOF
9210
9211 else
9212 { $as_echo "$as_me:$LINENO: result: no" >&5
6791 $as_echo "no" >&6; } 9213 $as_echo "no" >&6; }
6792 fi 9214 fi
6793 9215
6794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 9216 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5
6795 $as_echo_n "checking for working volatile... " >&6; } 9217 $as_echo_n "checking for working volatile... " >&6; }
6796 if test "${ac_cv_c_volatile+set}" = set; then : 9218 if test "${ac_cv_c_volatile+set}" = set; then
6797 $as_echo_n "(cached) " >&6 9219 $as_echo_n "(cached) " >&6
6798 else 9220 else
6799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9221 cat >conftest.$ac_ext <<_ACEOF
9222 /* confdefs.h. */
9223 _ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */ 9226 /* end confdefs.h. */
6801 9227
6802 int 9228 int
6803 main () 9229 main ()
6804 { 9230 {
6808 return !x && !y; 9234 return !x && !y;
6809 ; 9235 ;
6810 return 0; 9236 return 0;
6811 } 9237 }
6812 _ACEOF 9238 _ACEOF
6813 if ac_fn_c_try_compile "$LINENO"; then : 9239 rm -f conftest.$ac_objext
9240 if { (ac_try="$ac_compile"
9241 case "(($ac_try" in
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9244 esac
9245 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9246 $as_echo "$ac_try_echo") >&5
9247 (eval "$ac_compile") 2>conftest.er1
9248 ac_status=$?
9249 grep -v '^ *+' conftest.er1 >conftest.err
9250 rm -f conftest.er1
9251 cat conftest.err >&5
9252 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); } && {
9254 test -z "$ac_c_werror_flag" ||
9255 test ! -s conftest.err
9256 } && test -s conftest.$ac_objext; then
6814 ac_cv_c_volatile=yes 9257 ac_cv_c_volatile=yes
6815 else 9258 else
6816 ac_cv_c_volatile=no 9259 $as_echo "$as_me: failed program was:" >&5
6817 fi 9260 sed 's/^/| /' conftest.$ac_ext >&5
9261
9262 ac_cv_c_volatile=no
9263 fi
9264
6818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6819 fi 9266 fi
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 9267 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
6821 $as_echo "$ac_cv_c_volatile" >&6; } 9268 $as_echo "$ac_cv_c_volatile" >&6; }
6822 if test $ac_cv_c_volatile = no; then 9269 if test $ac_cv_c_volatile = no; then
6823 9270
6824 $as_echo "#define volatile /**/" >>confdefs.h 9271 cat >>confdefs.h <<\_ACEOF
6825 9272 #define volatile /**/
6826 fi 9273 _ACEOF
6827 9274
6828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 9275 fi
9276
9277 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
6829 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 9278 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
6830 if test "${ac_cv_c_const+set}" = set; then : 9279 if test "${ac_cv_c_const+set}" = set; then
6831 $as_echo_n "(cached) " >&6 9280 $as_echo_n "(cached) " >&6
6832 else 9281 else
6833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9282 cat >conftest.$ac_ext <<_ACEOF
9283 /* confdefs.h. */
9284 _ACEOF
9285 cat confdefs.h >>conftest.$ac_ext
9286 cat >>conftest.$ac_ext <<_ACEOF
6834 /* end confdefs.h. */ 9287 /* end confdefs.h. */
6835 9288
6836 int 9289 int
6837 main () 9290 main ()
6838 { 9291 {
6888 9341
6889 ; 9342 ;
6890 return 0; 9343 return 0;
6891 } 9344 }
6892 _ACEOF 9345 _ACEOF
6893 if ac_fn_c_try_compile "$LINENO"; then : 9346 rm -f conftest.$ac_objext
9347 if { (ac_try="$ac_compile"
9348 case "(($ac_try" in
9349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350 *) ac_try_echo=$ac_try;;
9351 esac
9352 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9353 $as_echo "$ac_try_echo") >&5
9354 (eval "$ac_compile") 2>conftest.er1
9355 ac_status=$?
9356 grep -v '^ *+' conftest.er1 >conftest.err
9357 rm -f conftest.er1
9358 cat conftest.err >&5
9359 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); } && {
9361 test -z "$ac_c_werror_flag" ||
9362 test ! -s conftest.err
9363 } && test -s conftest.$ac_objext; then
6894 ac_cv_c_const=yes 9364 ac_cv_c_const=yes
6895 else 9365 else
6896 ac_cv_c_const=no 9366 $as_echo "$as_me: failed program was:" >&5
6897 fi 9367 sed 's/^/| /' conftest.$ac_ext >&5
9368
9369 ac_cv_c_const=no
9370 fi
9371
6898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6899 fi 9373 fi
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 9374 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
6901 $as_echo "$ac_cv_c_const" >&6; } 9375 $as_echo "$ac_cv_c_const" >&6; }
6902 if test $ac_cv_c_const = no; then 9376 if test $ac_cv_c_const = no; then
6903 9377
6904 $as_echo "#define const /**/" >>confdefs.h 9378 cat >>confdefs.h <<\_ACEOF
6905 9379 #define const /**/
6906 fi 9380 _ACEOF
6907 9381
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5 9382 fi
9383
9384 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
6909 $as_echo_n "checking for void * support... " >&6; } 9385 $as_echo_n "checking for void * support... " >&6; }
6910 if test "${emacs_cv_void_star+set}" = set; then : 9386 if test "${emacs_cv_void_star+set}" = set; then
6911 $as_echo_n "(cached) " >&6 9387 $as_echo_n "(cached) " >&6
6912 else 9388 else
6913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9389 cat >conftest.$ac_ext <<_ACEOF
9390 /* confdefs.h. */
9391 _ACEOF
9392 cat confdefs.h >>conftest.$ac_ext
9393 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h. */ 9394 /* end confdefs.h. */
6915 9395
6916 int 9396 int
6917 main () 9397 main ()
6918 { 9398 {
6919 void * foo; 9399 void * foo;
6920 ; 9400 ;
6921 return 0; 9401 return 0;
6922 } 9402 }
6923 _ACEOF 9403 _ACEOF
6924 if ac_fn_c_try_compile "$LINENO"; then : 9404 rm -f conftest.$ac_objext
9405 if { (ac_try="$ac_compile"
9406 case "(($ac_try" in
9407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9408 *) ac_try_echo=$ac_try;;
9409 esac
9410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9411 $as_echo "$ac_try_echo") >&5
9412 (eval "$ac_compile") 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } && {
9419 test -z "$ac_c_werror_flag" ||
9420 test ! -s conftest.err
9421 } && test -s conftest.$ac_objext; then
6925 emacs_cv_void_star=yes 9422 emacs_cv_void_star=yes
6926 else 9423 else
6927 emacs_cv_void_star=no 9424 $as_echo "$as_me: failed program was:" >&5
6928 fi 9425 sed 's/^/| /' conftest.$ac_ext >&5
9426
9427 emacs_cv_void_star=no
9428 fi
9429
6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930 fi 9431 fi
6931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5 9432 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
6932 $as_echo "$emacs_cv_void_star" >&6; } 9433 $as_echo "$emacs_cv_void_star" >&6; }
6933 if test $emacs_cv_void_star = yes; then 9434 if test $emacs_cv_void_star = yes; then
6934 $as_echo "#define POINTER_TYPE void" >>confdefs.h 9435 cat >>confdefs.h <<\_ACEOF
6935 9436 #define POINTER_TYPE void
6936 else 9437 _ACEOF
6937 $as_echo "#define POINTER_TYPE char" >>confdefs.h 9438
6938 9439 else
6939 fi 9440 cat >>confdefs.h <<\_ACEOF
6940 9441 #define POINTER_TYPE char
6941 9442 _ACEOF
6942 9443
6943 9444 fi
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 9445
9446
9447
9448
9449
9450 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6945 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 9451 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6946 set x ${MAKE-make} 9452 set x ${MAKE-make}
6947 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 9453 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6948 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 9454 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
6949 $as_echo_n "(cached) " >&6 9455 $as_echo_n "(cached) " >&6
6950 else 9456 else
6951 cat >conftest.make <<\_ACEOF 9457 cat >conftest.make <<\_ACEOF
6952 SHELL = /bin/sh 9458 SHELL = /bin/sh
6953 all: 9459 all:
6961 eval ac_cv_prog_make_${ac_make}_set=no;; 9467 eval ac_cv_prog_make_${ac_make}_set=no;;
6962 esac 9468 esac
6963 rm -f conftest.make 9469 rm -f conftest.make
6964 fi 9470 fi
6965 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 9471 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 9472 { $as_echo "$as_me:$LINENO: result: yes" >&5
6967 $as_echo "yes" >&6; } 9473 $as_echo "yes" >&6; }
6968 SET_MAKE= 9474 SET_MAKE=
6969 else 9475 else
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9476 { $as_echo "$as_me:$LINENO: result: no" >&5
6971 $as_echo "no" >&6; } 9477 $as_echo "no" >&6; }
6972 SET_MAKE="MAKE=${MAKE-make}" 9478 SET_MAKE="MAKE=${MAKE-make}"
6973 fi 9479 fi
6974 9480
6975 9481
6976 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then 9482 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5 9483 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5
6978 $as_echo_n "checking whether we are using GNU Make... " >&6; } 9484 $as_echo_n "checking whether we are using GNU Make... " >&6; }
6979 HAVE_GNU_MAKE=no 9485 HAVE_GNU_MAKE=no
6980 testval=`make --version 2>/dev/null | grep 'GNU Make'` 9486 testval=`make --version 2>/dev/null | grep 'GNU Make'`
6981 if test "x$testval" != x; then 9487 if test "x$testval" != x; then
6982 HAVE_GNU_MAKE=yes 9488 HAVE_GNU_MAKE=yes
6983 else 9489 else
6984 ac_enable_autodepend=no 9490 ac_enable_autodepend=no
6985 fi 9491 fi
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5 9492 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5
6987 $as_echo "$HAVE_GNU_MAKE" >&6; } 9493 $as_echo "$HAVE_GNU_MAKE" >&6; }
6988 if test $HAVE_GNU_MAKE = yes; then 9494 if test $HAVE_GNU_MAKE = yes; then
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5 9495 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5
6990 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } 9496 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
6991 SAVE_CFLAGS="$CFLAGS" 9497 SAVE_CFLAGS="$CFLAGS"
6992 CFLAGS="$CFLAGS -MMD -MF deps.d" 9498 CFLAGS="$CFLAGS -MMD -MF deps.d"
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9499 cat >conftest.$ac_ext <<_ACEOF
9500 /* confdefs.h. */
9501 _ACEOF
9502 cat confdefs.h >>conftest.$ac_ext
9503 cat >>conftest.$ac_ext <<_ACEOF
6994 /* end confdefs.h. */ 9504 /* end confdefs.h. */
6995 9505
6996 int 9506 int
6997 main () 9507 main ()
6998 { 9508 {
6999 9509
7000 ; 9510 ;
7001 return 0; 9511 return 0;
7002 } 9512 }
7003 _ACEOF 9513 _ACEOF
7004 if ac_fn_c_try_compile "$LINENO"; then : 9514 rm -f conftest.$ac_objext
7005 9515 if { (ac_try="$ac_compile"
7006 else 9516 case "(($ac_try" in
7007 ac_enable_autodepend=no 9517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7008 fi 9518 *) ac_try_echo=$ac_try;;
9519 esac
9520 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9521 $as_echo "$ac_try_echo") >&5
9522 (eval "$ac_compile") 2>conftest.er1
9523 ac_status=$?
9524 grep -v '^ *+' conftest.er1 >conftest.err
9525 rm -f conftest.er1
9526 cat conftest.err >&5
9527 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9528 (exit $ac_status); } && {
9529 test -z "$ac_c_werror_flag" ||
9530 test ! -s conftest.err
9531 } && test -s conftest.$ac_objext; then
9532 :
9533 else
9534 $as_echo "$as_me: failed program was:" >&5
9535 sed 's/^/| /' conftest.$ac_ext >&5
9536
9537 ac_enable_autodepend=no
9538 fi
9539
7009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7010 CFLAGS="$SAVE_CFLAGS" 9541 CFLAGS="$SAVE_CFLAGS"
7011 test -f deps.d || ac_enable_autodepend=no 9542 test -f deps.d || ac_enable_autodepend=no
7012 rm -rf deps.d 9543 rm -rf deps.d
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5 9544 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5
7014 $as_echo "$ac_enable_autodepend" >&6; } 9545 $as_echo "$ac_enable_autodepend" >&6; }
7015 fi 9546 fi
7016 if test $ac_enable_autodepend = yes; then 9547 if test $ac_enable_autodepend = yes; then
7017 9548
7018 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h 9549 cat >>confdefs.h <<\_ACEOF
9550 #define AUTO_DEPEND 1
9551 _ACEOF
7019 9552
7020 fi 9553 fi
7021 fi 9554 fi
7022 9555
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5 9556 { $as_echo "$as_me:$LINENO: checking for long file names" >&5
7024 $as_echo_n "checking for long file names... " >&6; } 9557 $as_echo_n "checking for long file names... " >&6; }
7025 if test "${ac_cv_sys_long_file_names+set}" = set; then : 9558 if test "${ac_cv_sys_long_file_names+set}" = set; then
7026 $as_echo_n "(cached) " >&6 9559 $as_echo_n "(cached) " >&6
7027 else 9560 else
7028 ac_cv_sys_long_file_names=yes 9561 ac_cv_sys_long_file_names=yes
7029 # Test for long file names in all the places we know might matter: 9562 # Test for long file names in all the places we know might matter:
7030 # . the current directory, where building will happen 9563 # . the current directory, where building will happen
7050 ac_cv_sys_long_file_names=no 9583 ac_cv_sys_long_file_names=no
7051 rm -f -r "$ac_xdir" 2>/dev/null 9584 rm -f -r "$ac_xdir" 2>/dev/null
7052 test $ac_cv_sys_long_file_names = no && break 9585 test $ac_cv_sys_long_file_names = no && break
7053 done 9586 done
7054 fi 9587 fi
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5 9588 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
7056 $as_echo "$ac_cv_sys_long_file_names" >&6; } 9589 $as_echo "$ac_cv_sys_long_file_names" >&6; }
7057 if test $ac_cv_sys_long_file_names = yes; then 9590 if test $ac_cv_sys_long_file_names = yes; then
7058 9591
7059 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h 9592 cat >>confdefs.h <<\_ACEOF
9593 #define HAVE_LONG_FILE_NAMES 1
9594 _ACEOF
7060 9595
7061 fi 9596 fi
7062 9597
7063 9598
7064 #### Choose a window system. 9599 #### Choose a window system.
7065 9600
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 9601 { $as_echo "$as_me:$LINENO: checking for X" >&5
7067 $as_echo_n "checking for X... " >&6; } 9602 $as_echo_n "checking for X... " >&6; }
7068 9603
7069 9604
7070 # Check whether --with-x was given. 9605 # Check whether --with-x was given.
7071 if test "${with_x+set}" = set; then : 9606 if test "${with_x+set}" = set; then
7072 withval=$with_x; 9607 withval=$with_x;
7073 fi 9608 fi
7074 9609
7075 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 9610 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7076 if test "x$with_x" = xno; then 9611 if test "x$with_x" = xno; then
7077 # The user explicitly disabled X. 9612 # The user explicitly disabled X.
7078 have_x=disabled 9613 have_x=disabled
7079 else 9614 else
7080 case $x_includes,$x_libraries in #( 9615 case $x_includes,$x_libraries in #(
7081 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #( 9616 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
7082 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then : 9617 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9618 { (exit 1); exit 1; }; };; #(
9619 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
7083 $as_echo_n "(cached) " >&6 9620 $as_echo_n "(cached) " >&6
7084 else 9621 else
7085 # One or both of the vars are not set, and there is no cached value. 9622 # One or both of the vars are not set, and there is no cached value.
7086 ac_x_includes=no ac_x_libraries=no 9623 ac_x_includes=no ac_x_libraries=no
7087 rm -f -r conftest.dir 9624 rm -f -r conftest.dir
7113 case $ac_im_incroot in 9650 case $ac_im_incroot in
7114 /usr/include) ac_x_includes= ;; 9651 /usr/include) ac_x_includes= ;;
7115 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 9652 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7116 esac 9653 esac
7117 case $ac_im_usrlibdir in 9654 case $ac_im_usrlibdir in
7118 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 9655 /usr/lib | /lib) ;;
7119 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 9656 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7120 esac 9657 esac
7121 fi 9658 fi
7122 cd .. 9659 cd ..
7123 rm -f -r conftest.dir 9660 rm -f -r conftest.dir
7125 9662
7126 # Standard set of common directories for X headers. 9663 # Standard set of common directories for X headers.
7127 # Check X11 before X11Rn because it is often a symlink to the current release. 9664 # Check X11 before X11Rn because it is often a symlink to the current release.
7128 ac_x_header_dirs=' 9665 ac_x_header_dirs='
7129 /usr/X11/include 9666 /usr/X11/include
7130 /usr/X11R7/include
7131 /usr/X11R6/include 9667 /usr/X11R6/include
7132 /usr/X11R5/include 9668 /usr/X11R5/include
7133 /usr/X11R4/include 9669 /usr/X11R4/include
7134 9670
7135 /usr/include/X11 9671 /usr/include/X11
7136 /usr/include/X11R7
7137 /usr/include/X11R6 9672 /usr/include/X11R6
7138 /usr/include/X11R5 9673 /usr/include/X11R5
7139 /usr/include/X11R4 9674 /usr/include/X11R4
7140 9675
7141 /usr/local/X11/include 9676 /usr/local/X11/include
7142 /usr/local/X11R7/include
7143 /usr/local/X11R6/include 9677 /usr/local/X11R6/include
7144 /usr/local/X11R5/include 9678 /usr/local/X11R5/include
7145 /usr/local/X11R4/include 9679 /usr/local/X11R4/include
7146 9680
7147 /usr/local/include/X11 9681 /usr/local/include/X11
7148 /usr/local/include/X11R7
7149 /usr/local/include/X11R6 9682 /usr/local/include/X11R6
7150 /usr/local/include/X11R5 9683 /usr/local/include/X11R5
7151 /usr/local/include/X11R4 9684 /usr/local/include/X11R4
7152 9685
7153 /usr/X386/include 9686 /usr/X386/include
7165 /usr/openwin/share/include' 9698 /usr/openwin/share/include'
7166 9699
7167 if test "$ac_x_includes" = no; then 9700 if test "$ac_x_includes" = no; then
7168 # Guess where to find include files, by looking for Xlib.h. 9701 # Guess where to find include files, by looking for Xlib.h.
7169 # First, try using that file with no special directory specified. 9702 # First, try using that file with no special directory specified.
7170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9703 cat >conftest.$ac_ext <<_ACEOF
9704 /* confdefs.h. */
9705 _ACEOF
9706 cat confdefs.h >>conftest.$ac_ext
9707 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */ 9708 /* end confdefs.h. */
7172 #include <X11/Xlib.h> 9709 #include <X11/Xlib.h>
7173 _ACEOF 9710 _ACEOF
7174 if ac_fn_c_try_cpp "$LINENO"; then : 9711 if { (ac_try="$ac_cpp conftest.$ac_ext"
9712 case "(($ac_try" in
9713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9714 *) ac_try_echo=$ac_try;;
9715 esac
9716 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9717 $as_echo "$ac_try_echo") >&5
9718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9719 ac_status=$?
9720 grep -v '^ *+' conftest.er1 >conftest.err
9721 rm -f conftest.er1
9722 cat conftest.err >&5
9723 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } >/dev/null && {
9725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9726 test ! -s conftest.err
9727 }; then
7175 # We can compile using X headers with no special include directory. 9728 # We can compile using X headers with no special include directory.
7176 ac_x_includes= 9729 ac_x_includes=
7177 else 9730 else
9731 $as_echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9733
7178 for ac_dir in $ac_x_header_dirs; do 9734 for ac_dir in $ac_x_header_dirs; do
7179 if test -r "$ac_dir/X11/Xlib.h"; then 9735 if test -r "$ac_dir/X11/Xlib.h"; then
7180 ac_x_includes=$ac_dir 9736 ac_x_includes=$ac_dir
7181 break 9737 break
7182 fi 9738 fi
7183 done 9739 done
7184 fi 9740 fi
9741
7185 rm -f conftest.err conftest.$ac_ext 9742 rm -f conftest.err conftest.$ac_ext
7186 fi # $ac_x_includes = no 9743 fi # $ac_x_includes = no
7187 9744
7188 if test "$ac_x_libraries" = no; then 9745 if test "$ac_x_libraries" = no; then
7189 # Check for the libraries. 9746 # Check for the libraries.
7190 # See if we find them without any special options. 9747 # See if we find them without any special options.
7191 # Don't add to $LIBS permanently. 9748 # Don't add to $LIBS permanently.
7192 ac_save_LIBS=$LIBS 9749 ac_save_LIBS=$LIBS
7193 LIBS="-lX11 $LIBS" 9750 LIBS="-lX11 $LIBS"
7194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9751 cat >conftest.$ac_ext <<_ACEOF
9752 /* confdefs.h. */
9753 _ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
7195 /* end confdefs.h. */ 9756 /* end confdefs.h. */
7196 #include <X11/Xlib.h> 9757 #include <X11/Xlib.h>
7197 int 9758 int
7198 main () 9759 main ()
7199 { 9760 {
7200 XrmInitialize () 9761 XrmInitialize ()
7201 ; 9762 ;
7202 return 0; 9763 return 0;
7203 } 9764 }
7204 _ACEOF 9765 _ACEOF
7205 if ac_fn_c_try_link "$LINENO"; then : 9766 rm -f conftest.$ac_objext conftest$ac_exeext
9767 if { (ac_try="$ac_link"
9768 case "(($ac_try" in
9769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9770 *) ac_try_echo=$ac_try;;
9771 esac
9772 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9773 $as_echo "$ac_try_echo") >&5
9774 (eval "$ac_link") 2>conftest.er1
9775 ac_status=$?
9776 grep -v '^ *+' conftest.er1 >conftest.err
9777 rm -f conftest.er1
9778 cat conftest.err >&5
9779 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9780 (exit $ac_status); } && {
9781 test -z "$ac_c_werror_flag" ||
9782 test ! -s conftest.err
9783 } && test -s conftest$ac_exeext && {
9784 test "$cross_compiling" = yes ||
9785 $as_test_x conftest$ac_exeext
9786 }; then
7206 LIBS=$ac_save_LIBS 9787 LIBS=$ac_save_LIBS
7207 # We can link X programs with no special library path. 9788 # We can link X programs with no special library path.
7208 ac_x_libraries= 9789 ac_x_libraries=
7209 else 9790 else
7210 LIBS=$ac_save_LIBS 9791 $as_echo "$as_me: failed program was:" >&5
9792 sed 's/^/| /' conftest.$ac_ext >&5
9793
9794 LIBS=$ac_save_LIBS
7211 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 9795 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
7212 do 9796 do
7213 # Don't even attempt the hair of trying to link an X program! 9797 # Don't even attempt the hair of trying to link an X program!
7214 for ac_extension in a so sl dylib la dll; do 9798 for ac_extension in a so sl dylib la dll; do
7215 if test -r "$ac_dir/libX11.$ac_extension"; then 9799 if test -r "$ac_dir/libX11.$ac_extension"; then
7217 break 2 9801 break 2
7218 fi 9802 fi
7219 done 9803 done
7220 done 9804 done
7221 fi 9805 fi
7222 rm -f core conftest.err conftest.$ac_objext \ 9806
7223 conftest$ac_exeext conftest.$ac_ext 9807 rm -rf conftest.dSYM
9808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9809 conftest$ac_exeext conftest.$ac_ext
7224 fi # $ac_x_libraries = no 9810 fi # $ac_x_libraries = no
7225 9811
7226 case $ac_x_includes,$ac_x_libraries in #( 9812 case $ac_x_includes,$ac_x_libraries in #(
7227 no,* | *,no | *\'*) 9813 no,* | *,no | *\'*)
7228 # Didn't find X, or a directory has "'" in its name. 9814 # Didn't find X, or a directory has "'" in its name.
7239 esac 9825 esac
7240 eval "$ac_cv_have_x" 9826 eval "$ac_cv_have_x"
7241 fi # $with_x != no 9827 fi # $with_x != no
7242 9828
7243 if test "$have_x" != yes; then 9829 if test "$have_x" != yes; then
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 9830 { $as_echo "$as_me:$LINENO: result: $have_x" >&5
7245 $as_echo "$have_x" >&6; } 9831 $as_echo "$have_x" >&6; }
7246 no_x=yes 9832 no_x=yes
7247 else 9833 else
7248 # If each of the values was on the command line, it overrides each guess. 9834 # If each of the values was on the command line, it overrides each guess.
7249 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 9835 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
7250 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 9836 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
7251 # Update the cache value to reflect the command line values. 9837 # Update the cache value to reflect the command line values.
7252 ac_cv_have_x="have_x=yes\ 9838 ac_cv_have_x="have_x=yes\
7253 ac_x_includes='$x_includes'\ 9839 ac_x_includes='$x_includes'\
7254 ac_x_libraries='$x_libraries'" 9840 ac_x_libraries='$x_libraries'"
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 9841 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
7256 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 9842 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
7257 fi 9843 fi
7258 9844
7259 if test "$no_x" = yes; then 9845 if test "$no_x" = yes; then
7260 window_system=none 9846 window_system=none
7352 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 9938 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7353 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 9939 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
7354 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" 9940 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
7355 LIB_STANDARD= 9941 LIB_STANDARD=
7356 fi 9942 fi
7357 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default" 9943 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
7358 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then : 9944 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9945 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9946 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9947 $as_echo_n "(cached) " >&6
9948 fi
9949 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9950 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9951 else
9952 # Is the header compilable?
9953 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9954 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9955 cat >conftest.$ac_ext <<_ACEOF
9956 /* confdefs.h. */
9957 _ACEOF
9958 cat confdefs.h >>conftest.$ac_ext
9959 cat >>conftest.$ac_ext <<_ACEOF
9960 /* end confdefs.h. */
9961 $ac_includes_default
9962 #include <AppKit/AppKit.h>
9963 _ACEOF
9964 rm -f conftest.$ac_objext
9965 if { (ac_try="$ac_compile"
9966 case "(($ac_try" in
9967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9968 *) ac_try_echo=$ac_try;;
9969 esac
9970 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9971 $as_echo "$ac_try_echo") >&5
9972 (eval "$ac_compile") 2>conftest.er1
9973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest.$ac_objext; then
9982 ac_header_compiler=yes
9983 else
9984 $as_echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9986
9987 ac_header_compiler=no
9988 fi
9989
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9991 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9992 $as_echo "$ac_header_compiler" >&6; }
9993
9994 # Is the header present?
9995 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9996 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9997 cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h. */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 #include <AppKit/AppKit.h>
10004 _ACEOF
10005 if { (ac_try="$ac_cpp conftest.$ac_ext"
10006 case "(($ac_try" in
10007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008 *) ac_try_echo=$ac_try;;
10009 esac
10010 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10011 $as_echo "$ac_try_echo") >&5
10012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10013 ac_status=$?
10014 grep -v '^ *+' conftest.er1 >conftest.err
10015 rm -f conftest.er1
10016 cat conftest.err >&5
10017 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10018 (exit $ac_status); } >/dev/null && {
10019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10020 test ! -s conftest.err
10021 }; then
10022 ac_header_preproc=yes
10023 else
10024 $as_echo "$as_me: failed program was:" >&5
10025 sed 's/^/| /' conftest.$ac_ext >&5
10026
10027 ac_header_preproc=no
10028 fi
10029
10030 rm -f conftest.err conftest.$ac_ext
10031 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10032 $as_echo "$ac_header_preproc" >&6; }
10033
10034 # So? What about this header?
10035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10036 yes:no: )
10037 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
10038 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10039 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
10040 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
10041 ac_header_preproc=yes
10042 ;;
10043 no:yes:* )
10044 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
10045 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
10046 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
10047 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
10048 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
10049 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
10050 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
10051 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
10052 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
10053 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
10054 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
10055 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
10056
10057 ;;
10058 esac
10059 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
10060 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
10061 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
10062 $as_echo_n "(cached) " >&6
10063 else
10064 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
10065 fi
10066 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
10067 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
10068
10069 fi
10070 if test $ac_cv_header_AppKit_AppKit_h = yes; then
7359 HAVE_NS=yes 10071 HAVE_NS=yes
7360 else 10072 else
7361 as_fn_error "\`--with-ns' was specified, but the include 10073 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include
7362 files are missing or cannot be compiled." "$LINENO" 5 10074 files are missing or cannot be compiled." >&5
10075 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
10076 files are missing or cannot be compiled." >&2;}
10077 { (exit 1); exit 1; }; }
7363 fi 10078 fi
7364 10079
7365 10080
7366 NS_HAVE_NSINTEGER=yes 10081 NS_HAVE_NSINTEGER=yes
7367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10082 cat >conftest.$ac_ext <<_ACEOF
10083 /* confdefs.h. */
10084 _ACEOF
10085 cat confdefs.h >>conftest.$ac_ext
10086 cat >>conftest.$ac_ext <<_ACEOF
7368 /* end confdefs.h. */ 10087 /* end confdefs.h. */
7369 #include <Foundation/NSObjCRuntime.h> 10088 #include <Foundation/NSObjCRuntime.h>
7370 int 10089 int
7371 main () 10090 main ()
7372 { 10091 {
7373 NSInteger i; 10092 NSInteger i;
7374 ; 10093 ;
7375 return 0; 10094 return 0;
7376 } 10095 }
7377 _ACEOF 10096 _ACEOF
7378 if ac_fn_c_try_compile "$LINENO"; then : 10097 rm -f conftest.$ac_objext
10098 if { (ac_try="$ac_compile"
10099 case "(($ac_try" in
10100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10101 *) ac_try_echo=$ac_try;;
10102 esac
10103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10104 $as_echo "$ac_try_echo") >&5
10105 (eval "$ac_compile") 2>conftest.er1
10106 ac_status=$?
10107 grep -v '^ *+' conftest.er1 >conftest.err
10108 rm -f conftest.er1
10109 cat conftest.err >&5
10110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } && {
10112 test -z "$ac_c_werror_flag" ||
10113 test ! -s conftest.err
10114 } && test -s conftest.$ac_objext; then
7379 ns_have_nsinteger=yes 10115 ns_have_nsinteger=yes
7380 else 10116 else
7381 ns_have_nsinteger=no 10117 $as_echo "$as_me: failed program was:" >&5
7382 fi 10118 sed 's/^/| /' conftest.$ac_ext >&5
10119
10120 ns_have_nsinteger=no
10121 fi
10122
7383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7384 if test $ns_have_nsinteger = no; then 10124 if test $ns_have_nsinteger = no; then
7385 NS_HAVE_NSINTEGER=no 10125 NS_HAVE_NSINTEGER=no
7386 fi 10126 fi
7387 fi 10127 fi
7427 esac 10167 esac
7428 10168
7429 if test "$window_system" = none && test "X$with_x" != "Xno"; then 10169 if test "$window_system" = none && test "X$with_x" != "Xno"; then
7430 # Extract the first word of "X", so it can be a program name with args. 10170 # Extract the first word of "X", so it can be a program name with args.
7431 set dummy X; ac_word=$2 10171 set dummy X; ac_word=$2
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10172 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7433 $as_echo_n "checking for $ac_word... " >&6; } 10173 $as_echo_n "checking for $ac_word... " >&6; }
7434 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then : 10174 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
7435 $as_echo_n "(cached) " >&6 10175 $as_echo_n "(cached) " >&6
7436 else 10176 else
7437 if test -n "$HAVE_XSERVER"; then 10177 if test -n "$HAVE_XSERVER"; then
7438 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. 10178 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
7439 else 10179 else
7440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7441 for as_dir in $PATH 10181 for as_dir in $PATH
7442 do 10182 do
7443 IFS=$as_save_IFS 10183 IFS=$as_save_IFS
7444 test -z "$as_dir" && as_dir=. 10184 test -z "$as_dir" && as_dir=.
7445 for ac_exec_ext in '' $ac_executable_extensions; do 10185 for ac_exec_ext in '' $ac_executable_extensions; do
7446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7447 ac_cv_prog_HAVE_XSERVER="true" 10187 ac_cv_prog_HAVE_XSERVER="true"
7448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10188 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7449 break 2 10189 break 2
7450 fi 10190 fi
7451 done 10191 done
7452 done 10192 done
7453 IFS=$as_save_IFS 10193 IFS=$as_save_IFS
7454 10194
7455 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" 10195 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
7456 fi 10196 fi
7457 fi 10197 fi
7458 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER 10198 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
7459 if test -n "$HAVE_XSERVER"; then 10199 if test -n "$HAVE_XSERVER"; then
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5 10200 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
7461 $as_echo "$HAVE_XSERVER" >&6; } 10201 $as_echo "$HAVE_XSERVER" >&6; }
7462 else 10202 else
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10203 { $as_echo "$as_me:$LINENO: result: no" >&5
7464 $as_echo "no" >&6; } 10204 $as_echo "no" >&6; }
7465 fi 10205 fi
7466 10206
7467 10207
7468 if test "$HAVE_XSERVER" = true || 10208 if test "$HAVE_XSERVER" = true ||
7469 test -n "$DISPLAY" || 10209 test -n "$DISPLAY" ||
7470 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then 10210 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
7471 as_fn_error "You seem to be running X, but no X development libraries 10211 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
7472 were found. You should install the relevant development files for X 10212 were found. You should install the relevant development files for X
7473 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make 10213 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
7474 sure you have development files for image handling, i.e. 10214 sure you have development files for image handling, i.e.
7475 tiff, gif, jpeg, png and xpm. 10215 tiff, gif, jpeg, png and xpm.
7476 If you are sure you want Emacs compiled without X window support, pass 10216 If you are sure you want Emacs compiled without X window support, pass
7477 --without-x 10217 --without-x
7478 to configure." "$LINENO" 5 10218 to configure." >&5
10219 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10220 were found. You should install the relevant development files for X
10221 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10222 sure you have development files for image handling, i.e.
10223 tiff, gif, jpeg, png and xpm.
10224 If you are sure you want Emacs compiled without X window support, pass
10225 --without-x
10226 to configure." >&2;}
10227 { (exit 1); exit 1; }; }
7479 fi 10228 fi
7480 fi 10229 fi
7481 10230
7482 ### If we're using X11, we should use the X menu package. 10231 ### If we're using X11, we should use the X menu package.
7483 HAVE_MENUS=no 10232 HAVE_MENUS=no
7487 10236
7488 # Do the opsystem or machine files prohibit the use of the GNU malloc? 10237 # Do the opsystem or machine files prohibit the use of the GNU malloc?
7489 # Assume not, until told otherwise. 10238 # Assume not, until told otherwise.
7490 GNU_MALLOC=yes 10239 GNU_MALLOC=yes
7491 doug_lea_malloc=yes 10240 doug_lea_malloc=yes
7492 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state" 10241 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5
7493 if test "x$ac_cv_func_malloc_get_state" = x""yes; then : 10242 $as_echo_n "checking for malloc_get_state... " >&6; }
7494 10243 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10244 $as_echo_n "(cached) " >&6
10245 else
10246 cat >conftest.$ac_ext <<_ACEOF
10247 /* confdefs.h. */
10248 _ACEOF
10249 cat confdefs.h >>conftest.$ac_ext
10250 cat >>conftest.$ac_ext <<_ACEOF
10251 /* end confdefs.h. */
10252 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10254 #define malloc_get_state innocuous_malloc_get_state
10255
10256 /* System header to define __stub macros and hopefully few prototypes,
10257 which can conflict with char malloc_get_state (); below.
10258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10259 <limits.h> exists even on freestanding compilers. */
10260
10261 #ifdef __STDC__
10262 # include <limits.h>
10263 #else
10264 # include <assert.h>
10265 #endif
10266
10267 #undef malloc_get_state
10268
10269 /* Override any GCC internal prototype to avoid an error.
10270 Use char because int might match the return type of a GCC
10271 builtin and then its argument prototype would still apply. */
10272 #ifdef __cplusplus
10273 extern "C"
10274 #endif
10275 char malloc_get_state ();
10276 /* The GNU C library defines this for functions which it implements
10277 to always fail with ENOSYS. Some functions are actually named
10278 something starting with __ and the normal name is an alias. */
10279 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10280 choke me
10281 #endif
10282
10283 int
10284 main ()
10285 {
10286 return malloc_get_state ();
10287 ;
10288 return 0;
10289 }
10290 _ACEOF
10291 rm -f conftest.$ac_objext conftest$ac_exeext
10292 if { (ac_try="$ac_link"
10293 case "(($ac_try" in
10294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10295 *) ac_try_echo=$ac_try;;
10296 esac
10297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10298 $as_echo "$ac_try_echo") >&5
10299 (eval "$ac_link") 2>conftest.er1
10300 ac_status=$?
10301 grep -v '^ *+' conftest.er1 >conftest.err
10302 rm -f conftest.er1
10303 cat conftest.err >&5
10304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10305 (exit $ac_status); } && {
10306 test -z "$ac_c_werror_flag" ||
10307 test ! -s conftest.err
10308 } && test -s conftest$ac_exeext && {
10309 test "$cross_compiling" = yes ||
10310 $as_test_x conftest$ac_exeext
10311 }; then
10312 ac_cv_func_malloc_get_state=yes
10313 else
10314 $as_echo "$as_me: failed program was:" >&5
10315 sed 's/^/| /' conftest.$ac_ext >&5
10316
10317 ac_cv_func_malloc_get_state=no
10318 fi
10319
10320 rm -rf conftest.dSYM
10321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10322 conftest$ac_exeext conftest.$ac_ext
10323 fi
10324 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10325 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10326 if test $ac_cv_func_malloc_get_state = yes; then
10327 :
7495 else 10328 else
7496 doug_lea_malloc=no 10329 doug_lea_malloc=no
7497 fi 10330 fi
7498 10331
7499 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state" 10332 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
7500 if test "x$ac_cv_func_malloc_set_state" = x""yes; then : 10333 $as_echo_n "checking for malloc_set_state... " >&6; }
7501 10334 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10335 $as_echo_n "(cached) " >&6
10336 else
10337 cat >conftest.$ac_ext <<_ACEOF
10338 /* confdefs.h. */
10339 _ACEOF
10340 cat confdefs.h >>conftest.$ac_ext
10341 cat >>conftest.$ac_ext <<_ACEOF
10342 /* end confdefs.h. */
10343 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10345 #define malloc_set_state innocuous_malloc_set_state
10346
10347 /* System header to define __stub macros and hopefully few prototypes,
10348 which can conflict with char malloc_set_state (); below.
10349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10350 <limits.h> exists even on freestanding compilers. */
10351
10352 #ifdef __STDC__
10353 # include <limits.h>
10354 #else
10355 # include <assert.h>
10356 #endif
10357
10358 #undef malloc_set_state
10359
10360 /* Override any GCC internal prototype to avoid an error.
10361 Use char because int might match the return type of a GCC
10362 builtin and then its argument prototype would still apply. */
10363 #ifdef __cplusplus
10364 extern "C"
10365 #endif
10366 char malloc_set_state ();
10367 /* The GNU C library defines this for functions which it implements
10368 to always fail with ENOSYS. Some functions are actually named
10369 something starting with __ and the normal name is an alias. */
10370 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10371 choke me
10372 #endif
10373
10374 int
10375 main ()
10376 {
10377 return malloc_set_state ();
10378 ;
10379 return 0;
10380 }
10381 _ACEOF
10382 rm -f conftest.$ac_objext conftest$ac_exeext
10383 if { (ac_try="$ac_link"
10384 case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10387 esac
10388 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10389 $as_echo "$ac_try_echo") >&5
10390 (eval "$ac_link") 2>conftest.er1
10391 ac_status=$?
10392 grep -v '^ *+' conftest.er1 >conftest.err
10393 rm -f conftest.er1
10394 cat conftest.err >&5
10395 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10396 (exit $ac_status); } && {
10397 test -z "$ac_c_werror_flag" ||
10398 test ! -s conftest.err
10399 } && test -s conftest$ac_exeext && {
10400 test "$cross_compiling" = yes ||
10401 $as_test_x conftest$ac_exeext
10402 }; then
10403 ac_cv_func_malloc_set_state=yes
10404 else
10405 $as_echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.$ac_ext >&5
10407
10408 ac_cv_func_malloc_set_state=no
10409 fi
10410
10411 rm -rf conftest.dSYM
10412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10413 conftest$ac_exeext conftest.$ac_ext
10414 fi
10415 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10416 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10417 if test $ac_cv_func_malloc_set_state = yes; then
10418 :
7502 else 10419 else
7503 doug_lea_malloc=no 10420 doug_lea_malloc=no
7504 fi 10421 fi
7505 10422
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5 10423 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
7507 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; } 10424 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7508 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then : 10425 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
7509 $as_echo_n "(cached) " >&6 10426 $as_echo_n "(cached) " >&6
7510 else 10427 else
7511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10428 cat >conftest.$ac_ext <<_ACEOF
10429 /* confdefs.h. */
10430 _ACEOF
10431 cat confdefs.h >>conftest.$ac_ext
10432 cat >>conftest.$ac_ext <<_ACEOF
7512 /* end confdefs.h. */ 10433 /* end confdefs.h. */
7513 extern void (* __after_morecore_hook)(); 10434 extern void (* __after_morecore_hook)();
7514 int 10435 int
7515 main () 10436 main ()
7516 { 10437 {
7517 __after_morecore_hook = 0 10438 __after_morecore_hook = 0
7518 ; 10439 ;
7519 return 0; 10440 return 0;
7520 } 10441 }
7521 _ACEOF 10442 _ACEOF
7522 if ac_fn_c_try_link "$LINENO"; then : 10443 rm -f conftest.$ac_objext conftest$ac_exeext
10444 if { (ac_try="$ac_link"
10445 case "(($ac_try" in
10446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10447 *) ac_try_echo=$ac_try;;
10448 esac
10449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10450 $as_echo "$ac_try_echo") >&5
10451 (eval "$ac_link") 2>conftest.er1
10452 ac_status=$?
10453 grep -v '^ *+' conftest.er1 >conftest.err
10454 rm -f conftest.er1
10455 cat conftest.err >&5
10456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } && {
10458 test -z "$ac_c_werror_flag" ||
10459 test ! -s conftest.err
10460 } && test -s conftest$ac_exeext && {
10461 test "$cross_compiling" = yes ||
10462 $as_test_x conftest$ac_exeext
10463 }; then
7523 emacs_cv_var___after_morecore_hook=yes 10464 emacs_cv_var___after_morecore_hook=yes
7524 else 10465 else
7525 emacs_cv_var___after_morecore_hook=no 10466 $as_echo "$as_me: failed program was:" >&5
7526 fi 10467 sed 's/^/| /' conftest.$ac_ext >&5
7527 rm -f core conftest.err conftest.$ac_objext \ 10468
7528 conftest$ac_exeext conftest.$ac_ext 10469 emacs_cv_var___after_morecore_hook=no
7529 fi 10470 fi
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5 10471
10472 rm -rf conftest.dSYM
10473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10474 conftest$ac_exeext conftest.$ac_ext
10475 fi
10476 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
7531 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; } 10477 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
7532 if test $emacs_cv_var___after_morecore_hook = no; then 10478 if test $emacs_cv_var___after_morecore_hook = no; then
7533 doug_lea_malloc=no 10479 doug_lea_malloc=no
7534 fi 10480 fi
7535 if test "${system_malloc}" = "yes"; then 10481 if test "${system_malloc}" = "yes"; then
7541 if test "$GNU_MALLOC" = yes ; then 10487 if test "$GNU_MALLOC" = yes ; then
7542 GNU_MALLOC_reason=" 10488 GNU_MALLOC_reason="
7543 (Using Doug Lea's new malloc from the GNU C Library.)" 10489 (Using Doug Lea's new malloc from the GNU C Library.)"
7544 fi 10490 fi
7545 10491
7546 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h 10492 cat >>confdefs.h <<\_ACEOF
10493 #define DOUG_LEA_MALLOC 1
10494 _ACEOF
7547 10495
7548 fi 10496 fi
7549 10497
7550 if test x"${REL_ALLOC}" = x; then 10498 if test x"${REL_ALLOC}" = x; then
7551 REL_ALLOC=${GNU_MALLOC} 10499 REL_ALLOC=${GNU_MALLOC}
7552 fi 10500 fi
7553 10501
7554 10502
7555 10503
7556 10504
7557 10505 for ac_header in stdlib.h unistd.h
7558 for ac_header in $ac_header_list 10506 do
7559 do : 10507 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7561 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10509 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7562 " 10510 $as_echo_n "checking for $ac_header... " >&6; }
7563 eval as_val=\$$as_ac_Header 10511 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7564 if test "x$as_val" = x""yes; then : 10512 $as_echo_n "(cached) " >&6
10513 fi
10514 ac_res=`eval 'as_val=${'$as_ac_Header'}
10515 $as_echo "$as_val"'`
10516 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10517 $as_echo "$ac_res" >&6; }
10518 else
10519 # Is the header compilable?
10520 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10521 $as_echo_n "checking $ac_header usability... " >&6; }
10522 cat >conftest.$ac_ext <<_ACEOF
10523 /* confdefs.h. */
10524 _ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h. */
10528 $ac_includes_default
10529 #include <$ac_header>
10530 _ACEOF
10531 rm -f conftest.$ac_objext
10532 if { (ac_try="$ac_compile"
10533 case "(($ac_try" in
10534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10535 *) ac_try_echo=$ac_try;;
10536 esac
10537 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10538 $as_echo "$ac_try_echo") >&5
10539 (eval "$ac_compile") 2>conftest.er1
10540 ac_status=$?
10541 grep -v '^ *+' conftest.er1 >conftest.err
10542 rm -f conftest.er1
10543 cat conftest.err >&5
10544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && {
10546 test -z "$ac_c_werror_flag" ||
10547 test ! -s conftest.err
10548 } && test -s conftest.$ac_objext; then
10549 ac_header_compiler=yes
10550 else
10551 $as_echo "$as_me: failed program was:" >&5
10552 sed 's/^/| /' conftest.$ac_ext >&5
10553
10554 ac_header_compiler=no
10555 fi
10556
10557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10558 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10559 $as_echo "$ac_header_compiler" >&6; }
10560
10561 # Is the header present?
10562 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10563 $as_echo_n "checking $ac_header presence... " >&6; }
10564 cat >conftest.$ac_ext <<_ACEOF
10565 /* confdefs.h. */
10566 _ACEOF
10567 cat confdefs.h >>conftest.$ac_ext
10568 cat >>conftest.$ac_ext <<_ACEOF
10569 /* end confdefs.h. */
10570 #include <$ac_header>
10571 _ACEOF
10572 if { (ac_try="$ac_cpp conftest.$ac_ext"
10573 case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10576 esac
10577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10578 $as_echo "$ac_try_echo") >&5
10579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10580 ac_status=$?
10581 grep -v '^ *+' conftest.er1 >conftest.err
10582 rm -f conftest.er1
10583 cat conftest.err >&5
10584 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10585 (exit $ac_status); } >/dev/null && {
10586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10587 test ! -s conftest.err
10588 }; then
10589 ac_header_preproc=yes
10590 else
10591 $as_echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10593
10594 ac_header_preproc=no
10595 fi
10596
10597 rm -f conftest.err conftest.$ac_ext
10598 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10599 $as_echo "$ac_header_preproc" >&6; }
10600
10601 # So? What about this header?
10602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10603 yes:no: )
10604 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10605 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10606 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10607 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10608 ac_header_preproc=yes
10609 ;;
10610 no:yes:* )
10611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10612 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10614 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10616 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10618 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10619 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10620 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10622 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10623
10624 ;;
10625 esac
10626 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10627 $as_echo_n "checking for $ac_header... " >&6; }
10628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10629 $as_echo_n "(cached) " >&6
10630 else
10631 eval "$as_ac_Header=\$ac_header_preproc"
10632 fi
10633 ac_res=`eval 'as_val=${'$as_ac_Header'}
10634 $as_echo "$as_val"'`
10635 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10636 $as_echo "$ac_res" >&6; }
10637
10638 fi
10639 if test `eval 'as_val=${'$as_ac_Header'}
10640 $as_echo "$as_val"'` = yes; then
7565 cat >>confdefs.h <<_ACEOF 10641 cat >>confdefs.h <<_ACEOF
7566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7567 _ACEOF 10643 _ACEOF
7568 10644
7569 fi 10645 fi
7570 10646
7571 done 10647 done
7572 10648
7573 10649
7574
7575
7576
7577
7578
7579
7580 for ac_func in getpagesize 10650 for ac_func in getpagesize
7581 do : 10651 do
7582 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 10652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7583 if test "x$ac_cv_func_getpagesize" = x""yes; then : 10653 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10654 $as_echo_n "checking for $ac_func... " >&6; }
10655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10656 $as_echo_n "(cached) " >&6
10657 else
10658 cat >conftest.$ac_ext <<_ACEOF
10659 /* confdefs.h. */
10660 _ACEOF
10661 cat confdefs.h >>conftest.$ac_ext
10662 cat >>conftest.$ac_ext <<_ACEOF
10663 /* end confdefs.h. */
10664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10666 #define $ac_func innocuous_$ac_func
10667
10668 /* System header to define __stub macros and hopefully few prototypes,
10669 which can conflict with char $ac_func (); below.
10670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10671 <limits.h> exists even on freestanding compilers. */
10672
10673 #ifdef __STDC__
10674 # include <limits.h>
10675 #else
10676 # include <assert.h>
10677 #endif
10678
10679 #undef $ac_func
10680
10681 /* Override any GCC internal prototype to avoid an error.
10682 Use char because int might match the return type of a GCC
10683 builtin and then its argument prototype would still apply. */
10684 #ifdef __cplusplus
10685 extern "C"
10686 #endif
10687 char $ac_func ();
10688 /* The GNU C library defines this for functions which it implements
10689 to always fail with ENOSYS. Some functions are actually named
10690 something starting with __ and the normal name is an alias. */
10691 #if defined __stub_$ac_func || defined __stub___$ac_func
10692 choke me
10693 #endif
10694
10695 int
10696 main ()
10697 {
10698 return $ac_func ();
10699 ;
10700 return 0;
10701 }
10702 _ACEOF
10703 rm -f conftest.$ac_objext conftest$ac_exeext
10704 if { (ac_try="$ac_link"
10705 case "(($ac_try" in
10706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10707 *) ac_try_echo=$ac_try;;
10708 esac
10709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10710 $as_echo "$ac_try_echo") >&5
10711 (eval "$ac_link") 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && {
10718 test -z "$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10720 } && test -s conftest$ac_exeext && {
10721 test "$cross_compiling" = yes ||
10722 $as_test_x conftest$ac_exeext
10723 }; then
10724 eval "$as_ac_var=yes"
10725 else
10726 $as_echo "$as_me: failed program was:" >&5
10727 sed 's/^/| /' conftest.$ac_ext >&5
10728
10729 eval "$as_ac_var=no"
10730 fi
10731
10732 rm -rf conftest.dSYM
10733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10734 conftest$ac_exeext conftest.$ac_ext
10735 fi
10736 ac_res=`eval 'as_val=${'$as_ac_var'}
10737 $as_echo "$as_val"'`
10738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10739 $as_echo "$ac_res" >&6; }
10740 if test `eval 'as_val=${'$as_ac_var'}
10741 $as_echo "$as_val"'` = yes; then
7584 cat >>confdefs.h <<_ACEOF 10742 cat >>confdefs.h <<_ACEOF
7585 #define HAVE_GETPAGESIZE 1 10743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7586 _ACEOF 10744 _ACEOF
7587 10745
7588 fi 10746 fi
7589 done 10747 done
7590 10748
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 10749 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
7592 $as_echo_n "checking for working mmap... " >&6; } 10750 $as_echo_n "checking for working mmap... " >&6; }
7593 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 10751 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
7594 $as_echo_n "(cached) " >&6 10752 $as_echo_n "(cached) " >&6
7595 else 10753 else
7596 if test "$cross_compiling" = yes; then : 10754 if test "$cross_compiling" = yes; then
7597 ac_cv_func_mmap_fixed_mapped=no 10755 ac_cv_func_mmap_fixed_mapped=no
7598 else 10756 else
7599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10757 cat >conftest.$ac_ext <<_ACEOF
10758 /* confdefs.h. */
10759 _ACEOF
10760 cat confdefs.h >>conftest.$ac_ext
10761 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */ 10762 /* end confdefs.h. */
7601 $ac_includes_default 10763 $ac_includes_default
7602 /* malloc might have been renamed as rpl_malloc. */ 10764 /* malloc might have been renamed as rpl_malloc. */
7603 #undef malloc 10765 #undef malloc
7604 10766
7631 char *malloc (); 10793 char *malloc ();
7632 #endif 10794 #endif
7633 10795
7634 /* This mess was copied from the GNU getpagesize.h. */ 10796 /* This mess was copied from the GNU getpagesize.h. */
7635 #ifndef HAVE_GETPAGESIZE 10797 #ifndef HAVE_GETPAGESIZE
10798 /* Assume that all systems that can run configure have sys/param.h. */
10799 # ifndef HAVE_SYS_PARAM_H
10800 # define HAVE_SYS_PARAM_H 1
10801 # endif
10802
7636 # ifdef _SC_PAGESIZE 10803 # ifdef _SC_PAGESIZE
7637 # define getpagesize() sysconf(_SC_PAGESIZE) 10804 # define getpagesize() sysconf(_SC_PAGESIZE)
7638 # else /* no _SC_PAGESIZE */ 10805 # else /* no _SC_PAGESIZE */
7639 # ifdef HAVE_SYS_PARAM_H 10806 # ifdef HAVE_SYS_PARAM_H
7640 # include <sys/param.h> 10807 # include <sys/param.h>
7665 10832
7666 int 10833 int
7667 main () 10834 main ()
7668 { 10835 {
7669 char *data, *data2, *data3; 10836 char *data, *data2, *data3;
7670 const char *cdata2;
7671 int i, pagesize; 10837 int i, pagesize;
7672 int fd, fd2; 10838 int fd;
7673 10839
7674 pagesize = getpagesize (); 10840 pagesize = getpagesize ();
7675 10841
7676 /* First, make a file with some known garbage in it. */ 10842 /* First, make a file with some known garbage in it. */
7677 data = (char *) malloc (pagesize); 10843 data = (char *) malloc (pagesize);
7680 for (i = 0; i < pagesize; ++i) 10846 for (i = 0; i < pagesize; ++i)
7681 *(data + i) = rand (); 10847 *(data + i) = rand ();
7682 umask (0); 10848 umask (0);
7683 fd = creat ("conftest.mmap", 0600); 10849 fd = creat ("conftest.mmap", 0600);
7684 if (fd < 0) 10850 if (fd < 0)
7685 return 2; 10851 return 1;
7686 if (write (fd, data, pagesize) != pagesize) 10852 if (write (fd, data, pagesize) != pagesize)
7687 return 3; 10853 return 1;
7688 close (fd); 10854 close (fd);
7689
7690 /* Next, check that the tail of a page is zero-filled. File must have
7691 non-zero length, otherwise we risk SIGBUS for entire page. */
7692 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7693 if (fd2 < 0)
7694 return 4;
7695 cdata2 = "";
7696 if (write (fd2, cdata2, 1) != 1)
7697 return 5;
7698 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7699 if (data2 == MAP_FAILED)
7700 return 6;
7701 for (i = 0; i < pagesize; ++i)
7702 if (*(data2 + i))
7703 return 7;
7704 close (fd2);
7705 if (munmap (data2, pagesize))
7706 return 8;
7707 10855
7708 /* Next, try to mmap the file at a fixed address which already has 10856 /* Next, try to mmap the file at a fixed address which already has
7709 something else allocated at it. If we can, also make sure that 10857 something else allocated at it. If we can, also make sure that
7710 we see the same garbage. */ 10858 we see the same garbage. */
7711 fd = open ("conftest.mmap", O_RDWR); 10859 fd = open ("conftest.mmap", O_RDWR);
7712 if (fd < 0) 10860 if (fd < 0)
7713 return 9; 10861 return 1;
10862 data2 = (char *) malloc (2 * pagesize);
10863 if (!data2)
10864 return 1;
10865 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
7714 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 10866 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
7715 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 10867 MAP_PRIVATE | MAP_FIXED, fd, 0L))
7716 return 10; 10868 return 1;
7717 for (i = 0; i < pagesize; ++i) 10869 for (i = 0; i < pagesize; ++i)
7718 if (*(data + i) != *(data2 + i)) 10870 if (*(data + i) != *(data2 + i))
7719 return 11; 10871 return 1;
7720 10872
7721 /* Finally, make sure that changes to the mapped area do not 10873 /* Finally, make sure that changes to the mapped area do not
7722 percolate back to the file as seen by read(). (This is a bug on 10874 percolate back to the file as seen by read(). (This is a bug on
7723 some variants of i386 svr4.0.) */ 10875 some variants of i386 svr4.0.) */
7724 for (i = 0; i < pagesize; ++i) 10876 for (i = 0; i < pagesize; ++i)
7725 *(data2 + i) = *(data2 + i) + 1; 10877 *(data2 + i) = *(data2 + i) + 1;
7726 data3 = (char *) malloc (pagesize); 10878 data3 = (char *) malloc (pagesize);
7727 if (!data3) 10879 if (!data3)
7728 return 12; 10880 return 1;
7729 if (read (fd, data3, pagesize) != pagesize) 10881 if (read (fd, data3, pagesize) != pagesize)
7730 return 13; 10882 return 1;
7731 for (i = 0; i < pagesize; ++i) 10883 for (i = 0; i < pagesize; ++i)
7732 if (*(data + i) != *(data3 + i)) 10884 if (*(data + i) != *(data3 + i))
7733 return 14; 10885 return 1;
7734 close (fd); 10886 close (fd);
7735 return 0; 10887 return 0;
7736 } 10888 }
7737 _ACEOF 10889 _ACEOF
7738 if ac_fn_c_try_run "$LINENO"; then : 10890 rm -f conftest$ac_exeext
10891 if { (ac_try="$ac_link"
10892 case "(($ac_try" in
10893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10894 *) ac_try_echo=$ac_try;;
10895 esac
10896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10897 $as_echo "$ac_try_echo") >&5
10898 (eval "$ac_link") 2>&5
10899 ac_status=$?
10900 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10901 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10902 { (case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10905 esac
10906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10907 $as_echo "$ac_try_echo") >&5
10908 (eval "$ac_try") 2>&5
10909 ac_status=$?
10910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); }; }; then
7739 ac_cv_func_mmap_fixed_mapped=yes 10912 ac_cv_func_mmap_fixed_mapped=yes
7740 else 10913 else
7741 ac_cv_func_mmap_fixed_mapped=no 10914 $as_echo "$as_me: program exited with status $ac_status" >&5
7742 fi 10915 $as_echo "$as_me: failed program was:" >&5
7743 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10916 sed 's/^/| /' conftest.$ac_ext >&5
7744 conftest.$ac_objext conftest.beam conftest.$ac_ext 10917
7745 fi 10918 ( exit $ac_status )
7746 10919 ac_cv_func_mmap_fixed_mapped=no
7747 fi 10920 fi
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 10921 rm -rf conftest.dSYM
10922 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10923 fi
10924
10925
10926 fi
10927 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
7749 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 10928 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
7750 if test $ac_cv_func_mmap_fixed_mapped = yes; then 10929 if test $ac_cv_func_mmap_fixed_mapped = yes; then
7751 10930
7752 $as_echo "#define HAVE_MMAP 1" >>confdefs.h 10931 cat >>confdefs.h <<\_ACEOF
7753 10932 #define HAVE_MMAP 1
7754 fi 10933 _ACEOF
7755 rm -f conftest.mmap conftest.txt 10934
10935 fi
10936 rm -f conftest.mmap
7756 10937
7757 if test $use_mmap_for_buffers = yes; then 10938 if test $use_mmap_for_buffers = yes; then
7758 REL_ALLOC=no 10939 REL_ALLOC=no
7759 fi 10940 fi
7760 10941
7761 LIBS="$libsrc_libs $LIBS" 10942 LIBS="$libsrc_libs $LIBS"
7762 10943
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 10944
10945 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
7764 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 10946 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
7765 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then : 10947 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
7766 $as_echo_n "(cached) " >&6 10948 $as_echo_n "(cached) " >&6
7767 else 10949 else
7768 ac_check_lib_save_LIBS=$LIBS 10950 ac_check_lib_save_LIBS=$LIBS
7769 LIBS="-ldnet $LIBS" 10951 LIBS="-ldnet $LIBS"
7770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10952 cat >conftest.$ac_ext <<_ACEOF
10953 /* confdefs.h. */
10954 _ACEOF
10955 cat confdefs.h >>conftest.$ac_ext
10956 cat >>conftest.$ac_ext <<_ACEOF
7771 /* end confdefs.h. */ 10957 /* end confdefs.h. */
7772 10958
7773 /* Override any GCC internal prototype to avoid an error. 10959 /* Override any GCC internal prototype to avoid an error.
7774 Use char because int might match the return type of a GCC 10960 Use char because int might match the return type of a GCC
7775 builtin and then its argument prototype would still apply. */ 10961 builtin and then its argument prototype would still apply. */
7783 return dnet_ntoa (); 10969 return dnet_ntoa ();
7784 ; 10970 ;
7785 return 0; 10971 return 0;
7786 } 10972 }
7787 _ACEOF 10973 _ACEOF
7788 if ac_fn_c_try_link "$LINENO"; then : 10974 rm -f conftest.$ac_objext conftest$ac_exeext
10975 if { (ac_try="$ac_link"
10976 case "(($ac_try" in
10977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10978 *) ac_try_echo=$ac_try;;
10979 esac
10980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10981 $as_echo "$ac_try_echo") >&5
10982 (eval "$ac_link") 2>conftest.er1
10983 ac_status=$?
10984 grep -v '^ *+' conftest.er1 >conftest.err
10985 rm -f conftest.er1
10986 cat conftest.err >&5
10987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10988 (exit $ac_status); } && {
10989 test -z "$ac_c_werror_flag" ||
10990 test ! -s conftest.err
10991 } && test -s conftest$ac_exeext && {
10992 test "$cross_compiling" = yes ||
10993 $as_test_x conftest$ac_exeext
10994 }; then
7789 ac_cv_lib_dnet_dnet_ntoa=yes 10995 ac_cv_lib_dnet_dnet_ntoa=yes
7790 else 10996 else
7791 ac_cv_lib_dnet_dnet_ntoa=no 10997 $as_echo "$as_me: failed program was:" >&5
7792 fi 10998 sed 's/^/| /' conftest.$ac_ext >&5
7793 rm -f core conftest.err conftest.$ac_objext \ 10999
7794 conftest$ac_exeext conftest.$ac_ext 11000 ac_cv_lib_dnet_dnet_ntoa=no
11001 fi
11002
11003 rm -rf conftest.dSYM
11004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11005 conftest$ac_exeext conftest.$ac_ext
7795 LIBS=$ac_check_lib_save_LIBS 11006 LIBS=$ac_check_lib_save_LIBS
7796 fi 11007 fi
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 11008 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
7798 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 11009 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
7799 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then : 11010 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
7800 cat >>confdefs.h <<_ACEOF 11011 cat >>confdefs.h <<_ACEOF
7801 #define HAVE_LIBDNET 1 11012 #define HAVE_LIBDNET 1
7802 _ACEOF 11013 _ACEOF
7803 11014
7804 LIBS="-ldnet $LIBS" 11015 LIBS="-ldnet $LIBS"
7805 11016
7806 fi 11017 fi
7807 11018
7808 11019
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5 11020 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
7810 $as_echo_n "checking for main in -lXbsd... " >&6; } 11021 $as_echo_n "checking for main in -lXbsd... " >&6; }
7811 if test "${ac_cv_lib_Xbsd_main+set}" = set; then : 11022 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
7812 $as_echo_n "(cached) " >&6 11023 $as_echo_n "(cached) " >&6
7813 else 11024 else
7814 ac_check_lib_save_LIBS=$LIBS 11025 ac_check_lib_save_LIBS=$LIBS
7815 LIBS="-lXbsd $LIBS" 11026 LIBS="-lXbsd $LIBS"
7816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11027 cat >conftest.$ac_ext <<_ACEOF
11028 /* confdefs.h. */
11029 _ACEOF
11030 cat confdefs.h >>conftest.$ac_ext
11031 cat >>conftest.$ac_ext <<_ACEOF
7817 /* end confdefs.h. */ 11032 /* end confdefs.h. */
7818 11033
7819 11034
7820 int 11035 int
7821 main () 11036 main ()
7823 return main (); 11038 return main ();
7824 ; 11039 ;
7825 return 0; 11040 return 0;
7826 } 11041 }
7827 _ACEOF 11042 _ACEOF
7828 if ac_fn_c_try_link "$LINENO"; then : 11043 rm -f conftest.$ac_objext conftest$ac_exeext
11044 if { (ac_try="$ac_link"
11045 case "(($ac_try" in
11046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11047 *) ac_try_echo=$ac_try;;
11048 esac
11049 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11050 $as_echo "$ac_try_echo") >&5
11051 (eval "$ac_link") 2>conftest.er1
11052 ac_status=$?
11053 grep -v '^ *+' conftest.er1 >conftest.err
11054 rm -f conftest.er1
11055 cat conftest.err >&5
11056 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11057 (exit $ac_status); } && {
11058 test -z "$ac_c_werror_flag" ||
11059 test ! -s conftest.err
11060 } && test -s conftest$ac_exeext && {
11061 test "$cross_compiling" = yes ||
11062 $as_test_x conftest$ac_exeext
11063 }; then
7829 ac_cv_lib_Xbsd_main=yes 11064 ac_cv_lib_Xbsd_main=yes
7830 else 11065 else
7831 ac_cv_lib_Xbsd_main=no 11066 $as_echo "$as_me: failed program was:" >&5
7832 fi 11067 sed 's/^/| /' conftest.$ac_ext >&5
7833 rm -f core conftest.err conftest.$ac_objext \ 11068
7834 conftest$ac_exeext conftest.$ac_ext 11069 ac_cv_lib_Xbsd_main=no
11070 fi
11071
11072 rm -rf conftest.dSYM
11073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11074 conftest$ac_exeext conftest.$ac_ext
7835 LIBS=$ac_check_lib_save_LIBS 11075 LIBS=$ac_check_lib_save_LIBS
7836 fi 11076 fi
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5 11077 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
7838 $as_echo "$ac_cv_lib_Xbsd_main" >&6; } 11078 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
7839 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then : 11079 if test $ac_cv_lib_Xbsd_main = yes; then
7840 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" 11080 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
7841 fi 11081 fi
7842 11082
7843 11083
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5 11084
11085 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
7845 $as_echo_n "checking for cma_open in -lpthreads... " >&6; } 11086 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
7846 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then : 11087 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
7847 $as_echo_n "(cached) " >&6 11088 $as_echo_n "(cached) " >&6
7848 else 11089 else
7849 ac_check_lib_save_LIBS=$LIBS 11090 ac_check_lib_save_LIBS=$LIBS
7850 LIBS="-lpthreads $LIBS" 11091 LIBS="-lpthreads $LIBS"
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11092 cat >conftest.$ac_ext <<_ACEOF
11093 /* confdefs.h. */
11094 _ACEOF
11095 cat confdefs.h >>conftest.$ac_ext
11096 cat >>conftest.$ac_ext <<_ACEOF
7852 /* end confdefs.h. */ 11097 /* end confdefs.h. */
7853 11098
7854 /* Override any GCC internal prototype to avoid an error. 11099 /* Override any GCC internal prototype to avoid an error.
7855 Use char because int might match the return type of a GCC 11100 Use char because int might match the return type of a GCC
7856 builtin and then its argument prototype would still apply. */ 11101 builtin and then its argument prototype would still apply. */
7864 return cma_open (); 11109 return cma_open ();
7865 ; 11110 ;
7866 return 0; 11111 return 0;
7867 } 11112 }
7868 _ACEOF 11113 _ACEOF
7869 if ac_fn_c_try_link "$LINENO"; then : 11114 rm -f conftest.$ac_objext conftest$ac_exeext
11115 if { (ac_try="$ac_link"
11116 case "(($ac_try" in
11117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118 *) ac_try_echo=$ac_try;;
11119 esac
11120 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11121 $as_echo "$ac_try_echo") >&5
11122 (eval "$ac_link") 2>conftest.er1
11123 ac_status=$?
11124 grep -v '^ *+' conftest.er1 >conftest.err
11125 rm -f conftest.er1
11126 cat conftest.err >&5
11127 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11128 (exit $ac_status); } && {
11129 test -z "$ac_c_werror_flag" ||
11130 test ! -s conftest.err
11131 } && test -s conftest$ac_exeext && {
11132 test "$cross_compiling" = yes ||
11133 $as_test_x conftest$ac_exeext
11134 }; then
7870 ac_cv_lib_pthreads_cma_open=yes 11135 ac_cv_lib_pthreads_cma_open=yes
7871 else 11136 else
7872 ac_cv_lib_pthreads_cma_open=no 11137 $as_echo "$as_me: failed program was:" >&5
7873 fi 11138 sed 's/^/| /' conftest.$ac_ext >&5
7874 rm -f core conftest.err conftest.$ac_objext \ 11139
7875 conftest$ac_exeext conftest.$ac_ext 11140 ac_cv_lib_pthreads_cma_open=no
11141 fi
11142
11143 rm -rf conftest.dSYM
11144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11145 conftest$ac_exeext conftest.$ac_ext
7876 LIBS=$ac_check_lib_save_LIBS 11146 LIBS=$ac_check_lib_save_LIBS
7877 fi 11147 fi
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5 11148 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
7879 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } 11149 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
7880 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then : 11150 if test $ac_cv_lib_pthreads_cma_open = yes; then
7881 cat >>confdefs.h <<_ACEOF 11151 cat >>confdefs.h <<_ACEOF
7882 #define HAVE_LIBPTHREADS 1 11152 #define HAVE_LIBPTHREADS 1
7883 _ACEOF 11153 _ACEOF
7884 11154
7885 LIBS="-lpthreads $LIBS" 11155 LIBS="-lpthreads $LIBS"
7888 11158
7889 11159
7890 11160
7891 case ${host_os} in 11161 case ${host_os} in
7892 aix*) 11162 aix*)
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5 11163 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
7894 $as_echo_n "checking for -bbigtoc option... " >&6; } 11164 $as_echo_n "checking for -bbigtoc option... " >&6; }
7895 if test "${gdb_cv_bigtoc+set}" = set; then : 11165 if test "${gdb_cv_bigtoc+set}" = set; then
7896 $as_echo_n "(cached) " >&6 11166 $as_echo_n "(cached) " >&6
7897 else 11167 else
7898 11168
7899 case $GCC in 11169 case $GCC in
7900 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; 11170 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
7901 *) gdb_cv_bigtoc=-bbigtoc ;; 11171 *) gdb_cv_bigtoc=-bbigtoc ;;
7902 esac 11172 esac
7903 11173
7904 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc 11174 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11175 cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h. */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
7906 /* end confdefs.h. */ 11180 /* end confdefs.h. */
7907 11181
7908 int 11182 int
7909 main () 11183 main ()
7910 { 11184 {
7911 int i; 11185 int i;
7912 ; 11186 ;
7913 return 0; 11187 return 0;
7914 } 11188 }
7915 _ACEOF 11189 _ACEOF
7916 if ac_fn_c_try_link "$LINENO"; then : 11190 rm -f conftest.$ac_objext conftest$ac_exeext
7917 11191 if { (ac_try="$ac_link"
7918 else 11192 case "(($ac_try" in
7919 gdb_cv_bigtoc= 11193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 fi 11194 *) ac_try_echo=$ac_try;;
7921 rm -f core conftest.err conftest.$ac_objext \ 11195 esac
7922 conftest$ac_exeext conftest.$ac_ext 11196 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7923 11197 $as_echo "$ac_try_echo") >&5
7924 fi 11198 (eval "$ac_link") 2>conftest.er1
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5 11199 ac_status=$?
11200 grep -v '^ *+' conftest.er1 >conftest.err
11201 rm -f conftest.er1
11202 cat conftest.err >&5
11203 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11204 (exit $ac_status); } && {
11205 test -z "$ac_c_werror_flag" ||
11206 test ! -s conftest.err
11207 } && test -s conftest$ac_exeext && {
11208 test "$cross_compiling" = yes ||
11209 $as_test_x conftest$ac_exeext
11210 }; then
11211 :
11212 else
11213 $as_echo "$as_me: failed program was:" >&5
11214 sed 's/^/| /' conftest.$ac_ext >&5
11215
11216 gdb_cv_bigtoc=
11217 fi
11218
11219 rm -rf conftest.dSYM
11220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11221 conftest$ac_exeext conftest.$ac_ext
11222
11223 fi
11224 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
7926 $as_echo "$gdb_cv_bigtoc" >&6; } 11225 $as_echo "$gdb_cv_bigtoc" >&6; }
7927 ;; 11226 ;;
7928 esac 11227 esac
7929 11228
7930 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets 11229 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
7948 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH 11247 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
7949 export LD_RUN_PATH 11248 export LD_RUN_PATH
7950 fi 11249 fi
7951 11250
7952 if test "${opsys}" = "gnu-linux"; then 11251 if test "${opsys}" = "gnu-linux"; then
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5 11252 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
7954 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } 11253 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
7955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11254 cat >conftest.$ac_ext <<_ACEOF
11255 /* confdefs.h. */
11256 _ACEOF
11257 cat confdefs.h >>conftest.$ac_ext
11258 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */ 11259 /* end confdefs.h. */
7957 11260
7958 int 11261 int
7959 main () 11262 main ()
7960 { 11263 {
7961 XOpenDisplay ("foo"); 11264 XOpenDisplay ("foo");
7962 ; 11265 ;
7963 return 0; 11266 return 0;
7964 } 11267 }
7965 _ACEOF 11268 _ACEOF
7966 if ac_fn_c_try_link "$LINENO"; then : 11269 rm -f conftest.$ac_objext conftest$ac_exeext
11270 if { (ac_try="$ac_link"
11271 case "(($ac_try" in
11272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11273 *) ac_try_echo=$ac_try;;
11274 esac
11275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11276 $as_echo "$ac_try_echo") >&5
11277 (eval "$ac_link") 2>conftest.er1
11278 ac_status=$?
11279 grep -v '^ *+' conftest.er1 >conftest.err
11280 rm -f conftest.er1
11281 cat conftest.err >&5
11282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11283 (exit $ac_status); } && {
11284 test -z "$ac_c_werror_flag" ||
11285 test ! -s conftest.err
11286 } && test -s conftest$ac_exeext && {
11287 test "$cross_compiling" = yes ||
11288 $as_test_x conftest$ac_exeext
11289 }; then
7967 xlinux_first_failure=no 11290 xlinux_first_failure=no
7968 else 11291 else
7969 xlinux_first_failure=yes 11292 $as_echo "$as_me: failed program was:" >&5
7970 fi 11293 sed 's/^/| /' conftest.$ac_ext >&5
7971 rm -f core conftest.err conftest.$ac_objext \ 11294
7972 conftest$ac_exeext conftest.$ac_ext 11295 xlinux_first_failure=yes
11296 fi
11297
11298 rm -rf conftest.dSYM
11299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11300 conftest$ac_exeext conftest.$ac_ext
7973 if test "${xlinux_first_failure}" = "yes"; then 11301 if test "${xlinux_first_failure}" = "yes"; then
7974 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" 11302 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
7975 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" 11303 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
7976 OLD_CPPFLAGS="$CPPFLAGS" 11304 OLD_CPPFLAGS="$CPPFLAGS"
7977 OLD_LIBS="$LIBS" 11305 OLD_LIBS="$LIBS"
7978 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 11306 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
7979 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 11307 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
7980 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 11308 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
7981 LIBS="$LIBS -b i486-linuxaout" 11309 LIBS="$LIBS -b i486-linuxaout"
7982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11310 cat >conftest.$ac_ext <<_ACEOF
11311 /* confdefs.h. */
11312 _ACEOF
11313 cat confdefs.h >>conftest.$ac_ext
11314 cat >>conftest.$ac_ext <<_ACEOF
7983 /* end confdefs.h. */ 11315 /* end confdefs.h. */
7984 11316
7985 int 11317 int
7986 main () 11318 main ()
7987 { 11319 {
7988 XOpenDisplay ("foo"); 11320 XOpenDisplay ("foo");
7989 ; 11321 ;
7990 return 0; 11322 return 0;
7991 } 11323 }
7992 _ACEOF 11324 _ACEOF
7993 if ac_fn_c_try_link "$LINENO"; then : 11325 rm -f conftest.$ac_objext conftest$ac_exeext
11326 if { (ac_try="$ac_link"
11327 case "(($ac_try" in
11328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11330 esac
11331 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11332 $as_echo "$ac_try_echo") >&5
11333 (eval "$ac_link") 2>conftest.er1
11334 ac_status=$?
11335 grep -v '^ *+' conftest.er1 >conftest.err
11336 rm -f conftest.er1
11337 cat conftest.err >&5
11338 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11339 (exit $ac_status); } && {
11340 test -z "$ac_c_werror_flag" ||
11341 test ! -s conftest.err
11342 } && test -s conftest$ac_exeext && {
11343 test "$cross_compiling" = yes ||
11344 $as_test_x conftest$ac_exeext
11345 }; then
7994 xlinux_second_failure=no 11346 xlinux_second_failure=no
7995 else 11347 else
7996 xlinux_second_failure=yes 11348 $as_echo "$as_me: failed program was:" >&5
7997 fi 11349 sed 's/^/| /' conftest.$ac_ext >&5
7998 rm -f core conftest.err conftest.$ac_objext \ 11350
7999 conftest$ac_exeext conftest.$ac_ext 11351 xlinux_second_failure=yes
11352 fi
11353
11354 rm -rf conftest.dSYM
11355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11356 conftest$ac_exeext conftest.$ac_ext
8000 if test "${xlinux_second_failure}" = "yes"; then 11357 if test "${xlinux_second_failure}" = "yes"; then
8001 # If we get the same failure with -b, there is no use adding -b. 11358 # If we get the same failure with -b, there is no use adding -b.
8002 # So take it out. This plays safe. 11359 # So take it out. This plays safe.
8003 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" 11360 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
8004 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" 11361 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
8005 CPPFLAGS="$OLD_CPPFLAGS" 11362 CPPFLAGS="$OLD_CPPFLAGS"
8006 LIBS="$OLD_LIBS" 11363 LIBS="$OLD_LIBS"
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11364 { $as_echo "$as_me:$LINENO: result: no" >&5
8008 $as_echo "no" >&6; } 11365 $as_echo "no" >&6; }
8009 else 11366 else
8010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11367 { $as_echo "$as_me:$LINENO: result: yes" >&5
8011 $as_echo "yes" >&6; } 11368 $as_echo "yes" >&6; }
8012 fi 11369 fi
8013 else 11370 else
8014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11371 { $as_echo "$as_me:$LINENO: result: no" >&5
8015 $as_echo "no" >&6; } 11372 $as_echo "no" >&6; }
8016 fi 11373 fi
8017 fi 11374 fi
8018 11375
8019 # Reportedly, some broken Solaris systems have XKBlib.h but are missing 11376 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
8020 # header files included from there. 11377 # header files included from there.
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5 11378 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5
8022 $as_echo_n "checking for Xkb... " >&6; } 11379 $as_echo_n "checking for Xkb... " >&6; }
8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11380 cat >conftest.$ac_ext <<_ACEOF
11381 /* confdefs.h. */
11382 _ACEOF
11383 cat confdefs.h >>conftest.$ac_ext
11384 cat >>conftest.$ac_ext <<_ACEOF
8024 /* end confdefs.h. */ 11385 /* end confdefs.h. */
8025 #include <X11/Xlib.h> 11386 #include <X11/Xlib.h>
8026 #include <X11/XKBlib.h> 11387 #include <X11/XKBlib.h>
8027 int 11388 int
8028 main () 11389 main ()
8030 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); 11391 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
8031 ; 11392 ;
8032 return 0; 11393 return 0;
8033 } 11394 }
8034 _ACEOF 11395 _ACEOF
8035 if ac_fn_c_try_link "$LINENO"; then : 11396 rm -f conftest.$ac_objext conftest$ac_exeext
11397 if { (ac_try="$ac_link"
11398 case "(($ac_try" in
11399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11400 *) ac_try_echo=$ac_try;;
11401 esac
11402 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11403 $as_echo "$ac_try_echo") >&5
11404 (eval "$ac_link") 2>conftest.er1
11405 ac_status=$?
11406 grep -v '^ *+' conftest.er1 >conftest.err
11407 rm -f conftest.er1
11408 cat conftest.err >&5
11409 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11410 (exit $ac_status); } && {
11411 test -z "$ac_c_werror_flag" ||
11412 test ! -s conftest.err
11413 } && test -s conftest$ac_exeext && {
11414 test "$cross_compiling" = yes ||
11415 $as_test_x conftest$ac_exeext
11416 }; then
8036 emacs_xkb=yes 11417 emacs_xkb=yes
8037 else 11418 else
8038 emacs_xkb=no 11419 $as_echo "$as_me: failed program was:" >&5
8039 fi 11420 sed 's/^/| /' conftest.$ac_ext >&5
8040 rm -f core conftest.err conftest.$ac_objext \ 11421
8041 conftest$ac_exeext conftest.$ac_ext 11422 emacs_xkb=no
8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5 11423 fi
11424
11425 rm -rf conftest.dSYM
11426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11427 conftest$ac_exeext conftest.$ac_ext
11428 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
8043 $as_echo "$emacs_xkb" >&6; } 11429 $as_echo "$emacs_xkb" >&6; }
8044 if test $emacs_xkb = yes; then 11430 if test $emacs_xkb = yes; then
8045 11431
8046 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h 11432 cat >>confdefs.h <<\_ACEOF
11433 #define HAVE_XKBGETKEYBOARD 1
11434 _ACEOF
8047 11435
8048 fi 11436 fi
8049 11437
8050 for ac_func in XrmSetDatabase XScreenResourceString \ 11438
11439
11440
11441
11442 for ac_func in XrmSetDatabase XScreenResourceString \
8051 XScreenNumberOfScreen XSetWMProtocols 11443 XScreenNumberOfScreen XSetWMProtocols
8052 do : 11444 do
8053 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11445 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
8054 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11446 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
8055 eval as_val=\$$as_ac_var 11447 $as_echo_n "checking for $ac_func... " >&6; }
8056 if test "x$as_val" = x""yes; then : 11448 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11449 $as_echo_n "(cached) " >&6
11450 else
11451 cat >conftest.$ac_ext <<_ACEOF
11452 /* confdefs.h. */
11453 _ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11459 #define $ac_func innocuous_$ac_func
11460
11461 /* System header to define __stub macros and hopefully few prototypes,
11462 which can conflict with char $ac_func (); below.
11463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11464 <limits.h> exists even on freestanding compilers. */
11465
11466 #ifdef __STDC__
11467 # include <limits.h>
11468 #else
11469 # include <assert.h>
11470 #endif
11471
11472 #undef $ac_func
11473
11474 /* Override any GCC internal prototype to avoid an error.
11475 Use char because int might match the return type of a GCC
11476 builtin and then its argument prototype would still apply. */
11477 #ifdef __cplusplus
11478 extern "C"
11479 #endif
11480 char $ac_func ();
11481 /* The GNU C library defines this for functions which it implements
11482 to always fail with ENOSYS. Some functions are actually named
11483 something starting with __ and the normal name is an alias. */
11484 #if defined __stub_$ac_func || defined __stub___$ac_func
11485 choke me
11486 #endif
11487
11488 int
11489 main ()
11490 {
11491 return $ac_func ();
11492 ;
11493 return 0;
11494 }
11495 _ACEOF
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (ac_try="$ac_link"
11498 case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11501 esac
11502 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11503 $as_echo "$ac_try_echo") >&5
11504 (eval "$ac_link") 2>conftest.er1
11505 ac_status=$?
11506 grep -v '^ *+' conftest.er1 >conftest.err
11507 rm -f conftest.er1
11508 cat conftest.err >&5
11509 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } && {
11511 test -z "$ac_c_werror_flag" ||
11512 test ! -s conftest.err
11513 } && test -s conftest$ac_exeext && {
11514 test "$cross_compiling" = yes ||
11515 $as_test_x conftest$ac_exeext
11516 }; then
11517 eval "$as_ac_var=yes"
11518 else
11519 $as_echo "$as_me: failed program was:" >&5
11520 sed 's/^/| /' conftest.$ac_ext >&5
11521
11522 eval "$as_ac_var=no"
11523 fi
11524
11525 rm -rf conftest.dSYM
11526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11527 conftest$ac_exeext conftest.$ac_ext
11528 fi
11529 ac_res=`eval 'as_val=${'$as_ac_var'}
11530 $as_echo "$as_val"'`
11531 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11532 $as_echo "$ac_res" >&6; }
11533 if test `eval 'as_val=${'$as_ac_var'}
11534 $as_echo "$as_val"'` = yes; then
8057 cat >>confdefs.h <<_ACEOF 11535 cat >>confdefs.h <<_ACEOF
8058 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11536 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8059 _ACEOF 11537 _ACEOF
8060 11538
8061 fi 11539 fi
8062 done 11540 done
8063 11541
8064 fi 11542 fi
8065 11543
8066 if test "${window_system}" = "x11"; then 11544 if test "${window_system}" = "x11"; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5 11545 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5
8068 $as_echo_n "checking X11 version 6... " >&6; } 11546 $as_echo_n "checking X11 version 6... " >&6; }
8069 if test "${emacs_cv_x11_version_6+set}" = set; then : 11547 if test "${emacs_cv_x11_version_6+set}" = set; then
8070 $as_echo_n "(cached) " >&6 11548 $as_echo_n "(cached) " >&6
8071 else 11549 else
8072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11550 cat >conftest.$ac_ext <<_ACEOF
11551 /* confdefs.h. */
11552 _ACEOF
11553 cat confdefs.h >>conftest.$ac_ext
11554 cat >>conftest.$ac_ext <<_ACEOF
8073 /* end confdefs.h. */ 11555 /* end confdefs.h. */
8074 #include <X11/Xlib.h> 11556 #include <X11/Xlib.h>
8075 int 11557 int
8076 main () 11558 main ()
8077 { 11559 {
8081 11563
8082 ; 11564 ;
8083 return 0; 11565 return 0;
8084 } 11566 }
8085 _ACEOF 11567 _ACEOF
8086 if ac_fn_c_try_link "$LINENO"; then : 11568 rm -f conftest.$ac_objext conftest$ac_exeext
11569 if { (ac_try="$ac_link"
11570 case "(($ac_try" in
11571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11572 *) ac_try_echo=$ac_try;;
11573 esac
11574 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11575 $as_echo "$ac_try_echo") >&5
11576 (eval "$ac_link") 2>conftest.er1
11577 ac_status=$?
11578 grep -v '^ *+' conftest.er1 >conftest.err
11579 rm -f conftest.er1
11580 cat conftest.err >&5
11581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11582 (exit $ac_status); } && {
11583 test -z "$ac_c_werror_flag" ||
11584 test ! -s conftest.err
11585 } && test -s conftest$ac_exeext && {
11586 test "$cross_compiling" = yes ||
11587 $as_test_x conftest$ac_exeext
11588 }; then
8087 emacs_cv_x11_version_6=yes 11589 emacs_cv_x11_version_6=yes
8088 else 11590 else
8089 emacs_cv_x11_version_6=no 11591 $as_echo "$as_me: failed program was:" >&5
8090 fi 11592 sed 's/^/| /' conftest.$ac_ext >&5
8091 rm -f core conftest.err conftest.$ac_objext \ 11593
8092 conftest$ac_exeext conftest.$ac_ext 11594 emacs_cv_x11_version_6=no
11595 fi
11596
11597 rm -rf conftest.dSYM
11598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11599 conftest$ac_exeext conftest.$ac_ext
8093 fi 11600 fi
8094 11601
8095 if test $emacs_cv_x11_version_6 = yes; then 11602 if test $emacs_cv_x11_version_6 = yes; then
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 11603 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
8097 $as_echo "6 or newer" >&6; } 11604 $as_echo "6 or newer" >&6; }
8098 11605
8099 $as_echo "#define HAVE_X11R6 1" >>confdefs.h 11606 cat >>confdefs.h <<\_ACEOF
11607 #define HAVE_X11R6 1
11608 _ACEOF
8100 11609
8101 else 11610 else
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 11611 { $as_echo "$as_me:$LINENO: result: before 6" >&5
8103 $as_echo "before 6" >&6; } 11612 $as_echo "before 6" >&6; }
8104 fi 11613 fi
8105 fi 11614 fi
8106 11615
8107 11616
8115 11624
8116 succeeded=no 11625 succeeded=no
8117 11626
8118 # Extract the first word of "pkg-config", so it can be a program name with args. 11627 # Extract the first word of "pkg-config", so it can be a program name with args.
8119 set dummy pkg-config; ac_word=$2 11628 set dummy pkg-config; ac_word=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11629 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; } 11630 $as_echo_n "checking for $ac_word... " >&6; }
8122 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11631 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8123 $as_echo_n "(cached) " >&6 11632 $as_echo_n "(cached) " >&6
8124 else 11633 else
8125 case $PKG_CONFIG in 11634 case $PKG_CONFIG in
8126 [\\/]* | ?:[\\/]*) 11635 [\\/]* | ?:[\\/]*)
8127 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11636 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8131 for as_dir in $PATH 11640 for as_dir in $PATH
8132 do 11641 do
8133 IFS=$as_save_IFS 11642 IFS=$as_save_IFS
8134 test -z "$as_dir" && as_dir=. 11643 test -z "$as_dir" && as_dir=.
8135 for ac_exec_ext in '' $ac_executable_extensions; do 11644 for ac_exec_ext in '' $ac_executable_extensions; do
8136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8137 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11646 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11647 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8139 break 2 11648 break 2
8140 fi 11649 fi
8141 done 11650 done
8142 done 11651 done
8143 IFS=$as_save_IFS 11652 IFS=$as_save_IFS
8144 11653
8145 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 11654 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8146 ;; 11655 ;;
8147 esac 11656 esac
8148 fi 11657 fi
8149 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11658 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8150 if test -n "$PKG_CONFIG"; then 11659 if test -n "$PKG_CONFIG"; then
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11660 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8152 $as_echo "$PKG_CONFIG" >&6; } 11661 $as_echo "$PKG_CONFIG" >&6; }
8153 else 11662 else
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11663 { $as_echo "$as_me:$LINENO: result: no" >&5
8155 $as_echo "no" >&6; } 11664 $as_echo "no" >&6; }
8156 fi 11665 fi
8157 11666
8158 11667
8159 11668
8160 if test "$PKG_CONFIG" = "no" ; then 11669 if test "$PKG_CONFIG" = "no" ; then
8161 : 11670 :
8162 else 11671 else
8163 PKG_CONFIG_MIN_VERSION=0.9.0 11672 PKG_CONFIG_MIN_VERSION=0.9.0
8164 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 11673 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5 11674 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
8166 $as_echo_n "checking for $RSVG_MODULE... " >&6; } 11675 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
8167 11676
8168 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then 11677 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11678 { $as_echo "$as_me:$LINENO: result: yes" >&5
8170 $as_echo "yes" >&6; } 11679 $as_echo "yes" >&6; }
8171 succeeded=yes 11680 succeeded=yes
8172 11681
8173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5 11682 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
8174 $as_echo_n "checking RSVG_CFLAGS... " >&6; } 11683 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
8175 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` 11684 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5 11685 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
8177 $as_echo "$RSVG_CFLAGS" >&6; } 11686 $as_echo "$RSVG_CFLAGS" >&6; }
8178 11687
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5 11688 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
8180 $as_echo_n "checking RSVG_LIBS... " >&6; } 11689 $as_echo_n "checking RSVG_LIBS... " >&6; }
8181 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` 11690 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
8182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5 11691 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
8183 $as_echo "$RSVG_LIBS" >&6; } 11692 $as_echo "$RSVG_LIBS" >&6; }
8184 else 11693 else
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11694 { $as_echo "$as_me:$LINENO: result: no" >&5
8186 $as_echo "no" >&6; } 11695 $as_echo "no" >&6; }
8187 RSVG_CFLAGS="" 11696 RSVG_CFLAGS=""
8188 RSVG_LIBS="" 11697 RSVG_LIBS=""
8189 ## If we have a custom action on failure, don't print errors, but 11698 ## If we have a custom action on failure, don't print errors, but
8190 ## do set a variable so people can do so. 11699 ## do set a variable so people can do so.
8210 11719
8211 11720
8212 if test ".${RSVG_CFLAGS}" != "."; then 11721 if test ".${RSVG_CFLAGS}" != "."; then
8213 HAVE_RSVG=yes 11722 HAVE_RSVG=yes
8214 11723
8215 $as_echo "#define HAVE_RSVG 1" >>confdefs.h 11724 cat >>confdefs.h <<\_ACEOF
11725 #define HAVE_RSVG 1
11726 _ACEOF
8216 11727
8217 CFLAGS="$CFLAGS $RSVG_CFLAGS" 11728 CFLAGS="$CFLAGS $RSVG_CFLAGS"
8218 LIBS="$RSVG_LIBS $LIBS" 11729 LIBS="$RSVG_LIBS $LIBS"
8219 fi 11730 fi
8220 fi 11731 fi
8230 11741
8231 succeeded=no 11742 succeeded=no
8232 11743
8233 # Extract the first word of "pkg-config", so it can be a program name with args. 11744 # Extract the first word of "pkg-config", so it can be a program name with args.
8234 set dummy pkg-config; ac_word=$2 11745 set dummy pkg-config; ac_word=$2
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11746 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8236 $as_echo_n "checking for $ac_word... " >&6; } 11747 $as_echo_n "checking for $ac_word... " >&6; }
8237 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 11748 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8238 $as_echo_n "(cached) " >&6 11749 $as_echo_n "(cached) " >&6
8239 else 11750 else
8240 case $PKG_CONFIG in 11751 case $PKG_CONFIG in
8241 [\\/]* | ?:[\\/]*) 11752 [\\/]* | ?:[\\/]*)
8242 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11753 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8246 for as_dir in $PATH 11757 for as_dir in $PATH
8247 do 11758 do
8248 IFS=$as_save_IFS 11759 IFS=$as_save_IFS
8249 test -z "$as_dir" && as_dir=. 11760 test -z "$as_dir" && as_dir=.
8250 for ac_exec_ext in '' $ac_executable_extensions; do 11761 for ac_exec_ext in '' $ac_executable_extensions; do
8251 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11762 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8252 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11763 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11764 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8254 break 2 11765 break 2
8255 fi 11766 fi
8256 done 11767 done
8257 done 11768 done
8258 IFS=$as_save_IFS 11769 IFS=$as_save_IFS
8259 11770
8260 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 11771 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8261 ;; 11772 ;;
8262 esac 11773 esac
8263 fi 11774 fi
8264 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11775 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8265 if test -n "$PKG_CONFIG"; then 11776 if test -n "$PKG_CONFIG"; then
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11777 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8267 $as_echo "$PKG_CONFIG" >&6; } 11778 $as_echo "$PKG_CONFIG" >&6; }
8268 else 11779 else
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11780 { $as_echo "$as_me:$LINENO: result: no" >&5
8270 $as_echo "no" >&6; } 11781 $as_echo "no" >&6; }
8271 fi 11782 fi
8272 11783
8273 11784
8274 11785
8275 if test "$PKG_CONFIG" = "no" ; then 11786 if test "$PKG_CONFIG" = "no" ; then
8276 pkg_check_gtk=no 11787 pkg_check_gtk=no
8277 else 11788 else
8278 PKG_CONFIG_MIN_VERSION=0.9.0 11789 PKG_CONFIG_MIN_VERSION=0.9.0
8279 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 11790 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5 11791 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
8281 $as_echo_n "checking for $GTK_MODULES... " >&6; } 11792 $as_echo_n "checking for $GTK_MODULES... " >&6; }
8282 11793
8283 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then 11794 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
8284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11795 { $as_echo "$as_me:$LINENO: result: yes" >&5
8285 $as_echo "yes" >&6; } 11796 $as_echo "yes" >&6; }
8286 succeeded=yes 11797 succeeded=yes
8287 11798
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5 11799 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
8289 $as_echo_n "checking GTK_CFLAGS... " >&6; } 11800 $as_echo_n "checking GTK_CFLAGS... " >&6; }
8290 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` 11801 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5 11802 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
8292 $as_echo "$GTK_CFLAGS" >&6; } 11803 $as_echo "$GTK_CFLAGS" >&6; }
8293 11804
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5 11805 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5
8295 $as_echo_n "checking GTK_LIBS... " >&6; } 11806 $as_echo_n "checking GTK_LIBS... " >&6; }
8296 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` 11807 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5 11808 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
8298 $as_echo "$GTK_LIBS" >&6; } 11809 $as_echo "$GTK_LIBS" >&6; }
8299 else 11810 else
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11811 { $as_echo "$as_me:$LINENO: result: no" >&5
8301 $as_echo "no" >&6; } 11812 $as_echo "no" >&6; }
8302 GTK_CFLAGS="" 11813 GTK_CFLAGS=""
8303 GTK_LIBS="" 11814 GTK_LIBS=""
8304 ## If we have a custom action on failure, don't print errors, but 11815 ## If we have a custom action on failure, don't print errors, but
8305 ## do set a variable so people can do so. 11816 ## do set a variable so people can do so.
8320 else 11831 else
8321 pkg_check_gtk=no 11832 pkg_check_gtk=no
8322 fi 11833 fi
8323 11834
8324 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then 11835 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
8325 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5 11836 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11837 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11838 { (exit 1); exit 1; }; }
8326 fi 11839 fi
8327 fi 11840 fi
8328 11841
8329 11842
8330 GTK_OBJ= 11843 GTK_OBJ=
8334 11847
8335 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" 11848 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
8336 CFLAGS="$CFLAGS $GTK_CFLAGS" 11849 CFLAGS="$CFLAGS $GTK_CFLAGS"
8337 LIBS="$GTK_LIBS $LIBS" 11850 LIBS="$GTK_LIBS $LIBS"
8338 GTK_COMPILES=no 11851 GTK_COMPILES=no
8339 for ac_func in gtk_main 11852
8340 do : 11853 for ac_func in gtk_main
8341 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main" 11854 do
8342 if test "x$ac_cv_func_gtk_main" = x""yes; then : 11855 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11856 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11857 $as_echo_n "checking for $ac_func... " >&6; }
11858 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11859 $as_echo_n "(cached) " >&6
11860 else
11861 cat >conftest.$ac_ext <<_ACEOF
11862 /* confdefs.h. */
11863 _ACEOF
11864 cat confdefs.h >>conftest.$ac_ext
11865 cat >>conftest.$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11867 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11868 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11869 #define $ac_func innocuous_$ac_func
11870
11871 /* System header to define __stub macros and hopefully few prototypes,
11872 which can conflict with char $ac_func (); below.
11873 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11874 <limits.h> exists even on freestanding compilers. */
11875
11876 #ifdef __STDC__
11877 # include <limits.h>
11878 #else
11879 # include <assert.h>
11880 #endif
11881
11882 #undef $ac_func
11883
11884 /* Override any GCC internal prototype to avoid an error.
11885 Use char because int might match the return type of a GCC
11886 builtin and then its argument prototype would still apply. */
11887 #ifdef __cplusplus
11888 extern "C"
11889 #endif
11890 char $ac_func ();
11891 /* The GNU C library defines this for functions which it implements
11892 to always fail with ENOSYS. Some functions are actually named
11893 something starting with __ and the normal name is an alias. */
11894 #if defined __stub_$ac_func || defined __stub___$ac_func
11895 choke me
11896 #endif
11897
11898 int
11899 main ()
11900 {
11901 return $ac_func ();
11902 ;
11903 return 0;
11904 }
11905 _ACEOF
11906 rm -f conftest.$ac_objext conftest$ac_exeext
11907 if { (ac_try="$ac_link"
11908 case "(($ac_try" in
11909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11910 *) ac_try_echo=$ac_try;;
11911 esac
11912 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11913 $as_echo "$ac_try_echo") >&5
11914 (eval "$ac_link") 2>conftest.er1
11915 ac_status=$?
11916 grep -v '^ *+' conftest.er1 >conftest.err
11917 rm -f conftest.er1
11918 cat conftest.err >&5
11919 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11920 (exit $ac_status); } && {
11921 test -z "$ac_c_werror_flag" ||
11922 test ! -s conftest.err
11923 } && test -s conftest$ac_exeext && {
11924 test "$cross_compiling" = yes ||
11925 $as_test_x conftest$ac_exeext
11926 }; then
11927 eval "$as_ac_var=yes"
11928 else
11929 $as_echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11931
11932 eval "$as_ac_var=no"
11933 fi
11934
11935 rm -rf conftest.dSYM
11936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11937 conftest$ac_exeext conftest.$ac_ext
11938 fi
11939 ac_res=`eval 'as_val=${'$as_ac_var'}
11940 $as_echo "$as_val"'`
11941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11942 $as_echo "$ac_res" >&6; }
11943 if test `eval 'as_val=${'$as_ac_var'}
11944 $as_echo "$as_val"'` = yes; then
8343 cat >>confdefs.h <<_ACEOF 11945 cat >>confdefs.h <<_ACEOF
8344 #define HAVE_GTK_MAIN 1 11946 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8345 _ACEOF 11947 _ACEOF
8346 GTK_COMPILES=yes 11948 GTK_COMPILES=yes
8347 fi 11949 fi
8348 done 11950 done
8349 11951
8350 if test "${GTK_COMPILES}" != "yes"; then 11952 if test "${GTK_COMPILES}" != "yes"; then
8351 if test "$USE_X_TOOLKIT" != "maybe"; then 11953 if test "$USE_X_TOOLKIT" != "maybe"; then
8352 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5; 11954 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11955 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11956 { (exit 1); exit 1; }; };
8353 fi 11957 fi
8354 else 11958 else
8355 HAVE_GTK=yes 11959 HAVE_GTK=yes
8356 11960
8357 $as_echo "#define USE_GTK 1" >>confdefs.h 11961 cat >>confdefs.h <<\_ACEOF
11962 #define USE_GTK 1
11963 _ACEOF
8358 11964
8359 GTK_OBJ=gtkutil.o 11965 GTK_OBJ=gtkutil.o
8360 USE_X_TOOLKIT=none 11966 USE_X_TOOLKIT=none
8361 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then 11967 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
8362 : 11968 :
8363 else 11969 else
8364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with 11970 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
8365 closing open displays. This is no problem if you just use 11971 closing open displays. This is no problem if you just use
8366 one display, but if you use more than one and close one of them 11972 one display, but if you use more than one and close one of them
8367 Emacs may crash." >&5 11973 Emacs may crash." >&5
8368 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with 11974 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
8369 closing open displays. This is no problem if you just use 11975 closing open displays. This is no problem if you just use
8382 if test "$with_toolkit_scroll_bars" != no; then 11988 if test "$with_toolkit_scroll_bars" != no; then
8383 with_toolkit_scroll_bars=yes 11989 with_toolkit_scroll_bars=yes
8384 fi 11990 fi
8385 11991
8386 HAVE_GTK_MULTIDISPLAY=no 11992 HAVE_GTK_MULTIDISPLAY=no
8387 for ac_func in gdk_display_open 11993
8388 do : 11994 for ac_func in gdk_display_open
8389 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open" 11995 do
8390 if test "x$ac_cv_func_gdk_display_open" = x""yes; then : 11996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11997 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11998 $as_echo_n "checking for $ac_func... " >&6; }
11999 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12000 $as_echo_n "(cached) " >&6
12001 else
12002 cat >conftest.$ac_ext <<_ACEOF
12003 /* confdefs.h. */
12004 _ACEOF
12005 cat confdefs.h >>conftest.$ac_ext
12006 cat >>conftest.$ac_ext <<_ACEOF
12007 /* end confdefs.h. */
12008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12010 #define $ac_func innocuous_$ac_func
12011
12012 /* System header to define __stub macros and hopefully few prototypes,
12013 which can conflict with char $ac_func (); below.
12014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12015 <limits.h> exists even on freestanding compilers. */
12016
12017 #ifdef __STDC__
12018 # include <limits.h>
12019 #else
12020 # include <assert.h>
12021 #endif
12022
12023 #undef $ac_func
12024
12025 /* Override any GCC internal prototype to avoid an error.
12026 Use char because int might match the return type of a GCC
12027 builtin and then its argument prototype would still apply. */
12028 #ifdef __cplusplus
12029 extern "C"
12030 #endif
12031 char $ac_func ();
12032 /* The GNU C library defines this for functions which it implements
12033 to always fail with ENOSYS. Some functions are actually named
12034 something starting with __ and the normal name is an alias. */
12035 #if defined __stub_$ac_func || defined __stub___$ac_func
12036 choke me
12037 #endif
12038
12039 int
12040 main ()
12041 {
12042 return $ac_func ();
12043 ;
12044 return 0;
12045 }
12046 _ACEOF
12047 rm -f conftest.$ac_objext conftest$ac_exeext
12048 if { (ac_try="$ac_link"
12049 case "(($ac_try" in
12050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12051 *) ac_try_echo=$ac_try;;
12052 esac
12053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12054 $as_echo "$ac_try_echo") >&5
12055 (eval "$ac_link") 2>conftest.er1
12056 ac_status=$?
12057 grep -v '^ *+' conftest.er1 >conftest.err
12058 rm -f conftest.er1
12059 cat conftest.err >&5
12060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } && {
12062 test -z "$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12064 } && test -s conftest$ac_exeext && {
12065 test "$cross_compiling" = yes ||
12066 $as_test_x conftest$ac_exeext
12067 }; then
12068 eval "$as_ac_var=yes"
12069 else
12070 $as_echo "$as_me: failed program was:" >&5
12071 sed 's/^/| /' conftest.$ac_ext >&5
12072
12073 eval "$as_ac_var=no"
12074 fi
12075
12076 rm -rf conftest.dSYM
12077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12078 conftest$ac_exeext conftest.$ac_ext
12079 fi
12080 ac_res=`eval 'as_val=${'$as_ac_var'}
12081 $as_echo "$as_val"'`
12082 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12083 $as_echo "$ac_res" >&6; }
12084 if test `eval 'as_val=${'$as_ac_var'}
12085 $as_echo "$as_val"'` = yes; then
8391 cat >>confdefs.h <<_ACEOF 12086 cat >>confdefs.h <<_ACEOF
8392 #define HAVE_GDK_DISPLAY_OPEN 1 12087 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8393 _ACEOF 12088 _ACEOF
8394 HAVE_GTK_MULTIDISPLAY=yes 12089 HAVE_GTK_MULTIDISPLAY=yes
8395 fi 12090 fi
8396 done 12091 done
8397 12092
8398 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then 12093 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
8399 12094
8400 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h 12095 cat >>confdefs.h <<\_ACEOF
12096 #define HAVE_GTK_MULTIDISPLAY 1
12097 _ACEOF
8401 12098
8402 fi 12099 fi
8403 12100
8404 HAVE_GTK_FILE_SELECTION=no 12101 HAVE_GTK_FILE_SELECTION=no
8405 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default 12102 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5
12103 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
12104 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
12105 $as_echo_n "(cached) " >&6
12106 else
12107 cat >conftest.$ac_ext <<_ACEOF
12108 /* confdefs.h. */
12109 _ACEOF
12110 cat confdefs.h >>conftest.$ac_ext
12111 cat >>conftest.$ac_ext <<_ACEOF
12112 /* end confdefs.h. */
12113 $ac_includes_default
8406 #include <gtk/gtk.h> 12114 #include <gtk/gtk.h>
8407 " 12115
8408 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then : 12116 int
12117 main ()
12118 {
12119 #ifndef GTK_TYPE_FILE_SELECTION
12120 (void) GTK_TYPE_FILE_SELECTION;
12121 #endif
12122
12123 ;
12124 return 0;
12125 }
12126 _ACEOF
12127 rm -f conftest.$ac_objext
12128 if { (ac_try="$ac_compile"
12129 case "(($ac_try" in
12130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12131 *) ac_try_echo=$ac_try;;
12132 esac
12133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12134 $as_echo "$ac_try_echo") >&5
12135 (eval "$ac_compile") 2>conftest.er1
12136 ac_status=$?
12137 grep -v '^ *+' conftest.er1 >conftest.err
12138 rm -f conftest.er1
12139 cat conftest.err >&5
12140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12141 (exit $ac_status); } && {
12142 test -z "$ac_c_werror_flag" ||
12143 test ! -s conftest.err
12144 } && test -s conftest.$ac_objext; then
12145 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
12146 else
12147 $as_echo "$as_me: failed program was:" >&5
12148 sed 's/^/| /' conftest.$ac_ext >&5
12149
12150 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
12151 fi
12152
12153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12154 fi
12155 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
12156 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
12157 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
8409 HAVE_GTK_FILE_SELECTION=yes 12158 HAVE_GTK_FILE_SELECTION=yes
8410 else 12159 else
8411 HAVE_GTK_FILE_SELECTION=no 12160 HAVE_GTK_FILE_SELECTION=no
8412 fi 12161 fi
8413 12162
8414 if test "$HAVE_GTK_FILE_SELECTION" = yes; then 12163 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
8415 for ac_func in gtk_file_selection_new 12164
8416 do : 12165 for ac_func in gtk_file_selection_new
8417 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new" 12166 do
8418 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then : 12167 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12168 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12169 $as_echo_n "checking for $ac_func... " >&6; }
12170 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12171 $as_echo_n "(cached) " >&6
12172 else
12173 cat >conftest.$ac_ext <<_ACEOF
12174 /* confdefs.h. */
12175 _ACEOF
12176 cat confdefs.h >>conftest.$ac_ext
12177 cat >>conftest.$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12179 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12180 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12181 #define $ac_func innocuous_$ac_func
12182
12183 /* System header to define __stub macros and hopefully few prototypes,
12184 which can conflict with char $ac_func (); below.
12185 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12186 <limits.h> exists even on freestanding compilers. */
12187
12188 #ifdef __STDC__
12189 # include <limits.h>
12190 #else
12191 # include <assert.h>
12192 #endif
12193
12194 #undef $ac_func
12195
12196 /* Override any GCC internal prototype to avoid an error.
12197 Use char because int might match the return type of a GCC
12198 builtin and then its argument prototype would still apply. */
12199 #ifdef __cplusplus
12200 extern "C"
12201 #endif
12202 char $ac_func ();
12203 /* The GNU C library defines this for functions which it implements
12204 to always fail with ENOSYS. Some functions are actually named
12205 something starting with __ and the normal name is an alias. */
12206 #if defined __stub_$ac_func || defined __stub___$ac_func
12207 choke me
12208 #endif
12209
12210 int
12211 main ()
12212 {
12213 return $ac_func ();
12214 ;
12215 return 0;
12216 }
12217 _ACEOF
12218 rm -f conftest.$ac_objext conftest$ac_exeext
12219 if { (ac_try="$ac_link"
12220 case "(($ac_try" in
12221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12222 *) ac_try_echo=$ac_try;;
12223 esac
12224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12225 $as_echo "$ac_try_echo") >&5
12226 (eval "$ac_link") 2>conftest.er1
12227 ac_status=$?
12228 grep -v '^ *+' conftest.er1 >conftest.err
12229 rm -f conftest.er1
12230 cat conftest.err >&5
12231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12232 (exit $ac_status); } && {
12233 test -z "$ac_c_werror_flag" ||
12234 test ! -s conftest.err
12235 } && test -s conftest$ac_exeext && {
12236 test "$cross_compiling" = yes ||
12237 $as_test_x conftest$ac_exeext
12238 }; then
12239 eval "$as_ac_var=yes"
12240 else
12241 $as_echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12243
12244 eval "$as_ac_var=no"
12245 fi
12246
12247 rm -rf conftest.dSYM
12248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12249 conftest$ac_exeext conftest.$ac_ext
12250 fi
12251 ac_res=`eval 'as_val=${'$as_ac_var'}
12252 $as_echo "$as_val"'`
12253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12254 $as_echo "$ac_res" >&6; }
12255 if test `eval 'as_val=${'$as_ac_var'}
12256 $as_echo "$as_val"'` = yes; then
8419 cat >>confdefs.h <<_ACEOF 12257 cat >>confdefs.h <<_ACEOF
8420 #define HAVE_GTK_FILE_SELECTION_NEW 1 12258 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8421 _ACEOF 12259 _ACEOF
8422 HAVE_GTK_FILE_SELECTION=yes 12260 HAVE_GTK_FILE_SELECTION=yes
8423 else 12261 else
8424 HAVE_GTK_FILE_SELECTION=no 12262 HAVE_GTK_FILE_SELECTION=no
8425 fi 12263 fi
8426 done 12264 done
8427 12265
8428 fi 12266 fi
8429 12267
8430 HAVE_GTK_FILE_CHOOSER=no 12268 HAVE_GTK_FILE_CHOOSER=no
8431 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default 12269 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5
12270 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12271 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12272 $as_echo_n "(cached) " >&6
12273 else
12274 cat >conftest.$ac_ext <<_ACEOF
12275 /* confdefs.h. */
12276 _ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12280 $ac_includes_default
8432 #include <gtk/gtk.h> 12281 #include <gtk/gtk.h>
8433 " 12282
8434 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then : 12283 int
12284 main ()
12285 {
12286 #ifndef GTK_TYPE_FILE_CHOOSER
12287 (void) GTK_TYPE_FILE_CHOOSER;
12288 #endif
12289
12290 ;
12291 return 0;
12292 }
12293 _ACEOF
12294 rm -f conftest.$ac_objext
12295 if { (ac_try="$ac_compile"
12296 case "(($ac_try" in
12297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12298 *) ac_try_echo=$ac_try;;
12299 esac
12300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12301 $as_echo "$ac_try_echo") >&5
12302 (eval "$ac_compile") 2>conftest.er1
12303 ac_status=$?
12304 grep -v '^ *+' conftest.er1 >conftest.err
12305 rm -f conftest.er1
12306 cat conftest.err >&5
12307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12308 (exit $ac_status); } && {
12309 test -z "$ac_c_werror_flag" ||
12310 test ! -s conftest.err
12311 } && test -s conftest.$ac_objext; then
12312 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12313 else
12314 $as_echo "$as_me: failed program was:" >&5
12315 sed 's/^/| /' conftest.$ac_ext >&5
12316
12317 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12318 fi
12319
12320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12321 fi
12322 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12323 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12324 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
8435 HAVE_GTK_FILE_CHOOSER=yes 12325 HAVE_GTK_FILE_CHOOSER=yes
8436 else 12326 else
8437 HAVE_GTK_FILE_CHOOSER=no 12327 HAVE_GTK_FILE_CHOOSER=no
8438 fi 12328 fi
8439 12329
8440 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12330 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8441 for ac_func in gtk_file_chooser_dialog_new 12331
8442 do : 12332 for ac_func in gtk_file_chooser_dialog_new
8443 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new" 12333 do
8444 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then : 12334 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12335 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12336 $as_echo_n "checking for $ac_func... " >&6; }
12337 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12338 $as_echo_n "(cached) " >&6
12339 else
12340 cat >conftest.$ac_ext <<_ACEOF
12341 /* confdefs.h. */
12342 _ACEOF
12343 cat confdefs.h >>conftest.$ac_ext
12344 cat >>conftest.$ac_ext <<_ACEOF
12345 /* end confdefs.h. */
12346 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12348 #define $ac_func innocuous_$ac_func
12349
12350 /* System header to define __stub macros and hopefully few prototypes,
12351 which can conflict with char $ac_func (); below.
12352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12353 <limits.h> exists even on freestanding compilers. */
12354
12355 #ifdef __STDC__
12356 # include <limits.h>
12357 #else
12358 # include <assert.h>
12359 #endif
12360
12361 #undef $ac_func
12362
12363 /* Override any GCC internal prototype to avoid an error.
12364 Use char because int might match the return type of a GCC
12365 builtin and then its argument prototype would still apply. */
12366 #ifdef __cplusplus
12367 extern "C"
12368 #endif
12369 char $ac_func ();
12370 /* The GNU C library defines this for functions which it implements
12371 to always fail with ENOSYS. Some functions are actually named
12372 something starting with __ and the normal name is an alias. */
12373 #if defined __stub_$ac_func || defined __stub___$ac_func
12374 choke me
12375 #endif
12376
12377 int
12378 main ()
12379 {
12380 return $ac_func ();
12381 ;
12382 return 0;
12383 }
12384 _ACEOF
12385 rm -f conftest.$ac_objext conftest$ac_exeext
12386 if { (ac_try="$ac_link"
12387 case "(($ac_try" in
12388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12389 *) ac_try_echo=$ac_try;;
12390 esac
12391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12392 $as_echo "$ac_try_echo") >&5
12393 (eval "$ac_link") 2>conftest.er1
12394 ac_status=$?
12395 grep -v '^ *+' conftest.er1 >conftest.err
12396 rm -f conftest.er1
12397 cat conftest.err >&5
12398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12399 (exit $ac_status); } && {
12400 test -z "$ac_c_werror_flag" ||
12401 test ! -s conftest.err
12402 } && test -s conftest$ac_exeext && {
12403 test "$cross_compiling" = yes ||
12404 $as_test_x conftest$ac_exeext
12405 }; then
12406 eval "$as_ac_var=yes"
12407 else
12408 $as_echo "$as_me: failed program was:" >&5
12409 sed 's/^/| /' conftest.$ac_ext >&5
12410
12411 eval "$as_ac_var=no"
12412 fi
12413
12414 rm -rf conftest.dSYM
12415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12416 conftest$ac_exeext conftest.$ac_ext
12417 fi
12418 ac_res=`eval 'as_val=${'$as_ac_var'}
12419 $as_echo "$as_val"'`
12420 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12421 $as_echo "$ac_res" >&6; }
12422 if test `eval 'as_val=${'$as_ac_var'}
12423 $as_echo "$as_val"'` = yes; then
8445 cat >>confdefs.h <<_ACEOF 12424 cat >>confdefs.h <<_ACEOF
8446 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1 12425 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8447 _ACEOF 12426 _ACEOF
8448 HAVE_GTK_FILE_CHOOSER=yes 12427 HAVE_GTK_FILE_CHOOSER=yes
8449 else 12428 else
8450 HAVE_GTK_FILE_CHOOSER=no 12429 HAVE_GTK_FILE_CHOOSER=no
8451 fi 12430 fi
8454 fi 12433 fi
8455 12434
8456 if test "$HAVE_GTK_FILE_SELECTION" = yes \ 12435 if test "$HAVE_GTK_FILE_SELECTION" = yes \
8457 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12436 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8458 12437
8459 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h 12438 cat >>confdefs.h <<\_ACEOF
12439 #define HAVE_GTK_FILE_BOTH 1
12440 _ACEOF
8460 12441
8461 fi 12442 fi
8462 12443
8463 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 12444 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
8464 HAVE_GTK_AND_PTHREAD=no 12445 HAVE_GTK_AND_PTHREAD=no
8465 for ac_header in pthread.h 12446
8466 do : 12447 for ac_header in pthread.h
8467 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 12448 do
8468 if test "x$ac_cv_header_pthread_h" = x""yes; then : 12449 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12450 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12451 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12452 $as_echo_n "checking for $ac_header... " >&6; }
12453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12454 $as_echo_n "(cached) " >&6
12455 fi
12456 ac_res=`eval 'as_val=${'$as_ac_Header'}
12457 $as_echo "$as_val"'`
12458 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12459 $as_echo "$ac_res" >&6; }
12460 else
12461 # Is the header compilable?
12462 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12463 $as_echo_n "checking $ac_header usability... " >&6; }
12464 cat >conftest.$ac_ext <<_ACEOF
12465 /* confdefs.h. */
12466 _ACEOF
12467 cat confdefs.h >>conftest.$ac_ext
12468 cat >>conftest.$ac_ext <<_ACEOF
12469 /* end confdefs.h. */
12470 $ac_includes_default
12471 #include <$ac_header>
12472 _ACEOF
12473 rm -f conftest.$ac_objext
12474 if { (ac_try="$ac_compile"
12475 case "(($ac_try" in
12476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12477 *) ac_try_echo=$ac_try;;
12478 esac
12479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12480 $as_echo "$ac_try_echo") >&5
12481 (eval "$ac_compile") 2>conftest.er1
12482 ac_status=$?
12483 grep -v '^ *+' conftest.er1 >conftest.err
12484 rm -f conftest.er1
12485 cat conftest.err >&5
12486 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12487 (exit $ac_status); } && {
12488 test -z "$ac_c_werror_flag" ||
12489 test ! -s conftest.err
12490 } && test -s conftest.$ac_objext; then
12491 ac_header_compiler=yes
12492 else
12493 $as_echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496 ac_header_compiler=no
12497 fi
12498
12499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12500 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12501 $as_echo "$ac_header_compiler" >&6; }
12502
12503 # Is the header present?
12504 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12505 $as_echo_n "checking $ac_header presence... " >&6; }
12506 cat >conftest.$ac_ext <<_ACEOF
12507 /* confdefs.h. */
12508 _ACEOF
12509 cat confdefs.h >>conftest.$ac_ext
12510 cat >>conftest.$ac_ext <<_ACEOF
12511 /* end confdefs.h. */
12512 #include <$ac_header>
12513 _ACEOF
12514 if { (ac_try="$ac_cpp conftest.$ac_ext"
12515 case "(($ac_try" in
12516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12517 *) ac_try_echo=$ac_try;;
12518 esac
12519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12520 $as_echo "$ac_try_echo") >&5
12521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12522 ac_status=$?
12523 grep -v '^ *+' conftest.er1 >conftest.err
12524 rm -f conftest.er1
12525 cat conftest.err >&5
12526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12527 (exit $ac_status); } >/dev/null && {
12528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12529 test ! -s conftest.err
12530 }; then
12531 ac_header_preproc=yes
12532 else
12533 $as_echo "$as_me: failed program was:" >&5
12534 sed 's/^/| /' conftest.$ac_ext >&5
12535
12536 ac_header_preproc=no
12537 fi
12538
12539 rm -f conftest.err conftest.$ac_ext
12540 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12541 $as_echo "$ac_header_preproc" >&6; }
12542
12543 # So? What about this header?
12544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12545 yes:no: )
12546 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12547 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12548 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12549 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12550 ac_header_preproc=yes
12551 ;;
12552 no:yes:* )
12553 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12554 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12555 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12556 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12557 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12558 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12559 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12560 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12561 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12562 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12563 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12564 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12565
12566 ;;
12567 esac
12568 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12569 $as_echo_n "checking for $ac_header... " >&6; }
12570 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12571 $as_echo_n "(cached) " >&6
12572 else
12573 eval "$as_ac_Header=\$ac_header_preproc"
12574 fi
12575 ac_res=`eval 'as_val=${'$as_ac_Header'}
12576 $as_echo "$as_val"'`
12577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12578 $as_echo "$ac_res" >&6; }
12579
12580 fi
12581 if test `eval 'as_val=${'$as_ac_Header'}
12582 $as_echo "$as_val"'` = yes; then
8469 cat >>confdefs.h <<_ACEOF 12583 cat >>confdefs.h <<_ACEOF
8470 #define HAVE_PTHREAD_H 1 12584 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8471 _ACEOF 12585 _ACEOF
8472 12586
8473 fi 12587 fi
8474 12588
8475 done 12589 done
8476 12590
8477 if test "$ac_cv_header_pthread_h"; then 12591 if test "$ac_cv_header_pthread_h"; then
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5 12592 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
8479 $as_echo_n "checking for pthread_self in -lpthread... " >&6; } 12593 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
8480 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then : 12594 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
8481 $as_echo_n "(cached) " >&6 12595 $as_echo_n "(cached) " >&6
8482 else 12596 else
8483 ac_check_lib_save_LIBS=$LIBS 12597 ac_check_lib_save_LIBS=$LIBS
8484 LIBS="-lpthread $LIBS" 12598 LIBS="-lpthread $LIBS"
8485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12599 cat >conftest.$ac_ext <<_ACEOF
12600 /* confdefs.h. */
12601 _ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
8486 /* end confdefs.h. */ 12604 /* end confdefs.h. */
8487 12605
8488 /* Override any GCC internal prototype to avoid an error. 12606 /* Override any GCC internal prototype to avoid an error.
8489 Use char because int might match the return type of a GCC 12607 Use char because int might match the return type of a GCC
8490 builtin and then its argument prototype would still apply. */ 12608 builtin and then its argument prototype would still apply. */
8498 return pthread_self (); 12616 return pthread_self ();
8499 ; 12617 ;
8500 return 0; 12618 return 0;
8501 } 12619 }
8502 _ACEOF 12620 _ACEOF
8503 if ac_fn_c_try_link "$LINENO"; then : 12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (ac_try="$ac_link"
12623 case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12626 esac
12627 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12628 $as_echo "$ac_try_echo") >&5
12629 (eval "$ac_link") 2>conftest.er1
12630 ac_status=$?
12631 grep -v '^ *+' conftest.er1 >conftest.err
12632 rm -f conftest.er1
12633 cat conftest.err >&5
12634 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12635 (exit $ac_status); } && {
12636 test -z "$ac_c_werror_flag" ||
12637 test ! -s conftest.err
12638 } && test -s conftest$ac_exeext && {
12639 test "$cross_compiling" = yes ||
12640 $as_test_x conftest$ac_exeext
12641 }; then
8504 ac_cv_lib_pthread_pthread_self=yes 12642 ac_cv_lib_pthread_pthread_self=yes
8505 else 12643 else
8506 ac_cv_lib_pthread_pthread_self=no 12644 $as_echo "$as_me: failed program was:" >&5
8507 fi 12645 sed 's/^/| /' conftest.$ac_ext >&5
8508 rm -f core conftest.err conftest.$ac_objext \ 12646
8509 conftest$ac_exeext conftest.$ac_ext 12647 ac_cv_lib_pthread_pthread_self=no
12648 fi
12649
12650 rm -rf conftest.dSYM
12651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12652 conftest$ac_exeext conftest.$ac_ext
8510 LIBS=$ac_check_lib_save_LIBS 12653 LIBS=$ac_check_lib_save_LIBS
8511 fi 12654 fi
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5 12655 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
8513 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } 12656 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
8514 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then : 12657 if test $ac_cv_lib_pthread_pthread_self = yes; then
8515 HAVE_GTK_AND_PTHREAD=yes 12658 HAVE_GTK_AND_PTHREAD=yes
8516 fi 12659 fi
8517 12660
8518 fi 12661 fi
8519 if test "$HAVE_GTK_AND_PTHREAD" = yes; then 12662 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
8520 case "${canonical}" in 12663 case "${canonical}" in
8521 *-hpux*) ;; 12664 *-hpux*) ;;
8522 *) GTK_LIBS="$GTK_LIBS -lpthread" ;; 12665 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
8523 esac 12666 esac
8524 12667
8525 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h 12668 cat >>confdefs.h <<\_ACEOF
12669 #define HAVE_GTK_AND_PTHREAD 1
12670 _ACEOF
8526 12671
8527 fi 12672 fi
8528 fi 12673 fi
8529 fi 12674 fi
8530 12675
8534 12679
8535 succeeded=no 12680 succeeded=no
8536 12681
8537 # Extract the first word of "pkg-config", so it can be a program name with args. 12682 # Extract the first word of "pkg-config", so it can be a program name with args.
8538 set dummy pkg-config; ac_word=$2 12683 set dummy pkg-config; ac_word=$2
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12684 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8540 $as_echo_n "checking for $ac_word... " >&6; } 12685 $as_echo_n "checking for $ac_word... " >&6; }
8541 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12686 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8542 $as_echo_n "(cached) " >&6 12687 $as_echo_n "(cached) " >&6
8543 else 12688 else
8544 case $PKG_CONFIG in 12689 case $PKG_CONFIG in
8545 [\\/]* | ?:[\\/]*) 12690 [\\/]* | ?:[\\/]*)
8546 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12691 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8550 for as_dir in $PATH 12695 for as_dir in $PATH
8551 do 12696 do
8552 IFS=$as_save_IFS 12697 IFS=$as_save_IFS
8553 test -z "$as_dir" && as_dir=. 12698 test -z "$as_dir" && as_dir=.
8554 for ac_exec_ext in '' $ac_executable_extensions; do 12699 for ac_exec_ext in '' $ac_executable_extensions; do
8555 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8556 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12701 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8557 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12702 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8558 break 2 12703 break 2
8559 fi 12704 fi
8560 done 12705 done
8561 done 12706 done
8562 IFS=$as_save_IFS 12707 IFS=$as_save_IFS
8563 12708
8564 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 12709 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8565 ;; 12710 ;;
8566 esac 12711 esac
8567 fi 12712 fi
8568 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12713 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8569 if test -n "$PKG_CONFIG"; then 12714 if test -n "$PKG_CONFIG"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12715 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8571 $as_echo "$PKG_CONFIG" >&6; } 12716 $as_echo "$PKG_CONFIG" >&6; }
8572 else 12717 else
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12718 { $as_echo "$as_me:$LINENO: result: no" >&5
8574 $as_echo "no" >&6; } 12719 $as_echo "no" >&6; }
8575 fi 12720 fi
8576 12721
8577 12722
8578 12723
8579 if test "$PKG_CONFIG" = "no" ; then 12724 if test "$PKG_CONFIG" = "no" ; then
8580 HAVE_DBUS=no 12725 HAVE_DBUS=no
8581 else 12726 else
8582 PKG_CONFIG_MIN_VERSION=0.9.0 12727 PKG_CONFIG_MIN_VERSION=0.9.0
8583 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 12728 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5 12729 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
8585 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; } 12730 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
8586 12731
8587 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then 12732 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
8588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12733 { $as_echo "$as_me:$LINENO: result: yes" >&5
8589 $as_echo "yes" >&6; } 12734 $as_echo "yes" >&6; }
8590 succeeded=yes 12735 succeeded=yes
8591 12736
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5 12737 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
8593 $as_echo_n "checking DBUS_CFLAGS... " >&6; } 12738 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
8594 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 12739 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5 12740 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
8596 $as_echo "$DBUS_CFLAGS" >&6; } 12741 $as_echo "$DBUS_CFLAGS" >&6; }
8597 12742
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5 12743 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
8599 $as_echo_n "checking DBUS_LIBS... " >&6; } 12744 $as_echo_n "checking DBUS_LIBS... " >&6; }
8600 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 12745 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5 12746 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
8602 $as_echo "$DBUS_LIBS" >&6; } 12747 $as_echo "$DBUS_LIBS" >&6; }
8603 else 12748 else
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12749 { $as_echo "$as_me:$LINENO: result: no" >&5
8605 $as_echo "no" >&6; } 12750 $as_echo "no" >&6; }
8606 DBUS_CFLAGS="" 12751 DBUS_CFLAGS=""
8607 DBUS_LIBS="" 12752 DBUS_LIBS=""
8608 ## If we have a custom action on failure, don't print errors, but 12753 ## If we have a custom action on failure, don't print errors, but
8609 ## do set a variable so people can do so. 12754 ## do set a variable so people can do so.
8626 fi 12771 fi
8627 12772
8628 if test "$HAVE_DBUS" = yes; then 12773 if test "$HAVE_DBUS" = yes; then
8629 LIBS="$LIBS $DBUS_LIBS" 12774 LIBS="$LIBS $DBUS_LIBS"
8630 12775
8631 $as_echo "#define HAVE_DBUS 1" >>confdefs.h 12776 cat >>confdefs.h <<\_ACEOF
8632 12777 #define HAVE_DBUS 1
8633 for ac_func in dbus_watch_get_unix_fd 12778 _ACEOF
8634 do : 12779
8635 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd" 12780
8636 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then : 12781 for ac_func in dbus_watch_get_unix_fd
12782 do
12783 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12784 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12785 $as_echo_n "checking for $ac_func... " >&6; }
12786 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12787 $as_echo_n "(cached) " >&6
12788 else
12789 cat >conftest.$ac_ext <<_ACEOF
12790 /* confdefs.h. */
12791 _ACEOF
12792 cat confdefs.h >>conftest.$ac_ext
12793 cat >>conftest.$ac_ext <<_ACEOF
12794 /* end confdefs.h. */
12795 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12797 #define $ac_func innocuous_$ac_func
12798
12799 /* System header to define __stub macros and hopefully few prototypes,
12800 which can conflict with char $ac_func (); below.
12801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12802 <limits.h> exists even on freestanding compilers. */
12803
12804 #ifdef __STDC__
12805 # include <limits.h>
12806 #else
12807 # include <assert.h>
12808 #endif
12809
12810 #undef $ac_func
12811
12812 /* Override any GCC internal prototype to avoid an error.
12813 Use char because int might match the return type of a GCC
12814 builtin and then its argument prototype would still apply. */
12815 #ifdef __cplusplus
12816 extern "C"
12817 #endif
12818 char $ac_func ();
12819 /* The GNU C library defines this for functions which it implements
12820 to always fail with ENOSYS. Some functions are actually named
12821 something starting with __ and the normal name is an alias. */
12822 #if defined __stub_$ac_func || defined __stub___$ac_func
12823 choke me
12824 #endif
12825
12826 int
12827 main ()
12828 {
12829 return $ac_func ();
12830 ;
12831 return 0;
12832 }
12833 _ACEOF
12834 rm -f conftest.$ac_objext conftest$ac_exeext
12835 if { (ac_try="$ac_link"
12836 case "(($ac_try" in
12837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838 *) ac_try_echo=$ac_try;;
12839 esac
12840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12841 $as_echo "$ac_try_echo") >&5
12842 (eval "$ac_link") 2>conftest.er1
12843 ac_status=$?
12844 grep -v '^ *+' conftest.er1 >conftest.err
12845 rm -f conftest.er1
12846 cat conftest.err >&5
12847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12848 (exit $ac_status); } && {
12849 test -z "$ac_c_werror_flag" ||
12850 test ! -s conftest.err
12851 } && test -s conftest$ac_exeext && {
12852 test "$cross_compiling" = yes ||
12853 $as_test_x conftest$ac_exeext
12854 }; then
12855 eval "$as_ac_var=yes"
12856 else
12857 $as_echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12859
12860 eval "$as_ac_var=no"
12861 fi
12862
12863 rm -rf conftest.dSYM
12864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12865 conftest$ac_exeext conftest.$ac_ext
12866 fi
12867 ac_res=`eval 'as_val=${'$as_ac_var'}
12868 $as_echo "$as_val"'`
12869 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12870 $as_echo "$ac_res" >&6; }
12871 if test `eval 'as_val=${'$as_ac_var'}
12872 $as_echo "$as_val"'` = yes; then
8637 cat >>confdefs.h <<_ACEOF 12873 cat >>confdefs.h <<_ACEOF
8638 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1 12874 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8639 _ACEOF 12875 _ACEOF
8640 12876
8641 fi 12877 fi
8642 done 12878 done
8643 12879
8651 12887
8652 succeeded=no 12888 succeeded=no
8653 12889
8654 # Extract the first word of "pkg-config", so it can be a program name with args. 12890 # Extract the first word of "pkg-config", so it can be a program name with args.
8655 set dummy pkg-config; ac_word=$2 12891 set dummy pkg-config; ac_word=$2
8656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12892 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
8657 $as_echo_n "checking for $ac_word... " >&6; } 12893 $as_echo_n "checking for $ac_word... " >&6; }
8658 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 12894 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
8659 $as_echo_n "(cached) " >&6 12895 $as_echo_n "(cached) " >&6
8660 else 12896 else
8661 case $PKG_CONFIG in 12897 case $PKG_CONFIG in
8662 [\\/]* | ?:[\\/]*) 12898 [\\/]* | ?:[\\/]*)
8663 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 12899 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8667 for as_dir in $PATH 12903 for as_dir in $PATH
8668 do 12904 do
8669 IFS=$as_save_IFS 12905 IFS=$as_save_IFS
8670 test -z "$as_dir" && as_dir=. 12906 test -z "$as_dir" && as_dir=.
8671 for ac_exec_ext in '' $ac_executable_extensions; do 12907 for ac_exec_ext in '' $ac_executable_extensions; do
8672 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8673 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 12909 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12910 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8675 break 2 12911 break 2
8676 fi 12912 fi
8677 done 12913 done
8678 done 12914 done
8679 IFS=$as_save_IFS 12915 IFS=$as_save_IFS
8680 12916
8681 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 12917 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
8682 ;; 12918 ;;
8683 esac 12919 esac
8684 fi 12920 fi
8685 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 12921 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8686 if test -n "$PKG_CONFIG"; then 12922 if test -n "$PKG_CONFIG"; then
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 12923 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
8688 $as_echo "$PKG_CONFIG" >&6; } 12924 $as_echo "$PKG_CONFIG" >&6; }
8689 else 12925 else
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12926 { $as_echo "$as_me:$LINENO: result: no" >&5
8691 $as_echo "no" >&6; } 12927 $as_echo "no" >&6; }
8692 fi 12928 fi
8693 12929
8694 12930
8695 12931
8696 if test "$PKG_CONFIG" = "no" ; then 12932 if test "$PKG_CONFIG" = "no" ; then
8697 HAVE_GCONF=no 12933 HAVE_GCONF=no
8698 else 12934 else
8699 PKG_CONFIG_MIN_VERSION=0.9.0 12935 PKG_CONFIG_MIN_VERSION=0.9.0
8700 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 12936 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5 12937 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5
8702 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } 12938 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
8703 12939
8704 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then 12940 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12941 { $as_echo "$as_me:$LINENO: result: yes" >&5
8706 $as_echo "yes" >&6; } 12942 $as_echo "yes" >&6; }
8707 succeeded=yes 12943 succeeded=yes
8708 12944
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5 12945 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
8710 $as_echo_n "checking GCONF_CFLAGS... " >&6; } 12946 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
8711 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 12947 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5 12948 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
8713 $as_echo "$GCONF_CFLAGS" >&6; } 12949 $as_echo "$GCONF_CFLAGS" >&6; }
8714 12950
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5 12951 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
8716 $as_echo_n "checking GCONF_LIBS... " >&6; } 12952 $as_echo_n "checking GCONF_LIBS... " >&6; }
8717 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 12953 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5 12954 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
8719 $as_echo "$GCONF_LIBS" >&6; } 12955 $as_echo "$GCONF_LIBS" >&6; }
8720 else 12956 else
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12957 { $as_echo "$as_me:$LINENO: result: no" >&5
8722 $as_echo "no" >&6; } 12958 $as_echo "no" >&6; }
8723 GCONF_CFLAGS="" 12959 GCONF_CFLAGS=""
8724 GCONF_LIBS="" 12960 GCONF_LIBS=""
8725 ## If we have a custom action on failure, don't print errors, but 12961 ## If we have a custom action on failure, don't print errors, but
8726 ## do set a variable so people can do so. 12962 ## do set a variable so people can do so.
8742 HAVE_GCONF=no 12978 HAVE_GCONF=no
8743 fi 12979 fi
8744 12980
8745 if test "$HAVE_GCONF" = yes; then 12981 if test "$HAVE_GCONF" = yes; then
8746 12982
8747 $as_echo "#define HAVE_GCONF 1" >>confdefs.h 12983 cat >>confdefs.h <<\_ACEOF
12984 #define HAVE_GCONF 1
12985 _ACEOF
8748 12986
8749 fi 12987 fi
8750 fi 12988 fi
8751 12989
8752 HAVE_LIBSELINUX=no 12990 HAVE_LIBSELINUX=no
8753 LIBSELINUX_LIBS= 12991 LIBSELINUX_LIBS=
8754 if test "${with_selinux}" = "yes"; then 12992 if test "${with_selinux}" = "yes"; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5 12993 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5
8756 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } 12994 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
8757 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then : 12995 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then
8758 $as_echo_n "(cached) " >&6 12996 $as_echo_n "(cached) " >&6
8759 else 12997 else
8760 ac_check_lib_save_LIBS=$LIBS 12998 ac_check_lib_save_LIBS=$LIBS
8761 LIBS="-lselinux $LIBS" 12999 LIBS="-lselinux $LIBS"
8762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13000 cat >conftest.$ac_ext <<_ACEOF
13001 /* confdefs.h. */
13002 _ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
8763 /* end confdefs.h. */ 13005 /* end confdefs.h. */
8764 13006
8765 /* Override any GCC internal prototype to avoid an error. 13007 /* Override any GCC internal prototype to avoid an error.
8766 Use char because int might match the return type of a GCC 13008 Use char because int might match the return type of a GCC
8767 builtin and then its argument prototype would still apply. */ 13009 builtin and then its argument prototype would still apply. */
8775 return lgetfilecon (); 13017 return lgetfilecon ();
8776 ; 13018 ;
8777 return 0; 13019 return 0;
8778 } 13020 }
8779 _ACEOF 13021 _ACEOF
8780 if ac_fn_c_try_link "$LINENO"; then : 13022 rm -f conftest.$ac_objext conftest$ac_exeext
13023 if { (ac_try="$ac_link"
13024 case "(($ac_try" in
13025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13026 *) ac_try_echo=$ac_try;;
13027 esac
13028 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13029 $as_echo "$ac_try_echo") >&5
13030 (eval "$ac_link") 2>conftest.er1
13031 ac_status=$?
13032 grep -v '^ *+' conftest.er1 >conftest.err
13033 rm -f conftest.er1
13034 cat conftest.err >&5
13035 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13036 (exit $ac_status); } && {
13037 test -z "$ac_c_werror_flag" ||
13038 test ! -s conftest.err
13039 } && test -s conftest$ac_exeext && {
13040 test "$cross_compiling" = yes ||
13041 $as_test_x conftest$ac_exeext
13042 }; then
8781 ac_cv_lib_selinux_lgetfilecon=yes 13043 ac_cv_lib_selinux_lgetfilecon=yes
8782 else 13044 else
8783 ac_cv_lib_selinux_lgetfilecon=no 13045 $as_echo "$as_me: failed program was:" >&5
8784 fi 13046 sed 's/^/| /' conftest.$ac_ext >&5
8785 rm -f core conftest.err conftest.$ac_objext \ 13047
8786 conftest$ac_exeext conftest.$ac_ext 13048 ac_cv_lib_selinux_lgetfilecon=no
13049 fi
13050
13051 rm -rf conftest.dSYM
13052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13053 conftest$ac_exeext conftest.$ac_ext
8787 LIBS=$ac_check_lib_save_LIBS 13054 LIBS=$ac_check_lib_save_LIBS
8788 fi 13055 fi
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5 13056 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5
8790 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } 13057 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
8791 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then : 13058 if test $ac_cv_lib_selinux_lgetfilecon = yes; then
8792 HAVE_LIBSELINUX=yes 13059 HAVE_LIBSELINUX=yes
8793 else 13060 else
8794 HAVE_LIBSELINUX=no 13061 HAVE_LIBSELINUX=no
8795 fi 13062 fi
8796 13063
8797 if test "$HAVE_LIBSELINUX" = yes; then 13064 if test "$HAVE_LIBSELINUX" = yes; then
8798 13065
8799 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h 13066 cat >>confdefs.h <<\_ACEOF
13067 #define HAVE_LIBSELINUX 1
13068 _ACEOF
8800 13069
8801 LIBSELINUX_LIBS=-lselinux 13070 LIBSELINUX_LIBS=-lselinux
8802 fi 13071 fi
8803 fi 13072 fi
8804 13073
8805 13074
8806 HAVE_XAW3D=no 13075 HAVE_XAW3D=no
8807 LUCID_LIBW= 13076 LUCID_LIBW=
8808 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then 13077 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
8809 if test "$with_xaw3d" != no; then 13078 if test "$with_xaw3d" != no; then
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5 13079 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5
8811 $as_echo_n "checking for xaw3d... " >&6; } 13080 $as_echo_n "checking for xaw3d... " >&6; }
8812 if test "${emacs_cv_xaw3d+set}" = set; then : 13081 if test "${emacs_cv_xaw3d+set}" = set; then
8813 $as_echo_n "(cached) " >&6 13082 $as_echo_n "(cached) " >&6
8814 else 13083 else
8815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13084 cat >conftest.$ac_ext <<_ACEOF
13085 /* confdefs.h. */
13086 _ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
8816 /* end confdefs.h. */ 13089 /* end confdefs.h. */
8817 13090
8818 #include <X11/Intrinsic.h> 13091 #include <X11/Intrinsic.h>
8819 #include <X11/Xaw3d/Simple.h> 13092 #include <X11/Xaw3d/Simple.h>
8820 int 13093 int
8823 13096
8824 ; 13097 ;
8825 return 0; 13098 return 0;
8826 } 13099 }
8827 _ACEOF 13100 _ACEOF
8828 if ac_fn_c_try_link "$LINENO"; then : 13101 rm -f conftest.$ac_objext conftest$ac_exeext
13102 if { (ac_try="$ac_link"
13103 case "(($ac_try" in
13104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13105 *) ac_try_echo=$ac_try;;
13106 esac
13107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13108 $as_echo "$ac_try_echo") >&5
13109 (eval "$ac_link") 2>conftest.er1
13110 ac_status=$?
13111 grep -v '^ *+' conftest.er1 >conftest.err
13112 rm -f conftest.er1
13113 cat conftest.err >&5
13114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } && {
13116 test -z "$ac_c_werror_flag" ||
13117 test ! -s conftest.err
13118 } && test -s conftest$ac_exeext && {
13119 test "$cross_compiling" = yes ||
13120 $as_test_x conftest$ac_exeext
13121 }; then
8829 emacs_cv_xaw3d=yes 13122 emacs_cv_xaw3d=yes
8830 else 13123 else
8831 emacs_cv_xaw3d=no 13124 $as_echo "$as_me: failed program was:" >&5
8832 fi 13125 sed 's/^/| /' conftest.$ac_ext >&5
8833 rm -f core conftest.err conftest.$ac_objext \ 13126
8834 conftest$ac_exeext conftest.$ac_ext 13127 emacs_cv_xaw3d=no
13128 fi
13129
13130 rm -rf conftest.dSYM
13131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13132 conftest$ac_exeext conftest.$ac_ext
8835 fi 13133 fi
8836 13134
8837 else 13135 else
8838 emacs_cv_xaw3d=no 13136 emacs_cv_xaw3d=no
8839 fi 13137 fi
8840 if test $emacs_cv_xaw3d = yes; then 13138 if test $emacs_cv_xaw3d = yes; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 13139 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
8842 $as_echo "yes; using Lucid toolkit" >&6; } 13140 $as_echo "yes; using Lucid toolkit" >&6; }
8843 USE_X_TOOLKIT=LUCID 13141 USE_X_TOOLKIT=LUCID
8844 HAVE_XAW3D=yes 13142 HAVE_XAW3D=yes
8845 LUCID_LIBW=-lXaw3d 13143 LUCID_LIBW=-lXaw3d
8846 13144
8847 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h 13145 cat >>confdefs.h <<\_ACEOF
13146 #define HAVE_XAW3D 1
13147 _ACEOF
8848 13148
8849 else 13149 else
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13150 { $as_echo "$as_me:$LINENO: result: no" >&5
8851 $as_echo "no" >&6; } 13151 $as_echo "no" >&6; }
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5 13152 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5
8853 $as_echo_n "checking for libXaw... " >&6; } 13153 $as_echo_n "checking for libXaw... " >&6; }
8854 if test "${emacs_cv_xaw+set}" = set; then : 13154 if test "${emacs_cv_xaw+set}" = set; then
8855 $as_echo_n "(cached) " >&6 13155 $as_echo_n "(cached) " >&6
8856 else 13156 else
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13157 cat >conftest.$ac_ext <<_ACEOF
13158 /* confdefs.h. */
13159 _ACEOF
13160 cat confdefs.h >>conftest.$ac_ext
13161 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */ 13162 /* end confdefs.h. */
8859 13163
8860 #include <X11/Intrinsic.h> 13164 #include <X11/Intrinsic.h>
8861 #include <X11/Xaw/Simple.h> 13165 #include <X11/Xaw/Simple.h>
8862 int 13166 int
8865 13169
8866 ; 13170 ;
8867 return 0; 13171 return 0;
8868 } 13172 }
8869 _ACEOF 13173 _ACEOF
8870 if ac_fn_c_try_link "$LINENO"; then : 13174 rm -f conftest.$ac_objext conftest$ac_exeext
13175 if { (ac_try="$ac_link"
13176 case "(($ac_try" in
13177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13178 *) ac_try_echo=$ac_try;;
13179 esac
13180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13181 $as_echo "$ac_try_echo") >&5
13182 (eval "$ac_link") 2>conftest.er1
13183 ac_status=$?
13184 grep -v '^ *+' conftest.er1 >conftest.err
13185 rm -f conftest.er1
13186 cat conftest.err >&5
13187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13188 (exit $ac_status); } && {
13189 test -z "$ac_c_werror_flag" ||
13190 test ! -s conftest.err
13191 } && test -s conftest$ac_exeext && {
13192 test "$cross_compiling" = yes ||
13193 $as_test_x conftest$ac_exeext
13194 }; then
8871 emacs_cv_xaw=yes 13195 emacs_cv_xaw=yes
8872 else 13196 else
8873 emacs_cv_xaw=no 13197 $as_echo "$as_me: failed program was:" >&5
8874 fi 13198 sed 's/^/| /' conftest.$ac_ext >&5
8875 rm -f core conftest.err conftest.$ac_objext \ 13199
8876 conftest$ac_exeext conftest.$ac_ext 13200 emacs_cv_xaw=no
13201 fi
13202
13203 rm -rf conftest.dSYM
13204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13205 conftest$ac_exeext conftest.$ac_ext
8877 fi 13206 fi
8878 13207
8879 if test $emacs_cv_xaw = yes; then 13208 if test $emacs_cv_xaw = yes; then
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5 13209 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
8881 $as_echo "yes; using Lucid toolkit" >&6; } 13210 $as_echo "yes; using Lucid toolkit" >&6; }
8882 USE_X_TOOLKIT=LUCID 13211 USE_X_TOOLKIT=LUCID
8883 LUCID_LIBW=-lXaw 13212 LUCID_LIBW=-lXaw
8884 elif test x"${USE_X_TOOLKIT}" = xLUCID; then 13213 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
8885 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5 13214 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
13215 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13216 { (exit 1); exit 1; }; }
8886 else 13217 else
8887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5 13218 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
8888 $as_echo "no; do not use toolkit by default" >&6; } 13219 $as_echo "no; do not use toolkit by default" >&6; }
8889 USE_X_TOOLKIT=none 13220 USE_X_TOOLKIT=none
8890 fi 13221 fi
8891 fi 13222 fi
8892 fi 13223 fi
8893 13224
8894 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 13225 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
8895 13226
8896 LIBXTR6= 13227 LIBXTR6=
8897 if test "${USE_X_TOOLKIT}" != "none"; then 13228 if test "${USE_X_TOOLKIT}" != "none"; then
8898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5 13229 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5
8899 $as_echo_n "checking X11 toolkit version... " >&6; } 13230 $as_echo_n "checking X11 toolkit version... " >&6; }
8900 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then : 13231 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
8901 $as_echo_n "(cached) " >&6 13232 $as_echo_n "(cached) " >&6
8902 else 13233 else
8903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13234 cat >conftest.$ac_ext <<_ACEOF
13235 /* confdefs.h. */
13236 _ACEOF
13237 cat confdefs.h >>conftest.$ac_ext
13238 cat >>conftest.$ac_ext <<_ACEOF
8904 /* end confdefs.h. */ 13239 /* end confdefs.h. */
8905 #include <X11/Intrinsic.h> 13240 #include <X11/Intrinsic.h>
8906 int 13241 int
8907 main () 13242 main ()
8908 { 13243 {
8912 13247
8913 ; 13248 ;
8914 return 0; 13249 return 0;
8915 } 13250 }
8916 _ACEOF 13251 _ACEOF
8917 if ac_fn_c_try_link "$LINENO"; then : 13252 rm -f conftest.$ac_objext conftest$ac_exeext
13253 if { (ac_try="$ac_link"
13254 case "(($ac_try" in
13255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13256 *) ac_try_echo=$ac_try;;
13257 esac
13258 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13259 $as_echo "$ac_try_echo") >&5
13260 (eval "$ac_link") 2>conftest.er1
13261 ac_status=$?
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } && {
13267 test -z "$ac_c_werror_flag" ||
13268 test ! -s conftest.err
13269 } && test -s conftest$ac_exeext && {
13270 test "$cross_compiling" = yes ||
13271 $as_test_x conftest$ac_exeext
13272 }; then
8918 emacs_cv_x11_toolkit_version_6=yes 13273 emacs_cv_x11_toolkit_version_6=yes
8919 else 13274 else
8920 emacs_cv_x11_toolkit_version_6=no 13275 $as_echo "$as_me: failed program was:" >&5
8921 fi 13276 sed 's/^/| /' conftest.$ac_ext >&5
8922 rm -f core conftest.err conftest.$ac_objext \ 13277
8923 conftest$ac_exeext conftest.$ac_ext 13278 emacs_cv_x11_toolkit_version_6=no
13279 fi
13280
13281 rm -rf conftest.dSYM
13282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13283 conftest$ac_exeext conftest.$ac_ext
8924 fi 13284 fi
8925 13285
8926 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 13286 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
8927 if test $emacs_cv_x11_toolkit_version_6 = yes; then 13287 if test $emacs_cv_x11_toolkit_version_6 = yes; then
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5 13288 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5
8929 $as_echo "6 or newer" >&6; } 13289 $as_echo "6 or newer" >&6; }
8930 13290
8931 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h 13291 cat >>confdefs.h <<\_ACEOF
13292 #define HAVE_X11XTR6 1
13293 _ACEOF
8932 13294
8933 LIBXTR6="-lSM -lICE" 13295 LIBXTR6="-lSM -lICE"
8934 case "$opsys" in 13296 case "$opsys" in
8935 ## Use libw.a along with X11R6 Xt. 13297 ## Use libw.a along with X11R6 Xt.
8936 unixware) LIBXTR6="$LIBXTR6 -lw" ;; 13298 unixware) LIBXTR6="$LIBXTR6 -lw" ;;
8937 esac 13299 esac
8938 else 13300 else
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5 13301 { $as_echo "$as_me:$LINENO: result: before 6" >&5
8940 $as_echo "before 6" >&6; } 13302 $as_echo "before 6" >&6; }
8941 fi 13303 fi
8942 13304
8943 OLDLIBS="$LIBS" 13305 OLDLIBS="$LIBS"
8944 if test x$HAVE_X11XTR6 = xyes; then 13306 if test x$HAVE_X11XTR6 = xyes; then
8945 LIBS="-lXt -lSM -lICE $LIBS" 13307 LIBS="-lXt -lSM -lICE $LIBS"
8946 else 13308 else
8947 LIBS="-lXt $LIBS" 13309 LIBS="-lXt $LIBS"
8948 fi 13310 fi
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5 13311
13312 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
8950 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } 13313 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
8951 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then : 13314 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
8952 $as_echo_n "(cached) " >&6 13315 $as_echo_n "(cached) " >&6
8953 else 13316 else
8954 ac_check_lib_save_LIBS=$LIBS 13317 ac_check_lib_save_LIBS=$LIBS
8955 LIBS="-lXmu $LIBS" 13318 LIBS="-lXmu $LIBS"
8956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13319 cat >conftest.$ac_ext <<_ACEOF
13320 /* confdefs.h. */
13321 _ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
8957 /* end confdefs.h. */ 13324 /* end confdefs.h. */
8958 13325
8959 /* Override any GCC internal prototype to avoid an error. 13326 /* Override any GCC internal prototype to avoid an error.
8960 Use char because int might match the return type of a GCC 13327 Use char because int might match the return type of a GCC
8961 builtin and then its argument prototype would still apply. */ 13328 builtin and then its argument prototype would still apply. */
8969 return XmuConvertStandardSelection (); 13336 return XmuConvertStandardSelection ();
8970 ; 13337 ;
8971 return 0; 13338 return 0;
8972 } 13339 }
8973 _ACEOF 13340 _ACEOF
8974 if ac_fn_c_try_link "$LINENO"; then : 13341 rm -f conftest.$ac_objext conftest$ac_exeext
13342 if { (ac_try="$ac_link"
13343 case "(($ac_try" in
13344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13345 *) ac_try_echo=$ac_try;;
13346 esac
13347 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13348 $as_echo "$ac_try_echo") >&5
13349 (eval "$ac_link") 2>conftest.er1
13350 ac_status=$?
13351 grep -v '^ *+' conftest.er1 >conftest.err
13352 rm -f conftest.er1
13353 cat conftest.err >&5
13354 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13355 (exit $ac_status); } && {
13356 test -z "$ac_c_werror_flag" ||
13357 test ! -s conftest.err
13358 } && test -s conftest$ac_exeext && {
13359 test "$cross_compiling" = yes ||
13360 $as_test_x conftest$ac_exeext
13361 }; then
8975 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes 13362 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
8976 else 13363 else
8977 ac_cv_lib_Xmu_XmuConvertStandardSelection=no 13364 $as_echo "$as_me: failed program was:" >&5
8978 fi 13365 sed 's/^/| /' conftest.$ac_ext >&5
8979 rm -f core conftest.err conftest.$ac_objext \ 13366
8980 conftest$ac_exeext conftest.$ac_ext 13367 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13368 fi
13369
13370 rm -rf conftest.dSYM
13371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13372 conftest$ac_exeext conftest.$ac_ext
8981 LIBS=$ac_check_lib_save_LIBS 13373 LIBS=$ac_check_lib_save_LIBS
8982 fi 13374 fi
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 13375 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
8984 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } 13376 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
8985 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then : 13377 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
8986 cat >>confdefs.h <<_ACEOF 13378 cat >>confdefs.h <<_ACEOF
8987 #define HAVE_LIBXMU 1 13379 #define HAVE_LIBXMU 1
8988 _ACEOF 13380 _ACEOF
8989 13381
8990 LIBS="-lXmu $LIBS" 13382 LIBS="-lXmu $LIBS"
9005 13397
9006 13398
9007 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. 13399 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
9008 if test "${HAVE_X11}" = "yes"; then 13400 if test "${HAVE_X11}" = "yes"; then
9009 if test "${USE_X_TOOLKIT}" != "none"; then 13401 if test "${USE_X_TOOLKIT}" != "none"; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5 13402
13403 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
9011 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 13404 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
9012 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then : 13405 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
9013 $as_echo_n "(cached) " >&6 13406 $as_echo_n "(cached) " >&6
9014 else 13407 else
9015 ac_check_lib_save_LIBS=$LIBS 13408 ac_check_lib_save_LIBS=$LIBS
9016 LIBS="-lXext $LIBS" 13409 LIBS="-lXext $LIBS"
9017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13410 cat >conftest.$ac_ext <<_ACEOF
13411 /* confdefs.h. */
13412 _ACEOF
13413 cat confdefs.h >>conftest.$ac_ext
13414 cat >>conftest.$ac_ext <<_ACEOF
9018 /* end confdefs.h. */ 13415 /* end confdefs.h. */
9019 13416
9020 /* Override any GCC internal prototype to avoid an error. 13417 /* Override any GCC internal prototype to avoid an error.
9021 Use char because int might match the return type of a GCC 13418 Use char because int might match the return type of a GCC
9022 builtin and then its argument prototype would still apply. */ 13419 builtin and then its argument prototype would still apply. */
9030 return XShapeQueryExtension (); 13427 return XShapeQueryExtension ();
9031 ; 13428 ;
9032 return 0; 13429 return 0;
9033 } 13430 }
9034 _ACEOF 13431 _ACEOF
9035 if ac_fn_c_try_link "$LINENO"; then : 13432 rm -f conftest.$ac_objext conftest$ac_exeext
13433 if { (ac_try="$ac_link"
13434 case "(($ac_try" in
13435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13436 *) ac_try_echo=$ac_try;;
13437 esac
13438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13439 $as_echo "$ac_try_echo") >&5
13440 (eval "$ac_link") 2>conftest.er1
13441 ac_status=$?
13442 grep -v '^ *+' conftest.er1 >conftest.err
13443 rm -f conftest.er1
13444 cat conftest.err >&5
13445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 (exit $ac_status); } && {
13447 test -z "$ac_c_werror_flag" ||
13448 test ! -s conftest.err
13449 } && test -s conftest$ac_exeext && {
13450 test "$cross_compiling" = yes ||
13451 $as_test_x conftest$ac_exeext
13452 }; then
9036 ac_cv_lib_Xext_XShapeQueryExtension=yes 13453 ac_cv_lib_Xext_XShapeQueryExtension=yes
9037 else 13454 else
9038 ac_cv_lib_Xext_XShapeQueryExtension=no 13455 $as_echo "$as_me: failed program was:" >&5
9039 fi 13456 sed 's/^/| /' conftest.$ac_ext >&5
9040 rm -f core conftest.err conftest.$ac_objext \ 13457
9041 conftest$ac_exeext conftest.$ac_ext 13458 ac_cv_lib_Xext_XShapeQueryExtension=no
13459 fi
13460
13461 rm -rf conftest.dSYM
13462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13463 conftest$ac_exeext conftest.$ac_ext
9042 LIBS=$ac_check_lib_save_LIBS 13464 LIBS=$ac_check_lib_save_LIBS
9043 fi 13465 fi
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 13466 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
9045 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 13467 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
9046 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then : 13468 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
9047 cat >>confdefs.h <<_ACEOF 13469 cat >>confdefs.h <<_ACEOF
9048 #define HAVE_LIBXEXT 1 13470 #define HAVE_LIBXEXT 1
9049 _ACEOF 13471 _ACEOF
9050 13472
9051 LIBS="-lXext $LIBS" 13473 LIBS="-lXext $LIBS"
9055 fi 13477 fi
9056 fi 13478 fi
9057 13479
9058 LIBXP= 13480 LIBXP=
9059 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 13481 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5 13482 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
9061 $as_echo_n "checking for Motif version 2.1... " >&6; } 13483 $as_echo_n "checking for Motif version 2.1... " >&6; }
9062 if test "${emacs_cv_motif_version_2_1+set}" = set; then : 13484 if test "${emacs_cv_motif_version_2_1+set}" = set; then
9063 $as_echo_n "(cached) " >&6 13485 $as_echo_n "(cached) " >&6
9064 else 13486 else
9065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13487 cat >conftest.$ac_ext <<_ACEOF
13488 /* confdefs.h. */
13489 _ACEOF
13490 cat confdefs.h >>conftest.$ac_ext
13491 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */ 13492 /* end confdefs.h. */
9067 #include <Xm/Xm.h> 13493 #include <Xm/Xm.h>
9068 int 13494 int
9069 main () 13495 main ()
9070 { 13496 {
9075 #endif 13501 #endif
9076 ; 13502 ;
9077 return 0; 13503 return 0;
9078 } 13504 }
9079 _ACEOF 13505 _ACEOF
9080 if ac_fn_c_try_compile "$LINENO"; then : 13506 rm -f conftest.$ac_objext
13507 if { (ac_try="$ac_compile"
13508 case "(($ac_try" in
13509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13510 *) ac_try_echo=$ac_try;;
13511 esac
13512 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13513 $as_echo "$ac_try_echo") >&5
13514 (eval "$ac_compile") 2>conftest.er1
13515 ac_status=$?
13516 grep -v '^ *+' conftest.er1 >conftest.err
13517 rm -f conftest.er1
13518 cat conftest.err >&5
13519 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } && {
13521 test -z "$ac_c_werror_flag" ||
13522 test ! -s conftest.err
13523 } && test -s conftest.$ac_objext; then
9081 emacs_cv_motif_version_2_1=yes 13524 emacs_cv_motif_version_2_1=yes
9082 else 13525 else
9083 emacs_cv_motif_version_2_1=no 13526 $as_echo "$as_me: failed program was:" >&5
9084 fi 13527 sed 's/^/| /' conftest.$ac_ext >&5
13528
13529 emacs_cv_motif_version_2_1=no
13530 fi
13531
9085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9086 fi 13533 fi
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5 13534 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
9088 $as_echo "$emacs_cv_motif_version_2_1" >&6; } 13535 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
9089 if test $emacs_cv_motif_version_2_1 = yes; then 13536 if test $emacs_cv_motif_version_2_1 = yes; then
9090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5 13537 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
9091 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; } 13538 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
9092 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then : 13539 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
9093 $as_echo_n "(cached) " >&6 13540 $as_echo_n "(cached) " >&6
9094 else 13541 else
9095 ac_check_lib_save_LIBS=$LIBS 13542 ac_check_lib_save_LIBS=$LIBS
9096 LIBS="-lXp $LIBS" 13543 LIBS="-lXp $LIBS"
9097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13544 cat >conftest.$ac_ext <<_ACEOF
13545 /* confdefs.h. */
13546 _ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
9098 /* end confdefs.h. */ 13549 /* end confdefs.h. */
9099 13550
9100 /* Override any GCC internal prototype to avoid an error. 13551 /* Override any GCC internal prototype to avoid an error.
9101 Use char because int might match the return type of a GCC 13552 Use char because int might match the return type of a GCC
9102 builtin and then its argument prototype would still apply. */ 13553 builtin and then its argument prototype would still apply. */
9110 return XpCreateContext (); 13561 return XpCreateContext ();
9111 ; 13562 ;
9112 return 0; 13563 return 0;
9113 } 13564 }
9114 _ACEOF 13565 _ACEOF
9115 if ac_fn_c_try_link "$LINENO"; then : 13566 rm -f conftest.$ac_objext conftest$ac_exeext
13567 if { (ac_try="$ac_link"
13568 case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13571 esac
13572 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13573 $as_echo "$ac_try_echo") >&5
13574 (eval "$ac_link") 2>conftest.er1
13575 ac_status=$?
13576 grep -v '^ *+' conftest.er1 >conftest.err
13577 rm -f conftest.er1
13578 cat conftest.err >&5
13579 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13580 (exit $ac_status); } && {
13581 test -z "$ac_c_werror_flag" ||
13582 test ! -s conftest.err
13583 } && test -s conftest$ac_exeext && {
13584 test "$cross_compiling" = yes ||
13585 $as_test_x conftest$ac_exeext
13586 }; then
9116 ac_cv_lib_Xp_XpCreateContext=yes 13587 ac_cv_lib_Xp_XpCreateContext=yes
9117 else 13588 else
9118 ac_cv_lib_Xp_XpCreateContext=no 13589 $as_echo "$as_me: failed program was:" >&5
9119 fi 13590 sed 's/^/| /' conftest.$ac_ext >&5
9120 rm -f core conftest.err conftest.$ac_objext \ 13591
9121 conftest$ac_exeext conftest.$ac_ext 13592 ac_cv_lib_Xp_XpCreateContext=no
13593 fi
13594
13595 rm -rf conftest.dSYM
13596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13597 conftest$ac_exeext conftest.$ac_ext
9122 LIBS=$ac_check_lib_save_LIBS 13598 LIBS=$ac_check_lib_save_LIBS
9123 fi 13599 fi
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5 13600 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
9125 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } 13601 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
9126 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then : 13602 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
9127 LIBXP=-lXp 13603 LIBXP=-lXp
9128 fi 13604 fi
9129 13605
9130 else 13606 else
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5 13607 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
9132 $as_echo_n "checking for LessTif where some systems put it... " >&6; } 13608 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
9133 if test "${emacs_cv_lesstif+set}" = set; then : 13609 if test "${emacs_cv_lesstif+set}" = set; then
9134 $as_echo_n "(cached) " >&6 13610 $as_echo_n "(cached) " >&6
9135 else 13611 else
9136 # We put this in CFLAGS temporarily to precede other -I options 13612 # We put this in CFLAGS temporarily to precede other -I options
9137 # that might be in CFLAGS temporarily. 13613 # that might be in CFLAGS temporarily.
9138 # We put this in CPPFLAGS where it precedes the other -I options. 13614 # We put this in CPPFLAGS where it precedes the other -I options.
9139 OLD_CPPFLAGS=$CPPFLAGS 13615 OLD_CPPFLAGS=$CPPFLAGS
9140 OLD_CFLAGS=$CFLAGS 13616 OLD_CFLAGS=$CFLAGS
9141 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" 13617 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
9142 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" 13618 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
9143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13619 cat >conftest.$ac_ext <<_ACEOF
13620 /* confdefs.h. */
13621 _ACEOF
13622 cat confdefs.h >>conftest.$ac_ext
13623 cat >>conftest.$ac_ext <<_ACEOF
9144 /* end confdefs.h. */ 13624 /* end confdefs.h. */
9145 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> 13625 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
9146 int 13626 int
9147 main () 13627 main ()
9148 { 13628 {
9149 int x = 5; 13629 int x = 5;
9150 ; 13630 ;
9151 return 0; 13631 return 0;
9152 } 13632 }
9153 _ACEOF 13633 _ACEOF
9154 if ac_fn_c_try_compile "$LINENO"; then : 13634 rm -f conftest.$ac_objext
13635 if { (ac_try="$ac_compile"
13636 case "(($ac_try" in
13637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13638 *) ac_try_echo=$ac_try;;
13639 esac
13640 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13641 $as_echo "$ac_try_echo") >&5
13642 (eval "$ac_compile") 2>conftest.er1
13643 ac_status=$?
13644 grep -v '^ *+' conftest.er1 >conftest.err
13645 rm -f conftest.er1
13646 cat conftest.err >&5
13647 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); } && {
13649 test -z "$ac_c_werror_flag" ||
13650 test ! -s conftest.err
13651 } && test -s conftest.$ac_objext; then
9155 emacs_cv_lesstif=yes 13652 emacs_cv_lesstif=yes
9156 else 13653 else
9157 emacs_cv_lesstif=no 13654 $as_echo "$as_me: failed program was:" >&5
9158 fi 13655 sed 's/^/| /' conftest.$ac_ext >&5
13656
13657 emacs_cv_lesstif=no
13658 fi
13659
9159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9160 fi 13661 fi
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5 13662 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
9162 $as_echo "$emacs_cv_lesstif" >&6; } 13663 $as_echo "$emacs_cv_lesstif" >&6; }
9163 if test $emacs_cv_lesstif = yes; then 13664 if test $emacs_cv_lesstif = yes; then
9164 # Make sure this -I option remains in CPPFLAGS after it is set 13665 # Make sure this -I option remains in CPPFLAGS after it is set
9165 # back to REAL_CPPFLAGS. 13666 # back to REAL_CPPFLAGS.
9166 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not 13667 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
9174 fi 13675 fi
9175 fi 13676 fi
9176 fi 13677 fi
9177 13678
9178 13679
13680
9179 USE_TOOLKIT_SCROLL_BARS=no 13681 USE_TOOLKIT_SCROLL_BARS=no
9180 if test "${with_toolkit_scroll_bars}" != "no"; then 13682 if test "${with_toolkit_scroll_bars}" != "no"; then
9181 if test "${USE_X_TOOLKIT}" != "none"; then 13683 if test "${USE_X_TOOLKIT}" != "none"; then
9182 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 13684 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
9183 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13685 cat >>confdefs.h <<\_ACEOF
13686 #define USE_TOOLKIT_SCROLL_BARS 1
13687 _ACEOF
9184 13688
9185 HAVE_XAW3D=no 13689 HAVE_XAW3D=no
9186 USE_TOOLKIT_SCROLL_BARS=yes 13690 USE_TOOLKIT_SCROLL_BARS=yes
9187 elif test "${HAVE_XAW3D}" = "yes"; then 13691 elif test "${HAVE_XAW3D}" = "yes"; then
9188 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13692 cat >>confdefs.h <<\_ACEOF
13693 #define USE_TOOLKIT_SCROLL_BARS 1
13694 _ACEOF
9189 13695
9190 USE_TOOLKIT_SCROLL_BARS=yes 13696 USE_TOOLKIT_SCROLL_BARS=yes
9191 fi 13697 fi
9192 elif test "${HAVE_GTK}" = "yes"; then 13698 elif test "${HAVE_GTK}" = "yes"; then
9193 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13699 cat >>confdefs.h <<\_ACEOF
13700 #define USE_TOOLKIT_SCROLL_BARS 1
13701 _ACEOF
9194 13702
9195 USE_TOOLKIT_SCROLL_BARS=yes 13703 USE_TOOLKIT_SCROLL_BARS=yes
9196 elif test "${HAVE_NS}" = "yes"; then 13704 elif test "${HAVE_NS}" = "yes"; then
9197 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h 13705 cat >>confdefs.h <<\_ACEOF
13706 #define USE_TOOLKIT_SCROLL_BARS 1
13707 _ACEOF
9198 13708
9199 USE_TOOLKIT_SCROLL_BARS=yes 13709 USE_TOOLKIT_SCROLL_BARS=yes
9200 fi 13710 fi
9201 fi 13711 fi
9202 13712
9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13713 cat >conftest.$ac_ext <<_ACEOF
13714 /* confdefs.h. */
13715 _ACEOF
13716 cat confdefs.h >>conftest.$ac_ext
13717 cat >>conftest.$ac_ext <<_ACEOF
9204 /* end confdefs.h. */ 13718 /* end confdefs.h. */
9205 13719
9206 #include <X11/Xlib.h> 13720 #include <X11/Xlib.h>
9207 #include <X11/Xresource.h> 13721 #include <X11/Xresource.h>
9208 int 13722 int
9211 XIMProc callback; 13725 XIMProc callback;
9212 ; 13726 ;
9213 return 0; 13727 return 0;
9214 } 13728 }
9215 _ACEOF 13729 _ACEOF
9216 if ac_fn_c_try_compile "$LINENO"; then : 13730 rm -f conftest.$ac_objext
13731 if { (ac_try="$ac_compile"
13732 case "(($ac_try" in
13733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13734 *) ac_try_echo=$ac_try;;
13735 esac
13736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13737 $as_echo "$ac_try_echo") >&5
13738 (eval "$ac_compile") 2>conftest.er1
13739 ac_status=$?
13740 grep -v '^ *+' conftest.er1 >conftest.err
13741 rm -f conftest.er1
13742 cat conftest.err >&5
13743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13744 (exit $ac_status); } && {
13745 test -z "$ac_c_werror_flag" ||
13746 test ! -s conftest.err
13747 } && test -s conftest.$ac_objext; then
9217 HAVE_XIM=yes 13748 HAVE_XIM=yes
9218 13749
9219 $as_echo "#define HAVE_XIM 1" >>confdefs.h 13750 cat >>confdefs.h <<\_ACEOF
9220 13751 #define HAVE_XIM 1
9221 else 13752 _ACEOF
9222 HAVE_XIM=no 13753
9223 fi 13754 else
13755 $as_echo "$as_me: failed program was:" >&5
13756 sed 's/^/| /' conftest.$ac_ext >&5
13757
13758 HAVE_XIM=no
13759 fi
13760
9224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9225 13762
9226 13763
9227 if test "${with_xim}" != "no"; then 13764 if test "${with_xim}" != "no"; then
9228 13765
9229 $as_echo "#define USE_XIM 1" >>confdefs.h 13766 cat >>confdefs.h <<\_ACEOF
13767 #define USE_XIM 1
13768 _ACEOF
9230 13769
9231 fi 13770 fi
9232 13771
9233 13772
9234 if test "${HAVE_XIM}" != "no"; then 13773 if test "${HAVE_XIM}" != "no"; then
9235 late_CFLAGS=$CFLAGS 13774 late_CFLAGS=$CFLAGS
9236 if test "$GCC" = yes; then 13775 if test "$GCC" = yes; then
9237 CFLAGS="$CFLAGS --pedantic-errors" 13776 CFLAGS="$CFLAGS --pedantic-errors"
9238 fi 13777 fi
9239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13778 cat >conftest.$ac_ext <<_ACEOF
13779 /* confdefs.h. */
13780 _ACEOF
13781 cat confdefs.h >>conftest.$ac_ext
13782 cat >>conftest.$ac_ext <<_ACEOF
9240 /* end confdefs.h. */ 13783 /* end confdefs.h. */
9241 13784
9242 #include <X11/Xlib.h> 13785 #include <X11/Xlib.h>
9243 #include <X11/Xresource.h> 13786 #include <X11/Xresource.h>
9244 int 13787 int
9260 client_data); 13803 client_data);
9261 ; 13804 ;
9262 return 0; 13805 return 0;
9263 } 13806 }
9264 _ACEOF 13807 _ACEOF
9265 if ac_fn_c_try_compile "$LINENO"; then : 13808 rm -f conftest.$ac_objext
13809 if { (ac_try="$ac_compile"
13810 case "(($ac_try" in
13811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13812 *) ac_try_echo=$ac_try;;
13813 esac
13814 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13815 $as_echo "$ac_try_echo") >&5
13816 (eval "$ac_compile") 2>conftest.er1
13817 ac_status=$?
13818 grep -v '^ *+' conftest.er1 >conftest.err
13819 rm -f conftest.er1
13820 cat conftest.err >&5
13821 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13822 (exit $ac_status); } && {
13823 test -z "$ac_c_werror_flag" ||
13824 test ! -s conftest.err
13825 } && test -s conftest.$ac_objext; then
9266 emacs_cv_arg6_star=yes 13826 emacs_cv_arg6_star=yes
9267 fi 13827 else
13828 $as_echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13830
13831
13832 fi
13833
9268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9269 if test "$emacs_cv_arg6_star" = yes; then 13835
9270 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h 13836 if test "$emacs_cv_arg6_star" = yes; then
13837 cat >>confdefs.h <<\_ACEOF
13838 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13839 _ACEOF
9271 13840
9272 else 13841 else
9273 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h 13842 cat >>confdefs.h <<\_ACEOF
13843 #define XRegisterIMInstantiateCallback_arg6 XPointer
13844 _ACEOF
9274 13845
9275 fi 13846 fi
9276 CFLAGS=$late_CFLAGS 13847 CFLAGS=$late_CFLAGS
9277 fi 13848 fi
9278 13849
9285 13856
9286 succeeded=no 13857 succeeded=no
9287 13858
9288 # Extract the first word of "pkg-config", so it can be a program name with args. 13859 # Extract the first word of "pkg-config", so it can be a program name with args.
9289 set dummy pkg-config; ac_word=$2 13860 set dummy pkg-config; ac_word=$2
9290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13861 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9291 $as_echo_n "checking for $ac_word... " >&6; } 13862 $as_echo_n "checking for $ac_word... " >&6; }
9292 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13863 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9293 $as_echo_n "(cached) " >&6 13864 $as_echo_n "(cached) " >&6
9294 else 13865 else
9295 case $PKG_CONFIG in 13866 case $PKG_CONFIG in
9296 [\\/]* | ?:[\\/]*) 13867 [\\/]* | ?:[\\/]*)
9297 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13868 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9301 for as_dir in $PATH 13872 for as_dir in $PATH
9302 do 13873 do
9303 IFS=$as_save_IFS 13874 IFS=$as_save_IFS
9304 test -z "$as_dir" && as_dir=. 13875 test -z "$as_dir" && as_dir=.
9305 for ac_exec_ext in '' $ac_executable_extensions; do 13876 for ac_exec_ext in '' $ac_executable_extensions; do
9306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9307 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13878 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13879 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9309 break 2 13880 break 2
9310 fi 13881 fi
9311 done 13882 done
9312 done 13883 done
9313 IFS=$as_save_IFS 13884 IFS=$as_save_IFS
9314 13885
9315 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 13886 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9316 ;; 13887 ;;
9317 esac 13888 esac
9318 fi 13889 fi
9319 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13890 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9320 if test -n "$PKG_CONFIG"; then 13891 if test -n "$PKG_CONFIG"; then
9321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13892 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9322 $as_echo "$PKG_CONFIG" >&6; } 13893 $as_echo "$PKG_CONFIG" >&6; }
9323 else 13894 else
9324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13895 { $as_echo "$as_me:$LINENO: result: no" >&5
9325 $as_echo "no" >&6; } 13896 $as_echo "no" >&6; }
9326 fi 13897 fi
9327 13898
9328 13899
9329 13900
9330 if test "$PKG_CONFIG" = "no" ; then 13901 if test "$PKG_CONFIG" = "no" ; then
9331 HAVE_FC=no 13902 HAVE_FC=no
9332 else 13903 else
9333 PKG_CONFIG_MIN_VERSION=0.9.0 13904 PKG_CONFIG_MIN_VERSION=0.9.0
9334 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 13905 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5 13906 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5
9336 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } 13907 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
9337 13908
9338 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then 13909 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13910 { $as_echo "$as_me:$LINENO: result: yes" >&5
9340 $as_echo "yes" >&6; } 13911 $as_echo "yes" >&6; }
9341 succeeded=yes 13912 succeeded=yes
9342 13913
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5 13914 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
9344 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } 13915 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
9345 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 13916 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5 13917 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
9347 $as_echo "$FONTCONFIG_CFLAGS" >&6; } 13918 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
9348 13919
9349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5 13920 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
9350 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; } 13921 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
9351 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 13922 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
9352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5 13923 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
9353 $as_echo "$FONTCONFIG_LIBS" >&6; } 13924 $as_echo "$FONTCONFIG_LIBS" >&6; }
9354 else 13925 else
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13926 { $as_echo "$as_me:$LINENO: result: no" >&5
9356 $as_echo "no" >&6; } 13927 $as_echo "no" >&6; }
9357 FONTCONFIG_CFLAGS="" 13928 FONTCONFIG_CFLAGS=""
9358 FONTCONFIG_LIBS="" 13929 FONTCONFIG_LIBS=""
9359 ## If we have a custom action on failure, don't print errors, but 13930 ## If we have a custom action on failure, don't print errors, but
9360 ## do set a variable so people can do so. 13931 ## do set a variable so people can do so.
9387 13958
9388 succeeded=no 13959 succeeded=no
9389 13960
9390 # Extract the first word of "pkg-config", so it can be a program name with args. 13961 # Extract the first word of "pkg-config", so it can be a program name with args.
9391 set dummy pkg-config; ac_word=$2 13962 set dummy pkg-config; ac_word=$2
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13963 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9393 $as_echo_n "checking for $ac_word... " >&6; } 13964 $as_echo_n "checking for $ac_word... " >&6; }
9394 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 13965 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9395 $as_echo_n "(cached) " >&6 13966 $as_echo_n "(cached) " >&6
9396 else 13967 else
9397 case $PKG_CONFIG in 13968 case $PKG_CONFIG in
9398 [\\/]* | ?:[\\/]*) 13969 [\\/]* | ?:[\\/]*)
9399 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 13970 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9403 for as_dir in $PATH 13974 for as_dir in $PATH
9404 do 13975 do
9405 IFS=$as_save_IFS 13976 IFS=$as_save_IFS
9406 test -z "$as_dir" && as_dir=. 13977 test -z "$as_dir" && as_dir=.
9407 for ac_exec_ext in '' $ac_executable_extensions; do 13978 for ac_exec_ext in '' $ac_executable_extensions; do
9408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9409 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 13980 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13981 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9411 break 2 13982 break 2
9412 fi 13983 fi
9413 done 13984 done
9414 done 13985 done
9415 IFS=$as_save_IFS 13986 IFS=$as_save_IFS
9416 13987
9417 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 13988 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9418 ;; 13989 ;;
9419 esac 13990 esac
9420 fi 13991 fi
9421 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 13992 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9422 if test -n "$PKG_CONFIG"; then 13993 if test -n "$PKG_CONFIG"; then
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 13994 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9424 $as_echo "$PKG_CONFIG" >&6; } 13995 $as_echo "$PKG_CONFIG" >&6; }
9425 else 13996 else
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13997 { $as_echo "$as_me:$LINENO: result: no" >&5
9427 $as_echo "no" >&6; } 13998 $as_echo "no" >&6; }
9428 fi 13999 fi
9429 14000
9430 14001
9431 14002
9432 if test "$PKG_CONFIG" = "no" ; then 14003 if test "$PKG_CONFIG" = "no" ; then
9433 HAVE_XFT=no 14004 HAVE_XFT=no
9434 else 14005 else
9435 PKG_CONFIG_MIN_VERSION=0.9.0 14006 PKG_CONFIG_MIN_VERSION=0.9.0
9436 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14007 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5 14008 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
9438 $as_echo_n "checking for xft >= 0.13.0... " >&6; } 14009 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
9439 14010
9440 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then 14011 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
9441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14012 { $as_echo "$as_me:$LINENO: result: yes" >&5
9442 $as_echo "yes" >&6; } 14013 $as_echo "yes" >&6; }
9443 succeeded=yes 14014 succeeded=yes
9444 14015
9445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5 14016 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
9446 $as_echo_n "checking XFT_CFLAGS... " >&6; } 14017 $as_echo_n "checking XFT_CFLAGS... " >&6; }
9447 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` 14018 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5 14019 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
9449 $as_echo "$XFT_CFLAGS" >&6; } 14020 $as_echo "$XFT_CFLAGS" >&6; }
9450 14021
9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5 14022 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5
9452 $as_echo_n "checking XFT_LIBS... " >&6; } 14023 $as_echo_n "checking XFT_LIBS... " >&6; }
9453 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` 14024 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5 14025 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
9455 $as_echo "$XFT_LIBS" >&6; } 14026 $as_echo "$XFT_LIBS" >&6; }
9456 else 14027 else
9457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14028 { $as_echo "$as_me:$LINENO: result: no" >&5
9458 $as_echo "no" >&6; } 14029 $as_echo "no" >&6; }
9459 XFT_CFLAGS="" 14030 XFT_CFLAGS=""
9460 XFT_LIBS="" 14031 XFT_LIBS=""
9461 ## If we have a custom action on failure, don't print errors, but 14032 ## If we have a custom action on failure, don't print errors, but
9462 ## do set a variable so people can do so. 14033 ## do set a variable so people can do so.
9479 fi 14050 fi
9480 14051
9481 ## Because xftfont.c uses XRenderQueryExtension, we also 14052 ## Because xftfont.c uses XRenderQueryExtension, we also
9482 ## need to link to -lXrender. 14053 ## need to link to -lXrender.
9483 HAVE_XRENDER=no 14054 HAVE_XRENDER=no
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5 14055 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5
9485 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } 14056 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
9486 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then : 14057 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then
9487 $as_echo_n "(cached) " >&6 14058 $as_echo_n "(cached) " >&6
9488 else 14059 else
9489 ac_check_lib_save_LIBS=$LIBS 14060 ac_check_lib_save_LIBS=$LIBS
9490 LIBS="-lXrender $LIBS" 14061 LIBS="-lXrender $LIBS"
9491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14062 cat >conftest.$ac_ext <<_ACEOF
14063 /* confdefs.h. */
14064 _ACEOF
14065 cat confdefs.h >>conftest.$ac_ext
14066 cat >>conftest.$ac_ext <<_ACEOF
9492 /* end confdefs.h. */ 14067 /* end confdefs.h. */
9493 14068
9494 /* Override any GCC internal prototype to avoid an error. 14069 /* Override any GCC internal prototype to avoid an error.
9495 Use char because int might match the return type of a GCC 14070 Use char because int might match the return type of a GCC
9496 builtin and then its argument prototype would still apply. */ 14071 builtin and then its argument prototype would still apply. */
9504 return XRenderQueryExtension (); 14079 return XRenderQueryExtension ();
9505 ; 14080 ;
9506 return 0; 14081 return 0;
9507 } 14082 }
9508 _ACEOF 14083 _ACEOF
9509 if ac_fn_c_try_link "$LINENO"; then : 14084 rm -f conftest.$ac_objext conftest$ac_exeext
14085 if { (ac_try="$ac_link"
14086 case "(($ac_try" in
14087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14088 *) ac_try_echo=$ac_try;;
14089 esac
14090 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14091 $as_echo "$ac_try_echo") >&5
14092 (eval "$ac_link") 2>conftest.er1
14093 ac_status=$?
14094 grep -v '^ *+' conftest.er1 >conftest.err
14095 rm -f conftest.er1
14096 cat conftest.err >&5
14097 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14098 (exit $ac_status); } && {
14099 test -z "$ac_c_werror_flag" ||
14100 test ! -s conftest.err
14101 } && test -s conftest$ac_exeext && {
14102 test "$cross_compiling" = yes ||
14103 $as_test_x conftest$ac_exeext
14104 }; then
9510 ac_cv_lib_Xrender_XRenderQueryExtension=yes 14105 ac_cv_lib_Xrender_XRenderQueryExtension=yes
9511 else 14106 else
9512 ac_cv_lib_Xrender_XRenderQueryExtension=no 14107 $as_echo "$as_me: failed program was:" >&5
9513 fi 14108 sed 's/^/| /' conftest.$ac_ext >&5
9514 rm -f core conftest.err conftest.$ac_objext \ 14109
9515 conftest$ac_exeext conftest.$ac_ext 14110 ac_cv_lib_Xrender_XRenderQueryExtension=no
14111 fi
14112
14113 rm -rf conftest.dSYM
14114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14115 conftest$ac_exeext conftest.$ac_ext
9516 LIBS=$ac_check_lib_save_LIBS 14116 LIBS=$ac_check_lib_save_LIBS
9517 fi 14117 fi
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 14118 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
9519 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } 14119 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
9520 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then : 14120 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then
9521 HAVE_XRENDER=yes 14121 HAVE_XRENDER=yes
9522 fi 14122 fi
9523 14123
9524 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then 14124 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
9525 OLD_CPPFLAGS="$CPPFLAGS" 14125 OLD_CPPFLAGS="$CPPFLAGS"
9527 OLD_LIBS="$LIBS" 14127 OLD_LIBS="$LIBS"
9528 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" 14128 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
9529 CFLAGS="$CFLAGS $XFT_CFLAGS" 14129 CFLAGS="$CFLAGS $XFT_CFLAGS"
9530 XFT_LIBS="-lXrender $XFT_LIBS" 14130 XFT_LIBS="-lXrender $XFT_LIBS"
9531 LIBS="$XFT_LIBS $LIBS" 14131 LIBS="$XFT_LIBS $LIBS"
9532 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default" 14132 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
9533 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then : 14133 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5 14134 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14135 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14136 $as_echo_n "(cached) " >&6
14137 fi
14138 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14139 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14140 else
14141 # Is the header compilable?
14142 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
14143 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
14144 cat >conftest.$ac_ext <<_ACEOF
14145 /* confdefs.h. */
14146 _ACEOF
14147 cat confdefs.h >>conftest.$ac_ext
14148 cat >>conftest.$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14150 $ac_includes_default
14151 #include <X11/Xft/Xft.h>
14152 _ACEOF
14153 rm -f conftest.$ac_objext
14154 if { (ac_try="$ac_compile"
14155 case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14158 esac
14159 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14160 $as_echo "$ac_try_echo") >&5
14161 (eval "$ac_compile") 2>conftest.er1
14162 ac_status=$?
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
14166 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } && {
14168 test -z "$ac_c_werror_flag" ||
14169 test ! -s conftest.err
14170 } && test -s conftest.$ac_objext; then
14171 ac_header_compiler=yes
14172 else
14173 $as_echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14175
14176 ac_header_compiler=no
14177 fi
14178
14179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14180 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14181 $as_echo "$ac_header_compiler" >&6; }
14182
14183 # Is the header present?
14184 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
14185 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
14186 cat >conftest.$ac_ext <<_ACEOF
14187 /* confdefs.h. */
14188 _ACEOF
14189 cat confdefs.h >>conftest.$ac_ext
14190 cat >>conftest.$ac_ext <<_ACEOF
14191 /* end confdefs.h. */
14192 #include <X11/Xft/Xft.h>
14193 _ACEOF
14194 if { (ac_try="$ac_cpp conftest.$ac_ext"
14195 case "(($ac_try" in
14196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14197 *) ac_try_echo=$ac_try;;
14198 esac
14199 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14200 $as_echo "$ac_try_echo") >&5
14201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14202 ac_status=$?
14203 grep -v '^ *+' conftest.er1 >conftest.err
14204 rm -f conftest.er1
14205 cat conftest.err >&5
14206 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14207 (exit $ac_status); } >/dev/null && {
14208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14209 test ! -s conftest.err
14210 }; then
14211 ac_header_preproc=yes
14212 else
14213 $as_echo "$as_me: failed program was:" >&5
14214 sed 's/^/| /' conftest.$ac_ext >&5
14215
14216 ac_header_preproc=no
14217 fi
14218
14219 rm -f conftest.err conftest.$ac_ext
14220 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14221 $as_echo "$ac_header_preproc" >&6; }
14222
14223 # So? What about this header?
14224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14225 yes:no: )
14226 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14227 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14228 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14229 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14230 ac_header_preproc=yes
14231 ;;
14232 no:yes:* )
14233 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14234 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14235 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14236 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14237 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14238 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14239 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14240 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14241 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14242 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14243 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14244 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14245
14246 ;;
14247 esac
14248 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14249 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14250 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14251 $as_echo_n "(cached) " >&6
14252 else
14253 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14254 fi
14255 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14256 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14257
14258 fi
14259 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14260 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
9535 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; } 14261 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
9536 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then : 14262 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
9537 $as_echo_n "(cached) " >&6 14263 $as_echo_n "(cached) " >&6
9538 else 14264 else
9539 ac_check_lib_save_LIBS=$LIBS 14265 ac_check_lib_save_LIBS=$LIBS
9540 LIBS="-lXft $XFT_LIBS $LIBS" 14266 LIBS="-lXft $XFT_LIBS $LIBS"
9541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14267 cat >conftest.$ac_ext <<_ACEOF
14268 /* confdefs.h. */
14269 _ACEOF
14270 cat confdefs.h >>conftest.$ac_ext
14271 cat >>conftest.$ac_ext <<_ACEOF
9542 /* end confdefs.h. */ 14272 /* end confdefs.h. */
9543 14273
9544 /* Override any GCC internal prototype to avoid an error. 14274 /* Override any GCC internal prototype to avoid an error.
9545 Use char because int might match the return type of a GCC 14275 Use char because int might match the return type of a GCC
9546 builtin and then its argument prototype would still apply. */ 14276 builtin and then its argument prototype would still apply. */
9554 return XftFontOpen (); 14284 return XftFontOpen ();
9555 ; 14285 ;
9556 return 0; 14286 return 0;
9557 } 14287 }
9558 _ACEOF 14288 _ACEOF
9559 if ac_fn_c_try_link "$LINENO"; then : 14289 rm -f conftest.$ac_objext conftest$ac_exeext
14290 if { (ac_try="$ac_link"
14291 case "(($ac_try" in
14292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14294 esac
14295 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14296 $as_echo "$ac_try_echo") >&5
14297 (eval "$ac_link") 2>conftest.er1
14298 ac_status=$?
14299 grep -v '^ *+' conftest.er1 >conftest.err
14300 rm -f conftest.er1
14301 cat conftest.err >&5
14302 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14303 (exit $ac_status); } && {
14304 test -z "$ac_c_werror_flag" ||
14305 test ! -s conftest.err
14306 } && test -s conftest$ac_exeext && {
14307 test "$cross_compiling" = yes ||
14308 $as_test_x conftest$ac_exeext
14309 }; then
9560 ac_cv_lib_Xft_XftFontOpen=yes 14310 ac_cv_lib_Xft_XftFontOpen=yes
9561 else 14311 else
9562 ac_cv_lib_Xft_XftFontOpen=no 14312 $as_echo "$as_me: failed program was:" >&5
9563 fi 14313 sed 's/^/| /' conftest.$ac_ext >&5
9564 rm -f core conftest.err conftest.$ac_objext \ 14314
9565 conftest$ac_exeext conftest.$ac_ext 14315 ac_cv_lib_Xft_XftFontOpen=no
14316 fi
14317
14318 rm -rf conftest.dSYM
14319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14320 conftest$ac_exeext conftest.$ac_ext
9566 LIBS=$ac_check_lib_save_LIBS 14321 LIBS=$ac_check_lib_save_LIBS
9567 fi 14322 fi
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5 14323 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
9569 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } 14324 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
9570 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then : 14325 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
9571 HAVE_XFT=yes 14326 HAVE_XFT=yes
9572 fi 14327 fi
9573 14328
9574 fi 14329 fi
9575 14330
9576 14331
9577 14332
9578 if test "${HAVE_XFT}" = "yes"; then 14333 if test "${HAVE_XFT}" = "yes"; then
9579 14334
9580 $as_echo "#define HAVE_XFT 1" >>confdefs.h 14335 cat >>confdefs.h <<\_ACEOF
14336 #define HAVE_XFT 1
14337 _ACEOF
9581 14338
9582 14339
9583 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" 14340 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
9584 else 14341 else
9585 CPPFLAGS="$OLD_CPPFLAGS" 14342 CPPFLAGS="$OLD_CPPFLAGS"
9604 fi 14361 fi
9605 14362
9606 HAVE_LIBOTF=no 14363 HAVE_LIBOTF=no
9607 if test "${HAVE_FREETYPE}" = "yes"; then 14364 if test "${HAVE_FREETYPE}" = "yes"; then
9608 14365
9609 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h 14366 cat >>confdefs.h <<\_ACEOF
14367 #define HAVE_FREETYPE 1
14368 _ACEOF
9610 14369
9611 if test "${with_libotf}" != "no"; then 14370 if test "${with_libotf}" != "no"; then
9612 14371
9613 succeeded=no 14372 succeeded=no
9614 14373
9615 # Extract the first word of "pkg-config", so it can be a program name with args. 14374 # Extract the first word of "pkg-config", so it can be a program name with args.
9616 set dummy pkg-config; ac_word=$2 14375 set dummy pkg-config; ac_word=$2
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14376 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9618 $as_echo_n "checking for $ac_word... " >&6; } 14377 $as_echo_n "checking for $ac_word... " >&6; }
9619 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 14378 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9620 $as_echo_n "(cached) " >&6 14379 $as_echo_n "(cached) " >&6
9621 else 14380 else
9622 case $PKG_CONFIG in 14381 case $PKG_CONFIG in
9623 [\\/]* | ?:[\\/]*) 14382 [\\/]* | ?:[\\/]*)
9624 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14383 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9628 for as_dir in $PATH 14387 for as_dir in $PATH
9629 do 14388 do
9630 IFS=$as_save_IFS 14389 IFS=$as_save_IFS
9631 test -z "$as_dir" && as_dir=. 14390 test -z "$as_dir" && as_dir=.
9632 for ac_exec_ext in '' $ac_executable_extensions; do 14391 for ac_exec_ext in '' $ac_executable_extensions; do
9633 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14392 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9634 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14393 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14394 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9636 break 2 14395 break 2
9637 fi 14396 fi
9638 done 14397 done
9639 done 14398 done
9640 IFS=$as_save_IFS 14399 IFS=$as_save_IFS
9641 14400
9642 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 14401 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9643 ;; 14402 ;;
9644 esac 14403 esac
9645 fi 14404 fi
9646 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14405 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9647 if test -n "$PKG_CONFIG"; then 14406 if test -n "$PKG_CONFIG"; then
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14407 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9649 $as_echo "$PKG_CONFIG" >&6; } 14408 $as_echo "$PKG_CONFIG" >&6; }
9650 else 14409 else
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14410 { $as_echo "$as_me:$LINENO: result: no" >&5
9652 $as_echo "no" >&6; } 14411 $as_echo "no" >&6; }
9653 fi 14412 fi
9654 14413
9655 14414
9656 14415
9657 if test "$PKG_CONFIG" = "no" ; then 14416 if test "$PKG_CONFIG" = "no" ; then
9658 HAVE_LIBOTF=no 14417 HAVE_LIBOTF=no
9659 else 14418 else
9660 PKG_CONFIG_MIN_VERSION=0.9.0 14419 PKG_CONFIG_MIN_VERSION=0.9.0
9661 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14420 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5 14421 { $as_echo "$as_me:$LINENO: checking for libotf" >&5
9663 $as_echo_n "checking for libotf... " >&6; } 14422 $as_echo_n "checking for libotf... " >&6; }
9664 14423
9665 if $PKG_CONFIG --exists "libotf" 2>&5; then 14424 if $PKG_CONFIG --exists "libotf" 2>&5; then
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14425 { $as_echo "$as_me:$LINENO: result: yes" >&5
9667 $as_echo "yes" >&6; } 14426 $as_echo "yes" >&6; }
9668 succeeded=yes 14427 succeeded=yes
9669 14428
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5 14429 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
9671 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; } 14430 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
9672 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` 14431 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5 14432 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
9674 $as_echo "$LIBOTF_CFLAGS" >&6; } 14433 $as_echo "$LIBOTF_CFLAGS" >&6; }
9675 14434
9676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5 14435 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
9677 $as_echo_n "checking LIBOTF_LIBS... " >&6; } 14436 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
9678 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` 14437 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5 14438 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
9680 $as_echo "$LIBOTF_LIBS" >&6; } 14439 $as_echo "$LIBOTF_LIBS" >&6; }
9681 else 14440 else
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14441 { $as_echo "$as_me:$LINENO: result: no" >&5
9683 $as_echo "no" >&6; } 14442 $as_echo "no" >&6; }
9684 LIBOTF_CFLAGS="" 14443 LIBOTF_CFLAGS=""
9685 LIBOTF_LIBS="" 14444 LIBOTF_LIBS=""
9686 ## If we have a custom action on failure, don't print errors, but 14445 ## If we have a custom action on failure, don't print errors, but
9687 ## do set a variable so people can do so. 14446 ## do set a variable so people can do so.
9703 HAVE_LIBOTF=no 14462 HAVE_LIBOTF=no
9704 fi 14463 fi
9705 14464
9706 if test "$HAVE_LIBOTF" = "yes"; then 14465 if test "$HAVE_LIBOTF" = "yes"; then
9707 14466
9708 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h 14467 cat >>confdefs.h <<\_ACEOF
9709 14468 #define HAVE_LIBOTF 1
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5 14469 _ACEOF
14470
14471 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
9711 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } 14472 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
9712 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then : 14473 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then
9713 $as_echo_n "(cached) " >&6 14474 $as_echo_n "(cached) " >&6
9714 else 14475 else
9715 ac_check_lib_save_LIBS=$LIBS 14476 ac_check_lib_save_LIBS=$LIBS
9716 LIBS="-lotf $LIBS" 14477 LIBS="-lotf $LIBS"
9717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14478 cat >conftest.$ac_ext <<_ACEOF
14479 /* confdefs.h. */
14480 _ACEOF
14481 cat confdefs.h >>conftest.$ac_ext
14482 cat >>conftest.$ac_ext <<_ACEOF
9718 /* end confdefs.h. */ 14483 /* end confdefs.h. */
9719 14484
9720 /* Override any GCC internal prototype to avoid an error. 14485 /* Override any GCC internal prototype to avoid an error.
9721 Use char because int might match the return type of a GCC 14486 Use char because int might match the return type of a GCC
9722 builtin and then its argument prototype would still apply. */ 14487 builtin and then its argument prototype would still apply. */
9730 return OTF_get_variation_glyphs (); 14495 return OTF_get_variation_glyphs ();
9731 ; 14496 ;
9732 return 0; 14497 return 0;
9733 } 14498 }
9734 _ACEOF 14499 _ACEOF
9735 if ac_fn_c_try_link "$LINENO"; then : 14500 rm -f conftest.$ac_objext conftest$ac_exeext
14501 if { (ac_try="$ac_link"
14502 case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14505 esac
14506 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14507 $as_echo "$ac_try_echo") >&5
14508 (eval "$ac_link") 2>conftest.er1
14509 ac_status=$?
14510 grep -v '^ *+' conftest.er1 >conftest.err
14511 rm -f conftest.er1
14512 cat conftest.err >&5
14513 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14514 (exit $ac_status); } && {
14515 test -z "$ac_c_werror_flag" ||
14516 test ! -s conftest.err
14517 } && test -s conftest$ac_exeext && {
14518 test "$cross_compiling" = yes ||
14519 $as_test_x conftest$ac_exeext
14520 }; then
9736 ac_cv_lib_otf_OTF_get_variation_glyphs=yes 14521 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
9737 else 14522 else
9738 ac_cv_lib_otf_OTF_get_variation_glyphs=no 14523 $as_echo "$as_me: failed program was:" >&5
9739 fi 14524 sed 's/^/| /' conftest.$ac_ext >&5
9740 rm -f core conftest.err conftest.$ac_objext \ 14525
9741 conftest$ac_exeext conftest.$ac_ext 14526 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14527 fi
14528
14529 rm -rf conftest.dSYM
14530 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14531 conftest$ac_exeext conftest.$ac_ext
9742 LIBS=$ac_check_lib_save_LIBS 14532 LIBS=$ac_check_lib_save_LIBS
9743 fi 14533 fi
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 14534 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
9745 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } 14535 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
9746 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then : 14536 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then
9747 HAVE_OTF_GET_VARIATION_GLYPHS=yes 14537 HAVE_OTF_GET_VARIATION_GLYPHS=yes
9748 else 14538 else
9749 HAVE_OTF_GET_VARIATION_GLYPHS=no 14539 HAVE_OTF_GET_VARIATION_GLYPHS=no
9750 fi 14540 fi
9751 14541
9752 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then 14542 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
9753 14543
9754 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h 14544 cat >>confdefs.h <<\_ACEOF
14545 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14546 _ACEOF
9755 14547
9756 fi 14548 fi
9757 fi 14549 fi
9758 fi 14550 fi
9759 fi 14551 fi
9764 14556
9765 succeeded=no 14557 succeeded=no
9766 14558
9767 # Extract the first word of "pkg-config", so it can be a program name with args. 14559 # Extract the first word of "pkg-config", so it can be a program name with args.
9768 set dummy pkg-config; ac_word=$2 14560 set dummy pkg-config; ac_word=$2
9769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14561 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
9770 $as_echo_n "checking for $ac_word... " >&6; } 14562 $as_echo_n "checking for $ac_word... " >&6; }
9771 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then : 14563 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
9772 $as_echo_n "(cached) " >&6 14564 $as_echo_n "(cached) " >&6
9773 else 14565 else
9774 case $PKG_CONFIG in 14566 case $PKG_CONFIG in
9775 [\\/]* | ?:[\\/]*) 14567 [\\/]* | ?:[\\/]*)
9776 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 14568 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
9779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780 for as_dir in $PATH 14572 for as_dir in $PATH
9781 do 14573 do
9782 IFS=$as_save_IFS 14574 IFS=$as_save_IFS
9783 test -z "$as_dir" && as_dir=. 14575 test -z "$as_dir" && as_dir=.
9784 for ac_exec_ext in '' $ac_executable_extensions; do 14576 for ac_exec_ext in '' $ac_executable_extensions; do
9785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9786 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 14578 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
9787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14579 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9788 break 2 14580 break 2
9789 fi 14581 fi
9790 done 14582 done
9791 done 14583 done
9792 IFS=$as_save_IFS 14584 IFS=$as_save_IFS
9793 14585
9794 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 14586 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
9795 ;; 14587 ;;
9796 esac 14588 esac
9797 fi 14589 fi
9798 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 14590 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
9799 if test -n "$PKG_CONFIG"; then 14591 if test -n "$PKG_CONFIG"; then
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 14592 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
9801 $as_echo "$PKG_CONFIG" >&6; } 14593 $as_echo "$PKG_CONFIG" >&6; }
9802 else 14594 else
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14595 { $as_echo "$as_me:$LINENO: result: no" >&5
9804 $as_echo "no" >&6; } 14596 $as_echo "no" >&6; }
9805 fi 14597 fi
9806 14598
9807 14599
9808 14600
9809 if test "$PKG_CONFIG" = "no" ; then 14601 if test "$PKG_CONFIG" = "no" ; then
9810 HAVE_M17N_FLT=no 14602 HAVE_M17N_FLT=no
9811 else 14603 else
9812 PKG_CONFIG_MIN_VERSION=0.9.0 14604 PKG_CONFIG_MIN_VERSION=0.9.0
9813 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 14605 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
9814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5 14606 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5
9815 $as_echo_n "checking for m17n-flt... " >&6; } 14607 $as_echo_n "checking for m17n-flt... " >&6; }
9816 14608
9817 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then 14609 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
9818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14610 { $as_echo "$as_me:$LINENO: result: yes" >&5
9819 $as_echo "yes" >&6; } 14611 $as_echo "yes" >&6; }
9820 succeeded=yes 14612 succeeded=yes
9821 14613
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5 14614 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
9823 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } 14615 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
9824 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` 14616 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5 14617 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
9826 $as_echo "$M17N_FLT_CFLAGS" >&6; } 14618 $as_echo "$M17N_FLT_CFLAGS" >&6; }
9827 14619
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5 14620 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
9829 $as_echo_n "checking M17N_FLT_LIBS... " >&6; } 14621 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
9830 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` 14622 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5 14623 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
9832 $as_echo "$M17N_FLT_LIBS" >&6; } 14624 $as_echo "$M17N_FLT_LIBS" >&6; }
9833 else 14625 else
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14626 { $as_echo "$as_me:$LINENO: result: no" >&5
9835 $as_echo "no" >&6; } 14627 $as_echo "no" >&6; }
9836 M17N_FLT_CFLAGS="" 14628 M17N_FLT_CFLAGS=""
9837 M17N_FLT_LIBS="" 14629 M17N_FLT_LIBS=""
9838 ## If we have a custom action on failure, don't print errors, but 14630 ## If we have a custom action on failure, don't print errors, but
9839 ## do set a variable so people can do so. 14631 ## do set a variable so people can do so.
9855 HAVE_M17N_FLT=no 14647 HAVE_M17N_FLT=no
9856 fi 14648 fi
9857 14649
9858 if test "$HAVE_M17N_FLT" = "yes"; then 14650 if test "$HAVE_M17N_FLT" = "yes"; then
9859 14651
9860 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h 14652 cat >>confdefs.h <<\_ACEOF
14653 #define HAVE_M17N_FLT 1
14654 _ACEOF
9861 14655
9862 fi 14656 fi
9863 fi 14657 fi
9864 fi 14658 fi
9865 else 14659 else
9891 ### Use -lXpm if available, unless `--with-xpm=no'. 14685 ### Use -lXpm if available, unless `--with-xpm=no'.
9892 HAVE_XPM=no 14686 HAVE_XPM=no
9893 LIBXPM= 14687 LIBXPM=
9894 if test "${HAVE_X11}" = "yes"; then 14688 if test "${HAVE_X11}" = "yes"; then
9895 if test "${with_xpm}" != "no"; then 14689 if test "${with_xpm}" != "no"; then
9896 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default" 14690 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
9897 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then : 14691 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5 14692 $as_echo_n "checking for X11/xpm.h... " >&6; }
14693 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14694 $as_echo_n "(cached) " >&6
14695 fi
14696 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14697 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14698 else
14699 # Is the header compilable?
14700 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14701 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14702 cat >conftest.$ac_ext <<_ACEOF
14703 /* confdefs.h. */
14704 _ACEOF
14705 cat confdefs.h >>conftest.$ac_ext
14706 cat >>conftest.$ac_ext <<_ACEOF
14707 /* end confdefs.h. */
14708 $ac_includes_default
14709 #include <X11/xpm.h>
14710 _ACEOF
14711 rm -f conftest.$ac_objext
14712 if { (ac_try="$ac_compile"
14713 case "(($ac_try" in
14714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14716 esac
14717 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14718 $as_echo "$ac_try_echo") >&5
14719 (eval "$ac_compile") 2>conftest.er1
14720 ac_status=$?
14721 grep -v '^ *+' conftest.er1 >conftest.err
14722 rm -f conftest.er1
14723 cat conftest.err >&5
14724 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14725 (exit $ac_status); } && {
14726 test -z "$ac_c_werror_flag" ||
14727 test ! -s conftest.err
14728 } && test -s conftest.$ac_objext; then
14729 ac_header_compiler=yes
14730 else
14731 $as_echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14733
14734 ac_header_compiler=no
14735 fi
14736
14737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14738 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14739 $as_echo "$ac_header_compiler" >&6; }
14740
14741 # Is the header present?
14742 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14743 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14744 cat >conftest.$ac_ext <<_ACEOF
14745 /* confdefs.h. */
14746 _ACEOF
14747 cat confdefs.h >>conftest.$ac_ext
14748 cat >>conftest.$ac_ext <<_ACEOF
14749 /* end confdefs.h. */
14750 #include <X11/xpm.h>
14751 _ACEOF
14752 if { (ac_try="$ac_cpp conftest.$ac_ext"
14753 case "(($ac_try" in
14754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14755 *) ac_try_echo=$ac_try;;
14756 esac
14757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14758 $as_echo "$ac_try_echo") >&5
14759 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14760 ac_status=$?
14761 grep -v '^ *+' conftest.er1 >conftest.err
14762 rm -f conftest.er1
14763 cat conftest.err >&5
14764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14765 (exit $ac_status); } >/dev/null && {
14766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14767 test ! -s conftest.err
14768 }; then
14769 ac_header_preproc=yes
14770 else
14771 $as_echo "$as_me: failed program was:" >&5
14772 sed 's/^/| /' conftest.$ac_ext >&5
14773
14774 ac_header_preproc=no
14775 fi
14776
14777 rm -f conftest.err conftest.$ac_ext
14778 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14779 $as_echo "$ac_header_preproc" >&6; }
14780
14781 # So? What about this header?
14782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14783 yes:no: )
14784 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14785 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14786 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14787 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14788 ac_header_preproc=yes
14789 ;;
14790 no:yes:* )
14791 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14792 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14793 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14794 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14795 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14796 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14797 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14798 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14799 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14800 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14801 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14802 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14803
14804 ;;
14805 esac
14806 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14807 $as_echo_n "checking for X11/xpm.h... " >&6; }
14808 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14809 $as_echo_n "(cached) " >&6
14810 else
14811 ac_cv_header_X11_xpm_h=$ac_header_preproc
14812 fi
14813 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14814 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14815
14816 fi
14817 if test $ac_cv_header_X11_xpm_h = yes; then
14818 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
9899 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } 14819 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
9900 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then : 14820 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
9901 $as_echo_n "(cached) " >&6 14821 $as_echo_n "(cached) " >&6
9902 else 14822 else
9903 ac_check_lib_save_LIBS=$LIBS 14823 ac_check_lib_save_LIBS=$LIBS
9904 LIBS="-lXpm -lX11 $LIBS" 14824 LIBS="-lXpm -lX11 $LIBS"
9905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14825 cat >conftest.$ac_ext <<_ACEOF
14826 /* confdefs.h. */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
9906 /* end confdefs.h. */ 14830 /* end confdefs.h. */
9907 14831
9908 /* Override any GCC internal prototype to avoid an error. 14832 /* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC 14833 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */ 14834 builtin and then its argument prototype would still apply. */
9918 return XpmReadFileToPixmap (); 14842 return XpmReadFileToPixmap ();
9919 ; 14843 ;
9920 return 0; 14844 return 0;
9921 } 14845 }
9922 _ACEOF 14846 _ACEOF
9923 if ac_fn_c_try_link "$LINENO"; then : 14847 rm -f conftest.$ac_objext conftest$ac_exeext
14848 if { (ac_try="$ac_link"
14849 case "(($ac_try" in
14850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14851 *) ac_try_echo=$ac_try;;
14852 esac
14853 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14854 $as_echo "$ac_try_echo") >&5
14855 (eval "$ac_link") 2>conftest.er1
14856 ac_status=$?
14857 grep -v '^ *+' conftest.er1 >conftest.err
14858 rm -f conftest.er1
14859 cat conftest.err >&5
14860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14861 (exit $ac_status); } && {
14862 test -z "$ac_c_werror_flag" ||
14863 test ! -s conftest.err
14864 } && test -s conftest$ac_exeext && {
14865 test "$cross_compiling" = yes ||
14866 $as_test_x conftest$ac_exeext
14867 }; then
9924 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes 14868 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
9925 else 14869 else
9926 ac_cv_lib_Xpm_XpmReadFileToPixmap=no 14870 $as_echo "$as_me: failed program was:" >&5
9927 fi 14871 sed 's/^/| /' conftest.$ac_ext >&5
9928 rm -f core conftest.err conftest.$ac_objext \ 14872
9929 conftest$ac_exeext conftest.$ac_ext 14873 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14874 fi
14875
14876 rm -rf conftest.dSYM
14877 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14878 conftest$ac_exeext conftest.$ac_ext
9930 LIBS=$ac_check_lib_save_LIBS 14879 LIBS=$ac_check_lib_save_LIBS
9931 fi 14880 fi
9932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 14881 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
9933 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } 14882 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
9934 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then : 14883 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
9935 HAVE_XPM=yes 14884 HAVE_XPM=yes
9936 fi 14885 fi
9937 14886
9938 fi 14887 fi
9939 14888
9940 14889
9941 if test "${HAVE_XPM}" = "yes"; then 14890 if test "${HAVE_XPM}" = "yes"; then
9942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5 14891 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
9943 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } 14892 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
9944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14893 cat >conftest.$ac_ext <<_ACEOF
14894 /* confdefs.h. */
14895 _ACEOF
14896 cat confdefs.h >>conftest.$ac_ext
14897 cat >>conftest.$ac_ext <<_ACEOF
9945 /* end confdefs.h. */ 14898 /* end confdefs.h. */
9946 #include "X11/xpm.h" 14899 #include "X11/xpm.h"
9947 #ifndef XpmReturnAllocPixels 14900 #ifndef XpmReturnAllocPixels
9948 no_return_alloc_pixels 14901 no_return_alloc_pixels
9949 #endif 14902 #endif
9950 14903
9951 _ACEOF 14904 _ACEOF
9952 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 14905 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9953 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then : 14906 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
9954 HAVE_XPM=no 14907 HAVE_XPM=no
9955 else 14908 else
9956 HAVE_XPM=yes 14909 HAVE_XPM=yes
9957 fi 14910 fi
9958 rm -f conftest* 14911 rm -f conftest*
9959 14912
9960 14913
9961 if test "${HAVE_XPM}" = "yes"; then 14914 if test "${HAVE_XPM}" = "yes"; then
9962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 14915 { $as_echo "$as_me:$LINENO: result: yes" >&5
9963 $as_echo "yes" >&6; } 14916 $as_echo "yes" >&6; }
9964 else 14917 else
9965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14918 { $as_echo "$as_me:$LINENO: result: no" >&5
9966 $as_echo "no" >&6; } 14919 $as_echo "no" >&6; }
9967 fi 14920 fi
9968 fi 14921 fi
9969 fi 14922 fi
9970 14923
9971 if test "${HAVE_XPM}" = "yes"; then 14924 if test "${HAVE_XPM}" = "yes"; then
9972 14925
9973 $as_echo "#define HAVE_XPM 1" >>confdefs.h 14926 cat >>confdefs.h <<\_ACEOF
14927 #define HAVE_XPM 1
14928 _ACEOF
9974 14929
9975 LIBXPM=-lXpm 14930 LIBXPM=-lXpm
9976 fi 14931 fi
9977 fi 14932 fi
9978 14933
9980 ### Use -ljpeg if available, unless `--with-jpeg=no'. 14935 ### Use -ljpeg if available, unless `--with-jpeg=no'.
9981 HAVE_JPEG=no 14936 HAVE_JPEG=no
9982 LIBJPEG= 14937 LIBJPEG=
9983 if test "${HAVE_X11}" = "yes"; then 14938 if test "${HAVE_X11}" = "yes"; then
9984 if test "${with_jpeg}" != "no"; then 14939 if test "${with_jpeg}" != "no"; then
9985 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default" 14940 if test "${ac_cv_header_jerror_h+set}" = set; then
9986 if test "x$ac_cv_header_jerror_h" = x""yes; then : 14941 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
9987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5 14942 $as_echo_n "checking for jerror.h... " >&6; }
14943 if test "${ac_cv_header_jerror_h+set}" = set; then
14944 $as_echo_n "(cached) " >&6
14945 fi
14946 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14947 $as_echo "$ac_cv_header_jerror_h" >&6; }
14948 else
14949 # Is the header compilable?
14950 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14951 $as_echo_n "checking jerror.h usability... " >&6; }
14952 cat >conftest.$ac_ext <<_ACEOF
14953 /* confdefs.h. */
14954 _ACEOF
14955 cat confdefs.h >>conftest.$ac_ext
14956 cat >>conftest.$ac_ext <<_ACEOF
14957 /* end confdefs.h. */
14958 $ac_includes_default
14959 #include <jerror.h>
14960 _ACEOF
14961 rm -f conftest.$ac_objext
14962 if { (ac_try="$ac_compile"
14963 case "(($ac_try" in
14964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14965 *) ac_try_echo=$ac_try;;
14966 esac
14967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14968 $as_echo "$ac_try_echo") >&5
14969 (eval "$ac_compile") 2>conftest.er1
14970 ac_status=$?
14971 grep -v '^ *+' conftest.er1 >conftest.err
14972 rm -f conftest.er1
14973 cat conftest.err >&5
14974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14975 (exit $ac_status); } && {
14976 test -z "$ac_c_werror_flag" ||
14977 test ! -s conftest.err
14978 } && test -s conftest.$ac_objext; then
14979 ac_header_compiler=yes
14980 else
14981 $as_echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14983
14984 ac_header_compiler=no
14985 fi
14986
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14989 $as_echo "$ac_header_compiler" >&6; }
14990
14991 # Is the header present?
14992 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14993 $as_echo_n "checking jerror.h presence... " >&6; }
14994 cat >conftest.$ac_ext <<_ACEOF
14995 /* confdefs.h. */
14996 _ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15000 #include <jerror.h>
15001 _ACEOF
15002 if { (ac_try="$ac_cpp conftest.$ac_ext"
15003 case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15006 esac
15007 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15008 $as_echo "$ac_try_echo") >&5
15009 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15010 ac_status=$?
15011 grep -v '^ *+' conftest.er1 >conftest.err
15012 rm -f conftest.er1
15013 cat conftest.err >&5
15014 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } >/dev/null && {
15016 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15017 test ! -s conftest.err
15018 }; then
15019 ac_header_preproc=yes
15020 else
15021 $as_echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15023
15024 ac_header_preproc=no
15025 fi
15026
15027 rm -f conftest.err conftest.$ac_ext
15028 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15029 $as_echo "$ac_header_preproc" >&6; }
15030
15031 # So? What about this header?
15032 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15033 yes:no: )
15034 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
15035 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15036 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
15037 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
15038 ac_header_preproc=yes
15039 ;;
15040 no:yes:* )
15041 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
15042 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
15043 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
15044 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
15045 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
15046 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
15047 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
15048 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
15049 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
15050 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
15051 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
15052 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
15053
15054 ;;
15055 esac
15056 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
15057 $as_echo_n "checking for jerror.h... " >&6; }
15058 if test "${ac_cv_header_jerror_h+set}" = set; then
15059 $as_echo_n "(cached) " >&6
15060 else
15061 ac_cv_header_jerror_h=$ac_header_preproc
15062 fi
15063 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
15064 $as_echo "$ac_cv_header_jerror_h" >&6; }
15065
15066 fi
15067 if test $ac_cv_header_jerror_h = yes; then
15068 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
9988 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } 15069 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
9989 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then : 15070 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
9990 $as_echo_n "(cached) " >&6 15071 $as_echo_n "(cached) " >&6
9991 else 15072 else
9992 ac_check_lib_save_LIBS=$LIBS 15073 ac_check_lib_save_LIBS=$LIBS
9993 LIBS="-ljpeg $LIBS" 15074 LIBS="-ljpeg $LIBS"
9994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15075 cat >conftest.$ac_ext <<_ACEOF
15076 /* confdefs.h. */
15077 _ACEOF
15078 cat confdefs.h >>conftest.$ac_ext
15079 cat >>conftest.$ac_ext <<_ACEOF
9995 /* end confdefs.h. */ 15080 /* end confdefs.h. */
9996 15081
9997 /* Override any GCC internal prototype to avoid an error. 15082 /* Override any GCC internal prototype to avoid an error.
9998 Use char because int might match the return type of a GCC 15083 Use char because int might match the return type of a GCC
9999 builtin and then its argument prototype would still apply. */ 15084 builtin and then its argument prototype would still apply. */
10007 return jpeg_destroy_compress (); 15092 return jpeg_destroy_compress ();
10008 ; 15093 ;
10009 return 0; 15094 return 0;
10010 } 15095 }
10011 _ACEOF 15096 _ACEOF
10012 if ac_fn_c_try_link "$LINENO"; then : 15097 rm -f conftest.$ac_objext conftest$ac_exeext
15098 if { (ac_try="$ac_link"
15099 case "(($ac_try" in
15100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15101 *) ac_try_echo=$ac_try;;
15102 esac
15103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15104 $as_echo "$ac_try_echo") >&5
15105 (eval "$ac_link") 2>conftest.er1
15106 ac_status=$?
15107 grep -v '^ *+' conftest.er1 >conftest.err
15108 rm -f conftest.er1
15109 cat conftest.err >&5
15110 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15111 (exit $ac_status); } && {
15112 test -z "$ac_c_werror_flag" ||
15113 test ! -s conftest.err
15114 } && test -s conftest$ac_exeext && {
15115 test "$cross_compiling" = yes ||
15116 $as_test_x conftest$ac_exeext
15117 }; then
10013 ac_cv_lib_jpeg_jpeg_destroy_compress=yes 15118 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
10014 else 15119 else
10015 ac_cv_lib_jpeg_jpeg_destroy_compress=no 15120 $as_echo "$as_me: failed program was:" >&5
10016 fi 15121 sed 's/^/| /' conftest.$ac_ext >&5
10017 rm -f core conftest.err conftest.$ac_objext \ 15122
10018 conftest$ac_exeext conftest.$ac_ext 15123 ac_cv_lib_jpeg_jpeg_destroy_compress=no
15124 fi
15125
15126 rm -rf conftest.dSYM
15127 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15128 conftest$ac_exeext conftest.$ac_ext
10019 LIBS=$ac_check_lib_save_LIBS 15129 LIBS=$ac_check_lib_save_LIBS
10020 fi 15130 fi
10021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 15131 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
10022 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } 15132 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
10023 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then : 15133 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
10024 HAVE_JPEG=yes 15134 HAVE_JPEG=yes
10025 fi 15135 fi
10026 15136
10027 fi 15137 fi
10028 15138
10029 15139
10030 fi 15140 fi
10031 15141
10032 if test "${HAVE_JPEG}" = "yes"; then 15142
10033 $as_echo "#define HAVE_JPEG 1" >>confdefs.h 15143 if test "${HAVE_JPEG}" = "yes"; then
10034 15144 cat >>confdefs.h <<\_ACEOF
10035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15145 #define HAVE_JPEG 1
15146 _ACEOF
15147
15148 cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h. */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
10036 /* end confdefs.h. */ 15153 /* end confdefs.h. */
10037 #include <jpeglib.h> 15154 #include <jpeglib.h>
10038 version=JPEG_LIB_VERSION 15155 version=JPEG_LIB_VERSION
10039 15156
10040 _ACEOF 15157 _ACEOF
10041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15158 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10042 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then : 15159 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
10043 $as_echo "#define HAVE_JPEG 1" >>confdefs.h 15160 cat >>confdefs.h <<\_ACEOF
10044 15161 #define HAVE_JPEG 1
10045 else 15162 _ACEOF
10046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5 15163
15164 else
15165 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
10047 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} 15166 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
10048 HAVE_JPEG=no 15167 HAVE_JPEG=no
10049 fi 15168 fi
10050 rm -f conftest* 15169 rm -f conftest*
10051 15170
10061 LIBPNG= 15180 LIBPNG=
10062 if test "${HAVE_X11}" = "yes"; then 15181 if test "${HAVE_X11}" = "yes"; then
10063 if test "${with_png}" != "no"; then 15182 if test "${with_png}" != "no"; then
10064 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h 15183 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
10065 # in /usr/include/libpng. 15184 # in /usr/include/libpng.
10066 for ac_header in png.h libpng/png.h 15185
10067 do : 15186
10068 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15187 for ac_header in png.h libpng/png.h
10069 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15188 do
10070 eval as_val=\$$as_ac_Header 15189 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10071 if test "x$as_val" = x""yes; then : 15190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15191 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15192 $as_echo_n "checking for $ac_header... " >&6; }
15193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15194 $as_echo_n "(cached) " >&6
15195 fi
15196 ac_res=`eval 'as_val=${'$as_ac_Header'}
15197 $as_echo "$as_val"'`
15198 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15199 $as_echo "$ac_res" >&6; }
15200 else
15201 # Is the header compilable?
15202 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
15203 $as_echo_n "checking $ac_header usability... " >&6; }
15204 cat >conftest.$ac_ext <<_ACEOF
15205 /* confdefs.h. */
15206 _ACEOF
15207 cat confdefs.h >>conftest.$ac_ext
15208 cat >>conftest.$ac_ext <<_ACEOF
15209 /* end confdefs.h. */
15210 $ac_includes_default
15211 #include <$ac_header>
15212 _ACEOF
15213 rm -f conftest.$ac_objext
15214 if { (ac_try="$ac_compile"
15215 case "(($ac_try" in
15216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15217 *) ac_try_echo=$ac_try;;
15218 esac
15219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15220 $as_echo "$ac_try_echo") >&5
15221 (eval "$ac_compile") 2>conftest.er1
15222 ac_status=$?
15223 grep -v '^ *+' conftest.er1 >conftest.err
15224 rm -f conftest.er1
15225 cat conftest.err >&5
15226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15227 (exit $ac_status); } && {
15228 test -z "$ac_c_werror_flag" ||
15229 test ! -s conftest.err
15230 } && test -s conftest.$ac_objext; then
15231 ac_header_compiler=yes
15232 else
15233 $as_echo "$as_me: failed program was:" >&5
15234 sed 's/^/| /' conftest.$ac_ext >&5
15235
15236 ac_header_compiler=no
15237 fi
15238
15239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15240 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15241 $as_echo "$ac_header_compiler" >&6; }
15242
15243 # Is the header present?
15244 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15245 $as_echo_n "checking $ac_header presence... " >&6; }
15246 cat >conftest.$ac_ext <<_ACEOF
15247 /* confdefs.h. */
15248 _ACEOF
15249 cat confdefs.h >>conftest.$ac_ext
15250 cat >>conftest.$ac_ext <<_ACEOF
15251 /* end confdefs.h. */
15252 #include <$ac_header>
15253 _ACEOF
15254 if { (ac_try="$ac_cpp conftest.$ac_ext"
15255 case "(($ac_try" in
15256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15257 *) ac_try_echo=$ac_try;;
15258 esac
15259 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15260 $as_echo "$ac_try_echo") >&5
15261 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15262 ac_status=$?
15263 grep -v '^ *+' conftest.er1 >conftest.err
15264 rm -f conftest.er1
15265 cat conftest.err >&5
15266 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15267 (exit $ac_status); } >/dev/null && {
15268 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15269 test ! -s conftest.err
15270 }; then
15271 ac_header_preproc=yes
15272 else
15273 $as_echo "$as_me: failed program was:" >&5
15274 sed 's/^/| /' conftest.$ac_ext >&5
15275
15276 ac_header_preproc=no
15277 fi
15278
15279 rm -f conftest.err conftest.$ac_ext
15280 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15281 $as_echo "$ac_header_preproc" >&6; }
15282
15283 # So? What about this header?
15284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15285 yes:no: )
15286 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15287 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15288 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15289 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15290 ac_header_preproc=yes
15291 ;;
15292 no:yes:* )
15293 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15294 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15295 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15296 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15297 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15298 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15299 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15300 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15301 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15302 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15303 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15304 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15305
15306 ;;
15307 esac
15308 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15309 $as_echo_n "checking for $ac_header... " >&6; }
15310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15311 $as_echo_n "(cached) " >&6
15312 else
15313 eval "$as_ac_Header=\$ac_header_preproc"
15314 fi
15315 ac_res=`eval 'as_val=${'$as_ac_Header'}
15316 $as_echo "$as_val"'`
15317 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15318 $as_echo "$ac_res" >&6; }
15319
15320 fi
15321 if test `eval 'as_val=${'$as_ac_Header'}
15322 $as_echo "$as_val"'` = yes; then
10072 cat >>confdefs.h <<_ACEOF 15323 cat >>confdefs.h <<_ACEOF
10073 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15324 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10074 _ACEOF 15325 _ACEOF
10075 15326
10076 fi 15327 fi
10077 15328
10078 done 15329 done
10079 15330
10080 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then 15331 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5 15332 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
10082 $as_echo_n "checking for png_get_channels in -lpng... " >&6; } 15333 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
10083 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then : 15334 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
10084 $as_echo_n "(cached) " >&6 15335 $as_echo_n "(cached) " >&6
10085 else 15336 else
10086 ac_check_lib_save_LIBS=$LIBS 15337 ac_check_lib_save_LIBS=$LIBS
10087 LIBS="-lpng -lz -lm $LIBS" 15338 LIBS="-lpng -lz -lm $LIBS"
10088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15339 cat >conftest.$ac_ext <<_ACEOF
15340 /* confdefs.h. */
15341 _ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
10089 /* end confdefs.h. */ 15344 /* end confdefs.h. */
10090 15345
10091 /* Override any GCC internal prototype to avoid an error. 15346 /* Override any GCC internal prototype to avoid an error.
10092 Use char because int might match the return type of a GCC 15347 Use char because int might match the return type of a GCC
10093 builtin and then its argument prototype would still apply. */ 15348 builtin and then its argument prototype would still apply. */
10101 return png_get_channels (); 15356 return png_get_channels ();
10102 ; 15357 ;
10103 return 0; 15358 return 0;
10104 } 15359 }
10105 _ACEOF 15360 _ACEOF
10106 if ac_fn_c_try_link "$LINENO"; then : 15361 rm -f conftest.$ac_objext conftest$ac_exeext
15362 if { (ac_try="$ac_link"
15363 case "(($ac_try" in
15364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15365 *) ac_try_echo=$ac_try;;
15366 esac
15367 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15368 $as_echo "$ac_try_echo") >&5
15369 (eval "$ac_link") 2>conftest.er1
15370 ac_status=$?
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
15374 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } && {
15376 test -z "$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15378 } && test -s conftest$ac_exeext && {
15379 test "$cross_compiling" = yes ||
15380 $as_test_x conftest$ac_exeext
15381 }; then
10107 ac_cv_lib_png_png_get_channels=yes 15382 ac_cv_lib_png_png_get_channels=yes
10108 else 15383 else
10109 ac_cv_lib_png_png_get_channels=no 15384 $as_echo "$as_me: failed program was:" >&5
10110 fi 15385 sed 's/^/| /' conftest.$ac_ext >&5
10111 rm -f core conftest.err conftest.$ac_objext \ 15386
10112 conftest$ac_exeext conftest.$ac_ext 15387 ac_cv_lib_png_png_get_channels=no
15388 fi
15389
15390 rm -rf conftest.dSYM
15391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15392 conftest$ac_exeext conftest.$ac_ext
10113 LIBS=$ac_check_lib_save_LIBS 15393 LIBS=$ac_check_lib_save_LIBS
10114 fi 15394 fi
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5 15395 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
10116 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; } 15396 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
10117 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then : 15397 if test $ac_cv_lib_png_png_get_channels = yes; then
10118 HAVE_PNG=yes 15398 HAVE_PNG=yes
10119 fi 15399 fi
10120 15400
10121 fi 15401 fi
10122 fi 15402 fi
10123 15403
10124 if test "${HAVE_PNG}" = "yes"; then 15404 if test "${HAVE_PNG}" = "yes"; then
10125 15405
10126 $as_echo "#define HAVE_PNG 1" >>confdefs.h 15406 cat >>confdefs.h <<\_ACEOF
15407 #define HAVE_PNG 1
15408 _ACEOF
10127 15409
10128 LIBPNG="-lpng -lz -lm" 15410 LIBPNG="-lpng -lz -lm"
10129 fi 15411 fi
10130 fi 15412 fi
10131 15413
10133 ### Use -ltiff if available, unless `--with-tiff=no'. 15415 ### Use -ltiff if available, unless `--with-tiff=no'.
10134 HAVE_TIFF=no 15416 HAVE_TIFF=no
10135 LIBTIFF= 15417 LIBTIFF=
10136 if test "${HAVE_X11}" = "yes"; then 15418 if test "${HAVE_X11}" = "yes"; then
10137 if test "${with_tiff}" != "no"; then 15419 if test "${with_tiff}" != "no"; then
10138 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default" 15420 if test "${ac_cv_header_tiffio_h+set}" = set; then
10139 if test "x$ac_cv_header_tiffio_h" = x""yes; then : 15421 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15422 $as_echo_n "checking for tiffio.h... " >&6; }
15423 if test "${ac_cv_header_tiffio_h+set}" = set; then
15424 $as_echo_n "(cached) " >&6
15425 fi
15426 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15427 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15428 else
15429 # Is the header compilable?
15430 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15431 $as_echo_n "checking tiffio.h usability... " >&6; }
15432 cat >conftest.$ac_ext <<_ACEOF
15433 /* confdefs.h. */
15434 _ACEOF
15435 cat confdefs.h >>conftest.$ac_ext
15436 cat >>conftest.$ac_ext <<_ACEOF
15437 /* end confdefs.h. */
15438 $ac_includes_default
15439 #include <tiffio.h>
15440 _ACEOF
15441 rm -f conftest.$ac_objext
15442 if { (ac_try="$ac_compile"
15443 case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15446 esac
15447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15448 $as_echo "$ac_try_echo") >&5
15449 (eval "$ac_compile") 2>conftest.er1
15450 ac_status=$?
15451 grep -v '^ *+' conftest.er1 >conftest.err
15452 rm -f conftest.er1
15453 cat conftest.err >&5
15454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } && {
15456 test -z "$ac_c_werror_flag" ||
15457 test ! -s conftest.err
15458 } && test -s conftest.$ac_objext; then
15459 ac_header_compiler=yes
15460 else
15461 $as_echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15463
15464 ac_header_compiler=no
15465 fi
15466
15467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15468 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15469 $as_echo "$ac_header_compiler" >&6; }
15470
15471 # Is the header present?
15472 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15473 $as_echo_n "checking tiffio.h presence... " >&6; }
15474 cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h. */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h. */
15480 #include <tiffio.h>
15481 _ACEOF
15482 if { (ac_try="$ac_cpp conftest.$ac_ext"
15483 case "(($ac_try" in
15484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15485 *) ac_try_echo=$ac_try;;
15486 esac
15487 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15488 $as_echo "$ac_try_echo") >&5
15489 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15490 ac_status=$?
15491 grep -v '^ *+' conftest.er1 >conftest.err
15492 rm -f conftest.er1
15493 cat conftest.err >&5
15494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15495 (exit $ac_status); } >/dev/null && {
15496 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15497 test ! -s conftest.err
15498 }; then
15499 ac_header_preproc=yes
15500 else
15501 $as_echo "$as_me: failed program was:" >&5
15502 sed 's/^/| /' conftest.$ac_ext >&5
15503
15504 ac_header_preproc=no
15505 fi
15506
15507 rm -f conftest.err conftest.$ac_ext
15508 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15509 $as_echo "$ac_header_preproc" >&6; }
15510
15511 # So? What about this header?
15512 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15513 yes:no: )
15514 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15515 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15516 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15517 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15518 ac_header_preproc=yes
15519 ;;
15520 no:yes:* )
15521 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15522 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15523 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15524 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15525 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15526 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15527 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15528 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15529 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15530 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15531 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15532 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15533
15534 ;;
15535 esac
15536 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15537 $as_echo_n "checking for tiffio.h... " >&6; }
15538 if test "${ac_cv_header_tiffio_h+set}" = set; then
15539 $as_echo_n "(cached) " >&6
15540 else
15541 ac_cv_header_tiffio_h=$ac_header_preproc
15542 fi
15543 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15544 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15545
15546 fi
15547 if test $ac_cv_header_tiffio_h = yes; then
10140 tifflibs="-lz -lm" 15548 tifflibs="-lz -lm"
10141 # At least one tiff package requires the jpeg library. 15549 # At least one tiff package requires the jpeg library.
10142 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 15550 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5 15551 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
10144 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } 15552 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
10145 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then : 15553 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
10146 $as_echo_n "(cached) " >&6 15554 $as_echo_n "(cached) " >&6
10147 else 15555 else
10148 ac_check_lib_save_LIBS=$LIBS 15556 ac_check_lib_save_LIBS=$LIBS
10149 LIBS="-ltiff $tifflibs $LIBS" 15557 LIBS="-ltiff $tifflibs $LIBS"
10150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15558 cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h. */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
10151 /* end confdefs.h. */ 15563 /* end confdefs.h. */
10152 15564
10153 /* Override any GCC internal prototype to avoid an error. 15565 /* Override any GCC internal prototype to avoid an error.
10154 Use char because int might match the return type of a GCC 15566 Use char because int might match the return type of a GCC
10155 builtin and then its argument prototype would still apply. */ 15567 builtin and then its argument prototype would still apply. */
10163 return TIFFGetVersion (); 15575 return TIFFGetVersion ();
10164 ; 15576 ;
10165 return 0; 15577 return 0;
10166 } 15578 }
10167 _ACEOF 15579 _ACEOF
10168 if ac_fn_c_try_link "$LINENO"; then : 15580 rm -f conftest.$ac_objext conftest$ac_exeext
15581 if { (ac_try="$ac_link"
15582 case "(($ac_try" in
15583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15585 esac
15586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15587 $as_echo "$ac_try_echo") >&5
15588 (eval "$ac_link") 2>conftest.er1
15589 ac_status=$?
15590 grep -v '^ *+' conftest.er1 >conftest.err
15591 rm -f conftest.er1
15592 cat conftest.err >&5
15593 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15594 (exit $ac_status); } && {
15595 test -z "$ac_c_werror_flag" ||
15596 test ! -s conftest.err
15597 } && test -s conftest$ac_exeext && {
15598 test "$cross_compiling" = yes ||
15599 $as_test_x conftest$ac_exeext
15600 }; then
10169 ac_cv_lib_tiff_TIFFGetVersion=yes 15601 ac_cv_lib_tiff_TIFFGetVersion=yes
10170 else 15602 else
10171 ac_cv_lib_tiff_TIFFGetVersion=no 15603 $as_echo "$as_me: failed program was:" >&5
10172 fi 15604 sed 's/^/| /' conftest.$ac_ext >&5
10173 rm -f core conftest.err conftest.$ac_objext \ 15605
10174 conftest$ac_exeext conftest.$ac_ext 15606 ac_cv_lib_tiff_TIFFGetVersion=no
15607 fi
15608
15609 rm -rf conftest.dSYM
15610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15611 conftest$ac_exeext conftest.$ac_ext
10175 LIBS=$ac_check_lib_save_LIBS 15612 LIBS=$ac_check_lib_save_LIBS
10176 fi 15613 fi
10177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 15614 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
10178 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } 15615 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
10179 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then : 15616 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
10180 HAVE_TIFF=yes 15617 HAVE_TIFF=yes
10181 fi 15618 fi
10182 15619
10183 fi 15620 fi
10184 15621
10185 15622
10186 fi 15623 fi
10187 15624
10188 if test "${HAVE_TIFF}" = "yes"; then 15625 if test "${HAVE_TIFF}" = "yes"; then
10189 15626
10190 $as_echo "#define HAVE_TIFF 1" >>confdefs.h 15627 cat >>confdefs.h <<\_ACEOF
15628 #define HAVE_TIFF 1
15629 _ACEOF
10191 15630
10192 LIBTIFF=-ltiff 15631 LIBTIFF=-ltiff
10193 fi 15632 fi
10194 fi 15633 fi
10195 15634
10196 15635
10197 ### Use -lgif or -lungif if available, unless `--with-gif=no'. 15636 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
10198 HAVE_GIF=no 15637 HAVE_GIF=no
10199 LIBGIF= 15638 LIBGIF=
10200 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then 15639 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
10201 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default" 15640 if test "${ac_cv_header_gif_lib_h+set}" = set; then
10202 if test "x$ac_cv_header_gif_lib_h" = x""yes; then : 15641 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15642 $as_echo_n "checking for gif_lib.h... " >&6; }
15643 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15644 $as_echo_n "(cached) " >&6
15645 fi
15646 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15647 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15648 else
15649 # Is the header compilable?
15650 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15651 $as_echo_n "checking gif_lib.h usability... " >&6; }
15652 cat >conftest.$ac_ext <<_ACEOF
15653 /* confdefs.h. */
15654 _ACEOF
15655 cat confdefs.h >>conftest.$ac_ext
15656 cat >>conftest.$ac_ext <<_ACEOF
15657 /* end confdefs.h. */
15658 $ac_includes_default
15659 #include <gif_lib.h>
15660 _ACEOF
15661 rm -f conftest.$ac_objext
15662 if { (ac_try="$ac_compile"
15663 case "(($ac_try" in
15664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15665 *) ac_try_echo=$ac_try;;
15666 esac
15667 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15668 $as_echo "$ac_try_echo") >&5
15669 (eval "$ac_compile") 2>conftest.er1
15670 ac_status=$?
15671 grep -v '^ *+' conftest.er1 >conftest.err
15672 rm -f conftest.er1
15673 cat conftest.err >&5
15674 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15675 (exit $ac_status); } && {
15676 test -z "$ac_c_werror_flag" ||
15677 test ! -s conftest.err
15678 } && test -s conftest.$ac_objext; then
15679 ac_header_compiler=yes
15680 else
15681 $as_echo "$as_me: failed program was:" >&5
15682 sed 's/^/| /' conftest.$ac_ext >&5
15683
15684 ac_header_compiler=no
15685 fi
15686
15687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15689 $as_echo "$ac_header_compiler" >&6; }
15690
15691 # Is the header present?
15692 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15693 $as_echo_n "checking gif_lib.h presence... " >&6; }
15694 cat >conftest.$ac_ext <<_ACEOF
15695 /* confdefs.h. */
15696 _ACEOF
15697 cat confdefs.h >>conftest.$ac_ext
15698 cat >>conftest.$ac_ext <<_ACEOF
15699 /* end confdefs.h. */
15700 #include <gif_lib.h>
15701 _ACEOF
15702 if { (ac_try="$ac_cpp conftest.$ac_ext"
15703 case "(($ac_try" in
15704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15705 *) ac_try_echo=$ac_try;;
15706 esac
15707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15708 $as_echo "$ac_try_echo") >&5
15709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15710 ac_status=$?
15711 grep -v '^ *+' conftest.er1 >conftest.err
15712 rm -f conftest.er1
15713 cat conftest.err >&5
15714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15715 (exit $ac_status); } >/dev/null && {
15716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15717 test ! -s conftest.err
15718 }; then
15719 ac_header_preproc=yes
15720 else
15721 $as_echo "$as_me: failed program was:" >&5
15722 sed 's/^/| /' conftest.$ac_ext >&5
15723
15724 ac_header_preproc=no
15725 fi
15726
15727 rm -f conftest.err conftest.$ac_ext
15728 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15729 $as_echo "$ac_header_preproc" >&6; }
15730
15731 # So? What about this header?
15732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15733 yes:no: )
15734 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15735 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15736 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15737 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15738 ac_header_preproc=yes
15739 ;;
15740 no:yes:* )
15741 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15742 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15743 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15744 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15745 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15746 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15747 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15748 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15749 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15750 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15751 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15752 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15753
15754 ;;
15755 esac
15756 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15757 $as_echo_n "checking for gif_lib.h... " >&6; }
15758 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15759 $as_echo_n "(cached) " >&6
15760 else
15761 ac_cv_header_gif_lib_h=$ac_header_preproc
15762 fi
15763 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15764 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15765
15766 fi
15767 if test $ac_cv_header_gif_lib_h = yes; then
10203 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. 15768 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
10204 # Earlier versions can crash Emacs. 15769 # Earlier versions can crash Emacs.
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5 15770 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
10206 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } 15771 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
10207 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then : 15772 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
10208 $as_echo_n "(cached) " >&6 15773 $as_echo_n "(cached) " >&6
10209 else 15774 else
10210 ac_check_lib_save_LIBS=$LIBS 15775 ac_check_lib_save_LIBS=$LIBS
10211 LIBS="-lgif $LIBS" 15776 LIBS="-lgif $LIBS"
10212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15777 cat >conftest.$ac_ext <<_ACEOF
15778 /* confdefs.h. */
15779 _ACEOF
15780 cat confdefs.h >>conftest.$ac_ext
15781 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h. */ 15782 /* end confdefs.h. */
10214 15783
10215 /* Override any GCC internal prototype to avoid an error. 15784 /* Override any GCC internal prototype to avoid an error.
10216 Use char because int might match the return type of a GCC 15785 Use char because int might match the return type of a GCC
10217 builtin and then its argument prototype would still apply. */ 15786 builtin and then its argument prototype would still apply. */
10225 return EGifPutExtensionLast (); 15794 return EGifPutExtensionLast ();
10226 ; 15795 ;
10227 return 0; 15796 return 0;
10228 } 15797 }
10229 _ACEOF 15798 _ACEOF
10230 if ac_fn_c_try_link "$LINENO"; then : 15799 rm -f conftest.$ac_objext conftest$ac_exeext
15800 if { (ac_try="$ac_link"
15801 case "(($ac_try" in
15802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15803 *) ac_try_echo=$ac_try;;
15804 esac
15805 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15806 $as_echo "$ac_try_echo") >&5
15807 (eval "$ac_link") 2>conftest.er1
15808 ac_status=$?
15809 grep -v '^ *+' conftest.er1 >conftest.err
15810 rm -f conftest.er1
15811 cat conftest.err >&5
15812 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15813 (exit $ac_status); } && {
15814 test -z "$ac_c_werror_flag" ||
15815 test ! -s conftest.err
15816 } && test -s conftest$ac_exeext && {
15817 test "$cross_compiling" = yes ||
15818 $as_test_x conftest$ac_exeext
15819 }; then
10231 ac_cv_lib_gif_EGifPutExtensionLast=yes 15820 ac_cv_lib_gif_EGifPutExtensionLast=yes
10232 else 15821 else
10233 ac_cv_lib_gif_EGifPutExtensionLast=no 15822 $as_echo "$as_me: failed program was:" >&5
10234 fi 15823 sed 's/^/| /' conftest.$ac_ext >&5
10235 rm -f core conftest.err conftest.$ac_objext \ 15824
10236 conftest$ac_exeext conftest.$ac_ext 15825 ac_cv_lib_gif_EGifPutExtensionLast=no
15826 fi
15827
15828 rm -rf conftest.dSYM
15829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15830 conftest$ac_exeext conftest.$ac_ext
10237 LIBS=$ac_check_lib_save_LIBS 15831 LIBS=$ac_check_lib_save_LIBS
10238 fi 15832 fi
10239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 15833 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
10240 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } 15834 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
10241 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then : 15835 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
10242 HAVE_GIF=yes 15836 HAVE_GIF=yes
10243 else 15837 else
10244 HAVE_GIF=maybe 15838 HAVE_GIF=maybe
10245 fi 15839 fi
10246 15840
10250 15844
10251 if test "$HAVE_GIF" = yes; then 15845 if test "$HAVE_GIF" = yes; then
10252 LIBGIF=-lgif 15846 LIBGIF=-lgif
10253 elif test "$HAVE_GIF" = maybe; then 15847 elif test "$HAVE_GIF" = maybe; then
10254 # If gif_lib.h but no libgif, try libungif. 15848 # If gif_lib.h but no libgif, try libungif.
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5 15849 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
10256 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } 15850 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
10257 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then : 15851 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
10258 $as_echo_n "(cached) " >&6 15852 $as_echo_n "(cached) " >&6
10259 else 15853 else
10260 ac_check_lib_save_LIBS=$LIBS 15854 ac_check_lib_save_LIBS=$LIBS
10261 LIBS="-lungif $LIBS" 15855 LIBS="-lungif $LIBS"
10262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15856 cat >conftest.$ac_ext <<_ACEOF
15857 /* confdefs.h. */
15858 _ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
10263 /* end confdefs.h. */ 15861 /* end confdefs.h. */
10264 15862
10265 /* Override any GCC internal prototype to avoid an error. 15863 /* Override any GCC internal prototype to avoid an error.
10266 Use char because int might match the return type of a GCC 15864 Use char because int might match the return type of a GCC
10267 builtin and then its argument prototype would still apply. */ 15865 builtin and then its argument prototype would still apply. */
10275 return EGifPutExtensionLast (); 15873 return EGifPutExtensionLast ();
10276 ; 15874 ;
10277 return 0; 15875 return 0;
10278 } 15876 }
10279 _ACEOF 15877 _ACEOF
10280 if ac_fn_c_try_link "$LINENO"; then : 15878 rm -f conftest.$ac_objext conftest$ac_exeext
15879 if { (ac_try="$ac_link"
15880 case "(($ac_try" in
15881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15882 *) ac_try_echo=$ac_try;;
15883 esac
15884 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15885 $as_echo "$ac_try_echo") >&5
15886 (eval "$ac_link") 2>conftest.er1
15887 ac_status=$?
15888 grep -v '^ *+' conftest.er1 >conftest.err
15889 rm -f conftest.er1
15890 cat conftest.err >&5
15891 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15892 (exit $ac_status); } && {
15893 test -z "$ac_c_werror_flag" ||
15894 test ! -s conftest.err
15895 } && test -s conftest$ac_exeext && {
15896 test "$cross_compiling" = yes ||
15897 $as_test_x conftest$ac_exeext
15898 }; then
10281 ac_cv_lib_ungif_EGifPutExtensionLast=yes 15899 ac_cv_lib_ungif_EGifPutExtensionLast=yes
10282 else 15900 else
10283 ac_cv_lib_ungif_EGifPutExtensionLast=no 15901 $as_echo "$as_me: failed program was:" >&5
10284 fi 15902 sed 's/^/| /' conftest.$ac_ext >&5
10285 rm -f core conftest.err conftest.$ac_objext \ 15903
10286 conftest$ac_exeext conftest.$ac_ext 15904 ac_cv_lib_ungif_EGifPutExtensionLast=no
15905 fi
15906
15907 rm -rf conftest.dSYM
15908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15909 conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_check_lib_save_LIBS 15910 LIBS=$ac_check_lib_save_LIBS
10288 fi 15911 fi
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 15912 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
10290 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } 15913 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
10291 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then : 15914 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
10292 HAVE_GIF=yes 15915 HAVE_GIF=yes
10293 else 15916 else
10294 HAVE_GIF=no 15917 HAVE_GIF=no
10295 fi 15918 fi
10296 15919
10297 test "$HAVE_GIF" = yes && LIBGIF=-lungif 15920 test "$HAVE_GIF" = yes && LIBGIF=-lungif
10298 fi 15921 fi
10299 15922
10300 if test "${HAVE_GIF}" = "yes"; then 15923 if test "${HAVE_GIF}" = "yes"; then
10301 15924
10302 $as_echo "#define HAVE_GIF 1" >>confdefs.h 15925 cat >>confdefs.h <<\_ACEOF
15926 #define HAVE_GIF 1
15927 _ACEOF
10303 15928
10304 fi 15929 fi
10305 fi 15930 fi
10306 15931
10307 15932
10318 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" 15943 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
10319 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && 15944 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
10320 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" 15945 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
10321 15946
10322 if test "X${MISSING}" != X; then 15947 if test "X${MISSING}" != X; then
10323 as_fn_error "The following required libraries were not found: 15948 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found:
10324 $MISSING 15949 $MISSING
10325 Maybe some development libraries/packages are missing? 15950 Maybe some development libraries/packages are missing?
10326 If you don't want to link with them give 15951 If you don't want to link with them give
10327 $WITH_NO 15952 $WITH_NO
10328 as options to configure" "$LINENO" 5 15953 as options to configure" >&5
15954 $as_echo "$as_me: error: The following required libraries were not found:
15955 $MISSING
15956 Maybe some development libraries/packages are missing?
15957 If you don't want to link with them give
15958 $WITH_NO
15959 as options to configure" >&2;}
15960 { (exit 1); exit 1; }; }
10329 fi 15961 fi
10330 fi 15962 fi
10331 15963
10332 ### Use -lgpm if available, unless `--with-gpm=no'. 15964 ### Use -lgpm if available, unless `--with-gpm=no'.
10333 HAVE_GPM=no 15965 HAVE_GPM=no
10334 LIBGPM= 15966 LIBGPM=
10335 GPM_MOUSE_SUPPORT= 15967 GPM_MOUSE_SUPPORT=
10336 if test "${with_gpm}" != "no"; then 15968 if test "${with_gpm}" != "no"; then
10337 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default" 15969 if test "${ac_cv_header_gpm_h+set}" = set; then
10338 if test "x$ac_cv_header_gpm_h" = x""yes; then : 15970 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
10339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5 15971 $as_echo_n "checking for gpm.h... " >&6; }
15972 if test "${ac_cv_header_gpm_h+set}" = set; then
15973 $as_echo_n "(cached) " >&6
15974 fi
15975 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15976 $as_echo "$ac_cv_header_gpm_h" >&6; }
15977 else
15978 # Is the header compilable?
15979 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15980 $as_echo_n "checking gpm.h usability... " >&6; }
15981 cat >conftest.$ac_ext <<_ACEOF
15982 /* confdefs.h. */
15983 _ACEOF
15984 cat confdefs.h >>conftest.$ac_ext
15985 cat >>conftest.$ac_ext <<_ACEOF
15986 /* end confdefs.h. */
15987 $ac_includes_default
15988 #include <gpm.h>
15989 _ACEOF
15990 rm -f conftest.$ac_objext
15991 if { (ac_try="$ac_compile"
15992 case "(($ac_try" in
15993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15994 *) ac_try_echo=$ac_try;;
15995 esac
15996 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15997 $as_echo "$ac_try_echo") >&5
15998 (eval "$ac_compile") 2>conftest.er1
15999 ac_status=$?
16000 grep -v '^ *+' conftest.er1 >conftest.err
16001 rm -f conftest.er1
16002 cat conftest.err >&5
16003 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16004 (exit $ac_status); } && {
16005 test -z "$ac_c_werror_flag" ||
16006 test ! -s conftest.err
16007 } && test -s conftest.$ac_objext; then
16008 ac_header_compiler=yes
16009 else
16010 $as_echo "$as_me: failed program was:" >&5
16011 sed 's/^/| /' conftest.$ac_ext >&5
16012
16013 ac_header_compiler=no
16014 fi
16015
16016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16017 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16018 $as_echo "$ac_header_compiler" >&6; }
16019
16020 # Is the header present?
16021 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
16022 $as_echo_n "checking gpm.h presence... " >&6; }
16023 cat >conftest.$ac_ext <<_ACEOF
16024 /* confdefs.h. */
16025 _ACEOF
16026 cat confdefs.h >>conftest.$ac_ext
16027 cat >>conftest.$ac_ext <<_ACEOF
16028 /* end confdefs.h. */
16029 #include <gpm.h>
16030 _ACEOF
16031 if { (ac_try="$ac_cpp conftest.$ac_ext"
16032 case "(($ac_try" in
16033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034 *) ac_try_echo=$ac_try;;
16035 esac
16036 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16037 $as_echo "$ac_try_echo") >&5
16038 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16039 ac_status=$?
16040 grep -v '^ *+' conftest.er1 >conftest.err
16041 rm -f conftest.er1
16042 cat conftest.err >&5
16043 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16044 (exit $ac_status); } >/dev/null && {
16045 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16046 test ! -s conftest.err
16047 }; then
16048 ac_header_preproc=yes
16049 else
16050 $as_echo "$as_me: failed program was:" >&5
16051 sed 's/^/| /' conftest.$ac_ext >&5
16052
16053 ac_header_preproc=no
16054 fi
16055
16056 rm -f conftest.err conftest.$ac_ext
16057 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16058 $as_echo "$ac_header_preproc" >&6; }
16059
16060 # So? What about this header?
16061 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16062 yes:no: )
16063 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
16064 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16065 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
16066 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
16067 ac_header_preproc=yes
16068 ;;
16069 no:yes:* )
16070 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
16071 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
16072 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
16073 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
16074 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
16075 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
16076 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
16077 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
16078 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
16079 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
16080 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
16081 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
16082
16083 ;;
16084 esac
16085 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
16086 $as_echo_n "checking for gpm.h... " >&6; }
16087 if test "${ac_cv_header_gpm_h+set}" = set; then
16088 $as_echo_n "(cached) " >&6
16089 else
16090 ac_cv_header_gpm_h=$ac_header_preproc
16091 fi
16092 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
16093 $as_echo "$ac_cv_header_gpm_h" >&6; }
16094
16095 fi
16096 if test $ac_cv_header_gpm_h = yes; then
16097 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
10340 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } 16098 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
10341 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then : 16099 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
10342 $as_echo_n "(cached) " >&6 16100 $as_echo_n "(cached) " >&6
10343 else 16101 else
10344 ac_check_lib_save_LIBS=$LIBS 16102 ac_check_lib_save_LIBS=$LIBS
10345 LIBS="-lgpm $LIBS" 16103 LIBS="-lgpm $LIBS"
10346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16104 cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h. */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
10347 /* end confdefs.h. */ 16109 /* end confdefs.h. */
10348 16110
10349 /* Override any GCC internal prototype to avoid an error. 16111 /* Override any GCC internal prototype to avoid an error.
10350 Use char because int might match the return type of a GCC 16112 Use char because int might match the return type of a GCC
10351 builtin and then its argument prototype would still apply. */ 16113 builtin and then its argument prototype would still apply. */
10359 return Gpm_Open (); 16121 return Gpm_Open ();
10360 ; 16122 ;
10361 return 0; 16123 return 0;
10362 } 16124 }
10363 _ACEOF 16125 _ACEOF
10364 if ac_fn_c_try_link "$LINENO"; then : 16126 rm -f conftest.$ac_objext conftest$ac_exeext
16127 if { (ac_try="$ac_link"
16128 case "(($ac_try" in
16129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16130 *) ac_try_echo=$ac_try;;
16131 esac
16132 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16133 $as_echo "$ac_try_echo") >&5
16134 (eval "$ac_link") 2>conftest.er1
16135 ac_status=$?
16136 grep -v '^ *+' conftest.er1 >conftest.err
16137 rm -f conftest.er1
16138 cat conftest.err >&5
16139 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16140 (exit $ac_status); } && {
16141 test -z "$ac_c_werror_flag" ||
16142 test ! -s conftest.err
16143 } && test -s conftest$ac_exeext && {
16144 test "$cross_compiling" = yes ||
16145 $as_test_x conftest$ac_exeext
16146 }; then
10365 ac_cv_lib_gpm_Gpm_Open=yes 16147 ac_cv_lib_gpm_Gpm_Open=yes
10366 else 16148 else
10367 ac_cv_lib_gpm_Gpm_Open=no 16149 $as_echo "$as_me: failed program was:" >&5
10368 fi 16150 sed 's/^/| /' conftest.$ac_ext >&5
10369 rm -f core conftest.err conftest.$ac_objext \ 16151
10370 conftest$ac_exeext conftest.$ac_ext 16152 ac_cv_lib_gpm_Gpm_Open=no
16153 fi
16154
16155 rm -rf conftest.dSYM
16156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16157 conftest$ac_exeext conftest.$ac_ext
10371 LIBS=$ac_check_lib_save_LIBS 16158 LIBS=$ac_check_lib_save_LIBS
10372 fi 16159 fi
10373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5 16160 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
10374 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } 16161 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
10375 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then : 16162 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
10376 HAVE_GPM=yes 16163 HAVE_GPM=yes
10377 fi 16164 fi
10378 16165
10379 fi 16166 fi
10380 16167
10381 16168
10382 16169
10383 if test "${HAVE_GPM}" = "yes"; then 16170 if test "${HAVE_GPM}" = "yes"; then
10384 16171
10385 $as_echo "#define HAVE_GPM 1" >>confdefs.h 16172 cat >>confdefs.h <<\_ACEOF
16173 #define HAVE_GPM 1
16174 _ACEOF
10386 16175
10387 LIBGPM=-lgpm 16176 LIBGPM=-lgpm
10388 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc" 16177 GPM_MOUSE_SUPPORT="\${lispsource}mouse.elc"
10389 fi 16178 fi
10390 fi 16179 fi
10391 16180
10392 16181
10393 16182
10394 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default" 16183 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
10395 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then : 16184 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
10396 16185 $as_echo_n "checking for malloc/malloc.h... " >&6; }
10397 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h 16186 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16187 $as_echo_n "(cached) " >&6
16188 fi
16189 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16190 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16191 else
16192 # Is the header compilable?
16193 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
16194 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
16195 cat >conftest.$ac_ext <<_ACEOF
16196 /* confdefs.h. */
16197 _ACEOF
16198 cat confdefs.h >>conftest.$ac_ext
16199 cat >>conftest.$ac_ext <<_ACEOF
16200 /* end confdefs.h. */
16201 $ac_includes_default
16202 #include <malloc/malloc.h>
16203 _ACEOF
16204 rm -f conftest.$ac_objext
16205 if { (ac_try="$ac_compile"
16206 case "(($ac_try" in
16207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16208 *) ac_try_echo=$ac_try;;
16209 esac
16210 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16211 $as_echo "$ac_try_echo") >&5
16212 (eval "$ac_compile") 2>conftest.er1
16213 ac_status=$?
16214 grep -v '^ *+' conftest.er1 >conftest.err
16215 rm -f conftest.er1
16216 cat conftest.err >&5
16217 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16218 (exit $ac_status); } && {
16219 test -z "$ac_c_werror_flag" ||
16220 test ! -s conftest.err
16221 } && test -s conftest.$ac_objext; then
16222 ac_header_compiler=yes
16223 else
16224 $as_echo "$as_me: failed program was:" >&5
16225 sed 's/^/| /' conftest.$ac_ext >&5
16226
16227 ac_header_compiler=no
16228 fi
16229
16230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16231 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16232 $as_echo "$ac_header_compiler" >&6; }
16233
16234 # Is the header present?
16235 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16236 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16237 cat >conftest.$ac_ext <<_ACEOF
16238 /* confdefs.h. */
16239 _ACEOF
16240 cat confdefs.h >>conftest.$ac_ext
16241 cat >>conftest.$ac_ext <<_ACEOF
16242 /* end confdefs.h. */
16243 #include <malloc/malloc.h>
16244 _ACEOF
16245 if { (ac_try="$ac_cpp conftest.$ac_ext"
16246 case "(($ac_try" in
16247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16248 *) ac_try_echo=$ac_try;;
16249 esac
16250 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16251 $as_echo "$ac_try_echo") >&5
16252 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16253 ac_status=$?
16254 grep -v '^ *+' conftest.er1 >conftest.err
16255 rm -f conftest.er1
16256 cat conftest.err >&5
16257 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16258 (exit $ac_status); } >/dev/null && {
16259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16260 test ! -s conftest.err
16261 }; then
16262 ac_header_preproc=yes
16263 else
16264 $as_echo "$as_me: failed program was:" >&5
16265 sed 's/^/| /' conftest.$ac_ext >&5
16266
16267 ac_header_preproc=no
16268 fi
16269
16270 rm -f conftest.err conftest.$ac_ext
16271 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16272 $as_echo "$ac_header_preproc" >&6; }
16273
16274 # So? What about this header?
16275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16276 yes:no: )
16277 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16278 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16279 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16280 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16281 ac_header_preproc=yes
16282 ;;
16283 no:yes:* )
16284 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16285 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16286 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16287 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16288 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16289 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16290 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16291 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16292 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16293 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16294 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16295 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16296
16297 ;;
16298 esac
16299 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16300 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16301 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16302 $as_echo_n "(cached) " >&6
16303 else
16304 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16305 fi
16306 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16307 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16308
16309 fi
16310 if test $ac_cv_header_malloc_malloc_h = yes; then
16311
16312 cat >>confdefs.h <<\_ACEOF
16313 #define HAVE_MALLOC_MALLOC_H 1
16314 _ACEOF
10398 16315
10399 fi 16316 fi
10400 16317
10401 16318
10402 16319
10403 C_SWITCH_X_SYSTEM= 16320 C_SWITCH_X_SYSTEM=
10404 ### Use NeXTstep API to implement GUI. 16321 ### Use NeXTstep API to implement GUI.
10405 if test "${HAVE_NS}" = "yes"; then 16322 if test "${HAVE_NS}" = "yes"; then
10406 16323
10407 $as_echo "#define HAVE_NS 1" >>confdefs.h 16324 cat >>confdefs.h <<\_ACEOF
16325 #define HAVE_NS 1
16326 _ACEOF
10408 16327
10409 if test "${NS_IMPL_COCOA}" = "yes"; then 16328 if test "${NS_IMPL_COCOA}" = "yes"; then
10410 16329
10411 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h 16330 cat >>confdefs.h <<\_ACEOF
16331 #define NS_IMPL_COCOA 1
16332 _ACEOF
10412 16333
10413 GNU_OBJC_CFLAGS= 16334 GNU_OBJC_CFLAGS=
10414 fi 16335 fi
10415 if test "${NS_IMPL_GNUSTEP}" = "yes"; then 16336 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
10416 16337
10417 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h 16338 cat >>confdefs.h <<\_ACEOF
16339 #define NS_IMPL_GNUSTEP 1
16340 _ACEOF
10418 16341
10419 # See also .m.o rule in Makefile.in */ 16342 # See also .m.o rule in Makefile.in */
10420 # FIXME: are all these flags really needed? Document here why. */ 16343 # FIXME: are all these flags really needed? Document here why. */
10421 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing" 16344 C_SWITCH_X_SYSTEM="-D_REENTRANT -fPIC -fno-strict-aliasing"
10422 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" 16345 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
10423 fi 16346 fi
10424 if test "${NS_HAVE_NSINTEGER}" = "yes"; then 16347 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
10425 16348
10426 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h 16349 cat >>confdefs.h <<\_ACEOF
16350 #define NS_HAVE_NSINTEGER 1
16351 _ACEOF
10427 16352
10428 fi 16353 fi
10429 # We also have mouse menus. 16354 # We also have mouse menus.
10430 HAVE_MENUS=yes 16355 HAVE_MENUS=yes
10431 OTHER_FILES=ns-app 16356 OTHER_FILES=ns-app
10434 16359
10435 ### Use session management (-lSM -lICE) if available 16360 ### Use session management (-lSM -lICE) if available
10436 HAVE_X_SM=no 16361 HAVE_X_SM=no
10437 LIBXSM= 16362 LIBXSM=
10438 if test "${HAVE_X11}" = "yes"; then 16363 if test "${HAVE_X11}" = "yes"; then
10439 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default" 16364 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
10440 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then : 16365 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5 16366 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16367 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16368 $as_echo_n "(cached) " >&6
16369 fi
16370 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16371 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16372 else
16373 # Is the header compilable?
16374 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16375 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16376 cat >conftest.$ac_ext <<_ACEOF
16377 /* confdefs.h. */
16378 _ACEOF
16379 cat confdefs.h >>conftest.$ac_ext
16380 cat >>conftest.$ac_ext <<_ACEOF
16381 /* end confdefs.h. */
16382 $ac_includes_default
16383 #include <X11/SM/SMlib.h>
16384 _ACEOF
16385 rm -f conftest.$ac_objext
16386 if { (ac_try="$ac_compile"
16387 case "(($ac_try" in
16388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16389 *) ac_try_echo=$ac_try;;
16390 esac
16391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16392 $as_echo "$ac_try_echo") >&5
16393 (eval "$ac_compile") 2>conftest.er1
16394 ac_status=$?
16395 grep -v '^ *+' conftest.er1 >conftest.err
16396 rm -f conftest.er1
16397 cat conftest.err >&5
16398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16399 (exit $ac_status); } && {
16400 test -z "$ac_c_werror_flag" ||
16401 test ! -s conftest.err
16402 } && test -s conftest.$ac_objext; then
16403 ac_header_compiler=yes
16404 else
16405 $as_echo "$as_me: failed program was:" >&5
16406 sed 's/^/| /' conftest.$ac_ext >&5
16407
16408 ac_header_compiler=no
16409 fi
16410
16411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16413 $as_echo "$ac_header_compiler" >&6; }
16414
16415 # Is the header present?
16416 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16417 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16418 cat >conftest.$ac_ext <<_ACEOF
16419 /* confdefs.h. */
16420 _ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16424 #include <X11/SM/SMlib.h>
16425 _ACEOF
16426 if { (ac_try="$ac_cpp conftest.$ac_ext"
16427 case "(($ac_try" in
16428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16429 *) ac_try_echo=$ac_try;;
16430 esac
16431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16432 $as_echo "$ac_try_echo") >&5
16433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16434 ac_status=$?
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
16438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } >/dev/null && {
16440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16441 test ! -s conftest.err
16442 }; then
16443 ac_header_preproc=yes
16444 else
16445 $as_echo "$as_me: failed program was:" >&5
16446 sed 's/^/| /' conftest.$ac_ext >&5
16447
16448 ac_header_preproc=no
16449 fi
16450
16451 rm -f conftest.err conftest.$ac_ext
16452 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16453 $as_echo "$ac_header_preproc" >&6; }
16454
16455 # So? What about this header?
16456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16457 yes:no: )
16458 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16459 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16460 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16461 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16462 ac_header_preproc=yes
16463 ;;
16464 no:yes:* )
16465 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16466 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16467 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16468 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16469 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16470 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16471 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16472 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16473 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16474 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16475 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16476 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16477
16478 ;;
16479 esac
16480 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16481 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16482 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16483 $as_echo_n "(cached) " >&6
16484 else
16485 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16486 fi
16487 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16488 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16489
16490 fi
16491 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16492 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
10442 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } 16493 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
10443 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then : 16494 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
10444 $as_echo_n "(cached) " >&6 16495 $as_echo_n "(cached) " >&6
10445 else 16496 else
10446 ac_check_lib_save_LIBS=$LIBS 16497 ac_check_lib_save_LIBS=$LIBS
10447 LIBS="-lSM -lICE $LIBS" 16498 LIBS="-lSM -lICE $LIBS"
10448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16499 cat >conftest.$ac_ext <<_ACEOF
16500 /* confdefs.h. */
16501 _ACEOF
16502 cat confdefs.h >>conftest.$ac_ext
16503 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */ 16504 /* end confdefs.h. */
10450 16505
10451 /* Override any GCC internal prototype to avoid an error. 16506 /* Override any GCC internal prototype to avoid an error.
10452 Use char because int might match the return type of a GCC 16507 Use char because int might match the return type of a GCC
10453 builtin and then its argument prototype would still apply. */ 16508 builtin and then its argument prototype would still apply. */
10461 return SmcOpenConnection (); 16516 return SmcOpenConnection ();
10462 ; 16517 ;
10463 return 0; 16518 return 0;
10464 } 16519 }
10465 _ACEOF 16520 _ACEOF
10466 if ac_fn_c_try_link "$LINENO"; then : 16521 rm -f conftest.$ac_objext conftest$ac_exeext
16522 if { (ac_try="$ac_link"
16523 case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16526 esac
16527 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16528 $as_echo "$ac_try_echo") >&5
16529 (eval "$ac_link") 2>conftest.er1
16530 ac_status=$?
16531 grep -v '^ *+' conftest.er1 >conftest.err
16532 rm -f conftest.er1
16533 cat conftest.err >&5
16534 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16535 (exit $ac_status); } && {
16536 test -z "$ac_c_werror_flag" ||
16537 test ! -s conftest.err
16538 } && test -s conftest$ac_exeext && {
16539 test "$cross_compiling" = yes ||
16540 $as_test_x conftest$ac_exeext
16541 }; then
10467 ac_cv_lib_SM_SmcOpenConnection=yes 16542 ac_cv_lib_SM_SmcOpenConnection=yes
10468 else 16543 else
10469 ac_cv_lib_SM_SmcOpenConnection=no 16544 $as_echo "$as_me: failed program was:" >&5
10470 fi 16545 sed 's/^/| /' conftest.$ac_ext >&5
10471 rm -f core conftest.err conftest.$ac_objext \ 16546
10472 conftest$ac_exeext conftest.$ac_ext 16547 ac_cv_lib_SM_SmcOpenConnection=no
16548 fi
16549
16550 rm -rf conftest.dSYM
16551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16552 conftest$ac_exeext conftest.$ac_ext
10473 LIBS=$ac_check_lib_save_LIBS 16553 LIBS=$ac_check_lib_save_LIBS
10474 fi 16554 fi
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 16555 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
10476 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } 16556 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
10477 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then : 16557 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
10478 HAVE_X_SM=yes 16558 HAVE_X_SM=yes
10479 fi 16559 fi
10480 16560
10481 fi 16561 fi
10482 16562
10483 16563
10484 16564
10485 if test "${HAVE_X_SM}" = "yes"; then 16565 if test "${HAVE_X_SM}" = "yes"; then
10486 16566
10487 $as_echo "#define HAVE_X_SM 1" >>confdefs.h 16567 cat >>confdefs.h <<\_ACEOF
16568 #define HAVE_X_SM 1
16569 _ACEOF
10488 16570
10489 LIBXSM="-lSM -lICE" 16571 LIBXSM="-lSM -lICE"
10490 case "$LIBS" in 16572 case "$LIBS" in
10491 *-lSM*) ;; 16573 *-lSM*) ;;
10492 *) LIBS="$LIBXSM $LIBS" ;; 16574 *) LIBS="$LIBXSM $LIBS" ;;
10494 fi 16576 fi
10495 fi 16577 fi
10496 16578
10497 16579
10498 # If netdb.h doesn't declare h_errno, we must declare it by hand. 16580 # If netdb.h doesn't declare h_errno, we must declare it by hand.
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5 16581 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
10500 $as_echo_n "checking whether netdb declares h_errno... " >&6; } 16582 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
10501 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then : 16583 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
10502 $as_echo_n "(cached) " >&6 16584 $as_echo_n "(cached) " >&6
10503 else 16585 else
10504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16586 cat >conftest.$ac_ext <<_ACEOF
16587 /* confdefs.h. */
16588 _ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */ 16591 /* end confdefs.h. */
10506 #include <netdb.h> 16592 #include <netdb.h>
10507 int 16593 int
10508 main () 16594 main ()
10509 { 16595 {
10510 return h_errno; 16596 return h_errno;
10511 ; 16597 ;
10512 return 0; 16598 return 0;
10513 } 16599 }
10514 _ACEOF 16600 _ACEOF
10515 if ac_fn_c_try_link "$LINENO"; then : 16601 rm -f conftest.$ac_objext conftest$ac_exeext
16602 if { (ac_try="$ac_link"
16603 case "(($ac_try" in
16604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16605 *) ac_try_echo=$ac_try;;
16606 esac
16607 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16608 $as_echo "$ac_try_echo") >&5
16609 (eval "$ac_link") 2>conftest.er1
16610 ac_status=$?
16611 grep -v '^ *+' conftest.er1 >conftest.err
16612 rm -f conftest.er1
16613 cat conftest.err >&5
16614 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16615 (exit $ac_status); } && {
16616 test -z "$ac_c_werror_flag" ||
16617 test ! -s conftest.err
16618 } && test -s conftest$ac_exeext && {
16619 test "$cross_compiling" = yes ||
16620 $as_test_x conftest$ac_exeext
16621 }; then
10516 emacs_cv_netdb_declares_h_errno=yes 16622 emacs_cv_netdb_declares_h_errno=yes
10517 else 16623 else
10518 emacs_cv_netdb_declares_h_errno=no 16624 $as_echo "$as_me: failed program was:" >&5
10519 fi 16625 sed 's/^/| /' conftest.$ac_ext >&5
10520 rm -f core conftest.err conftest.$ac_objext \ 16626
10521 conftest$ac_exeext conftest.$ac_ext 16627 emacs_cv_netdb_declares_h_errno=no
10522 fi 16628 fi
10523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5 16629
16630 rm -rf conftest.dSYM
16631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16632 conftest$ac_exeext conftest.$ac_ext
16633 fi
16634 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
10524 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } 16635 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
10525 if test $emacs_cv_netdb_declares_h_errno = yes; then 16636 if test $emacs_cv_netdb_declares_h_errno = yes; then
10526 16637
10527 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h 16638 cat >>confdefs.h <<\_ACEOF
16639 #define HAVE_H_ERRNO 1
16640 _ACEOF
10528 16641
10529 fi 16642 fi
10530 16643
10531 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 16644 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
10532 # for constant arguments. Useless! 16645 # for constant arguments. Useless!
10533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 16646 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5
10534 $as_echo_n "checking for working alloca.h... " >&6; } 16647 $as_echo_n "checking for working alloca.h... " >&6; }
10535 if test "${ac_cv_working_alloca_h+set}" = set; then : 16648 if test "${ac_cv_working_alloca_h+set}" = set; then
10536 $as_echo_n "(cached) " >&6 16649 $as_echo_n "(cached) " >&6
10537 else 16650 else
10538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16651 cat >conftest.$ac_ext <<_ACEOF
16652 /* confdefs.h. */
16653 _ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
10539 /* end confdefs.h. */ 16656 /* end confdefs.h. */
10540 #include <alloca.h> 16657 #include <alloca.h>
10541 int 16658 int
10542 main () 16659 main ()
10543 { 16660 {
10545 if (p) return 0; 16662 if (p) return 0;
10546 ; 16663 ;
10547 return 0; 16664 return 0;
10548 } 16665 }
10549 _ACEOF 16666 _ACEOF
10550 if ac_fn_c_try_link "$LINENO"; then : 16667 rm -f conftest.$ac_objext conftest$ac_exeext
16668 if { (ac_try="$ac_link"
16669 case "(($ac_try" in
16670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16671 *) ac_try_echo=$ac_try;;
16672 esac
16673 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16674 $as_echo "$ac_try_echo") >&5
16675 (eval "$ac_link") 2>conftest.er1
16676 ac_status=$?
16677 grep -v '^ *+' conftest.er1 >conftest.err
16678 rm -f conftest.er1
16679 cat conftest.err >&5
16680 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16681 (exit $ac_status); } && {
16682 test -z "$ac_c_werror_flag" ||
16683 test ! -s conftest.err
16684 } && test -s conftest$ac_exeext && {
16685 test "$cross_compiling" = yes ||
16686 $as_test_x conftest$ac_exeext
16687 }; then
10551 ac_cv_working_alloca_h=yes 16688 ac_cv_working_alloca_h=yes
10552 else 16689 else
10553 ac_cv_working_alloca_h=no 16690 $as_echo "$as_me: failed program was:" >&5
10554 fi 16691 sed 's/^/| /' conftest.$ac_ext >&5
10555 rm -f core conftest.err conftest.$ac_objext \ 16692
10556 conftest$ac_exeext conftest.$ac_ext 16693 ac_cv_working_alloca_h=no
10557 fi 16694 fi
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 16695
16696 rm -rf conftest.dSYM
16697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16698 conftest$ac_exeext conftest.$ac_ext
16699 fi
16700 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
10559 $as_echo "$ac_cv_working_alloca_h" >&6; } 16701 $as_echo "$ac_cv_working_alloca_h" >&6; }
10560 if test $ac_cv_working_alloca_h = yes; then 16702 if test $ac_cv_working_alloca_h = yes; then
10561 16703
10562 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 16704 cat >>confdefs.h <<\_ACEOF
10563 16705 #define HAVE_ALLOCA_H 1
10564 fi 16706 _ACEOF
10565 16707
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 16708 fi
16709
16710 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
10567 $as_echo_n "checking for alloca... " >&6; } 16711 $as_echo_n "checking for alloca... " >&6; }
10568 if test "${ac_cv_func_alloca_works+set}" = set; then : 16712 if test "${ac_cv_func_alloca_works+set}" = set; then
10569 $as_echo_n "(cached) " >&6 16713 $as_echo_n "(cached) " >&6
10570 else 16714 else
10571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16715 cat >conftest.$ac_ext <<_ACEOF
16716 /* confdefs.h. */
16717 _ACEOF
16718 cat confdefs.h >>conftest.$ac_ext
16719 cat >>conftest.$ac_ext <<_ACEOF
10572 /* end confdefs.h. */ 16720 /* end confdefs.h. */
10573 #ifdef __GNUC__ 16721 #ifdef __GNUC__
10574 # define alloca __builtin_alloca 16722 # define alloca __builtin_alloca
10575 #else 16723 #else
10576 # ifdef _MSC_VER 16724 # ifdef _MSC_VER
10598 if (p) return 0; 16746 if (p) return 0;
10599 ; 16747 ;
10600 return 0; 16748 return 0;
10601 } 16749 }
10602 _ACEOF 16750 _ACEOF
10603 if ac_fn_c_try_link "$LINENO"; then : 16751 rm -f conftest.$ac_objext conftest$ac_exeext
16752 if { (ac_try="$ac_link"
16753 case "(($ac_try" in
16754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16755 *) ac_try_echo=$ac_try;;
16756 esac
16757 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16758 $as_echo "$ac_try_echo") >&5
16759 (eval "$ac_link") 2>conftest.er1
16760 ac_status=$?
16761 grep -v '^ *+' conftest.er1 >conftest.err
16762 rm -f conftest.er1
16763 cat conftest.err >&5
16764 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16765 (exit $ac_status); } && {
16766 test -z "$ac_c_werror_flag" ||
16767 test ! -s conftest.err
16768 } && test -s conftest$ac_exeext && {
16769 test "$cross_compiling" = yes ||
16770 $as_test_x conftest$ac_exeext
16771 }; then
10604 ac_cv_func_alloca_works=yes 16772 ac_cv_func_alloca_works=yes
10605 else 16773 else
10606 ac_cv_func_alloca_works=no 16774 $as_echo "$as_me: failed program was:" >&5
10607 fi 16775 sed 's/^/| /' conftest.$ac_ext >&5
10608 rm -f core conftest.err conftest.$ac_objext \ 16776
10609 conftest$ac_exeext conftest.$ac_ext 16777 ac_cv_func_alloca_works=no
10610 fi 16778 fi
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 16779
16780 rm -rf conftest.dSYM
16781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16782 conftest$ac_exeext conftest.$ac_ext
16783 fi
16784 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
10612 $as_echo "$ac_cv_func_alloca_works" >&6; } 16785 $as_echo "$ac_cv_func_alloca_works" >&6; }
10613 16786
10614 if test $ac_cv_func_alloca_works = yes; then 16787 if test $ac_cv_func_alloca_works = yes; then
10615 16788
10616 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 16789 cat >>confdefs.h <<\_ACEOF
16790 #define HAVE_ALLOCA 1
16791 _ACEOF
10617 16792
10618 else 16793 else
10619 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 16794 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
10620 # that cause trouble. Some versions do not even contain alloca or 16795 # that cause trouble. Some versions do not even contain alloca or
10621 # contain a buggy version. If you still want to use their alloca, 16796 # contain a buggy version. If you still want to use their alloca,
10622 # use ar to extract alloca.o from them instead of compiling alloca.c. 16797 # use ar to extract alloca.o from them instead of compiling alloca.c.
10623 16798
10624 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 16799 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
10625 16800
10626 $as_echo "#define C_ALLOCA 1" >>confdefs.h 16801 cat >>confdefs.h <<\_ACEOF
10627 16802 #define C_ALLOCA 1
10628 16803 _ACEOF
10629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 16804
16805
16806 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
10630 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 16807 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
10631 if test "${ac_cv_os_cray+set}" = set; then : 16808 if test "${ac_cv_os_cray+set}" = set; then
10632 $as_echo_n "(cached) " >&6 16809 $as_echo_n "(cached) " >&6
10633 else 16810 else
10634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16811 cat >conftest.$ac_ext <<_ACEOF
16812 /* confdefs.h. */
16813 _ACEOF
16814 cat confdefs.h >>conftest.$ac_ext
16815 cat >>conftest.$ac_ext <<_ACEOF
10635 /* end confdefs.h. */ 16816 /* end confdefs.h. */
10636 #if defined CRAY && ! defined CRAY2 16817 #if defined CRAY && ! defined CRAY2
10637 webecray 16818 webecray
10638 #else 16819 #else
10639 wenotbecray 16820 wenotbecray
10640 #endif 16821 #endif
10641 16822
10642 _ACEOF 16823 _ACEOF
10643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 16824 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10644 $EGREP "webecray" >/dev/null 2>&1; then : 16825 $EGREP "webecray" >/dev/null 2>&1; then
10645 ac_cv_os_cray=yes 16826 ac_cv_os_cray=yes
10646 else 16827 else
10647 ac_cv_os_cray=no 16828 ac_cv_os_cray=no
10648 fi 16829 fi
10649 rm -f conftest* 16830 rm -f conftest*
10650 16831
10651 fi 16832 fi
10652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 16833 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
10653 $as_echo "$ac_cv_os_cray" >&6; } 16834 $as_echo "$ac_cv_os_cray" >&6; }
10654 if test $ac_cv_os_cray = yes; then 16835 if test $ac_cv_os_cray = yes; then
10655 for ac_func in _getb67 GETB67 getb67; do 16836 for ac_func in _getb67 GETB67 getb67; do
10656 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 16837 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10657 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 16838 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10658 eval as_val=\$$as_ac_var 16839 $as_echo_n "checking for $ac_func... " >&6; }
10659 if test "x$as_val" = x""yes; then : 16840 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16841 $as_echo_n "(cached) " >&6
16842 else
16843 cat >conftest.$ac_ext <<_ACEOF
16844 /* confdefs.h. */
16845 _ACEOF
16846 cat confdefs.h >>conftest.$ac_ext
16847 cat >>conftest.$ac_ext <<_ACEOF
16848 /* end confdefs.h. */
16849 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16850 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16851 #define $ac_func innocuous_$ac_func
16852
16853 /* System header to define __stub macros and hopefully few prototypes,
16854 which can conflict with char $ac_func (); below.
16855 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16856 <limits.h> exists even on freestanding compilers. */
16857
16858 #ifdef __STDC__
16859 # include <limits.h>
16860 #else
16861 # include <assert.h>
16862 #endif
16863
16864 #undef $ac_func
16865
16866 /* Override any GCC internal prototype to avoid an error.
16867 Use char because int might match the return type of a GCC
16868 builtin and then its argument prototype would still apply. */
16869 #ifdef __cplusplus
16870 extern "C"
16871 #endif
16872 char $ac_func ();
16873 /* The GNU C library defines this for functions which it implements
16874 to always fail with ENOSYS. Some functions are actually named
16875 something starting with __ and the normal name is an alias. */
16876 #if defined __stub_$ac_func || defined __stub___$ac_func
16877 choke me
16878 #endif
16879
16880 int
16881 main ()
16882 {
16883 return $ac_func ();
16884 ;
16885 return 0;
16886 }
16887 _ACEOF
16888 rm -f conftest.$ac_objext conftest$ac_exeext
16889 if { (ac_try="$ac_link"
16890 case "(($ac_try" in
16891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16892 *) ac_try_echo=$ac_try;;
16893 esac
16894 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16895 $as_echo "$ac_try_echo") >&5
16896 (eval "$ac_link") 2>conftest.er1
16897 ac_status=$?
16898 grep -v '^ *+' conftest.er1 >conftest.err
16899 rm -f conftest.er1
16900 cat conftest.err >&5
16901 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16902 (exit $ac_status); } && {
16903 test -z "$ac_c_werror_flag" ||
16904 test ! -s conftest.err
16905 } && test -s conftest$ac_exeext && {
16906 test "$cross_compiling" = yes ||
16907 $as_test_x conftest$ac_exeext
16908 }; then
16909 eval "$as_ac_var=yes"
16910 else
16911 $as_echo "$as_me: failed program was:" >&5
16912 sed 's/^/| /' conftest.$ac_ext >&5
16913
16914 eval "$as_ac_var=no"
16915 fi
16916
16917 rm -rf conftest.dSYM
16918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16919 conftest$ac_exeext conftest.$ac_ext
16920 fi
16921 ac_res=`eval 'as_val=${'$as_ac_var'}
16922 $as_echo "$as_val"'`
16923 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16924 $as_echo "$ac_res" >&6; }
16925 if test `eval 'as_val=${'$as_ac_var'}
16926 $as_echo "$as_val"'` = yes; then
10660 16927
10661 cat >>confdefs.h <<_ACEOF 16928 cat >>confdefs.h <<_ACEOF
10662 #define CRAY_STACKSEG_END $ac_func 16929 #define CRAY_STACKSEG_END $ac_func
10663 _ACEOF 16930 _ACEOF
10664 16931
10666 fi 16933 fi
10667 16934
10668 done 16935 done
10669 fi 16936 fi
10670 16937
10671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 16938 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
10672 $as_echo_n "checking stack direction for C alloca... " >&6; } 16939 $as_echo_n "checking stack direction for C alloca... " >&6; }
10673 if test "${ac_cv_c_stack_direction+set}" = set; then : 16940 if test "${ac_cv_c_stack_direction+set}" = set; then
10674 $as_echo_n "(cached) " >&6 16941 $as_echo_n "(cached) " >&6
10675 else 16942 else
10676 if test "$cross_compiling" = yes; then : 16943 if test "$cross_compiling" = yes; then
10677 ac_cv_c_stack_direction=0 16944 ac_cv_c_stack_direction=0
10678 else 16945 else
10679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16946 cat >conftest.$ac_ext <<_ACEOF
16947 /* confdefs.h. */
16948 _ACEOF
16949 cat confdefs.h >>conftest.$ac_ext
16950 cat >>conftest.$ac_ext <<_ACEOF
10680 /* end confdefs.h. */ 16951 /* end confdefs.h. */
10681 $ac_includes_default 16952 $ac_includes_default
10682 int 16953 int
10683 find_stack_direction () 16954 find_stack_direction ()
10684 { 16955 {
10697 main () 16968 main ()
10698 { 16969 {
10699 return find_stack_direction () < 0; 16970 return find_stack_direction () < 0;
10700 } 16971 }
10701 _ACEOF 16972 _ACEOF
10702 if ac_fn_c_try_run "$LINENO"; then : 16973 rm -f conftest$ac_exeext
16974 if { (ac_try="$ac_link"
16975 case "(($ac_try" in
16976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16977 *) ac_try_echo=$ac_try;;
16978 esac
16979 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16980 $as_echo "$ac_try_echo") >&5
16981 (eval "$ac_link") 2>&5
16982 ac_status=$?
16983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16985 { (case "(($ac_try" in
16986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16987 *) ac_try_echo=$ac_try;;
16988 esac
16989 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16990 $as_echo "$ac_try_echo") >&5
16991 (eval "$ac_try") 2>&5
16992 ac_status=$?
16993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16994 (exit $ac_status); }; }; then
10703 ac_cv_c_stack_direction=1 16995 ac_cv_c_stack_direction=1
10704 else 16996 else
10705 ac_cv_c_stack_direction=-1 16997 $as_echo "$as_me: program exited with status $ac_status" >&5
10706 fi 16998 $as_echo "$as_me: failed program was:" >&5
10707 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 16999 sed 's/^/| /' conftest.$ac_ext >&5
10708 conftest.$ac_objext conftest.beam conftest.$ac_ext 17000
10709 fi 17001 ( exit $ac_status )
10710 17002 ac_cv_c_stack_direction=-1
10711 fi 17003 fi
10712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 17004 rm -rf conftest.dSYM
17005 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17006 fi
17007
17008
17009 fi
17010 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
10713 $as_echo "$ac_cv_c_stack_direction" >&6; } 17011 $as_echo "$ac_cv_c_stack_direction" >&6; }
17012
10714 cat >>confdefs.h <<_ACEOF 17013 cat >>confdefs.h <<_ACEOF
10715 #define STACK_DIRECTION $ac_cv_c_stack_direction 17014 #define STACK_DIRECTION $ac_cv_c_stack_direction
10716 _ACEOF 17015 _ACEOF
10717 17016
10718 17017
10719 fi 17018 fi
10720 17019
10721 17020
10722 if test x"$ac_cv_func_alloca_works" != xyes; then 17021 if test x"$ac_cv_func_alloca_works" != xyes; then
10723 as_fn_error "a system implementation of alloca is required " "$LINENO" 5 17022 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
17023 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
17024 { (exit 1); exit 1; }; }
10724 fi 17025 fi
10725 17026
10726 # fmod, logb, and frexp are found in -lm on most systems. 17027 # fmod, logb, and frexp are found in -lm on most systems.
10727 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 17028 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
10728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5 17029
17030 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
10729 $as_echo_n "checking for sqrt in -lm... " >&6; } 17031 $as_echo_n "checking for sqrt in -lm... " >&6; }
10730 if test "${ac_cv_lib_m_sqrt+set}" = set; then : 17032 if test "${ac_cv_lib_m_sqrt+set}" = set; then
10731 $as_echo_n "(cached) " >&6 17033 $as_echo_n "(cached) " >&6
10732 else 17034 else
10733 ac_check_lib_save_LIBS=$LIBS 17035 ac_check_lib_save_LIBS=$LIBS
10734 LIBS="-lm $LIBS" 17036 LIBS="-lm $LIBS"
10735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17037 cat >conftest.$ac_ext <<_ACEOF
17038 /* confdefs.h. */
17039 _ACEOF
17040 cat confdefs.h >>conftest.$ac_ext
17041 cat >>conftest.$ac_ext <<_ACEOF
10736 /* end confdefs.h. */ 17042 /* end confdefs.h. */
10737 17043
10738 /* Override any GCC internal prototype to avoid an error. 17044 /* Override any GCC internal prototype to avoid an error.
10739 Use char because int might match the return type of a GCC 17045 Use char because int might match the return type of a GCC
10740 builtin and then its argument prototype would still apply. */ 17046 builtin and then its argument prototype would still apply. */
10748 return sqrt (); 17054 return sqrt ();
10749 ; 17055 ;
10750 return 0; 17056 return 0;
10751 } 17057 }
10752 _ACEOF 17058 _ACEOF
10753 if ac_fn_c_try_link "$LINENO"; then : 17059 rm -f conftest.$ac_objext conftest$ac_exeext
17060 if { (ac_try="$ac_link"
17061 case "(($ac_try" in
17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063 *) ac_try_echo=$ac_try;;
17064 esac
17065 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17066 $as_echo "$ac_try_echo") >&5
17067 (eval "$ac_link") 2>conftest.er1
17068 ac_status=$?
17069 grep -v '^ *+' conftest.er1 >conftest.err
17070 rm -f conftest.er1
17071 cat conftest.err >&5
17072 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17073 (exit $ac_status); } && {
17074 test -z "$ac_c_werror_flag" ||
17075 test ! -s conftest.err
17076 } && test -s conftest$ac_exeext && {
17077 test "$cross_compiling" = yes ||
17078 $as_test_x conftest$ac_exeext
17079 }; then
10754 ac_cv_lib_m_sqrt=yes 17080 ac_cv_lib_m_sqrt=yes
10755 else 17081 else
10756 ac_cv_lib_m_sqrt=no 17082 $as_echo "$as_me: failed program was:" >&5
10757 fi 17083 sed 's/^/| /' conftest.$ac_ext >&5
10758 rm -f core conftest.err conftest.$ac_objext \ 17084
10759 conftest$ac_exeext conftest.$ac_ext 17085 ac_cv_lib_m_sqrt=no
17086 fi
17087
17088 rm -rf conftest.dSYM
17089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17090 conftest$ac_exeext conftest.$ac_ext
10760 LIBS=$ac_check_lib_save_LIBS 17091 LIBS=$ac_check_lib_save_LIBS
10761 fi 17092 fi
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5 17093 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
10763 $as_echo "$ac_cv_lib_m_sqrt" >&6; } 17094 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
10764 if test "x$ac_cv_lib_m_sqrt" = x""yes; then : 17095 if test $ac_cv_lib_m_sqrt = yes; then
10765 cat >>confdefs.h <<_ACEOF 17096 cat >>confdefs.h <<_ACEOF
10766 #define HAVE_LIBM 1 17097 #define HAVE_LIBM 1
10767 _ACEOF 17098 _ACEOF
10768 17099
10769 LIBS="-lm $LIBS" 17100 LIBS="-lm $LIBS"
10771 fi 17102 fi
10772 17103
10773 17104
10774 # Check for mail-locking functions in a "mail" library. Probably this should 17105 # Check for mail-locking functions in a "mail" library. Probably this should
10775 # have the same check as for liblockfile below. 17106 # have the same check as for liblockfile below.
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5 17107 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
10777 $as_echo_n "checking for maillock in -lmail... " >&6; } 17108 $as_echo_n "checking for maillock in -lmail... " >&6; }
10778 if test "${ac_cv_lib_mail_maillock+set}" = set; then : 17109 if test "${ac_cv_lib_mail_maillock+set}" = set; then
10779 $as_echo_n "(cached) " >&6 17110 $as_echo_n "(cached) " >&6
10780 else 17111 else
10781 ac_check_lib_save_LIBS=$LIBS 17112 ac_check_lib_save_LIBS=$LIBS
10782 LIBS="-lmail $LIBS" 17113 LIBS="-lmail $LIBS"
10783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17114 cat >conftest.$ac_ext <<_ACEOF
17115 /* confdefs.h. */
17116 _ACEOF
17117 cat confdefs.h >>conftest.$ac_ext
17118 cat >>conftest.$ac_ext <<_ACEOF
10784 /* end confdefs.h. */ 17119 /* end confdefs.h. */
10785 17120
10786 /* Override any GCC internal prototype to avoid an error. 17121 /* Override any GCC internal prototype to avoid an error.
10787 Use char because int might match the return type of a GCC 17122 Use char because int might match the return type of a GCC
10788 builtin and then its argument prototype would still apply. */ 17123 builtin and then its argument prototype would still apply. */
10796 return maillock (); 17131 return maillock ();
10797 ; 17132 ;
10798 return 0; 17133 return 0;
10799 } 17134 }
10800 _ACEOF 17135 _ACEOF
10801 if ac_fn_c_try_link "$LINENO"; then : 17136 rm -f conftest.$ac_objext conftest$ac_exeext
17137 if { (ac_try="$ac_link"
17138 case "(($ac_try" in
17139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17140 *) ac_try_echo=$ac_try;;
17141 esac
17142 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17143 $as_echo "$ac_try_echo") >&5
17144 (eval "$ac_link") 2>conftest.er1
17145 ac_status=$?
17146 grep -v '^ *+' conftest.er1 >conftest.err
17147 rm -f conftest.er1
17148 cat conftest.err >&5
17149 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17150 (exit $ac_status); } && {
17151 test -z "$ac_c_werror_flag" ||
17152 test ! -s conftest.err
17153 } && test -s conftest$ac_exeext && {
17154 test "$cross_compiling" = yes ||
17155 $as_test_x conftest$ac_exeext
17156 }; then
10802 ac_cv_lib_mail_maillock=yes 17157 ac_cv_lib_mail_maillock=yes
10803 else 17158 else
10804 ac_cv_lib_mail_maillock=no 17159 $as_echo "$as_me: failed program was:" >&5
10805 fi 17160 sed 's/^/| /' conftest.$ac_ext >&5
10806 rm -f core conftest.err conftest.$ac_objext \ 17161
10807 conftest$ac_exeext conftest.$ac_ext 17162 ac_cv_lib_mail_maillock=no
17163 fi
17164
17165 rm -rf conftest.dSYM
17166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17167 conftest$ac_exeext conftest.$ac_ext
10808 LIBS=$ac_check_lib_save_LIBS 17168 LIBS=$ac_check_lib_save_LIBS
10809 fi 17169 fi
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5 17170 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
10811 $as_echo "$ac_cv_lib_mail_maillock" >&6; } 17171 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
10812 if test "x$ac_cv_lib_mail_maillock" = x""yes; then : 17172 if test $ac_cv_lib_mail_maillock = yes; then
10813 have_mail=yes 17173 have_mail=yes
10814 else 17174 else
10815 have_mail=no 17175 have_mail=no
10816 fi 17176 fi
10817 17177
10818 if test $have_mail = yes; then 17178 if test $have_mail = yes; then
10819 LIBS_MAIL=-lmail 17179 LIBS_MAIL=-lmail
10820 LIBS="$LIBS_MAIL $LIBS" 17180 LIBS="$LIBS_MAIL $LIBS"
10821 17181
10822 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h 17182 cat >>confdefs.h <<\_ACEOF
17183 #define HAVE_LIBMAIL 1
17184 _ACEOF
10823 17185
10824 else 17186 else
10825 LIBS_MAIL= 17187 LIBS_MAIL=
10826 fi 17188 fi
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5 17189 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
10828 $as_echo_n "checking for maillock in -llockfile... " >&6; } 17190 $as_echo_n "checking for maillock in -llockfile... " >&6; }
10829 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then : 17191 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
10830 $as_echo_n "(cached) " >&6 17192 $as_echo_n "(cached) " >&6
10831 else 17193 else
10832 ac_check_lib_save_LIBS=$LIBS 17194 ac_check_lib_save_LIBS=$LIBS
10833 LIBS="-llockfile $LIBS" 17195 LIBS="-llockfile $LIBS"
10834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17196 cat >conftest.$ac_ext <<_ACEOF
17197 /* confdefs.h. */
17198 _ACEOF
17199 cat confdefs.h >>conftest.$ac_ext
17200 cat >>conftest.$ac_ext <<_ACEOF
10835 /* end confdefs.h. */ 17201 /* end confdefs.h. */
10836 17202
10837 /* Override any GCC internal prototype to avoid an error. 17203 /* Override any GCC internal prototype to avoid an error.
10838 Use char because int might match the return type of a GCC 17204 Use char because int might match the return type of a GCC
10839 builtin and then its argument prototype would still apply. */ 17205 builtin and then its argument prototype would still apply. */
10847 return maillock (); 17213 return maillock ();
10848 ; 17214 ;
10849 return 0; 17215 return 0;
10850 } 17216 }
10851 _ACEOF 17217 _ACEOF
10852 if ac_fn_c_try_link "$LINENO"; then : 17218 rm -f conftest.$ac_objext conftest$ac_exeext
17219 if { (ac_try="$ac_link"
17220 case "(($ac_try" in
17221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17222 *) ac_try_echo=$ac_try;;
17223 esac
17224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17225 $as_echo "$ac_try_echo") >&5
17226 (eval "$ac_link") 2>conftest.er1
17227 ac_status=$?
17228 grep -v '^ *+' conftest.er1 >conftest.err
17229 rm -f conftest.er1
17230 cat conftest.err >&5
17231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17232 (exit $ac_status); } && {
17233 test -z "$ac_c_werror_flag" ||
17234 test ! -s conftest.err
17235 } && test -s conftest$ac_exeext && {
17236 test "$cross_compiling" = yes ||
17237 $as_test_x conftest$ac_exeext
17238 }; then
10853 ac_cv_lib_lockfile_maillock=yes 17239 ac_cv_lib_lockfile_maillock=yes
10854 else 17240 else
10855 ac_cv_lib_lockfile_maillock=no 17241 $as_echo "$as_me: failed program was:" >&5
10856 fi 17242 sed 's/^/| /' conftest.$ac_ext >&5
10857 rm -f core conftest.err conftest.$ac_objext \ 17243
10858 conftest$ac_exeext conftest.$ac_ext 17244 ac_cv_lib_lockfile_maillock=no
17245 fi
17246
17247 rm -rf conftest.dSYM
17248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17249 conftest$ac_exeext conftest.$ac_ext
10859 LIBS=$ac_check_lib_save_LIBS 17250 LIBS=$ac_check_lib_save_LIBS
10860 fi 17251 fi
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5 17252 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
10862 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; } 17253 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
10863 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then : 17254 if test $ac_cv_lib_lockfile_maillock = yes; then
10864 have_lockfile=yes 17255 have_lockfile=yes
10865 else 17256 else
10866 have_lockfile=no 17257 have_lockfile=no
10867 fi 17258 fi
10868 17259
10869 if test $have_lockfile = yes; then 17260 if test $have_lockfile = yes; then
10870 LIBS_MAIL=-llockfile 17261 LIBS_MAIL=-llockfile
10871 LIBS="$LIBS_MAIL $LIBS" 17262 LIBS="$LIBS_MAIL $LIBS"
10872 17263
10873 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h 17264 cat >>confdefs.h <<\_ACEOF
17265 #define HAVE_LIBLOCKFILE 1
17266 _ACEOF
10874 17267
10875 else 17268 else
10876 # If we have the shared liblockfile, assume we must use it for mail 17269 # If we have the shared liblockfile, assume we must use it for mail
10877 # locking (e.g. Debian). If we couldn't link against liblockfile 17270 # locking (e.g. Debian). If we couldn't link against liblockfile
10878 # (no liblockfile.a installed), ensure that we don't need to. 17271 # (no liblockfile.a installed), ensure that we don't need to.
10879 # Extract the first word of "liblockfile.so", so it can be a program name with args. 17272 # Extract the first word of "liblockfile.so", so it can be a program name with args.
10880 set dummy liblockfile.so; ac_word=$2 17273 set dummy liblockfile.so; ac_word=$2
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17274 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
10882 $as_echo_n "checking for $ac_word... " >&6; } 17275 $as_echo_n "checking for $ac_word... " >&6; }
10883 if test "${ac_cv_prog_liblockfile+set}" = set; then : 17276 if test "${ac_cv_prog_liblockfile+set}" = set; then
10884 $as_echo_n "(cached) " >&6 17277 $as_echo_n "(cached) " >&6
10885 else 17278 else
10886 if test -n "$liblockfile"; then 17279 if test -n "$liblockfile"; then
10887 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 17280 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
10888 else 17281 else
10890 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" 17283 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
10891 for as_dir in $as_dummy 17284 for as_dir in $as_dummy
10892 do 17285 do
10893 IFS=$as_save_IFS 17286 IFS=$as_save_IFS
10894 test -z "$as_dir" && as_dir=. 17287 test -z "$as_dir" && as_dir=.
10895 for ac_exec_ext in '' $ac_executable_extensions; do 17288 for ac_exec_ext in '' $ac_executable_extensions; do
10896 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 17289 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10897 ac_cv_prog_liblockfile="yes" 17290 ac_cv_prog_liblockfile="yes"
10898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17291 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10899 break 2 17292 break 2
10900 fi 17293 fi
10901 done 17294 done
10902 done 17295 done
10903 IFS=$as_save_IFS 17296 IFS=$as_save_IFS
10904 17297
10905 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" 17298 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
10906 fi 17299 fi
10907 fi 17300 fi
10908 liblockfile=$ac_cv_prog_liblockfile 17301 liblockfile=$ac_cv_prog_liblockfile
10909 if test -n "$liblockfile"; then 17302 if test -n "$liblockfile"; then
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5 17303 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5
10911 $as_echo "$liblockfile" >&6; } 17304 $as_echo "$liblockfile" >&6; }
10912 else 17305 else
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17306 { $as_echo "$as_me:$LINENO: result: no" >&5
10914 $as_echo "no" >&6; } 17307 $as_echo "no" >&6; }
10915 fi 17308 fi
10916 17309
10917 17310
10918 if test $ac_cv_prog_liblockfile = yes; then 17311 if test $ac_cv_prog_liblockfile = yes; then
10919 as_fn_error "Shared liblockfile found but can't link against it. 17312 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
10920 This probably means that movemail could lose mail. 17313 This probably means that movemail could lose mail.
10921 There may be a \`development' package to install containing liblockfile." "$LINENO" 5 17314 There may be a \`development' package to install containing liblockfile." >&5
17315 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17316 This probably means that movemail could lose mail.
17317 There may be a \`development' package to install containing liblockfile." >&2;}
17318 { (exit 1); exit 1; }; }
10922 fi 17319 fi
10923 fi 17320 fi
17321
10924 for ac_func in touchlock 17322 for ac_func in touchlock
10925 do : 17323 do
10926 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock" 17324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10927 if test "x$ac_cv_func_touchlock" = x""yes; then : 17325 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17326 $as_echo_n "checking for $ac_func... " >&6; }
17327 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17328 $as_echo_n "(cached) " >&6
17329 else
17330 cat >conftest.$ac_ext <<_ACEOF
17331 /* confdefs.h. */
17332 _ACEOF
17333 cat confdefs.h >>conftest.$ac_ext
17334 cat >>conftest.$ac_ext <<_ACEOF
17335 /* end confdefs.h. */
17336 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17337 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17338 #define $ac_func innocuous_$ac_func
17339
17340 /* System header to define __stub macros and hopefully few prototypes,
17341 which can conflict with char $ac_func (); below.
17342 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17343 <limits.h> exists even on freestanding compilers. */
17344
17345 #ifdef __STDC__
17346 # include <limits.h>
17347 #else
17348 # include <assert.h>
17349 #endif
17350
17351 #undef $ac_func
17352
17353 /* Override any GCC internal prototype to avoid an error.
17354 Use char because int might match the return type of a GCC
17355 builtin and then its argument prototype would still apply. */
17356 #ifdef __cplusplus
17357 extern "C"
17358 #endif
17359 char $ac_func ();
17360 /* The GNU C library defines this for functions which it implements
17361 to always fail with ENOSYS. Some functions are actually named
17362 something starting with __ and the normal name is an alias. */
17363 #if defined __stub_$ac_func || defined __stub___$ac_func
17364 choke me
17365 #endif
17366
17367 int
17368 main ()
17369 {
17370 return $ac_func ();
17371 ;
17372 return 0;
17373 }
17374 _ACEOF
17375 rm -f conftest.$ac_objext conftest$ac_exeext
17376 if { (ac_try="$ac_link"
17377 case "(($ac_try" in
17378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17379 *) ac_try_echo=$ac_try;;
17380 esac
17381 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17382 $as_echo "$ac_try_echo") >&5
17383 (eval "$ac_link") 2>conftest.er1
17384 ac_status=$?
17385 grep -v '^ *+' conftest.er1 >conftest.err
17386 rm -f conftest.er1
17387 cat conftest.err >&5
17388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17389 (exit $ac_status); } && {
17390 test -z "$ac_c_werror_flag" ||
17391 test ! -s conftest.err
17392 } && test -s conftest$ac_exeext && {
17393 test "$cross_compiling" = yes ||
17394 $as_test_x conftest$ac_exeext
17395 }; then
17396 eval "$as_ac_var=yes"
17397 else
17398 $as_echo "$as_me: failed program was:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17400
17401 eval "$as_ac_var=no"
17402 fi
17403
17404 rm -rf conftest.dSYM
17405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17406 conftest$ac_exeext conftest.$ac_ext
17407 fi
17408 ac_res=`eval 'as_val=${'$as_ac_var'}
17409 $as_echo "$as_val"'`
17410 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17411 $as_echo "$ac_res" >&6; }
17412 if test `eval 'as_val=${'$as_ac_var'}
17413 $as_echo "$as_val"'` = yes; then
10928 cat >>confdefs.h <<_ACEOF 17414 cat >>confdefs.h <<_ACEOF
10929 #define HAVE_TOUCHLOCK 1 17415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10930 _ACEOF 17416 _ACEOF
10931 17417
10932 fi 17418 fi
10933 done 17419 done
10934 17420
17421
10935 for ac_header in maillock.h 17422 for ac_header in maillock.h
10936 do : 17423 do
10937 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default" 17424 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10938 if test "x$ac_cv_header_maillock_h" = x""yes; then : 17425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17426 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17427 $as_echo_n "checking for $ac_header... " >&6; }
17428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17429 $as_echo_n "(cached) " >&6
17430 fi
17431 ac_res=`eval 'as_val=${'$as_ac_Header'}
17432 $as_echo "$as_val"'`
17433 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17434 $as_echo "$ac_res" >&6; }
17435 else
17436 # Is the header compilable?
17437 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17438 $as_echo_n "checking $ac_header usability... " >&6; }
17439 cat >conftest.$ac_ext <<_ACEOF
17440 /* confdefs.h. */
17441 _ACEOF
17442 cat confdefs.h >>conftest.$ac_ext
17443 cat >>conftest.$ac_ext <<_ACEOF
17444 /* end confdefs.h. */
17445 $ac_includes_default
17446 #include <$ac_header>
17447 _ACEOF
17448 rm -f conftest.$ac_objext
17449 if { (ac_try="$ac_compile"
17450 case "(($ac_try" in
17451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17452 *) ac_try_echo=$ac_try;;
17453 esac
17454 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17455 $as_echo "$ac_try_echo") >&5
17456 (eval "$ac_compile") 2>conftest.er1
17457 ac_status=$?
17458 grep -v '^ *+' conftest.er1 >conftest.err
17459 rm -f conftest.er1
17460 cat conftest.err >&5
17461 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17462 (exit $ac_status); } && {
17463 test -z "$ac_c_werror_flag" ||
17464 test ! -s conftest.err
17465 } && test -s conftest.$ac_objext; then
17466 ac_header_compiler=yes
17467 else
17468 $as_echo "$as_me: failed program was:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17470
17471 ac_header_compiler=no
17472 fi
17473
17474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17475 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17476 $as_echo "$ac_header_compiler" >&6; }
17477
17478 # Is the header present?
17479 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17480 $as_echo_n "checking $ac_header presence... " >&6; }
17481 cat >conftest.$ac_ext <<_ACEOF
17482 /* confdefs.h. */
17483 _ACEOF
17484 cat confdefs.h >>conftest.$ac_ext
17485 cat >>conftest.$ac_ext <<_ACEOF
17486 /* end confdefs.h. */
17487 #include <$ac_header>
17488 _ACEOF
17489 if { (ac_try="$ac_cpp conftest.$ac_ext"
17490 case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17493 esac
17494 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17495 $as_echo "$ac_try_echo") >&5
17496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17497 ac_status=$?
17498 grep -v '^ *+' conftest.er1 >conftest.err
17499 rm -f conftest.er1
17500 cat conftest.err >&5
17501 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17502 (exit $ac_status); } >/dev/null && {
17503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17504 test ! -s conftest.err
17505 }; then
17506 ac_header_preproc=yes
17507 else
17508 $as_echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17510
17511 ac_header_preproc=no
17512 fi
17513
17514 rm -f conftest.err conftest.$ac_ext
17515 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17516 $as_echo "$ac_header_preproc" >&6; }
17517
17518 # So? What about this header?
17519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17520 yes:no: )
17521 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17522 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17523 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17524 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17525 ac_header_preproc=yes
17526 ;;
17527 no:yes:* )
17528 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17529 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17530 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17531 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17532 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17533 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17535 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17537 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17539 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17540
17541 ;;
17542 esac
17543 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17544 $as_echo_n "checking for $ac_header... " >&6; }
17545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17546 $as_echo_n "(cached) " >&6
17547 else
17548 eval "$as_ac_Header=\$ac_header_preproc"
17549 fi
17550 ac_res=`eval 'as_val=${'$as_ac_Header'}
17551 $as_echo "$as_val"'`
17552 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17553 $as_echo "$ac_res" >&6; }
17554
17555 fi
17556 if test `eval 'as_val=${'$as_ac_Header'}
17557 $as_echo "$as_val"'` = yes; then
10939 cat >>confdefs.h <<_ACEOF 17558 cat >>confdefs.h <<_ACEOF
10940 #define HAVE_MAILLOCK_H 1 17559 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10941 _ACEOF 17560 _ACEOF
10942 17561
10943 fi 17562 fi
10944 17563
10945 done 17564 done
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577
17578
17579
17580
17581
17582
17583
17584
17585
17586
17587
17588
17589
17590
17591
17592
17593
17594
17595
17596
17597
17598
17599
17600
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613
17614
17615
17616
17617
17618
17619
17620
17621
17622
17623
17624
17625
17626
17627
17628
17629
17630
17631
17632
17633
17634
17635
17636
17637
10946 17638
10947 17639
10948 17640
10949 for ac_func in gethostname getdomainname dup2 \ 17641 for ac_func in gethostname getdomainname dup2 \
10950 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ 17642 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
10954 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ 17646 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
10955 sendto recvfrom getsockopt setsockopt getsockname getpeername \ 17647 sendto recvfrom getsockopt setsockopt getsockname getpeername \
10956 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ 17648 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
10957 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ 17649 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
10958 cfmakeraw cfsetspeed isnan copysign 17650 cfmakeraw cfsetspeed isnan copysign
10959 do : 17651 do
10960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17652 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10961 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17653 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
10962 eval as_val=\$$as_ac_var 17654 $as_echo_n "checking for $ac_func... " >&6; }
10963 if test "x$as_val" = x""yes; then : 17655 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17656 $as_echo_n "(cached) " >&6
17657 else
17658 cat >conftest.$ac_ext <<_ACEOF
17659 /* confdefs.h. */
17660 _ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17664 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17665 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17666 #define $ac_func innocuous_$ac_func
17667
17668 /* System header to define __stub macros and hopefully few prototypes,
17669 which can conflict with char $ac_func (); below.
17670 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17671 <limits.h> exists even on freestanding compilers. */
17672
17673 #ifdef __STDC__
17674 # include <limits.h>
17675 #else
17676 # include <assert.h>
17677 #endif
17678
17679 #undef $ac_func
17680
17681 /* Override any GCC internal prototype to avoid an error.
17682 Use char because int might match the return type of a GCC
17683 builtin and then its argument prototype would still apply. */
17684 #ifdef __cplusplus
17685 extern "C"
17686 #endif
17687 char $ac_func ();
17688 /* The GNU C library defines this for functions which it implements
17689 to always fail with ENOSYS. Some functions are actually named
17690 something starting with __ and the normal name is an alias. */
17691 #if defined __stub_$ac_func || defined __stub___$ac_func
17692 choke me
17693 #endif
17694
17695 int
17696 main ()
17697 {
17698 return $ac_func ();
17699 ;
17700 return 0;
17701 }
17702 _ACEOF
17703 rm -f conftest.$ac_objext conftest$ac_exeext
17704 if { (ac_try="$ac_link"
17705 case "(($ac_try" in
17706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17707 *) ac_try_echo=$ac_try;;
17708 esac
17709 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17710 $as_echo "$ac_try_echo") >&5
17711 (eval "$ac_link") 2>conftest.er1
17712 ac_status=$?
17713 grep -v '^ *+' conftest.er1 >conftest.err
17714 rm -f conftest.er1
17715 cat conftest.err >&5
17716 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17717 (exit $ac_status); } && {
17718 test -z "$ac_c_werror_flag" ||
17719 test ! -s conftest.err
17720 } && test -s conftest$ac_exeext && {
17721 test "$cross_compiling" = yes ||
17722 $as_test_x conftest$ac_exeext
17723 }; then
17724 eval "$as_ac_var=yes"
17725 else
17726 $as_echo "$as_me: failed program was:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17728
17729 eval "$as_ac_var=no"
17730 fi
17731
17732 rm -rf conftest.dSYM
17733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17734 conftest$ac_exeext conftest.$ac_ext
17735 fi
17736 ac_res=`eval 'as_val=${'$as_ac_var'}
17737 $as_echo "$as_val"'`
17738 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17739 $as_echo "$ac_res" >&6; }
17740 if test `eval 'as_val=${'$as_ac_var'}
17741 $as_echo "$as_val"'` = yes; then
10964 cat >>confdefs.h <<_ACEOF 17742 cat >>confdefs.h <<_ACEOF
10965 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17743 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10966 _ACEOF 17744 _ACEOF
10967 17745
10968 fi 17746 fi
10969 done 17747 done
10970 17748
10971 17749
17750
10972 for ac_header in sys/un.h 17751 for ac_header in sys/un.h
10973 do : 17752 do
10974 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default" 17753 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10975 if test "x$ac_cv_header_sys_un_h" = x""yes; then : 17754 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17755 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17756 $as_echo_n "checking for $ac_header... " >&6; }
17757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17758 $as_echo_n "(cached) " >&6
17759 fi
17760 ac_res=`eval 'as_val=${'$as_ac_Header'}
17761 $as_echo "$as_val"'`
17762 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17763 $as_echo "$ac_res" >&6; }
17764 else
17765 # Is the header compilable?
17766 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17767 $as_echo_n "checking $ac_header usability... " >&6; }
17768 cat >conftest.$ac_ext <<_ACEOF
17769 /* confdefs.h. */
17770 _ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17774 $ac_includes_default
17775 #include <$ac_header>
17776 _ACEOF
17777 rm -f conftest.$ac_objext
17778 if { (ac_try="$ac_compile"
17779 case "(($ac_try" in
17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781 *) ac_try_echo=$ac_try;;
17782 esac
17783 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17784 $as_echo "$ac_try_echo") >&5
17785 (eval "$ac_compile") 2>conftest.er1
17786 ac_status=$?
17787 grep -v '^ *+' conftest.er1 >conftest.err
17788 rm -f conftest.er1
17789 cat conftest.err >&5
17790 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17791 (exit $ac_status); } && {
17792 test -z "$ac_c_werror_flag" ||
17793 test ! -s conftest.err
17794 } && test -s conftest.$ac_objext; then
17795 ac_header_compiler=yes
17796 else
17797 $as_echo "$as_me: failed program was:" >&5
17798 sed 's/^/| /' conftest.$ac_ext >&5
17799
17800 ac_header_compiler=no
17801 fi
17802
17803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17804 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17805 $as_echo "$ac_header_compiler" >&6; }
17806
17807 # Is the header present?
17808 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17809 $as_echo_n "checking $ac_header presence... " >&6; }
17810 cat >conftest.$ac_ext <<_ACEOF
17811 /* confdefs.h. */
17812 _ACEOF
17813 cat confdefs.h >>conftest.$ac_ext
17814 cat >>conftest.$ac_ext <<_ACEOF
17815 /* end confdefs.h. */
17816 #include <$ac_header>
17817 _ACEOF
17818 if { (ac_try="$ac_cpp conftest.$ac_ext"
17819 case "(($ac_try" in
17820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17821 *) ac_try_echo=$ac_try;;
17822 esac
17823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17824 $as_echo "$ac_try_echo") >&5
17825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17826 ac_status=$?
17827 grep -v '^ *+' conftest.er1 >conftest.err
17828 rm -f conftest.er1
17829 cat conftest.err >&5
17830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } >/dev/null && {
17832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17833 test ! -s conftest.err
17834 }; then
17835 ac_header_preproc=yes
17836 else
17837 $as_echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17839
17840 ac_header_preproc=no
17841 fi
17842
17843 rm -f conftest.err conftest.$ac_ext
17844 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17845 $as_echo "$ac_header_preproc" >&6; }
17846
17847 # So? What about this header?
17848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17849 yes:no: )
17850 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17851 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17852 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17853 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17854 ac_header_preproc=yes
17855 ;;
17856 no:yes:* )
17857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17858 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17859 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17860 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17861 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17862 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17863 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17864 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17865 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17866 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17867 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17868 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17869
17870 ;;
17871 esac
17872 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17873 $as_echo_n "checking for $ac_header... " >&6; }
17874 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17875 $as_echo_n "(cached) " >&6
17876 else
17877 eval "$as_ac_Header=\$ac_header_preproc"
17878 fi
17879 ac_res=`eval 'as_val=${'$as_ac_Header'}
17880 $as_echo "$as_val"'`
17881 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17882 $as_echo "$ac_res" >&6; }
17883
17884 fi
17885 if test `eval 'as_val=${'$as_ac_Header'}
17886 $as_echo "$as_val"'` = yes; then
10976 cat >>confdefs.h <<_ACEOF 17887 cat >>confdefs.h <<_ACEOF
10977 #define HAVE_SYS_UN_H 1 17888 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10978 _ACEOF 17889 _ACEOF
10979 17890
10980 fi 17891 fi
10981 17892
10982 done 17893 done
10984 17895
10985 17896
10986 17897
10987 17898
10988 17899
10989 17900 for ac_header in $ac_header_list
10990 for ac_func in $ac_func_list 17901 do
10991 do : 17902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10992 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17903 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10993 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17904 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10994 eval as_val=\$$as_ac_var 17905 $as_echo_n "checking for $ac_header... " >&6; }
10995 if test "x$as_val" = x""yes; then : 17906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17907 $as_echo_n "(cached) " >&6
17908 fi
17909 ac_res=`eval 'as_val=${'$as_ac_Header'}
17910 $as_echo "$as_val"'`
17911 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17912 $as_echo "$ac_res" >&6; }
17913 else
17914 # Is the header compilable?
17915 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17916 $as_echo_n "checking $ac_header usability... " >&6; }
17917 cat >conftest.$ac_ext <<_ACEOF
17918 /* confdefs.h. */
17919 _ACEOF
17920 cat confdefs.h >>conftest.$ac_ext
17921 cat >>conftest.$ac_ext <<_ACEOF
17922 /* end confdefs.h. */
17923 $ac_includes_default
17924 #include <$ac_header>
17925 _ACEOF
17926 rm -f conftest.$ac_objext
17927 if { (ac_try="$ac_compile"
17928 case "(($ac_try" in
17929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17930 *) ac_try_echo=$ac_try;;
17931 esac
17932 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17933 $as_echo "$ac_try_echo") >&5
17934 (eval "$ac_compile") 2>conftest.er1
17935 ac_status=$?
17936 grep -v '^ *+' conftest.er1 >conftest.err
17937 rm -f conftest.er1
17938 cat conftest.err >&5
17939 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } && {
17941 test -z "$ac_c_werror_flag" ||
17942 test ! -s conftest.err
17943 } && test -s conftest.$ac_objext; then
17944 ac_header_compiler=yes
17945 else
17946 $as_echo "$as_me: failed program was:" >&5
17947 sed 's/^/| /' conftest.$ac_ext >&5
17948
17949 ac_header_compiler=no
17950 fi
17951
17952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17953 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17954 $as_echo "$ac_header_compiler" >&6; }
17955
17956 # Is the header present?
17957 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17958 $as_echo_n "checking $ac_header presence... " >&6; }
17959 cat >conftest.$ac_ext <<_ACEOF
17960 /* confdefs.h. */
17961 _ACEOF
17962 cat confdefs.h >>conftest.$ac_ext
17963 cat >>conftest.$ac_ext <<_ACEOF
17964 /* end confdefs.h. */
17965 #include <$ac_header>
17966 _ACEOF
17967 if { (ac_try="$ac_cpp conftest.$ac_ext"
17968 case "(($ac_try" in
17969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17970 *) ac_try_echo=$ac_try;;
17971 esac
17972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17973 $as_echo "$ac_try_echo") >&5
17974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17975 ac_status=$?
17976 grep -v '^ *+' conftest.er1 >conftest.err
17977 rm -f conftest.er1
17978 cat conftest.err >&5
17979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17980 (exit $ac_status); } >/dev/null && {
17981 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17982 test ! -s conftest.err
17983 }; then
17984 ac_header_preproc=yes
17985 else
17986 $as_echo "$as_me: failed program was:" >&5
17987 sed 's/^/| /' conftest.$ac_ext >&5
17988
17989 ac_header_preproc=no
17990 fi
17991
17992 rm -f conftest.err conftest.$ac_ext
17993 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17994 $as_echo "$ac_header_preproc" >&6; }
17995
17996 # So? What about this header?
17997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17998 yes:no: )
17999 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18000 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18001 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18002 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18003 ac_header_preproc=yes
18004 ;;
18005 no:yes:* )
18006 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18007 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18008 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18009 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18010 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18011 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18012 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18013 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18014 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18015 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18016 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18017 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18018
18019 ;;
18020 esac
18021 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
18022 $as_echo_n "checking for $ac_header... " >&6; }
18023 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18024 $as_echo_n "(cached) " >&6
18025 else
18026 eval "$as_ac_Header=\$ac_header_preproc"
18027 fi
18028 ac_res=`eval 'as_val=${'$as_ac_Header'}
18029 $as_echo "$as_val"'`
18030 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18031 $as_echo "$ac_res" >&6; }
18032
18033 fi
18034 if test `eval 'as_val=${'$as_ac_Header'}
18035 $as_echo "$as_val"'` = yes; then
18036 cat >>confdefs.h <<_ACEOF
18037 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18038 _ACEOF
18039
18040 fi
18041
18042 done
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052 for ac_func in $ac_func_list
18053 do
18054 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
18055 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18056 $as_echo_n "checking for $ac_func... " >&6; }
18057 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18058 $as_echo_n "(cached) " >&6
18059 else
18060 cat >conftest.$ac_ext <<_ACEOF
18061 /* confdefs.h. */
18062 _ACEOF
18063 cat confdefs.h >>conftest.$ac_ext
18064 cat >>conftest.$ac_ext <<_ACEOF
18065 /* end confdefs.h. */
18066 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18067 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18068 #define $ac_func innocuous_$ac_func
18069
18070 /* System header to define __stub macros and hopefully few prototypes,
18071 which can conflict with char $ac_func (); below.
18072 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18073 <limits.h> exists even on freestanding compilers. */
18074
18075 #ifdef __STDC__
18076 # include <limits.h>
18077 #else
18078 # include <assert.h>
18079 #endif
18080
18081 #undef $ac_func
18082
18083 /* Override any GCC internal prototype to avoid an error.
18084 Use char because int might match the return type of a GCC
18085 builtin and then its argument prototype would still apply. */
18086 #ifdef __cplusplus
18087 extern "C"
18088 #endif
18089 char $ac_func ();
18090 /* The GNU C library defines this for functions which it implements
18091 to always fail with ENOSYS. Some functions are actually named
18092 something starting with __ and the normal name is an alias. */
18093 #if defined __stub_$ac_func || defined __stub___$ac_func
18094 choke me
18095 #endif
18096
18097 int
18098 main ()
18099 {
18100 return $ac_func ();
18101 ;
18102 return 0;
18103 }
18104 _ACEOF
18105 rm -f conftest.$ac_objext conftest$ac_exeext
18106 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
18114 ac_status=$?
18115 grep -v '^ *+' conftest.er1 >conftest.err
18116 rm -f conftest.er1
18117 cat conftest.err >&5
18118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18119 (exit $ac_status); } && {
18120 test -z "$ac_c_werror_flag" ||
18121 test ! -s conftest.err
18122 } && test -s conftest$ac_exeext && {
18123 test "$cross_compiling" = yes ||
18124 $as_test_x conftest$ac_exeext
18125 }; then
18126 eval "$as_ac_var=yes"
18127 else
18128 $as_echo "$as_me: failed program was:" >&5
18129 sed 's/^/| /' conftest.$ac_ext >&5
18130
18131 eval "$as_ac_var=no"
18132 fi
18133
18134 rm -rf conftest.dSYM
18135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18136 conftest$ac_exeext conftest.$ac_ext
18137 fi
18138 ac_res=`eval 'as_val=${'$as_ac_var'}
18139 $as_echo "$as_val"'`
18140 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18141 $as_echo "$ac_res" >&6; }
18142 if test `eval 'as_val=${'$as_ac_var'}
18143 $as_echo "$as_val"'` = yes; then
10996 cat >>confdefs.h <<_ACEOF 18144 cat >>confdefs.h <<_ACEOF
10997 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 18145 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10998 _ACEOF 18146 _ACEOF
10999 18147
11000 fi 18148 fi
11002 18150
11003 18151
11004 18152
11005 18153
11006 18154
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5 18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
11008 $as_echo_n "checking for working mktime... " >&6; } 18168 $as_echo_n "checking for working mktime... " >&6; }
11009 if test "${ac_cv_func_working_mktime+set}" = set; then : 18169 if test "${ac_cv_func_working_mktime+set}" = set; then
11010 $as_echo_n "(cached) " >&6 18170 $as_echo_n "(cached) " >&6
11011 else 18171 else
11012 if test "$cross_compiling" = yes; then : 18172 if test "$cross_compiling" = yes; then
11013 ac_cv_func_working_mktime=no 18173 ac_cv_func_working_mktime=no
11014 else 18174 else
11015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18175 cat >conftest.$ac_ext <<_ACEOF
18176 /* confdefs.h. */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */ 18180 /* end confdefs.h. */
11017 /* Test program from Paul Eggert and Tony Leneis. */ 18181 /* Test program from Paul Eggert and Tony Leneis. */
11018 #ifdef TIME_WITH_SYS_TIME 18182 #ifdef TIME_WITH_SYS_TIME
11019 # include <sys/time.h> 18183 # include <sys/time.h>
11020 # include <time.h> 18184 # include <time.h>
11207 return 1; 18371 return 1;
11208 } 18372 }
11209 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 18373 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
11210 } 18374 }
11211 _ACEOF 18375 _ACEOF
11212 if ac_fn_c_try_run "$LINENO"; then : 18376 rm -f conftest$ac_exeext
18377 if { (ac_try="$ac_link"
18378 case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18381 esac
18382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18383 $as_echo "$ac_try_echo") >&5
18384 (eval "$ac_link") 2>&5
18385 ac_status=$?
18386 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18387 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18388 { (case "(($ac_try" in
18389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18390 *) ac_try_echo=$ac_try;;
18391 esac
18392 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18393 $as_echo "$ac_try_echo") >&5
18394 (eval "$ac_try") 2>&5
18395 ac_status=$?
18396 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18397 (exit $ac_status); }; }; then
11213 ac_cv_func_working_mktime=yes 18398 ac_cv_func_working_mktime=yes
11214 else 18399 else
11215 ac_cv_func_working_mktime=no 18400 $as_echo "$as_me: program exited with status $ac_status" >&5
11216 fi 18401 $as_echo "$as_me: failed program was:" >&5
11217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18402 sed 's/^/| /' conftest.$ac_ext >&5
11218 conftest.$ac_objext conftest.beam conftest.$ac_ext 18403
11219 fi 18404 ( exit $ac_status )
11220 18405 ac_cv_func_working_mktime=no
11221 fi 18406 fi
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5 18407 rm -rf conftest.dSYM
18408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18409 fi
18410
18411
18412 fi
18413 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
11223 $as_echo "$ac_cv_func_working_mktime" >&6; } 18414 $as_echo "$ac_cv_func_working_mktime" >&6; }
11224 if test $ac_cv_func_working_mktime = no; then 18415 if test $ac_cv_func_working_mktime = no; then
11225 case " $LIBOBJS " in 18416 case " $LIBOBJS " in
11226 *" mktime.$ac_objext "* ) ;; 18417 *" mktime.$ac_objext "* ) ;;
11227 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" 18418 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
11230 18421
11231 fi 18422 fi
11232 18423
11233 if test "$ac_cv_func_working_mktime" = no; then 18424 if test "$ac_cv_func_working_mktime" = no; then
11234 18425
11235 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h 18426 cat >>confdefs.h <<\_ACEOF
18427 #define BROKEN_MKTIME 1
18428 _ACEOF
11236 18429
11237 fi 18430 fi
11238 18431
11239 ac_have_func=no # yes means we've found a way to get the load average. 18432 ac_have_func=no # yes means we've found a way to get the load average.
11240 18433
11241 # Make sure getloadavg.c is where it belongs, at configure-time. 18434 # Make sure getloadavg.c is where it belongs, at configure-time.
11242 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 18435 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
11243 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5 18436 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
18437 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18438 { (exit 1); exit 1; }; }
11244 18439
11245 ac_save_LIBS=$LIBS 18440 ac_save_LIBS=$LIBS
11246 18441
11247 # Check for getloadavg, but be sure not to touch the cache variable. 18442 # Check for getloadavg, but be sure not to touch the cache variable.
11248 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 18443 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5
11249 if test "x$ac_cv_func_getloadavg" = x""yes; then : 18444 $as_echo_n "checking for getloadavg... " >&6; }
18445 if test "${ac_cv_func_getloadavg+set}" = set; then
18446 $as_echo_n "(cached) " >&6
18447 else
18448 cat >conftest.$ac_ext <<_ACEOF
18449 /* confdefs.h. */
18450 _ACEOF
18451 cat confdefs.h >>conftest.$ac_ext
18452 cat >>conftest.$ac_ext <<_ACEOF
18453 /* end confdefs.h. */
18454 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18455 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18456 #define getloadavg innocuous_getloadavg
18457
18458 /* System header to define __stub macros and hopefully few prototypes,
18459 which can conflict with char getloadavg (); below.
18460 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18461 <limits.h> exists even on freestanding compilers. */
18462
18463 #ifdef __STDC__
18464 # include <limits.h>
18465 #else
18466 # include <assert.h>
18467 #endif
18468
18469 #undef getloadavg
18470
18471 /* Override any GCC internal prototype to avoid an error.
18472 Use char because int might match the return type of a GCC
18473 builtin and then its argument prototype would still apply. */
18474 #ifdef __cplusplus
18475 extern "C"
18476 #endif
18477 char getloadavg ();
18478 /* The GNU C library defines this for functions which it implements
18479 to always fail with ENOSYS. Some functions are actually named
18480 something starting with __ and the normal name is an alias. */
18481 #if defined __stub_getloadavg || defined __stub___getloadavg
18482 choke me
18483 #endif
18484
18485 int
18486 main ()
18487 {
18488 return getloadavg ();
18489 ;
18490 return 0;
18491 }
18492 _ACEOF
18493 rm -f conftest.$ac_objext conftest$ac_exeext
18494 if { (ac_try="$ac_link"
18495 case "(($ac_try" in
18496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18497 *) ac_try_echo=$ac_try;;
18498 esac
18499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18500 $as_echo "$ac_try_echo") >&5
18501 (eval "$ac_link") 2>conftest.er1
18502 ac_status=$?
18503 grep -v '^ *+' conftest.er1 >conftest.err
18504 rm -f conftest.er1
18505 cat conftest.err >&5
18506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18507 (exit $ac_status); } && {
18508 test -z "$ac_c_werror_flag" ||
18509 test ! -s conftest.err
18510 } && test -s conftest$ac_exeext && {
18511 test "$cross_compiling" = yes ||
18512 $as_test_x conftest$ac_exeext
18513 }; then
18514 ac_cv_func_getloadavg=yes
18515 else
18516 $as_echo "$as_me: failed program was:" >&5
18517 sed 's/^/| /' conftest.$ac_ext >&5
18518
18519 ac_cv_func_getloadavg=no
18520 fi
18521
18522 rm -rf conftest.dSYM
18523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18524 conftest$ac_exeext conftest.$ac_ext
18525 fi
18526 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18527 $as_echo "$ac_cv_func_getloadavg" >&6; }
18528 if test $ac_cv_func_getloadavg = yes; then
11250 exit 0 18529 exit 0
11251 else 18530 else
11252 exit 1 18531 exit 1
11253 fi 18532 fi
11254 ) && ac_have_func=yes 18533 ) && ac_have_func=yes
11255 18534
11256 # On HPUX9, an unprivileged user can get load averages through this function. 18535 # On HPUX9, an unprivileged user can get load averages through this function.
18536
11257 for ac_func in pstat_getdynamic 18537 for ac_func in pstat_getdynamic
11258 do : 18538 do
11259 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic" 18539 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11260 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then : 18540 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
18541 $as_echo_n "checking for $ac_func... " >&6; }
18542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18543 $as_echo_n "(cached) " >&6
18544 else
18545 cat >conftest.$ac_ext <<_ACEOF
18546 /* confdefs.h. */
18547 _ACEOF
18548 cat confdefs.h >>conftest.$ac_ext
18549 cat >>conftest.$ac_ext <<_ACEOF
18550 /* end confdefs.h. */
18551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18553 #define $ac_func innocuous_$ac_func
18554
18555 /* System header to define __stub macros and hopefully few prototypes,
18556 which can conflict with char $ac_func (); below.
18557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18558 <limits.h> exists even on freestanding compilers. */
18559
18560 #ifdef __STDC__
18561 # include <limits.h>
18562 #else
18563 # include <assert.h>
18564 #endif
18565
18566 #undef $ac_func
18567
18568 /* Override any GCC internal prototype to avoid an error.
18569 Use char because int might match the return type of a GCC
18570 builtin and then its argument prototype would still apply. */
18571 #ifdef __cplusplus
18572 extern "C"
18573 #endif
18574 char $ac_func ();
18575 /* The GNU C library defines this for functions which it implements
18576 to always fail with ENOSYS. Some functions are actually named
18577 something starting with __ and the normal name is an alias. */
18578 #if defined __stub_$ac_func || defined __stub___$ac_func
18579 choke me
18580 #endif
18581
18582 int
18583 main ()
18584 {
18585 return $ac_func ();
18586 ;
18587 return 0;
18588 }
18589 _ACEOF
18590 rm -f conftest.$ac_objext conftest$ac_exeext
18591 if { (ac_try="$ac_link"
18592 case "(($ac_try" in
18593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594 *) ac_try_echo=$ac_try;;
18595 esac
18596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18597 $as_echo "$ac_try_echo") >&5
18598 (eval "$ac_link") 2>conftest.er1
18599 ac_status=$?
18600 grep -v '^ *+' conftest.er1 >conftest.err
18601 rm -f conftest.er1
18602 cat conftest.err >&5
18603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18604 (exit $ac_status); } && {
18605 test -z "$ac_c_werror_flag" ||
18606 test ! -s conftest.err
18607 } && test -s conftest$ac_exeext && {
18608 test "$cross_compiling" = yes ||
18609 $as_test_x conftest$ac_exeext
18610 }; then
18611 eval "$as_ac_var=yes"
18612 else
18613 $as_echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18615
18616 eval "$as_ac_var=no"
18617 fi
18618
18619 rm -rf conftest.dSYM
18620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18621 conftest$ac_exeext conftest.$ac_ext
18622 fi
18623 ac_res=`eval 'as_val=${'$as_ac_var'}
18624 $as_echo "$as_val"'`
18625 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18626 $as_echo "$ac_res" >&6; }
18627 if test `eval 'as_val=${'$as_ac_var'}
18628 $as_echo "$as_val"'` = yes; then
11261 cat >>confdefs.h <<_ACEOF 18629 cat >>confdefs.h <<_ACEOF
11262 #define HAVE_PSTAT_GETDYNAMIC 1 18630 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11263 _ACEOF 18631 _ACEOF
11264 18632
11265 fi 18633 fi
11266 done 18634 done
11267 18635
11268 18636
11269 # Solaris has libkstat which does not require root. 18637 # Solaris has libkstat which does not require root.
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5 18638
18639 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
11271 $as_echo_n "checking for kstat_open in -lkstat... " >&6; } 18640 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
11272 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then : 18641 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
11273 $as_echo_n "(cached) " >&6 18642 $as_echo_n "(cached) " >&6
11274 else 18643 else
11275 ac_check_lib_save_LIBS=$LIBS 18644 ac_check_lib_save_LIBS=$LIBS
11276 LIBS="-lkstat $LIBS" 18645 LIBS="-lkstat $LIBS"
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18646 cat >conftest.$ac_ext <<_ACEOF
18647 /* confdefs.h. */
18648 _ACEOF
18649 cat confdefs.h >>conftest.$ac_ext
18650 cat >>conftest.$ac_ext <<_ACEOF
11278 /* end confdefs.h. */ 18651 /* end confdefs.h. */
11279 18652
11280 /* Override any GCC internal prototype to avoid an error. 18653 /* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC 18654 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */ 18655 builtin and then its argument prototype would still apply. */
11290 return kstat_open (); 18663 return kstat_open ();
11291 ; 18664 ;
11292 return 0; 18665 return 0;
11293 } 18666 }
11294 _ACEOF 18667 _ACEOF
11295 if ac_fn_c_try_link "$LINENO"; then : 18668 rm -f conftest.$ac_objext conftest$ac_exeext
18669 if { (ac_try="$ac_link"
18670 case "(($ac_try" in
18671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18672 *) ac_try_echo=$ac_try;;
18673 esac
18674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18675 $as_echo "$ac_try_echo") >&5
18676 (eval "$ac_link") 2>conftest.er1
18677 ac_status=$?
18678 grep -v '^ *+' conftest.er1 >conftest.err
18679 rm -f conftest.er1
18680 cat conftest.err >&5
18681 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18682 (exit $ac_status); } && {
18683 test -z "$ac_c_werror_flag" ||
18684 test ! -s conftest.err
18685 } && test -s conftest$ac_exeext && {
18686 test "$cross_compiling" = yes ||
18687 $as_test_x conftest$ac_exeext
18688 }; then
11296 ac_cv_lib_kstat_kstat_open=yes 18689 ac_cv_lib_kstat_kstat_open=yes
11297 else 18690 else
11298 ac_cv_lib_kstat_kstat_open=no 18691 $as_echo "$as_me: failed program was:" >&5
11299 fi 18692 sed 's/^/| /' conftest.$ac_ext >&5
11300 rm -f core conftest.err conftest.$ac_objext \ 18693
11301 conftest$ac_exeext conftest.$ac_ext 18694 ac_cv_lib_kstat_kstat_open=no
18695 fi
18696
18697 rm -rf conftest.dSYM
18698 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18699 conftest$ac_exeext conftest.$ac_ext
11302 LIBS=$ac_check_lib_save_LIBS 18700 LIBS=$ac_check_lib_save_LIBS
11303 fi 18701 fi
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5 18702 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
11305 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } 18703 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
11306 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then : 18704 if test $ac_cv_lib_kstat_kstat_open = yes; then
11307 cat >>confdefs.h <<_ACEOF 18705 cat >>confdefs.h <<_ACEOF
11308 #define HAVE_LIBKSTAT 1 18706 #define HAVE_LIBKSTAT 1
11309 _ACEOF 18707 _ACEOF
11310 18708
11311 LIBS="-lkstat $LIBS" 18709 LIBS="-lkstat $LIBS"
11317 # Some systems with -lutil have (and need) -lkvm as well, some do not. 18715 # Some systems with -lutil have (and need) -lkvm as well, some do not.
11318 # On Solaris, -lkvm requires nlist from -lelf, so check that first 18716 # On Solaris, -lkvm requires nlist from -lelf, so check that first
11319 # to get the right answer into the cache. 18717 # to get the right answer into the cache.
11320 # For kstat on solaris, we need libelf to force the definition of SVR4 below. 18718 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
11321 if test $ac_have_func = no; then 18719 if test $ac_have_func = no; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5 18720 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
11323 $as_echo_n "checking for elf_begin in -lelf... " >&6; } 18721 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
11324 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then : 18722 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
11325 $as_echo_n "(cached) " >&6 18723 $as_echo_n "(cached) " >&6
11326 else 18724 else
11327 ac_check_lib_save_LIBS=$LIBS 18725 ac_check_lib_save_LIBS=$LIBS
11328 LIBS="-lelf $LIBS" 18726 LIBS="-lelf $LIBS"
11329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18727 cat >conftest.$ac_ext <<_ACEOF
18728 /* confdefs.h. */
18729 _ACEOF
18730 cat confdefs.h >>conftest.$ac_ext
18731 cat >>conftest.$ac_ext <<_ACEOF
11330 /* end confdefs.h. */ 18732 /* end confdefs.h. */
11331 18733
11332 /* Override any GCC internal prototype to avoid an error. 18734 /* Override any GCC internal prototype to avoid an error.
11333 Use char because int might match the return type of a GCC 18735 Use char because int might match the return type of a GCC
11334 builtin and then its argument prototype would still apply. */ 18736 builtin and then its argument prototype would still apply. */
11342 return elf_begin (); 18744 return elf_begin ();
11343 ; 18745 ;
11344 return 0; 18746 return 0;
11345 } 18747 }
11346 _ACEOF 18748 _ACEOF
11347 if ac_fn_c_try_link "$LINENO"; then : 18749 rm -f conftest.$ac_objext conftest$ac_exeext
18750 if { (ac_try="$ac_link"
18751 case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18754 esac
18755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18756 $as_echo "$ac_try_echo") >&5
18757 (eval "$ac_link") 2>conftest.er1
18758 ac_status=$?
18759 grep -v '^ *+' conftest.er1 >conftest.err
18760 rm -f conftest.er1
18761 cat conftest.err >&5
18762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18763 (exit $ac_status); } && {
18764 test -z "$ac_c_werror_flag" ||
18765 test ! -s conftest.err
18766 } && test -s conftest$ac_exeext && {
18767 test "$cross_compiling" = yes ||
18768 $as_test_x conftest$ac_exeext
18769 }; then
11348 ac_cv_lib_elf_elf_begin=yes 18770 ac_cv_lib_elf_elf_begin=yes
11349 else 18771 else
11350 ac_cv_lib_elf_elf_begin=no 18772 $as_echo "$as_me: failed program was:" >&5
11351 fi 18773 sed 's/^/| /' conftest.$ac_ext >&5
11352 rm -f core conftest.err conftest.$ac_objext \ 18774
11353 conftest$ac_exeext conftest.$ac_ext 18775 ac_cv_lib_elf_elf_begin=no
18776 fi
18777
18778 rm -rf conftest.dSYM
18779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18780 conftest$ac_exeext conftest.$ac_ext
11354 LIBS=$ac_check_lib_save_LIBS 18781 LIBS=$ac_check_lib_save_LIBS
11355 fi 18782 fi
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5 18783 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
11357 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } 18784 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
11358 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then : 18785 if test $ac_cv_lib_elf_elf_begin = yes; then
11359 LIBS="-lelf $LIBS" 18786 LIBS="-lelf $LIBS"
11360 fi 18787 fi
11361 18788
11362 fi 18789 fi
11363 if test $ac_have_func = no; then 18790 if test $ac_have_func = no; then
11364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5 18791 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
11365 $as_echo_n "checking for kvm_open in -lkvm... " >&6; } 18792 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
11366 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then : 18793 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
11367 $as_echo_n "(cached) " >&6 18794 $as_echo_n "(cached) " >&6
11368 else 18795 else
11369 ac_check_lib_save_LIBS=$LIBS 18796 ac_check_lib_save_LIBS=$LIBS
11370 LIBS="-lkvm $LIBS" 18797 LIBS="-lkvm $LIBS"
11371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18798 cat >conftest.$ac_ext <<_ACEOF
18799 /* confdefs.h. */
18800 _ACEOF
18801 cat confdefs.h >>conftest.$ac_ext
18802 cat >>conftest.$ac_ext <<_ACEOF
11372 /* end confdefs.h. */ 18803 /* end confdefs.h. */
11373 18804
11374 /* Override any GCC internal prototype to avoid an error. 18805 /* Override any GCC internal prototype to avoid an error.
11375 Use char because int might match the return type of a GCC 18806 Use char because int might match the return type of a GCC
11376 builtin and then its argument prototype would still apply. */ 18807 builtin and then its argument prototype would still apply. */
11384 return kvm_open (); 18815 return kvm_open ();
11385 ; 18816 ;
11386 return 0; 18817 return 0;
11387 } 18818 }
11388 _ACEOF 18819 _ACEOF
11389 if ac_fn_c_try_link "$LINENO"; then : 18820 rm -f conftest.$ac_objext conftest$ac_exeext
18821 if { (ac_try="$ac_link"
18822 case "(($ac_try" in
18823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18824 *) ac_try_echo=$ac_try;;
18825 esac
18826 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18827 $as_echo "$ac_try_echo") >&5
18828 (eval "$ac_link") 2>conftest.er1
18829 ac_status=$?
18830 grep -v '^ *+' conftest.er1 >conftest.err
18831 rm -f conftest.er1
18832 cat conftest.err >&5
18833 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } && {
18835 test -z "$ac_c_werror_flag" ||
18836 test ! -s conftest.err
18837 } && test -s conftest$ac_exeext && {
18838 test "$cross_compiling" = yes ||
18839 $as_test_x conftest$ac_exeext
18840 }; then
11390 ac_cv_lib_kvm_kvm_open=yes 18841 ac_cv_lib_kvm_kvm_open=yes
11391 else 18842 else
11392 ac_cv_lib_kvm_kvm_open=no 18843 $as_echo "$as_me: failed program was:" >&5
11393 fi 18844 sed 's/^/| /' conftest.$ac_ext >&5
11394 rm -f core conftest.err conftest.$ac_objext \ 18845
11395 conftest$ac_exeext conftest.$ac_ext 18846 ac_cv_lib_kvm_kvm_open=no
18847 fi
18848
18849 rm -rf conftest.dSYM
18850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18851 conftest$ac_exeext conftest.$ac_ext
11396 LIBS=$ac_check_lib_save_LIBS 18852 LIBS=$ac_check_lib_save_LIBS
11397 fi 18853 fi
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5 18854 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
11399 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } 18855 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
11400 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then : 18856 if test $ac_cv_lib_kvm_kvm_open = yes; then
11401 LIBS="-lkvm $LIBS" 18857 LIBS="-lkvm $LIBS"
11402 fi 18858 fi
11403 18859
11404 # Check for the 4.4BSD definition of getloadavg. 18860 # Check for the 4.4BSD definition of getloadavg.
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5 18861 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
11406 $as_echo_n "checking for getloadavg in -lutil... " >&6; } 18862 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
11407 if test "${ac_cv_lib_util_getloadavg+set}" = set; then : 18863 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
11408 $as_echo_n "(cached) " >&6 18864 $as_echo_n "(cached) " >&6
11409 else 18865 else
11410 ac_check_lib_save_LIBS=$LIBS 18866 ac_check_lib_save_LIBS=$LIBS
11411 LIBS="-lutil $LIBS" 18867 LIBS="-lutil $LIBS"
11412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18868 cat >conftest.$ac_ext <<_ACEOF
18869 /* confdefs.h. */
18870 _ACEOF
18871 cat confdefs.h >>conftest.$ac_ext
18872 cat >>conftest.$ac_ext <<_ACEOF
11413 /* end confdefs.h. */ 18873 /* end confdefs.h. */
11414 18874
11415 /* Override any GCC internal prototype to avoid an error. 18875 /* Override any GCC internal prototype to avoid an error.
11416 Use char because int might match the return type of a GCC 18876 Use char because int might match the return type of a GCC
11417 builtin and then its argument prototype would still apply. */ 18877 builtin and then its argument prototype would still apply. */
11425 return getloadavg (); 18885 return getloadavg ();
11426 ; 18886 ;
11427 return 0; 18887 return 0;
11428 } 18888 }
11429 _ACEOF 18889 _ACEOF
11430 if ac_fn_c_try_link "$LINENO"; then : 18890 rm -f conftest.$ac_objext conftest$ac_exeext
18891 if { (ac_try="$ac_link"
18892 case "(($ac_try" in
18893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18894 *) ac_try_echo=$ac_try;;
18895 esac
18896 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18897 $as_echo "$ac_try_echo") >&5
18898 (eval "$ac_link") 2>conftest.er1
18899 ac_status=$?
18900 grep -v '^ *+' conftest.er1 >conftest.err
18901 rm -f conftest.er1
18902 cat conftest.err >&5
18903 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } && {
18905 test -z "$ac_c_werror_flag" ||
18906 test ! -s conftest.err
18907 } && test -s conftest$ac_exeext && {
18908 test "$cross_compiling" = yes ||
18909 $as_test_x conftest$ac_exeext
18910 }; then
11431 ac_cv_lib_util_getloadavg=yes 18911 ac_cv_lib_util_getloadavg=yes
11432 else 18912 else
11433 ac_cv_lib_util_getloadavg=no 18913 $as_echo "$as_me: failed program was:" >&5
11434 fi 18914 sed 's/^/| /' conftest.$ac_ext >&5
11435 rm -f core conftest.err conftest.$ac_objext \ 18915
11436 conftest$ac_exeext conftest.$ac_ext 18916 ac_cv_lib_util_getloadavg=no
18917 fi
18918
18919 rm -rf conftest.dSYM
18920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18921 conftest$ac_exeext conftest.$ac_ext
11437 LIBS=$ac_check_lib_save_LIBS 18922 LIBS=$ac_check_lib_save_LIBS
11438 fi 18923 fi
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5 18924 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
11440 $as_echo "$ac_cv_lib_util_getloadavg" >&6; } 18925 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
11441 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then : 18926 if test $ac_cv_lib_util_getloadavg = yes; then
11442 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 18927 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
11443 fi 18928 fi
11444 18929
11445 fi 18930 fi
11446 18931
11447 if test $ac_have_func = no; then 18932 if test $ac_have_func = no; then
11448 # There is a commonly available library for RS/6000 AIX. 18933 # There is a commonly available library for RS/6000 AIX.
11449 # Since it is not a standard part of AIX, it might be installed locally. 18934 # Since it is not a standard part of AIX, it might be installed locally.
11450 ac_getloadavg_LIBS=$LIBS 18935 ac_getloadavg_LIBS=$LIBS
11451 LIBS="-L/usr/local/lib $LIBS" 18936 LIBS="-L/usr/local/lib $LIBS"
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5 18937 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
11453 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } 18938 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
11454 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then : 18939 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
11455 $as_echo_n "(cached) " >&6 18940 $as_echo_n "(cached) " >&6
11456 else 18941 else
11457 ac_check_lib_save_LIBS=$LIBS 18942 ac_check_lib_save_LIBS=$LIBS
11458 LIBS="-lgetloadavg $LIBS" 18943 LIBS="-lgetloadavg $LIBS"
11459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18944 cat >conftest.$ac_ext <<_ACEOF
18945 /* confdefs.h. */
18946 _ACEOF
18947 cat confdefs.h >>conftest.$ac_ext
18948 cat >>conftest.$ac_ext <<_ACEOF
11460 /* end confdefs.h. */ 18949 /* end confdefs.h. */
11461 18950
11462 /* Override any GCC internal prototype to avoid an error. 18951 /* Override any GCC internal prototype to avoid an error.
11463 Use char because int might match the return type of a GCC 18952 Use char because int might match the return type of a GCC
11464 builtin and then its argument prototype would still apply. */ 18953 builtin and then its argument prototype would still apply. */
11472 return getloadavg (); 18961 return getloadavg ();
11473 ; 18962 ;
11474 return 0; 18963 return 0;
11475 } 18964 }
11476 _ACEOF 18965 _ACEOF
11477 if ac_fn_c_try_link "$LINENO"; then : 18966 rm -f conftest.$ac_objext conftest$ac_exeext
18967 if { (ac_try="$ac_link"
18968 case "(($ac_try" in
18969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18970 *) ac_try_echo=$ac_try;;
18971 esac
18972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18973 $as_echo "$ac_try_echo") >&5
18974 (eval "$ac_link") 2>conftest.er1
18975 ac_status=$?
18976 grep -v '^ *+' conftest.er1 >conftest.err
18977 rm -f conftest.er1
18978 cat conftest.err >&5
18979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18980 (exit $ac_status); } && {
18981 test -z "$ac_c_werror_flag" ||
18982 test ! -s conftest.err
18983 } && test -s conftest$ac_exeext && {
18984 test "$cross_compiling" = yes ||
18985 $as_test_x conftest$ac_exeext
18986 }; then
11478 ac_cv_lib_getloadavg_getloadavg=yes 18987 ac_cv_lib_getloadavg_getloadavg=yes
11479 else 18988 else
11480 ac_cv_lib_getloadavg_getloadavg=no 18989 $as_echo "$as_me: failed program was:" >&5
11481 fi 18990 sed 's/^/| /' conftest.$ac_ext >&5
11482 rm -f core conftest.err conftest.$ac_objext \ 18991
11483 conftest$ac_exeext conftest.$ac_ext 18992 ac_cv_lib_getloadavg_getloadavg=no
18993 fi
18994
18995 rm -rf conftest.dSYM
18996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18997 conftest$ac_exeext conftest.$ac_ext
11484 LIBS=$ac_check_lib_save_LIBS 18998 LIBS=$ac_check_lib_save_LIBS
11485 fi 18999 fi
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5 19000 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
11487 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } 19001 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
11488 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then : 19002 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
11489 LIBS="-lgetloadavg $LIBS" 19003 LIBS="-lgetloadavg $LIBS"
11490 else 19004 else
11491 LIBS=$ac_getloadavg_LIBS 19005 LIBS=$ac_getloadavg_LIBS
11492 fi 19006 fi
11493 19007
11494 fi 19008 fi
11495 19009
11496 # Make sure it is really in the library, if we think we found it, 19010 # Make sure it is really in the library, if we think we found it,
11497 # otherwise set up the replacement function. 19011 # otherwise set up the replacement function.
19012
11498 for ac_func in getloadavg 19013 for ac_func in getloadavg
11499 do : 19014 do
11500 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg" 19015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11501 if test "x$ac_cv_func_getloadavg" = x""yes; then : 19016 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19017 $as_echo_n "checking for $ac_func... " >&6; }
19018 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19019 $as_echo_n "(cached) " >&6
19020 else
19021 cat >conftest.$ac_ext <<_ACEOF
19022 /* confdefs.h. */
19023 _ACEOF
19024 cat confdefs.h >>conftest.$ac_ext
19025 cat >>conftest.$ac_ext <<_ACEOF
19026 /* end confdefs.h. */
19027 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19028 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19029 #define $ac_func innocuous_$ac_func
19030
19031 /* System header to define __stub macros and hopefully few prototypes,
19032 which can conflict with char $ac_func (); below.
19033 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19034 <limits.h> exists even on freestanding compilers. */
19035
19036 #ifdef __STDC__
19037 # include <limits.h>
19038 #else
19039 # include <assert.h>
19040 #endif
19041
19042 #undef $ac_func
19043
19044 /* Override any GCC internal prototype to avoid an error.
19045 Use char because int might match the return type of a GCC
19046 builtin and then its argument prototype would still apply. */
19047 #ifdef __cplusplus
19048 extern "C"
19049 #endif
19050 char $ac_func ();
19051 /* The GNU C library defines this for functions which it implements
19052 to always fail with ENOSYS. Some functions are actually named
19053 something starting with __ and the normal name is an alias. */
19054 #if defined __stub_$ac_func || defined __stub___$ac_func
19055 choke me
19056 #endif
19057
19058 int
19059 main ()
19060 {
19061 return $ac_func ();
19062 ;
19063 return 0;
19064 }
19065 _ACEOF
19066 rm -f conftest.$ac_objext conftest$ac_exeext
19067 if { (ac_try="$ac_link"
19068 case "(($ac_try" in
19069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19070 *) ac_try_echo=$ac_try;;
19071 esac
19072 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19073 $as_echo "$ac_try_echo") >&5
19074 (eval "$ac_link") 2>conftest.er1
19075 ac_status=$?
19076 grep -v '^ *+' conftest.er1 >conftest.err
19077 rm -f conftest.er1
19078 cat conftest.err >&5
19079 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19080 (exit $ac_status); } && {
19081 test -z "$ac_c_werror_flag" ||
19082 test ! -s conftest.err
19083 } && test -s conftest$ac_exeext && {
19084 test "$cross_compiling" = yes ||
19085 $as_test_x conftest$ac_exeext
19086 }; then
19087 eval "$as_ac_var=yes"
19088 else
19089 $as_echo "$as_me: failed program was:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19091
19092 eval "$as_ac_var=no"
19093 fi
19094
19095 rm -rf conftest.dSYM
19096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19097 conftest$ac_exeext conftest.$ac_ext
19098 fi
19099 ac_res=`eval 'as_val=${'$as_ac_var'}
19100 $as_echo "$as_val"'`
19101 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19102 $as_echo "$ac_res" >&6; }
19103 if test `eval 'as_val=${'$as_ac_var'}
19104 $as_echo "$as_val"'` = yes; then
11502 cat >>confdefs.h <<_ACEOF 19105 cat >>confdefs.h <<_ACEOF
11503 #define HAVE_GETLOADAVG 1 19106 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11504 _ACEOF 19107 _ACEOF
11505 19108
11506 else 19109 else
11507 case " $LIBOBJS " in 19110 case " $LIBOBJS " in
11508 *" getloadavg.$ac_objext "* ) ;; 19111 *" getloadavg.$ac_objext "* ) ;;
11509 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" 19112 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
11510 ;; 19113 ;;
11511 esac 19114 esac
11512 19115
11513 19116
11514 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h 19117 cat >>confdefs.h <<\_ACEOF
19118 #define C_GETLOADAVG 1
19119 _ACEOF
11515 19120
11516 # Figure out what our getloadavg.c needs. 19121 # Figure out what our getloadavg.c needs.
11517 ac_have_func=no 19122 ac_have_func=no
11518 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default" 19123 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
11519 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then : 19124 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19125 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19126 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19127 $as_echo_n "(cached) " >&6
19128 fi
19129 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19130 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19131 else
19132 # Is the header compilable?
19133 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
19134 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
19135 cat >conftest.$ac_ext <<_ACEOF
19136 /* confdefs.h. */
19137 _ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 $ac_includes_default
19142 #include <sys/dg_sys_info.h>
19143 _ACEOF
19144 rm -f conftest.$ac_objext
19145 if { (ac_try="$ac_compile"
19146 case "(($ac_try" in
19147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19148 *) ac_try_echo=$ac_try;;
19149 esac
19150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19151 $as_echo "$ac_try_echo") >&5
19152 (eval "$ac_compile") 2>conftest.er1
19153 ac_status=$?
19154 grep -v '^ *+' conftest.er1 >conftest.err
19155 rm -f conftest.er1
19156 cat conftest.err >&5
19157 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19158 (exit $ac_status); } && {
19159 test -z "$ac_c_werror_flag" ||
19160 test ! -s conftest.err
19161 } && test -s conftest.$ac_objext; then
19162 ac_header_compiler=yes
19163 else
19164 $as_echo "$as_me: failed program was:" >&5
19165 sed 's/^/| /' conftest.$ac_ext >&5
19166
19167 ac_header_compiler=no
19168 fi
19169
19170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19171 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19172 $as_echo "$ac_header_compiler" >&6; }
19173
19174 # Is the header present?
19175 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
19176 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
19177 cat >conftest.$ac_ext <<_ACEOF
19178 /* confdefs.h. */
19179 _ACEOF
19180 cat confdefs.h >>conftest.$ac_ext
19181 cat >>conftest.$ac_ext <<_ACEOF
19182 /* end confdefs.h. */
19183 #include <sys/dg_sys_info.h>
19184 _ACEOF
19185 if { (ac_try="$ac_cpp conftest.$ac_ext"
19186 case "(($ac_try" in
19187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19188 *) ac_try_echo=$ac_try;;
19189 esac
19190 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19191 $as_echo "$ac_try_echo") >&5
19192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19193 ac_status=$?
19194 grep -v '^ *+' conftest.er1 >conftest.err
19195 rm -f conftest.er1
19196 cat conftest.err >&5
19197 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } >/dev/null && {
19199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19200 test ! -s conftest.err
19201 }; then
19202 ac_header_preproc=yes
19203 else
19204 $as_echo "$as_me: failed program was:" >&5
19205 sed 's/^/| /' conftest.$ac_ext >&5
19206
19207 ac_header_preproc=no
19208 fi
19209
19210 rm -f conftest.err conftest.$ac_ext
19211 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19212 $as_echo "$ac_header_preproc" >&6; }
19213
19214 # So? What about this header?
19215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19216 yes:no: )
19217 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
19218 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19219 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
19220 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
19221 ac_header_preproc=yes
19222 ;;
19223 no:yes:* )
19224 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
19225 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
19226 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
19227 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
19228 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
19229 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
19230 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
19231 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
19232 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
19233 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
19234 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
19235 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19236
19237 ;;
19238 esac
19239 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19240 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19241 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19242 $as_echo_n "(cached) " >&6
19243 else
19244 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19245 fi
19246 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19247 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19248
19249 fi
19250 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
11520 ac_have_func=yes 19251 ac_have_func=yes
11521 19252
11522 $as_echo "#define DGUX 1" >>confdefs.h 19253 cat >>confdefs.h <<\_ACEOF
11523 19254 #define DGUX 1
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5 19255 _ACEOF
19256
19257
19258 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
11525 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } 19259 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
11526 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then : 19260 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
11527 $as_echo_n "(cached) " >&6 19261 $as_echo_n "(cached) " >&6
11528 else 19262 else
11529 ac_check_lib_save_LIBS=$LIBS 19263 ac_check_lib_save_LIBS=$LIBS
11530 LIBS="-ldgc $LIBS" 19264 LIBS="-ldgc $LIBS"
11531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19265 cat >conftest.$ac_ext <<_ACEOF
19266 /* confdefs.h. */
19267 _ACEOF
19268 cat confdefs.h >>conftest.$ac_ext
19269 cat >>conftest.$ac_ext <<_ACEOF
11532 /* end confdefs.h. */ 19270 /* end confdefs.h. */
11533 19271
11534 /* Override any GCC internal prototype to avoid an error. 19272 /* Override any GCC internal prototype to avoid an error.
11535 Use char because int might match the return type of a GCC 19273 Use char because int might match the return type of a GCC
11536 builtin and then its argument prototype would still apply. */ 19274 builtin and then its argument prototype would still apply. */
11544 return dg_sys_info (); 19282 return dg_sys_info ();
11545 ; 19283 ;
11546 return 0; 19284 return 0;
11547 } 19285 }
11548 _ACEOF 19286 _ACEOF
11549 if ac_fn_c_try_link "$LINENO"; then : 19287 rm -f conftest.$ac_objext conftest$ac_exeext
19288 if { (ac_try="$ac_link"
19289 case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19292 esac
19293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19294 $as_echo "$ac_try_echo") >&5
19295 (eval "$ac_link") 2>conftest.er1
19296 ac_status=$?
19297 grep -v '^ *+' conftest.er1 >conftest.err
19298 rm -f conftest.er1
19299 cat conftest.err >&5
19300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19301 (exit $ac_status); } && {
19302 test -z "$ac_c_werror_flag" ||
19303 test ! -s conftest.err
19304 } && test -s conftest$ac_exeext && {
19305 test "$cross_compiling" = yes ||
19306 $as_test_x conftest$ac_exeext
19307 }; then
11550 ac_cv_lib_dgc_dg_sys_info=yes 19308 ac_cv_lib_dgc_dg_sys_info=yes
11551 else 19309 else
11552 ac_cv_lib_dgc_dg_sys_info=no 19310 $as_echo "$as_me: failed program was:" >&5
11553 fi 19311 sed 's/^/| /' conftest.$ac_ext >&5
11554 rm -f core conftest.err conftest.$ac_objext \ 19312
11555 conftest$ac_exeext conftest.$ac_ext 19313 ac_cv_lib_dgc_dg_sys_info=no
19314 fi
19315
19316 rm -rf conftest.dSYM
19317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19318 conftest$ac_exeext conftest.$ac_ext
11556 LIBS=$ac_check_lib_save_LIBS 19319 LIBS=$ac_check_lib_save_LIBS
11557 fi 19320 fi
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5 19321 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
11559 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } 19322 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
11560 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then : 19323 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
11561 cat >>confdefs.h <<_ACEOF 19324 cat >>confdefs.h <<_ACEOF
11562 #define HAVE_LIBDGC 1 19325 #define HAVE_LIBDGC 1
11563 _ACEOF 19326 _ACEOF
11564 19327
11565 LIBS="-ldgc $LIBS" 19328 LIBS="-ldgc $LIBS"
11568 19331
11569 fi 19332 fi
11570 19333
11571 19334
11572 19335
11573 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" 19336 if test "${ac_cv_header_locale_h+set}" = set; then
11574 if test "x$ac_cv_header_locale_h" = x""yes; then : 19337 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
11575 19338 $as_echo_n "checking for locale.h... " >&6; }
11576 fi 19339 if test "${ac_cv_header_locale_h+set}" = set; then
19340 $as_echo_n "(cached) " >&6
19341 fi
19342 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19343 $as_echo "$ac_cv_header_locale_h" >&6; }
19344 else
19345 # Is the header compilable?
19346 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19347 $as_echo_n "checking locale.h usability... " >&6; }
19348 cat >conftest.$ac_ext <<_ACEOF
19349 /* confdefs.h. */
19350 _ACEOF
19351 cat confdefs.h >>conftest.$ac_ext
19352 cat >>conftest.$ac_ext <<_ACEOF
19353 /* end confdefs.h. */
19354 $ac_includes_default
19355 #include <locale.h>
19356 _ACEOF
19357 rm -f conftest.$ac_objext
19358 if { (ac_try="$ac_compile"
19359 case "(($ac_try" in
19360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19361 *) ac_try_echo=$ac_try;;
19362 esac
19363 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19364 $as_echo "$ac_try_echo") >&5
19365 (eval "$ac_compile") 2>conftest.er1
19366 ac_status=$?
19367 grep -v '^ *+' conftest.er1 >conftest.err
19368 rm -f conftest.er1
19369 cat conftest.err >&5
19370 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19371 (exit $ac_status); } && {
19372 test -z "$ac_c_werror_flag" ||
19373 test ! -s conftest.err
19374 } && test -s conftest.$ac_objext; then
19375 ac_header_compiler=yes
19376 else
19377 $as_echo "$as_me: failed program was:" >&5
19378 sed 's/^/| /' conftest.$ac_ext >&5
19379
19380 ac_header_compiler=no
19381 fi
19382
19383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19384 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19385 $as_echo "$ac_header_compiler" >&6; }
19386
19387 # Is the header present?
19388 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19389 $as_echo_n "checking locale.h presence... " >&6; }
19390 cat >conftest.$ac_ext <<_ACEOF
19391 /* confdefs.h. */
19392 _ACEOF
19393 cat confdefs.h >>conftest.$ac_ext
19394 cat >>conftest.$ac_ext <<_ACEOF
19395 /* end confdefs.h. */
19396 #include <locale.h>
19397 _ACEOF
19398 if { (ac_try="$ac_cpp conftest.$ac_ext"
19399 case "(($ac_try" in
19400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19401 *) ac_try_echo=$ac_try;;
19402 esac
19403 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19404 $as_echo "$ac_try_echo") >&5
19405 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19406 ac_status=$?
19407 grep -v '^ *+' conftest.er1 >conftest.err
19408 rm -f conftest.er1
19409 cat conftest.err >&5
19410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } >/dev/null && {
19412 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19413 test ! -s conftest.err
19414 }; then
19415 ac_header_preproc=yes
19416 else
19417 $as_echo "$as_me: failed program was:" >&5
19418 sed 's/^/| /' conftest.$ac_ext >&5
19419
19420 ac_header_preproc=no
19421 fi
19422
19423 rm -f conftest.err conftest.$ac_ext
19424 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19425 $as_echo "$ac_header_preproc" >&6; }
19426
19427 # So? What about this header?
19428 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19429 yes:no: )
19430 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19431 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19432 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19433 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19434 ac_header_preproc=yes
19435 ;;
19436 no:yes:* )
19437 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19438 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19439 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19440 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19441 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19442 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19443 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19444 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19445 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19446 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19447 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19448 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19449
19450 ;;
19451 esac
19452 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19453 $as_echo_n "checking for locale.h... " >&6; }
19454 if test "${ac_cv_header_locale_h+set}" = set; then
19455 $as_echo_n "(cached) " >&6
19456 else
19457 ac_cv_header_locale_h=$ac_header_preproc
19458 fi
19459 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19460 $as_echo "$ac_cv_header_locale_h" >&6; }
19461
19462 fi
19463
11577 19464
11578 19465
11579 for ac_func in setlocale 19466 for ac_func in setlocale
11580 do : 19467 do
11581 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" 19468 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11582 if test "x$ac_cv_func_setlocale" = x""yes; then : 19469 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
19470 $as_echo_n "checking for $ac_func... " >&6; }
19471 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19472 $as_echo_n "(cached) " >&6
19473 else
19474 cat >conftest.$ac_ext <<_ACEOF
19475 /* confdefs.h. */
19476 _ACEOF
19477 cat confdefs.h >>conftest.$ac_ext
19478 cat >>conftest.$ac_ext <<_ACEOF
19479 /* end confdefs.h. */
19480 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19481 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19482 #define $ac_func innocuous_$ac_func
19483
19484 /* System header to define __stub macros and hopefully few prototypes,
19485 which can conflict with char $ac_func (); below.
19486 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19487 <limits.h> exists even on freestanding compilers. */
19488
19489 #ifdef __STDC__
19490 # include <limits.h>
19491 #else
19492 # include <assert.h>
19493 #endif
19494
19495 #undef $ac_func
19496
19497 /* Override any GCC internal prototype to avoid an error.
19498 Use char because int might match the return type of a GCC
19499 builtin and then its argument prototype would still apply. */
19500 #ifdef __cplusplus
19501 extern "C"
19502 #endif
19503 char $ac_func ();
19504 /* The GNU C library defines this for functions which it implements
19505 to always fail with ENOSYS. Some functions are actually named
19506 something starting with __ and the normal name is an alias. */
19507 #if defined __stub_$ac_func || defined __stub___$ac_func
19508 choke me
19509 #endif
19510
19511 int
19512 main ()
19513 {
19514 return $ac_func ();
19515 ;
19516 return 0;
19517 }
19518 _ACEOF
19519 rm -f conftest.$ac_objext conftest$ac_exeext
19520 if { (ac_try="$ac_link"
19521 case "(($ac_try" in
19522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19523 *) ac_try_echo=$ac_try;;
19524 esac
19525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19526 $as_echo "$ac_try_echo") >&5
19527 (eval "$ac_link") 2>conftest.er1
19528 ac_status=$?
19529 grep -v '^ *+' conftest.er1 >conftest.err
19530 rm -f conftest.er1
19531 cat conftest.err >&5
19532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19533 (exit $ac_status); } && {
19534 test -z "$ac_c_werror_flag" ||
19535 test ! -s conftest.err
19536 } && test -s conftest$ac_exeext && {
19537 test "$cross_compiling" = yes ||
19538 $as_test_x conftest$ac_exeext
19539 }; then
19540 eval "$as_ac_var=yes"
19541 else
19542 $as_echo "$as_me: failed program was:" >&5
19543 sed 's/^/| /' conftest.$ac_ext >&5
19544
19545 eval "$as_ac_var=no"
19546 fi
19547
19548 rm -rf conftest.dSYM
19549 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19550 conftest$ac_exeext conftest.$ac_ext
19551 fi
19552 ac_res=`eval 'as_val=${'$as_ac_var'}
19553 $as_echo "$as_val"'`
19554 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19555 $as_echo "$ac_res" >&6; }
19556 if test `eval 'as_val=${'$as_ac_var'}
19557 $as_echo "$as_val"'` = yes; then
11583 cat >>confdefs.h <<_ACEOF 19558 cat >>confdefs.h <<_ACEOF
11584 #define HAVE_SETLOCALE 1 19559 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11585 _ACEOF 19560 _ACEOF
11586 19561
11587 fi 19562 fi
11588 done 19563 done
11589 19564
11592 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because 19567 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
11593 # Irix 4.0.5F has the header but not the library. 19568 # Irix 4.0.5F has the header but not the library.
11594 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then 19569 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
11595 ac_have_func=yes 19570 ac_have_func=yes
11596 19571
11597 $as_echo "#define SVR4 1" >>confdefs.h 19572 cat >>confdefs.h <<\_ACEOF
19573 #define SVR4 1
19574 _ACEOF
11598 19575
11599 fi 19576 fi
11600 19577
11601 if test $ac_have_func = no; then 19578 if test $ac_have_func = no; then
11602 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default" 19579 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
11603 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then : 19580 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19581 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19582 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19583 $as_echo_n "(cached) " >&6
19584 fi
19585 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19586 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19587 else
19588 # Is the header compilable?
19589 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19590 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19591 cat >conftest.$ac_ext <<_ACEOF
19592 /* confdefs.h. */
19593 _ACEOF
19594 cat confdefs.h >>conftest.$ac_ext
19595 cat >>conftest.$ac_ext <<_ACEOF
19596 /* end confdefs.h. */
19597 $ac_includes_default
19598 #include <inq_stats/cpustats.h>
19599 _ACEOF
19600 rm -f conftest.$ac_objext
19601 if { (ac_try="$ac_compile"
19602 case "(($ac_try" in
19603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19604 *) ac_try_echo=$ac_try;;
19605 esac
19606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19607 $as_echo "$ac_try_echo") >&5
19608 (eval "$ac_compile") 2>conftest.er1
19609 ac_status=$?
19610 grep -v '^ *+' conftest.er1 >conftest.err
19611 rm -f conftest.er1
19612 cat conftest.err >&5
19613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19614 (exit $ac_status); } && {
19615 test -z "$ac_c_werror_flag" ||
19616 test ! -s conftest.err
19617 } && test -s conftest.$ac_objext; then
19618 ac_header_compiler=yes
19619 else
19620 $as_echo "$as_me: failed program was:" >&5
19621 sed 's/^/| /' conftest.$ac_ext >&5
19622
19623 ac_header_compiler=no
19624 fi
19625
19626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19627 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19628 $as_echo "$ac_header_compiler" >&6; }
19629
19630 # Is the header present?
19631 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19632 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19633 cat >conftest.$ac_ext <<_ACEOF
19634 /* confdefs.h. */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19639 #include <inq_stats/cpustats.h>
19640 _ACEOF
19641 if { (ac_try="$ac_cpp conftest.$ac_ext"
19642 case "(($ac_try" in
19643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644 *) ac_try_echo=$ac_try;;
19645 esac
19646 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19647 $as_echo "$ac_try_echo") >&5
19648 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19649 ac_status=$?
19650 grep -v '^ *+' conftest.er1 >conftest.err
19651 rm -f conftest.er1
19652 cat conftest.err >&5
19653 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } >/dev/null && {
19655 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19656 test ! -s conftest.err
19657 }; then
19658 ac_header_preproc=yes
19659 else
19660 $as_echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19662
19663 ac_header_preproc=no
19664 fi
19665
19666 rm -f conftest.err conftest.$ac_ext
19667 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19668 $as_echo "$ac_header_preproc" >&6; }
19669
19670 # So? What about this header?
19671 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19672 yes:no: )
19673 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19674 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19675 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19676 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19677 ac_header_preproc=yes
19678 ;;
19679 no:yes:* )
19680 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19681 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19682 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19683 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19684 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19685 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19686 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19687 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19688 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19689 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19690 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19691 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19692
19693 ;;
19694 esac
19695 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19696 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19697 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19698 $as_echo_n "(cached) " >&6
19699 else
19700 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19701 fi
19702 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19703 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19704
19705 fi
19706 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
11604 ac_have_func=yes 19707 ac_have_func=yes
11605 19708
11606 $as_echo "#define UMAX 1" >>confdefs.h 19709 cat >>confdefs.h <<\_ACEOF
11607 19710 #define UMAX 1
11608 19711 _ACEOF
11609 $as_echo "#define UMAX4_3 1" >>confdefs.h 19712
19713
19714 cat >>confdefs.h <<\_ACEOF
19715 #define UMAX4_3 1
19716 _ACEOF
11610 19717
11611 fi 19718 fi
11612 19719
11613 19720
11614 fi 19721 fi
11615 19722
11616 if test $ac_have_func = no; then 19723 if test $ac_have_func = no; then
11617 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default" 19724 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
11618 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then : 19725 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
11619 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h 19726 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19727 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19728 $as_echo_n "(cached) " >&6
19729 fi
19730 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19731 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19732 else
19733 # Is the header compilable?
19734 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19735 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19736 cat >conftest.$ac_ext <<_ACEOF
19737 /* confdefs.h. */
19738 _ACEOF
19739 cat confdefs.h >>conftest.$ac_ext
19740 cat >>conftest.$ac_ext <<_ACEOF
19741 /* end confdefs.h. */
19742 $ac_includes_default
19743 #include <sys/cpustats.h>
19744 _ACEOF
19745 rm -f conftest.$ac_objext
19746 if { (ac_try="$ac_compile"
19747 case "(($ac_try" in
19748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19749 *) ac_try_echo=$ac_try;;
19750 esac
19751 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19752 $as_echo "$ac_try_echo") >&5
19753 (eval "$ac_compile") 2>conftest.er1
19754 ac_status=$?
19755 grep -v '^ *+' conftest.er1 >conftest.err
19756 rm -f conftest.er1
19757 cat conftest.err >&5
19758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19759 (exit $ac_status); } && {
19760 test -z "$ac_c_werror_flag" ||
19761 test ! -s conftest.err
19762 } && test -s conftest.$ac_objext; then
19763 ac_header_compiler=yes
19764 else
19765 $as_echo "$as_me: failed program was:" >&5
19766 sed 's/^/| /' conftest.$ac_ext >&5
19767
19768 ac_header_compiler=no
19769 fi
19770
19771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19772 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19773 $as_echo "$ac_header_compiler" >&6; }
19774
19775 # Is the header present?
19776 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19777 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19778 cat >conftest.$ac_ext <<_ACEOF
19779 /* confdefs.h. */
19780 _ACEOF
19781 cat confdefs.h >>conftest.$ac_ext
19782 cat >>conftest.$ac_ext <<_ACEOF
19783 /* end confdefs.h. */
19784 #include <sys/cpustats.h>
19785 _ACEOF
19786 if { (ac_try="$ac_cpp conftest.$ac_ext"
19787 case "(($ac_try" in
19788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19789 *) ac_try_echo=$ac_try;;
19790 esac
19791 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19792 $as_echo "$ac_try_echo") >&5
19793 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19794 ac_status=$?
19795 grep -v '^ *+' conftest.er1 >conftest.err
19796 rm -f conftest.er1
19797 cat conftest.err >&5
19798 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19799 (exit $ac_status); } >/dev/null && {
19800 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19801 test ! -s conftest.err
19802 }; then
19803 ac_header_preproc=yes
19804 else
19805 $as_echo "$as_me: failed program was:" >&5
19806 sed 's/^/| /' conftest.$ac_ext >&5
19807
19808 ac_header_preproc=no
19809 fi
19810
19811 rm -f conftest.err conftest.$ac_ext
19812 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19813 $as_echo "$ac_header_preproc" >&6; }
19814
19815 # So? What about this header?
19816 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19817 yes:no: )
19818 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19819 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19820 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19821 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19822 ac_header_preproc=yes
19823 ;;
19824 no:yes:* )
19825 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19826 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19827 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19828 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19829 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19830 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19831 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19832 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19833 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19834 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19835 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19836 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19837
19838 ;;
19839 esac
19840 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19841 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19842 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19843 $as_echo_n "(cached) " >&6
19844 else
19845 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19846 fi
19847 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19848 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19849
19850 fi
19851 if test $ac_cv_header_sys_cpustats_h = yes; then
19852 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19853 #define UMAX 1
19854 _ACEOF
11620 19855
11621 fi 19856 fi
11622 19857
11623 19858
11624 fi 19859 fi
11625 19860
11626 if test $ac_have_func = no; then 19861 if test $ac_have_func = no; then
11627 for ac_header in mach/mach.h 19862
11628 do : 19863 for ac_header in mach/mach.h
11629 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default" 19864 do
11630 if test "x$ac_cv_header_mach_mach_h" = x""yes; then : 19865 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19866 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19867 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19868 $as_echo_n "checking for $ac_header... " >&6; }
19869 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19870 $as_echo_n "(cached) " >&6
19871 fi
19872 ac_res=`eval 'as_val=${'$as_ac_Header'}
19873 $as_echo "$as_val"'`
19874 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19875 $as_echo "$ac_res" >&6; }
19876 else
19877 # Is the header compilable?
19878 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19879 $as_echo_n "checking $ac_header usability... " >&6; }
19880 cat >conftest.$ac_ext <<_ACEOF
19881 /* confdefs.h. */
19882 _ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886 $ac_includes_default
19887 #include <$ac_header>
19888 _ACEOF
19889 rm -f conftest.$ac_objext
19890 if { (ac_try="$ac_compile"
19891 case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19894 esac
19895 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19896 $as_echo "$ac_try_echo") >&5
19897 (eval "$ac_compile") 2>conftest.er1
19898 ac_status=$?
19899 grep -v '^ *+' conftest.er1 >conftest.err
19900 rm -f conftest.er1
19901 cat conftest.err >&5
19902 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19903 (exit $ac_status); } && {
19904 test -z "$ac_c_werror_flag" ||
19905 test ! -s conftest.err
19906 } && test -s conftest.$ac_objext; then
19907 ac_header_compiler=yes
19908 else
19909 $as_echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19911
19912 ac_header_compiler=no
19913 fi
19914
19915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19916 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19917 $as_echo "$ac_header_compiler" >&6; }
19918
19919 # Is the header present?
19920 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19921 $as_echo_n "checking $ac_header presence... " >&6; }
19922 cat >conftest.$ac_ext <<_ACEOF
19923 /* confdefs.h. */
19924 _ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h. */
19928 #include <$ac_header>
19929 _ACEOF
19930 if { (ac_try="$ac_cpp conftest.$ac_ext"
19931 case "(($ac_try" in
19932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19933 *) ac_try_echo=$ac_try;;
19934 esac
19935 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19936 $as_echo "$ac_try_echo") >&5
19937 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19938 ac_status=$?
19939 grep -v '^ *+' conftest.er1 >conftest.err
19940 rm -f conftest.er1
19941 cat conftest.err >&5
19942 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19943 (exit $ac_status); } >/dev/null && {
19944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19945 test ! -s conftest.err
19946 }; then
19947 ac_header_preproc=yes
19948 else
19949 $as_echo "$as_me: failed program was:" >&5
19950 sed 's/^/| /' conftest.$ac_ext >&5
19951
19952 ac_header_preproc=no
19953 fi
19954
19955 rm -f conftest.err conftest.$ac_ext
19956 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19957 $as_echo "$ac_header_preproc" >&6; }
19958
19959 # So? What about this header?
19960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19961 yes:no: )
19962 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19963 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19965 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19966 ac_header_preproc=yes
19967 ;;
19968 no:yes:* )
19969 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19970 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19972 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19974 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19976 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19978 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19980 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19981
19982 ;;
19983 esac
19984 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19985 $as_echo_n "checking for $ac_header... " >&6; }
19986 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19987 $as_echo_n "(cached) " >&6
19988 else
19989 eval "$as_ac_Header=\$ac_header_preproc"
19990 fi
19991 ac_res=`eval 'as_val=${'$as_ac_Header'}
19992 $as_echo "$as_val"'`
19993 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19994 $as_echo "$ac_res" >&6; }
19995
19996 fi
19997 if test `eval 'as_val=${'$as_ac_Header'}
19998 $as_echo "$as_val"'` = yes; then
11631 cat >>confdefs.h <<_ACEOF 19999 cat >>confdefs.h <<_ACEOF
11632 #define HAVE_MACH_MACH_H 1 20000 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11633 _ACEOF 20001 _ACEOF
11634 20002
11635 fi 20003 fi
11636 20004
11637 done 20005 done
11638 20006
11639 fi 20007 fi
11640 20008
20009
11641 for ac_header in nlist.h 20010 for ac_header in nlist.h
11642 do : 20011 do
11643 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default" 20012 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
11644 if test "x$ac_cv_header_nlist_h" = x""yes; then : 20013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20014 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20015 $as_echo_n "checking for $ac_header... " >&6; }
20016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20017 $as_echo_n "(cached) " >&6
20018 fi
20019 ac_res=`eval 'as_val=${'$as_ac_Header'}
20020 $as_echo "$as_val"'`
20021 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20022 $as_echo "$ac_res" >&6; }
20023 else
20024 # Is the header compilable?
20025 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20026 $as_echo_n "checking $ac_header usability... " >&6; }
20027 cat >conftest.$ac_ext <<_ACEOF
20028 /* confdefs.h. */
20029 _ACEOF
20030 cat confdefs.h >>conftest.$ac_ext
20031 cat >>conftest.$ac_ext <<_ACEOF
20032 /* end confdefs.h. */
20033 $ac_includes_default
20034 #include <$ac_header>
20035 _ACEOF
20036 rm -f conftest.$ac_objext
20037 if { (ac_try="$ac_compile"
20038 case "(($ac_try" in
20039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20040 *) ac_try_echo=$ac_try;;
20041 esac
20042 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20043 $as_echo "$ac_try_echo") >&5
20044 (eval "$ac_compile") 2>conftest.er1
20045 ac_status=$?
20046 grep -v '^ *+' conftest.er1 >conftest.err
20047 rm -f conftest.er1
20048 cat conftest.err >&5
20049 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } && {
20051 test -z "$ac_c_werror_flag" ||
20052 test ! -s conftest.err
20053 } && test -s conftest.$ac_objext; then
20054 ac_header_compiler=yes
20055 else
20056 $as_echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20058
20059 ac_header_compiler=no
20060 fi
20061
20062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20063 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20064 $as_echo "$ac_header_compiler" >&6; }
20065
20066 # Is the header present?
20067 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20068 $as_echo_n "checking $ac_header presence... " >&6; }
20069 cat >conftest.$ac_ext <<_ACEOF
20070 /* confdefs.h. */
20071 _ACEOF
20072 cat confdefs.h >>conftest.$ac_ext
20073 cat >>conftest.$ac_ext <<_ACEOF
20074 /* end confdefs.h. */
20075 #include <$ac_header>
20076 _ACEOF
20077 if { (ac_try="$ac_cpp conftest.$ac_ext"
20078 case "(($ac_try" in
20079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20080 *) ac_try_echo=$ac_try;;
20081 esac
20082 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20083 $as_echo "$ac_try_echo") >&5
20084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20085 ac_status=$?
20086 grep -v '^ *+' conftest.er1 >conftest.err
20087 rm -f conftest.er1
20088 cat conftest.err >&5
20089 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } >/dev/null && {
20091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20092 test ! -s conftest.err
20093 }; then
20094 ac_header_preproc=yes
20095 else
20096 $as_echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20098
20099 ac_header_preproc=no
20100 fi
20101
20102 rm -f conftest.err conftest.$ac_ext
20103 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20104 $as_echo "$ac_header_preproc" >&6; }
20105
20106 # So? What about this header?
20107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20108 yes:no: )
20109 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20110 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20111 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20112 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20113 ac_header_preproc=yes
20114 ;;
20115 no:yes:* )
20116 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20117 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20118 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20119 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20120 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20121 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20122 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20123 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20124 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20125 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20126 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20127 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20128
20129 ;;
20130 esac
20131 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20132 $as_echo_n "checking for $ac_header... " >&6; }
20133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20134 $as_echo_n "(cached) " >&6
20135 else
20136 eval "$as_ac_Header=\$ac_header_preproc"
20137 fi
20138 ac_res=`eval 'as_val=${'$as_ac_Header'}
20139 $as_echo "$as_val"'`
20140 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20141 $as_echo "$ac_res" >&6; }
20142
20143 fi
20144 if test `eval 'as_val=${'$as_ac_Header'}
20145 $as_echo "$as_val"'` = yes; then
11645 cat >>confdefs.h <<_ACEOF 20146 cat >>confdefs.h <<_ACEOF
11646 #define HAVE_NLIST_H 1 20147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11647 _ACEOF 20148 _ACEOF
11648 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h> 20149 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
11649 " 20150 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; }
11650 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then : 20151 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
20152 $as_echo_n "(cached) " >&6
20153 else
20154 cat >conftest.$ac_ext <<_ACEOF
20155 /* confdefs.h. */
20156 _ACEOF
20157 cat confdefs.h >>conftest.$ac_ext
20158 cat >>conftest.$ac_ext <<_ACEOF
20159 /* end confdefs.h. */
20160 #include <nlist.h>
20161
20162 int
20163 main ()
20164 {
20165 static struct nlist ac_aggr;
20166 if (ac_aggr.n_un.n_name)
20167 return 0;
20168 ;
20169 return 0;
20170 }
20171 _ACEOF
20172 rm -f conftest.$ac_objext
20173 if { (ac_try="$ac_compile"
20174 case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177 esac
20178 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20179 $as_echo "$ac_try_echo") >&5
20180 (eval "$ac_compile") 2>conftest.er1
20181 ac_status=$?
20182 grep -v '^ *+' conftest.er1 >conftest.err
20183 rm -f conftest.er1
20184 cat conftest.err >&5
20185 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } && {
20187 test -z "$ac_c_werror_flag" ||
20188 test ! -s conftest.err
20189 } && test -s conftest.$ac_objext; then
20190 ac_cv_member_struct_nlist_n_un_n_name=yes
20191 else
20192 $as_echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20194
20195 cat >conftest.$ac_ext <<_ACEOF
20196 /* confdefs.h. */
20197 _ACEOF
20198 cat confdefs.h >>conftest.$ac_ext
20199 cat >>conftest.$ac_ext <<_ACEOF
20200 /* end confdefs.h. */
20201 #include <nlist.h>
20202
20203 int
20204 main ()
20205 {
20206 static struct nlist ac_aggr;
20207 if (sizeof ac_aggr.n_un.n_name)
20208 return 0;
20209 ;
20210 return 0;
20211 }
20212 _ACEOF
20213 rm -f conftest.$ac_objext
20214 if { (ac_try="$ac_compile"
20215 case "(($ac_try" in
20216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20217 *) ac_try_echo=$ac_try;;
20218 esac
20219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20220 $as_echo "$ac_try_echo") >&5
20221 (eval "$ac_compile") 2>conftest.er1
20222 ac_status=$?
20223 grep -v '^ *+' conftest.er1 >conftest.err
20224 rm -f conftest.er1
20225 cat conftest.err >&5
20226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } && {
20228 test -z "$ac_c_werror_flag" ||
20229 test ! -s conftest.err
20230 } && test -s conftest.$ac_objext; then
20231 ac_cv_member_struct_nlist_n_un_n_name=yes
20232 else
20233 $as_echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20235
20236 ac_cv_member_struct_nlist_n_un_n_name=no
20237 fi
20238
20239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20240 fi
20241
20242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20243 fi
20244 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20245 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20246 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
11651 20247
11652 cat >>confdefs.h <<_ACEOF 20248 cat >>confdefs.h <<_ACEOF
11653 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 20249 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
11654 _ACEOF 20250 _ACEOF
11655 20251
11656 20252
11657 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h 20253 cat >>confdefs.h <<\_ACEOF
20254 #define NLIST_NAME_UNION 1
20255 _ACEOF
11658 20256
11659 fi 20257 fi
11660 20258
11661 20259
11662 fi 20260 fi
11666 fi 20264 fi
11667 done 20265 done
11668 20266
11669 20267
11670 # Some definitions of getloadavg require that the program be installed setgid. 20268 # Some definitions of getloadavg require that the program be installed setgid.
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5 20269 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
11672 $as_echo_n "checking whether getloadavg requires setgid... " >&6; } 20270 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
11673 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then : 20271 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
11674 $as_echo_n "(cached) " >&6 20272 $as_echo_n "(cached) " >&6
11675 else 20273 else
11676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20274 cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h. */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
11677 /* end confdefs.h. */ 20279 /* end confdefs.h. */
11678 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" 20280 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
11679 #ifdef LDAV_PRIVILEGED 20281 #ifdef LDAV_PRIVILEGED
11680 Yowza Am I SETGID yet 20282 Yowza Am I SETGID yet
11681 #endif 20283 #endif
11682 _ACEOF 20284 _ACEOF
11683 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 20285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11684 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then : 20286 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
11685 ac_cv_func_getloadavg_setgid=yes 20287 ac_cv_func_getloadavg_setgid=yes
11686 else 20288 else
11687 ac_cv_func_getloadavg_setgid=no 20289 ac_cv_func_getloadavg_setgid=no
11688 fi 20290 fi
11689 rm -f conftest* 20291 rm -f conftest*
11690 20292
11691 fi 20293 fi
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5 20294 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
11693 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; } 20295 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
11694 if test $ac_cv_func_getloadavg_setgid = yes; then 20296 if test $ac_cv_func_getloadavg_setgid = yes; then
11695 NEED_SETGID=true 20297 NEED_SETGID=true
11696 20298
11697 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h 20299 cat >>confdefs.h <<\_ACEOF
20300 #define GETLOADAVG_PRIVILEGED 1
20301 _ACEOF
11698 20302
11699 else 20303 else
11700 NEED_SETGID=false 20304 NEED_SETGID=false
11701 fi 20305 fi
11702 20306
11703 if test $ac_cv_func_getloadavg_setgid = yes; then 20307 if test $ac_cv_func_getloadavg_setgid = yes; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5 20308 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
11705 $as_echo_n "checking group of /dev/kmem... " >&6; } 20309 $as_echo_n "checking group of /dev/kmem... " >&6; }
11706 if test "${ac_cv_group_kmem+set}" = set; then : 20310 if test "${ac_cv_group_kmem+set}" = set; then
11707 $as_echo_n "(cached) " >&6 20311 $as_echo_n "(cached) " >&6
11708 else 20312 else
11709 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 20313 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
11710 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` 20314 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
11711 # If we got an error (system does not support symlinks), try without -L. 20315 # If we got an error (system does not support symlinks), try without -L.
11714 | sed -ne 's/[ ][ ]*/ /g; 20318 | sed -ne 's/[ ][ ]*/ /g;
11715 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; 20319 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
11716 / /s/.* //;p;'` 20320 / /s/.* //;p;'`
11717 20321
11718 fi 20322 fi
11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5 20323 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
11720 $as_echo "$ac_cv_group_kmem" >&6; } 20324 $as_echo "$ac_cv_group_kmem" >&6; }
11721 KMEM_GROUP=$ac_cv_group_kmem 20325 KMEM_GROUP=$ac_cv_group_kmem
11722 fi 20326 fi
11723 if test "x$ac_save_LIBS" = x; then 20327 if test "x$ac_save_LIBS" = x; then
11724 GETLOADAVG_LIBS=$LIBS 20328 GETLOADAVG_LIBS=$LIBS
11727 fi 20331 fi
11728 LIBS=$ac_save_LIBS 20332 LIBS=$ac_save_LIBS
11729 20333
11730 20334
11731 20335
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5 20336 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
11733 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 20337 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
11734 if test "${ac_cv_sys_largefile_source+set}" = set; then : 20338 if test "${ac_cv_sys_largefile_source+set}" = set; then
11735 $as_echo_n "(cached) " >&6 20339 $as_echo_n "(cached) " >&6
11736 else 20340 else
11737 while :; do 20341 while :; do
11738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20342 cat >conftest.$ac_ext <<_ACEOF
20343 /* confdefs.h. */
20344 _ACEOF
20345 cat confdefs.h >>conftest.$ac_ext
20346 cat >>conftest.$ac_ext <<_ACEOF
11739 /* end confdefs.h. */ 20347 /* end confdefs.h. */
11740 #include <sys/types.h> /* for off_t */ 20348 #include <sys/types.h> /* for off_t */
11741 #include <stdio.h> 20349 #include <stdio.h>
11742 int 20350 int
11743 main () 20351 main ()
11746 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 20354 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11747 ; 20355 ;
11748 return 0; 20356 return 0;
11749 } 20357 }
11750 _ACEOF 20358 _ACEOF
11751 if ac_fn_c_try_link "$LINENO"; then : 20359 rm -f conftest.$ac_objext conftest$ac_exeext
20360 if { (ac_try="$ac_link"
20361 case "(($ac_try" in
20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20364 esac
20365 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20366 $as_echo "$ac_try_echo") >&5
20367 (eval "$ac_link") 2>conftest.er1
20368 ac_status=$?
20369 grep -v '^ *+' conftest.er1 >conftest.err
20370 rm -f conftest.er1
20371 cat conftest.err >&5
20372 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20373 (exit $ac_status); } && {
20374 test -z "$ac_c_werror_flag" ||
20375 test ! -s conftest.err
20376 } && test -s conftest$ac_exeext && {
20377 test "$cross_compiling" = yes ||
20378 $as_test_x conftest$ac_exeext
20379 }; then
11752 ac_cv_sys_largefile_source=no; break 20380 ac_cv_sys_largefile_source=no; break
11753 fi 20381 else
11754 rm -f core conftest.err conftest.$ac_objext \ 20382 $as_echo "$as_me: failed program was:" >&5
11755 conftest$ac_exeext conftest.$ac_ext 20383 sed 's/^/| /' conftest.$ac_ext >&5
11756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20384
20385
20386 fi
20387
20388 rm -rf conftest.dSYM
20389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20390 conftest$ac_exeext conftest.$ac_ext
20391 cat >conftest.$ac_ext <<_ACEOF
20392 /* confdefs.h. */
20393 _ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
11757 /* end confdefs.h. */ 20396 /* end confdefs.h. */
11758 #define _LARGEFILE_SOURCE 1 20397 #define _LARGEFILE_SOURCE 1
11759 #include <sys/types.h> /* for off_t */ 20398 #include <sys/types.h> /* for off_t */
11760 #include <stdio.h> 20399 #include <stdio.h>
11761 int 20400 int
11765 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 20404 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
11766 ; 20405 ;
11767 return 0; 20406 return 0;
11768 } 20407 }
11769 _ACEOF 20408 _ACEOF
11770 if ac_fn_c_try_link "$LINENO"; then : 20409 rm -f conftest.$ac_objext conftest$ac_exeext
20410 if { (ac_try="$ac_link"
20411 case "(($ac_try" in
20412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20413 *) ac_try_echo=$ac_try;;
20414 esac
20415 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20416 $as_echo "$ac_try_echo") >&5
20417 (eval "$ac_link") 2>conftest.er1
20418 ac_status=$?
20419 grep -v '^ *+' conftest.er1 >conftest.err
20420 rm -f conftest.er1
20421 cat conftest.err >&5
20422 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20423 (exit $ac_status); } && {
20424 test -z "$ac_c_werror_flag" ||
20425 test ! -s conftest.err
20426 } && test -s conftest$ac_exeext && {
20427 test "$cross_compiling" = yes ||
20428 $as_test_x conftest$ac_exeext
20429 }; then
11771 ac_cv_sys_largefile_source=1; break 20430 ac_cv_sys_largefile_source=1; break
11772 fi 20431 else
11773 rm -f core conftest.err conftest.$ac_objext \ 20432 $as_echo "$as_me: failed program was:" >&5
11774 conftest$ac_exeext conftest.$ac_ext 20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435
20436 fi
20437
20438 rm -rf conftest.dSYM
20439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20440 conftest$ac_exeext conftest.$ac_ext
11775 ac_cv_sys_largefile_source=unknown 20441 ac_cv_sys_largefile_source=unknown
11776 break 20442 break
11777 done 20443 done
11778 fi 20444 fi
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5 20445 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
11780 $as_echo "$ac_cv_sys_largefile_source" >&6; } 20446 $as_echo "$ac_cv_sys_largefile_source" >&6; }
11781 case $ac_cv_sys_largefile_source in #( 20447 case $ac_cv_sys_largefile_source in #(
11782 no | unknown) ;; 20448 no | unknown) ;;
11783 *) 20449 *)
11784 cat >>confdefs.h <<_ACEOF 20450 cat >>confdefs.h <<_ACEOF
11791 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 20457 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
11792 # in glibc 2.1.3, but that breaks too many other things. 20458 # in glibc 2.1.3, but that breaks too many other things.
11793 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 20459 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
11794 if test $ac_cv_sys_largefile_source != unknown; then 20460 if test $ac_cv_sys_largefile_source != unknown; then
11795 20461
11796 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h 20462 cat >>confdefs.h <<\_ACEOF
20463 #define HAVE_FSEEKO 1
20464 _ACEOF
11797 20465
11798 fi 20466 fi
11799 20467
11800 20468
11801 # Configure getopt. 20469 # Configure getopt.
11819 20487
11820 20488
11821 20489
11822 20490
11823 GETOPT_H= 20491 GETOPT_H=
11824 for ac_header in getopt.h 20492
11825 do : 20493 for ac_header in getopt.h
11826 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default" 20494 do
11827 if test "x$ac_cv_header_getopt_h" = x""yes; then : 20495 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20497 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20498 $as_echo_n "checking for $ac_header... " >&6; }
20499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20500 $as_echo_n "(cached) " >&6
20501 fi
20502 ac_res=`eval 'as_val=${'$as_ac_Header'}
20503 $as_echo "$as_val"'`
20504 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20505 $as_echo "$ac_res" >&6; }
20506 else
20507 # Is the header compilable?
20508 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20509 $as_echo_n "checking $ac_header usability... " >&6; }
20510 cat >conftest.$ac_ext <<_ACEOF
20511 /* confdefs.h. */
20512 _ACEOF
20513 cat confdefs.h >>conftest.$ac_ext
20514 cat >>conftest.$ac_ext <<_ACEOF
20515 /* end confdefs.h. */
20516 $ac_includes_default
20517 #include <$ac_header>
20518 _ACEOF
20519 rm -f conftest.$ac_objext
20520 if { (ac_try="$ac_compile"
20521 case "(($ac_try" in
20522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20523 *) ac_try_echo=$ac_try;;
20524 esac
20525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20526 $as_echo "$ac_try_echo") >&5
20527 (eval "$ac_compile") 2>conftest.er1
20528 ac_status=$?
20529 grep -v '^ *+' conftest.er1 >conftest.err
20530 rm -f conftest.er1
20531 cat conftest.err >&5
20532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20533 (exit $ac_status); } && {
20534 test -z "$ac_c_werror_flag" ||
20535 test ! -s conftest.err
20536 } && test -s conftest.$ac_objext; then
20537 ac_header_compiler=yes
20538 else
20539 $as_echo "$as_me: failed program was:" >&5
20540 sed 's/^/| /' conftest.$ac_ext >&5
20541
20542 ac_header_compiler=no
20543 fi
20544
20545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20546 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20547 $as_echo "$ac_header_compiler" >&6; }
20548
20549 # Is the header present?
20550 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20551 $as_echo_n "checking $ac_header presence... " >&6; }
20552 cat >conftest.$ac_ext <<_ACEOF
20553 /* confdefs.h. */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 #include <$ac_header>
20559 _ACEOF
20560 if { (ac_try="$ac_cpp conftest.$ac_ext"
20561 case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20564 esac
20565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20566 $as_echo "$ac_try_echo") >&5
20567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20568 ac_status=$?
20569 grep -v '^ *+' conftest.er1 >conftest.err
20570 rm -f conftest.er1
20571 cat conftest.err >&5
20572 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } >/dev/null && {
20574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20575 test ! -s conftest.err
20576 }; then
20577 ac_header_preproc=yes
20578 else
20579 $as_echo "$as_me: failed program was:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20581
20582 ac_header_preproc=no
20583 fi
20584
20585 rm -f conftest.err conftest.$ac_ext
20586 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20587 $as_echo "$ac_header_preproc" >&6; }
20588
20589 # So? What about this header?
20590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20591 yes:no: )
20592 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20593 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20594 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20595 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20596 ac_header_preproc=yes
20597 ;;
20598 no:yes:* )
20599 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20600 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20601 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20602 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20603 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20604 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20605 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20606 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20608 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20610 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20611
20612 ;;
20613 esac
20614 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20615 $as_echo_n "checking for $ac_header... " >&6; }
20616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20617 $as_echo_n "(cached) " >&6
20618 else
20619 eval "$as_ac_Header=\$ac_header_preproc"
20620 fi
20621 ac_res=`eval 'as_val=${'$as_ac_Header'}
20622 $as_echo "$as_val"'`
20623 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20624 $as_echo "$ac_res" >&6; }
20625
20626 fi
20627 if test `eval 'as_val=${'$as_ac_Header'}
20628 $as_echo "$as_val"'` = yes; then
11828 cat >>confdefs.h <<_ACEOF 20629 cat >>confdefs.h <<_ACEOF
11829 #define HAVE_GETOPT_H 1 20630 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
11830 _ACEOF 20631 _ACEOF
11831 20632
11832 else 20633 else
11833 GETOPT_H=getopt.h 20634 GETOPT_H=getopt.h
11834 fi 20635 fi
11835 20636
11836 done 20637 done
11837 20638
11838 if test -z "$GETOPT_H"; then 20639 if test -z "$GETOPT_H"; then
11839 for ac_func in getopt_long_only 20640
11840 do : 20641 for ac_func in getopt_long_only
11841 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only" 20642 do
11842 if test "x$ac_cv_func_getopt_long_only" = x""yes; then : 20643 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20644 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20645 $as_echo_n "checking for $ac_func... " >&6; }
20646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20647 $as_echo_n "(cached) " >&6
20648 else
20649 cat >conftest.$ac_ext <<_ACEOF
20650 /* confdefs.h. */
20651 _ACEOF
20652 cat confdefs.h >>conftest.$ac_ext
20653 cat >>conftest.$ac_ext <<_ACEOF
20654 /* end confdefs.h. */
20655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20657 #define $ac_func innocuous_$ac_func
20658
20659 /* System header to define __stub macros and hopefully few prototypes,
20660 which can conflict with char $ac_func (); below.
20661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20662 <limits.h> exists even on freestanding compilers. */
20663
20664 #ifdef __STDC__
20665 # include <limits.h>
20666 #else
20667 # include <assert.h>
20668 #endif
20669
20670 #undef $ac_func
20671
20672 /* Override any GCC internal prototype to avoid an error.
20673 Use char because int might match the return type of a GCC
20674 builtin and then its argument prototype would still apply. */
20675 #ifdef __cplusplus
20676 extern "C"
20677 #endif
20678 char $ac_func ();
20679 /* The GNU C library defines this for functions which it implements
20680 to always fail with ENOSYS. Some functions are actually named
20681 something starting with __ and the normal name is an alias. */
20682 #if defined __stub_$ac_func || defined __stub___$ac_func
20683 choke me
20684 #endif
20685
20686 int
20687 main ()
20688 {
20689 return $ac_func ();
20690 ;
20691 return 0;
20692 }
20693 _ACEOF
20694 rm -f conftest.$ac_objext conftest$ac_exeext
20695 if { (ac_try="$ac_link"
20696 case "(($ac_try" in
20697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698 *) ac_try_echo=$ac_try;;
20699 esac
20700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20701 $as_echo "$ac_try_echo") >&5
20702 (eval "$ac_link") 2>conftest.er1
20703 ac_status=$?
20704 grep -v '^ *+' conftest.er1 >conftest.err
20705 rm -f conftest.er1
20706 cat conftest.err >&5
20707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20708 (exit $ac_status); } && {
20709 test -z "$ac_c_werror_flag" ||
20710 test ! -s conftest.err
20711 } && test -s conftest$ac_exeext && {
20712 test "$cross_compiling" = yes ||
20713 $as_test_x conftest$ac_exeext
20714 }; then
20715 eval "$as_ac_var=yes"
20716 else
20717 $as_echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20719
20720 eval "$as_ac_var=no"
20721 fi
20722
20723 rm -rf conftest.dSYM
20724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20725 conftest$ac_exeext conftest.$ac_ext
20726 fi
20727 ac_res=`eval 'as_val=${'$as_ac_var'}
20728 $as_echo "$as_val"'`
20729 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20730 $as_echo "$ac_res" >&6; }
20731 if test `eval 'as_val=${'$as_ac_var'}
20732 $as_echo "$as_val"'` = yes; then
11843 cat >>confdefs.h <<_ACEOF 20733 cat >>confdefs.h <<_ACEOF
11844 #define HAVE_GETOPT_LONG_ONLY 1 20734 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11845 _ACEOF 20735 _ACEOF
11846 20736
11847 else 20737 else
11848 GETOPT_H=getopt.h 20738 GETOPT_H=getopt.h
11849 fi 20739 fi
11850 done 20740 done
11851 20741
11852 fi 20742 fi
11853 20743
11854 if test -z "$GETOPT_H"; then 20744 if test -z "$GETOPT_H"; then
11855 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h> 20745 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
11856 " 20746 $as_echo_n "checking whether optreset is declared... " >&6; }
11857 if test "x$ac_cv_have_decl_optreset" = x""yes; then : 20747 if test "${ac_cv_have_decl_optreset+set}" = set; then
20748 $as_echo_n "(cached) " >&6
20749 else
20750 cat >conftest.$ac_ext <<_ACEOF
20751 /* confdefs.h. */
20752 _ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h. */
20756 #include <getopt.h>
20757
20758 int
20759 main ()
20760 {
20761 #ifndef optreset
20762 (void) optreset;
20763 #endif
20764
20765 ;
20766 return 0;
20767 }
20768 _ACEOF
20769 rm -f conftest.$ac_objext
20770 if { (ac_try="$ac_compile"
20771 case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20774 esac
20775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20776 $as_echo "$ac_try_echo") >&5
20777 (eval "$ac_compile") 2>conftest.er1
20778 ac_status=$?
20779 grep -v '^ *+' conftest.er1 >conftest.err
20780 rm -f conftest.er1
20781 cat conftest.err >&5
20782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20783 (exit $ac_status); } && {
20784 test -z "$ac_c_werror_flag" ||
20785 test ! -s conftest.err
20786 } && test -s conftest.$ac_objext; then
20787 ac_cv_have_decl_optreset=yes
20788 else
20789 $as_echo "$as_me: failed program was:" >&5
20790 sed 's/^/| /' conftest.$ac_ext >&5
20791
20792 ac_cv_have_decl_optreset=no
20793 fi
20794
20795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20796 fi
20797 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20798 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20799 if test $ac_cv_have_decl_optreset = yes; then
11858 GETOPT_H=getopt.h 20800 GETOPT_H=getopt.h
11859 fi 20801 fi
11860 20802
11861 fi 20803 fi
11862 20804
11863 if test -z "$GETOPT_H"; then 20805 if test -z "$GETOPT_H"; then
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5 20806 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
11865 $as_echo_n "checking for working GNU getopt function... " >&6; } 20807 $as_echo_n "checking for working GNU getopt function... " >&6; }
11866 if test "${gl_cv_func_gnu_getopt+set}" = set; then : 20808 if test "${gl_cv_func_gnu_getopt+set}" = set; then
11867 $as_echo_n "(cached) " >&6 20809 $as_echo_n "(cached) " >&6
11868 else 20810 else
11869 if test "$cross_compiling" = yes; then : 20811 if test "$cross_compiling" = yes; then
11870 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h> 20812 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
11871 " 20813 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
11872 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then : 20814 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20815 $as_echo_n "(cached) " >&6
20816 else
20817 cat >conftest.$ac_ext <<_ACEOF
20818 /* confdefs.h. */
20819 _ACEOF
20820 cat confdefs.h >>conftest.$ac_ext
20821 cat >>conftest.$ac_ext <<_ACEOF
20822 /* end confdefs.h. */
20823 #include <getopt.h>
20824
20825 int
20826 main ()
20827 {
20828 #ifndef getopt_clip
20829 (void) getopt_clip;
20830 #endif
20831
20832 ;
20833 return 0;
20834 }
20835 _ACEOF
20836 rm -f conftest.$ac_objext
20837 if { (ac_try="$ac_compile"
20838 case "(($ac_try" in
20839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20840 *) ac_try_echo=$ac_try;;
20841 esac
20842 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20843 $as_echo "$ac_try_echo") >&5
20844 (eval "$ac_compile") 2>conftest.er1
20845 ac_status=$?
20846 grep -v '^ *+' conftest.er1 >conftest.err
20847 rm -f conftest.er1
20848 cat conftest.err >&5
20849 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20850 (exit $ac_status); } && {
20851 test -z "$ac_c_werror_flag" ||
20852 test ! -s conftest.err
20853 } && test -s conftest.$ac_objext; then
20854 ac_cv_have_decl_getopt_clip=yes
20855 else
20856 $as_echo "$as_me: failed program was:" >&5
20857 sed 's/^/| /' conftest.$ac_ext >&5
20858
20859 ac_cv_have_decl_getopt_clip=no
20860 fi
20861
20862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20863 fi
20864 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20865 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20866 if test $ac_cv_have_decl_getopt_clip = yes; then
11873 gl_cv_func_gnu_getopt=no 20867 gl_cv_func_gnu_getopt=no
11874 else 20868 else
11875 gl_cv_func_gnu_getopt=yes 20869 gl_cv_func_gnu_getopt=yes
11876 fi 20870 fi
11877 20871
11878 else 20872 else
11879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20873 cat >conftest.$ac_ext <<_ACEOF
20874 /* confdefs.h. */
20875 _ACEOF
20876 cat confdefs.h >>conftest.$ac_ext
20877 cat >>conftest.$ac_ext <<_ACEOF
11880 /* end confdefs.h. */ 20878 /* end confdefs.h. */
11881 #include <getopt.h> 20879 #include <getopt.h>
11882 int 20880 int
11883 main () 20881 main ()
11884 { 20882 {
11891 20889
11892 ; 20890 ;
11893 return 0; 20891 return 0;
11894 } 20892 }
11895 _ACEOF 20893 _ACEOF
11896 if ac_fn_c_try_run "$LINENO"; then : 20894 rm -f conftest$ac_exeext
20895 if { (ac_try="$ac_link"
20896 case "(($ac_try" in
20897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20898 *) ac_try_echo=$ac_try;;
20899 esac
20900 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20901 $as_echo "$ac_try_echo") >&5
20902 (eval "$ac_link") 2>&5
20903 ac_status=$?
20904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20906 { (case "(($ac_try" in
20907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20908 *) ac_try_echo=$ac_try;;
20909 esac
20910 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20911 $as_echo "$ac_try_echo") >&5
20912 (eval "$ac_try") 2>&5
20913 ac_status=$?
20914 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20915 (exit $ac_status); }; }; then
11897 gl_cv_func_gnu_getopt=yes 20916 gl_cv_func_gnu_getopt=yes
11898 else 20917 else
11899 gl_cv_func_gnu_getopt=no 20918 $as_echo "$as_me: program exited with status $ac_status" >&5
11900 fi 20919 $as_echo "$as_me: failed program was:" >&5
11901 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 20920 sed 's/^/| /' conftest.$ac_ext >&5
11902 conftest.$ac_objext conftest.beam conftest.$ac_ext 20921
11903 fi 20922 ( exit $ac_status )
11904 20923 gl_cv_func_gnu_getopt=no
11905 fi 20924 fi
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5 20925 rm -rf conftest.dSYM
20926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20927 fi
20928
20929
20930 fi
20931 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
11907 $as_echo "$gl_cv_func_gnu_getopt" >&6; } 20932 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
11908 if test "$gl_cv_func_gnu_getopt" = "no"; then 20933 if test "$gl_cv_func_gnu_getopt" = "no"; then
11909 GETOPT_H=getopt.h 20934 GETOPT_H=getopt.h
11910 fi 20935 fi
11911 fi 20936 fi
11912 20937
11913 20938
11914 20939
11915 if test -n "$GETOPT_H"; then : 20940 if test -n "$GETOPT_H"; then
11916 20941
11917 20942
11918 GETOPT_H=getopt.h 20943 GETOPT_H=getopt.h
11919 20944
11920 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h 20945 cat >>confdefs.h <<\_ACEOF
20946 #define __GETOPT_PREFIX rpl_
20947 _ACEOF
11921 20948
11922 20949
11923 20950
11924 : 20951 :
11925 GETOPTOBJS='getopt.o getopt1.o' 20952 GETOPTOBJS='getopt.o getopt1.o'
11926 20953
11927 fi 20954 fi
11928 20955
11929 20956
11930 20957
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5 20958
20959 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
11932 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 20960 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
11933 if test "${ac_cv_func_getpgrp_void+set}" = set; then : 20961 if test "${ac_cv_func_getpgrp_void+set}" = set; then
11934 $as_echo_n "(cached) " >&6 20962 $as_echo_n "(cached) " >&6
11935 else 20963 else
11936 # Use it with a single arg. 20964 # Use it with a single arg.
11937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20965 cat >conftest.$ac_ext <<_ACEOF
20966 /* confdefs.h. */
20967 _ACEOF
20968 cat confdefs.h >>conftest.$ac_ext
20969 cat >>conftest.$ac_ext <<_ACEOF
11938 /* end confdefs.h. */ 20970 /* end confdefs.h. */
11939 $ac_includes_default 20971 $ac_includes_default
11940 int 20972 int
11941 main () 20973 main ()
11942 { 20974 {
11943 getpgrp (0); 20975 getpgrp (0);
11944 ; 20976 ;
11945 return 0; 20977 return 0;
11946 } 20978 }
11947 _ACEOF 20979 _ACEOF
11948 if ac_fn_c_try_compile "$LINENO"; then : 20980 rm -f conftest.$ac_objext
20981 if { (ac_try="$ac_compile"
20982 case "(($ac_try" in
20983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20984 *) ac_try_echo=$ac_try;;
20985 esac
20986 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20987 $as_echo "$ac_try_echo") >&5
20988 (eval "$ac_compile") 2>conftest.er1
20989 ac_status=$?
20990 grep -v '^ *+' conftest.er1 >conftest.err
20991 rm -f conftest.er1
20992 cat conftest.err >&5
20993 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20994 (exit $ac_status); } && {
20995 test -z "$ac_c_werror_flag" ||
20996 test ! -s conftest.err
20997 } && test -s conftest.$ac_objext; then
11949 ac_cv_func_getpgrp_void=no 20998 ac_cv_func_getpgrp_void=no
11950 else 20999 else
11951 ac_cv_func_getpgrp_void=yes 21000 $as_echo "$as_me: failed program was:" >&5
11952 fi 21001 sed 's/^/| /' conftest.$ac_ext >&5
21002
21003 ac_cv_func_getpgrp_void=yes
21004 fi
21005
11953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11954 21007
11955 fi 21008 fi
11956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5 21009 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
11957 $as_echo "$ac_cv_func_getpgrp_void" >&6; } 21010 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
11958 if test $ac_cv_func_getpgrp_void = yes; then 21011 if test $ac_cv_func_getpgrp_void = yes; then
11959 21012
11960 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h 21013 cat >>confdefs.h <<\_ACEOF
11961 21014 #define GETPGRP_VOID 1
11962 fi 21015 _ACEOF
21016
21017 fi
21018
11963 21019
11964 21020
11965 for ac_func in strftime 21021 for ac_func in strftime
11966 do : 21022 do
11967 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 21023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11968 if test "x$ac_cv_func_strftime" = x""yes; then : 21024 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21025 $as_echo_n "checking for $ac_func... " >&6; }
21026 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21027 $as_echo_n "(cached) " >&6
21028 else
21029 cat >conftest.$ac_ext <<_ACEOF
21030 /* confdefs.h. */
21031 _ACEOF
21032 cat confdefs.h >>conftest.$ac_ext
21033 cat >>conftest.$ac_ext <<_ACEOF
21034 /* end confdefs.h. */
21035 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21036 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21037 #define $ac_func innocuous_$ac_func
21038
21039 /* System header to define __stub macros and hopefully few prototypes,
21040 which can conflict with char $ac_func (); below.
21041 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21042 <limits.h> exists even on freestanding compilers. */
21043
21044 #ifdef __STDC__
21045 # include <limits.h>
21046 #else
21047 # include <assert.h>
21048 #endif
21049
21050 #undef $ac_func
21051
21052 /* Override any GCC internal prototype to avoid an error.
21053 Use char because int might match the return type of a GCC
21054 builtin and then its argument prototype would still apply. */
21055 #ifdef __cplusplus
21056 extern "C"
21057 #endif
21058 char $ac_func ();
21059 /* The GNU C library defines this for functions which it implements
21060 to always fail with ENOSYS. Some functions are actually named
21061 something starting with __ and the normal name is an alias. */
21062 #if defined __stub_$ac_func || defined __stub___$ac_func
21063 choke me
21064 #endif
21065
21066 int
21067 main ()
21068 {
21069 return $ac_func ();
21070 ;
21071 return 0;
21072 }
21073 _ACEOF
21074 rm -f conftest.$ac_objext conftest$ac_exeext
21075 if { (ac_try="$ac_link"
21076 case "(($ac_try" in
21077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21078 *) ac_try_echo=$ac_try;;
21079 esac
21080 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21081 $as_echo "$ac_try_echo") >&5
21082 (eval "$ac_link") 2>conftest.er1
21083 ac_status=$?
21084 grep -v '^ *+' conftest.er1 >conftest.err
21085 rm -f conftest.er1
21086 cat conftest.err >&5
21087 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21088 (exit $ac_status); } && {
21089 test -z "$ac_c_werror_flag" ||
21090 test ! -s conftest.err
21091 } && test -s conftest$ac_exeext && {
21092 test "$cross_compiling" = yes ||
21093 $as_test_x conftest$ac_exeext
21094 }; then
21095 eval "$as_ac_var=yes"
21096 else
21097 $as_echo "$as_me: failed program was:" >&5
21098 sed 's/^/| /' conftest.$ac_ext >&5
21099
21100 eval "$as_ac_var=no"
21101 fi
21102
21103 rm -rf conftest.dSYM
21104 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21105 conftest$ac_exeext conftest.$ac_ext
21106 fi
21107 ac_res=`eval 'as_val=${'$as_ac_var'}
21108 $as_echo "$as_val"'`
21109 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21110 $as_echo "$ac_res" >&6; }
21111 if test `eval 'as_val=${'$as_ac_var'}
21112 $as_echo "$as_val"'` = yes; then
11969 cat >>confdefs.h <<_ACEOF 21113 cat >>confdefs.h <<_ACEOF
11970 #define HAVE_STRFTIME 1 21114 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11971 _ACEOF 21115 _ACEOF
11972 21116
11973 else 21117 else
11974 # strftime is in -lintl on SCO UNIX. 21118 # strftime is in -lintl on SCO UNIX.
11975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 21119 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
11976 $as_echo_n "checking for strftime in -lintl... " >&6; } 21120 $as_echo_n "checking for strftime in -lintl... " >&6; }
11977 if test "${ac_cv_lib_intl_strftime+set}" = set; then : 21121 if test "${ac_cv_lib_intl_strftime+set}" = set; then
11978 $as_echo_n "(cached) " >&6 21122 $as_echo_n "(cached) " >&6
11979 else 21123 else
11980 ac_check_lib_save_LIBS=$LIBS 21124 ac_check_lib_save_LIBS=$LIBS
11981 LIBS="-lintl $LIBS" 21125 LIBS="-lintl $LIBS"
11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21126 cat >conftest.$ac_ext <<_ACEOF
21127 /* confdefs.h. */
21128 _ACEOF
21129 cat confdefs.h >>conftest.$ac_ext
21130 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h. */ 21131 /* end confdefs.h. */
11984 21132
11985 /* Override any GCC internal prototype to avoid an error. 21133 /* Override any GCC internal prototype to avoid an error.
11986 Use char because int might match the return type of a GCC 21134 Use char because int might match the return type of a GCC
11987 builtin and then its argument prototype would still apply. */ 21135 builtin and then its argument prototype would still apply. */
11995 return strftime (); 21143 return strftime ();
11996 ; 21144 ;
11997 return 0; 21145 return 0;
11998 } 21146 }
11999 _ACEOF 21147 _ACEOF
12000 if ac_fn_c_try_link "$LINENO"; then : 21148 rm -f conftest.$ac_objext conftest$ac_exeext
21149 if { (ac_try="$ac_link"
21150 case "(($ac_try" in
21151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21152 *) ac_try_echo=$ac_try;;
21153 esac
21154 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21155 $as_echo "$ac_try_echo") >&5
21156 (eval "$ac_link") 2>conftest.er1
21157 ac_status=$?
21158 grep -v '^ *+' conftest.er1 >conftest.err
21159 rm -f conftest.er1
21160 cat conftest.err >&5
21161 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } && {
21163 test -z "$ac_c_werror_flag" ||
21164 test ! -s conftest.err
21165 } && test -s conftest$ac_exeext && {
21166 test "$cross_compiling" = yes ||
21167 $as_test_x conftest$ac_exeext
21168 }; then
12001 ac_cv_lib_intl_strftime=yes 21169 ac_cv_lib_intl_strftime=yes
12002 else 21170 else
12003 ac_cv_lib_intl_strftime=no 21171 $as_echo "$as_me: failed program was:" >&5
12004 fi 21172 sed 's/^/| /' conftest.$ac_ext >&5
12005 rm -f core conftest.err conftest.$ac_objext \ 21173
12006 conftest$ac_exeext conftest.$ac_ext 21174 ac_cv_lib_intl_strftime=no
21175 fi
21176
21177 rm -rf conftest.dSYM
21178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21179 conftest$ac_exeext conftest.$ac_ext
12007 LIBS=$ac_check_lib_save_LIBS 21180 LIBS=$ac_check_lib_save_LIBS
12008 fi 21181 fi
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 21182 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
12010 $as_echo "$ac_cv_lib_intl_strftime" >&6; } 21183 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
12011 if test "x$ac_cv_lib_intl_strftime" = x""yes; then : 21184 if test $ac_cv_lib_intl_strftime = yes; then
12012 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 21185 cat >>confdefs.h <<\_ACEOF
21186 #define HAVE_STRFTIME 1
21187 _ACEOF
12013 21188
12014 LIBS="-lintl $LIBS" 21189 LIBS="-lintl $LIBS"
12015 fi 21190 fi
12016 21191
12017 fi 21192 fi
12018 done 21193 done
12019 21194
12020 21195
12021 # UNIX98 PTYs. 21196 # UNIX98 PTYs.
21197
12022 for ac_func in grantpt 21198 for ac_func in grantpt
12023 do : 21199 do
12024 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt" 21200 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12025 if test "x$ac_cv_func_grantpt" = x""yes; then : 21201 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21202 $as_echo_n "checking for $ac_func... " >&6; }
21203 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21204 $as_echo_n "(cached) " >&6
21205 else
21206 cat >conftest.$ac_ext <<_ACEOF
21207 /* confdefs.h. */
21208 _ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h. */
21212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21214 #define $ac_func innocuous_$ac_func
21215
21216 /* System header to define __stub macros and hopefully few prototypes,
21217 which can conflict with char $ac_func (); below.
21218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21219 <limits.h> exists even on freestanding compilers. */
21220
21221 #ifdef __STDC__
21222 # include <limits.h>
21223 #else
21224 # include <assert.h>
21225 #endif
21226
21227 #undef $ac_func
21228
21229 /* Override any GCC internal prototype to avoid an error.
21230 Use char because int might match the return type of a GCC
21231 builtin and then its argument prototype would still apply. */
21232 #ifdef __cplusplus
21233 extern "C"
21234 #endif
21235 char $ac_func ();
21236 /* The GNU C library defines this for functions which it implements
21237 to always fail with ENOSYS. Some functions are actually named
21238 something starting with __ and the normal name is an alias. */
21239 #if defined __stub_$ac_func || defined __stub___$ac_func
21240 choke me
21241 #endif
21242
21243 int
21244 main ()
21245 {
21246 return $ac_func ();
21247 ;
21248 return 0;
21249 }
21250 _ACEOF
21251 rm -f conftest.$ac_objext conftest$ac_exeext
21252 if { (ac_try="$ac_link"
21253 case "(($ac_try" in
21254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21255 *) ac_try_echo=$ac_try;;
21256 esac
21257 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21258 $as_echo "$ac_try_echo") >&5
21259 (eval "$ac_link") 2>conftest.er1
21260 ac_status=$?
21261 grep -v '^ *+' conftest.er1 >conftest.err
21262 rm -f conftest.er1
21263 cat conftest.err >&5
21264 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21265 (exit $ac_status); } && {
21266 test -z "$ac_c_werror_flag" ||
21267 test ! -s conftest.err
21268 } && test -s conftest$ac_exeext && {
21269 test "$cross_compiling" = yes ||
21270 $as_test_x conftest$ac_exeext
21271 }; then
21272 eval "$as_ac_var=yes"
21273 else
21274 $as_echo "$as_me: failed program was:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21276
21277 eval "$as_ac_var=no"
21278 fi
21279
21280 rm -rf conftest.dSYM
21281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21282 conftest$ac_exeext conftest.$ac_ext
21283 fi
21284 ac_res=`eval 'as_val=${'$as_ac_var'}
21285 $as_echo "$as_val"'`
21286 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21287 $as_echo "$ac_res" >&6; }
21288 if test `eval 'as_val=${'$as_ac_var'}
21289 $as_echo "$as_val"'` = yes; then
12026 cat >>confdefs.h <<_ACEOF 21290 cat >>confdefs.h <<_ACEOF
12027 #define HAVE_GRANTPT 1 21291 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12028 _ACEOF 21292 _ACEOF
12029 21293
12030 fi 21294 fi
12031 done 21295 done
12032 21296
12033 21297
12034 # PTY-related GNU extensions. 21298 # PTY-related GNU extensions.
21299
12035 for ac_func in getpt 21300 for ac_func in getpt
12036 do : 21301 do
12037 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt" 21302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12038 if test "x$ac_cv_func_getpt" = x""yes; then : 21303 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
21304 $as_echo_n "checking for $ac_func... " >&6; }
21305 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21306 $as_echo_n "(cached) " >&6
21307 else
21308 cat >conftest.$ac_ext <<_ACEOF
21309 /* confdefs.h. */
21310 _ACEOF
21311 cat confdefs.h >>conftest.$ac_ext
21312 cat >>conftest.$ac_ext <<_ACEOF
21313 /* end confdefs.h. */
21314 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21315 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21316 #define $ac_func innocuous_$ac_func
21317
21318 /* System header to define __stub macros and hopefully few prototypes,
21319 which can conflict with char $ac_func (); below.
21320 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21321 <limits.h> exists even on freestanding compilers. */
21322
21323 #ifdef __STDC__
21324 # include <limits.h>
21325 #else
21326 # include <assert.h>
21327 #endif
21328
21329 #undef $ac_func
21330
21331 /* Override any GCC internal prototype to avoid an error.
21332 Use char because int might match the return type of a GCC
21333 builtin and then its argument prototype would still apply. */
21334 #ifdef __cplusplus
21335 extern "C"
21336 #endif
21337 char $ac_func ();
21338 /* The GNU C library defines this for functions which it implements
21339 to always fail with ENOSYS. Some functions are actually named
21340 something starting with __ and the normal name is an alias. */
21341 #if defined __stub_$ac_func || defined __stub___$ac_func
21342 choke me
21343 #endif
21344
21345 int
21346 main ()
21347 {
21348 return $ac_func ();
21349 ;
21350 return 0;
21351 }
21352 _ACEOF
21353 rm -f conftest.$ac_objext conftest$ac_exeext
21354 if { (ac_try="$ac_link"
21355 case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21358 esac
21359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21360 $as_echo "$ac_try_echo") >&5
21361 (eval "$ac_link") 2>conftest.er1
21362 ac_status=$?
21363 grep -v '^ *+' conftest.er1 >conftest.err
21364 rm -f conftest.er1
21365 cat conftest.err >&5
21366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21367 (exit $ac_status); } && {
21368 test -z "$ac_c_werror_flag" ||
21369 test ! -s conftest.err
21370 } && test -s conftest$ac_exeext && {
21371 test "$cross_compiling" = yes ||
21372 $as_test_x conftest$ac_exeext
21373 }; then
21374 eval "$as_ac_var=yes"
21375 else
21376 $as_echo "$as_me: failed program was:" >&5
21377 sed 's/^/| /' conftest.$ac_ext >&5
21378
21379 eval "$as_ac_var=no"
21380 fi
21381
21382 rm -rf conftest.dSYM
21383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21384 conftest$ac_exeext conftest.$ac_ext
21385 fi
21386 ac_res=`eval 'as_val=${'$as_ac_var'}
21387 $as_echo "$as_val"'`
21388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21389 $as_echo "$ac_res" >&6; }
21390 if test `eval 'as_val=${'$as_ac_var'}
21391 $as_echo "$as_val"'` = yes; then
12039 cat >>confdefs.h <<_ACEOF 21392 cat >>confdefs.h <<_ACEOF
12040 #define HAVE_GETPT 1 21393 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12041 _ACEOF 21394 _ACEOF
12042 21395
12043 fi 21396 fi
12044 done 21397 done
12045 21398
12046 21399
12047 # Check this now, so that we will NOT find the above functions in ncurses. 21400 # Check this now, so that we will NOT find the above functions in ncurses.
12048 # That is because we have not set up to link ncurses in lib-src. 21401 # That is because we have not set up to link ncurses in lib-src.
12049 # It's better to believe a function is not available 21402 # It's better to believe a function is not available
12050 # than to expect to find it in ncurses. 21403 # than to expect to find it in ncurses.
12051 # Also we need tputs and frieds to be able to build at all. 21404 # Also we need tputs and friends to be able to build at all.
12052 have_tputs_et_al=true 21405 have_tputs_et_al=true
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5 21406 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5
12054 $as_echo_n "checking for library containing tputs... " >&6; } 21407 $as_echo_n "checking for library containing tputs... " >&6; }
12055 if test "${ac_cv_search_tputs+set}" = set; then : 21408 if test "${ac_cv_search_tputs+set}" = set; then
12056 $as_echo_n "(cached) " >&6 21409 $as_echo_n "(cached) " >&6
12057 else 21410 else
12058 ac_func_search_save_LIBS=$LIBS 21411 ac_func_search_save_LIBS=$LIBS
12059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21412 cat >conftest.$ac_ext <<_ACEOF
21413 /* confdefs.h. */
21414 _ACEOF
21415 cat confdefs.h >>conftest.$ac_ext
21416 cat >>conftest.$ac_ext <<_ACEOF
12060 /* end confdefs.h. */ 21417 /* end confdefs.h. */
12061 21418
12062 /* Override any GCC internal prototype to avoid an error. 21419 /* Override any GCC internal prototype to avoid an error.
12063 Use char because int might match the return type of a GCC 21420 Use char because int might match the return type of a GCC
12064 builtin and then its argument prototype would still apply. */ 21421 builtin and then its argument prototype would still apply. */
12079 ac_res="none required" 21436 ac_res="none required"
12080 else 21437 else
12081 ac_res=-l$ac_lib 21438 ac_res=-l$ac_lib
12082 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 21439 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12083 fi 21440 fi
12084 if ac_fn_c_try_link "$LINENO"; then : 21441 rm -f conftest.$ac_objext conftest$ac_exeext
21442 if { (ac_try="$ac_link"
21443 case "(($ac_try" in
21444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21445 *) ac_try_echo=$ac_try;;
21446 esac
21447 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21448 $as_echo "$ac_try_echo") >&5
21449 (eval "$ac_link") 2>conftest.er1
21450 ac_status=$?
21451 grep -v '^ *+' conftest.er1 >conftest.err
21452 rm -f conftest.er1
21453 cat conftest.err >&5
21454 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } && {
21456 test -z "$ac_c_werror_flag" ||
21457 test ! -s conftest.err
21458 } && test -s conftest$ac_exeext && {
21459 test "$cross_compiling" = yes ||
21460 $as_test_x conftest$ac_exeext
21461 }; then
12085 ac_cv_search_tputs=$ac_res 21462 ac_cv_search_tputs=$ac_res
12086 fi 21463 else
12087 rm -f core conftest.err conftest.$ac_objext \ 21464 $as_echo "$as_me: failed program was:" >&5
12088 conftest$ac_exeext 21465 sed 's/^/| /' conftest.$ac_ext >&5
12089 if test "${ac_cv_search_tputs+set}" = set; then : 21466
21467
21468 fi
21469
21470 rm -rf conftest.dSYM
21471 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21472 conftest$ac_exeext
21473 if test "${ac_cv_search_tputs+set}" = set; then
12090 break 21474 break
12091 fi 21475 fi
12092 done 21476 done
12093 if test "${ac_cv_search_tputs+set}" = set; then : 21477 if test "${ac_cv_search_tputs+set}" = set; then
12094 21478 :
12095 else 21479 else
12096 ac_cv_search_tputs=no 21480 ac_cv_search_tputs=no
12097 fi 21481 fi
12098 rm conftest.$ac_ext 21482 rm conftest.$ac_ext
12099 LIBS=$ac_func_search_save_LIBS 21483 LIBS=$ac_func_search_save_LIBS
12100 fi 21484 fi
12101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5 21485 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5
12102 $as_echo "$ac_cv_search_tputs" >&6; } 21486 $as_echo "$ac_cv_search_tputs" >&6; }
12103 ac_res=$ac_cv_search_tputs 21487 ac_res=$ac_cv_search_tputs
12104 if test "$ac_res" != no; then : 21488 if test "$ac_res" != no; then
12105 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 21489 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12106 21490
12107 else 21491 else
12108 have_tputs_et_al=false 21492 have_tputs_et_al=false
12109 fi 21493 fi
12110 21494
12111 if test "$have_tputs_et_al" != true; then 21495 if test "$have_tputs_et_al" != true; then
12112 as_fn_error "I couldn't find termcap functions (tputs and friends). 21496 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends).
12113 Maybe some development libraries/packages are missing? Try installing 21497 Maybe some development libraries/packages are missing? Try installing
12114 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5 21498 libncurses-dev(el), libterminfo-dev(el) or similar." >&5
21499 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21500 Maybe some development libraries/packages are missing? Try installing
21501 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21502 { (exit 1); exit 1; }; }
12115 fi 21503 fi
12116 # Must define this when any termcap library is found. 21504 # Must define this when any termcap library is found.
12117 21505
12118 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h 21506 cat >>confdefs.h <<\_ACEOF
21507 #define HAVE_LIBNCURSES 1
21508 _ACEOF
21509
21510 ## FIXME This was the cpp logic, but I am not sure it is right.
21511 ## The above test has not necessarily found libncurses.
21512 HAVE_LIBNCURSES=yes
21513
21514 ## Use terminfo instead of termcap?
21515 ## Note only system files NOT using terminfo are:
21516 ## bsd-common, freebsd < 40000, ms-w32, msdos, netbsd, and
21517 ## darwin|gnu without ncurses.
21518 TERMINFO=no
21519 LIBS_TERMCAP=
21520 case "$opsys" in
21521 ## cygwin: Fewer environment variables to go wrong, more terminal types.
21522 ## hpux10-20: Use the system provided termcap(3) library.
21523 ## openbsd: David Mazieres <dm@reeducation-labor.lcs.mit.edu> says this
21524 ## is necessary. Otherwise Emacs dumps core when run -nw.
21525 aix4-2|cygwin|hpux*|irix6-5|openbsd|usg5-4|sol2*|unixware) TERMINFO=yes ;;
21526
21527 ## darwin: Prevents crashes when running Emacs in Terminal.app under 10.2.
21528 ## The ncurses library has been moved out of the System framework in
21529 ## Mac OS X 10.2. So if configure detects it, set the command-line
21530 ## option to use it.
21531 darwin|gnu*)
21532 ## (HAVE_LIBNCURSES was not always true, but is since 2010-03-18.)
21533 if test "x$HAVE_LIBNCURSES" = "xyes"; then
21534 TERMINFO=yes
21535 LIBS_TERMCAP="-lncurses"
21536 fi
21537 ;;
21538
21539 freebsd)
21540 { $as_echo "$as_me:$LINENO: checking whether FreeBSD is new enough to use terminfo" >&5
21541 $as_echo_n "checking whether FreeBSD is new enough to use terminfo... " >&6; }
21542 if test "${emacs_cv_freebsd_terminfo+set}" = set; then
21543 $as_echo_n "(cached) " >&6
21544 else
21545 cat >conftest.$ac_ext <<_ACEOF
21546 /* confdefs.h. */
21547 _ACEOF
21548 cat confdefs.h >>conftest.$ac_ext
21549 cat >>conftest.$ac_ext <<_ACEOF
21550 /* end confdefs.h. */
21551 #include <osreldate.h>
21552 int
21553 main ()
21554 {
21555 #if __FreeBSD_version < 400000
21556 fail;
21557 #endif
21558
21559 ;
21560 return 0;
21561 }
21562 _ACEOF
21563 rm -f conftest.$ac_objext conftest$ac_exeext
21564 if { (ac_try="$ac_link"
21565 case "(($ac_try" in
21566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21567 *) ac_try_echo=$ac_try;;
21568 esac
21569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21570 $as_echo "$ac_try_echo") >&5
21571 (eval "$ac_link") 2>conftest.er1
21572 ac_status=$?
21573 grep -v '^ *+' conftest.er1 >conftest.err
21574 rm -f conftest.er1
21575 cat conftest.err >&5
21576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21577 (exit $ac_status); } && {
21578 test -z "$ac_c_werror_flag" ||
21579 test ! -s conftest.err
21580 } && test -s conftest$ac_exeext && {
21581 test "$cross_compiling" = yes ||
21582 $as_test_x conftest$ac_exeext
21583 }; then
21584 emacs_cv_freebsd_terminfo=yes
21585 else
21586 $as_echo "$as_me: failed program was:" >&5
21587 sed 's/^/| /' conftest.$ac_ext >&5
21588
21589 emacs_cv_freebsd_terminfo=no
21590 fi
21591
21592 rm -rf conftest.dSYM
21593 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21594 conftest$ac_exeext conftest.$ac_ext
21595 fi
21596
21597
21598 { $as_echo "$as_me:$LINENO: result: $emacs_cv_freebsd_terminfo" >&5
21599 $as_echo "$emacs_cv_freebsd_terminfo" >&6; }
21600
21601 if test $emacs_cv_freebsd_terminfo = yes; then
21602 TERMINFO=yes
21603 LIBS_TERMCAP="-lncurses"
21604 else
21605 LIBS_TERMCAP="-ltermcap"
21606 fi
21607 ;;
21608
21609 esac
21610
21611 case "$opsys" in
21612 ## hpux: Make sure we get select from libc rather than from libcurses
21613 ## because libcurses on HPUX 10.10 has a broken version of select.
21614 ## We used to use -lc -lcurses, but this may be cleaner.
21615 hpux*|netbsd) LIBS_TERMCAP="-ltermcap" ;;
21616
21617 openbsd) LIBS_TERMCAP="-lncurses" ;;
21618
21619 ## Must use system termcap, if we use any termcap. It does special things.
21620 sol2*) test "$TERMINFO" != yes && LIBS_TERMCAP="-ltermcap" ;;
21621 esac
21622
21623 TERMCAP_OBJ=tparam.o
21624 if test $TERMINFO = yes; then
21625
21626 cat >>confdefs.h <<\_ACEOF
21627 #define TERMINFO 1
21628 _ACEOF
21629
21630
21631 ## Default used to be -ltermcap. Add a case above if need something else.
21632 test "x$LIBS_TERMCAP" = "x" && LIBS_TERMCAP="-lcurses"
21633
21634 TERMCAP_OBJ=terminfo.o
21635 fi
21636
21637
12119 21638
12120 21639
12121 # Do we have res_init, for detecting changes in /etc/resolv.conf? 21640 # Do we have res_init, for detecting changes in /etc/resolv.conf?
12122
12123 resolv=no 21641 resolv=no
12124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21642 cat >conftest.$ac_ext <<_ACEOF
21643 /* confdefs.h. */
21644 _ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
12125 /* end confdefs.h. */ 21647 /* end confdefs.h. */
12126 #include <netinet/in.h> 21648 #include <netinet/in.h>
12127 #include <arpa/nameser.h> 21649 #include <arpa/nameser.h>
12128 #include <resolv.h> 21650 #include <resolv.h>
12129 int 21651 int
12132 return res_init(); 21654 return res_init();
12133 ; 21655 ;
12134 return 0; 21656 return 0;
12135 } 21657 }
12136 _ACEOF 21658 _ACEOF
12137 if ac_fn_c_try_link "$LINENO"; then : 21659 rm -f conftest.$ac_objext conftest$ac_exeext
21660 if { (ac_try="$ac_link"
21661 case "(($ac_try" in
21662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21663 *) ac_try_echo=$ac_try;;
21664 esac
21665 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21666 $as_echo "$ac_try_echo") >&5
21667 (eval "$ac_link") 2>conftest.er1
21668 ac_status=$?
21669 grep -v '^ *+' conftest.er1 >conftest.err
21670 rm -f conftest.er1
21671 cat conftest.err >&5
21672 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21673 (exit $ac_status); } && {
21674 test -z "$ac_c_werror_flag" ||
21675 test ! -s conftest.err
21676 } && test -s conftest$ac_exeext && {
21677 test "$cross_compiling" = yes ||
21678 $as_test_x conftest$ac_exeext
21679 }; then
12138 have_res_init=yes 21680 have_res_init=yes
12139 else 21681 else
12140 have_res_init=no 21682 $as_echo "$as_me: failed program was:" >&5
12141 fi 21683 sed 's/^/| /' conftest.$ac_ext >&5
12142 rm -f core conftest.err conftest.$ac_objext \ 21684
12143 conftest$ac_exeext conftest.$ac_ext 21685 have_res_init=no
21686 fi
21687
21688 rm -rf conftest.dSYM
21689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21690 conftest$ac_exeext conftest.$ac_ext
12144 if test "$have_res_init" = no; then 21691 if test "$have_res_init" = no; then
12145 OLIBS="$LIBS" 21692 OLIBS="$LIBS"
12146 LIBS="$LIBS -lresolv" 21693 LIBS="$LIBS -lresolv"
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5 21694 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
12148 $as_echo_n "checking for res_init with -lresolv... " >&6; } 21695 $as_echo_n "checking for res_init with -lresolv... " >&6; }
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21696 cat >conftest.$ac_ext <<_ACEOF
21697 /* confdefs.h. */
21698 _ACEOF
21699 cat confdefs.h >>conftest.$ac_ext
21700 cat >>conftest.$ac_ext <<_ACEOF
12150 /* end confdefs.h. */ 21701 /* end confdefs.h. */
12151 #include <netinet/in.h> 21702 #include <netinet/in.h>
12152 #include <arpa/nameser.h> 21703 #include <arpa/nameser.h>
12153 #include <resolv.h> 21704 #include <resolv.h>
12154 int 21705 int
12157 return res_init(); 21708 return res_init();
12158 ; 21709 ;
12159 return 0; 21710 return 0;
12160 } 21711 }
12161 _ACEOF 21712 _ACEOF
12162 if ac_fn_c_try_link "$LINENO"; then : 21713 rm -f conftest.$ac_objext conftest$ac_exeext
21714 if { (ac_try="$ac_link"
21715 case "(($ac_try" in
21716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21717 *) ac_try_echo=$ac_try;;
21718 esac
21719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21720 $as_echo "$ac_try_echo") >&5
21721 (eval "$ac_link") 2>conftest.er1
21722 ac_status=$?
21723 grep -v '^ *+' conftest.er1 >conftest.err
21724 rm -f conftest.er1
21725 cat conftest.err >&5
21726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21727 (exit $ac_status); } && {
21728 test -z "$ac_c_werror_flag" ||
21729 test ! -s conftest.err
21730 } && test -s conftest$ac_exeext && {
21731 test "$cross_compiling" = yes ||
21732 $as_test_x conftest$ac_exeext
21733 }; then
12163 have_res_init=yes 21734 have_res_init=yes
12164 else 21735 else
12165 have_res_init=no 21736 $as_echo "$as_me: failed program was:" >&5
12166 fi 21737 sed 's/^/| /' conftest.$ac_ext >&5
12167 rm -f core conftest.err conftest.$ac_objext \ 21738
12168 conftest$ac_exeext conftest.$ac_ext 21739 have_res_init=no
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5 21740 fi
21741
21742 rm -rf conftest.dSYM
21743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21744 conftest$ac_exeext conftest.$ac_ext
21745 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
12170 $as_echo "$have_res_init" >&6; } 21746 $as_echo "$have_res_init" >&6; }
12171 if test "$have_res_init" = yes ; then 21747 if test "$have_res_init" = yes ; then
12172 resolv=yes 21748 resolv=yes
12173 fi 21749 fi
12174 LIBS="$OLIBS" 21750 LIBS="$OLIBS"
12175 fi 21751 fi
12176 21752
12177 if test "$have_res_init" = yes; then 21753 if test "$have_res_init" = yes; then
12178 21754
12179 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h 21755 cat >>confdefs.h <<\_ACEOF
21756 #define HAVE_RES_INIT 1
21757 _ACEOF
12180 21758
12181 fi 21759 fi
12182 21760
12183 # Do we need the Hesiod library to provide the support routines? 21761 # Do we need the Hesiod library to provide the support routines?
12184 LIBHESIOD= 21762 LIBHESIOD=
12185 if test "$with_hesiod" != no ; then 21763 if test "$with_hesiod" != no ; then
12186 # Don't set $LIBS here -- see comments above. FIXME which comments? 21764 # Don't set $LIBS here -- see comments above. FIXME which comments?
12187 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send" 21765 { $as_echo "$as_me:$LINENO: checking for res_send" >&5
12188 if test "x$ac_cv_func_res_send" = x""yes; then : 21766 $as_echo_n "checking for res_send... " >&6; }
12189 21767 if test "${ac_cv_func_res_send+set}" = set; then
12190 else 21768 $as_echo_n "(cached) " >&6
12191 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send" 21769 else
12192 if test "x$ac_cv_func___res_send" = x""yes; then : 21770 cat >conftest.$ac_ext <<_ACEOF
12193 21771 /* confdefs.h. */
12194 else 21772 _ACEOF
12195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5 21773 cat confdefs.h >>conftest.$ac_ext
21774 cat >>conftest.$ac_ext <<_ACEOF
21775 /* end confdefs.h. */
21776 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21777 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21778 #define res_send innocuous_res_send
21779
21780 /* System header to define __stub macros and hopefully few prototypes,
21781 which can conflict with char res_send (); below.
21782 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21783 <limits.h> exists even on freestanding compilers. */
21784
21785 #ifdef __STDC__
21786 # include <limits.h>
21787 #else
21788 # include <assert.h>
21789 #endif
21790
21791 #undef res_send
21792
21793 /* Override any GCC internal prototype to avoid an error.
21794 Use char because int might match the return type of a GCC
21795 builtin and then its argument prototype would still apply. */
21796 #ifdef __cplusplus
21797 extern "C"
21798 #endif
21799 char res_send ();
21800 /* The GNU C library defines this for functions which it implements
21801 to always fail with ENOSYS. Some functions are actually named
21802 something starting with __ and the normal name is an alias. */
21803 #if defined __stub_res_send || defined __stub___res_send
21804 choke me
21805 #endif
21806
21807 int
21808 main ()
21809 {
21810 return res_send ();
21811 ;
21812 return 0;
21813 }
21814 _ACEOF
21815 rm -f conftest.$ac_objext conftest$ac_exeext
21816 if { (ac_try="$ac_link"
21817 case "(($ac_try" in
21818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21819 *) ac_try_echo=$ac_try;;
21820 esac
21821 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21822 $as_echo "$ac_try_echo") >&5
21823 (eval "$ac_link") 2>conftest.er1
21824 ac_status=$?
21825 grep -v '^ *+' conftest.er1 >conftest.err
21826 rm -f conftest.er1
21827 cat conftest.err >&5
21828 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21829 (exit $ac_status); } && {
21830 test -z "$ac_c_werror_flag" ||
21831 test ! -s conftest.err
21832 } && test -s conftest$ac_exeext && {
21833 test "$cross_compiling" = yes ||
21834 $as_test_x conftest$ac_exeext
21835 }; then
21836 ac_cv_func_res_send=yes
21837 else
21838 $as_echo "$as_me: failed program was:" >&5
21839 sed 's/^/| /' conftest.$ac_ext >&5
21840
21841 ac_cv_func_res_send=no
21842 fi
21843
21844 rm -rf conftest.dSYM
21845 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21846 conftest$ac_exeext conftest.$ac_ext
21847 fi
21848 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21849 $as_echo "$ac_cv_func_res_send" >&6; }
21850 if test $ac_cv_func_res_send = yes; then
21851 :
21852 else
21853 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21854 $as_echo_n "checking for __res_send... " >&6; }
21855 if test "${ac_cv_func___res_send+set}" = set; then
21856 $as_echo_n "(cached) " >&6
21857 else
21858 cat >conftest.$ac_ext <<_ACEOF
21859 /* confdefs.h. */
21860 _ACEOF
21861 cat confdefs.h >>conftest.$ac_ext
21862 cat >>conftest.$ac_ext <<_ACEOF
21863 /* end confdefs.h. */
21864 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21865 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21866 #define __res_send innocuous___res_send
21867
21868 /* System header to define __stub macros and hopefully few prototypes,
21869 which can conflict with char __res_send (); below.
21870 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21871 <limits.h> exists even on freestanding compilers. */
21872
21873 #ifdef __STDC__
21874 # include <limits.h>
21875 #else
21876 # include <assert.h>
21877 #endif
21878
21879 #undef __res_send
21880
21881 /* Override any GCC internal prototype to avoid an error.
21882 Use char because int might match the return type of a GCC
21883 builtin and then its argument prototype would still apply. */
21884 #ifdef __cplusplus
21885 extern "C"
21886 #endif
21887 char __res_send ();
21888 /* The GNU C library defines this for functions which it implements
21889 to always fail with ENOSYS. Some functions are actually named
21890 something starting with __ and the normal name is an alias. */
21891 #if defined __stub___res_send || defined __stub_____res_send
21892 choke me
21893 #endif
21894
21895 int
21896 main ()
21897 {
21898 return __res_send ();
21899 ;
21900 return 0;
21901 }
21902 _ACEOF
21903 rm -f conftest.$ac_objext conftest$ac_exeext
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_func___res_send=yes
21925 else
21926 $as_echo "$as_me: failed program was:" >&5
21927 sed 's/^/| /' conftest.$ac_ext >&5
21928
21929 ac_cv_func___res_send=no
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 fi
21936 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21937 $as_echo "$ac_cv_func___res_send" >&6; }
21938 if test $ac_cv_func___res_send = yes; then
21939 :
21940 else
21941 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
12196 $as_echo_n "checking for res_send in -lresolv... " >&6; } 21942 $as_echo_n "checking for res_send in -lresolv... " >&6; }
12197 if test "${ac_cv_lib_resolv_res_send+set}" = set; then : 21943 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
12198 $as_echo_n "(cached) " >&6 21944 $as_echo_n "(cached) " >&6
12199 else 21945 else
12200 ac_check_lib_save_LIBS=$LIBS 21946 ac_check_lib_save_LIBS=$LIBS
12201 LIBS="-lresolv $LIBS" 21947 LIBS="-lresolv $LIBS"
12202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21948 cat >conftest.$ac_ext <<_ACEOF
21949 /* confdefs.h. */
21950 _ACEOF
21951 cat confdefs.h >>conftest.$ac_ext
21952 cat >>conftest.$ac_ext <<_ACEOF
12203 /* end confdefs.h. */ 21953 /* end confdefs.h. */
12204 21954
12205 /* Override any GCC internal prototype to avoid an error. 21955 /* Override any GCC internal prototype to avoid an error.
12206 Use char because int might match the return type of a GCC 21956 Use char because int might match the return type of a GCC
12207 builtin and then its argument prototype would still apply. */ 21957 builtin and then its argument prototype would still apply. */
12215 return res_send (); 21965 return res_send ();
12216 ; 21966 ;
12217 return 0; 21967 return 0;
12218 } 21968 }
12219 _ACEOF 21969 _ACEOF
12220 if ac_fn_c_try_link "$LINENO"; then : 21970 rm -f conftest.$ac_objext conftest$ac_exeext
21971 if { (ac_try="$ac_link"
21972 case "(($ac_try" in
21973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21974 *) ac_try_echo=$ac_try;;
21975 esac
21976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21977 $as_echo "$ac_try_echo") >&5
21978 (eval "$ac_link") 2>conftest.er1
21979 ac_status=$?
21980 grep -v '^ *+' conftest.er1 >conftest.err
21981 rm -f conftest.er1
21982 cat conftest.err >&5
21983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21984 (exit $ac_status); } && {
21985 test -z "$ac_c_werror_flag" ||
21986 test ! -s conftest.err
21987 } && test -s conftest$ac_exeext && {
21988 test "$cross_compiling" = yes ||
21989 $as_test_x conftest$ac_exeext
21990 }; then
12221 ac_cv_lib_resolv_res_send=yes 21991 ac_cv_lib_resolv_res_send=yes
12222 else 21992 else
12223 ac_cv_lib_resolv_res_send=no 21993 $as_echo "$as_me: failed program was:" >&5
12224 fi 21994 sed 's/^/| /' conftest.$ac_ext >&5
12225 rm -f core conftest.err conftest.$ac_objext \ 21995
12226 conftest$ac_exeext conftest.$ac_ext 21996 ac_cv_lib_resolv_res_send=no
21997 fi
21998
21999 rm -rf conftest.dSYM
22000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22001 conftest$ac_exeext conftest.$ac_ext
12227 LIBS=$ac_check_lib_save_LIBS 22002 LIBS=$ac_check_lib_save_LIBS
12228 fi 22003 fi
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5 22004 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
12230 $as_echo "$ac_cv_lib_resolv_res_send" >&6; } 22005 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
12231 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then : 22006 if test $ac_cv_lib_resolv_res_send = yes; then
12232 resolv=yes 22007 resolv=yes
12233 else 22008 else
12234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5 22009 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
12235 $as_echo_n "checking for __res_send in -lresolv... " >&6; } 22010 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
12236 if test "${ac_cv_lib_resolv___res_send+set}" = set; then : 22011 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
12237 $as_echo_n "(cached) " >&6 22012 $as_echo_n "(cached) " >&6
12238 else 22013 else
12239 ac_check_lib_save_LIBS=$LIBS 22014 ac_check_lib_save_LIBS=$LIBS
12240 LIBS="-lresolv $LIBS" 22015 LIBS="-lresolv $LIBS"
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22016 cat >conftest.$ac_ext <<_ACEOF
22017 /* confdefs.h. */
22018 _ACEOF
22019 cat confdefs.h >>conftest.$ac_ext
22020 cat >>conftest.$ac_ext <<_ACEOF
12242 /* end confdefs.h. */ 22021 /* end confdefs.h. */
12243 22022
12244 /* Override any GCC internal prototype to avoid an error. 22023 /* Override any GCC internal prototype to avoid an error.
12245 Use char because int might match the return type of a GCC 22024 Use char because int might match the return type of a GCC
12246 builtin and then its argument prototype would still apply. */ 22025 builtin and then its argument prototype would still apply. */
12254 return __res_send (); 22033 return __res_send ();
12255 ; 22034 ;
12256 return 0; 22035 return 0;
12257 } 22036 }
12258 _ACEOF 22037 _ACEOF
12259 if ac_fn_c_try_link "$LINENO"; then : 22038 rm -f conftest.$ac_objext conftest$ac_exeext
22039 if { (ac_try="$ac_link"
22040 case "(($ac_try" in
22041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22042 *) ac_try_echo=$ac_try;;
22043 esac
22044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22045 $as_echo "$ac_try_echo") >&5
22046 (eval "$ac_link") 2>conftest.er1
22047 ac_status=$?
22048 grep -v '^ *+' conftest.er1 >conftest.err
22049 rm -f conftest.er1
22050 cat conftest.err >&5
22051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22052 (exit $ac_status); } && {
22053 test -z "$ac_c_werror_flag" ||
22054 test ! -s conftest.err
22055 } && test -s conftest$ac_exeext && {
22056 test "$cross_compiling" = yes ||
22057 $as_test_x conftest$ac_exeext
22058 }; then
12260 ac_cv_lib_resolv___res_send=yes 22059 ac_cv_lib_resolv___res_send=yes
12261 else 22060 else
12262 ac_cv_lib_resolv___res_send=no 22061 $as_echo "$as_me: failed program was:" >&5
12263 fi 22062 sed 's/^/| /' conftest.$ac_ext >&5
12264 rm -f core conftest.err conftest.$ac_objext \ 22063
12265 conftest$ac_exeext conftest.$ac_ext 22064 ac_cv_lib_resolv___res_send=no
22065 fi
22066
22067 rm -rf conftest.dSYM
22068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22069 conftest$ac_exeext conftest.$ac_ext
12266 LIBS=$ac_check_lib_save_LIBS 22070 LIBS=$ac_check_lib_save_LIBS
12267 fi 22071 fi
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5 22072 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
12269 $as_echo "$ac_cv_lib_resolv___res_send" >&6; } 22073 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
12270 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then : 22074 if test $ac_cv_lib_resolv___res_send = yes; then
12271 resolv=yes 22075 resolv=yes
12272 fi 22076 fi
12273 22077
12274 fi 22078 fi
12275 22079
12280 if test "$resolv" = yes ; then 22084 if test "$resolv" = yes ; then
12281 RESOLVLIB=-lresolv 22085 RESOLVLIB=-lresolv
12282 else 22086 else
12283 RESOLVLIB= 22087 RESOLVLIB=
12284 fi 22088 fi
12285 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost" 22089 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
12286 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then : 22090 $as_echo_n "checking for hes_getmailhost... " >&6; }
12287 22091 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
12288 else 22092 $as_echo_n "(cached) " >&6
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5 22093 else
22094 cat >conftest.$ac_ext <<_ACEOF
22095 /* confdefs.h. */
22096 _ACEOF
22097 cat confdefs.h >>conftest.$ac_ext
22098 cat >>conftest.$ac_ext <<_ACEOF
22099 /* end confdefs.h. */
22100 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
22101 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22102 #define hes_getmailhost innocuous_hes_getmailhost
22103
22104 /* System header to define __stub macros and hopefully few prototypes,
22105 which can conflict with char hes_getmailhost (); below.
22106 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22107 <limits.h> exists even on freestanding compilers. */
22108
22109 #ifdef __STDC__
22110 # include <limits.h>
22111 #else
22112 # include <assert.h>
22113 #endif
22114
22115 #undef hes_getmailhost
22116
22117 /* Override any GCC internal prototype to avoid an error.
22118 Use char because int might match the return type of a GCC
22119 builtin and then its argument prototype would still apply. */
22120 #ifdef __cplusplus
22121 extern "C"
22122 #endif
22123 char hes_getmailhost ();
22124 /* The GNU C library defines this for functions which it implements
22125 to always fail with ENOSYS. Some functions are actually named
22126 something starting with __ and the normal name is an alias. */
22127 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
22128 choke me
22129 #endif
22130
22131 int
22132 main ()
22133 {
22134 return hes_getmailhost ();
22135 ;
22136 return 0;
22137 }
22138 _ACEOF
22139 rm -f conftest.$ac_objext conftest$ac_exeext
22140 if { (ac_try="$ac_link"
22141 case "(($ac_try" in
22142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22143 *) ac_try_echo=$ac_try;;
22144 esac
22145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22146 $as_echo "$ac_try_echo") >&5
22147 (eval "$ac_link") 2>conftest.er1
22148 ac_status=$?
22149 grep -v '^ *+' conftest.er1 >conftest.err
22150 rm -f conftest.er1
22151 cat conftest.err >&5
22152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22153 (exit $ac_status); } && {
22154 test -z "$ac_c_werror_flag" ||
22155 test ! -s conftest.err
22156 } && test -s conftest$ac_exeext && {
22157 test "$cross_compiling" = yes ||
22158 $as_test_x conftest$ac_exeext
22159 }; then
22160 ac_cv_func_hes_getmailhost=yes
22161 else
22162 $as_echo "$as_me: failed program was:" >&5
22163 sed 's/^/| /' conftest.$ac_ext >&5
22164
22165 ac_cv_func_hes_getmailhost=no
22166 fi
22167
22168 rm -rf conftest.dSYM
22169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22170 conftest$ac_exeext conftest.$ac_ext
22171 fi
22172 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
22173 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
22174 if test $ac_cv_func_hes_getmailhost = yes; then
22175 :
22176 else
22177 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
12290 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } 22178 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
12291 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then : 22179 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
12292 $as_echo_n "(cached) " >&6 22180 $as_echo_n "(cached) " >&6
12293 else 22181 else
12294 ac_check_lib_save_LIBS=$LIBS 22182 ac_check_lib_save_LIBS=$LIBS
12295 LIBS="-lhesiod $RESOLVLIB $LIBS" 22183 LIBS="-lhesiod $RESOLVLIB $LIBS"
12296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22184 cat >conftest.$ac_ext <<_ACEOF
22185 /* confdefs.h. */
22186 _ACEOF
22187 cat confdefs.h >>conftest.$ac_ext
22188 cat >>conftest.$ac_ext <<_ACEOF
12297 /* end confdefs.h. */ 22189 /* end confdefs.h. */
12298 22190
12299 /* Override any GCC internal prototype to avoid an error. 22191 /* Override any GCC internal prototype to avoid an error.
12300 Use char because int might match the return type of a GCC 22192 Use char because int might match the return type of a GCC
12301 builtin and then its argument prototype would still apply. */ 22193 builtin and then its argument prototype would still apply. */
12309 return hes_getmailhost (); 22201 return hes_getmailhost ();
12310 ; 22202 ;
12311 return 0; 22203 return 0;
12312 } 22204 }
12313 _ACEOF 22205 _ACEOF
12314 if ac_fn_c_try_link "$LINENO"; then : 22206 rm -f conftest.$ac_objext conftest$ac_exeext
22207 if { (ac_try="$ac_link"
22208 case "(($ac_try" in
22209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210 *) ac_try_echo=$ac_try;;
22211 esac
22212 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22213 $as_echo "$ac_try_echo") >&5
22214 (eval "$ac_link") 2>conftest.er1
22215 ac_status=$?
22216 grep -v '^ *+' conftest.er1 >conftest.err
22217 rm -f conftest.er1
22218 cat conftest.err >&5
22219 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } && {
22221 test -z "$ac_c_werror_flag" ||
22222 test ! -s conftest.err
22223 } && test -s conftest$ac_exeext && {
22224 test "$cross_compiling" = yes ||
22225 $as_test_x conftest$ac_exeext
22226 }; then
12315 ac_cv_lib_hesiod_hes_getmailhost=yes 22227 ac_cv_lib_hesiod_hes_getmailhost=yes
12316 else 22228 else
12317 ac_cv_lib_hesiod_hes_getmailhost=no 22229 $as_echo "$as_me: failed program was:" >&5
12318 fi 22230 sed 's/^/| /' conftest.$ac_ext >&5
12319 rm -f core conftest.err conftest.$ac_objext \ 22231
12320 conftest$ac_exeext conftest.$ac_ext 22232 ac_cv_lib_hesiod_hes_getmailhost=no
22233 fi
22234
22235 rm -rf conftest.dSYM
22236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22237 conftest$ac_exeext conftest.$ac_ext
12321 LIBS=$ac_check_lib_save_LIBS 22238 LIBS=$ac_check_lib_save_LIBS
12322 fi 22239 fi
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 22240 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
12324 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } 22241 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
12325 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then : 22242 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
12326 hesiod=yes 22243 hesiod=yes
12327 else 22244 else
12328 : 22245 :
12329 fi 22246 fi
12330 22247
12331 fi 22248 fi
12332 22249
12333 22250
12334 if test x"$hesiod" = xyes; then 22251 if test x"$hesiod" = xyes; then
12335 22252
12336 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h 22253 cat >>confdefs.h <<\_ACEOF
22254 #define HAVE_LIBHESIOD 1
22255 _ACEOF
12337 22256
12338 LIBHESIOD=-lhesiod 22257 LIBHESIOD=-lhesiod
12339 fi 22258 fi
12340 fi 22259 fi
12341 22260
12342 22261
12343 # Do we need libresolv (due to res_init or Hesiod)? 22262 # Do we need libresolv (due to res_init or Hesiod)?
12344 if test "$resolv" = yes ; then 22263 if test "$resolv" = yes ; then
12345 22264
12346 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h 22265 cat >>confdefs.h <<\_ACEOF
22266 #define HAVE_LIBRESOLV 1
22267 _ACEOF
12347 22268
12348 LIBRESOLV=-lresolv 22269 LIBRESOLV=-lresolv
12349 else 22270 else
12350 LIBRESOLV= 22271 LIBRESOLV=
12351 fi 22272 fi
12357 KRB5LIB= 22278 KRB5LIB=
12358 DESLIB= 22279 DESLIB=
12359 KRB4LIB= 22280 KRB4LIB=
12360 22281
12361 if test "${with_kerberos}" != no; then 22282 if test "${with_kerberos}" != no; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5 22283 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
12363 $as_echo_n "checking for com_err in -lcom_err... " >&6; } 22284 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
12364 if test "${ac_cv_lib_com_err_com_err+set}" = set; then : 22285 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
12365 $as_echo_n "(cached) " >&6 22286 $as_echo_n "(cached) " >&6
12366 else 22287 else
12367 ac_check_lib_save_LIBS=$LIBS 22288 ac_check_lib_save_LIBS=$LIBS
12368 LIBS="-lcom_err $LIBS" 22289 LIBS="-lcom_err $LIBS"
12369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22290 cat >conftest.$ac_ext <<_ACEOF
22291 /* confdefs.h. */
22292 _ACEOF
22293 cat confdefs.h >>conftest.$ac_ext
22294 cat >>conftest.$ac_ext <<_ACEOF
12370 /* end confdefs.h. */ 22295 /* end confdefs.h. */
12371 22296
12372 /* Override any GCC internal prototype to avoid an error. 22297 /* Override any GCC internal prototype to avoid an error.
12373 Use char because int might match the return type of a GCC 22298 Use char because int might match the return type of a GCC
12374 builtin and then its argument prototype would still apply. */ 22299 builtin and then its argument prototype would still apply. */
12382 return com_err (); 22307 return com_err ();
12383 ; 22308 ;
12384 return 0; 22309 return 0;
12385 } 22310 }
12386 _ACEOF 22311 _ACEOF
12387 if ac_fn_c_try_link "$LINENO"; then : 22312 rm -f conftest.$ac_objext conftest$ac_exeext
22313 if { (ac_try="$ac_link"
22314 case "(($ac_try" in
22315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316 *) ac_try_echo=$ac_try;;
22317 esac
22318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22319 $as_echo "$ac_try_echo") >&5
22320 (eval "$ac_link") 2>conftest.er1
22321 ac_status=$?
22322 grep -v '^ *+' conftest.er1 >conftest.err
22323 rm -f conftest.er1
22324 cat conftest.err >&5
22325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22326 (exit $ac_status); } && {
22327 test -z "$ac_c_werror_flag" ||
22328 test ! -s conftest.err
22329 } && test -s conftest$ac_exeext && {
22330 test "$cross_compiling" = yes ||
22331 $as_test_x conftest$ac_exeext
22332 }; then
12388 ac_cv_lib_com_err_com_err=yes 22333 ac_cv_lib_com_err_com_err=yes
12389 else 22334 else
12390 ac_cv_lib_com_err_com_err=no 22335 $as_echo "$as_me: failed program was:" >&5
12391 fi 22336 sed 's/^/| /' conftest.$ac_ext >&5
12392 rm -f core conftest.err conftest.$ac_objext \ 22337
12393 conftest$ac_exeext conftest.$ac_ext 22338 ac_cv_lib_com_err_com_err=no
22339 fi
22340
22341 rm -rf conftest.dSYM
22342 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22343 conftest$ac_exeext conftest.$ac_ext
12394 LIBS=$ac_check_lib_save_LIBS 22344 LIBS=$ac_check_lib_save_LIBS
12395 fi 22345 fi
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5 22346 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
12397 $as_echo "$ac_cv_lib_com_err_com_err" >&6; } 22347 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
12398 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then : 22348 if test $ac_cv_lib_com_err_com_err = yes; then
12399 have_com_err=yes 22349 have_com_err=yes
12400 else 22350 else
12401 have_com_err=no 22351 have_com_err=no
12402 fi 22352 fi
12403 22353
12404 if test $have_com_err = yes; then 22354 if test $have_com_err = yes; then
12405 COM_ERRLIB=-lcom_err 22355 COM_ERRLIB=-lcom_err
12406 LIBS="$COM_ERRLIB $LIBS" 22356 LIBS="$COM_ERRLIB $LIBS"
12407 22357
12408 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h 22358 cat >>confdefs.h <<\_ACEOF
22359 #define HAVE_LIBCOM_ERR 1
22360 _ACEOF
12409 22361
12410 fi 22362 fi
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5 22363 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
12412 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } 22364 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
12413 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then : 22365 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
12414 $as_echo_n "(cached) " >&6 22366 $as_echo_n "(cached) " >&6
12415 else 22367 else
12416 ac_check_lib_save_LIBS=$LIBS 22368 ac_check_lib_save_LIBS=$LIBS
12417 LIBS="-lcrypto $LIBS" 22369 LIBS="-lcrypto $LIBS"
12418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22370 cat >conftest.$ac_ext <<_ACEOF
22371 /* confdefs.h. */
22372 _ACEOF
22373 cat confdefs.h >>conftest.$ac_ext
22374 cat >>conftest.$ac_ext <<_ACEOF
12419 /* end confdefs.h. */ 22375 /* end confdefs.h. */
12420 22376
12421 /* Override any GCC internal prototype to avoid an error. 22377 /* Override any GCC internal prototype to avoid an error.
12422 Use char because int might match the return type of a GCC 22378 Use char because int might match the return type of a GCC
12423 builtin and then its argument prototype would still apply. */ 22379 builtin and then its argument prototype would still apply. */
12431 return mit_des_cbc_encrypt (); 22387 return mit_des_cbc_encrypt ();
12432 ; 22388 ;
12433 return 0; 22389 return 0;
12434 } 22390 }
12435 _ACEOF 22391 _ACEOF
12436 if ac_fn_c_try_link "$LINENO"; then : 22392 rm -f conftest.$ac_objext conftest$ac_exeext
22393 if { (ac_try="$ac_link"
22394 case "(($ac_try" in
22395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22396 *) ac_try_echo=$ac_try;;
22397 esac
22398 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22399 $as_echo "$ac_try_echo") >&5
22400 (eval "$ac_link") 2>conftest.er1
22401 ac_status=$?
22402 grep -v '^ *+' conftest.er1 >conftest.err
22403 rm -f conftest.er1
22404 cat conftest.err >&5
22405 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); } && {
22407 test -z "$ac_c_werror_flag" ||
22408 test ! -s conftest.err
22409 } && test -s conftest$ac_exeext && {
22410 test "$cross_compiling" = yes ||
22411 $as_test_x conftest$ac_exeext
22412 }; then
12437 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes 22413 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
12438 else 22414 else
12439 ac_cv_lib_crypto_mit_des_cbc_encrypt=no 22415 $as_echo "$as_me: failed program was:" >&5
12440 fi 22416 sed 's/^/| /' conftest.$ac_ext >&5
12441 rm -f core conftest.err conftest.$ac_objext \ 22417
12442 conftest$ac_exeext conftest.$ac_ext 22418 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22419 fi
22420
22421 rm -rf conftest.dSYM
22422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22423 conftest$ac_exeext conftest.$ac_ext
12443 LIBS=$ac_check_lib_save_LIBS 22424 LIBS=$ac_check_lib_save_LIBS
12444 fi 22425 fi
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 22426 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
12446 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } 22427 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
12447 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then : 22428 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
12448 have_crypto=yes 22429 have_crypto=yes
12449 else 22430 else
12450 have_crypto=no 22431 have_crypto=no
12451 fi 22432 fi
12452 22433
12453 if test $have_crypto = yes; then 22434 if test $have_crypto = yes; then
12454 CRYPTOLIB=-lcrypto 22435 CRYPTOLIB=-lcrypto
12455 LIBS="$CRYPTOLIB $LIBS" 22436 LIBS="$CRYPTOLIB $LIBS"
12456 22437
12457 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h 22438 cat >>confdefs.h <<\_ACEOF
22439 #define HAVE_LIBCRYPTO 1
22440 _ACEOF
12458 22441
12459 fi 22442 fi
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 22443 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
12461 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } 22444 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
12462 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then : 22445 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
12463 $as_echo_n "(cached) " >&6 22446 $as_echo_n "(cached) " >&6
12464 else 22447 else
12465 ac_check_lib_save_LIBS=$LIBS 22448 ac_check_lib_save_LIBS=$LIBS
12466 LIBS="-lk5crypto $LIBS" 22449 LIBS="-lk5crypto $LIBS"
12467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22450 cat >conftest.$ac_ext <<_ACEOF
22451 /* confdefs.h. */
22452 _ACEOF
22453 cat confdefs.h >>conftest.$ac_ext
22454 cat >>conftest.$ac_ext <<_ACEOF
12468 /* end confdefs.h. */ 22455 /* end confdefs.h. */
12469 22456
12470 /* Override any GCC internal prototype to avoid an error. 22457 /* Override any GCC internal prototype to avoid an error.
12471 Use char because int might match the return type of a GCC 22458 Use char because int might match the return type of a GCC
12472 builtin and then its argument prototype would still apply. */ 22459 builtin and then its argument prototype would still apply. */
12480 return mit_des_cbc_encrypt (); 22467 return mit_des_cbc_encrypt ();
12481 ; 22468 ;
12482 return 0; 22469 return 0;
12483 } 22470 }
12484 _ACEOF 22471 _ACEOF
12485 if ac_fn_c_try_link "$LINENO"; then : 22472 rm -f conftest.$ac_objext conftest$ac_exeext
22473 if { (ac_try="$ac_link"
22474 case "(($ac_try" in
22475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22476 *) ac_try_echo=$ac_try;;
22477 esac
22478 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22479 $as_echo "$ac_try_echo") >&5
22480 (eval "$ac_link") 2>conftest.er1
22481 ac_status=$?
22482 grep -v '^ *+' conftest.er1 >conftest.err
22483 rm -f conftest.er1
22484 cat conftest.err >&5
22485 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22486 (exit $ac_status); } && {
22487 test -z "$ac_c_werror_flag" ||
22488 test ! -s conftest.err
22489 } && test -s conftest$ac_exeext && {
22490 test "$cross_compiling" = yes ||
22491 $as_test_x conftest$ac_exeext
22492 }; then
12486 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes 22493 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
12487 else 22494 else
12488 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no 22495 $as_echo "$as_me: failed program was:" >&5
12489 fi 22496 sed 's/^/| /' conftest.$ac_ext >&5
12490 rm -f core conftest.err conftest.$ac_objext \ 22497
12491 conftest$ac_exeext conftest.$ac_ext 22498 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22499 fi
22500
22501 rm -rf conftest.dSYM
22502 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22503 conftest$ac_exeext conftest.$ac_ext
12492 LIBS=$ac_check_lib_save_LIBS 22504 LIBS=$ac_check_lib_save_LIBS
12493 fi 22505 fi
12494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 22506 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
12495 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } 22507 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
12496 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then : 22508 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
12497 have_k5crypto=yes 22509 have_k5crypto=yes
12498 else 22510 else
12499 have_k5crypto=no 22511 have_k5crypto=no
12500 fi 22512 fi
12501 22513
12502 if test $have_k5crypto = yes; then 22514 if test $have_k5crypto = yes; then
12503 CRYPTOLIB=-lk5crypto 22515 CRYPTOLIB=-lk5crypto
12504 LIBS="$CRYPTOLIB $LIBS" 22516 LIBS="$CRYPTOLIB $LIBS"
12505 22517
12506 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h 22518 cat >>confdefs.h <<\_ACEOF
22519 #define HAVE_LIBK5CRYPTO 1
22520 _ACEOF
12507 22521
12508 fi 22522 fi
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5 22523 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
12510 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } 22524 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
12511 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then : 22525 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
12512 $as_echo_n "(cached) " >&6 22526 $as_echo_n "(cached) " >&6
12513 else 22527 else
12514 ac_check_lib_save_LIBS=$LIBS 22528 ac_check_lib_save_LIBS=$LIBS
12515 LIBS="-lkrb5 $LIBS" 22529 LIBS="-lkrb5 $LIBS"
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22530 cat >conftest.$ac_ext <<_ACEOF
22531 /* confdefs.h. */
22532 _ACEOF
22533 cat confdefs.h >>conftest.$ac_ext
22534 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */ 22535 /* end confdefs.h. */
12518 22536
12519 /* Override any GCC internal prototype to avoid an error. 22537 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC 22538 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */ 22539 builtin and then its argument prototype would still apply. */
12529 return krb5_init_context (); 22547 return krb5_init_context ();
12530 ; 22548 ;
12531 return 0; 22549 return 0;
12532 } 22550 }
12533 _ACEOF 22551 _ACEOF
12534 if ac_fn_c_try_link "$LINENO"; then : 22552 rm -f conftest.$ac_objext conftest$ac_exeext
22553 if { (ac_try="$ac_link"
22554 case "(($ac_try" in
22555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22556 *) ac_try_echo=$ac_try;;
22557 esac
22558 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22559 $as_echo "$ac_try_echo") >&5
22560 (eval "$ac_link") 2>conftest.er1
22561 ac_status=$?
22562 grep -v '^ *+' conftest.er1 >conftest.err
22563 rm -f conftest.er1
22564 cat conftest.err >&5
22565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22566 (exit $ac_status); } && {
22567 test -z "$ac_c_werror_flag" ||
22568 test ! -s conftest.err
22569 } && test -s conftest$ac_exeext && {
22570 test "$cross_compiling" = yes ||
22571 $as_test_x conftest$ac_exeext
22572 }; then
12535 ac_cv_lib_krb5_krb5_init_context=yes 22573 ac_cv_lib_krb5_krb5_init_context=yes
12536 else 22574 else
12537 ac_cv_lib_krb5_krb5_init_context=no 22575 $as_echo "$as_me: failed program was:" >&5
12538 fi 22576 sed 's/^/| /' conftest.$ac_ext >&5
12539 rm -f core conftest.err conftest.$ac_objext \ 22577
12540 conftest$ac_exeext conftest.$ac_ext 22578 ac_cv_lib_krb5_krb5_init_context=no
22579 fi
22580
22581 rm -rf conftest.dSYM
22582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22583 conftest$ac_exeext conftest.$ac_ext
12541 LIBS=$ac_check_lib_save_LIBS 22584 LIBS=$ac_check_lib_save_LIBS
12542 fi 22585 fi
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5 22586 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
12544 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } 22587 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
12545 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then : 22588 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
12546 have_krb5=yes 22589 have_krb5=yes
12547 else 22590 else
12548 have_krb5=no 22591 have_krb5=no
12549 fi 22592 fi
12550 22593
12551 if test $have_krb5=yes; then 22594 if test $have_krb5=yes; then
12552 KRB5LIB=-lkrb5 22595 KRB5LIB=-lkrb5
12553 LIBS="$KRB5LIB $LIBS" 22596 LIBS="$KRB5LIB $LIBS"
12554 22597
12555 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h 22598 cat >>confdefs.h <<\_ACEOF
22599 #define HAVE_LIBKRB5 1
22600 _ACEOF
12556 22601
12557 fi 22602 fi
12558 if test "${with_kerberos5}" = no; then 22603 if test "${with_kerberos5}" = no; then
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5 22604 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
12560 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } 22605 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
12561 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then : 22606 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
12562 $as_echo_n "(cached) " >&6 22607 $as_echo_n "(cached) " >&6
12563 else 22608 else
12564 ac_check_lib_save_LIBS=$LIBS 22609 ac_check_lib_save_LIBS=$LIBS
12565 LIBS="-ldes425 $LIBS" 22610 LIBS="-ldes425 $LIBS"
12566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22611 cat >conftest.$ac_ext <<_ACEOF
22612 /* confdefs.h. */
22613 _ACEOF
22614 cat confdefs.h >>conftest.$ac_ext
22615 cat >>conftest.$ac_ext <<_ACEOF
12567 /* end confdefs.h. */ 22616 /* end confdefs.h. */
12568 22617
12569 /* Override any GCC internal prototype to avoid an error. 22618 /* Override any GCC internal prototype to avoid an error.
12570 Use char because int might match the return type of a GCC 22619 Use char because int might match the return type of a GCC
12571 builtin and then its argument prototype would still apply. */ 22620 builtin and then its argument prototype would still apply. */
12579 return des_cbc_encrypt (); 22628 return des_cbc_encrypt ();
12580 ; 22629 ;
12581 return 0; 22630 return 0;
12582 } 22631 }
12583 _ACEOF 22632 _ACEOF
12584 if ac_fn_c_try_link "$LINENO"; then : 22633 rm -f conftest.$ac_objext conftest$ac_exeext
22634 if { (ac_try="$ac_link"
22635 case "(($ac_try" in
22636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22637 *) ac_try_echo=$ac_try;;
22638 esac
22639 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22640 $as_echo "$ac_try_echo") >&5
22641 (eval "$ac_link") 2>conftest.er1
22642 ac_status=$?
22643 grep -v '^ *+' conftest.er1 >conftest.err
22644 rm -f conftest.er1
22645 cat conftest.err >&5
22646 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22647 (exit $ac_status); } && {
22648 test -z "$ac_c_werror_flag" ||
22649 test ! -s conftest.err
22650 } && test -s conftest$ac_exeext && {
22651 test "$cross_compiling" = yes ||
22652 $as_test_x conftest$ac_exeext
22653 }; then
12585 ac_cv_lib_des425_des_cbc_encrypt=yes 22654 ac_cv_lib_des425_des_cbc_encrypt=yes
12586 else 22655 else
12587 ac_cv_lib_des425_des_cbc_encrypt=no 22656 $as_echo "$as_me: failed program was:" >&5
12588 fi 22657 sed 's/^/| /' conftest.$ac_ext >&5
12589 rm -f core conftest.err conftest.$ac_objext \ 22658
12590 conftest$ac_exeext conftest.$ac_ext 22659 ac_cv_lib_des425_des_cbc_encrypt=no
22660 fi
22661
22662 rm -rf conftest.dSYM
22663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22664 conftest$ac_exeext conftest.$ac_ext
12591 LIBS=$ac_check_lib_save_LIBS 22665 LIBS=$ac_check_lib_save_LIBS
12592 fi 22666 fi
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 22667 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
12594 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } 22668 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
12595 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then : 22669 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
12596 have_des425=yes 22670 have_des425=yes
12597 else 22671 else
12598 have_des425=no 22672 have_des425=no
12599 fi 22673 fi
12600 22674
12601 if test $have_des425 = yes; then 22675 if test $have_des425 = yes; then
12602 DESLIB=-ldes425 22676 DESLIB=-ldes425
12603 LIBS="$DESLIB $LIBS" 22677 LIBS="$DESLIB $LIBS"
12604 22678
12605 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h 22679 cat >>confdefs.h <<\_ACEOF
22680 #define HAVE_LIBDES425 1
22681 _ACEOF
12606 22682
12607 else 22683 else
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5 22684 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
12609 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 22685 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
12610 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then : 22686 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
12611 $as_echo_n "(cached) " >&6 22687 $as_echo_n "(cached) " >&6
12612 else 22688 else
12613 ac_check_lib_save_LIBS=$LIBS 22689 ac_check_lib_save_LIBS=$LIBS
12614 LIBS="-ldes $LIBS" 22690 LIBS="-ldes $LIBS"
12615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22691 cat >conftest.$ac_ext <<_ACEOF
22692 /* confdefs.h. */
22693 _ACEOF
22694 cat confdefs.h >>conftest.$ac_ext
22695 cat >>conftest.$ac_ext <<_ACEOF
12616 /* end confdefs.h. */ 22696 /* end confdefs.h. */
12617 22697
12618 /* Override any GCC internal prototype to avoid an error. 22698 /* Override any GCC internal prototype to avoid an error.
12619 Use char because int might match the return type of a GCC 22699 Use char because int might match the return type of a GCC
12620 builtin and then its argument prototype would still apply. */ 22700 builtin and then its argument prototype would still apply. */
12628 return des_cbc_encrypt (); 22708 return des_cbc_encrypt ();
12629 ; 22709 ;
12630 return 0; 22710 return 0;
12631 } 22711 }
12632 _ACEOF 22712 _ACEOF
12633 if ac_fn_c_try_link "$LINENO"; then : 22713 rm -f conftest.$ac_objext conftest$ac_exeext
22714 if { (ac_try="$ac_link"
22715 case "(($ac_try" in
22716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22717 *) ac_try_echo=$ac_try;;
22718 esac
22719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22720 $as_echo "$ac_try_echo") >&5
22721 (eval "$ac_link") 2>conftest.er1
22722 ac_status=$?
22723 grep -v '^ *+' conftest.er1 >conftest.err
22724 rm -f conftest.er1
22725 cat conftest.err >&5
22726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22727 (exit $ac_status); } && {
22728 test -z "$ac_c_werror_flag" ||
22729 test ! -s conftest.err
22730 } && test -s conftest$ac_exeext && {
22731 test "$cross_compiling" = yes ||
22732 $as_test_x conftest$ac_exeext
22733 }; then
12634 ac_cv_lib_des_des_cbc_encrypt=yes 22734 ac_cv_lib_des_des_cbc_encrypt=yes
12635 else 22735 else
12636 ac_cv_lib_des_des_cbc_encrypt=no 22736 $as_echo "$as_me: failed program was:" >&5
12637 fi 22737 sed 's/^/| /' conftest.$ac_ext >&5
12638 rm -f core conftest.err conftest.$ac_objext \ 22738
12639 conftest$ac_exeext conftest.$ac_ext 22739 ac_cv_lib_des_des_cbc_encrypt=no
22740 fi
22741
22742 rm -rf conftest.dSYM
22743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22744 conftest$ac_exeext conftest.$ac_ext
12640 LIBS=$ac_check_lib_save_LIBS 22745 LIBS=$ac_check_lib_save_LIBS
12641 fi 22746 fi
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 22747 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
12643 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 22748 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
12644 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then : 22749 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
12645 have_des=yes 22750 have_des=yes
12646 else 22751 else
12647 have_des=no 22752 have_des=no
12648 fi 22753 fi
12649 22754
12650 if test $have_des = yes; then 22755 if test $have_des = yes; then
12651 DESLIB=-ldes 22756 DESLIB=-ldes
12652 LIBS="$DESLIB $LIBS" 22757 LIBS="$DESLIB $LIBS"
12653 22758
12654 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h 22759 cat >>confdefs.h <<\_ACEOF
22760 #define HAVE_LIBDES 1
22761 _ACEOF
12655 22762
12656 fi 22763 fi
12657 fi 22764 fi
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5 22765 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
12659 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } 22766 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
12660 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then : 22767 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
12661 $as_echo_n "(cached) " >&6 22768 $as_echo_n "(cached) " >&6
12662 else 22769 else
12663 ac_check_lib_save_LIBS=$LIBS 22770 ac_check_lib_save_LIBS=$LIBS
12664 LIBS="-lkrb4 $LIBS" 22771 LIBS="-lkrb4 $LIBS"
12665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22772 cat >conftest.$ac_ext <<_ACEOF
22773 /* confdefs.h. */
22774 _ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
12666 /* end confdefs.h. */ 22777 /* end confdefs.h. */
12667 22778
12668 /* Override any GCC internal prototype to avoid an error. 22779 /* Override any GCC internal prototype to avoid an error.
12669 Use char because int might match the return type of a GCC 22780 Use char because int might match the return type of a GCC
12670 builtin and then its argument prototype would still apply. */ 22781 builtin and then its argument prototype would still apply. */
12678 return krb_get_cred (); 22789 return krb_get_cred ();
12679 ; 22790 ;
12680 return 0; 22791 return 0;
12681 } 22792 }
12682 _ACEOF 22793 _ACEOF
12683 if ac_fn_c_try_link "$LINENO"; then : 22794 rm -f conftest.$ac_objext conftest$ac_exeext
22795 if { (ac_try="$ac_link"
22796 case "(($ac_try" in
22797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22798 *) ac_try_echo=$ac_try;;
22799 esac
22800 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22801 $as_echo "$ac_try_echo") >&5
22802 (eval "$ac_link") 2>conftest.er1
22803 ac_status=$?
22804 grep -v '^ *+' conftest.er1 >conftest.err
22805 rm -f conftest.er1
22806 cat conftest.err >&5
22807 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22808 (exit $ac_status); } && {
22809 test -z "$ac_c_werror_flag" ||
22810 test ! -s conftest.err
22811 } && test -s conftest$ac_exeext && {
22812 test "$cross_compiling" = yes ||
22813 $as_test_x conftest$ac_exeext
22814 }; then
12684 ac_cv_lib_krb4_krb_get_cred=yes 22815 ac_cv_lib_krb4_krb_get_cred=yes
12685 else 22816 else
12686 ac_cv_lib_krb4_krb_get_cred=no 22817 $as_echo "$as_me: failed program was:" >&5
12687 fi 22818 sed 's/^/| /' conftest.$ac_ext >&5
12688 rm -f core conftest.err conftest.$ac_objext \ 22819
12689 conftest$ac_exeext conftest.$ac_ext 22820 ac_cv_lib_krb4_krb_get_cred=no
22821 fi
22822
22823 rm -rf conftest.dSYM
22824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22825 conftest$ac_exeext conftest.$ac_ext
12690 LIBS=$ac_check_lib_save_LIBS 22826 LIBS=$ac_check_lib_save_LIBS
12691 fi 22827 fi
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5 22828 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
12693 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } 22829 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
12694 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then : 22830 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
12695 have_krb4=yes 22831 have_krb4=yes
12696 else 22832 else
12697 have_krb4=no 22833 have_krb4=no
12698 fi 22834 fi
12699 22835
12700 if test $have_krb4 = yes; then 22836 if test $have_krb4 = yes; then
12701 KRB4LIB=-lkrb4 22837 KRB4LIB=-lkrb4
12702 LIBS="$KRB4LIB $LIBS" 22838 LIBS="$KRB4LIB $LIBS"
12703 22839
12704 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h 22840 cat >>confdefs.h <<\_ACEOF
22841 #define HAVE_LIBKRB4 1
22842 _ACEOF
12705 22843
12706 else 22844 else
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5 22845 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
12708 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } 22846 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
12709 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then : 22847 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
12710 $as_echo_n "(cached) " >&6 22848 $as_echo_n "(cached) " >&6
12711 else 22849 else
12712 ac_check_lib_save_LIBS=$LIBS 22850 ac_check_lib_save_LIBS=$LIBS
12713 LIBS="-lkrb $LIBS" 22851 LIBS="-lkrb $LIBS"
12714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22852 cat >conftest.$ac_ext <<_ACEOF
22853 /* confdefs.h. */
22854 _ACEOF
22855 cat confdefs.h >>conftest.$ac_ext
22856 cat >>conftest.$ac_ext <<_ACEOF
12715 /* end confdefs.h. */ 22857 /* end confdefs.h. */
12716 22858
12717 /* Override any GCC internal prototype to avoid an error. 22859 /* Override any GCC internal prototype to avoid an error.
12718 Use char because int might match the return type of a GCC 22860 Use char because int might match the return type of a GCC
12719 builtin and then its argument prototype would still apply. */ 22861 builtin and then its argument prototype would still apply. */
12727 return krb_get_cred (); 22869 return krb_get_cred ();
12728 ; 22870 ;
12729 return 0; 22871 return 0;
12730 } 22872 }
12731 _ACEOF 22873 _ACEOF
12732 if ac_fn_c_try_link "$LINENO"; then : 22874 rm -f conftest.$ac_objext conftest$ac_exeext
22875 if { (ac_try="$ac_link"
22876 case "(($ac_try" in
22877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878 *) ac_try_echo=$ac_try;;
22879 esac
22880 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22881 $as_echo "$ac_try_echo") >&5
22882 (eval "$ac_link") 2>conftest.er1
22883 ac_status=$?
22884 grep -v '^ *+' conftest.er1 >conftest.err
22885 rm -f conftest.er1
22886 cat conftest.err >&5
22887 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22888 (exit $ac_status); } && {
22889 test -z "$ac_c_werror_flag" ||
22890 test ! -s conftest.err
22891 } && test -s conftest$ac_exeext && {
22892 test "$cross_compiling" = yes ||
22893 $as_test_x conftest$ac_exeext
22894 }; then
12733 ac_cv_lib_krb_krb_get_cred=yes 22895 ac_cv_lib_krb_krb_get_cred=yes
12734 else 22896 else
12735 ac_cv_lib_krb_krb_get_cred=no 22897 $as_echo "$as_me: failed program was:" >&5
12736 fi 22898 sed 's/^/| /' conftest.$ac_ext >&5
12737 rm -f core conftest.err conftest.$ac_objext \ 22899
12738 conftest$ac_exeext conftest.$ac_ext 22900 ac_cv_lib_krb_krb_get_cred=no
22901 fi
22902
22903 rm -rf conftest.dSYM
22904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22905 conftest$ac_exeext conftest.$ac_ext
12739 LIBS=$ac_check_lib_save_LIBS 22906 LIBS=$ac_check_lib_save_LIBS
12740 fi 22907 fi
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5 22908 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
12742 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } 22909 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
12743 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then : 22910 if test $ac_cv_lib_krb_krb_get_cred = yes; then
12744 have_krb=yes 22911 have_krb=yes
12745 else 22912 else
12746 have_krb=no 22913 have_krb=no
12747 fi 22914 fi
12748 22915
12749 if test $have_krb = yes; then 22916 if test $have_krb = yes; then
12750 KRB4LIB=-lkrb 22917 KRB4LIB=-lkrb
12751 LIBS="$KRB4LIB $LIBS" 22918 LIBS="$KRB4LIB $LIBS"
12752 22919
12753 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h 22920 cat >>confdefs.h <<\_ACEOF
22921 #define HAVE_LIBKRB 1
22922 _ACEOF
12754 22923
12755 fi 22924 fi
12756 fi 22925 fi
12757 fi 22926 fi
12758 22927
12759 if test "${with_kerberos5}" != no; then 22928 if test "${with_kerberos5}" != no; then
12760 for ac_header in krb5.h 22929
12761 do : 22930 for ac_header in krb5.h
12762 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default" 22931 do
12763 if test "x$ac_cv_header_krb5_h" = x""yes; then : 22932 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22933 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22934 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22935 $as_echo_n "checking for $ac_header... " >&6; }
22936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22937 $as_echo_n "(cached) " >&6
22938 fi
22939 ac_res=`eval 'as_val=${'$as_ac_Header'}
22940 $as_echo "$as_val"'`
22941 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22942 $as_echo "$ac_res" >&6; }
22943 else
22944 # Is the header compilable?
22945 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22946 $as_echo_n "checking $ac_header usability... " >&6; }
22947 cat >conftest.$ac_ext <<_ACEOF
22948 /* confdefs.h. */
22949 _ACEOF
22950 cat confdefs.h >>conftest.$ac_ext
22951 cat >>conftest.$ac_ext <<_ACEOF
22952 /* end confdefs.h. */
22953 $ac_includes_default
22954 #include <$ac_header>
22955 _ACEOF
22956 rm -f conftest.$ac_objext
22957 if { (ac_try="$ac_compile"
22958 case "(($ac_try" in
22959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22960 *) ac_try_echo=$ac_try;;
22961 esac
22962 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22963 $as_echo "$ac_try_echo") >&5
22964 (eval "$ac_compile") 2>conftest.er1
22965 ac_status=$?
22966 grep -v '^ *+' conftest.er1 >conftest.err
22967 rm -f conftest.er1
22968 cat conftest.err >&5
22969 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22970 (exit $ac_status); } && {
22971 test -z "$ac_c_werror_flag" ||
22972 test ! -s conftest.err
22973 } && test -s conftest.$ac_objext; then
22974 ac_header_compiler=yes
22975 else
22976 $as_echo "$as_me: failed program was:" >&5
22977 sed 's/^/| /' conftest.$ac_ext >&5
22978
22979 ac_header_compiler=no
22980 fi
22981
22982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22983 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22984 $as_echo "$ac_header_compiler" >&6; }
22985
22986 # Is the header present?
22987 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22988 $as_echo_n "checking $ac_header presence... " >&6; }
22989 cat >conftest.$ac_ext <<_ACEOF
22990 /* confdefs.h. */
22991 _ACEOF
22992 cat confdefs.h >>conftest.$ac_ext
22993 cat >>conftest.$ac_ext <<_ACEOF
22994 /* end confdefs.h. */
22995 #include <$ac_header>
22996 _ACEOF
22997 if { (ac_try="$ac_cpp conftest.$ac_ext"
22998 case "(($ac_try" in
22999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23000 *) ac_try_echo=$ac_try;;
23001 esac
23002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23003 $as_echo "$ac_try_echo") >&5
23004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23005 ac_status=$?
23006 grep -v '^ *+' conftest.er1 >conftest.err
23007 rm -f conftest.er1
23008 cat conftest.err >&5
23009 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); } >/dev/null && {
23011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23012 test ! -s conftest.err
23013 }; then
23014 ac_header_preproc=yes
23015 else
23016 $as_echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23018
23019 ac_header_preproc=no
23020 fi
23021
23022 rm -f conftest.err conftest.$ac_ext
23023 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23024 $as_echo "$ac_header_preproc" >&6; }
23025
23026 # So? What about this header?
23027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23028 yes:no: )
23029 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23030 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23031 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23032 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23033 ac_header_preproc=yes
23034 ;;
23035 no:yes:* )
23036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23037 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23039 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23040 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23041 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23042 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23043 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23044 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23045 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23046 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23047 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23048
23049 ;;
23050 esac
23051 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23052 $as_echo_n "checking for $ac_header... " >&6; }
23053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23054 $as_echo_n "(cached) " >&6
23055 else
23056 eval "$as_ac_Header=\$ac_header_preproc"
23057 fi
23058 ac_res=`eval 'as_val=${'$as_ac_Header'}
23059 $as_echo "$as_val"'`
23060 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23061 $as_echo "$ac_res" >&6; }
23062
23063 fi
23064 if test `eval 'as_val=${'$as_ac_Header'}
23065 $as_echo "$as_val"'` = yes; then
12764 cat >>confdefs.h <<_ACEOF 23066 cat >>confdefs.h <<_ACEOF
12765 #define HAVE_KRB5_H 1 23067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12766 _ACEOF 23068 _ACEOF
12767 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h> 23069 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5
12768 " 23070 $as_echo_n "checking for krb5_error.text... " >&6; }
12769 if test "x$ac_cv_member_krb5_error_text" = x""yes; then : 23071 if test "${ac_cv_member_krb5_error_text+set}" = set; then
23072 $as_echo_n "(cached) " >&6
23073 else
23074 cat >conftest.$ac_ext <<_ACEOF
23075 /* confdefs.h. */
23076 _ACEOF
23077 cat confdefs.h >>conftest.$ac_ext
23078 cat >>conftest.$ac_ext <<_ACEOF
23079 /* end confdefs.h. */
23080 #include <krb5.h>
23081
23082 int
23083 main ()
23084 {
23085 static krb5_error ac_aggr;
23086 if (ac_aggr.text)
23087 return 0;
23088 ;
23089 return 0;
23090 }
23091 _ACEOF
23092 rm -f conftest.$ac_objext
23093 if { (ac_try="$ac_compile"
23094 case "(($ac_try" in
23095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23096 *) ac_try_echo=$ac_try;;
23097 esac
23098 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23099 $as_echo "$ac_try_echo") >&5
23100 (eval "$ac_compile") 2>conftest.er1
23101 ac_status=$?
23102 grep -v '^ *+' conftest.er1 >conftest.err
23103 rm -f conftest.er1
23104 cat conftest.err >&5
23105 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23106 (exit $ac_status); } && {
23107 test -z "$ac_c_werror_flag" ||
23108 test ! -s conftest.err
23109 } && test -s conftest.$ac_objext; then
23110 ac_cv_member_krb5_error_text=yes
23111 else
23112 $as_echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23114
23115 cat >conftest.$ac_ext <<_ACEOF
23116 /* confdefs.h. */
23117 _ACEOF
23118 cat confdefs.h >>conftest.$ac_ext
23119 cat >>conftest.$ac_ext <<_ACEOF
23120 /* end confdefs.h. */
23121 #include <krb5.h>
23122
23123 int
23124 main ()
23125 {
23126 static krb5_error ac_aggr;
23127 if (sizeof ac_aggr.text)
23128 return 0;
23129 ;
23130 return 0;
23131 }
23132 _ACEOF
23133 rm -f conftest.$ac_objext
23134 if { (ac_try="$ac_compile"
23135 case "(($ac_try" in
23136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23137 *) ac_try_echo=$ac_try;;
23138 esac
23139 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23140 $as_echo "$ac_try_echo") >&5
23141 (eval "$ac_compile") 2>conftest.er1
23142 ac_status=$?
23143 grep -v '^ *+' conftest.er1 >conftest.err
23144 rm -f conftest.er1
23145 cat conftest.err >&5
23146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23147 (exit $ac_status); } && {
23148 test -z "$ac_c_werror_flag" ||
23149 test ! -s conftest.err
23150 } && test -s conftest.$ac_objext; then
23151 ac_cv_member_krb5_error_text=yes
23152 else
23153 $as_echo "$as_me: failed program was:" >&5
23154 sed 's/^/| /' conftest.$ac_ext >&5
23155
23156 ac_cv_member_krb5_error_text=no
23157 fi
23158
23159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23160 fi
23161
23162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23163 fi
23164 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
23165 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
23166 if test $ac_cv_member_krb5_error_text = yes; then
12770 23167
12771 cat >>confdefs.h <<_ACEOF 23168 cat >>confdefs.h <<_ACEOF
12772 #define HAVE_KRB5_ERROR_TEXT 1 23169 #define HAVE_KRB5_ERROR_TEXT 1
12773 _ACEOF 23170 _ACEOF
12774 23171
12775 23172
12776 fi 23173 fi
12777 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h> 23174 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
12778 " 23175 $as_echo_n "checking for krb5_error.e_text... " >&6; }
12779 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then : 23176 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
23177 $as_echo_n "(cached) " >&6
23178 else
23179 cat >conftest.$ac_ext <<_ACEOF
23180 /* confdefs.h. */
23181 _ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h. */
23185 #include <krb5.h>
23186
23187 int
23188 main ()
23189 {
23190 static krb5_error ac_aggr;
23191 if (ac_aggr.e_text)
23192 return 0;
23193 ;
23194 return 0;
23195 }
23196 _ACEOF
23197 rm -f conftest.$ac_objext
23198 if { (ac_try="$ac_compile"
23199 case "(($ac_try" in
23200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23202 esac
23203 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23204 $as_echo "$ac_try_echo") >&5
23205 (eval "$ac_compile") 2>conftest.er1
23206 ac_status=$?
23207 grep -v '^ *+' conftest.er1 >conftest.err
23208 rm -f conftest.er1
23209 cat conftest.err >&5
23210 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23211 (exit $ac_status); } && {
23212 test -z "$ac_c_werror_flag" ||
23213 test ! -s conftest.err
23214 } && test -s conftest.$ac_objext; then
23215 ac_cv_member_krb5_error_e_text=yes
23216 else
23217 $as_echo "$as_me: failed program was:" >&5
23218 sed 's/^/| /' conftest.$ac_ext >&5
23219
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 <krb5.h>
23227
23228 int
23229 main ()
23230 {
23231 static krb5_error ac_aggr;
23232 if (sizeof ac_aggr.e_text)
23233 return 0;
23234 ;
23235 return 0;
23236 }
23237 _ACEOF
23238 rm -f conftest.$ac_objext
23239 if { (ac_try="$ac_compile"
23240 case "(($ac_try" in
23241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23242 *) ac_try_echo=$ac_try;;
23243 esac
23244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23245 $as_echo "$ac_try_echo") >&5
23246 (eval "$ac_compile") 2>conftest.er1
23247 ac_status=$?
23248 grep -v '^ *+' conftest.er1 >conftest.err
23249 rm -f conftest.er1
23250 cat conftest.err >&5
23251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23252 (exit $ac_status); } && {
23253 test -z "$ac_c_werror_flag" ||
23254 test ! -s conftest.err
23255 } && test -s conftest.$ac_objext; then
23256 ac_cv_member_krb5_error_e_text=yes
23257 else
23258 $as_echo "$as_me: failed program was:" >&5
23259 sed 's/^/| /' conftest.$ac_ext >&5
23260
23261 ac_cv_member_krb5_error_e_text=no
23262 fi
23263
23264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23265 fi
23266
23267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23268 fi
23269 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
23270 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
23271 if test $ac_cv_member_krb5_error_e_text = yes; then
12780 23272
12781 cat >>confdefs.h <<_ACEOF 23273 cat >>confdefs.h <<_ACEOF
12782 #define HAVE_KRB5_ERROR_E_TEXT 1 23274 #define HAVE_KRB5_ERROR_E_TEXT 1
12783 _ACEOF 23275 _ACEOF
12784 23276
12788 fi 23280 fi
12789 23281
12790 done 23282 done
12791 23283
12792 else 23284 else
12793 for ac_header in des.h 23285
12794 do : 23286 for ac_header in des.h
12795 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default" 23287 do
12796 if test "x$ac_cv_header_des_h" = x""yes; then : 23288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23290 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23291 $as_echo_n "checking for $ac_header... " >&6; }
23292 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23293 $as_echo_n "(cached) " >&6
23294 fi
23295 ac_res=`eval 'as_val=${'$as_ac_Header'}
23296 $as_echo "$as_val"'`
23297 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23298 $as_echo "$ac_res" >&6; }
23299 else
23300 # Is the header compilable?
23301 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23302 $as_echo_n "checking $ac_header usability... " >&6; }
23303 cat >conftest.$ac_ext <<_ACEOF
23304 /* confdefs.h. */
23305 _ACEOF
23306 cat confdefs.h >>conftest.$ac_ext
23307 cat >>conftest.$ac_ext <<_ACEOF
23308 /* end confdefs.h. */
23309 $ac_includes_default
23310 #include <$ac_header>
23311 _ACEOF
23312 rm -f conftest.$ac_objext
23313 if { (ac_try="$ac_compile"
23314 case "(($ac_try" in
23315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23316 *) ac_try_echo=$ac_try;;
23317 esac
23318 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23319 $as_echo "$ac_try_echo") >&5
23320 (eval "$ac_compile") 2>conftest.er1
23321 ac_status=$?
23322 grep -v '^ *+' conftest.er1 >conftest.err
23323 rm -f conftest.er1
23324 cat conftest.err >&5
23325 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); } && {
23327 test -z "$ac_c_werror_flag" ||
23328 test ! -s conftest.err
23329 } && test -s conftest.$ac_objext; then
23330 ac_header_compiler=yes
23331 else
23332 $as_echo "$as_me: failed program was:" >&5
23333 sed 's/^/| /' conftest.$ac_ext >&5
23334
23335 ac_header_compiler=no
23336 fi
23337
23338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23339 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23340 $as_echo "$ac_header_compiler" >&6; }
23341
23342 # Is the header present?
23343 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23344 $as_echo_n "checking $ac_header presence... " >&6; }
23345 cat >conftest.$ac_ext <<_ACEOF
23346 /* confdefs.h. */
23347 _ACEOF
23348 cat confdefs.h >>conftest.$ac_ext
23349 cat >>conftest.$ac_ext <<_ACEOF
23350 /* end confdefs.h. */
23351 #include <$ac_header>
23352 _ACEOF
23353 if { (ac_try="$ac_cpp conftest.$ac_ext"
23354 case "(($ac_try" in
23355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356 *) ac_try_echo=$ac_try;;
23357 esac
23358 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23359 $as_echo "$ac_try_echo") >&5
23360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23361 ac_status=$?
23362 grep -v '^ *+' conftest.er1 >conftest.err
23363 rm -f conftest.er1
23364 cat conftest.err >&5
23365 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23366 (exit $ac_status); } >/dev/null && {
23367 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23368 test ! -s conftest.err
23369 }; then
23370 ac_header_preproc=yes
23371 else
23372 $as_echo "$as_me: failed program was:" >&5
23373 sed 's/^/| /' conftest.$ac_ext >&5
23374
23375 ac_header_preproc=no
23376 fi
23377
23378 rm -f conftest.err conftest.$ac_ext
23379 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23380 $as_echo "$ac_header_preproc" >&6; }
23381
23382 # So? What about this header?
23383 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23384 yes:no: )
23385 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23386 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23387 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23388 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23389 ac_header_preproc=yes
23390 ;;
23391 no:yes:* )
23392 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23393 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23394 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23395 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23396 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23397 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23398 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23399 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23400 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23401 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23402 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23403 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23404
23405 ;;
23406 esac
23407 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23408 $as_echo_n "checking for $ac_header... " >&6; }
23409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23410 $as_echo_n "(cached) " >&6
23411 else
23412 eval "$as_ac_Header=\$ac_header_preproc"
23413 fi
23414 ac_res=`eval 'as_val=${'$as_ac_Header'}
23415 $as_echo "$as_val"'`
23416 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23417 $as_echo "$ac_res" >&6; }
23418
23419 fi
23420 if test `eval 'as_val=${'$as_ac_Header'}
23421 $as_echo "$as_val"'` = yes; then
12797 cat >>confdefs.h <<_ACEOF 23422 cat >>confdefs.h <<_ACEOF
12798 #define HAVE_DES_H 1 23423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12799 _ACEOF 23424 _ACEOF
12800 23425
12801 else 23426 else
12802 for ac_header in kerberosIV/des.h 23427
12803 do : 23428 for ac_header in kerberosIV/des.h
12804 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default" 23429 do
12805 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then : 23430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23432 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23433 $as_echo_n "checking for $ac_header... " >&6; }
23434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23435 $as_echo_n "(cached) " >&6
23436 fi
23437 ac_res=`eval 'as_val=${'$as_ac_Header'}
23438 $as_echo "$as_val"'`
23439 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23440 $as_echo "$ac_res" >&6; }
23441 else
23442 # Is the header compilable?
23443 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23444 $as_echo_n "checking $ac_header usability... " >&6; }
23445 cat >conftest.$ac_ext <<_ACEOF
23446 /* confdefs.h. */
23447 _ACEOF
23448 cat confdefs.h >>conftest.$ac_ext
23449 cat >>conftest.$ac_ext <<_ACEOF
23450 /* end confdefs.h. */
23451 $ac_includes_default
23452 #include <$ac_header>
23453 _ACEOF
23454 rm -f conftest.$ac_objext
23455 if { (ac_try="$ac_compile"
23456 case "(($ac_try" in
23457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23458 *) ac_try_echo=$ac_try;;
23459 esac
23460 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23461 $as_echo "$ac_try_echo") >&5
23462 (eval "$ac_compile") 2>conftest.er1
23463 ac_status=$?
23464 grep -v '^ *+' conftest.er1 >conftest.err
23465 rm -f conftest.er1
23466 cat conftest.err >&5
23467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23468 (exit $ac_status); } && {
23469 test -z "$ac_c_werror_flag" ||
23470 test ! -s conftest.err
23471 } && test -s conftest.$ac_objext; then
23472 ac_header_compiler=yes
23473 else
23474 $as_echo "$as_me: failed program was:" >&5
23475 sed 's/^/| /' conftest.$ac_ext >&5
23476
23477 ac_header_compiler=no
23478 fi
23479
23480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23481 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23482 $as_echo "$ac_header_compiler" >&6; }
23483
23484 # Is the header present?
23485 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23486 $as_echo_n "checking $ac_header presence... " >&6; }
23487 cat >conftest.$ac_ext <<_ACEOF
23488 /* confdefs.h. */
23489 _ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h. */
23493 #include <$ac_header>
23494 _ACEOF
23495 if { (ac_try="$ac_cpp conftest.$ac_ext"
23496 case "(($ac_try" in
23497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23498 *) ac_try_echo=$ac_try;;
23499 esac
23500 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23501 $as_echo "$ac_try_echo") >&5
23502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23503 ac_status=$?
23504 grep -v '^ *+' conftest.er1 >conftest.err
23505 rm -f conftest.er1
23506 cat conftest.err >&5
23507 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23508 (exit $ac_status); } >/dev/null && {
23509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23510 test ! -s conftest.err
23511 }; then
23512 ac_header_preproc=yes
23513 else
23514 $as_echo "$as_me: failed program was:" >&5
23515 sed 's/^/| /' conftest.$ac_ext >&5
23516
23517 ac_header_preproc=no
23518 fi
23519
23520 rm -f conftest.err conftest.$ac_ext
23521 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23522 $as_echo "$ac_header_preproc" >&6; }
23523
23524 # So? What about this header?
23525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23526 yes:no: )
23527 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23528 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23529 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23530 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23531 ac_header_preproc=yes
23532 ;;
23533 no:yes:* )
23534 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23535 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23536 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23537 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23538 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23539 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23540 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23541 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23542 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23543 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23544 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23545 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23546
23547 ;;
23548 esac
23549 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23550 $as_echo_n "checking for $ac_header... " >&6; }
23551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23552 $as_echo_n "(cached) " >&6
23553 else
23554 eval "$as_ac_Header=\$ac_header_preproc"
23555 fi
23556 ac_res=`eval 'as_val=${'$as_ac_Header'}
23557 $as_echo "$as_val"'`
23558 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23559 $as_echo "$ac_res" >&6; }
23560
23561 fi
23562 if test `eval 'as_val=${'$as_ac_Header'}
23563 $as_echo "$as_val"'` = yes; then
12806 cat >>confdefs.h <<_ACEOF 23564 cat >>confdefs.h <<_ACEOF
12807 #define HAVE_KERBEROSIV_DES_H 1 23565 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12808 _ACEOF 23566 _ACEOF
12809 23567
12810 else 23568 else
12811 for ac_header in kerberos/des.h 23569
12812 do : 23570 for ac_header in kerberos/des.h
12813 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default" 23571 do
12814 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then : 23572 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23573 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23574 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23575 $as_echo_n "checking for $ac_header... " >&6; }
23576 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23577 $as_echo_n "(cached) " >&6
23578 fi
23579 ac_res=`eval 'as_val=${'$as_ac_Header'}
23580 $as_echo "$as_val"'`
23581 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23582 $as_echo "$ac_res" >&6; }
23583 else
23584 # Is the header compilable?
23585 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23586 $as_echo_n "checking $ac_header usability... " >&6; }
23587 cat >conftest.$ac_ext <<_ACEOF
23588 /* confdefs.h. */
23589 _ACEOF
23590 cat confdefs.h >>conftest.$ac_ext
23591 cat >>conftest.$ac_ext <<_ACEOF
23592 /* end confdefs.h. */
23593 $ac_includes_default
23594 #include <$ac_header>
23595 _ACEOF
23596 rm -f conftest.$ac_objext
23597 if { (ac_try="$ac_compile"
23598 case "(($ac_try" in
23599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23600 *) ac_try_echo=$ac_try;;
23601 esac
23602 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23603 $as_echo "$ac_try_echo") >&5
23604 (eval "$ac_compile") 2>conftest.er1
23605 ac_status=$?
23606 grep -v '^ *+' conftest.er1 >conftest.err
23607 rm -f conftest.er1
23608 cat conftest.err >&5
23609 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23610 (exit $ac_status); } && {
23611 test -z "$ac_c_werror_flag" ||
23612 test ! -s conftest.err
23613 } && test -s conftest.$ac_objext; then
23614 ac_header_compiler=yes
23615 else
23616 $as_echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23618
23619 ac_header_compiler=no
23620 fi
23621
23622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23623 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23624 $as_echo "$ac_header_compiler" >&6; }
23625
23626 # Is the header present?
23627 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23628 $as_echo_n "checking $ac_header presence... " >&6; }
23629 cat >conftest.$ac_ext <<_ACEOF
23630 /* confdefs.h. */
23631 _ACEOF
23632 cat confdefs.h >>conftest.$ac_ext
23633 cat >>conftest.$ac_ext <<_ACEOF
23634 /* end confdefs.h. */
23635 #include <$ac_header>
23636 _ACEOF
23637 if { (ac_try="$ac_cpp conftest.$ac_ext"
23638 case "(($ac_try" in
23639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23640 *) ac_try_echo=$ac_try;;
23641 esac
23642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23643 $as_echo "$ac_try_echo") >&5
23644 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23645 ac_status=$?
23646 grep -v '^ *+' conftest.er1 >conftest.err
23647 rm -f conftest.er1
23648 cat conftest.err >&5
23649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23650 (exit $ac_status); } >/dev/null && {
23651 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23652 test ! -s conftest.err
23653 }; then
23654 ac_header_preproc=yes
23655 else
23656 $as_echo "$as_me: failed program was:" >&5
23657 sed 's/^/| /' conftest.$ac_ext >&5
23658
23659 ac_header_preproc=no
23660 fi
23661
23662 rm -f conftest.err conftest.$ac_ext
23663 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23664 $as_echo "$ac_header_preproc" >&6; }
23665
23666 # So? What about this header?
23667 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23668 yes:no: )
23669 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23670 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23671 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23672 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23673 ac_header_preproc=yes
23674 ;;
23675 no:yes:* )
23676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23677 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23679 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23681 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23683 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23684 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23685 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23686 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23687 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23688
23689 ;;
23690 esac
23691 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23692 $as_echo_n "checking for $ac_header... " >&6; }
23693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23694 $as_echo_n "(cached) " >&6
23695 else
23696 eval "$as_ac_Header=\$ac_header_preproc"
23697 fi
23698 ac_res=`eval 'as_val=${'$as_ac_Header'}
23699 $as_echo "$as_val"'`
23700 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23701 $as_echo "$ac_res" >&6; }
23702
23703 fi
23704 if test `eval 'as_val=${'$as_ac_Header'}
23705 $as_echo "$as_val"'` = yes; then
12815 cat >>confdefs.h <<_ACEOF 23706 cat >>confdefs.h <<_ACEOF
12816 #define HAVE_KERBEROS_DES_H 1 23707 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12817 _ACEOF 23708 _ACEOF
12818 23709
12819 fi 23710 fi
12820 23711
12821 done 23712 done
12826 23717
12827 fi 23718 fi
12828 23719
12829 done 23720 done
12830 23721
12831 for ac_header in krb.h 23722
12832 do : 23723 for ac_header in krb.h
12833 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default" 23724 do
12834 if test "x$ac_cv_header_krb_h" = x""yes; then : 23725 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23727 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23728 $as_echo_n "checking for $ac_header... " >&6; }
23729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23730 $as_echo_n "(cached) " >&6
23731 fi
23732 ac_res=`eval 'as_val=${'$as_ac_Header'}
23733 $as_echo "$as_val"'`
23734 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23735 $as_echo "$ac_res" >&6; }
23736 else
23737 # Is the header compilable?
23738 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23739 $as_echo_n "checking $ac_header usability... " >&6; }
23740 cat >conftest.$ac_ext <<_ACEOF
23741 /* confdefs.h. */
23742 _ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h. */
23746 $ac_includes_default
23747 #include <$ac_header>
23748 _ACEOF
23749 rm -f conftest.$ac_objext
23750 if { (ac_try="$ac_compile"
23751 case "(($ac_try" in
23752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23753 *) ac_try_echo=$ac_try;;
23754 esac
23755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23756 $as_echo "$ac_try_echo") >&5
23757 (eval "$ac_compile") 2>conftest.er1
23758 ac_status=$?
23759 grep -v '^ *+' conftest.er1 >conftest.err
23760 rm -f conftest.er1
23761 cat conftest.err >&5
23762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23763 (exit $ac_status); } && {
23764 test -z "$ac_c_werror_flag" ||
23765 test ! -s conftest.err
23766 } && test -s conftest.$ac_objext; then
23767 ac_header_compiler=yes
23768 else
23769 $as_echo "$as_me: failed program was:" >&5
23770 sed 's/^/| /' conftest.$ac_ext >&5
23771
23772 ac_header_compiler=no
23773 fi
23774
23775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23776 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23777 $as_echo "$ac_header_compiler" >&6; }
23778
23779 # Is the header present?
23780 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23781 $as_echo_n "checking $ac_header presence... " >&6; }
23782 cat >conftest.$ac_ext <<_ACEOF
23783 /* confdefs.h. */
23784 _ACEOF
23785 cat confdefs.h >>conftest.$ac_ext
23786 cat >>conftest.$ac_ext <<_ACEOF
23787 /* end confdefs.h. */
23788 #include <$ac_header>
23789 _ACEOF
23790 if { (ac_try="$ac_cpp conftest.$ac_ext"
23791 case "(($ac_try" in
23792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23793 *) ac_try_echo=$ac_try;;
23794 esac
23795 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23796 $as_echo "$ac_try_echo") >&5
23797 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23798 ac_status=$?
23799 grep -v '^ *+' conftest.er1 >conftest.err
23800 rm -f conftest.er1
23801 cat conftest.err >&5
23802 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23803 (exit $ac_status); } >/dev/null && {
23804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23805 test ! -s conftest.err
23806 }; then
23807 ac_header_preproc=yes
23808 else
23809 $as_echo "$as_me: failed program was:" >&5
23810 sed 's/^/| /' conftest.$ac_ext >&5
23811
23812 ac_header_preproc=no
23813 fi
23814
23815 rm -f conftest.err conftest.$ac_ext
23816 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23817 $as_echo "$ac_header_preproc" >&6; }
23818
23819 # So? What about this header?
23820 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23821 yes:no: )
23822 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23823 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23824 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23825 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23826 ac_header_preproc=yes
23827 ;;
23828 no:yes:* )
23829 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23830 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23831 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23832 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23833 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23834 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23835 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23836 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23837 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23838 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23839 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23840 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23841
23842 ;;
23843 esac
23844 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23845 $as_echo_n "checking for $ac_header... " >&6; }
23846 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23847 $as_echo_n "(cached) " >&6
23848 else
23849 eval "$as_ac_Header=\$ac_header_preproc"
23850 fi
23851 ac_res=`eval 'as_val=${'$as_ac_Header'}
23852 $as_echo "$as_val"'`
23853 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23854 $as_echo "$ac_res" >&6; }
23855
23856 fi
23857 if test `eval 'as_val=${'$as_ac_Header'}
23858 $as_echo "$as_val"'` = yes; then
12835 cat >>confdefs.h <<_ACEOF 23859 cat >>confdefs.h <<_ACEOF
12836 #define HAVE_KRB_H 1 23860 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12837 _ACEOF 23861 _ACEOF
12838 23862
12839 else 23863 else
12840 for ac_header in kerberosIV/krb.h 23864
12841 do : 23865 for ac_header in kerberosIV/krb.h
12842 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default" 23866 do
12843 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then : 23867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23869 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23870 $as_echo_n "checking for $ac_header... " >&6; }
23871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23872 $as_echo_n "(cached) " >&6
23873 fi
23874 ac_res=`eval 'as_val=${'$as_ac_Header'}
23875 $as_echo "$as_val"'`
23876 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23877 $as_echo "$ac_res" >&6; }
23878 else
23879 # Is the header compilable?
23880 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23881 $as_echo_n "checking $ac_header usability... " >&6; }
23882 cat >conftest.$ac_ext <<_ACEOF
23883 /* confdefs.h. */
23884 _ACEOF
23885 cat confdefs.h >>conftest.$ac_ext
23886 cat >>conftest.$ac_ext <<_ACEOF
23887 /* end confdefs.h. */
23888 $ac_includes_default
23889 #include <$ac_header>
23890 _ACEOF
23891 rm -f conftest.$ac_objext
23892 if { (ac_try="$ac_compile"
23893 case "(($ac_try" in
23894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23895 *) ac_try_echo=$ac_try;;
23896 esac
23897 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23898 $as_echo "$ac_try_echo") >&5
23899 (eval "$ac_compile") 2>conftest.er1
23900 ac_status=$?
23901 grep -v '^ *+' conftest.er1 >conftest.err
23902 rm -f conftest.er1
23903 cat conftest.err >&5
23904 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23905 (exit $ac_status); } && {
23906 test -z "$ac_c_werror_flag" ||
23907 test ! -s conftest.err
23908 } && test -s conftest.$ac_objext; then
23909 ac_header_compiler=yes
23910 else
23911 $as_echo "$as_me: failed program was:" >&5
23912 sed 's/^/| /' conftest.$ac_ext >&5
23913
23914 ac_header_compiler=no
23915 fi
23916
23917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23918 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23919 $as_echo "$ac_header_compiler" >&6; }
23920
23921 # Is the header present?
23922 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23923 $as_echo_n "checking $ac_header presence... " >&6; }
23924 cat >conftest.$ac_ext <<_ACEOF
23925 /* confdefs.h. */
23926 _ACEOF
23927 cat confdefs.h >>conftest.$ac_ext
23928 cat >>conftest.$ac_ext <<_ACEOF
23929 /* end confdefs.h. */
23930 #include <$ac_header>
23931 _ACEOF
23932 if { (ac_try="$ac_cpp conftest.$ac_ext"
23933 case "(($ac_try" in
23934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23935 *) ac_try_echo=$ac_try;;
23936 esac
23937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23938 $as_echo "$ac_try_echo") >&5
23939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23940 ac_status=$?
23941 grep -v '^ *+' conftest.er1 >conftest.err
23942 rm -f conftest.er1
23943 cat conftest.err >&5
23944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23945 (exit $ac_status); } >/dev/null && {
23946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23947 test ! -s conftest.err
23948 }; then
23949 ac_header_preproc=yes
23950 else
23951 $as_echo "$as_me: failed program was:" >&5
23952 sed 's/^/| /' conftest.$ac_ext >&5
23953
23954 ac_header_preproc=no
23955 fi
23956
23957 rm -f conftest.err conftest.$ac_ext
23958 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23959 $as_echo "$ac_header_preproc" >&6; }
23960
23961 # So? What about this header?
23962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23963 yes:no: )
23964 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23965 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23966 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23967 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23968 ac_header_preproc=yes
23969 ;;
23970 no:yes:* )
23971 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23972 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23973 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23974 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23975 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23976 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23977 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23978 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23979 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23980 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23981 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23982 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23983
23984 ;;
23985 esac
23986 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23987 $as_echo_n "checking for $ac_header... " >&6; }
23988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23989 $as_echo_n "(cached) " >&6
23990 else
23991 eval "$as_ac_Header=\$ac_header_preproc"
23992 fi
23993 ac_res=`eval 'as_val=${'$as_ac_Header'}
23994 $as_echo "$as_val"'`
23995 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23996 $as_echo "$ac_res" >&6; }
23997
23998 fi
23999 if test `eval 'as_val=${'$as_ac_Header'}
24000 $as_echo "$as_val"'` = yes; then
12844 cat >>confdefs.h <<_ACEOF 24001 cat >>confdefs.h <<_ACEOF
12845 #define HAVE_KERBEROSIV_KRB_H 1 24002 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12846 _ACEOF 24003 _ACEOF
12847 24004
12848 else 24005 else
12849 for ac_header in kerberos/krb.h 24006
12850 do : 24007 for ac_header in kerberos/krb.h
12851 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default" 24008 do
12852 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then : 24009 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24010 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24011 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24012 $as_echo_n "checking for $ac_header... " >&6; }
24013 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24014 $as_echo_n "(cached) " >&6
24015 fi
24016 ac_res=`eval 'as_val=${'$as_ac_Header'}
24017 $as_echo "$as_val"'`
24018 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24019 $as_echo "$ac_res" >&6; }
24020 else
24021 # Is the header compilable?
24022 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24023 $as_echo_n "checking $ac_header usability... " >&6; }
24024 cat >conftest.$ac_ext <<_ACEOF
24025 /* confdefs.h. */
24026 _ACEOF
24027 cat confdefs.h >>conftest.$ac_ext
24028 cat >>conftest.$ac_ext <<_ACEOF
24029 /* end confdefs.h. */
24030 $ac_includes_default
24031 #include <$ac_header>
24032 _ACEOF
24033 rm -f conftest.$ac_objext
24034 if { (ac_try="$ac_compile"
24035 case "(($ac_try" in
24036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24037 *) ac_try_echo=$ac_try;;
24038 esac
24039 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24040 $as_echo "$ac_try_echo") >&5
24041 (eval "$ac_compile") 2>conftest.er1
24042 ac_status=$?
24043 grep -v '^ *+' conftest.er1 >conftest.err
24044 rm -f conftest.er1
24045 cat conftest.err >&5
24046 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24047 (exit $ac_status); } && {
24048 test -z "$ac_c_werror_flag" ||
24049 test ! -s conftest.err
24050 } && test -s conftest.$ac_objext; then
24051 ac_header_compiler=yes
24052 else
24053 $as_echo "$as_me: failed program was:" >&5
24054 sed 's/^/| /' conftest.$ac_ext >&5
24055
24056 ac_header_compiler=no
24057 fi
24058
24059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24060 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24061 $as_echo "$ac_header_compiler" >&6; }
24062
24063 # Is the header present?
24064 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24065 $as_echo_n "checking $ac_header presence... " >&6; }
24066 cat >conftest.$ac_ext <<_ACEOF
24067 /* confdefs.h. */
24068 _ACEOF
24069 cat confdefs.h >>conftest.$ac_ext
24070 cat >>conftest.$ac_ext <<_ACEOF
24071 /* end confdefs.h. */
24072 #include <$ac_header>
24073 _ACEOF
24074 if { (ac_try="$ac_cpp conftest.$ac_ext"
24075 case "(($ac_try" in
24076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24077 *) ac_try_echo=$ac_try;;
24078 esac
24079 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24080 $as_echo "$ac_try_echo") >&5
24081 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24082 ac_status=$?
24083 grep -v '^ *+' conftest.er1 >conftest.err
24084 rm -f conftest.er1
24085 cat conftest.err >&5
24086 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24087 (exit $ac_status); } >/dev/null && {
24088 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24089 test ! -s conftest.err
24090 }; then
24091 ac_header_preproc=yes
24092 else
24093 $as_echo "$as_me: failed program was:" >&5
24094 sed 's/^/| /' conftest.$ac_ext >&5
24095
24096 ac_header_preproc=no
24097 fi
24098
24099 rm -f conftest.err conftest.$ac_ext
24100 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24101 $as_echo "$ac_header_preproc" >&6; }
24102
24103 # So? What about this header?
24104 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24105 yes:no: )
24106 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24107 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24108 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24109 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24110 ac_header_preproc=yes
24111 ;;
24112 no:yes:* )
24113 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24114 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24115 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24116 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24117 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24118 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24119 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24120 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24121 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24122 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24123 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24124 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24125
24126 ;;
24127 esac
24128 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24129 $as_echo_n "checking for $ac_header... " >&6; }
24130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24131 $as_echo_n "(cached) " >&6
24132 else
24133 eval "$as_ac_Header=\$ac_header_preproc"
24134 fi
24135 ac_res=`eval 'as_val=${'$as_ac_Header'}
24136 $as_echo "$as_val"'`
24137 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24138 $as_echo "$ac_res" >&6; }
24139
24140 fi
24141 if test `eval 'as_val=${'$as_ac_Header'}
24142 $as_echo "$as_val"'` = yes; then
12853 cat >>confdefs.h <<_ACEOF 24143 cat >>confdefs.h <<_ACEOF
12854 #define HAVE_KERBEROS_KRB_H 1 24144 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12855 _ACEOF 24145 _ACEOF
12856 24146
12857 fi 24147 fi
12858 24148
12859 done 24149 done
12865 fi 24155 fi
12866 24156
12867 done 24157 done
12868 24158
12869 fi 24159 fi
12870 for ac_header in com_err.h 24160
12871 do : 24161 for ac_header in com_err.h
12872 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default" 24162 do
12873 if test "x$ac_cv_header_com_err_h" = x""yes; then : 24163 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24165 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24166 $as_echo_n "checking for $ac_header... " >&6; }
24167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24168 $as_echo_n "(cached) " >&6
24169 fi
24170 ac_res=`eval 'as_val=${'$as_ac_Header'}
24171 $as_echo "$as_val"'`
24172 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24173 $as_echo "$ac_res" >&6; }
24174 else
24175 # Is the header compilable?
24176 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24177 $as_echo_n "checking $ac_header usability... " >&6; }
24178 cat >conftest.$ac_ext <<_ACEOF
24179 /* confdefs.h. */
24180 _ACEOF
24181 cat confdefs.h >>conftest.$ac_ext
24182 cat >>conftest.$ac_ext <<_ACEOF
24183 /* end confdefs.h. */
24184 $ac_includes_default
24185 #include <$ac_header>
24186 _ACEOF
24187 rm -f conftest.$ac_objext
24188 if { (ac_try="$ac_compile"
24189 case "(($ac_try" in
24190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24191 *) ac_try_echo=$ac_try;;
24192 esac
24193 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24194 $as_echo "$ac_try_echo") >&5
24195 (eval "$ac_compile") 2>conftest.er1
24196 ac_status=$?
24197 grep -v '^ *+' conftest.er1 >conftest.err
24198 rm -f conftest.er1
24199 cat conftest.err >&5
24200 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); } && {
24202 test -z "$ac_c_werror_flag" ||
24203 test ! -s conftest.err
24204 } && test -s conftest.$ac_objext; then
24205 ac_header_compiler=yes
24206 else
24207 $as_echo "$as_me: failed program was:" >&5
24208 sed 's/^/| /' conftest.$ac_ext >&5
24209
24210 ac_header_compiler=no
24211 fi
24212
24213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24214 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24215 $as_echo "$ac_header_compiler" >&6; }
24216
24217 # Is the header present?
24218 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24219 $as_echo_n "checking $ac_header presence... " >&6; }
24220 cat >conftest.$ac_ext <<_ACEOF
24221 /* confdefs.h. */
24222 _ACEOF
24223 cat confdefs.h >>conftest.$ac_ext
24224 cat >>conftest.$ac_ext <<_ACEOF
24225 /* end confdefs.h. */
24226 #include <$ac_header>
24227 _ACEOF
24228 if { (ac_try="$ac_cpp conftest.$ac_ext"
24229 case "(($ac_try" in
24230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24231 *) ac_try_echo=$ac_try;;
24232 esac
24233 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24234 $as_echo "$ac_try_echo") >&5
24235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24236 ac_status=$?
24237 grep -v '^ *+' conftest.er1 >conftest.err
24238 rm -f conftest.er1
24239 cat conftest.err >&5
24240 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); } >/dev/null && {
24242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24243 test ! -s conftest.err
24244 }; then
24245 ac_header_preproc=yes
24246 else
24247 $as_echo "$as_me: failed program was:" >&5
24248 sed 's/^/| /' conftest.$ac_ext >&5
24249
24250 ac_header_preproc=no
24251 fi
24252
24253 rm -f conftest.err conftest.$ac_ext
24254 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24255 $as_echo "$ac_header_preproc" >&6; }
24256
24257 # So? What about this header?
24258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24259 yes:no: )
24260 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24261 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24262 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24263 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24264 ac_header_preproc=yes
24265 ;;
24266 no:yes:* )
24267 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24268 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24269 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24270 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24271 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24272 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24273 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24274 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24275 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24276 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24277 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24278 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24279
24280 ;;
24281 esac
24282 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24283 $as_echo_n "checking for $ac_header... " >&6; }
24284 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24285 $as_echo_n "(cached) " >&6
24286 else
24287 eval "$as_ac_Header=\$ac_header_preproc"
24288 fi
24289 ac_res=`eval 'as_val=${'$as_ac_Header'}
24290 $as_echo "$as_val"'`
24291 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24292 $as_echo "$ac_res" >&6; }
24293
24294 fi
24295 if test `eval 'as_val=${'$as_ac_Header'}
24296 $as_echo "$as_val"'` = yes; then
12874 cat >>confdefs.h <<_ACEOF 24297 cat >>confdefs.h <<_ACEOF
12875 #define HAVE_COM_ERR_H 1 24298 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12876 _ACEOF 24299 _ACEOF
12877 24300
12878 fi 24301 fi
12879 24302
12880 done 24303 done
12887 24310
12888 24311
12889 24312
12890 # Solaris requires -lintl if you want strerror (which calls dgettext) 24313 # Solaris requires -lintl if you want strerror (which calls dgettext)
12891 # to return localized messages. 24314 # to return localized messages.
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5 24315
24316 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
12893 $as_echo_n "checking for dgettext in -lintl... " >&6; } 24317 $as_echo_n "checking for dgettext in -lintl... " >&6; }
12894 if test "${ac_cv_lib_intl_dgettext+set}" = set; then : 24318 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
12895 $as_echo_n "(cached) " >&6 24319 $as_echo_n "(cached) " >&6
12896 else 24320 else
12897 ac_check_lib_save_LIBS=$LIBS 24321 ac_check_lib_save_LIBS=$LIBS
12898 LIBS="-lintl $LIBS" 24322 LIBS="-lintl $LIBS"
12899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24323 cat >conftest.$ac_ext <<_ACEOF
24324 /* confdefs.h. */
24325 _ACEOF
24326 cat confdefs.h >>conftest.$ac_ext
24327 cat >>conftest.$ac_ext <<_ACEOF
12900 /* end confdefs.h. */ 24328 /* end confdefs.h. */
12901 24329
12902 /* Override any GCC internal prototype to avoid an error. 24330 /* Override any GCC internal prototype to avoid an error.
12903 Use char because int might match the return type of a GCC 24331 Use char because int might match the return type of a GCC
12904 builtin and then its argument prototype would still apply. */ 24332 builtin and then its argument prototype would still apply. */
12912 return dgettext (); 24340 return dgettext ();
12913 ; 24341 ;
12914 return 0; 24342 return 0;
12915 } 24343 }
12916 _ACEOF 24344 _ACEOF
12917 if ac_fn_c_try_link "$LINENO"; then : 24345 rm -f conftest.$ac_objext conftest$ac_exeext
24346 if { (ac_try="$ac_link"
24347 case "(($ac_try" in
24348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24349 *) ac_try_echo=$ac_try;;
24350 esac
24351 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24352 $as_echo "$ac_try_echo") >&5
24353 (eval "$ac_link") 2>conftest.er1
24354 ac_status=$?
24355 grep -v '^ *+' conftest.er1 >conftest.err
24356 rm -f conftest.er1
24357 cat conftest.err >&5
24358 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24359 (exit $ac_status); } && {
24360 test -z "$ac_c_werror_flag" ||
24361 test ! -s conftest.err
24362 } && test -s conftest$ac_exeext && {
24363 test "$cross_compiling" = yes ||
24364 $as_test_x conftest$ac_exeext
24365 }; then
12918 ac_cv_lib_intl_dgettext=yes 24366 ac_cv_lib_intl_dgettext=yes
12919 else 24367 else
12920 ac_cv_lib_intl_dgettext=no 24368 $as_echo "$as_me: failed program was:" >&5
12921 fi 24369 sed 's/^/| /' conftest.$ac_ext >&5
12922 rm -f core conftest.err conftest.$ac_objext \ 24370
12923 conftest$ac_exeext conftest.$ac_ext 24371 ac_cv_lib_intl_dgettext=no
24372 fi
24373
24374 rm -rf conftest.dSYM
24375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24376 conftest$ac_exeext conftest.$ac_ext
12924 LIBS=$ac_check_lib_save_LIBS 24377 LIBS=$ac_check_lib_save_LIBS
12925 fi 24378 fi
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5 24379 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
12927 $as_echo "$ac_cv_lib_intl_dgettext" >&6; } 24380 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
12928 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then : 24381 if test $ac_cv_lib_intl_dgettext = yes; then
12929 cat >>confdefs.h <<_ACEOF 24382 cat >>confdefs.h <<_ACEOF
12930 #define HAVE_LIBINTL 1 24383 #define HAVE_LIBINTL 1
12931 _ACEOF 24384 _ACEOF
12932 24385
12933 LIBS="-lintl $LIBS" 24386 LIBS="-lintl $LIBS"
12934 24387
12935 fi 24388 fi
12936 24389
12937 24390
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5 24391 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
12939 $as_echo_n "checking whether localtime caches TZ... " >&6; } 24392 $as_echo_n "checking whether localtime caches TZ... " >&6; }
12940 if test "${emacs_cv_localtime_cache+set}" = set; then : 24393 if test "${emacs_cv_localtime_cache+set}" = set; then
12941 $as_echo_n "(cached) " >&6 24394 $as_echo_n "(cached) " >&6
12942 else 24395 else
12943 if test x$ac_cv_func_tzset = xyes; then 24396 if test x$ac_cv_func_tzset = xyes; then
12944 if test "$cross_compiling" = yes; then : 24397 if test "$cross_compiling" = yes; then
12945 # If we have tzset, assume the worst when cross-compiling. 24398 # If we have tzset, assume the worst when cross-compiling.
12946 emacs_cv_localtime_cache=yes 24399 emacs_cv_localtime_cache=yes
12947 else 24400 else
12948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24401 cat >conftest.$ac_ext <<_ACEOF
24402 /* confdefs.h. */
24403 _ACEOF
24404 cat confdefs.h >>conftest.$ac_ext
24405 cat >>conftest.$ac_ext <<_ACEOF
12949 /* end confdefs.h. */ 24406 /* end confdefs.h. */
12950 #include <time.h> 24407 #include <time.h>
12951 extern char **environ; 24408 extern char **environ;
12952 unset_TZ () 24409 unset_TZ ()
12953 { 24410 {
12975 if (localtime (&now)->tm_hour != hour_unset) 24432 if (localtime (&now)->tm_hour != hour_unset)
12976 exit (1); 24433 exit (1);
12977 exit (0); 24434 exit (0);
12978 } 24435 }
12979 _ACEOF 24436 _ACEOF
12980 if ac_fn_c_try_run "$LINENO"; then : 24437 rm -f conftest$ac_exeext
24438 if { (ac_try="$ac_link"
24439 case "(($ac_try" in
24440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24441 *) ac_try_echo=$ac_try;;
24442 esac
24443 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24444 $as_echo "$ac_try_echo") >&5
24445 (eval "$ac_link") 2>&5
24446 ac_status=$?
24447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24449 { (case "(($ac_try" in
24450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24451 *) ac_try_echo=$ac_try;;
24452 esac
24453 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24454 $as_echo "$ac_try_echo") >&5
24455 (eval "$ac_try") 2>&5
24456 ac_status=$?
24457 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24458 (exit $ac_status); }; }; then
12981 emacs_cv_localtime_cache=no 24459 emacs_cv_localtime_cache=no
12982 else 24460 else
12983 emacs_cv_localtime_cache=yes 24461 $as_echo "$as_me: program exited with status $ac_status" >&5
12984 fi 24462 $as_echo "$as_me: failed program was:" >&5
12985 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24463 sed 's/^/| /' conftest.$ac_ext >&5
12986 conftest.$ac_objext conftest.beam conftest.$ac_ext 24464
12987 fi 24465 ( exit $ac_status )
24466 emacs_cv_localtime_cache=yes
24467 fi
24468 rm -rf conftest.dSYM
24469 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24470 fi
24471
12988 24472
12989 else 24473 else
12990 # If we lack tzset, report that localtime does not cache TZ, 24474 # If we lack tzset, report that localtime does not cache TZ,
12991 # since we can't invalidate the cache if we don't have tzset. 24475 # since we can't invalidate the cache if we don't have tzset.
12992 emacs_cv_localtime_cache=no 24476 emacs_cv_localtime_cache=no
12993 fi 24477 fi
12994 fi 24478 fi
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5 24479 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
12996 $as_echo "$emacs_cv_localtime_cache" >&6; } 24480 $as_echo "$emacs_cv_localtime_cache" >&6; }
12997 if test $emacs_cv_localtime_cache = yes; then 24481 if test $emacs_cv_localtime_cache = yes; then
12998 24482
12999 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h 24483 cat >>confdefs.h <<\_ACEOF
24484 #define LOCALTIME_CACHE 1
24485 _ACEOF
13000 24486
13001 fi 24487 fi
13002 24488
13003 if test "x$HAVE_TIMEVAL" = xyes; then 24489 if test "x$HAVE_TIMEVAL" = xyes; then
13004 for ac_func in gettimeofday 24490
13005 do : 24491 for ac_func in gettimeofday
13006 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday" 24492 do
13007 if test "x$ac_cv_func_gettimeofday" = x""yes; then : 24493 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24494 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
24495 $as_echo_n "checking for $ac_func... " >&6; }
24496 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24497 $as_echo_n "(cached) " >&6
24498 else
24499 cat >conftest.$ac_ext <<_ACEOF
24500 /* confdefs.h. */
24501 _ACEOF
24502 cat confdefs.h >>conftest.$ac_ext
24503 cat >>conftest.$ac_ext <<_ACEOF
24504 /* end confdefs.h. */
24505 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24506 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24507 #define $ac_func innocuous_$ac_func
24508
24509 /* System header to define __stub macros and hopefully few prototypes,
24510 which can conflict with char $ac_func (); below.
24511 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24512 <limits.h> exists even on freestanding compilers. */
24513
24514 #ifdef __STDC__
24515 # include <limits.h>
24516 #else
24517 # include <assert.h>
24518 #endif
24519
24520 #undef $ac_func
24521
24522 /* Override any GCC internal prototype to avoid an error.
24523 Use char because int might match the return type of a GCC
24524 builtin and then its argument prototype would still apply. */
24525 #ifdef __cplusplus
24526 extern "C"
24527 #endif
24528 char $ac_func ();
24529 /* The GNU C library defines this for functions which it implements
24530 to always fail with ENOSYS. Some functions are actually named
24531 something starting with __ and the normal name is an alias. */
24532 #if defined __stub_$ac_func || defined __stub___$ac_func
24533 choke me
24534 #endif
24535
24536 int
24537 main ()
24538 {
24539 return $ac_func ();
24540 ;
24541 return 0;
24542 }
24543 _ACEOF
24544 rm -f conftest.$ac_objext conftest$ac_exeext
24545 if { (ac_try="$ac_link"
24546 case "(($ac_try" in
24547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24548 *) ac_try_echo=$ac_try;;
24549 esac
24550 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24551 $as_echo "$ac_try_echo") >&5
24552 (eval "$ac_link") 2>conftest.er1
24553 ac_status=$?
24554 grep -v '^ *+' conftest.er1 >conftest.err
24555 rm -f conftest.er1
24556 cat conftest.err >&5
24557 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24558 (exit $ac_status); } && {
24559 test -z "$ac_c_werror_flag" ||
24560 test ! -s conftest.err
24561 } && test -s conftest$ac_exeext && {
24562 test "$cross_compiling" = yes ||
24563 $as_test_x conftest$ac_exeext
24564 }; then
24565 eval "$as_ac_var=yes"
24566 else
24567 $as_echo "$as_me: failed program was:" >&5
24568 sed 's/^/| /' conftest.$ac_ext >&5
24569
24570 eval "$as_ac_var=no"
24571 fi
24572
24573 rm -rf conftest.dSYM
24574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24575 conftest$ac_exeext conftest.$ac_ext
24576 fi
24577 ac_res=`eval 'as_val=${'$as_ac_var'}
24578 $as_echo "$as_val"'`
24579 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24580 $as_echo "$ac_res" >&6; }
24581 if test `eval 'as_val=${'$as_ac_var'}
24582 $as_echo "$as_val"'` = yes; then
13008 cat >>confdefs.h <<_ACEOF 24583 cat >>confdefs.h <<_ACEOF
13009 #define HAVE_GETTIMEOFDAY 1 24584 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13010 _ACEOF 24585 _ACEOF
13011 24586
13012 fi 24587 fi
13013 done 24588 done
13014 24589
13015 if test $ac_cv_func_gettimeofday = yes; then 24590 if test $ac_cv_func_gettimeofday = yes; then
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5 24591 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
13017 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; } 24592 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
13018 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then : 24593 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
13019 $as_echo_n "(cached) " >&6 24594 $as_echo_n "(cached) " >&6
13020 else 24595 else
13021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24596 cat >conftest.$ac_ext <<_ACEOF
24597 /* confdefs.h. */
24598 _ACEOF
24599 cat confdefs.h >>conftest.$ac_ext
24600 cat >>conftest.$ac_ext <<_ACEOF
13022 /* end confdefs.h. */ 24601 /* end confdefs.h. */
13023 24602
13024 #ifdef TIME_WITH_SYS_TIME 24603 #ifdef TIME_WITH_SYS_TIME
13025 #include <sys/time.h> 24604 #include <sys/time.h>
13026 #include <time.h> 24605 #include <time.h>
13038 gettimeofday (&time, 0); 24617 gettimeofday (&time, 0);
13039 ; 24618 ;
13040 return 0; 24619 return 0;
13041 } 24620 }
13042 _ACEOF 24621 _ACEOF
13043 if ac_fn_c_try_compile "$LINENO"; then : 24622 rm -f conftest.$ac_objext
24623 if { (ac_try="$ac_compile"
24624 case "(($ac_try" in
24625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24626 *) ac_try_echo=$ac_try;;
24627 esac
24628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24629 $as_echo "$ac_try_echo") >&5
24630 (eval "$ac_compile") 2>conftest.er1
24631 ac_status=$?
24632 grep -v '^ *+' conftest.er1 >conftest.err
24633 rm -f conftest.er1
24634 cat conftest.err >&5
24635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24636 (exit $ac_status); } && {
24637 test -z "$ac_c_werror_flag" ||
24638 test ! -s conftest.err
24639 } && test -s conftest.$ac_objext; then
13044 emacs_cv_gettimeofday_two_arguments=yes 24640 emacs_cv_gettimeofday_two_arguments=yes
13045 else 24641 else
13046 emacs_cv_gettimeofday_two_arguments=no 24642 $as_echo "$as_me: failed program was:" >&5
13047 fi 24643 sed 's/^/| /' conftest.$ac_ext >&5
24644
24645 emacs_cv_gettimeofday_two_arguments=no
24646 fi
24647
13048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13049 fi 24649 fi
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5 24650 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
13051 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } 24651 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
13052 if test $emacs_cv_gettimeofday_two_arguments = no; then 24652 if test $emacs_cv_gettimeofday_two_arguments = no; then
13053 24653
13054 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h 24654 cat >>confdefs.h <<\_ACEOF
24655 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24656 _ACEOF
13055 24657
13056 fi 24658 fi
13057 fi 24659 fi
13058 fi 24660 fi
13059 24661
13060 ok_so_far=yes 24662 ok_so_far=yes
13061 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket" 24663 { $as_echo "$as_me:$LINENO: checking for socket" >&5
13062 if test "x$ac_cv_func_socket" = x""yes; then : 24664 $as_echo_n "checking for socket... " >&6; }
13063 24665 if test "${ac_cv_func_socket+set}" = set; then
24666 $as_echo_n "(cached) " >&6
24667 else
24668 cat >conftest.$ac_ext <<_ACEOF
24669 /* confdefs.h. */
24670 _ACEOF
24671 cat confdefs.h >>conftest.$ac_ext
24672 cat >>conftest.$ac_ext <<_ACEOF
24673 /* end confdefs.h. */
24674 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24676 #define socket innocuous_socket
24677
24678 /* System header to define __stub macros and hopefully few prototypes,
24679 which can conflict with char socket (); below.
24680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24681 <limits.h> exists even on freestanding compilers. */
24682
24683 #ifdef __STDC__
24684 # include <limits.h>
24685 #else
24686 # include <assert.h>
24687 #endif
24688
24689 #undef socket
24690
24691 /* Override any GCC internal prototype to avoid an error.
24692 Use char because int might match the return type of a GCC
24693 builtin and then its argument prototype would still apply. */
24694 #ifdef __cplusplus
24695 extern "C"
24696 #endif
24697 char socket ();
24698 /* The GNU C library defines this for functions which it implements
24699 to always fail with ENOSYS. Some functions are actually named
24700 something starting with __ and the normal name is an alias. */
24701 #if defined __stub_socket || defined __stub___socket
24702 choke me
24703 #endif
24704
24705 int
24706 main ()
24707 {
24708 return socket ();
24709 ;
24710 return 0;
24711 }
24712 _ACEOF
24713 rm -f conftest.$ac_objext conftest$ac_exeext
24714 if { (ac_try="$ac_link"
24715 case "(($ac_try" in
24716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24717 *) ac_try_echo=$ac_try;;
24718 esac
24719 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24720 $as_echo "$ac_try_echo") >&5
24721 (eval "$ac_link") 2>conftest.er1
24722 ac_status=$?
24723 grep -v '^ *+' conftest.er1 >conftest.err
24724 rm -f conftest.er1
24725 cat conftest.err >&5
24726 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24727 (exit $ac_status); } && {
24728 test -z "$ac_c_werror_flag" ||
24729 test ! -s conftest.err
24730 } && test -s conftest$ac_exeext && {
24731 test "$cross_compiling" = yes ||
24732 $as_test_x conftest$ac_exeext
24733 }; then
24734 ac_cv_func_socket=yes
24735 else
24736 $as_echo "$as_me: failed program was:" >&5
24737 sed 's/^/| /' conftest.$ac_ext >&5
24738
24739 ac_cv_func_socket=no
24740 fi
24741
24742 rm -rf conftest.dSYM
24743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24744 conftest$ac_exeext conftest.$ac_ext
24745 fi
24746 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24747 $as_echo "$ac_cv_func_socket" >&6; }
24748 if test $ac_cv_func_socket = yes; then
24749 :
13064 else 24750 else
13065 ok_so_far=no 24751 ok_so_far=no
13066 fi 24752 fi
13067 24753
13068 if test $ok_so_far = yes; then 24754 if test $ok_so_far = yes; then
13069 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default" 24755 if test "${ac_cv_header_netinet_in_h+set}" = set; then
13070 if test "x$ac_cv_header_netinet_in_h" = x""yes; then : 24756 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
13071 24757 $as_echo_n "checking for netinet/in.h... " >&6; }
24758 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24759 $as_echo_n "(cached) " >&6
24760 fi
24761 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24762 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24763 else
24764 # Is the header compilable?
24765 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24766 $as_echo_n "checking netinet/in.h usability... " >&6; }
24767 cat >conftest.$ac_ext <<_ACEOF
24768 /* confdefs.h. */
24769 _ACEOF
24770 cat confdefs.h >>conftest.$ac_ext
24771 cat >>conftest.$ac_ext <<_ACEOF
24772 /* end confdefs.h. */
24773 $ac_includes_default
24774 #include <netinet/in.h>
24775 _ACEOF
24776 rm -f conftest.$ac_objext
24777 if { (ac_try="$ac_compile"
24778 case "(($ac_try" in
24779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24780 *) ac_try_echo=$ac_try;;
24781 esac
24782 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24783 $as_echo "$ac_try_echo") >&5
24784 (eval "$ac_compile") 2>conftest.er1
24785 ac_status=$?
24786 grep -v '^ *+' conftest.er1 >conftest.err
24787 rm -f conftest.er1
24788 cat conftest.err >&5
24789 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24790 (exit $ac_status); } && {
24791 test -z "$ac_c_werror_flag" ||
24792 test ! -s conftest.err
24793 } && test -s conftest.$ac_objext; then
24794 ac_header_compiler=yes
24795 else
24796 $as_echo "$as_me: failed program was:" >&5
24797 sed 's/^/| /' conftest.$ac_ext >&5
24798
24799 ac_header_compiler=no
24800 fi
24801
24802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24803 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24804 $as_echo "$ac_header_compiler" >&6; }
24805
24806 # Is the header present?
24807 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24808 $as_echo_n "checking netinet/in.h presence... " >&6; }
24809 cat >conftest.$ac_ext <<_ACEOF
24810 /* confdefs.h. */
24811 _ACEOF
24812 cat confdefs.h >>conftest.$ac_ext
24813 cat >>conftest.$ac_ext <<_ACEOF
24814 /* end confdefs.h. */
24815 #include <netinet/in.h>
24816 _ACEOF
24817 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
24831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24832 test ! -s conftest.err
24833 }; then
24834 ac_header_preproc=yes
24835 else
24836 $as_echo "$as_me: failed program was:" >&5
24837 sed 's/^/| /' conftest.$ac_ext >&5
24838
24839 ac_header_preproc=no
24840 fi
24841
24842 rm -f conftest.err conftest.$ac_ext
24843 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24844 $as_echo "$ac_header_preproc" >&6; }
24845
24846 # So? What about this header?
24847 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24848 yes:no: )
24849 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24850 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24851 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24852 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24853 ac_header_preproc=yes
24854 ;;
24855 no:yes:* )
24856 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24857 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24858 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24859 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24860 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24861 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24862 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24863 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24864 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24865 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24866 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24867 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24868
24869 ;;
24870 esac
24871 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24872 $as_echo_n "checking for netinet/in.h... " >&6; }
24873 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24874 $as_echo_n "(cached) " >&6
24875 else
24876 ac_cv_header_netinet_in_h=$ac_header_preproc
24877 fi
24878 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24879 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24880
24881 fi
24882 if test $ac_cv_header_netinet_in_h = yes; then
24883 :
13072 else 24884 else
13073 ok_so_far=no 24885 ok_so_far=no
13074 fi 24886 fi
13075 24887
13076 24888
13077 fi 24889 fi
13078 if test $ok_so_far = yes; then 24890 if test $ok_so_far = yes; then
13079 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default" 24891 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
13080 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then : 24892 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
13081 24893 $as_echo_n "checking for arpa/inet.h... " >&6; }
24894 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24895 $as_echo_n "(cached) " >&6
24896 fi
24897 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24898 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24899 else
24900 # Is the header compilable?
24901 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24902 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24903 cat >conftest.$ac_ext <<_ACEOF
24904 /* confdefs.h. */
24905 _ACEOF
24906 cat confdefs.h >>conftest.$ac_ext
24907 cat >>conftest.$ac_ext <<_ACEOF
24908 /* end confdefs.h. */
24909 $ac_includes_default
24910 #include <arpa/inet.h>
24911 _ACEOF
24912 rm -f conftest.$ac_objext
24913 if { (ac_try="$ac_compile"
24914 case "(($ac_try" in
24915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24916 *) ac_try_echo=$ac_try;;
24917 esac
24918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24919 $as_echo "$ac_try_echo") >&5
24920 (eval "$ac_compile") 2>conftest.er1
24921 ac_status=$?
24922 grep -v '^ *+' conftest.er1 >conftest.err
24923 rm -f conftest.er1
24924 cat conftest.err >&5
24925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24926 (exit $ac_status); } && {
24927 test -z "$ac_c_werror_flag" ||
24928 test ! -s conftest.err
24929 } && test -s conftest.$ac_objext; then
24930 ac_header_compiler=yes
24931 else
24932 $as_echo "$as_me: failed program was:" >&5
24933 sed 's/^/| /' conftest.$ac_ext >&5
24934
24935 ac_header_compiler=no
24936 fi
24937
24938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24939 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24940 $as_echo "$ac_header_compiler" >&6; }
24941
24942 # Is the header present?
24943 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24944 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24945 cat >conftest.$ac_ext <<_ACEOF
24946 /* confdefs.h. */
24947 _ACEOF
24948 cat confdefs.h >>conftest.$ac_ext
24949 cat >>conftest.$ac_ext <<_ACEOF
24950 /* end confdefs.h. */
24951 #include <arpa/inet.h>
24952 _ACEOF
24953 if { (ac_try="$ac_cpp conftest.$ac_ext"
24954 case "(($ac_try" in
24955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24956 *) ac_try_echo=$ac_try;;
24957 esac
24958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24959 $as_echo "$ac_try_echo") >&5
24960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24961 ac_status=$?
24962 grep -v '^ *+' conftest.er1 >conftest.err
24963 rm -f conftest.er1
24964 cat conftest.err >&5
24965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24966 (exit $ac_status); } >/dev/null && {
24967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24968 test ! -s conftest.err
24969 }; then
24970 ac_header_preproc=yes
24971 else
24972 $as_echo "$as_me: failed program was:" >&5
24973 sed 's/^/| /' conftest.$ac_ext >&5
24974
24975 ac_header_preproc=no
24976 fi
24977
24978 rm -f conftest.err conftest.$ac_ext
24979 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24980 $as_echo "$ac_header_preproc" >&6; }
24981
24982 # So? What about this header?
24983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24984 yes:no: )
24985 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24986 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24987 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24988 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24989 ac_header_preproc=yes
24990 ;;
24991 no:yes:* )
24992 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24993 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24994 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24995 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24996 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24997 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24998 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24999 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
25000 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
25001 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
25002 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
25003 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
25004
25005 ;;
25006 esac
25007 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
25008 $as_echo_n "checking for arpa/inet.h... " >&6; }
25009 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
25010 $as_echo_n "(cached) " >&6
25011 else
25012 ac_cv_header_arpa_inet_h=$ac_header_preproc
25013 fi
25014 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
25015 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
25016
25017 fi
25018 if test $ac_cv_header_arpa_inet_h = yes; then
25019 :
13082 else 25020 else
13083 ok_so_far=no 25021 ok_so_far=no
13084 fi 25022 fi
13085 25023
13086 25024
13087 fi 25025 fi
13088 if test $ok_so_far = yes; then 25026 if test $ok_so_far = yes; then
13089 25027
13090 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h 25028 cat >>confdefs.h <<\_ACEOF
13091 25029 #define HAVE_INET_SOCKETS 1
13092 fi 25030 _ACEOF
25031
25032 fi
25033
13093 25034
13094 for ac_header in sys/ioctl.h 25035 for ac_header in sys/ioctl.h
13095 do : 25036 do
13096 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" 25037 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13097 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then : 25038 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25039 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25040 $as_echo_n "checking for $ac_header... " >&6; }
25041 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25042 $as_echo_n "(cached) " >&6
25043 fi
25044 ac_res=`eval 'as_val=${'$as_ac_Header'}
25045 $as_echo "$as_val"'`
25046 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25047 $as_echo "$ac_res" >&6; }
25048 else
25049 # Is the header compilable?
25050 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25051 $as_echo_n "checking $ac_header usability... " >&6; }
25052 cat >conftest.$ac_ext <<_ACEOF
25053 /* confdefs.h. */
25054 _ACEOF
25055 cat confdefs.h >>conftest.$ac_ext
25056 cat >>conftest.$ac_ext <<_ACEOF
25057 /* end confdefs.h. */
25058 $ac_includes_default
25059 #include <$ac_header>
25060 _ACEOF
25061 rm -f conftest.$ac_objext
25062 if { (ac_try="$ac_compile"
25063 case "(($ac_try" in
25064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25065 *) ac_try_echo=$ac_try;;
25066 esac
25067 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25068 $as_echo "$ac_try_echo") >&5
25069 (eval "$ac_compile") 2>conftest.er1
25070 ac_status=$?
25071 grep -v '^ *+' conftest.er1 >conftest.err
25072 rm -f conftest.er1
25073 cat conftest.err >&5
25074 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25075 (exit $ac_status); } && {
25076 test -z "$ac_c_werror_flag" ||
25077 test ! -s conftest.err
25078 } && test -s conftest.$ac_objext; then
25079 ac_header_compiler=yes
25080 else
25081 $as_echo "$as_me: failed program was:" >&5
25082 sed 's/^/| /' conftest.$ac_ext >&5
25083
25084 ac_header_compiler=no
25085 fi
25086
25087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25088 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25089 $as_echo "$ac_header_compiler" >&6; }
25090
25091 # Is the header present?
25092 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25093 $as_echo_n "checking $ac_header presence... " >&6; }
25094 cat >conftest.$ac_ext <<_ACEOF
25095 /* confdefs.h. */
25096 _ACEOF
25097 cat confdefs.h >>conftest.$ac_ext
25098 cat >>conftest.$ac_ext <<_ACEOF
25099 /* end confdefs.h. */
25100 #include <$ac_header>
25101 _ACEOF
25102 if { (ac_try="$ac_cpp conftest.$ac_ext"
25103 case "(($ac_try" in
25104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25105 *) ac_try_echo=$ac_try;;
25106 esac
25107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25108 $as_echo "$ac_try_echo") >&5
25109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25110 ac_status=$?
25111 grep -v '^ *+' conftest.er1 >conftest.err
25112 rm -f conftest.er1
25113 cat conftest.err >&5
25114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25115 (exit $ac_status); } >/dev/null && {
25116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25117 test ! -s conftest.err
25118 }; then
25119 ac_header_preproc=yes
25120 else
25121 $as_echo "$as_me: failed program was:" >&5
25122 sed 's/^/| /' conftest.$ac_ext >&5
25123
25124 ac_header_preproc=no
25125 fi
25126
25127 rm -f conftest.err conftest.$ac_ext
25128 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25129 $as_echo "$ac_header_preproc" >&6; }
25130
25131 # So? What about this header?
25132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25133 yes:no: )
25134 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25135 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25136 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25137 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25138 ac_header_preproc=yes
25139 ;;
25140 no:yes:* )
25141 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25142 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25143 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25144 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25145 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25146 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25147 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25148 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25149 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25150 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25151 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25152 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25153
25154 ;;
25155 esac
25156 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25157 $as_echo_n "checking for $ac_header... " >&6; }
25158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25159 $as_echo_n "(cached) " >&6
25160 else
25161 eval "$as_ac_Header=\$ac_header_preproc"
25162 fi
25163 ac_res=`eval 'as_val=${'$as_ac_Header'}
25164 $as_echo "$as_val"'`
25165 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25166 $as_echo "$ac_res" >&6; }
25167
25168 fi
25169 if test `eval 'as_val=${'$as_ac_Header'}
25170 $as_echo "$as_val"'` = yes; then
13098 cat >>confdefs.h <<_ACEOF 25171 cat >>confdefs.h <<_ACEOF
13099 #define HAVE_SYS_IOCTL_H 1 25172 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13100 _ACEOF 25173 _ACEOF
13101 25174
13102 fi 25175 fi
13103 25176
13104 done 25177 done
13105 25178
13106 25179
13107 if test -f /usr/lpp/X11/bin/smt.exp; then 25180 if test -f /usr/lpp/X11/bin/smt.exp; then
13108 25181
13109 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h 25182 cat >>confdefs.h <<\_ACEOF
13110 25183 #define HAVE_AIX_SMT_EXP 1
13111 fi 25184 _ACEOF
13112 25185
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5 25186 fi
25187
25188 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
13114 $as_echo_n "checking whether system supports dynamic ptys... " >&6; } 25189 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
13115 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 25190 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
13116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 25191 { $as_echo "$as_me:$LINENO: result: yes" >&5
13117 $as_echo "yes" >&6; } 25192 $as_echo "yes" >&6; }
13118 25193
13119 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h 25194 cat >>confdefs.h <<\_ACEOF
13120 25195 #define HAVE_DEV_PTMX 1
13121 else 25196 _ACEOF
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 25197
25198 else
25199 { $as_echo "$as_me:$LINENO: result: no" >&5
13123 $as_echo "no" >&6; } 25200 $as_echo "no" >&6; }
13124 fi 25201 fi
13125 25202
13126 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 25203 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5
13127 if test "x$ac_cv_type_pid_t" = x""yes; then : 25204 $as_echo_n "checking for pid_t... " >&6; }
13128 25205 if test "${ac_cv_type_pid_t+set}" = set; then
13129 else
13130
13131 cat >>confdefs.h <<_ACEOF
13132 #define pid_t int
13133 _ACEOF
13134
13135 fi
13136
13137 for ac_header in vfork.h
13138 do :
13139 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
13140 if test "x$ac_cv_header_vfork_h" = x""yes; then :
13141 cat >>confdefs.h <<_ACEOF
13142 #define HAVE_VFORK_H 1
13143 _ACEOF
13144
13145 fi
13146
13147 done
13148
13149 for ac_func in fork vfork
13150 do :
13151 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13152 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13153 eval as_val=\$$as_ac_var
13154 if test "x$as_val" = x""yes; then :
13155 cat >>confdefs.h <<_ACEOF
13156 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13157 _ACEOF
13158
13159 fi
13160 done
13161
13162 if test "x$ac_cv_func_fork" = xyes; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13164 $as_echo_n "checking for working fork... " >&6; }
13165 if test "${ac_cv_func_fork_works+set}" = set; then :
13166 $as_echo_n "(cached) " >&6 25206 $as_echo_n "(cached) " >&6
13167 else 25207 else
13168 if test "$cross_compiling" = yes; then : 25208 ac_cv_type_pid_t=no
13169 ac_cv_func_fork_works=cross 25209 cat >conftest.$ac_ext <<_ACEOF
13170 else 25210 /* confdefs.h. */
13171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25211 _ACEOF
25212 cat confdefs.h >>conftest.$ac_ext
25213 cat >>conftest.$ac_ext <<_ACEOF
13172 /* end confdefs.h. */ 25214 /* end confdefs.h. */
13173 $ac_includes_default 25215 $ac_includes_default
13174 int 25216 int
13175 main () 25217 main ()
13176 { 25218 {
13177 25219 if (sizeof (pid_t))
13178 /* By Ruediger Kuhlmann. */ 25220 return 0;
13179 return fork () < 0;
13180
13181 ; 25221 ;
13182 return 0; 25222 return 0;
13183 } 25223 }
13184 _ACEOF 25224 _ACEOF
13185 if ac_fn_c_try_run "$LINENO"; then : 25225 rm -f conftest.$ac_objext
25226 if { (ac_try="$ac_compile"
25227 case "(($ac_try" in
25228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25229 *) ac_try_echo=$ac_try;;
25230 esac
25231 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25232 $as_echo "$ac_try_echo") >&5
25233 (eval "$ac_compile") 2>conftest.er1
25234 ac_status=$?
25235 grep -v '^ *+' conftest.er1 >conftest.err
25236 rm -f conftest.er1
25237 cat conftest.err >&5
25238 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25239 (exit $ac_status); } && {
25240 test -z "$ac_c_werror_flag" ||
25241 test ! -s conftest.err
25242 } && test -s conftest.$ac_objext; then
25243 cat >conftest.$ac_ext <<_ACEOF
25244 /* confdefs.h. */
25245 _ACEOF
25246 cat confdefs.h >>conftest.$ac_ext
25247 cat >>conftest.$ac_ext <<_ACEOF
25248 /* end confdefs.h. */
25249 $ac_includes_default
25250 int
25251 main ()
25252 {
25253 if (sizeof ((pid_t)))
25254 return 0;
25255 ;
25256 return 0;
25257 }
25258 _ACEOF
25259 rm -f conftest.$ac_objext
25260 if { (ac_try="$ac_compile"
25261 case "(($ac_try" in
25262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25263 *) ac_try_echo=$ac_try;;
25264 esac
25265 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25266 $as_echo "$ac_try_echo") >&5
25267 (eval "$ac_compile") 2>conftest.er1
25268 ac_status=$?
25269 grep -v '^ *+' conftest.er1 >conftest.err
25270 rm -f conftest.er1
25271 cat conftest.err >&5
25272 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); } && {
25274 test -z "$ac_c_werror_flag" ||
25275 test ! -s conftest.err
25276 } && test -s conftest.$ac_objext; then
25277 :
25278 else
25279 $as_echo "$as_me: failed program was:" >&5
25280 sed 's/^/| /' conftest.$ac_ext >&5
25281
25282 ac_cv_type_pid_t=yes
25283 fi
25284
25285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25286 else
25287 $as_echo "$as_me: failed program was:" >&5
25288 sed 's/^/| /' conftest.$ac_ext >&5
25289
25290
25291 fi
25292
25293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25294 fi
25295 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
25296 $as_echo "$ac_cv_type_pid_t" >&6; }
25297 if test $ac_cv_type_pid_t = yes; then
25298 :
25299 else
25300
25301 cat >>confdefs.h <<_ACEOF
25302 #define pid_t int
25303 _ACEOF
25304
25305 fi
25306
25307
25308 for ac_header in vfork.h
25309 do
25310 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25312 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25313 $as_echo_n "checking for $ac_header... " >&6; }
25314 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25315 $as_echo_n "(cached) " >&6
25316 fi
25317 ac_res=`eval 'as_val=${'$as_ac_Header'}
25318 $as_echo "$as_val"'`
25319 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25320 $as_echo "$ac_res" >&6; }
25321 else
25322 # Is the header compilable?
25323 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
25324 $as_echo_n "checking $ac_header usability... " >&6; }
25325 cat >conftest.$ac_ext <<_ACEOF
25326 /* confdefs.h. */
25327 _ACEOF
25328 cat confdefs.h >>conftest.$ac_ext
25329 cat >>conftest.$ac_ext <<_ACEOF
25330 /* end confdefs.h. */
25331 $ac_includes_default
25332 #include <$ac_header>
25333 _ACEOF
25334 rm -f conftest.$ac_objext
25335 if { (ac_try="$ac_compile"
25336 case "(($ac_try" in
25337 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25338 *) ac_try_echo=$ac_try;;
25339 esac
25340 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25341 $as_echo "$ac_try_echo") >&5
25342 (eval "$ac_compile") 2>conftest.er1
25343 ac_status=$?
25344 grep -v '^ *+' conftest.er1 >conftest.err
25345 rm -f conftest.er1
25346 cat conftest.err >&5
25347 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } && {
25349 test -z "$ac_c_werror_flag" ||
25350 test ! -s conftest.err
25351 } && test -s conftest.$ac_objext; then
25352 ac_header_compiler=yes
25353 else
25354 $as_echo "$as_me: failed program was:" >&5
25355 sed 's/^/| /' conftest.$ac_ext >&5
25356
25357 ac_header_compiler=no
25358 fi
25359
25360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25361 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25362 $as_echo "$ac_header_compiler" >&6; }
25363
25364 # Is the header present?
25365 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25366 $as_echo_n "checking $ac_header presence... " >&6; }
25367 cat >conftest.$ac_ext <<_ACEOF
25368 /* confdefs.h. */
25369 _ACEOF
25370 cat confdefs.h >>conftest.$ac_ext
25371 cat >>conftest.$ac_ext <<_ACEOF
25372 /* end confdefs.h. */
25373 #include <$ac_header>
25374 _ACEOF
25375 if { (ac_try="$ac_cpp conftest.$ac_ext"
25376 case "(($ac_try" in
25377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25378 *) ac_try_echo=$ac_try;;
25379 esac
25380 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25381 $as_echo "$ac_try_echo") >&5
25382 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25383 ac_status=$?
25384 grep -v '^ *+' conftest.er1 >conftest.err
25385 rm -f conftest.er1
25386 cat conftest.err >&5
25387 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25388 (exit $ac_status); } >/dev/null && {
25389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25390 test ! -s conftest.err
25391 }; then
25392 ac_header_preproc=yes
25393 else
25394 $as_echo "$as_me: failed program was:" >&5
25395 sed 's/^/| /' conftest.$ac_ext >&5
25396
25397 ac_header_preproc=no
25398 fi
25399
25400 rm -f conftest.err conftest.$ac_ext
25401 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25402 $as_echo "$ac_header_preproc" >&6; }
25403
25404 # So? What about this header?
25405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25406 yes:no: )
25407 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25408 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25409 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25410 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25411 ac_header_preproc=yes
25412 ;;
25413 no:yes:* )
25414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25415 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25417 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25419 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25420 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25421 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25422 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25423 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25424 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25425 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25426
25427 ;;
25428 esac
25429 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25430 $as_echo_n "checking for $ac_header... " >&6; }
25431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25432 $as_echo_n "(cached) " >&6
25433 else
25434 eval "$as_ac_Header=\$ac_header_preproc"
25435 fi
25436 ac_res=`eval 'as_val=${'$as_ac_Header'}
25437 $as_echo "$as_val"'`
25438 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25439 $as_echo "$ac_res" >&6; }
25440
25441 fi
25442 if test `eval 'as_val=${'$as_ac_Header'}
25443 $as_echo "$as_val"'` = yes; then
25444 cat >>confdefs.h <<_ACEOF
25445 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25446 _ACEOF
25447
25448 fi
25449
25450 done
25451
25452
25453
25454 for ac_func in fork vfork
25455 do
25456 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25457 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25458 $as_echo_n "checking for $ac_func... " >&6; }
25459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25460 $as_echo_n "(cached) " >&6
25461 else
25462 cat >conftest.$ac_ext <<_ACEOF
25463 /* confdefs.h. */
25464 _ACEOF
25465 cat confdefs.h >>conftest.$ac_ext
25466 cat >>conftest.$ac_ext <<_ACEOF
25467 /* end confdefs.h. */
25468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25470 #define $ac_func innocuous_$ac_func
25471
25472 /* System header to define __stub macros and hopefully few prototypes,
25473 which can conflict with char $ac_func (); below.
25474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25475 <limits.h> exists even on freestanding compilers. */
25476
25477 #ifdef __STDC__
25478 # include <limits.h>
25479 #else
25480 # include <assert.h>
25481 #endif
25482
25483 #undef $ac_func
25484
25485 /* Override any GCC internal prototype to avoid an error.
25486 Use char because int might match the return type of a GCC
25487 builtin and then its argument prototype would still apply. */
25488 #ifdef __cplusplus
25489 extern "C"
25490 #endif
25491 char $ac_func ();
25492 /* The GNU C library defines this for functions which it implements
25493 to always fail with ENOSYS. Some functions are actually named
25494 something starting with __ and the normal name is an alias. */
25495 #if defined __stub_$ac_func || defined __stub___$ac_func
25496 choke me
25497 #endif
25498
25499 int
25500 main ()
25501 {
25502 return $ac_func ();
25503 ;
25504 return 0;
25505 }
25506 _ACEOF
25507 rm -f conftest.$ac_objext conftest$ac_exeext
25508 if { (ac_try="$ac_link"
25509 case "(($ac_try" in
25510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25511 *) ac_try_echo=$ac_try;;
25512 esac
25513 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25514 $as_echo "$ac_try_echo") >&5
25515 (eval "$ac_link") 2>conftest.er1
25516 ac_status=$?
25517 grep -v '^ *+' conftest.er1 >conftest.err
25518 rm -f conftest.er1
25519 cat conftest.err >&5
25520 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25521 (exit $ac_status); } && {
25522 test -z "$ac_c_werror_flag" ||
25523 test ! -s conftest.err
25524 } && test -s conftest$ac_exeext && {
25525 test "$cross_compiling" = yes ||
25526 $as_test_x conftest$ac_exeext
25527 }; then
25528 eval "$as_ac_var=yes"
25529 else
25530 $as_echo "$as_me: failed program was:" >&5
25531 sed 's/^/| /' conftest.$ac_ext >&5
25532
25533 eval "$as_ac_var=no"
25534 fi
25535
25536 rm -rf conftest.dSYM
25537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25538 conftest$ac_exeext conftest.$ac_ext
25539 fi
25540 ac_res=`eval 'as_val=${'$as_ac_var'}
25541 $as_echo "$as_val"'`
25542 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25543 $as_echo "$ac_res" >&6; }
25544 if test `eval 'as_val=${'$as_ac_var'}
25545 $as_echo "$as_val"'` = yes; then
25546 cat >>confdefs.h <<_ACEOF
25547 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25548 _ACEOF
25549
25550 fi
25551 done
25552
25553 if test "x$ac_cv_func_fork" = xyes; then
25554 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25555 $as_echo_n "checking for working fork... " >&6; }
25556 if test "${ac_cv_func_fork_works+set}" = set; then
25557 $as_echo_n "(cached) " >&6
25558 else
25559 if test "$cross_compiling" = yes; then
25560 ac_cv_func_fork_works=cross
25561 else
25562 cat >conftest.$ac_ext <<_ACEOF
25563 /* confdefs.h. */
25564 _ACEOF
25565 cat confdefs.h >>conftest.$ac_ext
25566 cat >>conftest.$ac_ext <<_ACEOF
25567 /* end confdefs.h. */
25568 $ac_includes_default
25569 int
25570 main ()
25571 {
25572
25573 /* By Ruediger Kuhlmann. */
25574 return fork () < 0;
25575
25576 ;
25577 return 0;
25578 }
25579 _ACEOF
25580 rm -f conftest$ac_exeext
25581 if { (ac_try="$ac_link"
25582 case "(($ac_try" in
25583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25584 *) ac_try_echo=$ac_try;;
25585 esac
25586 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25587 $as_echo "$ac_try_echo") >&5
25588 (eval "$ac_link") 2>&5
25589 ac_status=$?
25590 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25591 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25592 { (case "(($ac_try" in
25593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25594 *) ac_try_echo=$ac_try;;
25595 esac
25596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25597 $as_echo "$ac_try_echo") >&5
25598 (eval "$ac_try") 2>&5
25599 ac_status=$?
25600 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25601 (exit $ac_status); }; }; then
13186 ac_cv_func_fork_works=yes 25602 ac_cv_func_fork_works=yes
13187 else 25603 else
13188 ac_cv_func_fork_works=no 25604 $as_echo "$as_me: program exited with status $ac_status" >&5
13189 fi 25605 $as_echo "$as_me: failed program was:" >&5
13190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25606 sed 's/^/| /' conftest.$ac_ext >&5
13191 conftest.$ac_objext conftest.beam conftest.$ac_ext 25607
13192 fi 25608 ( exit $ac_status )
13193 25609 ac_cv_func_fork_works=no
13194 fi 25610 fi
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 25611 rm -rf conftest.dSYM
25612 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25613 fi
25614
25615
25616 fi
25617 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
13196 $as_echo "$ac_cv_func_fork_works" >&6; } 25618 $as_echo "$ac_cv_func_fork_works" >&6; }
13197 25619
13198 else 25620 else
13199 ac_cv_func_fork_works=$ac_cv_func_fork 25621 ac_cv_func_fork_works=$ac_cv_func_fork
13200 fi 25622 fi
13206 ;; 25628 ;;
13207 *) 25629 *)
13208 ac_cv_func_fork_works=yes 25630 ac_cv_func_fork_works=yes
13209 ;; 25631 ;;
13210 esac 25632 esac
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 25633 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
13212 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 25634 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
13213 fi 25635 fi
13214 ac_cv_func_vfork_works=$ac_cv_func_vfork 25636 ac_cv_func_vfork_works=$ac_cv_func_vfork
13215 if test "x$ac_cv_func_vfork" = xyes; then 25637 if test "x$ac_cv_func_vfork" = xyes; then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 25638 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5
13217 $as_echo_n "checking for working vfork... " >&6; } 25639 $as_echo_n "checking for working vfork... " >&6; }
13218 if test "${ac_cv_func_vfork_works+set}" = set; then : 25640 if test "${ac_cv_func_vfork_works+set}" = set; then
13219 $as_echo_n "(cached) " >&6 25641 $as_echo_n "(cached) " >&6
13220 else 25642 else
13221 if test "$cross_compiling" = yes; then : 25643 if test "$cross_compiling" = yes; then
13222 ac_cv_func_vfork_works=cross 25644 ac_cv_func_vfork_works=cross
13223 else 25645 else
13224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25646 cat >conftest.$ac_ext <<_ACEOF
25647 /* confdefs.h. */
25648 _ACEOF
25649 cat confdefs.h >>conftest.$ac_ext
25650 cat >>conftest.$ac_ext <<_ACEOF
13225 /* end confdefs.h. */ 25651 /* end confdefs.h. */
13226 /* Thanks to Paul Eggert for this test. */ 25652 /* Thanks to Paul Eggert for this test. */
13227 $ac_includes_default 25653 $ac_includes_default
13228 #include <sys/wait.h> 25654 #include <sys/wait.h>
13229 #ifdef HAVE_VFORK_H 25655 #ifdef HAVE_VFORK_H
13311 || fstat(fileno(stdout), &st) != 0 25737 || fstat(fileno(stdout), &st) != 0
13312 ); 25738 );
13313 } 25739 }
13314 } 25740 }
13315 _ACEOF 25741 _ACEOF
13316 if ac_fn_c_try_run "$LINENO"; then : 25742 rm -f conftest$ac_exeext
25743 if { (ac_try="$ac_link"
25744 case "(($ac_try" in
25745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25746 *) ac_try_echo=$ac_try;;
25747 esac
25748 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25749 $as_echo "$ac_try_echo") >&5
25750 (eval "$ac_link") 2>&5
25751 ac_status=$?
25752 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25754 { (case "(($ac_try" in
25755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25756 *) ac_try_echo=$ac_try;;
25757 esac
25758 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25759 $as_echo "$ac_try_echo") >&5
25760 (eval "$ac_try") 2>&5
25761 ac_status=$?
25762 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25763 (exit $ac_status); }; }; then
13317 ac_cv_func_vfork_works=yes 25764 ac_cv_func_vfork_works=yes
13318 else 25765 else
13319 ac_cv_func_vfork_works=no 25766 $as_echo "$as_me: program exited with status $ac_status" >&5
13320 fi 25767 $as_echo "$as_me: failed program was:" >&5
13321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25768 sed 's/^/| /' conftest.$ac_ext >&5
13322 conftest.$ac_objext conftest.beam conftest.$ac_ext 25769
13323 fi 25770 ( exit $ac_status )
13324 25771 ac_cv_func_vfork_works=no
13325 fi 25772 fi
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 25773 rm -rf conftest.dSYM
25774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25775 fi
25776
25777
25778 fi
25779 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
13327 $as_echo "$ac_cv_func_vfork_works" >&6; } 25780 $as_echo "$ac_cv_func_vfork_works" >&6; }
13328 25781
13329 fi; 25782 fi;
13330 if test "x$ac_cv_func_fork_works" = xcross; then 25783 if test "x$ac_cv_func_fork_works" = xcross; then
13331 ac_cv_func_vfork_works=$ac_cv_func_vfork 25784 ac_cv_func_vfork_works=$ac_cv_func_vfork
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 25785 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
13333 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 25786 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
13334 fi 25787 fi
13335 25788
13336 if test "x$ac_cv_func_vfork_works" = xyes; then 25789 if test "x$ac_cv_func_vfork_works" = xyes; then
13337 25790
13338 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 25791 cat >>confdefs.h <<\_ACEOF
13339 25792 #define HAVE_WORKING_VFORK 1
13340 else 25793 _ACEOF
13341 25794
13342 $as_echo "#define vfork fork" >>confdefs.h 25795 else
25796
25797 cat >>confdefs.h <<\_ACEOF
25798 #define vfork fork
25799 _ACEOF
13343 25800
13344 fi 25801 fi
13345 if test "x$ac_cv_func_fork_works" = xyes; then 25802 if test "x$ac_cv_func_fork_works" = xyes; then
13346 25803
13347 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 25804 cat >>confdefs.h <<\_ACEOF
13348 25805 #define HAVE_WORKING_FORK 1
13349 fi 25806 _ACEOF
13350 25807
13351 25808 fi
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 25809
25810
25811 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
13353 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 25812 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
13354 if test "${emacs_cv_langinfo_codeset+set}" = set; then : 25813 if test "${emacs_cv_langinfo_codeset+set}" = set; then
13355 $as_echo_n "(cached) " >&6 25814 $as_echo_n "(cached) " >&6
13356 else 25815 else
13357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25816 cat >conftest.$ac_ext <<_ACEOF
25817 /* confdefs.h. */
25818 _ACEOF
25819 cat confdefs.h >>conftest.$ac_ext
25820 cat >>conftest.$ac_ext <<_ACEOF
13358 /* end confdefs.h. */ 25821 /* end confdefs.h. */
13359 #include <langinfo.h> 25822 #include <langinfo.h>
13360 int 25823 int
13361 main () 25824 main ()
13362 { 25825 {
13363 char* cs = nl_langinfo(CODESET); 25826 char* cs = nl_langinfo(CODESET);
13364 ; 25827 ;
13365 return 0; 25828 return 0;
13366 } 25829 }
13367 _ACEOF 25830 _ACEOF
13368 if ac_fn_c_try_link "$LINENO"; then : 25831 rm -f conftest.$ac_objext conftest$ac_exeext
25832 if { (ac_try="$ac_link"
25833 case "(($ac_try" in
25834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25835 *) ac_try_echo=$ac_try;;
25836 esac
25837 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25838 $as_echo "$ac_try_echo") >&5
25839 (eval "$ac_link") 2>conftest.er1
25840 ac_status=$?
25841 grep -v '^ *+' conftest.er1 >conftest.err
25842 rm -f conftest.er1
25843 cat conftest.err >&5
25844 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25845 (exit $ac_status); } && {
25846 test -z "$ac_c_werror_flag" ||
25847 test ! -s conftest.err
25848 } && test -s conftest$ac_exeext && {
25849 test "$cross_compiling" = yes ||
25850 $as_test_x conftest$ac_exeext
25851 }; then
13369 emacs_cv_langinfo_codeset=yes 25852 emacs_cv_langinfo_codeset=yes
13370 else 25853 else
13371 emacs_cv_langinfo_codeset=no 25854 $as_echo "$as_me: failed program was:" >&5
13372 fi 25855 sed 's/^/| /' conftest.$ac_ext >&5
13373 rm -f core conftest.err conftest.$ac_objext \ 25856
13374 conftest$ac_exeext conftest.$ac_ext 25857 emacs_cv_langinfo_codeset=no
13375 25858 fi
13376 fi 25859
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5 25860 rm -rf conftest.dSYM
25861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25862 conftest$ac_exeext conftest.$ac_ext
25863
25864 fi
25865 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
13378 $as_echo "$emacs_cv_langinfo_codeset" >&6; } 25866 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
13379 if test $emacs_cv_langinfo_codeset = yes; then 25867 if test $emacs_cv_langinfo_codeset = yes; then
13380 25868
13381 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 25869 cat >>confdefs.h <<\_ACEOF
13382 25870 #define HAVE_LANGINFO_CODESET 1
13383 fi 25871 _ACEOF
13384 25872
13385 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 25873 fi
13386 if test "x$ac_cv_type_size_t" = x""yes; then : 25874
25875 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25876 $as_echo_n "checking for size_t... " >&6; }
25877 if test "${ac_cv_type_size_t+set}" = set; then
25878 $as_echo_n "(cached) " >&6
25879 else
25880 ac_cv_type_size_t=no
25881 cat >conftest.$ac_ext <<_ACEOF
25882 /* confdefs.h. */
25883 _ACEOF
25884 cat confdefs.h >>conftest.$ac_ext
25885 cat >>conftest.$ac_ext <<_ACEOF
25886 /* end confdefs.h. */
25887 $ac_includes_default
25888 int
25889 main ()
25890 {
25891 if (sizeof (size_t))
25892 return 0;
25893 ;
25894 return 0;
25895 }
25896 _ACEOF
25897 rm -f conftest.$ac_objext
25898 if { (ac_try="$ac_compile"
25899 case "(($ac_try" in
25900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25901 *) ac_try_echo=$ac_try;;
25902 esac
25903 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25904 $as_echo "$ac_try_echo") >&5
25905 (eval "$ac_compile") 2>conftest.er1
25906 ac_status=$?
25907 grep -v '^ *+' conftest.er1 >conftest.err
25908 rm -f conftest.er1
25909 cat conftest.err >&5
25910 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25911 (exit $ac_status); } && {
25912 test -z "$ac_c_werror_flag" ||
25913 test ! -s conftest.err
25914 } && test -s conftest.$ac_objext; then
25915 cat >conftest.$ac_ext <<_ACEOF
25916 /* confdefs.h. */
25917 _ACEOF
25918 cat confdefs.h >>conftest.$ac_ext
25919 cat >>conftest.$ac_ext <<_ACEOF
25920 /* end confdefs.h. */
25921 $ac_includes_default
25922 int
25923 main ()
25924 {
25925 if (sizeof ((size_t)))
25926 return 0;
25927 ;
25928 return 0;
25929 }
25930 _ACEOF
25931 rm -f conftest.$ac_objext
25932 if { (ac_try="$ac_compile"
25933 case "(($ac_try" in
25934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25935 *) ac_try_echo=$ac_try;;
25936 esac
25937 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25938 $as_echo "$ac_try_echo") >&5
25939 (eval "$ac_compile") 2>conftest.er1
25940 ac_status=$?
25941 grep -v '^ *+' conftest.er1 >conftest.err
25942 rm -f conftest.er1
25943 cat conftest.err >&5
25944 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25945 (exit $ac_status); } && {
25946 test -z "$ac_c_werror_flag" ||
25947 test ! -s conftest.err
25948 } && test -s conftest.$ac_objext; then
25949 :
25950 else
25951 $as_echo "$as_me: failed program was:" >&5
25952 sed 's/^/| /' conftest.$ac_ext >&5
25953
25954 ac_cv_type_size_t=yes
25955 fi
25956
25957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25958 else
25959 $as_echo "$as_me: failed program was:" >&5
25960 sed 's/^/| /' conftest.$ac_ext >&5
25961
25962
25963 fi
25964
25965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25966 fi
25967 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25968 $as_echo "$ac_cv_type_size_t" >&6; }
25969 if test $ac_cv_type_size_t = yes; then
13387 25970
13388 cat >>confdefs.h <<_ACEOF 25971 cat >>confdefs.h <<_ACEOF
13389 #define HAVE_SIZE_T 1 25972 #define HAVE_SIZE_T 1
13390 _ACEOF 25973 _ACEOF
13391 25974
13392 25975
13393 fi 25976 fi
13394 25977
13395 25978
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5 25979 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5
13397 $as_echo_n "checking for mbstate_t... " >&6; } 25980 $as_echo_n "checking for mbstate_t... " >&6; }
13398 if test "${ac_cv_type_mbstate_t+set}" = set; then : 25981 if test "${ac_cv_type_mbstate_t+set}" = set; then
13399 $as_echo_n "(cached) " >&6 25982 $as_echo_n "(cached) " >&6
13400 else 25983 else
13401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25984 cat >conftest.$ac_ext <<_ACEOF
25985 /* confdefs.h. */
25986 _ACEOF
25987 cat confdefs.h >>conftest.$ac_ext
25988 cat >>conftest.$ac_ext <<_ACEOF
13402 /* end confdefs.h. */ 25989 /* end confdefs.h. */
13403 $ac_includes_default 25990 $ac_includes_default
13404 # include <wchar.h> 25991 # include <wchar.h>
13405 int 25992 int
13406 main () 25993 main ()
13408 mbstate_t x; return sizeof x; 25995 mbstate_t x; return sizeof x;
13409 ; 25996 ;
13410 return 0; 25997 return 0;
13411 } 25998 }
13412 _ACEOF 25999 _ACEOF
13413 if ac_fn_c_try_compile "$LINENO"; then : 26000 rm -f conftest.$ac_objext
26001 if { (ac_try="$ac_compile"
26002 case "(($ac_try" in
26003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26004 *) ac_try_echo=$ac_try;;
26005 esac
26006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26007 $as_echo "$ac_try_echo") >&5
26008 (eval "$ac_compile") 2>conftest.er1
26009 ac_status=$?
26010 grep -v '^ *+' conftest.er1 >conftest.err
26011 rm -f conftest.er1
26012 cat conftest.err >&5
26013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26014 (exit $ac_status); } && {
26015 test -z "$ac_c_werror_flag" ||
26016 test ! -s conftest.err
26017 } && test -s conftest.$ac_objext; then
13414 ac_cv_type_mbstate_t=yes 26018 ac_cv_type_mbstate_t=yes
13415 else 26019 else
13416 ac_cv_type_mbstate_t=no 26020 $as_echo "$as_me: failed program was:" >&5
13417 fi 26021 sed 's/^/| /' conftest.$ac_ext >&5
26022
26023 ac_cv_type_mbstate_t=no
26024 fi
26025
13418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13419 fi 26027 fi
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5 26028 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
13421 $as_echo "$ac_cv_type_mbstate_t" >&6; } 26029 $as_echo "$ac_cv_type_mbstate_t" >&6; }
13422 if test $ac_cv_type_mbstate_t = yes; then 26030 if test $ac_cv_type_mbstate_t = yes; then
13423 26031
13424 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h 26032 cat >>confdefs.h <<\_ACEOF
26033 #define HAVE_MBSTATE_T 1
26034 _ACEOF
13425 26035
13426 else 26036 else
13427 26037
13428 $as_echo "#define mbstate_t int" >>confdefs.h 26038 cat >>confdefs.h <<\_ACEOF
26039 #define mbstate_t int
26040 _ACEOF
13429 26041
13430 fi 26042 fi
13431 26043
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5 26044 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5
13433 $as_echo_n "checking for C restrict keyword... " >&6; } 26045 $as_echo_n "checking for C restrict keyword... " >&6; }
13434 if test "${emacs_cv_c_restrict+set}" = set; then : 26046 if test "${emacs_cv_c_restrict+set}" = set; then
13435 $as_echo_n "(cached) " >&6 26047 $as_echo_n "(cached) " >&6
13436 else 26048 else
13437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26049 cat >conftest.$ac_ext <<_ACEOF
26050 /* confdefs.h. */
26051 _ACEOF
26052 cat confdefs.h >>conftest.$ac_ext
26053 cat >>conftest.$ac_ext <<_ACEOF
13438 /* end confdefs.h. */ 26054 /* end confdefs.h. */
13439 void fred (int *restrict x); 26055 void fred (int *restrict x);
13440 int 26056 int
13441 main () 26057 main ()
13442 { 26058 {
13443 26059
13444 ; 26060 ;
13445 return 0; 26061 return 0;
13446 } 26062 }
13447 _ACEOF 26063 _ACEOF
13448 if ac_fn_c_try_compile "$LINENO"; then : 26064 rm -f conftest.$ac_objext
26065 if { (ac_try="$ac_compile"
26066 case "(($ac_try" in
26067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26068 *) ac_try_echo=$ac_try;;
26069 esac
26070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26071 $as_echo "$ac_try_echo") >&5
26072 (eval "$ac_compile") 2>conftest.er1
26073 ac_status=$?
26074 grep -v '^ *+' conftest.er1 >conftest.err
26075 rm -f conftest.er1
26076 cat conftest.err >&5
26077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26078 (exit $ac_status); } && {
26079 test -z "$ac_c_werror_flag" ||
26080 test ! -s conftest.err
26081 } && test -s conftest.$ac_objext; then
13449 emacs_cv_c_restrict=yes 26082 emacs_cv_c_restrict=yes
13450 else 26083 else
13451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26084 $as_echo "$as_me: failed program was:" >&5
26085 sed 's/^/| /' conftest.$ac_ext >&5
26086
26087 cat >conftest.$ac_ext <<_ACEOF
26088 /* confdefs.h. */
26089 _ACEOF
26090 cat confdefs.h >>conftest.$ac_ext
26091 cat >>conftest.$ac_ext <<_ACEOF
13452 /* end confdefs.h. */ 26092 /* end confdefs.h. */
13453 void fred (int *__restrict x); 26093 void fred (int *__restrict x);
13454 int 26094 int
13455 main () 26095 main ()
13456 { 26096 {
13457 26097
13458 ; 26098 ;
13459 return 0; 26099 return 0;
13460 } 26100 }
13461 _ACEOF 26101 _ACEOF
13462 if ac_fn_c_try_compile "$LINENO"; then : 26102 rm -f conftest.$ac_objext
26103 if { (ac_try="$ac_compile"
26104 case "(($ac_try" in
26105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26106 *) ac_try_echo=$ac_try;;
26107 esac
26108 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26109 $as_echo "$ac_try_echo") >&5
26110 (eval "$ac_compile") 2>conftest.er1
26111 ac_status=$?
26112 grep -v '^ *+' conftest.er1 >conftest.err
26113 rm -f conftest.er1
26114 cat conftest.err >&5
26115 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26116 (exit $ac_status); } && {
26117 test -z "$ac_c_werror_flag" ||
26118 test ! -s conftest.err
26119 } && test -s conftest.$ac_objext; then
13463 emacs_cv_c_restrict=__restrict 26120 emacs_cv_c_restrict=__restrict
13464 else 26121 else
13465 emacs_cv_c_restrict=no 26122 $as_echo "$as_me: failed program was:" >&5
13466 fi 26123 sed 's/^/| /' conftest.$ac_ext >&5
26124
26125 emacs_cv_c_restrict=no
26126 fi
26127
13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 fi 26129 fi
26130
13469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13470 fi 26132 fi
13471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5 26133 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
13472 $as_echo "$emacs_cv_c_restrict" >&6; } 26134 $as_echo "$emacs_cv_c_restrict" >&6; }
13473 case "$emacs_cv_c_restrict" in 26135 case "$emacs_cv_c_restrict" in
13474 yes) emacs_restrict=restrict;; 26136 yes) emacs_restrict=restrict;;
13475 no) emacs_restrict="";; 26137 no) emacs_restrict="";;
13476 *) emacs_restrict="$emacs_cv_c_restrict";; 26138 *) emacs_restrict="$emacs_cv_c_restrict";;
13481 #define __restrict $emacs_restrict 26143 #define __restrict $emacs_restrict
13482 _ACEOF 26144 _ACEOF
13483 26145
13484 fi 26146 fi
13485 26147
13486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5 26148 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
13487 $as_echo_n "checking for C restricted array declarations... " >&6; } 26149 $as_echo_n "checking for C restricted array declarations... " >&6; }
13488 if test "${emacs_cv_c_restrict_arr+set}" = set; then : 26150 if test "${emacs_cv_c_restrict_arr+set}" = set; then
13489 $as_echo_n "(cached) " >&6 26151 $as_echo_n "(cached) " >&6
13490 else 26152 else
13491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26153 cat >conftest.$ac_ext <<_ACEOF
26154 /* confdefs.h. */
26155 _ACEOF
26156 cat confdefs.h >>conftest.$ac_ext
26157 cat >>conftest.$ac_ext <<_ACEOF
13492 /* end confdefs.h. */ 26158 /* end confdefs.h. */
13493 void fred (int x[__restrict]); 26159 void fred (int x[__restrict]);
13494 int 26160 int
13495 main () 26161 main ()
13496 { 26162 {
13497 26163
13498 ; 26164 ;
13499 return 0; 26165 return 0;
13500 } 26166 }
13501 _ACEOF 26167 _ACEOF
13502 if ac_fn_c_try_compile "$LINENO"; then : 26168 rm -f conftest.$ac_objext
26169 if { (ac_try="$ac_compile"
26170 case "(($ac_try" in
26171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26172 *) ac_try_echo=$ac_try;;
26173 esac
26174 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
26175 $as_echo "$ac_try_echo") >&5
26176 (eval "$ac_compile") 2>conftest.er1
26177 ac_status=$?
26178 grep -v '^ *+' conftest.er1 >conftest.err
26179 rm -f conftest.er1
26180 cat conftest.err >&5
26181 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
26182 (exit $ac_status); } && {
26183 test -z "$ac_c_werror_flag" ||
26184 test ! -s conftest.err
26185 } && test -s conftest.$ac_objext; then
13503 emacs_cv_c_restrict_arr=yes 26186 emacs_cv_c_restrict_arr=yes
13504 else 26187 else
13505 emacs_cv_c_restrict_arr=no 26188 $as_echo "$as_me: failed program was:" >&5
13506 fi 26189 sed 's/^/| /' conftest.$ac_ext >&5
26190
26191 emacs_cv_c_restrict_arr=no
26192 fi
26193
13507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 26194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13508 fi 26195 fi
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5 26196 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
13510 $as_echo "$emacs_cv_c_restrict_arr" >&6; } 26197 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
13511 if test "$emacs_cv_c_restrict_arr" = yes; then 26198 if test "$emacs_cv_c_restrict_arr" = yes; then
13512 26199
13513 $as_echo "#define __restrict_arr __restrict" >>confdefs.h 26200 cat >>confdefs.h <<\_ACEOF
26201 #define __restrict_arr __restrict
26202 _ACEOF
13514 26203
13515 fi 26204 fi
13516 26205
13517 26206
13518 26207
13522 26211
13523 #### Find out which version of Emacs this is. 26212 #### Find out which version of Emacs this is.
13524 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ 26213 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
13525 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 26214 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
13526 if test x"${version}" = x; then 26215 if test x"${version}" = x; then
13527 as_fn_error "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5 26216 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
26217 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
26218 { (exit 1); exit 1; }; }
13528 fi 26219 fi
13529 if test x"${version}" != x"$PACKAGE_VERSION"; then 26220 if test x"${version}" != x"$PACKAGE_VERSION"; then
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5 26221 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
13531 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;} 26222 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
13532 fi 26223 fi
13533 26224
13534 ### Specify what sort of things we'll be editing into Makefile and config.h. 26225 ### Specify what sort of things we'll be editing into Makefile and config.h.
13535 ### Use configuration here uncanonicalized to avoid exceeding size limits. 26226 ### Use configuration here uncanonicalized to avoid exceeding size limits.
13609 26300
13610 XMENU_OBJ= 26301 XMENU_OBJ=
13611 XOBJ= 26302 XOBJ=
13612 if test "${HAVE_X_WINDOWS}" = "yes" ; then 26303 if test "${HAVE_X_WINDOWS}" = "yes" ; then
13613 26304
13614 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h 26305 cat >>confdefs.h <<\_ACEOF
26306 #define HAVE_X_WINDOWS 1
26307 _ACEOF
13615 26308
13616 XMENU_OBJ=xmenu.o 26309 XMENU_OBJ=xmenu.o
13617 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o" 26310 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
13618 fi 26311 fi
13619 26312
13622 WIDGET_OBJ= 26315 WIDGET_OBJ=
13623 MOTIF_LIBW= 26316 MOTIF_LIBW=
13624 if test "${USE_X_TOOLKIT}" != "none" ; then 26317 if test "${USE_X_TOOLKIT}" != "none" ; then
13625 WIDGET_OBJ=widget.o 26318 WIDGET_OBJ=widget.o
13626 26319
13627 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h 26320 cat >>confdefs.h <<\_ACEOF
26321 #define USE_X_TOOLKIT 1
26322 _ACEOF
13628 26323
13629 if test "${USE_X_TOOLKIT}" = "LUCID"; then 26324 if test "${USE_X_TOOLKIT}" = "LUCID"; then
13630 26325
13631 $as_echo "#define USE_LUCID 1" >>confdefs.h 26326 cat >>confdefs.h <<\_ACEOF
26327 #define USE_LUCID 1
26328 _ACEOF
13632 26329
13633 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then 26330 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
13634 26331
13635 $as_echo "#define USE_MOTIF 1" >>confdefs.h 26332 cat >>confdefs.h <<\_ACEOF
26333 #define USE_MOTIF 1
26334 _ACEOF
13636 26335
13637 MOTIF_LIBW=-lXm 26336 MOTIF_LIBW=-lXm
13638 case "$opsys" in 26337 case "$opsys" in
13639 gnu-linux) 26338 gnu-linux)
13640 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed. 26339 ## Paul Abrahams <abrahams at equinox.shaysnet.com> says this is needed.
13675 ## The X Menu stuff is present in the X10 distribution, but missing 26374 ## The X Menu stuff is present in the X10 distribution, but missing
13676 ## from X11. If we have X10, just use the installed library; 26375 ## from X11. If we have X10, just use the installed library;
13677 ## otherwise, use our own copy. 26376 ## otherwise, use our own copy.
13678 if test "${HAVE_X11}" = "yes" ; then 26377 if test "${HAVE_X11}" = "yes" ; then
13679 26378
13680 $as_echo "#define HAVE_X11 1" >>confdefs.h 26379 cat >>confdefs.h <<\_ACEOF
26380 #define HAVE_X11 1
26381 _ACEOF
13681 26382
13682 26383
13683 if test "$USE_X_TOOLKIT" = "none"; then 26384 if test "$USE_X_TOOLKIT" = "none"; then
13684 OLDXMENU="\${oldXMenudir}libXMenu11.a" 26385 OLDXMENU="\${oldXMenudir}libXMenu11.a"
13685 else 26386 else
13702 26403
13703 26404
13704 26405
13705 if test "${HAVE_MENUS}" = "yes" ; then 26406 if test "${HAVE_MENUS}" = "yes" ; then
13706 26407
13707 $as_echo "#define HAVE_MENUS 1" >>confdefs.h 26408 cat >>confdefs.h <<\_ACEOF
26409 #define HAVE_MENUS 1
26410 _ACEOF
13708 26411
13709 fi 26412 fi
13710 if test "${GNU_MALLOC}" = "yes" ; then 26413 if test "${GNU_MALLOC}" = "yes" ; then
13711 26414
13712 $as_echo "#define GNU_MALLOC 1" >>confdefs.h 26415 cat >>confdefs.h <<\_ACEOF
26416 #define GNU_MALLOC 1
26417 _ACEOF
13713 26418
13714 fi 26419 fi
13715 if test "${REL_ALLOC}" = "yes" ; then 26420 if test "${REL_ALLOC}" = "yes" ; then
13716 26421
13717 $as_echo "#define REL_ALLOC 1" >>confdefs.h 26422 cat >>confdefs.h <<\_ACEOF
26423 #define REL_ALLOC 1
26424 _ACEOF
13718 26425
13719 fi 26426 fi
13720 26427
13721 26428
13722 if test "$opsys" = "cygwin"; then 26429 if test "$opsys" = "cygwin"; then
13774 26481
13775 26482
13776 26483
13777 26484
13778 26485
26486
26487
13779 #### Report on what we decided to do. 26488 #### Report on what we decided to do.
13780 #### Report GTK as a toolkit, even if it doesn't use Xt. 26489 #### Report GTK as a toolkit, even if it doesn't use Xt.
13781 #### It makes printing result more understandable as using GTK sets 26490 #### It makes printing result more understandable as using GTK sets
13782 #### toolkit_scroll_bars to yes by default. 26491 #### toolkit_scroll_bars to yes by default.
13783 if test "${HAVE_GTK}" = "yes"; then 26492 if test "${HAVE_GTK}" = "yes"; then
13875 ## Check if the C preprocessor will convert `..' to `. .'. If so, set 26584 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
13876 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile 26585 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
13877 ## from Makefile.c can correctly provide the arg `-traditional' to the 26586 ## from Makefile.c can correctly provide the arg `-traditional' to the
13878 ## C preprocessor. 26587 ## C preprocessor.
13879 26588
13880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26589 cat >conftest.$ac_ext <<_ACEOF
26590 /* confdefs.h. */
26591 _ACEOF
26592 cat confdefs.h >>conftest.$ac_ext
26593 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */ 26594 /* end confdefs.h. */
13882 yes..yes 26595 yes..yes
13883 _ACEOF 26596 _ACEOF
13884 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 26597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13885 $EGREP "yes..yes" >/dev/null 2>&1; then : 26598 $EGREP "yes..yes" >/dev/null 2>&1; then
13886 CPP_NEED_TRADITIONAL=no 26599 CPP_NEED_TRADITIONAL=no
13887 else 26600 else
13888 CPP_NEED_TRADITIONAL=yes 26601 CPP_NEED_TRADITIONAL=yes
13889 fi 26602 fi
13890 rm -f conftest* 26603 rm -f conftest*
13919 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 26632 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
13920 eval ac_val=\$$ac_var 26633 eval ac_val=\$$ac_var
13921 case $ac_val in #( 26634 case $ac_val in #(
13922 *${as_nl}*) 26635 *${as_nl}*)
13923 case $ac_var in #( 26636 case $ac_var in #(
13924 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 26637 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
13925 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 26638 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
13926 esac 26639 esac
13927 case $ac_var in #( 26640 case $ac_var in #(
13928 _ | IFS | as_nl) ;; #( 26641 _ | IFS | as_nl) ;; #(
13929 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 26642 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
13930 *) { eval $ac_var=; unset $ac_var;} ;; 26643 *) $as_unset $ac_var ;;
13931 esac ;; 26644 esac ;;
13932 esac 26645 esac
13933 done 26646 done
13934 26647
13935 (set) 2>&1 | 26648 (set) 2>&1 |
13936 case $as_nl`(ac_space=' '; set) 2>&1` in #( 26649 case $as_nl`(ac_space=' '; set) 2>&1` in #(
13937 *${as_nl}ac_space=\ *) 26650 *${as_nl}ac_space=\ *)
13938 # `set' does not quote correctly, so add quotes: double-quote 26651 # `set' does not quote correctly, so add quotes (double-quote
13939 # substitution turns \\\\ into \\, and sed turns \\ into \. 26652 # substitution turns \\\\ into \\, and sed turns \\ into \).
13940 sed -n \ 26653 sed -n \
13941 "s/'/'\\\\''/g; 26654 "s/'/'\\\\''/g;
13942 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 26655 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
13943 ;; #( 26656 ;; #(
13944 *) 26657 *)
13957 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 26670 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
13958 :end' >>confcache 26671 :end' >>confcache
13959 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 26672 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
13960 if test -w "$cache_file"; then 26673 if test -w "$cache_file"; then
13961 test "x$cache_file" != "x/dev/null" && 26674 test "x$cache_file" != "x/dev/null" &&
13962 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 26675 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
13963 $as_echo "$as_me: updating cache $cache_file" >&6;} 26676 $as_echo "$as_me: updating cache $cache_file" >&6;}
13964 cat confcache >$cache_file 26677 cat confcache >$cache_file
13965 else 26678 else
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 26679 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
13967 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 26680 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
13968 fi 26681 fi
13969 fi 26682 fi
13970 rm -f confcache 26683 rm -f confcache
13971 26684
13981 # 1. Remove the extension, and $U if already installed. 26694 # 1. Remove the extension, and $U if already installed.
13982 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 26695 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
13983 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 26696 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
13984 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 26697 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
13985 # will be set to the directory where LIBOBJS objects are built. 26698 # will be set to the directory where LIBOBJS objects are built.
13986 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 26699 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
13987 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 26700 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
13988 done 26701 done
13989 LIBOBJS=$ac_libobjs 26702 LIBOBJS=$ac_libobjs
13990 26703
13991 LTLIBOBJS=$ac_ltlibobjs 26704 LTLIBOBJS=$ac_ltlibobjs
13992 26705
13994 26707
13995 : ${CONFIG_STATUS=./config.status} 26708 : ${CONFIG_STATUS=./config.status}
13996 ac_write_fail=0 26709 ac_write_fail=0
13997 ac_clean_files_save=$ac_clean_files 26710 ac_clean_files_save=$ac_clean_files
13998 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 26711 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
13999 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 26712 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
14000 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 26713 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
14001 as_write_fail=0 26714 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14002 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
14003 #! $SHELL 26715 #! $SHELL
14004 # Generated by $as_me. 26716 # Generated by $as_me.
14005 # Run this file to recreate the current configuration. 26717 # Run this file to recreate the current configuration.
14006 # Compiler output produced by configure, useful for debugging 26718 # Compiler output produced by configure, useful for debugging
14007 # configure, is in config.log if it exists. 26719 # configure, is in config.log if it exists.
14008 26720
14009 debug=false 26721 debug=false
14010 ac_cs_recheck=false 26722 ac_cs_recheck=false
14011 ac_cs_silent=false 26723 ac_cs_silent=false
14012
14013 SHELL=\${CONFIG_SHELL-$SHELL} 26724 SHELL=\${CONFIG_SHELL-$SHELL}
14014 export SHELL 26725 _ACEOF
14015 _ASEOF 26726
14016 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 26727 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14017 ## -------------------- ## 26728 ## --------------------- ##
14018 ## M4sh Initialization. ## 26729 ## M4sh Initialization. ##
14019 ## -------------------- ## 26730 ## --------------------- ##
14020 26731
14021 # Be more Bourne compatible 26732 # Be more Bourne compatible
14022 DUALCASE=1; export DUALCASE # for MKS sh 26733 DUALCASE=1; export DUALCASE # for MKS sh
14023 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 26734 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14024 emulate sh 26735 emulate sh
14025 NULLCMD=: 26736 NULLCMD=:
14026 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 26737 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
14027 # is contrary to our usage. Disable this feature. 26738 # is contrary to our usage. Disable this feature.
14028 alias -g '${1+"$@"}'='"$@"' 26739 alias -g '${1+"$@"}'='"$@"'
14029 setopt NO_GLOB_SUBST 26740 setopt NO_GLOB_SUBST
14030 else 26741 else
14031 case `(set -o) 2>/dev/null` in #( 26742 case `(set -o) 2>/dev/null` in
14032 *posix*) : 26743 *posix*) set -o posix ;;
14033 set -o posix ;; #( 26744 esac
14034 *) : 26745
14035 ;; 26746 fi
14036 esac 26747
14037 fi 26748
14038 26749
26750
26751 # PATH needs CR
26752 # Avoid depending upon Character Ranges.
26753 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26754 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26755 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26756 as_cr_digits='0123456789'
26757 as_cr_alnum=$as_cr_Letters$as_cr_digits
14039 26758
14040 as_nl=' 26759 as_nl='
14041 ' 26760 '
14042 export as_nl 26761 export as_nl
14043 # Printing a long string crashes Solaris 7 /usr/bin/printf. 26762 # Printing a long string crashes Solaris 7 /usr/bin/printf.
14044 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 26763 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
14045 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 26764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
14046 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 26765 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
14047 # Prefer a ksh shell builtin over an external printf program on Solaris, 26766 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14048 # but without wasting forks for bash or zsh.
14049 if test -z "$BASH_VERSION$ZSH_VERSION" \
14050 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
14051 as_echo='print -r --'
14052 as_echo_n='print -rn --'
14053 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
14054 as_echo='printf %s\n' 26767 as_echo='printf %s\n'
14055 as_echo_n='printf %s' 26768 as_echo_n='printf %s'
14056 else 26769 else
14057 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 26770 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
14058 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 26771 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
14059 as_echo_n='/usr/ucb/echo -n' 26772 as_echo_n='/usr/ucb/echo -n'
14060 else 26773 else
14061 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 26774 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
14062 as_echo_n_body='eval 26775 as_echo_n_body='eval
14063 arg=$1; 26776 arg=$1;
14064 case $arg in #( 26777 case $arg in
14065 *"$as_nl"*) 26778 *"$as_nl"*)
14066 expr "X$arg" : "X\\(.*\\)$as_nl"; 26779 expr "X$arg" : "X\\(.*\\)$as_nl";
14067 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 26780 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
14068 esac; 26781 esac;
14069 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 26782 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
14082 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 26795 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
14083 PATH_SEPARATOR=';' 26796 PATH_SEPARATOR=';'
14084 } 26797 }
14085 fi 26798 fi
14086 26799
26800 # Support unset when possible.
26801 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26802 as_unset=unset
26803 else
26804 as_unset=false
26805 fi
26806
14087 26807
14088 # IFS 26808 # IFS
14089 # We need space, tab and new line, in precisely that order. Quoting is 26809 # We need space, tab and new line, in precisely that order. Quoting is
14090 # there to prevent editors from complaining about space-tab. 26810 # there to prevent editors from complaining about space-tab.
14091 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 26811 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
14092 # splitting by setting IFS to empty value.) 26812 # splitting by setting IFS to empty value.)
14093 IFS=" "" $as_nl" 26813 IFS=" "" $as_nl"
14094 26814
14095 # Find who we are. Look in the path if we contain no directory separator. 26815 # Find who we are. Look in the path if we contain no directory separator.
14096 case $0 in #(( 26816 case $0 in
14097 *[\\/]* ) as_myself=$0 ;; 26817 *[\\/]* ) as_myself=$0 ;;
14098 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 26818 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099 for as_dir in $PATH 26819 for as_dir in $PATH
14100 do 26820 do
14101 IFS=$as_save_IFS 26821 IFS=$as_save_IFS
14102 test -z "$as_dir" && as_dir=. 26822 test -z "$as_dir" && as_dir=.
14103 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 26823 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
14104 done 26824 done
14105 IFS=$as_save_IFS 26825 IFS=$as_save_IFS
14106 26826
14107 ;; 26827 ;;
14108 esac 26828 esac
14109 # We did not find ourselves, most probably we were run as `sh COMMAND' 26829 # We did not find ourselves, most probably we were run as `sh COMMAND'
14111 if test "x$as_myself" = x; then 26831 if test "x$as_myself" = x; then
14112 as_myself=$0 26832 as_myself=$0
14113 fi 26833 fi
14114 if test ! -f "$as_myself"; then 26834 if test ! -f "$as_myself"; then
14115 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 26835 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
14116 exit 1 26836 { (exit 1); exit 1; }
14117 fi 26837 fi
14118 26838
14119 # Unset variables that we do not need and which cause bugs (e.g. in 26839 # Work around bugs in pre-3.0 UWIN ksh.
14120 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 26840 for as_var in ENV MAIL MAILPATH
14121 # suppresses any "Segmentation fault" message there. '((' could 26841 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
14122 # trigger a bug in pdksh 5.2.14.
14123 for as_var in BASH_ENV ENV MAIL MAILPATH
14124 do eval test x\${$as_var+set} = xset \
14125 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
14126 done 26842 done
14127 PS1='$ ' 26843 PS1='$ '
14128 PS2='> ' 26844 PS2='> '
14129 PS4='+ ' 26845 PS4='+ '
14130 26846
14132 LC_ALL=C 26848 LC_ALL=C
14133 export LC_ALL 26849 export LC_ALL
14134 LANGUAGE=C 26850 LANGUAGE=C
14135 export LANGUAGE 26851 export LANGUAGE
14136 26852
14137 # CDPATH. 26853 # Required to use basename.
14138 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
14139
14140
14141 # as_fn_error ERROR [LINENO LOG_FD]
14142 # ---------------------------------
14143 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
14144 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
14145 # script with status $?, using 1 if that was 0.
14146 as_fn_error ()
14147 {
14148 as_status=$?; test $as_status -eq 0 && as_status=1
14149 if test "$3"; then
14150 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
14151 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
14152 fi
14153 $as_echo "$as_me: error: $1" >&2
14154 as_fn_exit $as_status
14155 } # as_fn_error
14156
14157
14158 # as_fn_set_status STATUS
14159 # -----------------------
14160 # Set $? to STATUS, without forking.
14161 as_fn_set_status ()
14162 {
14163 return $1
14164 } # as_fn_set_status
14165
14166 # as_fn_exit STATUS
14167 # -----------------
14168 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
14169 as_fn_exit ()
14170 {
14171 set +e
14172 as_fn_set_status $1
14173 exit $1
14174 } # as_fn_exit
14175
14176 # as_fn_unset VAR
14177 # ---------------
14178 # Portably unset VAR.
14179 as_fn_unset ()
14180 {
14181 { eval $1=; unset $1;}
14182 }
14183 as_unset=as_fn_unset
14184 # as_fn_append VAR VALUE
14185 # ----------------------
14186 # Append the text in VALUE to the end of the definition contained in VAR. Take
14187 # advantage of any shell optimizations that allow amortized linear growth over
14188 # repeated appends, instead of the typical quadratic growth present in naive
14189 # implementations.
14190 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
14191 eval 'as_fn_append ()
14192 {
14193 eval $1+=\$2
14194 }'
14195 else
14196 as_fn_append ()
14197 {
14198 eval $1=\$$1\$2
14199 }
14200 fi # as_fn_append
14201
14202 # as_fn_arith ARG...
14203 # ------------------
14204 # Perform arithmetic evaluation on the ARGs, and store the result in the
14205 # global $as_val. Take advantage of shells that can avoid forks. The arguments
14206 # must be portable across $(()) and expr.
14207 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
14208 eval 'as_fn_arith ()
14209 {
14210 as_val=$(( $* ))
14211 }'
14212 else
14213 as_fn_arith ()
14214 {
14215 as_val=`expr "$@" || test $? -eq 1`
14216 }
14217 fi # as_fn_arith
14218
14219
14220 if expr a : '\(a\)' >/dev/null 2>&1 && 26854 if expr a : '\(a\)' >/dev/null 2>&1 &&
14221 test "X`expr 00001 : '.*\(...\)'`" = X001; then 26855 test "X`expr 00001 : '.*\(...\)'`" = X001; then
14222 as_expr=expr 26856 as_expr=expr
14223 else 26857 else
14224 as_expr=false 26858 as_expr=false
14228 as_basename=basename 26862 as_basename=basename
14229 else 26863 else
14230 as_basename=false 26864 as_basename=false
14231 fi 26865 fi
14232 26866
14233 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 26867
14234 as_dirname=dirname 26868 # Name of the executable.
14235 else
14236 as_dirname=false
14237 fi
14238
14239 as_me=`$as_basename -- "$0" || 26869 as_me=`$as_basename -- "$0" ||
14240 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 26870 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
14241 X"$0" : 'X\(//\)$' \| \ 26871 X"$0" : 'X\(//\)$' \| \
14242 X"$0" : 'X\(/\)' \| . 2>/dev/null || 26872 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
14243 $as_echo X/"$0" | 26873 $as_echo X/"$0" |
14253 s//\1/ 26883 s//\1/
14254 q 26884 q
14255 } 26885 }
14256 s/.*/./; q'` 26886 s/.*/./; q'`
14257 26887
14258 # Avoid depending upon Character Ranges. 26888 # CDPATH.
14259 as_cr_letters='abcdefghijklmnopqrstuvwxyz' 26889 $as_unset CDPATH
14260 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 26890
14261 as_cr_Letters=$as_cr_letters$as_cr_LETTERS 26891
14262 as_cr_digits='0123456789' 26892
14263 as_cr_alnum=$as_cr_Letters$as_cr_digits 26893 as_lineno_1=$LINENO
26894 as_lineno_2=$LINENO
26895 test "x$as_lineno_1" != "x$as_lineno_2" &&
26896 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26897
26898 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26899 # uniformly replaced by the line number. The first 'sed' inserts a
26900 # line-number line after each line using $LINENO; the second 'sed'
26901 # does the real work. The second script uses 'N' to pair each
26902 # line-number line with the line containing $LINENO, and appends
26903 # trailing '-' during substitution so that $LINENO is not a special
26904 # case at line end.
26905 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26906 # scripts with optimization help from Paolo Bonzini. Blame Lee
26907 # E. McMahon (1931-1989) for sed's syntax. :-)
26908 sed -n '
26909 p
26910 /[$]LINENO/=
26911 ' <$as_myself |
26912 sed '
26913 s/[$]LINENO.*/&-/
26914 t lineno
26915 b
26916 :lineno
26917 N
26918 :loop
26919 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26920 t loop
26921 s/-\n.*//
26922 ' >$as_me.lineno &&
26923 chmod +x "$as_me.lineno" ||
26924 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26925 { (exit 1); exit 1; }; }
26926
26927 # Don't try to exec as it changes $[0], causing all sort of problems
26928 # (the dirname of $[0] is not the place where we might find the
26929 # original and so on. Autoconf is especially sensitive to this).
26930 . "./$as_me.lineno"
26931 # Exit status is that of the last command.
26932 exit
26933 }
26934
26935
26936 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26937 as_dirname=dirname
26938 else
26939 as_dirname=false
26940 fi
14264 26941
14265 ECHO_C= ECHO_N= ECHO_T= 26942 ECHO_C= ECHO_N= ECHO_T=
14266 case `echo -n x` in #((((( 26943 case `echo -n x` in
14267 -n*) 26944 -n*)
14268 case `echo 'xy\c'` in 26945 case `echo 'x\c'` in
14269 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 26946 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
14270 xy) ECHO_C='\c';; 26947 *) ECHO_C='\c';;
14271 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14272 ECHO_T=' ';;
14273 esac;; 26948 esac;;
14274 *) 26949 *)
14275 ECHO_N='-n';; 26950 ECHO_N='-n';;
14276 esac 26951 esac
26952 if expr a : '\(a\)' >/dev/null 2>&1 &&
26953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26954 as_expr=expr
26955 else
26956 as_expr=false
26957 fi
14277 26958
14278 rm -f conf$$ conf$$.exe conf$$.file 26959 rm -f conf$$ conf$$.exe conf$$.file
14279 if test -d conf$$.dir; then 26960 if test -d conf$$.dir; then
14280 rm -f conf$$.dir/conf$$.file 26961 rm -f conf$$.dir/conf$$.file
14281 else 26962 else
14300 as_ln_s='cp -p' 26981 as_ln_s='cp -p'
14301 fi 26982 fi
14302 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 26983 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
14303 rmdir conf$$.dir 2>/dev/null 26984 rmdir conf$$.dir 2>/dev/null
14304 26985
14305
14306 # as_fn_mkdir_p
14307 # -------------
14308 # Create "$as_dir" as a directory, including parents if necessary.
14309 as_fn_mkdir_p ()
14310 {
14311
14312 case $as_dir in #(
14313 -*) as_dir=./$as_dir;;
14314 esac
14315 test -d "$as_dir" || eval $as_mkdir_p || {
14316 as_dirs=
14317 while :; do
14318 case $as_dir in #(
14319 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14320 *) as_qdir=$as_dir;;
14321 esac
14322 as_dirs="'$as_qdir' $as_dirs"
14323 as_dir=`$as_dirname -- "$as_dir" ||
14324 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14325 X"$as_dir" : 'X\(//\)[^/]' \| \
14326 X"$as_dir" : 'X\(//\)$' \| \
14327 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14328 $as_echo X"$as_dir" |
14329 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14330 s//\1/
14331 q
14332 }
14333 /^X\(\/\/\)[^/].*/{
14334 s//\1/
14335 q
14336 }
14337 /^X\(\/\/\)$/{
14338 s//\1/
14339 q
14340 }
14341 /^X\(\/\).*/{
14342 s//\1/
14343 q
14344 }
14345 s/.*/./; q'`
14346 test -d "$as_dir" && break
14347 done
14348 test -z "$as_dirs" || eval "mkdir $as_dirs"
14349 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14350
14351
14352 } # as_fn_mkdir_p
14353 if mkdir -p . 2>/dev/null; then 26986 if mkdir -p . 2>/dev/null; then
14354 as_mkdir_p='mkdir -p "$as_dir"' 26987 as_mkdir_p=:
14355 else 26988 else
14356 test -d ./-p && rmdir ./-p 26989 test -d ./-p && rmdir ./-p
14357 as_mkdir_p=false 26990 as_mkdir_p=false
14358 fi 26991 fi
14359 26992
14368 as_test_x=' 27001 as_test_x='
14369 eval sh -c '\'' 27002 eval sh -c '\''
14370 if test -d "$1"; then 27003 if test -d "$1"; then
14371 test -d "$1/."; 27004 test -d "$1/.";
14372 else 27005 else
14373 case $1 in #( 27006 case $1 in
14374 -*)set "./$1";; 27007 -*)set "./$1";;
14375 esac; 27008 esac;
14376 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 27009 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
14377 ???[sx]*):;;*)false;;esac;fi 27010 ???[sx]*):;;*)false;;esac;fi
14378 '\'' sh 27011 '\'' sh
14379 ' 27012 '
14380 fi 27013 fi
14381 as_executable_p=$as_test_x 27014 as_executable_p=$as_test_x
14386 # Sed expression to map a string onto a valid variable name. 27019 # Sed expression to map a string onto a valid variable name.
14387 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 27020 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
14388 27021
14389 27022
14390 exec 6>&1 27023 exec 6>&1
14391 ## ----------------------------------- ## 27024
14392 ## Main body of $CONFIG_STATUS script. ## 27025 # Save the log message, to keep $[0] and so on meaningful, and to
14393 ## ----------------------------------- ##
14394 _ASEOF
14395 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14396
14397 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14398 # Save the log message, to keep $0 and so on meaningful, and to
14399 # report actual input values of CONFIG_FILES etc. instead of their 27026 # report actual input values of CONFIG_FILES etc. instead of their
14400 # values after options handling. 27027 # values after options handling.
14401 ac_log=" 27028 ac_log="
14402 This file was extended by emacs $as_me 24.0.50, which was 27029 This file was extended by emacs $as_me 24.0.50, which was
14403 generated by GNU Autoconf 2.65. Invocation command line was 27030 generated by GNU Autoconf 2.62. Invocation command line was
14404 27031
14405 CONFIG_FILES = $CONFIG_FILES 27032 CONFIG_FILES = $CONFIG_FILES
14406 CONFIG_HEADERS = $CONFIG_HEADERS 27033 CONFIG_HEADERS = $CONFIG_HEADERS
14407 CONFIG_LINKS = $CONFIG_LINKS 27034 CONFIG_LINKS = $CONFIG_LINKS
14408 CONFIG_COMMANDS = $CONFIG_COMMANDS 27035 CONFIG_COMMANDS = $CONFIG_COMMANDS
14411 on `(hostname || uname -n) 2>/dev/null | sed 1q` 27038 on `(hostname || uname -n) 2>/dev/null | sed 1q`
14412 " 27039 "
14413 27040
14414 _ACEOF 27041 _ACEOF
14415 27042
14416 case $ac_config_files in *"
14417 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14418 esac
14419
14420 case $ac_config_headers in *"
14421 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14422 esac
14423
14424
14425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27043 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14426 # Files that config.status was made for. 27044 # Files that config.status was made for.
14427 config_files="$ac_config_files" 27045 config_files="$ac_config_files"
14428 config_headers="$ac_config_headers" 27046 config_headers="$ac_config_headers"
14429 config_commands="$ac_config_commands" 27047 config_commands="$ac_config_commands"
14430 27048
14431 _ACEOF 27049 _ACEOF
14432 27050
14433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14434 ac_cs_usage="\ 27052 ac_cs_usage="\
14435 \`$as_me' instantiates files and other configuration actions 27053 \`$as_me' instantiates files from templates according to the
14436 from templates according to the current configuration. Unless the files 27054 current configuration.
14437 and actions are specified as TAGs, all are instantiated by default. 27055
14438 27056 Usage: $0 [OPTIONS] [FILE]...
14439 Usage: $0 [OPTION]... [TAG]...
14440 27057
14441 -h, --help print this help, then exit 27058 -h, --help print this help, then exit
14442 -V, --version print version number and configuration settings, then exit 27059 -V, --version print version number and configuration settings, then exit
14443 --config print configuration, then exit 27060 -q, --quiet do not print progress messages
14444 -q, --quiet, --silent
14445 do not print progress messages
14446 -d, --debug don't remove temporary files 27061 -d, --debug don't remove temporary files
14447 --recheck update $as_me by reconfiguring in the same conditions 27062 --recheck update $as_me by reconfiguring in the same conditions
14448 --file=FILE[:TEMPLATE] 27063 --file=FILE[:TEMPLATE]
14449 instantiate the configuration file FILE 27064 instantiate the configuration file FILE
14450 --header=FILE[:TEMPLATE] 27065 --header=FILE[:TEMPLATE]
14451 instantiate the configuration header FILE 27066 instantiate the configuration header FILE
14452 27067
14453 Configuration files: 27068 Configuration files:
14454 $config_files 27069 $config_files
14455 27070
14457 $config_headers 27072 $config_headers
14458 27073
14459 Configuration commands: 27074 Configuration commands:
14460 $config_commands 27075 $config_commands
14461 27076
14462 Report bugs to the package provider." 27077 Report bugs to <bug-autoconf@gnu.org>."
14463 27078
14464 _ACEOF 27079 _ACEOF
14465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14466 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
14467 ac_cs_version="\\ 27081 ac_cs_version="\\
14468 emacs config.status 24.0.50 27082 emacs config.status 24.0.50
14469 configured by $0, generated by GNU Autoconf 2.65, 27083 configured by $0, generated by GNU Autoconf 2.62,
14470 with options \\"\$ac_cs_config\\" 27084 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
14471 27085
14472 Copyright (C) 2009 Free Software Foundation, Inc. 27086 Copyright (C) 2008 Free Software Foundation, Inc.
14473 This config.status script is free software; the Free Software Foundation 27087 This config.status script is free software; the Free Software Foundation
14474 gives unlimited permission to copy, distribute and modify it." 27088 gives unlimited permission to copy, distribute and modify it."
14475 27089
14476 ac_pwd='$ac_pwd' 27090 ac_pwd='$ac_pwd'
14477 srcdir='$srcdir' 27091 srcdir='$srcdir'
14501 # Handling of the options. 27115 # Handling of the options.
14502 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 27116 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
14503 ac_cs_recheck=: ;; 27117 ac_cs_recheck=: ;;
14504 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 27118 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
14505 $as_echo "$ac_cs_version"; exit ;; 27119 $as_echo "$ac_cs_version"; exit ;;
14506 --config | --confi | --conf | --con | --co | --c )
14507 $as_echo "$ac_cs_config"; exit ;;
14508 --debug | --debu | --deb | --de | --d | -d ) 27120 --debug | --debu | --deb | --de | --d | -d )
14509 debug=: ;; 27121 debug=: ;;
14510 --file | --fil | --fi | --f ) 27122 --file | --fil | --fi | --f )
14511 $ac_shift 27123 $ac_shift
14512 case $ac_optarg in 27124 case $ac_optarg in
14513 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27125 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14514 esac 27126 esac
14515 as_fn_append CONFIG_FILES " '$ac_optarg'" 27127 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
14516 ac_need_defaults=false;; 27128 ac_need_defaults=false;;
14517 --header | --heade | --head | --hea ) 27129 --header | --heade | --head | --hea )
14518 $ac_shift 27130 $ac_shift
14519 case $ac_optarg in 27131 case $ac_optarg in
14520 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 27132 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
14521 esac 27133 esac
14522 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 27134 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
14523 ac_need_defaults=false;; 27135 ac_need_defaults=false;;
14524 --he | --h) 27136 --he | --h)
14525 # Conflict between --help and --header 27137 # Conflict between --help and --header
14526 as_fn_error "ambiguous option: \`$1' 27138 { $as_echo "$as_me: error: ambiguous option: $1
14527 Try \`$0 --help' for more information.";; 27139 Try \`$0 --help' for more information." >&2
27140 { (exit 1); exit 1; }; };;
14528 --help | --hel | -h ) 27141 --help | --hel | -h )
14529 $as_echo "$ac_cs_usage"; exit ;; 27142 $as_echo "$ac_cs_usage"; exit ;;
14530 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 27143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
14531 | -silent | --silent | --silen | --sile | --sil | --si | --s) 27144 | -silent | --silent | --silen | --sile | --sil | --si | --s)
14532 ac_cs_silent=: ;; 27145 ac_cs_silent=: ;;
14533 27146
14534 # This is an error. 27147 # This is an error.
14535 -*) as_fn_error "unrecognized option: \`$1' 27148 -*) { $as_echo "$as_me: error: unrecognized option: $1
14536 Try \`$0 --help' for more information." ;; 27149 Try \`$0 --help' for more information." >&2
14537 27150 { (exit 1); exit 1; }; } ;;
14538 *) as_fn_append ac_config_targets " $1" 27151
27152 *) ac_config_targets="$ac_config_targets $1"
14539 ac_need_defaults=false ;; 27153 ac_need_defaults=false ;;
14540 27154
14541 esac 27155 esac
14542 shift 27156 shift
14543 done 27157 done
14598 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; 27212 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
14599 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; 27213 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
14600 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; 27214 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
14601 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 27215 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
14602 27216
14603 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 27217 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27218 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27219 { (exit 1); exit 1; }; };;
14604 esac 27220 esac
14605 done 27221 done
14606 27222
14607 27223
14608 # If the user did not use the arguments to specify the items to instantiate, 27224 # If the user did not use the arguments to specify the items to instantiate,
14625 { 27241 {
14626 tmp= 27242 tmp=
14627 trap 'exit_status=$? 27243 trap 'exit_status=$?
14628 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 27244 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
14629 ' 0 27245 ' 0
14630 trap 'as_fn_exit 1' 1 2 13 15 27246 trap '{ (exit 1); exit 1; }' 1 2 13 15
14631 } 27247 }
14632 # Create a (secure) tmp directory for tmp files. 27248 # Create a (secure) tmp directory for tmp files.
14633 27249
14634 { 27250 {
14635 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 27251 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
14636 test -n "$tmp" && test -d "$tmp" 27252 test -n "$tmp" && test -d "$tmp"
14637 } || 27253 } ||
14638 { 27254 {
14639 tmp=./conf$$-$RANDOM 27255 tmp=./conf$$-$RANDOM
14640 (umask 077 && mkdir "$tmp") 27256 (umask 077 && mkdir "$tmp")
14641 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 27257 } ||
27258 {
27259 $as_echo "$as_me: cannot create a temporary directory in ." >&2
27260 { (exit 1); exit 1; }
27261 }
14642 27262
14643 # Set up the scripts for CONFIG_FILES section. 27263 # Set up the scripts for CONFIG_FILES section.
14644 # No need to generate them if there are no CONFIG_FILES. 27264 # No need to generate them if there are no CONFIG_FILES.
14645 # This happens for instance with `./config.status config.h'. 27265 # This happens for instance with `./config.status config.h'.
14646 if test -n "$CONFIG_FILES"; then 27266 if test -n "$CONFIG_FILES"; then
14647 27267
14648 27268
14649 ac_cr=`echo X | tr X '\015'` 27269 ac_cr='
14650 # On cygwin, bash can eat \r inside `` if the user requested igncr. 27270 '
14651 # But we know of no other shell where ac_cr would be empty at this
14652 # point, so we can use a bashism as a fallback.
14653 if test "x$ac_cr" = x; then
14654 eval ac_cr=\$\'\\r\'
14655 fi
14656 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 27271 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
14657 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 27272 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
14658 ac_cs_awk_cr='\r' 27273 ac_cs_awk_cr='\\r'
14659 else 27274 else
14660 ac_cs_awk_cr=$ac_cr 27275 ac_cs_awk_cr=$ac_cr
14661 fi 27276 fi
14662 27277
14663 echo 'BEGIN {' >"$tmp/subs1.awk" && 27278 echo 'BEGIN {' >"$tmp/subs1.awk" &&
14667 { 27282 {
14668 echo "cat >conf$$subs.awk <<_ACEOF" && 27283 echo "cat >conf$$subs.awk <<_ACEOF" &&
14669 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 27284 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
14670 echo "_ACEOF" 27285 echo "_ACEOF"
14671 } >conf$$subs.sh || 27286 } >conf$$subs.sh ||
14672 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 27287 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27288 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27289 { (exit 1); exit 1; }; }
14673 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 27290 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
14674 ac_delim='%!_!# ' 27291 ac_delim='%!_!# '
14675 for ac_last_try in false false false false false :; do 27292 for ac_last_try in false false false false false :; do
14676 . ./conf$$subs.sh || 27293 . ./conf$$subs.sh ||
14677 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 27294 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
14678 27295 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
14679 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 27296 { (exit 1); exit 1; }; }
14680 if test $ac_delim_n = $ac_delim_num; then 27297
27298 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
14681 break 27299 break
14682 elif $ac_last_try; then 27300 elif $ac_last_try; then
14683 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 27301 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
27302 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
27303 { (exit 1); exit 1; }; }
14684 else 27304 else
14685 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27305 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14686 fi 27306 fi
14687 done 27307 done
14688 rm -f conf$$subs.sh 27308 rm -f conf$$subs.sh
14700 t repl 27320 t repl
14701 s/'"$ac_delim"'$// 27321 s/'"$ac_delim"'$//
14702 t delim 27322 t delim
14703 :nl 27323 :nl
14704 h 27324 h
14705 s/\(.\{148\}\)..*/\1/ 27325 s/\(.\{148\}\).*/\1/
14706 t more1 27326 t more1
14707 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 27327 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
14708 p 27328 p
14709 n 27329 n
14710 b repl 27330 b repl
14714 g 27334 g
14715 s/.\{148\}// 27335 s/.\{148\}//
14716 t nl 27336 t nl
14717 :delim 27337 :delim
14718 h 27338 h
14719 s/\(.\{148\}\)..*/\1/ 27339 s/\(.\{148\}\).*/\1/
14720 t more2 27340 t more2
14721 s/["\\]/\\&/g; s/^/"/; s/$/"/ 27341 s/["\\]/\\&/g; s/^/"/; s/$/"/
14722 p 27342 p
14723 b 27343 b
14724 :more2 27344 :more2
14767 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 27387 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
14768 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 27388 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
14769 else 27389 else
14770 cat 27390 cat
14771 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 27391 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
14772 || as_fn_error "could not setup config files machinery" "$LINENO" 5 27392 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
27393 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
27394 { (exit 1); exit 1; }; }
14773 _ACEOF 27395 _ACEOF
14774 27396
14775 # VPATH may cause trouble with some makes, so we remove $(srcdir), 27397 # VPATH may cause trouble with some makes, so we remove $(srcdir),
14776 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 27398 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
14777 # trailing colons and then remove the whole line if VPATH becomes empty 27399 # trailing colons and then remove the whole line if VPATH becomes empty
14808 for ac_last_try in false false :; do 27430 for ac_last_try in false false :; do
14809 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 27431 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
14810 if test -z "$ac_t"; then 27432 if test -z "$ac_t"; then
14811 break 27433 break
14812 elif $ac_last_try; then 27434 elif $ac_last_try; then
14813 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 27435 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
27436 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
27437 { (exit 1); exit 1; }; }
14814 else 27438 else
14815 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 27439 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
14816 fi 27440 fi
14817 done 27441 done
14818 27442
14874 defundef = substr(arg[1], 2) 27498 defundef = substr(arg[1], 2)
14875 mac1 = arg[2] 27499 mac1 = arg[2]
14876 } 27500 }
14877 split(mac1, mac2, "(") #) 27501 split(mac1, mac2, "(") #)
14878 macro = mac2[1] 27502 macro = mac2[1]
14879 prefix = substr(line, 1, index(line, defundef) - 1)
14880 if (D_is_set[macro]) { 27503 if (D_is_set[macro]) {
14881 # Preserve the white space surrounding the "#". 27504 # Preserve the white space surrounding the "#".
27505 prefix = substr(line, 1, index(line, defundef) - 1)
14882 print prefix "define", macro P[macro] D[macro] 27506 print prefix "define", macro P[macro] D[macro]
14883 next 27507 next
14884 } else { 27508 } else {
14885 # Replace #undef with comments. This is necessary, for example, 27509 # Replace #undef with comments. This is necessary, for example,
14886 # in the case of _POSIX_SOURCE, which is predefined and required 27510 # in the case of _POSIX_SOURCE, which is predefined and required
14887 # on some systems where configure will not decide to define it. 27511 # on some systems where configure will not decide to define it.
14888 if (defundef == "undef") { 27512 if (defundef == "undef") {
14889 print "/*", prefix defundef, macro, "*/" 27513 print "/*", line, "*/"
14890 next 27514 next
14891 } 27515 }
14892 } 27516 }
14893 } 27517 }
14894 { print } 27518 { print }
14895 _ACAWK 27519 _ACAWK
14896 _ACEOF 27520 _ACEOF
14897 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27521 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14898 as_fn_error "could not setup config headers machinery" "$LINENO" 5 27522 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
27523 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27524 { (exit 1); exit 1; }; }
14899 fi # test -n "$CONFIG_HEADERS" 27525 fi # test -n "$CONFIG_HEADERS"
14900 27526
14901 27527
14902 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 27528 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
14903 shift 27529 shift
14906 case $ac_tag in 27532 case $ac_tag in
14907 :[FHLC]) ac_mode=$ac_tag; continue;; 27533 :[FHLC]) ac_mode=$ac_tag; continue;;
14908 esac 27534 esac
14909 case $ac_mode$ac_tag in 27535 case $ac_mode$ac_tag in
14910 :[FHL]*:*);; 27536 :[FHL]*:*);;
14911 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 27537 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
27538 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27539 { (exit 1); exit 1; }; };;
14912 :[FH]-) ac_tag=-:-;; 27540 :[FH]-) ac_tag=-:-;;
14913 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 27541 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
14914 esac 27542 esac
14915 ac_save_IFS=$IFS 27543 ac_save_IFS=$IFS
14916 IFS=: 27544 IFS=:
14934 test -f "$ac_f" || 27562 test -f "$ac_f" ||
14935 case $ac_f in 27563 case $ac_f in
14936 [\\/$]*) false;; 27564 [\\/$]*) false;;
14937 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 27565 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
14938 esac || 27566 esac ||
14939 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 27567 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
27568 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27569 { (exit 1); exit 1; }; };;
14940 esac 27570 esac
14941 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 27571 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
14942 as_fn_append ac_file_inputs " '$ac_f'" 27572 ac_file_inputs="$ac_file_inputs '$ac_f'"
14943 done 27573 done
14944 27574
14945 # Let's still pretend it is `configure' which instantiates (i.e., don't 27575 # Let's still pretend it is `configure' which instantiates (i.e., don't
14946 # use $as_me), people would be surprised to read: 27576 # use $as_me), people would be surprised to read:
14947 # /* config.h. Generated by config.status. */ 27577 # /* config.h. Generated by config.status. */
14948 configure_input='Generated from '` 27578 configure_input='Generated from '`
14949 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 27579 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
14950 `' by configure.' 27580 `' by configure.'
14951 if test x"$ac_file" != x-; then 27581 if test x"$ac_file" != x-; then
14952 configure_input="$ac_file. $configure_input" 27582 configure_input="$ac_file. $configure_input"
14953 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 27583 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
14954 $as_echo "$as_me: creating $ac_file" >&6;} 27584 $as_echo "$as_me: creating $ac_file" >&6;}
14955 fi 27585 fi
14956 # Neutralize special characters interpreted by sed in replacement strings. 27586 # Neutralize special characters interpreted by sed in replacement strings.
14957 case $configure_input in #( 27587 case $configure_input in #(
14958 *\&* | *\|* | *\\* ) 27588 *\&* | *\|* | *\\* )
14961 *) ac_sed_conf_input=$configure_input;; 27591 *) ac_sed_conf_input=$configure_input;;
14962 esac 27592 esac
14963 27593
14964 case $ac_tag in 27594 case $ac_tag in
14965 *:-:* | *:-) cat >"$tmp/stdin" \ 27595 *:-:* | *:-) cat >"$tmp/stdin" \
14966 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 27596 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27597 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27598 { (exit 1); exit 1; }; } ;;
14967 esac 27599 esac
14968 ;; 27600 ;;
14969 esac 27601 esac
14970 27602
14971 ac_dir=`$as_dirname -- "$ac_file" || 27603 ac_dir=`$as_dirname -- "$ac_file" ||
14989 /^X\(\/\).*/{ 27621 /^X\(\/\).*/{
14990 s//\1/ 27622 s//\1/
14991 q 27623 q
14992 } 27624 }
14993 s/.*/./; q'` 27625 s/.*/./; q'`
14994 as_dir="$ac_dir"; as_fn_mkdir_p 27626 { as_dir="$ac_dir"
27627 case $as_dir in #(
27628 -*) as_dir=./$as_dir;;
27629 esac
27630 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27631 as_dirs=
27632 while :; do
27633 case $as_dir in #(
27634 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27635 *) as_qdir=$as_dir;;
27636 esac
27637 as_dirs="'$as_qdir' $as_dirs"
27638 as_dir=`$as_dirname -- "$as_dir" ||
27639 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27640 X"$as_dir" : 'X\(//\)[^/]' \| \
27641 X"$as_dir" : 'X\(//\)$' \| \
27642 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27643 $as_echo X"$as_dir" |
27644 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27645 s//\1/
27646 q
27647 }
27648 /^X\(\/\/\)[^/].*/{
27649 s//\1/
27650 q
27651 }
27652 /^X\(\/\/\)$/{
27653 s//\1/
27654 q
27655 }
27656 /^X\(\/\).*/{
27657 s//\1/
27658 q
27659 }
27660 s/.*/./; q'`
27661 test -d "$as_dir" && break
27662 done
27663 test -z "$as_dirs" || eval "mkdir $as_dirs"
27664 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27665 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27666 { (exit 1); exit 1; }; }; }
14995 ac_builddir=. 27667 ac_builddir=.
14996 27668
14997 case "$ac_dir" in 27669 case "$ac_dir" in
14998 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 27670 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
14999 *) 27671 *)
15041 27713
15042 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 27714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15043 # If the template does not know about datarootdir, expand it. 27715 # If the template does not know about datarootdir, expand it.
15044 # FIXME: This hack should be removed a few years after 2.60. 27716 # FIXME: This hack should be removed a few years after 2.60.
15045 ac_datarootdir_hack=; ac_datarootdir_seen= 27717 ac_datarootdir_hack=; ac_datarootdir_seen=
27718
15046 ac_sed_dataroot=' 27719 ac_sed_dataroot='
15047 /datarootdir/ { 27720 /datarootdir/ {
15048 p 27721 p
15049 q 27722 q
15050 } 27723 }
15051 /@datadir@/p 27724 /@datadir@/p
15052 /@docdir@/p 27725 /@docdir@/p
15053 /@infodir@/p 27726 /@infodir@/p
15054 /@localedir@/p 27727 /@localedir@/p
15055 /@mandir@/p' 27728 /@mandir@/p
27729 '
15056 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 27730 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
15057 *datarootdir*) ac_datarootdir_seen=yes;; 27731 *datarootdir*) ac_datarootdir_seen=yes;;
15058 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 27732 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 27733 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
15060 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 27734 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
15061 _ACEOF 27735 _ACEOF
15062 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 27736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15063 ac_datarootdir_hack=' 27737 ac_datarootdir_hack='
15064 s&@datadir@&$datadir&g 27738 s&@datadir@&$datadir&g
15065 s&@docdir@&$docdir&g 27739 s&@docdir@&$docdir&g
15066 s&@infodir@&$infodir&g 27740 s&@infodir@&$infodir&g
15067 s&@localedir@&$localedir&g 27741 s&@localedir@&$localedir&g
15068 s&@mandir@&$mandir&g 27742 s&@mandir@&$mandir&g
15069 s&\\\${datarootdir}&$datarootdir&g' ;; 27743 s&\\\${datarootdir}&$datarootdir&g' ;;
15070 esac 27744 esac
15071 _ACEOF 27745 _ACEOF
15072 27746
15073 # Neutralize VPATH when `$srcdir' = `.'. 27747 # Neutralize VPATH when `$srcdir' = `.'.
15074 # Shell code in configure.ac might set extrasub. 27748 # Shell code in configure.ac might set extrasub.
15092 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 27766 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
15093 s&@INSTALL@&$ac_INSTALL&;t t 27767 s&@INSTALL@&$ac_INSTALL&;t t
15094 $ac_datarootdir_hack 27768 $ac_datarootdir_hack
15095 " 27769 "
15096 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 27770 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
15097 || as_fn_error "could not create $ac_file" "$LINENO" 5 27771 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27772 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27773 { (exit 1); exit 1; }; }
15098 27774
15099 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 27775 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
15100 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 27776 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
15101 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 27777 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27778 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15103 which seems to be undefined. Please make sure it is defined." >&5 27779 which seems to be undefined. Please make sure it is defined." >&5
15104 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 27780 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
15105 which seems to be undefined. Please make sure it is defined." >&2;} 27781 which seems to be undefined. Please make sure it is defined." >&2;}
15106 27782
15107 rm -f "$tmp/stdin" 27783 rm -f "$tmp/stdin"
15108 case $ac_file in 27784 case $ac_file in
15109 -) cat "$tmp/out" && rm -f "$tmp/out";; 27785 -) cat "$tmp/out" && rm -f "$tmp/out";;
15110 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 27786 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
15111 esac \ 27787 esac \
15112 || as_fn_error "could not create $ac_file" "$LINENO" 5 27788 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27789 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27790 { (exit 1); exit 1; }; }
15113 ;; 27791 ;;
15114 :H) 27792 :H)
15115 # 27793 #
15116 # CONFIG_HEADER 27794 # CONFIG_HEADER
15117 # 27795 #
15118 if test x"$ac_file" != x-; then 27796 if test x"$ac_file" != x-; then
15119 { 27797 {
15120 $as_echo "/* $configure_input */" \ 27798 $as_echo "/* $configure_input */" \
15121 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 27799 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
15122 } >"$tmp/config.h" \ 27800 } >"$tmp/config.h" \
15123 || as_fn_error "could not create $ac_file" "$LINENO" 5 27801 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27802 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27803 { (exit 1); exit 1; }; }
15124 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 27804 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 27805 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
15126 $as_echo "$as_me: $ac_file is unchanged" >&6;} 27806 $as_echo "$as_me: $ac_file is unchanged" >&6;}
15127 else 27807 else
15128 rm -f "$ac_file" 27808 rm -f "$ac_file"
15129 mv "$tmp/config.h" "$ac_file" \ 27809 mv "$tmp/config.h" "$ac_file" \
15130 || as_fn_error "could not create $ac_file" "$LINENO" 5 27810 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
27811 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27812 { (exit 1); exit 1; }; }
15131 fi 27813 fi
15132 else 27814 else
15133 $as_echo "/* $configure_input */" \ 27815 $as_echo "/* $configure_input */" \
15134 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 27816 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
15135 || as_fn_error "could not create -" "$LINENO" 5 27817 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
27818 $as_echo "$as_me: error: could not create -" >&2;}
27819 { (exit 1); exit 1; }; }
15136 fi 27820 fi
15137 ;; 27821 ;;
15138 27822
15139 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 27823 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
15140 $as_echo "$as_me: executing $ac_file commands" >&6;} 27824 $as_echo "$as_me: executing $ac_file commands" >&6;}
15141 ;; 27825 ;;
15142 esac 27826 esac
15143 27827
15144 27828
15205 27889
15206 esac 27890 esac
15207 done # for ac_tag 27891 done # for ac_tag
15208 27892
15209 27893
15210 as_fn_exit 0 27894 { (exit 0); exit 0; }
15211 _ACEOF 27895 _ACEOF
27896 chmod +x $CONFIG_STATUS
15212 ac_clean_files=$ac_clean_files_save 27897 ac_clean_files=$ac_clean_files_save
15213 27898
15214 test $ac_write_fail = 0 || 27899 test $ac_write_fail = 0 ||
15215 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 27900 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
27901 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27902 { (exit 1); exit 1; }; }
15216 27903
15217 27904
15218 # configure is writing to config.log, and then calls config.status. 27905 # configure is writing to config.log, and then calls config.status.
15219 # config.status does its own redirection, appending to config.log. 27906 # config.status does its own redirection, appending to config.log.
15220 # Unfortunately, on DOS this fails, as config.log is still kept open 27907 # Unfortunately, on DOS this fails, as config.log is still kept open
15231 exec 5>/dev/null 27918 exec 5>/dev/null
15232 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 27919 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
15233 exec 5>>config.log 27920 exec 5>>config.log
15234 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 27921 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
15235 # would make configure fail if this is the last instruction. 27922 # would make configure fail if this is the last instruction.
15236 $ac_cs_success || as_fn_exit $? 27923 $ac_cs_success || { (exit 1); exit 1; }
15237 fi 27924 fi
15238 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 27925 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 27926 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5
15240 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 27927 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;}
15241 fi 27928 fi
15242 27929
15243 27930