comparison configure @ 108128:1e7aaadc50e8

Reduce CPP usage. * Makefile.in (LIB_X11_LIB): Remove, inline in the only user. (obj): Use autoconf for unexec instead of cpp. * configure.in (LIB_X11_LIB): Remove, inline in the only user. (unexec): Define unconditionally, all platforms define UNEXEC. AC_SUBST it. (UNEXEC_SRC): Remove, unused.
author Dan Nicolaescu <dann@ics.uci.edu>
date Mon, 26 Apr 2010 20:47:47 -0700
parents 4daf18b3d6e8
children b7d03b0055ab
comparison
equal deleted inserted replaced
108127:4daf18b3d6e8 108128:1e7aaadc50e8
1 #! /bin/sh 1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles. 2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.62 for emacs 24.0.50. 3 # Generated by GNU Autoconf 2.65 for emacs 24.0.50.
4 #
4 # 5 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
8 # Inc.
9 #
10 #
7 # This configure script is free software; the Free Software Foundation 11 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it. 12 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ## 13 ## -------------------- ##
10 ## M4sh Initialization. ## 14 ## M4sh Initialization. ##
11 ## --------------------- ## 15 ## -------------------- ##
12 16
13 # Be more Bourne compatible 17 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh 18 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
16 emulate sh 20 emulate sh
17 NULLCMD=: 21 NULLCMD=:
18 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature. 23 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"' 24 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST 25 setopt NO_GLOB_SUBST
22 else 26 else
23 case `(set -o) 2>/dev/null` in 27 case `(set -o) 2>/dev/null` in #(
24 *posix*) set -o posix ;; 28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
25 esac 32 esac
26 33 fi
27 fi 34
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39 35
40 as_nl=' 36 as_nl='
41 ' 37 '
42 export as_nl 38 export as_nl
43 # Printing a long string crashes Solaris 7 /usr/bin/printf. 39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
44 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
46 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
47 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n' 50 as_echo='printf %s\n'
49 as_echo_n='printf %s' 51 as_echo_n='printf %s'
50 else 52 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n' 55 as_echo_n='/usr/ucb/echo -n'
54 else 56 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval 58 as_echo_n_body='eval
57 arg=$1; 59 arg=$1;
58 case $arg in 60 case $arg in #(
59 *"$as_nl"*) 61 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl"; 62 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac; 64 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';' 79 PATH_SEPARATOR=';'
78 } 80 }
79 fi 81 fi
80 82
81 # Support unset when possible.
82 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
83 as_unset=unset
84 else
85 as_unset=false
86 fi
87
88 83
89 # IFS 84 # IFS
90 # We need space, tab and new line, in precisely that order. Quoting is 85 # We need space, tab and new line, in precisely that order. Quoting is
91 # there to prevent editors from complaining about space-tab. 86 # there to prevent editors from complaining about space-tab.
92 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
93 # splitting by setting IFS to empty value.) 88 # splitting by setting IFS to empty value.)
94 IFS=" "" $as_nl" 89 IFS=" "" $as_nl"
95 90
96 # Find who we are. Look in the path if we contain no directory separator. 91 # Find who we are. Look in the path if we contain no directory separator.
97 case $0 in 92 case $0 in #((
98 *[\\/]* ) as_myself=$0 ;; 93 *[\\/]* ) as_myself=$0 ;;
99 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 for as_dir in $PATH 95 for as_dir in $PATH
101 do 96 do
102 IFS=$as_save_IFS 97 IFS=$as_save_IFS
103 test -z "$as_dir" && as_dir=. 98 test -z "$as_dir" && as_dir=.
104 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
105 done 100 done
106 IFS=$as_save_IFS 101 IFS=$as_save_IFS
107 102
108 ;; 103 ;;
109 esac 104 esac
110 # We did not find ourselves, most probably we were run as `sh COMMAND' 105 # We did not find ourselves, most probably we were run as `sh COMMAND'
112 if test "x$as_myself" = x; then 107 if test "x$as_myself" = x; then
113 as_myself=$0 108 as_myself=$0
114 fi 109 fi
115 if test ! -f "$as_myself"; then 110 if test ! -f "$as_myself"; then
116 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 { (exit 1); exit 1; } 112 exit 1
118 fi 113 fi
119 114
120 # Work around bugs in pre-3.0 UWIN ksh. 115 # Unset variables that we do not need and which cause bugs (e.g. in
121 for as_var in ENV MAIL MAILPATH 116 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
122 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 117 # suppresses any "Segmentation fault" message there. '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done 122 done
124 PS1='$ ' 123 PS1='$ '
125 PS2='> ' 124 PS2='> '
126 PS4='+ ' 125 PS4='+ '
127 126
129 LC_ALL=C 128 LC_ALL=C
130 export LC_ALL 129 export LC_ALL
131 LANGUAGE=C 130 LANGUAGE=C
132 export LANGUAGE 131 export LANGUAGE
133 132
134 # Required to use basename. 133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138 emulate sh
139 NULLCMD=:
140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141 # is contrary to our usage. Disable this feature.
142 alias -g '\${1+\"\$@\"}'='\"\$@\"'
143 setopt NO_GLOB_SUBST
144 else
145 case \`(set -o) 2>/dev/null\` in #(
146 *posix*) :
147 set -o posix ;; #(
148 *) :
149 ;;
150 esac
151 fi
152 "
153 as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167 exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1"
175 if (eval "$as_required") 2>/dev/null; then :
176 as_have_required=yes
177 else
178 as_have_required=no
179 fi
180 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
181
182 else
183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
184 as_found=false
185 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
186 do
187 IFS=$as_save_IFS
188 test -z "$as_dir" && as_dir=.
189 as_found=:
190 case $as_dir in #(
191 /*)
192 for as_base in sh bash ksh sh5; do
193 # Try only shells that exist, to save several forks.
194 as_shell=$as_dir/$as_base
195 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
196 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
197 CONFIG_SHELL=$as_shell as_have_required=yes
198 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
199 break 2
200 fi
201 fi
202 done;;
203 esac
204 as_found=false
205 done
206 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
208 CONFIG_SHELL=$SHELL as_have_required=yes
209 fi; }
210 IFS=$as_save_IFS
211
212
213 if test "x$CONFIG_SHELL" != x; then :
214 # We cannot yet assume a decent shell, so we have to provide a
215 # neutralization value for shells without unset; and this also
216 # works around shells that cannot unset nonexistent variables.
217 BASH_ENV=/dev/null
218 ENV=/dev/null
219 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
220 export CONFIG_SHELL
221 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
222 fi
223
224 if test x$as_have_required = xno; then :
225 $as_echo "$0: This script requires a shell more modern than all"
226 $as_echo "$0: the shells that I found on your system."
227 if test x${ZSH_VERSION+set} = xset ; then
228 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
229 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
230 else
231 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
232 $0: including any error possibly output before this
233 $0: message. Then install a modern shell, or manually run
234 $0: the script under such a shell if you do have one."
235 fi
236 exit 1
237 fi
238 fi
239 fi
240 SHELL=${CONFIG_SHELL-/bin/sh}
241 export SHELL
242 # Unset more variables known to interfere with behavior of common tools.
243 CLICOLOR_FORCE= GREP_OPTIONS=
244 unset CLICOLOR_FORCE GREP_OPTIONS
245
246 ## --------------------- ##
247 ## M4sh Shell Functions. ##
248 ## --------------------- ##
249 # as_fn_unset VAR
250 # ---------------
251 # Portably unset VAR.
252 as_fn_unset ()
253 {
254 { eval $1=; unset $1;}
255 }
256 as_unset=as_fn_unset
257
258 # as_fn_set_status STATUS
259 # -----------------------
260 # Set $? to STATUS, without forking.
261 as_fn_set_status ()
262 {
263 return $1
264 } # as_fn_set_status
265
266 # as_fn_exit STATUS
267 # -----------------
268 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
269 as_fn_exit ()
270 {
271 set +e
272 as_fn_set_status $1
273 exit $1
274 } # as_fn_exit
275
276 # as_fn_mkdir_p
277 # -------------
278 # Create "$as_dir" as a directory, including parents if necessary.
279 as_fn_mkdir_p ()
280 {
281
282 case $as_dir in #(
283 -*) as_dir=./$as_dir;;
284 esac
285 test -d "$as_dir" || eval $as_mkdir_p || {
286 as_dirs=
287 while :; do
288 case $as_dir in #(
289 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
290 *) as_qdir=$as_dir;;
291 esac
292 as_dirs="'$as_qdir' $as_dirs"
293 as_dir=`$as_dirname -- "$as_dir" ||
294 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
295 X"$as_dir" : 'X\(//\)[^/]' \| \
296 X"$as_dir" : 'X\(//\)$' \| \
297 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
298 $as_echo X"$as_dir" |
299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
300 s//\1/
301 q
302 }
303 /^X\(\/\/\)[^/].*/{
304 s//\1/
305 q
306 }
307 /^X\(\/\/\)$/{
308 s//\1/
309 q
310 }
311 /^X\(\/\).*/{
312 s//\1/
313 q
314 }
315 s/.*/./; q'`
316 test -d "$as_dir" && break
317 done
318 test -z "$as_dirs" || eval "mkdir $as_dirs"
319 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
320
321
322 } # as_fn_mkdir_p
323 # as_fn_append VAR VALUE
324 # ----------------------
325 # Append the text in VALUE to the end of the definition contained in VAR. Take
326 # advantage of any shell optimizations that allow amortized linear growth over
327 # repeated appends, instead of the typical quadratic growth present in naive
328 # implementations.
329 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
330 eval 'as_fn_append ()
331 {
332 eval $1+=\$2
333 }'
334 else
335 as_fn_append ()
336 {
337 eval $1=\$$1\$2
338 }
339 fi # as_fn_append
340
341 # as_fn_arith ARG...
342 # ------------------
343 # Perform arithmetic evaluation on the ARGs, and store the result in the
344 # global $as_val. Take advantage of shells that can avoid forks. The arguments
345 # must be portable across $(()) and expr.
346 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
347 eval 'as_fn_arith ()
348 {
349 as_val=$(( $* ))
350 }'
351 else
352 as_fn_arith ()
353 {
354 as_val=`expr "$@" || test $? -eq 1`
355 }
356 fi # as_fn_arith
357
358
359 # as_fn_error ERROR [LINENO LOG_FD]
360 # ---------------------------------
361 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
362 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
363 # script with status $?, using 1 if that was 0.
364 as_fn_error ()
365 {
366 as_status=$?; test $as_status -eq 0 && as_status=1
367 if test "$3"; then
368 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
369 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
370 fi
371 $as_echo "$as_me: error: $1" >&2
372 as_fn_exit $as_status
373 } # as_fn_error
374
135 if expr a : '\(a\)' >/dev/null 2>&1 && 375 if expr a : '\(a\)' >/dev/null 2>&1 &&
136 test "X`expr 00001 : '.*\(...\)'`" = X001; then 376 test "X`expr 00001 : '.*\(...\)'`" = X001; then
137 as_expr=expr 377 as_expr=expr
138 else 378 else
139 as_expr=false 379 as_expr=false
143 as_basename=basename 383 as_basename=basename
144 else 384 else
145 as_basename=false 385 as_basename=false
146 fi 386 fi
147 387
148 388 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
149 # Name of the executable. 389 as_dirname=dirname
390 else
391 as_dirname=false
392 fi
393
150 as_me=`$as_basename -- "$0" || 394 as_me=`$as_basename -- "$0" ||
151 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 395 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
152 X"$0" : 'X\(//\)$' \| \ 396 X"$0" : 'X\(//\)$' \| \
153 X"$0" : 'X\(/\)' \| . 2>/dev/null || 397 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
154 $as_echo X/"$0" | 398 $as_echo X/"$0" |
164 s//\1/ 408 s//\1/
165 q 409 q
166 } 410 }
167 s/.*/./; q'` 411 s/.*/./; q'`
168 412
169 # CDPATH. 413 # Avoid depending upon Character Ranges.
170 $as_unset CDPATH 414 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
171 415 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
172 416 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
173 if test "x$CONFIG_SHELL" = x; then 417 as_cr_digits='0123456789'
174 if (eval ":") 2>/dev/null; then 418 as_cr_alnum=$as_cr_Letters$as_cr_digits
175 as_have_required=yes 419
176 else 420
177 as_have_required=no 421 as_lineno_1=$LINENO as_lineno_1a=$LINENO
178 fi 422 as_lineno_2=$LINENO as_lineno_2a=$LINENO
179 423 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
180 if test $as_have_required = yes && (eval ": 424 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
181 (as_func_return () { 425 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
182 (exit \$1)
183 }
184 as_func_success () {
185 as_func_return 0
186 }
187 as_func_failure () {
188 as_func_return 1
189 }
190 as_func_ret_success () {
191 return 0
192 }
193 as_func_ret_failure () {
194 return 1
195 }
196
197 exitcode=0
198 if as_func_success; then
199 :
200 else
201 exitcode=1
202 echo as_func_success failed.
203 fi
204
205 if as_func_failure; then
206 exitcode=1
207 echo as_func_failure succeeded.
208 fi
209
210 if as_func_ret_success; then
211 :
212 else
213 exitcode=1
214 echo as_func_ret_success failed.
215 fi
216
217 if as_func_ret_failure; then
218 exitcode=1
219 echo as_func_ret_failure succeeded.
220 fi
221
222 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
223 :
224 else
225 exitcode=1
226 echo positional parameters were not saved.
227 fi
228
229 test \$exitcode = 0) || { (exit 1); exit 1; }
230
231 (
232 as_lineno_1=\$LINENO
233 as_lineno_2=\$LINENO
234 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
235 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
236 ") 2> /dev/null; then
237 :
238 else
239 as_candidate_shells=
240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
241 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
242 do
243 IFS=$as_save_IFS
244 test -z "$as_dir" && as_dir=.
245 case $as_dir in
246 /*)
247 for as_base in sh bash ksh sh5; do
248 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
249 done;;
250 esac
251 done
252 IFS=$as_save_IFS
253
254
255 for as_shell in $as_candidate_shells $SHELL; do
256 # Try only shells that exist, to save several forks.
257 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
258 { ("$as_shell") 2> /dev/null <<\_ASEOF
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in
268 *posix*) set -o posix ;;
269 esac
270
271 fi
272
273
274 :
275 _ASEOF
276 }; then
277 CONFIG_SHELL=$as_shell
278 as_have_required=yes
279 if { "$as_shell" 2> /dev/null <<\_ASEOF
280 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
281 emulate sh
282 NULLCMD=:
283 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
284 # is contrary to our usage. Disable this feature.
285 alias -g '${1+"$@"}'='"$@"'
286 setopt NO_GLOB_SUBST
287 else
288 case `(set -o) 2>/dev/null` in
289 *posix*) set -o posix ;;
290 esac
291
292 fi
293
294
295 :
296 (as_func_return () {
297 (exit $1)
298 }
299 as_func_success () {
300 as_func_return 0
301 }
302 as_func_failure () {
303 as_func_return 1
304 }
305 as_func_ret_success () {
306 return 0
307 }
308 as_func_ret_failure () {
309 return 1
310 }
311
312 exitcode=0
313 if as_func_success; then
314 :
315 else
316 exitcode=1
317 echo as_func_success failed.
318 fi
319
320 if as_func_failure; then
321 exitcode=1
322 echo as_func_failure succeeded.
323 fi
324
325 if as_func_ret_success; then
326 :
327 else
328 exitcode=1
329 echo as_func_ret_success failed.
330 fi
331
332 if as_func_ret_failure; then
333 exitcode=1
334 echo as_func_ret_failure succeeded.
335 fi
336
337 if ( set x; as_func_ret_success y && test x = "$1" ); then
338 :
339 else
340 exitcode=1
341 echo positional parameters were not saved.
342 fi
343
344 test $exitcode = 0) || { (exit 1); exit 1; }
345
346 (
347 as_lineno_1=$LINENO
348 as_lineno_2=$LINENO
349 test "x$as_lineno_1" != "x$as_lineno_2" &&
350 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
351
352 _ASEOF
353 }; then
354 break
355 fi
356
357 fi
358
359 done
360
361 if test "x$CONFIG_SHELL" != x; then
362 for as_var in BASH_ENV ENV
363 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
364 done
365 export CONFIG_SHELL
366 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
367 fi
368
369
370 if test $as_have_required = no; then
371 echo This script requires a shell more modern than all the
372 echo shells that I found on your system. Please install a
373 echo modern shell, or manually run the script under such a
374 echo shell if you do have one.
375 { (exit 1); exit 1; }
376 fi
377
378
379 fi
380
381 fi
382
383
384
385 (eval "as_func_return () {
386 (exit \$1)
387 }
388 as_func_success () {
389 as_func_return 0
390 }
391 as_func_failure () {
392 as_func_return 1
393 }
394 as_func_ret_success () {
395 return 0
396 }
397 as_func_ret_failure () {
398 return 1
399 }
400
401 exitcode=0
402 if as_func_success; then
403 :
404 else
405 exitcode=1
406 echo as_func_success failed.
407 fi
408
409 if as_func_failure; then
410 exitcode=1
411 echo as_func_failure succeeded.
412 fi
413
414 if as_func_ret_success; then
415 :
416 else
417 exitcode=1
418 echo as_func_ret_success failed.
419 fi
420
421 if as_func_ret_failure; then
422 exitcode=1
423 echo as_func_ret_failure succeeded.
424 fi
425
426 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
427 :
428 else
429 exitcode=1
430 echo positional parameters were not saved.
431 fi
432
433 test \$exitcode = 0") || {
434 echo No shell found that supports shell functions.
435 echo Please tell bug-autoconf@gnu.org about your system,
436 echo including any error possibly output before this message.
437 echo This can help us improve future autoconf versions.
438 echo Configuration will now proceed without shell functions.
439 }
440
441
442
443 as_lineno_1=$LINENO
444 as_lineno_2=$LINENO
445 test "x$as_lineno_1" != "x$as_lineno_2" &&
446 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
447
448 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
449 # uniformly replaced by the line number. The first 'sed' inserts a
450 # line-number line after each line using $LINENO; the second 'sed'
451 # does the real work. The second script uses 'N' to pair each
452 # line-number line with the line containing $LINENO, and appends
453 # trailing '-' during substitution so that $LINENO is not a special
454 # case at line end.
455 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
456 # scripts with optimization help from Paolo Bonzini. Blame Lee
457 # E. McMahon (1931-1989) for sed's syntax. :-)
458 sed -n ' 426 sed -n '
459 p 427 p
460 /[$]LINENO/= 428 /[$]LINENO/=
461 ' <$as_myself | 429 ' <$as_myself |
462 sed ' 430 sed '
469 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 437 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
470 t loop 438 t loop
471 s/-\n.*// 439 s/-\n.*//
472 ' >$as_me.lineno && 440 ' >$as_me.lineno &&
473 chmod +x "$as_me.lineno" || 441 chmod +x "$as_me.lineno" ||
474 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 442 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
475 { (exit 1); exit 1; }; }
476 443
477 # Don't try to exec as it changes $[0], causing all sort of problems 444 # Don't try to exec as it changes $[0], causing all sort of problems
478 # (the dirname of $[0] is not the place where we might find the 445 # (the dirname of $[0] is not the place where we might find the
479 # original and so on. Autoconf is especially sensitive to this). 446 # original and so on. Autoconf is especially sensitive to this).
480 . "./$as_me.lineno" 447 . "./$as_me.lineno"
481 # Exit status is that of the last command. 448 # Exit status is that of the last command.
482 exit 449 exit
483 } 450 }
484 451
485
486 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
487 as_dirname=dirname
488 else
489 as_dirname=false
490 fi
491
492 ECHO_C= ECHO_N= ECHO_T= 452 ECHO_C= ECHO_N= ECHO_T=
493 case `echo -n x` in 453 case `echo -n x` in #(((((
494 -n*) 454 -n*)
495 case `echo 'x\c'` in 455 case `echo 'xy\c'` in
496 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 456 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
497 *) ECHO_C='\c';; 457 xy) ECHO_C='\c';;
458 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
459 ECHO_T=' ';;
498 esac;; 460 esac;;
499 *) 461 *)
500 ECHO_N='-n';; 462 ECHO_N='-n';;
501 esac 463 esac
502 if expr a : '\(a\)' >/dev/null 2>&1 &&
503 test "X`expr 00001 : '.*\(...\)'`" = X001; then
504 as_expr=expr
505 else
506 as_expr=false
507 fi
508 464
509 rm -f conf$$ conf$$.exe conf$$.file 465 rm -f conf$$ conf$$.exe conf$$.file
510 if test -d conf$$.dir; then 466 if test -d conf$$.dir; then
511 rm -f conf$$.dir/conf$$.file 467 rm -f conf$$.dir/conf$$.file
512 else 468 else
532 fi 488 fi
533 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 489 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
534 rmdir conf$$.dir 2>/dev/null 490 rmdir conf$$.dir 2>/dev/null
535 491
536 if mkdir -p . 2>/dev/null; then 492 if mkdir -p . 2>/dev/null; then
537 as_mkdir_p=: 493 as_mkdir_p='mkdir -p "$as_dir"'
538 else 494 else
539 test -d ./-p && rmdir ./-p 495 test -d ./-p && rmdir ./-p
540 as_mkdir_p=false 496 as_mkdir_p=false
541 fi 497 fi
542 498
551 as_test_x=' 507 as_test_x='
552 eval sh -c '\'' 508 eval sh -c '\''
553 if test -d "$1"; then 509 if test -d "$1"; then
554 test -d "$1/."; 510 test -d "$1/.";
555 else 511 else
556 case $1 in 512 case $1 in #(
557 -*)set "./$1";; 513 -*)set "./$1";;
558 esac; 514 esac;
559 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 515 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
560 ???[sx]*):;;*)false;;esac;fi 516 ???[sx]*):;;*)false;;esac;fi
561 '\'' sh 517 '\'' sh
562 ' 518 '
563 fi 519 fi
564 as_executable_p=$as_test_x 520 as_executable_p=$as_test_x
568 524
569 # Sed expression to map a string onto a valid variable name. 525 # Sed expression to map a string onto a valid variable name.
570 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 526 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
571 527
572 528
573 529 test -n "$DJDIR" || exec 7<&0 </dev/null
574 exec 7<&0 </dev/null 6>&1 530 exec 6>&1
575 531
576 # Name of the host. 532 # Name of the host.
577 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 533 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
578 # so uname gets run too. 534 # so uname gets run too.
579 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 535 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
587 LIBOBJS= 543 LIBOBJS=
588 cross_compiling=no 544 cross_compiling=no
589 subdirs= 545 subdirs=
590 MFLAGS= 546 MFLAGS=
591 MAKEFLAGS= 547 MAKEFLAGS=
592 SHELL=${CONFIG_SHELL-/bin/sh}
593 548
594 # Identity of this package. 549 # Identity of this package.
595 PACKAGE_NAME='emacs' 550 PACKAGE_NAME='emacs'
596 PACKAGE_TARNAME='emacs' 551 PACKAGE_TARNAME='emacs'
597 PACKAGE_VERSION='24.0.50' 552 PACKAGE_VERSION='24.0.50'
598 PACKAGE_STRING='emacs 24.0.50' 553 PACKAGE_STRING='emacs 24.0.50'
599 PACKAGE_BUGREPORT='' 554 PACKAGE_BUGREPORT=''
555 PACKAGE_URL=''
600 556
601 ac_unique_file="src/lisp.h" 557 ac_unique_file="src/lisp.h"
602 # Factoring default headers for most tests. 558 # Factoring default headers for most tests.
603 ac_includes_default="\ 559 ac_includes_default="\
604 #include <stdio.h> 560 #include <stdio.h>
636 #endif" 592 #endif"
637 593
638 ac_config_libobj_dir=src 594 ac_config_libobj_dir=src
639 ac_header_list= 595 ac_header_list=
640 ac_func_list= 596 ac_func_list=
641 ac_subst_vars='SHELL 597 ac_subst_vars='LTLIBOBJS
598 WIDGET_OBJ
599 XOBJ
600 XMENU_OBJ
601 OTHER_FILES
602 LIB_SRC_EXTRA_INSTALLABLES
603 GNU_OBJC_CFLAGS
604 GNUSTEP_SYSTEM_LIBRARIES
605 GNUSTEP_SYSTEM_HEADERS
606 GNUSTEP_MAKEFILES
607 ns_appsrc
608 ns_appresdir
609 ns_appbindir
610 ns_appdir
611 opsysfile
612 machfile
613 X_TOOLKIT_TYPE
614 C_SWITCH_X_SITE
615 LD_SWITCH_X_SITE_AUX
616 LD_SWITCH_X_SITE
617 unexec
618 c_switch_machine
619 c_switch_system
620 gameuser
621 gamedir
622 bitmapdir
623 archlibdir
624 etcdir
625 x_default_search_path
626 lisppath
627 locallisppath
628 lispdir
629 srcdir
630 canonical
631 configuration
632 version
633 KRB4LIB
634 DESLIB
635 KRB5LIB
636 CRYPTOLIB
637 COM_ERRLIB
638 LIBRESOLV
639 LIBHESIOD
640 GETOPTOBJS
641 GETOPT_H
642 GETLOADAVG_LIBS
643 KMEM_GROUP
644 NEED_SETGID
645 LIBOBJS
646 LIBS_MAIL
647 liblockfile
648 ALLOCA
649 LIBXSM
650 LIBGPM
651 LIBGIF
652 LIBTIFF
653 LIBPNG
654 LIBJPEG
655 LIBXPM
656 FREETYPE_LIBS
657 FREETYPE_CFLAGS
658 M17N_FLT_LIBS
659 M17N_FLT_CFLAGS
660 LIBOTF_LIBS
661 LIBOTF_CFLAGS
662 XFT_LIBS
663 XFT_CFLAGS
664 FONTCONFIG_LIBS
665 FONTCONFIG_CFLAGS
666 LIBXP
667 LUCID_LIBW
668 LIBSELINUX_LIBS
669 GCONF_LIBS
670 GCONF_CFLAGS
671 DBUS_OBJ
672 DBUS_LIBS
673 DBUS_CFLAGS
674 GTK_OBJ
675 GTK_LIBS
676 GTK_CFLAGS
677 RSVG_LIBS
678 RSVG_CFLAGS
679 HAVE_XSERVER
680 XMKMF
681 SET_MAKE
682 CFLAGS_SOUND
683 ALSA_LIBS
684 ALSA_CFLAGS
685 PKG_CONFIG
686 LIBSOUND
687 CRT_DIR
688 LIB_MATH
689 MAKEINFO
690 GZIP_PROG
691 INSTALL_INFO
692 RANLIB
693 INSTALL_DATA
694 INSTALL_SCRIPT
695 INSTALL_PROGRAM
696 LN_S
697 EGREP
698 GREP
699 CPP
700 OBJEXT
701 EXEEXT
702 ac_ct_CC
703 CPPFLAGS
704 LDFLAGS
705 CFLAGS
706 CC
707 host_os
708 host_vendor
709 host_cpu
710 host
711 build_os
712 build_vendor
713 build_cpu
714 build
715 MAINT
716 target_alias
717 host_alias
718 build_alias
719 LIBS
720 ECHO_T
721 ECHO_N
722 ECHO_C
723 DEFS
724 mandir
725 localedir
726 libdir
727 psdir
728 pdfdir
729 dvidir
730 htmldir
731 infodir
732 docdir
733 oldincludedir
734 includedir
735 localstatedir
736 sharedstatedir
737 sysconfdir
738 datadir
739 datarootdir
740 libexecdir
741 sbindir
742 bindir
743 program_transform_name
744 prefix
745 exec_prefix
746 PACKAGE_URL
747 PACKAGE_BUGREPORT
748 PACKAGE_STRING
749 PACKAGE_VERSION
750 PACKAGE_TARNAME
751 PACKAGE_NAME
642 PATH_SEPARATOR 752 PATH_SEPARATOR
643 PACKAGE_NAME 753 SHELL'
644 PACKAGE_TARNAME
645 PACKAGE_VERSION
646 PACKAGE_STRING
647 PACKAGE_BUGREPORT
648 exec_prefix
649 prefix
650 program_transform_name
651 bindir
652 sbindir
653 libexecdir
654 datarootdir
655 datadir
656 sysconfdir
657 sharedstatedir
658 localstatedir
659 includedir
660 oldincludedir
661 docdir
662 infodir
663 htmldir
664 dvidir
665 pdfdir
666 psdir
667 libdir
668 localedir
669 mandir
670 DEFS
671 ECHO_C
672 ECHO_N
673 ECHO_T
674 LIBS
675 build_alias
676 host_alias
677 target_alias
678 MAINT
679 build
680 build_cpu
681 build_vendor
682 build_os
683 host
684 host_cpu
685 host_vendor
686 host_os
687 CC
688 CFLAGS
689 LDFLAGS
690 CPPFLAGS
691 ac_ct_CC
692 EXEEXT
693 OBJEXT
694 CPP
695 GREP
696 EGREP
697 LN_S
698 INSTALL_PROGRAM
699 INSTALL_SCRIPT
700 INSTALL_DATA
701 RANLIB
702 INSTALL_INFO
703 GZIP_PROG
704 MAKEINFO
705 LIB_MATH
706 CRT_DIR
707 LIBSOUND
708 PKG_CONFIG
709 ALSA_CFLAGS
710 ALSA_LIBS
711 CFLAGS_SOUND
712 SET_MAKE
713 XMKMF
714 HAVE_XSERVER
715 RSVG_CFLAGS
716 RSVG_LIBS
717 GTK_CFLAGS
718 GTK_LIBS
719 GTK_OBJ
720 DBUS_CFLAGS
721 DBUS_LIBS
722 DBUS_OBJ
723 GCONF_CFLAGS
724 GCONF_LIBS
725 LIBSELINUX_LIBS
726 LUCID_LIBW
727 LIBXP
728 FONTCONFIG_CFLAGS
729 FONTCONFIG_LIBS
730 XFT_CFLAGS
731 XFT_LIBS
732 LIBOTF_CFLAGS
733 LIBOTF_LIBS
734 M17N_FLT_CFLAGS
735 M17N_FLT_LIBS
736 FREETYPE_CFLAGS
737 FREETYPE_LIBS
738 LIBXPM
739 LIBJPEG
740 LIBPNG
741 LIBTIFF
742 LIBGIF
743 LIBGPM
744 LIBXSM
745 ALLOCA
746 liblockfile
747 LIBS_MAIL
748 LIBOBJS
749 NEED_SETGID
750 KMEM_GROUP
751 GETLOADAVG_LIBS
752 GETOPT_H
753 GETOPTOBJS
754 LIBHESIOD
755 LIBRESOLV
756 COM_ERRLIB
757 CRYPTOLIB
758 KRB5LIB
759 DESLIB
760 KRB4LIB
761 version
762 configuration
763 canonical
764 srcdir
765 lispdir
766 locallisppath
767 lisppath
768 x_default_search_path
769 etcdir
770 archlibdir
771 bitmapdir
772 gamedir
773 gameuser
774 c_switch_system
775 c_switch_machine
776 LD_SWITCH_X_SITE
777 LD_SWITCH_X_SITE_AUX
778 C_SWITCH_X_SITE
779 X_TOOLKIT_TYPE
780 machfile
781 opsysfile
782 ns_appdir
783 ns_appbindir
784 ns_appresdir
785 ns_appsrc
786 GNUSTEP_MAKEFILES
787 GNUSTEP_SYSTEM_HEADERS
788 GNUSTEP_SYSTEM_LIBRARIES
789 GNU_OBJC_CFLAGS
790 LIB_SRC_EXTRA_INSTALLABLES
791 OTHER_FILES
792 XMENU_OBJ
793 XOBJ
794 WIDGET_OBJ
795 LTLIBOBJS'
796 ac_subst_files='' 754 ac_subst_files=''
797 ac_user_opts=' 755 ac_user_opts='
798 enable_option_checking 756 enable_option_checking
799 with_pop 757 with_pop
800 with_kerberos 758 with_kerberos
955 913
956 -disable-* | --disable-*) 914 -disable-* | --disable-*)
957 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 915 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
958 # Reject names that are not valid shell variable names. 916 # Reject names that are not valid shell variable names.
959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 917 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
960 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 918 as_fn_error "invalid feature name: $ac_useropt"
961 { (exit 1); exit 1; }; }
962 ac_useropt_orig=$ac_useropt 919 ac_useropt_orig=$ac_useropt
963 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 920 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
964 case $ac_user_opts in 921 case $ac_user_opts in
965 *" 922 *"
966 "enable_$ac_useropt" 923 "enable_$ac_useropt"
982 939
983 -enable-* | --enable-*) 940 -enable-* | --enable-*)
984 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 941 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
985 # Reject names that are not valid shell variable names. 942 # Reject names that are not valid shell variable names.
986 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
987 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2 944 as_fn_error "invalid feature name: $ac_useropt"
988 { (exit 1); exit 1; }; }
989 ac_useropt_orig=$ac_useropt 945 ac_useropt_orig=$ac_useropt
990 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
991 case $ac_user_opts in 947 case $ac_user_opts in
992 *" 948 *"
993 "enable_$ac_useropt" 949 "enable_$ac_useropt"
1187 1143
1188 -with-* | --with-*) 1144 -with-* | --with-*)
1189 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1145 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1190 # Reject names that are not valid shell variable names. 1146 # Reject names that are not valid shell variable names.
1191 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1147 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1192 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1148 as_fn_error "invalid package name: $ac_useropt"
1193 { (exit 1); exit 1; }; }
1194 ac_useropt_orig=$ac_useropt 1149 ac_useropt_orig=$ac_useropt
1195 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1150 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1196 case $ac_user_opts in 1151 case $ac_user_opts in
1197 *" 1152 *"
1198 "with_$ac_useropt" 1153 "with_$ac_useropt"
1204 1159
1205 -without-* | --without-*) 1160 -without-* | --without-*)
1206 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1161 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1207 # Reject names that are not valid shell variable names. 1162 # Reject names that are not valid shell variable names.
1208 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1209 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2 1164 as_fn_error "invalid package name: $ac_useropt"
1210 { (exit 1); exit 1; }; }
1211 ac_useropt_orig=$ac_useropt 1165 ac_useropt_orig=$ac_useropt
1212 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1213 case $ac_user_opts in 1167 case $ac_user_opts in
1214 *" 1168 *"
1215 "with_$ac_useropt" 1169 "with_$ac_useropt"
1235 ac_prev=x_libraries ;; 1189 ac_prev=x_libraries ;;
1236 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1190 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1237 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1191 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1238 x_libraries=$ac_optarg ;; 1192 x_libraries=$ac_optarg ;;
1239 1193
1240 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option 1194 -*) as_fn_error "unrecognized option: \`$ac_option'
1241 Try \`$0 --help' for more information." >&2 1195 Try \`$0 --help' for more information."
1242 { (exit 1); exit 1; }; }
1243 ;; 1196 ;;
1244 1197
1245 *=*) 1198 *=*)
1246 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1199 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1247 # Reject names that are not valid shell variable names. 1200 # Reject names that are not valid shell variable names.
1248 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 1201 case $ac_envvar in #(
1249 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2 1202 '' | [0-9]* | *[!_$as_cr_alnum]* )
1250 { (exit 1); exit 1; }; } 1203 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1204 esac
1251 eval $ac_envvar=\$ac_optarg 1205 eval $ac_envvar=\$ac_optarg
1252 export $ac_envvar ;; 1206 export $ac_envvar ;;
1253 1207
1254 *) 1208 *)
1255 # FIXME: should be removed in autoconf 3.0. 1209 # FIXME: should be removed in autoconf 3.0.
1262 esac 1216 esac
1263 done 1217 done
1264 1218
1265 if test -n "$ac_prev"; then 1219 if test -n "$ac_prev"; then
1266 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1220 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1267 { $as_echo "$as_me: error: missing argument to $ac_option" >&2 1221 as_fn_error "missing argument to $ac_option"
1268 { (exit 1); exit 1; }; }
1269 fi 1222 fi
1270 1223
1271 if test -n "$ac_unrecognized_opts"; then 1224 if test -n "$ac_unrecognized_opts"; then
1272 case $enable_option_checking in 1225 case $enable_option_checking in
1273 no) ;; 1226 no) ;;
1274 fatal) { $as_echo "$as_me: error: Unrecognized options: $ac_unrecognized_opts" >&2 1227 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1275 { (exit 1); exit 1; }; } ;; 1228 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1276 *) $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac 1229 esac
1278 fi 1230 fi
1279 1231
1280 # Check all directory arguments for consistency. 1232 # Check all directory arguments for consistency.
1281 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1233 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1293 # Be sure to have absolute directory names. 1245 # Be sure to have absolute directory names.
1294 case $ac_val in 1246 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;; 1247 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1248 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac 1249 esac
1298 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 1250 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1299 { (exit 1); exit 1; }; }
1300 done 1251 done
1301 1252
1302 # There might be people who depend on the old broken behavior: `$host' 1253 # There might be people who depend on the old broken behavior: `$host'
1303 # used to hold the argument of --host etc. 1254 # used to hold the argument of --host etc.
1304 # FIXME: To remove some day. 1255 # FIXME: To remove some day.
1324 1275
1325 1276
1326 ac_pwd=`pwd` && test -n "$ac_pwd" && 1277 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` && 1278 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1279 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 { $as_echo "$as_me: error: Working directory cannot be determined" >&2 1280 as_fn_error "working directory cannot be determined"
1330 { (exit 1); exit 1; }; }
1331 test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1281 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1332 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2 1282 as_fn_error "pwd does not report name of working directory"
1333 { (exit 1); exit 1; }; }
1334 1283
1335 1284
1336 # Find the source files, if location was not specified. 1285 # Find the source files, if location was not specified.
1337 if test -z "$srcdir"; then 1286 if test -z "$srcdir"; then
1338 ac_srcdir_defaulted=yes 1287 ac_srcdir_defaulted=yes
1367 else 1316 else
1368 ac_srcdir_defaulted=no 1317 ac_srcdir_defaulted=no
1369 fi 1318 fi
1370 if test ! -r "$srcdir/$ac_unique_file"; then 1319 if test ! -r "$srcdir/$ac_unique_file"; then
1371 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1320 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1372 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 1321 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1373 { (exit 1); exit 1; }; }
1374 fi 1322 fi
1375 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1323 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1376 ac_abs_confdir=`( 1324 ac_abs_confdir=`(
1377 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2 1325 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1378 { (exit 1); exit 1; }; }
1379 pwd)` 1326 pwd)`
1380 # When building in place, set srcdir=. 1327 # When building in place, set srcdir=.
1381 if test "$ac_abs_confdir" = "$ac_pwd"; then 1328 if test "$ac_abs_confdir" = "$ac_pwd"; then
1382 srcdir=. 1329 srcdir=.
1383 fi 1330 fi
1553 CC C compiler command 1500 CC C compiler command
1554 CFLAGS C compiler flags 1501 CFLAGS C compiler flags
1555 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1502 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1556 nonstandard directory <lib dir> 1503 nonstandard directory <lib dir>
1557 LIBS libraries to pass to the linker, e.g. -l<library> 1504 LIBS libraries to pass to the linker, e.g. -l<library>
1558 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1505 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1559 you have headers in a nonstandard directory <include dir> 1506 you have headers in a nonstandard directory <include dir>
1560 CPP C preprocessor 1507 CPP C preprocessor
1561 XMKMF Path to xmkmf, Makefile generator for X Window System 1508 XMKMF Path to xmkmf, Makefile generator for X Window System
1562 1509
1563 Use these variables to override the choices made by `configure' or to help 1510 Use these variables to override the choices made by `configure' or to help
1564 it to find libraries and programs with nonstandard names/locations. 1511 it to find libraries and programs with nonstandard names/locations.
1565 1512
1513 Report bugs to the package provider.
1566 _ACEOF 1514 _ACEOF
1567 ac_status=$? 1515 ac_status=$?
1568 fi 1516 fi
1569 1517
1570 if test "$ac_init_help" = "recursive"; then 1518 if test "$ac_init_help" = "recursive"; then
1624 1572
1625 test -n "$ac_init_help" && exit $ac_status 1573 test -n "$ac_init_help" && exit $ac_status
1626 if $ac_init_version; then 1574 if $ac_init_version; then
1627 cat <<\_ACEOF 1575 cat <<\_ACEOF
1628 emacs configure 24.0.50 1576 emacs configure 24.0.50
1629 generated by GNU Autoconf 2.62 1577 generated by GNU Autoconf 2.65
1630 1578
1631 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 1579 Copyright (C) 2009 Free Software Foundation, Inc.
1632 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation 1580 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it. 1581 gives unlimited permission to copy, distribute and modify it.
1635 _ACEOF 1582 _ACEOF
1636 exit 1583 exit
1637 fi 1584 fi
1585
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1589
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1594 {
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1610 fi
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622 fi
1623 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1624 as_fn_set_status $ac_retval
1625
1626 } # ac_fn_c_try_compile
1627
1628 # ac_fn_c_try_link LINENO
1629 # -----------------------
1630 # Try to link conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_link ()
1632 {
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 rm -f conftest.$ac_objext conftest$ac_exeext
1635 if { { ac_try="$ac_link"
1636 case "(($ac_try" in
1637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1638 *) ac_try_echo=$ac_try;;
1639 esac
1640 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1641 $as_echo "$ac_try_echo"; } >&5
1642 (eval "$ac_link") 2>conftest.err
1643 ac_status=$?
1644 if test -s conftest.err; then
1645 grep -v '^ *+' conftest.err >conftest.er1
1646 cat conftest.er1 >&5
1647 mv -f conftest.er1 conftest.err
1648 fi
1649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1650 test $ac_status = 0; } && {
1651 test -z "$ac_c_werror_flag" ||
1652 test ! -s conftest.err
1653 } && test -s conftest$ac_exeext && {
1654 test "$cross_compiling" = yes ||
1655 $as_test_x conftest$ac_exeext
1656 }; then :
1657 ac_retval=0
1658 else
1659 $as_echo "$as_me: failed program was:" >&5
1660 sed 's/^/| /' conftest.$ac_ext >&5
1661
1662 ac_retval=1
1663 fi
1664 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1665 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1666 # interfere with the next link command; also delete a directory that is
1667 # left behind by Apple's compiler. We do this before executing the actions.
1668 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1669 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1670 as_fn_set_status $ac_retval
1671
1672 } # ac_fn_c_try_link
1673
1674 # ac_fn_c_try_cpp LINENO
1675 # ----------------------
1676 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1677 ac_fn_c_try_cpp ()
1678 {
1679 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1680 if { { ac_try="$ac_cpp conftest.$ac_ext"
1681 case "(($ac_try" in
1682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1683 *) ac_try_echo=$ac_try;;
1684 esac
1685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1686 $as_echo "$ac_try_echo"; } >&5
1687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1688 ac_status=$?
1689 if test -s conftest.err; then
1690 grep -v '^ *+' conftest.err >conftest.er1
1691 cat conftest.er1 >&5
1692 mv -f conftest.er1 conftest.err
1693 fi
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; } >/dev/null && {
1696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1697 test ! -s conftest.err
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705 fi
1706 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1707 as_fn_set_status $ac_retval
1708
1709 } # ac_fn_c_try_cpp
1710
1711 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1712 # -------------------------------------------------------
1713 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1714 # the include files in INCLUDES and setting the cache variable VAR
1715 # accordingly.
1716 ac_fn_c_check_header_mongrel ()
1717 {
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1721 $as_echo_n "checking for $2... " >&6; }
1722 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1723 $as_echo_n "(cached) " >&6
1724 fi
1725 eval ac_res=\$$3
1726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1727 $as_echo "$ac_res" >&6; }
1728 else
1729 # Is the header compilable?
1730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1731 $as_echo_n "checking $2 usability... " >&6; }
1732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1733 /* end confdefs.h. */
1734 $4
1735 #include <$2>
1736 _ACEOF
1737 if ac_fn_c_try_compile "$LINENO"; then :
1738 ac_header_compiler=yes
1739 else
1740 ac_header_compiler=no
1741 fi
1742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1744 $as_echo "$ac_header_compiler" >&6; }
1745
1746 # Is the header present?
1747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1748 $as_echo_n "checking $2 presence... " >&6; }
1749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1750 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_cpp "$LINENO"; then :
1754 ac_header_preproc=yes
1755 else
1756 ac_header_preproc=no
1757 fi
1758 rm -f conftest.err conftest.$ac_ext
1759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1760 $as_echo "$ac_header_preproc" >&6; }
1761
1762 # So? What about this header?
1763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1764 yes:no: )
1765 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1766 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1768 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1769 ;;
1770 no:yes:* )
1771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1772 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1773 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1774 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1776 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1778 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1780 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1781 ;;
1782 esac
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 eval "$3=\$ac_header_compiler"
1789 fi
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 fi
1794 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1795
1796 } # ac_fn_c_check_header_mongrel
1797
1798 # ac_fn_c_try_run LINENO
1799 # ----------------------
1800 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1801 # that executables *can* be run.
1802 ac_fn_c_try_run ()
1803 {
1804 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1805 if { { ac_try="$ac_link"
1806 case "(($ac_try" in
1807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1808 *) ac_try_echo=$ac_try;;
1809 esac
1810 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1811 $as_echo "$ac_try_echo"; } >&5
1812 (eval "$ac_link") 2>&5
1813 ac_status=$?
1814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1815 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1816 { { case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819 esac
1820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821 $as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_try") 2>&5
1823 ac_status=$?
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; }; }; then :
1826 ac_retval=0
1827 else
1828 $as_echo "$as_me: program exited with status $ac_status" >&5
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1831
1832 ac_retval=$ac_status
1833 fi
1834 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1835 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1836 as_fn_set_status $ac_retval
1837
1838 } # ac_fn_c_try_run
1839
1840 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1841 # -------------------------------------------------------
1842 # Tests whether HEADER exists and can be compiled using the include files in
1843 # INCLUDES, setting the cache variable VAR accordingly.
1844 ac_fn_c_check_header_compile ()
1845 {
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1850 $as_echo_n "(cached) " >&6
1851 else
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 $4
1855 #include <$2>
1856 _ACEOF
1857 if ac_fn_c_try_compile "$LINENO"; then :
1858 eval "$3=yes"
1859 else
1860 eval "$3=no"
1861 fi
1862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1863 fi
1864 eval ac_res=\$$3
1865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1868
1869 } # ac_fn_c_check_header_compile
1870
1871 # ac_fn_c_check_header_preproc LINENO HEADER VAR
1872 # ----------------------------------------------
1873 # Tests whether HEADER is present, setting the cache variable VAR accordingly.
1874 ac_fn_c_check_header_preproc ()
1875 {
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1878 $as_echo_n "checking for $2... " >&6; }
1879 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1880 $as_echo_n "(cached) " >&6
1881 else
1882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1883 /* end confdefs.h. */
1884 #include <$2>
1885 _ACEOF
1886 if ac_fn_c_try_cpp "$LINENO"; then :
1887 eval "$3=yes"
1888 else
1889 eval "$3=no"
1890 fi
1891 rm -f conftest.err conftest.$ac_ext
1892 fi
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1897
1898 } # ac_fn_c_check_header_preproc
1899
1900 # ac_fn_c_check_decl LINENO SYMBOL VAR
1901 # ------------------------------------
1902 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
1903 ac_fn_c_check_decl ()
1904 {
1905 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
1907 $as_echo_n "checking whether $2 is declared... " >&6; }
1908 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1909 $as_echo_n "(cached) " >&6
1910 else
1911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1912 /* end confdefs.h. */
1913 $4
1914 int
1915 main ()
1916 {
1917 #ifndef $2
1918 (void) $2;
1919 #endif
1920
1921 ;
1922 return 0;
1923 }
1924 _ACEOF
1925 if ac_fn_c_try_compile "$LINENO"; then :
1926 eval "$3=yes"
1927 else
1928 eval "$3=no"
1929 fi
1930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1931 fi
1932 eval ac_res=\$$3
1933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1934 $as_echo "$ac_res" >&6; }
1935 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1936
1937 } # ac_fn_c_check_decl
1938
1939 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
1940 # ----------------------------------------------------
1941 # Tries to find if the field MEMBER exists in type AGGR, after including
1942 # INCLUDES, setting cache variable VAR accordingly.
1943 ac_fn_c_check_member ()
1944 {
1945 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
1947 $as_echo_n "checking for $2.$3... " >&6; }
1948 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
1949 $as_echo_n "(cached) " >&6
1950 else
1951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1952 /* end confdefs.h. */
1953 $5
1954 int
1955 main ()
1956 {
1957 static $2 ac_aggr;
1958 if (ac_aggr.$3)
1959 return 0;
1960 ;
1961 return 0;
1962 }
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 eval "$4=yes"
1966 else
1967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968 /* end confdefs.h. */
1969 $5
1970 int
1971 main ()
1972 {
1973 static $2 ac_aggr;
1974 if (sizeof ac_aggr.$3)
1975 return 0;
1976 ;
1977 return 0;
1978 }
1979 _ACEOF
1980 if ac_fn_c_try_compile "$LINENO"; then :
1981 eval "$4=yes"
1982 else
1983 eval "$4=no"
1984 fi
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 fi
1987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1988 fi
1989 eval ac_res=\$$4
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1992 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1993
1994 } # ac_fn_c_check_member
1995
1996 # ac_fn_c_check_func LINENO FUNC VAR
1997 # ----------------------------------
1998 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1999 ac_fn_c_check_func ()
2000 {
2001 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2003 $as_echo_n "checking for $2... " >&6; }
2004 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2005 $as_echo_n "(cached) " >&6
2006 else
2007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2008 /* end confdefs.h. */
2009 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2010 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2011 #define $2 innocuous_$2
2012
2013 /* System header to define __stub macros and hopefully few prototypes,
2014 which can conflict with char $2 (); below.
2015 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2016 <limits.h> exists even on freestanding compilers. */
2017
2018 #ifdef __STDC__
2019 # include <limits.h>
2020 #else
2021 # include <assert.h>
2022 #endif
2023
2024 #undef $2
2025
2026 /* Override any GCC internal prototype to avoid an error.
2027 Use char because int might match the return type of a GCC
2028 builtin and then its argument prototype would still apply. */
2029 #ifdef __cplusplus
2030 extern "C"
2031 #endif
2032 char $2 ();
2033 /* The GNU C library defines this for functions which it implements
2034 to always fail with ENOSYS. Some functions are actually named
2035 something starting with __ and the normal name is an alias. */
2036 #if defined __stub_$2 || defined __stub___$2
2037 choke me
2038 #endif
2039
2040 int
2041 main ()
2042 {
2043 return $2 ();
2044 ;
2045 return 0;
2046 }
2047 _ACEOF
2048 if ac_fn_c_try_link "$LINENO"; then :
2049 eval "$3=yes"
2050 else
2051 eval "$3=no"
2052 fi
2053 rm -f core conftest.err conftest.$ac_objext \
2054 conftest$ac_exeext conftest.$ac_ext
2055 fi
2056 eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2060
2061 } # ac_fn_c_check_func
2062
2063 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2064 # -------------------------------------------
2065 # Tests whether TYPE exists after having included INCLUDES, setting cache
2066 # variable VAR accordingly.
2067 ac_fn_c_check_type ()
2068 {
2069 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2071 $as_echo_n "checking for $2... " >&6; }
2072 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2073 $as_echo_n "(cached) " >&6
2074 else
2075 eval "$3=no"
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h. */
2078 $4
2079 int
2080 main ()
2081 {
2082 if (sizeof ($2))
2083 return 0;
2084 ;
2085 return 0;
2086 }
2087 _ACEOF
2088 if ac_fn_c_try_compile "$LINENO"; then :
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2091 $4
2092 int
2093 main ()
2094 {
2095 if (sizeof (($2)))
2096 return 0;
2097 ;
2098 return 0;
2099 }
2100 _ACEOF
2101 if ac_fn_c_try_compile "$LINENO"; then :
2102
2103 else
2104 eval "$3=yes"
2105 fi
2106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2107 fi
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 fi
2110 eval ac_res=\$$3
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112 $as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2114
2115 } # ac_fn_c_check_type
1638 cat >config.log <<_ACEOF 2116 cat >config.log <<_ACEOF
1639 This file contains any messages produced by compilers while 2117 This file contains any messages produced by compilers while
1640 running configure, to aid debugging if configure makes a mistake. 2118 running configure, to aid debugging if configure makes a mistake.
1641 2119
1642 It was created by emacs $as_me 24.0.50, which was 2120 It was created by emacs $as_me 24.0.50, which was
1643 generated by GNU Autoconf 2.62. Invocation command line was 2121 generated by GNU Autoconf 2.65. Invocation command line was
1644 2122
1645 $ $0 $@ 2123 $ $0 $@
1646 2124
1647 _ACEOF 2125 _ACEOF
1648 exec 5>>config.log 2126 exec 5>>config.log
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2152 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 for as_dir in $PATH 2153 for as_dir in $PATH
1676 do 2154 do
1677 IFS=$as_save_IFS 2155 IFS=$as_save_IFS
1678 test -z "$as_dir" && as_dir=. 2156 test -z "$as_dir" && as_dir=.
1679 $as_echo "PATH: $as_dir" 2157 $as_echo "PATH: $as_dir"
1680 done 2158 done
1681 IFS=$as_save_IFS 2159 IFS=$as_save_IFS
1682 2160
1683 } >&5 2161 } >&5
1684 2162
1685 cat >&5 <<_ACEOF 2163 cat >&5 <<_ACEOF
1712 continue ;; 2190 continue ;;
1713 *\'*) 2191 *\'*)
1714 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2192 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1715 esac 2193 esac
1716 case $ac_pass in 2194 case $ac_pass in
1717 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 2195 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1718 2) 2196 2)
1719 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 2197 as_fn_append ac_configure_args1 " '$ac_arg'"
1720 if test $ac_must_keep_next = true; then 2198 if test $ac_must_keep_next = true; then
1721 ac_must_keep_next=false # Got value, back to normal. 2199 ac_must_keep_next=false # Got value, back to normal.
1722 else 2200 else
1723 case $ac_arg in 2201 case $ac_arg in
1724 *=* | --config-cache | -C | -disable-* | --disable-* \ 2202 *=* | --config-cache | -C | -disable-* | --disable-* \
1730 esac 2208 esac
1731 ;; 2209 ;;
1732 -* ) ac_must_keep_next=true ;; 2210 -* ) ac_must_keep_next=true ;;
1733 esac 2211 esac
1734 fi 2212 fi
1735 ac_configure_args="$ac_configure_args '$ac_arg'" 2213 as_fn_append ac_configure_args " '$ac_arg'"
1736 ;; 2214 ;;
1737 esac 2215 esac
1738 done 2216 done
1739 done 2217 done
1740 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 2218 { ac_configure_args0=; unset ac_configure_args0;}
1741 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 2219 { ac_configure_args1=; unset ac_configure_args1;}
1742 2220
1743 # When interrupted or exit'd, cleanup temporary files, and complete 2221 # When interrupted or exit'd, cleanup temporary files, and complete
1744 # config.log. We remove comments because anyway the quotes in there 2222 # config.log. We remove comments because anyway the quotes in there
1745 # would cause problems or look ugly. 2223 # would cause problems or look ugly.
1746 # WARNING: Use '\'' to represent an apostrophe within the trap. 2224 # WARNING: Use '\'' to represent an apostrophe within the trap.
1761 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2239 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1762 eval ac_val=\$$ac_var 2240 eval ac_val=\$$ac_var
1763 case $ac_val in #( 2241 case $ac_val in #(
1764 *${as_nl}*) 2242 *${as_nl}*)
1765 case $ac_var in #( 2243 case $ac_var in #(
1766 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 2244 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1767 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 2245 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1768 esac 2246 esac
1769 case $ac_var in #( 2247 case $ac_var in #(
1770 _ | IFS | as_nl) ;; #( 2248 _ | IFS | as_nl) ;; #(
1771 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2249 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1772 *) $as_unset $ac_var ;; 2250 *) { eval $ac_var=; unset $ac_var;} ;;
1773 esac ;; 2251 esac ;;
1774 esac 2252 esac
1775 done 2253 done
1776 (set) 2>&1 | 2254 (set) 2>&1 |
1777 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2255 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1839 rm -f core *.core core.conftest.* && 2317 rm -f core *.core core.conftest.* &&
1840 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2318 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1841 exit $exit_status 2319 exit $exit_status
1842 ' 0 2320 ' 0
1843 for ac_signal in 1 2 13 15; do 2321 for ac_signal in 1 2 13 15; do
1844 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 2322 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1845 done 2323 done
1846 ac_signal=0 2324 ac_signal=0
1847 2325
1848 # confdefs.h avoids OS command line length limits that DEFS can exceed. 2326 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1849 rm -f -r conftest* confdefs.h 2327 rm -f -r conftest* confdefs.h
1850 2328
2329 $as_echo "/* confdefs.h */" > confdefs.h
2330
1851 # Predefined preprocessor variables. 2331 # Predefined preprocessor variables.
1852 2332
1853 cat >>confdefs.h <<_ACEOF 2333 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_NAME "$PACKAGE_NAME" 2334 #define PACKAGE_NAME "$PACKAGE_NAME"
1855 _ACEOF 2335 _ACEOF
1856 2336
1857
1858 cat >>confdefs.h <<_ACEOF 2337 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2338 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1860 _ACEOF 2339 _ACEOF
1861 2340
1862
1863 cat >>confdefs.h <<_ACEOF 2341 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_VERSION "$PACKAGE_VERSION" 2342 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1865 _ACEOF 2343 _ACEOF
1866 2344
1867
1868 cat >>confdefs.h <<_ACEOF 2345 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_STRING "$PACKAGE_STRING" 2346 #define PACKAGE_STRING "$PACKAGE_STRING"
1870 _ACEOF 2347 _ACEOF
1871 2348
1872
1873 cat >>confdefs.h <<_ACEOF 2349 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2350 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2351 _ACEOF
2352
2353 cat >>confdefs.h <<_ACEOF
2354 #define PACKAGE_URL "$PACKAGE_URL"
1875 _ACEOF 2355 _ACEOF
1876 2356
1877 2357
1878 # Let the site file select an alternate cache file if it wants to. 2358 # Let the site file select an alternate cache file if it wants to.
1879 # Prefer an explicitly selected file to automatically selected ones. 2359 # Prefer an explicitly selected file to automatically selected ones.
1889 ac_site_file2=$ac_default_prefix/etc/config.site 2369 ac_site_file2=$ac_default_prefix/etc/config.site
1890 fi 2370 fi
1891 for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2371 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1892 do 2372 do
1893 test "x$ac_site_file" = xNONE && continue 2373 test "x$ac_site_file" = xNONE && continue
1894 if test -r "$ac_site_file"; then 2374 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1895 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 2375 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1896 $as_echo "$as_me: loading site script $ac_site_file" >&6;} 2376 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1897 sed 's/^/| /' "$ac_site_file" >&5 2377 sed 's/^/| /' "$ac_site_file" >&5
1898 . "$ac_site_file" 2378 . "$ac_site_file"
1899 fi 2379 fi
1900 done 2380 done
1901 2381
1902 if test -r "$cache_file"; then 2382 if test -r "$cache_file"; then
1903 # Some versions of bash will fail to source /dev/null (special 2383 # Some versions of bash will fail to source /dev/null (special files
1904 # files actually), so we avoid doing that. 2384 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1905 if test -f "$cache_file"; then 2385 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1906 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5 2386 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1907 $as_echo "$as_me: loading cache $cache_file" >&6;} 2387 $as_echo "$as_me: loading cache $cache_file" >&6;}
1908 case $cache_file in 2388 case $cache_file in
1909 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2389 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910 *) . "./$cache_file";; 2390 *) . "./$cache_file";;
1911 esac 2391 esac
1912 fi 2392 fi
1913 else 2393 else
1914 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5 2394 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1915 $as_echo "$as_me: creating cache $cache_file" >&6;} 2395 $as_echo "$as_me: creating cache $cache_file" >&6;}
1916 >$cache_file 2396 >$cache_file
1917 fi 2397 fi
1918 2398
1919 ac_header_list="$ac_header_list sys/time.h" 2399 as_fn_append ac_header_list " stdlib.h"
1920 ac_header_list="$ac_header_list unistd.h" 2400 as_fn_append ac_header_list " unistd.h"
1921 ac_func_list="$ac_func_list alarm" 2401 as_fn_append ac_header_list " sys/param.h"
2402 as_fn_append ac_header_list " sys/time.h"
2403 as_fn_append ac_func_list " alarm"
1922 # Check that the precious variables saved in the cache have kept the same 2404 # Check that the precious variables saved in the cache have kept the same
1923 # value. 2405 # value.
1924 ac_cache_corrupted=false 2406 ac_cache_corrupted=false
1925 for ac_var in $ac_precious_vars; do 2407 for ac_var in $ac_precious_vars; do
1926 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2408 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1927 eval ac_new_set=\$ac_env_${ac_var}_set 2409 eval ac_new_set=\$ac_env_${ac_var}_set
1928 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2410 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1929 eval ac_new_val=\$ac_env_${ac_var}_value 2411 eval ac_new_val=\$ac_env_${ac_var}_value
1930 case $ac_old_set,$ac_new_set in 2412 case $ac_old_set,$ac_new_set in
1931 set,) 2413 set,)
1932 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1933 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2415 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1934 ac_cache_corrupted=: ;; 2416 ac_cache_corrupted=: ;;
1935 ,set) 2417 ,set)
1936 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1937 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2419 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1938 ac_cache_corrupted=: ;; 2420 ac_cache_corrupted=: ;;
1939 ,);; 2421 ,);;
1940 *) 2422 *)
1941 if test "x$ac_old_val" != "x$ac_new_val"; then 2423 if test "x$ac_old_val" != "x$ac_new_val"; then
1942 # differences in whitespace do not lead to failure. 2424 # differences in whitespace do not lead to failure.
1943 ac_old_val_w=`echo x $ac_old_val` 2425 ac_old_val_w=`echo x $ac_old_val`
1944 ac_new_val_w=`echo x $ac_new_val` 2426 ac_new_val_w=`echo x $ac_new_val`
1945 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2427 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1946 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1947 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2429 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1948 ac_cache_corrupted=: 2430 ac_cache_corrupted=:
1949 else 2431 else
1950 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2432 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1951 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2433 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1952 eval $ac_var=\$ac_old_val 2434 eval $ac_var=\$ac_old_val
1953 fi 2435 fi
1954 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5 2436 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1955 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2437 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1956 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5 2438 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1957 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2439 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1958 fi;; 2440 fi;;
1959 esac 2441 esac
1960 # Pass precious variables to config.status. 2442 # Pass precious variables to config.status.
1961 if test "$ac_new_set" = set; then 2443 if test "$ac_new_set" = set; then
1963 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2445 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1964 *) ac_arg=$ac_var=$ac_new_val ;; 2446 *) ac_arg=$ac_var=$ac_new_val ;;
1965 esac 2447 esac
1966 case " $ac_configure_args " in 2448 case " $ac_configure_args " in
1967 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2449 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1968 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 2450 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1969 esac 2451 esac
1970 fi 2452 fi
1971 done 2453 done
1972 if $ac_cache_corrupted; then 2454 if $ac_cache_corrupted; then
1973 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 2455 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1974 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2458 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1975 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 2459 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1976 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 2460 fi
1977 { (exit 1); exit 1; }; } 2461 ## -------------------- ##
1978 fi 2462 ## Main body of script. ##
1979 2463 ## -------------------- ##
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003 2464
2004 ac_ext=c 2465 ac_ext=c
2005 ac_cpp='$CPP $CPPFLAGS' 2466 ac_cpp='$CPP $CPPFLAGS'
2006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2467 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2468 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 2497
2037 2498
2038 2499
2039 2500
2040 # Check whether --with-pop was given. 2501 # Check whether --with-pop was given.
2041 if test "${with_pop+set}" = set; then 2502 if test "${with_pop+set}" = set; then :
2042 withval=$with_pop; 2503 withval=$with_pop;
2043 else 2504 else
2044 with_pop=yes 2505 with_pop=yes
2045 fi 2506 fi
2046 2507
2047 if test "$with_pop" = yes; then 2508 if test "$with_pop" = yes; then
2048 cat >>confdefs.h <<\_ACEOF 2509 $as_echo "#define MAIL_USE_POP 1" >>confdefs.h
2049 #define MAIL_USE_POP 1 2510
2050 _ACEOF 2511 fi
2051
2052 fi
2053
2054 2512
2055 2513
2056 # Check whether --with-kerberos was given. 2514 # Check whether --with-kerberos was given.
2057 if test "${with_kerberos+set}" = set; then 2515 if test "${with_kerberos+set}" = set; then :
2058 withval=$with_kerberos; 2516 withval=$with_kerberos;
2059 else 2517 else
2060 with_kerberos=no 2518 with_kerberos=no
2061 fi 2519 fi
2062 2520
2063 if test "$with_kerberos" != no; then 2521 if test "$with_kerberos" != no; then
2064 cat >>confdefs.h <<\_ACEOF 2522 $as_echo "#define KERBEROS 1" >>confdefs.h
2065 #define KERBEROS 1 2523
2066 _ACEOF 2524 fi
2067
2068 fi
2069
2070 2525
2071 2526
2072 # Check whether --with-kerberos5 was given. 2527 # Check whether --with-kerberos5 was given.
2073 if test "${with_kerberos5+set}" = set; then 2528 if test "${with_kerberos5+set}" = set; then :
2074 withval=$with_kerberos5; 2529 withval=$with_kerberos5;
2075 else 2530 else
2076 with_kerberos5=no 2531 with_kerberos5=no
2077 fi 2532 fi
2078 2533
2079 if test "${with_kerberos5}" != no; then 2534 if test "${with_kerberos5}" != no; then
2080 if test "${with_kerberos}" = no; then 2535 if test "${with_kerberos}" = no; then
2081 with_kerberos=yes 2536 with_kerberos=yes
2082 cat >>confdefs.h <<\_ACEOF 2537 $as_echo "#define KERBEROS 1" >>confdefs.h
2083 #define KERBEROS 1
2084 _ACEOF
2085 2538
2086 fi 2539 fi
2087 2540
2088 cat >>confdefs.h <<\_ACEOF 2541 $as_echo "#define KERBEROS5 1" >>confdefs.h
2089 #define KERBEROS5 1
2090 _ACEOF
2091 2542
2092 fi 2543 fi
2093 2544
2094 2545
2095 # Check whether --with-hesiod was given. 2546 # Check whether --with-hesiod was given.
2096 if test "${with_hesiod+set}" = set; then 2547 if test "${with_hesiod+set}" = set; then :
2097 withval=$with_hesiod; 2548 withval=$with_hesiod;
2098 else 2549 else
2099 with_hesiod=no 2550 with_hesiod=no
2100 fi 2551 fi
2101 2552
2102 if test "$with_hesiod" != no; then 2553 if test "$with_hesiod" != no; then
2103 2554
2104 cat >>confdefs.h <<\_ACEOF 2555 $as_echo "#define HESIOD 1" >>confdefs.h
2105 #define HESIOD 1
2106 _ACEOF
2107 2556
2108 fi 2557 fi
2109 2558
2110 2559
2111 # Check whether --with-mmdf was given. 2560 # Check whether --with-mmdf was given.
2112 if test "${with_mmdf+set}" = set; then 2561 if test "${with_mmdf+set}" = set; then :
2113 withval=$with_mmdf; 2562 withval=$with_mmdf;
2114 else 2563 else
2115 with_mmdf=no 2564 with_mmdf=no
2116 fi 2565 fi
2117 2566
2118 if test "$with_mmdf" != no; then 2567 if test "$with_mmdf" != no; then
2119 2568
2120 cat >>confdefs.h <<\_ACEOF 2569 $as_echo "#define MAIL_USE_MMDF 1" >>confdefs.h
2121 #define MAIL_USE_MMDF 1
2122 _ACEOF
2123 2570
2124 fi 2571 fi
2125 2572
2126 2573
2127 # Check whether --with-mail-unlink was given. 2574 # Check whether --with-mail-unlink was given.
2128 if test "${with_mail_unlink+set}" = set; then 2575 if test "${with_mail_unlink+set}" = set; then :
2129 withval=$with_mail_unlink; 2576 withval=$with_mail_unlink;
2130 else 2577 else
2131 with_mail_unlink=no 2578 with_mail_unlink=no
2132 fi 2579 fi
2133 2580
2134 if test "$with_mail_unlink" != no; then 2581 if test "$with_mail_unlink" != no; then
2135 2582
2136 cat >>confdefs.h <<\_ACEOF 2583 $as_echo "#define MAIL_UNLINK_SPOOL 1" >>confdefs.h
2137 #define MAIL_UNLINK_SPOOL 1
2138 _ACEOF
2139 2584
2140 fi 2585 fi
2141 2586
2142 2587
2143 # Check whether --with-mailhost was given. 2588 # Check whether --with-mailhost was given.
2144 if test "${with_mailhost+set}" = set; then 2589 if test "${with_mailhost+set}" = set; then :
2145 withval=$with_mailhost; 2590 withval=$with_mailhost;
2146 cat >>confdefs.h <<_ACEOF 2591 cat >>confdefs.h <<_ACEOF
2147 #define MAILHOST "$withval" 2592 #define MAILHOST "$withval"
2148 _ACEOF 2593 _ACEOF
2149 2594
2150 fi 2595 fi
2151 2596
2152 2597
2153 2598
2154 # Check whether --with-sound was given. 2599 # Check whether --with-sound was given.
2155 if test "${with_sound+set}" = set; then 2600 if test "${with_sound+set}" = set; then :
2156 withval=$with_sound; 2601 withval=$with_sound;
2157 else 2602 else
2158 with_sound=yes 2603 with_sound=yes
2159 fi 2604 fi
2160 2605
2161 2606
2162 2607
2163 # Check whether --with-sync-input was given. 2608 # Check whether --with-sync-input was given.
2164 if test "${with_sync_input+set}" = set; then 2609 if test "${with_sync_input+set}" = set; then :
2165 withval=$with_sync_input; 2610 withval=$with_sync_input;
2166 else 2611 else
2167 with_sync_input=yes 2612 with_sync_input=yes
2168 fi 2613 fi
2169 2614
2170 if test "$with_sync_input" = yes; then 2615 if test "$with_sync_input" = yes; then
2171 2616
2172 cat >>confdefs.h <<\_ACEOF 2617 $as_echo "#define SYNC_INPUT 1" >>confdefs.h
2173 #define SYNC_INPUT 1
2174 _ACEOF
2175 2618
2176 fi 2619 fi
2177 2620
2178 2621
2179 # Check whether --with-x-toolkit was given. 2622 # Check whether --with-x-toolkit was given.
2180 if test "${with_x_toolkit+set}" = set; then 2623 if test "${with_x_toolkit+set}" = set; then :
2181 withval=$with_x_toolkit; case "${withval}" in 2624 withval=$with_x_toolkit; case "${withval}" in
2182 y | ye | yes ) val=gtk ;; 2625 y | ye | yes ) val=gtk ;;
2183 n | no ) val=no ;; 2626 n | no ) val=no ;;
2184 l | lu | luc | luci | lucid ) val=lucid ;; 2627 l | lu | luc | luci | lucid ) val=lucid ;;
2185 a | at | ath | athe | athen | athena ) val=athena ;; 2628 a | at | ath | athe | athen | athena ) val=athena ;;
2186 m | mo | mot | moti | motif ) val=motif ;; 2629 m | mo | mot | moti | motif ) val=motif ;;
2187 g | gt | gtk ) val=gtk ;; 2630 g | gt | gtk ) val=gtk ;;
2188 * ) 2631 * )
2189 { { $as_echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid; 2632 as_fn_error "\`--with-x-toolkit=$withval' is invalid;
2190 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'. 2633 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2191 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5 2634 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." "$LINENO" 5
2192 $as_echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
2193 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
2194 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
2195 { (exit 1); exit 1; }; }
2196 ;; 2635 ;;
2197 esac 2636 esac
2198 with_x_toolkit=$val 2637 with_x_toolkit=$val
2199 2638
2200 fi 2639 fi
2201 2640
2202 2641
2203 2642
2204 # Check whether --with-xpm was given. 2643 # Check whether --with-xpm was given.
2205 if test "${with_xpm+set}" = set; then 2644 if test "${with_xpm+set}" = set; then :
2206 withval=$with_xpm; 2645 withval=$with_xpm;
2207 else 2646 else
2208 with_xpm=yes 2647 with_xpm=yes
2209 fi 2648 fi
2210 2649
2211 2650
2212 # Check whether --with-jpeg was given. 2651 # Check whether --with-jpeg was given.
2213 if test "${with_jpeg+set}" = set; then 2652 if test "${with_jpeg+set}" = set; then :
2214 withval=$with_jpeg; 2653 withval=$with_jpeg;
2215 else 2654 else
2216 with_jpeg=yes 2655 with_jpeg=yes
2217 fi 2656 fi
2218 2657
2219 2658
2220 # Check whether --with-tiff was given. 2659 # Check whether --with-tiff was given.
2221 if test "${with_tiff+set}" = set; then 2660 if test "${with_tiff+set}" = set; then :
2222 withval=$with_tiff; 2661 withval=$with_tiff;
2223 else 2662 else
2224 with_tiff=yes 2663 with_tiff=yes
2225 fi 2664 fi
2226 2665
2227 2666
2228 # Check whether --with-gif was given. 2667 # Check whether --with-gif was given.
2229 if test "${with_gif+set}" = set; then 2668 if test "${with_gif+set}" = set; then :
2230 withval=$with_gif; 2669 withval=$with_gif;
2231 else 2670 else
2232 with_gif=yes 2671 with_gif=yes
2233 fi 2672 fi
2234 2673
2235 2674
2236 # Check whether --with-png was given. 2675 # Check whether --with-png was given.
2237 if test "${with_png+set}" = set; then 2676 if test "${with_png+set}" = set; then :
2238 withval=$with_png; 2677 withval=$with_png;
2239 else 2678 else
2240 with_png=yes 2679 with_png=yes
2241 fi 2680 fi
2242 2681
2243 2682
2244 # Check whether --with-rsvg was given. 2683 # Check whether --with-rsvg was given.
2245 if test "${with_rsvg+set}" = set; then 2684 if test "${with_rsvg+set}" = set; then :
2246 withval=$with_rsvg; 2685 withval=$with_rsvg;
2247 else 2686 else
2248 with_rsvg=yes 2687 with_rsvg=yes
2249 fi 2688 fi
2250 2689
2251 2690
2252 2691
2253 # Check whether --with-xft was given. 2692 # Check whether --with-xft was given.
2254 if test "${with_xft+set}" = set; then 2693 if test "${with_xft+set}" = set; then :
2255 withval=$with_xft; 2694 withval=$with_xft;
2256 else 2695 else
2257 with_xft=yes 2696 with_xft=yes
2258 fi 2697 fi
2259 2698
2260 2699
2261 # Check whether --with-libotf was given. 2700 # Check whether --with-libotf was given.
2262 if test "${with_libotf+set}" = set; then 2701 if test "${with_libotf+set}" = set; then :
2263 withval=$with_libotf; 2702 withval=$with_libotf;
2264 else 2703 else
2265 with_libotf=yes 2704 with_libotf=yes
2266 fi 2705 fi
2267 2706
2268 2707
2269 # Check whether --with-m17n-flt was given. 2708 # Check whether --with-m17n-flt was given.
2270 if test "${with_m17n_flt+set}" = set; then 2709 if test "${with_m17n_flt+set}" = set; then :
2271 withval=$with_m17n_flt; 2710 withval=$with_m17n_flt;
2272 else 2711 else
2273 with_m17n_flt=yes 2712 with_m17n_flt=yes
2274 fi 2713 fi
2275 2714
2276 2715
2277 2716
2278 # Check whether --with-toolkit-scroll-bars was given. 2717 # Check whether --with-toolkit-scroll-bars was given.
2279 if test "${with_toolkit_scroll_bars+set}" = set; then 2718 if test "${with_toolkit_scroll_bars+set}" = set; then :
2280 withval=$with_toolkit_scroll_bars; 2719 withval=$with_toolkit_scroll_bars;
2281 else 2720 else
2282 with_toolkit_scroll_bars=yes 2721 with_toolkit_scroll_bars=yes
2283 fi 2722 fi
2284 2723
2285 2724
2286 # Check whether --with-xaw3d was given. 2725 # Check whether --with-xaw3d was given.
2287 if test "${with_xaw3d+set}" = set; then 2726 if test "${with_xaw3d+set}" = set; then :
2288 withval=$with_xaw3d; 2727 withval=$with_xaw3d;
2289 else 2728 else
2290 with_xaw3d=yes 2729 with_xaw3d=yes
2291 fi 2730 fi
2292 2731
2293 2732
2294 # Check whether --with-xim was given. 2733 # Check whether --with-xim was given.
2295 if test "${with_xim+set}" = set; then 2734 if test "${with_xim+set}" = set; then :
2296 withval=$with_xim; 2735 withval=$with_xim;
2297 else 2736 else
2298 with_xim=yes 2737 with_xim=yes
2299 fi 2738 fi
2300 2739
2301 2740
2302 # Check whether --with-ns was given. 2741 # Check whether --with-ns was given.
2303 if test "${with_ns+set}" = set; then 2742 if test "${with_ns+set}" = set; then :
2304 withval=$with_ns; 2743 withval=$with_ns;
2305 else 2744 else
2306 with_ns=no 2745 with_ns=no
2307 fi 2746 fi
2308 2747
2309 2748
2310 2749
2311 # Check whether --with-gpm was given. 2750 # Check whether --with-gpm was given.
2312 if test "${with_gpm+set}" = set; then 2751 if test "${with_gpm+set}" = set; then :
2313 withval=$with_gpm; 2752 withval=$with_gpm;
2314 else 2753 else
2315 with_gpm=yes 2754 with_gpm=yes
2316 fi 2755 fi
2317 2756
2318 2757
2319 # Check whether --with-dbus was given. 2758 # Check whether --with-dbus was given.
2320 if test "${with_dbus+set}" = set; then 2759 if test "${with_dbus+set}" = set; then :
2321 withval=$with_dbus; 2760 withval=$with_dbus;
2322 else 2761 else
2323 with_dbus=yes 2762 with_dbus=yes
2324 fi 2763 fi
2325 2764
2326 2765
2327 # Check whether --with-gconf was given. 2766 # Check whether --with-gconf was given.
2328 if test "${with_gconf+set}" = set; then 2767 if test "${with_gconf+set}" = set; then :
2329 withval=$with_gconf; 2768 withval=$with_gconf;
2330 else 2769 else
2331 with_gconf=yes 2770 with_gconf=yes
2332 fi 2771 fi
2333 2772
2334 2773
2335 # Check whether --with-selinux was given. 2774 # Check whether --with-selinux was given.
2336 if test "${with_selinux+set}" = set; then 2775 if test "${with_selinux+set}" = set; then :
2337 withval=$with_selinux; 2776 withval=$with_selinux;
2338 else 2777 else
2339 with_selinux=yes 2778 with_selinux=yes
2340 fi 2779 fi
2341 2780
2342 2781
2343 ## For the times when you want to build Emacs but don't have 2782 ## For the times when you want to build Emacs but don't have
2344 ## a suitable makeinfo, and can live without the manuals. 2783 ## a suitable makeinfo, and can live without the manuals.
2345 2784
2346 # Check whether --with-makeinfo was given. 2785 # Check whether --with-makeinfo was given.
2347 if test "${with_makeinfo+set}" = set; then 2786 if test "${with_makeinfo+set}" = set; then :
2348 withval=$with_makeinfo; 2787 withval=$with_makeinfo;
2349 else 2788 else
2350 with_makeinfo=yes 2789 with_makeinfo=yes
2351 fi 2790 fi
2352 2791
2353 2792
2354 2793
2355 # Check whether --with-gtk was given. 2794 # Check whether --with-gtk was given.
2356 if test "${with_gtk+set}" = set; then 2795 if test "${with_gtk+set}" = set; then :
2357 withval=$with_gtk; { { $as_echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to 2796 withval=$with_gtk; as_fn_error "--with-gtk has been removed. Use --with-x-toolkit to
2358 specify a toolkit." >&5 2797 specify a toolkit." "$LINENO" 5
2359 $as_echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2360 specify a toolkit." >&2;}
2361 { (exit 1); exit 1; }; }
2362 fi 2798 fi
2363 2799
2364 2800
2365 2801
2366 # Check whether --with-gcc was given. 2802 # Check whether --with-gcc was given.
2367 if test "${with_gcc+set}" = set; then 2803 if test "${with_gcc+set}" = set; then :
2368 withval=$with_gcc; { { $as_echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment 2804 withval=$with_gcc; as_fn_error "--with-gcc has been removed. Set the \`CC' environment
2369 variable to specify a compiler." >&5 2805 variable to specify a compiler." "$LINENO" 5
2370 $as_echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2371 variable to specify a compiler." >&2;}
2372 { (exit 1); exit 1; }; }
2373 fi 2806 fi
2374 2807
2375 2808
2376 2809
2377 # Check whether --with-pkg-config-prog was given. 2810 # Check whether --with-pkg-config-prog was given.
2378 if test "${with_pkg_config_prog+set}" = set; then 2811 if test "${with_pkg_config_prog+set}" = set; then :
2379 withval=$with_pkg_config_prog; 2812 withval=$with_pkg_config_prog;
2380 fi 2813 fi
2381 2814
2382 if test "X${with_pkg_config_prog}" != X; then 2815 if test "X${with_pkg_config_prog}" != X; then
2383 if test "${with_pkg_config_prog}" != yes; then 2816 if test "${with_pkg_config_prog}" != yes; then
2386 fi 2819 fi
2387 2820
2388 CRT_DIR= 2821 CRT_DIR=
2389 2822
2390 # Check whether --with-crt-dir was given. 2823 # Check whether --with-crt-dir was given.
2391 if test "${with_crt_dir+set}" = set; then 2824 if test "${with_crt_dir+set}" = set; then :
2392 withval=$with_crt_dir; 2825 withval=$with_crt_dir;
2393 fi 2826 fi
2394 2827
2395 CRT_DIR="${with_crt_dir}" 2828 CRT_DIR="${with_crt_dir}"
2396 2829
2397 2830
2398 # Check whether --with-gnustep-conf was given. 2831 # Check whether --with-gnustep-conf was given.
2399 if test "${with_gnustep_conf+set}" = set; then 2832 if test "${with_gnustep_conf+set}" = set; then :
2400 withval=$with_gnustep_conf; 2833 withval=$with_gnustep_conf;
2401 fi 2834 fi
2402 2835
2403 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \ 2836 test "X${with_gnustep_conf}" != X && test "${with_gnustep_conf}" != yes && \
2404 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}" 2837 GNUSTEP_CONFIG_FILE="${with_gnustep_conf}"
2405 test "X$GNUSTEP_CONFIG_FILE" = "X" && \ 2838 test "X$GNUSTEP_CONFIG_FILE" = "X" && \
2406 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf 2839 GNUSTEP_CONFIG_FILE=/etc/GNUstep/GNUstep.conf
2407 2840
2408 # Check whether --enable-ns-self-contained was given. 2841 # Check whether --enable-ns-self-contained was given.
2409 if test "${enable_ns_self_contained+set}" = set; then 2842 if test "${enable_ns_self_contained+set}" = set; then :
2410 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval 2843 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=$enableval
2411 else 2844 else
2412 EN_NS_SELF_CONTAINED=yes 2845 EN_NS_SELF_CONTAINED=yes
2413 fi 2846 fi
2414 2847
2415 2848
2416 # Check whether --enable-asserts was given. 2849 # Check whether --enable-asserts was given.
2417 if test "${enable_asserts+set}" = set; then 2850 if test "${enable_asserts+set}" = set; then :
2418 enableval=$enable_asserts; USE_XASSERTS=$enableval 2851 enableval=$enable_asserts; USE_XASSERTS=$enableval
2419 else 2852 else
2420 USE_XASSERTS=no 2853 USE_XASSERTS=no
2421 fi 2854 fi
2422 2855
2423 2856
2424 # Check whether --enable-maintainer-mode was given. 2857 # Check whether --enable-maintainer-mode was given.
2425 if test "${enable_maintainer_mode+set}" = set; then 2858 if test "${enable_maintainer_mode+set}" = set; then :
2426 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2859 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2427 else 2860 else
2428 USE_MAINTAINER_MODE=no 2861 USE_MAINTAINER_MODE=no
2429 fi 2862 fi
2430 2863
2434 MAINT=# 2867 MAINT=#
2435 fi 2868 fi
2436 2869
2437 2870
2438 # Check whether --enable-locallisppath was given. 2871 # Check whether --enable-locallisppath was given.
2439 if test "${enable_locallisppath+set}" = set; then 2872 if test "${enable_locallisppath+set}" = set; then :
2440 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then 2873 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2441 locallisppath= 2874 locallisppath=
2442 elif test "${enableval}" != "yes"; then 2875 elif test "${enableval}" != "yes"; then
2443 locallisppath=${enableval} 2876 locallisppath=${enableval}
2444 fi 2877 fi
2445 fi 2878 fi
2446 2879
2447 2880
2448 # Check whether --enable-checking was given. 2881 # Check whether --enable-checking was given.
2449 if test "${enable_checking+set}" = set; then 2882 if test "${enable_checking+set}" = set; then :
2450 enableval=$enable_checking; ac_checking_flags="${enableval}" 2883 enableval=$enable_checking; ac_checking_flags="${enableval}"
2451 fi 2884 fi
2452 2885
2453 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS," 2886 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="$IFS,"
2454 for check in $ac_checking_flags 2887 for check in $ac_checking_flags
2472 stringbytes) ac_gc_check_stringbytes=1 ;; 2905 stringbytes) ac_gc_check_stringbytes=1 ;;
2473 stringoverrun) ac_gc_check_string_overrun=1 ;; 2906 stringoverrun) ac_gc_check_string_overrun=1 ;;
2474 stringfreelist) ac_gc_check_string_free_list=1 ;; 2907 stringfreelist) ac_gc_check_string_free_list=1 ;;
2475 xmallocoverrun) ac_xmalloc_overrun=1 ;; 2908 xmallocoverrun) ac_xmalloc_overrun=1 ;;
2476 conslist) ac_gc_check_cons_list=1 ;; 2909 conslist) ac_gc_check_cons_list=1 ;;
2477 *) { { $as_echo "$as_me:$LINENO: error: unknown check category $check" >&5 2910 *) as_fn_error "unknown check category $check" "$LINENO" 5 ;;
2478 $as_echo "$as_me: error: unknown check category $check" >&2;}
2479 { (exit 1); exit 1; }; } ;;
2480 esac 2911 esac
2481 done 2912 done
2482 IFS="$ac_save_IFS" 2913 IFS="$ac_save_IFS"
2483 2914
2484 if test x$ac_enable_checking != x ; then 2915 if test x$ac_enable_checking != x ; then
2485 2916
2486 cat >>confdefs.h <<\_ACEOF 2917 $as_echo "#define ENABLE_CHECKING 1" >>confdefs.h
2487 #define ENABLE_CHECKING 1
2488 _ACEOF
2489 2918
2490 fi 2919 fi
2491 if test x$ac_gc_check_stringbytes != x ; then 2920 if test x$ac_gc_check_stringbytes != x ; then
2492 2921
2493 cat >>confdefs.h <<\_ACEOF 2922 $as_echo "#define GC_CHECK_STRING_BYTES 1" >>confdefs.h
2494 #define GC_CHECK_STRING_BYTES 1
2495 _ACEOF
2496 2923
2497 fi 2924 fi
2498 if test x$ac_gc_check_stringoverrun != x ; then 2925 if test x$ac_gc_check_stringoverrun != x ; then
2499 2926
2500 cat >>confdefs.h <<\_ACEOF 2927 $as_echo "#define GC_CHECK_STRING_OVERRUN 1" >>confdefs.h
2501 #define GC_CHECK_STRING_OVERRUN 1
2502 _ACEOF
2503 2928
2504 fi 2929 fi
2505 if test x$ac_gc_check_string_free_list != x ; then 2930 if test x$ac_gc_check_string_free_list != x ; then
2506 2931
2507 cat >>confdefs.h <<\_ACEOF 2932 $as_echo "#define GC_CHECK_STRING_FREE_LIST 1" >>confdefs.h
2508 #define GC_CHECK_STRING_FREE_LIST 1
2509 _ACEOF
2510 2933
2511 fi 2934 fi
2512 if test x$ac_xmalloc_overrun != x ; then 2935 if test x$ac_xmalloc_overrun != x ; then
2513 2936
2514 cat >>confdefs.h <<\_ACEOF 2937 $as_echo "#define XMALLOC_OVERRUN_CHECK 1" >>confdefs.h
2515 #define XMALLOC_OVERRUN_CHECK 1
2516 _ACEOF
2517 2938
2518 fi 2939 fi
2519 if test x$ac_gc_check_cons_list != x ; then 2940 if test x$ac_gc_check_cons_list != x ; then
2520 2941
2521 cat >>confdefs.h <<\_ACEOF 2942 $as_echo "#define GC_CHECK_CONS_LIST 1" >>confdefs.h
2522 #define GC_CHECK_CONS_LIST 1
2523 _ACEOF
2524 2943
2525 fi 2944 fi
2526 2945
2527 # Check whether --enable-profiling was given. 2946 # Check whether --enable-profiling was given.
2528 if test "${enable_profiling+set}" = set; then 2947 if test "${enable_profiling+set}" = set; then :
2529 enableval=$enable_profiling; ac_enable_profiling="${enableval}" 2948 enableval=$enable_profiling; ac_enable_profiling="${enableval}"
2530 fi 2949 fi
2531 2950
2532 if test x$ac_enable_profiling != x ; then 2951 if test x$ac_enable_profiling != x ; then
2533 PROFILING_CFLAGS="-DPROFILING=1 -pg" 2952 PROFILING_CFLAGS="-DPROFILING=1 -pg"
2536 PROFILING_CFLAGS= 2955 PROFILING_CFLAGS=
2537 PROFILING_LDFLAGS= 2956 PROFILING_LDFLAGS=
2538 fi 2957 fi
2539 2958
2540 # Check whether --enable-autodepend was given. 2959 # Check whether --enable-autodepend was given.
2541 if test "${enable_autodepend+set}" = set; then 2960 if test "${enable_autodepend+set}" = set; then :
2542 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}" 2961 enableval=$enable_autodepend; ac_enable_autodepend="${enableval}"
2543 else 2962 else
2544 ac_enable_autodepend=yes 2963 ac_enable_autodepend=yes
2545 fi 2964 fi
2546 2965
2570 esac 2989 esac
2571 2990
2572 #### Check if the source directory already has a configured system in it. 2991 #### Check if the source directory already has a configured system in it.
2573 if test `pwd` != `(cd ${srcdir} && pwd)` \ 2992 if test `pwd` != `(cd ${srcdir} && pwd)` \
2574 && test -f "${srcdir}/src/config.h" ; then 2993 && test -f "${srcdir}/src/config.h" ; then
2575 { $as_echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used 2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The directory tree \`${srcdir}' is being used
2576 as a build directory right now; it has been configured in its own 2995 as a build directory right now; it has been configured in its own
2577 right. To configure in another directory as well, you MUST 2996 right. To configure in another directory as well, you MUST
2578 use GNU make. If you do not have GNU make, then you must 2997 use GNU make. If you do not have GNU make, then you must
2579 now do \`make distclean' in ${srcdir}, 2998 now do \`make distclean' in ${srcdir},
2580 and then run $0 again." >&5 2999 and then run $0 again." >&5
2591 3010
2592 ### Canonicalize the configuration name. 3011 ### Canonicalize the configuration name.
2593 3012
2594 ac_aux_dir= 3013 ac_aux_dir=
2595 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 3014 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2596 if test -f "$ac_dir/install-sh"; then 3015 for ac_t in install-sh install.sh shtool; do
2597 ac_aux_dir=$ac_dir 3016 if test -f "$ac_dir/$ac_t"; then
2598 ac_install_sh="$ac_aux_dir/install-sh -c" 3017 ac_aux_dir=$ac_dir
2599 break 3018 ac_install_sh="$ac_aux_dir/$ac_t -c"
2600 elif test -f "$ac_dir/install.sh"; then 3019 break 2
2601 ac_aux_dir=$ac_dir 3020 fi
2602 ac_install_sh="$ac_aux_dir/install.sh -c" 3021 done
2603 break
2604 elif test -f "$ac_dir/shtool"; then
2605 ac_aux_dir=$ac_dir
2606 ac_install_sh="$ac_aux_dir/shtool install -c"
2607 break
2608 fi
2609 done 3022 done
2610 if test -z "$ac_aux_dir"; then 3023 if test -z "$ac_aux_dir"; then
2611 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 3024 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2612 $as_echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2613 { (exit 1); exit 1; }; }
2614 fi 3025 fi
2615 3026
2616 # These three variables are undocumented and unsupported, 3027 # These three variables are undocumented and unsupported,
2617 # and are intended to be withdrawn in a future Autoconf release. 3028 # and are intended to be withdrawn in a future Autoconf release.
2618 # They can cause serious problems if a builder's source tree is in a directory 3029 # They can cause serious problems if a builder's source tree is in a directory
2622 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3033 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2623 3034
2624 3035
2625 # Make sure we can run config.sub. 3036 # Make sure we can run config.sub.
2626 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3037 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2627 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 3038 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2628 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} 3039
2629 { (exit 1); exit 1; }; } 3040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2630
2631 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2632 $as_echo_n "checking build system type... " >&6; } 3041 $as_echo_n "checking build system type... " >&6; }
2633 if test "${ac_cv_build+set}" = set; then 3042 if test "${ac_cv_build+set}" = set; then :
2634 $as_echo_n "(cached) " >&6 3043 $as_echo_n "(cached) " >&6
2635 else 3044 else
2636 ac_build_alias=$build_alias 3045 ac_build_alias=$build_alias
2637 test "x$ac_build_alias" = x && 3046 test "x$ac_build_alias" = x &&
2638 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3047 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2639 test "x$ac_build_alias" = x && 3048 test "x$ac_build_alias" = x &&
2640 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 3049 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2641 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2642 { (exit 1); exit 1; }; }
2643 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3050 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2644 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 3051 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2645 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} 3052
2646 { (exit 1); exit 1; }; } 3053 fi
2647 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2648 fi
2649 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2650 $as_echo "$ac_cv_build" >&6; } 3055 $as_echo "$ac_cv_build" >&6; }
2651 case $ac_cv_build in 3056 case $ac_cv_build in
2652 *-*-*) ;; 3057 *-*-*) ;;
2653 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 3058 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2654 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2655 { (exit 1); exit 1; }; };;
2656 esac 3059 esac
2657 build=$ac_cv_build 3060 build=$ac_cv_build
2658 ac_save_IFS=$IFS; IFS='-' 3061 ac_save_IFS=$IFS; IFS='-'
2659 set x $ac_cv_build 3062 set x $ac_cv_build
2660 shift 3063 shift
2666 build_os=$* 3069 build_os=$*
2667 IFS=$ac_save_IFS 3070 IFS=$ac_save_IFS
2668 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3071 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2669 3072
2670 3073
2671 { $as_echo "$as_me:$LINENO: checking host system type" >&5 3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2672 $as_echo_n "checking host system type... " >&6; } 3075 $as_echo_n "checking host system type... " >&6; }
2673 if test "${ac_cv_host+set}" = set; then 3076 if test "${ac_cv_host+set}" = set; then :
2674 $as_echo_n "(cached) " >&6 3077 $as_echo_n "(cached) " >&6
2675 else 3078 else
2676 if test "x$host_alias" = x; then 3079 if test "x$host_alias" = x; then
2677 ac_cv_host=$ac_cv_build 3080 ac_cv_host=$ac_cv_build
2678 else 3081 else
2679 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3082 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2680 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 3083 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2681 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} 3084 fi
2682 { (exit 1); exit 1; }; } 3085
2683 fi 3086 fi
2684 3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2685 fi
2686 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2687 $as_echo "$ac_cv_host" >&6; } 3088 $as_echo "$ac_cv_host" >&6; }
2688 case $ac_cv_host in 3089 case $ac_cv_host in
2689 *-*-*) ;; 3090 *-*-*) ;;
2690 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 3091 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2691 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2692 { (exit 1); exit 1; }; };;
2693 esac 3092 esac
2694 host=$ac_cv_host 3093 host=$ac_cv_host
2695 ac_save_IFS=$IFS; IFS='-' 3094 ac_save_IFS=$IFS; IFS='-'
2696 set x $ac_cv_host 3095 set x $ac_cv_host
2697 shift 3096 shift
2767 ## NetBSD ports 3166 ## NetBSD ports
2768 *-*-netbsd* ) 3167 *-*-netbsd* )
2769 opsys=netbsd 3168 opsys=netbsd
2770 if test -f /usr/lib/crti.o; then 3169 if test -f /usr/lib/crti.o; then
2771 3170
2772 cat >>confdefs.h <<\_ACEOF 3171 $as_echo "#define HAVE_CRTIN /**/" >>confdefs.h
2773 #define HAVE_CRTIN /**/
2774 _ACEOF
2775 3172
2776 fi 3173 fi
2777 3174
2778 case "${canonical}" in 3175 case "${canonical}" in
2779 alpha*-*-netbsd*) machine=alpha ;; 3176 alpha*-*-netbsd*) machine=alpha ;;
2994 fi 3391 fi
2995 3392
2996 3393
2997 3394
2998 if test $unported = yes; then 3395 if test $unported = yes; then
2999 { { $as_echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems. 3396 as_fn_error "Emacs hasn't been ported to \`${canonical}' systems.
3000 Check \`etc/MACHINES' for recognized configuration names." >&5 3397 Check \`etc/MACHINES' for recognized configuration names." "$LINENO" 5
3001 $as_echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3002 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3003 { (exit 1); exit 1; }; }
3004 fi 3398 fi
3005 3399
3006 machfile="m/${machine}.h" 3400 machfile="m/${machine}.h"
3007 opsysfile="s/${opsys}.h" 3401 opsysfile="s/${opsys}.h"
3008 3402
3019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020 ac_compiler_gnu=$ac_cv_c_compiler_gnu 3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3021 if test -n "$ac_tool_prefix"; then 3415 if test -n "$ac_tool_prefix"; then
3022 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3416 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3023 set dummy ${ac_tool_prefix}gcc; ac_word=$2 3417 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3024 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3025 $as_echo_n "checking for $ac_word... " >&6; } 3419 $as_echo_n "checking for $ac_word... " >&6; }
3026 if test "${ac_cv_prog_CC+set}" = set; then 3420 if test "${ac_cv_prog_CC+set}" = set; then :
3027 $as_echo_n "(cached) " >&6 3421 $as_echo_n "(cached) " >&6
3028 else 3422 else
3029 if test -n "$CC"; then 3423 if test -n "$CC"; then
3030 ac_cv_prog_CC="$CC" # Let the user override the test. 3424 ac_cv_prog_CC="$CC" # Let the user override the test.
3031 else 3425 else
3032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3033 for as_dir in $PATH 3427 for as_dir in $PATH
3034 do 3428 do
3035 IFS=$as_save_IFS 3429 IFS=$as_save_IFS
3036 test -z "$as_dir" && as_dir=. 3430 test -z "$as_dir" && as_dir=.
3037 for ac_exec_ext in '' $ac_executable_extensions; do 3431 for ac_exec_ext in '' $ac_executable_extensions; do
3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3039 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3433 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3040 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3434 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3041 break 2 3435 break 2
3042 fi 3436 fi
3043 done 3437 done
3044 done 3438 done
3045 IFS=$as_save_IFS 3439 IFS=$as_save_IFS
3046 3440
3047 fi 3441 fi
3048 fi 3442 fi
3049 CC=$ac_cv_prog_CC 3443 CC=$ac_cv_prog_CC
3050 if test -n "$CC"; then 3444 if test -n "$CC"; then
3051 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3052 $as_echo "$CC" >&6; } 3446 $as_echo "$CC" >&6; }
3053 else 3447 else
3054 { $as_echo "$as_me:$LINENO: result: no" >&5 3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3055 $as_echo "no" >&6; } 3449 $as_echo "no" >&6; }
3056 fi 3450 fi
3057 3451
3058 3452
3059 fi 3453 fi
3060 if test -z "$ac_cv_prog_CC"; then 3454 if test -z "$ac_cv_prog_CC"; then
3061 ac_ct_CC=$CC 3455 ac_ct_CC=$CC
3062 # Extract the first word of "gcc", so it can be a program name with args. 3456 # Extract the first word of "gcc", so it can be a program name with args.
3063 set dummy gcc; ac_word=$2 3457 set dummy gcc; ac_word=$2
3064 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3065 $as_echo_n "checking for $ac_word... " >&6; } 3459 $as_echo_n "checking for $ac_word... " >&6; }
3066 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3460 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3067 $as_echo_n "(cached) " >&6 3461 $as_echo_n "(cached) " >&6
3068 else 3462 else
3069 if test -n "$ac_ct_CC"; then 3463 if test -n "$ac_ct_CC"; then
3070 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3464 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3071 else 3465 else
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH 3467 for as_dir in $PATH
3074 do 3468 do
3075 IFS=$as_save_IFS 3469 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=. 3470 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do 3471 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079 ac_cv_prog_ac_ct_CC="gcc" 3473 ac_cv_prog_ac_ct_CC="gcc"
3080 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2 3475 break 2
3082 fi 3476 fi
3083 done 3477 done
3084 done 3478 done
3085 IFS=$as_save_IFS 3479 IFS=$as_save_IFS
3086 3480
3087 fi 3481 fi
3088 fi 3482 fi
3089 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3483 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3090 if test -n "$ac_ct_CC"; then 3484 if test -n "$ac_ct_CC"; then
3091 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3092 $as_echo "$ac_ct_CC" >&6; } 3486 $as_echo "$ac_ct_CC" >&6; }
3093 else 3487 else
3094 { $as_echo "$as_me:$LINENO: result: no" >&5 3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3095 $as_echo "no" >&6; } 3489 $as_echo "no" >&6; }
3096 fi 3490 fi
3097 3491
3098 if test "x$ac_ct_CC" = x; then 3492 if test "x$ac_ct_CC" = x; then
3099 CC="" 3493 CC=""
3100 else 3494 else
3101 case $cross_compiling:$ac_tool_warned in 3495 case $cross_compiling:$ac_tool_warned in
3102 yes:) 3496 yes:)
3103 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3104 whose name does not start with the host triplet. If you think this 3498 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3105 configuration is useful to you, please write to autoconf@gnu.org." >&5
3106 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3107 whose name does not start with the host triplet. If you think this
3108 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3109 ac_tool_warned=yes ;; 3499 ac_tool_warned=yes ;;
3110 esac 3500 esac
3111 CC=$ac_ct_CC 3501 CC=$ac_ct_CC
3112 fi 3502 fi
3113 else 3503 else
3116 3506
3117 if test -z "$CC"; then 3507 if test -z "$CC"; then
3118 if test -n "$ac_tool_prefix"; then 3508 if test -n "$ac_tool_prefix"; then
3119 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3509 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3120 set dummy ${ac_tool_prefix}cc; ac_word=$2 3510 set dummy ${ac_tool_prefix}cc; ac_word=$2
3121 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3122 $as_echo_n "checking for $ac_word... " >&6; } 3512 $as_echo_n "checking for $ac_word... " >&6; }
3123 if test "${ac_cv_prog_CC+set}" = set; then 3513 if test "${ac_cv_prog_CC+set}" = set; then :
3124 $as_echo_n "(cached) " >&6 3514 $as_echo_n "(cached) " >&6
3125 else 3515 else
3126 if test -n "$CC"; then 3516 if test -n "$CC"; then
3127 ac_cv_prog_CC="$CC" # Let the user override the test. 3517 ac_cv_prog_CC="$CC" # Let the user override the test.
3128 else 3518 else
3129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3130 for as_dir in $PATH 3520 for as_dir in $PATH
3131 do 3521 do
3132 IFS=$as_save_IFS 3522 IFS=$as_save_IFS
3133 test -z "$as_dir" && as_dir=. 3523 test -z "$as_dir" && as_dir=.
3134 for ac_exec_ext in '' $ac_executable_extensions; do 3524 for ac_exec_ext in '' $ac_executable_extensions; do
3135 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3136 ac_cv_prog_CC="${ac_tool_prefix}cc" 3526 ac_cv_prog_CC="${ac_tool_prefix}cc"
3137 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3138 break 2 3528 break 2
3139 fi 3529 fi
3140 done 3530 done
3141 done 3531 done
3142 IFS=$as_save_IFS 3532 IFS=$as_save_IFS
3143 3533
3144 fi 3534 fi
3145 fi 3535 fi
3146 CC=$ac_cv_prog_CC 3536 CC=$ac_cv_prog_CC
3147 if test -n "$CC"; then 3537 if test -n "$CC"; then
3148 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3149 $as_echo "$CC" >&6; } 3539 $as_echo "$CC" >&6; }
3150 else 3540 else
3151 { $as_echo "$as_me:$LINENO: result: no" >&5 3541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3152 $as_echo "no" >&6; } 3542 $as_echo "no" >&6; }
3153 fi 3543 fi
3154 3544
3155 3545
3156 fi 3546 fi
3157 fi 3547 fi
3158 if test -z "$CC"; then 3548 if test -z "$CC"; then
3159 # Extract the first word of "cc", so it can be a program name with args. 3549 # Extract the first word of "cc", so it can be a program name with args.
3160 set dummy cc; ac_word=$2 3550 set dummy cc; ac_word=$2
3161 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162 $as_echo_n "checking for $ac_word... " >&6; } 3552 $as_echo_n "checking for $ac_word... " >&6; }
3163 if test "${ac_cv_prog_CC+set}" = set; then 3553 if test "${ac_cv_prog_CC+set}" = set; then :
3164 $as_echo_n "(cached) " >&6 3554 $as_echo_n "(cached) " >&6
3165 else 3555 else
3166 if test -n "$CC"; then 3556 if test -n "$CC"; then
3167 ac_cv_prog_CC="$CC" # Let the user override the test. 3557 ac_cv_prog_CC="$CC" # Let the user override the test.
3168 else 3558 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH 3561 for as_dir in $PATH
3172 do 3562 do
3173 IFS=$as_save_IFS 3563 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=. 3564 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do 3565 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3566 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3177 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3567 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3178 ac_prog_rejected=yes 3568 ac_prog_rejected=yes
3179 continue 3569 continue
3180 fi 3570 fi
3181 ac_cv_prog_CC="cc" 3571 ac_cv_prog_CC="cc"
3182 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2 3573 break 2
3184 fi 3574 fi
3185 done 3575 done
3186 done 3576 done
3187 IFS=$as_save_IFS 3577 IFS=$as_save_IFS
3188 3578
3189 if test $ac_prog_rejected = yes; then 3579 if test $ac_prog_rejected = yes; then
3190 # We found a bogon in the path, so make sure we never use it. 3580 # We found a bogon in the path, so make sure we never use it.
3191 set dummy $ac_cv_prog_CC 3581 set dummy $ac_cv_prog_CC
3200 fi 3590 fi
3201 fi 3591 fi
3202 fi 3592 fi
3203 CC=$ac_cv_prog_CC 3593 CC=$ac_cv_prog_CC
3204 if test -n "$CC"; then 3594 if test -n "$CC"; then
3205 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3206 $as_echo "$CC" >&6; } 3596 $as_echo "$CC" >&6; }
3207 else 3597 else
3208 { $as_echo "$as_me:$LINENO: result: no" >&5 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; } 3599 $as_echo "no" >&6; }
3210 fi 3600 fi
3211 3601
3212 3602
3213 fi 3603 fi
3215 if test -n "$ac_tool_prefix"; then 3605 if test -n "$ac_tool_prefix"; then
3216 for ac_prog in cl.exe 3606 for ac_prog in cl.exe
3217 do 3607 do
3218 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3608 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3219 set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3609 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3220 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3221 $as_echo_n "checking for $ac_word... " >&6; } 3611 $as_echo_n "checking for $ac_word... " >&6; }
3222 if test "${ac_cv_prog_CC+set}" = set; then 3612 if test "${ac_cv_prog_CC+set}" = set; then :
3223 $as_echo_n "(cached) " >&6 3613 $as_echo_n "(cached) " >&6
3224 else 3614 else
3225 if test -n "$CC"; then 3615 if test -n "$CC"; then
3226 ac_cv_prog_CC="$CC" # Let the user override the test. 3616 ac_cv_prog_CC="$CC" # Let the user override the test.
3227 else 3617 else
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH 3619 for as_dir in $PATH
3230 do 3620 do
3231 IFS=$as_save_IFS 3621 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=. 3622 test -z "$as_dir" && as_dir=.
3233 for ac_exec_ext in '' $ac_executable_extensions; do 3623 for ac_exec_ext in '' $ac_executable_extensions; do
3234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3235 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3625 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3236 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 break 2 3627 break 2
3238 fi 3628 fi
3239 done 3629 done
3240 done 3630 done
3241 IFS=$as_save_IFS 3631 IFS=$as_save_IFS
3242 3632
3243 fi 3633 fi
3244 fi 3634 fi
3245 CC=$ac_cv_prog_CC 3635 CC=$ac_cv_prog_CC
3246 if test -n "$CC"; then 3636 if test -n "$CC"; then
3247 { $as_echo "$as_me:$LINENO: result: $CC" >&5 3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3248 $as_echo "$CC" >&6; } 3638 $as_echo "$CC" >&6; }
3249 else 3639 else
3250 { $as_echo "$as_me:$LINENO: result: no" >&5 3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3251 $as_echo "no" >&6; } 3641 $as_echo "no" >&6; }
3252 fi 3642 fi
3253 3643
3254 3644
3255 test -n "$CC" && break 3645 test -n "$CC" && break
3259 ac_ct_CC=$CC 3649 ac_ct_CC=$CC
3260 for ac_prog in cl.exe 3650 for ac_prog in cl.exe
3261 do 3651 do
3262 # Extract the first word of "$ac_prog", so it can be a program name with args. 3652 # Extract the first word of "$ac_prog", so it can be a program name with args.
3263 set dummy $ac_prog; ac_word=$2 3653 set dummy $ac_prog; ac_word=$2
3264 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3265 $as_echo_n "checking for $ac_word... " >&6; } 3655 $as_echo_n "checking for $ac_word... " >&6; }
3266 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 3656 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3267 $as_echo_n "(cached) " >&6 3657 $as_echo_n "(cached) " >&6
3268 else 3658 else
3269 if test -n "$ac_ct_CC"; then 3659 if test -n "$ac_ct_CC"; then
3270 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3660 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3271 else 3661 else
3272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3273 for as_dir in $PATH 3663 for as_dir in $PATH
3274 do 3664 do
3275 IFS=$as_save_IFS 3665 IFS=$as_save_IFS
3276 test -z "$as_dir" && as_dir=. 3666 test -z "$as_dir" && as_dir=.
3277 for ac_exec_ext in '' $ac_executable_extensions; do 3667 for ac_exec_ext in '' $ac_executable_extensions; do
3278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3279 ac_cv_prog_ac_ct_CC="$ac_prog" 3669 ac_cv_prog_ac_ct_CC="$ac_prog"
3280 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3281 break 2 3671 break 2
3282 fi 3672 fi
3283 done 3673 done
3284 done 3674 done
3285 IFS=$as_save_IFS 3675 IFS=$as_save_IFS
3286 3676
3287 fi 3677 fi
3288 fi 3678 fi
3289 ac_ct_CC=$ac_cv_prog_ac_ct_CC 3679 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3290 if test -n "$ac_ct_CC"; then 3680 if test -n "$ac_ct_CC"; then
3291 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 3681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3292 $as_echo "$ac_ct_CC" >&6; } 3682 $as_echo "$ac_ct_CC" >&6; }
3293 else 3683 else
3294 { $as_echo "$as_me:$LINENO: result: no" >&5 3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; } 3685 $as_echo "no" >&6; }
3296 fi 3686 fi
3297 3687
3298 3688
3299 test -n "$ac_ct_CC" && break 3689 test -n "$ac_ct_CC" && break
3302 if test "x$ac_ct_CC" = x; then 3692 if test "x$ac_ct_CC" = x; then
3303 CC="" 3693 CC=""
3304 else 3694 else
3305 case $cross_compiling:$ac_tool_warned in 3695 case $cross_compiling:$ac_tool_warned in
3306 yes:) 3696 yes:)
3307 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3308 whose name does not start with the host triplet. If you think this 3698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3309 configuration is useful to you, please write to autoconf@gnu.org." >&5
3310 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3311 whose name does not start with the host triplet. If you think this
3312 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3313 ac_tool_warned=yes ;; 3699 ac_tool_warned=yes ;;
3314 esac 3700 esac
3315 CC=$ac_ct_CC 3701 CC=$ac_ct_CC
3316 fi 3702 fi
3317 fi 3703 fi
3318 3704
3319 fi 3705 fi
3320 3706
3321 3707
3322 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 3708 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3323 See \`config.log' for more details." >&5 3709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3324 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH 3710 as_fn_error "no acceptable C compiler found in \$PATH
3325 See \`config.log' for more details." >&2;} 3711 See \`config.log' for more details." "$LINENO" 5; }
3326 { (exit 1); exit 1; }; }
3327 3712
3328 # Provide some information about the compiler. 3713 # Provide some information about the compiler.
3329 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5 3714 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3330 set X $ac_compile 3715 set X $ac_compile
3331 ac_compiler=$2 3716 ac_compiler=$2
3332 { (ac_try="$ac_compiler --version >&5" 3717 for ac_option in --version -v -V -qversion; do
3718 { { ac_try="$ac_compiler $ac_option >&5"
3333 case "(($ac_try" in 3719 case "(($ac_try" in
3334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;; 3721 *) ac_try_echo=$ac_try;;
3336 esac 3722 esac
3337 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3338 $as_echo "$ac_try_echo") >&5 3724 $as_echo "$ac_try_echo"; } >&5
3339 (eval "$ac_compiler --version >&5") 2>&5 3725 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3340 ac_status=$? 3726 ac_status=$?
3341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3727 if test -s conftest.err; then
3342 (exit $ac_status); } 3728 sed '10a\
3343 { (ac_try="$ac_compiler -v >&5" 3729 ... rest of stderr output deleted ...
3344 case "(($ac_try" in 3730 10q' conftest.err >conftest.er1
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3731 cat conftest.er1 >&5
3346 *) ac_try_echo=$ac_try;; 3732 fi
3347 esac 3733 rm -f conftest.er1 conftest.err
3348 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3349 $as_echo "$ac_try_echo") >&5 3735 test $ac_status = 0; }
3350 (eval "$ac_compiler -v >&5") 2>&5 3736 done
3351 ac_status=$? 3737
3352 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3353 (exit $ac_status); }
3354 { (ac_try="$ac_compiler -V >&5"
3355 case "(($ac_try" in
3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3357 *) ac_try_echo=$ac_try;;
3358 esac
3359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3360 $as_echo "$ac_try_echo") >&5
3361 (eval "$ac_compiler -V >&5") 2>&5
3362 ac_status=$?
3363 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }
3365
3366 cat >conftest.$ac_ext <<_ACEOF
3367 /* confdefs.h. */
3368 _ACEOF
3369 cat confdefs.h >>conftest.$ac_ext
3370 cat >>conftest.$ac_ext <<_ACEOF
3371 /* end confdefs.h. */ 3739 /* end confdefs.h. */
3372 3740
3373 int 3741 int
3374 main () 3742 main ()
3375 { 3743 {
3381 ac_clean_files_save=$ac_clean_files 3749 ac_clean_files_save=$ac_clean_files
3382 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3750 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3383 # Try to create an executable without -o first, disregard a.out. 3751 # Try to create an executable without -o first, disregard a.out.
3384 # It will help us diagnose broken compilers, and finding out an intuition 3752 # It will help us diagnose broken compilers, and finding out an intuition
3385 # of exeext. 3753 # of exeext.
3386 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 3754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3387 $as_echo_n "checking for C compiler default output file name... " >&6; } 3755 $as_echo_n "checking whether the C compiler works... " >&6; }
3388 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3756 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3389 3757
3390 # The possible output files: 3758 # The possible output files:
3391 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3759 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3392 3760
3398 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3766 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3399 esac 3767 esac
3400 done 3768 done
3401 rm -f $ac_rmfiles 3769 rm -f $ac_rmfiles
3402 3770
3403 if { (ac_try="$ac_link_default" 3771 if { { ac_try="$ac_link_default"
3404 case "(($ac_try" in 3772 case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;; 3774 *) ac_try_echo=$ac_try;;
3407 esac 3775 esac
3408 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409 $as_echo "$ac_try_echo") >&5 3777 $as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_link_default") 2>&5 3778 (eval "$ac_link_default") 2>&5
3411 ac_status=$? 3779 ac_status=$?
3412 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 (exit $ac_status); }; then 3781 test $ac_status = 0; }; then :
3414 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3782 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3415 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3783 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3416 # in a Makefile. We should not override ac_cv_exeext if it was cached, 3784 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3417 # so that the user can short-circuit this test for compilers unknown to 3785 # so that the user can short-circuit this test for compilers unknown to
3418 # Autoconf. 3786 # Autoconf.
3425 [ab].out ) 3793 [ab].out )
3426 # We found the default executable, but exeext='' is most 3794 # We found the default executable, but exeext='' is most
3427 # certainly right. 3795 # certainly right.
3428 break;; 3796 break;;
3429 *.* ) 3797 *.* )
3430 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3798 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3431 then :; else 3799 then :; else
3432 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3800 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3433 fi 3801 fi
3434 # We set ac_cv_exeext here because the later test for it is not 3802 # We set ac_cv_exeext here because the later test for it is not
3435 # safe: cross compilers may not add the suffix if given an `-o' 3803 # safe: cross compilers may not add the suffix if given an `-o'
3444 test "$ac_cv_exeext" = no && ac_cv_exeext= 3812 test "$ac_cv_exeext" = no && ac_cv_exeext=
3445 3813
3446 else 3814 else
3447 ac_file='' 3815 ac_file=''
3448 fi 3816 fi
3449 3817 if test -z "$ac_file"; then :
3450 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5 3818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3819 $as_echo "no" >&6; }
3820 $as_echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3822
3823 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3824 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3825 { as_fn_set_status 77
3826 as_fn_error "C compiler cannot create executables
3827 See \`config.log' for more details." "$LINENO" 5; }; }
3828 else
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3830 $as_echo "yes" >&6; }
3831 fi
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3833 $as_echo_n "checking for C compiler default output file name... " >&6; }
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3451 $as_echo "$ac_file" >&6; } 3835 $as_echo "$ac_file" >&6; }
3452 if test -z "$ac_file"; then
3453 $as_echo "$as_me: failed program was:" >&5
3454 sed 's/^/| /' conftest.$ac_ext >&5
3455
3456 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
3457 See \`config.log' for more details." >&5
3458 $as_echo "$as_me: error: C compiler cannot create executables
3459 See \`config.log' for more details." >&2;}
3460 { (exit 77); exit 77; }; }
3461 fi
3462
3463 ac_exeext=$ac_cv_exeext 3836 ac_exeext=$ac_cv_exeext
3464
3465 # Check that the compiler produces executables we can run. If not, either
3466 # the compiler is broken, or we cross compile.
3467 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3468 $as_echo_n "checking whether the C compiler works... " >&6; }
3469 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3470 # If not cross compiling, check that we can run a simple program.
3471 if test "$cross_compiling" != yes; then
3472 if { ac_try='./$ac_file'
3473 { (case "(($ac_try" in
3474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3475 *) ac_try_echo=$ac_try;;
3476 esac
3477 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3478 $as_echo "$ac_try_echo") >&5
3479 (eval "$ac_try") 2>&5
3480 ac_status=$?
3481 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3482 (exit $ac_status); }; }; then
3483 cross_compiling=no
3484 else
3485 if test "$cross_compiling" = maybe; then
3486 cross_compiling=yes
3487 else
3488 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3489 If you meant to cross compile, use \`--host'.
3490 See \`config.log' for more details." >&5
3491 $as_echo "$as_me: error: cannot run C compiled programs.
3492 If you meant to cross compile, use \`--host'.
3493 See \`config.log' for more details." >&2;}
3494 { (exit 1); exit 1; }; }
3495 fi
3496 fi
3497 fi
3498 { $as_echo "$as_me:$LINENO: result: yes" >&5
3499 $as_echo "yes" >&6; }
3500 3837
3501 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3838 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3502 ac_clean_files=$ac_clean_files_save 3839 ac_clean_files=$ac_clean_files_save
3503 # Check that the compiler produces executables we can run. If not, either 3840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3504 # the compiler is broken, or we cross compile.
3505 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3506 $as_echo_n "checking whether we are cross compiling... " >&6; }
3507 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3508 $as_echo "$cross_compiling" >&6; }
3509
3510 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3511 $as_echo_n "checking for suffix of executables... " >&6; } 3841 $as_echo_n "checking for suffix of executables... " >&6; }
3512 if { (ac_try="$ac_link" 3842 if { { ac_try="$ac_link"
3513 case "(($ac_try" in 3843 case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;; 3845 *) ac_try_echo=$ac_try;;
3516 esac 3846 esac
3517 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo") >&5 3848 $as_echo "$ac_try_echo"; } >&5
3519 (eval "$ac_link") 2>&5 3849 (eval "$ac_link") 2>&5
3520 ac_status=$? 3850 ac_status=$?
3521 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522 (exit $ac_status); }; then 3852 test $ac_status = 0; }; then :
3523 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3853 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3524 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3854 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3525 # work properly (i.e., refer to `conftest.exe'), while it won't with 3855 # work properly (i.e., refer to `conftest.exe'), while it won't with
3526 # `rm'. 3856 # `rm'.
3527 for ac_file in conftest.exe conftest conftest.*; do 3857 for ac_file in conftest.exe conftest conftest.*; do
3532 break;; 3862 break;;
3533 * ) break;; 3863 * ) break;;
3534 esac 3864 esac
3535 done 3865 done
3536 else 3866 else
3537 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 3867 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 See \`config.log' for more details." >&5 3868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 3869 as_fn_error "cannot compute suffix of executables: cannot compile and link
3540 See \`config.log' for more details." >&2;} 3870 See \`config.log' for more details." "$LINENO" 5; }
3541 { (exit 1); exit 1; }; } 3871 fi
3542 fi 3872 rm -f conftest conftest$ac_cv_exeext
3543 3873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3544 rm -f conftest$ac_cv_exeext
3545 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3546 $as_echo "$ac_cv_exeext" >&6; } 3874 $as_echo "$ac_cv_exeext" >&6; }
3547 3875
3548 rm -f conftest.$ac_ext 3876 rm -f conftest.$ac_ext
3549 EXEEXT=$ac_cv_exeext 3877 EXEEXT=$ac_cv_exeext
3550 ac_exeext=$EXEEXT 3878 ac_exeext=$EXEEXT
3551 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5 3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3552 $as_echo_n "checking for suffix of object files... " >&6; }
3553 if test "${ac_cv_objext+set}" = set; then
3554 $as_echo_n "(cached) " >&6
3555 else
3556 cat >conftest.$ac_ext <<_ACEOF
3557 /* confdefs.h. */
3558 _ACEOF
3559 cat confdefs.h >>conftest.$ac_ext
3560 cat >>conftest.$ac_ext <<_ACEOF
3561 /* end confdefs.h. */ 3880 /* end confdefs.h. */
3562 3881 #include <stdio.h>
3563 int 3882 int
3564 main () 3883 main ()
3565 { 3884 {
3885 FILE *f = fopen ("conftest.out", "w");
3886 return ferror (f) || fclose (f) != 0;
3566 3887
3567 ; 3888 ;
3568 return 0; 3889 return 0;
3569 } 3890 }
3570 _ACEOF 3891 _ACEOF
3571 rm -f conftest.o conftest.obj 3892 ac_clean_files="$ac_clean_files conftest.out"
3572 if { (ac_try="$ac_compile" 3893 # Check that the compiler produces executables we can run. If not, either
3894 # the compiler is broken, or we cross compile.
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3896 $as_echo_n "checking whether we are cross compiling... " >&6; }
3897 if test "$cross_compiling" != yes; then
3898 { { ac_try="$ac_link"
3573 case "(($ac_try" in 3899 case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;; 3901 *) ac_try_echo=$ac_try;;
3576 esac 3902 esac
3577 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 3903 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3578 $as_echo "$ac_try_echo") >&5 3904 $as_echo "$ac_try_echo"; } >&5
3905 (eval "$ac_link") 2>&5
3906 ac_status=$?
3907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3908 test $ac_status = 0; }
3909 if { ac_try='./conftest$ac_cv_exeext'
3910 { { case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3915 $as_echo "$ac_try_echo"; } >&5
3916 (eval "$ac_try") 2>&5
3917 ac_status=$?
3918 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3919 test $ac_status = 0; }; }; then
3920 cross_compiling=no
3921 else
3922 if test "$cross_compiling" = maybe; then
3923 cross_compiling=yes
3924 else
3925 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3926 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3927 as_fn_error "cannot run C compiled programs.
3928 If you meant to cross compile, use \`--host'.
3929 See \`config.log' for more details." "$LINENO" 5; }
3930 fi
3931 fi
3932 fi
3933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3934 $as_echo "$cross_compiling" >&6; }
3935
3936 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3937 ac_clean_files=$ac_clean_files_save
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3939 $as_echo_n "checking for suffix of object files... " >&6; }
3940 if test "${ac_cv_objext+set}" = set; then :
3941 $as_echo_n "(cached) " >&6
3942 else
3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3944 /* end confdefs.h. */
3945
3946 int
3947 main ()
3948 {
3949
3950 ;
3951 return 0;
3952 }
3953 _ACEOF
3954 rm -f conftest.o conftest.obj
3955 if { { ac_try="$ac_compile"
3956 case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959 esac
3960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3961 $as_echo "$ac_try_echo"; } >&5
3579 (eval "$ac_compile") 2>&5 3962 (eval "$ac_compile") 2>&5
3580 ac_status=$? 3963 ac_status=$?
3581 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 3964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3582 (exit $ac_status); }; then 3965 test $ac_status = 0; }; then :
3583 for ac_file in conftest.o conftest.obj conftest.*; do 3966 for ac_file in conftest.o conftest.obj conftest.*; do
3584 test -f "$ac_file" || continue; 3967 test -f "$ac_file" || continue;
3585 case $ac_file in 3968 case $ac_file in
3586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3587 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3970 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3590 done 3973 done
3591 else 3974 else
3592 $as_echo "$as_me: failed program was:" >&5 3975 $as_echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5 3976 sed 's/^/| /' conftest.$ac_ext >&5
3594 3977
3595 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 See \`config.log' for more details." >&5 3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile 3980 as_fn_error "cannot compute suffix of object files: cannot compile
3598 See \`config.log' for more details." >&2;} 3981 See \`config.log' for more details." "$LINENO" 5; }
3599 { (exit 1); exit 1; }; } 3982 fi
3600 fi
3601
3602 rm -f conftest.$ac_cv_objext conftest.$ac_ext 3983 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3603 fi 3984 fi
3604 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 3985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3605 $as_echo "$ac_cv_objext" >&6; } 3986 $as_echo "$ac_cv_objext" >&6; }
3606 OBJEXT=$ac_cv_objext 3987 OBJEXT=$ac_cv_objext
3607 ac_objext=$OBJEXT 3988 ac_objext=$OBJEXT
3608 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3609 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3990 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3610 if test "${ac_cv_c_compiler_gnu+set}" = set; then 3991 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3611 $as_echo_n "(cached) " >&6 3992 $as_echo_n "(cached) " >&6
3612 else 3993 else
3613 cat >conftest.$ac_ext <<_ACEOF 3994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* confdefs.h. */
3615 _ACEOF
3616 cat confdefs.h >>conftest.$ac_ext
3617 cat >>conftest.$ac_ext <<_ACEOF
3618 /* end confdefs.h. */ 3995 /* end confdefs.h. */
3619 3996
3620 int 3997 int
3621 main () 3998 main ()
3622 { 3999 {
3626 4003
3627 ; 4004 ;
3628 return 0; 4005 return 0;
3629 } 4006 }
3630 _ACEOF 4007 _ACEOF
3631 rm -f conftest.$ac_objext 4008 if ac_fn_c_try_compile "$LINENO"; then :
3632 if { (ac_try="$ac_compile"
3633 case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3638 $as_echo "$ac_try_echo") >&5
3639 (eval "$ac_compile") 2>conftest.er1
3640 ac_status=$?
3641 grep -v '^ *+' conftest.er1 >conftest.err
3642 rm -f conftest.er1
3643 cat conftest.err >&5
3644 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3645 (exit $ac_status); } && {
3646 test -z "$ac_c_werror_flag" ||
3647 test ! -s conftest.err
3648 } && test -s conftest.$ac_objext; then
3649 ac_compiler_gnu=yes 4009 ac_compiler_gnu=yes
3650 else 4010 else
3651 $as_echo "$as_me: failed program was:" >&5 4011 ac_compiler_gnu=no
3652 sed 's/^/| /' conftest.$ac_ext >&5 4012 fi
3653
3654 ac_compiler_gnu=no
3655 fi
3656
3657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3658 ac_cv_c_compiler_gnu=$ac_compiler_gnu 4014 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3659 4015
3660 fi 4016 fi
3661 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3662 $as_echo "$ac_cv_c_compiler_gnu" >&6; } 4018 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3663 if test $ac_compiler_gnu = yes; then 4019 if test $ac_compiler_gnu = yes; then
3664 GCC=yes 4020 GCC=yes
3665 else 4021 else
3666 GCC= 4022 GCC=
3667 fi 4023 fi
3668 ac_test_CFLAGS=${CFLAGS+set} 4024 ac_test_CFLAGS=${CFLAGS+set}
3669 ac_save_CFLAGS=$CFLAGS 4025 ac_save_CFLAGS=$CFLAGS
3670 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 4026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3671 $as_echo_n "checking whether $CC accepts -g... " >&6; } 4027 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3672 if test "${ac_cv_prog_cc_g+set}" = set; then 4028 if test "${ac_cv_prog_cc_g+set}" = set; then :
3673 $as_echo_n "(cached) " >&6 4029 $as_echo_n "(cached) " >&6
3674 else 4030 else
3675 ac_save_c_werror_flag=$ac_c_werror_flag 4031 ac_save_c_werror_flag=$ac_c_werror_flag
3676 ac_c_werror_flag=yes 4032 ac_c_werror_flag=yes
3677 ac_cv_prog_cc_g=no 4033 ac_cv_prog_cc_g=no
3678 CFLAGS="-g" 4034 CFLAGS="-g"
3679 cat >conftest.$ac_ext <<_ACEOF 4035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3680 /* confdefs.h. */
3681 _ACEOF
3682 cat confdefs.h >>conftest.$ac_ext
3683 cat >>conftest.$ac_ext <<_ACEOF
3684 /* end confdefs.h. */ 4036 /* end confdefs.h. */
3685 4037
3686 int 4038 int
3687 main () 4039 main ()
3688 { 4040 {
3689 4041
3690 ; 4042 ;
3691 return 0; 4043 return 0;
3692 } 4044 }
3693 _ACEOF 4045 _ACEOF
3694 rm -f conftest.$ac_objext 4046 if ac_fn_c_try_compile "$LINENO"; then :
3695 if { (ac_try="$ac_compile"
3696 case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699 esac
3700 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3701 $as_echo "$ac_try_echo") >&5
3702 (eval "$ac_compile") 2>conftest.er1
3703 ac_status=$?
3704 grep -v '^ *+' conftest.er1 >conftest.err
3705 rm -f conftest.er1
3706 cat conftest.err >&5
3707 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3708 (exit $ac_status); } && {
3709 test -z "$ac_c_werror_flag" ||
3710 test ! -s conftest.err
3711 } && test -s conftest.$ac_objext; then
3712 ac_cv_prog_cc_g=yes 4047 ac_cv_prog_cc_g=yes
3713 else 4048 else
3714 $as_echo "$as_me: failed program was:" >&5 4049 CFLAGS=""
3715 sed 's/^/| /' conftest.$ac_ext >&5 4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716
3717 CFLAGS=""
3718 cat >conftest.$ac_ext <<_ACEOF
3719 /* confdefs.h. */
3720 _ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */ 4051 /* end confdefs.h. */
3724 4052
3725 int 4053 int
3726 main () 4054 main ()
3727 { 4055 {
3728 4056
3729 ; 4057 ;
3730 return 0; 4058 return 0;
3731 } 4059 }
3732 _ACEOF 4060 _ACEOF
3733 rm -f conftest.$ac_objext 4061 if ac_fn_c_try_compile "$LINENO"; then :
3734 if { (ac_try="$ac_compile" 4062
3735 case "(($ac_try" in 4063 else
3736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4064 ac_c_werror_flag=$ac_save_c_werror_flag
3737 *) ac_try_echo=$ac_try;;
3738 esac
3739 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3740 $as_echo "$ac_try_echo") >&5
3741 (eval "$ac_compile") 2>conftest.er1
3742 ac_status=$?
3743 grep -v '^ *+' conftest.er1 >conftest.err
3744 rm -f conftest.er1
3745 cat conftest.err >&5
3746 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3747 (exit $ac_status); } && {
3748 test -z "$ac_c_werror_flag" ||
3749 test ! -s conftest.err
3750 } && test -s conftest.$ac_objext; then
3751 :
3752 else
3753 $as_echo "$as_me: failed program was:" >&5
3754 sed 's/^/| /' conftest.$ac_ext >&5
3755
3756 ac_c_werror_flag=$ac_save_c_werror_flag
3757 CFLAGS="-g" 4065 CFLAGS="-g"
3758 cat >conftest.$ac_ext <<_ACEOF 4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3759 /* confdefs.h. */
3760 _ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */ 4067 /* end confdefs.h. */
3764 4068
3765 int 4069 int
3766 main () 4070 main ()
3767 { 4071 {
3768 4072
3769 ; 4073 ;
3770 return 0; 4074 return 0;
3771 } 4075 }
3772 _ACEOF 4076 _ACEOF
3773 rm -f conftest.$ac_objext 4077 if ac_fn_c_try_compile "$LINENO"; then :
3774 if { (ac_try="$ac_compile"
3775 case "(($ac_try" in
3776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3777 *) ac_try_echo=$ac_try;;
3778 esac
3779 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3780 $as_echo "$ac_try_echo") >&5
3781 (eval "$ac_compile") 2>conftest.er1
3782 ac_status=$?
3783 grep -v '^ *+' conftest.er1 >conftest.err
3784 rm -f conftest.er1
3785 cat conftest.err >&5
3786 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3787 (exit $ac_status); } && {
3788 test -z "$ac_c_werror_flag" ||
3789 test ! -s conftest.err
3790 } && test -s conftest.$ac_objext; then
3791 ac_cv_prog_cc_g=yes 4078 ac_cv_prog_cc_g=yes
3792 else 4079 fi
3793 $as_echo "$as_me: failed program was:" >&5
3794 sed 's/^/| /' conftest.$ac_ext >&5
3795
3796
3797 fi
3798
3799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3800 fi 4081 fi
3801
3802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3803 fi 4083 fi
3804
3805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3806 ac_c_werror_flag=$ac_save_c_werror_flag 4085 ac_c_werror_flag=$ac_save_c_werror_flag
3807 fi 4086 fi
3808 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3809 $as_echo "$ac_cv_prog_cc_g" >&6; } 4088 $as_echo "$ac_cv_prog_cc_g" >&6; }
3810 if test "$ac_test_CFLAGS" = set; then 4089 if test "$ac_test_CFLAGS" = set; then
3811 CFLAGS=$ac_save_CFLAGS 4090 CFLAGS=$ac_save_CFLAGS
3812 elif test $ac_cv_prog_cc_g = yes; then 4091 elif test $ac_cv_prog_cc_g = yes; then
3813 if test "$GCC" = yes; then 4092 if test "$GCC" = yes; then
3820 CFLAGS="-O2" 4099 CFLAGS="-O2"
3821 else 4100 else
3822 CFLAGS= 4101 CFLAGS=
3823 fi 4102 fi
3824 fi 4103 fi
3825 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 4104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3826 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4105 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3827 if test "${ac_cv_prog_cc_c89+set}" = set; then 4106 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3828 $as_echo_n "(cached) " >&6 4107 $as_echo_n "(cached) " >&6
3829 else 4108 else
3830 ac_cv_prog_cc_c89=no 4109 ac_cv_prog_cc_c89=no
3831 ac_save_CC=$CC 4110 ac_save_CC=$CC
3832 cat >conftest.$ac_ext <<_ACEOF 4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3833 /* confdefs.h. */
3834 _ACEOF
3835 cat confdefs.h >>conftest.$ac_ext
3836 cat >>conftest.$ac_ext <<_ACEOF
3837 /* end confdefs.h. */ 4112 /* end confdefs.h. */
3838 #include <stdarg.h> 4113 #include <stdarg.h>
3839 #include <stdio.h> 4114 #include <stdio.h>
3840 #include <sys/types.h> 4115 #include <sys/types.h>
3841 #include <sys/stat.h> 4116 #include <sys/stat.h>
3888 _ACEOF 4163 _ACEOF
3889 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4164 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3890 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4165 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3891 do 4166 do
3892 CC="$ac_save_CC $ac_arg" 4167 CC="$ac_save_CC $ac_arg"
3893 rm -f conftest.$ac_objext 4168 if ac_fn_c_try_compile "$LINENO"; then :
3894 if { (ac_try="$ac_compile"
3895 case "(($ac_try" in
3896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3897 *) ac_try_echo=$ac_try;;
3898 esac
3899 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3900 $as_echo "$ac_try_echo") >&5
3901 (eval "$ac_compile") 2>conftest.er1
3902 ac_status=$?
3903 grep -v '^ *+' conftest.er1 >conftest.err
3904 rm -f conftest.er1
3905 cat conftest.err >&5
3906 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3907 (exit $ac_status); } && {
3908 test -z "$ac_c_werror_flag" ||
3909 test ! -s conftest.err
3910 } && test -s conftest.$ac_objext; then
3911 ac_cv_prog_cc_c89=$ac_arg 4169 ac_cv_prog_cc_c89=$ac_arg
3912 else 4170 fi
3913 $as_echo "$as_me: failed program was:" >&5
3914 sed 's/^/| /' conftest.$ac_ext >&5
3915
3916
3917 fi
3918
3919 rm -f core conftest.err conftest.$ac_objext 4171 rm -f core conftest.err conftest.$ac_objext
3920 test "x$ac_cv_prog_cc_c89" != "xno" && break 4172 test "x$ac_cv_prog_cc_c89" != "xno" && break
3921 done 4173 done
3922 rm -f conftest.$ac_ext 4174 rm -f conftest.$ac_ext
3923 CC=$ac_save_CC 4175 CC=$ac_save_CC
3924 4176
3925 fi 4177 fi
3926 # AC_CACHE_VAL 4178 # AC_CACHE_VAL
3927 case "x$ac_cv_prog_cc_c89" in 4179 case "x$ac_cv_prog_cc_c89" in
3928 x) 4180 x)
3929 { $as_echo "$as_me:$LINENO: result: none needed" >&5 4181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3930 $as_echo "none needed" >&6; } ;; 4182 $as_echo "none needed" >&6; } ;;
3931 xno) 4183 xno)
3932 { $as_echo "$as_me:$LINENO: result: unsupported" >&5 4184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3933 $as_echo "unsupported" >&6; } ;; 4185 $as_echo "unsupported" >&6; } ;;
3934 *) 4186 *)
3935 CC="$CC $ac_cv_prog_cc_c89" 4187 CC="$CC $ac_cv_prog_cc_c89"
3936 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3937 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4189 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3938 esac 4190 esac
3939 4191 if test "x$ac_cv_prog_cc_c89" != xno; then :
4192
4193 fi
3940 4194
3941 ac_ext=c 4195 ac_ext=c
3942 ac_cpp='$CPP $CPPFLAGS' 4196 ac_cpp='$CPP $CPPFLAGS'
3943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4197 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4198 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3952 4206
3953 ## If not using gcc, and on Solaris, and no CPP specified, see if 4207 ## If not using gcc, and on Solaris, and no CPP specified, see if
3954 ## using a Sun compiler, which needs -Xs to prevent whitespace. 4208 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3955 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \ 4209 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3956 test x"$CPP" = x; then 4210 test x"$CPP" = x; then
3957 { $as_echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5 4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using a Sun C compiler" >&5
3958 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; } 4212 $as_echo_n "checking whether we are using a Sun C compiler... " >&6; }
3959 4213
3960 if test "${emacs_cv_sunpro_c+set}" = set; then 4214 if test "${emacs_cv_sunpro_c+set}" = set; then :
3961 $as_echo_n "(cached) " >&6 4215 $as_echo_n "(cached) " >&6
3962 else 4216 else
3963 cat >conftest.$ac_ext <<_ACEOF 4217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3964 /* confdefs.h. */
3965 _ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */ 4218 /* end confdefs.h. */
3969 4219
3970 int 4220 int
3971 main () 4221 main ()
3972 { 4222 {
3976 4226
3977 ; 4227 ;
3978 return 0; 4228 return 0;
3979 } 4229 }
3980 _ACEOF 4230 _ACEOF
3981 rm -f conftest.$ac_objext conftest$ac_exeext 4231 if ac_fn_c_try_link "$LINENO"; then :
3982 if { (ac_try="$ac_link"
3983 case "(($ac_try" in
3984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3985 *) ac_try_echo=$ac_try;;
3986 esac
3987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3988 $as_echo "$ac_try_echo") >&5
3989 (eval "$ac_link") 2>conftest.er1
3990 ac_status=$?
3991 grep -v '^ *+' conftest.er1 >conftest.err
3992 rm -f conftest.er1
3993 cat conftest.err >&5
3994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); } && {
3996 test -z "$ac_c_werror_flag" ||
3997 test ! -s conftest.err
3998 } && test -s conftest$ac_exeext && {
3999 test "$cross_compiling" = yes ||
4000 $as_test_x conftest$ac_exeext
4001 }; then
4002 emacs_cv_sunpro_c=yes 4232 emacs_cv_sunpro_c=yes
4003 else 4233 else
4004 $as_echo "$as_me: failed program was:" >&5 4234 emacs_cv_sunpro_c=no
4005 sed 's/^/| /' conftest.$ac_ext >&5 4235 fi
4006 4236 rm -f core conftest.err conftest.$ac_objext \
4007 emacs_cv_sunpro_c=no 4237 conftest$ac_exeext conftest.$ac_ext
4008 fi 4238 fi
4009 4239
4010 rm -rf conftest.dSYM 4240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_sunpro_c" >&5
4011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4012 conftest$ac_exeext conftest.$ac_ext
4013 fi
4014
4015 { $as_echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4016 $as_echo "$emacs_cv_sunpro_c" >&6; } 4241 $as_echo "$emacs_cv_sunpro_c" >&6; }
4017 4242
4018 if test x"$emacs_cv_sunpro_c" = xyes; then 4243 if test x"$emacs_cv_sunpro_c" = xyes; then
4019 NON_GNU_CPP="$CC -E -Xs" 4244 NON_GNU_CPP="$CC -E -Xs"
4020 fi 4245 fi
4050 ac_ext=c 4275 ac_ext=c
4051 ac_cpp='$CPP $CPPFLAGS' 4276 ac_cpp='$CPP $CPPFLAGS'
4052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4054 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4055 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4056 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4281 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4057 # On Suns, sometimes $CPP names a directory. 4282 # On Suns, sometimes $CPP names a directory.
4058 if test -n "$CPP" && test -d "$CPP"; then 4283 if test -n "$CPP" && test -d "$CPP"; then
4059 CPP= 4284 CPP=
4060 fi 4285 fi
4061 if test -z "$CPP"; then 4286 if test -z "$CPP"; then
4062 if test "${ac_cv_prog_CPP+set}" = set; then 4287 if test "${ac_cv_prog_CPP+set}" = set; then :
4063 $as_echo_n "(cached) " >&6 4288 $as_echo_n "(cached) " >&6
4064 else 4289 else
4065 # Double quotes because CPP needs to be expanded 4290 # Double quotes because CPP needs to be expanded
4066 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4291 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4067 do 4292 do
4072 # with a fresh cross-compiler works. 4297 # with a fresh cross-compiler works.
4073 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4298 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4074 # <limits.h> exists even on freestanding compilers. 4299 # <limits.h> exists even on freestanding compilers.
4075 # On the NeXT, cc -E runs the code through the compiler's parser, 4300 # On the NeXT, cc -E runs the code through the compiler's parser,
4076 # not just through cpp. "Syntax error" is here to catch this case. 4301 # not just through cpp. "Syntax error" is here to catch this case.
4077 cat >conftest.$ac_ext <<_ACEOF 4302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4078 /* confdefs.h. */
4079 _ACEOF
4080 cat confdefs.h >>conftest.$ac_ext
4081 cat >>conftest.$ac_ext <<_ACEOF
4082 /* end confdefs.h. */ 4303 /* end confdefs.h. */
4083 #ifdef __STDC__ 4304 #ifdef __STDC__
4084 # include <limits.h> 4305 # include <limits.h>
4085 #else 4306 #else
4086 # include <assert.h> 4307 # include <assert.h>
4087 #endif 4308 #endif
4088 Syntax error 4309 Syntax error
4089 _ACEOF 4310 _ACEOF
4090 if { (ac_try="$ac_cpp conftest.$ac_ext" 4311 if ac_fn_c_try_cpp "$LINENO"; then :
4091 case "(($ac_try" in 4312
4092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4313 else
4093 *) ac_try_echo=$ac_try;;
4094 esac
4095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4096 $as_echo "$ac_try_echo") >&5
4097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4098 ac_status=$?
4099 grep -v '^ *+' conftest.er1 >conftest.err
4100 rm -f conftest.er1
4101 cat conftest.err >&5
4102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103 (exit $ac_status); } >/dev/null && {
4104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4105 test ! -s conftest.err
4106 }; then
4107 :
4108 else
4109 $as_echo "$as_me: failed program was:" >&5
4110 sed 's/^/| /' conftest.$ac_ext >&5
4111
4112 # Broken: fails on valid input. 4314 # Broken: fails on valid input.
4113 continue 4315 continue
4114 fi 4316 fi
4115
4116 rm -f conftest.err conftest.$ac_ext 4317 rm -f conftest.err conftest.$ac_ext
4117 4318
4118 # OK, works on sane cases. Now check whether nonexistent headers 4319 # OK, works on sane cases. Now check whether nonexistent headers
4119 # can be detected and how. 4320 # can be detected and how.
4120 cat >conftest.$ac_ext <<_ACEOF 4321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4121 /* confdefs.h. */
4122 _ACEOF
4123 cat confdefs.h >>conftest.$ac_ext
4124 cat >>conftest.$ac_ext <<_ACEOF
4125 /* end confdefs.h. */ 4322 /* end confdefs.h. */
4126 #include <ac_nonexistent.h> 4323 #include <ac_nonexistent.h>
4127 _ACEOF 4324 _ACEOF
4128 if { (ac_try="$ac_cpp conftest.$ac_ext" 4325 if ac_fn_c_try_cpp "$LINENO"; then :
4129 case "(($ac_try" in
4130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131 *) ac_try_echo=$ac_try;;
4132 esac
4133 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4134 $as_echo "$ac_try_echo") >&5
4135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4136 ac_status=$?
4137 grep -v '^ *+' conftest.er1 >conftest.err
4138 rm -f conftest.er1
4139 cat conftest.err >&5
4140 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4141 (exit $ac_status); } >/dev/null && {
4142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4143 test ! -s conftest.err
4144 }; then
4145 # Broken: success on invalid input. 4326 # Broken: success on invalid input.
4146 continue 4327 continue
4147 else 4328 else
4148 $as_echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4150
4151 # Passes both tests. 4329 # Passes both tests.
4152 ac_preproc_ok=: 4330 ac_preproc_ok=:
4153 break 4331 break
4154 fi 4332 fi
4155
4156 rm -f conftest.err conftest.$ac_ext 4333 rm -f conftest.err conftest.$ac_ext
4157 4334
4158 done 4335 done
4159 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4160 rm -f conftest.err conftest.$ac_ext 4337 rm -f conftest.err conftest.$ac_ext
4161 if $ac_preproc_ok; then 4338 if $ac_preproc_ok; then :
4162 break 4339 break
4163 fi 4340 fi
4164 4341
4165 done 4342 done
4166 ac_cv_prog_CPP=$CPP 4343 ac_cv_prog_CPP=$CPP
4168 fi 4345 fi
4169 CPP=$ac_cv_prog_CPP 4346 CPP=$ac_cv_prog_CPP
4170 else 4347 else
4171 ac_cv_prog_CPP=$CPP 4348 ac_cv_prog_CPP=$CPP
4172 fi 4349 fi
4173 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4174 $as_echo "$CPP" >&6; } 4351 $as_echo "$CPP" >&6; }
4175 ac_preproc_ok=false 4352 ac_preproc_ok=false
4176 for ac_c_preproc_warn_flag in '' yes 4353 for ac_c_preproc_warn_flag in '' yes
4177 do 4354 do
4178 # Use a header file that comes with gcc, so configuring glibc 4355 # Use a header file that comes with gcc, so configuring glibc
4179 # with a fresh cross-compiler works. 4356 # with a fresh cross-compiler works.
4180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4357 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4181 # <limits.h> exists even on freestanding compilers. 4358 # <limits.h> exists even on freestanding compilers.
4182 # On the NeXT, cc -E runs the code through the compiler's parser, 4359 # On the NeXT, cc -E runs the code through the compiler's parser,
4183 # not just through cpp. "Syntax error" is here to catch this case. 4360 # not just through cpp. "Syntax error" is here to catch this case.
4184 cat >conftest.$ac_ext <<_ACEOF 4361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* confdefs.h. */
4186 _ACEOF
4187 cat confdefs.h >>conftest.$ac_ext
4188 cat >>conftest.$ac_ext <<_ACEOF
4189 /* end confdefs.h. */ 4362 /* end confdefs.h. */
4190 #ifdef __STDC__ 4363 #ifdef __STDC__
4191 # include <limits.h> 4364 # include <limits.h>
4192 #else 4365 #else
4193 # include <assert.h> 4366 # include <assert.h>
4194 #endif 4367 #endif
4195 Syntax error 4368 Syntax error
4196 _ACEOF 4369 _ACEOF
4197 if { (ac_try="$ac_cpp conftest.$ac_ext" 4370 if ac_fn_c_try_cpp "$LINENO"; then :
4198 case "(($ac_try" in 4371
4199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4372 else
4200 *) ac_try_echo=$ac_try;;
4201 esac
4202 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4203 $as_echo "$ac_try_echo") >&5
4204 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4205 ac_status=$?
4206 grep -v '^ *+' conftest.er1 >conftest.err
4207 rm -f conftest.er1
4208 cat conftest.err >&5
4209 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4210 (exit $ac_status); } >/dev/null && {
4211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4212 test ! -s conftest.err
4213 }; then
4214 :
4215 else
4216 $as_echo "$as_me: failed program was:" >&5
4217 sed 's/^/| /' conftest.$ac_ext >&5
4218
4219 # Broken: fails on valid input. 4373 # Broken: fails on valid input.
4220 continue 4374 continue
4221 fi 4375 fi
4222
4223 rm -f conftest.err conftest.$ac_ext 4376 rm -f conftest.err conftest.$ac_ext
4224 4377
4225 # OK, works on sane cases. Now check whether nonexistent headers 4378 # OK, works on sane cases. Now check whether nonexistent headers
4226 # can be detected and how. 4379 # can be detected and how.
4227 cat >conftest.$ac_ext <<_ACEOF 4380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4228 /* confdefs.h. */
4229 _ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */ 4381 /* end confdefs.h. */
4233 #include <ac_nonexistent.h> 4382 #include <ac_nonexistent.h>
4234 _ACEOF 4383 _ACEOF
4235 if { (ac_try="$ac_cpp conftest.$ac_ext" 4384 if ac_fn_c_try_cpp "$LINENO"; then :
4236 case "(($ac_try" in
4237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4238 *) ac_try_echo=$ac_try;;
4239 esac
4240 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4241 $as_echo "$ac_try_echo") >&5
4242 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4243 ac_status=$?
4244 grep -v '^ *+' conftest.er1 >conftest.err
4245 rm -f conftest.er1
4246 cat conftest.err >&5
4247 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4248 (exit $ac_status); } >/dev/null && {
4249 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4250 test ! -s conftest.err
4251 }; then
4252 # Broken: success on invalid input. 4385 # Broken: success on invalid input.
4253 continue 4386 continue
4254 else 4387 else
4255 $as_echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4257
4258 # Passes both tests. 4388 # Passes both tests.
4259 ac_preproc_ok=: 4389 ac_preproc_ok=:
4260 break 4390 break
4261 fi 4391 fi
4262
4263 rm -f conftest.err conftest.$ac_ext 4392 rm -f conftest.err conftest.$ac_ext
4264 4393
4265 done 4394 done
4266 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4395 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4267 rm -f conftest.err conftest.$ac_ext 4396 rm -f conftest.err conftest.$ac_ext
4268 if $ac_preproc_ok; then 4397 if $ac_preproc_ok; then :
4269 : 4398
4270 else 4399 else
4271 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4272 See \`config.log' for more details." >&5 4401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4273 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4402 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4274 See \`config.log' for more details." >&2;} 4403 See \`config.log' for more details." "$LINENO" 5; }
4275 { (exit 1); exit 1; }; }
4276 fi 4404 fi
4277 4405
4278 ac_ext=c 4406 ac_ext=c
4279 ac_cpp='$CPP $CPPFLAGS' 4407 ac_cpp='$CPP $CPPFLAGS'
4280 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4281 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4282 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4283 4411
4284 4412
4285 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4286 $as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4414 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4287 if test "${ac_cv_path_GREP+set}" = set; then 4415 if test "${ac_cv_path_GREP+set}" = set; then :
4288 $as_echo_n "(cached) " >&6 4416 $as_echo_n "(cached) " >&6
4289 else 4417 else
4290 if test -z "$GREP"; then 4418 if test -z "$GREP"; then
4291 ac_path_GREP_found=false 4419 ac_path_GREP_found=false
4292 # Loop through the user's path and test for each of PROGNAME-LIST 4420 # Loop through the user's path and test for each of PROGNAME-LIST
4293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4294 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4422 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4295 do 4423 do
4296 IFS=$as_save_IFS 4424 IFS=$as_save_IFS
4297 test -z "$as_dir" && as_dir=. 4425 test -z "$as_dir" && as_dir=.
4298 for ac_prog in grep ggrep; do 4426 for ac_prog in grep ggrep; do
4299 for ac_exec_ext in '' $ac_executable_extensions; do 4427 for ac_exec_ext in '' $ac_executable_extensions; do
4300 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4428 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4301 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4429 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4302 # Check for GNU ac_path_GREP and select it if it is found. 4430 # Check for GNU ac_path_GREP and select it if it is found.
4303 # Check for GNU $ac_path_GREP 4431 # Check for GNU $ac_path_GREP
4313 mv "conftest.tmp" "conftest.in" 4441 mv "conftest.tmp" "conftest.in"
4314 cp "conftest.in" "conftest.nl" 4442 cp "conftest.in" "conftest.nl"
4315 $as_echo 'GREP' >> "conftest.nl" 4443 $as_echo 'GREP' >> "conftest.nl"
4316 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4444 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4317 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4445 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4318 ac_count=`expr $ac_count + 1` 4446 as_fn_arith $ac_count + 1 && ac_count=$as_val
4319 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4447 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4320 # Best one so far, save it but keep looking for a better one 4448 # Best one so far, save it but keep looking for a better one
4321 ac_cv_path_GREP="$ac_path_GREP" 4449 ac_cv_path_GREP="$ac_path_GREP"
4322 ac_path_GREP_max=$ac_count 4450 ac_path_GREP_max=$ac_count
4323 fi 4451 fi
4328 esac 4456 esac
4329 4457
4330 $ac_path_GREP_found && break 3 4458 $ac_path_GREP_found && break 3
4331 done 4459 done
4332 done 4460 done
4333 done 4461 done
4334 IFS=$as_save_IFS 4462 IFS=$as_save_IFS
4335 if test -z "$ac_cv_path_GREP"; then 4463 if test -z "$ac_cv_path_GREP"; then
4336 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4464 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4337 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4338 { (exit 1); exit 1; }; }
4339 fi 4465 fi
4340 else 4466 else
4341 ac_cv_path_GREP=$GREP 4467 ac_cv_path_GREP=$GREP
4342 fi 4468 fi
4343 4469
4344 fi 4470 fi
4345 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4346 $as_echo "$ac_cv_path_GREP" >&6; } 4472 $as_echo "$ac_cv_path_GREP" >&6; }
4347 GREP="$ac_cv_path_GREP" 4473 GREP="$ac_cv_path_GREP"
4348 4474
4349 4475
4350 { $as_echo "$as_me:$LINENO: checking for egrep" >&5 4476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4351 $as_echo_n "checking for egrep... " >&6; } 4477 $as_echo_n "checking for egrep... " >&6; }
4352 if test "${ac_cv_path_EGREP+set}" = set; then 4478 if test "${ac_cv_path_EGREP+set}" = set; then :
4353 $as_echo_n "(cached) " >&6 4479 $as_echo_n "(cached) " >&6
4354 else 4480 else
4355 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4481 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4356 then ac_cv_path_EGREP="$GREP -E" 4482 then ac_cv_path_EGREP="$GREP -E"
4357 else 4483 else
4361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4362 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4488 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4363 do 4489 do
4364 IFS=$as_save_IFS 4490 IFS=$as_save_IFS
4365 test -z "$as_dir" && as_dir=. 4491 test -z "$as_dir" && as_dir=.
4366 for ac_prog in egrep; do 4492 for ac_prog in egrep; do
4367 for ac_exec_ext in '' $ac_executable_extensions; do 4493 for ac_exec_ext in '' $ac_executable_extensions; do
4368 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4494 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4369 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4495 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4370 # Check for GNU ac_path_EGREP and select it if it is found. 4496 # Check for GNU ac_path_EGREP and select it if it is found.
4371 # Check for GNU $ac_path_EGREP 4497 # Check for GNU $ac_path_EGREP
4381 mv "conftest.tmp" "conftest.in" 4507 mv "conftest.tmp" "conftest.in"
4382 cp "conftest.in" "conftest.nl" 4508 cp "conftest.in" "conftest.nl"
4383 $as_echo 'EGREP' >> "conftest.nl" 4509 $as_echo 'EGREP' >> "conftest.nl"
4384 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4510 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4511 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4386 ac_count=`expr $ac_count + 1` 4512 as_fn_arith $ac_count + 1 && ac_count=$as_val
4387 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4513 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4388 # Best one so far, save it but keep looking for a better one 4514 # Best one so far, save it but keep looking for a better one
4389 ac_cv_path_EGREP="$ac_path_EGREP" 4515 ac_cv_path_EGREP="$ac_path_EGREP"
4390 ac_path_EGREP_max=$ac_count 4516 ac_path_EGREP_max=$ac_count
4391 fi 4517 fi
4396 esac 4522 esac
4397 4523
4398 $ac_path_EGREP_found && break 3 4524 $ac_path_EGREP_found && break 3
4399 done 4525 done
4400 done 4526 done
4401 done 4527 done
4402 IFS=$as_save_IFS 4528 IFS=$as_save_IFS
4403 if test -z "$ac_cv_path_EGREP"; then 4529 if test -z "$ac_cv_path_EGREP"; then
4404 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 4530 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4405 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4406 { (exit 1); exit 1; }; }
4407 fi 4531 fi
4408 else 4532 else
4409 ac_cv_path_EGREP=$EGREP 4533 ac_cv_path_EGREP=$EGREP
4410 fi 4534 fi
4411 4535
4412 fi 4536 fi
4413 fi 4537 fi
4414 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 4538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4415 $as_echo "$ac_cv_path_EGREP" >&6; } 4539 $as_echo "$ac_cv_path_EGREP" >&6; }
4416 EGREP="$ac_cv_path_EGREP" 4540 EGREP="$ac_cv_path_EGREP"
4417 4541
4418 4542
4419 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4420 $as_echo_n "checking for ANSI C header files... " >&6; } 4544 $as_echo_n "checking for ANSI C header files... " >&6; }
4421 if test "${ac_cv_header_stdc+set}" = set; then 4545 if test "${ac_cv_header_stdc+set}" = set; then :
4422 $as_echo_n "(cached) " >&6 4546 $as_echo_n "(cached) " >&6
4423 else 4547 else
4424 cat >conftest.$ac_ext <<_ACEOF 4548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4425 /* confdefs.h. */
4426 _ACEOF
4427 cat confdefs.h >>conftest.$ac_ext
4428 cat >>conftest.$ac_ext <<_ACEOF
4429 /* end confdefs.h. */ 4549 /* end confdefs.h. */
4430 #include <stdlib.h> 4550 #include <stdlib.h>
4431 #include <stdarg.h> 4551 #include <stdarg.h>
4432 #include <string.h> 4552 #include <string.h>
4433 #include <float.h> 4553 #include <float.h>
4438 4558
4439 ; 4559 ;
4440 return 0; 4560 return 0;
4441 } 4561 }
4442 _ACEOF 4562 _ACEOF
4443 rm -f conftest.$ac_objext 4563 if ac_fn_c_try_compile "$LINENO"; then :
4444 if { (ac_try="$ac_compile"
4445 case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448 esac
4449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4450 $as_echo "$ac_try_echo") >&5
4451 (eval "$ac_compile") 2>conftest.er1
4452 ac_status=$?
4453 grep -v '^ *+' conftest.er1 >conftest.err
4454 rm -f conftest.er1
4455 cat conftest.err >&5
4456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4457 (exit $ac_status); } && {
4458 test -z "$ac_c_werror_flag" ||
4459 test ! -s conftest.err
4460 } && test -s conftest.$ac_objext; then
4461 ac_cv_header_stdc=yes 4564 ac_cv_header_stdc=yes
4462 else 4565 else
4463 $as_echo "$as_me: failed program was:" >&5 4566 ac_cv_header_stdc=no
4464 sed 's/^/| /' conftest.$ac_ext >&5 4567 fi
4465
4466 ac_cv_header_stdc=no
4467 fi
4468
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4470 4569
4471 if test $ac_cv_header_stdc = yes; then 4570 if test $ac_cv_header_stdc = yes; then
4472 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4571 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4473 cat >conftest.$ac_ext <<_ACEOF 4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4474 /* confdefs.h. */
4475 _ACEOF
4476 cat confdefs.h >>conftest.$ac_ext
4477 cat >>conftest.$ac_ext <<_ACEOF
4478 /* end confdefs.h. */ 4573 /* end confdefs.h. */
4479 #include <string.h> 4574 #include <string.h>
4480 4575
4481 _ACEOF 4576 _ACEOF
4482 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4483 $EGREP "memchr" >/dev/null 2>&1; then 4578 $EGREP "memchr" >/dev/null 2>&1; then :
4484 : 4579
4485 else 4580 else
4486 ac_cv_header_stdc=no 4581 ac_cv_header_stdc=no
4487 fi 4582 fi
4488 rm -f conftest* 4583 rm -f conftest*
4489 4584
4490 fi 4585 fi
4491 4586
4492 if test $ac_cv_header_stdc = yes; then 4587 if test $ac_cv_header_stdc = yes; then
4493 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4588 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4494 cat >conftest.$ac_ext <<_ACEOF 4589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4495 /* confdefs.h. */
4496 _ACEOF
4497 cat confdefs.h >>conftest.$ac_ext
4498 cat >>conftest.$ac_ext <<_ACEOF
4499 /* end confdefs.h. */ 4590 /* end confdefs.h. */
4500 #include <stdlib.h> 4591 #include <stdlib.h>
4501 4592
4502 _ACEOF 4593 _ACEOF
4503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4504 $EGREP "free" >/dev/null 2>&1; then 4595 $EGREP "free" >/dev/null 2>&1; then :
4505 : 4596
4506 else 4597 else
4507 ac_cv_header_stdc=no 4598 ac_cv_header_stdc=no
4508 fi 4599 fi
4509 rm -f conftest* 4600 rm -f conftest*
4510 4601
4511 fi 4602 fi
4512 4603
4513 if test $ac_cv_header_stdc = yes; then 4604 if test $ac_cv_header_stdc = yes; then
4514 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4605 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4515 if test "$cross_compiling" = yes; then 4606 if test "$cross_compiling" = yes; then :
4516 : 4607 :
4517 else 4608 else
4518 cat >conftest.$ac_ext <<_ACEOF 4609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4519 /* confdefs.h. */
4520 _ACEOF
4521 cat confdefs.h >>conftest.$ac_ext
4522 cat >>conftest.$ac_ext <<_ACEOF
4523 /* end confdefs.h. */ 4610 /* end confdefs.h. */
4524 #include <ctype.h> 4611 #include <ctype.h>
4525 #include <stdlib.h> 4612 #include <stdlib.h>
4526 #if ((' ' & 0x0FF) == 0x020) 4613 #if ((' ' & 0x0FF) == 0x020)
4527 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4614 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4544 || toupper (i) != TOUPPER (i)) 4631 || toupper (i) != TOUPPER (i))
4545 return 2; 4632 return 2;
4546 return 0; 4633 return 0;
4547 } 4634 }
4548 _ACEOF 4635 _ACEOF
4549 rm -f conftest$ac_exeext 4636 if ac_fn_c_try_run "$LINENO"; then :
4550 if { (ac_try="$ac_link" 4637
4551 case "(($ac_try" in 4638 else
4552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4639 ac_cv_header_stdc=no
4553 *) ac_try_echo=$ac_try;; 4640 fi
4554 esac 4641 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 4642 conftest.$ac_objext conftest.beam conftest.$ac_ext
4556 $as_echo "$ac_try_echo") >&5 4643 fi
4557 (eval "$ac_link") 2>&5 4644
4558 ac_status=$? 4645 fi
4559 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 4646 fi
4560 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4561 { (case "(($ac_try" in
4562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4563 *) ac_try_echo=$ac_try;;
4564 esac
4565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4566 $as_echo "$ac_try_echo") >&5
4567 (eval "$ac_try") 2>&5
4568 ac_status=$?
4569 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4570 (exit $ac_status); }; }; then
4571 :
4572 else
4573 $as_echo "$as_me: program exited with status $ac_status" >&5
4574 $as_echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4576
4577 ( exit $ac_status )
4578 ac_cv_header_stdc=no
4579 fi
4580 rm -rf conftest.dSYM
4581 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4582 fi
4583
4584
4585 fi
4586 fi
4587 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4588 $as_echo "$ac_cv_header_stdc" >&6; } 4648 $as_echo "$ac_cv_header_stdc" >&6; }
4589 if test $ac_cv_header_stdc = yes; then 4649 if test $ac_cv_header_stdc = yes; then
4590 4650
4591 cat >>confdefs.h <<\_ACEOF 4651 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4592 #define STDC_HEADERS 1
4593 _ACEOF
4594 4652
4595 fi 4653 fi
4596 4654
4597 # On IRIX 5.3, sys/types and inttypes.h are conflicting. 4655 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4598
4599
4600
4601
4602
4603
4604
4605
4606
4607 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4656 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4608 inttypes.h stdint.h unistd.h 4657 inttypes.h stdint.h unistd.h
4609 do 4658 do :
4610 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4659 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4611 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 4660 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4612 $as_echo_n "checking for $ac_header... " >&6; } 4661 "
4613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 4662 eval as_val=\$$as_ac_Header
4614 $as_echo_n "(cached) " >&6 4663 if test "x$as_val" = x""yes; then :
4615 else
4616 cat >conftest.$ac_ext <<_ACEOF
4617 /* confdefs.h. */
4618 _ACEOF
4619 cat confdefs.h >>conftest.$ac_ext
4620 cat >>conftest.$ac_ext <<_ACEOF
4621 /* end confdefs.h. */
4622 $ac_includes_default
4623
4624 #include <$ac_header>
4625 _ACEOF
4626 rm -f conftest.$ac_objext
4627 if { (ac_try="$ac_compile"
4628 case "(($ac_try" in
4629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4631 esac
4632 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4633 $as_echo "$ac_try_echo") >&5
4634 (eval "$ac_compile") 2>conftest.er1
4635 ac_status=$?
4636 grep -v '^ *+' conftest.er1 >conftest.err
4637 rm -f conftest.er1
4638 cat conftest.err >&5
4639 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4640 (exit $ac_status); } && {
4641 test -z "$ac_c_werror_flag" ||
4642 test ! -s conftest.err
4643 } && test -s conftest.$ac_objext; then
4644 eval "$as_ac_Header=yes"
4645 else
4646 $as_echo "$as_me: failed program was:" >&5
4647 sed 's/^/| /' conftest.$ac_ext >&5
4648
4649 eval "$as_ac_Header=no"
4650 fi
4651
4652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4653 fi
4654 ac_res=`eval 'as_val=${'$as_ac_Header'}
4655 $as_echo "$as_val"'`
4656 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
4657 $as_echo "$ac_res" >&6; }
4658 if test `eval 'as_val=${'$as_ac_Header'}
4659 $as_echo "$as_val"'` = yes; then
4660 cat >>confdefs.h <<_ACEOF 4664 cat >>confdefs.h <<_ACEOF
4661 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4665 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4662 _ACEOF 4666 _ACEOF
4663 4667
4664 fi 4668 fi
4665 4669
4666 done 4670 done
4667 4671
4668 4672
4669 4673
4670 if test "${ac_cv_header_minix_config_h+set}" = set; then 4674 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4671 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5 4675 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4672 $as_echo_n "checking for minix/config.h... " >&6; } 4676 MINIX=yes
4673 if test "${ac_cv_header_minix_config_h+set}" = set; then 4677 else
4678 MINIX=
4679 fi
4680
4681
4682 if test "$MINIX" = yes; then
4683
4684 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4685
4686
4687 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4688
4689
4690 $as_echo "#define _MINIX 1" >>confdefs.h
4691
4692 fi
4693
4694
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4696 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4697 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4674 $as_echo_n "(cached) " >&6 4698 $as_echo_n "(cached) " >&6
4675 fi 4699 else
4676 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5 4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4678 else
4679 # Is the header compilable?
4680 { $as_echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4681 $as_echo_n "checking minix/config.h usability... " >&6; }
4682 cat >conftest.$ac_ext <<_ACEOF
4683 /* confdefs.h. */
4684 _ACEOF
4685 cat confdefs.h >>conftest.$ac_ext
4686 cat >>conftest.$ac_ext <<_ACEOF
4687 /* end confdefs.h. */
4688 $ac_includes_default
4689 #include <minix/config.h>
4690 _ACEOF
4691 rm -f conftest.$ac_objext
4692 if { (ac_try="$ac_compile"
4693 case "(($ac_try" in
4694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4695 *) ac_try_echo=$ac_try;;
4696 esac
4697 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4698 $as_echo "$ac_try_echo") >&5
4699 (eval "$ac_compile") 2>conftest.er1
4700 ac_status=$?
4701 grep -v '^ *+' conftest.er1 >conftest.err
4702 rm -f conftest.er1
4703 cat conftest.err >&5
4704 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } && {
4706 test -z "$ac_c_werror_flag" ||
4707 test ! -s conftest.err
4708 } && test -s conftest.$ac_objext; then
4709 ac_header_compiler=yes
4710 else
4711 $as_echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4713
4714 ac_header_compiler=no
4715 fi
4716
4717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4718 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4719 $as_echo "$ac_header_compiler" >&6; }
4720
4721 # Is the header present?
4722 { $as_echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4723 $as_echo_n "checking minix/config.h presence... " >&6; }
4724 cat >conftest.$ac_ext <<_ACEOF
4725 /* confdefs.h. */
4726 _ACEOF
4727 cat confdefs.h >>conftest.$ac_ext
4728 cat >>conftest.$ac_ext <<_ACEOF
4729 /* end confdefs.h. */
4730 #include <minix/config.h>
4731 _ACEOF
4732 if { (ac_try="$ac_cpp conftest.$ac_ext"
4733 case "(($ac_try" in
4734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4735 *) ac_try_echo=$ac_try;;
4736 esac
4737 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4738 $as_echo "$ac_try_echo") >&5
4739 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4740 ac_status=$?
4741 grep -v '^ *+' conftest.er1 >conftest.err
4742 rm -f conftest.er1
4743 cat conftest.err >&5
4744 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4745 (exit $ac_status); } >/dev/null && {
4746 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4747 test ! -s conftest.err
4748 }; then
4749 ac_header_preproc=yes
4750 else
4751 $as_echo "$as_me: failed program was:" >&5
4752 sed 's/^/| /' conftest.$ac_ext >&5
4753
4754 ac_header_preproc=no
4755 fi
4756
4757 rm -f conftest.err conftest.$ac_ext
4758 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4759 $as_echo "$ac_header_preproc" >&6; }
4760
4761 # So? What about this header?
4762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4763 yes:no: )
4764 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4765 $as_echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4766 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4767 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4768 ac_header_preproc=yes
4769 ;;
4770 no:yes:* )
4771 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4772 $as_echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4773 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4774 $as_echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4775 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4776 $as_echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4777 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4778 $as_echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4779 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4780 $as_echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4781 { $as_echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4782 $as_echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4783
4784 ;;
4785 esac
4786 { $as_echo "$as_me:$LINENO: checking for minix/config.h" >&5
4787 $as_echo_n "checking for minix/config.h... " >&6; }
4788 if test "${ac_cv_header_minix_config_h+set}" = set; then
4789 $as_echo_n "(cached) " >&6
4790 else
4791 ac_cv_header_minix_config_h=$ac_header_preproc
4792 fi
4793 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4794 $as_echo "$ac_cv_header_minix_config_h" >&6; }
4795
4796 fi
4797 if test $ac_cv_header_minix_config_h = yes; then
4798 MINIX=yes
4799 else
4800 MINIX=
4801 fi
4802
4803
4804 if test "$MINIX" = yes; then
4805
4806 cat >>confdefs.h <<\_ACEOF
4807 #define _POSIX_SOURCE 1
4808 _ACEOF
4809
4810
4811 cat >>confdefs.h <<\_ACEOF
4812 #define _POSIX_1_SOURCE 2
4813 _ACEOF
4814
4815
4816 cat >>confdefs.h <<\_ACEOF
4817 #define _MINIX 1
4818 _ACEOF
4819
4820 fi
4821
4822
4823
4824 { $as_echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4825 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4826 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4827 $as_echo_n "(cached) " >&6
4828 else
4829 cat >conftest.$ac_ext <<_ACEOF
4830 /* confdefs.h. */
4831 _ACEOF
4832 cat confdefs.h >>conftest.$ac_ext
4833 cat >>conftest.$ac_ext <<_ACEOF
4834 /* end confdefs.h. */ 4701 /* end confdefs.h. */
4835 4702
4836 # define __EXTENSIONS__ 1 4703 # define __EXTENSIONS__ 1
4837 $ac_includes_default 4704 $ac_includes_default
4838 int 4705 int
4841 4708
4842 ; 4709 ;
4843 return 0; 4710 return 0;
4844 } 4711 }
4845 _ACEOF 4712 _ACEOF
4846 rm -f conftest.$ac_objext 4713 if ac_fn_c_try_compile "$LINENO"; then :
4847 if { (ac_try="$ac_compile"
4848 case "(($ac_try" in
4849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4850 *) ac_try_echo=$ac_try;;
4851 esac
4852 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4853 $as_echo "$ac_try_echo") >&5
4854 (eval "$ac_compile") 2>conftest.er1
4855 ac_status=$?
4856 grep -v '^ *+' conftest.er1 >conftest.err
4857 rm -f conftest.er1
4858 cat conftest.err >&5
4859 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4860 (exit $ac_status); } && {
4861 test -z "$ac_c_werror_flag" ||
4862 test ! -s conftest.err
4863 } && test -s conftest.$ac_objext; then
4864 ac_cv_safe_to_define___extensions__=yes 4714 ac_cv_safe_to_define___extensions__=yes
4865 else 4715 else
4866 $as_echo "$as_me: failed program was:" >&5 4716 ac_cv_safe_to_define___extensions__=no
4867 sed 's/^/| /' conftest.$ac_ext >&5 4717 fi
4868
4869 ac_cv_safe_to_define___extensions__=no
4870 fi
4871
4872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4873 fi 4719 fi
4874 { $as_echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5 4720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4875 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4721 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4876 test $ac_cv_safe_to_define___extensions__ = yes && 4722 test $ac_cv_safe_to_define___extensions__ = yes &&
4877 cat >>confdefs.h <<\_ACEOF 4723 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4878 #define __EXTENSIONS__ 1 4724
4879 _ACEOF 4725 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4880 4726
4881 cat >>confdefs.h <<\_ACEOF 4727 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4882 #define _ALL_SOURCE 1 4728
4883 _ACEOF 4729 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4884 4730
4885 cat >>confdefs.h <<\_ACEOF 4731 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4886 #define _GNU_SOURCE 1
4887 _ACEOF
4888
4889 cat >>confdefs.h <<\_ACEOF
4890 #define _POSIX_PTHREAD_SEMANTICS 1
4891 _ACEOF
4892
4893 cat >>confdefs.h <<\_ACEOF
4894 #define _TANDEM_SOURCE 1
4895 _ACEOF
4896 4732
4897 4733
4898 4734
4899 ### Use -Wno-pointer-sign if the compiler supports it 4735 ### Use -Wno-pointer-sign if the compiler supports it
4900 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5 4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wno-pointer-sign" >&5
4901 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; } 4737 $as_echo_n "checking whether gcc understands -Wno-pointer-sign... " >&6; }
4902 SAVE_CFLAGS="$CFLAGS" 4738 SAVE_CFLAGS="$CFLAGS"
4903 CFLAGS="$CFLAGS -Wno-pointer-sign" 4739 CFLAGS="$CFLAGS -Wno-pointer-sign"
4904 cat >conftest.$ac_ext <<_ACEOF 4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* confdefs.h. */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */ 4741 /* end confdefs.h. */
4910 4742
4911 int 4743 int
4912 main () 4744 main ()
4913 { 4745 {
4914 4746
4915 ; 4747 ;
4916 return 0; 4748 return 0;
4917 } 4749 }
4918 _ACEOF 4750 _ACEOF
4919 rm -f conftest.$ac_objext 4751 if ac_fn_c_try_compile "$LINENO"; then :
4920 if { (ac_try="$ac_compile"
4921 case "(($ac_try" in
4922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4923 *) ac_try_echo=$ac_try;;
4924 esac
4925 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4926 $as_echo "$ac_try_echo") >&5
4927 (eval "$ac_compile") 2>conftest.er1
4928 ac_status=$?
4929 grep -v '^ *+' conftest.er1 >conftest.err
4930 rm -f conftest.er1
4931 cat conftest.err >&5
4932 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4933 (exit $ac_status); } && {
4934 test -z "$ac_c_werror_flag" ||
4935 test ! -s conftest.err
4936 } && test -s conftest.$ac_objext; then
4937 has_option=yes 4752 has_option=yes
4938 else 4753 else
4939 $as_echo "$as_me: failed program was:" >&5 4754 has_option=no
4940 sed 's/^/| /' conftest.$ac_ext >&5 4755 fi
4941
4942 has_option=no
4943 fi
4944
4945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4946 if test $has_option = yes; then 4757 if test $has_option = yes; then
4947 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH" 4758 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4948 fi 4759 fi
4949 { $as_echo "$as_me:$LINENO: result: $has_option" >&5 4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
4950 $as_echo "$has_option" >&6; } 4761 $as_echo "$has_option" >&6; }
4951 CFLAGS="$SAVE_CFLAGS" 4762 CFLAGS="$SAVE_CFLAGS"
4952 unset has_option 4763 unset has_option
4953 unset SAVE_CFLAGS 4764 unset SAVE_CFLAGS
4954 4765
4955 ### Use -Wdeclaration-after-statement if the compiler supports it 4766 ### Use -Wdeclaration-after-statement if the compiler supports it
4956 { $as_echo "$as_me:$LINENO: checking whether gcc understands -Wdeclaration-after-statement" >&5 4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -Wdeclaration-after-statement" >&5
4957 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; } 4768 $as_echo_n "checking whether gcc understands -Wdeclaration-after-statement... " >&6; }
4958 SAVE_CFLAGS="$CFLAGS" 4769 SAVE_CFLAGS="$CFLAGS"
4959 CFLAGS="$CFLAGS -Wdeclaration-after-statement" 4770 CFLAGS="$CFLAGS -Wdeclaration-after-statement"
4960 cat >conftest.$ac_ext <<_ACEOF 4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4961 /* confdefs.h. */
4962 _ACEOF
4963 cat confdefs.h >>conftest.$ac_ext
4964 cat >>conftest.$ac_ext <<_ACEOF
4965 /* end confdefs.h. */ 4772 /* end confdefs.h. */
4966 4773
4967 int 4774 int
4968 main () 4775 main ()
4969 { 4776 {
4970 4777
4971 ; 4778 ;
4972 return 0; 4779 return 0;
4973 } 4780 }
4974 _ACEOF 4781 _ACEOF
4975 rm -f conftest.$ac_objext 4782 if ac_fn_c_try_compile "$LINENO"; then :
4976 if { (ac_try="$ac_compile"
4977 case "(($ac_try" in
4978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4979 *) ac_try_echo=$ac_try;;
4980 esac
4981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4982 $as_echo "$ac_try_echo") >&5
4983 (eval "$ac_compile") 2>conftest.er1
4984 ac_status=$?
4985 grep -v '^ *+' conftest.er1 >conftest.err
4986 rm -f conftest.er1
4987 cat conftest.err >&5
4988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4989 (exit $ac_status); } && {
4990 test -z "$ac_c_werror_flag" ||
4991 test ! -s conftest.err
4992 } && test -s conftest.$ac_objext; then
4993 has_option=yes 4783 has_option=yes
4994 else 4784 else
4995 $as_echo "$as_me: failed program was:" >&5 4785 has_option=no
4996 sed 's/^/| /' conftest.$ac_ext >&5 4786 fi
4997
4998 has_option=no
4999 fi
5000
5001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5002 if test $has_option = yes; then 4788 if test $has_option = yes; then
5003 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH" 4789 C_WARNINGS_SWITCH="-Wdeclaration-after-statement $C_WARNINGS_SWITCH"
5004 fi 4790 fi
5005 { $as_echo "$as_me:$LINENO: result: $has_option" >&5 4791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_option" >&5
5006 $as_echo "$has_option" >&6; } 4792 $as_echo "$has_option" >&6; }
5007 CFLAGS="$SAVE_CFLAGS" 4793 CFLAGS="$SAVE_CFLAGS"
5008 unset has_option 4794 unset has_option
5009 unset SAVE_CFLAGS 4795 unset SAVE_CFLAGS
5010 4796
5011 #### Some other nice autoconf tests. 4797 #### Some other nice autoconf tests.
5012 4798
5013 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5 4799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5014 $as_echo_n "checking whether ln -s works... " >&6; } 4800 $as_echo_n "checking whether ln -s works... " >&6; }
5015 LN_S=$as_ln_s 4801 LN_S=$as_ln_s
5016 if test "$LN_S" = "ln -s"; then 4802 if test "$LN_S" = "ln -s"; then
5017 { $as_echo "$as_me:$LINENO: result: yes" >&5 4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5018 $as_echo "yes" >&6; } 4804 $as_echo "yes" >&6; }
5019 else 4805 else
5020 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5021 $as_echo "no, using $LN_S" >&6; } 4807 $as_echo "no, using $LN_S" >&6; }
5022 fi 4808 fi
5023 4809
5024 ac_ext=c 4810 ac_ext=c
5025 ac_cpp='$CPP $CPPFLAGS' 4811 ac_cpp='$CPP $CPPFLAGS'
5026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4812 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4813 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5028 ac_compiler_gnu=$ac_cv_c_compiler_gnu 4814 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5029 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 4815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5030 $as_echo_n "checking how to run the C preprocessor... " >&6; } 4816 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5031 # On Suns, sometimes $CPP names a directory. 4817 # On Suns, sometimes $CPP names a directory.
5032 if test -n "$CPP" && test -d "$CPP"; then 4818 if test -n "$CPP" && test -d "$CPP"; then
5033 CPP= 4819 CPP=
5034 fi 4820 fi
5035 if test -z "$CPP"; then 4821 if test -z "$CPP"; then
5036 if test "${ac_cv_prog_CPP+set}" = set; then 4822 if test "${ac_cv_prog_CPP+set}" = set; then :
5037 $as_echo_n "(cached) " >&6 4823 $as_echo_n "(cached) " >&6
5038 else 4824 else
5039 # Double quotes because CPP needs to be expanded 4825 # Double quotes because CPP needs to be expanded
5040 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 4826 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5041 do 4827 do
5046 # with a fresh cross-compiler works. 4832 # with a fresh cross-compiler works.
5047 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4833 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5048 # <limits.h> exists even on freestanding compilers. 4834 # <limits.h> exists even on freestanding compilers.
5049 # On the NeXT, cc -E runs the code through the compiler's parser, 4835 # On the NeXT, cc -E runs the code through the compiler's parser,
5050 # not just through cpp. "Syntax error" is here to catch this case. 4836 # not just through cpp. "Syntax error" is here to catch this case.
5051 cat >conftest.$ac_ext <<_ACEOF 4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5052 /* confdefs.h. */
5053 _ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */ 4838 /* end confdefs.h. */
5057 #ifdef __STDC__ 4839 #ifdef __STDC__
5058 # include <limits.h> 4840 # include <limits.h>
5059 #else 4841 #else
5060 # include <assert.h> 4842 # include <assert.h>
5061 #endif 4843 #endif
5062 Syntax error 4844 Syntax error
5063 _ACEOF 4845 _ACEOF
5064 if { (ac_try="$ac_cpp conftest.$ac_ext" 4846 if ac_fn_c_try_cpp "$LINENO"; then :
5065 case "(($ac_try" in 4847
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4848 else
5067 *) ac_try_echo=$ac_try;;
5068 esac
5069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5070 $as_echo "$ac_try_echo") >&5
5071 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5072 ac_status=$?
5073 grep -v '^ *+' conftest.er1 >conftest.err
5074 rm -f conftest.er1
5075 cat conftest.err >&5
5076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } >/dev/null && {
5078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5079 test ! -s conftest.err
5080 }; then
5081 :
5082 else
5083 $as_echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5085
5086 # Broken: fails on valid input. 4849 # Broken: fails on valid input.
5087 continue 4850 continue
5088 fi 4851 fi
5089
5090 rm -f conftest.err conftest.$ac_ext 4852 rm -f conftest.err conftest.$ac_ext
5091 4853
5092 # OK, works on sane cases. Now check whether nonexistent headers 4854 # OK, works on sane cases. Now check whether nonexistent headers
5093 # can be detected and how. 4855 # can be detected and how.
5094 cat >conftest.$ac_ext <<_ACEOF 4856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095 /* confdefs.h. */
5096 _ACEOF
5097 cat confdefs.h >>conftest.$ac_ext
5098 cat >>conftest.$ac_ext <<_ACEOF
5099 /* end confdefs.h. */ 4857 /* end confdefs.h. */
5100 #include <ac_nonexistent.h> 4858 #include <ac_nonexistent.h>
5101 _ACEOF 4859 _ACEOF
5102 if { (ac_try="$ac_cpp conftest.$ac_ext" 4860 if ac_fn_c_try_cpp "$LINENO"; then :
5103 case "(($ac_try" in
5104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5105 *) ac_try_echo=$ac_try;;
5106 esac
5107 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5108 $as_echo "$ac_try_echo") >&5
5109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5110 ac_status=$?
5111 grep -v '^ *+' conftest.er1 >conftest.err
5112 rm -f conftest.er1
5113 cat conftest.err >&5
5114 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5115 (exit $ac_status); } >/dev/null && {
5116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5117 test ! -s conftest.err
5118 }; then
5119 # Broken: success on invalid input. 4861 # Broken: success on invalid input.
5120 continue 4862 continue
5121 else 4863 else
5122 $as_echo "$as_me: failed program was:" >&5
5123 sed 's/^/| /' conftest.$ac_ext >&5
5124
5125 # Passes both tests. 4864 # Passes both tests.
5126 ac_preproc_ok=: 4865 ac_preproc_ok=:
5127 break 4866 break
5128 fi 4867 fi
5129
5130 rm -f conftest.err conftest.$ac_ext 4868 rm -f conftest.err conftest.$ac_ext
5131 4869
5132 done 4870 done
5133 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4871 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5134 rm -f conftest.err conftest.$ac_ext 4872 rm -f conftest.err conftest.$ac_ext
5135 if $ac_preproc_ok; then 4873 if $ac_preproc_ok; then :
5136 break 4874 break
5137 fi 4875 fi
5138 4876
5139 done 4877 done
5140 ac_cv_prog_CPP=$CPP 4878 ac_cv_prog_CPP=$CPP
5142 fi 4880 fi
5143 CPP=$ac_cv_prog_CPP 4881 CPP=$ac_cv_prog_CPP
5144 else 4882 else
5145 ac_cv_prog_CPP=$CPP 4883 ac_cv_prog_CPP=$CPP
5146 fi 4884 fi
5147 { $as_echo "$as_me:$LINENO: result: $CPP" >&5 4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5148 $as_echo "$CPP" >&6; } 4886 $as_echo "$CPP" >&6; }
5149 ac_preproc_ok=false 4887 ac_preproc_ok=false
5150 for ac_c_preproc_warn_flag in '' yes 4888 for ac_c_preproc_warn_flag in '' yes
5151 do 4889 do
5152 # Use a header file that comes with gcc, so configuring glibc 4890 # Use a header file that comes with gcc, so configuring glibc
5153 # with a fresh cross-compiler works. 4891 # with a fresh cross-compiler works.
5154 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5155 # <limits.h> exists even on freestanding compilers. 4893 # <limits.h> exists even on freestanding compilers.
5156 # On the NeXT, cc -E runs the code through the compiler's parser, 4894 # On the NeXT, cc -E runs the code through the compiler's parser,
5157 # not just through cpp. "Syntax error" is here to catch this case. 4895 # not just through cpp. "Syntax error" is here to catch this case.
5158 cat >conftest.$ac_ext <<_ACEOF 4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5159 /* confdefs.h. */
5160 _ACEOF
5161 cat confdefs.h >>conftest.$ac_ext
5162 cat >>conftest.$ac_ext <<_ACEOF
5163 /* end confdefs.h. */ 4897 /* end confdefs.h. */
5164 #ifdef __STDC__ 4898 #ifdef __STDC__
5165 # include <limits.h> 4899 # include <limits.h>
5166 #else 4900 #else
5167 # include <assert.h> 4901 # include <assert.h>
5168 #endif 4902 #endif
5169 Syntax error 4903 Syntax error
5170 _ACEOF 4904 _ACEOF
5171 if { (ac_try="$ac_cpp conftest.$ac_ext" 4905 if ac_fn_c_try_cpp "$LINENO"; then :
5172 case "(($ac_try" in 4906
5173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4907 else
5174 *) ac_try_echo=$ac_try;;
5175 esac
5176 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5177 $as_echo "$ac_try_echo") >&5
5178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5179 ac_status=$?
5180 grep -v '^ *+' conftest.er1 >conftest.err
5181 rm -f conftest.er1
5182 cat conftest.err >&5
5183 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5184 (exit $ac_status); } >/dev/null && {
5185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5186 test ! -s conftest.err
5187 }; then
5188 :
5189 else
5190 $as_echo "$as_me: failed program was:" >&5
5191 sed 's/^/| /' conftest.$ac_ext >&5
5192
5193 # Broken: fails on valid input. 4908 # Broken: fails on valid input.
5194 continue 4909 continue
5195 fi 4910 fi
5196
5197 rm -f conftest.err conftest.$ac_ext 4911 rm -f conftest.err conftest.$ac_ext
5198 4912
5199 # OK, works on sane cases. Now check whether nonexistent headers 4913 # OK, works on sane cases. Now check whether nonexistent headers
5200 # can be detected and how. 4914 # can be detected and how.
5201 cat >conftest.$ac_ext <<_ACEOF 4915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5202 /* confdefs.h. */
5203 _ACEOF
5204 cat confdefs.h >>conftest.$ac_ext
5205 cat >>conftest.$ac_ext <<_ACEOF
5206 /* end confdefs.h. */ 4916 /* end confdefs.h. */
5207 #include <ac_nonexistent.h> 4917 #include <ac_nonexistent.h>
5208 _ACEOF 4918 _ACEOF
5209 if { (ac_try="$ac_cpp conftest.$ac_ext" 4919 if ac_fn_c_try_cpp "$LINENO"; then :
5210 case "(($ac_try" in
5211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5212 *) ac_try_echo=$ac_try;;
5213 esac
5214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5215 $as_echo "$ac_try_echo") >&5
5216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5217 ac_status=$?
5218 grep -v '^ *+' conftest.er1 >conftest.err
5219 rm -f conftest.er1
5220 cat conftest.err >&5
5221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5222 (exit $ac_status); } >/dev/null && {
5223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5224 test ! -s conftest.err
5225 }; then
5226 # Broken: success on invalid input. 4920 # Broken: success on invalid input.
5227 continue 4921 continue
5228 else 4922 else
5229 $as_echo "$as_me: failed program was:" >&5
5230 sed 's/^/| /' conftest.$ac_ext >&5
5231
5232 # Passes both tests. 4923 # Passes both tests.
5233 ac_preproc_ok=: 4924 ac_preproc_ok=:
5234 break 4925 break
5235 fi 4926 fi
5236
5237 rm -f conftest.err conftest.$ac_ext 4927 rm -f conftest.err conftest.$ac_ext
5238 4928
5239 done 4929 done
5240 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5241 rm -f conftest.err conftest.$ac_ext 4931 rm -f conftest.err conftest.$ac_ext
5242 if $ac_preproc_ok; then 4932 if $ac_preproc_ok; then :
5243 : 4933
5244 else 4934 else
5245 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4935 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5246 See \`config.log' for more details." >&5 4936 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5247 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4937 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5248 See \`config.log' for more details." >&2;} 4938 See \`config.log' for more details." "$LINENO" 5; }
5249 { (exit 1); exit 1; }; }
5250 fi 4939 fi
5251 4940
5252 ac_ext=c 4941 ac_ext=c
5253 ac_cpp='$CPP $CPPFLAGS' 4942 ac_cpp='$CPP $CPPFLAGS'
5254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5267 # AFS /usr/afsws/bin/install, which mishandles nonexistent args 4956 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5268 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 4957 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5269 # OS/2's system install, which has a completely different semantic 4958 # OS/2's system install, which has a completely different semantic
5270 # ./install, which can be erroneously created by make from ./install.sh. 4959 # ./install, which can be erroneously created by make from ./install.sh.
5271 # Reject install programs that cannot install multiple files. 4960 # Reject install programs that cannot install multiple files.
5272 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 4961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5273 $as_echo_n "checking for a BSD-compatible install... " >&6; } 4962 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5274 if test -z "$INSTALL"; then 4963 if test -z "$INSTALL"; then
5275 if test "${ac_cv_path_install+set}" = set; then 4964 if test "${ac_cv_path_install+set}" = set; then :
5276 $as_echo_n "(cached) " >&6 4965 $as_echo_n "(cached) " >&6
5277 else 4966 else
5278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5279 for as_dir in $PATH 4968 for as_dir in $PATH
5280 do 4969 do
5281 IFS=$as_save_IFS 4970 IFS=$as_save_IFS
5282 test -z "$as_dir" && as_dir=. 4971 test -z "$as_dir" && as_dir=.
5283 # Account for people who put trailing slashes in PATH elements. 4972 # Account for people who put trailing slashes in PATH elements.
5284 case $as_dir/ in 4973 case $as_dir/ in #((
5285 ./ | .// | /cC/* | \ 4974 ./ | .// | /[cC]/* | \
5286 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 4975 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5287 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 4976 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5288 /usr/ucb/* ) ;; 4977 /usr/ucb/* ) ;;
5289 *) 4978 *)
5290 # OSF1 and SCO ODT 3.0 have their own names for install. 4979 # OSF1 and SCO ODT 3.0 have their own names for install.
5291 # Don't use installbsd from OSF since it installs stuff as root 4980 # Don't use installbsd from OSF since it installs stuff as root
5292 # by default. 4981 # by default.
5319 done 5008 done
5320 done 5009 done
5321 ;; 5010 ;;
5322 esac 5011 esac
5323 5012
5324 done 5013 done
5325 IFS=$as_save_IFS 5014 IFS=$as_save_IFS
5326 5015
5327 rm -rf conftest.one conftest.two conftest.dir 5016 rm -rf conftest.one conftest.two conftest.dir
5328 5017
5329 fi 5018 fi
5335 # break other packages using the cache if that directory is 5024 # break other packages using the cache if that directory is
5336 # removed, or if the value is a relative name. 5025 # removed, or if the value is a relative name.
5337 INSTALL=$ac_install_sh 5026 INSTALL=$ac_install_sh
5338 fi 5027 fi
5339 fi 5028 fi
5340 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5 5029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5341 $as_echo "$INSTALL" >&6; } 5030 $as_echo "$INSTALL" >&6; }
5342 5031
5343 # Use test -z because SunOS4 sh mishandles braces in ${var-val}. 5032 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5344 # It thinks the first close brace ends the variable substitution. 5033 # It thinks the first close brace ends the variable substitution.
5345 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 5034 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5350 5039
5351 if test "x$RANLIB" = x; then 5040 if test "x$RANLIB" = x; then
5352 if test -n "$ac_tool_prefix"; then 5041 if test -n "$ac_tool_prefix"; then
5353 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5042 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5354 set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5043 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5355 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5356 $as_echo_n "checking for $ac_word... " >&6; } 5045 $as_echo_n "checking for $ac_word... " >&6; }
5357 if test "${ac_cv_prog_RANLIB+set}" = set; then 5046 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5358 $as_echo_n "(cached) " >&6 5047 $as_echo_n "(cached) " >&6
5359 else 5048 else
5360 if test -n "$RANLIB"; then 5049 if test -n "$RANLIB"; then
5361 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5050 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5362 else 5051 else
5363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5364 for as_dir in $PATH 5053 for as_dir in $PATH
5365 do 5054 do
5366 IFS=$as_save_IFS 5055 IFS=$as_save_IFS
5367 test -z "$as_dir" && as_dir=. 5056 test -z "$as_dir" && as_dir=.
5368 for ac_exec_ext in '' $ac_executable_extensions; do 5057 for ac_exec_ext in '' $ac_executable_extensions; do
5369 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5370 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5059 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5371 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5372 break 2 5061 break 2
5373 fi 5062 fi
5374 done 5063 done
5375 done 5064 done
5376 IFS=$as_save_IFS 5065 IFS=$as_save_IFS
5377 5066
5378 fi 5067 fi
5379 fi 5068 fi
5380 RANLIB=$ac_cv_prog_RANLIB 5069 RANLIB=$ac_cv_prog_RANLIB
5381 if test -n "$RANLIB"; then 5070 if test -n "$RANLIB"; then
5382 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5 5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5383 $as_echo "$RANLIB" >&6; } 5072 $as_echo "$RANLIB" >&6; }
5384 else 5073 else
5385 { $as_echo "$as_me:$LINENO: result: no" >&5 5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5386 $as_echo "no" >&6; } 5075 $as_echo "no" >&6; }
5387 fi 5076 fi
5388 5077
5389 5078
5390 fi 5079 fi
5391 if test -z "$ac_cv_prog_RANLIB"; then 5080 if test -z "$ac_cv_prog_RANLIB"; then
5392 ac_ct_RANLIB=$RANLIB 5081 ac_ct_RANLIB=$RANLIB
5393 # Extract the first word of "ranlib", so it can be a program name with args. 5082 # Extract the first word of "ranlib", so it can be a program name with args.
5394 set dummy ranlib; ac_word=$2 5083 set dummy ranlib; ac_word=$2
5395 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5396 $as_echo_n "checking for $ac_word... " >&6; } 5085 $as_echo_n "checking for $ac_word... " >&6; }
5397 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5086 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5398 $as_echo_n "(cached) " >&6 5087 $as_echo_n "(cached) " >&6
5399 else 5088 else
5400 if test -n "$ac_ct_RANLIB"; then 5089 if test -n "$ac_ct_RANLIB"; then
5401 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5090 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5402 else 5091 else
5403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5404 for as_dir in $PATH 5093 for as_dir in $PATH
5405 do 5094 do
5406 IFS=$as_save_IFS 5095 IFS=$as_save_IFS
5407 test -z "$as_dir" && as_dir=. 5096 test -z "$as_dir" && as_dir=.
5408 for ac_exec_ext in '' $ac_executable_extensions; do 5097 for ac_exec_ext in '' $ac_executable_extensions; do
5409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5410 ac_cv_prog_ac_ct_RANLIB="ranlib" 5099 ac_cv_prog_ac_ct_RANLIB="ranlib"
5411 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5412 break 2 5101 break 2
5413 fi 5102 fi
5414 done 5103 done
5415 done 5104 done
5416 IFS=$as_save_IFS 5105 IFS=$as_save_IFS
5417 5106
5418 fi 5107 fi
5419 fi 5108 fi
5420 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5109 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5421 if test -n "$ac_ct_RANLIB"; then 5110 if test -n "$ac_ct_RANLIB"; then
5422 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5423 $as_echo "$ac_ct_RANLIB" >&6; } 5112 $as_echo "$ac_ct_RANLIB" >&6; }
5424 else 5113 else
5425 { $as_echo "$as_me:$LINENO: result: no" >&5 5114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; } 5115 $as_echo "no" >&6; }
5427 fi 5116 fi
5428 5117
5429 if test "x$ac_ct_RANLIB" = x; then 5118 if test "x$ac_ct_RANLIB" = x; then
5430 RANLIB=":" 5119 RANLIB=":"
5431 else 5120 else
5432 case $cross_compiling:$ac_tool_warned in 5121 case $cross_compiling:$ac_tool_warned in
5433 yes:) 5122 yes:)
5434 { $as_echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools 5123 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5435 whose name does not start with the host triplet. If you think this 5124 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5436 configuration is useful to you, please write to autoconf@gnu.org." >&5
5437 $as_echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5438 whose name does not start with the host triplet. If you think this
5439 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5440 ac_tool_warned=yes ;; 5125 ac_tool_warned=yes ;;
5441 esac 5126 esac
5442 RANLIB=$ac_ct_RANLIB 5127 RANLIB=$ac_ct_RANLIB
5443 fi 5128 fi
5444 else 5129 else
5446 fi 5131 fi
5447 5132
5448 fi 5133 fi
5449 # Extract the first word of "install-info", so it can be a program name with args. 5134 # Extract the first word of "install-info", so it can be a program name with args.
5450 set dummy install-info; ac_word=$2 5135 set dummy install-info; ac_word=$2
5451 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; } 5137 $as_echo_n "checking for $ac_word... " >&6; }
5453 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then 5138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5454 $as_echo_n "(cached) " >&6 5139 $as_echo_n "(cached) " >&6
5455 else 5140 else
5456 case $INSTALL_INFO in 5141 case $INSTALL_INFO in
5457 [\\/]* | ?:[\\/]*) 5142 [\\/]* | ?:[\\/]*)
5458 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 5143 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5462 for as_dir in $PATH 5147 for as_dir in $PATH
5463 do 5148 do
5464 IFS=$as_save_IFS 5149 IFS=$as_save_IFS
5465 test -z "$as_dir" && as_dir=. 5150 test -z "$as_dir" && as_dir=.
5466 for ac_exec_ext in '' $ac_executable_extensions; do 5151 for ac_exec_ext in '' $ac_executable_extensions; do
5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5153 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5469 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5470 break 2 5155 break 2
5471 fi 5156 fi
5472 done 5157 done
5473 done 5158 done
5474 IFS=$as_save_IFS 5159 IFS=$as_save_IFS
5475 5160
5476 ;; 5161 ;;
5477 esac 5162 esac
5478 fi 5163 fi
5479 INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5164 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5480 if test -n "$INSTALL_INFO"; then 5165 if test -n "$INSTALL_INFO"; then
5481 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5482 $as_echo "$INSTALL_INFO" >&6; } 5167 $as_echo "$INSTALL_INFO" >&6; }
5483 else 5168 else
5484 { $as_echo "$as_me:$LINENO: result: no" >&5 5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5485 $as_echo "no" >&6; } 5170 $as_echo "no" >&6; }
5486 fi 5171 fi
5487 5172
5488 5173
5489 # Extract the first word of "install-info", so it can be a program name with args. 5174 # Extract the first word of "install-info", so it can be a program name with args.
5490 set dummy install-info; ac_word=$2 5175 set dummy install-info; ac_word=$2
5491 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; } 5177 $as_echo_n "checking for $ac_word... " >&6; }
5493 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then 5178 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5494 $as_echo_n "(cached) " >&6 5179 $as_echo_n "(cached) " >&6
5495 else 5180 else
5496 case $INSTALL_INFO in 5181 case $INSTALL_INFO in
5497 [\\/]* | ?:[\\/]*) 5182 [\\/]* | ?:[\\/]*)
5498 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 5183 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5502 for as_dir in /usr/sbin 5187 for as_dir in /usr/sbin
5503 do 5188 do
5504 IFS=$as_save_IFS 5189 IFS=$as_save_IFS
5505 test -z "$as_dir" && as_dir=. 5190 test -z "$as_dir" && as_dir=.
5506 for ac_exec_ext in '' $ac_executable_extensions; do 5191 for ac_exec_ext in '' $ac_executable_extensions; do
5507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5508 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5193 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5509 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5510 break 2 5195 break 2
5511 fi 5196 fi
5512 done 5197 done
5513 done 5198 done
5514 IFS=$as_save_IFS 5199 IFS=$as_save_IFS
5515 5200
5516 ;; 5201 ;;
5517 esac 5202 esac
5518 fi 5203 fi
5519 INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5204 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5520 if test -n "$INSTALL_INFO"; then 5205 if test -n "$INSTALL_INFO"; then
5521 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5522 $as_echo "$INSTALL_INFO" >&6; } 5207 $as_echo "$INSTALL_INFO" >&6; }
5523 else 5208 else
5524 { $as_echo "$as_me:$LINENO: result: no" >&5 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5525 $as_echo "no" >&6; } 5210 $as_echo "no" >&6; }
5526 fi 5211 fi
5527 5212
5528 5213
5529 # Extract the first word of "install-info", so it can be a program name with args. 5214 # Extract the first word of "install-info", so it can be a program name with args.
5530 set dummy install-info; ac_word=$2 5215 set dummy install-info; ac_word=$2
5531 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5532 $as_echo_n "checking for $ac_word... " >&6; } 5217 $as_echo_n "checking for $ac_word... " >&6; }
5533 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then 5218 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then :
5534 $as_echo_n "(cached) " >&6 5219 $as_echo_n "(cached) " >&6
5535 else 5220 else
5536 case $INSTALL_INFO in 5221 case $INSTALL_INFO in
5537 [\\/]* | ?:[\\/]*) 5222 [\\/]* | ?:[\\/]*)
5538 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path. 5223 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5542 for as_dir in /sbin 5227 for as_dir in /sbin
5543 do 5228 do
5544 IFS=$as_save_IFS 5229 IFS=$as_save_IFS
5545 test -z "$as_dir" && as_dir=. 5230 test -z "$as_dir" && as_dir=.
5546 for ac_exec_ext in '' $ac_executable_extensions; do 5231 for ac_exec_ext in '' $ac_executable_extensions; do
5547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5232 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5548 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext" 5233 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5549 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5550 break 2 5235 break 2
5551 fi 5236 fi
5552 done 5237 done
5553 done 5238 done
5554 IFS=$as_save_IFS 5239 IFS=$as_save_IFS
5555 5240
5556 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":" 5241 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5557 ;; 5242 ;;
5558 esac 5243 esac
5559 fi 5244 fi
5560 INSTALL_INFO=$ac_cv_path_INSTALL_INFO 5245 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5561 if test -n "$INSTALL_INFO"; then 5246 if test -n "$INSTALL_INFO"; then
5562 { $as_echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL_INFO" >&5
5563 $as_echo "$INSTALL_INFO" >&6; } 5248 $as_echo "$INSTALL_INFO" >&6; }
5564 else 5249 else
5565 { $as_echo "$as_me:$LINENO: result: no" >&5 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5566 $as_echo "no" >&6; } 5251 $as_echo "no" >&6; }
5567 fi 5252 fi
5568 5253
5569 5254
5570 # Extract the first word of "gzip", so it can be a program name with args. 5255 # Extract the first word of "gzip", so it can be a program name with args.
5571 set dummy gzip; ac_word=$2 5256 set dummy gzip; ac_word=$2
5572 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; } 5258 $as_echo_n "checking for $ac_word... " >&6; }
5574 if test "${ac_cv_path_GZIP_PROG+set}" = set; then 5259 if test "${ac_cv_path_GZIP_PROG+set}" = set; then :
5575 $as_echo_n "(cached) " >&6 5260 $as_echo_n "(cached) " >&6
5576 else 5261 else
5577 case $GZIP_PROG in 5262 case $GZIP_PROG in
5578 [\\/]* | ?:[\\/]*) 5263 [\\/]* | ?:[\\/]*)
5579 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path. 5264 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5583 for as_dir in $PATH 5268 for as_dir in $PATH
5584 do 5269 do
5585 IFS=$as_save_IFS 5270 IFS=$as_save_IFS
5586 test -z "$as_dir" && as_dir=. 5271 test -z "$as_dir" && as_dir=.
5587 for ac_exec_ext in '' $ac_executable_extensions; do 5272 for ac_exec_ext in '' $ac_executable_extensions; do
5588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5589 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext" 5274 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5590 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5591 break 2 5276 break 2
5592 fi 5277 fi
5593 done 5278 done
5594 done 5279 done
5595 IFS=$as_save_IFS 5280 IFS=$as_save_IFS
5596 5281
5597 ;; 5282 ;;
5598 esac 5283 esac
5599 fi 5284 fi
5600 GZIP_PROG=$ac_cv_path_GZIP_PROG 5285 GZIP_PROG=$ac_cv_path_GZIP_PROG
5601 if test -n "$GZIP_PROG"; then 5286 if test -n "$GZIP_PROG"; then
5602 { $as_echo "$as_me:$LINENO: result: $GZIP_PROG" >&5 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GZIP_PROG" >&5
5603 $as_echo "$GZIP_PROG" >&6; } 5288 $as_echo "$GZIP_PROG" >&6; }
5604 else 5289 else
5605 { $as_echo "$as_me:$LINENO: result: no" >&5 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5606 $as_echo "no" >&6; } 5291 $as_echo "no" >&6; }
5607 fi 5292 fi
5608 5293
5609 5294
5610 5295
5611 5296
5612 ## Need makeinfo >= 4.6 (?) to build the manuals. 5297 ## Need makeinfo >= 4.6 (?) to build the manuals.
5613 # Extract the first word of "makeinfo", so it can be a program name with args. 5298 # Extract the first word of "makeinfo", so it can be a program name with args.
5614 set dummy makeinfo; ac_word=$2 5299 set dummy makeinfo; ac_word=$2
5615 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5616 $as_echo_n "checking for $ac_word... " >&6; } 5301 $as_echo_n "checking for $ac_word... " >&6; }
5617 if test "${ac_cv_path_MAKEINFO+set}" = set; then 5302 if test "${ac_cv_path_MAKEINFO+set}" = set; then :
5618 $as_echo_n "(cached) " >&6 5303 $as_echo_n "(cached) " >&6
5619 else 5304 else
5620 case $MAKEINFO in 5305 case $MAKEINFO in
5621 [\\/]* | ?:[\\/]*) 5306 [\\/]* | ?:[\\/]*)
5622 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path. 5307 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5626 for as_dir in $PATH 5311 for as_dir in $PATH
5627 do 5312 do
5628 IFS=$as_save_IFS 5313 IFS=$as_save_IFS
5629 test -z "$as_dir" && as_dir=. 5314 test -z "$as_dir" && as_dir=.
5630 for ac_exec_ext in '' $ac_executable_extensions; do 5315 for ac_exec_ext in '' $ac_executable_extensions; do
5631 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5632 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext" 5317 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5633 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5634 break 2 5319 break 2
5635 fi 5320 fi
5636 done 5321 done
5637 done 5322 done
5638 IFS=$as_save_IFS 5323 IFS=$as_save_IFS
5639 5324
5640 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no" 5325 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5641 ;; 5326 ;;
5642 esac 5327 esac
5643 fi 5328 fi
5644 MAKEINFO=$ac_cv_path_MAKEINFO 5329 MAKEINFO=$ac_cv_path_MAKEINFO
5645 if test -n "$MAKEINFO"; then 5330 if test -n "$MAKEINFO"; then
5646 { $as_echo "$as_me:$LINENO: result: $MAKEINFO" >&5 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
5647 $as_echo "$MAKEINFO" >&6; } 5332 $as_echo "$MAKEINFO" >&6; }
5648 else 5333 else
5649 { $as_echo "$as_me:$LINENO: result: no" >&5 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; } 5335 $as_echo "no" >&6; }
5651 fi 5336 fi
5652 5337
5653 5338
5654 if test "$MAKEINFO" != "no" && \ 5339 if test "$MAKEINFO" != "no" && \
5667 ## with pre-built manuals, from a Bazaar checkout. 5352 ## with pre-built manuals, from a Bazaar checkout.
5668 if test "$MAKEINFO" = "no"; then 5353 if test "$MAKEINFO" = "no"; then
5669 if test "x${with_makeinfo}" = "xno"; then 5354 if test "x${with_makeinfo}" = "xno"; then
5670 MAKEINFO=off 5355 MAKEINFO=off
5671 elif test ! -e $srcdir/info/emacs; then 5356 elif test ! -e $srcdir/info/emacs; then
5672 { { $as_echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your 5357 as_fn_error "You do not seem to have makeinfo >= 4.6, and your
5673 source tree does not seem to have pre-built manuals in the \`info' directory. 5358 source tree does not seem to have pre-built manuals in the \`info' directory.
5674 Either install a suitable version of makeinfo, or re-run configure 5359 Either install a suitable version of makeinfo, or re-run configure
5675 with the \`--without-makeinfo' option to build without the manuals. " >&5 5360 with the \`--without-makeinfo' option to build without the manuals. " "$LINENO" 5
5676 $as_echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5677 source tree does not seem to have pre-built manuals in the \`info' directory.
5678 Either install a suitable version of makeinfo, or re-run configure
5679 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5680 { (exit 1); exit 1; }; }
5681 fi 5361 fi
5682 fi 5362 fi
5683 5363
5684 5364
5685 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x 5365 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5698 LDFLAGS="$LDFLAGS -Wl,-znocombreloc" 5378 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5699 else 5379 else
5700 LDFLAGS="$LDFLAGS -znocombreloc" 5380 LDFLAGS="$LDFLAGS -znocombreloc"
5701 fi 5381 fi
5702 5382
5703 { $as_echo "$as_me:$LINENO: checking for -znocombreloc" >&5 5383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -znocombreloc" >&5
5704 $as_echo_n "checking for -znocombreloc... " >&6; } 5384 $as_echo_n "checking for -znocombreloc... " >&6; }
5705 cat >conftest.$ac_ext <<_ACEOF 5385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5386 /* end confdefs.h. */
5706 main(){return 0;} 5387 main(){return 0;}
5707 _ACEOF 5388 _ACEOF
5708 rm -f conftest.$ac_objext conftest$ac_exeext 5389 if ac_fn_c_try_link "$LINENO"; then :
5709 if { (ac_try="$ac_link" 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5710 case "(($ac_try" in
5711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5712 *) ac_try_echo=$ac_try;;
5713 esac
5714 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5715 $as_echo "$ac_try_echo") >&5
5716 (eval "$ac_link") 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && {
5723 test -z "$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest$ac_exeext && {
5726 test "$cross_compiling" = yes ||
5727 $as_test_x conftest$ac_exeext
5728 }; then
5729 { $as_echo "$as_me:$LINENO: result: yes" >&5
5730 $as_echo "yes" >&6; } 5391 $as_echo "yes" >&6; }
5731 else 5392 else
5732 $as_echo "$as_me: failed program was:" >&5 5393 LDFLAGS=$late_LDFLAGS
5733 sed 's/^/| /' conftest.$ac_ext >&5 5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734
5735 LDFLAGS=$late_LDFLAGS
5736 { $as_echo "$as_me:$LINENO: result: no" >&5
5737 $as_echo "no" >&6; } 5395 $as_echo "no" >&6; }
5738 fi 5396 fi
5739 5397 rm -f core conftest.err conftest.$ac_objext \
5740 rm -rf conftest.dSYM 5398 conftest$ac_exeext conftest.$ac_ext
5741 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5742 conftest$ac_exeext conftest.$ac_ext
5743 5399
5744 LIB_MATH=-lm 5400 LIB_MATH=-lm
5745 5401
5746 case $opsys in 5402 case $opsys in
5747 cygwin ) 5403 cygwin )
5755 5411
5756 5412
5757 5413
5758 #### Extract some information from the operating system and machine files. 5414 #### Extract some information from the operating system and machine files.
5759 5415
5760 { $as_echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out 5416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the machine- and system-dependent files to find out
5761 - which libraries the lib-src programs will want, and 5417 - which libraries the lib-src programs will want, and
5762 - whether the GNU malloc routines are usable..." >&5 5418 - whether the GNU malloc routines are usable..." >&5
5763 $as_echo "$as_me: checking the machine- and system-dependent files to find out 5419 $as_echo "$as_me: checking the machine- and system-dependent files to find out
5764 - which libraries the lib-src programs will want, and 5420 - which libraries the lib-src programs will want, and
5765 - whether the GNU malloc routines are usable..." >&6;} 5421 - whether the GNU malloc routines are usable..." >&6;}
5793 #endif 5449 #endif
5794 configure___ libsrc_libs=LIBS_SYSTEM 5450 configure___ libsrc_libs=LIBS_SYSTEM
5795 configure___ c_switch_system=C_SWITCH_SYSTEM 5451 configure___ c_switch_system=C_SWITCH_SYSTEM
5796 configure___ c_switch_machine=C_SWITCH_MACHINE 5452 configure___ c_switch_machine=C_SWITCH_MACHINE
5797 5453
5798 #ifndef LIB_X11_LIB 5454 configure___ LIBX=-lX11
5799 #define LIB_X11_LIB -lX11 5455
5800 #endif
5801
5802 configure___ LIBX=LIB_X11_LIB
5803
5804 #ifdef UNEXEC
5805 configure___ unexec=UNEXEC 5456 configure___ unexec=UNEXEC
5806 #else
5807 configure___ unexec=unexec.o
5808 #endif
5809 5457
5810 #ifdef SYSTEM_MALLOC 5458 #ifdef SYSTEM_MALLOC
5811 configure___ system_malloc=yes 5459 configure___ system_malloc=yes
5812 #else 5460 #else
5813 configure___ system_malloc=no 5461 configure___ system_malloc=no
5893 fi 5541 fi
5894 5542
5895 5543
5896 5544
5897 # Check whether --enable-largefile was given. 5545 # Check whether --enable-largefile was given.
5898 if test "${enable_largefile+set}" = set; then 5546 if test "${enable_largefile+set}" = set; then :
5899 enableval=$enable_largefile; 5547 enableval=$enable_largefile;
5900 fi 5548 fi
5901 5549
5902 if test "$enable_largefile" != no; then 5550 if test "$enable_largefile" != no; then
5903 5551
5904 { $as_echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
5905 $as_echo_n "checking for special C compiler options needed for large files... " >&6; } 5553 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
5906 if test "${ac_cv_sys_largefile_CC+set}" = set; then 5554 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
5907 $as_echo_n "(cached) " >&6 5555 $as_echo_n "(cached) " >&6
5908 else 5556 else
5909 ac_cv_sys_largefile_CC=no 5557 ac_cv_sys_largefile_CC=no
5910 if test "$GCC" != yes; then 5558 if test "$GCC" != yes; then
5911 ac_save_CC=$CC 5559 ac_save_CC=$CC
5912 while :; do 5560 while :; do
5913 # IRIX 6.2 and later do not support large files by default, 5561 # IRIX 6.2 and later do not support large files by default,
5914 # so use the C compiler's -n32 option if that helps. 5562 # so use the C compiler's -n32 option if that helps.
5915 cat >conftest.$ac_ext <<_ACEOF 5563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5916 /* confdefs.h. */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */ 5564 /* end confdefs.h. */
5921 #include <sys/types.h> 5565 #include <sys/types.h>
5922 /* Check that off_t can represent 2**63 - 1 correctly. 5566 /* Check that off_t can represent 2**63 - 1 correctly.
5923 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5567 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5924 since some C++ compilers masquerading as C compilers 5568 since some C++ compilers masquerading as C compilers
5933 5577
5934 ; 5578 ;
5935 return 0; 5579 return 0;
5936 } 5580 }
5937 _ACEOF 5581 _ACEOF
5938 rm -f conftest.$ac_objext 5582 if ac_fn_c_try_compile "$LINENO"; then :
5939 if { (ac_try="$ac_compile"
5940 case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943 esac
5944 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5945 $as_echo "$ac_try_echo") >&5
5946 (eval "$ac_compile") 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_c_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
5956 break 5583 break
5957 else 5584 fi
5958 $as_echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961
5962 fi
5963
5964 rm -f core conftest.err conftest.$ac_objext 5585 rm -f core conftest.err conftest.$ac_objext
5965 CC="$CC -n32" 5586 CC="$CC -n32"
5966 rm -f conftest.$ac_objext 5587 if ac_fn_c_try_compile "$LINENO"; then :
5967 if { (ac_try="$ac_compile"
5968 case "(($ac_try" in
5969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970 *) ac_try_echo=$ac_try;;
5971 esac
5972 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5973 $as_echo "$ac_try_echo") >&5
5974 (eval "$ac_compile") 2>conftest.er1
5975 ac_status=$?
5976 grep -v '^ *+' conftest.er1 >conftest.err
5977 rm -f conftest.er1
5978 cat conftest.err >&5
5979 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } && {
5981 test -z "$ac_c_werror_flag" ||
5982 test ! -s conftest.err
5983 } && test -s conftest.$ac_objext; then
5984 ac_cv_sys_largefile_CC=' -n32'; break 5588 ac_cv_sys_largefile_CC=' -n32'; break
5985 else 5589 fi
5986 $as_echo "$as_me: failed program was:" >&5
5987 sed 's/^/| /' conftest.$ac_ext >&5
5988
5989
5990 fi
5991
5992 rm -f core conftest.err conftest.$ac_objext 5590 rm -f core conftest.err conftest.$ac_objext
5993 break 5591 break
5994 done 5592 done
5995 CC=$ac_save_CC 5593 CC=$ac_save_CC
5996 rm -f conftest.$ac_ext 5594 rm -f conftest.$ac_ext
5997 fi 5595 fi
5998 fi 5596 fi
5999 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
6000 $as_echo "$ac_cv_sys_largefile_CC" >&6; } 5598 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
6001 if test "$ac_cv_sys_largefile_CC" != no; then 5599 if test "$ac_cv_sys_largefile_CC" != no; then
6002 CC=$CC$ac_cv_sys_largefile_CC 5600 CC=$CC$ac_cv_sys_largefile_CC
6003 fi 5601 fi
6004 5602
6005 { $as_echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
6006 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 5604 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
6007 if test "${ac_cv_sys_file_offset_bits+set}" = set; then 5605 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
6008 $as_echo_n "(cached) " >&6 5606 $as_echo_n "(cached) " >&6
6009 else 5607 else
6010 while :; do 5608 while :; do
6011 cat >conftest.$ac_ext <<_ACEOF 5609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6012 /* confdefs.h. */
6013 _ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h. */ 5610 /* end confdefs.h. */
6017 #include <sys/types.h> 5611 #include <sys/types.h>
6018 /* Check that off_t can represent 2**63 - 1 correctly. 5612 /* Check that off_t can represent 2**63 - 1 correctly.
6019 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5613 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6020 since some C++ compilers masquerading as C compilers 5614 since some C++ compilers masquerading as C compilers
6029 5623
6030 ; 5624 ;
6031 return 0; 5625 return 0;
6032 } 5626 }
6033 _ACEOF 5627 _ACEOF
6034 rm -f conftest.$ac_objext 5628 if ac_fn_c_try_compile "$LINENO"; then :
6035 if { (ac_try="$ac_compile"
6036 case "(($ac_try" in
6037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6038 *) ac_try_echo=$ac_try;;
6039 esac
6040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6041 $as_echo "$ac_try_echo") >&5
6042 (eval "$ac_compile") 2>conftest.er1
6043 ac_status=$?
6044 grep -v '^ *+' conftest.er1 >conftest.err
6045 rm -f conftest.er1
6046 cat conftest.err >&5
6047 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } && {
6049 test -z "$ac_c_werror_flag" ||
6050 test ! -s conftest.err
6051 } && test -s conftest.$ac_objext; then
6052 ac_cv_sys_file_offset_bits=no; break 5629 ac_cv_sys_file_offset_bits=no; break
6053 else 5630 fi
6054 $as_echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057
6058 fi
6059
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6061 cat >conftest.$ac_ext <<_ACEOF 5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6062 /* confdefs.h. */
6063 _ACEOF
6064 cat confdefs.h >>conftest.$ac_ext
6065 cat >>conftest.$ac_ext <<_ACEOF
6066 /* end confdefs.h. */ 5633 /* end confdefs.h. */
6067 #define _FILE_OFFSET_BITS 64 5634 #define _FILE_OFFSET_BITS 64
6068 #include <sys/types.h> 5635 #include <sys/types.h>
6069 /* Check that off_t can represent 2**63 - 1 correctly. 5636 /* Check that off_t can represent 2**63 - 1 correctly.
6070 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5637 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6080 5647
6081 ; 5648 ;
6082 return 0; 5649 return 0;
6083 } 5650 }
6084 _ACEOF 5651 _ACEOF
6085 rm -f conftest.$ac_objext 5652 if ac_fn_c_try_compile "$LINENO"; then :
6086 if { (ac_try="$ac_compile"
6087 case "(($ac_try" in
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6090 esac
6091 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6092 $as_echo "$ac_try_echo") >&5
6093 (eval "$ac_compile") 2>conftest.er1
6094 ac_status=$?
6095 grep -v '^ *+' conftest.er1 >conftest.err
6096 rm -f conftest.er1
6097 cat conftest.err >&5
6098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6099 (exit $ac_status); } && {
6100 test -z "$ac_c_werror_flag" ||
6101 test ! -s conftest.err
6102 } && test -s conftest.$ac_objext; then
6103 ac_cv_sys_file_offset_bits=64; break 5653 ac_cv_sys_file_offset_bits=64; break
6104 else 5654 fi
6105 $as_echo "$as_me: failed program was:" >&5
6106 sed 's/^/| /' conftest.$ac_ext >&5
6107
6108
6109 fi
6110
6111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6112 ac_cv_sys_file_offset_bits=unknown 5656 ac_cv_sys_file_offset_bits=unknown
6113 break 5657 break
6114 done 5658 done
6115 fi 5659 fi
6116 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
6117 $as_echo "$ac_cv_sys_file_offset_bits" >&6; } 5661 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
6118 case $ac_cv_sys_file_offset_bits in #( 5662 case $ac_cv_sys_file_offset_bits in #(
6119 no | unknown) ;; 5663 no | unknown) ;;
6120 *) 5664 *)
6121 cat >>confdefs.h <<_ACEOF 5665 cat >>confdefs.h <<_ACEOF
6123 _ACEOF 5667 _ACEOF
6124 ;; 5668 ;;
6125 esac 5669 esac
6126 rm -rf conftest* 5670 rm -rf conftest*
6127 if test $ac_cv_sys_file_offset_bits = unknown; then 5671 if test $ac_cv_sys_file_offset_bits = unknown; then
6128 { $as_echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 5672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
6129 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 5673 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
6130 if test "${ac_cv_sys_large_files+set}" = set; then 5674 if test "${ac_cv_sys_large_files+set}" = set; then :
6131 $as_echo_n "(cached) " >&6 5675 $as_echo_n "(cached) " >&6
6132 else 5676 else
6133 while :; do 5677 while :; do
6134 cat >conftest.$ac_ext <<_ACEOF 5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6135 /* confdefs.h. */
6136 _ACEOF
6137 cat confdefs.h >>conftest.$ac_ext
6138 cat >>conftest.$ac_ext <<_ACEOF
6139 /* end confdefs.h. */ 5679 /* end confdefs.h. */
6140 #include <sys/types.h> 5680 #include <sys/types.h>
6141 /* Check that off_t can represent 2**63 - 1 correctly. 5681 /* Check that off_t can represent 2**63 - 1 correctly.
6142 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5682 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6143 since some C++ compilers masquerading as C compilers 5683 since some C++ compilers masquerading as C compilers
6152 5692
6153 ; 5693 ;
6154 return 0; 5694 return 0;
6155 } 5695 }
6156 _ACEOF 5696 _ACEOF
6157 rm -f conftest.$ac_objext 5697 if ac_fn_c_try_compile "$LINENO"; then :
6158 if { (ac_try="$ac_compile"
6159 case "(($ac_try" in
6160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6161 *) ac_try_echo=$ac_try;;
6162 esac
6163 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6164 $as_echo "$ac_try_echo") >&5
6165 (eval "$ac_compile") 2>conftest.er1
6166 ac_status=$?
6167 grep -v '^ *+' conftest.er1 >conftest.err
6168 rm -f conftest.er1
6169 cat conftest.err >&5
6170 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6171 (exit $ac_status); } && {
6172 test -z "$ac_c_werror_flag" ||
6173 test ! -s conftest.err
6174 } && test -s conftest.$ac_objext; then
6175 ac_cv_sys_large_files=no; break 5698 ac_cv_sys_large_files=no; break
6176 else 5699 fi
6177 $as_echo "$as_me: failed program was:" >&5
6178 sed 's/^/| /' conftest.$ac_ext >&5
6179
6180
6181 fi
6182
6183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6184 cat >conftest.$ac_ext <<_ACEOF 5701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6185 /* confdefs.h. */
6186 _ACEOF
6187 cat confdefs.h >>conftest.$ac_ext
6188 cat >>conftest.$ac_ext <<_ACEOF
6189 /* end confdefs.h. */ 5702 /* end confdefs.h. */
6190 #define _LARGE_FILES 1 5703 #define _LARGE_FILES 1
6191 #include <sys/types.h> 5704 #include <sys/types.h>
6192 /* Check that off_t can represent 2**63 - 1 correctly. 5705 /* Check that off_t can represent 2**63 - 1 correctly.
6193 We can't simply define LARGE_OFF_T to be 9223372036854775807, 5706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
6203 5716
6204 ; 5717 ;
6205 return 0; 5718 return 0;
6206 } 5719 }
6207 _ACEOF 5720 _ACEOF
6208 rm -f conftest.$ac_objext 5721 if ac_fn_c_try_compile "$LINENO"; then :
6209 if { (ac_try="$ac_compile"
6210 case "(($ac_try" in
6211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6212 *) ac_try_echo=$ac_try;;
6213 esac
6214 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6215 $as_echo "$ac_try_echo") >&5
6216 (eval "$ac_compile") 2>conftest.er1
6217 ac_status=$?
6218 grep -v '^ *+' conftest.er1 >conftest.err
6219 rm -f conftest.er1
6220 cat conftest.err >&5
6221 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6222 (exit $ac_status); } && {
6223 test -z "$ac_c_werror_flag" ||
6224 test ! -s conftest.err
6225 } && test -s conftest.$ac_objext; then
6226 ac_cv_sys_large_files=1; break 5722 ac_cv_sys_large_files=1; break
6227 else 5723 fi
6228 $as_echo "$as_me: failed program was:" >&5
6229 sed 's/^/| /' conftest.$ac_ext >&5
6230
6231
6232 fi
6233
6234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6235 ac_cv_sys_large_files=unknown 5725 ac_cv_sys_large_files=unknown
6236 break 5726 break
6237 done 5727 done
6238 fi 5728 fi
6239 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
6240 $as_echo "$ac_cv_sys_large_files" >&6; } 5730 $as_echo "$ac_cv_sys_large_files" >&6; }
6241 case $ac_cv_sys_large_files in #( 5731 case $ac_cv_sys_large_files in #(
6242 no | unknown) ;; 5732 no | unknown) ;;
6243 *) 5733 *)
6244 cat >>confdefs.h <<_ACEOF 5734 cat >>confdefs.h <<_ACEOF
6280 else 5770 else
6281 5771
6282 ## Some platforms don't use any of these files, so it is not 5772 ## Some platforms don't use any of these files, so it is not
6283 ## appropriate to put this test outside the if block. 5773 ## appropriate to put this test outside the if block.
6284 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \ 5774 test -e $CRT_DIR/crtn.o || test -e $CRT_DIR/crt0.o || \
6285 { { $as_echo "$as_me:$LINENO: error: crt*.o not found in specified location." >&5 5775 as_fn_error "crt*.o not found in specified location." "$LINENO" 5
6286 $as_echo "$as_me: error: crt*.o not found in specified location." >&2;}
6287 { (exit 1); exit 1; }; }
6288 5776
6289 fi 5777 fi
6290 5778
6291 5779
6292 5780
6294 5782
6295 5783
6296 5784
6297 if test "${with_sound}" != "no"; then 5785 if test "${with_sound}" != "no"; then
6298 # Sound support for GNU/Linux and the free BSDs. 5786 # Sound support for GNU/Linux and the free BSDs.
6299 5787 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6300 5788 do :
6301 5789 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6302 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h 5790 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6303 do 5791 eval as_val=\$$as_ac_Header
6304 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 5792 if test "x$as_val" = x""yes; then :
6305 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6306 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6307 $as_echo_n "checking for $ac_header... " >&6; }
6308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6309 $as_echo_n "(cached) " >&6
6310 fi
6311 ac_res=`eval 'as_val=${'$as_ac_Header'}
6312 $as_echo "$as_val"'`
6313 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6314 $as_echo "$ac_res" >&6; }
6315 else
6316 # Is the header compilable?
6317 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6318 $as_echo_n "checking $ac_header usability... " >&6; }
6319 cat >conftest.$ac_ext <<_ACEOF
6320 /* confdefs.h. */
6321 _ACEOF
6322 cat confdefs.h >>conftest.$ac_ext
6323 cat >>conftest.$ac_ext <<_ACEOF
6324 /* end confdefs.h. */
6325 $ac_includes_default
6326 #include <$ac_header>
6327 _ACEOF
6328 rm -f conftest.$ac_objext
6329 if { (ac_try="$ac_compile"
6330 case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333 esac
6334 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6335 $as_echo "$ac_try_echo") >&5
6336 (eval "$ac_compile") 2>conftest.er1
6337 ac_status=$?
6338 grep -v '^ *+' conftest.er1 >conftest.err
6339 rm -f conftest.er1
6340 cat conftest.err >&5
6341 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342 (exit $ac_status); } && {
6343 test -z "$ac_c_werror_flag" ||
6344 test ! -s conftest.err
6345 } && test -s conftest.$ac_objext; then
6346 ac_header_compiler=yes
6347 else
6348 $as_echo "$as_me: failed program was:" >&5
6349 sed 's/^/| /' conftest.$ac_ext >&5
6350
6351 ac_header_compiler=no
6352 fi
6353
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6355 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6356 $as_echo "$ac_header_compiler" >&6; }
6357
6358 # Is the header present?
6359 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6360 $as_echo_n "checking $ac_header presence... " >&6; }
6361 cat >conftest.$ac_ext <<_ACEOF
6362 /* confdefs.h. */
6363 _ACEOF
6364 cat confdefs.h >>conftest.$ac_ext
6365 cat >>conftest.$ac_ext <<_ACEOF
6366 /* end confdefs.h. */
6367 #include <$ac_header>
6368 _ACEOF
6369 if { (ac_try="$ac_cpp conftest.$ac_ext"
6370 case "(($ac_try" in
6371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6372 *) ac_try_echo=$ac_try;;
6373 esac
6374 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6375 $as_echo "$ac_try_echo") >&5
6376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6377 ac_status=$?
6378 grep -v '^ *+' conftest.er1 >conftest.err
6379 rm -f conftest.er1
6380 cat conftest.err >&5
6381 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6382 (exit $ac_status); } >/dev/null && {
6383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6384 test ! -s conftest.err
6385 }; then
6386 ac_header_preproc=yes
6387 else
6388 $as_echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6390
6391 ac_header_preproc=no
6392 fi
6393
6394 rm -f conftest.err conftest.$ac_ext
6395 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6396 $as_echo "$ac_header_preproc" >&6; }
6397
6398 # So? What about this header?
6399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6400 yes:no: )
6401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6402 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6403 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6404 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6405 ac_header_preproc=yes
6406 ;;
6407 no:yes:* )
6408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6409 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6411 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6413 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6415 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6417 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6418 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6419 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6420
6421 ;;
6422 esac
6423 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6424 $as_echo_n "checking for $ac_header... " >&6; }
6425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6426 $as_echo_n "(cached) " >&6
6427 else
6428 eval "$as_ac_Header=\$ac_header_preproc"
6429 fi
6430 ac_res=`eval 'as_val=${'$as_ac_Header'}
6431 $as_echo "$as_val"'`
6432 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6433 $as_echo "$ac_res" >&6; }
6434
6435 fi
6436 if test `eval 'as_val=${'$as_ac_Header'}
6437 $as_echo "$as_val"'` = yes; then
6438 cat >>confdefs.h <<_ACEOF 5793 cat >>confdefs.h <<_ACEOF
6439 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 5794 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6440 _ACEOF 5795 _ACEOF
6441 5796
6442 fi 5797 fi
6443 5798
6444 done 5799 done
6445 5800
6446 # Emulation library used on NetBSD. 5801 # Emulation library used on NetBSD.
6447 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5 5802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _oss_ioctl in -lossaudio" >&5
6448 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; } 5803 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
6449 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then 5804 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then :
6450 $as_echo_n "(cached) " >&6 5805 $as_echo_n "(cached) " >&6
6451 else 5806 else
6452 ac_check_lib_save_LIBS=$LIBS 5807 ac_check_lib_save_LIBS=$LIBS
6453 LIBS="-lossaudio $LIBS" 5808 LIBS="-lossaudio $LIBS"
6454 cat >conftest.$ac_ext <<_ACEOF 5809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6455 /* confdefs.h. */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */ 5810 /* end confdefs.h. */
6460 5811
6461 /* Override any GCC internal prototype to avoid an error. 5812 /* Override any GCC internal prototype to avoid an error.
6462 Use char because int might match the return type of a GCC 5813 Use char because int might match the return type of a GCC
6463 builtin and then its argument prototype would still apply. */ 5814 builtin and then its argument prototype would still apply. */
6471 return _oss_ioctl (); 5822 return _oss_ioctl ();
6472 ; 5823 ;
6473 return 0; 5824 return 0;
6474 } 5825 }
6475 _ACEOF 5826 _ACEOF
6476 rm -f conftest.$ac_objext conftest$ac_exeext 5827 if ac_fn_c_try_link "$LINENO"; then :
6477 if { (ac_try="$ac_link"
6478 case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6483 $as_echo "$ac_try_echo") >&5
6484 (eval "$ac_link") 2>conftest.er1
6485 ac_status=$?
6486 grep -v '^ *+' conftest.er1 >conftest.err
6487 rm -f conftest.er1
6488 cat conftest.err >&5
6489 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6490 (exit $ac_status); } && {
6491 test -z "$ac_c_werror_flag" ||
6492 test ! -s conftest.err
6493 } && test -s conftest$ac_exeext && {
6494 test "$cross_compiling" = yes ||
6495 $as_test_x conftest$ac_exeext
6496 }; then
6497 ac_cv_lib_ossaudio__oss_ioctl=yes 5828 ac_cv_lib_ossaudio__oss_ioctl=yes
6498 else 5829 else
6499 $as_echo "$as_me: failed program was:" >&5 5830 ac_cv_lib_ossaudio__oss_ioctl=no
6500 sed 's/^/| /' conftest.$ac_ext >&5 5831 fi
6501 5832 rm -f core conftest.err conftest.$ac_objext \
6502 ac_cv_lib_ossaudio__oss_ioctl=no 5833 conftest$ac_exeext conftest.$ac_ext
6503 fi
6504
6505 rm -rf conftest.dSYM
6506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6507 conftest$ac_exeext conftest.$ac_ext
6508 LIBS=$ac_check_lib_save_LIBS 5834 LIBS=$ac_check_lib_save_LIBS
6509 fi 5835 fi
6510 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5 5836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6511 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; } 5837 $as_echo "$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6512 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then 5838 if test "x$ac_cv_lib_ossaudio__oss_ioctl" = x""yes; then :
6513 LIBSOUND=-lossaudio 5839 LIBSOUND=-lossaudio
6514 else 5840 else
6515 LIBSOUND= 5841 LIBSOUND=
6516 fi 5842 fi
6517 5843
6522 5848
6523 succeeded=no 5849 succeeded=no
6524 5850
6525 # Extract the first word of "pkg-config", so it can be a program name with args. 5851 # Extract the first word of "pkg-config", so it can be a program name with args.
6526 set dummy pkg-config; ac_word=$2 5852 set dummy pkg-config; ac_word=$2
6527 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 5853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6528 $as_echo_n "checking for $ac_word... " >&6; } 5854 $as_echo_n "checking for $ac_word... " >&6; }
6529 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 5855 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6530 $as_echo_n "(cached) " >&6 5856 $as_echo_n "(cached) " >&6
6531 else 5857 else
6532 case $PKG_CONFIG in 5858 case $PKG_CONFIG in
6533 [\\/]* | ?:[\\/]*) 5859 [\\/]* | ?:[\\/]*)
6534 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 5860 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6538 for as_dir in $PATH 5864 for as_dir in $PATH
6539 do 5865 do
6540 IFS=$as_save_IFS 5866 IFS=$as_save_IFS
6541 test -z "$as_dir" && as_dir=. 5867 test -z "$as_dir" && as_dir=.
6542 for ac_exec_ext in '' $ac_executable_extensions; do 5868 for ac_exec_ext in '' $ac_executable_extensions; do
6543 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6544 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 5870 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6545 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6546 break 2 5872 break 2
6547 fi 5873 fi
6548 done 5874 done
6549 done 5875 done
6550 IFS=$as_save_IFS 5876 IFS=$as_save_IFS
6551 5877
6552 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 5878 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6553 ;; 5879 ;;
6554 esac 5880 esac
6555 fi 5881 fi
6556 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 5882 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6557 if test -n "$PKG_CONFIG"; then 5883 if test -n "$PKG_CONFIG"; then
6558 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6559 $as_echo "$PKG_CONFIG" >&6; } 5885 $as_echo "$PKG_CONFIG" >&6; }
6560 else 5886 else
6561 { $as_echo "$as_me:$LINENO: result: no" >&5 5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6562 $as_echo "no" >&6; } 5888 $as_echo "no" >&6; }
6563 fi 5889 fi
6564 5890
6565 5891
6566 5892
6567 if test "$PKG_CONFIG" = "no" ; then 5893 if test "$PKG_CONFIG" = "no" ; then
6568 HAVE_ALSA=no 5894 HAVE_ALSA=no
6569 else 5895 else
6570 PKG_CONFIG_MIN_VERSION=0.9.0 5896 PKG_CONFIG_MIN_VERSION=0.9.0
6571 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 5897 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6572 { $as_echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5 5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ALSA_MODULES" >&5
6573 $as_echo_n "checking for $ALSA_MODULES... " >&6; } 5899 $as_echo_n "checking for $ALSA_MODULES... " >&6; }
6574 5900
6575 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then 5901 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6576 { $as_echo "$as_me:$LINENO: result: yes" >&5 5902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6577 $as_echo "yes" >&6; } 5903 $as_echo "yes" >&6; }
6578 succeeded=yes 5904 succeeded=yes
6579 5905
6580 { $as_echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5 5906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_CFLAGS" >&5
6581 $as_echo_n "checking ALSA_CFLAGS... " >&6; } 5907 $as_echo_n "checking ALSA_CFLAGS... " >&6; }
6582 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'` 5908 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6583 { $as_echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5 5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_CFLAGS" >&5
6584 $as_echo "$ALSA_CFLAGS" >&6; } 5910 $as_echo "$ALSA_CFLAGS" >&6; }
6585 5911
6586 { $as_echo "$as_me:$LINENO: checking ALSA_LIBS" >&5 5912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking ALSA_LIBS" >&5
6587 $as_echo_n "checking ALSA_LIBS... " >&6; } 5913 $as_echo_n "checking ALSA_LIBS... " >&6; }
6588 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'` 5914 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6589 { $as_echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5 5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALSA_LIBS" >&5
6590 $as_echo "$ALSA_LIBS" >&6; } 5916 $as_echo "$ALSA_LIBS" >&6; }
6591 else 5917 else
6592 { $as_echo "$as_me:$LINENO: result: no" >&5 5918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6593 $as_echo "no" >&6; } 5919 $as_echo "no" >&6; }
6594 ALSA_CFLAGS="" 5920 ALSA_CFLAGS=""
6595 ALSA_LIBS="" 5921 ALSA_LIBS=""
6596 ## If we have a custom action on failure, don't print errors, but 5922 ## If we have a custom action on failure, don't print errors, but
6597 ## do set a variable so people can do so. 5923 ## do set a variable so people can do so.
6616 if test $HAVE_ALSA = yes; then 5942 if test $HAVE_ALSA = yes; then
6617 SAVE_CFLAGS="$CFLAGS" 5943 SAVE_CFLAGS="$CFLAGS"
6618 SAVE_LDFLAGS="$LDFLAGS" 5944 SAVE_LDFLAGS="$LDFLAGS"
6619 CFLAGS="$ALSA_CFLAGS $CFLAGS" 5945 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6620 LDFLAGS="$ALSA_LIBS $LDFLAGS" 5946 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6621 cat >conftest.$ac_ext <<_ACEOF 5947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6622 /* confdefs.h. */
6623 _ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */ 5948 /* end confdefs.h. */
6627 #include <asoundlib.h> 5949 #include <asoundlib.h>
6628 int 5950 int
6629 main () 5951 main ()
6630 { 5952 {
6631 snd_lib_error_set_handler (0); 5953 snd_lib_error_set_handler (0);
6632 ; 5954 ;
6633 return 0; 5955 return 0;
6634 } 5956 }
6635 _ACEOF 5957 _ACEOF
6636 rm -f conftest.$ac_objext 5958 if ac_fn_c_try_compile "$LINENO"; then :
6637 if { (ac_try="$ac_compile"
6638 case "(($ac_try" in
6639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6641 esac
6642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6643 $as_echo "$ac_try_echo") >&5
6644 (eval "$ac_compile") 2>conftest.er1
6645 ac_status=$?
6646 grep -v '^ *+' conftest.er1 >conftest.err
6647 rm -f conftest.er1
6648 cat conftest.err >&5
6649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6650 (exit $ac_status); } && {
6651 test -z "$ac_c_werror_flag" ||
6652 test ! -s conftest.err
6653 } && test -s conftest.$ac_objext; then
6654 emacs_alsa_normal=yes 5959 emacs_alsa_normal=yes
6655 else 5960 else
6656 $as_echo "$as_me: failed program was:" >&5 5961 emacs_alsa_normal=no
6657 sed 's/^/| /' conftest.$ac_ext >&5 5962 fi
6658
6659 emacs_alsa_normal=no
6660 fi
6661
6662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6663 if test "$emacs_alsa_normal" != yes; then 5964 if test "$emacs_alsa_normal" != yes; then
6664 cat >conftest.$ac_ext <<_ACEOF 5965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6665 /* confdefs.h. */
6666 _ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */ 5966 /* end confdefs.h. */
6670 #include <alsa/asoundlib.h> 5967 #include <alsa/asoundlib.h>
6671 int 5968 int
6672 main () 5969 main ()
6673 { 5970 {
6674 snd_lib_error_set_handler (0); 5971 snd_lib_error_set_handler (0);
6675 ; 5972 ;
6676 return 0; 5973 return 0;
6677 } 5974 }
6678 _ACEOF 5975 _ACEOF
6679 rm -f conftest.$ac_objext 5976 if ac_fn_c_try_compile "$LINENO"; then :
6680 if { (ac_try="$ac_compile"
6681 case "(($ac_try" in
6682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6683 *) ac_try_echo=$ac_try;;
6684 esac
6685 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6686 $as_echo "$ac_try_echo") >&5
6687 (eval "$ac_compile") 2>conftest.er1
6688 ac_status=$?
6689 grep -v '^ *+' conftest.er1 >conftest.err
6690 rm -f conftest.er1
6691 cat conftest.err >&5
6692 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6693 (exit $ac_status); } && {
6694 test -z "$ac_c_werror_flag" ||
6695 test ! -s conftest.err
6696 } && test -s conftest.$ac_objext; then
6697 emacs_alsa_subdir=yes 5977 emacs_alsa_subdir=yes
6698 else 5978 else
6699 $as_echo "$as_me: failed program was:" >&5 5979 emacs_alsa_subdir=no
6700 sed 's/^/| /' conftest.$ac_ext >&5 5980 fi
6701
6702 emacs_alsa_subdir=no
6703 fi
6704
6705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706 if test "$emacs_alsa_subdir" != yes; then 5982 if test "$emacs_alsa_subdir" != yes; then
6707 { { $as_echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5 5983 as_fn_error "pkg-config found alsa, but it does not compile. See config.log for error messages." "$LINENO" 5
6708 $as_echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6709 { (exit 1); exit 1; }; }
6710 fi 5984 fi
6711 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE" 5985 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6712 fi 5986 fi
6713 5987
6714 CFLAGS="$SAVE_CFLAGS" 5988 CFLAGS="$SAVE_CFLAGS"
6715 LDFLAGS="$SAVE_LDFLAGS" 5989 LDFLAGS="$SAVE_LDFLAGS"
6716 LIBSOUND="$LIBSOUND $ALSA_LIBS" 5990 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6717 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS" 5991 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6718 5992
6719 cat >>confdefs.h <<\_ACEOF 5993 $as_echo "#define HAVE_ALSA 1" >>confdefs.h
6720 #define HAVE_ALSA 1
6721 _ACEOF
6722 5994
6723 fi 5995 fi
6724 5996
6725 fi 5997 fi
6726
6727
6728
6729
6730
6731
6732
6733
6734
6735
6736
6737
6738
6739
6740
6741
6742
6743
6744
6745
6746
6747
6748
6749
6750
6751 5998
6752 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \ 5999 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6753 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \ 6000 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6754 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \ 6001 stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6755 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \ 6002 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6756 sys/utsname.h pwd.h utmp.h 6003 sys/utsname.h pwd.h utmp.h
6757 do 6004 do :
6758 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6005 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6006 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6760 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6007 eval as_val=\$$as_ac_Header
6761 $as_echo_n "checking for $ac_header... " >&6; } 6008 if test "x$as_val" = x""yes; then :
6762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6763 $as_echo_n "(cached) " >&6
6764 fi
6765 ac_res=`eval 'as_val=${'$as_ac_Header'}
6766 $as_echo "$as_val"'`
6767 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6768 $as_echo "$ac_res" >&6; }
6769 else
6770 # Is the header compilable?
6771 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
6772 $as_echo_n "checking $ac_header usability... " >&6; }
6773 cat >conftest.$ac_ext <<_ACEOF
6774 /* confdefs.h. */
6775 _ACEOF
6776 cat confdefs.h >>conftest.$ac_ext
6777 cat >>conftest.$ac_ext <<_ACEOF
6778 /* end confdefs.h. */
6779 $ac_includes_default
6780 #include <$ac_header>
6781 _ACEOF
6782 rm -f conftest.$ac_objext
6783 if { (ac_try="$ac_compile"
6784 case "(($ac_try" in
6785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6786 *) ac_try_echo=$ac_try;;
6787 esac
6788 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6789 $as_echo "$ac_try_echo") >&5
6790 (eval "$ac_compile") 2>conftest.er1
6791 ac_status=$?
6792 grep -v '^ *+' conftest.er1 >conftest.err
6793 rm -f conftest.er1
6794 cat conftest.err >&5
6795 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6796 (exit $ac_status); } && {
6797 test -z "$ac_c_werror_flag" ||
6798 test ! -s conftest.err
6799 } && test -s conftest.$ac_objext; then
6800 ac_header_compiler=yes
6801 else
6802 $as_echo "$as_me: failed program was:" >&5
6803 sed 's/^/| /' conftest.$ac_ext >&5
6804
6805 ac_header_compiler=no
6806 fi
6807
6808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6809 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6810 $as_echo "$ac_header_compiler" >&6; }
6811
6812 # Is the header present?
6813 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
6814 $as_echo_n "checking $ac_header presence... " >&6; }
6815 cat >conftest.$ac_ext <<_ACEOF
6816 /* confdefs.h. */
6817 _ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6821 #include <$ac_header>
6822 _ACEOF
6823 if { (ac_try="$ac_cpp conftest.$ac_ext"
6824 case "(($ac_try" in
6825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6826 *) ac_try_echo=$ac_try;;
6827 esac
6828 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6829 $as_echo "$ac_try_echo") >&5
6830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6831 ac_status=$?
6832 grep -v '^ *+' conftest.er1 >conftest.err
6833 rm -f conftest.er1
6834 cat conftest.err >&5
6835 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6836 (exit $ac_status); } >/dev/null && {
6837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6838 test ! -s conftest.err
6839 }; then
6840 ac_header_preproc=yes
6841 else
6842 $as_echo "$as_me: failed program was:" >&5
6843 sed 's/^/| /' conftest.$ac_ext >&5
6844
6845 ac_header_preproc=no
6846 fi
6847
6848 rm -f conftest.err conftest.$ac_ext
6849 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6850 $as_echo "$ac_header_preproc" >&6; }
6851
6852 # So? What about this header?
6853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6854 yes:no: )
6855 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6856 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6857 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6858 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6859 ac_header_preproc=yes
6860 ;;
6861 no:yes:* )
6862 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6863 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6864 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6865 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6866 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6867 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6868 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6869 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6870 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6871 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6872 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6873 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6874
6875 ;;
6876 esac
6877 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
6878 $as_echo_n "checking for $ac_header... " >&6; }
6879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6880 $as_echo_n "(cached) " >&6
6881 else
6882 eval "$as_ac_Header=\$ac_header_preproc"
6883 fi
6884 ac_res=`eval 'as_val=${'$as_ac_Header'}
6885 $as_echo "$as_val"'`
6886 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
6887 $as_echo "$ac_res" >&6; }
6888
6889 fi
6890 if test `eval 'as_val=${'$as_ac_Header'}
6891 $as_echo "$as_val"'` = yes; then
6892 cat >>confdefs.h <<_ACEOF 6009 cat >>confdefs.h <<_ACEOF
6893 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6894 _ACEOF 6011 _ACEOF
6895 6012
6896 fi 6013 fi
6897 6014
6898 done 6015 done
6899 6016
6900 6017
6901 { $as_echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5 6018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if personality LINUX32 can be set" >&5
6902 $as_echo_n "checking if personality LINUX32 can be set... " >&6; } 6019 $as_echo_n "checking if personality LINUX32 can be set... " >&6; }
6903 cat >conftest.$ac_ext <<_ACEOF 6020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6904 /* confdefs.h. */
6905 _ACEOF
6906 cat confdefs.h >>conftest.$ac_ext
6907 cat >>conftest.$ac_ext <<_ACEOF
6908 /* end confdefs.h. */ 6021 /* end confdefs.h. */
6909 #include <sys/personality.h> 6022 #include <sys/personality.h>
6910 int 6023 int
6911 main () 6024 main ()
6912 { 6025 {
6913 personality (PER_LINUX32) 6026 personality (PER_LINUX32)
6914 ; 6027 ;
6915 return 0; 6028 return 0;
6916 } 6029 }
6917 _ACEOF 6030 _ACEOF
6918 rm -f conftest.$ac_objext 6031 if ac_fn_c_try_compile "$LINENO"; then :
6919 if { (ac_try="$ac_compile"
6920 case "(($ac_try" in
6921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6922 *) ac_try_echo=$ac_try;;
6923 esac
6924 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6925 $as_echo "$ac_try_echo") >&5
6926 (eval "$ac_compile") 2>conftest.er1
6927 ac_status=$?
6928 grep -v '^ *+' conftest.er1 >conftest.err
6929 rm -f conftest.er1
6930 cat conftest.err >&5
6931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); } && {
6933 test -z "$ac_c_werror_flag" ||
6934 test ! -s conftest.err
6935 } && test -s conftest.$ac_objext; then
6936 emacs_cv_personality_linux32=yes 6032 emacs_cv_personality_linux32=yes
6937 else 6033 else
6938 $as_echo "$as_me: failed program was:" >&5 6034 emacs_cv_personality_linux32=no
6939 sed 's/^/| /' conftest.$ac_ext >&5 6035 fi
6940
6941 emacs_cv_personality_linux32=no
6942 fi
6943
6944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6945 { $as_echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_personality_linux32" >&5
6946 $as_echo "$emacs_cv_personality_linux32" >&6; } 6038 $as_echo "$emacs_cv_personality_linux32" >&6; }
6947 6039
6948 if test $emacs_cv_personality_linux32 = yes; then 6040 if test $emacs_cv_personality_linux32 = yes; then
6949 6041
6950 cat >>confdefs.h <<\_ACEOF 6042 $as_echo "#define HAVE_PERSONALITY_LINUX32 1" >>confdefs.h
6951 #define HAVE_PERSONALITY_LINUX32 1 6043
6952 _ACEOF 6044 fi
6953
6954 fi
6955
6956 6045
6957 for ac_header in term.h 6046 for ac_header in term.h
6958 do 6047 do :
6959 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6048 ac_fn_c_check_header_preproc "$LINENO" "term.h" "ac_cv_header_term_h"
6960 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 6049 if test "x$ac_cv_header_term_h" = x""yes; then :
6961 $as_echo_n "checking for $ac_header... " >&6; } 6050 cat >>confdefs.h <<_ACEOF
6962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6051 #define HAVE_TERM_H 1
6052 _ACEOF
6053
6054 fi
6055
6056 done
6057
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6059 $as_echo_n "checking for ANSI C header files... " >&6; }
6060 if test "${ac_cv_header_stdc+set}" = set; then :
6963 $as_echo_n "(cached) " >&6 6061 $as_echo_n "(cached) " >&6
6964 else 6062 else
6965 cat >conftest.$ac_ext <<_ACEOF 6063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* confdefs.h. */
6967 _ACEOF
6968 cat confdefs.h >>conftest.$ac_ext
6969 cat >>conftest.$ac_ext <<_ACEOF
6970 /* end confdefs.h. */
6971 #include <$ac_header>
6972 _ACEOF
6973 if { (ac_try="$ac_cpp conftest.$ac_ext"
6974 case "(($ac_try" in
6975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6976 *) ac_try_echo=$ac_try;;
6977 esac
6978 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6979 $as_echo "$ac_try_echo") >&5
6980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6981 ac_status=$?
6982 grep -v '^ *+' conftest.er1 >conftest.err
6983 rm -f conftest.er1
6984 cat conftest.err >&5
6985 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6986 (exit $ac_status); } >/dev/null && {
6987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6988 test ! -s conftest.err
6989 }; then
6990 eval "$as_ac_Header=yes"
6991 else
6992 $as_echo "$as_me: failed program was:" >&5
6993 sed 's/^/| /' conftest.$ac_ext >&5
6994
6995 eval "$as_ac_Header=no"
6996 fi
6997
6998 rm -f conftest.err conftest.$ac_ext
6999 fi
7000 ac_res=`eval 'as_val=${'$as_ac_Header'}
7001 $as_echo "$as_val"'`
7002 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7003 $as_echo "$ac_res" >&6; }
7004 if test `eval 'as_val=${'$as_ac_Header'}
7005 $as_echo "$as_val"'` = yes; then
7006 cat >>confdefs.h <<_ACEOF
7007 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7008 _ACEOF
7009
7010 fi
7011
7012 done
7013
7014 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7015 $as_echo_n "checking for ANSI C header files... " >&6; }
7016 if test "${ac_cv_header_stdc+set}" = set; then
7017 $as_echo_n "(cached) " >&6
7018 else
7019 cat >conftest.$ac_ext <<_ACEOF
7020 /* confdefs.h. */
7021 _ACEOF
7022 cat confdefs.h >>conftest.$ac_ext
7023 cat >>conftest.$ac_ext <<_ACEOF
7024 /* end confdefs.h. */ 6064 /* end confdefs.h. */
7025 #include <stdlib.h> 6065 #include <stdlib.h>
7026 #include <stdarg.h> 6066 #include <stdarg.h>
7027 #include <string.h> 6067 #include <string.h>
7028 #include <float.h> 6068 #include <float.h>
7033 6073
7034 ; 6074 ;
7035 return 0; 6075 return 0;
7036 } 6076 }
7037 _ACEOF 6077 _ACEOF
7038 rm -f conftest.$ac_objext 6078 if ac_fn_c_try_compile "$LINENO"; then :
7039 if { (ac_try="$ac_compile"
7040 case "(($ac_try" in
7041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7042 *) ac_try_echo=$ac_try;;
7043 esac
7044 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7045 $as_echo "$ac_try_echo") >&5
7046 (eval "$ac_compile") 2>conftest.er1
7047 ac_status=$?
7048 grep -v '^ *+' conftest.er1 >conftest.err
7049 rm -f conftest.er1
7050 cat conftest.err >&5
7051 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } && {
7053 test -z "$ac_c_werror_flag" ||
7054 test ! -s conftest.err
7055 } && test -s conftest.$ac_objext; then
7056 ac_cv_header_stdc=yes 6079 ac_cv_header_stdc=yes
7057 else 6080 else
7058 $as_echo "$as_me: failed program was:" >&5 6081 ac_cv_header_stdc=no
7059 sed 's/^/| /' conftest.$ac_ext >&5 6082 fi
7060
7061 ac_cv_header_stdc=no
7062 fi
7063
7064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7065 6084
7066 if test $ac_cv_header_stdc = yes; then 6085 if test $ac_cv_header_stdc = yes; then
7067 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 6086 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7068 cat >conftest.$ac_ext <<_ACEOF 6087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7069 /* confdefs.h. */
7070 _ACEOF
7071 cat confdefs.h >>conftest.$ac_ext
7072 cat >>conftest.$ac_ext <<_ACEOF
7073 /* end confdefs.h. */ 6088 /* end confdefs.h. */
7074 #include <string.h> 6089 #include <string.h>
7075 6090
7076 _ACEOF 6091 _ACEOF
7077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7078 $EGREP "memchr" >/dev/null 2>&1; then 6093 $EGREP "memchr" >/dev/null 2>&1; then :
7079 : 6094
7080 else 6095 else
7081 ac_cv_header_stdc=no 6096 ac_cv_header_stdc=no
7082 fi 6097 fi
7083 rm -f conftest* 6098 rm -f conftest*
7084 6099
7085 fi 6100 fi
7086 6101
7087 if test $ac_cv_header_stdc = yes; then 6102 if test $ac_cv_header_stdc = yes; then
7088 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 6103 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7089 cat >conftest.$ac_ext <<_ACEOF 6104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7090 /* confdefs.h. */
7091 _ACEOF
7092 cat confdefs.h >>conftest.$ac_ext
7093 cat >>conftest.$ac_ext <<_ACEOF
7094 /* end confdefs.h. */ 6105 /* end confdefs.h. */
7095 #include <stdlib.h> 6106 #include <stdlib.h>
7096 6107
7097 _ACEOF 6108 _ACEOF
7098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 6109 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099 $EGREP "free" >/dev/null 2>&1; then 6110 $EGREP "free" >/dev/null 2>&1; then :
7100 : 6111
7101 else 6112 else
7102 ac_cv_header_stdc=no 6113 ac_cv_header_stdc=no
7103 fi 6114 fi
7104 rm -f conftest* 6115 rm -f conftest*
7105 6116
7106 fi 6117 fi
7107 6118
7108 if test $ac_cv_header_stdc = yes; then 6119 if test $ac_cv_header_stdc = yes; then
7109 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 6120 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7110 if test "$cross_compiling" = yes; then 6121 if test "$cross_compiling" = yes; then :
7111 : 6122 :
7112 else 6123 else
7113 cat >conftest.$ac_ext <<_ACEOF 6124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7114 /* confdefs.h. */
7115 _ACEOF
7116 cat confdefs.h >>conftest.$ac_ext
7117 cat >>conftest.$ac_ext <<_ACEOF
7118 /* end confdefs.h. */ 6125 /* end confdefs.h. */
7119 #include <ctype.h> 6126 #include <ctype.h>
7120 #include <stdlib.h> 6127 #include <stdlib.h>
7121 #if ((' ' & 0x0FF) == 0x020) 6128 #if ((' ' & 0x0FF) == 0x020)
7122 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 6129 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7139 || toupper (i) != TOUPPER (i)) 6146 || toupper (i) != TOUPPER (i))
7140 return 2; 6147 return 2;
7141 return 0; 6148 return 0;
7142 } 6149 }
7143 _ACEOF 6150 _ACEOF
7144 rm -f conftest$ac_exeext 6151 if ac_fn_c_try_run "$LINENO"; then :
7145 if { (ac_try="$ac_link" 6152
7146 case "(($ac_try" in 6153 else
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6154 ac_cv_header_stdc=no
7148 *) ac_try_echo=$ac_try;; 6155 fi
7149 esac 6156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7150 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 6157 conftest.$ac_objext conftest.beam conftest.$ac_ext
7151 $as_echo "$ac_try_echo") >&5 6158 fi
7152 (eval "$ac_link") 2>&5 6159
7153 ac_status=$? 6160 fi
7154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5 6161 fi
7155 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 6162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7156 { (case "(($ac_try" in
7157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7158 *) ac_try_echo=$ac_try;;
7159 esac
7160 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7161 $as_echo "$ac_try_echo") >&5
7162 (eval "$ac_try") 2>&5
7163 ac_status=$?
7164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); }; }; then
7166 :
7167 else
7168 $as_echo "$as_me: program exited with status $ac_status" >&5
7169 $as_echo "$as_me: failed program was:" >&5
7170 sed 's/^/| /' conftest.$ac_ext >&5
7171
7172 ( exit $ac_status )
7173 ac_cv_header_stdc=no
7174 fi
7175 rm -rf conftest.dSYM
7176 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7177 fi
7178
7179
7180 fi
7181 fi
7182 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7183 $as_echo "$ac_cv_header_stdc" >&6; } 6163 $as_echo "$ac_cv_header_stdc" >&6; }
7184 if test $ac_cv_header_stdc = yes; then 6164 if test $ac_cv_header_stdc = yes; then
7185 6165
7186 cat >>confdefs.h <<\_ACEOF 6166 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7187 #define STDC_HEADERS 1 6167
7188 _ACEOF 6168 fi
7189 6169
7190 fi 6170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
7191
7192 { $as_echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7193 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 6171 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
7194 if test "${ac_cv_header_time+set}" = set; then 6172 if test "${ac_cv_header_time+set}" = set; then :
7195 $as_echo_n "(cached) " >&6 6173 $as_echo_n "(cached) " >&6
7196 else 6174 else
7197 cat >conftest.$ac_ext <<_ACEOF 6175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* confdefs.h. */
7199 _ACEOF
7200 cat confdefs.h >>conftest.$ac_ext
7201 cat >>conftest.$ac_ext <<_ACEOF
7202 /* end confdefs.h. */ 6176 /* end confdefs.h. */
7203 #include <sys/types.h> 6177 #include <sys/types.h>
7204 #include <sys/time.h> 6178 #include <sys/time.h>
7205 #include <time.h> 6179 #include <time.h>
7206 6180
7211 return 0; 6185 return 0;
7212 ; 6186 ;
7213 return 0; 6187 return 0;
7214 } 6188 }
7215 _ACEOF 6189 _ACEOF
7216 rm -f conftest.$ac_objext 6190 if ac_fn_c_try_compile "$LINENO"; then :
7217 if { (ac_try="$ac_compile"
7218 case "(($ac_try" in
7219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7220 *) ac_try_echo=$ac_try;;
7221 esac
7222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7223 $as_echo "$ac_try_echo") >&5
7224 (eval "$ac_compile") 2>conftest.er1
7225 ac_status=$?
7226 grep -v '^ *+' conftest.er1 >conftest.err
7227 rm -f conftest.er1
7228 cat conftest.err >&5
7229 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } && {
7231 test -z "$ac_c_werror_flag" ||
7232 test ! -s conftest.err
7233 } && test -s conftest.$ac_objext; then
7234 ac_cv_header_time=yes 6191 ac_cv_header_time=yes
7235 else 6192 else
7236 $as_echo "$as_me: failed program was:" >&5 6193 ac_cv_header_time=no
7237 sed 's/^/| /' conftest.$ac_ext >&5 6194 fi
7238
7239 ac_cv_header_time=no
7240 fi
7241
7242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 fi 6196 fi
7244 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
7245 $as_echo "$ac_cv_header_time" >&6; } 6198 $as_echo "$ac_cv_header_time" >&6; }
7246 if test $ac_cv_header_time = yes; then 6199 if test $ac_cv_header_time = yes; then
7247 6200
7248 cat >>confdefs.h <<\_ACEOF 6201 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
7249 #define TIME_WITH_SYS_TIME 1 6202
7250 _ACEOF 6203 fi
7251 6204
7252 fi 6205 ac_fn_c_check_decl "$LINENO" "sys_siglist" "ac_cv_have_decl_sys_siglist" "$ac_includes_default"
7253 6206 if test "x$ac_cv_have_decl_sys_siglist" = x""yes; then :
7254 { $as_echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5 6207 ac_have_decl=1
7255 $as_echo_n "checking whether sys_siglist is declared... " >&6; } 6208 else
7256 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then 6209 ac_have_decl=0
7257 $as_echo_n "(cached) " >&6 6210 fi
7258 else
7259 cat >conftest.$ac_ext <<_ACEOF
7260 /* confdefs.h. */
7261 _ACEOF
7262 cat confdefs.h >>conftest.$ac_ext
7263 cat >>conftest.$ac_ext <<_ACEOF
7264 /* end confdefs.h. */
7265 $ac_includes_default
7266 int
7267 main ()
7268 {
7269 #ifndef sys_siglist
7270 (void) sys_siglist;
7271 #endif
7272
7273 ;
7274 return 0;
7275 }
7276 _ACEOF
7277 rm -f conftest.$ac_objext
7278 if { (ac_try="$ac_compile"
7279 case "(($ac_try" in
7280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7281 *) ac_try_echo=$ac_try;;
7282 esac
7283 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7284 $as_echo "$ac_try_echo") >&5
7285 (eval "$ac_compile") 2>conftest.er1
7286 ac_status=$?
7287 grep -v '^ *+' conftest.er1 >conftest.err
7288 rm -f conftest.er1
7289 cat conftest.err >&5
7290 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7291 (exit $ac_status); } && {
7292 test -z "$ac_c_werror_flag" ||
7293 test ! -s conftest.err
7294 } && test -s conftest.$ac_objext; then
7295 ac_cv_have_decl_sys_siglist=yes
7296 else
7297 $as_echo "$as_me: failed program was:" >&5
7298 sed 's/^/| /' conftest.$ac_ext >&5
7299
7300 ac_cv_have_decl_sys_siglist=no
7301 fi
7302
7303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7304 fi
7305 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7306 $as_echo "$ac_cv_have_decl_sys_siglist" >&6; }
7307 if test $ac_cv_have_decl_sys_siglist = yes; then
7308 6211
7309 cat >>confdefs.h <<_ACEOF 6212 cat >>confdefs.h <<_ACEOF
7310 #define HAVE_DECL_SYS_SIGLIST 1 6213 #define HAVE_DECL_SYS_SIGLIST $ac_have_decl
7311 _ACEOF 6214 _ACEOF
7312
7313
7314 else
7315 cat >>confdefs.h <<_ACEOF
7316 #define HAVE_DECL_SYS_SIGLIST 0
7317 _ACEOF
7318
7319
7320 fi
7321
7322 6215
7323 if test $ac_cv_have_decl_sys_siglist != yes; then 6216 if test $ac_cv_have_decl_sys_siglist != yes; then
7324 # For Tru64, at least: 6217 # For Tru64, at least:
7325 { $as_echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5 6218 ac_fn_c_check_decl "$LINENO" "__sys_siglist" "ac_cv_have_decl___sys_siglist" "$ac_includes_default"
7326 $as_echo_n "checking whether __sys_siglist is declared... " >&6; } 6219 if test "x$ac_cv_have_decl___sys_siglist" = x""yes; then :
7327 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then 6220 ac_have_decl=1
6221 else
6222 ac_have_decl=0
6223 fi
6224
6225 cat >>confdefs.h <<_ACEOF
6226 #define HAVE_DECL___SYS_SIGLIST $ac_have_decl
6227 _ACEOF
6228
6229 if test $ac_cv_have_decl___sys_siglist = yes; then
6230
6231 $as_echo "#define sys_siglist __sys_siglist" >>confdefs.h
6232
6233 fi
6234 fi
6235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6236 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6237 if test "${ac_cv_header_sys_wait_h+set}" = set; then :
7328 $as_echo_n "(cached) " >&6 6238 $as_echo_n "(cached) " >&6
7329 else 6239 else
7330 cat >conftest.$ac_ext <<_ACEOF 6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7331 /* confdefs.h. */
7332 _ACEOF
7333 cat confdefs.h >>conftest.$ac_ext
7334 cat >>conftest.$ac_ext <<_ACEOF
7335 /* end confdefs.h. */
7336 $ac_includes_default
7337 int
7338 main ()
7339 {
7340 #ifndef __sys_siglist
7341 (void) __sys_siglist;
7342 #endif
7343
7344 ;
7345 return 0;
7346 }
7347 _ACEOF
7348 rm -f conftest.$ac_objext
7349 if { (ac_try="$ac_compile"
7350 case "(($ac_try" in
7351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7352 *) ac_try_echo=$ac_try;;
7353 esac
7354 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7355 $as_echo "$ac_try_echo") >&5
7356 (eval "$ac_compile") 2>conftest.er1
7357 ac_status=$?
7358 grep -v '^ *+' conftest.er1 >conftest.err
7359 rm -f conftest.er1
7360 cat conftest.err >&5
7361 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7362 (exit $ac_status); } && {
7363 test -z "$ac_c_werror_flag" ||
7364 test ! -s conftest.err
7365 } && test -s conftest.$ac_objext; then
7366 ac_cv_have_decl___sys_siglist=yes
7367 else
7368 $as_echo "$as_me: failed program was:" >&5
7369 sed 's/^/| /' conftest.$ac_ext >&5
7370
7371 ac_cv_have_decl___sys_siglist=no
7372 fi
7373
7374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7375 fi
7376 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7377 $as_echo "$ac_cv_have_decl___sys_siglist" >&6; }
7378 if test $ac_cv_have_decl___sys_siglist = yes; then
7379
7380 cat >>confdefs.h <<_ACEOF
7381 #define HAVE_DECL___SYS_SIGLIST 1
7382 _ACEOF
7383
7384
7385 else
7386 cat >>confdefs.h <<_ACEOF
7387 #define HAVE_DECL___SYS_SIGLIST 0
7388 _ACEOF
7389
7390
7391 fi
7392
7393
7394 if test $ac_cv_have_decl___sys_siglist = yes; then
7395
7396 cat >>confdefs.h <<\_ACEOF
7397 #define sys_siglist __sys_siglist
7398 _ACEOF
7399
7400 fi
7401 fi
7402 { $as_echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7403 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
7404 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7405 $as_echo_n "(cached) " >&6
7406 else
7407 cat >conftest.$ac_ext <<_ACEOF
7408 /* confdefs.h. */
7409 _ACEOF
7410 cat confdefs.h >>conftest.$ac_ext
7411 cat >>conftest.$ac_ext <<_ACEOF
7412 /* end confdefs.h. */ 6241 /* end confdefs.h. */
7413 #include <sys/types.h> 6242 #include <sys/types.h>
7414 #include <sys/wait.h> 6243 #include <sys/wait.h>
7415 #ifndef WEXITSTATUS 6244 #ifndef WEXITSTATUS
7416 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 6245 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7427 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 6256 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7428 ; 6257 ;
7429 return 0; 6258 return 0;
7430 } 6259 }
7431 _ACEOF 6260 _ACEOF
7432 rm -f conftest.$ac_objext 6261 if ac_fn_c_try_compile "$LINENO"; then :
7433 if { (ac_try="$ac_compile"
7434 case "(($ac_try" in
7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7437 esac
7438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7439 $as_echo "$ac_try_echo") >&5
7440 (eval "$ac_compile") 2>conftest.er1
7441 ac_status=$?
7442 grep -v '^ *+' conftest.er1 >conftest.err
7443 rm -f conftest.er1
7444 cat conftest.err >&5
7445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } && {
7447 test -z "$ac_c_werror_flag" ||
7448 test ! -s conftest.err
7449 } && test -s conftest.$ac_objext; then
7450 ac_cv_header_sys_wait_h=yes 6262 ac_cv_header_sys_wait_h=yes
7451 else 6263 else
7452 $as_echo "$as_me: failed program was:" >&5 6264 ac_cv_header_sys_wait_h=no
7453 sed 's/^/| /' conftest.$ac_ext >&5 6265 fi
7454
7455 ac_cv_header_sys_wait_h=no
7456 fi
7457
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 fi 6267 fi
7460 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
7461 $as_echo "$ac_cv_header_sys_wait_h" >&6; } 6269 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
7462 if test $ac_cv_header_sys_wait_h = yes; then 6270 if test $ac_cv_header_sys_wait_h = yes; then
7463 6271
7464 cat >>confdefs.h <<\_ACEOF 6272 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
7465 #define HAVE_SYS_WAIT_H 1 6273
7466 _ACEOF 6274 fi
7467 6275
7468 fi 6276
7469 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct utimbuf" >&5
7470
7471 { $as_echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7472 $as_echo_n "checking for struct utimbuf... " >&6; } 6278 $as_echo_n "checking for struct utimbuf... " >&6; }
7473 if test "${emacs_cv_struct_utimbuf+set}" = set; then 6279 if test "${emacs_cv_struct_utimbuf+set}" = set; then :
7474 $as_echo_n "(cached) " >&6 6280 $as_echo_n "(cached) " >&6
7475 else 6281 else
7476 cat >conftest.$ac_ext <<_ACEOF 6282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7477 /* confdefs.h. */
7478 _ACEOF
7479 cat confdefs.h >>conftest.$ac_ext
7480 cat >>conftest.$ac_ext <<_ACEOF
7481 /* end confdefs.h. */ 6283 /* end confdefs.h. */
7482 #ifdef TIME_WITH_SYS_TIME 6284 #ifdef TIME_WITH_SYS_TIME
7483 #include <sys/time.h> 6285 #include <sys/time.h>
7484 #include <time.h> 6286 #include <time.h>
7485 #else 6287 #else
7498 static struct utimbuf x; x.actime = x.modtime; 6300 static struct utimbuf x; x.actime = x.modtime;
7499 ; 6301 ;
7500 return 0; 6302 return 0;
7501 } 6303 }
7502 _ACEOF 6304 _ACEOF
7503 rm -f conftest.$ac_objext 6305 if ac_fn_c_try_compile "$LINENO"; then :
7504 if { (ac_try="$ac_compile"
7505 case "(($ac_try" in
7506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7507 *) ac_try_echo=$ac_try;;
7508 esac
7509 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7510 $as_echo "$ac_try_echo") >&5
7511 (eval "$ac_compile") 2>conftest.er1
7512 ac_status=$?
7513 grep -v '^ *+' conftest.er1 >conftest.err
7514 rm -f conftest.er1
7515 cat conftest.err >&5
7516 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7517 (exit $ac_status); } && {
7518 test -z "$ac_c_werror_flag" ||
7519 test ! -s conftest.err
7520 } && test -s conftest.$ac_objext; then
7521 emacs_cv_struct_utimbuf=yes 6306 emacs_cv_struct_utimbuf=yes
7522 else 6307 else
7523 $as_echo "$as_me: failed program was:" >&5 6308 emacs_cv_struct_utimbuf=no
7524 sed 's/^/| /' conftest.$ac_ext >&5 6309 fi
7525
7526 emacs_cv_struct_utimbuf=no
7527 fi
7528
7529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7530 fi 6311 fi
7531 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5 6312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_utimbuf" >&5
7532 $as_echo "$emacs_cv_struct_utimbuf" >&6; } 6313 $as_echo "$emacs_cv_struct_utimbuf" >&6; }
7533 if test $emacs_cv_struct_utimbuf = yes; then 6314 if test $emacs_cv_struct_utimbuf = yes; then
7534 6315
7535 cat >>confdefs.h <<\_ACEOF 6316 $as_echo "#define HAVE_STRUCT_UTIMBUF 1" >>confdefs.h
7536 #define HAVE_STRUCT_UTIMBUF 1 6317
7537 _ACEOF 6318 fi
7538 6319
7539 fi 6320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
7540
7541 { $as_echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7542 $as_echo_n "checking return type of signal handlers... " >&6; } 6321 $as_echo_n "checking return type of signal handlers... " >&6; }
7543 if test "${ac_cv_type_signal+set}" = set; then 6322 if test "${ac_cv_type_signal+set}" = set; then :
7544 $as_echo_n "(cached) " >&6 6323 $as_echo_n "(cached) " >&6
7545 else 6324 else
7546 cat >conftest.$ac_ext <<_ACEOF 6325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7547 /* confdefs.h. */
7548 _ACEOF
7549 cat confdefs.h >>conftest.$ac_ext
7550 cat >>conftest.$ac_ext <<_ACEOF
7551 /* end confdefs.h. */ 6326 /* end confdefs.h. */
7552 #include <sys/types.h> 6327 #include <sys/types.h>
7553 #include <signal.h> 6328 #include <signal.h>
7554 6329
7555 int 6330 int
7558 return *(signal (0, 0)) (0) == 1; 6333 return *(signal (0, 0)) (0) == 1;
7559 ; 6334 ;
7560 return 0; 6335 return 0;
7561 } 6336 }
7562 _ACEOF 6337 _ACEOF
7563 rm -f conftest.$ac_objext 6338 if ac_fn_c_try_compile "$LINENO"; then :
7564 if { (ac_try="$ac_compile"
7565 case "(($ac_try" in
7566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7567 *) ac_try_echo=$ac_try;;
7568 esac
7569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7570 $as_echo "$ac_try_echo") >&5
7571 (eval "$ac_compile") 2>conftest.er1
7572 ac_status=$?
7573 grep -v '^ *+' conftest.er1 >conftest.err
7574 rm -f conftest.er1
7575 cat conftest.err >&5
7576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7577 (exit $ac_status); } && {
7578 test -z "$ac_c_werror_flag" ||
7579 test ! -s conftest.err
7580 } && test -s conftest.$ac_objext; then
7581 ac_cv_type_signal=int 6339 ac_cv_type_signal=int
7582 else 6340 else
7583 $as_echo "$as_me: failed program was:" >&5 6341 ac_cv_type_signal=void
7584 sed 's/^/| /' conftest.$ac_ext >&5 6342 fi
7585
7586 ac_cv_type_signal=void
7587 fi
7588
7589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7590 fi 6344 fi
7591 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
7592 $as_echo "$ac_cv_type_signal" >&6; } 6346 $as_echo "$ac_cv_type_signal" >&6; }
7593 6347
7594 cat >>confdefs.h <<_ACEOF 6348 cat >>confdefs.h <<_ACEOF
7595 #define RETSIGTYPE $ac_cv_type_signal 6349 #define RETSIGTYPE $ac_cv_type_signal
7596 _ACEOF 6350 _ACEOF
7597 6351
7598 6352
7599 6353
7600 { $as_echo "$as_me:$LINENO: checking for speed_t" >&5 6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for speed_t" >&5
7601 $as_echo_n "checking for speed_t... " >&6; } 6355 $as_echo_n "checking for speed_t... " >&6; }
7602 if test "${emacs_cv_speed_t+set}" = set; then 6356 if test "${emacs_cv_speed_t+set}" = set; then :
7603 $as_echo_n "(cached) " >&6 6357 $as_echo_n "(cached) " >&6
7604 else 6358 else
7605 cat >conftest.$ac_ext <<_ACEOF 6359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* confdefs.h. */
7607 _ACEOF
7608 cat confdefs.h >>conftest.$ac_ext
7609 cat >>conftest.$ac_ext <<_ACEOF
7610 /* end confdefs.h. */ 6360 /* end confdefs.h. */
7611 #include <termios.h> 6361 #include <termios.h>
7612 int 6362 int
7613 main () 6363 main ()
7614 { 6364 {
7615 speed_t x = 1; 6365 speed_t x = 1;
7616 ; 6366 ;
7617 return 0; 6367 return 0;
7618 } 6368 }
7619 _ACEOF 6369 _ACEOF
7620 rm -f conftest.$ac_objext 6370 if ac_fn_c_try_compile "$LINENO"; then :
7621 if { (ac_try="$ac_compile"
7622 case "(($ac_try" in
7623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7624 *) ac_try_echo=$ac_try;;
7625 esac
7626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7627 $as_echo "$ac_try_echo") >&5
7628 (eval "$ac_compile") 2>conftest.er1
7629 ac_status=$?
7630 grep -v '^ *+' conftest.er1 >conftest.err
7631 rm -f conftest.er1
7632 cat conftest.err >&5
7633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7634 (exit $ac_status); } && {
7635 test -z "$ac_c_werror_flag" ||
7636 test ! -s conftest.err
7637 } && test -s conftest.$ac_objext; then
7638 emacs_cv_speed_t=yes 6371 emacs_cv_speed_t=yes
7639 else 6372 else
7640 $as_echo "$as_me: failed program was:" >&5 6373 emacs_cv_speed_t=no
7641 sed 's/^/| /' conftest.$ac_ext >&5 6374 fi
7642
7643 emacs_cv_speed_t=no
7644 fi
7645
7646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7647 fi 6376 fi
7648 { $as_echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_speed_t" >&5
7649 $as_echo "$emacs_cv_speed_t" >&6; } 6378 $as_echo "$emacs_cv_speed_t" >&6; }
7650 if test $emacs_cv_speed_t = yes; then 6379 if test $emacs_cv_speed_t = yes; then
7651 6380
7652 cat >>confdefs.h <<\_ACEOF 6381 $as_echo "#define HAVE_SPEED_T 1" >>confdefs.h
7653 #define HAVE_SPEED_T 1 6382
7654 _ACEOF 6383 fi
7655 6384
7656 fi 6385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
7657
7658 { $as_echo "$as_me:$LINENO: checking for struct timeval" >&5
7659 $as_echo_n "checking for struct timeval... " >&6; } 6386 $as_echo_n "checking for struct timeval... " >&6; }
7660 if test "${emacs_cv_struct_timeval+set}" = set; then 6387 if test "${emacs_cv_struct_timeval+set}" = set; then :
7661 $as_echo_n "(cached) " >&6 6388 $as_echo_n "(cached) " >&6
7662 else 6389 else
7663 cat >conftest.$ac_ext <<_ACEOF 6390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7664 /* confdefs.h. */
7665 _ACEOF
7666 cat confdefs.h >>conftest.$ac_ext
7667 cat >>conftest.$ac_ext <<_ACEOF
7668 /* end confdefs.h. */ 6391 /* end confdefs.h. */
7669 #ifdef TIME_WITH_SYS_TIME 6392 #ifdef TIME_WITH_SYS_TIME
7670 #include <sys/time.h> 6393 #include <sys/time.h>
7671 #include <time.h> 6394 #include <time.h>
7672 #else 6395 #else
7682 static struct timeval x; x.tv_sec = x.tv_usec; 6405 static struct timeval x; x.tv_sec = x.tv_usec;
7683 ; 6406 ;
7684 return 0; 6407 return 0;
7685 } 6408 }
7686 _ACEOF 6409 _ACEOF
7687 rm -f conftest.$ac_objext 6410 if ac_fn_c_try_compile "$LINENO"; then :
7688 if { (ac_try="$ac_compile"
7689 case "(($ac_try" in
7690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7692 esac
7693 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7694 $as_echo "$ac_try_echo") >&5
7695 (eval "$ac_compile") 2>conftest.er1
7696 ac_status=$?
7697 grep -v '^ *+' conftest.er1 >conftest.err
7698 rm -f conftest.er1
7699 cat conftest.err >&5
7700 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } && {
7702 test -z "$ac_c_werror_flag" ||
7703 test ! -s conftest.err
7704 } && test -s conftest.$ac_objext; then
7705 emacs_cv_struct_timeval=yes 6411 emacs_cv_struct_timeval=yes
7706 else 6412 else
7707 $as_echo "$as_me: failed program was:" >&5 6413 emacs_cv_struct_timeval=no
7708 sed 's/^/| /' conftest.$ac_ext >&5 6414 fi
7709
7710 emacs_cv_struct_timeval=no
7711 fi
7712
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714 fi 6416 fi
7715 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5 6417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_timeval" >&5
7716 $as_echo "$emacs_cv_struct_timeval" >&6; } 6418 $as_echo "$emacs_cv_struct_timeval" >&6; }
7717 HAVE_TIMEVAL=$emacs_cv_struct_timeval 6419 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7718 if test $emacs_cv_struct_timeval = yes; then 6420 if test $emacs_cv_struct_timeval = yes; then
7719 6421
7720 cat >>confdefs.h <<\_ACEOF 6422 $as_echo "#define HAVE_TIMEVAL 1" >>confdefs.h
7721 #define HAVE_TIMEVAL 1 6423
7722 _ACEOF 6424 fi
7723 6425
7724 fi 6426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct exception" >&5
7725
7726 { $as_echo "$as_me:$LINENO: checking for struct exception" >&5
7727 $as_echo_n "checking for struct exception... " >&6; } 6427 $as_echo_n "checking for struct exception... " >&6; }
7728 if test "${emacs_cv_struct_exception+set}" = set; then 6428 if test "${emacs_cv_struct_exception+set}" = set; then :
7729 $as_echo_n "(cached) " >&6 6429 $as_echo_n "(cached) " >&6
7730 else 6430 else
7731 cat >conftest.$ac_ext <<_ACEOF 6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* confdefs.h. */
7733 _ACEOF
7734 cat confdefs.h >>conftest.$ac_ext
7735 cat >>conftest.$ac_ext <<_ACEOF
7736 /* end confdefs.h. */ 6432 /* end confdefs.h. */
7737 #include <math.h> 6433 #include <math.h>
7738 int 6434 int
7739 main () 6435 main ()
7740 { 6436 {
7741 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1; 6437 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7742 ; 6438 ;
7743 return 0; 6439 return 0;
7744 } 6440 }
7745 _ACEOF 6441 _ACEOF
7746 rm -f conftest.$ac_objext 6442 if ac_fn_c_try_compile "$LINENO"; then :
7747 if { (ac_try="$ac_compile"
7748 case "(($ac_try" in
7749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7750 *) ac_try_echo=$ac_try;;
7751 esac
7752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7753 $as_echo "$ac_try_echo") >&5
7754 (eval "$ac_compile") 2>conftest.er1
7755 ac_status=$?
7756 grep -v '^ *+' conftest.er1 >conftest.err
7757 rm -f conftest.er1
7758 cat conftest.err >&5
7759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7760 (exit $ac_status); } && {
7761 test -z "$ac_c_werror_flag" ||
7762 test ! -s conftest.err
7763 } && test -s conftest.$ac_objext; then
7764 emacs_cv_struct_exception=yes 6443 emacs_cv_struct_exception=yes
7765 else 6444 else
7766 $as_echo "$as_me: failed program was:" >&5 6445 emacs_cv_struct_exception=no
7767 sed 's/^/| /' conftest.$ac_ext >&5 6446 fi
7768
7769 emacs_cv_struct_exception=no
7770 fi
7771
7772 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7773 fi 6448 fi
7774 { $as_echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_struct_exception" >&5
7775 $as_echo "$emacs_cv_struct_exception" >&6; } 6450 $as_echo "$emacs_cv_struct_exception" >&6; }
7776 HAVE_EXCEPTION=$emacs_cv_struct_exception 6451 HAVE_EXCEPTION=$emacs_cv_struct_exception
7777 if test $emacs_cv_struct_exception != yes; then 6452 if test $emacs_cv_struct_exception != yes; then
7778 6453
7779 cat >>confdefs.h <<\_ACEOF 6454 $as_echo "#define NO_MATHERR 1" >>confdefs.h
7780 #define NO_MATHERR 1 6455
7781 _ACEOF 6456 fi
7782
7783 fi
7784
7785 6457
7786 for ac_header in sys/socket.h 6458 for ac_header in sys/socket.h
7787 do 6459 do :
7788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6460 ac_fn_c_check_header_mongrel "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
7789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 6461 if test "x$ac_cv_header_sys_socket_h" = x""yes; then :
7790 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7791 $as_echo_n "checking for $ac_header... " >&6; }
7792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7793 $as_echo_n "(cached) " >&6
7794 fi
7795 ac_res=`eval 'as_val=${'$as_ac_Header'}
7796 $as_echo "$as_val"'`
7797 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7798 $as_echo "$ac_res" >&6; }
7799 else
7800 # Is the header compilable?
7801 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
7802 $as_echo_n "checking $ac_header usability... " >&6; }
7803 cat >conftest.$ac_ext <<_ACEOF
7804 /* confdefs.h. */
7805 _ACEOF
7806 cat confdefs.h >>conftest.$ac_ext
7807 cat >>conftest.$ac_ext <<_ACEOF
7808 /* end confdefs.h. */
7809 $ac_includes_default
7810 #include <$ac_header>
7811 _ACEOF
7812 rm -f conftest.$ac_objext
7813 if { (ac_try="$ac_compile"
7814 case "(($ac_try" in
7815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7816 *) ac_try_echo=$ac_try;;
7817 esac
7818 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7819 $as_echo "$ac_try_echo") >&5
7820 (eval "$ac_compile") 2>conftest.er1
7821 ac_status=$?
7822 grep -v '^ *+' conftest.er1 >conftest.err
7823 rm -f conftest.er1
7824 cat conftest.err >&5
7825 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7826 (exit $ac_status); } && {
7827 test -z "$ac_c_werror_flag" ||
7828 test ! -s conftest.err
7829 } && test -s conftest.$ac_objext; then
7830 ac_header_compiler=yes
7831 else
7832 $as_echo "$as_me: failed program was:" >&5
7833 sed 's/^/| /' conftest.$ac_ext >&5
7834
7835 ac_header_compiler=no
7836 fi
7837
7838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7839 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7840 $as_echo "$ac_header_compiler" >&6; }
7841
7842 # Is the header present?
7843 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
7844 $as_echo_n "checking $ac_header presence... " >&6; }
7845 cat >conftest.$ac_ext <<_ACEOF
7846 /* confdefs.h. */
7847 _ACEOF
7848 cat confdefs.h >>conftest.$ac_ext
7849 cat >>conftest.$ac_ext <<_ACEOF
7850 /* end confdefs.h. */
7851 #include <$ac_header>
7852 _ACEOF
7853 if { (ac_try="$ac_cpp conftest.$ac_ext"
7854 case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857 esac
7858 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7859 $as_echo "$ac_try_echo") >&5
7860 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7861 ac_status=$?
7862 grep -v '^ *+' conftest.er1 >conftest.err
7863 rm -f conftest.er1
7864 cat conftest.err >&5
7865 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7866 (exit $ac_status); } >/dev/null && {
7867 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7868 test ! -s conftest.err
7869 }; then
7870 ac_header_preproc=yes
7871 else
7872 $as_echo "$as_me: failed program was:" >&5
7873 sed 's/^/| /' conftest.$ac_ext >&5
7874
7875 ac_header_preproc=no
7876 fi
7877
7878 rm -f conftest.err conftest.$ac_ext
7879 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7880 $as_echo "$ac_header_preproc" >&6; }
7881
7882 # So? What about this header?
7883 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7884 yes:no: )
7885 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7886 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7887 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7888 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7889 ac_header_preproc=yes
7890 ;;
7891 no:yes:* )
7892 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7893 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7894 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7895 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7897 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7899 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7900 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7901 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7902 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7903 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7904
7905 ;;
7906 esac
7907 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7908 $as_echo_n "checking for $ac_header... " >&6; }
7909 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7910 $as_echo_n "(cached) " >&6
7911 else
7912 eval "$as_ac_Header=\$ac_header_preproc"
7913 fi
7914 ac_res=`eval 'as_val=${'$as_ac_Header'}
7915 $as_echo "$as_val"'`
7916 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7917 $as_echo "$ac_res" >&6; }
7918
7919 fi
7920 if test `eval 'as_val=${'$as_ac_Header'}
7921 $as_echo "$as_val"'` = yes; then
7922 cat >>confdefs.h <<_ACEOF 6462 cat >>confdefs.h <<_ACEOF
7923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6463 #define HAVE_SYS_SOCKET_H 1
7924 _ACEOF 6464 _ACEOF
7925 6465
7926 fi 6466 fi
7927 6467
7928 done 6468 done
7929 6469
7930
7931 for ac_header in net/if.h 6470 for ac_header in net/if.h
7932 do 6471 do :
7933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 6472 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default
7934 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
7935 $as_echo_n "checking for $ac_header... " >&6; }
7936 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7937 $as_echo_n "(cached) " >&6
7938 else
7939 cat >conftest.$ac_ext <<_ACEOF
7940 /* confdefs.h. */
7941 _ACEOF
7942 cat confdefs.h >>conftest.$ac_ext
7943 cat >>conftest.$ac_ext <<_ACEOF
7944 /* end confdefs.h. */
7945 $ac_includes_default
7946 #if HAVE_SYS_SOCKET_H 6473 #if HAVE_SYS_SOCKET_H
7947 #include <sys/socket.h> 6474 #include <sys/socket.h>
7948 #endif 6475 #endif
7949 6476 "
7950 #include <$ac_header> 6477 if test "x$ac_cv_header_net_if_h" = x""yes; then :
7951 _ACEOF
7952 rm -f conftest.$ac_objext
7953 if { (ac_try="$ac_compile"
7954 case "(($ac_try" in
7955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7956 *) ac_try_echo=$ac_try;;
7957 esac
7958 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7959 $as_echo "$ac_try_echo") >&5
7960 (eval "$ac_compile") 2>conftest.er1
7961 ac_status=$?
7962 grep -v '^ *+' conftest.er1 >conftest.err
7963 rm -f conftest.er1
7964 cat conftest.err >&5
7965 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); } && {
7967 test -z "$ac_c_werror_flag" ||
7968 test ! -s conftest.err
7969 } && test -s conftest.$ac_objext; then
7970 eval "$as_ac_Header=yes"
7971 else
7972 $as_echo "$as_me: failed program was:" >&5
7973 sed 's/^/| /' conftest.$ac_ext >&5
7974
7975 eval "$as_ac_Header=no"
7976 fi
7977
7978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7979 fi
7980 ac_res=`eval 'as_val=${'$as_ac_Header'}
7981 $as_echo "$as_val"'`
7982 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
7983 $as_echo "$ac_res" >&6; }
7984 if test `eval 'as_val=${'$as_ac_Header'}
7985 $as_echo "$as_val"'` = yes; then
7986 cat >>confdefs.h <<_ACEOF 6478 cat >>confdefs.h <<_ACEOF
7987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 6479 #define HAVE_NET_IF_H 1
7988 _ACEOF 6480 _ACEOF
7989 6481
7990 fi 6482 fi
7991 6483
7992 done 6484 done
7993 6485
7994 6486
7995 { $as_echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 6487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
7996 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 6488 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
7997 if test "${ac_cv_struct_tm+set}" = set; then 6489 if test "${ac_cv_struct_tm+set}" = set; then :
7998 $as_echo_n "(cached) " >&6 6490 $as_echo_n "(cached) " >&6
7999 else 6491 else
8000 cat >conftest.$ac_ext <<_ACEOF 6492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8001 /* confdefs.h. */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */ 6493 /* end confdefs.h. */
8006 #include <sys/types.h> 6494 #include <sys/types.h>
8007 #include <time.h> 6495 #include <time.h>
8008 6496
8009 int 6497 int
8014 return !p; 6502 return !p;
8015 ; 6503 ;
8016 return 0; 6504 return 0;
8017 } 6505 }
8018 _ACEOF 6506 _ACEOF
8019 rm -f conftest.$ac_objext 6507 if ac_fn_c_try_compile "$LINENO"; then :
8020 if { (ac_try="$ac_compile"
8021 case "(($ac_try" in
8022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8023 *) ac_try_echo=$ac_try;;
8024 esac
8025 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8026 $as_echo "$ac_try_echo") >&5
8027 (eval "$ac_compile") 2>conftest.er1
8028 ac_status=$?
8029 grep -v '^ *+' conftest.er1 >conftest.err
8030 rm -f conftest.er1
8031 cat conftest.err >&5
8032 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest.$ac_objext; then
8037 ac_cv_struct_tm=time.h 6508 ac_cv_struct_tm=time.h
8038 else 6509 else
8039 $as_echo "$as_me: failed program was:" >&5 6510 ac_cv_struct_tm=sys/time.h
8040 sed 's/^/| /' conftest.$ac_ext >&5 6511 fi
8041
8042 ac_cv_struct_tm=sys/time.h
8043 fi
8044
8045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8046 fi 6513 fi
8047 { $as_echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 6514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
8048 $as_echo "$ac_cv_struct_tm" >&6; } 6515 $as_echo "$ac_cv_struct_tm" >&6; }
8049 if test $ac_cv_struct_tm = sys/time.h; then 6516 if test $ac_cv_struct_tm = sys/time.h; then
8050 6517
8051 cat >>confdefs.h <<\_ACEOF 6518 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
8052 #define TM_IN_SYS_TIME 1 6519
8053 _ACEOF 6520 fi
8054 6521
8055 fi 6522 ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
8056
8057 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8058 $as_echo_n "checking for struct tm.tm_zone... " >&6; }
8059 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8060 $as_echo_n "(cached) " >&6
8061 else
8062 cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h. */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 #include <sys/types.h>
8069 #include <$ac_cv_struct_tm> 6523 #include <$ac_cv_struct_tm>
8070 6524
8071 6525 "
8072 int 6526 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
8073 main ()
8074 {
8075 static struct tm ac_aggr;
8076 if (ac_aggr.tm_zone)
8077 return 0;
8078 ;
8079 return 0;
8080 }
8081 _ACEOF
8082 rm -f conftest.$ac_objext
8083 if { (ac_try="$ac_compile"
8084 case "(($ac_try" in
8085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8086 *) ac_try_echo=$ac_try;;
8087 esac
8088 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8089 $as_echo "$ac_try_echo") >&5
8090 (eval "$ac_compile") 2>conftest.er1
8091 ac_status=$?
8092 grep -v '^ *+' conftest.er1 >conftest.err
8093 rm -f conftest.er1
8094 cat conftest.err >&5
8095 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8096 (exit $ac_status); } && {
8097 test -z "$ac_c_werror_flag" ||
8098 test ! -s conftest.err
8099 } && test -s conftest.$ac_objext; then
8100 ac_cv_member_struct_tm_tm_zone=yes
8101 else
8102 $as_echo "$as_me: failed program was:" >&5
8103 sed 's/^/| /' conftest.$ac_ext >&5
8104
8105 cat >conftest.$ac_ext <<_ACEOF
8106 /* confdefs.h. */
8107 _ACEOF
8108 cat confdefs.h >>conftest.$ac_ext
8109 cat >>conftest.$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8111 #include <sys/types.h>
8112 #include <$ac_cv_struct_tm>
8113
8114
8115 int
8116 main ()
8117 {
8118 static struct tm ac_aggr;
8119 if (sizeof ac_aggr.tm_zone)
8120 return 0;
8121 ;
8122 return 0;
8123 }
8124 _ACEOF
8125 rm -f conftest.$ac_objext
8126 if { (ac_try="$ac_compile"
8127 case "(($ac_try" in
8128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8129 *) ac_try_echo=$ac_try;;
8130 esac
8131 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8132 $as_echo "$ac_try_echo") >&5
8133 (eval "$ac_compile") 2>conftest.er1
8134 ac_status=$?
8135 grep -v '^ *+' conftest.er1 >conftest.err
8136 rm -f conftest.er1
8137 cat conftest.err >&5
8138 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8139 (exit $ac_status); } && {
8140 test -z "$ac_c_werror_flag" ||
8141 test ! -s conftest.err
8142 } && test -s conftest.$ac_objext; then
8143 ac_cv_member_struct_tm_tm_zone=yes
8144 else
8145 $as_echo "$as_me: failed program was:" >&5
8146 sed 's/^/| /' conftest.$ac_ext >&5
8147
8148 ac_cv_member_struct_tm_tm_zone=no
8149 fi
8150
8151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8152 fi
8153
8154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8155 fi
8156 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8157 $as_echo "$ac_cv_member_struct_tm_tm_zone" >&6; }
8158 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8159 6527
8160 cat >>confdefs.h <<_ACEOF 6528 cat >>confdefs.h <<_ACEOF
8161 #define HAVE_STRUCT_TM_TM_ZONE 1 6529 #define HAVE_STRUCT_TM_TM_ZONE 1
8162 _ACEOF 6530 _ACEOF
8163 6531
8164 6532
8165 fi 6533 fi
8166 6534
8167 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then 6535 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8168 6536
8169 cat >>confdefs.h <<\_ACEOF 6537 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
8170 #define HAVE_TM_ZONE 1 6538
8171 _ACEOF 6539 else
8172 6540 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
8173 else 6541 "
8174 { $as_echo "$as_me:$LINENO: checking whether tzname is declared" >&5 6542 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
8175 $as_echo_n "checking whether tzname is declared... " >&6; } 6543 ac_have_decl=1
8176 if test "${ac_cv_have_decl_tzname+set}" = set; then 6544 else
6545 ac_have_decl=0
6546 fi
6547
6548 cat >>confdefs.h <<_ACEOF
6549 #define HAVE_DECL_TZNAME $ac_have_decl
6550 _ACEOF
6551
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
6553 $as_echo_n "checking for tzname... " >&6; }
6554 if test "${ac_cv_var_tzname+set}" = set; then :
8177 $as_echo_n "(cached) " >&6 6555 $as_echo_n "(cached) " >&6
8178 else 6556 else
8179 cat >conftest.$ac_ext <<_ACEOF 6557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8180 /* confdefs.h. */
8181 _ACEOF
8182 cat confdefs.h >>conftest.$ac_ext
8183 cat >>conftest.$ac_ext <<_ACEOF
8184 /* end confdefs.h. */
8185 #include <time.h>
8186
8187 int
8188 main ()
8189 {
8190 #ifndef tzname
8191 (void) tzname;
8192 #endif
8193
8194 ;
8195 return 0;
8196 }
8197 _ACEOF
8198 rm -f conftest.$ac_objext
8199 if { (ac_try="$ac_compile"
8200 case "(($ac_try" in
8201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8202 *) ac_try_echo=$ac_try;;
8203 esac
8204 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8205 $as_echo "$ac_try_echo") >&5
8206 (eval "$ac_compile") 2>conftest.er1
8207 ac_status=$?
8208 grep -v '^ *+' conftest.er1 >conftest.err
8209 rm -f conftest.er1
8210 cat conftest.err >&5
8211 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } && {
8213 test -z "$ac_c_werror_flag" ||
8214 test ! -s conftest.err
8215 } && test -s conftest.$ac_objext; then
8216 ac_cv_have_decl_tzname=yes
8217 else
8218 $as_echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8220
8221 ac_cv_have_decl_tzname=no
8222 fi
8223
8224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8225 fi
8226 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8227 $as_echo "$ac_cv_have_decl_tzname" >&6; }
8228 if test $ac_cv_have_decl_tzname = yes; then
8229
8230 cat >>confdefs.h <<_ACEOF
8231 #define HAVE_DECL_TZNAME 1
8232 _ACEOF
8233
8234
8235 else
8236 cat >>confdefs.h <<_ACEOF
8237 #define HAVE_DECL_TZNAME 0
8238 _ACEOF
8239
8240
8241 fi
8242
8243
8244 { $as_echo "$as_me:$LINENO: checking for tzname" >&5
8245 $as_echo_n "checking for tzname... " >&6; }
8246 if test "${ac_cv_var_tzname+set}" = set; then
8247 $as_echo_n "(cached) " >&6
8248 else
8249 cat >conftest.$ac_ext <<_ACEOF
8250 /* confdefs.h. */
8251 _ACEOF
8252 cat confdefs.h >>conftest.$ac_ext
8253 cat >>conftest.$ac_ext <<_ACEOF
8254 /* end confdefs.h. */ 6558 /* end confdefs.h. */
8255 #include <time.h> 6559 #include <time.h>
8256 #if !HAVE_DECL_TZNAME 6560 #if !HAVE_DECL_TZNAME
8257 extern char *tzname[]; 6561 extern char *tzname[];
8258 #endif 6562 #endif
8263 return tzname[0][0]; 6567 return tzname[0][0];
8264 ; 6568 ;
8265 return 0; 6569 return 0;
8266 } 6570 }
8267 _ACEOF 6571 _ACEOF
8268 rm -f conftest.$ac_objext conftest$ac_exeext 6572 if ac_fn_c_try_link "$LINENO"; then :
8269 if { (ac_try="$ac_link"
8270 case "(($ac_try" in
8271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8272 *) ac_try_echo=$ac_try;;
8273 esac
8274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8275 $as_echo "$ac_try_echo") >&5
8276 (eval "$ac_link") 2>conftest.er1
8277 ac_status=$?
8278 grep -v '^ *+' conftest.er1 >conftest.err
8279 rm -f conftest.er1
8280 cat conftest.err >&5
8281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8282 (exit $ac_status); } && {
8283 test -z "$ac_c_werror_flag" ||
8284 test ! -s conftest.err
8285 } && test -s conftest$ac_exeext && {
8286 test "$cross_compiling" = yes ||
8287 $as_test_x conftest$ac_exeext
8288 }; then
8289 ac_cv_var_tzname=yes 6573 ac_cv_var_tzname=yes
8290 else 6574 else
8291 $as_echo "$as_me: failed program was:" >&5 6575 ac_cv_var_tzname=no
8292 sed 's/^/| /' conftest.$ac_ext >&5 6576 fi
8293 6577 rm -f core conftest.err conftest.$ac_objext \
8294 ac_cv_var_tzname=no 6578 conftest$ac_exeext conftest.$ac_ext
8295 fi 6579 fi
8296 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
8297 rm -rf conftest.dSYM
8298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8299 conftest$ac_exeext conftest.$ac_ext
8300 fi
8301 { $as_echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8302 $as_echo "$ac_cv_var_tzname" >&6; } 6581 $as_echo "$ac_cv_var_tzname" >&6; }
8303 if test $ac_cv_var_tzname = yes; then 6582 if test $ac_cv_var_tzname = yes; then
8304 6583
8305 cat >>confdefs.h <<\_ACEOF 6584 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
8306 #define HAVE_TZNAME 1
8307 _ACEOF
8308 6585
8309 fi 6586 fi
8310 fi 6587 fi
8311 6588
8312 { $as_echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5 6589 ac_fn_c_check_member "$LINENO" "struct tm" "tm_gmtoff" "ac_cv_member_struct_tm_tm_gmtoff" "#include <time.h>
8313 $as_echo_n "checking for struct tm.tm_gmtoff... " >&6; } 6590 "
8314 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then 6591 if test "x$ac_cv_member_struct_tm_tm_gmtoff" = x""yes; then :
8315 $as_echo_n "(cached) " >&6 6592
8316 else 6593 $as_echo "#define HAVE_TM_GMTOFF 1" >>confdefs.h
8317 cat >conftest.$ac_ext <<_ACEOF 6594
8318 /* confdefs.h. */ 6595 fi
8319 _ACEOF 6596
8320 cat confdefs.h >>conftest.$ac_ext 6597 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_flags" "ac_cv_member_struct_ifreq_ifr_flags" "$ac_includes_default
8321 cat >>conftest.$ac_ext <<_ACEOF
8322 /* end confdefs.h. */
8323 #include <time.h>
8324
8325 int
8326 main ()
8327 {
8328 static struct tm ac_aggr;
8329 if (ac_aggr.tm_gmtoff)
8330 return 0;
8331 ;
8332 return 0;
8333 }
8334 _ACEOF
8335 rm -f conftest.$ac_objext
8336 if { (ac_try="$ac_compile"
8337 case "(($ac_try" in
8338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8339 *) ac_try_echo=$ac_try;;
8340 esac
8341 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8342 $as_echo "$ac_try_echo") >&5
8343 (eval "$ac_compile") 2>conftest.er1
8344 ac_status=$?
8345 grep -v '^ *+' conftest.er1 >conftest.err
8346 rm -f conftest.er1
8347 cat conftest.err >&5
8348 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } && {
8350 test -z "$ac_c_werror_flag" ||
8351 test ! -s conftest.err
8352 } && test -s conftest.$ac_objext; then
8353 ac_cv_member_struct_tm_tm_gmtoff=yes
8354 else
8355 $as_echo "$as_me: failed program was:" >&5
8356 sed 's/^/| /' conftest.$ac_ext >&5
8357
8358 cat >conftest.$ac_ext <<_ACEOF
8359 /* confdefs.h. */
8360 _ACEOF
8361 cat confdefs.h >>conftest.$ac_ext
8362 cat >>conftest.$ac_ext <<_ACEOF
8363 /* end confdefs.h. */
8364 #include <time.h>
8365
8366 int
8367 main ()
8368 {
8369 static struct tm ac_aggr;
8370 if (sizeof ac_aggr.tm_gmtoff)
8371 return 0;
8372 ;
8373 return 0;
8374 }
8375 _ACEOF
8376 rm -f conftest.$ac_objext
8377 if { (ac_try="$ac_compile"
8378 case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8381 esac
8382 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8383 $as_echo "$ac_try_echo") >&5
8384 (eval "$ac_compile") 2>conftest.er1
8385 ac_status=$?
8386 grep -v '^ *+' conftest.er1 >conftest.err
8387 rm -f conftest.er1
8388 cat conftest.err >&5
8389 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); } && {
8391 test -z "$ac_c_werror_flag" ||
8392 test ! -s conftest.err
8393 } && test -s conftest.$ac_objext; then
8394 ac_cv_member_struct_tm_tm_gmtoff=yes
8395 else
8396 $as_echo "$as_me: failed program was:" >&5
8397 sed 's/^/| /' conftest.$ac_ext >&5
8398
8399 ac_cv_member_struct_tm_tm_gmtoff=no
8400 fi
8401
8402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8403 fi
8404
8405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8406 fi
8407 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8408 $as_echo "$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8409 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8410
8411 cat >>confdefs.h <<\_ACEOF
8412 #define HAVE_TM_GMTOFF 1
8413 _ACEOF
8414
8415 fi
8416
8417 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8418 $as_echo_n "checking for struct ifreq.ifr_flags... " >&6; }
8419 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8420 $as_echo_n "(cached) " >&6
8421 else
8422 cat >conftest.$ac_ext <<_ACEOF
8423 /* confdefs.h. */
8424 _ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8428 $ac_includes_default
8429 #if HAVE_SYS_SOCKET_H 6598 #if HAVE_SYS_SOCKET_H
8430 #include <sys/socket.h> 6599 #include <sys/socket.h>
8431 #endif 6600 #endif
8432 #if HAVE_NET_IF_H 6601 #if HAVE_NET_IF_H
8433 #include <net/if.h> 6602 #include <net/if.h>
8434 #endif 6603 #endif
8435 6604 "
8436 int 6605 if test "x$ac_cv_member_struct_ifreq_ifr_flags" = x""yes; then :
8437 main () 6606
8438 { 6607 cat >>confdefs.h <<_ACEOF
8439 static struct ifreq ac_aggr; 6608 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8440 if (ac_aggr.ifr_flags) 6609 _ACEOF
8441 return 0; 6610
8442 ; 6611
8443 return 0; 6612 fi
8444 } 6613 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_hwaddr" "ac_cv_member_struct_ifreq_ifr_hwaddr" "$ac_includes_default
8445 _ACEOF
8446 rm -f conftest.$ac_objext
8447 if { (ac_try="$ac_compile"
8448 case "(($ac_try" in
8449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8450 *) ac_try_echo=$ac_try;;
8451 esac
8452 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8453 $as_echo "$ac_try_echo") >&5
8454 (eval "$ac_compile") 2>conftest.er1
8455 ac_status=$?
8456 grep -v '^ *+' conftest.er1 >conftest.err
8457 rm -f conftest.er1
8458 cat conftest.err >&5
8459 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } && {
8461 test -z "$ac_c_werror_flag" ||
8462 test ! -s conftest.err
8463 } && test -s conftest.$ac_objext; then
8464 ac_cv_member_struct_ifreq_ifr_flags=yes
8465 else
8466 $as_echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.$ac_ext >&5
8468
8469 cat >conftest.$ac_ext <<_ACEOF
8470 /* confdefs.h. */
8471 _ACEOF
8472 cat confdefs.h >>conftest.$ac_ext
8473 cat >>conftest.$ac_ext <<_ACEOF
8474 /* end confdefs.h. */
8475 $ac_includes_default
8476 #if HAVE_SYS_SOCKET_H 6614 #if HAVE_SYS_SOCKET_H
8477 #include <sys/socket.h> 6615 #include <sys/socket.h>
8478 #endif 6616 #endif
8479 #if HAVE_NET_IF_H 6617 #if HAVE_NET_IF_H
8480 #include <net/if.h> 6618 #include <net/if.h>
8481 #endif 6619 #endif
8482 6620 "
8483 int 6621 if test "x$ac_cv_member_struct_ifreq_ifr_hwaddr" = x""yes; then :
8484 main ()
8485 {
8486 static struct ifreq ac_aggr;
8487 if (sizeof ac_aggr.ifr_flags)
8488 return 0;
8489 ;
8490 return 0;
8491 }
8492 _ACEOF
8493 rm -f conftest.$ac_objext
8494 if { (ac_try="$ac_compile"
8495 case "(($ac_try" in
8496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8497 *) ac_try_echo=$ac_try;;
8498 esac
8499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8500 $as_echo "$ac_try_echo") >&5
8501 (eval "$ac_compile") 2>conftest.er1
8502 ac_status=$?
8503 grep -v '^ *+' conftest.er1 >conftest.err
8504 rm -f conftest.er1
8505 cat conftest.err >&5
8506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_c_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest.$ac_objext; then
8511 ac_cv_member_struct_ifreq_ifr_flags=yes
8512 else
8513 $as_echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8515
8516 ac_cv_member_struct_ifreq_ifr_flags=no
8517 fi
8518
8519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8520 fi
8521
8522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8523 fi
8524 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8525 $as_echo "$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8526 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8527 6622
8528 cat >>confdefs.h <<_ACEOF 6623 cat >>confdefs.h <<_ACEOF
8529 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1 6624 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8530 _ACEOF 6625 _ACEOF
8531 6626
8532 6627
8533 fi 6628 fi
8534 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5 6629 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_netmask" "ac_cv_member_struct_ifreq_ifr_netmask" "$ac_includes_default
8535 $as_echo_n "checking for struct ifreq.ifr_hwaddr... " >&6; }
8536 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8537 $as_echo_n "(cached) " >&6
8538 else
8539 cat >conftest.$ac_ext <<_ACEOF
8540 /* confdefs.h. */
8541 _ACEOF
8542 cat confdefs.h >>conftest.$ac_ext
8543 cat >>conftest.$ac_ext <<_ACEOF
8544 /* end confdefs.h. */
8545 $ac_includes_default
8546 #if HAVE_SYS_SOCKET_H 6630 #if HAVE_SYS_SOCKET_H
8547 #include <sys/socket.h> 6631 #include <sys/socket.h>
8548 #endif 6632 #endif
8549 #if HAVE_NET_IF_H 6633 #if HAVE_NET_IF_H
8550 #include <net/if.h> 6634 #include <net/if.h>
8551 #endif 6635 #endif
8552 6636 "
8553 int 6637 if test "x$ac_cv_member_struct_ifreq_ifr_netmask" = x""yes; then :
8554 main () 6638
8555 { 6639 cat >>confdefs.h <<_ACEOF
8556 static struct ifreq ac_aggr; 6640 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8557 if (ac_aggr.ifr_hwaddr) 6641 _ACEOF
8558 return 0; 6642
8559 ; 6643
8560 return 0; 6644 fi
8561 } 6645 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_broadaddr" "ac_cv_member_struct_ifreq_ifr_broadaddr" "$ac_includes_default
8562 _ACEOF
8563 rm -f conftest.$ac_objext
8564 if { (ac_try="$ac_compile"
8565 case "(($ac_try" in
8566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8567 *) ac_try_echo=$ac_try;;
8568 esac
8569 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8570 $as_echo "$ac_try_echo") >&5
8571 (eval "$ac_compile") 2>conftest.er1
8572 ac_status=$?
8573 grep -v '^ *+' conftest.er1 >conftest.err
8574 rm -f conftest.er1
8575 cat conftest.err >&5
8576 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8577 (exit $ac_status); } && {
8578 test -z "$ac_c_werror_flag" ||
8579 test ! -s conftest.err
8580 } && test -s conftest.$ac_objext; then
8581 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8582 else
8583 $as_echo "$as_me: failed program was:" >&5
8584 sed 's/^/| /' conftest.$ac_ext >&5
8585
8586 cat >conftest.$ac_ext <<_ACEOF
8587 /* confdefs.h. */
8588 _ACEOF
8589 cat confdefs.h >>conftest.$ac_ext
8590 cat >>conftest.$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8592 $ac_includes_default
8593 #if HAVE_SYS_SOCKET_H 6646 #if HAVE_SYS_SOCKET_H
8594 #include <sys/socket.h> 6647 #include <sys/socket.h>
8595 #endif 6648 #endif
8596 #if HAVE_NET_IF_H 6649 #if HAVE_NET_IF_H
8597 #include <net/if.h> 6650 #include <net/if.h>
8598 #endif 6651 #endif
8599 6652 "
8600 int 6653 if test "x$ac_cv_member_struct_ifreq_ifr_broadaddr" = x""yes; then :
8601 main ()
8602 {
8603 static struct ifreq ac_aggr;
8604 if (sizeof ac_aggr.ifr_hwaddr)
8605 return 0;
8606 ;
8607 return 0;
8608 }
8609 _ACEOF
8610 rm -f conftest.$ac_objext
8611 if { (ac_try="$ac_compile"
8612 case "(($ac_try" in
8613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8614 *) ac_try_echo=$ac_try;;
8615 esac
8616 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8617 $as_echo "$ac_try_echo") >&5
8618 (eval "$ac_compile") 2>conftest.er1
8619 ac_status=$?
8620 grep -v '^ *+' conftest.er1 >conftest.err
8621 rm -f conftest.er1
8622 cat conftest.err >&5
8623 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8624 (exit $ac_status); } && {
8625 test -z "$ac_c_werror_flag" ||
8626 test ! -s conftest.err
8627 } && test -s conftest.$ac_objext; then
8628 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8629 else
8630 $as_echo "$as_me: failed program was:" >&5
8631 sed 's/^/| /' conftest.$ac_ext >&5
8632
8633 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8634 fi
8635
8636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8637 fi
8638
8639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640 fi
8641 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8642 $as_echo "$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8643 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8644 6654
8645 cat >>confdefs.h <<_ACEOF 6655 cat >>confdefs.h <<_ACEOF
8646 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1 6656 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8647 _ACEOF 6657 _ACEOF
8648 6658
8649 6659
8650 fi 6660 fi
8651 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5 6661 ac_fn_c_check_member "$LINENO" "struct ifreq" "ifr_addr" "ac_cv_member_struct_ifreq_ifr_addr" "$ac_includes_default
8652 $as_echo_n "checking for struct ifreq.ifr_netmask... " >&6; }
8653 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8654 $as_echo_n "(cached) " >&6
8655 else
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h. */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8662 $ac_includes_default
8663 #if HAVE_SYS_SOCKET_H 6662 #if HAVE_SYS_SOCKET_H
8664 #include <sys/socket.h> 6663 #include <sys/socket.h>
8665 #endif 6664 #endif
8666 #if HAVE_NET_IF_H 6665 #if HAVE_NET_IF_H
8667 #include <net/if.h> 6666 #include <net/if.h>
8668 #endif 6667 #endif
8669 6668 "
8670 int 6669 if test "x$ac_cv_member_struct_ifreq_ifr_addr" = x""yes; then :
8671 main ()
8672 {
8673 static struct ifreq ac_aggr;
8674 if (ac_aggr.ifr_netmask)
8675 return 0;
8676 ;
8677 return 0;
8678 }
8679 _ACEOF
8680 rm -f conftest.$ac_objext
8681 if { (ac_try="$ac_compile"
8682 case "(($ac_try" in
8683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8684 *) ac_try_echo=$ac_try;;
8685 esac
8686 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8687 $as_echo "$ac_try_echo") >&5
8688 (eval "$ac_compile") 2>conftest.er1
8689 ac_status=$?
8690 grep -v '^ *+' conftest.er1 >conftest.err
8691 rm -f conftest.er1
8692 cat conftest.err >&5
8693 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); } && {
8695 test -z "$ac_c_werror_flag" ||
8696 test ! -s conftest.err
8697 } && test -s conftest.$ac_objext; then
8698 ac_cv_member_struct_ifreq_ifr_netmask=yes
8699 else
8700 $as_echo "$as_me: failed program was:" >&5
8701 sed 's/^/| /' conftest.$ac_ext >&5
8702
8703 cat >conftest.$ac_ext <<_ACEOF
8704 /* confdefs.h. */
8705 _ACEOF
8706 cat confdefs.h >>conftest.$ac_ext
8707 cat >>conftest.$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8709 $ac_includes_default
8710 #if HAVE_SYS_SOCKET_H
8711 #include <sys/socket.h>
8712 #endif
8713 #if HAVE_NET_IF_H
8714 #include <net/if.h>
8715 #endif
8716
8717 int
8718 main ()
8719 {
8720 static struct ifreq ac_aggr;
8721 if (sizeof ac_aggr.ifr_netmask)
8722 return 0;
8723 ;
8724 return 0;
8725 }
8726 _ACEOF
8727 rm -f conftest.$ac_objext
8728 if { (ac_try="$ac_compile"
8729 case "(($ac_try" in
8730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8731 *) ac_try_echo=$ac_try;;
8732 esac
8733 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8734 $as_echo "$ac_try_echo") >&5
8735 (eval "$ac_compile") 2>conftest.er1
8736 ac_status=$?
8737 grep -v '^ *+' conftest.er1 >conftest.err
8738 rm -f conftest.er1
8739 cat conftest.err >&5
8740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8741 (exit $ac_status); } && {
8742 test -z "$ac_c_werror_flag" ||
8743 test ! -s conftest.err
8744 } && test -s conftest.$ac_objext; then
8745 ac_cv_member_struct_ifreq_ifr_netmask=yes
8746 else
8747 $as_echo "$as_me: failed program was:" >&5
8748 sed 's/^/| /' conftest.$ac_ext >&5
8749
8750 ac_cv_member_struct_ifreq_ifr_netmask=no
8751 fi
8752
8753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8754 fi
8755
8756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8757 fi
8758 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8759 $as_echo "$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8760 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8761
8762 cat >>confdefs.h <<_ACEOF
8763 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8764 _ACEOF
8765
8766
8767 fi
8768 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8769 $as_echo_n "checking for struct ifreq.ifr_broadaddr... " >&6; }
8770 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8771 $as_echo_n "(cached) " >&6
8772 else
8773 cat >conftest.$ac_ext <<_ACEOF
8774 /* confdefs.h. */
8775 _ACEOF
8776 cat confdefs.h >>conftest.$ac_ext
8777 cat >>conftest.$ac_ext <<_ACEOF
8778 /* end confdefs.h. */
8779 $ac_includes_default
8780 #if HAVE_SYS_SOCKET_H
8781 #include <sys/socket.h>
8782 #endif
8783 #if HAVE_NET_IF_H
8784 #include <net/if.h>
8785 #endif
8786
8787 int
8788 main ()
8789 {
8790 static struct ifreq ac_aggr;
8791 if (ac_aggr.ifr_broadaddr)
8792 return 0;
8793 ;
8794 return 0;
8795 }
8796 _ACEOF
8797 rm -f conftest.$ac_objext
8798 if { (ac_try="$ac_compile"
8799 case "(($ac_try" in
8800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8801 *) ac_try_echo=$ac_try;;
8802 esac
8803 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8804 $as_echo "$ac_try_echo") >&5
8805 (eval "$ac_compile") 2>conftest.er1
8806 ac_status=$?
8807 grep -v '^ *+' conftest.er1 >conftest.err
8808 rm -f conftest.er1
8809 cat conftest.err >&5
8810 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8811 (exit $ac_status); } && {
8812 test -z "$ac_c_werror_flag" ||
8813 test ! -s conftest.err
8814 } && test -s conftest.$ac_objext; then
8815 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8816 else
8817 $as_echo "$as_me: failed program was:" >&5
8818 sed 's/^/| /' conftest.$ac_ext >&5
8819
8820 cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h. */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826 $ac_includes_default
8827 #if HAVE_SYS_SOCKET_H
8828 #include <sys/socket.h>
8829 #endif
8830 #if HAVE_NET_IF_H
8831 #include <net/if.h>
8832 #endif
8833
8834 int
8835 main ()
8836 {
8837 static struct ifreq ac_aggr;
8838 if (sizeof ac_aggr.ifr_broadaddr)
8839 return 0;
8840 ;
8841 return 0;
8842 }
8843 _ACEOF
8844 rm -f conftest.$ac_objext
8845 if { (ac_try="$ac_compile"
8846 case "(($ac_try" in
8847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8848 *) ac_try_echo=$ac_try;;
8849 esac
8850 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8851 $as_echo "$ac_try_echo") >&5
8852 (eval "$ac_compile") 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } && {
8859 test -z "$ac_c_werror_flag" ||
8860 test ! -s conftest.err
8861 } && test -s conftest.$ac_objext; then
8862 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8863 else
8864 $as_echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8868 fi
8869
8870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8871 fi
8872
8873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8874 fi
8875 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8876 $as_echo "$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8877 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8878
8879 cat >>confdefs.h <<_ACEOF
8880 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8881 _ACEOF
8882
8883
8884 fi
8885 { $as_echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8886 $as_echo_n "checking for struct ifreq.ifr_addr... " >&6; }
8887 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8888 $as_echo_n "(cached) " >&6
8889 else
8890 cat >conftest.$ac_ext <<_ACEOF
8891 /* confdefs.h. */
8892 _ACEOF
8893 cat confdefs.h >>conftest.$ac_ext
8894 cat >>conftest.$ac_ext <<_ACEOF
8895 /* end confdefs.h. */
8896 $ac_includes_default
8897 #if HAVE_SYS_SOCKET_H
8898 #include <sys/socket.h>
8899 #endif
8900 #if HAVE_NET_IF_H
8901 #include <net/if.h>
8902 #endif
8903
8904 int
8905 main ()
8906 {
8907 static struct ifreq ac_aggr;
8908 if (ac_aggr.ifr_addr)
8909 return 0;
8910 ;
8911 return 0;
8912 }
8913 _ACEOF
8914 rm -f conftest.$ac_objext
8915 if { (ac_try="$ac_compile"
8916 case "(($ac_try" in
8917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8918 *) ac_try_echo=$ac_try;;
8919 esac
8920 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8921 $as_echo "$ac_try_echo") >&5
8922 (eval "$ac_compile") 2>conftest.er1
8923 ac_status=$?
8924 grep -v '^ *+' conftest.er1 >conftest.err
8925 rm -f conftest.er1
8926 cat conftest.err >&5
8927 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); } && {
8929 test -z "$ac_c_werror_flag" ||
8930 test ! -s conftest.err
8931 } && test -s conftest.$ac_objext; then
8932 ac_cv_member_struct_ifreq_ifr_addr=yes
8933 else
8934 $as_echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.$ac_ext >&5
8936
8937 cat >conftest.$ac_ext <<_ACEOF
8938 /* confdefs.h. */
8939 _ACEOF
8940 cat confdefs.h >>conftest.$ac_ext
8941 cat >>conftest.$ac_ext <<_ACEOF
8942 /* end confdefs.h. */
8943 $ac_includes_default
8944 #if HAVE_SYS_SOCKET_H
8945 #include <sys/socket.h>
8946 #endif
8947 #if HAVE_NET_IF_H
8948 #include <net/if.h>
8949 #endif
8950
8951 int
8952 main ()
8953 {
8954 static struct ifreq ac_aggr;
8955 if (sizeof ac_aggr.ifr_addr)
8956 return 0;
8957 ;
8958 return 0;
8959 }
8960 _ACEOF
8961 rm -f conftest.$ac_objext
8962 if { (ac_try="$ac_compile"
8963 case "(($ac_try" in
8964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8965 *) ac_try_echo=$ac_try;;
8966 esac
8967 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8968 $as_echo "$ac_try_echo") >&5
8969 (eval "$ac_compile") 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } && {
8976 test -z "$ac_c_werror_flag" ||
8977 test ! -s conftest.err
8978 } && test -s conftest.$ac_objext; then
8979 ac_cv_member_struct_ifreq_ifr_addr=yes
8980 else
8981 $as_echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8983
8984 ac_cv_member_struct_ifreq_ifr_addr=no
8985 fi
8986
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 fi
8989
8990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8991 fi
8992 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8993 $as_echo "$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8994 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8995 6670
8996 cat >>confdefs.h <<_ACEOF 6671 cat >>confdefs.h <<_ACEOF
8997 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1 6672 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8998 _ACEOF 6673 _ACEOF
8999 6674
9000 6675
9001 fi 6676 fi
9002 6677
9003 6678
9004 6679
9005 { $as_echo "$as_me:$LINENO: checking for function prototypes" >&5 6680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
9006 $as_echo_n "checking for function prototypes... " >&6; } 6681 $as_echo_n "checking for function prototypes... " >&6; }
9007 if test "$ac_cv_prog_cc_c89" != no; then 6682 if test "$ac_cv_prog_cc_c89" != no; then
9008 { $as_echo "$as_me:$LINENO: result: yes" >&5 6683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9009 $as_echo "yes" >&6; } 6684 $as_echo "yes" >&6; }
9010 6685
9011 cat >>confdefs.h <<\_ACEOF 6686 $as_echo "#define PROTOTYPES 1" >>confdefs.h
9012 #define PROTOTYPES 1 6687
9013 _ACEOF 6688
9014 6689 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
9015 6690
9016 cat >>confdefs.h <<\_ACEOF 6691 else
9017 #define __PROTOTYPES 1 6692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9018 _ACEOF
9019
9020 else
9021 { $as_echo "$as_me:$LINENO: result: no" >&5
9022 $as_echo "no" >&6; } 6693 $as_echo "no" >&6; }
9023 fi 6694 fi
9024 6695
9025 { $as_echo "$as_me:$LINENO: checking for working volatile" >&5 6696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
9026 $as_echo_n "checking for working volatile... " >&6; } 6697 $as_echo_n "checking for working volatile... " >&6; }
9027 if test "${ac_cv_c_volatile+set}" = set; then 6698 if test "${ac_cv_c_volatile+set}" = set; then :
9028 $as_echo_n "(cached) " >&6 6699 $as_echo_n "(cached) " >&6
9029 else 6700 else
9030 cat >conftest.$ac_ext <<_ACEOF 6701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9031 /* confdefs.h. */
9032 _ACEOF
9033 cat confdefs.h >>conftest.$ac_ext
9034 cat >>conftest.$ac_ext <<_ACEOF
9035 /* end confdefs.h. */ 6702 /* end confdefs.h. */
9036 6703
9037 int 6704 int
9038 main () 6705 main ()
9039 { 6706 {
9043 return !x && !y; 6710 return !x && !y;
9044 ; 6711 ;
9045 return 0; 6712 return 0;
9046 } 6713 }
9047 _ACEOF 6714 _ACEOF
9048 rm -f conftest.$ac_objext 6715 if ac_fn_c_try_compile "$LINENO"; then :
9049 if { (ac_try="$ac_compile"
9050 case "(($ac_try" in
9051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9052 *) ac_try_echo=$ac_try;;
9053 esac
9054 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9055 $as_echo "$ac_try_echo") >&5
9056 (eval "$ac_compile") 2>conftest.er1
9057 ac_status=$?
9058 grep -v '^ *+' conftest.er1 >conftest.err
9059 rm -f conftest.er1
9060 cat conftest.err >&5
9061 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9062 (exit $ac_status); } && {
9063 test -z "$ac_c_werror_flag" ||
9064 test ! -s conftest.err
9065 } && test -s conftest.$ac_objext; then
9066 ac_cv_c_volatile=yes 6716 ac_cv_c_volatile=yes
9067 else 6717 else
9068 $as_echo "$as_me: failed program was:" >&5 6718 ac_cv_c_volatile=no
9069 sed 's/^/| /' conftest.$ac_ext >&5 6719 fi
9070
9071 ac_cv_c_volatile=no
9072 fi
9073
9074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9075 fi 6721 fi
9076 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
9077 $as_echo "$ac_cv_c_volatile" >&6; } 6723 $as_echo "$ac_cv_c_volatile" >&6; }
9078 if test $ac_cv_c_volatile = no; then 6724 if test $ac_cv_c_volatile = no; then
9079 6725
9080 cat >>confdefs.h <<\_ACEOF 6726 $as_echo "#define volatile /**/" >>confdefs.h
9081 #define volatile /**/ 6727
9082 _ACEOF 6728 fi
9083 6729
9084 fi 6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9085
9086 { $as_echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9087 $as_echo_n "checking for an ANSI C-conforming const... " >&6; } 6731 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9088 if test "${ac_cv_c_const+set}" = set; then 6732 if test "${ac_cv_c_const+set}" = set; then :
9089 $as_echo_n "(cached) " >&6 6733 $as_echo_n "(cached) " >&6
9090 else 6734 else
9091 cat >conftest.$ac_ext <<_ACEOF 6735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9092 /* confdefs.h. */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */ 6736 /* end confdefs.h. */
9097 6737
9098 int 6738 int
9099 main () 6739 main ()
9100 { 6740 {
9150 6790
9151 ; 6791 ;
9152 return 0; 6792 return 0;
9153 } 6793 }
9154 _ACEOF 6794 _ACEOF
9155 rm -f conftest.$ac_objext 6795 if ac_fn_c_try_compile "$LINENO"; then :
9156 if { (ac_try="$ac_compile"
9157 case "(($ac_try" in
9158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159 *) ac_try_echo=$ac_try;;
9160 esac
9161 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9162 $as_echo "$ac_try_echo") >&5
9163 (eval "$ac_compile") 2>conftest.er1
9164 ac_status=$?
9165 grep -v '^ *+' conftest.er1 >conftest.err
9166 rm -f conftest.er1
9167 cat conftest.err >&5
9168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } && {
9170 test -z "$ac_c_werror_flag" ||
9171 test ! -s conftest.err
9172 } && test -s conftest.$ac_objext; then
9173 ac_cv_c_const=yes 6796 ac_cv_c_const=yes
9174 else 6797 else
9175 $as_echo "$as_me: failed program was:" >&5 6798 ac_cv_c_const=no
9176 sed 's/^/| /' conftest.$ac_ext >&5 6799 fi
9177
9178 ac_cv_c_const=no
9179 fi
9180
9181 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9182 fi 6801 fi
9183 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9184 $as_echo "$ac_cv_c_const" >&6; } 6803 $as_echo "$ac_cv_c_const" >&6; }
9185 if test $ac_cv_c_const = no; then 6804 if test $ac_cv_c_const = no; then
9186 6805
9187 cat >>confdefs.h <<\_ACEOF 6806 $as_echo "#define const /**/" >>confdefs.h
9188 #define const /**/ 6807
9189 _ACEOF 6808 fi
9190 6809
9191 fi 6810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for void * support" >&5
9192
9193 { $as_echo "$as_me:$LINENO: checking for void * support" >&5
9194 $as_echo_n "checking for void * support... " >&6; } 6811 $as_echo_n "checking for void * support... " >&6; }
9195 if test "${emacs_cv_void_star+set}" = set; then 6812 if test "${emacs_cv_void_star+set}" = set; then :
9196 $as_echo_n "(cached) " >&6 6813 $as_echo_n "(cached) " >&6
9197 else 6814 else
9198 cat >conftest.$ac_ext <<_ACEOF 6815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* confdefs.h. */
9200 _ACEOF
9201 cat confdefs.h >>conftest.$ac_ext
9202 cat >>conftest.$ac_ext <<_ACEOF
9203 /* end confdefs.h. */ 6816 /* end confdefs.h. */
9204 6817
9205 int 6818 int
9206 main () 6819 main ()
9207 { 6820 {
9208 void * foo; 6821 void * foo;
9209 ; 6822 ;
9210 return 0; 6823 return 0;
9211 } 6824 }
9212 _ACEOF 6825 _ACEOF
9213 rm -f conftest.$ac_objext 6826 if ac_fn_c_try_compile "$LINENO"; then :
9214 if { (ac_try="$ac_compile"
9215 case "(($ac_try" in
9216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9217 *) ac_try_echo=$ac_try;;
9218 esac
9219 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9220 $as_echo "$ac_try_echo") >&5
9221 (eval "$ac_compile") 2>conftest.er1
9222 ac_status=$?
9223 grep -v '^ *+' conftest.er1 >conftest.err
9224 rm -f conftest.er1
9225 cat conftest.err >&5
9226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && {
9228 test -z "$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest.$ac_objext; then
9231 emacs_cv_void_star=yes 6827 emacs_cv_void_star=yes
9232 else 6828 else
9233 $as_echo "$as_me: failed program was:" >&5 6829 emacs_cv_void_star=no
9234 sed 's/^/| /' conftest.$ac_ext >&5 6830 fi
9235
9236 emacs_cv_void_star=no
9237 fi
9238
9239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9240 fi 6832 fi
9241 { $as_echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5 6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_void_star" >&5
9242 $as_echo "$emacs_cv_void_star" >&6; } 6834 $as_echo "$emacs_cv_void_star" >&6; }
9243 if test $emacs_cv_void_star = yes; then 6835 if test $emacs_cv_void_star = yes; then
9244 cat >>confdefs.h <<\_ACEOF 6836 $as_echo "#define POINTER_TYPE void" >>confdefs.h
9245 #define POINTER_TYPE void 6837
9246 _ACEOF 6838 else
9247 6839 $as_echo "#define POINTER_TYPE char" >>confdefs.h
9248 else 6840
9249 cat >>confdefs.h <<\_ACEOF 6841 fi
9250 #define POINTER_TYPE char 6842
9251 _ACEOF 6843
9252 6844
9253 fi 6845
9254 6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9255
9256
9257
9258
9259 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9260 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 6847 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
9261 set x ${MAKE-make} 6848 set x ${MAKE-make}
9262 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 6849 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9263 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then 6850 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
9264 $as_echo_n "(cached) " >&6 6851 $as_echo_n "(cached) " >&6
9265 else 6852 else
9266 cat >conftest.make <<\_ACEOF 6853 cat >conftest.make <<\_ACEOF
9267 SHELL = /bin/sh 6854 SHELL = /bin/sh
9268 all: 6855 all:
9276 eval ac_cv_prog_make_${ac_make}_set=no;; 6863 eval ac_cv_prog_make_${ac_make}_set=no;;
9277 esac 6864 esac
9278 rm -f conftest.make 6865 rm -f conftest.make
9279 fi 6866 fi
9280 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 6867 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9281 { $as_echo "$as_me:$LINENO: result: yes" >&5 6868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9282 $as_echo "yes" >&6; } 6869 $as_echo "yes" >&6; }
9283 SET_MAKE= 6870 SET_MAKE=
9284 else 6871 else
9285 { $as_echo "$as_me:$LINENO: result: no" >&5 6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9286 $as_echo "no" >&6; } 6873 $as_echo "no" >&6; }
9287 SET_MAKE="MAKE=${MAKE-make}" 6874 SET_MAKE="MAKE=${MAKE-make}"
9288 fi 6875 fi
9289 6876
9290 6877
9291 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then 6878 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
9292 { $as_echo "$as_me:$LINENO: checking whether we are using GNU Make" >&5 6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using GNU Make" >&5
9293 $as_echo_n "checking whether we are using GNU Make... " >&6; } 6880 $as_echo_n "checking whether we are using GNU Make... " >&6; }
9294 HAVE_GNU_MAKE=no 6881 HAVE_GNU_MAKE=no
9295 testval=`make --version 2>/dev/null | grep 'GNU Make'` 6882 testval=`make --version 2>/dev/null | grep 'GNU Make'`
9296 if test "x$testval" != x; then 6883 if test "x$testval" != x; then
9297 HAVE_GNU_MAKE=yes 6884 HAVE_GNU_MAKE=yes
9298 else 6885 else
9299 ac_enable_autodepend=no 6886 ac_enable_autodepend=no
9300 fi 6887 fi
9301 { $as_echo "$as_me:$LINENO: result: $HAVE_GNU_MAKE" >&5 6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_GNU_MAKE" >&5
9302 $as_echo "$HAVE_GNU_MAKE" >&6; } 6889 $as_echo "$HAVE_GNU_MAKE" >&6; }
9303 if test $HAVE_GNU_MAKE = yes; then 6890 if test $HAVE_GNU_MAKE = yes; then
9304 { $as_echo "$as_me:$LINENO: checking whether gcc understands -MMD -MF" >&5 6891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc understands -MMD -MF" >&5
9305 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; } 6892 $as_echo_n "checking whether gcc understands -MMD -MF... " >&6; }
9306 SAVE_CFLAGS="$CFLAGS" 6893 SAVE_CFLAGS="$CFLAGS"
9307 CFLAGS="$CFLAGS -MMD -MF deps.d" 6894 CFLAGS="$CFLAGS -MMD -MF deps.d"
9308 cat >conftest.$ac_ext <<_ACEOF 6895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9309 /* confdefs.h. */
9310 _ACEOF
9311 cat confdefs.h >>conftest.$ac_ext
9312 cat >>conftest.$ac_ext <<_ACEOF
9313 /* end confdefs.h. */ 6896 /* end confdefs.h. */
9314 6897
9315 int 6898 int
9316 main () 6899 main ()
9317 { 6900 {
9318 6901
9319 ; 6902 ;
9320 return 0; 6903 return 0;
9321 } 6904 }
9322 _ACEOF 6905 _ACEOF
9323 rm -f conftest.$ac_objext 6906 if ac_fn_c_try_compile "$LINENO"; then :
9324 if { (ac_try="$ac_compile" 6907
9325 case "(($ac_try" in 6908 else
9326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 6909 ac_enable_autodepend=no
9327 *) ac_try_echo=$ac_try;; 6910 fi
9328 esac
9329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9330 $as_echo "$ac_try_echo") >&5
9331 (eval "$ac_compile") 2>conftest.er1
9332 ac_status=$?
9333 grep -v '^ *+' conftest.er1 >conftest.err
9334 rm -f conftest.er1
9335 cat conftest.err >&5
9336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 (exit $ac_status); } && {
9338 test -z "$ac_c_werror_flag" ||
9339 test ! -s conftest.err
9340 } && test -s conftest.$ac_objext; then
9341 :
9342 else
9343 $as_echo "$as_me: failed program was:" >&5
9344 sed 's/^/| /' conftest.$ac_ext >&5
9345
9346 ac_enable_autodepend=no
9347 fi
9348
9349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 6911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9350 CFLAGS="$SAVE_CFLAGS" 6912 CFLAGS="$SAVE_CFLAGS"
9351 test -f deps.d || ac_enable_autodepend=no 6913 test -f deps.d || ac_enable_autodepend=no
9352 rm -rf deps.d 6914 rm -rf deps.d
9353 { $as_echo "$as_me:$LINENO: result: $ac_enable_autodepend" >&5 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_autodepend" >&5
9354 $as_echo "$ac_enable_autodepend" >&6; } 6916 $as_echo "$ac_enable_autodepend" >&6; }
9355 fi 6917 fi
9356 if test $ac_enable_autodepend = yes; then 6918 if test $ac_enable_autodepend = yes; then
9357 6919
9358 cat >>confdefs.h <<\_ACEOF 6920 $as_echo "#define AUTO_DEPEND 1" >>confdefs.h
9359 #define AUTO_DEPEND 1
9360 _ACEOF
9361 6921
9362 fi 6922 fi
9363 fi 6923 fi
9364 6924
9365 { $as_echo "$as_me:$LINENO: checking for long file names" >&5 6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long file names" >&5
9366 $as_echo_n "checking for long file names... " >&6; } 6926 $as_echo_n "checking for long file names... " >&6; }
9367 if test "${ac_cv_sys_long_file_names+set}" = set; then 6927 if test "${ac_cv_sys_long_file_names+set}" = set; then :
9368 $as_echo_n "(cached) " >&6 6928 $as_echo_n "(cached) " >&6
9369 else 6929 else
9370 ac_cv_sys_long_file_names=yes 6930 ac_cv_sys_long_file_names=yes
9371 # Test for long file names in all the places we know might matter: 6931 # Test for long file names in all the places we know might matter:
9372 # . the current directory, where building will happen 6932 # . the current directory, where building will happen
9392 ac_cv_sys_long_file_names=no 6952 ac_cv_sys_long_file_names=no
9393 rm -f -r "$ac_xdir" 2>/dev/null 6953 rm -f -r "$ac_xdir" 2>/dev/null
9394 test $ac_cv_sys_long_file_names = no && break 6954 test $ac_cv_sys_long_file_names = no && break
9395 done 6955 done
9396 fi 6956 fi
9397 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5 6957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_long_file_names" >&5
9398 $as_echo "$ac_cv_sys_long_file_names" >&6; } 6958 $as_echo "$ac_cv_sys_long_file_names" >&6; }
9399 if test $ac_cv_sys_long_file_names = yes; then 6959 if test $ac_cv_sys_long_file_names = yes; then
9400 6960
9401 cat >>confdefs.h <<\_ACEOF 6961 $as_echo "#define HAVE_LONG_FILE_NAMES 1" >>confdefs.h
9402 #define HAVE_LONG_FILE_NAMES 1
9403 _ACEOF
9404 6962
9405 fi 6963 fi
9406 6964
9407 6965
9408 #### Choose a window system. 6966 #### Choose a window system.
9409 6967
9410 { $as_echo "$as_me:$LINENO: checking for X" >&5 6968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
9411 $as_echo_n "checking for X... " >&6; } 6969 $as_echo_n "checking for X... " >&6; }
9412 6970
9413 6971
9414 # Check whether --with-x was given. 6972 # Check whether --with-x was given.
9415 if test "${with_x+set}" = set; then 6973 if test "${with_x+set}" = set; then :
9416 withval=$with_x; 6974 withval=$with_x;
9417 fi 6975 fi
9418 6976
9419 # $have_x is `yes', `no', `disabled', or empty when we do not yet know. 6977 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9420 if test "x$with_x" = xno; then 6978 if test "x$with_x" = xno; then
9421 # The user explicitly disabled X. 6979 # The user explicitly disabled X.
9422 have_x=disabled 6980 have_x=disabled
9423 else 6981 else
9424 case $x_includes,$x_libraries in #( 6982 case $x_includes,$x_libraries in #(
9425 *\'*) { { $as_echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 6983 *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
9426 $as_echo "$as_me: error: Cannot use X directory names containing '" >&2;} 6984 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
9427 { (exit 1); exit 1; }; };; #(
9428 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9429 $as_echo_n "(cached) " >&6 6985 $as_echo_n "(cached) " >&6
9430 else 6986 else
9431 # One or both of the vars are not set, and there is no cached value. 6987 # One or both of the vars are not set, and there is no cached value.
9432 ac_x_includes=no ac_x_libraries=no 6988 ac_x_includes=no ac_x_libraries=no
9433 rm -f -r conftest.dir 6989 rm -f -r conftest.dir
9459 case $ac_im_incroot in 7015 case $ac_im_incroot in
9460 /usr/include) ac_x_includes= ;; 7016 /usr/include) ac_x_includes= ;;
9461 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 7017 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9462 esac 7018 esac
9463 case $ac_im_usrlibdir in 7019 case $ac_im_usrlibdir in
9464 /usr/lib | /lib) ;; 7020 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
9465 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 7021 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9466 esac 7022 esac
9467 fi 7023 fi
9468 cd .. 7024 cd ..
9469 rm -f -r conftest.dir 7025 rm -f -r conftest.dir
9471 7027
9472 # Standard set of common directories for X headers. 7028 # Standard set of common directories for X headers.
9473 # Check X11 before X11Rn because it is often a symlink to the current release. 7029 # Check X11 before X11Rn because it is often a symlink to the current release.
9474 ac_x_header_dirs=' 7030 ac_x_header_dirs='
9475 /usr/X11/include 7031 /usr/X11/include
7032 /usr/X11R7/include
9476 /usr/X11R6/include 7033 /usr/X11R6/include
9477 /usr/X11R5/include 7034 /usr/X11R5/include
9478 /usr/X11R4/include 7035 /usr/X11R4/include
9479 7036
9480 /usr/include/X11 7037 /usr/include/X11
7038 /usr/include/X11R7
9481 /usr/include/X11R6 7039 /usr/include/X11R6
9482 /usr/include/X11R5 7040 /usr/include/X11R5
9483 /usr/include/X11R4 7041 /usr/include/X11R4
9484 7042
9485 /usr/local/X11/include 7043 /usr/local/X11/include
7044 /usr/local/X11R7/include
9486 /usr/local/X11R6/include 7045 /usr/local/X11R6/include
9487 /usr/local/X11R5/include 7046 /usr/local/X11R5/include
9488 /usr/local/X11R4/include 7047 /usr/local/X11R4/include
9489 7048
9490 /usr/local/include/X11 7049 /usr/local/include/X11
7050 /usr/local/include/X11R7
9491 /usr/local/include/X11R6 7051 /usr/local/include/X11R6
9492 /usr/local/include/X11R5 7052 /usr/local/include/X11R5
9493 /usr/local/include/X11R4 7053 /usr/local/include/X11R4
9494 7054
9495 /usr/X386/include 7055 /usr/X386/include
9507 /usr/openwin/share/include' 7067 /usr/openwin/share/include'
9508 7068
9509 if test "$ac_x_includes" = no; then 7069 if test "$ac_x_includes" = no; then
9510 # Guess where to find include files, by looking for Xlib.h. 7070 # Guess where to find include files, by looking for Xlib.h.
9511 # First, try using that file with no special directory specified. 7071 # First, try using that file with no special directory specified.
9512 cat >conftest.$ac_ext <<_ACEOF 7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9513 /* confdefs.h. */
9514 _ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h. */ 7073 /* end confdefs.h. */
9518 #include <X11/Xlib.h> 7074 #include <X11/Xlib.h>
9519 _ACEOF 7075 _ACEOF
9520 if { (ac_try="$ac_cpp conftest.$ac_ext" 7076 if ac_fn_c_try_cpp "$LINENO"; then :
9521 case "(($ac_try" in
9522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9523 *) ac_try_echo=$ac_try;;
9524 esac
9525 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9526 $as_echo "$ac_try_echo") >&5
9527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9528 ac_status=$?
9529 grep -v '^ *+' conftest.er1 >conftest.err
9530 rm -f conftest.er1
9531 cat conftest.err >&5
9532 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9533 (exit $ac_status); } >/dev/null && {
9534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9535 test ! -s conftest.err
9536 }; then
9537 # We can compile using X headers with no special include directory. 7077 # We can compile using X headers with no special include directory.
9538 ac_x_includes= 7078 ac_x_includes=
9539 else 7079 else
9540 $as_echo "$as_me: failed program was:" >&5
9541 sed 's/^/| /' conftest.$ac_ext >&5
9542
9543 for ac_dir in $ac_x_header_dirs; do 7080 for ac_dir in $ac_x_header_dirs; do
9544 if test -r "$ac_dir/X11/Xlib.h"; then 7081 if test -r "$ac_dir/X11/Xlib.h"; then
9545 ac_x_includes=$ac_dir 7082 ac_x_includes=$ac_dir
9546 break 7083 break
9547 fi 7084 fi
9548 done 7085 done
9549 fi 7086 fi
9550
9551 rm -f conftest.err conftest.$ac_ext 7087 rm -f conftest.err conftest.$ac_ext
9552 fi # $ac_x_includes = no 7088 fi # $ac_x_includes = no
9553 7089
9554 if test "$ac_x_libraries" = no; then 7090 if test "$ac_x_libraries" = no; then
9555 # Check for the libraries. 7091 # Check for the libraries.
9556 # See if we find them without any special options. 7092 # See if we find them without any special options.
9557 # Don't add to $LIBS permanently. 7093 # Don't add to $LIBS permanently.
9558 ac_save_LIBS=$LIBS 7094 ac_save_LIBS=$LIBS
9559 LIBS="-lX11 $LIBS" 7095 LIBS="-lX11 $LIBS"
9560 cat >conftest.$ac_ext <<_ACEOF 7096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9561 /* confdefs.h. */
9562 _ACEOF
9563 cat confdefs.h >>conftest.$ac_ext
9564 cat >>conftest.$ac_ext <<_ACEOF
9565 /* end confdefs.h. */ 7097 /* end confdefs.h. */
9566 #include <X11/Xlib.h> 7098 #include <X11/Xlib.h>
9567 int 7099 int
9568 main () 7100 main ()
9569 { 7101 {
9570 XrmInitialize () 7102 XrmInitialize ()
9571 ; 7103 ;
9572 return 0; 7104 return 0;
9573 } 7105 }
9574 _ACEOF 7106 _ACEOF
9575 rm -f conftest.$ac_objext conftest$ac_exeext 7107 if ac_fn_c_try_link "$LINENO"; then :
9576 if { (ac_try="$ac_link"
9577 case "(($ac_try" in
9578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9579 *) ac_try_echo=$ac_try;;
9580 esac
9581 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9582 $as_echo "$ac_try_echo") >&5
9583 (eval "$ac_link") 2>conftest.er1
9584 ac_status=$?
9585 grep -v '^ *+' conftest.er1 >conftest.err
9586 rm -f conftest.er1
9587 cat conftest.err >&5
9588 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9589 (exit $ac_status); } && {
9590 test -z "$ac_c_werror_flag" ||
9591 test ! -s conftest.err
9592 } && test -s conftest$ac_exeext && {
9593 test "$cross_compiling" = yes ||
9594 $as_test_x conftest$ac_exeext
9595 }; then
9596 LIBS=$ac_save_LIBS 7108 LIBS=$ac_save_LIBS
9597 # We can link X programs with no special library path. 7109 # We can link X programs with no special library path.
9598 ac_x_libraries= 7110 ac_x_libraries=
9599 else 7111 else
9600 $as_echo "$as_me: failed program was:" >&5 7112 LIBS=$ac_save_LIBS
9601 sed 's/^/| /' conftest.$ac_ext >&5
9602
9603 LIBS=$ac_save_LIBS
9604 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 7113 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9605 do 7114 do
9606 # Don't even attempt the hair of trying to link an X program! 7115 # Don't even attempt the hair of trying to link an X program!
9607 for ac_extension in a so sl dylib la dll; do 7116 for ac_extension in a so sl dylib la dll; do
9608 if test -r "$ac_dir/libX11.$ac_extension"; then 7117 if test -r "$ac_dir/libX11.$ac_extension"; then
9610 break 2 7119 break 2
9611 fi 7120 fi
9612 done 7121 done
9613 done 7122 done
9614 fi 7123 fi
9615 7124 rm -f core conftest.err conftest.$ac_objext \
9616 rm -rf conftest.dSYM 7125 conftest$ac_exeext conftest.$ac_ext
9617 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9618 conftest$ac_exeext conftest.$ac_ext
9619 fi # $ac_x_libraries = no 7126 fi # $ac_x_libraries = no
9620 7127
9621 case $ac_x_includes,$ac_x_libraries in #( 7128 case $ac_x_includes,$ac_x_libraries in #(
9622 no,* | *,no | *\'*) 7129 no,* | *,no | *\'*)
9623 # Didn't find X, or a directory has "'" in its name. 7130 # Didn't find X, or a directory has "'" in its name.
9634 esac 7141 esac
9635 eval "$ac_cv_have_x" 7142 eval "$ac_cv_have_x"
9636 fi # $with_x != no 7143 fi # $with_x != no
9637 7144
9638 if test "$have_x" != yes; then 7145 if test "$have_x" != yes; then
9639 { $as_echo "$as_me:$LINENO: result: $have_x" >&5 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
9640 $as_echo "$have_x" >&6; } 7147 $as_echo "$have_x" >&6; }
9641 no_x=yes 7148 no_x=yes
9642 else 7149 else
9643 # If each of the values was on the command line, it overrides each guess. 7150 # If each of the values was on the command line, it overrides each guess.
9644 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 7151 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9645 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 7152 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9646 # Update the cache value to reflect the command line values. 7153 # Update the cache value to reflect the command line values.
9647 ac_cv_have_x="have_x=yes\ 7154 ac_cv_have_x="have_x=yes\
9648 ac_x_includes='$x_includes'\ 7155 ac_x_includes='$x_includes'\
9649 ac_x_libraries='$x_libraries'" 7156 ac_x_libraries='$x_libraries'"
9650 { $as_echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
9651 $as_echo "libraries $x_libraries, headers $x_includes" >&6; } 7158 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
9652 fi 7159 fi
9653 7160
9654 if test "$no_x" = yes; then 7161 if test "$no_x" = yes; then
9655 window_system=none 7162 window_system=none
9741 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 7248 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9742 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 7249 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9743 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}" 7250 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9744 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}" 7251 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9745 fi 7252 fi
9746 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then 7253 ac_fn_c_check_header_mongrel "$LINENO" "AppKit/AppKit.h" "ac_cv_header_AppKit_AppKit_h" "$ac_includes_default"
9747 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5 7254 if test "x$ac_cv_header_AppKit_AppKit_h" = x""yes; then :
9748 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9749 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9750 $as_echo_n "(cached) " >&6
9751 fi
9752 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9753 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9754 else
9755 # Is the header compilable?
9756 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9757 $as_echo_n "checking AppKit/AppKit.h usability... " >&6; }
9758 cat >conftest.$ac_ext <<_ACEOF
9759 /* confdefs.h. */
9760 _ACEOF
9761 cat confdefs.h >>conftest.$ac_ext
9762 cat >>conftest.$ac_ext <<_ACEOF
9763 /* end confdefs.h. */
9764 $ac_includes_default
9765 #include <AppKit/AppKit.h>
9766 _ACEOF
9767 rm -f conftest.$ac_objext
9768 if { (ac_try="$ac_compile"
9769 case "(($ac_try" in
9770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9771 *) ac_try_echo=$ac_try;;
9772 esac
9773 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9774 $as_echo "$ac_try_echo") >&5
9775 (eval "$ac_compile") 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && {
9782 test -z "$ac_c_werror_flag" ||
9783 test ! -s conftest.err
9784 } && test -s conftest.$ac_objext; then
9785 ac_header_compiler=yes
9786 else
9787 $as_echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.$ac_ext >&5
9789
9790 ac_header_compiler=no
9791 fi
9792
9793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9794 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9795 $as_echo "$ac_header_compiler" >&6; }
9796
9797 # Is the header present?
9798 { $as_echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9799 $as_echo_n "checking AppKit/AppKit.h presence... " >&6; }
9800 cat >conftest.$ac_ext <<_ACEOF
9801 /* confdefs.h. */
9802 _ACEOF
9803 cat confdefs.h >>conftest.$ac_ext
9804 cat >>conftest.$ac_ext <<_ACEOF
9805 /* end confdefs.h. */
9806 #include <AppKit/AppKit.h>
9807 _ACEOF
9808 if { (ac_try="$ac_cpp conftest.$ac_ext"
9809 case "(($ac_try" in
9810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9812 esac
9813 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9814 $as_echo "$ac_try_echo") >&5
9815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9816 ac_status=$?
9817 grep -v '^ *+' conftest.er1 >conftest.err
9818 rm -f conftest.er1
9819 cat conftest.err >&5
9820 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9821 (exit $ac_status); } >/dev/null && {
9822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9823 test ! -s conftest.err
9824 }; then
9825 ac_header_preproc=yes
9826 else
9827 $as_echo "$as_me: failed program was:" >&5
9828 sed 's/^/| /' conftest.$ac_ext >&5
9829
9830 ac_header_preproc=no
9831 fi
9832
9833 rm -f conftest.err conftest.$ac_ext
9834 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9835 $as_echo "$ac_header_preproc" >&6; }
9836
9837 # So? What about this header?
9838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9839 yes:no: )
9840 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9841 $as_echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9842 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9843 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9844 ac_header_preproc=yes
9845 ;;
9846 no:yes:* )
9847 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9848 $as_echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9849 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9850 $as_echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9851 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9852 $as_echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9853 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9854 $as_echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9855 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9856 $as_echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9857 { $as_echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9858 $as_echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9859
9860 ;;
9861 esac
9862 { $as_echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9863 $as_echo_n "checking for AppKit/AppKit.h... " >&6; }
9864 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9865 $as_echo_n "(cached) " >&6
9866 else
9867 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9868 fi
9869 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9870 $as_echo "$ac_cv_header_AppKit_AppKit_h" >&6; }
9871
9872 fi
9873 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9874 HAVE_NS=yes 7255 HAVE_NS=yes
9875 else 7256 else
9876 { { $as_echo "$as_me:$LINENO: error: \`--with-ns' was specified, but the include 7257 as_fn_error "\`--with-ns' was specified, but the include
9877 files are missing or cannot be compiled." >&5 7258 files are missing or cannot be compiled." "$LINENO" 5
9878 $as_echo "$as_me: error: \`--with-ns' was specified, but the include
9879 files are missing or cannot be compiled." >&2;}
9880 { (exit 1); exit 1; }; }
9881 fi 7259 fi
9882 7260
9883 7261
9884 NS_HAVE_NSINTEGER=yes 7262 NS_HAVE_NSINTEGER=yes
9885 cat >conftest.$ac_ext <<_ACEOF 7263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */ 7264 /* end confdefs.h. */
9891 #include <Foundation/NSObjCRuntime.h> 7265 #include <Foundation/NSObjCRuntime.h>
9892 int 7266 int
9893 main () 7267 main ()
9894 { 7268 {
9895 NSInteger i; 7269 NSInteger i;
9896 ; 7270 ;
9897 return 0; 7271 return 0;
9898 } 7272 }
9899 _ACEOF 7273 _ACEOF
9900 rm -f conftest.$ac_objext 7274 if ac_fn_c_try_compile "$LINENO"; then :
9901 if { (ac_try="$ac_compile"
9902 case "(($ac_try" in
9903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9904 *) ac_try_echo=$ac_try;;
9905 esac
9906 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9907 $as_echo "$ac_try_echo") >&5
9908 (eval "$ac_compile") 2>conftest.er1
9909 ac_status=$?
9910 grep -v '^ *+' conftest.er1 >conftest.err
9911 rm -f conftest.er1
9912 cat conftest.err >&5
9913 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9914 (exit $ac_status); } && {
9915 test -z "$ac_c_werror_flag" ||
9916 test ! -s conftest.err
9917 } && test -s conftest.$ac_objext; then
9918 ns_have_nsinteger=yes 7275 ns_have_nsinteger=yes
9919 else 7276 else
9920 $as_echo "$as_me: failed program was:" >&5 7277 ns_have_nsinteger=no
9921 sed 's/^/| /' conftest.$ac_ext >&5 7278 fi
9922
9923 ns_have_nsinteger=no
9924 fi
9925
9926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9927 if test $ns_have_nsinteger = no; then 7280 if test $ns_have_nsinteger = no; then
9928 NS_HAVE_NSINTEGER=no 7281 NS_HAVE_NSINTEGER=no
9929 fi 7282 fi
9930 fi 7283 fi
9962 esac 7315 esac
9963 7316
9964 if test "$window_system" = none && test "X$with_x" != "Xno"; then 7317 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9965 # Extract the first word of "X", so it can be a program name with args. 7318 # Extract the first word of "X", so it can be a program name with args.
9966 set dummy X; ac_word=$2 7319 set dummy X; ac_word=$2
9967 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9968 $as_echo_n "checking for $ac_word... " >&6; } 7321 $as_echo_n "checking for $ac_word... " >&6; }
9969 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then 7322 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then :
9970 $as_echo_n "(cached) " >&6 7323 $as_echo_n "(cached) " >&6
9971 else 7324 else
9972 if test -n "$HAVE_XSERVER"; then 7325 if test -n "$HAVE_XSERVER"; then
9973 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test. 7326 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9974 else 7327 else
9975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9976 for as_dir in $PATH 7329 for as_dir in $PATH
9977 do 7330 do
9978 IFS=$as_save_IFS 7331 IFS=$as_save_IFS
9979 test -z "$as_dir" && as_dir=. 7332 test -z "$as_dir" && as_dir=.
9980 for ac_exec_ext in '' $ac_executable_extensions; do 7333 for ac_exec_ext in '' $ac_executable_extensions; do
9981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7334 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9982 ac_cv_prog_HAVE_XSERVER="true" 7335 ac_cv_prog_HAVE_XSERVER="true"
9983 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9984 break 2 7337 break 2
9985 fi 7338 fi
9986 done 7339 done
9987 done 7340 done
9988 IFS=$as_save_IFS 7341 IFS=$as_save_IFS
9989 7342
9990 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false" 7343 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9991 fi 7344 fi
9992 fi 7345 fi
9993 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER 7346 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9994 if test -n "$HAVE_XSERVER"; then 7347 if test -n "$HAVE_XSERVER"; then
9995 { $as_echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HAVE_XSERVER" >&5
9996 $as_echo "$HAVE_XSERVER" >&6; } 7349 $as_echo "$HAVE_XSERVER" >&6; }
9997 else 7350 else
9998 { $as_echo "$as_me:$LINENO: result: no" >&5 7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999 $as_echo "no" >&6; } 7352 $as_echo "no" >&6; }
10000 fi 7353 fi
10001 7354
10002 7355
10003 if test "$HAVE_XSERVER" = true || 7356 if test "$HAVE_XSERVER" = true ||
10004 test -n "$DISPLAY" || 7357 test -n "$DISPLAY" ||
10005 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then 7358 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
10006 { { $as_echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries 7359 as_fn_error "You seem to be running X, but no X development libraries
10007 were found. You should install the relevant development files for X 7360 were found. You should install the relevant development files for X
10008 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make 7361 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10009 sure you have development files for image handling, i.e. 7362 sure you have development files for image handling, i.e.
10010 tiff, gif, jpeg, png and xpm. 7363 tiff, gif, jpeg, png and xpm.
10011 If you are sure you want Emacs compiled without X window support, pass 7364 If you are sure you want Emacs compiled without X window support, pass
10012 --without-x 7365 --without-x
10013 to configure." >&5 7366 to configure." "$LINENO" 5
10014 $as_echo "$as_me: error: You seem to be running X, but no X development libraries
10015 were found. You should install the relevant development files for X
10016 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
10017 sure you have development files for image handling, i.e.
10018 tiff, gif, jpeg, png and xpm.
10019 If you are sure you want Emacs compiled without X window support, pass
10020 --without-x
10021 to configure." >&2;}
10022 { (exit 1); exit 1; }; }
10023 fi 7367 fi
10024 fi 7368 fi
10025 7369
10026 ### If we're using X11, we should use the X menu package. 7370 ### If we're using X11, we should use the X menu package.
10027 HAVE_MENUS=no 7371 HAVE_MENUS=no
10031 7375
10032 # Do the opsystem or machine files prohibit the use of the GNU malloc? 7376 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10033 # Assume not, until told otherwise. 7377 # Assume not, until told otherwise.
10034 GNU_MALLOC=yes 7378 GNU_MALLOC=yes
10035 doug_lea_malloc=yes 7379 doug_lea_malloc=yes
10036 { $as_echo "$as_me:$LINENO: checking for malloc_get_state" >&5 7380 ac_fn_c_check_func "$LINENO" "malloc_get_state" "ac_cv_func_malloc_get_state"
10037 $as_echo_n "checking for malloc_get_state... " >&6; } 7381 if test "x$ac_cv_func_malloc_get_state" = x""yes; then :
10038 if test "${ac_cv_func_malloc_get_state+set}" = set; then 7382
7383 else
7384 doug_lea_malloc=no
7385 fi
7386
7387 ac_fn_c_check_func "$LINENO" "malloc_set_state" "ac_cv_func_malloc_set_state"
7388 if test "x$ac_cv_func_malloc_set_state" = x""yes; then :
7389
7390 else
7391 doug_lea_malloc=no
7392 fi
7393
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __after_morecore_hook exists" >&5
7395 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
7396 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then :
10039 $as_echo_n "(cached) " >&6 7397 $as_echo_n "(cached) " >&6
10040 else 7398 else
10041 cat >conftest.$ac_ext <<_ACEOF 7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10042 /* confdefs.h. */
10043 _ACEOF
10044 cat confdefs.h >>conftest.$ac_ext
10045 cat >>conftest.$ac_ext <<_ACEOF
10046 /* end confdefs.h. */
10047 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10049 #define malloc_get_state innocuous_malloc_get_state
10050
10051 /* System header to define __stub macros and hopefully few prototypes,
10052 which can conflict with char malloc_get_state (); below.
10053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10054 <limits.h> exists even on freestanding compilers. */
10055
10056 #ifdef __STDC__
10057 # include <limits.h>
10058 #else
10059 # include <assert.h>
10060 #endif
10061
10062 #undef malloc_get_state
10063
10064 /* Override any GCC internal prototype to avoid an error.
10065 Use char because int might match the return type of a GCC
10066 builtin and then its argument prototype would still apply. */
10067 #ifdef __cplusplus
10068 extern "C"
10069 #endif
10070 char malloc_get_state ();
10071 /* The GNU C library defines this for functions which it implements
10072 to always fail with ENOSYS. Some functions are actually named
10073 something starting with __ and the normal name is an alias. */
10074 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10075 choke me
10076 #endif
10077
10078 int
10079 main ()
10080 {
10081 return malloc_get_state ();
10082 ;
10083 return 0;
10084 }
10085 _ACEOF
10086 rm -f conftest.$ac_objext conftest$ac_exeext
10087 if { (ac_try="$ac_link"
10088 case "(($ac_try" in
10089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10090 *) ac_try_echo=$ac_try;;
10091 esac
10092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10093 $as_echo "$ac_try_echo") >&5
10094 (eval "$ac_link") 2>conftest.er1
10095 ac_status=$?
10096 grep -v '^ *+' conftest.er1 >conftest.err
10097 rm -f conftest.er1
10098 cat conftest.err >&5
10099 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10100 (exit $ac_status); } && {
10101 test -z "$ac_c_werror_flag" ||
10102 test ! -s conftest.err
10103 } && test -s conftest$ac_exeext && {
10104 test "$cross_compiling" = yes ||
10105 $as_test_x conftest$ac_exeext
10106 }; then
10107 ac_cv_func_malloc_get_state=yes
10108 else
10109 $as_echo "$as_me: failed program was:" >&5
10110 sed 's/^/| /' conftest.$ac_ext >&5
10111
10112 ac_cv_func_malloc_get_state=no
10113 fi
10114
10115 rm -rf conftest.dSYM
10116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10117 conftest$ac_exeext conftest.$ac_ext
10118 fi
10119 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10120 $as_echo "$ac_cv_func_malloc_get_state" >&6; }
10121 if test $ac_cv_func_malloc_get_state = yes; then
10122 :
10123 else
10124 doug_lea_malloc=no
10125 fi
10126
10127 { $as_echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10128 $as_echo_n "checking for malloc_set_state... " >&6; }
10129 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10130 $as_echo_n "(cached) " >&6
10131 else
10132 cat >conftest.$ac_ext <<_ACEOF
10133 /* confdefs.h. */
10134 _ACEOF
10135 cat confdefs.h >>conftest.$ac_ext
10136 cat >>conftest.$ac_ext <<_ACEOF
10137 /* end confdefs.h. */
10138 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10140 #define malloc_set_state innocuous_malloc_set_state
10141
10142 /* System header to define __stub macros and hopefully few prototypes,
10143 which can conflict with char malloc_set_state (); below.
10144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10145 <limits.h> exists even on freestanding compilers. */
10146
10147 #ifdef __STDC__
10148 # include <limits.h>
10149 #else
10150 # include <assert.h>
10151 #endif
10152
10153 #undef malloc_set_state
10154
10155 /* Override any GCC internal prototype to avoid an error.
10156 Use char because int might match the return type of a GCC
10157 builtin and then its argument prototype would still apply. */
10158 #ifdef __cplusplus
10159 extern "C"
10160 #endif
10161 char malloc_set_state ();
10162 /* The GNU C library defines this for functions which it implements
10163 to always fail with ENOSYS. Some functions are actually named
10164 something starting with __ and the normal name is an alias. */
10165 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10166 choke me
10167 #endif
10168
10169 int
10170 main ()
10171 {
10172 return malloc_set_state ();
10173 ;
10174 return 0;
10175 }
10176 _ACEOF
10177 rm -f conftest.$ac_objext conftest$ac_exeext
10178 if { (ac_try="$ac_link"
10179 case "(($ac_try" in
10180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10181 *) ac_try_echo=$ac_try;;
10182 esac
10183 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10184 $as_echo "$ac_try_echo") >&5
10185 (eval "$ac_link") 2>conftest.er1
10186 ac_status=$?
10187 grep -v '^ *+' conftest.er1 >conftest.err
10188 rm -f conftest.er1
10189 cat conftest.err >&5
10190 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10191 (exit $ac_status); } && {
10192 test -z "$ac_c_werror_flag" ||
10193 test ! -s conftest.err
10194 } && test -s conftest$ac_exeext && {
10195 test "$cross_compiling" = yes ||
10196 $as_test_x conftest$ac_exeext
10197 }; then
10198 ac_cv_func_malloc_set_state=yes
10199 else
10200 $as_echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.$ac_ext >&5
10202
10203 ac_cv_func_malloc_set_state=no
10204 fi
10205
10206 rm -rf conftest.dSYM
10207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10208 conftest$ac_exeext conftest.$ac_ext
10209 fi
10210 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10211 $as_echo "$ac_cv_func_malloc_set_state" >&6; }
10212 if test $ac_cv_func_malloc_set_state = yes; then
10213 :
10214 else
10215 doug_lea_malloc=no
10216 fi
10217
10218 { $as_echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10219 $as_echo_n "checking whether __after_morecore_hook exists... " >&6; }
10220 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10221 $as_echo_n "(cached) " >&6
10222 else
10223 cat >conftest.$ac_ext <<_ACEOF
10224 /* confdefs.h. */
10225 _ACEOF
10226 cat confdefs.h >>conftest.$ac_ext
10227 cat >>conftest.$ac_ext <<_ACEOF
10228 /* end confdefs.h. */ 7400 /* end confdefs.h. */
10229 extern void (* __after_morecore_hook)(); 7401 extern void (* __after_morecore_hook)();
10230 int 7402 int
10231 main () 7403 main ()
10232 { 7404 {
10233 __after_morecore_hook = 0 7405 __after_morecore_hook = 0
10234 ; 7406 ;
10235 return 0; 7407 return 0;
10236 } 7408 }
10237 _ACEOF 7409 _ACEOF
10238 rm -f conftest.$ac_objext conftest$ac_exeext 7410 if ac_fn_c_try_link "$LINENO"; then :
10239 if { (ac_try="$ac_link"
10240 case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10243 esac
10244 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10245 $as_echo "$ac_try_echo") >&5
10246 (eval "$ac_link") 2>conftest.er1
10247 ac_status=$?
10248 grep -v '^ *+' conftest.er1 >conftest.err
10249 rm -f conftest.er1
10250 cat conftest.err >&5
10251 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10252 (exit $ac_status); } && {
10253 test -z "$ac_c_werror_flag" ||
10254 test ! -s conftest.err
10255 } && test -s conftest$ac_exeext && {
10256 test "$cross_compiling" = yes ||
10257 $as_test_x conftest$ac_exeext
10258 }; then
10259 emacs_cv_var___after_morecore_hook=yes 7411 emacs_cv_var___after_morecore_hook=yes
10260 else 7412 else
10261 $as_echo "$as_me: failed program was:" >&5 7413 emacs_cv_var___after_morecore_hook=no
10262 sed 's/^/| /' conftest.$ac_ext >&5 7414 fi
10263 7415 rm -f core conftest.err conftest.$ac_objext \
10264 emacs_cv_var___after_morecore_hook=no 7416 conftest$ac_exeext conftest.$ac_ext
10265 fi 7417 fi
10266 7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_var___after_morecore_hook" >&5
10267 rm -rf conftest.dSYM
10268 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10269 conftest$ac_exeext conftest.$ac_ext
10270 fi
10271 { $as_echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10272 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; } 7419 $as_echo "$emacs_cv_var___after_morecore_hook" >&6; }
10273 if test $emacs_cv_var___after_morecore_hook = no; then 7420 if test $emacs_cv_var___after_morecore_hook = no; then
10274 doug_lea_malloc=no 7421 doug_lea_malloc=no
10275 fi 7422 fi
10276 if test "${system_malloc}" = "yes"; then 7423 if test "${system_malloc}" = "yes"; then
10282 if test "$GNU_MALLOC" = yes ; then 7429 if test "$GNU_MALLOC" = yes ; then
10283 GNU_MALLOC_reason=" 7430 GNU_MALLOC_reason="
10284 (Using Doug Lea's new malloc from the GNU C Library.)" 7431 (Using Doug Lea's new malloc from the GNU C Library.)"
10285 fi 7432 fi
10286 7433
10287 cat >>confdefs.h <<\_ACEOF 7434 $as_echo "#define DOUG_LEA_MALLOC 1" >>confdefs.h
10288 #define DOUG_LEA_MALLOC 1
10289 _ACEOF
10290 7435
10291 fi 7436 fi
10292 7437
10293 if test x"${REL_ALLOC}" = x; then 7438 if test x"${REL_ALLOC}" = x; then
10294 REL_ALLOC=${GNU_MALLOC} 7439 REL_ALLOC=${GNU_MALLOC}
10295 fi 7440 fi
10296 7441
10297 7442
10298 7443
10299 7444
10300 for ac_header in stdlib.h unistd.h 7445
10301 do 7446 for ac_header in $ac_header_list
10302 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7447 do :
10303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7448 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10304 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 7449 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10305 $as_echo_n "checking for $ac_header... " >&6; } 7450 "
10306 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 7451 eval as_val=\$$as_ac_Header
10307 $as_echo_n "(cached) " >&6 7452 if test "x$as_val" = x""yes; then :
10308 fi
10309 ac_res=`eval 'as_val=${'$as_ac_Header'}
10310 $as_echo "$as_val"'`
10311 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10312 $as_echo "$ac_res" >&6; }
10313 else
10314 # Is the header compilable?
10315 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
10316 $as_echo_n "checking $ac_header usability... " >&6; }
10317 cat >conftest.$ac_ext <<_ACEOF
10318 /* confdefs.h. */
10319 _ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10323 $ac_includes_default
10324 #include <$ac_header>
10325 _ACEOF
10326 rm -f conftest.$ac_objext
10327 if { (ac_try="$ac_compile"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10331 esac
10332 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10333 $as_echo "$ac_try_echo") >&5
10334 (eval "$ac_compile") 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } && {
10341 test -z "$ac_c_werror_flag" ||
10342 test ! -s conftest.err
10343 } && test -s conftest.$ac_objext; then
10344 ac_header_compiler=yes
10345 else
10346 $as_echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10348
10349 ac_header_compiler=no
10350 fi
10351
10352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10353 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10354 $as_echo "$ac_header_compiler" >&6; }
10355
10356 # Is the header present?
10357 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
10358 $as_echo_n "checking $ac_header presence... " >&6; }
10359 cat >conftest.$ac_ext <<_ACEOF
10360 /* confdefs.h. */
10361 _ACEOF
10362 cat confdefs.h >>conftest.$ac_ext
10363 cat >>conftest.$ac_ext <<_ACEOF
10364 /* end confdefs.h. */
10365 #include <$ac_header>
10366 _ACEOF
10367 if { (ac_try="$ac_cpp conftest.$ac_ext"
10368 case "(($ac_try" in
10369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10370 *) ac_try_echo=$ac_try;;
10371 esac
10372 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10373 $as_echo "$ac_try_echo") >&5
10374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10375 ac_status=$?
10376 grep -v '^ *+' conftest.er1 >conftest.err
10377 rm -f conftest.er1
10378 cat conftest.err >&5
10379 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10380 (exit $ac_status); } >/dev/null && {
10381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10382 test ! -s conftest.err
10383 }; then
10384 ac_header_preproc=yes
10385 else
10386 $as_echo "$as_me: failed program was:" >&5
10387 sed 's/^/| /' conftest.$ac_ext >&5
10388
10389 ac_header_preproc=no
10390 fi
10391
10392 rm -f conftest.err conftest.$ac_ext
10393 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10394 $as_echo "$ac_header_preproc" >&6; }
10395
10396 # So? What about this header?
10397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10398 yes:no: )
10399 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10400 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10401 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10402 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10403 ac_header_preproc=yes
10404 ;;
10405 no:yes:* )
10406 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10407 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10408 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10409 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10410 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10411 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10412 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10413 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10414 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10415 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10416 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10417 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10418
10419 ;;
10420 esac
10421 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
10422 $as_echo_n "checking for $ac_header... " >&6; }
10423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10424 $as_echo_n "(cached) " >&6
10425 else
10426 eval "$as_ac_Header=\$ac_header_preproc"
10427 fi
10428 ac_res=`eval 'as_val=${'$as_ac_Header'}
10429 $as_echo "$as_val"'`
10430 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10431 $as_echo "$ac_res" >&6; }
10432
10433 fi
10434 if test `eval 'as_val=${'$as_ac_Header'}
10435 $as_echo "$as_val"'` = yes; then
10436 cat >>confdefs.h <<_ACEOF 7453 cat >>confdefs.h <<_ACEOF
10437 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7454 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10438 _ACEOF 7455 _ACEOF
10439 7456
10440 fi 7457 fi
10441 7458
10442 done 7459 done
10443 7460
10444 7461
7462
7463
7464
7465
7466
7467
10445 for ac_func in getpagesize 7468 for ac_func in getpagesize
10446 do 7469 do :
10447 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7470 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
10448 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 7471 if test "x$ac_cv_func_getpagesize" = x""yes; then :
10449 $as_echo_n "checking for $ac_func... " >&6; } 7472 cat >>confdefs.h <<_ACEOF
10450 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7473 #define HAVE_GETPAGESIZE 1
7474 _ACEOF
7475
7476 fi
7477 done
7478
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
7480 $as_echo_n "checking for working mmap... " >&6; }
7481 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then :
10451 $as_echo_n "(cached) " >&6 7482 $as_echo_n "(cached) " >&6
10452 else 7483 else
10453 cat >conftest.$ac_ext <<_ACEOF 7484 if test "$cross_compiling" = yes; then :
10454 /* confdefs.h. */
10455 _ACEOF
10456 cat confdefs.h >>conftest.$ac_ext
10457 cat >>conftest.$ac_ext <<_ACEOF
10458 /* end confdefs.h. */
10459 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10460 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10461 #define $ac_func innocuous_$ac_func
10462
10463 /* System header to define __stub macros and hopefully few prototypes,
10464 which can conflict with char $ac_func (); below.
10465 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10466 <limits.h> exists even on freestanding compilers. */
10467
10468 #ifdef __STDC__
10469 # include <limits.h>
10470 #else
10471 # include <assert.h>
10472 #endif
10473
10474 #undef $ac_func
10475
10476 /* Override any GCC internal prototype to avoid an error.
10477 Use char because int might match the return type of a GCC
10478 builtin and then its argument prototype would still apply. */
10479 #ifdef __cplusplus
10480 extern "C"
10481 #endif
10482 char $ac_func ();
10483 /* The GNU C library defines this for functions which it implements
10484 to always fail with ENOSYS. Some functions are actually named
10485 something starting with __ and the normal name is an alias. */
10486 #if defined __stub_$ac_func || defined __stub___$ac_func
10487 choke me
10488 #endif
10489
10490 int
10491 main ()
10492 {
10493 return $ac_func ();
10494 ;
10495 return 0;
10496 }
10497 _ACEOF
10498 rm -f conftest.$ac_objext conftest$ac_exeext
10499 if { (ac_try="$ac_link"
10500 case "(($ac_try" in
10501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10502 *) ac_try_echo=$ac_try;;
10503 esac
10504 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10505 $as_echo "$ac_try_echo") >&5
10506 (eval "$ac_link") 2>conftest.er1
10507 ac_status=$?
10508 grep -v '^ *+' conftest.er1 >conftest.err
10509 rm -f conftest.er1
10510 cat conftest.err >&5
10511 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10512 (exit $ac_status); } && {
10513 test -z "$ac_c_werror_flag" ||
10514 test ! -s conftest.err
10515 } && test -s conftest$ac_exeext && {
10516 test "$cross_compiling" = yes ||
10517 $as_test_x conftest$ac_exeext
10518 }; then
10519 eval "$as_ac_var=yes"
10520 else
10521 $as_echo "$as_me: failed program was:" >&5
10522 sed 's/^/| /' conftest.$ac_ext >&5
10523
10524 eval "$as_ac_var=no"
10525 fi
10526
10527 rm -rf conftest.dSYM
10528 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10529 conftest$ac_exeext conftest.$ac_ext
10530 fi
10531 ac_res=`eval 'as_val=${'$as_ac_var'}
10532 $as_echo "$as_val"'`
10533 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
10534 $as_echo "$ac_res" >&6; }
10535 if test `eval 'as_val=${'$as_ac_var'}
10536 $as_echo "$as_val"'` = yes; then
10537 cat >>confdefs.h <<_ACEOF
10538 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10539 _ACEOF
10540
10541 fi
10542 done
10543
10544 { $as_echo "$as_me:$LINENO: checking for working mmap" >&5
10545 $as_echo_n "checking for working mmap... " >&6; }
10546 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10547 $as_echo_n "(cached) " >&6
10548 else
10549 if test "$cross_compiling" = yes; then
10550 ac_cv_func_mmap_fixed_mapped=no 7485 ac_cv_func_mmap_fixed_mapped=no
10551 else 7486 else
10552 cat >conftest.$ac_ext <<_ACEOF 7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10553 /* confdefs.h. */
10554 _ACEOF
10555 cat confdefs.h >>conftest.$ac_ext
10556 cat >>conftest.$ac_ext <<_ACEOF
10557 /* end confdefs.h. */ 7488 /* end confdefs.h. */
10558 $ac_includes_default 7489 $ac_includes_default
10559 /* malloc might have been renamed as rpl_malloc. */ 7490 /* malloc might have been renamed as rpl_malloc. */
10560 #undef malloc 7491 #undef malloc
10561 7492
10588 char *malloc (); 7519 char *malloc ();
10589 #endif 7520 #endif
10590 7521
10591 /* This mess was copied from the GNU getpagesize.h. */ 7522 /* This mess was copied from the GNU getpagesize.h. */
10592 #ifndef HAVE_GETPAGESIZE 7523 #ifndef HAVE_GETPAGESIZE
10593 /* Assume that all systems that can run configure have sys/param.h. */
10594 # ifndef HAVE_SYS_PARAM_H
10595 # define HAVE_SYS_PARAM_H 1
10596 # endif
10597
10598 # ifdef _SC_PAGESIZE 7524 # ifdef _SC_PAGESIZE
10599 # define getpagesize() sysconf(_SC_PAGESIZE) 7525 # define getpagesize() sysconf(_SC_PAGESIZE)
10600 # else /* no _SC_PAGESIZE */ 7526 # else /* no _SC_PAGESIZE */
10601 # ifdef HAVE_SYS_PARAM_H 7527 # ifdef HAVE_SYS_PARAM_H
10602 # include <sys/param.h> 7528 # include <sys/param.h>
10628 int 7554 int
10629 main () 7555 main ()
10630 { 7556 {
10631 char *data, *data2, *data3; 7557 char *data, *data2, *data3;
10632 int i, pagesize; 7558 int i, pagesize;
10633 int fd; 7559 int fd, fd2;
10634 7560
10635 pagesize = getpagesize (); 7561 pagesize = getpagesize ();
10636 7562
10637 /* First, make a file with some known garbage in it. */ 7563 /* First, make a file with some known garbage in it. */
10638 data = (char *) malloc (pagesize); 7564 data = (char *) malloc (pagesize);
10641 for (i = 0; i < pagesize; ++i) 7567 for (i = 0; i < pagesize; ++i)
10642 *(data + i) = rand (); 7568 *(data + i) = rand ();
10643 umask (0); 7569 umask (0);
10644 fd = creat ("conftest.mmap", 0600); 7570 fd = creat ("conftest.mmap", 0600);
10645 if (fd < 0) 7571 if (fd < 0)
10646 return 1; 7572 return 2;
10647 if (write (fd, data, pagesize) != pagesize) 7573 if (write (fd, data, pagesize) != pagesize)
10648 return 1; 7574 return 3;
10649 close (fd); 7575 close (fd);
7576
7577 /* Next, check that the tail of a page is zero-filled. File must have
7578 non-zero length, otherwise we risk SIGBUS for entire page. */
7579 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
7580 if (fd2 < 0)
7581 return 4;
7582 data2 = "";
7583 if (write (fd2, data2, 1) != 1)
7584 return 5;
7585 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
7586 if (data2 == MAP_FAILED)
7587 return 6;
7588 for (i = 0; i < pagesize; ++i)
7589 if (*(data2 + i))
7590 return 7;
7591 close (fd2);
7592 if (munmap (data2, pagesize))
7593 return 8;
10650 7594
10651 /* Next, try to mmap the file at a fixed address which already has 7595 /* Next, try to mmap the file at a fixed address which already has
10652 something else allocated at it. If we can, also make sure that 7596 something else allocated at it. If we can, also make sure that
10653 we see the same garbage. */ 7597 we see the same garbage. */
10654 fd = open ("conftest.mmap", O_RDWR); 7598 fd = open ("conftest.mmap", O_RDWR);
10655 if (fd < 0) 7599 if (fd < 0)
10656 return 1; 7600 return 9;
10657 data2 = (char *) malloc (2 * pagesize);
10658 if (!data2)
10659 return 1;
10660 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10661 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 7601 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10662 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 7602 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10663 return 1; 7603 return 10;
10664 for (i = 0; i < pagesize; ++i) 7604 for (i = 0; i < pagesize; ++i)
10665 if (*(data + i) != *(data2 + i)) 7605 if (*(data + i) != *(data2 + i))
10666 return 1; 7606 return 11;
10667 7607
10668 /* Finally, make sure that changes to the mapped area do not 7608 /* Finally, make sure that changes to the mapped area do not
10669 percolate back to the file as seen by read(). (This is a bug on 7609 percolate back to the file as seen by read(). (This is a bug on
10670 some variants of i386 svr4.0.) */ 7610 some variants of i386 svr4.0.) */
10671 for (i = 0; i < pagesize; ++i) 7611 for (i = 0; i < pagesize; ++i)
10672 *(data2 + i) = *(data2 + i) + 1; 7612 *(data2 + i) = *(data2 + i) + 1;
10673 data3 = (char *) malloc (pagesize); 7613 data3 = (char *) malloc (pagesize);
10674 if (!data3) 7614 if (!data3)
10675 return 1; 7615 return 12;
10676 if (read (fd, data3, pagesize) != pagesize) 7616 if (read (fd, data3, pagesize) != pagesize)
10677 return 1; 7617 return 13;
10678 for (i = 0; i < pagesize; ++i) 7618 for (i = 0; i < pagesize; ++i)
10679 if (*(data + i) != *(data3 + i)) 7619 if (*(data + i) != *(data3 + i))
10680 return 1; 7620 return 14;
10681 close (fd); 7621 close (fd);
10682 return 0; 7622 return 0;
10683 } 7623 }
10684 _ACEOF 7624 _ACEOF
10685 rm -f conftest$ac_exeext 7625 if ac_fn_c_try_run "$LINENO"; then :
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10690 esac
10691 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10692 $as_echo "$ac_try_echo") >&5
10693 (eval "$ac_link") 2>&5
10694 ac_status=$?
10695 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10697 { (case "(($ac_try" in
10698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10699 *) ac_try_echo=$ac_try;;
10700 esac
10701 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10702 $as_echo "$ac_try_echo") >&5
10703 (eval "$ac_try") 2>&5
10704 ac_status=$?
10705 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10706 (exit $ac_status); }; }; then
10707 ac_cv_func_mmap_fixed_mapped=yes 7626 ac_cv_func_mmap_fixed_mapped=yes
10708 else 7627 else
10709 $as_echo "$as_me: program exited with status $ac_status" >&5 7628 ac_cv_func_mmap_fixed_mapped=no
10710 $as_echo "$as_me: failed program was:" >&5 7629 fi
10711 sed 's/^/| /' conftest.$ac_ext >&5 7630 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10712 7631 conftest.$ac_objext conftest.beam conftest.$ac_ext
10713 ( exit $ac_status ) 7632 fi
10714 ac_cv_func_mmap_fixed_mapped=no 7633
10715 fi 7634 fi
10716 rm -rf conftest.dSYM 7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
10717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10718 fi
10719
10720
10721 fi
10722 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10723 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 7636 $as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
10724 if test $ac_cv_func_mmap_fixed_mapped = yes; then 7637 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10725 7638
10726 cat >>confdefs.h <<\_ACEOF 7639 $as_echo "#define HAVE_MMAP 1" >>confdefs.h
10727 #define HAVE_MMAP 1 7640
10728 _ACEOF 7641 fi
10729 7642 rm -f conftest.mmap conftest.txt
10730 fi
10731 rm -f conftest.mmap
10732 7643
10733 if test $use_mmap_for_buffers = yes; then 7644 if test $use_mmap_for_buffers = yes; then
10734 REL_ALLOC=no 7645 REL_ALLOC=no
10735 fi 7646 fi
10736 7647
10737 LIBS="$libsrc_libs $LIBS" 7648 LIBS="$libsrc_libs $LIBS"
10738 7649
10739 7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
10740 { $as_echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10741 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 7651 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
10742 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then 7652 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
10743 $as_echo_n "(cached) " >&6 7653 $as_echo_n "(cached) " >&6
10744 else 7654 else
10745 ac_check_lib_save_LIBS=$LIBS 7655 ac_check_lib_save_LIBS=$LIBS
10746 LIBS="-ldnet $LIBS" 7656 LIBS="-ldnet $LIBS"
10747 cat >conftest.$ac_ext <<_ACEOF 7657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10748 /* confdefs.h. */
10749 _ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */ 7658 /* end confdefs.h. */
10753 7659
10754 /* Override any GCC internal prototype to avoid an error. 7660 /* Override any GCC internal prototype to avoid an error.
10755 Use char because int might match the return type of a GCC 7661 Use char because int might match the return type of a GCC
10756 builtin and then its argument prototype would still apply. */ 7662 builtin and then its argument prototype would still apply. */
10764 return dnet_ntoa (); 7670 return dnet_ntoa ();
10765 ; 7671 ;
10766 return 0; 7672 return 0;
10767 } 7673 }
10768 _ACEOF 7674 _ACEOF
10769 rm -f conftest.$ac_objext conftest$ac_exeext 7675 if ac_fn_c_try_link "$LINENO"; then :
10770 if { (ac_try="$ac_link"
10771 case "(($ac_try" in
10772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10773 *) ac_try_echo=$ac_try;;
10774 esac
10775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10776 $as_echo "$ac_try_echo") >&5
10777 (eval "$ac_link") 2>conftest.er1
10778 ac_status=$?
10779 grep -v '^ *+' conftest.er1 >conftest.err
10780 rm -f conftest.er1
10781 cat conftest.err >&5
10782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10783 (exit $ac_status); } && {
10784 test -z "$ac_c_werror_flag" ||
10785 test ! -s conftest.err
10786 } && test -s conftest$ac_exeext && {
10787 test "$cross_compiling" = yes ||
10788 $as_test_x conftest$ac_exeext
10789 }; then
10790 ac_cv_lib_dnet_dnet_ntoa=yes 7676 ac_cv_lib_dnet_dnet_ntoa=yes
10791 else 7677 else
10792 $as_echo "$as_me: failed program was:" >&5 7678 ac_cv_lib_dnet_dnet_ntoa=no
10793 sed 's/^/| /' conftest.$ac_ext >&5 7679 fi
10794 7680 rm -f core conftest.err conftest.$ac_objext \
10795 ac_cv_lib_dnet_dnet_ntoa=no 7681 conftest$ac_exeext conftest.$ac_ext
10796 fi
10797
10798 rm -rf conftest.dSYM
10799 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10800 conftest$ac_exeext conftest.$ac_ext
10801 LIBS=$ac_check_lib_save_LIBS 7682 LIBS=$ac_check_lib_save_LIBS
10802 fi 7683 fi
10803 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 7684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10804 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 7685 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10805 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then 7686 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
10806 cat >>confdefs.h <<_ACEOF 7687 cat >>confdefs.h <<_ACEOF
10807 #define HAVE_LIBDNET 1 7688 #define HAVE_LIBDNET 1
10808 _ACEOF 7689 _ACEOF
10809 7690
10810 LIBS="-ldnet $LIBS" 7691 LIBS="-ldnet $LIBS"
10811 7692
10812 fi 7693 fi
10813 7694
10814 7695
10815 { $as_echo "$as_me:$LINENO: checking for main in -lXbsd" >&5 7696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lXbsd" >&5
10816 $as_echo_n "checking for main in -lXbsd... " >&6; } 7697 $as_echo_n "checking for main in -lXbsd... " >&6; }
10817 if test "${ac_cv_lib_Xbsd_main+set}" = set; then 7698 if test "${ac_cv_lib_Xbsd_main+set}" = set; then :
10818 $as_echo_n "(cached) " >&6 7699 $as_echo_n "(cached) " >&6
10819 else 7700 else
10820 ac_check_lib_save_LIBS=$LIBS 7701 ac_check_lib_save_LIBS=$LIBS
10821 LIBS="-lXbsd $LIBS" 7702 LIBS="-lXbsd $LIBS"
10822 cat >conftest.$ac_ext <<_ACEOF 7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* confdefs.h. */
10824 _ACEOF
10825 cat confdefs.h >>conftest.$ac_ext
10826 cat >>conftest.$ac_ext <<_ACEOF
10827 /* end confdefs.h. */ 7704 /* end confdefs.h. */
10828 7705
10829 7706
10830 int 7707 int
10831 main () 7708 main ()
10833 return main (); 7710 return main ();
10834 ; 7711 ;
10835 return 0; 7712 return 0;
10836 } 7713 }
10837 _ACEOF 7714 _ACEOF
10838 rm -f conftest.$ac_objext conftest$ac_exeext 7715 if ac_fn_c_try_link "$LINENO"; then :
10839 if { (ac_try="$ac_link"
10840 case "(($ac_try" in
10841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10842 *) ac_try_echo=$ac_try;;
10843 esac
10844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10845 $as_echo "$ac_try_echo") >&5
10846 (eval "$ac_link") 2>conftest.er1
10847 ac_status=$?
10848 grep -v '^ *+' conftest.er1 >conftest.err
10849 rm -f conftest.er1
10850 cat conftest.err >&5
10851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10852 (exit $ac_status); } && {
10853 test -z "$ac_c_werror_flag" ||
10854 test ! -s conftest.err
10855 } && test -s conftest$ac_exeext && {
10856 test "$cross_compiling" = yes ||
10857 $as_test_x conftest$ac_exeext
10858 }; then
10859 ac_cv_lib_Xbsd_main=yes 7716 ac_cv_lib_Xbsd_main=yes
10860 else 7717 else
10861 $as_echo "$as_me: failed program was:" >&5 7718 ac_cv_lib_Xbsd_main=no
10862 sed 's/^/| /' conftest.$ac_ext >&5 7719 fi
10863 7720 rm -f core conftest.err conftest.$ac_objext \
10864 ac_cv_lib_Xbsd_main=no 7721 conftest$ac_exeext conftest.$ac_ext
10865 fi
10866
10867 rm -rf conftest.dSYM
10868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10869 conftest$ac_exeext conftest.$ac_ext
10870 LIBS=$ac_check_lib_save_LIBS 7722 LIBS=$ac_check_lib_save_LIBS
10871 fi 7723 fi
10872 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5 7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xbsd_main" >&5
10873 $as_echo "$ac_cv_lib_Xbsd_main" >&6; } 7725 $as_echo "$ac_cv_lib_Xbsd_main" >&6; }
10874 if test $ac_cv_lib_Xbsd_main = yes; then 7726 if test "x$ac_cv_lib_Xbsd_main" = x""yes; then :
10875 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd" 7727 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10876 fi 7728 fi
10877 7729
10878 7730
10879 7731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cma_open in -lpthreads" >&5
10880 { $as_echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10881 $as_echo_n "checking for cma_open in -lpthreads... " >&6; } 7732 $as_echo_n "checking for cma_open in -lpthreads... " >&6; }
10882 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then 7733 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then :
10883 $as_echo_n "(cached) " >&6 7734 $as_echo_n "(cached) " >&6
10884 else 7735 else
10885 ac_check_lib_save_LIBS=$LIBS 7736 ac_check_lib_save_LIBS=$LIBS
10886 LIBS="-lpthreads $LIBS" 7737 LIBS="-lpthreads $LIBS"
10887 cat >conftest.$ac_ext <<_ACEOF 7738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10888 /* confdefs.h. */
10889 _ACEOF
10890 cat confdefs.h >>conftest.$ac_ext
10891 cat >>conftest.$ac_ext <<_ACEOF
10892 /* end confdefs.h. */ 7739 /* end confdefs.h. */
10893 7740
10894 /* Override any GCC internal prototype to avoid an error. 7741 /* Override any GCC internal prototype to avoid an error.
10895 Use char because int might match the return type of a GCC 7742 Use char because int might match the return type of a GCC
10896 builtin and then its argument prototype would still apply. */ 7743 builtin and then its argument prototype would still apply. */
10904 return cma_open (); 7751 return cma_open ();
10905 ; 7752 ;
10906 return 0; 7753 return 0;
10907 } 7754 }
10908 _ACEOF 7755 _ACEOF
10909 rm -f conftest.$ac_objext conftest$ac_exeext 7756 if ac_fn_c_try_link "$LINENO"; then :
10910 if { (ac_try="$ac_link"
10911 case "(($ac_try" in
10912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10913 *) ac_try_echo=$ac_try;;
10914 esac
10915 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10916 $as_echo "$ac_try_echo") >&5
10917 (eval "$ac_link") 2>conftest.er1
10918 ac_status=$?
10919 grep -v '^ *+' conftest.er1 >conftest.err
10920 rm -f conftest.er1
10921 cat conftest.err >&5
10922 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10923 (exit $ac_status); } && {
10924 test -z "$ac_c_werror_flag" ||
10925 test ! -s conftest.err
10926 } && test -s conftest$ac_exeext && {
10927 test "$cross_compiling" = yes ||
10928 $as_test_x conftest$ac_exeext
10929 }; then
10930 ac_cv_lib_pthreads_cma_open=yes 7757 ac_cv_lib_pthreads_cma_open=yes
10931 else 7758 else
10932 $as_echo "$as_me: failed program was:" >&5 7759 ac_cv_lib_pthreads_cma_open=no
10933 sed 's/^/| /' conftest.$ac_ext >&5 7760 fi
10934 7761 rm -f core conftest.err conftest.$ac_objext \
10935 ac_cv_lib_pthreads_cma_open=no 7762 conftest$ac_exeext conftest.$ac_ext
10936 fi
10937
10938 rm -rf conftest.dSYM
10939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10940 conftest$ac_exeext conftest.$ac_ext
10941 LIBS=$ac_check_lib_save_LIBS 7763 LIBS=$ac_check_lib_save_LIBS
10942 fi 7764 fi
10943 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthreads_cma_open" >&5
10944 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; } 7766 $as_echo "$ac_cv_lib_pthreads_cma_open" >&6; }
10945 if test $ac_cv_lib_pthreads_cma_open = yes; then 7767 if test "x$ac_cv_lib_pthreads_cma_open" = x""yes; then :
10946 cat >>confdefs.h <<_ACEOF 7768 cat >>confdefs.h <<_ACEOF
10947 #define HAVE_LIBPTHREADS 1 7769 #define HAVE_LIBPTHREADS 1
10948 _ACEOF 7770 _ACEOF
10949 7771
10950 LIBS="-lpthreads $LIBS" 7772 LIBS="-lpthreads $LIBS"
10953 7775
10954 7776
10955 7777
10956 case ${host_os} in 7778 case ${host_os} in
10957 aix*) 7779 aix*)
10958 { $as_echo "$as_me:$LINENO: checking for -bbigtoc option" >&5 7780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -bbigtoc option" >&5
10959 $as_echo_n "checking for -bbigtoc option... " >&6; } 7781 $as_echo_n "checking for -bbigtoc option... " >&6; }
10960 if test "${gdb_cv_bigtoc+set}" = set; then 7782 if test "${gdb_cv_bigtoc+set}" = set; then :
10961 $as_echo_n "(cached) " >&6 7783 $as_echo_n "(cached) " >&6
10962 else 7784 else
10963 7785
10964 case $GCC in 7786 case $GCC in
10965 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;; 7787 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10966 *) gdb_cv_bigtoc=-bbigtoc ;; 7788 *) gdb_cv_bigtoc=-bbigtoc ;;
10967 esac 7789 esac
10968 7790
10969 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc 7791 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10970 cat >conftest.$ac_ext <<_ACEOF 7792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10971 /* confdefs.h. */
10972 _ACEOF
10973 cat confdefs.h >>conftest.$ac_ext
10974 cat >>conftest.$ac_ext <<_ACEOF
10975 /* end confdefs.h. */ 7793 /* end confdefs.h. */
10976 7794
10977 int 7795 int
10978 main () 7796 main ()
10979 { 7797 {
10980 int i; 7798 int i;
10981 ; 7799 ;
10982 return 0; 7800 return 0;
10983 } 7801 }
10984 _ACEOF 7802 _ACEOF
10985 rm -f conftest.$ac_objext conftest$ac_exeext 7803 if ac_fn_c_try_link "$LINENO"; then :
10986 if { (ac_try="$ac_link" 7804
10987 case "(($ac_try" in 7805 else
10988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 7806 gdb_cv_bigtoc=
10989 *) ac_try_echo=$ac_try;; 7807 fi
10990 esac 7808 rm -f core conftest.err conftest.$ac_objext \
10991 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\"" 7809 conftest$ac_exeext conftest.$ac_ext
10992 $as_echo "$ac_try_echo") >&5 7810
10993 (eval "$ac_link") 2>conftest.er1 7811 fi
10994 ac_status=$? 7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gdb_cv_bigtoc" >&5
10995 grep -v '^ *+' conftest.er1 >conftest.err
10996 rm -f conftest.er1
10997 cat conftest.err >&5
10998 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10999 (exit $ac_status); } && {
11000 test -z "$ac_c_werror_flag" ||
11001 test ! -s conftest.err
11002 } && test -s conftest$ac_exeext && {
11003 test "$cross_compiling" = yes ||
11004 $as_test_x conftest$ac_exeext
11005 }; then
11006 :
11007 else
11008 $as_echo "$as_me: failed program was:" >&5
11009 sed 's/^/| /' conftest.$ac_ext >&5
11010
11011 gdb_cv_bigtoc=
11012 fi
11013
11014 rm -rf conftest.dSYM
11015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11016 conftest$ac_exeext conftest.$ac_ext
11017
11018 fi
11019 { $as_echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11020 $as_echo "$gdb_cv_bigtoc" >&6; } 7813 $as_echo "$gdb_cv_bigtoc" >&6; }
11021 ;; 7814 ;;
11022 esac 7815 esac
11023 7816
11024 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets 7817 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11042 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH 7835 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11043 export LD_RUN_PATH 7836 export LD_RUN_PATH
11044 fi 7837 fi
11045 7838
11046 if test "${opsys}" = "gnu-linux"; then 7839 if test "${opsys}" = "gnu-linux"; then
11047 { $as_echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5 7840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether X on GNU/Linux needs -b to link" >&5
11048 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; } 7841 $as_echo_n "checking whether X on GNU/Linux needs -b to link... " >&6; }
11049 cat >conftest.$ac_ext <<_ACEOF 7842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11050 /* confdefs.h. */
11051 _ACEOF
11052 cat confdefs.h >>conftest.$ac_ext
11053 cat >>conftest.$ac_ext <<_ACEOF
11054 /* end confdefs.h. */ 7843 /* end confdefs.h. */
11055 7844
11056 int 7845 int
11057 main () 7846 main ()
11058 { 7847 {
11059 XOpenDisplay ("foo"); 7848 XOpenDisplay ("foo");
11060 ; 7849 ;
11061 return 0; 7850 return 0;
11062 } 7851 }
11063 _ACEOF 7852 _ACEOF
11064 rm -f conftest.$ac_objext conftest$ac_exeext 7853 if ac_fn_c_try_link "$LINENO"; then :
11065 if { (ac_try="$ac_link"
11066 case "(($ac_try" in
11067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11068 *) ac_try_echo=$ac_try;;
11069 esac
11070 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11071 $as_echo "$ac_try_echo") >&5
11072 (eval "$ac_link") 2>conftest.er1
11073 ac_status=$?
11074 grep -v '^ *+' conftest.er1 >conftest.err
11075 rm -f conftest.er1
11076 cat conftest.err >&5
11077 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11078 (exit $ac_status); } && {
11079 test -z "$ac_c_werror_flag" ||
11080 test ! -s conftest.err
11081 } && test -s conftest$ac_exeext && {
11082 test "$cross_compiling" = yes ||
11083 $as_test_x conftest$ac_exeext
11084 }; then
11085 xlinux_first_failure=no 7854 xlinux_first_failure=no
11086 else 7855 else
11087 $as_echo "$as_me: failed program was:" >&5 7856 xlinux_first_failure=yes
11088 sed 's/^/| /' conftest.$ac_ext >&5 7857 fi
11089 7858 rm -f core conftest.err conftest.$ac_objext \
11090 xlinux_first_failure=yes 7859 conftest$ac_exeext conftest.$ac_ext
11091 fi
11092
11093 rm -rf conftest.dSYM
11094 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11095 conftest$ac_exeext conftest.$ac_ext
11096 if test "${xlinux_first_failure}" = "yes"; then 7860 if test "${xlinux_first_failure}" = "yes"; then
11097 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE" 7861 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11098 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE" 7862 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11099 OLD_CPPFLAGS="$CPPFLAGS" 7863 OLD_CPPFLAGS="$CPPFLAGS"
11100 OLD_LIBS="$LIBS" 7864 OLD_LIBS="$LIBS"
11101 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout" 7865 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11102 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout" 7866 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11103 CPPFLAGS="$CPPFLAGS -b i486-linuxaout" 7867 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11104 LIBS="$LIBS -b i486-linuxaout" 7868 LIBS="$LIBS -b i486-linuxaout"
11105 cat >conftest.$ac_ext <<_ACEOF 7869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11106 /* confdefs.h. */
11107 _ACEOF
11108 cat confdefs.h >>conftest.$ac_ext
11109 cat >>conftest.$ac_ext <<_ACEOF
11110 /* end confdefs.h. */ 7870 /* end confdefs.h. */
11111 7871
11112 int 7872 int
11113 main () 7873 main ()
11114 { 7874 {
11115 XOpenDisplay ("foo"); 7875 XOpenDisplay ("foo");
11116 ; 7876 ;
11117 return 0; 7877 return 0;
11118 } 7878 }
11119 _ACEOF 7879 _ACEOF
11120 rm -f conftest.$ac_objext conftest$ac_exeext 7880 if ac_fn_c_try_link "$LINENO"; then :
11121 if { (ac_try="$ac_link"
11122 case "(($ac_try" in
11123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11124 *) ac_try_echo=$ac_try;;
11125 esac
11126 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11127 $as_echo "$ac_try_echo") >&5
11128 (eval "$ac_link") 2>conftest.er1
11129 ac_status=$?
11130 grep -v '^ *+' conftest.er1 >conftest.err
11131 rm -f conftest.er1
11132 cat conftest.err >&5
11133 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134 (exit $ac_status); } && {
11135 test -z "$ac_c_werror_flag" ||
11136 test ! -s conftest.err
11137 } && test -s conftest$ac_exeext && {
11138 test "$cross_compiling" = yes ||
11139 $as_test_x conftest$ac_exeext
11140 }; then
11141 xlinux_second_failure=no 7881 xlinux_second_failure=no
11142 else 7882 else
11143 $as_echo "$as_me: failed program was:" >&5 7883 xlinux_second_failure=yes
11144 sed 's/^/| /' conftest.$ac_ext >&5 7884 fi
11145 7885 rm -f core conftest.err conftest.$ac_objext \
11146 xlinux_second_failure=yes 7886 conftest$ac_exeext conftest.$ac_ext
11147 fi
11148
11149 rm -rf conftest.dSYM
11150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11151 conftest$ac_exeext conftest.$ac_ext
11152 if test "${xlinux_second_failure}" = "yes"; then 7887 if test "${xlinux_second_failure}" = "yes"; then
11153 # If we get the same failure with -b, there is no use adding -b. 7888 # If we get the same failure with -b, there is no use adding -b.
11154 # So take it out. This plays safe. 7889 # So take it out. This plays safe.
11155 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE" 7890 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11156 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE" 7891 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11157 CPPFLAGS="$OLD_CPPFLAGS" 7892 CPPFLAGS="$OLD_CPPFLAGS"
11158 LIBS="$OLD_LIBS" 7893 LIBS="$OLD_LIBS"
11159 { $as_echo "$as_me:$LINENO: result: no" >&5 7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; } 7895 $as_echo "no" >&6; }
11161 else 7896 else
11162 { $as_echo "$as_me:$LINENO: result: yes" >&5 7897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11163 $as_echo "yes" >&6; } 7898 $as_echo "yes" >&6; }
11164 fi 7899 fi
11165 else 7900 else
11166 { $as_echo "$as_me:$LINENO: result: no" >&5 7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11167 $as_echo "no" >&6; } 7902 $as_echo "no" >&6; }
11168 fi 7903 fi
11169 fi 7904 fi
11170 7905
11171 # Reportedly, some broken Solaris systems have XKBlib.h but are missing 7906 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11172 # header files included from there. 7907 # header files included from there.
11173 { $as_echo "$as_me:$LINENO: checking for Xkb" >&5 7908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Xkb" >&5
11174 $as_echo_n "checking for Xkb... " >&6; } 7909 $as_echo_n "checking for Xkb... " >&6; }
11175 cat >conftest.$ac_ext <<_ACEOF 7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11176 /* confdefs.h. */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */ 7911 /* end confdefs.h. */
11181 #include <X11/Xlib.h> 7912 #include <X11/Xlib.h>
11182 #include <X11/XKBlib.h> 7913 #include <X11/XKBlib.h>
11183 int 7914 int
11184 main () 7915 main ()
11186 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd); 7917 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11187 ; 7918 ;
11188 return 0; 7919 return 0;
11189 } 7920 }
11190 _ACEOF 7921 _ACEOF
11191 rm -f conftest.$ac_objext conftest$ac_exeext 7922 if ac_fn_c_try_link "$LINENO"; then :
11192 if { (ac_try="$ac_link"
11193 case "(($ac_try" in
11194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11195 *) ac_try_echo=$ac_try;;
11196 esac
11197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11198 $as_echo "$ac_try_echo") >&5
11199 (eval "$ac_link") 2>conftest.er1
11200 ac_status=$?
11201 grep -v '^ *+' conftest.er1 >conftest.err
11202 rm -f conftest.er1
11203 cat conftest.err >&5
11204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11205 (exit $ac_status); } && {
11206 test -z "$ac_c_werror_flag" ||
11207 test ! -s conftest.err
11208 } && test -s conftest$ac_exeext && {
11209 test "$cross_compiling" = yes ||
11210 $as_test_x conftest$ac_exeext
11211 }; then
11212 emacs_xkb=yes 7923 emacs_xkb=yes
11213 else 7924 else
11214 $as_echo "$as_me: failed program was:" >&5 7925 emacs_xkb=no
11215 sed 's/^/| /' conftest.$ac_ext >&5 7926 fi
11216 7927 rm -f core conftest.err conftest.$ac_objext \
11217 emacs_xkb=no 7928 conftest$ac_exeext conftest.$ac_ext
11218 fi 7929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_xkb" >&5
11219
11220 rm -rf conftest.dSYM
11221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11222 conftest$ac_exeext conftest.$ac_ext
11223 { $as_echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11224 $as_echo "$emacs_xkb" >&6; } 7930 $as_echo "$emacs_xkb" >&6; }
11225 if test $emacs_xkb = yes; then 7931 if test $emacs_xkb = yes; then
11226 7932
11227 cat >>confdefs.h <<\_ACEOF 7933 $as_echo "#define HAVE_XKBGETKEYBOARD 1" >>confdefs.h
11228 #define HAVE_XKBGETKEYBOARD 1
11229 _ACEOF
11230 7934
11231 fi 7935 fi
11232 7936
11233 7937 for ac_func in XrmSetDatabase XScreenResourceString \
11234
11235
11236
11237 for ac_func in XrmSetDatabase XScreenResourceString \
11238 XScreenNumberOfScreen XSetWMProtocols 7938 XScreenNumberOfScreen XSetWMProtocols
11239 do 7939 do :
11240 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 7940 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11241 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 7941 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11242 $as_echo_n "checking for $ac_func... " >&6; } 7942 eval as_val=\$$as_ac_var
11243 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 7943 if test "x$as_val" = x""yes; then :
11244 $as_echo_n "(cached) " >&6
11245 else
11246 cat >conftest.$ac_ext <<_ACEOF
11247 /* confdefs.h. */
11248 _ACEOF
11249 cat confdefs.h >>conftest.$ac_ext
11250 cat >>conftest.$ac_ext <<_ACEOF
11251 /* end confdefs.h. */
11252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11253 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11254 #define $ac_func innocuous_$ac_func
11255
11256 /* System header to define __stub macros and hopefully few prototypes,
11257 which can conflict with char $ac_func (); below.
11258 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11259 <limits.h> exists even on freestanding compilers. */
11260
11261 #ifdef __STDC__
11262 # include <limits.h>
11263 #else
11264 # include <assert.h>
11265 #endif
11266
11267 #undef $ac_func
11268
11269 /* Override any GCC internal prototype to avoid an error.
11270 Use char because int might match the return type of a GCC
11271 builtin and then its argument prototype would still apply. */
11272 #ifdef __cplusplus
11273 extern "C"
11274 #endif
11275 char $ac_func ();
11276 /* The GNU C library defines this for functions which it implements
11277 to always fail with ENOSYS. Some functions are actually named
11278 something starting with __ and the normal name is an alias. */
11279 #if defined __stub_$ac_func || defined __stub___$ac_func
11280 choke me
11281 #endif
11282
11283 int
11284 main ()
11285 {
11286 return $ac_func ();
11287 ;
11288 return 0;
11289 }
11290 _ACEOF
11291 rm -f conftest.$ac_objext conftest$ac_exeext
11292 if { (ac_try="$ac_link"
11293 case "(($ac_try" in
11294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11295 *) ac_try_echo=$ac_try;;
11296 esac
11297 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11298 $as_echo "$ac_try_echo") >&5
11299 (eval "$ac_link") 2>conftest.er1
11300 ac_status=$?
11301 grep -v '^ *+' conftest.er1 >conftest.err
11302 rm -f conftest.er1
11303 cat conftest.err >&5
11304 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11305 (exit $ac_status); } && {
11306 test -z "$ac_c_werror_flag" ||
11307 test ! -s conftest.err
11308 } && test -s conftest$ac_exeext && {
11309 test "$cross_compiling" = yes ||
11310 $as_test_x conftest$ac_exeext
11311 }; then
11312 eval "$as_ac_var=yes"
11313 else
11314 $as_echo "$as_me: failed program was:" >&5
11315 sed 's/^/| /' conftest.$ac_ext >&5
11316
11317 eval "$as_ac_var=no"
11318 fi
11319
11320 rm -rf conftest.dSYM
11321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11322 conftest$ac_exeext conftest.$ac_ext
11323 fi
11324 ac_res=`eval 'as_val=${'$as_ac_var'}
11325 $as_echo "$as_val"'`
11326 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11327 $as_echo "$ac_res" >&6; }
11328 if test `eval 'as_val=${'$as_ac_var'}
11329 $as_echo "$as_val"'` = yes; then
11330 cat >>confdefs.h <<_ACEOF 7944 cat >>confdefs.h <<_ACEOF
11331 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 7945 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11332 _ACEOF 7946 _ACEOF
11333 7947
11334 fi 7948 fi
11335 done 7949 done
11336 7950
11337 fi 7951 fi
11338 7952
11339 if test "${window_system}" = "x11"; then 7953 if test "${window_system}" = "x11"; then
11340 { $as_echo "$as_me:$LINENO: checking X11 version 6" >&5 7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 version 6" >&5
11341 $as_echo_n "checking X11 version 6... " >&6; } 7955 $as_echo_n "checking X11 version 6... " >&6; }
11342 if test "${emacs_cv_x11_version_6+set}" = set; then 7956 if test "${emacs_cv_x11_version_6+set}" = set; then :
11343 $as_echo_n "(cached) " >&6 7957 $as_echo_n "(cached) " >&6
11344 else 7958 else
11345 cat >conftest.$ac_ext <<_ACEOF 7959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11346 /* confdefs.h. */
11347 _ACEOF
11348 cat confdefs.h >>conftest.$ac_ext
11349 cat >>conftest.$ac_ext <<_ACEOF
11350 /* end confdefs.h. */ 7960 /* end confdefs.h. */
11351 #include <X11/Xlib.h> 7961 #include <X11/Xlib.h>
11352 int 7962 int
11353 main () 7963 main ()
11354 { 7964 {
11358 7968
11359 ; 7969 ;
11360 return 0; 7970 return 0;
11361 } 7971 }
11362 _ACEOF 7972 _ACEOF
11363 rm -f conftest.$ac_objext conftest$ac_exeext 7973 if ac_fn_c_try_link "$LINENO"; then :
11364 if { (ac_try="$ac_link"
11365 case "(($ac_try" in
11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11368 esac
11369 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11370 $as_echo "$ac_try_echo") >&5
11371 (eval "$ac_link") 2>conftest.er1
11372 ac_status=$?
11373 grep -v '^ *+' conftest.er1 >conftest.err
11374 rm -f conftest.er1
11375 cat conftest.err >&5
11376 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11377 (exit $ac_status); } && {
11378 test -z "$ac_c_werror_flag" ||
11379 test ! -s conftest.err
11380 } && test -s conftest$ac_exeext && {
11381 test "$cross_compiling" = yes ||
11382 $as_test_x conftest$ac_exeext
11383 }; then
11384 emacs_cv_x11_version_6=yes 7974 emacs_cv_x11_version_6=yes
11385 else 7975 else
11386 $as_echo "$as_me: failed program was:" >&5 7976 emacs_cv_x11_version_6=no
11387 sed 's/^/| /' conftest.$ac_ext >&5 7977 fi
11388 7978 rm -f core conftest.err conftest.$ac_objext \
11389 emacs_cv_x11_version_6=no 7979 conftest$ac_exeext conftest.$ac_ext
11390 fi
11391
11392 rm -rf conftest.dSYM
11393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11394 conftest$ac_exeext conftest.$ac_ext
11395 fi 7980 fi
11396 7981
11397 if test $emacs_cv_x11_version_6 = yes; then 7982 if test $emacs_cv_x11_version_6 = yes; then
11398 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5 7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
11399 $as_echo "6 or newer" >&6; } 7984 $as_echo "6 or newer" >&6; }
11400 7985
11401 cat >>confdefs.h <<\_ACEOF 7986 $as_echo "#define HAVE_X11R6 1" >>confdefs.h
11402 #define HAVE_X11R6 1
11403 _ACEOF
11404 7987
11405 else 7988 else
11406 { $as_echo "$as_me:$LINENO: result: before 6" >&5 7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
11407 $as_echo "before 6" >&6; } 7990 $as_echo "before 6" >&6; }
11408 fi 7991 fi
11409 fi 7992 fi
11410 7993
11411 7994
11419 8002
11420 succeeded=no 8003 succeeded=no
11421 8004
11422 # Extract the first word of "pkg-config", so it can be a program name with args. 8005 # Extract the first word of "pkg-config", so it can be a program name with args.
11423 set dummy pkg-config; ac_word=$2 8006 set dummy pkg-config; ac_word=$2
11424 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11425 $as_echo_n "checking for $ac_word... " >&6; } 8008 $as_echo_n "checking for $ac_word... " >&6; }
11426 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 8009 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11427 $as_echo_n "(cached) " >&6 8010 $as_echo_n "(cached) " >&6
11428 else 8011 else
11429 case $PKG_CONFIG in 8012 case $PKG_CONFIG in
11430 [\\/]* | ?:[\\/]*) 8013 [\\/]* | ?:[\\/]*)
11431 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8014 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11435 for as_dir in $PATH 8018 for as_dir in $PATH
11436 do 8019 do
11437 IFS=$as_save_IFS 8020 IFS=$as_save_IFS
11438 test -z "$as_dir" && as_dir=. 8021 test -z "$as_dir" && as_dir=.
11439 for ac_exec_ext in '' $ac_executable_extensions; do 8022 for ac_exec_ext in '' $ac_executable_extensions; do
11440 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8023 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11441 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8024 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11442 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11443 break 2 8026 break 2
11444 fi 8027 fi
11445 done 8028 done
11446 done 8029 done
11447 IFS=$as_save_IFS 8030 IFS=$as_save_IFS
11448 8031
11449 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8032 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11450 ;; 8033 ;;
11451 esac 8034 esac
11452 fi 8035 fi
11453 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8036 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11454 if test -n "$PKG_CONFIG"; then 8037 if test -n "$PKG_CONFIG"; then
11455 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 8038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11456 $as_echo "$PKG_CONFIG" >&6; } 8039 $as_echo "$PKG_CONFIG" >&6; }
11457 else 8040 else
11458 { $as_echo "$as_me:$LINENO: result: no" >&5 8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; } 8042 $as_echo "no" >&6; }
11460 fi 8043 fi
11461 8044
11462 8045
11463 8046
11464 if test "$PKG_CONFIG" = "no" ; then 8047 if test "$PKG_CONFIG" = "no" ; then
11465 : 8048 :
11466 else 8049 else
11467 PKG_CONFIG_MIN_VERSION=0.9.0 8050 PKG_CONFIG_MIN_VERSION=0.9.0
11468 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 8051 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11469 { $as_echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5 8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $RSVG_MODULE" >&5
11470 $as_echo_n "checking for $RSVG_MODULE... " >&6; } 8053 $as_echo_n "checking for $RSVG_MODULE... " >&6; }
11471 8054
11472 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then 8055 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11473 { $as_echo "$as_me:$LINENO: result: yes" >&5 8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11474 $as_echo "yes" >&6; } 8057 $as_echo "yes" >&6; }
11475 succeeded=yes 8058 succeeded=yes
11476 8059
11477 { $as_echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5 8060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_CFLAGS" >&5
11478 $as_echo_n "checking RSVG_CFLAGS... " >&6; } 8061 $as_echo_n "checking RSVG_CFLAGS... " >&6; }
11479 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'` 8062 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11480 { $as_echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5 8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_CFLAGS" >&5
11481 $as_echo "$RSVG_CFLAGS" >&6; } 8064 $as_echo "$RSVG_CFLAGS" >&6; }
11482 8065
11483 { $as_echo "$as_me:$LINENO: checking RSVG_LIBS" >&5 8066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking RSVG_LIBS" >&5
11484 $as_echo_n "checking RSVG_LIBS... " >&6; } 8067 $as_echo_n "checking RSVG_LIBS... " >&6; }
11485 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'` 8068 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11486 { $as_echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5 8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVG_LIBS" >&5
11487 $as_echo "$RSVG_LIBS" >&6; } 8070 $as_echo "$RSVG_LIBS" >&6; }
11488 else 8071 else
11489 { $as_echo "$as_me:$LINENO: result: no" >&5 8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11490 $as_echo "no" >&6; } 8073 $as_echo "no" >&6; }
11491 RSVG_CFLAGS="" 8074 RSVG_CFLAGS=""
11492 RSVG_LIBS="" 8075 RSVG_LIBS=""
11493 ## If we have a custom action on failure, don't print errors, but 8076 ## If we have a custom action on failure, don't print errors, but
11494 ## do set a variable so people can do so. 8077 ## do set a variable so people can do so.
11514 8097
11515 8098
11516 if test ".${RSVG_CFLAGS}" != "."; then 8099 if test ".${RSVG_CFLAGS}" != "."; then
11517 HAVE_RSVG=yes 8100 HAVE_RSVG=yes
11518 8101
11519 cat >>confdefs.h <<\_ACEOF 8102 $as_echo "#define HAVE_RSVG 1" >>confdefs.h
11520 #define HAVE_RSVG 1
11521 _ACEOF
11522 8103
11523 CFLAGS="$CFLAGS $RSVG_CFLAGS" 8104 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11524 LIBS="$RSVG_LIBS $LIBS" 8105 LIBS="$RSVG_LIBS $LIBS"
11525 fi 8106 fi
11526 fi 8107 fi
11536 8117
11537 succeeded=no 8118 succeeded=no
11538 8119
11539 # Extract the first word of "pkg-config", so it can be a program name with args. 8120 # Extract the first word of "pkg-config", so it can be a program name with args.
11540 set dummy pkg-config; ac_word=$2 8121 set dummy pkg-config; ac_word=$2
11541 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11542 $as_echo_n "checking for $ac_word... " >&6; } 8123 $as_echo_n "checking for $ac_word... " >&6; }
11543 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 8124 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
11544 $as_echo_n "(cached) " >&6 8125 $as_echo_n "(cached) " >&6
11545 else 8126 else
11546 case $PKG_CONFIG in 8127 case $PKG_CONFIG in
11547 [\\/]* | ?:[\\/]*) 8128 [\\/]* | ?:[\\/]*)
11548 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8129 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11552 for as_dir in $PATH 8133 for as_dir in $PATH
11553 do 8134 do
11554 IFS=$as_save_IFS 8135 IFS=$as_save_IFS
11555 test -z "$as_dir" && as_dir=. 8136 test -z "$as_dir" && as_dir=.
11556 for ac_exec_ext in '' $ac_executable_extensions; do 8137 for ac_exec_ext in '' $ac_executable_extensions; do
11557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11558 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8139 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11559 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11560 break 2 8141 break 2
11561 fi 8142 fi
11562 done 8143 done
11563 done 8144 done
11564 IFS=$as_save_IFS 8145 IFS=$as_save_IFS
11565 8146
11566 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8147 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11567 ;; 8148 ;;
11568 esac 8149 esac
11569 fi 8150 fi
11570 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8151 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11571 if test -n "$PKG_CONFIG"; then 8152 if test -n "$PKG_CONFIG"; then
11572 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 8153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
11573 $as_echo "$PKG_CONFIG" >&6; } 8154 $as_echo "$PKG_CONFIG" >&6; }
11574 else 8155 else
11575 { $as_echo "$as_me:$LINENO: result: no" >&5 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11576 $as_echo "no" >&6; } 8157 $as_echo "no" >&6; }
11577 fi 8158 fi
11578 8159
11579 8160
11580 8161
11581 if test "$PKG_CONFIG" = "no" ; then 8162 if test "$PKG_CONFIG" = "no" ; then
11582 pkg_check_gtk=no 8163 pkg_check_gtk=no
11583 else 8164 else
11584 PKG_CONFIG_MIN_VERSION=0.9.0 8165 PKG_CONFIG_MIN_VERSION=0.9.0
11585 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 8166 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11586 { $as_echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5 8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $GTK_MODULES" >&5
11587 $as_echo_n "checking for $GTK_MODULES... " >&6; } 8168 $as_echo_n "checking for $GTK_MODULES... " >&6; }
11588 8169
11589 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then 8170 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11590 { $as_echo "$as_me:$LINENO: result: yes" >&5 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11591 $as_echo "yes" >&6; } 8172 $as_echo "yes" >&6; }
11592 succeeded=yes 8173 succeeded=yes
11593 8174
11594 { $as_echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5 8175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
11595 $as_echo_n "checking GTK_CFLAGS... " >&6; } 8176 $as_echo_n "checking GTK_CFLAGS... " >&6; }
11596 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'` 8177 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11597 { $as_echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5 8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
11598 $as_echo "$GTK_CFLAGS" >&6; } 8179 $as_echo "$GTK_CFLAGS" >&6; }
11599 8180
11600 { $as_echo "$as_me:$LINENO: checking GTK_LIBS" >&5 8181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
11601 $as_echo_n "checking GTK_LIBS... " >&6; } 8182 $as_echo_n "checking GTK_LIBS... " >&6; }
11602 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'` 8183 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11603 { $as_echo "$as_me:$LINENO: result: $GTK_LIBS" >&5 8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
11604 $as_echo "$GTK_LIBS" >&6; } 8185 $as_echo "$GTK_LIBS" >&6; }
11605 else 8186 else
11606 { $as_echo "$as_me:$LINENO: result: no" >&5 8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11607 $as_echo "no" >&6; } 8188 $as_echo "no" >&6; }
11608 GTK_CFLAGS="" 8189 GTK_CFLAGS=""
11609 GTK_LIBS="" 8190 GTK_LIBS=""
11610 ## If we have a custom action on failure, don't print errors, but 8191 ## If we have a custom action on failure, don't print errors, but
11611 ## do set a variable so people can do so. 8192 ## do set a variable so people can do so.
11626 else 8207 else
11627 pkg_check_gtk=no 8208 pkg_check_gtk=no
11628 fi 8209 fi
11629 8210
11630 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then 8211 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11631 { { $as_echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5 8212 as_fn_error "$GTK_PKG_ERRORS" "$LINENO" 5
11632 $as_echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11633 { (exit 1); exit 1; }; }
11634 fi 8213 fi
11635 fi 8214 fi
11636 8215
11637 8216
11638 GTK_OBJ= 8217 GTK_OBJ=
11642 8221
11643 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS" 8222 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11644 CFLAGS="$CFLAGS $GTK_CFLAGS" 8223 CFLAGS="$CFLAGS $GTK_CFLAGS"
11645 LIBS="$GTK_LIBS $LIBS" 8224 LIBS="$GTK_LIBS $LIBS"
11646 GTK_COMPILES=no 8225 GTK_COMPILES=no
11647 8226 for ac_func in gtk_main
11648 for ac_func in gtk_main 8227 do :
11649 do 8228 ac_fn_c_check_func "$LINENO" "gtk_main" "ac_cv_func_gtk_main"
11650 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8229 if test "x$ac_cv_func_gtk_main" = x""yes; then :
11651 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11652 $as_echo_n "checking for $ac_func... " >&6; }
11653 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11654 $as_echo_n "(cached) " >&6
11655 else
11656 cat >conftest.$ac_ext <<_ACEOF
11657 /* confdefs.h. */
11658 _ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11664 #define $ac_func innocuous_$ac_func
11665
11666 /* System header to define __stub macros and hopefully few prototypes,
11667 which can conflict with char $ac_func (); below.
11668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11669 <limits.h> exists even on freestanding compilers. */
11670
11671 #ifdef __STDC__
11672 # include <limits.h>
11673 #else
11674 # include <assert.h>
11675 #endif
11676
11677 #undef $ac_func
11678
11679 /* Override any GCC internal prototype to avoid an error.
11680 Use char because int might match the return type of a GCC
11681 builtin and then its argument prototype would still apply. */
11682 #ifdef __cplusplus
11683 extern "C"
11684 #endif
11685 char $ac_func ();
11686 /* The GNU C library defines this for functions which it implements
11687 to always fail with ENOSYS. Some functions are actually named
11688 something starting with __ and the normal name is an alias. */
11689 #if defined __stub_$ac_func || defined __stub___$ac_func
11690 choke me
11691 #endif
11692
11693 int
11694 main ()
11695 {
11696 return $ac_func ();
11697 ;
11698 return 0;
11699 }
11700 _ACEOF
11701 rm -f conftest.$ac_objext conftest$ac_exeext
11702 if { (ac_try="$ac_link"
11703 case "(($ac_try" in
11704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11705 *) ac_try_echo=$ac_try;;
11706 esac
11707 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11708 $as_echo "$ac_try_echo") >&5
11709 (eval "$ac_link") 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } && {
11716 test -z "$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 } && test -s conftest$ac_exeext && {
11719 test "$cross_compiling" = yes ||
11720 $as_test_x conftest$ac_exeext
11721 }; then
11722 eval "$as_ac_var=yes"
11723 else
11724 $as_echo "$as_me: failed program was:" >&5
11725 sed 's/^/| /' conftest.$ac_ext >&5
11726
11727 eval "$as_ac_var=no"
11728 fi
11729
11730 rm -rf conftest.dSYM
11731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11732 conftest$ac_exeext conftest.$ac_ext
11733 fi
11734 ac_res=`eval 'as_val=${'$as_ac_var'}
11735 $as_echo "$as_val"'`
11736 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11737 $as_echo "$ac_res" >&6; }
11738 if test `eval 'as_val=${'$as_ac_var'}
11739 $as_echo "$as_val"'` = yes; then
11740 cat >>confdefs.h <<_ACEOF 8230 cat >>confdefs.h <<_ACEOF
11741 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8231 #define HAVE_GTK_MAIN 1
11742 _ACEOF 8232 _ACEOF
11743 GTK_COMPILES=yes 8233 GTK_COMPILES=yes
11744 fi 8234 fi
11745 done 8235 done
11746 8236
11747 if test "${GTK_COMPILES}" != "yes"; then 8237 if test "${GTK_COMPILES}" != "yes"; then
11748 if test "$USE_X_TOOLKIT" != "maybe"; then 8238 if test "$USE_X_TOOLKIT" != "maybe"; then
11749 { { $as_echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5 8239 as_fn_error "Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" "$LINENO" 5;
11750 $as_echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11751 { (exit 1); exit 1; }; };
11752 fi 8240 fi
11753 else 8241 else
11754 HAVE_GTK=yes 8242 HAVE_GTK=yes
11755 8243
11756 cat >>confdefs.h <<\_ACEOF 8244 $as_echo "#define USE_GTK 1" >>confdefs.h
11757 #define USE_GTK 1
11758 _ACEOF
11759 8245
11760 GTK_OBJ=gtkutil.o 8246 GTK_OBJ=gtkutil.o
11761 USE_X_TOOLKIT=none 8247 USE_X_TOOLKIT=none
11762 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then 8248 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11763 : 8249 :
11764 else 8250 else
11765 { $as_echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with 8251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your version of Gtk+ will have problems with
11766 closing open displays. This is no problem if you just use 8252 closing open displays. This is no problem if you just use
11767 one display, but if you use more than one and close one of them 8253 one display, but if you use more than one and close one of them
11768 Emacs may crash." >&5 8254 Emacs may crash." >&5
11769 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with 8255 $as_echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11770 closing open displays. This is no problem if you just use 8256 closing open displays. This is no problem if you just use
11783 if test "$with_toolkit_scroll_bars" != no; then 8269 if test "$with_toolkit_scroll_bars" != no; then
11784 with_toolkit_scroll_bars=yes 8270 with_toolkit_scroll_bars=yes
11785 fi 8271 fi
11786 8272
11787 HAVE_GTK_MULTIDISPLAY=no 8273 HAVE_GTK_MULTIDISPLAY=no
11788 8274 for ac_func in gdk_display_open
11789 for ac_func in gdk_display_open 8275 do :
11790 do 8276 ac_fn_c_check_func "$LINENO" "gdk_display_open" "ac_cv_func_gdk_display_open"
11791 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8277 if test "x$ac_cv_func_gdk_display_open" = x""yes; then :
11792 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11793 $as_echo_n "checking for $ac_func... " >&6; }
11794 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11795 $as_echo_n "(cached) " >&6
11796 else
11797 cat >conftest.$ac_ext <<_ACEOF
11798 /* confdefs.h. */
11799 _ACEOF
11800 cat confdefs.h >>conftest.$ac_ext
11801 cat >>conftest.$ac_ext <<_ACEOF
11802 /* end confdefs.h. */
11803 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11805 #define $ac_func innocuous_$ac_func
11806
11807 /* System header to define __stub macros and hopefully few prototypes,
11808 which can conflict with char $ac_func (); below.
11809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11810 <limits.h> exists even on freestanding compilers. */
11811
11812 #ifdef __STDC__
11813 # include <limits.h>
11814 #else
11815 # include <assert.h>
11816 #endif
11817
11818 #undef $ac_func
11819
11820 /* Override any GCC internal prototype to avoid an error.
11821 Use char because int might match the return type of a GCC
11822 builtin and then its argument prototype would still apply. */
11823 #ifdef __cplusplus
11824 extern "C"
11825 #endif
11826 char $ac_func ();
11827 /* The GNU C library defines this for functions which it implements
11828 to always fail with ENOSYS. Some functions are actually named
11829 something starting with __ and the normal name is an alias. */
11830 #if defined __stub_$ac_func || defined __stub___$ac_func
11831 choke me
11832 #endif
11833
11834 int
11835 main ()
11836 {
11837 return $ac_func ();
11838 ;
11839 return 0;
11840 }
11841 _ACEOF
11842 rm -f conftest.$ac_objext conftest$ac_exeext
11843 if { (ac_try="$ac_link"
11844 case "(($ac_try" in
11845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11847 esac
11848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11849 $as_echo "$ac_try_echo") >&5
11850 (eval "$ac_link") 2>conftest.er1
11851 ac_status=$?
11852 grep -v '^ *+' conftest.er1 >conftest.err
11853 rm -f conftest.er1
11854 cat conftest.err >&5
11855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11856 (exit $ac_status); } && {
11857 test -z "$ac_c_werror_flag" ||
11858 test ! -s conftest.err
11859 } && test -s conftest$ac_exeext && {
11860 test "$cross_compiling" = yes ||
11861 $as_test_x conftest$ac_exeext
11862 }; then
11863 eval "$as_ac_var=yes"
11864 else
11865 $as_echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11867
11868 eval "$as_ac_var=no"
11869 fi
11870
11871 rm -rf conftest.dSYM
11872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11873 conftest$ac_exeext conftest.$ac_ext
11874 fi
11875 ac_res=`eval 'as_val=${'$as_ac_var'}
11876 $as_echo "$as_val"'`
11877 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
11878 $as_echo "$ac_res" >&6; }
11879 if test `eval 'as_val=${'$as_ac_var'}
11880 $as_echo "$as_val"'` = yes; then
11881 cat >>confdefs.h <<_ACEOF 8278 cat >>confdefs.h <<_ACEOF
11882 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8279 #define HAVE_GDK_DISPLAY_OPEN 1
11883 _ACEOF 8280 _ACEOF
11884 HAVE_GTK_MULTIDISPLAY=yes 8281 HAVE_GTK_MULTIDISPLAY=yes
11885 fi 8282 fi
11886 done 8283 done
11887 8284
11888 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then 8285 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11889 8286
11890 cat >>confdefs.h <<\_ACEOF 8287 $as_echo "#define HAVE_GTK_MULTIDISPLAY 1" >>confdefs.h
11891 #define HAVE_GTK_MULTIDISPLAY 1
11892 _ACEOF
11893 8288
11894 fi 8289 fi
11895 8290
11896 HAVE_GTK_FILE_SELECTION=no 8291 HAVE_GTK_FILE_SELECTION=no
11897 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_SELECTION is declared" >&5 8292 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_SELECTION" "ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" "$ac_includes_default
11898 $as_echo_n "checking whether GTK_TYPE_FILE_SELECTION is declared... " >&6; }
11899 if test "${ac_cv_have_decl_GTK_TYPE_FILE_SELECTION+set}" = set; then
11900 $as_echo_n "(cached) " >&6
11901 else
11902 cat >conftest.$ac_ext <<_ACEOF
11903 /* confdefs.h. */
11904 _ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11908 $ac_includes_default
11909 #include <gtk/gtk.h> 8293 #include <gtk/gtk.h>
11910 8294 "
11911 int 8295 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" = x""yes; then :
11912 main ()
11913 {
11914 #ifndef GTK_TYPE_FILE_SELECTION
11915 (void) GTK_TYPE_FILE_SELECTION;
11916 #endif
11917
11918 ;
11919 return 0;
11920 }
11921 _ACEOF
11922 rm -f conftest.$ac_objext
11923 if { (ac_try="$ac_compile"
11924 case "(($ac_try" in
11925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11926 *) ac_try_echo=$ac_try;;
11927 esac
11928 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11929 $as_echo "$ac_try_echo") >&5
11930 (eval "$ac_compile") 2>conftest.er1
11931 ac_status=$?
11932 grep -v '^ *+' conftest.er1 >conftest.err
11933 rm -f conftest.er1
11934 cat conftest.err >&5
11935 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11936 (exit $ac_status); } && {
11937 test -z "$ac_c_werror_flag" ||
11938 test ! -s conftest.err
11939 } && test -s conftest.$ac_objext; then
11940 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=yes
11941 else
11942 $as_echo "$as_me: failed program was:" >&5
11943 sed 's/^/| /' conftest.$ac_ext >&5
11944
11945 ac_cv_have_decl_GTK_TYPE_FILE_SELECTION=no
11946 fi
11947
11948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11949 fi
11950 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&5
11951 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_SELECTION" >&6; }
11952 if test $ac_cv_have_decl_GTK_TYPE_FILE_SELECTION = yes; then
11953 HAVE_GTK_FILE_SELECTION=yes 8296 HAVE_GTK_FILE_SELECTION=yes
11954 else 8297 else
11955 HAVE_GTK_FILE_SELECTION=no 8298 HAVE_GTK_FILE_SELECTION=no
11956 fi 8299 fi
11957 8300
11958 if test "$HAVE_GTK_FILE_SELECTION" = yes; then 8301 if test "$HAVE_GTK_FILE_SELECTION" = yes; then
11959 8302 for ac_func in gtk_file_selection_new
11960 for ac_func in gtk_file_selection_new 8303 do :
11961 do 8304 ac_fn_c_check_func "$LINENO" "gtk_file_selection_new" "ac_cv_func_gtk_file_selection_new"
11962 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8305 if test "x$ac_cv_func_gtk_file_selection_new" = x""yes; then :
11963 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
11964 $as_echo_n "checking for $ac_func... " >&6; }
11965 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11966 $as_echo_n "(cached) " >&6
11967 else
11968 cat >conftest.$ac_ext <<_ACEOF
11969 /* confdefs.h. */
11970 _ACEOF
11971 cat confdefs.h >>conftest.$ac_ext
11972 cat >>conftest.$ac_ext <<_ACEOF
11973 /* end confdefs.h. */
11974 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11975 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11976 #define $ac_func innocuous_$ac_func
11977
11978 /* System header to define __stub macros and hopefully few prototypes,
11979 which can conflict with char $ac_func (); below.
11980 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11981 <limits.h> exists even on freestanding compilers. */
11982
11983 #ifdef __STDC__
11984 # include <limits.h>
11985 #else
11986 # include <assert.h>
11987 #endif
11988
11989 #undef $ac_func
11990
11991 /* Override any GCC internal prototype to avoid an error.
11992 Use char because int might match the return type of a GCC
11993 builtin and then its argument prototype would still apply. */
11994 #ifdef __cplusplus
11995 extern "C"
11996 #endif
11997 char $ac_func ();
11998 /* The GNU C library defines this for functions which it implements
11999 to always fail with ENOSYS. Some functions are actually named
12000 something starting with __ and the normal name is an alias. */
12001 #if defined __stub_$ac_func || defined __stub___$ac_func
12002 choke me
12003 #endif
12004
12005 int
12006 main ()
12007 {
12008 return $ac_func ();
12009 ;
12010 return 0;
12011 }
12012 _ACEOF
12013 rm -f conftest.$ac_objext conftest$ac_exeext
12014 if { (ac_try="$ac_link"
12015 case "(($ac_try" in
12016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12017 *) ac_try_echo=$ac_try;;
12018 esac
12019 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12020 $as_echo "$ac_try_echo") >&5
12021 (eval "$ac_link") 2>conftest.er1
12022 ac_status=$?
12023 grep -v '^ *+' conftest.er1 >conftest.err
12024 rm -f conftest.er1
12025 cat conftest.err >&5
12026 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12027 (exit $ac_status); } && {
12028 test -z "$ac_c_werror_flag" ||
12029 test ! -s conftest.err
12030 } && test -s conftest$ac_exeext && {
12031 test "$cross_compiling" = yes ||
12032 $as_test_x conftest$ac_exeext
12033 }; then
12034 eval "$as_ac_var=yes"
12035 else
12036 $as_echo "$as_me: failed program was:" >&5
12037 sed 's/^/| /' conftest.$ac_ext >&5
12038
12039 eval "$as_ac_var=no"
12040 fi
12041
12042 rm -rf conftest.dSYM
12043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12044 conftest$ac_exeext conftest.$ac_ext
12045 fi
12046 ac_res=`eval 'as_val=${'$as_ac_var'}
12047 $as_echo "$as_val"'`
12048 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12049 $as_echo "$ac_res" >&6; }
12050 if test `eval 'as_val=${'$as_ac_var'}
12051 $as_echo "$as_val"'` = yes; then
12052 cat >>confdefs.h <<_ACEOF 8306 cat >>confdefs.h <<_ACEOF
12053 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8307 #define HAVE_GTK_FILE_SELECTION_NEW 1
12054 _ACEOF 8308 _ACEOF
12055 HAVE_GTK_FILE_SELECTION=yes 8309 HAVE_GTK_FILE_SELECTION=yes
12056 else 8310 else
12057 HAVE_GTK_FILE_SELECTION=no 8311 HAVE_GTK_FILE_SELECTION=no
12058 fi 8312 fi
12059 done 8313 done
12060 8314
12061 fi 8315 fi
12062 8316
12063 HAVE_GTK_FILE_CHOOSER=no 8317 HAVE_GTK_FILE_CHOOSER=no
12064 { $as_echo "$as_me:$LINENO: checking whether GTK_TYPE_FILE_CHOOSER is declared" >&5 8318 ac_fn_c_check_decl "$LINENO" "GTK_TYPE_FILE_CHOOSER" "ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" "$ac_includes_default
12065 $as_echo_n "checking whether GTK_TYPE_FILE_CHOOSER is declared... " >&6; }
12066 if test "${ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER+set}" = set; then
12067 $as_echo_n "(cached) " >&6
12068 else
12069 cat >conftest.$ac_ext <<_ACEOF
12070 /* confdefs.h. */
12071 _ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12075 $ac_includes_default
12076 #include <gtk/gtk.h> 8319 #include <gtk/gtk.h>
12077 8320 "
12078 int 8321 if test "x$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" = x""yes; then :
12079 main ()
12080 {
12081 #ifndef GTK_TYPE_FILE_CHOOSER
12082 (void) GTK_TYPE_FILE_CHOOSER;
12083 #endif
12084
12085 ;
12086 return 0;
12087 }
12088 _ACEOF
12089 rm -f conftest.$ac_objext
12090 if { (ac_try="$ac_compile"
12091 case "(($ac_try" in
12092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12093 *) ac_try_echo=$ac_try;;
12094 esac
12095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12096 $as_echo "$ac_try_echo") >&5
12097 (eval "$ac_compile") 2>conftest.er1
12098 ac_status=$?
12099 grep -v '^ *+' conftest.er1 >conftest.err
12100 rm -f conftest.er1
12101 cat conftest.err >&5
12102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12103 (exit $ac_status); } && {
12104 test -z "$ac_c_werror_flag" ||
12105 test ! -s conftest.err
12106 } && test -s conftest.$ac_objext; then
12107 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=yes
12108 else
12109 $as_echo "$as_me: failed program was:" >&5
12110 sed 's/^/| /' conftest.$ac_ext >&5
12111
12112 ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER=no
12113 fi
12114
12115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12116 fi
12117 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&5
12118 $as_echo "$ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER" >&6; }
12119 if test $ac_cv_have_decl_GTK_TYPE_FILE_CHOOSER = yes; then
12120 HAVE_GTK_FILE_CHOOSER=yes 8322 HAVE_GTK_FILE_CHOOSER=yes
12121 else 8323 else
12122 HAVE_GTK_FILE_CHOOSER=no 8324 HAVE_GTK_FILE_CHOOSER=no
12123 fi 8325 fi
12124 8326
12125 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 8327 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12126 8328 for ac_func in gtk_file_chooser_dialog_new
12127 for ac_func in gtk_file_chooser_dialog_new 8329 do :
12128 do 8330 ac_fn_c_check_func "$LINENO" "gtk_file_chooser_dialog_new" "ac_cv_func_gtk_file_chooser_dialog_new"
12129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 8331 if test "x$ac_cv_func_gtk_file_chooser_dialog_new" = x""yes; then :
12130 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12131 $as_echo_n "checking for $ac_func... " >&6; }
12132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12133 $as_echo_n "(cached) " >&6
12134 else
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h. */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h. */
12141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12143 #define $ac_func innocuous_$ac_func
12144
12145 /* System header to define __stub macros and hopefully few prototypes,
12146 which can conflict with char $ac_func (); below.
12147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12148 <limits.h> exists even on freestanding compilers. */
12149
12150 #ifdef __STDC__
12151 # include <limits.h>
12152 #else
12153 # include <assert.h>
12154 #endif
12155
12156 #undef $ac_func
12157
12158 /* Override any GCC internal prototype to avoid an error.
12159 Use char because int might match the return type of a GCC
12160 builtin and then its argument prototype would still apply. */
12161 #ifdef __cplusplus
12162 extern "C"
12163 #endif
12164 char $ac_func ();
12165 /* The GNU C library defines this for functions which it implements
12166 to always fail with ENOSYS. Some functions are actually named
12167 something starting with __ and the normal name is an alias. */
12168 #if defined __stub_$ac_func || defined __stub___$ac_func
12169 choke me
12170 #endif
12171
12172 int
12173 main ()
12174 {
12175 return $ac_func ();
12176 ;
12177 return 0;
12178 }
12179 _ACEOF
12180 rm -f conftest.$ac_objext conftest$ac_exeext
12181 if { (ac_try="$ac_link"
12182 case "(($ac_try" in
12183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12185 esac
12186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12187 $as_echo "$ac_try_echo") >&5
12188 (eval "$ac_link") 2>conftest.er1
12189 ac_status=$?
12190 grep -v '^ *+' conftest.er1 >conftest.err
12191 rm -f conftest.er1
12192 cat conftest.err >&5
12193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } && {
12195 test -z "$ac_c_werror_flag" ||
12196 test ! -s conftest.err
12197 } && test -s conftest$ac_exeext && {
12198 test "$cross_compiling" = yes ||
12199 $as_test_x conftest$ac_exeext
12200 }; then
12201 eval "$as_ac_var=yes"
12202 else
12203 $as_echo "$as_me: failed program was:" >&5
12204 sed 's/^/| /' conftest.$ac_ext >&5
12205
12206 eval "$as_ac_var=no"
12207 fi
12208
12209 rm -rf conftest.dSYM
12210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12211 conftest$ac_exeext conftest.$ac_ext
12212 fi
12213 ac_res=`eval 'as_val=${'$as_ac_var'}
12214 $as_echo "$as_val"'`
12215 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12216 $as_echo "$ac_res" >&6; }
12217 if test `eval 'as_val=${'$as_ac_var'}
12218 $as_echo "$as_val"'` = yes; then
12219 cat >>confdefs.h <<_ACEOF 8332 cat >>confdefs.h <<_ACEOF
12220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8333 #define HAVE_GTK_FILE_CHOOSER_DIALOG_NEW 1
12221 _ACEOF 8334 _ACEOF
12222 HAVE_GTK_FILE_CHOOSER=yes 8335 HAVE_GTK_FILE_CHOOSER=yes
12223 else 8336 else
12224 HAVE_GTK_FILE_CHOOSER=no 8337 HAVE_GTK_FILE_CHOOSER=no
12225 fi 8338 fi
12228 fi 8341 fi
12229 8342
12230 if test "$HAVE_GTK_FILE_SELECTION" = yes \ 8343 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12231 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then 8344 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12232 8345
12233 cat >>confdefs.h <<\_ACEOF 8346 $as_echo "#define HAVE_GTK_FILE_BOTH 1" >>confdefs.h
12234 #define HAVE_GTK_FILE_BOTH 1
12235 _ACEOF
12236 8347
12237 fi 8348 fi
12238 8349
12239 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then 8350 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12240 HAVE_GTK_AND_PTHREAD=no 8351 HAVE_GTK_AND_PTHREAD=no
12241 8352 for ac_header in pthread.h
12242 for ac_header in pthread.h 8353 do :
12243 do 8354 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12244 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 8355 if test "x$ac_cv_header_pthread_h" = x""yes; then :
12245 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12246 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12247 $as_echo_n "checking for $ac_header... " >&6; }
12248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12249 $as_echo_n "(cached) " >&6
12250 fi
12251 ac_res=`eval 'as_val=${'$as_ac_Header'}
12252 $as_echo "$as_val"'`
12253 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12254 $as_echo "$ac_res" >&6; }
12255 else
12256 # Is the header compilable?
12257 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
12258 $as_echo_n "checking $ac_header usability... " >&6; }
12259 cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h. */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12265 $ac_includes_default
12266 #include <$ac_header>
12267 _ACEOF
12268 rm -f conftest.$ac_objext
12269 if { (ac_try="$ac_compile"
12270 case "(($ac_try" in
12271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12272 *) ac_try_echo=$ac_try;;
12273 esac
12274 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12275 $as_echo "$ac_try_echo") >&5
12276 (eval "$ac_compile") 2>conftest.er1
12277 ac_status=$?
12278 grep -v '^ *+' conftest.er1 >conftest.err
12279 rm -f conftest.er1
12280 cat conftest.err >&5
12281 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12282 (exit $ac_status); } && {
12283 test -z "$ac_c_werror_flag" ||
12284 test ! -s conftest.err
12285 } && test -s conftest.$ac_objext; then
12286 ac_header_compiler=yes
12287 else
12288 $as_echo "$as_me: failed program was:" >&5
12289 sed 's/^/| /' conftest.$ac_ext >&5
12290
12291 ac_header_compiler=no
12292 fi
12293
12294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12295 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12296 $as_echo "$ac_header_compiler" >&6; }
12297
12298 # Is the header present?
12299 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
12300 $as_echo_n "checking $ac_header presence... " >&6; }
12301 cat >conftest.$ac_ext <<_ACEOF
12302 /* confdefs.h. */
12303 _ACEOF
12304 cat confdefs.h >>conftest.$ac_ext
12305 cat >>conftest.$ac_ext <<_ACEOF
12306 /* end confdefs.h. */
12307 #include <$ac_header>
12308 _ACEOF
12309 if { (ac_try="$ac_cpp conftest.$ac_ext"
12310 case "(($ac_try" in
12311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12312 *) ac_try_echo=$ac_try;;
12313 esac
12314 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12315 $as_echo "$ac_try_echo") >&5
12316 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12317 ac_status=$?
12318 grep -v '^ *+' conftest.er1 >conftest.err
12319 rm -f conftest.er1
12320 cat conftest.err >&5
12321 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12322 (exit $ac_status); } >/dev/null && {
12323 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12324 test ! -s conftest.err
12325 }; then
12326 ac_header_preproc=yes
12327 else
12328 $as_echo "$as_me: failed program was:" >&5
12329 sed 's/^/| /' conftest.$ac_ext >&5
12330
12331 ac_header_preproc=no
12332 fi
12333
12334 rm -f conftest.err conftest.$ac_ext
12335 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12336 $as_echo "$ac_header_preproc" >&6; }
12337
12338 # So? What about this header?
12339 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12340 yes:no: )
12341 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12342 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12343 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12344 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12345 ac_header_preproc=yes
12346 ;;
12347 no:yes:* )
12348 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12349 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12350 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12351 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12352 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12353 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12354 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12355 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12357 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12359 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12360
12361 ;;
12362 esac
12363 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
12364 $as_echo_n "checking for $ac_header... " >&6; }
12365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12366 $as_echo_n "(cached) " >&6
12367 else
12368 eval "$as_ac_Header=\$ac_header_preproc"
12369 fi
12370 ac_res=`eval 'as_val=${'$as_ac_Header'}
12371 $as_echo "$as_val"'`
12372 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12373 $as_echo "$ac_res" >&6; }
12374
12375 fi
12376 if test `eval 'as_val=${'$as_ac_Header'}
12377 $as_echo "$as_val"'` = yes; then
12378 cat >>confdefs.h <<_ACEOF 8356 cat >>confdefs.h <<_ACEOF
12379 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 8357 #define HAVE_PTHREAD_H 1
12380 _ACEOF 8358 _ACEOF
12381 8359
12382 fi 8360 fi
12383 8361
12384 done 8362 done
12385 8363
12386 if test "$ac_cv_header_pthread_h"; then 8364 if test "$ac_cv_header_pthread_h"; then
12387 { $as_echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5 8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_self in -lpthread" >&5
12388 $as_echo_n "checking for pthread_self in -lpthread... " >&6; } 8366 $as_echo_n "checking for pthread_self in -lpthread... " >&6; }
12389 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then 8367 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then :
12390 $as_echo_n "(cached) " >&6 8368 $as_echo_n "(cached) " >&6
12391 else 8369 else
12392 ac_check_lib_save_LIBS=$LIBS 8370 ac_check_lib_save_LIBS=$LIBS
12393 LIBS="-lpthread $LIBS" 8371 LIBS="-lpthread $LIBS"
12394 cat >conftest.$ac_ext <<_ACEOF 8372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12395 /* confdefs.h. */
12396 _ACEOF
12397 cat confdefs.h >>conftest.$ac_ext
12398 cat >>conftest.$ac_ext <<_ACEOF
12399 /* end confdefs.h. */ 8373 /* end confdefs.h. */
12400 8374
12401 /* Override any GCC internal prototype to avoid an error. 8375 /* Override any GCC internal prototype to avoid an error.
12402 Use char because int might match the return type of a GCC 8376 Use char because int might match the return type of a GCC
12403 builtin and then its argument prototype would still apply. */ 8377 builtin and then its argument prototype would still apply. */
12411 return pthread_self (); 8385 return pthread_self ();
12412 ; 8386 ;
12413 return 0; 8387 return 0;
12414 } 8388 }
12415 _ACEOF 8389 _ACEOF
12416 rm -f conftest.$ac_objext conftest$ac_exeext 8390 if ac_fn_c_try_link "$LINENO"; then :
12417 if { (ac_try="$ac_link"
12418 case "(($ac_try" in
12419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12420 *) ac_try_echo=$ac_try;;
12421 esac
12422 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12423 $as_echo "$ac_try_echo") >&5
12424 (eval "$ac_link") 2>conftest.er1
12425 ac_status=$?
12426 grep -v '^ *+' conftest.er1 >conftest.err
12427 rm -f conftest.er1
12428 cat conftest.err >&5
12429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12430 (exit $ac_status); } && {
12431 test -z "$ac_c_werror_flag" ||
12432 test ! -s conftest.err
12433 } && test -s conftest$ac_exeext && {
12434 test "$cross_compiling" = yes ||
12435 $as_test_x conftest$ac_exeext
12436 }; then
12437 ac_cv_lib_pthread_pthread_self=yes 8391 ac_cv_lib_pthread_pthread_self=yes
12438 else 8392 else
12439 $as_echo "$as_me: failed program was:" >&5 8393 ac_cv_lib_pthread_pthread_self=no
12440 sed 's/^/| /' conftest.$ac_ext >&5 8394 fi
12441 8395 rm -f core conftest.err conftest.$ac_objext \
12442 ac_cv_lib_pthread_pthread_self=no 8396 conftest$ac_exeext conftest.$ac_ext
12443 fi
12444
12445 rm -rf conftest.dSYM
12446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12447 conftest$ac_exeext conftest.$ac_ext
12448 LIBS=$ac_check_lib_save_LIBS 8397 LIBS=$ac_check_lib_save_LIBS
12449 fi 8398 fi
12450 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5 8399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_self" >&5
12451 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; } 8400 $as_echo "$ac_cv_lib_pthread_pthread_self" >&6; }
12452 if test $ac_cv_lib_pthread_pthread_self = yes; then 8401 if test "x$ac_cv_lib_pthread_pthread_self" = x""yes; then :
12453 HAVE_GTK_AND_PTHREAD=yes 8402 HAVE_GTK_AND_PTHREAD=yes
12454 fi 8403 fi
12455 8404
12456 fi 8405 fi
12457 if test "$HAVE_GTK_AND_PTHREAD" = yes; then 8406 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12458 case "${canonical}" in 8407 case "${canonical}" in
12459 *-hpux*) ;; 8408 *-hpux*) ;;
12460 *) GTK_LIBS="$GTK_LIBS -lpthread" ;; 8409 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
12461 esac 8410 esac
12462 8411
12463 cat >>confdefs.h <<\_ACEOF 8412 $as_echo "#define HAVE_GTK_AND_PTHREAD 1" >>confdefs.h
12464 #define HAVE_GTK_AND_PTHREAD 1
12465 _ACEOF
12466 8413
12467 fi 8414 fi
12468 fi 8415 fi
12469 fi 8416 fi
12470 8417
12474 8421
12475 succeeded=no 8422 succeeded=no
12476 8423
12477 # Extract the first word of "pkg-config", so it can be a program name with args. 8424 # Extract the first word of "pkg-config", so it can be a program name with args.
12478 set dummy pkg-config; ac_word=$2 8425 set dummy pkg-config; ac_word=$2
12479 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12480 $as_echo_n "checking for $ac_word... " >&6; } 8427 $as_echo_n "checking for $ac_word... " >&6; }
12481 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 8428 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12482 $as_echo_n "(cached) " >&6 8429 $as_echo_n "(cached) " >&6
12483 else 8430 else
12484 case $PKG_CONFIG in 8431 case $PKG_CONFIG in
12485 [\\/]* | ?:[\\/]*) 8432 [\\/]* | ?:[\\/]*)
12486 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8433 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12490 for as_dir in $PATH 8437 for as_dir in $PATH
12491 do 8438 do
12492 IFS=$as_save_IFS 8439 IFS=$as_save_IFS
12493 test -z "$as_dir" && as_dir=. 8440 test -z "$as_dir" && as_dir=.
12494 for ac_exec_ext in '' $ac_executable_extensions; do 8441 for ac_exec_ext in '' $ac_executable_extensions; do
12495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12496 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8443 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12497 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12498 break 2 8445 break 2
12499 fi 8446 fi
12500 done 8447 done
12501 done 8448 done
12502 IFS=$as_save_IFS 8449 IFS=$as_save_IFS
12503 8450
12504 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8451 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12505 ;; 8452 ;;
12506 esac 8453 esac
12507 fi 8454 fi
12508 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8455 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12509 if test -n "$PKG_CONFIG"; then 8456 if test -n "$PKG_CONFIG"; then
12510 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12511 $as_echo "$PKG_CONFIG" >&6; } 8458 $as_echo "$PKG_CONFIG" >&6; }
12512 else 8459 else
12513 { $as_echo "$as_me:$LINENO: result: no" >&5 8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12514 $as_echo "no" >&6; } 8461 $as_echo "no" >&6; }
12515 fi 8462 fi
12516 8463
12517 8464
12518 8465
12519 if test "$PKG_CONFIG" = "no" ; then 8466 if test "$PKG_CONFIG" = "no" ; then
12520 HAVE_DBUS=no 8467 HAVE_DBUS=no
12521 else 8468 else
12522 PKG_CONFIG_MIN_VERSION=0.9.0 8469 PKG_CONFIG_MIN_VERSION=0.9.0
12523 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 8470 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12524 { $as_echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5 8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 >= 1.0" >&5
12525 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; } 8472 $as_echo_n "checking for dbus-1 >= 1.0... " >&6; }
12526 8473
12527 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then 8474 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12528 { $as_echo "$as_me:$LINENO: result: yes" >&5 8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12529 $as_echo "yes" >&6; } 8476 $as_echo "yes" >&6; }
12530 succeeded=yes 8477 succeeded=yes
12531 8478
12532 { $as_echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5 8479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_CFLAGS" >&5
12533 $as_echo_n "checking DBUS_CFLAGS... " >&6; } 8480 $as_echo_n "checking DBUS_CFLAGS... " >&6; }
12534 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 8481 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12535 { $as_echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5 8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_CFLAGS" >&5
12536 $as_echo "$DBUS_CFLAGS" >&6; } 8483 $as_echo "$DBUS_CFLAGS" >&6; }
12537 8484
12538 { $as_echo "$as_me:$LINENO: checking DBUS_LIBS" >&5 8485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking DBUS_LIBS" >&5
12539 $as_echo_n "checking DBUS_LIBS... " >&6; } 8486 $as_echo_n "checking DBUS_LIBS... " >&6; }
12540 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'` 8487 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12541 { $as_echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5 8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBUS_LIBS" >&5
12542 $as_echo "$DBUS_LIBS" >&6; } 8489 $as_echo "$DBUS_LIBS" >&6; }
12543 else 8490 else
12544 { $as_echo "$as_me:$LINENO: result: no" >&5 8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12545 $as_echo "no" >&6; } 8492 $as_echo "no" >&6; }
12546 DBUS_CFLAGS="" 8493 DBUS_CFLAGS=""
12547 DBUS_LIBS="" 8494 DBUS_LIBS=""
12548 ## If we have a custom action on failure, don't print errors, but 8495 ## If we have a custom action on failure, don't print errors, but
12549 ## do set a variable so people can do so. 8496 ## do set a variable so people can do so.
12566 fi 8513 fi
12567 8514
12568 if test "$HAVE_DBUS" = yes; then 8515 if test "$HAVE_DBUS" = yes; then
12569 LIBS="$LIBS $DBUS_LIBS" 8516 LIBS="$LIBS $DBUS_LIBS"
12570 8517
12571 cat >>confdefs.h <<\_ACEOF 8518 $as_echo "#define HAVE_DBUS 1" >>confdefs.h
12572 #define HAVE_DBUS 1 8519
12573 _ACEOF 8520 for ac_func in dbus_watch_get_unix_fd
12574 8521 do :
12575 8522 ac_fn_c_check_func "$LINENO" "dbus_watch_get_unix_fd" "ac_cv_func_dbus_watch_get_unix_fd"
12576 for ac_func in dbus_watch_get_unix_fd 8523 if test "x$ac_cv_func_dbus_watch_get_unix_fd" = x""yes; then :
12577 do
12578 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12579 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
12580 $as_echo_n "checking for $ac_func... " >&6; }
12581 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12582 $as_echo_n "(cached) " >&6
12583 else
12584 cat >conftest.$ac_ext <<_ACEOF
12585 /* confdefs.h. */
12586 _ACEOF
12587 cat confdefs.h >>conftest.$ac_ext
12588 cat >>conftest.$ac_ext <<_ACEOF
12589 /* end confdefs.h. */
12590 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12591 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12592 #define $ac_func innocuous_$ac_func
12593
12594 /* System header to define __stub macros and hopefully few prototypes,
12595 which can conflict with char $ac_func (); below.
12596 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12597 <limits.h> exists even on freestanding compilers. */
12598
12599 #ifdef __STDC__
12600 # include <limits.h>
12601 #else
12602 # include <assert.h>
12603 #endif
12604
12605 #undef $ac_func
12606
12607 /* Override any GCC internal prototype to avoid an error.
12608 Use char because int might match the return type of a GCC
12609 builtin and then its argument prototype would still apply. */
12610 #ifdef __cplusplus
12611 extern "C"
12612 #endif
12613 char $ac_func ();
12614 /* The GNU C library defines this for functions which it implements
12615 to always fail with ENOSYS. Some functions are actually named
12616 something starting with __ and the normal name is an alias. */
12617 #if defined __stub_$ac_func || defined __stub___$ac_func
12618 choke me
12619 #endif
12620
12621 int
12622 main ()
12623 {
12624 return $ac_func ();
12625 ;
12626 return 0;
12627 }
12628 _ACEOF
12629 rm -f conftest.$ac_objext conftest$ac_exeext
12630 if { (ac_try="$ac_link"
12631 case "(($ac_try" in
12632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12633 *) ac_try_echo=$ac_try;;
12634 esac
12635 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12636 $as_echo "$ac_try_echo") >&5
12637 (eval "$ac_link") 2>conftest.er1
12638 ac_status=$?
12639 grep -v '^ *+' conftest.er1 >conftest.err
12640 rm -f conftest.er1
12641 cat conftest.err >&5
12642 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643 (exit $ac_status); } && {
12644 test -z "$ac_c_werror_flag" ||
12645 test ! -s conftest.err
12646 } && test -s conftest$ac_exeext && {
12647 test "$cross_compiling" = yes ||
12648 $as_test_x conftest$ac_exeext
12649 }; then
12650 eval "$as_ac_var=yes"
12651 else
12652 $as_echo "$as_me: failed program was:" >&5
12653 sed 's/^/| /' conftest.$ac_ext >&5
12654
12655 eval "$as_ac_var=no"
12656 fi
12657
12658 rm -rf conftest.dSYM
12659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12660 conftest$ac_exeext conftest.$ac_ext
12661 fi
12662 ac_res=`eval 'as_val=${'$as_ac_var'}
12663 $as_echo "$as_val"'`
12664 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
12665 $as_echo "$ac_res" >&6; }
12666 if test `eval 'as_val=${'$as_ac_var'}
12667 $as_echo "$as_val"'` = yes; then
12668 cat >>confdefs.h <<_ACEOF 8524 cat >>confdefs.h <<_ACEOF
12669 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 8525 #define HAVE_DBUS_WATCH_GET_UNIX_FD 1
12670 _ACEOF 8526 _ACEOF
12671 8527
12672 fi 8528 fi
12673 done 8529 done
12674 8530
12682 8538
12683 succeeded=no 8539 succeeded=no
12684 8540
12685 # Extract the first word of "pkg-config", so it can be a program name with args. 8541 # Extract the first word of "pkg-config", so it can be a program name with args.
12686 set dummy pkg-config; ac_word=$2 8542 set dummy pkg-config; ac_word=$2
12687 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12688 $as_echo_n "checking for $ac_word... " >&6; } 8544 $as_echo_n "checking for $ac_word... " >&6; }
12689 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 8545 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
12690 $as_echo_n "(cached) " >&6 8546 $as_echo_n "(cached) " >&6
12691 else 8547 else
12692 case $PKG_CONFIG in 8548 case $PKG_CONFIG in
12693 [\\/]* | ?:[\\/]*) 8549 [\\/]* | ?:[\\/]*)
12694 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 8550 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698 for as_dir in $PATH 8554 for as_dir in $PATH
12699 do 8555 do
12700 IFS=$as_save_IFS 8556 IFS=$as_save_IFS
12701 test -z "$as_dir" && as_dir=. 8557 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do 8558 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8559 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12704 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 8560 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12705 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 8561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 break 2 8562 break 2
12707 fi 8563 fi
12708 done 8564 done
12709 done 8565 done
12710 IFS=$as_save_IFS 8566 IFS=$as_save_IFS
12711 8567
12712 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 8568 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12713 ;; 8569 ;;
12714 esac 8570 esac
12715 fi 8571 fi
12716 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 8572 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12717 if test -n "$PKG_CONFIG"; then 8573 if test -n "$PKG_CONFIG"; then
12718 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
12719 $as_echo "$PKG_CONFIG" >&6; } 8575 $as_echo "$PKG_CONFIG" >&6; }
12720 else 8576 else
12721 { $as_echo "$as_me:$LINENO: result: no" >&5 8577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12722 $as_echo "no" >&6; } 8578 $as_echo "no" >&6; }
12723 fi 8579 fi
12724 8580
12725 8581
12726 8582
12727 if test "$PKG_CONFIG" = "no" ; then 8583 if test "$PKG_CONFIG" = "no" ; then
12728 HAVE_GCONF=no 8584 HAVE_GCONF=no
12729 else 8585 else
12730 PKG_CONFIG_MIN_VERSION=0.9.0 8586 PKG_CONFIG_MIN_VERSION=0.9.0
12731 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 8587 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12732 { $as_echo "$as_me:$LINENO: checking for gconf-2.0 >= 2.13" >&5 8588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.13" >&5
12733 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; } 8589 $as_echo_n "checking for gconf-2.0 >= 2.13... " >&6; }
12734 8590
12735 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then 8591 if $PKG_CONFIG --exists "gconf-2.0 >= 2.13" 2>&5; then
12736 { $as_echo "$as_me:$LINENO: result: yes" >&5 8592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12737 $as_echo "yes" >&6; } 8593 $as_echo "yes" >&6; }
12738 succeeded=yes 8594 succeeded=yes
12739 8595
12740 { $as_echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5 8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
12741 $as_echo_n "checking GCONF_CFLAGS... " >&6; } 8597 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
12742 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 8598 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12743 { $as_echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5 8599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
12744 $as_echo "$GCONF_CFLAGS" >&6; } 8600 $as_echo "$GCONF_CFLAGS" >&6; }
12745 8601
12746 { $as_echo "$as_me:$LINENO: checking GCONF_LIBS" >&5 8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
12747 $as_echo_n "checking GCONF_LIBS... " >&6; } 8603 $as_echo_n "checking GCONF_LIBS... " >&6; }
12748 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'` 8604 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.13"|sed -e 's,///*,/,g'`
12749 { $as_echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5 8605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
12750 $as_echo "$GCONF_LIBS" >&6; } 8606 $as_echo "$GCONF_LIBS" >&6; }
12751 else 8607 else
12752 { $as_echo "$as_me:$LINENO: result: no" >&5 8608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12753 $as_echo "no" >&6; } 8609 $as_echo "no" >&6; }
12754 GCONF_CFLAGS="" 8610 GCONF_CFLAGS=""
12755 GCONF_LIBS="" 8611 GCONF_LIBS=""
12756 ## If we have a custom action on failure, don't print errors, but 8612 ## If we have a custom action on failure, don't print errors, but
12757 ## do set a variable so people can do so. 8613 ## do set a variable so people can do so.
12773 HAVE_GCONF=no 8629 HAVE_GCONF=no
12774 fi 8630 fi
12775 8631
12776 if test "$HAVE_GCONF" = yes; then 8632 if test "$HAVE_GCONF" = yes; then
12777 8633
12778 cat >>confdefs.h <<\_ACEOF 8634 $as_echo "#define HAVE_GCONF 1" >>confdefs.h
12779 #define HAVE_GCONF 1
12780 _ACEOF
12781 8635
12782 fi 8636 fi
12783 fi 8637 fi
12784 8638
12785 HAVE_LIBSELINUX=no 8639 HAVE_LIBSELINUX=no
12786 LIBSELINUX_LIBS= 8640 LIBSELINUX_LIBS=
12787 if test "${with_selinux}" = "yes"; then 8641 if test "${with_selinux}" = "yes"; then
12788 { $as_echo "$as_me:$LINENO: checking for lgetfilecon in -lselinux" >&5 8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgetfilecon in -lselinux" >&5
12789 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; } 8643 $as_echo_n "checking for lgetfilecon in -lselinux... " >&6; }
12790 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then 8644 if test "${ac_cv_lib_selinux_lgetfilecon+set}" = set; then :
12791 $as_echo_n "(cached) " >&6 8645 $as_echo_n "(cached) " >&6
12792 else 8646 else
12793 ac_check_lib_save_LIBS=$LIBS 8647 ac_check_lib_save_LIBS=$LIBS
12794 LIBS="-lselinux $LIBS" 8648 LIBS="-lselinux $LIBS"
12795 cat >conftest.$ac_ext <<_ACEOF 8649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12796 /* confdefs.h. */
12797 _ACEOF
12798 cat confdefs.h >>conftest.$ac_ext
12799 cat >>conftest.$ac_ext <<_ACEOF
12800 /* end confdefs.h. */ 8650 /* end confdefs.h. */
12801 8651
12802 /* Override any GCC internal prototype to avoid an error. 8652 /* Override any GCC internal prototype to avoid an error.
12803 Use char because int might match the return type of a GCC 8653 Use char because int might match the return type of a GCC
12804 builtin and then its argument prototype would still apply. */ 8654 builtin and then its argument prototype would still apply. */
12812 return lgetfilecon (); 8662 return lgetfilecon ();
12813 ; 8663 ;
12814 return 0; 8664 return 0;
12815 } 8665 }
12816 _ACEOF 8666 _ACEOF
12817 rm -f conftest.$ac_objext conftest$ac_exeext 8667 if ac_fn_c_try_link "$LINENO"; then :
12818 if { (ac_try="$ac_link"
12819 case "(($ac_try" in
12820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12821 *) ac_try_echo=$ac_try;;
12822 esac
12823 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12824 $as_echo "$ac_try_echo") >&5
12825 (eval "$ac_link") 2>conftest.er1
12826 ac_status=$?
12827 grep -v '^ *+' conftest.er1 >conftest.err
12828 rm -f conftest.er1
12829 cat conftest.err >&5
12830 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12831 (exit $ac_status); } && {
12832 test -z "$ac_c_werror_flag" ||
12833 test ! -s conftest.err
12834 } && test -s conftest$ac_exeext && {
12835 test "$cross_compiling" = yes ||
12836 $as_test_x conftest$ac_exeext
12837 }; then
12838 ac_cv_lib_selinux_lgetfilecon=yes 8668 ac_cv_lib_selinux_lgetfilecon=yes
12839 else 8669 else
12840 $as_echo "$as_me: failed program was:" >&5 8670 ac_cv_lib_selinux_lgetfilecon=no
12841 sed 's/^/| /' conftest.$ac_ext >&5 8671 fi
12842 8672 rm -f core conftest.err conftest.$ac_objext \
12843 ac_cv_lib_selinux_lgetfilecon=no 8673 conftest$ac_exeext conftest.$ac_ext
12844 fi
12845
12846 rm -rf conftest.dSYM
12847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12848 conftest$ac_exeext conftest.$ac_ext
12849 LIBS=$ac_check_lib_save_LIBS 8674 LIBS=$ac_check_lib_save_LIBS
12850 fi 8675 fi
12851 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_selinux_lgetfilecon" >&5 8676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_lgetfilecon" >&5
12852 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; } 8677 $as_echo "$ac_cv_lib_selinux_lgetfilecon" >&6; }
12853 if test $ac_cv_lib_selinux_lgetfilecon = yes; then 8678 if test "x$ac_cv_lib_selinux_lgetfilecon" = x""yes; then :
12854 HAVE_LIBSELINUX=yes 8679 HAVE_LIBSELINUX=yes
12855 else 8680 else
12856 HAVE_LIBSELINUX=no 8681 HAVE_LIBSELINUX=no
12857 fi 8682 fi
12858 8683
12859 if test "$HAVE_LIBSELINUX" = yes; then 8684 if test "$HAVE_LIBSELINUX" = yes; then
12860 8685
12861 cat >>confdefs.h <<\_ACEOF 8686 $as_echo "#define HAVE_LIBSELINUX 1" >>confdefs.h
12862 #define HAVE_LIBSELINUX 1
12863 _ACEOF
12864 8687
12865 LIBSELINUX_LIBS=-lselinux 8688 LIBSELINUX_LIBS=-lselinux
12866 fi 8689 fi
12867 fi 8690 fi
12868 8691
12869 8692
12870 HAVE_XAW3D=no 8693 HAVE_XAW3D=no
12871 LUCID_LIBW= 8694 LUCID_LIBW=
12872 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then 8695 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12873 if test "$with_xaw3d" != no; then 8696 if test "$with_xaw3d" != no; then
12874 { $as_echo "$as_me:$LINENO: checking for xaw3d" >&5 8697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xaw3d" >&5
12875 $as_echo_n "checking for xaw3d... " >&6; } 8698 $as_echo_n "checking for xaw3d... " >&6; }
12876 if test "${emacs_cv_xaw3d+set}" = set; then 8699 if test "${emacs_cv_xaw3d+set}" = set; then :
12877 $as_echo_n "(cached) " >&6 8700 $as_echo_n "(cached) " >&6
12878 else 8701 else
12879 cat >conftest.$ac_ext <<_ACEOF 8702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12880 /* confdefs.h. */
12881 _ACEOF
12882 cat confdefs.h >>conftest.$ac_ext
12883 cat >>conftest.$ac_ext <<_ACEOF
12884 /* end confdefs.h. */ 8703 /* end confdefs.h. */
12885 8704
12886 #include <X11/Intrinsic.h> 8705 #include <X11/Intrinsic.h>
12887 #include <X11/Xaw3d/Simple.h> 8706 #include <X11/Xaw3d/Simple.h>
12888 int 8707 int
12891 8710
12892 ; 8711 ;
12893 return 0; 8712 return 0;
12894 } 8713 }
12895 _ACEOF 8714 _ACEOF
12896 rm -f conftest.$ac_objext conftest$ac_exeext 8715 if ac_fn_c_try_link "$LINENO"; then :
12897 if { (ac_try="$ac_link"
12898 case "(($ac_try" in
12899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12900 *) ac_try_echo=$ac_try;;
12901 esac
12902 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12903 $as_echo "$ac_try_echo") >&5
12904 (eval "$ac_link") 2>conftest.er1
12905 ac_status=$?
12906 grep -v '^ *+' conftest.er1 >conftest.err
12907 rm -f conftest.er1
12908 cat conftest.err >&5
12909 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12910 (exit $ac_status); } && {
12911 test -z "$ac_c_werror_flag" ||
12912 test ! -s conftest.err
12913 } && test -s conftest$ac_exeext && {
12914 test "$cross_compiling" = yes ||
12915 $as_test_x conftest$ac_exeext
12916 }; then
12917 emacs_cv_xaw3d=yes 8716 emacs_cv_xaw3d=yes
12918 else 8717 else
12919 $as_echo "$as_me: failed program was:" >&5 8718 emacs_cv_xaw3d=no
12920 sed 's/^/| /' conftest.$ac_ext >&5 8719 fi
12921 8720 rm -f core conftest.err conftest.$ac_objext \
12922 emacs_cv_xaw3d=no 8721 conftest$ac_exeext conftest.$ac_ext
12923 fi
12924
12925 rm -rf conftest.dSYM
12926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12927 conftest$ac_exeext conftest.$ac_ext
12928 fi 8722 fi
12929 8723
12930 else 8724 else
12931 emacs_cv_xaw3d=no 8725 emacs_cv_xaw3d=no
12932 fi 8726 fi
12933 if test $emacs_cv_xaw3d = yes; then 8727 if test $emacs_cv_xaw3d = yes; then
12934 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
12935 $as_echo "yes; using Lucid toolkit" >&6; } 8729 $as_echo "yes; using Lucid toolkit" >&6; }
12936 USE_X_TOOLKIT=LUCID 8730 USE_X_TOOLKIT=LUCID
12937 HAVE_XAW3D=yes 8731 HAVE_XAW3D=yes
12938 LUCID_LIBW=-lXaw3d 8732 LUCID_LIBW=-lXaw3d
12939 8733
12940 cat >>confdefs.h <<\_ACEOF 8734 $as_echo "#define HAVE_XAW3D 1" >>confdefs.h
12941 #define HAVE_XAW3D 1
12942 _ACEOF
12943 8735
12944 else 8736 else
12945 { $as_echo "$as_me:$LINENO: result: no" >&5 8737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12946 $as_echo "no" >&6; } 8738 $as_echo "no" >&6; }
12947 { $as_echo "$as_me:$LINENO: checking for libXaw" >&5 8739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libXaw" >&5
12948 $as_echo_n "checking for libXaw... " >&6; } 8740 $as_echo_n "checking for libXaw... " >&6; }
12949 if test "${emacs_cv_xaw+set}" = set; then 8741 if test "${emacs_cv_xaw+set}" = set; then :
12950 $as_echo_n "(cached) " >&6 8742 $as_echo_n "(cached) " >&6
12951 else 8743 else
12952 cat >conftest.$ac_ext <<_ACEOF 8744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12953 /* confdefs.h. */
12954 _ACEOF
12955 cat confdefs.h >>conftest.$ac_ext
12956 cat >>conftest.$ac_ext <<_ACEOF
12957 /* end confdefs.h. */ 8745 /* end confdefs.h. */
12958 8746
12959 #include <X11/Intrinsic.h> 8747 #include <X11/Intrinsic.h>
12960 #include <X11/Xaw/Simple.h> 8748 #include <X11/Xaw/Simple.h>
12961 int 8749 int
12964 8752
12965 ; 8753 ;
12966 return 0; 8754 return 0;
12967 } 8755 }
12968 _ACEOF 8756 _ACEOF
12969 rm -f conftest.$ac_objext conftest$ac_exeext 8757 if ac_fn_c_try_link "$LINENO"; then :
12970 if { (ac_try="$ac_link"
12971 case "(($ac_try" in
12972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12973 *) ac_try_echo=$ac_try;;
12974 esac
12975 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
12976 $as_echo "$ac_try_echo") >&5
12977 (eval "$ac_link") 2>conftest.er1
12978 ac_status=$?
12979 grep -v '^ *+' conftest.er1 >conftest.err
12980 rm -f conftest.er1
12981 cat conftest.err >&5
12982 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983 (exit $ac_status); } && {
12984 test -z "$ac_c_werror_flag" ||
12985 test ! -s conftest.err
12986 } && test -s conftest$ac_exeext && {
12987 test "$cross_compiling" = yes ||
12988 $as_test_x conftest$ac_exeext
12989 }; then
12990 emacs_cv_xaw=yes 8758 emacs_cv_xaw=yes
12991 else 8759 else
12992 $as_echo "$as_me: failed program was:" >&5 8760 emacs_cv_xaw=no
12993 sed 's/^/| /' conftest.$ac_ext >&5 8761 fi
12994 8762 rm -f core conftest.err conftest.$ac_objext \
12995 emacs_cv_xaw=no 8763 conftest$ac_exeext conftest.$ac_ext
12996 fi
12997
12998 rm -rf conftest.dSYM
12999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13000 conftest$ac_exeext conftest.$ac_ext
13001 fi 8764 fi
13002 8765
13003 if test $emacs_cv_xaw = yes; then 8766 if test $emacs_cv_xaw = yes; then
13004 { $as_echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5 8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes; using Lucid toolkit" >&5
13005 $as_echo "yes; using Lucid toolkit" >&6; } 8768 $as_echo "yes; using Lucid toolkit" >&6; }
13006 USE_X_TOOLKIT=LUCID 8769 USE_X_TOOLKIT=LUCID
13007 LUCID_LIBW=-lXaw 8770 LUCID_LIBW=-lXaw
13008 elif test x"${USE_X_TOOLKIT}" = xLUCID; then 8771 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
13009 { { $as_echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5 8772 as_fn_error "Lucid toolkit requires X11/Xaw include files" "$LINENO" 5
13010 $as_echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
13011 { (exit 1); exit 1; }; }
13012 else 8773 else
13013 { $as_echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5 8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no; do not use toolkit by default" >&5
13014 $as_echo "no; do not use toolkit by default" >&6; } 8775 $as_echo "no; do not use toolkit by default" >&6; }
13015 USE_X_TOOLKIT=none 8776 USE_X_TOOLKIT=none
13016 fi 8777 fi
13017 fi 8778 fi
13018 fi 8779 fi
13019 8780
13020 8781
13021 X_TOOLKIT_TYPE=$USE_X_TOOLKIT 8782 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
13022 8783
13023 if test "${USE_X_TOOLKIT}" != "none"; then 8784 if test "${USE_X_TOOLKIT}" != "none"; then
13024 { $as_echo "$as_me:$LINENO: checking X11 toolkit version" >&5 8785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking X11 toolkit version" >&5
13025 $as_echo_n "checking X11 toolkit version... " >&6; } 8786 $as_echo_n "checking X11 toolkit version... " >&6; }
13026 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then 8787 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then :
13027 $as_echo_n "(cached) " >&6 8788 $as_echo_n "(cached) " >&6
13028 else 8789 else
13029 cat >conftest.$ac_ext <<_ACEOF 8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13030 /* confdefs.h. */
13031 _ACEOF
13032 cat confdefs.h >>conftest.$ac_ext
13033 cat >>conftest.$ac_ext <<_ACEOF
13034 /* end confdefs.h. */ 8791 /* end confdefs.h. */
13035 #include <X11/Intrinsic.h> 8792 #include <X11/Intrinsic.h>
13036 int 8793 int
13037 main () 8794 main ()
13038 { 8795 {
13042 8799
13043 ; 8800 ;
13044 return 0; 8801 return 0;
13045 } 8802 }
13046 _ACEOF 8803 _ACEOF
13047 rm -f conftest.$ac_objext conftest$ac_exeext 8804 if ac_fn_c_try_link "$LINENO"; then :
13048 if { (ac_try="$ac_link"
13049 case "(($ac_try" in
13050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051 *) ac_try_echo=$ac_try;;
13052 esac
13053 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13054 $as_echo "$ac_try_echo") >&5
13055 (eval "$ac_link") 2>conftest.er1
13056 ac_status=$?
13057 grep -v '^ *+' conftest.er1 >conftest.err
13058 rm -f conftest.er1
13059 cat conftest.err >&5
13060 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13061 (exit $ac_status); } && {
13062 test -z "$ac_c_werror_flag" ||
13063 test ! -s conftest.err
13064 } && test -s conftest$ac_exeext && {
13065 test "$cross_compiling" = yes ||
13066 $as_test_x conftest$ac_exeext
13067 }; then
13068 emacs_cv_x11_toolkit_version_6=yes 8805 emacs_cv_x11_toolkit_version_6=yes
13069 else 8806 else
13070 $as_echo "$as_me: failed program was:" >&5 8807 emacs_cv_x11_toolkit_version_6=no
13071 sed 's/^/| /' conftest.$ac_ext >&5 8808 fi
13072 8809 rm -f core conftest.err conftest.$ac_objext \
13073 emacs_cv_x11_toolkit_version_6=no 8810 conftest$ac_exeext conftest.$ac_ext
13074 fi
13075
13076 rm -rf conftest.dSYM
13077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13078 conftest$ac_exeext conftest.$ac_ext
13079 fi 8811 fi
13080 8812
13081 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6 8813 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13082 if test $emacs_cv_x11_toolkit_version_6 = yes; then 8814 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13083 { $as_echo "$as_me:$LINENO: result: 6 or newer" >&5 8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 6 or newer" >&5
13084 $as_echo "6 or newer" >&6; } 8816 $as_echo "6 or newer" >&6; }
13085 8817
13086 cat >>confdefs.h <<\_ACEOF 8818 $as_echo "#define HAVE_X11XTR6 1" >>confdefs.h
13087 #define HAVE_X11XTR6 1
13088 _ACEOF
13089 8819
13090 else 8820 else
13091 { $as_echo "$as_me:$LINENO: result: before 6" >&5 8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: before 6" >&5
13092 $as_echo "before 6" >&6; } 8822 $as_echo "before 6" >&6; }
13093 fi 8823 fi
13094 8824
13095 OLDLIBS="$LIBS" 8825 OLDLIBS="$LIBS"
13096 if test x$HAVE_X11XTR6 = xyes; then 8826 if test x$HAVE_X11XTR6 = xyes; then
13097 LIBS="-lXt -lSM -lICE $LIBS" 8827 LIBS="-lXt -lSM -lICE $LIBS"
13098 else 8828 else
13099 LIBS="-lXt $LIBS" 8829 LIBS="-lXt $LIBS"
13100 fi 8830 fi
13101 8831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XmuConvertStandardSelection in -lXmu" >&5
13102 { $as_echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13103 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; } 8832 $as_echo_n "checking for XmuConvertStandardSelection in -lXmu... " >&6; }
13104 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then 8833 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then :
13105 $as_echo_n "(cached) " >&6 8834 $as_echo_n "(cached) " >&6
13106 else 8835 else
13107 ac_check_lib_save_LIBS=$LIBS 8836 ac_check_lib_save_LIBS=$LIBS
13108 LIBS="-lXmu $LIBS" 8837 LIBS="-lXmu $LIBS"
13109 cat >conftest.$ac_ext <<_ACEOF 8838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* confdefs.h. */
13111 _ACEOF
13112 cat confdefs.h >>conftest.$ac_ext
13113 cat >>conftest.$ac_ext <<_ACEOF
13114 /* end confdefs.h. */ 8839 /* end confdefs.h. */
13115 8840
13116 /* Override any GCC internal prototype to avoid an error. 8841 /* Override any GCC internal prototype to avoid an error.
13117 Use char because int might match the return type of a GCC 8842 Use char because int might match the return type of a GCC
13118 builtin and then its argument prototype would still apply. */ 8843 builtin and then its argument prototype would still apply. */
13126 return XmuConvertStandardSelection (); 8851 return XmuConvertStandardSelection ();
13127 ; 8852 ;
13128 return 0; 8853 return 0;
13129 } 8854 }
13130 _ACEOF 8855 _ACEOF
13131 rm -f conftest.$ac_objext conftest$ac_exeext 8856 if ac_fn_c_try_link "$LINENO"; then :
13132 if { (ac_try="$ac_link"
13133 case "(($ac_try" in
13134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13135 *) ac_try_echo=$ac_try;;
13136 esac
13137 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13138 $as_echo "$ac_try_echo") >&5
13139 (eval "$ac_link") 2>conftest.er1
13140 ac_status=$?
13141 grep -v '^ *+' conftest.er1 >conftest.err
13142 rm -f conftest.er1
13143 cat conftest.err >&5
13144 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13145 (exit $ac_status); } && {
13146 test -z "$ac_c_werror_flag" ||
13147 test ! -s conftest.err
13148 } && test -s conftest$ac_exeext && {
13149 test "$cross_compiling" = yes ||
13150 $as_test_x conftest$ac_exeext
13151 }; then
13152 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes 8857 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13153 else 8858 else
13154 $as_echo "$as_me: failed program was:" >&5 8859 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13155 sed 's/^/| /' conftest.$ac_ext >&5 8860 fi
13156 8861 rm -f core conftest.err conftest.$ac_objext \
13157 ac_cv_lib_Xmu_XmuConvertStandardSelection=no 8862 conftest$ac_exeext conftest.$ac_ext
13158 fi
13159
13160 rm -rf conftest.dSYM
13161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13162 conftest$ac_exeext conftest.$ac_ext
13163 LIBS=$ac_check_lib_save_LIBS 8863 LIBS=$ac_check_lib_save_LIBS
13164 fi 8864 fi
13165 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5 8865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13166 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; } 8866 $as_echo "$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13167 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then 8867 if test "x$ac_cv_lib_Xmu_XmuConvertStandardSelection" = x""yes; then :
13168 cat >>confdefs.h <<_ACEOF 8868 cat >>confdefs.h <<_ACEOF
13169 #define HAVE_LIBXMU 1 8869 #define HAVE_LIBXMU 1
13170 _ACEOF 8870 _ACEOF
13171 8871
13172 LIBS="-lXmu $LIBS" 8872 LIBS="-lXmu $LIBS"
13177 fi 8877 fi
13178 8878
13179 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D. 8879 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13180 if test "${HAVE_X11}" = "yes"; then 8880 if test "${HAVE_X11}" = "yes"; then
13181 if test "${USE_X_TOOLKIT}" != "none"; then 8881 if test "${USE_X_TOOLKIT}" != "none"; then
13182 8882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeQueryExtension in -lXext" >&5
13183 { $as_echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13184 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; } 8883 $as_echo_n "checking for XShapeQueryExtension in -lXext... " >&6; }
13185 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then 8884 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then :
13186 $as_echo_n "(cached) " >&6 8885 $as_echo_n "(cached) " >&6
13187 else 8886 else
13188 ac_check_lib_save_LIBS=$LIBS 8887 ac_check_lib_save_LIBS=$LIBS
13189 LIBS="-lXext $LIBS" 8888 LIBS="-lXext $LIBS"
13190 cat >conftest.$ac_ext <<_ACEOF 8889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13191 /* confdefs.h. */
13192 _ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */ 8890 /* end confdefs.h. */
13196 8891
13197 /* Override any GCC internal prototype to avoid an error. 8892 /* Override any GCC internal prototype to avoid an error.
13198 Use char because int might match the return type of a GCC 8893 Use char because int might match the return type of a GCC
13199 builtin and then its argument prototype would still apply. */ 8894 builtin and then its argument prototype would still apply. */
13207 return XShapeQueryExtension (); 8902 return XShapeQueryExtension ();
13208 ; 8903 ;
13209 return 0; 8904 return 0;
13210 } 8905 }
13211 _ACEOF 8906 _ACEOF
13212 rm -f conftest.$ac_objext conftest$ac_exeext 8907 if ac_fn_c_try_link "$LINENO"; then :
13213 if { (ac_try="$ac_link"
13214 case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13217 esac
13218 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13219 $as_echo "$ac_try_echo") >&5
13220 (eval "$ac_link") 2>conftest.er1
13221 ac_status=$?
13222 grep -v '^ *+' conftest.er1 >conftest.err
13223 rm -f conftest.er1
13224 cat conftest.err >&5
13225 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13226 (exit $ac_status); } && {
13227 test -z "$ac_c_werror_flag" ||
13228 test ! -s conftest.err
13229 } && test -s conftest$ac_exeext && {
13230 test "$cross_compiling" = yes ||
13231 $as_test_x conftest$ac_exeext
13232 }; then
13233 ac_cv_lib_Xext_XShapeQueryExtension=yes 8908 ac_cv_lib_Xext_XShapeQueryExtension=yes
13234 else 8909 else
13235 $as_echo "$as_me: failed program was:" >&5 8910 ac_cv_lib_Xext_XShapeQueryExtension=no
13236 sed 's/^/| /' conftest.$ac_ext >&5 8911 fi
13237 8912 rm -f core conftest.err conftest.$ac_objext \
13238 ac_cv_lib_Xext_XShapeQueryExtension=no 8913 conftest$ac_exeext conftest.$ac_ext
13239 fi
13240
13241 rm -rf conftest.dSYM
13242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13243 conftest$ac_exeext conftest.$ac_ext
13244 LIBS=$ac_check_lib_save_LIBS 8914 LIBS=$ac_check_lib_save_LIBS
13245 fi 8915 fi
13246 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5 8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13247 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; } 8917 $as_echo "$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13248 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then 8918 if test "x$ac_cv_lib_Xext_XShapeQueryExtension" = x""yes; then :
13249 cat >>confdefs.h <<_ACEOF 8919 cat >>confdefs.h <<_ACEOF
13250 #define HAVE_LIBXEXT 1 8920 #define HAVE_LIBXEXT 1
13251 _ACEOF 8921 _ACEOF
13252 8922
13253 LIBS="-lXext $LIBS" 8923 LIBS="-lXext $LIBS"
13257 fi 8927 fi
13258 fi 8928 fi
13259 8929
13260 LIBXP= 8930 LIBXP=
13261 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 8931 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13262 { $as_echo "$as_me:$LINENO: checking for Motif version 2.1" >&5 8932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Motif version 2.1" >&5
13263 $as_echo_n "checking for Motif version 2.1... " >&6; } 8933 $as_echo_n "checking for Motif version 2.1... " >&6; }
13264 if test "${emacs_cv_motif_version_2_1+set}" = set; then 8934 if test "${emacs_cv_motif_version_2_1+set}" = set; then :
13265 $as_echo_n "(cached) " >&6 8935 $as_echo_n "(cached) " >&6
13266 else 8936 else
13267 cat >conftest.$ac_ext <<_ACEOF 8937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13268 /* confdefs.h. */
13269 _ACEOF
13270 cat confdefs.h >>conftest.$ac_ext
13271 cat >>conftest.$ac_ext <<_ACEOF
13272 /* end confdefs.h. */ 8938 /* end confdefs.h. */
13273 #include <Xm/Xm.h> 8939 #include <Xm/Xm.h>
13274 int 8940 int
13275 main () 8941 main ()
13276 { 8942 {
13281 #endif 8947 #endif
13282 ; 8948 ;
13283 return 0; 8949 return 0;
13284 } 8950 }
13285 _ACEOF 8951 _ACEOF
13286 rm -f conftest.$ac_objext 8952 if ac_fn_c_try_compile "$LINENO"; then :
13287 if { (ac_try="$ac_compile"
13288 case "(($ac_try" in
13289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13290 *) ac_try_echo=$ac_try;;
13291 esac
13292 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13293 $as_echo "$ac_try_echo") >&5
13294 (eval "$ac_compile") 2>conftest.er1
13295 ac_status=$?
13296 grep -v '^ *+' conftest.er1 >conftest.err
13297 rm -f conftest.er1
13298 cat conftest.err >&5
13299 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } && {
13301 test -z "$ac_c_werror_flag" ||
13302 test ! -s conftest.err
13303 } && test -s conftest.$ac_objext; then
13304 emacs_cv_motif_version_2_1=yes 8953 emacs_cv_motif_version_2_1=yes
13305 else 8954 else
13306 $as_echo "$as_me: failed program was:" >&5 8955 emacs_cv_motif_version_2_1=no
13307 sed 's/^/| /' conftest.$ac_ext >&5 8956 fi
13308
13309 emacs_cv_motif_version_2_1=no
13310 fi
13311
13312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13313 fi 8958 fi
13314 { $as_echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5 8959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_motif_version_2_1" >&5
13315 $as_echo "$emacs_cv_motif_version_2_1" >&6; } 8960 $as_echo "$emacs_cv_motif_version_2_1" >&6; }
13316 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1 8961 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13317 if test $emacs_cv_motif_version_2_1 = yes; then 8962 if test $emacs_cv_motif_version_2_1 = yes; then
13318 { $as_echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5 8963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpCreateContext in -lXp" >&5
13319 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; } 8964 $as_echo_n "checking for XpCreateContext in -lXp... " >&6; }
13320 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then 8965 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then :
13321 $as_echo_n "(cached) " >&6 8966 $as_echo_n "(cached) " >&6
13322 else 8967 else
13323 ac_check_lib_save_LIBS=$LIBS 8968 ac_check_lib_save_LIBS=$LIBS
13324 LIBS="-lXp $LIBS" 8969 LIBS="-lXp $LIBS"
13325 cat >conftest.$ac_ext <<_ACEOF 8970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13326 /* confdefs.h. */
13327 _ACEOF
13328 cat confdefs.h >>conftest.$ac_ext
13329 cat >>conftest.$ac_ext <<_ACEOF
13330 /* end confdefs.h. */ 8971 /* end confdefs.h. */
13331 8972
13332 /* Override any GCC internal prototype to avoid an error. 8973 /* Override any GCC internal prototype to avoid an error.
13333 Use char because int might match the return type of a GCC 8974 Use char because int might match the return type of a GCC
13334 builtin and then its argument prototype would still apply. */ 8975 builtin and then its argument prototype would still apply. */
13342 return XpCreateContext (); 8983 return XpCreateContext ();
13343 ; 8984 ;
13344 return 0; 8985 return 0;
13345 } 8986 }
13346 _ACEOF 8987 _ACEOF
13347 rm -f conftest.$ac_objext conftest$ac_exeext 8988 if ac_fn_c_try_link "$LINENO"; then :
13348 if { (ac_try="$ac_link"
13349 case "(($ac_try" in
13350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13351 *) ac_try_echo=$ac_try;;
13352 esac
13353 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13354 $as_echo "$ac_try_echo") >&5
13355 (eval "$ac_link") 2>conftest.er1
13356 ac_status=$?
13357 grep -v '^ *+' conftest.er1 >conftest.err
13358 rm -f conftest.er1
13359 cat conftest.err >&5
13360 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13361 (exit $ac_status); } && {
13362 test -z "$ac_c_werror_flag" ||
13363 test ! -s conftest.err
13364 } && test -s conftest$ac_exeext && {
13365 test "$cross_compiling" = yes ||
13366 $as_test_x conftest$ac_exeext
13367 }; then
13368 ac_cv_lib_Xp_XpCreateContext=yes 8989 ac_cv_lib_Xp_XpCreateContext=yes
13369 else 8990 else
13370 $as_echo "$as_me: failed program was:" >&5 8991 ac_cv_lib_Xp_XpCreateContext=no
13371 sed 's/^/| /' conftest.$ac_ext >&5 8992 fi
13372 8993 rm -f core conftest.err conftest.$ac_objext \
13373 ac_cv_lib_Xp_XpCreateContext=no 8994 conftest$ac_exeext conftest.$ac_ext
13374 fi
13375
13376 rm -rf conftest.dSYM
13377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13378 conftest$ac_exeext conftest.$ac_ext
13379 LIBS=$ac_check_lib_save_LIBS 8995 LIBS=$ac_check_lib_save_LIBS
13380 fi 8996 fi
13381 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5 8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13382 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; } 8998 $as_echo "$ac_cv_lib_Xp_XpCreateContext" >&6; }
13383 if test $ac_cv_lib_Xp_XpCreateContext = yes; then 8999 if test "x$ac_cv_lib_Xp_XpCreateContext" = x""yes; then :
13384 LIBXP=-lXp 9000 LIBXP=-lXp
13385 fi 9001 fi
13386 9002
13387 else 9003 else
13388 { $as_echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5 9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LessTif where some systems put it" >&5
13389 $as_echo_n "checking for LessTif where some systems put it... " >&6; } 9005 $as_echo_n "checking for LessTif where some systems put it... " >&6; }
13390 if test "${emacs_cv_lesstif+set}" = set; then 9006 if test "${emacs_cv_lesstif+set}" = set; then :
13391 $as_echo_n "(cached) " >&6 9007 $as_echo_n "(cached) " >&6
13392 else 9008 else
13393 # We put this in CFLAGS temporarily to precede other -I options 9009 # We put this in CFLAGS temporarily to precede other -I options
13394 # that might be in CFLAGS temporarily. 9010 # that might be in CFLAGS temporarily.
13395 # We put this in CPPFLAGS where it precedes the other -I options. 9011 # We put this in CPPFLAGS where it precedes the other -I options.
13396 OLD_CPPFLAGS=$CPPFLAGS 9012 OLD_CPPFLAGS=$CPPFLAGS
13397 OLD_CFLAGS=$CFLAGS 9013 OLD_CFLAGS=$CFLAGS
13398 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS" 9014 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13399 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS" 9015 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13400 cat >conftest.$ac_ext <<_ACEOF 9016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13401 /* confdefs.h. */
13402 _ACEOF
13403 cat confdefs.h >>conftest.$ac_ext
13404 cat >>conftest.$ac_ext <<_ACEOF
13405 /* end confdefs.h. */ 9017 /* end confdefs.h. */
13406 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h> 9018 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13407 int 9019 int
13408 main () 9020 main ()
13409 { 9021 {
13410 int x = 5; 9022 int x = 5;
13411 ; 9023 ;
13412 return 0; 9024 return 0;
13413 } 9025 }
13414 _ACEOF 9026 _ACEOF
13415 rm -f conftest.$ac_objext 9027 if ac_fn_c_try_compile "$LINENO"; then :
13416 if { (ac_try="$ac_compile"
13417 case "(($ac_try" in
13418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13419 *) ac_try_echo=$ac_try;;
13420 esac
13421 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13422 $as_echo "$ac_try_echo") >&5
13423 (eval "$ac_compile") 2>conftest.er1
13424 ac_status=$?
13425 grep -v '^ *+' conftest.er1 >conftest.err
13426 rm -f conftest.er1
13427 cat conftest.err >&5
13428 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13429 (exit $ac_status); } && {
13430 test -z "$ac_c_werror_flag" ||
13431 test ! -s conftest.err
13432 } && test -s conftest.$ac_objext; then
13433 emacs_cv_lesstif=yes 9028 emacs_cv_lesstif=yes
13434 else 9029 else
13435 $as_echo "$as_me: failed program was:" >&5 9030 emacs_cv_lesstif=no
13436 sed 's/^/| /' conftest.$ac_ext >&5 9031 fi
13437
13438 emacs_cv_lesstif=no
13439 fi
13440
13441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13442 fi 9033 fi
13443 { $as_echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5 9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_lesstif" >&5
13444 $as_echo "$emacs_cv_lesstif" >&6; } 9035 $as_echo "$emacs_cv_lesstif" >&6; }
13445 if test $emacs_cv_lesstif = yes; then 9036 if test $emacs_cv_lesstif = yes; then
13446 # Make sure this -I option remains in CPPFLAGS after it is set 9037 # Make sure this -I option remains in CPPFLAGS after it is set
13447 # back to REAL_CPPFLAGS. 9038 # back to REAL_CPPFLAGS.
13448 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not 9039 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13457 fi 9048 fi
13458 fi 9049 fi
13459 9050
13460 9051
13461 9052
13462
13463 USE_TOOLKIT_SCROLL_BARS=no 9053 USE_TOOLKIT_SCROLL_BARS=no
13464 if test "${with_toolkit_scroll_bars}" != "no"; then 9054 if test "${with_toolkit_scroll_bars}" != "no"; then
13465 if test "${USE_X_TOOLKIT}" != "none"; then 9055 if test "${USE_X_TOOLKIT}" != "none"; then
13466 if test "${USE_X_TOOLKIT}" = "MOTIF"; then 9056 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13467 cat >>confdefs.h <<\_ACEOF 9057 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
13468 #define USE_TOOLKIT_SCROLL_BARS 1
13469 _ACEOF
13470 9058
13471 HAVE_XAW3D=no 9059 HAVE_XAW3D=no
13472 USE_TOOLKIT_SCROLL_BARS=yes 9060 USE_TOOLKIT_SCROLL_BARS=yes
13473 elif test "${HAVE_XAW3D}" = "yes"; then 9061 elif test "${HAVE_XAW3D}" = "yes"; then
13474 cat >>confdefs.h <<\_ACEOF 9062 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
13475 #define USE_TOOLKIT_SCROLL_BARS 1
13476 _ACEOF
13477 9063
13478 USE_TOOLKIT_SCROLL_BARS=yes 9064 USE_TOOLKIT_SCROLL_BARS=yes
13479 fi 9065 fi
13480 elif test "${HAVE_GTK}" = "yes"; then 9066 elif test "${HAVE_GTK}" = "yes"; then
13481 cat >>confdefs.h <<\_ACEOF 9067 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
13482 #define USE_TOOLKIT_SCROLL_BARS 1
13483 _ACEOF
13484 9068
13485 USE_TOOLKIT_SCROLL_BARS=yes 9069 USE_TOOLKIT_SCROLL_BARS=yes
13486 elif test "${HAVE_NS}" = "yes"; then 9070 elif test "${HAVE_NS}" = "yes"; then
13487 cat >>confdefs.h <<\_ACEOF 9071 $as_echo "#define USE_TOOLKIT_SCROLL_BARS 1" >>confdefs.h
13488 #define USE_TOOLKIT_SCROLL_BARS 1
13489 _ACEOF
13490 9072
13491 USE_TOOLKIT_SCROLL_BARS=yes 9073 USE_TOOLKIT_SCROLL_BARS=yes
13492 fi 9074 fi
13493 fi 9075 fi
13494 9076
13495 cat >conftest.$ac_ext <<_ACEOF 9077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13496 /* confdefs.h. */
13497 _ACEOF
13498 cat confdefs.h >>conftest.$ac_ext
13499 cat >>conftest.$ac_ext <<_ACEOF
13500 /* end confdefs.h. */ 9078 /* end confdefs.h. */
13501 9079
13502 #include <X11/Xlib.h> 9080 #include <X11/Xlib.h>
13503 #include <X11/Xresource.h> 9081 #include <X11/Xresource.h>
13504 int 9082 int
13507 XIMProc callback; 9085 XIMProc callback;
13508 ; 9086 ;
13509 return 0; 9087 return 0;
13510 } 9088 }
13511 _ACEOF 9089 _ACEOF
13512 rm -f conftest.$ac_objext 9090 if ac_fn_c_try_compile "$LINENO"; then :
13513 if { (ac_try="$ac_compile"
13514 case "(($ac_try" in
13515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13516 *) ac_try_echo=$ac_try;;
13517 esac
13518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13519 $as_echo "$ac_try_echo") >&5
13520 (eval "$ac_compile") 2>conftest.er1
13521 ac_status=$?
13522 grep -v '^ *+' conftest.er1 >conftest.err
13523 rm -f conftest.er1
13524 cat conftest.err >&5
13525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13526 (exit $ac_status); } && {
13527 test -z "$ac_c_werror_flag" ||
13528 test ! -s conftest.err
13529 } && test -s conftest.$ac_objext; then
13530 HAVE_XIM=yes 9091 HAVE_XIM=yes
13531 9092
13532 cat >>confdefs.h <<\_ACEOF 9093 $as_echo "#define HAVE_XIM 1" >>confdefs.h
13533 #define HAVE_XIM 1 9094
13534 _ACEOF 9095 else
13535 9096 HAVE_XIM=no
13536 else 9097 fi
13537 $as_echo "$as_me: failed program was:" >&5
13538 sed 's/^/| /' conftest.$ac_ext >&5
13539
13540 HAVE_XIM=no
13541 fi
13542
13543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13544 9099
13545 9100
13546 if test "${with_xim}" != "no"; then 9101 if test "${with_xim}" != "no"; then
13547 9102
13548 cat >>confdefs.h <<\_ACEOF 9103 $as_echo "#define USE_XIM 1" >>confdefs.h
13549 #define USE_XIM 1
13550 _ACEOF
13551 9104
13552 fi 9105 fi
13553 9106
13554 9107
13555 if test "${HAVE_XIM}" != "no"; then 9108 if test "${HAVE_XIM}" != "no"; then
13556 late_CFLAGS=$CFLAGS 9109 late_CFLAGS=$CFLAGS
13557 if test "$GCC" = yes; then 9110 if test "$GCC" = yes; then
13558 CFLAGS="$CFLAGS --pedantic-errors" 9111 CFLAGS="$CFLAGS --pedantic-errors"
13559 fi 9112 fi
13560 cat >conftest.$ac_ext <<_ACEOF 9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13561 /* confdefs.h. */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */ 9114 /* end confdefs.h. */
13566 9115
13567 #include <X11/Xlib.h> 9116 #include <X11/Xlib.h>
13568 #include <X11/Xresource.h> 9117 #include <X11/Xresource.h>
13569 int 9118 int
13585 client_data); 9134 client_data);
13586 ; 9135 ;
13587 return 0; 9136 return 0;
13588 } 9137 }
13589 _ACEOF 9138 _ACEOF
13590 rm -f conftest.$ac_objext 9139 if ac_fn_c_try_compile "$LINENO"; then :
13591 if { (ac_try="$ac_compile"
13592 case "(($ac_try" in
13593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13594 *) ac_try_echo=$ac_try;;
13595 esac
13596 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13597 $as_echo "$ac_try_echo") >&5
13598 (eval "$ac_compile") 2>conftest.er1
13599 ac_status=$?
13600 grep -v '^ *+' conftest.er1 >conftest.err
13601 rm -f conftest.er1
13602 cat conftest.err >&5
13603 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13604 (exit $ac_status); } && {
13605 test -z "$ac_c_werror_flag" ||
13606 test ! -s conftest.err
13607 } && test -s conftest.$ac_objext; then
13608 emacs_cv_arg6_star=yes 9140 emacs_cv_arg6_star=yes
13609 else 9141 fi
13610 $as_echo "$as_me: failed program was:" >&5
13611 sed 's/^/| /' conftest.$ac_ext >&5
13612
13613
13614 fi
13615
13616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13617 9143 if test "$emacs_cv_arg6_star" = yes; then
13618 if test "$emacs_cv_arg6_star" = yes; then 9144 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer*" >>confdefs.h
13619 cat >>confdefs.h <<\_ACEOF
13620 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13621 _ACEOF
13622 9145
13623 else 9146 else
13624 cat >>confdefs.h <<\_ACEOF 9147 $as_echo "#define XRegisterIMInstantiateCallback_arg6 XPointer" >>confdefs.h
13625 #define XRegisterIMInstantiateCallback_arg6 XPointer
13626 _ACEOF
13627 9148
13628 fi 9149 fi
13629 CFLAGS=$late_CFLAGS 9150 CFLAGS=$late_CFLAGS
13630 fi 9151 fi
13631 9152
13638 9159
13639 succeeded=no 9160 succeeded=no
13640 9161
13641 # Extract the first word of "pkg-config", so it can be a program name with args. 9162 # Extract the first word of "pkg-config", so it can be a program name with args.
13642 set dummy pkg-config; ac_word=$2 9163 set dummy pkg-config; ac_word=$2
13643 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 9164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13644 $as_echo_n "checking for $ac_word... " >&6; } 9165 $as_echo_n "checking for $ac_word... " >&6; }
13645 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 9166 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13646 $as_echo_n "(cached) " >&6 9167 $as_echo_n "(cached) " >&6
13647 else 9168 else
13648 case $PKG_CONFIG in 9169 case $PKG_CONFIG in
13649 [\\/]* | ?:[\\/]*) 9170 [\\/]* | ?:[\\/]*)
13650 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9171 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13654 for as_dir in $PATH 9175 for as_dir in $PATH
13655 do 9176 do
13656 IFS=$as_save_IFS 9177 IFS=$as_save_IFS
13657 test -z "$as_dir" && as_dir=. 9178 test -z "$as_dir" && as_dir=.
13658 for ac_exec_ext in '' $ac_executable_extensions; do 9179 for ac_exec_ext in '' $ac_executable_extensions; do
13659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9180 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13660 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9181 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13661 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13662 break 2 9183 break 2
13663 fi 9184 fi
13664 done 9185 done
13665 done 9186 done
13666 IFS=$as_save_IFS 9187 IFS=$as_save_IFS
13667 9188
13668 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9189 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13669 ;; 9190 ;;
13670 esac 9191 esac
13671 fi 9192 fi
13672 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9193 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13673 if test -n "$PKG_CONFIG"; then 9194 if test -n "$PKG_CONFIG"; then
13674 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 9195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13675 $as_echo "$PKG_CONFIG" >&6; } 9196 $as_echo "$PKG_CONFIG" >&6; }
13676 else 9197 else
13677 { $as_echo "$as_me:$LINENO: result: no" >&5 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13678 $as_echo "no" >&6; } 9199 $as_echo "no" >&6; }
13679 fi 9200 fi
13680 9201
13681 9202
13682 9203
13683 if test "$PKG_CONFIG" = "no" ; then 9204 if test "$PKG_CONFIG" = "no" ; then
13684 HAVE_FC=no 9205 HAVE_FC=no
13685 else 9206 else
13686 PKG_CONFIG_MIN_VERSION=0.9.0 9207 PKG_CONFIG_MIN_VERSION=0.9.0
13687 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 9208 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13688 { $as_echo "$as_me:$LINENO: checking for fontconfig >= 2.2.0" >&5 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fontconfig >= 2.2.0" >&5
13689 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; } 9210 $as_echo_n "checking for fontconfig >= 2.2.0... " >&6; }
13690 9211
13691 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then 9212 if $PKG_CONFIG --exists "fontconfig >= 2.2.0" 2>&5; then
13692 { $as_echo "$as_me:$LINENO: result: yes" >&5 9213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13693 $as_echo "yes" >&6; } 9214 $as_echo "yes" >&6; }
13694 succeeded=yes 9215 succeeded=yes
13695 9216
13696 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5 9217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_CFLAGS" >&5
13697 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; } 9218 $as_echo_n "checking FONTCONFIG_CFLAGS... " >&6; }
13698 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 9219 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13699 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5 9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_CFLAGS" >&5
13700 $as_echo "$FONTCONFIG_CFLAGS" >&6; } 9221 $as_echo "$FONTCONFIG_CFLAGS" >&6; }
13701 9222
13702 { $as_echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5 9223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking FONTCONFIG_LIBS" >&5
13703 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; } 9224 $as_echo_n "checking FONTCONFIG_LIBS... " >&6; }
13704 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'` 9225 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.2.0"|sed -e 's,///*,/,g'`
13705 { $as_echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5 9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FONTCONFIG_LIBS" >&5
13706 $as_echo "$FONTCONFIG_LIBS" >&6; } 9227 $as_echo "$FONTCONFIG_LIBS" >&6; }
13707 else 9228 else
13708 { $as_echo "$as_me:$LINENO: result: no" >&5 9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13709 $as_echo "no" >&6; } 9230 $as_echo "no" >&6; }
13710 FONTCONFIG_CFLAGS="" 9231 FONTCONFIG_CFLAGS=""
13711 FONTCONFIG_LIBS="" 9232 FONTCONFIG_LIBS=""
13712 ## If we have a custom action on failure, don't print errors, but 9233 ## If we have a custom action on failure, don't print errors, but
13713 ## do set a variable so people can do so. 9234 ## do set a variable so people can do so.
13740 9261
13741 succeeded=no 9262 succeeded=no
13742 9263
13743 # Extract the first word of "pkg-config", so it can be a program name with args. 9264 # Extract the first word of "pkg-config", so it can be a program name with args.
13744 set dummy pkg-config; ac_word=$2 9265 set dummy pkg-config; ac_word=$2
13745 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 9266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13746 $as_echo_n "checking for $ac_word... " >&6; } 9267 $as_echo_n "checking for $ac_word... " >&6; }
13747 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 9268 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
13748 $as_echo_n "(cached) " >&6 9269 $as_echo_n "(cached) " >&6
13749 else 9270 else
13750 case $PKG_CONFIG in 9271 case $PKG_CONFIG in
13751 [\\/]* | ?:[\\/]*) 9272 [\\/]* | ?:[\\/]*)
13752 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9273 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13756 for as_dir in $PATH 9277 for as_dir in $PATH
13757 do 9278 do
13758 IFS=$as_save_IFS 9279 IFS=$as_save_IFS
13759 test -z "$as_dir" && as_dir=. 9280 test -z "$as_dir" && as_dir=.
13760 for ac_exec_ext in '' $ac_executable_extensions; do 9281 for ac_exec_ext in '' $ac_executable_extensions; do
13761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13762 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9283 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13763 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13764 break 2 9285 break 2
13765 fi 9286 fi
13766 done 9287 done
13767 done 9288 done
13768 IFS=$as_save_IFS 9289 IFS=$as_save_IFS
13769 9290
13770 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9291 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13771 ;; 9292 ;;
13772 esac 9293 esac
13773 fi 9294 fi
13774 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9295 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13775 if test -n "$PKG_CONFIG"; then 9296 if test -n "$PKG_CONFIG"; then
13776 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 9297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
13777 $as_echo "$PKG_CONFIG" >&6; } 9298 $as_echo "$PKG_CONFIG" >&6; }
13778 else 9299 else
13779 { $as_echo "$as_me:$LINENO: result: no" >&5 9300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13780 $as_echo "no" >&6; } 9301 $as_echo "no" >&6; }
13781 fi 9302 fi
13782 9303
13783 9304
13784 9305
13785 if test "$PKG_CONFIG" = "no" ; then 9306 if test "$PKG_CONFIG" = "no" ; then
13786 HAVE_XFT=no 9307 HAVE_XFT=no
13787 else 9308 else
13788 PKG_CONFIG_MIN_VERSION=0.9.0 9309 PKG_CONFIG_MIN_VERSION=0.9.0
13789 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 9310 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13790 { $as_echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5 9311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft >= 0.13.0" >&5
13791 $as_echo_n "checking for xft >= 0.13.0... " >&6; } 9312 $as_echo_n "checking for xft >= 0.13.0... " >&6; }
13792 9313
13793 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then 9314 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
13794 { $as_echo "$as_me:$LINENO: result: yes" >&5 9315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13795 $as_echo "yes" >&6; } 9316 $as_echo "yes" >&6; }
13796 succeeded=yes 9317 succeeded=yes
13797 9318
13798 { $as_echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5 9319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_CFLAGS" >&5
13799 $as_echo_n "checking XFT_CFLAGS... " >&6; } 9320 $as_echo_n "checking XFT_CFLAGS... " >&6; }
13800 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'` 9321 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13801 { $as_echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5 9322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_CFLAGS" >&5
13802 $as_echo "$XFT_CFLAGS" >&6; } 9323 $as_echo "$XFT_CFLAGS" >&6; }
13803 9324
13804 { $as_echo "$as_me:$LINENO: checking XFT_LIBS" >&5 9325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking XFT_LIBS" >&5
13805 $as_echo_n "checking XFT_LIBS... " >&6; } 9326 $as_echo_n "checking XFT_LIBS... " >&6; }
13806 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'` 9327 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
13807 { $as_echo "$as_me:$LINENO: result: $XFT_LIBS" >&5 9328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XFT_LIBS" >&5
13808 $as_echo "$XFT_LIBS" >&6; } 9329 $as_echo "$XFT_LIBS" >&6; }
13809 else 9330 else
13810 { $as_echo "$as_me:$LINENO: result: no" >&5 9331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13811 $as_echo "no" >&6; } 9332 $as_echo "no" >&6; }
13812 XFT_CFLAGS="" 9333 XFT_CFLAGS=""
13813 XFT_LIBS="" 9334 XFT_LIBS=""
13814 ## If we have a custom action on failure, don't print errors, but 9335 ## If we have a custom action on failure, don't print errors, but
13815 ## do set a variable so people can do so. 9336 ## do set a variable so people can do so.
13832 fi 9353 fi
13833 9354
13834 ## Because xftfont.c uses XRenderQueryExtension, we also 9355 ## Because xftfont.c uses XRenderQueryExtension, we also
13835 ## need to link to -lXrender. 9356 ## need to link to -lXrender.
13836 HAVE_XRENDER=no 9357 HAVE_XRENDER=no
13837 { $as_echo "$as_me:$LINENO: checking for XRenderQueryExtension in -lXrender" >&5 9358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
13838 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; } 9359 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
13839 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then 9360 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
13840 $as_echo_n "(cached) " >&6 9361 $as_echo_n "(cached) " >&6
13841 else 9362 else
13842 ac_check_lib_save_LIBS=$LIBS 9363 ac_check_lib_save_LIBS=$LIBS
13843 LIBS="-lXrender $LIBS" 9364 LIBS="-lXrender $LIBS"
13844 cat >conftest.$ac_ext <<_ACEOF 9365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13845 /* confdefs.h. */
13846 _ACEOF
13847 cat confdefs.h >>conftest.$ac_ext
13848 cat >>conftest.$ac_ext <<_ACEOF
13849 /* end confdefs.h. */ 9366 /* end confdefs.h. */
13850 9367
13851 /* Override any GCC internal prototype to avoid an error. 9368 /* Override any GCC internal prototype to avoid an error.
13852 Use char because int might match the return type of a GCC 9369 Use char because int might match the return type of a GCC
13853 builtin and then its argument prototype would still apply. */ 9370 builtin and then its argument prototype would still apply. */
13861 return XRenderQueryExtension (); 9378 return XRenderQueryExtension ();
13862 ; 9379 ;
13863 return 0; 9380 return 0;
13864 } 9381 }
13865 _ACEOF 9382 _ACEOF
13866 rm -f conftest.$ac_objext conftest$ac_exeext 9383 if ac_fn_c_try_link "$LINENO"; then :
13867 if { (ac_try="$ac_link"
13868 case "(($ac_try" in
13869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13870 *) ac_try_echo=$ac_try;;
13871 esac
13872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13873 $as_echo "$ac_try_echo") >&5
13874 (eval "$ac_link") 2>conftest.er1
13875 ac_status=$?
13876 grep -v '^ *+' conftest.er1 >conftest.err
13877 rm -f conftest.er1
13878 cat conftest.err >&5
13879 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } && {
13881 test -z "$ac_c_werror_flag" ||
13882 test ! -s conftest.err
13883 } && test -s conftest$ac_exeext && {
13884 test "$cross_compiling" = yes ||
13885 $as_test_x conftest$ac_exeext
13886 }; then
13887 ac_cv_lib_Xrender_XRenderQueryExtension=yes 9384 ac_cv_lib_Xrender_XRenderQueryExtension=yes
13888 else 9385 else
13889 $as_echo "$as_me: failed program was:" >&5 9386 ac_cv_lib_Xrender_XRenderQueryExtension=no
13890 sed 's/^/| /' conftest.$ac_ext >&5 9387 fi
13891 9388 rm -f core conftest.err conftest.$ac_objext \
13892 ac_cv_lib_Xrender_XRenderQueryExtension=no 9389 conftest$ac_exeext conftest.$ac_ext
13893 fi
13894
13895 rm -rf conftest.dSYM
13896 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13897 conftest$ac_exeext conftest.$ac_ext
13898 LIBS=$ac_check_lib_save_LIBS 9390 LIBS=$ac_check_lib_save_LIBS
13899 fi 9391 fi
13900 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5 9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
13901 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; } 9393 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
13902 if test $ac_cv_lib_Xrender_XRenderQueryExtension = yes; then 9394 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
13903 HAVE_XRENDER=yes 9395 HAVE_XRENDER=yes
13904 fi 9396 fi
13905 9397
13906 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then 9398 if test "$HAVE_XFT" != no && test "$HAVE_XRENDER" != no; then
13907 OLD_CPPFLAGS="$CPPFLAGS" 9399 OLD_CPPFLAGS="$CPPFLAGS"
13909 OLD_LIBS="$LIBS" 9401 OLD_LIBS="$LIBS"
13910 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS" 9402 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
13911 CFLAGS="$CFLAGS $XFT_CFLAGS" 9403 CFLAGS="$CFLAGS $XFT_CFLAGS"
13912 XFT_LIBS="-lXrender $XFT_LIBS" 9404 XFT_LIBS="-lXrender $XFT_LIBS"
13913 LIBS="$XFT_LIBS $LIBS" 9405 LIBS="$XFT_LIBS $LIBS"
13914 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then 9406 ac_fn_c_check_header_mongrel "$LINENO" "X11/Xft/Xft.h" "ac_cv_header_X11_Xft_Xft_h" "$ac_includes_default"
13915 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5 9407 if test "x$ac_cv_header_X11_Xft_Xft_h" = x""yes; then :
13916 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; } 9408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XftFontOpen in -lXft" >&5
13917 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
13918 $as_echo_n "(cached) " >&6
13919 fi
13920 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
13921 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
13922 else
13923 # Is the header compilable?
13924 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
13925 $as_echo_n "checking X11/Xft/Xft.h usability... " >&6; }
13926 cat >conftest.$ac_ext <<_ACEOF
13927 /* confdefs.h. */
13928 _ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h. */
13932 $ac_includes_default
13933 #include <X11/Xft/Xft.h>
13934 _ACEOF
13935 rm -f conftest.$ac_objext
13936 if { (ac_try="$ac_compile"
13937 case "(($ac_try" in
13938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13939 *) ac_try_echo=$ac_try;;
13940 esac
13941 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13942 $as_echo "$ac_try_echo") >&5
13943 (eval "$ac_compile") 2>conftest.er1
13944 ac_status=$?
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
13948 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } && {
13950 test -z "$ac_c_werror_flag" ||
13951 test ! -s conftest.err
13952 } && test -s conftest.$ac_objext; then
13953 ac_header_compiler=yes
13954 else
13955 $as_echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13957
13958 ac_header_compiler=no
13959 fi
13960
13961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13962 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13963 $as_echo "$ac_header_compiler" >&6; }
13964
13965 # Is the header present?
13966 { $as_echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
13967 $as_echo_n "checking X11/Xft/Xft.h presence... " >&6; }
13968 cat >conftest.$ac_ext <<_ACEOF
13969 /* confdefs.h. */
13970 _ACEOF
13971 cat confdefs.h >>conftest.$ac_ext
13972 cat >>conftest.$ac_ext <<_ACEOF
13973 /* end confdefs.h. */
13974 #include <X11/Xft/Xft.h>
13975 _ACEOF
13976 if { (ac_try="$ac_cpp conftest.$ac_ext"
13977 case "(($ac_try" in
13978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13979 *) ac_try_echo=$ac_try;;
13980 esac
13981 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
13982 $as_echo "$ac_try_echo") >&5
13983 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13984 ac_status=$?
13985 grep -v '^ *+' conftest.er1 >conftest.err
13986 rm -f conftest.er1
13987 cat conftest.err >&5
13988 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13989 (exit $ac_status); } >/dev/null && {
13990 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13991 test ! -s conftest.err
13992 }; then
13993 ac_header_preproc=yes
13994 else
13995 $as_echo "$as_me: failed program was:" >&5
13996 sed 's/^/| /' conftest.$ac_ext >&5
13997
13998 ac_header_preproc=no
13999 fi
14000
14001 rm -f conftest.err conftest.$ac_ext
14002 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14003 $as_echo "$ac_header_preproc" >&6; }
14004
14005 # So? What about this header?
14006 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14007 yes:no: )
14008 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
14009 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14010 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
14011 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
14012 ac_header_preproc=yes
14013 ;;
14014 no:yes:* )
14015 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
14016 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
14017 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
14018 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
14019 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
14020 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
14021 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
14022 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
14023 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
14024 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
14025 { $as_echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
14026 $as_echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
14027
14028 ;;
14029 esac
14030 { $as_echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
14031 $as_echo_n "checking for X11/Xft/Xft.h... " >&6; }
14032 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
14033 $as_echo_n "(cached) " >&6
14034 else
14035 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
14036 fi
14037 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
14038 $as_echo "$ac_cv_header_X11_Xft_Xft_h" >&6; }
14039
14040 fi
14041 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
14042 { $as_echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
14043 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; } 9409 $as_echo_n "checking for XftFontOpen in -lXft... " >&6; }
14044 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then 9410 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then :
14045 $as_echo_n "(cached) " >&6 9411 $as_echo_n "(cached) " >&6
14046 else 9412 else
14047 ac_check_lib_save_LIBS=$LIBS 9413 ac_check_lib_save_LIBS=$LIBS
14048 LIBS="-lXft $XFT_LIBS $LIBS" 9414 LIBS="-lXft $XFT_LIBS $LIBS"
14049 cat >conftest.$ac_ext <<_ACEOF 9415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14050 /* confdefs.h. */
14051 _ACEOF
14052 cat confdefs.h >>conftest.$ac_ext
14053 cat >>conftest.$ac_ext <<_ACEOF
14054 /* end confdefs.h. */ 9416 /* end confdefs.h. */
14055 9417
14056 /* Override any GCC internal prototype to avoid an error. 9418 /* Override any GCC internal prototype to avoid an error.
14057 Use char because int might match the return type of a GCC 9419 Use char because int might match the return type of a GCC
14058 builtin and then its argument prototype would still apply. */ 9420 builtin and then its argument prototype would still apply. */
14066 return XftFontOpen (); 9428 return XftFontOpen ();
14067 ; 9429 ;
14068 return 0; 9430 return 0;
14069 } 9431 }
14070 _ACEOF 9432 _ACEOF
14071 rm -f conftest.$ac_objext conftest$ac_exeext 9433 if ac_fn_c_try_link "$LINENO"; then :
14072 if { (ac_try="$ac_link"
14073 case "(($ac_try" in
14074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14075 *) ac_try_echo=$ac_try;;
14076 esac
14077 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14078 $as_echo "$ac_try_echo") >&5
14079 (eval "$ac_link") 2>conftest.er1
14080 ac_status=$?
14081 grep -v '^ *+' conftest.er1 >conftest.err
14082 rm -f conftest.er1
14083 cat conftest.err >&5
14084 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085 (exit $ac_status); } && {
14086 test -z "$ac_c_werror_flag" ||
14087 test ! -s conftest.err
14088 } && test -s conftest$ac_exeext && {
14089 test "$cross_compiling" = yes ||
14090 $as_test_x conftest$ac_exeext
14091 }; then
14092 ac_cv_lib_Xft_XftFontOpen=yes 9434 ac_cv_lib_Xft_XftFontOpen=yes
14093 else 9435 else
14094 $as_echo "$as_me: failed program was:" >&5 9436 ac_cv_lib_Xft_XftFontOpen=no
14095 sed 's/^/| /' conftest.$ac_ext >&5 9437 fi
14096 9438 rm -f core conftest.err conftest.$ac_objext \
14097 ac_cv_lib_Xft_XftFontOpen=no 9439 conftest$ac_exeext conftest.$ac_ext
14098 fi
14099
14100 rm -rf conftest.dSYM
14101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14102 conftest$ac_exeext conftest.$ac_ext
14103 LIBS=$ac_check_lib_save_LIBS 9440 LIBS=$ac_check_lib_save_LIBS
14104 fi 9441 fi
14105 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5 9442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xft_XftFontOpen" >&5
14106 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; } 9443 $as_echo "$ac_cv_lib_Xft_XftFontOpen" >&6; }
14107 if test $ac_cv_lib_Xft_XftFontOpen = yes; then 9444 if test "x$ac_cv_lib_Xft_XftFontOpen" = x""yes; then :
14108 HAVE_XFT=yes 9445 HAVE_XFT=yes
14109 fi 9446 fi
14110 9447
14111 fi 9448 fi
14112 9449
14113 9450
14114 9451
14115 if test "${HAVE_XFT}" = "yes"; then 9452 if test "${HAVE_XFT}" = "yes"; then
14116 9453
14117 cat >>confdefs.h <<\_ACEOF 9454 $as_echo "#define HAVE_XFT 1" >>confdefs.h
14118 #define HAVE_XFT 1
14119 _ACEOF
14120 9455
14121 9456
14122 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS" 9457 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
14123 else 9458 else
14124 CPPFLAGS="$OLD_CPPFLAGS" 9459 CPPFLAGS="$OLD_CPPFLAGS"
14143 fi 9478 fi
14144 9479
14145 HAVE_LIBOTF=no 9480 HAVE_LIBOTF=no
14146 if test "${HAVE_FREETYPE}" = "yes"; then 9481 if test "${HAVE_FREETYPE}" = "yes"; then
14147 9482
14148 cat >>confdefs.h <<\_ACEOF 9483 $as_echo "#define HAVE_FREETYPE 1" >>confdefs.h
14149 #define HAVE_FREETYPE 1
14150 _ACEOF
14151 9484
14152 if test "${with_libotf}" != "no"; then 9485 if test "${with_libotf}" != "no"; then
14153 9486
14154 succeeded=no 9487 succeeded=no
14155 9488
14156 # Extract the first word of "pkg-config", so it can be a program name with args. 9489 # Extract the first word of "pkg-config", so it can be a program name with args.
14157 set dummy pkg-config; ac_word=$2 9490 set dummy pkg-config; ac_word=$2
14158 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14159 $as_echo_n "checking for $ac_word... " >&6; } 9492 $as_echo_n "checking for $ac_word... " >&6; }
14160 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 9493 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14161 $as_echo_n "(cached) " >&6 9494 $as_echo_n "(cached) " >&6
14162 else 9495 else
14163 case $PKG_CONFIG in 9496 case $PKG_CONFIG in
14164 [\\/]* | ?:[\\/]*) 9497 [\\/]* | ?:[\\/]*)
14165 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9498 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14169 for as_dir in $PATH 9502 for as_dir in $PATH
14170 do 9503 do
14171 IFS=$as_save_IFS 9504 IFS=$as_save_IFS
14172 test -z "$as_dir" && as_dir=. 9505 test -z "$as_dir" && as_dir=.
14173 for ac_exec_ext in '' $ac_executable_extensions; do 9506 for ac_exec_ext in '' $ac_executable_extensions; do
14174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14175 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9508 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14176 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14177 break 2 9510 break 2
14178 fi 9511 fi
14179 done 9512 done
14180 done 9513 done
14181 IFS=$as_save_IFS 9514 IFS=$as_save_IFS
14182 9515
14183 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9516 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14184 ;; 9517 ;;
14185 esac 9518 esac
14186 fi 9519 fi
14187 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9520 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14188 if test -n "$PKG_CONFIG"; then 9521 if test -n "$PKG_CONFIG"; then
14189 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14190 $as_echo "$PKG_CONFIG" >&6; } 9523 $as_echo "$PKG_CONFIG" >&6; }
14191 else 9524 else
14192 { $as_echo "$as_me:$LINENO: result: no" >&5 9525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14193 $as_echo "no" >&6; } 9526 $as_echo "no" >&6; }
14194 fi 9527 fi
14195 9528
14196 9529
14197 9530
14198 if test "$PKG_CONFIG" = "no" ; then 9531 if test "$PKG_CONFIG" = "no" ; then
14199 HAVE_LIBOTF=no 9532 HAVE_LIBOTF=no
14200 else 9533 else
14201 PKG_CONFIG_MIN_VERSION=0.9.0 9534 PKG_CONFIG_MIN_VERSION=0.9.0
14202 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 9535 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14203 { $as_echo "$as_me:$LINENO: checking for libotf" >&5 9536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libotf" >&5
14204 $as_echo_n "checking for libotf... " >&6; } 9537 $as_echo_n "checking for libotf... " >&6; }
14205 9538
14206 if $PKG_CONFIG --exists "libotf" 2>&5; then 9539 if $PKG_CONFIG --exists "libotf" 2>&5; then
14207 { $as_echo "$as_me:$LINENO: result: yes" >&5 9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14208 $as_echo "yes" >&6; } 9541 $as_echo "yes" >&6; }
14209 succeeded=yes 9542 succeeded=yes
14210 9543
14211 { $as_echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5 9544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_CFLAGS" >&5
14212 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; } 9545 $as_echo_n "checking LIBOTF_CFLAGS... " >&6; }
14213 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'` 9546 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
14214 { $as_echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5 9547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_CFLAGS" >&5
14215 $as_echo "$LIBOTF_CFLAGS" >&6; } 9548 $as_echo "$LIBOTF_CFLAGS" >&6; }
14216 9549
14217 { $as_echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5 9550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBOTF_LIBS" >&5
14218 $as_echo_n "checking LIBOTF_LIBS... " >&6; } 9551 $as_echo_n "checking LIBOTF_LIBS... " >&6; }
14219 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'` 9552 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
14220 { $as_echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5 9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBOTF_LIBS" >&5
14221 $as_echo "$LIBOTF_LIBS" >&6; } 9554 $as_echo "$LIBOTF_LIBS" >&6; }
14222 else 9555 else
14223 { $as_echo "$as_me:$LINENO: result: no" >&5 9556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14224 $as_echo "no" >&6; } 9557 $as_echo "no" >&6; }
14225 LIBOTF_CFLAGS="" 9558 LIBOTF_CFLAGS=""
14226 LIBOTF_LIBS="" 9559 LIBOTF_LIBS=""
14227 ## If we have a custom action on failure, don't print errors, but 9560 ## If we have a custom action on failure, don't print errors, but
14228 ## do set a variable so people can do so. 9561 ## do set a variable so people can do so.
14244 HAVE_LIBOTF=no 9577 HAVE_LIBOTF=no
14245 fi 9578 fi
14246 9579
14247 if test "$HAVE_LIBOTF" = "yes"; then 9580 if test "$HAVE_LIBOTF" = "yes"; then
14248 9581
14249 cat >>confdefs.h <<\_ACEOF 9582 $as_echo "#define HAVE_LIBOTF 1" >>confdefs.h
14250 #define HAVE_LIBOTF 1 9583
14251 _ACEOF 9584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OTF_get_variation_glyphs in -lotf" >&5
14252
14253 { $as_echo "$as_me:$LINENO: checking for OTF_get_variation_glyphs in -lotf" >&5
14254 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; } 9585 $as_echo_n "checking for OTF_get_variation_glyphs in -lotf... " >&6; }
14255 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then 9586 if test "${ac_cv_lib_otf_OTF_get_variation_glyphs+set}" = set; then :
14256 $as_echo_n "(cached) " >&6 9587 $as_echo_n "(cached) " >&6
14257 else 9588 else
14258 ac_check_lib_save_LIBS=$LIBS 9589 ac_check_lib_save_LIBS=$LIBS
14259 LIBS="-lotf $LIBS" 9590 LIBS="-lotf $LIBS"
14260 cat >conftest.$ac_ext <<_ACEOF 9591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14261 /* confdefs.h. */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */ 9592 /* end confdefs.h. */
14266 9593
14267 /* Override any GCC internal prototype to avoid an error. 9594 /* Override any GCC internal prototype to avoid an error.
14268 Use char because int might match the return type of a GCC 9595 Use char because int might match the return type of a GCC
14269 builtin and then its argument prototype would still apply. */ 9596 builtin and then its argument prototype would still apply. */
14277 return OTF_get_variation_glyphs (); 9604 return OTF_get_variation_glyphs ();
14278 ; 9605 ;
14279 return 0; 9606 return 0;
14280 } 9607 }
14281 _ACEOF 9608 _ACEOF
14282 rm -f conftest.$ac_objext conftest$ac_exeext 9609 if ac_fn_c_try_link "$LINENO"; then :
14283 if { (ac_try="$ac_link"
14284 case "(($ac_try" in
14285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14286 *) ac_try_echo=$ac_try;;
14287 esac
14288 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14289 $as_echo "$ac_try_echo") >&5
14290 (eval "$ac_link") 2>conftest.er1
14291 ac_status=$?
14292 grep -v '^ *+' conftest.er1 >conftest.err
14293 rm -f conftest.er1
14294 cat conftest.err >&5
14295 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14296 (exit $ac_status); } && {
14297 test -z "$ac_c_werror_flag" ||
14298 test ! -s conftest.err
14299 } && test -s conftest$ac_exeext && {
14300 test "$cross_compiling" = yes ||
14301 $as_test_x conftest$ac_exeext
14302 }; then
14303 ac_cv_lib_otf_OTF_get_variation_glyphs=yes 9610 ac_cv_lib_otf_OTF_get_variation_glyphs=yes
14304 else 9611 else
14305 $as_echo "$as_me: failed program was:" >&5 9612 ac_cv_lib_otf_OTF_get_variation_glyphs=no
14306 sed 's/^/| /' conftest.$ac_ext >&5 9613 fi
14307 9614 rm -f core conftest.err conftest.$ac_objext \
14308 ac_cv_lib_otf_OTF_get_variation_glyphs=no 9615 conftest$ac_exeext conftest.$ac_ext
14309 fi
14310
14311 rm -rf conftest.dSYM
14312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14313 conftest$ac_exeext conftest.$ac_ext
14314 LIBS=$ac_check_lib_save_LIBS 9616 LIBS=$ac_check_lib_save_LIBS
14315 fi 9617 fi
14316 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5 9618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_otf_OTF_get_variation_glyphs" >&5
14317 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; } 9619 $as_echo "$ac_cv_lib_otf_OTF_get_variation_glyphs" >&6; }
14318 if test $ac_cv_lib_otf_OTF_get_variation_glyphs = yes; then 9620 if test "x$ac_cv_lib_otf_OTF_get_variation_glyphs" = x""yes; then :
14319 HAVE_OTF_GET_VARIATION_GLYPHS=yes 9621 HAVE_OTF_GET_VARIATION_GLYPHS=yes
14320 else 9622 else
14321 HAVE_OTF_GET_VARIATION_GLYPHS=no 9623 HAVE_OTF_GET_VARIATION_GLYPHS=no
14322 fi 9624 fi
14323 9625
14324 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then 9626 if test "${HAVE_OTF_GET_VARIATION_GLYPHS}" = "yes"; then
14325 9627
14326 cat >>confdefs.h <<\_ACEOF 9628 $as_echo "#define HAVE_OTF_GET_VARIATION_GLYPHS 1" >>confdefs.h
14327 #define HAVE_OTF_GET_VARIATION_GLYPHS 1
14328 _ACEOF
14329 9629
14330 fi 9630 fi
14331 fi 9631 fi
14332 fi 9632 fi
14333 fi 9633 fi
14338 9638
14339 succeeded=no 9639 succeeded=no
14340 9640
14341 # Extract the first word of "pkg-config", so it can be a program name with args. 9641 # Extract the first word of "pkg-config", so it can be a program name with args.
14342 set dummy pkg-config; ac_word=$2 9642 set dummy pkg-config; ac_word=$2
14343 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 9643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14344 $as_echo_n "checking for $ac_word... " >&6; } 9644 $as_echo_n "checking for $ac_word... " >&6; }
14345 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then 9645 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
14346 $as_echo_n "(cached) " >&6 9646 $as_echo_n "(cached) " >&6
14347 else 9647 else
14348 case $PKG_CONFIG in 9648 case $PKG_CONFIG in
14349 [\\/]* | ?:[\\/]*) 9649 [\\/]* | ?:[\\/]*)
14350 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 9650 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14354 for as_dir in $PATH 9654 for as_dir in $PATH
14355 do 9655 do
14356 IFS=$as_save_IFS 9656 IFS=$as_save_IFS
14357 test -z "$as_dir" && as_dir=. 9657 test -z "$as_dir" && as_dir=.
14358 for ac_exec_ext in '' $ac_executable_extensions; do 9658 for ac_exec_ext in '' $ac_executable_extensions; do
14359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9659 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14360 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 9660 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14361 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 9661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14362 break 2 9662 break 2
14363 fi 9663 fi
14364 done 9664 done
14365 done 9665 done
14366 IFS=$as_save_IFS 9666 IFS=$as_save_IFS
14367 9667
14368 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" 9668 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14369 ;; 9669 ;;
14370 esac 9670 esac
14371 fi 9671 fi
14372 PKG_CONFIG=$ac_cv_path_PKG_CONFIG 9672 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14373 if test -n "$PKG_CONFIG"; then 9673 if test -n "$PKG_CONFIG"; then
14374 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 9674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
14375 $as_echo "$PKG_CONFIG" >&6; } 9675 $as_echo "$PKG_CONFIG" >&6; }
14376 else 9676 else
14377 { $as_echo "$as_me:$LINENO: result: no" >&5 9677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14378 $as_echo "no" >&6; } 9678 $as_echo "no" >&6; }
14379 fi 9679 fi
14380 9680
14381 9681
14382 9682
14383 if test "$PKG_CONFIG" = "no" ; then 9683 if test "$PKG_CONFIG" = "no" ; then
14384 HAVE_M17N_FLT=no 9684 HAVE_M17N_FLT=no
14385 else 9685 else
14386 PKG_CONFIG_MIN_VERSION=0.9.0 9686 PKG_CONFIG_MIN_VERSION=0.9.0
14387 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then 9687 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14388 { $as_echo "$as_me:$LINENO: checking for m17n-flt" >&5 9688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for m17n-flt" >&5
14389 $as_echo_n "checking for m17n-flt... " >&6; } 9689 $as_echo_n "checking for m17n-flt... " >&6; }
14390 9690
14391 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then 9691 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
14392 { $as_echo "$as_me:$LINENO: result: yes" >&5 9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14393 $as_echo "yes" >&6; } 9693 $as_echo "yes" >&6; }
14394 succeeded=yes 9694 succeeded=yes
14395 9695
14396 { $as_echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5 9696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_CFLAGS" >&5
14397 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; } 9697 $as_echo_n "checking M17N_FLT_CFLAGS... " >&6; }
14398 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'` 9698 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
14399 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5 9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_CFLAGS" >&5
14400 $as_echo "$M17N_FLT_CFLAGS" >&6; } 9700 $as_echo "$M17N_FLT_CFLAGS" >&6; }
14401 9701
14402 { $as_echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5 9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking M17N_FLT_LIBS" >&5
14403 $as_echo_n "checking M17N_FLT_LIBS... " >&6; } 9703 $as_echo_n "checking M17N_FLT_LIBS... " >&6; }
14404 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'` 9704 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
14405 { $as_echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5 9705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M17N_FLT_LIBS" >&5
14406 $as_echo "$M17N_FLT_LIBS" >&6; } 9706 $as_echo "$M17N_FLT_LIBS" >&6; }
14407 else 9707 else
14408 { $as_echo "$as_me:$LINENO: result: no" >&5 9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14409 $as_echo "no" >&6; } 9709 $as_echo "no" >&6; }
14410 M17N_FLT_CFLAGS="" 9710 M17N_FLT_CFLAGS=""
14411 M17N_FLT_LIBS="" 9711 M17N_FLT_LIBS=""
14412 ## If we have a custom action on failure, don't print errors, but 9712 ## If we have a custom action on failure, don't print errors, but
14413 ## do set a variable so people can do so. 9713 ## do set a variable so people can do so.
14429 HAVE_M17N_FLT=no 9729 HAVE_M17N_FLT=no
14430 fi 9730 fi
14431 9731
14432 if test "$HAVE_M17N_FLT" = "yes"; then 9732 if test "$HAVE_M17N_FLT" = "yes"; then
14433 9733
14434 cat >>confdefs.h <<\_ACEOF 9734 $as_echo "#define HAVE_M17N_FLT 1" >>confdefs.h
14435 #define HAVE_M17N_FLT 1
14436 _ACEOF
14437 9735
14438 fi 9736 fi
14439 fi 9737 fi
14440 fi 9738 fi
14441 else 9739 else
14458 ### Use -lXpm if available, unless `--with-xpm=no'. 9756 ### Use -lXpm if available, unless `--with-xpm=no'.
14459 HAVE_XPM=no 9757 HAVE_XPM=no
14460 LIBXPM= 9758 LIBXPM=
14461 if test "${HAVE_X11}" = "yes"; then 9759 if test "${HAVE_X11}" = "yes"; then
14462 if test "${with_xpm}" != "no"; then 9760 if test "${with_xpm}" != "no"; then
14463 if test "${ac_cv_header_X11_xpm_h+set}" = set; then 9761 ac_fn_c_check_header_mongrel "$LINENO" "X11/xpm.h" "ac_cv_header_X11_xpm_h" "$ac_includes_default"
14464 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5 9762 if test "x$ac_cv_header_X11_xpm_h" = x""yes; then :
14465 $as_echo_n "checking for X11/xpm.h... " >&6; } 9763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReadFileToPixmap in -lXpm" >&5
14466 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14467 $as_echo_n "(cached) " >&6
14468 fi
14469 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14470 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14471 else
14472 # Is the header compilable?
14473 { $as_echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
14474 $as_echo_n "checking X11/xpm.h usability... " >&6; }
14475 cat >conftest.$ac_ext <<_ACEOF
14476 /* confdefs.h. */
14477 _ACEOF
14478 cat confdefs.h >>conftest.$ac_ext
14479 cat >>conftest.$ac_ext <<_ACEOF
14480 /* end confdefs.h. */
14481 $ac_includes_default
14482 #include <X11/xpm.h>
14483 _ACEOF
14484 rm -f conftest.$ac_objext
14485 if { (ac_try="$ac_compile"
14486 case "(($ac_try" in
14487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14488 *) ac_try_echo=$ac_try;;
14489 esac
14490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14491 $as_echo "$ac_try_echo") >&5
14492 (eval "$ac_compile") 2>conftest.er1
14493 ac_status=$?
14494 grep -v '^ *+' conftest.er1 >conftest.err
14495 rm -f conftest.er1
14496 cat conftest.err >&5
14497 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14498 (exit $ac_status); } && {
14499 test -z "$ac_c_werror_flag" ||
14500 test ! -s conftest.err
14501 } && test -s conftest.$ac_objext; then
14502 ac_header_compiler=yes
14503 else
14504 $as_echo "$as_me: failed program was:" >&5
14505 sed 's/^/| /' conftest.$ac_ext >&5
14506
14507 ac_header_compiler=no
14508 fi
14509
14510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14512 $as_echo "$ac_header_compiler" >&6; }
14513
14514 # Is the header present?
14515 { $as_echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
14516 $as_echo_n "checking X11/xpm.h presence... " >&6; }
14517 cat >conftest.$ac_ext <<_ACEOF
14518 /* confdefs.h. */
14519 _ACEOF
14520 cat confdefs.h >>conftest.$ac_ext
14521 cat >>conftest.$ac_ext <<_ACEOF
14522 /* end confdefs.h. */
14523 #include <X11/xpm.h>
14524 _ACEOF
14525 if { (ac_try="$ac_cpp conftest.$ac_ext"
14526 case "(($ac_try" in
14527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14528 *) ac_try_echo=$ac_try;;
14529 esac
14530 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14531 $as_echo "$ac_try_echo") >&5
14532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14533 ac_status=$?
14534 grep -v '^ *+' conftest.er1 >conftest.err
14535 rm -f conftest.er1
14536 cat conftest.err >&5
14537 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14538 (exit $ac_status); } >/dev/null && {
14539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14540 test ! -s conftest.err
14541 }; then
14542 ac_header_preproc=yes
14543 else
14544 $as_echo "$as_me: failed program was:" >&5
14545 sed 's/^/| /' conftest.$ac_ext >&5
14546
14547 ac_header_preproc=no
14548 fi
14549
14550 rm -f conftest.err conftest.$ac_ext
14551 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14552 $as_echo "$ac_header_preproc" >&6; }
14553
14554 # So? What about this header?
14555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14556 yes:no: )
14557 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14558 $as_echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14559 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
14560 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
14561 ac_header_preproc=yes
14562 ;;
14563 no:yes:* )
14564 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
14565 $as_echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
14566 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
14567 $as_echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
14568 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
14569 $as_echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
14570 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
14571 $as_echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14572 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
14573 $as_echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
14574 { $as_echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
14575 $as_echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
14576
14577 ;;
14578 esac
14579 { $as_echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
14580 $as_echo_n "checking for X11/xpm.h... " >&6; }
14581 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
14582 $as_echo_n "(cached) " >&6
14583 else
14584 ac_cv_header_X11_xpm_h=$ac_header_preproc
14585 fi
14586 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14587 $as_echo "$ac_cv_header_X11_xpm_h" >&6; }
14588
14589 fi
14590 if test $ac_cv_header_X11_xpm_h = yes; then
14591 { $as_echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14592 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; } 9764 $as_echo_n "checking for XpmReadFileToPixmap in -lXpm... " >&6; }
14593 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then 9765 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then :
14594 $as_echo_n "(cached) " >&6 9766 $as_echo_n "(cached) " >&6
14595 else 9767 else
14596 ac_check_lib_save_LIBS=$LIBS 9768 ac_check_lib_save_LIBS=$LIBS
14597 LIBS="-lXpm -lX11 $LIBS" 9769 LIBS="-lXpm -lX11 $LIBS"
14598 cat >conftest.$ac_ext <<_ACEOF 9770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14599 /* confdefs.h. */
14600 _ACEOF
14601 cat confdefs.h >>conftest.$ac_ext
14602 cat >>conftest.$ac_ext <<_ACEOF
14603 /* end confdefs.h. */ 9771 /* end confdefs.h. */
14604 9772
14605 /* Override any GCC internal prototype to avoid an error. 9773 /* Override any GCC internal prototype to avoid an error.
14606 Use char because int might match the return type of a GCC 9774 Use char because int might match the return type of a GCC
14607 builtin and then its argument prototype would still apply. */ 9775 builtin and then its argument prototype would still apply. */
14615 return XpmReadFileToPixmap (); 9783 return XpmReadFileToPixmap ();
14616 ; 9784 ;
14617 return 0; 9785 return 0;
14618 } 9786 }
14619 _ACEOF 9787 _ACEOF
14620 rm -f conftest.$ac_objext conftest$ac_exeext 9788 if ac_fn_c_try_link "$LINENO"; then :
14621 if { (ac_try="$ac_link"
14622 case "(($ac_try" in
14623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14624 *) ac_try_echo=$ac_try;;
14625 esac
14626 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14627 $as_echo "$ac_try_echo") >&5
14628 (eval "$ac_link") 2>conftest.er1
14629 ac_status=$?
14630 grep -v '^ *+' conftest.er1 >conftest.err
14631 rm -f conftest.er1
14632 cat conftest.err >&5
14633 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14634 (exit $ac_status); } && {
14635 test -z "$ac_c_werror_flag" ||
14636 test ! -s conftest.err
14637 } && test -s conftest$ac_exeext && {
14638 test "$cross_compiling" = yes ||
14639 $as_test_x conftest$ac_exeext
14640 }; then
14641 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes 9789 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14642 else 9790 else
14643 $as_echo "$as_me: failed program was:" >&5 9791 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14644 sed 's/^/| /' conftest.$ac_ext >&5 9792 fi
14645 9793 rm -f core conftest.err conftest.$ac_objext \
14646 ac_cv_lib_Xpm_XpmReadFileToPixmap=no 9794 conftest$ac_exeext conftest.$ac_ext
14647 fi
14648
14649 rm -rf conftest.dSYM
14650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14651 conftest$ac_exeext conftest.$ac_ext
14652 LIBS=$ac_check_lib_save_LIBS 9795 LIBS=$ac_check_lib_save_LIBS
14653 fi 9796 fi
14654 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5 9797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14655 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; } 9798 $as_echo "$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14656 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then 9799 if test "x$ac_cv_lib_Xpm_XpmReadFileToPixmap" = x""yes; then :
14657 HAVE_XPM=yes 9800 HAVE_XPM=yes
14658 fi 9801 fi
14659 9802
14660 fi 9803 fi
14661 9804
14662 9805
14663 if test "${HAVE_XPM}" = "yes"; then 9806 if test "${HAVE_XPM}" = "yes"; then
14664 { $as_echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5 9807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XpmReturnAllocPixels preprocessor define" >&5
14665 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; } 9808 $as_echo_n "checking for XpmReturnAllocPixels preprocessor define... " >&6; }
14666 cat >conftest.$ac_ext <<_ACEOF 9809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14667 /* confdefs.h. */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h. */ 9810 /* end confdefs.h. */
14672 #include "X11/xpm.h" 9811 #include "X11/xpm.h"
14673 #ifndef XpmReturnAllocPixels 9812 #ifndef XpmReturnAllocPixels
14674 no_return_alloc_pixels 9813 no_return_alloc_pixels
14675 #endif 9814 #endif
14676 9815
14677 _ACEOF 9816 _ACEOF
14678 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9817 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14679 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then 9818 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then :
14680 HAVE_XPM=no 9819 HAVE_XPM=no
14681 else 9820 else
14682 HAVE_XPM=yes 9821 HAVE_XPM=yes
14683 fi 9822 fi
14684 rm -f conftest* 9823 rm -f conftest*
14685 9824
14686 9825
14687 if test "${HAVE_XPM}" = "yes"; then 9826 if test "${HAVE_XPM}" = "yes"; then
14688 { $as_echo "$as_me:$LINENO: result: yes" >&5 9827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14689 $as_echo "yes" >&6; } 9828 $as_echo "yes" >&6; }
14690 else 9829 else
14691 { $as_echo "$as_me:$LINENO: result: no" >&5 9830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14692 $as_echo "no" >&6; } 9831 $as_echo "no" >&6; }
14693 fi 9832 fi
14694 fi 9833 fi
14695 fi 9834 fi
14696 9835
14697 if test "${HAVE_XPM}" = "yes"; then 9836 if test "${HAVE_XPM}" = "yes"; then
14698 9837
14699 cat >>confdefs.h <<\_ACEOF 9838 $as_echo "#define HAVE_XPM 1" >>confdefs.h
14700 #define HAVE_XPM 1
14701 _ACEOF
14702 9839
14703 LIBXPM=-lXpm 9840 LIBXPM=-lXpm
14704 fi 9841 fi
14705 fi 9842 fi
14706 9843
14708 ### Use -ljpeg if available, unless `--with-jpeg=no'. 9845 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14709 HAVE_JPEG=no 9846 HAVE_JPEG=no
14710 LIBJPEG= 9847 LIBJPEG=
14711 if test "${HAVE_X11}" = "yes"; then 9848 if test "${HAVE_X11}" = "yes"; then
14712 if test "${with_jpeg}" != "no"; then 9849 if test "${with_jpeg}" != "no"; then
14713 if test "${ac_cv_header_jerror_h+set}" = set; then 9850 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
14714 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5 9851 if test "x$ac_cv_header_jerror_h" = x""yes; then :
14715 $as_echo_n "checking for jerror.h... " >&6; } 9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_destroy_compress in -ljpeg" >&5
14716 if test "${ac_cv_header_jerror_h+set}" = set; then
14717 $as_echo_n "(cached) " >&6
14718 fi
14719 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14720 $as_echo "$ac_cv_header_jerror_h" >&6; }
14721 else
14722 # Is the header compilable?
14723 { $as_echo "$as_me:$LINENO: checking jerror.h usability" >&5
14724 $as_echo_n "checking jerror.h usability... " >&6; }
14725 cat >conftest.$ac_ext <<_ACEOF
14726 /* confdefs.h. */
14727 _ACEOF
14728 cat confdefs.h >>conftest.$ac_ext
14729 cat >>conftest.$ac_ext <<_ACEOF
14730 /* end confdefs.h. */
14731 $ac_includes_default
14732 #include <jerror.h>
14733 _ACEOF
14734 rm -f conftest.$ac_objext
14735 if { (ac_try="$ac_compile"
14736 case "(($ac_try" in
14737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14738 *) ac_try_echo=$ac_try;;
14739 esac
14740 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14741 $as_echo "$ac_try_echo") >&5
14742 (eval "$ac_compile") 2>conftest.er1
14743 ac_status=$?
14744 grep -v '^ *+' conftest.er1 >conftest.err
14745 rm -f conftest.er1
14746 cat conftest.err >&5
14747 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14748 (exit $ac_status); } && {
14749 test -z "$ac_c_werror_flag" ||
14750 test ! -s conftest.err
14751 } && test -s conftest.$ac_objext; then
14752 ac_header_compiler=yes
14753 else
14754 $as_echo "$as_me: failed program was:" >&5
14755 sed 's/^/| /' conftest.$ac_ext >&5
14756
14757 ac_header_compiler=no
14758 fi
14759
14760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14761 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14762 $as_echo "$ac_header_compiler" >&6; }
14763
14764 # Is the header present?
14765 { $as_echo "$as_me:$LINENO: checking jerror.h presence" >&5
14766 $as_echo_n "checking jerror.h presence... " >&6; }
14767 cat >conftest.$ac_ext <<_ACEOF
14768 /* confdefs.h. */
14769 _ACEOF
14770 cat confdefs.h >>conftest.$ac_ext
14771 cat >>conftest.$ac_ext <<_ACEOF
14772 /* end confdefs.h. */
14773 #include <jerror.h>
14774 _ACEOF
14775 if { (ac_try="$ac_cpp conftest.$ac_ext"
14776 case "(($ac_try" in
14777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14778 *) ac_try_echo=$ac_try;;
14779 esac
14780 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14781 $as_echo "$ac_try_echo") >&5
14782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14783 ac_status=$?
14784 grep -v '^ *+' conftest.er1 >conftest.err
14785 rm -f conftest.er1
14786 cat conftest.err >&5
14787 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } >/dev/null && {
14789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14790 test ! -s conftest.err
14791 }; then
14792 ac_header_preproc=yes
14793 else
14794 $as_echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.$ac_ext >&5
14796
14797 ac_header_preproc=no
14798 fi
14799
14800 rm -f conftest.err conftest.$ac_ext
14801 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14802 $as_echo "$ac_header_preproc" >&6; }
14803
14804 # So? What about this header?
14805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14806 yes:no: )
14807 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14808 $as_echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14809 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14810 $as_echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14811 ac_header_preproc=yes
14812 ;;
14813 no:yes:* )
14814 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14815 $as_echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14816 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14817 $as_echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14818 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14819 $as_echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14820 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14821 $as_echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14822 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14823 $as_echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14824 { $as_echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14825 $as_echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14826
14827 ;;
14828 esac
14829 { $as_echo "$as_me:$LINENO: checking for jerror.h" >&5
14830 $as_echo_n "checking for jerror.h... " >&6; }
14831 if test "${ac_cv_header_jerror_h+set}" = set; then
14832 $as_echo_n "(cached) " >&6
14833 else
14834 ac_cv_header_jerror_h=$ac_header_preproc
14835 fi
14836 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14837 $as_echo "$ac_cv_header_jerror_h" >&6; }
14838
14839 fi
14840 if test $ac_cv_header_jerror_h = yes; then
14841 { $as_echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14842 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; } 9853 $as_echo_n "checking for jpeg_destroy_compress in -ljpeg... " >&6; }
14843 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then 9854 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then :
14844 $as_echo_n "(cached) " >&6 9855 $as_echo_n "(cached) " >&6
14845 else 9856 else
14846 ac_check_lib_save_LIBS=$LIBS 9857 ac_check_lib_save_LIBS=$LIBS
14847 LIBS="-ljpeg $LIBS" 9858 LIBS="-ljpeg $LIBS"
14848 cat >conftest.$ac_ext <<_ACEOF 9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14849 /* confdefs.h. */
14850 _ACEOF
14851 cat confdefs.h >>conftest.$ac_ext
14852 cat >>conftest.$ac_ext <<_ACEOF
14853 /* end confdefs.h. */ 9860 /* end confdefs.h. */
14854 9861
14855 /* Override any GCC internal prototype to avoid an error. 9862 /* Override any GCC internal prototype to avoid an error.
14856 Use char because int might match the return type of a GCC 9863 Use char because int might match the return type of a GCC
14857 builtin and then its argument prototype would still apply. */ 9864 builtin and then its argument prototype would still apply. */
14865 return jpeg_destroy_compress (); 9872 return jpeg_destroy_compress ();
14866 ; 9873 ;
14867 return 0; 9874 return 0;
14868 } 9875 }
14869 _ACEOF 9876 _ACEOF
14870 rm -f conftest.$ac_objext conftest$ac_exeext 9877 if ac_fn_c_try_link "$LINENO"; then :
14871 if { (ac_try="$ac_link"
14872 case "(($ac_try" in
14873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14874 *) ac_try_echo=$ac_try;;
14875 esac
14876 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14877 $as_echo "$ac_try_echo") >&5
14878 (eval "$ac_link") 2>conftest.er1
14879 ac_status=$?
14880 grep -v '^ *+' conftest.er1 >conftest.err
14881 rm -f conftest.er1
14882 cat conftest.err >&5
14883 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } && {
14885 test -z "$ac_c_werror_flag" ||
14886 test ! -s conftest.err
14887 } && test -s conftest$ac_exeext && {
14888 test "$cross_compiling" = yes ||
14889 $as_test_x conftest$ac_exeext
14890 }; then
14891 ac_cv_lib_jpeg_jpeg_destroy_compress=yes 9878 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14892 else 9879 else
14893 $as_echo "$as_me: failed program was:" >&5 9880 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14894 sed 's/^/| /' conftest.$ac_ext >&5 9881 fi
14895 9882 rm -f core conftest.err conftest.$ac_objext \
14896 ac_cv_lib_jpeg_jpeg_destroy_compress=no 9883 conftest$ac_exeext conftest.$ac_ext
14897 fi
14898
14899 rm -rf conftest.dSYM
14900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14901 conftest$ac_exeext conftest.$ac_ext
14902 LIBS=$ac_check_lib_save_LIBS 9884 LIBS=$ac_check_lib_save_LIBS
14903 fi 9885 fi
14904 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5 9886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14905 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; } 9887 $as_echo "$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14906 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then 9888 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = x""yes; then :
14907 HAVE_JPEG=yes 9889 HAVE_JPEG=yes
14908 fi 9890 fi
14909 9891
14910 fi 9892 fi
14911 9893
14912 9894
14913 fi 9895 fi
14914 9896
14915 9897 if test "${HAVE_JPEG}" = "yes"; then
14916 if test "${HAVE_JPEG}" = "yes"; then 9898 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
14917 cat >>confdefs.h <<\_ACEOF 9899
14918 #define HAVE_JPEG 1 9900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14919 _ACEOF
14920
14921 cat >conftest.$ac_ext <<_ACEOF
14922 /* confdefs.h. */
14923 _ACEOF
14924 cat confdefs.h >>conftest.$ac_ext
14925 cat >>conftest.$ac_ext <<_ACEOF
14926 /* end confdefs.h. */ 9901 /* end confdefs.h. */
14927 #include <jpeglib.h> 9902 #include <jpeglib.h>
14928 version=JPEG_LIB_VERSION 9903 version=JPEG_LIB_VERSION
14929 9904
14930 _ACEOF 9905 _ACEOF
14931 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9906 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14932 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then 9907 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then :
14933 cat >>confdefs.h <<\_ACEOF 9908 $as_echo "#define HAVE_JPEG 1" >>confdefs.h
14934 #define HAVE_JPEG 1 9909
14935 _ACEOF 9910 else
14936 9911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libjpeg found, but not version 6b or later" >&5
14937 else
14938 { $as_echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14939 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;} 9912 $as_echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14940 HAVE_JPEG=no 9913 HAVE_JPEG=no
14941 fi 9914 fi
14942 rm -f conftest* 9915 rm -f conftest*
14943 9916
14953 LIBPNG= 9926 LIBPNG=
14954 if test "${HAVE_X11}" = "yes"; then 9927 if test "${HAVE_X11}" = "yes"; then
14955 if test "${with_png}" != "no"; then 9928 if test "${with_png}" != "no"; then
14956 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h 9929 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14957 # in /usr/include/libpng. 9930 # in /usr/include/libpng.
14958 9931 for ac_header in png.h libpng/png.h
14959 9932 do :
14960 for ac_header in png.h libpng/png.h 9933 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14961 do 9934 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14962 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9935 eval as_val=\$$as_ac_Header
14963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 9936 if test "x$as_val" = x""yes; then :
14964 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
14965 $as_echo_n "checking for $ac_header... " >&6; }
14966 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14967 $as_echo_n "(cached) " >&6
14968 fi
14969 ac_res=`eval 'as_val=${'$as_ac_Header'}
14970 $as_echo "$as_val"'`
14971 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
14972 $as_echo "$ac_res" >&6; }
14973 else
14974 # Is the header compilable?
14975 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
14976 $as_echo_n "checking $ac_header usability... " >&6; }
14977 cat >conftest.$ac_ext <<_ACEOF
14978 /* confdefs.h. */
14979 _ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14983 $ac_includes_default
14984 #include <$ac_header>
14985 _ACEOF
14986 rm -f conftest.$ac_objext
14987 if { (ac_try="$ac_compile"
14988 case "(($ac_try" in
14989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14990 *) ac_try_echo=$ac_try;;
14991 esac
14992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
14993 $as_echo "$ac_try_echo") >&5
14994 (eval "$ac_compile") 2>conftest.er1
14995 ac_status=$?
14996 grep -v '^ *+' conftest.er1 >conftest.err
14997 rm -f conftest.er1
14998 cat conftest.err >&5
14999 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15000 (exit $ac_status); } && {
15001 test -z "$ac_c_werror_flag" ||
15002 test ! -s conftest.err
15003 } && test -s conftest.$ac_objext; then
15004 ac_header_compiler=yes
15005 else
15006 $as_echo "$as_me: failed program was:" >&5
15007 sed 's/^/| /' conftest.$ac_ext >&5
15008
15009 ac_header_compiler=no
15010 fi
15011
15012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15013 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15014 $as_echo "$ac_header_compiler" >&6; }
15015
15016 # Is the header present?
15017 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
15018 $as_echo_n "checking $ac_header presence... " >&6; }
15019 cat >conftest.$ac_ext <<_ACEOF
15020 /* confdefs.h. */
15021 _ACEOF
15022 cat confdefs.h >>conftest.$ac_ext
15023 cat >>conftest.$ac_ext <<_ACEOF
15024 /* end confdefs.h. */
15025 #include <$ac_header>
15026 _ACEOF
15027 if { (ac_try="$ac_cpp conftest.$ac_ext"
15028 case "(($ac_try" in
15029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15030 *) ac_try_echo=$ac_try;;
15031 esac
15032 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15033 $as_echo "$ac_try_echo") >&5
15034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15035 ac_status=$?
15036 grep -v '^ *+' conftest.er1 >conftest.err
15037 rm -f conftest.er1
15038 cat conftest.err >&5
15039 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15040 (exit $ac_status); } >/dev/null && {
15041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15042 test ! -s conftest.err
15043 }; then
15044 ac_header_preproc=yes
15045 else
15046 $as_echo "$as_me: failed program was:" >&5
15047 sed 's/^/| /' conftest.$ac_ext >&5
15048
15049 ac_header_preproc=no
15050 fi
15051
15052 rm -f conftest.err conftest.$ac_ext
15053 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15054 $as_echo "$ac_header_preproc" >&6; }
15055
15056 # So? What about this header?
15057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15058 yes:no: )
15059 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15060 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15061 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15062 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15063 ac_header_preproc=yes
15064 ;;
15065 no:yes:* )
15066 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15067 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15068 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15069 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15070 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15071 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15072 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15073 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15074 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15075 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15076 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15077 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15078
15079 ;;
15080 esac
15081 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
15082 $as_echo_n "checking for $ac_header... " >&6; }
15083 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15084 $as_echo_n "(cached) " >&6
15085 else
15086 eval "$as_ac_Header=\$ac_header_preproc"
15087 fi
15088 ac_res=`eval 'as_val=${'$as_ac_Header'}
15089 $as_echo "$as_val"'`
15090 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
15091 $as_echo "$ac_res" >&6; }
15092
15093 fi
15094 if test `eval 'as_val=${'$as_ac_Header'}
15095 $as_echo "$as_val"'` = yes; then
15096 cat >>confdefs.h <<_ACEOF 9937 cat >>confdefs.h <<_ACEOF
15097 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9938 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15098 _ACEOF 9939 _ACEOF
15099 9940
15100 fi 9941 fi
15101 9942
15102 done 9943 done
15103 9944
15104 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then 9945 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
15105 { $as_echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5 9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_channels in -lpng" >&5
15106 $as_echo_n "checking for png_get_channels in -lpng... " >&6; } 9947 $as_echo_n "checking for png_get_channels in -lpng... " >&6; }
15107 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then 9948 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then :
15108 $as_echo_n "(cached) " >&6 9949 $as_echo_n "(cached) " >&6
15109 else 9950 else
15110 ac_check_lib_save_LIBS=$LIBS 9951 ac_check_lib_save_LIBS=$LIBS
15111 LIBS="-lpng -lz -lm $LIBS" 9952 LIBS="-lpng -lz -lm $LIBS"
15112 cat >conftest.$ac_ext <<_ACEOF 9953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15113 /* confdefs.h. */
15114 _ACEOF
15115 cat confdefs.h >>conftest.$ac_ext
15116 cat >>conftest.$ac_ext <<_ACEOF
15117 /* end confdefs.h. */ 9954 /* end confdefs.h. */
15118 9955
15119 /* Override any GCC internal prototype to avoid an error. 9956 /* Override any GCC internal prototype to avoid an error.
15120 Use char because int might match the return type of a GCC 9957 Use char because int might match the return type of a GCC
15121 builtin and then its argument prototype would still apply. */ 9958 builtin and then its argument prototype would still apply. */
15129 return png_get_channels (); 9966 return png_get_channels ();
15130 ; 9967 ;
15131 return 0; 9968 return 0;
15132 } 9969 }
15133 _ACEOF 9970 _ACEOF
15134 rm -f conftest.$ac_objext conftest$ac_exeext 9971 if ac_fn_c_try_link "$LINENO"; then :
15135 if { (ac_try="$ac_link"
15136 case "(($ac_try" in
15137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15138 *) ac_try_echo=$ac_try;;
15139 esac
15140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15141 $as_echo "$ac_try_echo") >&5
15142 (eval "$ac_link") 2>conftest.er1
15143 ac_status=$?
15144 grep -v '^ *+' conftest.er1 >conftest.err
15145 rm -f conftest.er1
15146 cat conftest.err >&5
15147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15148 (exit $ac_status); } && {
15149 test -z "$ac_c_werror_flag" ||
15150 test ! -s conftest.err
15151 } && test -s conftest$ac_exeext && {
15152 test "$cross_compiling" = yes ||
15153 $as_test_x conftest$ac_exeext
15154 }; then
15155 ac_cv_lib_png_png_get_channels=yes 9972 ac_cv_lib_png_png_get_channels=yes
15156 else 9973 else
15157 $as_echo "$as_me: failed program was:" >&5 9974 ac_cv_lib_png_png_get_channels=no
15158 sed 's/^/| /' conftest.$ac_ext >&5 9975 fi
15159 9976 rm -f core conftest.err conftest.$ac_objext \
15160 ac_cv_lib_png_png_get_channels=no 9977 conftest$ac_exeext conftest.$ac_ext
15161 fi
15162
15163 rm -rf conftest.dSYM
15164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15165 conftest$ac_exeext conftest.$ac_ext
15166 LIBS=$ac_check_lib_save_LIBS 9978 LIBS=$ac_check_lib_save_LIBS
15167 fi 9979 fi
15168 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5 9980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_channels" >&5
15169 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; } 9981 $as_echo "$ac_cv_lib_png_png_get_channels" >&6; }
15170 if test $ac_cv_lib_png_png_get_channels = yes; then 9982 if test "x$ac_cv_lib_png_png_get_channels" = x""yes; then :
15171 HAVE_PNG=yes 9983 HAVE_PNG=yes
15172 fi 9984 fi
15173 9985
15174 fi 9986 fi
15175 fi 9987 fi
15176 9988
15177 if test "${HAVE_PNG}" = "yes"; then 9989 if test "${HAVE_PNG}" = "yes"; then
15178 9990
15179 cat >>confdefs.h <<\_ACEOF 9991 $as_echo "#define HAVE_PNG 1" >>confdefs.h
15180 #define HAVE_PNG 1
15181 _ACEOF
15182 9992
15183 LIBPNG="-lpng -lz -lm" 9993 LIBPNG="-lpng -lz -lm"
15184 fi 9994 fi
15185 fi 9995 fi
15186 9996
15188 ### Use -ltiff if available, unless `--with-tiff=no'. 9998 ### Use -ltiff if available, unless `--with-tiff=no'.
15189 HAVE_TIFF=no 9999 HAVE_TIFF=no
15190 LIBTIFF= 10000 LIBTIFF=
15191 if test "${HAVE_X11}" = "yes"; then 10001 if test "${HAVE_X11}" = "yes"; then
15192 if test "${with_tiff}" != "no"; then 10002 if test "${with_tiff}" != "no"; then
15193 if test "${ac_cv_header_tiffio_h+set}" = set; then 10003 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
15194 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5 10004 if test "x$ac_cv_header_tiffio_h" = x""yes; then :
15195 $as_echo_n "checking for tiffio.h... " >&6; }
15196 if test "${ac_cv_header_tiffio_h+set}" = set; then
15197 $as_echo_n "(cached) " >&6
15198 fi
15199 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15200 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15201 else
15202 # Is the header compilable?
15203 { $as_echo "$as_me:$LINENO: checking tiffio.h usability" >&5
15204 $as_echo_n "checking tiffio.h usability... " >&6; }
15205 cat >conftest.$ac_ext <<_ACEOF
15206 /* confdefs.h. */
15207 _ACEOF
15208 cat confdefs.h >>conftest.$ac_ext
15209 cat >>conftest.$ac_ext <<_ACEOF
15210 /* end confdefs.h. */
15211 $ac_includes_default
15212 #include <tiffio.h>
15213 _ACEOF
15214 rm -f conftest.$ac_objext
15215 if { (ac_try="$ac_compile"
15216 case "(($ac_try" in
15217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15218 *) ac_try_echo=$ac_try;;
15219 esac
15220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15221 $as_echo "$ac_try_echo") >&5
15222 (eval "$ac_compile") 2>conftest.er1
15223 ac_status=$?
15224 grep -v '^ *+' conftest.er1 >conftest.err
15225 rm -f conftest.er1
15226 cat conftest.err >&5
15227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15228 (exit $ac_status); } && {
15229 test -z "$ac_c_werror_flag" ||
15230 test ! -s conftest.err
15231 } && test -s conftest.$ac_objext; then
15232 ac_header_compiler=yes
15233 else
15234 $as_echo "$as_me: failed program was:" >&5
15235 sed 's/^/| /' conftest.$ac_ext >&5
15236
15237 ac_header_compiler=no
15238 fi
15239
15240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15241 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15242 $as_echo "$ac_header_compiler" >&6; }
15243
15244 # Is the header present?
15245 { $as_echo "$as_me:$LINENO: checking tiffio.h presence" >&5
15246 $as_echo_n "checking tiffio.h presence... " >&6; }
15247 cat >conftest.$ac_ext <<_ACEOF
15248 /* confdefs.h. */
15249 _ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15253 #include <tiffio.h>
15254 _ACEOF
15255 if { (ac_try="$ac_cpp conftest.$ac_ext"
15256 case "(($ac_try" in
15257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15258 *) ac_try_echo=$ac_try;;
15259 esac
15260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15261 $as_echo "$ac_try_echo") >&5
15262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15263 ac_status=$?
15264 grep -v '^ *+' conftest.er1 >conftest.err
15265 rm -f conftest.er1
15266 cat conftest.err >&5
15267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } >/dev/null && {
15269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15270 test ! -s conftest.err
15271 }; then
15272 ac_header_preproc=yes
15273 else
15274 $as_echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15276
15277 ac_header_preproc=no
15278 fi
15279
15280 rm -f conftest.err conftest.$ac_ext
15281 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15282 $as_echo "$ac_header_preproc" >&6; }
15283
15284 # So? What about this header?
15285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15286 yes:no: )
15287 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
15288 $as_echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15289 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
15290 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
15291 ac_header_preproc=yes
15292 ;;
15293 no:yes:* )
15294 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
15295 $as_echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
15296 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
15297 $as_echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
15298 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
15299 $as_echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
15300 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
15301 $as_echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
15302 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
15303 $as_echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
15304 { $as_echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
15305 $as_echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
15306
15307 ;;
15308 esac
15309 { $as_echo "$as_me:$LINENO: checking for tiffio.h" >&5
15310 $as_echo_n "checking for tiffio.h... " >&6; }
15311 if test "${ac_cv_header_tiffio_h+set}" = set; then
15312 $as_echo_n "(cached) " >&6
15313 else
15314 ac_cv_header_tiffio_h=$ac_header_preproc
15315 fi
15316 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
15317 $as_echo "$ac_cv_header_tiffio_h" >&6; }
15318
15319 fi
15320 if test $ac_cv_header_tiffio_h = yes; then
15321 tifflibs="-lz -lm" 10005 tifflibs="-lz -lm"
15322 # At least one tiff package requires the jpeg library. 10006 # At least one tiff package requires the jpeg library.
15323 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi 10007 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
15324 { $as_echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5 10008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFGetVersion in -ltiff" >&5
15325 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; } 10009 $as_echo_n "checking for TIFFGetVersion in -ltiff... " >&6; }
15326 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then 10010 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then :
15327 $as_echo_n "(cached) " >&6 10011 $as_echo_n "(cached) " >&6
15328 else 10012 else
15329 ac_check_lib_save_LIBS=$LIBS 10013 ac_check_lib_save_LIBS=$LIBS
15330 LIBS="-ltiff $tifflibs $LIBS" 10014 LIBS="-ltiff $tifflibs $LIBS"
15331 cat >conftest.$ac_ext <<_ACEOF 10015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15332 /* confdefs.h. */
15333 _ACEOF
15334 cat confdefs.h >>conftest.$ac_ext
15335 cat >>conftest.$ac_ext <<_ACEOF
15336 /* end confdefs.h. */ 10016 /* end confdefs.h. */
15337 10017
15338 /* Override any GCC internal prototype to avoid an error. 10018 /* Override any GCC internal prototype to avoid an error.
15339 Use char because int might match the return type of a GCC 10019 Use char because int might match the return type of a GCC
15340 builtin and then its argument prototype would still apply. */ 10020 builtin and then its argument prototype would still apply. */
15348 return TIFFGetVersion (); 10028 return TIFFGetVersion ();
15349 ; 10029 ;
15350 return 0; 10030 return 0;
15351 } 10031 }
15352 _ACEOF 10032 _ACEOF
15353 rm -f conftest.$ac_objext conftest$ac_exeext 10033 if ac_fn_c_try_link "$LINENO"; then :
15354 if { (ac_try="$ac_link"
15355 case "(($ac_try" in
15356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15357 *) ac_try_echo=$ac_try;;
15358 esac
15359 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15360 $as_echo "$ac_try_echo") >&5
15361 (eval "$ac_link") 2>conftest.er1
15362 ac_status=$?
15363 grep -v '^ *+' conftest.er1 >conftest.err
15364 rm -f conftest.er1
15365 cat conftest.err >&5
15366 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15367 (exit $ac_status); } && {
15368 test -z "$ac_c_werror_flag" ||
15369 test ! -s conftest.err
15370 } && test -s conftest$ac_exeext && {
15371 test "$cross_compiling" = yes ||
15372 $as_test_x conftest$ac_exeext
15373 }; then
15374 ac_cv_lib_tiff_TIFFGetVersion=yes 10034 ac_cv_lib_tiff_TIFFGetVersion=yes
15375 else 10035 else
15376 $as_echo "$as_me: failed program was:" >&5 10036 ac_cv_lib_tiff_TIFFGetVersion=no
15377 sed 's/^/| /' conftest.$ac_ext >&5 10037 fi
15378 10038 rm -f core conftest.err conftest.$ac_objext \
15379 ac_cv_lib_tiff_TIFFGetVersion=no 10039 conftest$ac_exeext conftest.$ac_ext
15380 fi
15381
15382 rm -rf conftest.dSYM
15383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15384 conftest$ac_exeext conftest.$ac_ext
15385 LIBS=$ac_check_lib_save_LIBS 10040 LIBS=$ac_check_lib_save_LIBS
15386 fi 10041 fi
15387 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5 10042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
15388 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; } 10043 $as_echo "$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
15389 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then 10044 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = x""yes; then :
15390 HAVE_TIFF=yes 10045 HAVE_TIFF=yes
15391 fi 10046 fi
15392 10047
15393 fi 10048 fi
15394 10049
15395 10050
15396 fi 10051 fi
15397 10052
15398 if test "${HAVE_TIFF}" = "yes"; then 10053 if test "${HAVE_TIFF}" = "yes"; then
15399 10054
15400 cat >>confdefs.h <<\_ACEOF 10055 $as_echo "#define HAVE_TIFF 1" >>confdefs.h
15401 #define HAVE_TIFF 1
15402 _ACEOF
15403 10056
15404 LIBTIFF=-ltiff 10057 LIBTIFF=-ltiff
15405 fi 10058 fi
15406 fi 10059 fi
15407 10060
15408 10061
15409 ### Use -lgif or -lungif if available, unless `--with-gif=no'. 10062 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
15410 HAVE_GIF=no 10063 HAVE_GIF=no
15411 LIBGIF= 10064 LIBGIF=
15412 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then 10065 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
15413 if test "${ac_cv_header_gif_lib_h+set}" = set; then 10066 ac_fn_c_check_header_mongrel "$LINENO" "gif_lib.h" "ac_cv_header_gif_lib_h" "$ac_includes_default"
15414 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5 10067 if test "x$ac_cv_header_gif_lib_h" = x""yes; then :
15415 $as_echo_n "checking for gif_lib.h... " >&6; }
15416 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15417 $as_echo_n "(cached) " >&6
15418 fi
15419 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15420 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15421 else
15422 # Is the header compilable?
15423 { $as_echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
15424 $as_echo_n "checking gif_lib.h usability... " >&6; }
15425 cat >conftest.$ac_ext <<_ACEOF
15426 /* confdefs.h. */
15427 _ACEOF
15428 cat confdefs.h >>conftest.$ac_ext
15429 cat >>conftest.$ac_ext <<_ACEOF
15430 /* end confdefs.h. */
15431 $ac_includes_default
15432 #include <gif_lib.h>
15433 _ACEOF
15434 rm -f conftest.$ac_objext
15435 if { (ac_try="$ac_compile"
15436 case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15439 esac
15440 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15441 $as_echo "$ac_try_echo") >&5
15442 (eval "$ac_compile") 2>conftest.er1
15443 ac_status=$?
15444 grep -v '^ *+' conftest.er1 >conftest.err
15445 rm -f conftest.er1
15446 cat conftest.err >&5
15447 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); } && {
15449 test -z "$ac_c_werror_flag" ||
15450 test ! -s conftest.err
15451 } && test -s conftest.$ac_objext; then
15452 ac_header_compiler=yes
15453 else
15454 $as_echo "$as_me: failed program was:" >&5
15455 sed 's/^/| /' conftest.$ac_ext >&5
15456
15457 ac_header_compiler=no
15458 fi
15459
15460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15461 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15462 $as_echo "$ac_header_compiler" >&6; }
15463
15464 # Is the header present?
15465 { $as_echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
15466 $as_echo_n "checking gif_lib.h presence... " >&6; }
15467 cat >conftest.$ac_ext <<_ACEOF
15468 /* confdefs.h. */
15469 _ACEOF
15470 cat confdefs.h >>conftest.$ac_ext
15471 cat >>conftest.$ac_ext <<_ACEOF
15472 /* end confdefs.h. */
15473 #include <gif_lib.h>
15474 _ACEOF
15475 if { (ac_try="$ac_cpp conftest.$ac_ext"
15476 case "(($ac_try" in
15477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15478 *) ac_try_echo=$ac_try;;
15479 esac
15480 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15481 $as_echo "$ac_try_echo") >&5
15482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15483 ac_status=$?
15484 grep -v '^ *+' conftest.er1 >conftest.err
15485 rm -f conftest.er1
15486 cat conftest.err >&5
15487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15488 (exit $ac_status); } >/dev/null && {
15489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15490 test ! -s conftest.err
15491 }; then
15492 ac_header_preproc=yes
15493 else
15494 $as_echo "$as_me: failed program was:" >&5
15495 sed 's/^/| /' conftest.$ac_ext >&5
15496
15497 ac_header_preproc=no
15498 fi
15499
15500 rm -f conftest.err conftest.$ac_ext
15501 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15502 $as_echo "$ac_header_preproc" >&6; }
15503
15504 # So? What about this header?
15505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15506 yes:no: )
15507 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15508 $as_echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15509 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15510 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15511 ac_header_preproc=yes
15512 ;;
15513 no:yes:* )
15514 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15515 $as_echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15516 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15517 $as_echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15518 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15519 $as_echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15520 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15521 $as_echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15522 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15523 $as_echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15524 { $as_echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15525 $as_echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15526
15527 ;;
15528 esac
15529 { $as_echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15530 $as_echo_n "checking for gif_lib.h... " >&6; }
15531 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15532 $as_echo_n "(cached) " >&6
15533 else
15534 ac_cv_header_gif_lib_h=$ac_header_preproc
15535 fi
15536 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15537 $as_echo "$ac_cv_header_gif_lib_h" >&6; }
15538
15539 fi
15540 if test $ac_cv_header_gif_lib_h = yes; then
15541 # EGifPutExtensionLast only exists from version libungif-4.1.0b1. 10068 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15542 # Earlier versions can crash Emacs. 10069 # Earlier versions can crash Emacs.
15543 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5 10070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lgif" >&5
15544 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; } 10071 $as_echo_n "checking for EGifPutExtensionLast in -lgif... " >&6; }
15545 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then 10072 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then :
15546 $as_echo_n "(cached) " >&6 10073 $as_echo_n "(cached) " >&6
15547 else 10074 else
15548 ac_check_lib_save_LIBS=$LIBS 10075 ac_check_lib_save_LIBS=$LIBS
15549 LIBS="-lgif $LIBS" 10076 LIBS="-lgif $LIBS"
15550 cat >conftest.$ac_ext <<_ACEOF 10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15551 /* confdefs.h. */
15552 _ACEOF
15553 cat confdefs.h >>conftest.$ac_ext
15554 cat >>conftest.$ac_ext <<_ACEOF
15555 /* end confdefs.h. */ 10078 /* end confdefs.h. */
15556 10079
15557 /* Override any GCC internal prototype to avoid an error. 10080 /* Override any GCC internal prototype to avoid an error.
15558 Use char because int might match the return type of a GCC 10081 Use char because int might match the return type of a GCC
15559 builtin and then its argument prototype would still apply. */ 10082 builtin and then its argument prototype would still apply. */
15567 return EGifPutExtensionLast (); 10090 return EGifPutExtensionLast ();
15568 ; 10091 ;
15569 return 0; 10092 return 0;
15570 } 10093 }
15571 _ACEOF 10094 _ACEOF
15572 rm -f conftest.$ac_objext conftest$ac_exeext 10095 if ac_fn_c_try_link "$LINENO"; then :
15573 if { (ac_try="$ac_link"
15574 case "(($ac_try" in
15575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15576 *) ac_try_echo=$ac_try;;
15577 esac
15578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15579 $as_echo "$ac_try_echo") >&5
15580 (eval "$ac_link") 2>conftest.er1
15581 ac_status=$?
15582 grep -v '^ *+' conftest.er1 >conftest.err
15583 rm -f conftest.er1
15584 cat conftest.err >&5
15585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15586 (exit $ac_status); } && {
15587 test -z "$ac_c_werror_flag" ||
15588 test ! -s conftest.err
15589 } && test -s conftest$ac_exeext && {
15590 test "$cross_compiling" = yes ||
15591 $as_test_x conftest$ac_exeext
15592 }; then
15593 ac_cv_lib_gif_EGifPutExtensionLast=yes 10096 ac_cv_lib_gif_EGifPutExtensionLast=yes
15594 else 10097 else
15595 $as_echo "$as_me: failed program was:" >&5 10098 ac_cv_lib_gif_EGifPutExtensionLast=no
15596 sed 's/^/| /' conftest.$ac_ext >&5 10099 fi
15597 10100 rm -f core conftest.err conftest.$ac_objext \
15598 ac_cv_lib_gif_EGifPutExtensionLast=no 10101 conftest$ac_exeext conftest.$ac_ext
15599 fi
15600
15601 rm -rf conftest.dSYM
15602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15603 conftest$ac_exeext conftest.$ac_ext
15604 LIBS=$ac_check_lib_save_LIBS 10102 LIBS=$ac_check_lib_save_LIBS
15605 fi 10103 fi
15606 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5 10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
15607 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; } 10105 $as_echo "$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
15608 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then 10106 if test "x$ac_cv_lib_gif_EGifPutExtensionLast" = x""yes; then :
15609 HAVE_GIF=yes 10107 HAVE_GIF=yes
15610 else 10108 else
15611 HAVE_GIF=maybe 10109 HAVE_GIF=maybe
15612 fi 10110 fi
15613 10111
15617 10115
15618 if test "$HAVE_GIF" = yes; then 10116 if test "$HAVE_GIF" = yes; then
15619 LIBGIF=-lgif 10117 LIBGIF=-lgif
15620 elif test "$HAVE_GIF" = maybe; then 10118 elif test "$HAVE_GIF" = maybe; then
15621 # If gif_lib.h but no libgif, try libungif. 10119 # If gif_lib.h but no libgif, try libungif.
15622 { $as_echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5 10120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for EGifPutExtensionLast in -lungif" >&5
15623 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; } 10121 $as_echo_n "checking for EGifPutExtensionLast in -lungif... " >&6; }
15624 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then 10122 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then :
15625 $as_echo_n "(cached) " >&6 10123 $as_echo_n "(cached) " >&6
15626 else 10124 else
15627 ac_check_lib_save_LIBS=$LIBS 10125 ac_check_lib_save_LIBS=$LIBS
15628 LIBS="-lungif $LIBS" 10126 LIBS="-lungif $LIBS"
15629 cat >conftest.$ac_ext <<_ACEOF 10127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15630 /* confdefs.h. */
15631 _ACEOF
15632 cat confdefs.h >>conftest.$ac_ext
15633 cat >>conftest.$ac_ext <<_ACEOF
15634 /* end confdefs.h. */ 10128 /* end confdefs.h. */
15635 10129
15636 /* Override any GCC internal prototype to avoid an error. 10130 /* Override any GCC internal prototype to avoid an error.
15637 Use char because int might match the return type of a GCC 10131 Use char because int might match the return type of a GCC
15638 builtin and then its argument prototype would still apply. */ 10132 builtin and then its argument prototype would still apply. */
15646 return EGifPutExtensionLast (); 10140 return EGifPutExtensionLast ();
15647 ; 10141 ;
15648 return 0; 10142 return 0;
15649 } 10143 }
15650 _ACEOF 10144 _ACEOF
15651 rm -f conftest.$ac_objext conftest$ac_exeext 10145 if ac_fn_c_try_link "$LINENO"; then :
15652 if { (ac_try="$ac_link"
15653 case "(($ac_try" in
15654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15655 *) ac_try_echo=$ac_try;;
15656 esac
15657 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15658 $as_echo "$ac_try_echo") >&5
15659 (eval "$ac_link") 2>conftest.er1
15660 ac_status=$?
15661 grep -v '^ *+' conftest.er1 >conftest.err
15662 rm -f conftest.er1
15663 cat conftest.err >&5
15664 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } && {
15666 test -z "$ac_c_werror_flag" ||
15667 test ! -s conftest.err
15668 } && test -s conftest$ac_exeext && {
15669 test "$cross_compiling" = yes ||
15670 $as_test_x conftest$ac_exeext
15671 }; then
15672 ac_cv_lib_ungif_EGifPutExtensionLast=yes 10146 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15673 else 10147 else
15674 $as_echo "$as_me: failed program was:" >&5 10148 ac_cv_lib_ungif_EGifPutExtensionLast=no
15675 sed 's/^/| /' conftest.$ac_ext >&5 10149 fi
15676 10150 rm -f core conftest.err conftest.$ac_objext \
15677 ac_cv_lib_ungif_EGifPutExtensionLast=no 10151 conftest$ac_exeext conftest.$ac_ext
15678 fi
15679
15680 rm -rf conftest.dSYM
15681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15682 conftest$ac_exeext conftest.$ac_ext
15683 LIBS=$ac_check_lib_save_LIBS 10152 LIBS=$ac_check_lib_save_LIBS
15684 fi 10153 fi
15685 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5 10154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15686 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; } 10155 $as_echo "$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15687 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then 10156 if test "x$ac_cv_lib_ungif_EGifPutExtensionLast" = x""yes; then :
15688 HAVE_GIF=yes 10157 HAVE_GIF=yes
15689 else 10158 else
15690 HAVE_GIF=no 10159 HAVE_GIF=no
15691 fi 10160 fi
15692 10161
15693 test "$HAVE_GIF" = yes && LIBGIF=-lungif 10162 test "$HAVE_GIF" = yes && LIBGIF=-lungif
15694 fi 10163 fi
15695 10164
15696 if test "${HAVE_GIF}" = "yes"; then 10165 if test "${HAVE_GIF}" = "yes"; then
15697 10166
15698 cat >>confdefs.h <<\_ACEOF 10167 $as_echo "#define HAVE_GIF 1" >>confdefs.h
15699 #define HAVE_GIF 1
15700 _ACEOF
15701 10168
15702 fi 10169 fi
15703 fi 10170 fi
15704 10171
15705 10172
15716 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no" 10183 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
15717 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" && 10184 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
15718 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no" 10185 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
15719 10186
15720 if test "X${MISSING}" != X; then 10187 if test "X${MISSING}" != X; then
15721 { { $as_echo "$as_me:$LINENO: error: The following required libraries were not found: 10188 as_fn_error "The following required libraries were not found:
15722 $MISSING 10189 $MISSING
15723 Maybe some development libraries/packages are missing? 10190 Maybe some development libraries/packages are missing?
15724 If you don't want to link with them give 10191 If you don't want to link with them give
15725 $WITH_NO 10192 $WITH_NO
15726 as options to configure" >&5 10193 as options to configure" "$LINENO" 5
15727 $as_echo "$as_me: error: The following required libraries were not found:
15728 $MISSING
15729 Maybe some development libraries/packages are missing?
15730 If you don't want to link with them give
15731 $WITH_NO
15732 as options to configure" >&2;}
15733 { (exit 1); exit 1; }; }
15734 fi 10194 fi
15735 fi 10195 fi
15736 10196
15737 ### Use -lgpm if available, unless `--with-gpm=no'. 10197 ### Use -lgpm if available, unless `--with-gpm=no'.
15738 HAVE_GPM=no 10198 HAVE_GPM=no
15739 LIBGPM= 10199 LIBGPM=
15740 if test "${with_gpm}" != "no"; then 10200 if test "${with_gpm}" != "no"; then
15741 if test "${ac_cv_header_gpm_h+set}" = set; then 10201 ac_fn_c_check_header_mongrel "$LINENO" "gpm.h" "ac_cv_header_gpm_h" "$ac_includes_default"
15742 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5 10202 if test "x$ac_cv_header_gpm_h" = x""yes; then :
15743 $as_echo_n "checking for gpm.h... " >&6; } 10203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Gpm_Open in -lgpm" >&5
15744 if test "${ac_cv_header_gpm_h+set}" = set; then
15745 $as_echo_n "(cached) " >&6
15746 fi
15747 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15748 $as_echo "$ac_cv_header_gpm_h" >&6; }
15749 else
15750 # Is the header compilable?
15751 { $as_echo "$as_me:$LINENO: checking gpm.h usability" >&5
15752 $as_echo_n "checking gpm.h usability... " >&6; }
15753 cat >conftest.$ac_ext <<_ACEOF
15754 /* confdefs.h. */
15755 _ACEOF
15756 cat confdefs.h >>conftest.$ac_ext
15757 cat >>conftest.$ac_ext <<_ACEOF
15758 /* end confdefs.h. */
15759 $ac_includes_default
15760 #include <gpm.h>
15761 _ACEOF
15762 rm -f conftest.$ac_objext
15763 if { (ac_try="$ac_compile"
15764 case "(($ac_try" in
15765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15766 *) ac_try_echo=$ac_try;;
15767 esac
15768 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15769 $as_echo "$ac_try_echo") >&5
15770 (eval "$ac_compile") 2>conftest.er1
15771 ac_status=$?
15772 grep -v '^ *+' conftest.er1 >conftest.err
15773 rm -f conftest.er1
15774 cat conftest.err >&5
15775 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15776 (exit $ac_status); } && {
15777 test -z "$ac_c_werror_flag" ||
15778 test ! -s conftest.err
15779 } && test -s conftest.$ac_objext; then
15780 ac_header_compiler=yes
15781 else
15782 $as_echo "$as_me: failed program was:" >&5
15783 sed 's/^/| /' conftest.$ac_ext >&5
15784
15785 ac_header_compiler=no
15786 fi
15787
15788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15789 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15790 $as_echo "$ac_header_compiler" >&6; }
15791
15792 # Is the header present?
15793 { $as_echo "$as_me:$LINENO: checking gpm.h presence" >&5
15794 $as_echo_n "checking gpm.h presence... " >&6; }
15795 cat >conftest.$ac_ext <<_ACEOF
15796 /* confdefs.h. */
15797 _ACEOF
15798 cat confdefs.h >>conftest.$ac_ext
15799 cat >>conftest.$ac_ext <<_ACEOF
15800 /* end confdefs.h. */
15801 #include <gpm.h>
15802 _ACEOF
15803 if { (ac_try="$ac_cpp conftest.$ac_ext"
15804 case "(($ac_try" in
15805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15806 *) ac_try_echo=$ac_try;;
15807 esac
15808 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15809 $as_echo "$ac_try_echo") >&5
15810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15811 ac_status=$?
15812 grep -v '^ *+' conftest.er1 >conftest.err
15813 rm -f conftest.er1
15814 cat conftest.err >&5
15815 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15816 (exit $ac_status); } >/dev/null && {
15817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15818 test ! -s conftest.err
15819 }; then
15820 ac_header_preproc=yes
15821 else
15822 $as_echo "$as_me: failed program was:" >&5
15823 sed 's/^/| /' conftest.$ac_ext >&5
15824
15825 ac_header_preproc=no
15826 fi
15827
15828 rm -f conftest.err conftest.$ac_ext
15829 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15830 $as_echo "$ac_header_preproc" >&6; }
15831
15832 # So? What about this header?
15833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15834 yes:no: )
15835 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
15836 $as_echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15837 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
15838 $as_echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
15839 ac_header_preproc=yes
15840 ;;
15841 no:yes:* )
15842 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
15843 $as_echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
15844 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
15845 $as_echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
15846 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
15847 $as_echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
15848 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
15849 $as_echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
15850 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
15851 $as_echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
15852 { $as_echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
15853 $as_echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
15854
15855 ;;
15856 esac
15857 { $as_echo "$as_me:$LINENO: checking for gpm.h" >&5
15858 $as_echo_n "checking for gpm.h... " >&6; }
15859 if test "${ac_cv_header_gpm_h+set}" = set; then
15860 $as_echo_n "(cached) " >&6
15861 else
15862 ac_cv_header_gpm_h=$ac_header_preproc
15863 fi
15864 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
15865 $as_echo "$ac_cv_header_gpm_h" >&6; }
15866
15867 fi
15868 if test $ac_cv_header_gpm_h = yes; then
15869 { $as_echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
15870 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; } 10204 $as_echo_n "checking for Gpm_Open in -lgpm... " >&6; }
15871 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then 10205 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then :
15872 $as_echo_n "(cached) " >&6 10206 $as_echo_n "(cached) " >&6
15873 else 10207 else
15874 ac_check_lib_save_LIBS=$LIBS 10208 ac_check_lib_save_LIBS=$LIBS
15875 LIBS="-lgpm $LIBS" 10209 LIBS="-lgpm $LIBS"
15876 cat >conftest.$ac_ext <<_ACEOF 10210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* confdefs.h. */
15878 _ACEOF
15879 cat confdefs.h >>conftest.$ac_ext
15880 cat >>conftest.$ac_ext <<_ACEOF
15881 /* end confdefs.h. */ 10211 /* end confdefs.h. */
15882 10212
15883 /* Override any GCC internal prototype to avoid an error. 10213 /* Override any GCC internal prototype to avoid an error.
15884 Use char because int might match the return type of a GCC 10214 Use char because int might match the return type of a GCC
15885 builtin and then its argument prototype would still apply. */ 10215 builtin and then its argument prototype would still apply. */
15893 return Gpm_Open (); 10223 return Gpm_Open ();
15894 ; 10224 ;
15895 return 0; 10225 return 0;
15896 } 10226 }
15897 _ACEOF 10227 _ACEOF
15898 rm -f conftest.$ac_objext conftest$ac_exeext 10228 if ac_fn_c_try_link "$LINENO"; then :
15899 if { (ac_try="$ac_link"
15900 case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903 esac
15904 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15905 $as_echo "$ac_try_echo") >&5
15906 (eval "$ac_link") 2>conftest.er1
15907 ac_status=$?
15908 grep -v '^ *+' conftest.er1 >conftest.err
15909 rm -f conftest.er1
15910 cat conftest.err >&5
15911 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15912 (exit $ac_status); } && {
15913 test -z "$ac_c_werror_flag" ||
15914 test ! -s conftest.err
15915 } && test -s conftest$ac_exeext && {
15916 test "$cross_compiling" = yes ||
15917 $as_test_x conftest$ac_exeext
15918 }; then
15919 ac_cv_lib_gpm_Gpm_Open=yes 10229 ac_cv_lib_gpm_Gpm_Open=yes
15920 else 10230 else
15921 $as_echo "$as_me: failed program was:" >&5 10231 ac_cv_lib_gpm_Gpm_Open=no
15922 sed 's/^/| /' conftest.$ac_ext >&5 10232 fi
15923 10233 rm -f core conftest.err conftest.$ac_objext \
15924 ac_cv_lib_gpm_Gpm_Open=no 10234 conftest$ac_exeext conftest.$ac_ext
15925 fi
15926
15927 rm -rf conftest.dSYM
15928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15929 conftest$ac_exeext conftest.$ac_ext
15930 LIBS=$ac_check_lib_save_LIBS 10235 LIBS=$ac_check_lib_save_LIBS
15931 fi 10236 fi
15932 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5 10237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gpm_Gpm_Open" >&5
15933 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; } 10238 $as_echo "$ac_cv_lib_gpm_Gpm_Open" >&6; }
15934 if test $ac_cv_lib_gpm_Gpm_Open = yes; then 10239 if test "x$ac_cv_lib_gpm_Gpm_Open" = x""yes; then :
15935 HAVE_GPM=yes 10240 HAVE_GPM=yes
15936 fi 10241 fi
15937 10242
15938 fi 10243 fi
15939 10244
15940 10245
15941 10246
15942 if test "${HAVE_GPM}" = "yes"; then 10247 if test "${HAVE_GPM}" = "yes"; then
15943 10248
15944 cat >>confdefs.h <<\_ACEOF 10249 $as_echo "#define HAVE_GPM 1" >>confdefs.h
15945 #define HAVE_GPM 1
15946 _ACEOF
15947 10250
15948 LIBGPM=-lgpm 10251 LIBGPM=-lgpm
15949 fi 10252 fi
15950 fi 10253 fi
15951 10254
15952 10255
15953 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then 10256 ac_fn_c_check_header_mongrel "$LINENO" "malloc/malloc.h" "ac_cv_header_malloc_malloc_h" "$ac_includes_default"
15954 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5 10257 if test "x$ac_cv_header_malloc_malloc_h" = x""yes; then :
15955 $as_echo_n "checking for malloc/malloc.h... " >&6; } 10258
15956 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then 10259 $as_echo "#define HAVE_MALLOC_MALLOC_H 1" >>confdefs.h
15957 $as_echo_n "(cached) " >&6
15958 fi
15959 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15960 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
15961 else
15962 # Is the header compilable?
15963 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15964 $as_echo_n "checking malloc/malloc.h usability... " >&6; }
15965 cat >conftest.$ac_ext <<_ACEOF
15966 /* confdefs.h. */
15967 _ACEOF
15968 cat confdefs.h >>conftest.$ac_ext
15969 cat >>conftest.$ac_ext <<_ACEOF
15970 /* end confdefs.h. */
15971 $ac_includes_default
15972 #include <malloc/malloc.h>
15973 _ACEOF
15974 rm -f conftest.$ac_objext
15975 if { (ac_try="$ac_compile"
15976 case "(($ac_try" in
15977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15978 *) ac_try_echo=$ac_try;;
15979 esac
15980 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15981 $as_echo "$ac_try_echo") >&5
15982 (eval "$ac_compile") 2>conftest.er1
15983 ac_status=$?
15984 grep -v '^ *+' conftest.er1 >conftest.err
15985 rm -f conftest.er1
15986 cat conftest.err >&5
15987 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15988 (exit $ac_status); } && {
15989 test -z "$ac_c_werror_flag" ||
15990 test ! -s conftest.err
15991 } && test -s conftest.$ac_objext; then
15992 ac_header_compiler=yes
15993 else
15994 $as_echo "$as_me: failed program was:" >&5
15995 sed 's/^/| /' conftest.$ac_ext >&5
15996
15997 ac_header_compiler=no
15998 fi
15999
16000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16001 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16002 $as_echo "$ac_header_compiler" >&6; }
16003
16004 # Is the header present?
16005 { $as_echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
16006 $as_echo_n "checking malloc/malloc.h presence... " >&6; }
16007 cat >conftest.$ac_ext <<_ACEOF
16008 /* confdefs.h. */
16009 _ACEOF
16010 cat confdefs.h >>conftest.$ac_ext
16011 cat >>conftest.$ac_ext <<_ACEOF
16012 /* end confdefs.h. */
16013 #include <malloc/malloc.h>
16014 _ACEOF
16015 if { (ac_try="$ac_cpp conftest.$ac_ext"
16016 case "(($ac_try" in
16017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16018 *) ac_try_echo=$ac_try;;
16019 esac
16020 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16021 $as_echo "$ac_try_echo") >&5
16022 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16023 ac_status=$?
16024 grep -v '^ *+' conftest.er1 >conftest.err
16025 rm -f conftest.er1
16026 cat conftest.err >&5
16027 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16028 (exit $ac_status); } >/dev/null && {
16029 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16030 test ! -s conftest.err
16031 }; then
16032 ac_header_preproc=yes
16033 else
16034 $as_echo "$as_me: failed program was:" >&5
16035 sed 's/^/| /' conftest.$ac_ext >&5
16036
16037 ac_header_preproc=no
16038 fi
16039
16040 rm -f conftest.err conftest.$ac_ext
16041 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16042 $as_echo "$ac_header_preproc" >&6; }
16043
16044 # So? What about this header?
16045 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16046 yes:no: )
16047 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
16048 $as_echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16049 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
16050 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
16051 ac_header_preproc=yes
16052 ;;
16053 no:yes:* )
16054 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
16055 $as_echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
16056 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
16057 $as_echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
16058 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
16059 $as_echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
16060 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
16061 $as_echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
16062 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
16063 $as_echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
16064 { $as_echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
16065 $as_echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
16066
16067 ;;
16068 esac
16069 { $as_echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
16070 $as_echo_n "checking for malloc/malloc.h... " >&6; }
16071 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
16072 $as_echo_n "(cached) " >&6
16073 else
16074 ac_cv_header_malloc_malloc_h=$ac_header_preproc
16075 fi
16076 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
16077 $as_echo "$ac_cv_header_malloc_malloc_h" >&6; }
16078
16079 fi
16080 if test $ac_cv_header_malloc_malloc_h = yes; then
16081
16082 cat >>confdefs.h <<\_ACEOF
16083 #define HAVE_MALLOC_MALLOC_H 1
16084 _ACEOF
16085 10260
16086 fi 10261 fi
16087 10262
16088 10263
16089 10264
16090 ### Use NeXTstep API to implement GUI. 10265 ### Use NeXTstep API to implement GUI.
16091 if test "${HAVE_NS}" = "yes"; then 10266 if test "${HAVE_NS}" = "yes"; then
16092 10267
16093 cat >>confdefs.h <<\_ACEOF 10268 $as_echo "#define HAVE_NS 1" >>confdefs.h
16094 #define HAVE_NS 1
16095 _ACEOF
16096 10269
16097 if test "${NS_IMPL_COCOA}" = "yes"; then 10270 if test "${NS_IMPL_COCOA}" = "yes"; then
16098 10271
16099 cat >>confdefs.h <<\_ACEOF 10272 $as_echo "#define NS_IMPL_COCOA 1" >>confdefs.h
16100 #define NS_IMPL_COCOA 1
16101 _ACEOF
16102 10273
16103 GNU_OBJC_CFLAGS= 10274 GNU_OBJC_CFLAGS=
16104 fi 10275 fi
16105 if test "${NS_IMPL_GNUSTEP}" = "yes"; then 10276 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
16106 10277
16107 cat >>confdefs.h <<\_ACEOF 10278 $as_echo "#define NS_IMPL_GNUSTEP 1" >>confdefs.h
16108 #define NS_IMPL_GNUSTEP 1
16109 _ACEOF
16110 10279
16111 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE" 10280 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
16112 fi 10281 fi
16113 if test "${NS_HAVE_NSINTEGER}" = "yes"; then 10282 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
16114 10283
16115 cat >>confdefs.h <<\_ACEOF 10284 $as_echo "#define NS_HAVE_NSINTEGER 1" >>confdefs.h
16116 #define NS_HAVE_NSINTEGER 1
16117 _ACEOF
16118 10285
16119 fi 10286 fi
16120 # We also have mouse menus. 10287 # We also have mouse menus.
16121 HAVE_MENUS=yes 10288 HAVE_MENUS=yes
16122 OTHER_FILES=ns-app 10289 OTHER_FILES=ns-app
16125 10292
16126 ### Use session management (-lSM -lICE) if available 10293 ### Use session management (-lSM -lICE) if available
16127 HAVE_X_SM=no 10294 HAVE_X_SM=no
16128 LIBXSM= 10295 LIBXSM=
16129 if test "${HAVE_X11}" = "yes"; then 10296 if test "${HAVE_X11}" = "yes"; then
16130 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then 10297 ac_fn_c_check_header_mongrel "$LINENO" "X11/SM/SMlib.h" "ac_cv_header_X11_SM_SMlib_h" "$ac_includes_default"
16131 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5 10298 if test "x$ac_cv_header_X11_SM_SMlib_h" = x""yes; then :
16132 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; } 10299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SmcOpenConnection in -lSM" >&5
16133 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16134 $as_echo_n "(cached) " >&6
16135 fi
16136 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16137 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16138 else
16139 # Is the header compilable?
16140 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
16141 $as_echo_n "checking X11/SM/SMlib.h usability... " >&6; }
16142 cat >conftest.$ac_ext <<_ACEOF
16143 /* confdefs.h. */
16144 _ACEOF
16145 cat confdefs.h >>conftest.$ac_ext
16146 cat >>conftest.$ac_ext <<_ACEOF
16147 /* end confdefs.h. */
16148 $ac_includes_default
16149 #include <X11/SM/SMlib.h>
16150 _ACEOF
16151 rm -f conftest.$ac_objext
16152 if { (ac_try="$ac_compile"
16153 case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16156 esac
16157 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16158 $as_echo "$ac_try_echo") >&5
16159 (eval "$ac_compile") 2>conftest.er1
16160 ac_status=$?
16161 grep -v '^ *+' conftest.er1 >conftest.err
16162 rm -f conftest.er1
16163 cat conftest.err >&5
16164 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16165 (exit $ac_status); } && {
16166 test -z "$ac_c_werror_flag" ||
16167 test ! -s conftest.err
16168 } && test -s conftest.$ac_objext; then
16169 ac_header_compiler=yes
16170 else
16171 $as_echo "$as_me: failed program was:" >&5
16172 sed 's/^/| /' conftest.$ac_ext >&5
16173
16174 ac_header_compiler=no
16175 fi
16176
16177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16178 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16179 $as_echo "$ac_header_compiler" >&6; }
16180
16181 # Is the header present?
16182 { $as_echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
16183 $as_echo_n "checking X11/SM/SMlib.h presence... " >&6; }
16184 cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h. */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190 #include <X11/SM/SMlib.h>
16191 _ACEOF
16192 if { (ac_try="$ac_cpp conftest.$ac_ext"
16193 case "(($ac_try" in
16194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16195 *) ac_try_echo=$ac_try;;
16196 esac
16197 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16198 $as_echo "$ac_try_echo") >&5
16199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16200 ac_status=$?
16201 grep -v '^ *+' conftest.er1 >conftest.err
16202 rm -f conftest.er1
16203 cat conftest.err >&5
16204 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16205 (exit $ac_status); } >/dev/null && {
16206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16207 test ! -s conftest.err
16208 }; then
16209 ac_header_preproc=yes
16210 else
16211 $as_echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214 ac_header_preproc=no
16215 fi
16216
16217 rm -f conftest.err conftest.$ac_ext
16218 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16219 $as_echo "$ac_header_preproc" >&6; }
16220
16221 # So? What about this header?
16222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16223 yes:no: )
16224 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
16225 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16226 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
16227 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
16228 ac_header_preproc=yes
16229 ;;
16230 no:yes:* )
16231 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
16232 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
16233 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
16234 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
16235 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
16236 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
16237 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
16238 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
16239 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
16240 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
16241 { $as_echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
16242 $as_echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
16243
16244 ;;
16245 esac
16246 { $as_echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
16247 $as_echo_n "checking for X11/SM/SMlib.h... " >&6; }
16248 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
16249 $as_echo_n "(cached) " >&6
16250 else
16251 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
16252 fi
16253 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
16254 $as_echo "$ac_cv_header_X11_SM_SMlib_h" >&6; }
16255
16256 fi
16257 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
16258 { $as_echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
16259 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; } 10300 $as_echo_n "checking for SmcOpenConnection in -lSM... " >&6; }
16260 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then 10301 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then :
16261 $as_echo_n "(cached) " >&6 10302 $as_echo_n "(cached) " >&6
16262 else 10303 else
16263 ac_check_lib_save_LIBS=$LIBS 10304 ac_check_lib_save_LIBS=$LIBS
16264 LIBS="-lSM -lICE $LIBS" 10305 LIBS="-lSM -lICE $LIBS"
16265 cat >conftest.$ac_ext <<_ACEOF 10306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16266 /* confdefs.h. */
16267 _ACEOF
16268 cat confdefs.h >>conftest.$ac_ext
16269 cat >>conftest.$ac_ext <<_ACEOF
16270 /* end confdefs.h. */ 10307 /* end confdefs.h. */
16271 10308
16272 /* Override any GCC internal prototype to avoid an error. 10309 /* Override any GCC internal prototype to avoid an error.
16273 Use char because int might match the return type of a GCC 10310 Use char because int might match the return type of a GCC
16274 builtin and then its argument prototype would still apply. */ 10311 builtin and then its argument prototype would still apply. */
16282 return SmcOpenConnection (); 10319 return SmcOpenConnection ();
16283 ; 10320 ;
16284 return 0; 10321 return 0;
16285 } 10322 }
16286 _ACEOF 10323 _ACEOF
16287 rm -f conftest.$ac_objext conftest$ac_exeext 10324 if ac_fn_c_try_link "$LINENO"; then :
16288 if { (ac_try="$ac_link"
16289 case "(($ac_try" in
16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16292 esac
16293 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16294 $as_echo "$ac_try_echo") >&5
16295 (eval "$ac_link") 2>conftest.er1
16296 ac_status=$?
16297 grep -v '^ *+' conftest.er1 >conftest.err
16298 rm -f conftest.er1
16299 cat conftest.err >&5
16300 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16301 (exit $ac_status); } && {
16302 test -z "$ac_c_werror_flag" ||
16303 test ! -s conftest.err
16304 } && test -s conftest$ac_exeext && {
16305 test "$cross_compiling" = yes ||
16306 $as_test_x conftest$ac_exeext
16307 }; then
16308 ac_cv_lib_SM_SmcOpenConnection=yes 10325 ac_cv_lib_SM_SmcOpenConnection=yes
16309 else 10326 else
16310 $as_echo "$as_me: failed program was:" >&5 10327 ac_cv_lib_SM_SmcOpenConnection=no
16311 sed 's/^/| /' conftest.$ac_ext >&5 10328 fi
16312 10329 rm -f core conftest.err conftest.$ac_objext \
16313 ac_cv_lib_SM_SmcOpenConnection=no 10330 conftest$ac_exeext conftest.$ac_ext
16314 fi
16315
16316 rm -rf conftest.dSYM
16317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16318 conftest$ac_exeext conftest.$ac_ext
16319 LIBS=$ac_check_lib_save_LIBS 10331 LIBS=$ac_check_lib_save_LIBS
16320 fi 10332 fi
16321 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5 10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
16322 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; } 10334 $as_echo "$ac_cv_lib_SM_SmcOpenConnection" >&6; }
16323 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then 10335 if test "x$ac_cv_lib_SM_SmcOpenConnection" = x""yes; then :
16324 HAVE_X_SM=yes 10336 HAVE_X_SM=yes
16325 fi 10337 fi
16326 10338
16327 fi 10339 fi
16328 10340
16329 10341
16330 10342
16331 if test "${HAVE_X_SM}" = "yes"; then 10343 if test "${HAVE_X_SM}" = "yes"; then
16332 10344
16333 cat >>confdefs.h <<\_ACEOF 10345 $as_echo "#define HAVE_X_SM 1" >>confdefs.h
16334 #define HAVE_X_SM 1
16335 _ACEOF
16336 10346
16337 LIBXSM="-lSM -lICE" 10347 LIBXSM="-lSM -lICE"
16338 case "$LIBS" in 10348 case "$LIBS" in
16339 *-lSM*) ;; 10349 *-lSM*) ;;
16340 *) LIBS="$LIBXSM $LIBS" ;; 10350 *) LIBS="$LIBXSM $LIBS" ;;
16342 fi 10352 fi
16343 fi 10353 fi
16344 10354
16345 10355
16346 # If netdb.h doesn't declare h_errno, we must declare it by hand. 10356 # If netdb.h doesn't declare h_errno, we must declare it by hand.
16347 { $as_echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5 10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether netdb declares h_errno" >&5
16348 $as_echo_n "checking whether netdb declares h_errno... " >&6; } 10358 $as_echo_n "checking whether netdb declares h_errno... " >&6; }
16349 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then 10359 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then :
16350 $as_echo_n "(cached) " >&6 10360 $as_echo_n "(cached) " >&6
16351 else 10361 else
16352 cat >conftest.$ac_ext <<_ACEOF 10362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16353 /* confdefs.h. */
16354 _ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h. */ 10363 /* end confdefs.h. */
16358 #include <netdb.h> 10364 #include <netdb.h>
16359 int 10365 int
16360 main () 10366 main ()
16361 { 10367 {
16362 return h_errno; 10368 return h_errno;
16363 ; 10369 ;
16364 return 0; 10370 return 0;
16365 } 10371 }
16366 _ACEOF 10372 _ACEOF
16367 rm -f conftest.$ac_objext conftest$ac_exeext 10373 if ac_fn_c_try_link "$LINENO"; then :
16368 if { (ac_try="$ac_link"
16369 case "(($ac_try" in
16370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16371 *) ac_try_echo=$ac_try;;
16372 esac
16373 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16374 $as_echo "$ac_try_echo") >&5
16375 (eval "$ac_link") 2>conftest.er1
16376 ac_status=$?
16377 grep -v '^ *+' conftest.er1 >conftest.err
16378 rm -f conftest.er1
16379 cat conftest.err >&5
16380 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381 (exit $ac_status); } && {
16382 test -z "$ac_c_werror_flag" ||
16383 test ! -s conftest.err
16384 } && test -s conftest$ac_exeext && {
16385 test "$cross_compiling" = yes ||
16386 $as_test_x conftest$ac_exeext
16387 }; then
16388 emacs_cv_netdb_declares_h_errno=yes 10374 emacs_cv_netdb_declares_h_errno=yes
16389 else 10375 else
16390 $as_echo "$as_me: failed program was:" >&5 10376 emacs_cv_netdb_declares_h_errno=no
16391 sed 's/^/| /' conftest.$ac_ext >&5 10377 fi
16392 10378 rm -f core conftest.err conftest.$ac_objext \
16393 emacs_cv_netdb_declares_h_errno=no 10379 conftest$ac_exeext conftest.$ac_ext
16394 fi 10380 fi
16395 10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_netdb_declares_h_errno" >&5
16396 rm -rf conftest.dSYM
16397 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16398 conftest$ac_exeext conftest.$ac_ext
16399 fi
16400 { $as_echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
16401 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; } 10382 $as_echo "$emacs_cv_netdb_declares_h_errno" >&6; }
16402 if test $emacs_cv_netdb_declares_h_errno = yes; then 10383 if test $emacs_cv_netdb_declares_h_errno = yes; then
16403 10384
16404 cat >>confdefs.h <<\_ACEOF 10385 $as_echo "#define HAVE_H_ERRNO 1" >>confdefs.h
16405 #define HAVE_H_ERRNO 1
16406 _ACEOF
16407 10386
16408 fi 10387 fi
16409 10388
16410 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 10389 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
16411 # for constant arguments. Useless! 10390 # for constant arguments. Useless!
16412 { $as_echo "$as_me:$LINENO: checking for working alloca.h" >&5 10391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
16413 $as_echo_n "checking for working alloca.h... " >&6; } 10392 $as_echo_n "checking for working alloca.h... " >&6; }
16414 if test "${ac_cv_working_alloca_h+set}" = set; then 10393 if test "${ac_cv_working_alloca_h+set}" = set; then :
16415 $as_echo_n "(cached) " >&6 10394 $as_echo_n "(cached) " >&6
16416 else 10395 else
16417 cat >conftest.$ac_ext <<_ACEOF 10396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16418 /* confdefs.h. */
16419 _ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h. */ 10397 /* end confdefs.h. */
16423 #include <alloca.h> 10398 #include <alloca.h>
16424 int 10399 int
16425 main () 10400 main ()
16426 { 10401 {
16428 if (p) return 0; 10403 if (p) return 0;
16429 ; 10404 ;
16430 return 0; 10405 return 0;
16431 } 10406 }
16432 _ACEOF 10407 _ACEOF
16433 rm -f conftest.$ac_objext conftest$ac_exeext 10408 if ac_fn_c_try_link "$LINENO"; then :
16434 if { (ac_try="$ac_link"
16435 case "(($ac_try" in
16436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16437 *) ac_try_echo=$ac_try;;
16438 esac
16439 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16440 $as_echo "$ac_try_echo") >&5
16441 (eval "$ac_link") 2>conftest.er1
16442 ac_status=$?
16443 grep -v '^ *+' conftest.er1 >conftest.err
16444 rm -f conftest.er1
16445 cat conftest.err >&5
16446 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16447 (exit $ac_status); } && {
16448 test -z "$ac_c_werror_flag" ||
16449 test ! -s conftest.err
16450 } && test -s conftest$ac_exeext && {
16451 test "$cross_compiling" = yes ||
16452 $as_test_x conftest$ac_exeext
16453 }; then
16454 ac_cv_working_alloca_h=yes 10409 ac_cv_working_alloca_h=yes
16455 else 10410 else
16456 $as_echo "$as_me: failed program was:" >&5 10411 ac_cv_working_alloca_h=no
16457 sed 's/^/| /' conftest.$ac_ext >&5 10412 fi
16458 10413 rm -f core conftest.err conftest.$ac_objext \
16459 ac_cv_working_alloca_h=no 10414 conftest$ac_exeext conftest.$ac_ext
16460 fi 10415 fi
16461 10416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
16462 rm -rf conftest.dSYM
16463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16464 conftest$ac_exeext conftest.$ac_ext
16465 fi
16466 { $as_echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
16467 $as_echo "$ac_cv_working_alloca_h" >&6; } 10417 $as_echo "$ac_cv_working_alloca_h" >&6; }
16468 if test $ac_cv_working_alloca_h = yes; then 10418 if test $ac_cv_working_alloca_h = yes; then
16469 10419
16470 cat >>confdefs.h <<\_ACEOF 10420 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
16471 #define HAVE_ALLOCA_H 1 10421
16472 _ACEOF 10422 fi
16473 10423
16474 fi 10424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
16475
16476 { $as_echo "$as_me:$LINENO: checking for alloca" >&5
16477 $as_echo_n "checking for alloca... " >&6; } 10425 $as_echo_n "checking for alloca... " >&6; }
16478 if test "${ac_cv_func_alloca_works+set}" = set; then 10426 if test "${ac_cv_func_alloca_works+set}" = set; then :
16479 $as_echo_n "(cached) " >&6 10427 $as_echo_n "(cached) " >&6
16480 else 10428 else
16481 cat >conftest.$ac_ext <<_ACEOF 10429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16482 /* confdefs.h. */
16483 _ACEOF
16484 cat confdefs.h >>conftest.$ac_ext
16485 cat >>conftest.$ac_ext <<_ACEOF
16486 /* end confdefs.h. */ 10430 /* end confdefs.h. */
16487 #ifdef __GNUC__ 10431 #ifdef __GNUC__
16488 # define alloca __builtin_alloca 10432 # define alloca __builtin_alloca
16489 #else 10433 #else
16490 # ifdef _MSC_VER 10434 # ifdef _MSC_VER
16512 if (p) return 0; 10456 if (p) return 0;
16513 ; 10457 ;
16514 return 0; 10458 return 0;
16515 } 10459 }
16516 _ACEOF 10460 _ACEOF
16517 rm -f conftest.$ac_objext conftest$ac_exeext 10461 if ac_fn_c_try_link "$LINENO"; then :
16518 if { (ac_try="$ac_link"
16519 case "(($ac_try" in
16520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16521 *) ac_try_echo=$ac_try;;
16522 esac
16523 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16524 $as_echo "$ac_try_echo") >&5
16525 (eval "$ac_link") 2>conftest.er1
16526 ac_status=$?
16527 grep -v '^ *+' conftest.er1 >conftest.err
16528 rm -f conftest.er1
16529 cat conftest.err >&5
16530 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16531 (exit $ac_status); } && {
16532 test -z "$ac_c_werror_flag" ||
16533 test ! -s conftest.err
16534 } && test -s conftest$ac_exeext && {
16535 test "$cross_compiling" = yes ||
16536 $as_test_x conftest$ac_exeext
16537 }; then
16538 ac_cv_func_alloca_works=yes 10462 ac_cv_func_alloca_works=yes
16539 else 10463 else
16540 $as_echo "$as_me: failed program was:" >&5 10464 ac_cv_func_alloca_works=no
16541 sed 's/^/| /' conftest.$ac_ext >&5 10465 fi
16542 10466 rm -f core conftest.err conftest.$ac_objext \
16543 ac_cv_func_alloca_works=no 10467 conftest$ac_exeext conftest.$ac_ext
16544 fi 10468 fi
16545 10469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
16546 rm -rf conftest.dSYM
16547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16548 conftest$ac_exeext conftest.$ac_ext
16549 fi
16550 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
16551 $as_echo "$ac_cv_func_alloca_works" >&6; } 10470 $as_echo "$ac_cv_func_alloca_works" >&6; }
16552 10471
16553 if test $ac_cv_func_alloca_works = yes; then 10472 if test $ac_cv_func_alloca_works = yes; then
16554 10473
16555 cat >>confdefs.h <<\_ACEOF 10474 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
16556 #define HAVE_ALLOCA 1
16557 _ACEOF
16558 10475
16559 else 10476 else
16560 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 10477 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
16561 # that cause trouble. Some versions do not even contain alloca or 10478 # that cause trouble. Some versions do not even contain alloca or
16562 # contain a buggy version. If you still want to use their alloca, 10479 # contain a buggy version. If you still want to use their alloca,
16563 # use ar to extract alloca.o from them instead of compiling alloca.c. 10480 # use ar to extract alloca.o from them instead of compiling alloca.c.
16564 10481
16565 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 10482 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
16566 10483
16567 cat >>confdefs.h <<\_ACEOF 10484 $as_echo "#define C_ALLOCA 1" >>confdefs.h
16568 #define C_ALLOCA 1 10485
16569 _ACEOF 10486
16570 10487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
16571
16572 { $as_echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
16573 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 10488 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
16574 if test "${ac_cv_os_cray+set}" = set; then 10489 if test "${ac_cv_os_cray+set}" = set; then :
16575 $as_echo_n "(cached) " >&6 10490 $as_echo_n "(cached) " >&6
16576 else 10491 else
16577 cat >conftest.$ac_ext <<_ACEOF 10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16578 /* confdefs.h. */
16579 _ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h. */ 10493 /* end confdefs.h. */
16583 #if defined CRAY && ! defined CRAY2 10494 #if defined CRAY && ! defined CRAY2
16584 webecray 10495 webecray
16585 #else 10496 #else
16586 wenotbecray 10497 wenotbecray
16587 #endif 10498 #endif
16588 10499
16589 _ACEOF 10500 _ACEOF
16590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10501 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16591 $EGREP "webecray" >/dev/null 2>&1; then 10502 $EGREP "webecray" >/dev/null 2>&1; then :
16592 ac_cv_os_cray=yes 10503 ac_cv_os_cray=yes
16593 else 10504 else
16594 ac_cv_os_cray=no 10505 ac_cv_os_cray=no
16595 fi 10506 fi
16596 rm -f conftest* 10507 rm -f conftest*
16597 10508
16598 fi 10509 fi
16599 { $as_echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
16600 $as_echo "$ac_cv_os_cray" >&6; } 10511 $as_echo "$ac_cv_os_cray" >&6; }
16601 if test $ac_cv_os_cray = yes; then 10512 if test $ac_cv_os_cray = yes; then
16602 for ac_func in _getb67 GETB67 getb67; do 10513 for ac_func in _getb67 GETB67 getb67; do
16603 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10514 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16604 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 10515 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16605 $as_echo_n "checking for $ac_func... " >&6; } 10516 eval as_val=\$$as_ac_var
16606 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10517 if test "x$as_val" = x""yes; then :
16607 $as_echo_n "(cached) " >&6
16608 else
16609 cat >conftest.$ac_ext <<_ACEOF
16610 /* confdefs.h. */
16611 _ACEOF
16612 cat confdefs.h >>conftest.$ac_ext
16613 cat >>conftest.$ac_ext <<_ACEOF
16614 /* end confdefs.h. */
16615 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16616 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16617 #define $ac_func innocuous_$ac_func
16618
16619 /* System header to define __stub macros and hopefully few prototypes,
16620 which can conflict with char $ac_func (); below.
16621 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16622 <limits.h> exists even on freestanding compilers. */
16623
16624 #ifdef __STDC__
16625 # include <limits.h>
16626 #else
16627 # include <assert.h>
16628 #endif
16629
16630 #undef $ac_func
16631
16632 /* Override any GCC internal prototype to avoid an error.
16633 Use char because int might match the return type of a GCC
16634 builtin and then its argument prototype would still apply. */
16635 #ifdef __cplusplus
16636 extern "C"
16637 #endif
16638 char $ac_func ();
16639 /* The GNU C library defines this for functions which it implements
16640 to always fail with ENOSYS. Some functions are actually named
16641 something starting with __ and the normal name is an alias. */
16642 #if defined __stub_$ac_func || defined __stub___$ac_func
16643 choke me
16644 #endif
16645
16646 int
16647 main ()
16648 {
16649 return $ac_func ();
16650 ;
16651 return 0;
16652 }
16653 _ACEOF
16654 rm -f conftest.$ac_objext conftest$ac_exeext
16655 if { (ac_try="$ac_link"
16656 case "(($ac_try" in
16657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16658 *) ac_try_echo=$ac_try;;
16659 esac
16660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16661 $as_echo "$ac_try_echo") >&5
16662 (eval "$ac_link") 2>conftest.er1
16663 ac_status=$?
16664 grep -v '^ *+' conftest.er1 >conftest.err
16665 rm -f conftest.er1
16666 cat conftest.err >&5
16667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); } && {
16669 test -z "$ac_c_werror_flag" ||
16670 test ! -s conftest.err
16671 } && test -s conftest$ac_exeext && {
16672 test "$cross_compiling" = yes ||
16673 $as_test_x conftest$ac_exeext
16674 }; then
16675 eval "$as_ac_var=yes"
16676 else
16677 $as_echo "$as_me: failed program was:" >&5
16678 sed 's/^/| /' conftest.$ac_ext >&5
16679
16680 eval "$as_ac_var=no"
16681 fi
16682
16683 rm -rf conftest.dSYM
16684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16685 conftest$ac_exeext conftest.$ac_ext
16686 fi
16687 ac_res=`eval 'as_val=${'$as_ac_var'}
16688 $as_echo "$as_val"'`
16689 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
16690 $as_echo "$ac_res" >&6; }
16691 if test `eval 'as_val=${'$as_ac_var'}
16692 $as_echo "$as_val"'` = yes; then
16693 10518
16694 cat >>confdefs.h <<_ACEOF 10519 cat >>confdefs.h <<_ACEOF
16695 #define CRAY_STACKSEG_END $ac_func 10520 #define CRAY_STACKSEG_END $ac_func
16696 _ACEOF 10521 _ACEOF
16697 10522
16699 fi 10524 fi
16700 10525
16701 done 10526 done
16702 fi 10527 fi
16703 10528
16704 { $as_echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 10529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
16705 $as_echo_n "checking stack direction for C alloca... " >&6; } 10530 $as_echo_n "checking stack direction for C alloca... " >&6; }
16706 if test "${ac_cv_c_stack_direction+set}" = set; then 10531 if test "${ac_cv_c_stack_direction+set}" = set; then :
16707 $as_echo_n "(cached) " >&6 10532 $as_echo_n "(cached) " >&6
16708 else 10533 else
16709 if test "$cross_compiling" = yes; then 10534 if test "$cross_compiling" = yes; then :
16710 ac_cv_c_stack_direction=0 10535 ac_cv_c_stack_direction=0
16711 else 10536 else
16712 cat >conftest.$ac_ext <<_ACEOF 10537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16713 /* confdefs.h. */
16714 _ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */ 10538 /* end confdefs.h. */
16718 $ac_includes_default 10539 $ac_includes_default
16719 int 10540 int
16720 find_stack_direction () 10541 find_stack_direction ()
16721 { 10542 {
16734 main () 10555 main ()
16735 { 10556 {
16736 return find_stack_direction () < 0; 10557 return find_stack_direction () < 0;
16737 } 10558 }
16738 _ACEOF 10559 _ACEOF
16739 rm -f conftest$ac_exeext 10560 if ac_fn_c_try_run "$LINENO"; then :
16740 if { (ac_try="$ac_link"
16741 case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16744 esac
16745 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16746 $as_echo "$ac_try_echo") >&5
16747 (eval "$ac_link") 2>&5
16748 ac_status=$?
16749 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16751 { (case "(($ac_try" in
16752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16753 *) ac_try_echo=$ac_try;;
16754 esac
16755 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16756 $as_echo "$ac_try_echo") >&5
16757 (eval "$ac_try") 2>&5
16758 ac_status=$?
16759 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16760 (exit $ac_status); }; }; then
16761 ac_cv_c_stack_direction=1 10561 ac_cv_c_stack_direction=1
16762 else 10562 else
16763 $as_echo "$as_me: program exited with status $ac_status" >&5 10563 ac_cv_c_stack_direction=-1
16764 $as_echo "$as_me: failed program was:" >&5 10564 fi
16765 sed 's/^/| /' conftest.$ac_ext >&5 10565 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16766 10566 conftest.$ac_objext conftest.beam conftest.$ac_ext
16767 ( exit $ac_status ) 10567 fi
16768 ac_cv_c_stack_direction=-1 10568
16769 fi 10569 fi
16770 rm -rf conftest.dSYM 10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
16771 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16772 fi
16773
16774
16775 fi
16776 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16777 $as_echo "$ac_cv_c_stack_direction" >&6; } 10571 $as_echo "$ac_cv_c_stack_direction" >&6; }
16778
16779 cat >>confdefs.h <<_ACEOF 10572 cat >>confdefs.h <<_ACEOF
16780 #define STACK_DIRECTION $ac_cv_c_stack_direction 10573 #define STACK_DIRECTION $ac_cv_c_stack_direction
16781 _ACEOF 10574 _ACEOF
16782 10575
16783 10576
16784 fi 10577 fi
16785 10578
16786 10579
16787 if test x"$ac_cv_func_alloca_works" != xyes; then 10580 if test x"$ac_cv_func_alloca_works" != xyes; then
16788 { { $as_echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5 10581 as_fn_error "a system implementation of alloca is required " "$LINENO" 5
16789 $as_echo "$as_me: error: a system implementation of alloca is required " >&2;}
16790 { (exit 1); exit 1; }; }
16791 fi 10582 fi
16792 10583
16793 # fmod, logb, and frexp are found in -lm on most systems. 10584 # fmod, logb, and frexp are found in -lm on most systems.
16794 # On HPUX 9.01, -lm does not contain logb, so check for sqrt. 10585 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16795 10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
16796 { $as_echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16797 $as_echo_n "checking for sqrt in -lm... " >&6; } 10587 $as_echo_n "checking for sqrt in -lm... " >&6; }
16798 if test "${ac_cv_lib_m_sqrt+set}" = set; then 10588 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
16799 $as_echo_n "(cached) " >&6 10589 $as_echo_n "(cached) " >&6
16800 else 10590 else
16801 ac_check_lib_save_LIBS=$LIBS 10591 ac_check_lib_save_LIBS=$LIBS
16802 LIBS="-lm $LIBS" 10592 LIBS="-lm $LIBS"
16803 cat >conftest.$ac_ext <<_ACEOF 10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16804 /* confdefs.h. */
16805 _ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */ 10594 /* end confdefs.h. */
16809 10595
16810 /* Override any GCC internal prototype to avoid an error. 10596 /* Override any GCC internal prototype to avoid an error.
16811 Use char because int might match the return type of a GCC 10597 Use char because int might match the return type of a GCC
16812 builtin and then its argument prototype would still apply. */ 10598 builtin and then its argument prototype would still apply. */
16820 return sqrt (); 10606 return sqrt ();
16821 ; 10607 ;
16822 return 0; 10608 return 0;
16823 } 10609 }
16824 _ACEOF 10610 _ACEOF
16825 rm -f conftest.$ac_objext conftest$ac_exeext 10611 if ac_fn_c_try_link "$LINENO"; then :
16826 if { (ac_try="$ac_link"
16827 case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16830 esac
16831 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16832 $as_echo "$ac_try_echo") >&5
16833 (eval "$ac_link") 2>conftest.er1
16834 ac_status=$?
16835 grep -v '^ *+' conftest.er1 >conftest.err
16836 rm -f conftest.er1
16837 cat conftest.err >&5
16838 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16839 (exit $ac_status); } && {
16840 test -z "$ac_c_werror_flag" ||
16841 test ! -s conftest.err
16842 } && test -s conftest$ac_exeext && {
16843 test "$cross_compiling" = yes ||
16844 $as_test_x conftest$ac_exeext
16845 }; then
16846 ac_cv_lib_m_sqrt=yes 10612 ac_cv_lib_m_sqrt=yes
16847 else 10613 else
16848 $as_echo "$as_me: failed program was:" >&5 10614 ac_cv_lib_m_sqrt=no
16849 sed 's/^/| /' conftest.$ac_ext >&5 10615 fi
16850 10616 rm -f core conftest.err conftest.$ac_objext \
16851 ac_cv_lib_m_sqrt=no 10617 conftest$ac_exeext conftest.$ac_ext
16852 fi
16853
16854 rm -rf conftest.dSYM
16855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16856 conftest$ac_exeext conftest.$ac_ext
16857 LIBS=$ac_check_lib_save_LIBS 10618 LIBS=$ac_check_lib_save_LIBS
16858 fi 10619 fi
16859 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 10620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
16860 $as_echo "$ac_cv_lib_m_sqrt" >&6; } 10621 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
16861 if test $ac_cv_lib_m_sqrt = yes; then 10622 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
16862 cat >>confdefs.h <<_ACEOF 10623 cat >>confdefs.h <<_ACEOF
16863 #define HAVE_LIBM 1 10624 #define HAVE_LIBM 1
16864 _ACEOF 10625 _ACEOF
16865 10626
16866 LIBS="-lm $LIBS" 10627 LIBS="-lm $LIBS"
16868 fi 10629 fi
16869 10630
16870 10631
16871 # Check for mail-locking functions in a "mail" library. Probably this should 10632 # Check for mail-locking functions in a "mail" library. Probably this should
16872 # have the same check as for liblockfile below. 10633 # have the same check as for liblockfile below.
16873 { $as_echo "$as_me:$LINENO: checking for maillock in -lmail" >&5 10634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -lmail" >&5
16874 $as_echo_n "checking for maillock in -lmail... " >&6; } 10635 $as_echo_n "checking for maillock in -lmail... " >&6; }
16875 if test "${ac_cv_lib_mail_maillock+set}" = set; then 10636 if test "${ac_cv_lib_mail_maillock+set}" = set; then :
16876 $as_echo_n "(cached) " >&6 10637 $as_echo_n "(cached) " >&6
16877 else 10638 else
16878 ac_check_lib_save_LIBS=$LIBS 10639 ac_check_lib_save_LIBS=$LIBS
16879 LIBS="-lmail $LIBS" 10640 LIBS="-lmail $LIBS"
16880 cat >conftest.$ac_ext <<_ACEOF 10641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881 /* confdefs.h. */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h. */ 10642 /* end confdefs.h. */
16886 10643
16887 /* Override any GCC internal prototype to avoid an error. 10644 /* Override any GCC internal prototype to avoid an error.
16888 Use char because int might match the return type of a GCC 10645 Use char because int might match the return type of a GCC
16889 builtin and then its argument prototype would still apply. */ 10646 builtin and then its argument prototype would still apply. */
16897 return maillock (); 10654 return maillock ();
16898 ; 10655 ;
16899 return 0; 10656 return 0;
16900 } 10657 }
16901 _ACEOF 10658 _ACEOF
16902 rm -f conftest.$ac_objext conftest$ac_exeext 10659 if ac_fn_c_try_link "$LINENO"; then :
16903 if { (ac_try="$ac_link"
16904 case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907 esac
16908 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16909 $as_echo "$ac_try_echo") >&5
16910 (eval "$ac_link") 2>conftest.er1
16911 ac_status=$?
16912 grep -v '^ *+' conftest.er1 >conftest.err
16913 rm -f conftest.er1
16914 cat conftest.err >&5
16915 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16916 (exit $ac_status); } && {
16917 test -z "$ac_c_werror_flag" ||
16918 test ! -s conftest.err
16919 } && test -s conftest$ac_exeext && {
16920 test "$cross_compiling" = yes ||
16921 $as_test_x conftest$ac_exeext
16922 }; then
16923 ac_cv_lib_mail_maillock=yes 10660 ac_cv_lib_mail_maillock=yes
16924 else 10661 else
16925 $as_echo "$as_me: failed program was:" >&5 10662 ac_cv_lib_mail_maillock=no
16926 sed 's/^/| /' conftest.$ac_ext >&5 10663 fi
16927 10664 rm -f core conftest.err conftest.$ac_objext \
16928 ac_cv_lib_mail_maillock=no 10665 conftest$ac_exeext conftest.$ac_ext
16929 fi
16930
16931 rm -rf conftest.dSYM
16932 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16933 conftest$ac_exeext conftest.$ac_ext
16934 LIBS=$ac_check_lib_save_LIBS 10666 LIBS=$ac_check_lib_save_LIBS
16935 fi 10667 fi
16936 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5 10668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mail_maillock" >&5
16937 $as_echo "$ac_cv_lib_mail_maillock" >&6; } 10669 $as_echo "$ac_cv_lib_mail_maillock" >&6; }
16938 if test $ac_cv_lib_mail_maillock = yes; then 10670 if test "x$ac_cv_lib_mail_maillock" = x""yes; then :
16939 have_mail=yes 10671 have_mail=yes
16940 else 10672 else
16941 have_mail=no 10673 have_mail=no
16942 fi 10674 fi
16943 10675
16944 if test $have_mail = yes; then 10676 if test $have_mail = yes; then
16945 LIBS_MAIL=-lmail 10677 LIBS_MAIL=-lmail
16946 LIBS="$LIBS_MAIL $LIBS" 10678 LIBS="$LIBS_MAIL $LIBS"
16947 10679
16948 cat >>confdefs.h <<\_ACEOF 10680 $as_echo "#define HAVE_LIBMAIL 1" >>confdefs.h
16949 #define HAVE_LIBMAIL 1
16950 _ACEOF
16951 10681
16952 else 10682 else
16953 LIBS_MAIL= 10683 LIBS_MAIL=
16954 fi 10684 fi
16955 { $as_echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5 10685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for maillock in -llockfile" >&5
16956 $as_echo_n "checking for maillock in -llockfile... " >&6; } 10686 $as_echo_n "checking for maillock in -llockfile... " >&6; }
16957 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then 10687 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then :
16958 $as_echo_n "(cached) " >&6 10688 $as_echo_n "(cached) " >&6
16959 else 10689 else
16960 ac_check_lib_save_LIBS=$LIBS 10690 ac_check_lib_save_LIBS=$LIBS
16961 LIBS="-llockfile $LIBS" 10691 LIBS="-llockfile $LIBS"
16962 cat >conftest.$ac_ext <<_ACEOF 10692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16963 /* confdefs.h. */
16964 _ACEOF
16965 cat confdefs.h >>conftest.$ac_ext
16966 cat >>conftest.$ac_ext <<_ACEOF
16967 /* end confdefs.h. */ 10693 /* end confdefs.h. */
16968 10694
16969 /* Override any GCC internal prototype to avoid an error. 10695 /* Override any GCC internal prototype to avoid an error.
16970 Use char because int might match the return type of a GCC 10696 Use char because int might match the return type of a GCC
16971 builtin and then its argument prototype would still apply. */ 10697 builtin and then its argument prototype would still apply. */
16979 return maillock (); 10705 return maillock ();
16980 ; 10706 ;
16981 return 0; 10707 return 0;
16982 } 10708 }
16983 _ACEOF 10709 _ACEOF
16984 rm -f conftest.$ac_objext conftest$ac_exeext 10710 if ac_fn_c_try_link "$LINENO"; then :
16985 if { (ac_try="$ac_link"
16986 case "(($ac_try" in
16987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16988 *) ac_try_echo=$ac_try;;
16989 esac
16990 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
16991 $as_echo "$ac_try_echo") >&5
16992 (eval "$ac_link") 2>conftest.er1
16993 ac_status=$?
16994 grep -v '^ *+' conftest.er1 >conftest.err
16995 rm -f conftest.er1
16996 cat conftest.err >&5
16997 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
16998 (exit $ac_status); } && {
16999 test -z "$ac_c_werror_flag" ||
17000 test ! -s conftest.err
17001 } && test -s conftest$ac_exeext && {
17002 test "$cross_compiling" = yes ||
17003 $as_test_x conftest$ac_exeext
17004 }; then
17005 ac_cv_lib_lockfile_maillock=yes 10711 ac_cv_lib_lockfile_maillock=yes
17006 else 10712 else
17007 $as_echo "$as_me: failed program was:" >&5 10713 ac_cv_lib_lockfile_maillock=no
17008 sed 's/^/| /' conftest.$ac_ext >&5 10714 fi
17009 10715 rm -f core conftest.err conftest.$ac_objext \
17010 ac_cv_lib_lockfile_maillock=no 10716 conftest$ac_exeext conftest.$ac_ext
17011 fi
17012
17013 rm -rf conftest.dSYM
17014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17015 conftest$ac_exeext conftest.$ac_ext
17016 LIBS=$ac_check_lib_save_LIBS 10717 LIBS=$ac_check_lib_save_LIBS
17017 fi 10718 fi
17018 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5 10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lockfile_maillock" >&5
17019 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; } 10720 $as_echo "$ac_cv_lib_lockfile_maillock" >&6; }
17020 if test $ac_cv_lib_lockfile_maillock = yes; then 10721 if test "x$ac_cv_lib_lockfile_maillock" = x""yes; then :
17021 have_lockfile=yes 10722 have_lockfile=yes
17022 else 10723 else
17023 have_lockfile=no 10724 have_lockfile=no
17024 fi 10725 fi
17025 10726
17026 if test $have_lockfile = yes; then 10727 if test $have_lockfile = yes; then
17027 LIBS_MAIL=-llockfile 10728 LIBS_MAIL=-llockfile
17028 LIBS="$LIBS_MAIL $LIBS" 10729 LIBS="$LIBS_MAIL $LIBS"
17029 10730
17030 cat >>confdefs.h <<\_ACEOF 10731 $as_echo "#define HAVE_LIBLOCKFILE 1" >>confdefs.h
17031 #define HAVE_LIBLOCKFILE 1
17032 _ACEOF
17033 10732
17034 else 10733 else
17035 # If we have the shared liblockfile, assume we must use it for mail 10734 # If we have the shared liblockfile, assume we must use it for mail
17036 # locking (e.g. Debian). If we couldn't link against liblockfile 10735 # locking (e.g. Debian). If we couldn't link against liblockfile
17037 # (no liblockfile.a installed), ensure that we don't need to. 10736 # (no liblockfile.a installed), ensure that we don't need to.
17038 # Extract the first word of "liblockfile.so", so it can be a program name with args. 10737 # Extract the first word of "liblockfile.so", so it can be a program name with args.
17039 set dummy liblockfile.so; ac_word=$2 10738 set dummy liblockfile.so; ac_word=$2
17040 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5 10739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17041 $as_echo_n "checking for $ac_word... " >&6; } 10740 $as_echo_n "checking for $ac_word... " >&6; }
17042 if test "${ac_cv_prog_liblockfile+set}" = set; then 10741 if test "${ac_cv_prog_liblockfile+set}" = set; then :
17043 $as_echo_n "(cached) " >&6 10742 $as_echo_n "(cached) " >&6
17044 else 10743 else
17045 if test -n "$liblockfile"; then 10744 if test -n "$liblockfile"; then
17046 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test. 10745 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
17047 else 10746 else
17049 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH" 10748 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
17050 for as_dir in $as_dummy 10749 for as_dir in $as_dummy
17051 do 10750 do
17052 IFS=$as_save_IFS 10751 IFS=$as_save_IFS
17053 test -z "$as_dir" && as_dir=. 10752 test -z "$as_dir" && as_dir=.
17054 for ac_exec_ext in '' $ac_executable_extensions; do 10753 for ac_exec_ext in '' $ac_executable_extensions; do
17055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
17056 ac_cv_prog_liblockfile="yes" 10755 ac_cv_prog_liblockfile="yes"
17057 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17058 break 2 10757 break 2
17059 fi 10758 fi
17060 done 10759 done
17061 done 10760 done
17062 IFS=$as_save_IFS 10761 IFS=$as_save_IFS
17063 10762
17064 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no" 10763 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
17065 fi 10764 fi
17066 fi 10765 fi
17067 liblockfile=$ac_cv_prog_liblockfile 10766 liblockfile=$ac_cv_prog_liblockfile
17068 if test -n "$liblockfile"; then 10767 if test -n "$liblockfile"; then
17069 { $as_echo "$as_me:$LINENO: result: $liblockfile" >&5 10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $liblockfile" >&5
17070 $as_echo "$liblockfile" >&6; } 10769 $as_echo "$liblockfile" >&6; }
17071 else 10770 else
17072 { $as_echo "$as_me:$LINENO: result: no" >&5 10771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17073 $as_echo "no" >&6; } 10772 $as_echo "no" >&6; }
17074 fi 10773 fi
17075 10774
17076 10775
17077 if test $ac_cv_prog_liblockfile = yes; then 10776 if test $ac_cv_prog_liblockfile = yes; then
17078 { { $as_echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it. 10777 as_fn_error "Shared liblockfile found but can't link against it.
17079 This probably means that movemail could lose mail. 10778 This probably means that movemail could lose mail.
17080 There may be a \`development' package to install containing liblockfile." >&5 10779 There may be a \`development' package to install containing liblockfile." "$LINENO" 5
17081 $as_echo "$as_me: error: Shared liblockfile found but can't link against it.
17082 This probably means that movemail could lose mail.
17083 There may be a \`development' package to install containing liblockfile." >&2;}
17084 { (exit 1); exit 1; }; }
17085 fi 10780 fi
17086 fi 10781 fi
17087
17088 for ac_func in touchlock 10782 for ac_func in touchlock
17089 do 10783 do :
17090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10784 ac_fn_c_check_func "$LINENO" "touchlock" "ac_cv_func_touchlock"
17091 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 10785 if test "x$ac_cv_func_touchlock" = x""yes; then :
17092 $as_echo_n "checking for $ac_func... " >&6; }
17093 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17094 $as_echo_n "(cached) " >&6
17095 else
17096 cat >conftest.$ac_ext <<_ACEOF
17097 /* confdefs.h. */
17098 _ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17102 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17103 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17104 #define $ac_func innocuous_$ac_func
17105
17106 /* System header to define __stub macros and hopefully few prototypes,
17107 which can conflict with char $ac_func (); below.
17108 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17109 <limits.h> exists even on freestanding compilers. */
17110
17111 #ifdef __STDC__
17112 # include <limits.h>
17113 #else
17114 # include <assert.h>
17115 #endif
17116
17117 #undef $ac_func
17118
17119 /* Override any GCC internal prototype to avoid an error.
17120 Use char because int might match the return type of a GCC
17121 builtin and then its argument prototype would still apply. */
17122 #ifdef __cplusplus
17123 extern "C"
17124 #endif
17125 char $ac_func ();
17126 /* The GNU C library defines this for functions which it implements
17127 to always fail with ENOSYS. Some functions are actually named
17128 something starting with __ and the normal name is an alias. */
17129 #if defined __stub_$ac_func || defined __stub___$ac_func
17130 choke me
17131 #endif
17132
17133 int
17134 main ()
17135 {
17136 return $ac_func ();
17137 ;
17138 return 0;
17139 }
17140 _ACEOF
17141 rm -f conftest.$ac_objext conftest$ac_exeext
17142 if { (ac_try="$ac_link"
17143 case "(($ac_try" in
17144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17145 *) ac_try_echo=$ac_try;;
17146 esac
17147 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17148 $as_echo "$ac_try_echo") >&5
17149 (eval "$ac_link") 2>conftest.er1
17150 ac_status=$?
17151 grep -v '^ *+' conftest.er1 >conftest.err
17152 rm -f conftest.er1
17153 cat conftest.err >&5
17154 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17155 (exit $ac_status); } && {
17156 test -z "$ac_c_werror_flag" ||
17157 test ! -s conftest.err
17158 } && test -s conftest$ac_exeext && {
17159 test "$cross_compiling" = yes ||
17160 $as_test_x conftest$ac_exeext
17161 }; then
17162 eval "$as_ac_var=yes"
17163 else
17164 $as_echo "$as_me: failed program was:" >&5
17165 sed 's/^/| /' conftest.$ac_ext >&5
17166
17167 eval "$as_ac_var=no"
17168 fi
17169
17170 rm -rf conftest.dSYM
17171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17172 conftest$ac_exeext conftest.$ac_ext
17173 fi
17174 ac_res=`eval 'as_val=${'$as_ac_var'}
17175 $as_echo "$as_val"'`
17176 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17177 $as_echo "$ac_res" >&6; }
17178 if test `eval 'as_val=${'$as_ac_var'}
17179 $as_echo "$as_val"'` = yes; then
17180 cat >>confdefs.h <<_ACEOF 10786 cat >>confdefs.h <<_ACEOF
17181 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10787 #define HAVE_TOUCHLOCK 1
17182 _ACEOF 10788 _ACEOF
17183 10789
17184 fi 10790 fi
17185 done 10791 done
17186 10792
17187
17188 for ac_header in maillock.h 10793 for ac_header in maillock.h
17189 do 10794 do :
17190 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10795 ac_fn_c_check_header_mongrel "$LINENO" "maillock.h" "ac_cv_header_maillock_h" "$ac_includes_default"
17191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10796 if test "x$ac_cv_header_maillock_h" = x""yes; then :
17192 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17193 $as_echo_n "checking for $ac_header... " >&6; }
17194 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17195 $as_echo_n "(cached) " >&6
17196 fi
17197 ac_res=`eval 'as_val=${'$as_ac_Header'}
17198 $as_echo "$as_val"'`
17199 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17200 $as_echo "$ac_res" >&6; }
17201 else
17202 # Is the header compilable?
17203 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17204 $as_echo_n "checking $ac_header usability... " >&6; }
17205 cat >conftest.$ac_ext <<_ACEOF
17206 /* confdefs.h. */
17207 _ACEOF
17208 cat confdefs.h >>conftest.$ac_ext
17209 cat >>conftest.$ac_ext <<_ACEOF
17210 /* end confdefs.h. */
17211 $ac_includes_default
17212 #include <$ac_header>
17213 _ACEOF
17214 rm -f conftest.$ac_objext
17215 if { (ac_try="$ac_compile"
17216 case "(($ac_try" in
17217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17218 *) ac_try_echo=$ac_try;;
17219 esac
17220 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17221 $as_echo "$ac_try_echo") >&5
17222 (eval "$ac_compile") 2>conftest.er1
17223 ac_status=$?
17224 grep -v '^ *+' conftest.er1 >conftest.err
17225 rm -f conftest.er1
17226 cat conftest.err >&5
17227 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17228 (exit $ac_status); } && {
17229 test -z "$ac_c_werror_flag" ||
17230 test ! -s conftest.err
17231 } && test -s conftest.$ac_objext; then
17232 ac_header_compiler=yes
17233 else
17234 $as_echo "$as_me: failed program was:" >&5
17235 sed 's/^/| /' conftest.$ac_ext >&5
17236
17237 ac_header_compiler=no
17238 fi
17239
17240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17241 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17242 $as_echo "$ac_header_compiler" >&6; }
17243
17244 # Is the header present?
17245 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17246 $as_echo_n "checking $ac_header presence... " >&6; }
17247 cat >conftest.$ac_ext <<_ACEOF
17248 /* confdefs.h. */
17249 _ACEOF
17250 cat confdefs.h >>conftest.$ac_ext
17251 cat >>conftest.$ac_ext <<_ACEOF
17252 /* end confdefs.h. */
17253 #include <$ac_header>
17254 _ACEOF
17255 if { (ac_try="$ac_cpp conftest.$ac_ext"
17256 case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17259 esac
17260 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17261 $as_echo "$ac_try_echo") >&5
17262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17263 ac_status=$?
17264 grep -v '^ *+' conftest.er1 >conftest.err
17265 rm -f conftest.er1
17266 cat conftest.err >&5
17267 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } >/dev/null && {
17269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17270 test ! -s conftest.err
17271 }; then
17272 ac_header_preproc=yes
17273 else
17274 $as_echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17276
17277 ac_header_preproc=no
17278 fi
17279
17280 rm -f conftest.err conftest.$ac_ext
17281 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17282 $as_echo "$ac_header_preproc" >&6; }
17283
17284 # So? What about this header?
17285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17286 yes:no: )
17287 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17288 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17289 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17290 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17291 ac_header_preproc=yes
17292 ;;
17293 no:yes:* )
17294 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17295 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17296 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17297 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17298 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17299 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17300 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17301 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17302 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17303 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17304 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17305 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17306
17307 ;;
17308 esac
17309 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17310 $as_echo_n "checking for $ac_header... " >&6; }
17311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17312 $as_echo_n "(cached) " >&6
17313 else
17314 eval "$as_ac_Header=\$ac_header_preproc"
17315 fi
17316 ac_res=`eval 'as_val=${'$as_ac_Header'}
17317 $as_echo "$as_val"'`
17318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17319 $as_echo "$ac_res" >&6; }
17320
17321 fi
17322 if test `eval 'as_val=${'$as_ac_Header'}
17323 $as_echo "$as_val"'` = yes; then
17324 cat >>confdefs.h <<_ACEOF 10797 cat >>confdefs.h <<_ACEOF
17325 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10798 #define HAVE_MAILLOCK_H 1
17326 _ACEOF 10799 _ACEOF
17327 10800
17328 fi 10801 fi
17329 10802
17330 done 10803 done
17331
17332
17333
17334
17335
17336
17337
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347
17348
17349
17350
17351
17352
17353
17354
17355
17356
17357
17358
17359
17360
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386
17387
17388
17389
17390
17391
17392
17393
17394
17395
17396
17397
17398
17399
17400
17401
17402 10804
17403 10805
17404 10806
17405 for ac_func in gethostname getdomainname dup2 \ 10807 for ac_func in gethostname getdomainname dup2 \
17406 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \ 10808 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
17410 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \ 10812 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
17411 sendto recvfrom getsockopt setsockopt getsockname getpeername \ 10813 sendto recvfrom getsockopt setsockopt getsockname getpeername \
17412 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \ 10814 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
17413 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \ 10815 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
17414 cfmakeraw cfsetspeed 10816 cfmakeraw cfsetspeed
17415 do 10817 do :
17416 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 10818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17417 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 10819 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17418 $as_echo_n "checking for $ac_func... " >&6; } 10820 eval as_val=\$$as_ac_var
17419 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 10821 if test "x$as_val" = x""yes; then :
17420 $as_echo_n "(cached) " >&6
17421 else
17422 cat >conftest.$ac_ext <<_ACEOF
17423 /* confdefs.h. */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17428 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17429 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17430 #define $ac_func innocuous_$ac_func
17431
17432 /* System header to define __stub macros and hopefully few prototypes,
17433 which can conflict with char $ac_func (); below.
17434 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17435 <limits.h> exists even on freestanding compilers. */
17436
17437 #ifdef __STDC__
17438 # include <limits.h>
17439 #else
17440 # include <assert.h>
17441 #endif
17442
17443 #undef $ac_func
17444
17445 /* Override any GCC internal prototype to avoid an error.
17446 Use char because int might match the return type of a GCC
17447 builtin and then its argument prototype would still apply. */
17448 #ifdef __cplusplus
17449 extern "C"
17450 #endif
17451 char $ac_func ();
17452 /* The GNU C library defines this for functions which it implements
17453 to always fail with ENOSYS. Some functions are actually named
17454 something starting with __ and the normal name is an alias. */
17455 #if defined __stub_$ac_func || defined __stub___$ac_func
17456 choke me
17457 #endif
17458
17459 int
17460 main ()
17461 {
17462 return $ac_func ();
17463 ;
17464 return 0;
17465 }
17466 _ACEOF
17467 rm -f conftest.$ac_objext conftest$ac_exeext
17468 if { (ac_try="$ac_link"
17469 case "(($ac_try" in
17470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17471 *) ac_try_echo=$ac_try;;
17472 esac
17473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17474 $as_echo "$ac_try_echo") >&5
17475 (eval "$ac_link") 2>conftest.er1
17476 ac_status=$?
17477 grep -v '^ *+' conftest.er1 >conftest.err
17478 rm -f conftest.er1
17479 cat conftest.err >&5
17480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17481 (exit $ac_status); } && {
17482 test -z "$ac_c_werror_flag" ||
17483 test ! -s conftest.err
17484 } && test -s conftest$ac_exeext && {
17485 test "$cross_compiling" = yes ||
17486 $as_test_x conftest$ac_exeext
17487 }; then
17488 eval "$as_ac_var=yes"
17489 else
17490 $as_echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17492
17493 eval "$as_ac_var=no"
17494 fi
17495
17496 rm -rf conftest.dSYM
17497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17498 conftest$ac_exeext conftest.$ac_ext
17499 fi
17500 ac_res=`eval 'as_val=${'$as_ac_var'}
17501 $as_echo "$as_val"'`
17502 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17503 $as_echo "$ac_res" >&6; }
17504 if test `eval 'as_val=${'$as_ac_var'}
17505 $as_echo "$as_val"'` = yes; then
17506 cat >>confdefs.h <<_ACEOF 10822 cat >>confdefs.h <<_ACEOF
17507 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10823 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17508 _ACEOF 10824 _ACEOF
17509 10825
17510 fi 10826 fi
17511 done 10827 done
17512 10828
17513 10829
17514
17515 for ac_header in sys/un.h 10830 for ac_header in sys/un.h
17516 do 10831 do :
17517 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10832 ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
17518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10833 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
17519 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17520 $as_echo_n "checking for $ac_header... " >&6; }
17521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17522 $as_echo_n "(cached) " >&6
17523 fi
17524 ac_res=`eval 'as_val=${'$as_ac_Header'}
17525 $as_echo "$as_val"'`
17526 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17527 $as_echo "$ac_res" >&6; }
17528 else
17529 # Is the header compilable?
17530 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17531 $as_echo_n "checking $ac_header usability... " >&6; }
17532 cat >conftest.$ac_ext <<_ACEOF
17533 /* confdefs.h. */
17534 _ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17538 $ac_includes_default
17539 #include <$ac_header>
17540 _ACEOF
17541 rm -f conftest.$ac_objext
17542 if { (ac_try="$ac_compile"
17543 case "(($ac_try" in
17544 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17545 *) ac_try_echo=$ac_try;;
17546 esac
17547 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17548 $as_echo "$ac_try_echo") >&5
17549 (eval "$ac_compile") 2>conftest.er1
17550 ac_status=$?
17551 grep -v '^ *+' conftest.er1 >conftest.err
17552 rm -f conftest.er1
17553 cat conftest.err >&5
17554 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17555 (exit $ac_status); } && {
17556 test -z "$ac_c_werror_flag" ||
17557 test ! -s conftest.err
17558 } && test -s conftest.$ac_objext; then
17559 ac_header_compiler=yes
17560 else
17561 $as_echo "$as_me: failed program was:" >&5
17562 sed 's/^/| /' conftest.$ac_ext >&5
17563
17564 ac_header_compiler=no
17565 fi
17566
17567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17568 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17569 $as_echo "$ac_header_compiler" >&6; }
17570
17571 # Is the header present?
17572 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17573 $as_echo_n "checking $ac_header presence... " >&6; }
17574 cat >conftest.$ac_ext <<_ACEOF
17575 /* confdefs.h. */
17576 _ACEOF
17577 cat confdefs.h >>conftest.$ac_ext
17578 cat >>conftest.$ac_ext <<_ACEOF
17579 /* end confdefs.h. */
17580 #include <$ac_header>
17581 _ACEOF
17582 if { (ac_try="$ac_cpp conftest.$ac_ext"
17583 case "(($ac_try" in
17584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17585 *) ac_try_echo=$ac_try;;
17586 esac
17587 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17588 $as_echo "$ac_try_echo") >&5
17589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17590 ac_status=$?
17591 grep -v '^ *+' conftest.er1 >conftest.err
17592 rm -f conftest.er1
17593 cat conftest.err >&5
17594 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17595 (exit $ac_status); } >/dev/null && {
17596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17597 test ! -s conftest.err
17598 }; then
17599 ac_header_preproc=yes
17600 else
17601 $as_echo "$as_me: failed program was:" >&5
17602 sed 's/^/| /' conftest.$ac_ext >&5
17603
17604 ac_header_preproc=no
17605 fi
17606
17607 rm -f conftest.err conftest.$ac_ext
17608 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17609 $as_echo "$ac_header_preproc" >&6; }
17610
17611 # So? What about this header?
17612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17613 yes:no: )
17614 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17615 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17616 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17617 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17618 ac_header_preproc=yes
17619 ;;
17620 no:yes:* )
17621 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17622 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17623 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17624 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17625 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17626 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17627 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17628 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17629 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17630 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17631 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17632 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17633
17634 ;;
17635 esac
17636 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17637 $as_echo_n "checking for $ac_header... " >&6; }
17638 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17639 $as_echo_n "(cached) " >&6
17640 else
17641 eval "$as_ac_Header=\$ac_header_preproc"
17642 fi
17643 ac_res=`eval 'as_val=${'$as_ac_Header'}
17644 $as_echo "$as_val"'`
17645 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17646 $as_echo "$ac_res" >&6; }
17647
17648 fi
17649 if test `eval 'as_val=${'$as_ac_Header'}
17650 $as_echo "$as_val"'` = yes; then
17651 cat >>confdefs.h <<_ACEOF 10834 cat >>confdefs.h <<_ACEOF
17652 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10835 #define HAVE_SYS_UN_H 1
17653 _ACEOF 10836 _ACEOF
17654 10837
17655 fi 10838 fi
17656 10839
17657 done 10840 done
17659 10842
17660 10843
17661 10844
17662 10845
17663 10846
17664 for ac_header in $ac_header_list 10847
17665 do 10848 for ac_func in $ac_func_list
17666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10849 do :
17667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10850 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17668 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 10851 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17669 $as_echo_n "checking for $ac_header... " >&6; } 10852 eval as_val=\$$as_ac_var
17670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 10853 if test "x$as_val" = x""yes; then :
17671 $as_echo_n "(cached) " >&6
17672 fi
17673 ac_res=`eval 'as_val=${'$as_ac_Header'}
17674 $as_echo "$as_val"'`
17675 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17676 $as_echo "$ac_res" >&6; }
17677 else
17678 # Is the header compilable?
17679 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
17680 $as_echo_n "checking $ac_header usability... " >&6; }
17681 cat >conftest.$ac_ext <<_ACEOF
17682 /* confdefs.h. */
17683 _ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 $ac_includes_default
17688 #include <$ac_header>
17689 _ACEOF
17690 rm -f conftest.$ac_objext
17691 if { (ac_try="$ac_compile"
17692 case "(($ac_try" in
17693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17694 *) ac_try_echo=$ac_try;;
17695 esac
17696 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17697 $as_echo "$ac_try_echo") >&5
17698 (eval "$ac_compile") 2>conftest.er1
17699 ac_status=$?
17700 grep -v '^ *+' conftest.er1 >conftest.err
17701 rm -f conftest.er1
17702 cat conftest.err >&5
17703 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); } && {
17705 test -z "$ac_c_werror_flag" ||
17706 test ! -s conftest.err
17707 } && test -s conftest.$ac_objext; then
17708 ac_header_compiler=yes
17709 else
17710 $as_echo "$as_me: failed program was:" >&5
17711 sed 's/^/| /' conftest.$ac_ext >&5
17712
17713 ac_header_compiler=no
17714 fi
17715
17716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17717 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17718 $as_echo "$ac_header_compiler" >&6; }
17719
17720 # Is the header present?
17721 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
17722 $as_echo_n "checking $ac_header presence... " >&6; }
17723 cat >conftest.$ac_ext <<_ACEOF
17724 /* confdefs.h. */
17725 _ACEOF
17726 cat confdefs.h >>conftest.$ac_ext
17727 cat >>conftest.$ac_ext <<_ACEOF
17728 /* end confdefs.h. */
17729 #include <$ac_header>
17730 _ACEOF
17731 if { (ac_try="$ac_cpp conftest.$ac_ext"
17732 case "(($ac_try" in
17733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17734 *) ac_try_echo=$ac_try;;
17735 esac
17736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17737 $as_echo "$ac_try_echo") >&5
17738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17739 ac_status=$?
17740 grep -v '^ *+' conftest.er1 >conftest.err
17741 rm -f conftest.er1
17742 cat conftest.err >&5
17743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17744 (exit $ac_status); } >/dev/null && {
17745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17746 test ! -s conftest.err
17747 }; then
17748 ac_header_preproc=yes
17749 else
17750 $as_echo "$as_me: failed program was:" >&5
17751 sed 's/^/| /' conftest.$ac_ext >&5
17752
17753 ac_header_preproc=no
17754 fi
17755
17756 rm -f conftest.err conftest.$ac_ext
17757 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17758 $as_echo "$ac_header_preproc" >&6; }
17759
17760 # So? What about this header?
17761 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17762 yes:no: )
17763 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17764 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17765 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17766 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17767 ac_header_preproc=yes
17768 ;;
17769 no:yes:* )
17770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17771 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17773 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17774 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17775 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17776 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17777 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17778 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17779 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17780 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17781 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17782
17783 ;;
17784 esac
17785 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
17786 $as_echo_n "checking for $ac_header... " >&6; }
17787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17788 $as_echo_n "(cached) " >&6
17789 else
17790 eval "$as_ac_Header=\$ac_header_preproc"
17791 fi
17792 ac_res=`eval 'as_val=${'$as_ac_Header'}
17793 $as_echo "$as_val"'`
17794 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17795 $as_echo "$ac_res" >&6; }
17796
17797 fi
17798 if test `eval 'as_val=${'$as_ac_Header'}
17799 $as_echo "$as_val"'` = yes; then
17800 cat >>confdefs.h <<_ACEOF
17801 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17802 _ACEOF
17803
17804 fi
17805
17806 done
17807
17808
17809
17810
17811
17812
17813
17814
17815
17816 for ac_func in $ac_func_list
17817 do
17818 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17819 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
17820 $as_echo_n "checking for $ac_func... " >&6; }
17821 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17822 $as_echo_n "(cached) " >&6
17823 else
17824 cat >conftest.$ac_ext <<_ACEOF
17825 /* confdefs.h. */
17826 _ACEOF
17827 cat confdefs.h >>conftest.$ac_ext
17828 cat >>conftest.$ac_ext <<_ACEOF
17829 /* end confdefs.h. */
17830 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17831 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17832 #define $ac_func innocuous_$ac_func
17833
17834 /* System header to define __stub macros and hopefully few prototypes,
17835 which can conflict with char $ac_func (); below.
17836 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17837 <limits.h> exists even on freestanding compilers. */
17838
17839 #ifdef __STDC__
17840 # include <limits.h>
17841 #else
17842 # include <assert.h>
17843 #endif
17844
17845 #undef $ac_func
17846
17847 /* Override any GCC internal prototype to avoid an error.
17848 Use char because int might match the return type of a GCC
17849 builtin and then its argument prototype would still apply. */
17850 #ifdef __cplusplus
17851 extern "C"
17852 #endif
17853 char $ac_func ();
17854 /* The GNU C library defines this for functions which it implements
17855 to always fail with ENOSYS. Some functions are actually named
17856 something starting with __ and the normal name is an alias. */
17857 #if defined __stub_$ac_func || defined __stub___$ac_func
17858 choke me
17859 #endif
17860
17861 int
17862 main ()
17863 {
17864 return $ac_func ();
17865 ;
17866 return 0;
17867 }
17868 _ACEOF
17869 rm -f conftest.$ac_objext conftest$ac_exeext
17870 if { (ac_try="$ac_link"
17871 case "(($ac_try" in
17872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17873 *) ac_try_echo=$ac_try;;
17874 esac
17875 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17876 $as_echo "$ac_try_echo") >&5
17877 (eval "$ac_link") 2>conftest.er1
17878 ac_status=$?
17879 grep -v '^ *+' conftest.er1 >conftest.err
17880 rm -f conftest.er1
17881 cat conftest.err >&5
17882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17883 (exit $ac_status); } && {
17884 test -z "$ac_c_werror_flag" ||
17885 test ! -s conftest.err
17886 } && test -s conftest$ac_exeext && {
17887 test "$cross_compiling" = yes ||
17888 $as_test_x conftest$ac_exeext
17889 }; then
17890 eval "$as_ac_var=yes"
17891 else
17892 $as_echo "$as_me: failed program was:" >&5
17893 sed 's/^/| /' conftest.$ac_ext >&5
17894
17895 eval "$as_ac_var=no"
17896 fi
17897
17898 rm -rf conftest.dSYM
17899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17900 conftest$ac_exeext conftest.$ac_ext
17901 fi
17902 ac_res=`eval 'as_val=${'$as_ac_var'}
17903 $as_echo "$as_val"'`
17904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
17905 $as_echo "$ac_res" >&6; }
17906 if test `eval 'as_val=${'$as_ac_var'}
17907 $as_echo "$as_val"'` = yes; then
17908 cat >>confdefs.h <<_ACEOF 10854 cat >>confdefs.h <<_ACEOF
17909 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 10855 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17910 _ACEOF 10856 _ACEOF
17911 10857
17912 fi 10858 fi
17914 10860
17915 10861
17916 10862
17917 10863
17918 10864
17919 10865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mktime" >&5
17920
17921
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931 { $as_echo "$as_me:$LINENO: checking for working mktime" >&5
17932 $as_echo_n "checking for working mktime... " >&6; } 10866 $as_echo_n "checking for working mktime... " >&6; }
17933 if test "${ac_cv_func_working_mktime+set}" = set; then 10867 if test "${ac_cv_func_working_mktime+set}" = set; then :
17934 $as_echo_n "(cached) " >&6 10868 $as_echo_n "(cached) " >&6
17935 else 10869 else
17936 if test "$cross_compiling" = yes; then 10870 if test "$cross_compiling" = yes; then :
17937 ac_cv_func_working_mktime=no 10871 ac_cv_func_working_mktime=no
17938 else 10872 else
17939 cat >conftest.$ac_ext <<_ACEOF 10873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17940 /* confdefs.h. */
17941 _ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */ 10874 /* end confdefs.h. */
17945 /* Test program from Paul Eggert and Tony Leneis. */ 10875 /* Test program from Paul Eggert and Tony Leneis. */
17946 #ifdef TIME_WITH_SYS_TIME 10876 #ifdef TIME_WITH_SYS_TIME
17947 # include <sys/time.h> 10877 # include <sys/time.h>
17948 # include <time.h> 10878 # include <time.h>
18135 return 1; 11065 return 1;
18136 } 11066 }
18137 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ()); 11067 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
18138 } 11068 }
18139 _ACEOF 11069 _ACEOF
18140 rm -f conftest$ac_exeext 11070 if ac_fn_c_try_run "$LINENO"; then :
18141 if { (ac_try="$ac_link"
18142 case "(($ac_try" in
18143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18144 *) ac_try_echo=$ac_try;;
18145 esac
18146 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18147 $as_echo "$ac_try_echo") >&5
18148 (eval "$ac_link") 2>&5
18149 ac_status=$?
18150 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18151 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18152 { (case "(($ac_try" in
18153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18154 *) ac_try_echo=$ac_try;;
18155 esac
18156 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18157 $as_echo "$ac_try_echo") >&5
18158 (eval "$ac_try") 2>&5
18159 ac_status=$?
18160 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18161 (exit $ac_status); }; }; then
18162 ac_cv_func_working_mktime=yes 11071 ac_cv_func_working_mktime=yes
18163 else 11072 else
18164 $as_echo "$as_me: program exited with status $ac_status" >&5 11073 ac_cv_func_working_mktime=no
18165 $as_echo "$as_me: failed program was:" >&5 11074 fi
18166 sed 's/^/| /' conftest.$ac_ext >&5 11075 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18167 11076 conftest.$ac_objext conftest.beam conftest.$ac_ext
18168 ( exit $ac_status ) 11077 fi
18169 ac_cv_func_working_mktime=no 11078
18170 fi 11079 fi
18171 rm -rf conftest.dSYM 11080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_working_mktime" >&5
18172 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18173 fi
18174
18175
18176 fi
18177 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
18178 $as_echo "$ac_cv_func_working_mktime" >&6; } 11081 $as_echo "$ac_cv_func_working_mktime" >&6; }
18179 if test $ac_cv_func_working_mktime = no; then 11082 if test $ac_cv_func_working_mktime = no; then
18180 case " $LIBOBJS " in 11083 case " $LIBOBJS " in
18181 *" mktime.$ac_objext "* ) ;; 11084 *" mktime.$ac_objext "* ) ;;
18182 *) LIBOBJS="$LIBOBJS mktime.$ac_objext" 11085 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
18185 11088
18186 fi 11089 fi
18187 11090
18188 if test "$ac_cv_func_working_mktime" = no; then 11091 if test "$ac_cv_func_working_mktime" = no; then
18189 11092
18190 cat >>confdefs.h <<\_ACEOF 11093 $as_echo "#define BROKEN_MKTIME 1" >>confdefs.h
18191 #define BROKEN_MKTIME 1
18192 _ACEOF
18193 11094
18194 fi 11095 fi
18195 11096
18196 ac_have_func=no # yes means we've found a way to get the load average. 11097 ac_have_func=no # yes means we've found a way to get the load average.
18197 11098
18198 # Make sure getloadavg.c is where it belongs, at configure-time. 11099 # Make sure getloadavg.c is where it belongs, at configure-time.
18199 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" || 11100 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
18200 { { $as_echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5 11101 as_fn_error "$srcdir/$ac_config_libobj_dir/getloadavg.c is missing" "$LINENO" 5
18201 $as_echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
18202 { (exit 1); exit 1; }; }
18203 11102
18204 ac_save_LIBS=$LIBS 11103 ac_save_LIBS=$LIBS
18205 11104
18206 # Check for getloadavg, but be sure not to touch the cache variable. 11105 # Check for getloadavg, but be sure not to touch the cache variable.
18207 ({ $as_echo "$as_me:$LINENO: checking for getloadavg" >&5 11106 (ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18208 $as_echo_n "checking for getloadavg... " >&6; } 11107 if test "x$ac_cv_func_getloadavg" = x""yes; then :
18209 if test "${ac_cv_func_getloadavg+set}" = set; then
18210 $as_echo_n "(cached) " >&6
18211 else
18212 cat >conftest.$ac_ext <<_ACEOF
18213 /* confdefs.h. */
18214 _ACEOF
18215 cat confdefs.h >>conftest.$ac_ext
18216 cat >>conftest.$ac_ext <<_ACEOF
18217 /* end confdefs.h. */
18218 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
18219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18220 #define getloadavg innocuous_getloadavg
18221
18222 /* System header to define __stub macros and hopefully few prototypes,
18223 which can conflict with char getloadavg (); below.
18224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18225 <limits.h> exists even on freestanding compilers. */
18226
18227 #ifdef __STDC__
18228 # include <limits.h>
18229 #else
18230 # include <assert.h>
18231 #endif
18232
18233 #undef getloadavg
18234
18235 /* Override any GCC internal prototype to avoid an error.
18236 Use char because int might match the return type of a GCC
18237 builtin and then its argument prototype would still apply. */
18238 #ifdef __cplusplus
18239 extern "C"
18240 #endif
18241 char getloadavg ();
18242 /* The GNU C library defines this for functions which it implements
18243 to always fail with ENOSYS. Some functions are actually named
18244 something starting with __ and the normal name is an alias. */
18245 #if defined __stub_getloadavg || defined __stub___getloadavg
18246 choke me
18247 #endif
18248
18249 int
18250 main ()
18251 {
18252 return getloadavg ();
18253 ;
18254 return 0;
18255 }
18256 _ACEOF
18257 rm -f conftest.$ac_objext conftest$ac_exeext
18258 if { (ac_try="$ac_link"
18259 case "(($ac_try" in
18260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18261 *) ac_try_echo=$ac_try;;
18262 esac
18263 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18264 $as_echo "$ac_try_echo") >&5
18265 (eval "$ac_link") 2>conftest.er1
18266 ac_status=$?
18267 grep -v '^ *+' conftest.er1 >conftest.err
18268 rm -f conftest.er1
18269 cat conftest.err >&5
18270 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18271 (exit $ac_status); } && {
18272 test -z "$ac_c_werror_flag" ||
18273 test ! -s conftest.err
18274 } && test -s conftest$ac_exeext && {
18275 test "$cross_compiling" = yes ||
18276 $as_test_x conftest$ac_exeext
18277 }; then
18278 ac_cv_func_getloadavg=yes
18279 else
18280 $as_echo "$as_me: failed program was:" >&5
18281 sed 's/^/| /' conftest.$ac_ext >&5
18282
18283 ac_cv_func_getloadavg=no
18284 fi
18285
18286 rm -rf conftest.dSYM
18287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18288 conftest$ac_exeext conftest.$ac_ext
18289 fi
18290 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
18291 $as_echo "$ac_cv_func_getloadavg" >&6; }
18292 if test $ac_cv_func_getloadavg = yes; then
18293 exit 0 11108 exit 0
18294 else 11109 else
18295 exit 1 11110 exit 1
18296 fi 11111 fi
18297 ) && ac_have_func=yes 11112 ) && ac_have_func=yes
18298 11113
18299 # On HPUX9, an unprivileged user can get load averages through this function. 11114 # On HPUX9, an unprivileged user can get load averages through this function.
18300
18301 for ac_func in pstat_getdynamic 11115 for ac_func in pstat_getdynamic
18302 do 11116 do :
18303 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11117 ac_fn_c_check_func "$LINENO" "pstat_getdynamic" "ac_cv_func_pstat_getdynamic"
18304 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11118 if test "x$ac_cv_func_pstat_getdynamic" = x""yes; then :
18305 $as_echo_n "checking for $ac_func... " >&6; }
18306 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18307 $as_echo_n "(cached) " >&6
18308 else
18309 cat >conftest.$ac_ext <<_ACEOF
18310 /* confdefs.h. */
18311 _ACEOF
18312 cat confdefs.h >>conftest.$ac_ext
18313 cat >>conftest.$ac_ext <<_ACEOF
18314 /* end confdefs.h. */
18315 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18316 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18317 #define $ac_func innocuous_$ac_func
18318
18319 /* System header to define __stub macros and hopefully few prototypes,
18320 which can conflict with char $ac_func (); below.
18321 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18322 <limits.h> exists even on freestanding compilers. */
18323
18324 #ifdef __STDC__
18325 # include <limits.h>
18326 #else
18327 # include <assert.h>
18328 #endif
18329
18330 #undef $ac_func
18331
18332 /* Override any GCC internal prototype to avoid an error.
18333 Use char because int might match the return type of a GCC
18334 builtin and then its argument prototype would still apply. */
18335 #ifdef __cplusplus
18336 extern "C"
18337 #endif
18338 char $ac_func ();
18339 /* The GNU C library defines this for functions which it implements
18340 to always fail with ENOSYS. Some functions are actually named
18341 something starting with __ and the normal name is an alias. */
18342 #if defined __stub_$ac_func || defined __stub___$ac_func
18343 choke me
18344 #endif
18345
18346 int
18347 main ()
18348 {
18349 return $ac_func ();
18350 ;
18351 return 0;
18352 }
18353 _ACEOF
18354 rm -f conftest.$ac_objext conftest$ac_exeext
18355 if { (ac_try="$ac_link"
18356 case "(($ac_try" in
18357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18358 *) ac_try_echo=$ac_try;;
18359 esac
18360 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18361 $as_echo "$ac_try_echo") >&5
18362 (eval "$ac_link") 2>conftest.er1
18363 ac_status=$?
18364 grep -v '^ *+' conftest.er1 >conftest.err
18365 rm -f conftest.er1
18366 cat conftest.err >&5
18367 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18368 (exit $ac_status); } && {
18369 test -z "$ac_c_werror_flag" ||
18370 test ! -s conftest.err
18371 } && test -s conftest$ac_exeext && {
18372 test "$cross_compiling" = yes ||
18373 $as_test_x conftest$ac_exeext
18374 }; then
18375 eval "$as_ac_var=yes"
18376 else
18377 $as_echo "$as_me: failed program was:" >&5
18378 sed 's/^/| /' conftest.$ac_ext >&5
18379
18380 eval "$as_ac_var=no"
18381 fi
18382
18383 rm -rf conftest.dSYM
18384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18385 conftest$ac_exeext conftest.$ac_ext
18386 fi
18387 ac_res=`eval 'as_val=${'$as_ac_var'}
18388 $as_echo "$as_val"'`
18389 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18390 $as_echo "$ac_res" >&6; }
18391 if test `eval 'as_val=${'$as_ac_var'}
18392 $as_echo "$as_val"'` = yes; then
18393 cat >>confdefs.h <<_ACEOF 11119 cat >>confdefs.h <<_ACEOF
18394 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11120 #define HAVE_PSTAT_GETDYNAMIC 1
18395 _ACEOF 11121 _ACEOF
18396 11122
18397 fi 11123 fi
18398 done 11124 done
18399 11125
18400 11126
18401 # Solaris has libkstat which does not require root. 11127 # Solaris has libkstat which does not require root.
18402 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
18403 { $as_echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
18404 $as_echo_n "checking for kstat_open in -lkstat... " >&6; } 11129 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
18405 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then 11130 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then :
18406 $as_echo_n "(cached) " >&6 11131 $as_echo_n "(cached) " >&6
18407 else 11132 else
18408 ac_check_lib_save_LIBS=$LIBS 11133 ac_check_lib_save_LIBS=$LIBS
18409 LIBS="-lkstat $LIBS" 11134 LIBS="-lkstat $LIBS"
18410 cat >conftest.$ac_ext <<_ACEOF 11135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18411 /* confdefs.h. */
18412 _ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h. */ 11136 /* end confdefs.h. */
18416 11137
18417 /* Override any GCC internal prototype to avoid an error. 11138 /* Override any GCC internal prototype to avoid an error.
18418 Use char because int might match the return type of a GCC 11139 Use char because int might match the return type of a GCC
18419 builtin and then its argument prototype would still apply. */ 11140 builtin and then its argument prototype would still apply. */
18427 return kstat_open (); 11148 return kstat_open ();
18428 ; 11149 ;
18429 return 0; 11150 return 0;
18430 } 11151 }
18431 _ACEOF 11152 _ACEOF
18432 rm -f conftest.$ac_objext conftest$ac_exeext 11153 if ac_fn_c_try_link "$LINENO"; then :
18433 if { (ac_try="$ac_link"
18434 case "(($ac_try" in
18435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18436 *) ac_try_echo=$ac_try;;
18437 esac
18438 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18439 $as_echo "$ac_try_echo") >&5
18440 (eval "$ac_link") 2>conftest.er1
18441 ac_status=$?
18442 grep -v '^ *+' conftest.er1 >conftest.err
18443 rm -f conftest.er1
18444 cat conftest.err >&5
18445 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18446 (exit $ac_status); } && {
18447 test -z "$ac_c_werror_flag" ||
18448 test ! -s conftest.err
18449 } && test -s conftest$ac_exeext && {
18450 test "$cross_compiling" = yes ||
18451 $as_test_x conftest$ac_exeext
18452 }; then
18453 ac_cv_lib_kstat_kstat_open=yes 11154 ac_cv_lib_kstat_kstat_open=yes
18454 else 11155 else
18455 $as_echo "$as_me: failed program was:" >&5 11156 ac_cv_lib_kstat_kstat_open=no
18456 sed 's/^/| /' conftest.$ac_ext >&5 11157 fi
18457 11158 rm -f core conftest.err conftest.$ac_objext \
18458 ac_cv_lib_kstat_kstat_open=no 11159 conftest$ac_exeext conftest.$ac_ext
18459 fi
18460
18461 rm -rf conftest.dSYM
18462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18463 conftest$ac_exeext conftest.$ac_ext
18464 LIBS=$ac_check_lib_save_LIBS 11160 LIBS=$ac_check_lib_save_LIBS
18465 fi 11161 fi
18466 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5 11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
18467 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; } 11163 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
18468 if test $ac_cv_lib_kstat_kstat_open = yes; then 11164 if test "x$ac_cv_lib_kstat_kstat_open" = x""yes; then :
18469 cat >>confdefs.h <<_ACEOF 11165 cat >>confdefs.h <<_ACEOF
18470 #define HAVE_LIBKSTAT 1 11166 #define HAVE_LIBKSTAT 1
18471 _ACEOF 11167 _ACEOF
18472 11168
18473 LIBS="-lkstat $LIBS" 11169 LIBS="-lkstat $LIBS"
18479 # Some systems with -lutil have (and need) -lkvm as well, some do not. 11175 # Some systems with -lutil have (and need) -lkvm as well, some do not.
18480 # On Solaris, -lkvm requires nlist from -lelf, so check that first 11176 # On Solaris, -lkvm requires nlist from -lelf, so check that first
18481 # to get the right answer into the cache. 11177 # to get the right answer into the cache.
18482 # For kstat on solaris, we need libelf to force the definition of SVR4 below. 11178 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
18483 if test $ac_have_func = no; then 11179 if test $ac_have_func = no; then
18484 { $as_echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5 11180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for elf_begin in -lelf" >&5
18485 $as_echo_n "checking for elf_begin in -lelf... " >&6; } 11181 $as_echo_n "checking for elf_begin in -lelf... " >&6; }
18486 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then 11182 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then :
18487 $as_echo_n "(cached) " >&6 11183 $as_echo_n "(cached) " >&6
18488 else 11184 else
18489 ac_check_lib_save_LIBS=$LIBS 11185 ac_check_lib_save_LIBS=$LIBS
18490 LIBS="-lelf $LIBS" 11186 LIBS="-lelf $LIBS"
18491 cat >conftest.$ac_ext <<_ACEOF 11187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18492 /* confdefs.h. */
18493 _ACEOF
18494 cat confdefs.h >>conftest.$ac_ext
18495 cat >>conftest.$ac_ext <<_ACEOF
18496 /* end confdefs.h. */ 11188 /* end confdefs.h. */
18497 11189
18498 /* Override any GCC internal prototype to avoid an error. 11190 /* Override any GCC internal prototype to avoid an error.
18499 Use char because int might match the return type of a GCC 11191 Use char because int might match the return type of a GCC
18500 builtin and then its argument prototype would still apply. */ 11192 builtin and then its argument prototype would still apply. */
18508 return elf_begin (); 11200 return elf_begin ();
18509 ; 11201 ;
18510 return 0; 11202 return 0;
18511 } 11203 }
18512 _ACEOF 11204 _ACEOF
18513 rm -f conftest.$ac_objext conftest$ac_exeext 11205 if ac_fn_c_try_link "$LINENO"; then :
18514 if { (ac_try="$ac_link"
18515 case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18518 esac
18519 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18520 $as_echo "$ac_try_echo") >&5
18521 (eval "$ac_link") 2>conftest.er1
18522 ac_status=$?
18523 grep -v '^ *+' conftest.er1 >conftest.err
18524 rm -f conftest.er1
18525 cat conftest.err >&5
18526 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); } && {
18528 test -z "$ac_c_werror_flag" ||
18529 test ! -s conftest.err
18530 } && test -s conftest$ac_exeext && {
18531 test "$cross_compiling" = yes ||
18532 $as_test_x conftest$ac_exeext
18533 }; then
18534 ac_cv_lib_elf_elf_begin=yes 11206 ac_cv_lib_elf_elf_begin=yes
18535 else 11207 else
18536 $as_echo "$as_me: failed program was:" >&5 11208 ac_cv_lib_elf_elf_begin=no
18537 sed 's/^/| /' conftest.$ac_ext >&5 11209 fi
18538 11210 rm -f core conftest.err conftest.$ac_objext \
18539 ac_cv_lib_elf_elf_begin=no 11211 conftest$ac_exeext conftest.$ac_ext
18540 fi
18541
18542 rm -rf conftest.dSYM
18543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18544 conftest$ac_exeext conftest.$ac_ext
18545 LIBS=$ac_check_lib_save_LIBS 11212 LIBS=$ac_check_lib_save_LIBS
18546 fi 11213 fi
18547 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5 11214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_elf_elf_begin" >&5
18548 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; } 11215 $as_echo "$ac_cv_lib_elf_elf_begin" >&6; }
18549 if test $ac_cv_lib_elf_elf_begin = yes; then 11216 if test "x$ac_cv_lib_elf_elf_begin" = x""yes; then :
18550 LIBS="-lelf $LIBS" 11217 LIBS="-lelf $LIBS"
18551 fi 11218 fi
18552 11219
18553 fi 11220 fi
18554 if test $ac_have_func = no; then 11221 if test $ac_have_func = no; then
18555 { $as_echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5 11222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_open in -lkvm" >&5
18556 $as_echo_n "checking for kvm_open in -lkvm... " >&6; } 11223 $as_echo_n "checking for kvm_open in -lkvm... " >&6; }
18557 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then 11224 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then :
18558 $as_echo_n "(cached) " >&6 11225 $as_echo_n "(cached) " >&6
18559 else 11226 else
18560 ac_check_lib_save_LIBS=$LIBS 11227 ac_check_lib_save_LIBS=$LIBS
18561 LIBS="-lkvm $LIBS" 11228 LIBS="-lkvm $LIBS"
18562 cat >conftest.$ac_ext <<_ACEOF 11229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* confdefs.h. */
18564 _ACEOF
18565 cat confdefs.h >>conftest.$ac_ext
18566 cat >>conftest.$ac_ext <<_ACEOF
18567 /* end confdefs.h. */ 11230 /* end confdefs.h. */
18568 11231
18569 /* Override any GCC internal prototype to avoid an error. 11232 /* Override any GCC internal prototype to avoid an error.
18570 Use char because int might match the return type of a GCC 11233 Use char because int might match the return type of a GCC
18571 builtin and then its argument prototype would still apply. */ 11234 builtin and then its argument prototype would still apply. */
18579 return kvm_open (); 11242 return kvm_open ();
18580 ; 11243 ;
18581 return 0; 11244 return 0;
18582 } 11245 }
18583 _ACEOF 11246 _ACEOF
18584 rm -f conftest.$ac_objext conftest$ac_exeext 11247 if ac_fn_c_try_link "$LINENO"; then :
18585 if { (ac_try="$ac_link"
18586 case "(($ac_try" in
18587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18588 *) ac_try_echo=$ac_try;;
18589 esac
18590 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18591 $as_echo "$ac_try_echo") >&5
18592 (eval "$ac_link") 2>conftest.er1
18593 ac_status=$?
18594 grep -v '^ *+' conftest.er1 >conftest.err
18595 rm -f conftest.er1
18596 cat conftest.err >&5
18597 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18598 (exit $ac_status); } && {
18599 test -z "$ac_c_werror_flag" ||
18600 test ! -s conftest.err
18601 } && test -s conftest$ac_exeext && {
18602 test "$cross_compiling" = yes ||
18603 $as_test_x conftest$ac_exeext
18604 }; then
18605 ac_cv_lib_kvm_kvm_open=yes 11248 ac_cv_lib_kvm_kvm_open=yes
18606 else 11249 else
18607 $as_echo "$as_me: failed program was:" >&5 11250 ac_cv_lib_kvm_kvm_open=no
18608 sed 's/^/| /' conftest.$ac_ext >&5 11251 fi
18609 11252 rm -f core conftest.err conftest.$ac_objext \
18610 ac_cv_lib_kvm_kvm_open=no 11253 conftest$ac_exeext conftest.$ac_ext
18611 fi
18612
18613 rm -rf conftest.dSYM
18614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18615 conftest$ac_exeext conftest.$ac_ext
18616 LIBS=$ac_check_lib_save_LIBS 11254 LIBS=$ac_check_lib_save_LIBS
18617 fi 11255 fi
18618 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5 11256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_open" >&5
18619 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; } 11257 $as_echo "$ac_cv_lib_kvm_kvm_open" >&6; }
18620 if test $ac_cv_lib_kvm_kvm_open = yes; then 11258 if test "x$ac_cv_lib_kvm_kvm_open" = x""yes; then :
18621 LIBS="-lkvm $LIBS" 11259 LIBS="-lkvm $LIBS"
18622 fi 11260 fi
18623 11261
18624 # Check for the 4.4BSD definition of getloadavg. 11262 # Check for the 4.4BSD definition of getloadavg.
18625 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5 11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lutil" >&5
18626 $as_echo_n "checking for getloadavg in -lutil... " >&6; } 11264 $as_echo_n "checking for getloadavg in -lutil... " >&6; }
18627 if test "${ac_cv_lib_util_getloadavg+set}" = set; then 11265 if test "${ac_cv_lib_util_getloadavg+set}" = set; then :
18628 $as_echo_n "(cached) " >&6 11266 $as_echo_n "(cached) " >&6
18629 else 11267 else
18630 ac_check_lib_save_LIBS=$LIBS 11268 ac_check_lib_save_LIBS=$LIBS
18631 LIBS="-lutil $LIBS" 11269 LIBS="-lutil $LIBS"
18632 cat >conftest.$ac_ext <<_ACEOF 11270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18633 /* confdefs.h. */
18634 _ACEOF
18635 cat confdefs.h >>conftest.$ac_ext
18636 cat >>conftest.$ac_ext <<_ACEOF
18637 /* end confdefs.h. */ 11271 /* end confdefs.h. */
18638 11272
18639 /* Override any GCC internal prototype to avoid an error. 11273 /* Override any GCC internal prototype to avoid an error.
18640 Use char because int might match the return type of a GCC 11274 Use char because int might match the return type of a GCC
18641 builtin and then its argument prototype would still apply. */ 11275 builtin and then its argument prototype would still apply. */
18649 return getloadavg (); 11283 return getloadavg ();
18650 ; 11284 ;
18651 return 0; 11285 return 0;
18652 } 11286 }
18653 _ACEOF 11287 _ACEOF
18654 rm -f conftest.$ac_objext conftest$ac_exeext 11288 if ac_fn_c_try_link "$LINENO"; then :
18655 if { (ac_try="$ac_link"
18656 case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18659 esac
18660 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18661 $as_echo "$ac_try_echo") >&5
18662 (eval "$ac_link") 2>conftest.er1
18663 ac_status=$?
18664 grep -v '^ *+' conftest.er1 >conftest.err
18665 rm -f conftest.er1
18666 cat conftest.err >&5
18667 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18668 (exit $ac_status); } && {
18669 test -z "$ac_c_werror_flag" ||
18670 test ! -s conftest.err
18671 } && test -s conftest$ac_exeext && {
18672 test "$cross_compiling" = yes ||
18673 $as_test_x conftest$ac_exeext
18674 }; then
18675 ac_cv_lib_util_getloadavg=yes 11289 ac_cv_lib_util_getloadavg=yes
18676 else 11290 else
18677 $as_echo "$as_me: failed program was:" >&5 11291 ac_cv_lib_util_getloadavg=no
18678 sed 's/^/| /' conftest.$ac_ext >&5 11292 fi
18679 11293 rm -f core conftest.err conftest.$ac_objext \
18680 ac_cv_lib_util_getloadavg=no 11294 conftest$ac_exeext conftest.$ac_ext
18681 fi
18682
18683 rm -rf conftest.dSYM
18684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18685 conftest$ac_exeext conftest.$ac_ext
18686 LIBS=$ac_check_lib_save_LIBS 11295 LIBS=$ac_check_lib_save_LIBS
18687 fi 11296 fi
18688 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5 11297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_util_getloadavg" >&5
18689 $as_echo "$ac_cv_lib_util_getloadavg" >&6; } 11298 $as_echo "$ac_cv_lib_util_getloadavg" >&6; }
18690 if test $ac_cv_lib_util_getloadavg = yes; then 11299 if test "x$ac_cv_lib_util_getloadavg" = x""yes; then :
18691 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes 11300 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18692 fi 11301 fi
18693 11302
18694 fi 11303 fi
18695 11304
18696 if test $ac_have_func = no; then 11305 if test $ac_have_func = no; then
18697 # There is a commonly available library for RS/6000 AIX. 11306 # There is a commonly available library for RS/6000 AIX.
18698 # Since it is not a standard part of AIX, it might be installed locally. 11307 # Since it is not a standard part of AIX, it might be installed locally.
18699 ac_getloadavg_LIBS=$LIBS 11308 ac_getloadavg_LIBS=$LIBS
18700 LIBS="-L/usr/local/lib $LIBS" 11309 LIBS="-L/usr/local/lib $LIBS"
18701 { $as_echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getloadavg in -lgetloadavg" >&5
18702 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; } 11311 $as_echo_n "checking for getloadavg in -lgetloadavg... " >&6; }
18703 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then 11312 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then :
18704 $as_echo_n "(cached) " >&6 11313 $as_echo_n "(cached) " >&6
18705 else 11314 else
18706 ac_check_lib_save_LIBS=$LIBS 11315 ac_check_lib_save_LIBS=$LIBS
18707 LIBS="-lgetloadavg $LIBS" 11316 LIBS="-lgetloadavg $LIBS"
18708 cat >conftest.$ac_ext <<_ACEOF 11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18709 /* confdefs.h. */
18710 _ACEOF
18711 cat confdefs.h >>conftest.$ac_ext
18712 cat >>conftest.$ac_ext <<_ACEOF
18713 /* end confdefs.h. */ 11318 /* end confdefs.h. */
18714 11319
18715 /* Override any GCC internal prototype to avoid an error. 11320 /* Override any GCC internal prototype to avoid an error.
18716 Use char because int might match the return type of a GCC 11321 Use char because int might match the return type of a GCC
18717 builtin and then its argument prototype would still apply. */ 11322 builtin and then its argument prototype would still apply. */
18725 return getloadavg (); 11330 return getloadavg ();
18726 ; 11331 ;
18727 return 0; 11332 return 0;
18728 } 11333 }
18729 _ACEOF 11334 _ACEOF
18730 rm -f conftest.$ac_objext conftest$ac_exeext 11335 if ac_fn_c_try_link "$LINENO"; then :
18731 if { (ac_try="$ac_link"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18735 esac
18736 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18737 $as_echo "$ac_try_echo") >&5
18738 (eval "$ac_link") 2>conftest.er1
18739 ac_status=$?
18740 grep -v '^ *+' conftest.er1 >conftest.err
18741 rm -f conftest.er1
18742 cat conftest.err >&5
18743 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18744 (exit $ac_status); } && {
18745 test -z "$ac_c_werror_flag" ||
18746 test ! -s conftest.err
18747 } && test -s conftest$ac_exeext && {
18748 test "$cross_compiling" = yes ||
18749 $as_test_x conftest$ac_exeext
18750 }; then
18751 ac_cv_lib_getloadavg_getloadavg=yes 11336 ac_cv_lib_getloadavg_getloadavg=yes
18752 else 11337 else
18753 $as_echo "$as_me: failed program was:" >&5 11338 ac_cv_lib_getloadavg_getloadavg=no
18754 sed 's/^/| /' conftest.$ac_ext >&5 11339 fi
18755 11340 rm -f core conftest.err conftest.$ac_objext \
18756 ac_cv_lib_getloadavg_getloadavg=no 11341 conftest$ac_exeext conftest.$ac_ext
18757 fi
18758
18759 rm -rf conftest.dSYM
18760 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18761 conftest$ac_exeext conftest.$ac_ext
18762 LIBS=$ac_check_lib_save_LIBS 11342 LIBS=$ac_check_lib_save_LIBS
18763 fi 11343 fi
18764 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5 11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18765 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; } 11345 $as_echo "$ac_cv_lib_getloadavg_getloadavg" >&6; }
18766 if test $ac_cv_lib_getloadavg_getloadavg = yes; then 11346 if test "x$ac_cv_lib_getloadavg_getloadavg" = x""yes; then :
18767 LIBS="-lgetloadavg $LIBS" 11347 LIBS="-lgetloadavg $LIBS"
18768 else 11348 else
18769 LIBS=$ac_getloadavg_LIBS 11349 LIBS=$ac_getloadavg_LIBS
18770 fi 11350 fi
18771 11351
18772 fi 11352 fi
18773 11353
18774 # Make sure it is really in the library, if we think we found it, 11354 # Make sure it is really in the library, if we think we found it,
18775 # otherwise set up the replacement function. 11355 # otherwise set up the replacement function.
18776
18777 for ac_func in getloadavg 11356 for ac_func in getloadavg
18778 do 11357 do :
18779 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11358 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
18780 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11359 if test "x$ac_cv_func_getloadavg" = x""yes; then :
18781 $as_echo_n "checking for $ac_func... " >&6; }
18782 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18783 $as_echo_n "(cached) " >&6
18784 else
18785 cat >conftest.$ac_ext <<_ACEOF
18786 /* confdefs.h. */
18787 _ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18791 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18793 #define $ac_func innocuous_$ac_func
18794
18795 /* System header to define __stub macros and hopefully few prototypes,
18796 which can conflict with char $ac_func (); below.
18797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18798 <limits.h> exists even on freestanding compilers. */
18799
18800 #ifdef __STDC__
18801 # include <limits.h>
18802 #else
18803 # include <assert.h>
18804 #endif
18805
18806 #undef $ac_func
18807
18808 /* Override any GCC internal prototype to avoid an error.
18809 Use char because int might match the return type of a GCC
18810 builtin and then its argument prototype would still apply. */
18811 #ifdef __cplusplus
18812 extern "C"
18813 #endif
18814 char $ac_func ();
18815 /* The GNU C library defines this for functions which it implements
18816 to always fail with ENOSYS. Some functions are actually named
18817 something starting with __ and the normal name is an alias. */
18818 #if defined __stub_$ac_func || defined __stub___$ac_func
18819 choke me
18820 #endif
18821
18822 int
18823 main ()
18824 {
18825 return $ac_func ();
18826 ;
18827 return 0;
18828 }
18829 _ACEOF
18830 rm -f conftest.$ac_objext conftest$ac_exeext
18831 if { (ac_try="$ac_link"
18832 case "(($ac_try" in
18833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18834 *) ac_try_echo=$ac_try;;
18835 esac
18836 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18837 $as_echo "$ac_try_echo") >&5
18838 (eval "$ac_link") 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } && {
18845 test -z "$ac_c_werror_flag" ||
18846 test ! -s conftest.err
18847 } && test -s conftest$ac_exeext && {
18848 test "$cross_compiling" = yes ||
18849 $as_test_x conftest$ac_exeext
18850 }; then
18851 eval "$as_ac_var=yes"
18852 else
18853 $as_echo "$as_me: failed program was:" >&5
18854 sed 's/^/| /' conftest.$ac_ext >&5
18855
18856 eval "$as_ac_var=no"
18857 fi
18858
18859 rm -rf conftest.dSYM
18860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18861 conftest$ac_exeext conftest.$ac_ext
18862 fi
18863 ac_res=`eval 'as_val=${'$as_ac_var'}
18864 $as_echo "$as_val"'`
18865 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
18866 $as_echo "$ac_res" >&6; }
18867 if test `eval 'as_val=${'$as_ac_var'}
18868 $as_echo "$as_val"'` = yes; then
18869 cat >>confdefs.h <<_ACEOF 11360 cat >>confdefs.h <<_ACEOF
18870 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11361 #define HAVE_GETLOADAVG 1
18871 _ACEOF 11362 _ACEOF
18872 11363
18873 else 11364 else
18874 case " $LIBOBJS " in 11365 case " $LIBOBJS " in
18875 *" getloadavg.$ac_objext "* ) ;; 11366 *" getloadavg.$ac_objext "* ) ;;
18876 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext" 11367 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18877 ;; 11368 ;;
18878 esac 11369 esac
18879 11370
18880 11371
18881 cat >>confdefs.h <<\_ACEOF 11372 $as_echo "#define C_GETLOADAVG 1" >>confdefs.h
18882 #define C_GETLOADAVG 1
18883 _ACEOF
18884 11373
18885 # Figure out what our getloadavg.c needs. 11374 # Figure out what our getloadavg.c needs.
18886 ac_have_func=no 11375 ac_have_func=no
18887 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then 11376 ac_fn_c_check_header_mongrel "$LINENO" "sys/dg_sys_info.h" "ac_cv_header_sys_dg_sys_info_h" "$ac_includes_default"
18888 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 11377 if test "x$ac_cv_header_sys_dg_sys_info_h" = x""yes; then :
18889 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
18890 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18891 $as_echo_n "(cached) " >&6
18892 fi
18893 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18894 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
18895 else
18896 # Is the header compilable?
18897 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18898 $as_echo_n "checking sys/dg_sys_info.h usability... " >&6; }
18899 cat >conftest.$ac_ext <<_ACEOF
18900 /* confdefs.h. */
18901 _ACEOF
18902 cat confdefs.h >>conftest.$ac_ext
18903 cat >>conftest.$ac_ext <<_ACEOF
18904 /* end confdefs.h. */
18905 $ac_includes_default
18906 #include <sys/dg_sys_info.h>
18907 _ACEOF
18908 rm -f conftest.$ac_objext
18909 if { (ac_try="$ac_compile"
18910 case "(($ac_try" in
18911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18912 *) ac_try_echo=$ac_try;;
18913 esac
18914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18915 $as_echo "$ac_try_echo") >&5
18916 (eval "$ac_compile") 2>conftest.er1
18917 ac_status=$?
18918 grep -v '^ *+' conftest.er1 >conftest.err
18919 rm -f conftest.er1
18920 cat conftest.err >&5
18921 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18922 (exit $ac_status); } && {
18923 test -z "$ac_c_werror_flag" ||
18924 test ! -s conftest.err
18925 } && test -s conftest.$ac_objext; then
18926 ac_header_compiler=yes
18927 else
18928 $as_echo "$as_me: failed program was:" >&5
18929 sed 's/^/| /' conftest.$ac_ext >&5
18930
18931 ac_header_compiler=no
18932 fi
18933
18934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18935 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18936 $as_echo "$ac_header_compiler" >&6; }
18937
18938 # Is the header present?
18939 { $as_echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18940 $as_echo_n "checking sys/dg_sys_info.h presence... " >&6; }
18941 cat >conftest.$ac_ext <<_ACEOF
18942 /* confdefs.h. */
18943 _ACEOF
18944 cat confdefs.h >>conftest.$ac_ext
18945 cat >>conftest.$ac_ext <<_ACEOF
18946 /* end confdefs.h. */
18947 #include <sys/dg_sys_info.h>
18948 _ACEOF
18949 if { (ac_try="$ac_cpp conftest.$ac_ext"
18950 case "(($ac_try" in
18951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18952 *) ac_try_echo=$ac_try;;
18953 esac
18954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
18955 $as_echo "$ac_try_echo") >&5
18956 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18957 ac_status=$?
18958 grep -v '^ *+' conftest.er1 >conftest.err
18959 rm -f conftest.er1
18960 cat conftest.err >&5
18961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18962 (exit $ac_status); } >/dev/null && {
18963 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18964 test ! -s conftest.err
18965 }; then
18966 ac_header_preproc=yes
18967 else
18968 $as_echo "$as_me: failed program was:" >&5
18969 sed 's/^/| /' conftest.$ac_ext >&5
18970
18971 ac_header_preproc=no
18972 fi
18973
18974 rm -f conftest.err conftest.$ac_ext
18975 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18976 $as_echo "$ac_header_preproc" >&6; }
18977
18978 # So? What about this header?
18979 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18980 yes:no: )
18981 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18982 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18983 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18984 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18985 ac_header_preproc=yes
18986 ;;
18987 no:yes:* )
18988 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18989 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18990 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18991 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18992 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18993 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18994 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18995 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18996 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18997 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18998 { $as_echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18999 $as_echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
19000
19001 ;;
19002 esac
19003 { $as_echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
19004 $as_echo_n "checking for sys/dg_sys_info.h... " >&6; }
19005 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
19006 $as_echo_n "(cached) " >&6
19007 else
19008 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
19009 fi
19010 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
19011 $as_echo "$ac_cv_header_sys_dg_sys_info_h" >&6; }
19012
19013 fi
19014 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
19015 ac_have_func=yes 11378 ac_have_func=yes
19016 11379
19017 cat >>confdefs.h <<\_ACEOF 11380 $as_echo "#define DGUX 1" >>confdefs.h
19018 #define DGUX 1 11381
19019 _ACEOF 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dg_sys_info in -ldgc" >&5
19020
19021
19022 { $as_echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
19023 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; } 11383 $as_echo_n "checking for dg_sys_info in -ldgc... " >&6; }
19024 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then 11384 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then :
19025 $as_echo_n "(cached) " >&6 11385 $as_echo_n "(cached) " >&6
19026 else 11386 else
19027 ac_check_lib_save_LIBS=$LIBS 11387 ac_check_lib_save_LIBS=$LIBS
19028 LIBS="-ldgc $LIBS" 11388 LIBS="-ldgc $LIBS"
19029 cat >conftest.$ac_ext <<_ACEOF 11389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19030 /* confdefs.h. */
19031 _ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h. */ 11390 /* end confdefs.h. */
19035 11391
19036 /* Override any GCC internal prototype to avoid an error. 11392 /* Override any GCC internal prototype to avoid an error.
19037 Use char because int might match the return type of a GCC 11393 Use char because int might match the return type of a GCC
19038 builtin and then its argument prototype would still apply. */ 11394 builtin and then its argument prototype would still apply. */
19046 return dg_sys_info (); 11402 return dg_sys_info ();
19047 ; 11403 ;
19048 return 0; 11404 return 0;
19049 } 11405 }
19050 _ACEOF 11406 _ACEOF
19051 rm -f conftest.$ac_objext conftest$ac_exeext 11407 if ac_fn_c_try_link "$LINENO"; then :
19052 if { (ac_try="$ac_link"
19053 case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19056 esac
19057 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19058 $as_echo "$ac_try_echo") >&5
19059 (eval "$ac_link") 2>conftest.er1
19060 ac_status=$?
19061 grep -v '^ *+' conftest.er1 >conftest.err
19062 rm -f conftest.er1
19063 cat conftest.err >&5
19064 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19065 (exit $ac_status); } && {
19066 test -z "$ac_c_werror_flag" ||
19067 test ! -s conftest.err
19068 } && test -s conftest$ac_exeext && {
19069 test "$cross_compiling" = yes ||
19070 $as_test_x conftest$ac_exeext
19071 }; then
19072 ac_cv_lib_dgc_dg_sys_info=yes 11408 ac_cv_lib_dgc_dg_sys_info=yes
19073 else 11409 else
19074 $as_echo "$as_me: failed program was:" >&5 11410 ac_cv_lib_dgc_dg_sys_info=no
19075 sed 's/^/| /' conftest.$ac_ext >&5 11411 fi
19076 11412 rm -f core conftest.err conftest.$ac_objext \
19077 ac_cv_lib_dgc_dg_sys_info=no 11413 conftest$ac_exeext conftest.$ac_ext
19078 fi
19079
19080 rm -rf conftest.dSYM
19081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19082 conftest$ac_exeext conftest.$ac_ext
19083 LIBS=$ac_check_lib_save_LIBS 11414 LIBS=$ac_check_lib_save_LIBS
19084 fi 11415 fi
19085 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dgc_dg_sys_info" >&5
19086 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; } 11417 $as_echo "$ac_cv_lib_dgc_dg_sys_info" >&6; }
19087 if test $ac_cv_lib_dgc_dg_sys_info = yes; then 11418 if test "x$ac_cv_lib_dgc_dg_sys_info" = x""yes; then :
19088 cat >>confdefs.h <<_ACEOF 11419 cat >>confdefs.h <<_ACEOF
19089 #define HAVE_LIBDGC 1 11420 #define HAVE_LIBDGC 1
19090 _ACEOF 11421 _ACEOF
19091 11422
19092 LIBS="-ldgc $LIBS" 11423 LIBS="-ldgc $LIBS"
19095 11426
19096 fi 11427 fi
19097 11428
19098 11429
19099 11430
19100 if test "${ac_cv_header_locale_h+set}" = set; then 11431 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
19101 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5 11432 if test "x$ac_cv_header_locale_h" = x""yes; then :
19102 $as_echo_n "checking for locale.h... " >&6; } 11433
19103 if test "${ac_cv_header_locale_h+set}" = set; then 11434 fi
19104 $as_echo_n "(cached) " >&6
19105 fi
19106 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19107 $as_echo "$ac_cv_header_locale_h" >&6; }
19108 else
19109 # Is the header compilable?
19110 { $as_echo "$as_me:$LINENO: checking locale.h usability" >&5
19111 $as_echo_n "checking locale.h usability... " >&6; }
19112 cat >conftest.$ac_ext <<_ACEOF
19113 /* confdefs.h. */
19114 _ACEOF
19115 cat confdefs.h >>conftest.$ac_ext
19116 cat >>conftest.$ac_ext <<_ACEOF
19117 /* end confdefs.h. */
19118 $ac_includes_default
19119 #include <locale.h>
19120 _ACEOF
19121 rm -f conftest.$ac_objext
19122 if { (ac_try="$ac_compile"
19123 case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19126 esac
19127 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19128 $as_echo "$ac_try_echo") >&5
19129 (eval "$ac_compile") 2>conftest.er1
19130 ac_status=$?
19131 grep -v '^ *+' conftest.er1 >conftest.err
19132 rm -f conftest.er1
19133 cat conftest.err >&5
19134 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19135 (exit $ac_status); } && {
19136 test -z "$ac_c_werror_flag" ||
19137 test ! -s conftest.err
19138 } && test -s conftest.$ac_objext; then
19139 ac_header_compiler=yes
19140 else
19141 $as_echo "$as_me: failed program was:" >&5
19142 sed 's/^/| /' conftest.$ac_ext >&5
19143
19144 ac_header_compiler=no
19145 fi
19146
19147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19148 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19149 $as_echo "$ac_header_compiler" >&6; }
19150
19151 # Is the header present?
19152 { $as_echo "$as_me:$LINENO: checking locale.h presence" >&5
19153 $as_echo_n "checking locale.h presence... " >&6; }
19154 cat >conftest.$ac_ext <<_ACEOF
19155 /* confdefs.h. */
19156 _ACEOF
19157 cat confdefs.h >>conftest.$ac_ext
19158 cat >>conftest.$ac_ext <<_ACEOF
19159 /* end confdefs.h. */
19160 #include <locale.h>
19161 _ACEOF
19162 if { (ac_try="$ac_cpp conftest.$ac_ext"
19163 case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166 esac
19167 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19168 $as_echo "$ac_try_echo") >&5
19169 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19170 ac_status=$?
19171 grep -v '^ *+' conftest.er1 >conftest.err
19172 rm -f conftest.er1
19173 cat conftest.err >&5
19174 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19175 (exit $ac_status); } >/dev/null && {
19176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19177 test ! -s conftest.err
19178 }; then
19179 ac_header_preproc=yes
19180 else
19181 $as_echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19183
19184 ac_header_preproc=no
19185 fi
19186
19187 rm -f conftest.err conftest.$ac_ext
19188 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19189 $as_echo "$ac_header_preproc" >&6; }
19190
19191 # So? What about this header?
19192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19193 yes:no: )
19194 { $as_echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
19195 $as_echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19196 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
19197 $as_echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
19198 ac_header_preproc=yes
19199 ;;
19200 no:yes:* )
19201 { $as_echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
19202 $as_echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
19203 { $as_echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
19204 $as_echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
19205 { $as_echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
19206 $as_echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
19207 { $as_echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
19208 $as_echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
19209 { $as_echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
19210 $as_echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
19211 { $as_echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
19212 $as_echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
19213
19214 ;;
19215 esac
19216 { $as_echo "$as_me:$LINENO: checking for locale.h" >&5
19217 $as_echo_n "checking for locale.h... " >&6; }
19218 if test "${ac_cv_header_locale_h+set}" = set; then
19219 $as_echo_n "(cached) " >&6
19220 else
19221 ac_cv_header_locale_h=$ac_header_preproc
19222 fi
19223 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
19224 $as_echo "$ac_cv_header_locale_h" >&6; }
19225
19226 fi
19227
19228 11435
19229 11436
19230 for ac_func in setlocale 11437 for ac_func in setlocale
19231 do 11438 do :
19232 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11439 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
19233 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11440 if test "x$ac_cv_func_setlocale" = x""yes; then :
19234 $as_echo_n "checking for $ac_func... " >&6; }
19235 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19236 $as_echo_n "(cached) " >&6
19237 else
19238 cat >conftest.$ac_ext <<_ACEOF
19239 /* confdefs.h. */
19240 _ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19246 #define $ac_func innocuous_$ac_func
19247
19248 /* System header to define __stub macros and hopefully few prototypes,
19249 which can conflict with char $ac_func (); below.
19250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19251 <limits.h> exists even on freestanding compilers. */
19252
19253 #ifdef __STDC__
19254 # include <limits.h>
19255 #else
19256 # include <assert.h>
19257 #endif
19258
19259 #undef $ac_func
19260
19261 /* Override any GCC internal prototype to avoid an error.
19262 Use char because int might match the return type of a GCC
19263 builtin and then its argument prototype would still apply. */
19264 #ifdef __cplusplus
19265 extern "C"
19266 #endif
19267 char $ac_func ();
19268 /* The GNU C library defines this for functions which it implements
19269 to always fail with ENOSYS. Some functions are actually named
19270 something starting with __ and the normal name is an alias. */
19271 #if defined __stub_$ac_func || defined __stub___$ac_func
19272 choke me
19273 #endif
19274
19275 int
19276 main ()
19277 {
19278 return $ac_func ();
19279 ;
19280 return 0;
19281 }
19282 _ACEOF
19283 rm -f conftest.$ac_objext conftest$ac_exeext
19284 if { (ac_try="$ac_link"
19285 case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19288 esac
19289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19290 $as_echo "$ac_try_echo") >&5
19291 (eval "$ac_link") 2>conftest.er1
19292 ac_status=$?
19293 grep -v '^ *+' conftest.er1 >conftest.err
19294 rm -f conftest.er1
19295 cat conftest.err >&5
19296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19297 (exit $ac_status); } && {
19298 test -z "$ac_c_werror_flag" ||
19299 test ! -s conftest.err
19300 } && test -s conftest$ac_exeext && {
19301 test "$cross_compiling" = yes ||
19302 $as_test_x conftest$ac_exeext
19303 }; then
19304 eval "$as_ac_var=yes"
19305 else
19306 $as_echo "$as_me: failed program was:" >&5
19307 sed 's/^/| /' conftest.$ac_ext >&5
19308
19309 eval "$as_ac_var=no"
19310 fi
19311
19312 rm -rf conftest.dSYM
19313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19314 conftest$ac_exeext conftest.$ac_ext
19315 fi
19316 ac_res=`eval 'as_val=${'$as_ac_var'}
19317 $as_echo "$as_val"'`
19318 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19319 $as_echo "$ac_res" >&6; }
19320 if test `eval 'as_val=${'$as_ac_var'}
19321 $as_echo "$as_val"'` = yes; then
19322 cat >>confdefs.h <<_ACEOF 11441 cat >>confdefs.h <<_ACEOF
19323 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11442 #define HAVE_SETLOCALE 1
19324 _ACEOF 11443 _ACEOF
19325 11444
19326 fi 11445 fi
19327 done 11446 done
19328 11447
19331 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because 11450 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
19332 # Irix 4.0.5F has the header but not the library. 11451 # Irix 4.0.5F has the header but not the library.
19333 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then 11452 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
19334 ac_have_func=yes 11453 ac_have_func=yes
19335 11454
19336 cat >>confdefs.h <<\_ACEOF 11455 $as_echo "#define SVR4 1" >>confdefs.h
19337 #define SVR4 1
19338 _ACEOF
19339 11456
19340 fi 11457 fi
19341 11458
19342 if test $ac_have_func = no; then 11459 if test $ac_have_func = no; then
19343 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then 11460 ac_fn_c_check_header_mongrel "$LINENO" "inq_stats/cpustats.h" "ac_cv_header_inq_stats_cpustats_h" "$ac_includes_default"
19344 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5 11461 if test "x$ac_cv_header_inq_stats_cpustats_h" = x""yes; then :
19345 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19346 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19347 $as_echo_n "(cached) " >&6
19348 fi
19349 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19350 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19351 else
19352 # Is the header compilable?
19353 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
19354 $as_echo_n "checking inq_stats/cpustats.h usability... " >&6; }
19355 cat >conftest.$ac_ext <<_ACEOF
19356 /* confdefs.h. */
19357 _ACEOF
19358 cat confdefs.h >>conftest.$ac_ext
19359 cat >>conftest.$ac_ext <<_ACEOF
19360 /* end confdefs.h. */
19361 $ac_includes_default
19362 #include <inq_stats/cpustats.h>
19363 _ACEOF
19364 rm -f conftest.$ac_objext
19365 if { (ac_try="$ac_compile"
19366 case "(($ac_try" in
19367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19368 *) ac_try_echo=$ac_try;;
19369 esac
19370 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19371 $as_echo "$ac_try_echo") >&5
19372 (eval "$ac_compile") 2>conftest.er1
19373 ac_status=$?
19374 grep -v '^ *+' conftest.er1 >conftest.err
19375 rm -f conftest.er1
19376 cat conftest.err >&5
19377 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19378 (exit $ac_status); } && {
19379 test -z "$ac_c_werror_flag" ||
19380 test ! -s conftest.err
19381 } && test -s conftest.$ac_objext; then
19382 ac_header_compiler=yes
19383 else
19384 $as_echo "$as_me: failed program was:" >&5
19385 sed 's/^/| /' conftest.$ac_ext >&5
19386
19387 ac_header_compiler=no
19388 fi
19389
19390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19391 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19392 $as_echo "$ac_header_compiler" >&6; }
19393
19394 # Is the header present?
19395 { $as_echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
19396 $as_echo_n "checking inq_stats/cpustats.h presence... " >&6; }
19397 cat >conftest.$ac_ext <<_ACEOF
19398 /* confdefs.h. */
19399 _ACEOF
19400 cat confdefs.h >>conftest.$ac_ext
19401 cat >>conftest.$ac_ext <<_ACEOF
19402 /* end confdefs.h. */
19403 #include <inq_stats/cpustats.h>
19404 _ACEOF
19405 if { (ac_try="$ac_cpp conftest.$ac_ext"
19406 case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19409 esac
19410 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19411 $as_echo "$ac_try_echo") >&5
19412 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19413 ac_status=$?
19414 grep -v '^ *+' conftest.er1 >conftest.err
19415 rm -f conftest.er1
19416 cat conftest.err >&5
19417 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19418 (exit $ac_status); } >/dev/null && {
19419 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19420 test ! -s conftest.err
19421 }; then
19422 ac_header_preproc=yes
19423 else
19424 $as_echo "$as_me: failed program was:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19426
19427 ac_header_preproc=no
19428 fi
19429
19430 rm -f conftest.err conftest.$ac_ext
19431 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19432 $as_echo "$ac_header_preproc" >&6; }
19433
19434 # So? What about this header?
19435 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19436 yes:no: )
19437 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19438 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19439 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
19440 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
19441 ac_header_preproc=yes
19442 ;;
19443 no:yes:* )
19444 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
19445 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
19446 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
19447 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
19448 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
19449 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
19450 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19451 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19452 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
19453 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
19454 { $as_echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
19455 $as_echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
19456
19457 ;;
19458 esac
19459 { $as_echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
19460 $as_echo_n "checking for inq_stats/cpustats.h... " >&6; }
19461 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
19462 $as_echo_n "(cached) " >&6
19463 else
19464 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
19465 fi
19466 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
19467 $as_echo "$ac_cv_header_inq_stats_cpustats_h" >&6; }
19468
19469 fi
19470 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
19471 ac_have_func=yes 11462 ac_have_func=yes
19472 11463
19473 cat >>confdefs.h <<\_ACEOF 11464 $as_echo "#define UMAX 1" >>confdefs.h
19474 #define UMAX 1 11465
19475 _ACEOF 11466
19476 11467 $as_echo "#define UMAX4_3 1" >>confdefs.h
19477
19478 cat >>confdefs.h <<\_ACEOF
19479 #define UMAX4_3 1
19480 _ACEOF
19481 11468
19482 fi 11469 fi
19483 11470
19484 11471
19485 fi 11472 fi
19486 11473
19487 if test $ac_have_func = no; then 11474 if test $ac_have_func = no; then
19488 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then 11475 ac_fn_c_check_header_mongrel "$LINENO" "sys/cpustats.h" "ac_cv_header_sys_cpustats_h" "$ac_includes_default"
19489 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5 11476 if test "x$ac_cv_header_sys_cpustats_h" = x""yes; then :
19490 $as_echo_n "checking for sys/cpustats.h... " >&6; } 11477 ac_have_func=yes; $as_echo "#define UMAX 1" >>confdefs.h
19491 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19492 $as_echo_n "(cached) " >&6
19493 fi
19494 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19495 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19496 else
19497 # Is the header compilable?
19498 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19499 $as_echo_n "checking sys/cpustats.h usability... " >&6; }
19500 cat >conftest.$ac_ext <<_ACEOF
19501 /* confdefs.h. */
19502 _ACEOF
19503 cat confdefs.h >>conftest.$ac_ext
19504 cat >>conftest.$ac_ext <<_ACEOF
19505 /* end confdefs.h. */
19506 $ac_includes_default
19507 #include <sys/cpustats.h>
19508 _ACEOF
19509 rm -f conftest.$ac_objext
19510 if { (ac_try="$ac_compile"
19511 case "(($ac_try" in
19512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19513 *) ac_try_echo=$ac_try;;
19514 esac
19515 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19516 $as_echo "$ac_try_echo") >&5
19517 (eval "$ac_compile") 2>conftest.er1
19518 ac_status=$?
19519 grep -v '^ *+' conftest.er1 >conftest.err
19520 rm -f conftest.er1
19521 cat conftest.err >&5
19522 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19523 (exit $ac_status); } && {
19524 test -z "$ac_c_werror_flag" ||
19525 test ! -s conftest.err
19526 } && test -s conftest.$ac_objext; then
19527 ac_header_compiler=yes
19528 else
19529 $as_echo "$as_me: failed program was:" >&5
19530 sed 's/^/| /' conftest.$ac_ext >&5
19531
19532 ac_header_compiler=no
19533 fi
19534
19535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19536 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19537 $as_echo "$ac_header_compiler" >&6; }
19538
19539 # Is the header present?
19540 { $as_echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19541 $as_echo_n "checking sys/cpustats.h presence... " >&6; }
19542 cat >conftest.$ac_ext <<_ACEOF
19543 /* confdefs.h. */
19544 _ACEOF
19545 cat confdefs.h >>conftest.$ac_ext
19546 cat >>conftest.$ac_ext <<_ACEOF
19547 /* end confdefs.h. */
19548 #include <sys/cpustats.h>
19549 _ACEOF
19550 if { (ac_try="$ac_cpp conftest.$ac_ext"
19551 case "(($ac_try" in
19552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19553 *) ac_try_echo=$ac_try;;
19554 esac
19555 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19556 $as_echo "$ac_try_echo") >&5
19557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19558 ac_status=$?
19559 grep -v '^ *+' conftest.er1 >conftest.err
19560 rm -f conftest.er1
19561 cat conftest.err >&5
19562 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } >/dev/null && {
19564 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19565 test ! -s conftest.err
19566 }; then
19567 ac_header_preproc=yes
19568 else
19569 $as_echo "$as_me: failed program was:" >&5
19570 sed 's/^/| /' conftest.$ac_ext >&5
19571
19572 ac_header_preproc=no
19573 fi
19574
19575 rm -f conftest.err conftest.$ac_ext
19576 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19577 $as_echo "$ac_header_preproc" >&6; }
19578
19579 # So? What about this header?
19580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19581 yes:no: )
19582 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19583 $as_echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19584 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19585 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19586 ac_header_preproc=yes
19587 ;;
19588 no:yes:* )
19589 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19590 $as_echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19591 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19592 $as_echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19593 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19594 $as_echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19595 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19596 $as_echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19597 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19598 $as_echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19599 { $as_echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19600 $as_echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19601
19602 ;;
19603 esac
19604 { $as_echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19605 $as_echo_n "checking for sys/cpustats.h... " >&6; }
19606 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19607 $as_echo_n "(cached) " >&6
19608 else
19609 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19610 fi
19611 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19612 $as_echo "$ac_cv_header_sys_cpustats_h" >&6; }
19613
19614 fi
19615 if test $ac_cv_header_sys_cpustats_h = yes; then
19616 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19617 #define UMAX 1
19618 _ACEOF
19619 11478
19620 fi 11479 fi
19621 11480
19622 11481
19623 fi 11482 fi
19624 11483
19625 if test $ac_have_func = no; then 11484 if test $ac_have_func = no; then
19626 11485 for ac_header in mach/mach.h
19627 for ac_header in mach/mach.h 11486 do :
19628 do 11487 ac_fn_c_check_header_mongrel "$LINENO" "mach/mach.h" "ac_cv_header_mach_mach_h" "$ac_includes_default"
19629 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11488 if test "x$ac_cv_header_mach_mach_h" = x""yes; then :
19630 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19631 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19632 $as_echo_n "checking for $ac_header... " >&6; }
19633 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19634 $as_echo_n "(cached) " >&6
19635 fi
19636 ac_res=`eval 'as_val=${'$as_ac_Header'}
19637 $as_echo "$as_val"'`
19638 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19639 $as_echo "$ac_res" >&6; }
19640 else
19641 # Is the header compilable?
19642 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19643 $as_echo_n "checking $ac_header usability... " >&6; }
19644 cat >conftest.$ac_ext <<_ACEOF
19645 /* confdefs.h. */
19646 _ACEOF
19647 cat confdefs.h >>conftest.$ac_ext
19648 cat >>conftest.$ac_ext <<_ACEOF
19649 /* end confdefs.h. */
19650 $ac_includes_default
19651 #include <$ac_header>
19652 _ACEOF
19653 rm -f conftest.$ac_objext
19654 if { (ac_try="$ac_compile"
19655 case "(($ac_try" in
19656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19657 *) ac_try_echo=$ac_try;;
19658 esac
19659 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19660 $as_echo "$ac_try_echo") >&5
19661 (eval "$ac_compile") 2>conftest.er1
19662 ac_status=$?
19663 grep -v '^ *+' conftest.er1 >conftest.err
19664 rm -f conftest.er1
19665 cat conftest.err >&5
19666 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19667 (exit $ac_status); } && {
19668 test -z "$ac_c_werror_flag" ||
19669 test ! -s conftest.err
19670 } && test -s conftest.$ac_objext; then
19671 ac_header_compiler=yes
19672 else
19673 $as_echo "$as_me: failed program was:" >&5
19674 sed 's/^/| /' conftest.$ac_ext >&5
19675
19676 ac_header_compiler=no
19677 fi
19678
19679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19680 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19681 $as_echo "$ac_header_compiler" >&6; }
19682
19683 # Is the header present?
19684 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19685 $as_echo_n "checking $ac_header presence... " >&6; }
19686 cat >conftest.$ac_ext <<_ACEOF
19687 /* confdefs.h. */
19688 _ACEOF
19689 cat confdefs.h >>conftest.$ac_ext
19690 cat >>conftest.$ac_ext <<_ACEOF
19691 /* end confdefs.h. */
19692 #include <$ac_header>
19693 _ACEOF
19694 if { (ac_try="$ac_cpp conftest.$ac_ext"
19695 case "(($ac_try" in
19696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19697 *) ac_try_echo=$ac_try;;
19698 esac
19699 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19700 $as_echo "$ac_try_echo") >&5
19701 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19702 ac_status=$?
19703 grep -v '^ *+' conftest.er1 >conftest.err
19704 rm -f conftest.er1
19705 cat conftest.err >&5
19706 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } >/dev/null && {
19708 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 }; then
19711 ac_header_preproc=yes
19712 else
19713 $as_echo "$as_me: failed program was:" >&5
19714 sed 's/^/| /' conftest.$ac_ext >&5
19715
19716 ac_header_preproc=no
19717 fi
19718
19719 rm -f conftest.err conftest.$ac_ext
19720 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19721 $as_echo "$ac_header_preproc" >&6; }
19722
19723 # So? What about this header?
19724 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19725 yes:no: )
19726 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19727 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19728 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19729 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19730 ac_header_preproc=yes
19731 ;;
19732 no:yes:* )
19733 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19734 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19735 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19736 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19737 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19738 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19739 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19740 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19741 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19742 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19743 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19744 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19745
19746 ;;
19747 esac
19748 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19749 $as_echo_n "checking for $ac_header... " >&6; }
19750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19751 $as_echo_n "(cached) " >&6
19752 else
19753 eval "$as_ac_Header=\$ac_header_preproc"
19754 fi
19755 ac_res=`eval 'as_val=${'$as_ac_Header'}
19756 $as_echo "$as_val"'`
19757 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19758 $as_echo "$ac_res" >&6; }
19759
19760 fi
19761 if test `eval 'as_val=${'$as_ac_Header'}
19762 $as_echo "$as_val"'` = yes; then
19763 cat >>confdefs.h <<_ACEOF 11489 cat >>confdefs.h <<_ACEOF
19764 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11490 #define HAVE_MACH_MACH_H 1
19765 _ACEOF 11491 _ACEOF
19766 11492
19767 fi 11493 fi
19768 11494
19769 done 11495 done
19770 11496
19771 fi 11497 fi
19772 11498
19773
19774 for ac_header in nlist.h 11499 for ac_header in nlist.h
19775 do 11500 do :
19776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11501 ac_fn_c_check_header_mongrel "$LINENO" "nlist.h" "ac_cv_header_nlist_h" "$ac_includes_default"
19777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11502 if test "x$ac_cv_header_nlist_h" = x""yes; then :
19778 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19779 $as_echo_n "checking for $ac_header... " >&6; }
19780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19781 $as_echo_n "(cached) " >&6
19782 fi
19783 ac_res=`eval 'as_val=${'$as_ac_Header'}
19784 $as_echo "$as_val"'`
19785 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19786 $as_echo "$ac_res" >&6; }
19787 else
19788 # Is the header compilable?
19789 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
19790 $as_echo_n "checking $ac_header usability... " >&6; }
19791 cat >conftest.$ac_ext <<_ACEOF
19792 /* confdefs.h. */
19793 _ACEOF
19794 cat confdefs.h >>conftest.$ac_ext
19795 cat >>conftest.$ac_ext <<_ACEOF
19796 /* end confdefs.h. */
19797 $ac_includes_default
19798 #include <$ac_header>
19799 _ACEOF
19800 rm -f conftest.$ac_objext
19801 if { (ac_try="$ac_compile"
19802 case "(($ac_try" in
19803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19804 *) ac_try_echo=$ac_try;;
19805 esac
19806 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19807 $as_echo "$ac_try_echo") >&5
19808 (eval "$ac_compile") 2>conftest.er1
19809 ac_status=$?
19810 grep -v '^ *+' conftest.er1 >conftest.err
19811 rm -f conftest.er1
19812 cat conftest.err >&5
19813 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19814 (exit $ac_status); } && {
19815 test -z "$ac_c_werror_flag" ||
19816 test ! -s conftest.err
19817 } && test -s conftest.$ac_objext; then
19818 ac_header_compiler=yes
19819 else
19820 $as_echo "$as_me: failed program was:" >&5
19821 sed 's/^/| /' conftest.$ac_ext >&5
19822
19823 ac_header_compiler=no
19824 fi
19825
19826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19827 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19828 $as_echo "$ac_header_compiler" >&6; }
19829
19830 # Is the header present?
19831 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
19832 $as_echo_n "checking $ac_header presence... " >&6; }
19833 cat >conftest.$ac_ext <<_ACEOF
19834 /* confdefs.h. */
19835 _ACEOF
19836 cat confdefs.h >>conftest.$ac_ext
19837 cat >>conftest.$ac_ext <<_ACEOF
19838 /* end confdefs.h. */
19839 #include <$ac_header>
19840 _ACEOF
19841 if { (ac_try="$ac_cpp conftest.$ac_ext"
19842 case "(($ac_try" in
19843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19844 *) ac_try_echo=$ac_try;;
19845 esac
19846 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19847 $as_echo "$ac_try_echo") >&5
19848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19849 ac_status=$?
19850 grep -v '^ *+' conftest.er1 >conftest.err
19851 rm -f conftest.er1
19852 cat conftest.err >&5
19853 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19854 (exit $ac_status); } >/dev/null && {
19855 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19856 test ! -s conftest.err
19857 }; then
19858 ac_header_preproc=yes
19859 else
19860 $as_echo "$as_me: failed program was:" >&5
19861 sed 's/^/| /' conftest.$ac_ext >&5
19862
19863 ac_header_preproc=no
19864 fi
19865
19866 rm -f conftest.err conftest.$ac_ext
19867 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19868 $as_echo "$ac_header_preproc" >&6; }
19869
19870 # So? What about this header?
19871 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19872 yes:no: )
19873 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19874 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19875 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19876 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19877 ac_header_preproc=yes
19878 ;;
19879 no:yes:* )
19880 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19881 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19882 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19883 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19884 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19885 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19886 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19887 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19888 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19889 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19890 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19891 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19892
19893 ;;
19894 esac
19895 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
19896 $as_echo_n "checking for $ac_header... " >&6; }
19897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19898 $as_echo_n "(cached) " >&6
19899 else
19900 eval "$as_ac_Header=\$ac_header_preproc"
19901 fi
19902 ac_res=`eval 'as_val=${'$as_ac_Header'}
19903 $as_echo "$as_val"'`
19904 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
19905 $as_echo "$ac_res" >&6; }
19906
19907 fi
19908 if test `eval 'as_val=${'$as_ac_Header'}
19909 $as_echo "$as_val"'` = yes; then
19910 cat >>confdefs.h <<_ACEOF 11503 cat >>confdefs.h <<_ACEOF
19911 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 11504 #define HAVE_NLIST_H 1
19912 _ACEOF 11505 _ACEOF
19913 { $as_echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5 11506 ac_fn_c_check_member "$LINENO" "struct nlist" "n_un.n_name" "ac_cv_member_struct_nlist_n_un_n_name" "#include <nlist.h>
19914 $as_echo_n "checking for struct nlist.n_un.n_name... " >&6; } 11507 "
19915 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then 11508 if test "x$ac_cv_member_struct_nlist_n_un_n_name" = x""yes; then :
19916 $as_echo_n "(cached) " >&6
19917 else
19918 cat >conftest.$ac_ext <<_ACEOF
19919 /* confdefs.h. */
19920 _ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h. */
19924 #include <nlist.h>
19925
19926 int
19927 main ()
19928 {
19929 static struct nlist ac_aggr;
19930 if (ac_aggr.n_un.n_name)
19931 return 0;
19932 ;
19933 return 0;
19934 }
19935 _ACEOF
19936 rm -f conftest.$ac_objext
19937 if { (ac_try="$ac_compile"
19938 case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19941 esac
19942 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19943 $as_echo "$ac_try_echo") >&5
19944 (eval "$ac_compile") 2>conftest.er1
19945 ac_status=$?
19946 grep -v '^ *+' conftest.er1 >conftest.err
19947 rm -f conftest.er1
19948 cat conftest.err >&5
19949 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19950 (exit $ac_status); } && {
19951 test -z "$ac_c_werror_flag" ||
19952 test ! -s conftest.err
19953 } && test -s conftest.$ac_objext; then
19954 ac_cv_member_struct_nlist_n_un_n_name=yes
19955 else
19956 $as_echo "$as_me: failed program was:" >&5
19957 sed 's/^/| /' conftest.$ac_ext >&5
19958
19959 cat >conftest.$ac_ext <<_ACEOF
19960 /* confdefs.h. */
19961 _ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h. */
19965 #include <nlist.h>
19966
19967 int
19968 main ()
19969 {
19970 static struct nlist ac_aggr;
19971 if (sizeof ac_aggr.n_un.n_name)
19972 return 0;
19973 ;
19974 return 0;
19975 }
19976 _ACEOF
19977 rm -f conftest.$ac_objext
19978 if { (ac_try="$ac_compile"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19982 esac
19983 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
19984 $as_echo "$ac_try_echo") >&5
19985 (eval "$ac_compile") 2>conftest.er1
19986 ac_status=$?
19987 grep -v '^ *+' conftest.er1 >conftest.err
19988 rm -f conftest.er1
19989 cat conftest.err >&5
19990 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } && {
19992 test -z "$ac_c_werror_flag" ||
19993 test ! -s conftest.err
19994 } && test -s conftest.$ac_objext; then
19995 ac_cv_member_struct_nlist_n_un_n_name=yes
19996 else
19997 $as_echo "$as_me: failed program was:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
19999
20000 ac_cv_member_struct_nlist_n_un_n_name=no
20001 fi
20002
20003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20004 fi
20005
20006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20007 fi
20008 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
20009 $as_echo "$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
20010 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
20011 11509
20012 cat >>confdefs.h <<_ACEOF 11510 cat >>confdefs.h <<_ACEOF
20013 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1 11511 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
20014 _ACEOF 11512 _ACEOF
20015 11513
20016 11514
20017 cat >>confdefs.h <<\_ACEOF 11515 $as_echo "#define NLIST_NAME_UNION 1" >>confdefs.h
20018 #define NLIST_NAME_UNION 1
20019 _ACEOF
20020 11516
20021 fi 11517 fi
20022 11518
20023 11519
20024 fi 11520 fi
20028 fi 11524 fi
20029 done 11525 done
20030 11526
20031 11527
20032 # Some definitions of getloadavg require that the program be installed setgid. 11528 # Some definitions of getloadavg require that the program be installed setgid.
20033 { $as_echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5 11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getloadavg requires setgid" >&5
20034 $as_echo_n "checking whether getloadavg requires setgid... " >&6; } 11530 $as_echo_n "checking whether getloadavg requires setgid... " >&6; }
20035 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then 11531 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then :
20036 $as_echo_n "(cached) " >&6 11532 $as_echo_n "(cached) " >&6
20037 else 11533 else
20038 cat >conftest.$ac_ext <<_ACEOF 11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20039 /* confdefs.h. */
20040 _ACEOF
20041 cat confdefs.h >>conftest.$ac_ext
20042 cat >>conftest.$ac_ext <<_ACEOF
20043 /* end confdefs.h. */ 11535 /* end confdefs.h. */
20044 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c" 11536 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
20045 #ifdef LDAV_PRIVILEGED 11537 #ifdef LDAV_PRIVILEGED
20046 Yowza Am I SETGID yet 11538 Yowza Am I SETGID yet
20047 #endif 11539 #endif
20048 _ACEOF 11540 _ACEOF
20049 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20050 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then 11542 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then :
20051 ac_cv_func_getloadavg_setgid=yes 11543 ac_cv_func_getloadavg_setgid=yes
20052 else 11544 else
20053 ac_cv_func_getloadavg_setgid=no 11545 ac_cv_func_getloadavg_setgid=no
20054 fi 11546 fi
20055 rm -f conftest* 11547 rm -f conftest*
20056 11548
20057 fi 11549 fi
20058 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5 11550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getloadavg_setgid" >&5
20059 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; } 11551 $as_echo "$ac_cv_func_getloadavg_setgid" >&6; }
20060 if test $ac_cv_func_getloadavg_setgid = yes; then 11552 if test $ac_cv_func_getloadavg_setgid = yes; then
20061 NEED_SETGID=true 11553 NEED_SETGID=true
20062 11554
20063 cat >>confdefs.h <<\_ACEOF 11555 $as_echo "#define GETLOADAVG_PRIVILEGED 1" >>confdefs.h
20064 #define GETLOADAVG_PRIVILEGED 1
20065 _ACEOF
20066 11556
20067 else 11557 else
20068 NEED_SETGID=false 11558 NEED_SETGID=false
20069 fi 11559 fi
20070 11560
20071 if test $ac_cv_func_getloadavg_setgid = yes; then 11561 if test $ac_cv_func_getloadavg_setgid = yes; then
20072 { $as_echo "$as_me:$LINENO: checking group of /dev/kmem" >&5 11562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group of /dev/kmem" >&5
20073 $as_echo_n "checking group of /dev/kmem... " >&6; } 11563 $as_echo_n "checking group of /dev/kmem... " >&6; }
20074 if test "${ac_cv_group_kmem+set}" = set; then 11564 if test "${ac_cv_group_kmem+set}" = set; then :
20075 $as_echo_n "(cached) " >&6 11565 $as_echo_n "(cached) " >&6
20076 else 11566 else
20077 # On Solaris, /dev/kmem is a symlink. Get info on the real file. 11567 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
20078 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null` 11568 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
20079 # If we got an error (system does not support symlinks), try without -L. 11569 # If we got an error (system does not support symlinks), try without -L.
20082 | sed -ne 's/[ ][ ]*/ /g; 11572 | sed -ne 's/[ ][ ]*/ /g;
20083 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/; 11573 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
20084 / /s/.* //;p;'` 11574 / /s/.* //;p;'`
20085 11575
20086 fi 11576 fi
20087 { $as_echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5 11577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_group_kmem" >&5
20088 $as_echo "$ac_cv_group_kmem" >&6; } 11578 $as_echo "$ac_cv_group_kmem" >&6; }
20089 KMEM_GROUP=$ac_cv_group_kmem 11579 KMEM_GROUP=$ac_cv_group_kmem
20090 fi 11580 fi
20091 if test "x$ac_save_LIBS" = x; then 11581 if test "x$ac_save_LIBS" = x; then
20092 GETLOADAVG_LIBS=$LIBS 11582 GETLOADAVG_LIBS=$LIBS
20095 fi 11585 fi
20096 LIBS=$ac_save_LIBS 11586 LIBS=$ac_save_LIBS
20097 11587
20098 11588
20099 11589
20100 { $as_echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
20101 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; } 11591 $as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
20102 if test "${ac_cv_sys_largefile_source+set}" = set; then 11592 if test "${ac_cv_sys_largefile_source+set}" = set; then :
20103 $as_echo_n "(cached) " >&6 11593 $as_echo_n "(cached) " >&6
20104 else 11594 else
20105 while :; do 11595 while :; do
20106 cat >conftest.$ac_ext <<_ACEOF 11596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20107 /* confdefs.h. */
20108 _ACEOF
20109 cat confdefs.h >>conftest.$ac_ext
20110 cat >>conftest.$ac_ext <<_ACEOF
20111 /* end confdefs.h. */ 11597 /* end confdefs.h. */
20112 #include <sys/types.h> /* for off_t */ 11598 #include <sys/types.h> /* for off_t */
20113 #include <stdio.h> 11599 #include <stdio.h>
20114 int 11600 int
20115 main () 11601 main ()
20118 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 11604 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20119 ; 11605 ;
20120 return 0; 11606 return 0;
20121 } 11607 }
20122 _ACEOF 11608 _ACEOF
20123 rm -f conftest.$ac_objext conftest$ac_exeext 11609 if ac_fn_c_try_link "$LINENO"; then :
20124 if { (ac_try="$ac_link"
20125 case "(($ac_try" in
20126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127 *) ac_try_echo=$ac_try;;
20128 esac
20129 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20130 $as_echo "$ac_try_echo") >&5
20131 (eval "$ac_link") 2>conftest.er1
20132 ac_status=$?
20133 grep -v '^ *+' conftest.er1 >conftest.err
20134 rm -f conftest.er1
20135 cat conftest.err >&5
20136 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20137 (exit $ac_status); } && {
20138 test -z "$ac_c_werror_flag" ||
20139 test ! -s conftest.err
20140 } && test -s conftest$ac_exeext && {
20141 test "$cross_compiling" = yes ||
20142 $as_test_x conftest$ac_exeext
20143 }; then
20144 ac_cv_sys_largefile_source=no; break 11610 ac_cv_sys_largefile_source=no; break
20145 else 11611 fi
20146 $as_echo "$as_me: failed program was:" >&5 11612 rm -f core conftest.err conftest.$ac_objext \
20147 sed 's/^/| /' conftest.$ac_ext >&5 11613 conftest$ac_exeext conftest.$ac_ext
20148 11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20149
20150 fi
20151
20152 rm -rf conftest.dSYM
20153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20154 conftest$ac_exeext conftest.$ac_ext
20155 cat >conftest.$ac_ext <<_ACEOF
20156 /* confdefs.h. */
20157 _ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */ 11615 /* end confdefs.h. */
20161 #define _LARGEFILE_SOURCE 1 11616 #define _LARGEFILE_SOURCE 1
20162 #include <sys/types.h> /* for off_t */ 11617 #include <sys/types.h> /* for off_t */
20163 #include <stdio.h> 11618 #include <stdio.h>
20164 int 11619 int
20168 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0); 11623 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
20169 ; 11624 ;
20170 return 0; 11625 return 0;
20171 } 11626 }
20172 _ACEOF 11627 _ACEOF
20173 rm -f conftest.$ac_objext conftest$ac_exeext 11628 if ac_fn_c_try_link "$LINENO"; then :
20174 if { (ac_try="$ac_link"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20178 esac
20179 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20180 $as_echo "$ac_try_echo") >&5
20181 (eval "$ac_link") 2>conftest.er1
20182 ac_status=$?
20183 grep -v '^ *+' conftest.er1 >conftest.err
20184 rm -f conftest.er1
20185 cat conftest.err >&5
20186 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); } && {
20188 test -z "$ac_c_werror_flag" ||
20189 test ! -s conftest.err
20190 } && test -s conftest$ac_exeext && {
20191 test "$cross_compiling" = yes ||
20192 $as_test_x conftest$ac_exeext
20193 }; then
20194 ac_cv_sys_largefile_source=1; break 11629 ac_cv_sys_largefile_source=1; break
20195 else 11630 fi
20196 $as_echo "$as_me: failed program was:" >&5 11631 rm -f core conftest.err conftest.$ac_objext \
20197 sed 's/^/| /' conftest.$ac_ext >&5 11632 conftest$ac_exeext conftest.$ac_ext
20198
20199
20200 fi
20201
20202 rm -rf conftest.dSYM
20203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20204 conftest$ac_exeext conftest.$ac_ext
20205 ac_cv_sys_largefile_source=unknown 11633 ac_cv_sys_largefile_source=unknown
20206 break 11634 break
20207 done 11635 done
20208 fi 11636 fi
20209 { $as_echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5 11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
20210 $as_echo "$ac_cv_sys_largefile_source" >&6; } 11638 $as_echo "$ac_cv_sys_largefile_source" >&6; }
20211 case $ac_cv_sys_largefile_source in #( 11639 case $ac_cv_sys_largefile_source in #(
20212 no | unknown) ;; 11640 no | unknown) ;;
20213 *) 11641 *)
20214 cat >>confdefs.h <<_ACEOF 11642 cat >>confdefs.h <<_ACEOF
20221 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug 11649 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
20222 # in glibc 2.1.3, but that breaks too many other things. 11650 # in glibc 2.1.3, but that breaks too many other things.
20223 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc. 11651 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
20224 if test $ac_cv_sys_largefile_source != unknown; then 11652 if test $ac_cv_sys_largefile_source != unknown; then
20225 11653
20226 cat >>confdefs.h <<\_ACEOF 11654 $as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
20227 #define HAVE_FSEEKO 1
20228 _ACEOF
20229 11655
20230 fi 11656 fi
20231 11657
20232 11658
20233 # Configure getopt. 11659 # Configure getopt.
20251 11677
20252 11678
20253 11679
20254 11680
20255 GETOPT_H= 11681 GETOPT_H=
20256 11682 for ac_header in getopt.h
20257 for ac_header in getopt.h 11683 do :
20258 do 11684 ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
20259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 11685 if test "x$ac_cv_header_getopt_h" = x""yes; then :
20260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11686 cat >>confdefs.h <<_ACEOF
20261 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5 11687 #define HAVE_GETOPT_H 1
20262 $as_echo_n "checking for $ac_header... " >&6; } 11688 _ACEOF
20263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 11689
11690 else
11691 GETOPT_H=getopt.h
11692 fi
11693
11694 done
11695
11696 if test -z "$GETOPT_H"; then
11697 for ac_func in getopt_long_only
11698 do :
11699 ac_fn_c_check_func "$LINENO" "getopt_long_only" "ac_cv_func_getopt_long_only"
11700 if test "x$ac_cv_func_getopt_long_only" = x""yes; then :
11701 cat >>confdefs.h <<_ACEOF
11702 #define HAVE_GETOPT_LONG_ONLY 1
11703 _ACEOF
11704
11705 else
11706 GETOPT_H=getopt.h
11707 fi
11708 done
11709
11710 fi
11711
11712 if test -z "$GETOPT_H"; then
11713 ac_fn_c_check_decl "$LINENO" "optreset" "ac_cv_have_decl_optreset" "#include <getopt.h>
11714 "
11715 if test "x$ac_cv_have_decl_optreset" = x""yes; then :
11716 GETOPT_H=getopt.h
11717 fi
11718
11719 fi
11720
11721 if test -z "$GETOPT_H"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working GNU getopt function" >&5
11723 $as_echo_n "checking for working GNU getopt function... " >&6; }
11724 if test "${gl_cv_func_gnu_getopt+set}" = set; then :
20264 $as_echo_n "(cached) " >&6 11725 $as_echo_n "(cached) " >&6
20265 fi 11726 else
20266 ac_res=`eval 'as_val=${'$as_ac_Header'} 11727 if test "$cross_compiling" = yes; then :
20267 $as_echo "$as_val"'` 11728 ac_fn_c_check_decl "$LINENO" "getopt_clip" "ac_cv_have_decl_getopt_clip" "#include <getopt.h>
20268 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5 11729 "
20269 $as_echo "$ac_res" >&6; } 11730 if test "x$ac_cv_have_decl_getopt_clip" = x""yes; then :
20270 else
20271 # Is the header compilable?
20272 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20273 $as_echo_n "checking $ac_header usability... " >&6; }
20274 cat >conftest.$ac_ext <<_ACEOF
20275 /* confdefs.h. */
20276 _ACEOF
20277 cat confdefs.h >>conftest.$ac_ext
20278 cat >>conftest.$ac_ext <<_ACEOF
20279 /* end confdefs.h. */
20280 $ac_includes_default
20281 #include <$ac_header>
20282 _ACEOF
20283 rm -f conftest.$ac_objext
20284 if { (ac_try="$ac_compile"
20285 case "(($ac_try" in
20286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20287 *) ac_try_echo=$ac_try;;
20288 esac
20289 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20290 $as_echo "$ac_try_echo") >&5
20291 (eval "$ac_compile") 2>conftest.er1
20292 ac_status=$?
20293 grep -v '^ *+' conftest.er1 >conftest.err
20294 rm -f conftest.er1
20295 cat conftest.err >&5
20296 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20297 (exit $ac_status); } && {
20298 test -z "$ac_c_werror_flag" ||
20299 test ! -s conftest.err
20300 } && test -s conftest.$ac_objext; then
20301 ac_header_compiler=yes
20302 else
20303 $as_echo "$as_me: failed program was:" >&5
20304 sed 's/^/| /' conftest.$ac_ext >&5
20305
20306 ac_header_compiler=no
20307 fi
20308
20309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20310 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20311 $as_echo "$ac_header_compiler" >&6; }
20312
20313 # Is the header present?
20314 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20315 $as_echo_n "checking $ac_header presence... " >&6; }
20316 cat >conftest.$ac_ext <<_ACEOF
20317 /* confdefs.h. */
20318 _ACEOF
20319 cat confdefs.h >>conftest.$ac_ext
20320 cat >>conftest.$ac_ext <<_ACEOF
20321 /* end confdefs.h. */
20322 #include <$ac_header>
20323 _ACEOF
20324 if { (ac_try="$ac_cpp conftest.$ac_ext"
20325 case "(($ac_try" in
20326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327 *) ac_try_echo=$ac_try;;
20328 esac
20329 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20330 $as_echo "$ac_try_echo") >&5
20331 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20332 ac_status=$?
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
20336 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } >/dev/null && {
20338 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20339 test ! -s conftest.err
20340 }; then
20341 ac_header_preproc=yes
20342 else
20343 $as_echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20345
20346 ac_header_preproc=no
20347 fi
20348
20349 rm -f conftest.err conftest.$ac_ext
20350 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20351 $as_echo "$ac_header_preproc" >&6; }
20352
20353 # So? What about this header?
20354 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20355 yes:no: )
20356 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20357 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20358 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20359 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20360 ac_header_preproc=yes
20361 ;;
20362 no:yes:* )
20363 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20364 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20365 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20366 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20367 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20368 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20369 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20370 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20371 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20372 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20373 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20374 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20375
20376 ;;
20377 esac
20378 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20379 $as_echo_n "checking for $ac_header... " >&6; }
20380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20381 $as_echo_n "(cached) " >&6
20382 else
20383 eval "$as_ac_Header=\$ac_header_preproc"
20384 fi
20385 ac_res=`eval 'as_val=${'$as_ac_Header'}
20386 $as_echo "$as_val"'`
20387 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20388 $as_echo "$ac_res" >&6; }
20389
20390 fi
20391 if test `eval 'as_val=${'$as_ac_Header'}
20392 $as_echo "$as_val"'` = yes; then
20393 cat >>confdefs.h <<_ACEOF
20394 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20395 _ACEOF
20396
20397 else
20398 GETOPT_H=getopt.h
20399 fi
20400
20401 done
20402
20403 if test -z "$GETOPT_H"; then
20404
20405 for ac_func in getopt_long_only
20406 do
20407 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20408 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20409 $as_echo_n "checking for $ac_func... " >&6; }
20410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20411 $as_echo_n "(cached) " >&6
20412 else
20413 cat >conftest.$ac_ext <<_ACEOF
20414 /* confdefs.h. */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h. */
20419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20421 #define $ac_func innocuous_$ac_func
20422
20423 /* System header to define __stub macros and hopefully few prototypes,
20424 which can conflict with char $ac_func (); below.
20425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20426 <limits.h> exists even on freestanding compilers. */
20427
20428 #ifdef __STDC__
20429 # include <limits.h>
20430 #else
20431 # include <assert.h>
20432 #endif
20433
20434 #undef $ac_func
20435
20436 /* Override any GCC internal prototype to avoid an error.
20437 Use char because int might match the return type of a GCC
20438 builtin and then its argument prototype would still apply. */
20439 #ifdef __cplusplus
20440 extern "C"
20441 #endif
20442 char $ac_func ();
20443 /* The GNU C library defines this for functions which it implements
20444 to always fail with ENOSYS. Some functions are actually named
20445 something starting with __ and the normal name is an alias. */
20446 #if defined __stub_$ac_func || defined __stub___$ac_func
20447 choke me
20448 #endif
20449
20450 int
20451 main ()
20452 {
20453 return $ac_func ();
20454 ;
20455 return 0;
20456 }
20457 _ACEOF
20458 rm -f conftest.$ac_objext conftest$ac_exeext
20459 if { (ac_try="$ac_link"
20460 case "(($ac_try" in
20461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462 *) ac_try_echo=$ac_try;;
20463 esac
20464 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20465 $as_echo "$ac_try_echo") >&5
20466 (eval "$ac_link") 2>conftest.er1
20467 ac_status=$?
20468 grep -v '^ *+' conftest.er1 >conftest.err
20469 rm -f conftest.er1
20470 cat conftest.err >&5
20471 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20472 (exit $ac_status); } && {
20473 test -z "$ac_c_werror_flag" ||
20474 test ! -s conftest.err
20475 } && test -s conftest$ac_exeext && {
20476 test "$cross_compiling" = yes ||
20477 $as_test_x conftest$ac_exeext
20478 }; then
20479 eval "$as_ac_var=yes"
20480 else
20481 $as_echo "$as_me: failed program was:" >&5
20482 sed 's/^/| /' conftest.$ac_ext >&5
20483
20484 eval "$as_ac_var=no"
20485 fi
20486
20487 rm -rf conftest.dSYM
20488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20489 conftest$ac_exeext conftest.$ac_ext
20490 fi
20491 ac_res=`eval 'as_val=${'$as_ac_var'}
20492 $as_echo "$as_val"'`
20493 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20494 $as_echo "$ac_res" >&6; }
20495 if test `eval 'as_val=${'$as_ac_var'}
20496 $as_echo "$as_val"'` = yes; then
20497 cat >>confdefs.h <<_ACEOF
20498 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20499 _ACEOF
20500
20501 else
20502 GETOPT_H=getopt.h
20503 fi
20504 done
20505
20506 fi
20507
20508 if test -z "$GETOPT_H"; then
20509 { $as_echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20510 $as_echo_n "checking whether optreset is declared... " >&6; }
20511 if test "${ac_cv_have_decl_optreset+set}" = set; then
20512 $as_echo_n "(cached) " >&6
20513 else
20514 cat >conftest.$ac_ext <<_ACEOF
20515 /* confdefs.h. */
20516 _ACEOF
20517 cat confdefs.h >>conftest.$ac_ext
20518 cat >>conftest.$ac_ext <<_ACEOF
20519 /* end confdefs.h. */
20520 #include <getopt.h>
20521
20522 int
20523 main ()
20524 {
20525 #ifndef optreset
20526 (void) optreset;
20527 #endif
20528
20529 ;
20530 return 0;
20531 }
20532 _ACEOF
20533 rm -f conftest.$ac_objext
20534 if { (ac_try="$ac_compile"
20535 case "(($ac_try" in
20536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20537 *) ac_try_echo=$ac_try;;
20538 esac
20539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20540 $as_echo "$ac_try_echo") >&5
20541 (eval "$ac_compile") 2>conftest.er1
20542 ac_status=$?
20543 grep -v '^ *+' conftest.er1 >conftest.err
20544 rm -f conftest.er1
20545 cat conftest.err >&5
20546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20547 (exit $ac_status); } && {
20548 test -z "$ac_c_werror_flag" ||
20549 test ! -s conftest.err
20550 } && test -s conftest.$ac_objext; then
20551 ac_cv_have_decl_optreset=yes
20552 else
20553 $as_echo "$as_me: failed program was:" >&5
20554 sed 's/^/| /' conftest.$ac_ext >&5
20555
20556 ac_cv_have_decl_optreset=no
20557 fi
20558
20559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20560 fi
20561 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20562 $as_echo "$ac_cv_have_decl_optreset" >&6; }
20563 if test $ac_cv_have_decl_optreset = yes; then
20564 GETOPT_H=getopt.h
20565 fi
20566
20567 fi
20568
20569 if test -z "$GETOPT_H"; then
20570 { $as_echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20571 $as_echo_n "checking for working GNU getopt function... " >&6; }
20572 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20573 $as_echo_n "(cached) " >&6
20574 else
20575 if test "$cross_compiling" = yes; then
20576 { $as_echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20577 $as_echo_n "checking whether getopt_clip is declared... " >&6; }
20578 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20579 $as_echo_n "(cached) " >&6
20580 else
20581 cat >conftest.$ac_ext <<_ACEOF
20582 /* confdefs.h. */
20583 _ACEOF
20584 cat confdefs.h >>conftest.$ac_ext
20585 cat >>conftest.$ac_ext <<_ACEOF
20586 /* end confdefs.h. */
20587 #include <getopt.h>
20588
20589 int
20590 main ()
20591 {
20592 #ifndef getopt_clip
20593 (void) getopt_clip;
20594 #endif
20595
20596 ;
20597 return 0;
20598 }
20599 _ACEOF
20600 rm -f conftest.$ac_objext
20601 if { (ac_try="$ac_compile"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605 esac
20606 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20607 $as_echo "$ac_try_echo") >&5
20608 (eval "$ac_compile") 2>conftest.er1
20609 ac_status=$?
20610 grep -v '^ *+' conftest.er1 >conftest.err
20611 rm -f conftest.er1
20612 cat conftest.err >&5
20613 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20614 (exit $ac_status); } && {
20615 test -z "$ac_c_werror_flag" ||
20616 test ! -s conftest.err
20617 } && test -s conftest.$ac_objext; then
20618 ac_cv_have_decl_getopt_clip=yes
20619 else
20620 $as_echo "$as_me: failed program was:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20622
20623 ac_cv_have_decl_getopt_clip=no
20624 fi
20625
20626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20627 fi
20628 { $as_echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20629 $as_echo "$ac_cv_have_decl_getopt_clip" >&6; }
20630 if test $ac_cv_have_decl_getopt_clip = yes; then
20631 gl_cv_func_gnu_getopt=no 11731 gl_cv_func_gnu_getopt=no
20632 else 11732 else
20633 gl_cv_func_gnu_getopt=yes 11733 gl_cv_func_gnu_getopt=yes
20634 fi 11734 fi
20635 11735
20636 else 11736 else
20637 cat >conftest.$ac_ext <<_ACEOF 11737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20638 /* confdefs.h. */
20639 _ACEOF
20640 cat confdefs.h >>conftest.$ac_ext
20641 cat >>conftest.$ac_ext <<_ACEOF
20642 /* end confdefs.h. */ 11738 /* end confdefs.h. */
20643 #include <getopt.h> 11739 #include <getopt.h>
20644 int 11740 int
20645 main () 11741 main ()
20646 { 11742 {
20653 11749
20654 ; 11750 ;
20655 return 0; 11751 return 0;
20656 } 11752 }
20657 _ACEOF 11753 _ACEOF
20658 rm -f conftest$ac_exeext 11754 if ac_fn_c_try_run "$LINENO"; then :
20659 if { (ac_try="$ac_link"
20660 case "(($ac_try" in
20661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20662 *) ac_try_echo=$ac_try;;
20663 esac
20664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20665 $as_echo "$ac_try_echo") >&5
20666 (eval "$ac_link") 2>&5
20667 ac_status=$?
20668 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20669 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20670 { (case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20673 esac
20674 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20675 $as_echo "$ac_try_echo") >&5
20676 (eval "$ac_try") 2>&5
20677 ac_status=$?
20678 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20679 (exit $ac_status); }; }; then
20680 gl_cv_func_gnu_getopt=yes 11755 gl_cv_func_gnu_getopt=yes
20681 else 11756 else
20682 $as_echo "$as_me: program exited with status $ac_status" >&5 11757 gl_cv_func_gnu_getopt=no
20683 $as_echo "$as_me: failed program was:" >&5 11758 fi
20684 sed 's/^/| /' conftest.$ac_ext >&5 11759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20685 11760 conftest.$ac_objext conftest.beam conftest.$ac_ext
20686 ( exit $ac_status ) 11761 fi
20687 gl_cv_func_gnu_getopt=no 11762
20688 fi 11763 fi
20689 rm -rf conftest.dSYM 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_func_gnu_getopt" >&5
20690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20691 fi
20692
20693
20694 fi
20695 { $as_echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20696 $as_echo "$gl_cv_func_gnu_getopt" >&6; } 11765 $as_echo "$gl_cv_func_gnu_getopt" >&6; }
20697 if test "$gl_cv_func_gnu_getopt" = "no"; then 11766 if test "$gl_cv_func_gnu_getopt" = "no"; then
20698 GETOPT_H=getopt.h 11767 GETOPT_H=getopt.h
20699 fi 11768 fi
20700 fi 11769 fi
20701 11770
20702 11771
20703 11772
20704 if test -n "$GETOPT_H"; then 11773 if test -n "$GETOPT_H"; then :
20705 11774
20706 11775
20707 GETOPT_H=getopt.h 11776 GETOPT_H=getopt.h
20708 11777
20709 cat >>confdefs.h <<\_ACEOF 11778 $as_echo "#define __GETOPT_PREFIX rpl_" >>confdefs.h
20710 #define __GETOPT_PREFIX rpl_
20711 _ACEOF
20712 11779
20713 11780
20714 11781
20715 : 11782 :
20716 GETOPTOBJS='getopt.o getopt1.o' 11783 GETOPTOBJS='getopt.o getopt1.o'
20717 11784
20718 fi 11785 fi
20719 11786
20720 11787
20721 11788
20722 11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getpgrp requires zero arguments" >&5
20723 { $as_echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20724 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; } 11790 $as_echo_n "checking whether getpgrp requires zero arguments... " >&6; }
20725 if test "${ac_cv_func_getpgrp_void+set}" = set; then 11791 if test "${ac_cv_func_getpgrp_void+set}" = set; then :
20726 $as_echo_n "(cached) " >&6 11792 $as_echo_n "(cached) " >&6
20727 else 11793 else
20728 # Use it with a single arg. 11794 # Use it with a single arg.
20729 cat >conftest.$ac_ext <<_ACEOF 11795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20730 /* confdefs.h. */
20731 _ACEOF
20732 cat confdefs.h >>conftest.$ac_ext
20733 cat >>conftest.$ac_ext <<_ACEOF
20734 /* end confdefs.h. */ 11796 /* end confdefs.h. */
20735 $ac_includes_default 11797 $ac_includes_default
20736 int 11798 int
20737 main () 11799 main ()
20738 { 11800 {
20739 getpgrp (0); 11801 getpgrp (0);
20740 ; 11802 ;
20741 return 0; 11803 return 0;
20742 } 11804 }
20743 _ACEOF 11805 _ACEOF
20744 rm -f conftest.$ac_objext 11806 if ac_fn_c_try_compile "$LINENO"; then :
20745 if { (ac_try="$ac_compile"
20746 case "(($ac_try" in
20747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748 *) ac_try_echo=$ac_try;;
20749 esac
20750 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20751 $as_echo "$ac_try_echo") >&5
20752 (eval "$ac_compile") 2>conftest.er1
20753 ac_status=$?
20754 grep -v '^ *+' conftest.er1 >conftest.err
20755 rm -f conftest.er1
20756 cat conftest.err >&5
20757 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20758 (exit $ac_status); } && {
20759 test -z "$ac_c_werror_flag" ||
20760 test ! -s conftest.err
20761 } && test -s conftest.$ac_objext; then
20762 ac_cv_func_getpgrp_void=no 11807 ac_cv_func_getpgrp_void=no
20763 else 11808 else
20764 $as_echo "$as_me: failed program was:" >&5 11809 ac_cv_func_getpgrp_void=yes
20765 sed 's/^/| /' conftest.$ac_ext >&5 11810 fi
20766
20767 ac_cv_func_getpgrp_void=yes
20768 fi
20769
20770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20771 11812
20772 fi 11813 fi
20773 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5 11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_getpgrp_void" >&5
20774 $as_echo "$ac_cv_func_getpgrp_void" >&6; } 11815 $as_echo "$ac_cv_func_getpgrp_void" >&6; }
20775 if test $ac_cv_func_getpgrp_void = yes; then 11816 if test $ac_cv_func_getpgrp_void = yes; then
20776 11817
20777 cat >>confdefs.h <<\_ACEOF 11818 $as_echo "#define GETPGRP_VOID 1" >>confdefs.h
20778 #define GETPGRP_VOID 1 11819
20779 _ACEOF 11820 fi
20780
20781 fi
20782
20783 11821
20784 11822
20785 for ac_func in strftime 11823 for ac_func in strftime
20786 do 11824 do :
20787 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11825 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
20788 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11826 if test "x$ac_cv_func_strftime" = x""yes; then :
20789 $as_echo_n "checking for $ac_func... " >&6; }
20790 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20791 $as_echo_n "(cached) " >&6
20792 else
20793 cat >conftest.$ac_ext <<_ACEOF
20794 /* confdefs.h. */
20795 _ACEOF
20796 cat confdefs.h >>conftest.$ac_ext
20797 cat >>conftest.$ac_ext <<_ACEOF
20798 /* end confdefs.h. */
20799 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20800 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20801 #define $ac_func innocuous_$ac_func
20802
20803 /* System header to define __stub macros and hopefully few prototypes,
20804 which can conflict with char $ac_func (); below.
20805 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20806 <limits.h> exists even on freestanding compilers. */
20807
20808 #ifdef __STDC__
20809 # include <limits.h>
20810 #else
20811 # include <assert.h>
20812 #endif
20813
20814 #undef $ac_func
20815
20816 /* Override any GCC internal prototype to avoid an error.
20817 Use char because int might match the return type of a GCC
20818 builtin and then its argument prototype would still apply. */
20819 #ifdef __cplusplus
20820 extern "C"
20821 #endif
20822 char $ac_func ();
20823 /* The GNU C library defines this for functions which it implements
20824 to always fail with ENOSYS. Some functions are actually named
20825 something starting with __ and the normal name is an alias. */
20826 #if defined __stub_$ac_func || defined __stub___$ac_func
20827 choke me
20828 #endif
20829
20830 int
20831 main ()
20832 {
20833 return $ac_func ();
20834 ;
20835 return 0;
20836 }
20837 _ACEOF
20838 rm -f conftest.$ac_objext conftest$ac_exeext
20839 if { (ac_try="$ac_link"
20840 case "(($ac_try" in
20841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20842 *) ac_try_echo=$ac_try;;
20843 esac
20844 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20845 $as_echo "$ac_try_echo") >&5
20846 (eval "$ac_link") 2>conftest.er1
20847 ac_status=$?
20848 grep -v '^ *+' conftest.er1 >conftest.err
20849 rm -f conftest.er1
20850 cat conftest.err >&5
20851 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20852 (exit $ac_status); } && {
20853 test -z "$ac_c_werror_flag" ||
20854 test ! -s conftest.err
20855 } && test -s conftest$ac_exeext && {
20856 test "$cross_compiling" = yes ||
20857 $as_test_x conftest$ac_exeext
20858 }; then
20859 eval "$as_ac_var=yes"
20860 else
20861 $as_echo "$as_me: failed program was:" >&5
20862 sed 's/^/| /' conftest.$ac_ext >&5
20863
20864 eval "$as_ac_var=no"
20865 fi
20866
20867 rm -rf conftest.dSYM
20868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20869 conftest$ac_exeext conftest.$ac_ext
20870 fi
20871 ac_res=`eval 'as_val=${'$as_ac_var'}
20872 $as_echo "$as_val"'`
20873 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20874 $as_echo "$ac_res" >&6; }
20875 if test `eval 'as_val=${'$as_ac_var'}
20876 $as_echo "$as_val"'` = yes; then
20877 cat >>confdefs.h <<_ACEOF 11827 cat >>confdefs.h <<_ACEOF
20878 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11828 #define HAVE_STRFTIME 1
20879 _ACEOF 11829 _ACEOF
20880 11830
20881 else 11831 else
20882 # strftime is in -lintl on SCO UNIX. 11832 # strftime is in -lintl on SCO UNIX.
20883 { $as_echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 11833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
20884 $as_echo_n "checking for strftime in -lintl... " >&6; } 11834 $as_echo_n "checking for strftime in -lintl... " >&6; }
20885 if test "${ac_cv_lib_intl_strftime+set}" = set; then 11835 if test "${ac_cv_lib_intl_strftime+set}" = set; then :
20886 $as_echo_n "(cached) " >&6 11836 $as_echo_n "(cached) " >&6
20887 else 11837 else
20888 ac_check_lib_save_LIBS=$LIBS 11838 ac_check_lib_save_LIBS=$LIBS
20889 LIBS="-lintl $LIBS" 11839 LIBS="-lintl $LIBS"
20890 cat >conftest.$ac_ext <<_ACEOF 11840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20891 /* confdefs.h. */
20892 _ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h. */ 11841 /* end confdefs.h. */
20896 11842
20897 /* Override any GCC internal prototype to avoid an error. 11843 /* Override any GCC internal prototype to avoid an error.
20898 Use char because int might match the return type of a GCC 11844 Use char because int might match the return type of a GCC
20899 builtin and then its argument prototype would still apply. */ 11845 builtin and then its argument prototype would still apply. */
20907 return strftime (); 11853 return strftime ();
20908 ; 11854 ;
20909 return 0; 11855 return 0;
20910 } 11856 }
20911 _ACEOF 11857 _ACEOF
20912 rm -f conftest.$ac_objext conftest$ac_exeext 11858 if ac_fn_c_try_link "$LINENO"; then :
20913 if { (ac_try="$ac_link"
20914 case "(($ac_try" in
20915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20916 *) ac_try_echo=$ac_try;;
20917 esac
20918 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20919 $as_echo "$ac_try_echo") >&5
20920 (eval "$ac_link") 2>conftest.er1
20921 ac_status=$?
20922 grep -v '^ *+' conftest.er1 >conftest.err
20923 rm -f conftest.er1
20924 cat conftest.err >&5
20925 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20926 (exit $ac_status); } && {
20927 test -z "$ac_c_werror_flag" ||
20928 test ! -s conftest.err
20929 } && test -s conftest$ac_exeext && {
20930 test "$cross_compiling" = yes ||
20931 $as_test_x conftest$ac_exeext
20932 }; then
20933 ac_cv_lib_intl_strftime=yes 11859 ac_cv_lib_intl_strftime=yes
20934 else 11860 else
20935 $as_echo "$as_me: failed program was:" >&5 11861 ac_cv_lib_intl_strftime=no
20936 sed 's/^/| /' conftest.$ac_ext >&5 11862 fi
20937 11863 rm -f core conftest.err conftest.$ac_objext \
20938 ac_cv_lib_intl_strftime=no 11864 conftest$ac_exeext conftest.$ac_ext
20939 fi
20940
20941 rm -rf conftest.dSYM
20942 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20943 conftest$ac_exeext conftest.$ac_ext
20944 LIBS=$ac_check_lib_save_LIBS 11865 LIBS=$ac_check_lib_save_LIBS
20945 fi 11866 fi
20946 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
20947 $as_echo "$ac_cv_lib_intl_strftime" >&6; } 11868 $as_echo "$ac_cv_lib_intl_strftime" >&6; }
20948 if test $ac_cv_lib_intl_strftime = yes; then 11869 if test "x$ac_cv_lib_intl_strftime" = x""yes; then :
20949 cat >>confdefs.h <<\_ACEOF 11870 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
20950 #define HAVE_STRFTIME 1
20951 _ACEOF
20952 11871
20953 LIBS="-lintl $LIBS" 11872 LIBS="-lintl $LIBS"
20954 fi 11873 fi
20955 11874
20956 fi 11875 fi
20957 done 11876 done
20958 11877
20959 11878
20960 # UNIX98 PTYs. 11879 # UNIX98 PTYs.
20961
20962 for ac_func in grantpt 11880 for ac_func in grantpt
20963 do 11881 do :
20964 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11882 ac_fn_c_check_func "$LINENO" "grantpt" "ac_cv_func_grantpt"
20965 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11883 if test "x$ac_cv_func_grantpt" = x""yes; then :
20966 $as_echo_n "checking for $ac_func... " >&6; }
20967 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20968 $as_echo_n "(cached) " >&6
20969 else
20970 cat >conftest.$ac_ext <<_ACEOF
20971 /* confdefs.h. */
20972 _ACEOF
20973 cat confdefs.h >>conftest.$ac_ext
20974 cat >>conftest.$ac_ext <<_ACEOF
20975 /* end confdefs.h. */
20976 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20977 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20978 #define $ac_func innocuous_$ac_func
20979
20980 /* System header to define __stub macros and hopefully few prototypes,
20981 which can conflict with char $ac_func (); below.
20982 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20983 <limits.h> exists even on freestanding compilers. */
20984
20985 #ifdef __STDC__
20986 # include <limits.h>
20987 #else
20988 # include <assert.h>
20989 #endif
20990
20991 #undef $ac_func
20992
20993 /* Override any GCC internal prototype to avoid an error.
20994 Use char because int might match the return type of a GCC
20995 builtin and then its argument prototype would still apply. */
20996 #ifdef __cplusplus
20997 extern "C"
20998 #endif
20999 char $ac_func ();
21000 /* The GNU C library defines this for functions which it implements
21001 to always fail with ENOSYS. Some functions are actually named
21002 something starting with __ and the normal name is an alias. */
21003 #if defined __stub_$ac_func || defined __stub___$ac_func
21004 choke me
21005 #endif
21006
21007 int
21008 main ()
21009 {
21010 return $ac_func ();
21011 ;
21012 return 0;
21013 }
21014 _ACEOF
21015 rm -f conftest.$ac_objext conftest$ac_exeext
21016 if { (ac_try="$ac_link"
21017 case "(($ac_try" in
21018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21019 *) ac_try_echo=$ac_try;;
21020 esac
21021 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21022 $as_echo "$ac_try_echo") >&5
21023 (eval "$ac_link") 2>conftest.er1
21024 ac_status=$?
21025 grep -v '^ *+' conftest.er1 >conftest.err
21026 rm -f conftest.er1
21027 cat conftest.err >&5
21028 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21029 (exit $ac_status); } && {
21030 test -z "$ac_c_werror_flag" ||
21031 test ! -s conftest.err
21032 } && test -s conftest$ac_exeext && {
21033 test "$cross_compiling" = yes ||
21034 $as_test_x conftest$ac_exeext
21035 }; then
21036 eval "$as_ac_var=yes"
21037 else
21038 $as_echo "$as_me: failed program was:" >&5
21039 sed 's/^/| /' conftest.$ac_ext >&5
21040
21041 eval "$as_ac_var=no"
21042 fi
21043
21044 rm -rf conftest.dSYM
21045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21046 conftest$ac_exeext conftest.$ac_ext
21047 fi
21048 ac_res=`eval 'as_val=${'$as_ac_var'}
21049 $as_echo "$as_val"'`
21050 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21051 $as_echo "$ac_res" >&6; }
21052 if test `eval 'as_val=${'$as_ac_var'}
21053 $as_echo "$as_val"'` = yes; then
21054 cat >>confdefs.h <<_ACEOF 11884 cat >>confdefs.h <<_ACEOF
21055 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11885 #define HAVE_GRANTPT 1
21056 _ACEOF 11886 _ACEOF
21057 11887
21058 fi 11888 fi
21059 done 11889 done
21060 11890
21061 11891
21062 # PTY-related GNU extensions. 11892 # PTY-related GNU extensions.
21063
21064 for ac_func in getpt 11893 for ac_func in getpt
21065 do 11894 do :
21066 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11895 ac_fn_c_check_func "$LINENO" "getpt" "ac_cv_func_getpt"
21067 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 11896 if test "x$ac_cv_func_getpt" = x""yes; then :
21068 $as_echo_n "checking for $ac_func... " >&6; }
21069 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21070 $as_echo_n "(cached) " >&6
21071 else
21072 cat >conftest.$ac_ext <<_ACEOF
21073 /* confdefs.h. */
21074 _ACEOF
21075 cat confdefs.h >>conftest.$ac_ext
21076 cat >>conftest.$ac_ext <<_ACEOF
21077 /* end confdefs.h. */
21078 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21079 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21080 #define $ac_func innocuous_$ac_func
21081
21082 /* System header to define __stub macros and hopefully few prototypes,
21083 which can conflict with char $ac_func (); below.
21084 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21085 <limits.h> exists even on freestanding compilers. */
21086
21087 #ifdef __STDC__
21088 # include <limits.h>
21089 #else
21090 # include <assert.h>
21091 #endif
21092
21093 #undef $ac_func
21094
21095 /* Override any GCC internal prototype to avoid an error.
21096 Use char because int might match the return type of a GCC
21097 builtin and then its argument prototype would still apply. */
21098 #ifdef __cplusplus
21099 extern "C"
21100 #endif
21101 char $ac_func ();
21102 /* The GNU C library defines this for functions which it implements
21103 to always fail with ENOSYS. Some functions are actually named
21104 something starting with __ and the normal name is an alias. */
21105 #if defined __stub_$ac_func || defined __stub___$ac_func
21106 choke me
21107 #endif
21108
21109 int
21110 main ()
21111 {
21112 return $ac_func ();
21113 ;
21114 return 0;
21115 }
21116 _ACEOF
21117 rm -f conftest.$ac_objext conftest$ac_exeext
21118 if { (ac_try="$ac_link"
21119 case "(($ac_try" in
21120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21121 *) ac_try_echo=$ac_try;;
21122 esac
21123 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21124 $as_echo "$ac_try_echo") >&5
21125 (eval "$ac_link") 2>conftest.er1
21126 ac_status=$?
21127 grep -v '^ *+' conftest.er1 >conftest.err
21128 rm -f conftest.er1
21129 cat conftest.err >&5
21130 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); } && {
21132 test -z "$ac_c_werror_flag" ||
21133 test ! -s conftest.err
21134 } && test -s conftest$ac_exeext && {
21135 test "$cross_compiling" = yes ||
21136 $as_test_x conftest$ac_exeext
21137 }; then
21138 eval "$as_ac_var=yes"
21139 else
21140 $as_echo "$as_me: failed program was:" >&5
21141 sed 's/^/| /' conftest.$ac_ext >&5
21142
21143 eval "$as_ac_var=no"
21144 fi
21145
21146 rm -rf conftest.dSYM
21147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21148 conftest$ac_exeext conftest.$ac_ext
21149 fi
21150 ac_res=`eval 'as_val=${'$as_ac_var'}
21151 $as_echo "$as_val"'`
21152 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
21153 $as_echo "$ac_res" >&6; }
21154 if test `eval 'as_val=${'$as_ac_var'}
21155 $as_echo "$as_val"'` = yes; then
21156 cat >>confdefs.h <<_ACEOF 11897 cat >>confdefs.h <<_ACEOF
21157 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11898 #define HAVE_GETPT 1
21158 _ACEOF 11899 _ACEOF
21159 11900
21160 fi 11901 fi
21161 done 11902 done
21162 11903
21165 # That is because we have not set up to link ncurses in lib-src. 11906 # That is because we have not set up to link ncurses in lib-src.
21166 # It's better to believe a function is not available 11907 # It's better to believe a function is not available
21167 # than to expect to find it in ncurses. 11908 # than to expect to find it in ncurses.
21168 # Also we need tputs and frieds to be able to build at all. 11909 # Also we need tputs and frieds to be able to build at all.
21169 have_tputs_et_al=true 11910 have_tputs_et_al=true
21170 { $as_echo "$as_me:$LINENO: checking for library containing tputs" >&5 11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing tputs" >&5
21171 $as_echo_n "checking for library containing tputs... " >&6; } 11912 $as_echo_n "checking for library containing tputs... " >&6; }
21172 if test "${ac_cv_search_tputs+set}" = set; then 11913 if test "${ac_cv_search_tputs+set}" = set; then :
21173 $as_echo_n "(cached) " >&6 11914 $as_echo_n "(cached) " >&6
21174 else 11915 else
21175 ac_func_search_save_LIBS=$LIBS 11916 ac_func_search_save_LIBS=$LIBS
21176 cat >conftest.$ac_ext <<_ACEOF 11917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21177 /* confdefs.h. */
21178 _ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */ 11918 /* end confdefs.h. */
21182 11919
21183 /* Override any GCC internal prototype to avoid an error. 11920 /* Override any GCC internal prototype to avoid an error.
21184 Use char because int might match the return type of a GCC 11921 Use char because int might match the return type of a GCC
21185 builtin and then its argument prototype would still apply. */ 11922 builtin and then its argument prototype would still apply. */
21200 ac_res="none required" 11937 ac_res="none required"
21201 else 11938 else
21202 ac_res=-l$ac_lib 11939 ac_res=-l$ac_lib
21203 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11940 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21204 fi 11941 fi
21205 rm -f conftest.$ac_objext conftest$ac_exeext 11942 if ac_fn_c_try_link "$LINENO"; then :
21206 if { (ac_try="$ac_link"
21207 case "(($ac_try" in
21208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21209 *) ac_try_echo=$ac_try;;
21210 esac
21211 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21212 $as_echo "$ac_try_echo") >&5
21213 (eval "$ac_link") 2>conftest.er1
21214 ac_status=$?
21215 grep -v '^ *+' conftest.er1 >conftest.err
21216 rm -f conftest.er1
21217 cat conftest.err >&5
21218 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21219 (exit $ac_status); } && {
21220 test -z "$ac_c_werror_flag" ||
21221 test ! -s conftest.err
21222 } && test -s conftest$ac_exeext && {
21223 test "$cross_compiling" = yes ||
21224 $as_test_x conftest$ac_exeext
21225 }; then
21226 ac_cv_search_tputs=$ac_res 11943 ac_cv_search_tputs=$ac_res
21227 else 11944 fi
21228 $as_echo "$as_me: failed program was:" >&5 11945 rm -f core conftest.err conftest.$ac_objext \
21229 sed 's/^/| /' conftest.$ac_ext >&5 11946 conftest$ac_exeext
21230 11947 if test "${ac_cv_search_tputs+set}" = set; then :
21231
21232 fi
21233
21234 rm -rf conftest.dSYM
21235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21236 conftest$ac_exeext
21237 if test "${ac_cv_search_tputs+set}" = set; then
21238 break 11948 break
21239 fi 11949 fi
21240 done 11950 done
21241 if test "${ac_cv_search_tputs+set}" = set; then 11951 if test "${ac_cv_search_tputs+set}" = set; then :
21242 : 11952
21243 else 11953 else
21244 ac_cv_search_tputs=no 11954 ac_cv_search_tputs=no
21245 fi 11955 fi
21246 rm conftest.$ac_ext 11956 rm conftest.$ac_ext
21247 LIBS=$ac_func_search_save_LIBS 11957 LIBS=$ac_func_search_save_LIBS
21248 fi 11958 fi
21249 { $as_echo "$as_me:$LINENO: result: $ac_cv_search_tputs" >&5 11959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_tputs" >&5
21250 $as_echo "$ac_cv_search_tputs" >&6; } 11960 $as_echo "$ac_cv_search_tputs" >&6; }
21251 ac_res=$ac_cv_search_tputs 11961 ac_res=$ac_cv_search_tputs
21252 if test "$ac_res" != no; then 11962 if test "$ac_res" != no; then :
21253 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 11963 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21254 11964
21255 else 11965 else
21256 have_tputs_et_al=false 11966 have_tputs_et_al=false
21257 fi 11967 fi
21258 11968
21259 if test "$have_tputs_et_al" != true; then 11969 if test "$have_tputs_et_al" != true; then
21260 { { $as_echo "$as_me:$LINENO: error: I couldn't find termcap functions (tputs and friends). 11970 as_fn_error "I couldn't find termcap functions (tputs and friends).
21261 Maybe some development libraries/packages are missing? Try installing 11971 Maybe some development libraries/packages are missing? Try installing
21262 libncurses-dev(el), libterminfo-dev(el) or similar." >&5 11972 libncurses-dev(el), libterminfo-dev(el) or similar." "$LINENO" 5
21263 $as_echo "$as_me: error: I couldn't find termcap functions (tputs and friends).
21264 Maybe some development libraries/packages are missing? Try installing
21265 libncurses-dev(el), libterminfo-dev(el) or similar." >&2;}
21266 { (exit 1); exit 1; }; }
21267 fi 11973 fi
21268 # Must define this when any termcap library is found. 11974 # Must define this when any termcap library is found.
21269 11975
21270 cat >>confdefs.h <<\_ACEOF 11976 $as_echo "#define HAVE_LIBNCURSES 1" >>confdefs.h
21271 #define HAVE_LIBNCURSES 1
21272 _ACEOF
21273 11977
21274 11978
21275 # Do we have res_init, for detecting changes in /etc/resolv.conf? 11979 # Do we have res_init, for detecting changes in /etc/resolv.conf?
21276 11980
21277 resolv=no 11981 resolv=no
21278 cat >conftest.$ac_ext <<_ACEOF 11982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21279 /* confdefs.h. */
21280 _ACEOF
21281 cat confdefs.h >>conftest.$ac_ext
21282 cat >>conftest.$ac_ext <<_ACEOF
21283 /* end confdefs.h. */ 11983 /* end confdefs.h. */
21284 #include <netinet/in.h> 11984 #include <netinet/in.h>
21285 #include <arpa/nameser.h> 11985 #include <arpa/nameser.h>
21286 #include <resolv.h> 11986 #include <resolv.h>
21287 int 11987 int
21290 return res_init(); 11990 return res_init();
21291 ; 11991 ;
21292 return 0; 11992 return 0;
21293 } 11993 }
21294 _ACEOF 11994 _ACEOF
21295 rm -f conftest.$ac_objext conftest$ac_exeext 11995 if ac_fn_c_try_link "$LINENO"; then :
21296 if { (ac_try="$ac_link"
21297 case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21300 esac
21301 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21302 $as_echo "$ac_try_echo") >&5
21303 (eval "$ac_link") 2>conftest.er1
21304 ac_status=$?
21305 grep -v '^ *+' conftest.er1 >conftest.err
21306 rm -f conftest.er1
21307 cat conftest.err >&5
21308 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } && {
21310 test -z "$ac_c_werror_flag" ||
21311 test ! -s conftest.err
21312 } && test -s conftest$ac_exeext && {
21313 test "$cross_compiling" = yes ||
21314 $as_test_x conftest$ac_exeext
21315 }; then
21316 have_res_init=yes 11996 have_res_init=yes
21317 else 11997 else
21318 $as_echo "$as_me: failed program was:" >&5 11998 have_res_init=no
21319 sed 's/^/| /' conftest.$ac_ext >&5 11999 fi
21320 12000 rm -f core conftest.err conftest.$ac_objext \
21321 have_res_init=no 12001 conftest$ac_exeext conftest.$ac_ext
21322 fi
21323
21324 rm -rf conftest.dSYM
21325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21326 conftest$ac_exeext conftest.$ac_ext
21327 if test "$have_res_init" = no; then 12002 if test "$have_res_init" = no; then
21328 OLIBS="$LIBS" 12003 OLIBS="$LIBS"
21329 LIBS="$LIBS -lresolv" 12004 LIBS="$LIBS -lresolv"
21330 { $as_echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5 12005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_init with -lresolv" >&5
21331 $as_echo_n "checking for res_init with -lresolv... " >&6; } 12006 $as_echo_n "checking for res_init with -lresolv... " >&6; }
21332 cat >conftest.$ac_ext <<_ACEOF 12007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21333 /* confdefs.h. */
21334 _ACEOF
21335 cat confdefs.h >>conftest.$ac_ext
21336 cat >>conftest.$ac_ext <<_ACEOF
21337 /* end confdefs.h. */ 12008 /* end confdefs.h. */
21338 #include <netinet/in.h> 12009 #include <netinet/in.h>
21339 #include <arpa/nameser.h> 12010 #include <arpa/nameser.h>
21340 #include <resolv.h> 12011 #include <resolv.h>
21341 int 12012 int
21344 return res_init(); 12015 return res_init();
21345 ; 12016 ;
21346 return 0; 12017 return 0;
21347 } 12018 }
21348 _ACEOF 12019 _ACEOF
21349 rm -f conftest.$ac_objext conftest$ac_exeext 12020 if ac_fn_c_try_link "$LINENO"; then :
21350 if { (ac_try="$ac_link"
21351 case "(($ac_try" in
21352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21353 *) ac_try_echo=$ac_try;;
21354 esac
21355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21356 $as_echo "$ac_try_echo") >&5
21357 (eval "$ac_link") 2>conftest.er1
21358 ac_status=$?
21359 grep -v '^ *+' conftest.er1 >conftest.err
21360 rm -f conftest.er1
21361 cat conftest.err >&5
21362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } && {
21364 test -z "$ac_c_werror_flag" ||
21365 test ! -s conftest.err
21366 } && test -s conftest$ac_exeext && {
21367 test "$cross_compiling" = yes ||
21368 $as_test_x conftest$ac_exeext
21369 }; then
21370 have_res_init=yes 12021 have_res_init=yes
21371 else 12022 else
21372 $as_echo "$as_me: failed program was:" >&5 12023 have_res_init=no
21373 sed 's/^/| /' conftest.$ac_ext >&5 12024 fi
21374 12025 rm -f core conftest.err conftest.$ac_objext \
21375 have_res_init=no 12026 conftest$ac_exeext conftest.$ac_ext
21376 fi 12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_res_init" >&5
21377
21378 rm -rf conftest.dSYM
21379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21380 conftest$ac_exeext conftest.$ac_ext
21381 { $as_echo "$as_me:$LINENO: result: $have_res_init" >&5
21382 $as_echo "$have_res_init" >&6; } 12028 $as_echo "$have_res_init" >&6; }
21383 if test "$have_res_init" = yes ; then 12029 if test "$have_res_init" = yes ; then
21384 resolv=yes 12030 resolv=yes
21385 fi 12031 fi
21386 LIBS="$OLIBS" 12032 LIBS="$OLIBS"
21387 fi 12033 fi
21388 12034
21389 if test "$have_res_init" = yes; then 12035 if test "$have_res_init" = yes; then
21390 12036
21391 cat >>confdefs.h <<\_ACEOF 12037 $as_echo "#define HAVE_RES_INIT 1" >>confdefs.h
21392 #define HAVE_RES_INIT 1
21393 _ACEOF
21394 12038
21395 fi 12039 fi
21396 12040
21397 # Do we need the Hesiod library to provide the support routines? 12041 # Do we need the Hesiod library to provide the support routines?
21398 LIBHESIOD= 12042 LIBHESIOD=
21399 if test "$with_hesiod" != no ; then 12043 if test "$with_hesiod" != no ; then
21400 # Don't set $LIBS here -- see comments above. FIXME which comments? 12044 # Don't set $LIBS here -- see comments above. FIXME which comments?
21401 { $as_echo "$as_me:$LINENO: checking for res_send" >&5 12045 ac_fn_c_check_func "$LINENO" "res_send" "ac_cv_func_res_send"
21402 $as_echo_n "checking for res_send... " >&6; } 12046 if test "x$ac_cv_func_res_send" = x""yes; then :
21403 if test "${ac_cv_func_res_send+set}" = set; then 12047
21404 $as_echo_n "(cached) " >&6 12048 else
21405 else 12049 ac_fn_c_check_func "$LINENO" "__res_send" "ac_cv_func___res_send"
21406 cat >conftest.$ac_ext <<_ACEOF 12050 if test "x$ac_cv_func___res_send" = x""yes; then :
21407 /* confdefs.h. */ 12051
21408 _ACEOF 12052 else
21409 cat confdefs.h >>conftest.$ac_ext 12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_send in -lresolv" >&5
21410 cat >>conftest.$ac_ext <<_ACEOF
21411 /* end confdefs.h. */
21412 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21414 #define res_send innocuous_res_send
21415
21416 /* System header to define __stub macros and hopefully few prototypes,
21417 which can conflict with char res_send (); below.
21418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21419 <limits.h> exists even on freestanding compilers. */
21420
21421 #ifdef __STDC__
21422 # include <limits.h>
21423 #else
21424 # include <assert.h>
21425 #endif
21426
21427 #undef res_send
21428
21429 /* Override any GCC internal prototype to avoid an error.
21430 Use char because int might match the return type of a GCC
21431 builtin and then its argument prototype would still apply. */
21432 #ifdef __cplusplus
21433 extern "C"
21434 #endif
21435 char res_send ();
21436 /* The GNU C library defines this for functions which it implements
21437 to always fail with ENOSYS. Some functions are actually named
21438 something starting with __ and the normal name is an alias. */
21439 #if defined __stub_res_send || defined __stub___res_send
21440 choke me
21441 #endif
21442
21443 int
21444 main ()
21445 {
21446 return res_send ();
21447 ;
21448 return 0;
21449 }
21450 _ACEOF
21451 rm -f conftest.$ac_objext conftest$ac_exeext
21452 if { (ac_try="$ac_link"
21453 case "(($ac_try" in
21454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21455 *) ac_try_echo=$ac_try;;
21456 esac
21457 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21458 $as_echo "$ac_try_echo") >&5
21459 (eval "$ac_link") 2>conftest.er1
21460 ac_status=$?
21461 grep -v '^ *+' conftest.er1 >conftest.err
21462 rm -f conftest.er1
21463 cat conftest.err >&5
21464 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21465 (exit $ac_status); } && {
21466 test -z "$ac_c_werror_flag" ||
21467 test ! -s conftest.err
21468 } && test -s conftest$ac_exeext && {
21469 test "$cross_compiling" = yes ||
21470 $as_test_x conftest$ac_exeext
21471 }; then
21472 ac_cv_func_res_send=yes
21473 else
21474 $as_echo "$as_me: failed program was:" >&5
21475 sed 's/^/| /' conftest.$ac_ext >&5
21476
21477 ac_cv_func_res_send=no
21478 fi
21479
21480 rm -rf conftest.dSYM
21481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21482 conftest$ac_exeext conftest.$ac_ext
21483 fi
21484 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21485 $as_echo "$ac_cv_func_res_send" >&6; }
21486 if test $ac_cv_func_res_send = yes; then
21487 :
21488 else
21489 { $as_echo "$as_me:$LINENO: checking for __res_send" >&5
21490 $as_echo_n "checking for __res_send... " >&6; }
21491 if test "${ac_cv_func___res_send+set}" = set; then
21492 $as_echo_n "(cached) " >&6
21493 else
21494 cat >conftest.$ac_ext <<_ACEOF
21495 /* confdefs.h. */
21496 _ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h. */
21500 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21502 #define __res_send innocuous___res_send
21503
21504 /* System header to define __stub macros and hopefully few prototypes,
21505 which can conflict with char __res_send (); below.
21506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21507 <limits.h> exists even on freestanding compilers. */
21508
21509 #ifdef __STDC__
21510 # include <limits.h>
21511 #else
21512 # include <assert.h>
21513 #endif
21514
21515 #undef __res_send
21516
21517 /* Override any GCC internal prototype to avoid an error.
21518 Use char because int might match the return type of a GCC
21519 builtin and then its argument prototype would still apply. */
21520 #ifdef __cplusplus
21521 extern "C"
21522 #endif
21523 char __res_send ();
21524 /* The GNU C library defines this for functions which it implements
21525 to always fail with ENOSYS. Some functions are actually named
21526 something starting with __ and the normal name is an alias. */
21527 #if defined __stub___res_send || defined __stub_____res_send
21528 choke me
21529 #endif
21530
21531 int
21532 main ()
21533 {
21534 return __res_send ();
21535 ;
21536 return 0;
21537 }
21538 _ACEOF
21539 rm -f conftest.$ac_objext conftest$ac_exeext
21540 if { (ac_try="$ac_link"
21541 case "(($ac_try" in
21542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21544 esac
21545 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21546 $as_echo "$ac_try_echo") >&5
21547 (eval "$ac_link") 2>conftest.er1
21548 ac_status=$?
21549 grep -v '^ *+' conftest.er1 >conftest.err
21550 rm -f conftest.er1
21551 cat conftest.err >&5
21552 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21553 (exit $ac_status); } && {
21554 test -z "$ac_c_werror_flag" ||
21555 test ! -s conftest.err
21556 } && test -s conftest$ac_exeext && {
21557 test "$cross_compiling" = yes ||
21558 $as_test_x conftest$ac_exeext
21559 }; then
21560 ac_cv_func___res_send=yes
21561 else
21562 $as_echo "$as_me: failed program was:" >&5
21563 sed 's/^/| /' conftest.$ac_ext >&5
21564
21565 ac_cv_func___res_send=no
21566 fi
21567
21568 rm -rf conftest.dSYM
21569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21570 conftest$ac_exeext conftest.$ac_ext
21571 fi
21572 { $as_echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21573 $as_echo "$ac_cv_func___res_send" >&6; }
21574 if test $ac_cv_func___res_send = yes; then
21575 :
21576 else
21577 { $as_echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21578 $as_echo_n "checking for res_send in -lresolv... " >&6; } 12054 $as_echo_n "checking for res_send in -lresolv... " >&6; }
21579 if test "${ac_cv_lib_resolv_res_send+set}" = set; then 12055 if test "${ac_cv_lib_resolv_res_send+set}" = set; then :
21580 $as_echo_n "(cached) " >&6 12056 $as_echo_n "(cached) " >&6
21581 else 12057 else
21582 ac_check_lib_save_LIBS=$LIBS 12058 ac_check_lib_save_LIBS=$LIBS
21583 LIBS="-lresolv $LIBS" 12059 LIBS="-lresolv $LIBS"
21584 cat >conftest.$ac_ext <<_ACEOF 12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21585 /* confdefs.h. */
21586 _ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */ 12061 /* end confdefs.h. */
21590 12062
21591 /* Override any GCC internal prototype to avoid an error. 12063 /* Override any GCC internal prototype to avoid an error.
21592 Use char because int might match the return type of a GCC 12064 Use char because int might match the return type of a GCC
21593 builtin and then its argument prototype would still apply. */ 12065 builtin and then its argument prototype would still apply. */
21601 return res_send (); 12073 return res_send ();
21602 ; 12074 ;
21603 return 0; 12075 return 0;
21604 } 12076 }
21605 _ACEOF 12077 _ACEOF
21606 rm -f conftest.$ac_objext conftest$ac_exeext 12078 if ac_fn_c_try_link "$LINENO"; then :
21607 if { (ac_try="$ac_link"
21608 case "(($ac_try" in
21609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21610 *) ac_try_echo=$ac_try;;
21611 esac
21612 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21613 $as_echo "$ac_try_echo") >&5
21614 (eval "$ac_link") 2>conftest.er1
21615 ac_status=$?
21616 grep -v '^ *+' conftest.er1 >conftest.err
21617 rm -f conftest.er1
21618 cat conftest.err >&5
21619 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21620 (exit $ac_status); } && {
21621 test -z "$ac_c_werror_flag" ||
21622 test ! -s conftest.err
21623 } && test -s conftest$ac_exeext && {
21624 test "$cross_compiling" = yes ||
21625 $as_test_x conftest$ac_exeext
21626 }; then
21627 ac_cv_lib_resolv_res_send=yes 12079 ac_cv_lib_resolv_res_send=yes
21628 else 12080 else
21629 $as_echo "$as_me: failed program was:" >&5 12081 ac_cv_lib_resolv_res_send=no
21630 sed 's/^/| /' conftest.$ac_ext >&5 12082 fi
21631 12083 rm -f core conftest.err conftest.$ac_objext \
21632 ac_cv_lib_resolv_res_send=no 12084 conftest$ac_exeext conftest.$ac_ext
21633 fi
21634
21635 rm -rf conftest.dSYM
21636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21637 conftest$ac_exeext conftest.$ac_ext
21638 LIBS=$ac_check_lib_save_LIBS 12085 LIBS=$ac_check_lib_save_LIBS
21639 fi 12086 fi
21640 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5 12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_send" >&5
21641 $as_echo "$ac_cv_lib_resolv_res_send" >&6; } 12088 $as_echo "$ac_cv_lib_resolv_res_send" >&6; }
21642 if test $ac_cv_lib_resolv_res_send = yes; then 12089 if test "x$ac_cv_lib_resolv_res_send" = x""yes; then :
21643 resolv=yes 12090 resolv=yes
21644 else 12091 else
21645 { $as_echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5 12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __res_send in -lresolv" >&5
21646 $as_echo_n "checking for __res_send in -lresolv... " >&6; } 12093 $as_echo_n "checking for __res_send in -lresolv... " >&6; }
21647 if test "${ac_cv_lib_resolv___res_send+set}" = set; then 12094 if test "${ac_cv_lib_resolv___res_send+set}" = set; then :
21648 $as_echo_n "(cached) " >&6 12095 $as_echo_n "(cached) " >&6
21649 else 12096 else
21650 ac_check_lib_save_LIBS=$LIBS 12097 ac_check_lib_save_LIBS=$LIBS
21651 LIBS="-lresolv $LIBS" 12098 LIBS="-lresolv $LIBS"
21652 cat >conftest.$ac_ext <<_ACEOF 12099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21653 /* confdefs.h. */
21654 _ACEOF
21655 cat confdefs.h >>conftest.$ac_ext
21656 cat >>conftest.$ac_ext <<_ACEOF
21657 /* end confdefs.h. */ 12100 /* end confdefs.h. */
21658 12101
21659 /* Override any GCC internal prototype to avoid an error. 12102 /* Override any GCC internal prototype to avoid an error.
21660 Use char because int might match the return type of a GCC 12103 Use char because int might match the return type of a GCC
21661 builtin and then its argument prototype would still apply. */ 12104 builtin and then its argument prototype would still apply. */
21669 return __res_send (); 12112 return __res_send ();
21670 ; 12113 ;
21671 return 0; 12114 return 0;
21672 } 12115 }
21673 _ACEOF 12116 _ACEOF
21674 rm -f conftest.$ac_objext conftest$ac_exeext 12117 if ac_fn_c_try_link "$LINENO"; then :
21675 if { (ac_try="$ac_link"
21676 case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21679 esac
21680 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21681 $as_echo "$ac_try_echo") >&5
21682 (eval "$ac_link") 2>conftest.er1
21683 ac_status=$?
21684 grep -v '^ *+' conftest.er1 >conftest.err
21685 rm -f conftest.er1
21686 cat conftest.err >&5
21687 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21688 (exit $ac_status); } && {
21689 test -z "$ac_c_werror_flag" ||
21690 test ! -s conftest.err
21691 } && test -s conftest$ac_exeext && {
21692 test "$cross_compiling" = yes ||
21693 $as_test_x conftest$ac_exeext
21694 }; then
21695 ac_cv_lib_resolv___res_send=yes 12118 ac_cv_lib_resolv___res_send=yes
21696 else 12119 else
21697 $as_echo "$as_me: failed program was:" >&5 12120 ac_cv_lib_resolv___res_send=no
21698 sed 's/^/| /' conftest.$ac_ext >&5 12121 fi
21699 12122 rm -f core conftest.err conftest.$ac_objext \
21700 ac_cv_lib_resolv___res_send=no 12123 conftest$ac_exeext conftest.$ac_ext
21701 fi
21702
21703 rm -rf conftest.dSYM
21704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21705 conftest$ac_exeext conftest.$ac_ext
21706 LIBS=$ac_check_lib_save_LIBS 12124 LIBS=$ac_check_lib_save_LIBS
21707 fi 12125 fi
21708 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5 12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___res_send" >&5
21709 $as_echo "$ac_cv_lib_resolv___res_send" >&6; } 12127 $as_echo "$ac_cv_lib_resolv___res_send" >&6; }
21710 if test $ac_cv_lib_resolv___res_send = yes; then 12128 if test "x$ac_cv_lib_resolv___res_send" = x""yes; then :
21711 resolv=yes 12129 resolv=yes
21712 fi 12130 fi
21713 12131
21714 fi 12132 fi
21715 12133
21720 if test "$resolv" = yes ; then 12138 if test "$resolv" = yes ; then
21721 RESOLVLIB=-lresolv 12139 RESOLVLIB=-lresolv
21722 else 12140 else
21723 RESOLVLIB= 12141 RESOLVLIB=
21724 fi 12142 fi
21725 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost" >&5 12143 ac_fn_c_check_func "$LINENO" "hes_getmailhost" "ac_cv_func_hes_getmailhost"
21726 $as_echo_n "checking for hes_getmailhost... " >&6; } 12144 if test "x$ac_cv_func_hes_getmailhost" = x""yes; then :
21727 if test "${ac_cv_func_hes_getmailhost+set}" = set; then 12145
21728 $as_echo_n "(cached) " >&6 12146 else
21729 else 12147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hes_getmailhost in -lhesiod" >&5
21730 cat >conftest.$ac_ext <<_ACEOF
21731 /* confdefs.h. */
21732 _ACEOF
21733 cat confdefs.h >>conftest.$ac_ext
21734 cat >>conftest.$ac_ext <<_ACEOF
21735 /* end confdefs.h. */
21736 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21738 #define hes_getmailhost innocuous_hes_getmailhost
21739
21740 /* System header to define __stub macros and hopefully few prototypes,
21741 which can conflict with char hes_getmailhost (); below.
21742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21743 <limits.h> exists even on freestanding compilers. */
21744
21745 #ifdef __STDC__
21746 # include <limits.h>
21747 #else
21748 # include <assert.h>
21749 #endif
21750
21751 #undef hes_getmailhost
21752
21753 /* Override any GCC internal prototype to avoid an error.
21754 Use char because int might match the return type of a GCC
21755 builtin and then its argument prototype would still apply. */
21756 #ifdef __cplusplus
21757 extern "C"
21758 #endif
21759 char hes_getmailhost ();
21760 /* The GNU C library defines this for functions which it implements
21761 to always fail with ENOSYS. Some functions are actually named
21762 something starting with __ and the normal name is an alias. */
21763 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21764 choke me
21765 #endif
21766
21767 int
21768 main ()
21769 {
21770 return hes_getmailhost ();
21771 ;
21772 return 0;
21773 }
21774 _ACEOF
21775 rm -f conftest.$ac_objext conftest$ac_exeext
21776 if { (ac_try="$ac_link"
21777 case "(($ac_try" in
21778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779 *) ac_try_echo=$ac_try;;
21780 esac
21781 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21782 $as_echo "$ac_try_echo") >&5
21783 (eval "$ac_link") 2>conftest.er1
21784 ac_status=$?
21785 grep -v '^ *+' conftest.er1 >conftest.err
21786 rm -f conftest.er1
21787 cat conftest.err >&5
21788 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21789 (exit $ac_status); } && {
21790 test -z "$ac_c_werror_flag" ||
21791 test ! -s conftest.err
21792 } && test -s conftest$ac_exeext && {
21793 test "$cross_compiling" = yes ||
21794 $as_test_x conftest$ac_exeext
21795 }; then
21796 ac_cv_func_hes_getmailhost=yes
21797 else
21798 $as_echo "$as_me: failed program was:" >&5
21799 sed 's/^/| /' conftest.$ac_ext >&5
21800
21801 ac_cv_func_hes_getmailhost=no
21802 fi
21803
21804 rm -rf conftest.dSYM
21805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21806 conftest$ac_exeext conftest.$ac_ext
21807 fi
21808 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21809 $as_echo "$ac_cv_func_hes_getmailhost" >&6; }
21810 if test $ac_cv_func_hes_getmailhost = yes; then
21811 :
21812 else
21813 { $as_echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21814 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; } 12148 $as_echo_n "checking for hes_getmailhost in -lhesiod... " >&6; }
21815 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then 12149 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then :
21816 $as_echo_n "(cached) " >&6 12150 $as_echo_n "(cached) " >&6
21817 else 12151 else
21818 ac_check_lib_save_LIBS=$LIBS 12152 ac_check_lib_save_LIBS=$LIBS
21819 LIBS="-lhesiod $RESOLVLIB $LIBS" 12153 LIBS="-lhesiod $RESOLVLIB $LIBS"
21820 cat >conftest.$ac_ext <<_ACEOF 12154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21821 /* confdefs.h. */
21822 _ACEOF
21823 cat confdefs.h >>conftest.$ac_ext
21824 cat >>conftest.$ac_ext <<_ACEOF
21825 /* end confdefs.h. */ 12155 /* end confdefs.h. */
21826 12156
21827 /* Override any GCC internal prototype to avoid an error. 12157 /* Override any GCC internal prototype to avoid an error.
21828 Use char because int might match the return type of a GCC 12158 Use char because int might match the return type of a GCC
21829 builtin and then its argument prototype would still apply. */ 12159 builtin and then its argument prototype would still apply. */
21837 return hes_getmailhost (); 12167 return hes_getmailhost ();
21838 ; 12168 ;
21839 return 0; 12169 return 0;
21840 } 12170 }
21841 _ACEOF 12171 _ACEOF
21842 rm -f conftest.$ac_objext conftest$ac_exeext 12172 if ac_fn_c_try_link "$LINENO"; then :
21843 if { (ac_try="$ac_link"
21844 case "(($ac_try" in
21845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21846 *) ac_try_echo=$ac_try;;
21847 esac
21848 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21849 $as_echo "$ac_try_echo") >&5
21850 (eval "$ac_link") 2>conftest.er1
21851 ac_status=$?
21852 grep -v '^ *+' conftest.er1 >conftest.err
21853 rm -f conftest.er1
21854 cat conftest.err >&5
21855 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21856 (exit $ac_status); } && {
21857 test -z "$ac_c_werror_flag" ||
21858 test ! -s conftest.err
21859 } && test -s conftest$ac_exeext && {
21860 test "$cross_compiling" = yes ||
21861 $as_test_x conftest$ac_exeext
21862 }; then
21863 ac_cv_lib_hesiod_hes_getmailhost=yes 12173 ac_cv_lib_hesiod_hes_getmailhost=yes
21864 else 12174 else
21865 $as_echo "$as_me: failed program was:" >&5 12175 ac_cv_lib_hesiod_hes_getmailhost=no
21866 sed 's/^/| /' conftest.$ac_ext >&5 12176 fi
21867 12177 rm -f core conftest.err conftest.$ac_objext \
21868 ac_cv_lib_hesiod_hes_getmailhost=no 12178 conftest$ac_exeext conftest.$ac_ext
21869 fi
21870
21871 rm -rf conftest.dSYM
21872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21873 conftest$ac_exeext conftest.$ac_ext
21874 LIBS=$ac_check_lib_save_LIBS 12179 LIBS=$ac_check_lib_save_LIBS
21875 fi 12180 fi
21876 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5 12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21877 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; } 12182 $as_echo "$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21878 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then 12183 if test "x$ac_cv_lib_hesiod_hes_getmailhost" = x""yes; then :
21879 hesiod=yes 12184 hesiod=yes
21880 else 12185 else
21881 : 12186 :
21882 fi 12187 fi
21883 12188
21884 fi 12189 fi
21885 12190
21886 12191
21887 if test x"$hesiod" = xyes; then 12192 if test x"$hesiod" = xyes; then
21888 12193
21889 cat >>confdefs.h <<\_ACEOF 12194 $as_echo "#define HAVE_LIBHESIOD 1" >>confdefs.h
21890 #define HAVE_LIBHESIOD 1
21891 _ACEOF
21892 12195
21893 LIBHESIOD=-lhesiod 12196 LIBHESIOD=-lhesiod
21894 fi 12197 fi
21895 fi 12198 fi
21896 12199
21897 12200
21898 # Do we need libresolv (due to res_init or Hesiod)? 12201 # Do we need libresolv (due to res_init or Hesiod)?
21899 if test "$resolv" = yes ; then 12202 if test "$resolv" = yes ; then
21900 12203
21901 cat >>confdefs.h <<\_ACEOF 12204 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
21902 #define HAVE_LIBRESOLV 1
21903 _ACEOF
21904 12205
21905 LIBRESOLV=-lresolv 12206 LIBRESOLV=-lresolv
21906 else 12207 else
21907 LIBRESOLV= 12208 LIBRESOLV=
21908 fi 12209 fi
21914 KRB5LIB= 12215 KRB5LIB=
21915 DESLIB= 12216 DESLIB=
21916 KRB4LIB= 12217 KRB4LIB=
21917 12218
21918 if test "${with_kerberos}" != no; then 12219 if test "${with_kerberos}" != no; then
21919 { $as_echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5 12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for com_err in -lcom_err" >&5
21920 $as_echo_n "checking for com_err in -lcom_err... " >&6; } 12221 $as_echo_n "checking for com_err in -lcom_err... " >&6; }
21921 if test "${ac_cv_lib_com_err_com_err+set}" = set; then 12222 if test "${ac_cv_lib_com_err_com_err+set}" = set; then :
21922 $as_echo_n "(cached) " >&6 12223 $as_echo_n "(cached) " >&6
21923 else 12224 else
21924 ac_check_lib_save_LIBS=$LIBS 12225 ac_check_lib_save_LIBS=$LIBS
21925 LIBS="-lcom_err $LIBS" 12226 LIBS="-lcom_err $LIBS"
21926 cat >conftest.$ac_ext <<_ACEOF 12227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21927 /* confdefs.h. */
21928 _ACEOF
21929 cat confdefs.h >>conftest.$ac_ext
21930 cat >>conftest.$ac_ext <<_ACEOF
21931 /* end confdefs.h. */ 12228 /* end confdefs.h. */
21932 12229
21933 /* Override any GCC internal prototype to avoid an error. 12230 /* Override any GCC internal prototype to avoid an error.
21934 Use char because int might match the return type of a GCC 12231 Use char because int might match the return type of a GCC
21935 builtin and then its argument prototype would still apply. */ 12232 builtin and then its argument prototype would still apply. */
21943 return com_err (); 12240 return com_err ();
21944 ; 12241 ;
21945 return 0; 12242 return 0;
21946 } 12243 }
21947 _ACEOF 12244 _ACEOF
21948 rm -f conftest.$ac_objext conftest$ac_exeext 12245 if ac_fn_c_try_link "$LINENO"; then :
21949 if { (ac_try="$ac_link"
21950 case "(($ac_try" in
21951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21952 *) ac_try_echo=$ac_try;;
21953 esac
21954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
21955 $as_echo "$ac_try_echo") >&5
21956 (eval "$ac_link") 2>conftest.er1
21957 ac_status=$?
21958 grep -v '^ *+' conftest.er1 >conftest.err
21959 rm -f conftest.er1
21960 cat conftest.err >&5
21961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
21962 (exit $ac_status); } && {
21963 test -z "$ac_c_werror_flag" ||
21964 test ! -s conftest.err
21965 } && test -s conftest$ac_exeext && {
21966 test "$cross_compiling" = yes ||
21967 $as_test_x conftest$ac_exeext
21968 }; then
21969 ac_cv_lib_com_err_com_err=yes 12246 ac_cv_lib_com_err_com_err=yes
21970 else 12247 else
21971 $as_echo "$as_me: failed program was:" >&5 12248 ac_cv_lib_com_err_com_err=no
21972 sed 's/^/| /' conftest.$ac_ext >&5 12249 fi
21973 12250 rm -f core conftest.err conftest.$ac_objext \
21974 ac_cv_lib_com_err_com_err=no 12251 conftest$ac_exeext conftest.$ac_ext
21975 fi
21976
21977 rm -rf conftest.dSYM
21978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21979 conftest$ac_exeext conftest.$ac_ext
21980 LIBS=$ac_check_lib_save_LIBS 12252 LIBS=$ac_check_lib_save_LIBS
21981 fi 12253 fi
21982 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5 12254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_com_err_com_err" >&5
21983 $as_echo "$ac_cv_lib_com_err_com_err" >&6; } 12255 $as_echo "$ac_cv_lib_com_err_com_err" >&6; }
21984 if test $ac_cv_lib_com_err_com_err = yes; then 12256 if test "x$ac_cv_lib_com_err_com_err" = x""yes; then :
21985 have_com_err=yes 12257 have_com_err=yes
21986 else 12258 else
21987 have_com_err=no 12259 have_com_err=no
21988 fi 12260 fi
21989 12261
21990 if test $have_com_err = yes; then 12262 if test $have_com_err = yes; then
21991 COM_ERRLIB=-lcom_err 12263 COM_ERRLIB=-lcom_err
21992 LIBS="$COM_ERRLIB $LIBS" 12264 LIBS="$COM_ERRLIB $LIBS"
21993 12265
21994 cat >>confdefs.h <<\_ACEOF 12266 $as_echo "#define HAVE_LIBCOM_ERR 1" >>confdefs.h
21995 #define HAVE_LIBCOM_ERR 1
21996 _ACEOF
21997 12267
21998 fi 12268 fi
21999 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5 12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lcrypto" >&5
22000 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; } 12270 $as_echo_n "checking for mit_des_cbc_encrypt in -lcrypto... " >&6; }
22001 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then 12271 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then :
22002 $as_echo_n "(cached) " >&6 12272 $as_echo_n "(cached) " >&6
22003 else 12273 else
22004 ac_check_lib_save_LIBS=$LIBS 12274 ac_check_lib_save_LIBS=$LIBS
22005 LIBS="-lcrypto $LIBS" 12275 LIBS="-lcrypto $LIBS"
22006 cat >conftest.$ac_ext <<_ACEOF 12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22007 /* confdefs.h. */
22008 _ACEOF
22009 cat confdefs.h >>conftest.$ac_ext
22010 cat >>conftest.$ac_ext <<_ACEOF
22011 /* end confdefs.h. */ 12277 /* end confdefs.h. */
22012 12278
22013 /* Override any GCC internal prototype to avoid an error. 12279 /* Override any GCC internal prototype to avoid an error.
22014 Use char because int might match the return type of a GCC 12280 Use char because int might match the return type of a GCC
22015 builtin and then its argument prototype would still apply. */ 12281 builtin and then its argument prototype would still apply. */
22023 return mit_des_cbc_encrypt (); 12289 return mit_des_cbc_encrypt ();
22024 ; 12290 ;
22025 return 0; 12291 return 0;
22026 } 12292 }
22027 _ACEOF 12293 _ACEOF
22028 rm -f conftest.$ac_objext conftest$ac_exeext 12294 if ac_fn_c_try_link "$LINENO"; then :
22029 if { (ac_try="$ac_link"
22030 case "(($ac_try" in
22031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032 *) ac_try_echo=$ac_try;;
22033 esac
22034 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22035 $as_echo "$ac_try_echo") >&5
22036 (eval "$ac_link") 2>conftest.er1
22037 ac_status=$?
22038 grep -v '^ *+' conftest.er1 >conftest.err
22039 rm -f conftest.er1
22040 cat conftest.err >&5
22041 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22042 (exit $ac_status); } && {
22043 test -z "$ac_c_werror_flag" ||
22044 test ! -s conftest.err
22045 } && test -s conftest$ac_exeext && {
22046 test "$cross_compiling" = yes ||
22047 $as_test_x conftest$ac_exeext
22048 }; then
22049 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes 12295 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
22050 else 12296 else
22051 $as_echo "$as_me: failed program was:" >&5 12297 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
22052 sed 's/^/| /' conftest.$ac_ext >&5 12298 fi
22053 12299 rm -f core conftest.err conftest.$ac_objext \
22054 ac_cv_lib_crypto_mit_des_cbc_encrypt=no 12300 conftest$ac_exeext conftest.$ac_ext
22055 fi
22056
22057 rm -rf conftest.dSYM
22058 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22059 conftest$ac_exeext conftest.$ac_ext
22060 LIBS=$ac_check_lib_save_LIBS 12301 LIBS=$ac_check_lib_save_LIBS
22061 fi 12302 fi
22062 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5 12303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
22063 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; } 12304 $as_echo "$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
22064 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then 12305 if test "x$ac_cv_lib_crypto_mit_des_cbc_encrypt" = x""yes; then :
22065 have_crypto=yes 12306 have_crypto=yes
22066 else 12307 else
22067 have_crypto=no 12308 have_crypto=no
22068 fi 12309 fi
22069 12310
22070 if test $have_crypto = yes; then 12311 if test $have_crypto = yes; then
22071 CRYPTOLIB=-lcrypto 12312 CRYPTOLIB=-lcrypto
22072 LIBS="$CRYPTOLIB $LIBS" 12313 LIBS="$CRYPTOLIB $LIBS"
22073 12314
22074 cat >>confdefs.h <<\_ACEOF 12315 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
22075 #define HAVE_LIBCRYPTO 1
22076 _ACEOF
22077 12316
22078 fi 12317 fi
22079 { $as_echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5 12318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
22080 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; } 12319 $as_echo_n "checking for mit_des_cbc_encrypt in -lk5crypto... " >&6; }
22081 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then 12320 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then :
22082 $as_echo_n "(cached) " >&6 12321 $as_echo_n "(cached) " >&6
22083 else 12322 else
22084 ac_check_lib_save_LIBS=$LIBS 12323 ac_check_lib_save_LIBS=$LIBS
22085 LIBS="-lk5crypto $LIBS" 12324 LIBS="-lk5crypto $LIBS"
22086 cat >conftest.$ac_ext <<_ACEOF 12325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* confdefs.h. */
22088 _ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h. */ 12326 /* end confdefs.h. */
22092 12327
22093 /* Override any GCC internal prototype to avoid an error. 12328 /* Override any GCC internal prototype to avoid an error.
22094 Use char because int might match the return type of a GCC 12329 Use char because int might match the return type of a GCC
22095 builtin and then its argument prototype would still apply. */ 12330 builtin and then its argument prototype would still apply. */
22103 return mit_des_cbc_encrypt (); 12338 return mit_des_cbc_encrypt ();
22104 ; 12339 ;
22105 return 0; 12340 return 0;
22106 } 12341 }
22107 _ACEOF 12342 _ACEOF
22108 rm -f conftest.$ac_objext conftest$ac_exeext 12343 if ac_fn_c_try_link "$LINENO"; then :
22109 if { (ac_try="$ac_link"
22110 case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22113 esac
22114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22115 $as_echo "$ac_try_echo") >&5
22116 (eval "$ac_link") 2>conftest.er1
22117 ac_status=$?
22118 grep -v '^ *+' conftest.er1 >conftest.err
22119 rm -f conftest.er1
22120 cat conftest.err >&5
22121 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22122 (exit $ac_status); } && {
22123 test -z "$ac_c_werror_flag" ||
22124 test ! -s conftest.err
22125 } && test -s conftest$ac_exeext && {
22126 test "$cross_compiling" = yes ||
22127 $as_test_x conftest$ac_exeext
22128 }; then
22129 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes 12344 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
22130 else 12345 else
22131 $as_echo "$as_me: failed program was:" >&5 12346 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
22132 sed 's/^/| /' conftest.$ac_ext >&5 12347 fi
22133 12348 rm -f core conftest.err conftest.$ac_objext \
22134 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no 12349 conftest$ac_exeext conftest.$ac_ext
22135 fi
22136
22137 rm -rf conftest.dSYM
22138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22139 conftest$ac_exeext conftest.$ac_ext
22140 LIBS=$ac_check_lib_save_LIBS 12350 LIBS=$ac_check_lib_save_LIBS
22141 fi 12351 fi
22142 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5 12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
22143 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; } 12353 $as_echo "$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
22144 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then 12354 if test "x$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" = x""yes; then :
22145 have_k5crypto=yes 12355 have_k5crypto=yes
22146 else 12356 else
22147 have_k5crypto=no 12357 have_k5crypto=no
22148 fi 12358 fi
22149 12359
22150 if test $have_k5crypto = yes; then 12360 if test $have_k5crypto = yes; then
22151 CRYPTOLIB=-lk5crypto 12361 CRYPTOLIB=-lk5crypto
22152 LIBS="$CRYPTOLIB $LIBS" 12362 LIBS="$CRYPTOLIB $LIBS"
22153 12363
22154 cat >>confdefs.h <<\_ACEOF 12364 $as_echo "#define HAVE_LIBK5CRYPTO 1" >>confdefs.h
22155 #define HAVE_LIBK5CRYPTO 1
22156 _ACEOF
22157 12365
22158 fi 12366 fi
22159 { $as_echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5 12367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb5_init_context in -lkrb5" >&5
22160 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; } 12368 $as_echo_n "checking for krb5_init_context in -lkrb5... " >&6; }
22161 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then 12369 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then :
22162 $as_echo_n "(cached) " >&6 12370 $as_echo_n "(cached) " >&6
22163 else 12371 else
22164 ac_check_lib_save_LIBS=$LIBS 12372 ac_check_lib_save_LIBS=$LIBS
22165 LIBS="-lkrb5 $LIBS" 12373 LIBS="-lkrb5 $LIBS"
22166 cat >conftest.$ac_ext <<_ACEOF 12374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22167 /* confdefs.h. */
22168 _ACEOF
22169 cat confdefs.h >>conftest.$ac_ext
22170 cat >>conftest.$ac_ext <<_ACEOF
22171 /* end confdefs.h. */ 12375 /* end confdefs.h. */
22172 12376
22173 /* Override any GCC internal prototype to avoid an error. 12377 /* Override any GCC internal prototype to avoid an error.
22174 Use char because int might match the return type of a GCC 12378 Use char because int might match the return type of a GCC
22175 builtin and then its argument prototype would still apply. */ 12379 builtin and then its argument prototype would still apply. */
22183 return krb5_init_context (); 12387 return krb5_init_context ();
22184 ; 12388 ;
22185 return 0; 12389 return 0;
22186 } 12390 }
22187 _ACEOF 12391 _ACEOF
22188 rm -f conftest.$ac_objext conftest$ac_exeext 12392 if ac_fn_c_try_link "$LINENO"; then :
22189 if { (ac_try="$ac_link"
22190 case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22193 esac
22194 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22195 $as_echo "$ac_try_echo") >&5
22196 (eval "$ac_link") 2>conftest.er1
22197 ac_status=$?
22198 grep -v '^ *+' conftest.er1 >conftest.err
22199 rm -f conftest.er1
22200 cat conftest.err >&5
22201 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22202 (exit $ac_status); } && {
22203 test -z "$ac_c_werror_flag" ||
22204 test ! -s conftest.err
22205 } && test -s conftest$ac_exeext && {
22206 test "$cross_compiling" = yes ||
22207 $as_test_x conftest$ac_exeext
22208 }; then
22209 ac_cv_lib_krb5_krb5_init_context=yes 12393 ac_cv_lib_krb5_krb5_init_context=yes
22210 else 12394 else
22211 $as_echo "$as_me: failed program was:" >&5 12395 ac_cv_lib_krb5_krb5_init_context=no
22212 sed 's/^/| /' conftest.$ac_ext >&5 12396 fi
22213 12397 rm -f core conftest.err conftest.$ac_objext \
22214 ac_cv_lib_krb5_krb5_init_context=no 12398 conftest$ac_exeext conftest.$ac_ext
22215 fi
22216
22217 rm -rf conftest.dSYM
22218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22219 conftest$ac_exeext conftest.$ac_ext
22220 LIBS=$ac_check_lib_save_LIBS 12399 LIBS=$ac_check_lib_save_LIBS
22221 fi 12400 fi
22222 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5 12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb5_krb5_init_context" >&5
22223 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; } 12402 $as_echo "$ac_cv_lib_krb5_krb5_init_context" >&6; }
22224 if test $ac_cv_lib_krb5_krb5_init_context = yes; then 12403 if test "x$ac_cv_lib_krb5_krb5_init_context" = x""yes; then :
22225 have_krb5=yes 12404 have_krb5=yes
22226 else 12405 else
22227 have_krb5=no 12406 have_krb5=no
22228 fi 12407 fi
22229 12408
22230 if test $have_krb5=yes; then 12409 if test $have_krb5=yes; then
22231 KRB5LIB=-lkrb5 12410 KRB5LIB=-lkrb5
22232 LIBS="$KRB5LIB $LIBS" 12411 LIBS="$KRB5LIB $LIBS"
22233 12412
22234 cat >>confdefs.h <<\_ACEOF 12413 $as_echo "#define HAVE_LIBKRB5 1" >>confdefs.h
22235 #define HAVE_LIBKRB5 1
22236 _ACEOF
22237 12414
22238 fi 12415 fi
22239 if test "${with_kerberos5}" = no; then 12416 if test "${with_kerberos5}" = no; then
22240 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5 12417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes425" >&5
22241 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; } 12418 $as_echo_n "checking for des_cbc_encrypt in -ldes425... " >&6; }
22242 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then 12419 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then :
22243 $as_echo_n "(cached) " >&6 12420 $as_echo_n "(cached) " >&6
22244 else 12421 else
22245 ac_check_lib_save_LIBS=$LIBS 12422 ac_check_lib_save_LIBS=$LIBS
22246 LIBS="-ldes425 $LIBS" 12423 LIBS="-ldes425 $LIBS"
22247 cat >conftest.$ac_ext <<_ACEOF 12424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22248 /* confdefs.h. */
22249 _ACEOF
22250 cat confdefs.h >>conftest.$ac_ext
22251 cat >>conftest.$ac_ext <<_ACEOF
22252 /* end confdefs.h. */ 12425 /* end confdefs.h. */
22253 12426
22254 /* Override any GCC internal prototype to avoid an error. 12427 /* Override any GCC internal prototype to avoid an error.
22255 Use char because int might match the return type of a GCC 12428 Use char because int might match the return type of a GCC
22256 builtin and then its argument prototype would still apply. */ 12429 builtin and then its argument prototype would still apply. */
22264 return des_cbc_encrypt (); 12437 return des_cbc_encrypt ();
22265 ; 12438 ;
22266 return 0; 12439 return 0;
22267 } 12440 }
22268 _ACEOF 12441 _ACEOF
22269 rm -f conftest.$ac_objext conftest$ac_exeext 12442 if ac_fn_c_try_link "$LINENO"; then :
22270 if { (ac_try="$ac_link"
22271 case "(($ac_try" in
22272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22273 *) ac_try_echo=$ac_try;;
22274 esac
22275 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22276 $as_echo "$ac_try_echo") >&5
22277 (eval "$ac_link") 2>conftest.er1
22278 ac_status=$?
22279 grep -v '^ *+' conftest.er1 >conftest.err
22280 rm -f conftest.er1
22281 cat conftest.err >&5
22282 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22283 (exit $ac_status); } && {
22284 test -z "$ac_c_werror_flag" ||
22285 test ! -s conftest.err
22286 } && test -s conftest$ac_exeext && {
22287 test "$cross_compiling" = yes ||
22288 $as_test_x conftest$ac_exeext
22289 }; then
22290 ac_cv_lib_des425_des_cbc_encrypt=yes 12443 ac_cv_lib_des425_des_cbc_encrypt=yes
22291 else 12444 else
22292 $as_echo "$as_me: failed program was:" >&5 12445 ac_cv_lib_des425_des_cbc_encrypt=no
22293 sed 's/^/| /' conftest.$ac_ext >&5 12446 fi
22294 12447 rm -f core conftest.err conftest.$ac_objext \
22295 ac_cv_lib_des425_des_cbc_encrypt=no 12448 conftest$ac_exeext conftest.$ac_ext
22296 fi
22297
22298 rm -rf conftest.dSYM
22299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22300 conftest$ac_exeext conftest.$ac_ext
22301 LIBS=$ac_check_lib_save_LIBS 12449 LIBS=$ac_check_lib_save_LIBS
22302 fi 12450 fi
22303 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5 12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22304 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; } 12452 $as_echo "$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22305 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then 12453 if test "x$ac_cv_lib_des425_des_cbc_encrypt" = x""yes; then :
22306 have_des425=yes 12454 have_des425=yes
22307 else 12455 else
22308 have_des425=no 12456 have_des425=no
22309 fi 12457 fi
22310 12458
22311 if test $have_des425 = yes; then 12459 if test $have_des425 = yes; then
22312 DESLIB=-ldes425 12460 DESLIB=-ldes425
22313 LIBS="$DESLIB $LIBS" 12461 LIBS="$DESLIB $LIBS"
22314 12462
22315 cat >>confdefs.h <<\_ACEOF 12463 $as_echo "#define HAVE_LIBDES425 1" >>confdefs.h
22316 #define HAVE_LIBDES425 1
22317 _ACEOF
22318 12464
22319 else 12465 else
22320 { $as_echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5 12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for des_cbc_encrypt in -ldes" >&5
22321 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; } 12467 $as_echo_n "checking for des_cbc_encrypt in -ldes... " >&6; }
22322 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then 12468 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then :
22323 $as_echo_n "(cached) " >&6 12469 $as_echo_n "(cached) " >&6
22324 else 12470 else
22325 ac_check_lib_save_LIBS=$LIBS 12471 ac_check_lib_save_LIBS=$LIBS
22326 LIBS="-ldes $LIBS" 12472 LIBS="-ldes $LIBS"
22327 cat >conftest.$ac_ext <<_ACEOF 12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22328 /* confdefs.h. */
22329 _ACEOF
22330 cat confdefs.h >>conftest.$ac_ext
22331 cat >>conftest.$ac_ext <<_ACEOF
22332 /* end confdefs.h. */ 12474 /* end confdefs.h. */
22333 12475
22334 /* Override any GCC internal prototype to avoid an error. 12476 /* Override any GCC internal prototype to avoid an error.
22335 Use char because int might match the return type of a GCC 12477 Use char because int might match the return type of a GCC
22336 builtin and then its argument prototype would still apply. */ 12478 builtin and then its argument prototype would still apply. */
22344 return des_cbc_encrypt (); 12486 return des_cbc_encrypt ();
22345 ; 12487 ;
22346 return 0; 12488 return 0;
22347 } 12489 }
22348 _ACEOF 12490 _ACEOF
22349 rm -f conftest.$ac_objext conftest$ac_exeext 12491 if ac_fn_c_try_link "$LINENO"; then :
22350 if { (ac_try="$ac_link"
22351 case "(($ac_try" in
22352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22353 *) ac_try_echo=$ac_try;;
22354 esac
22355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22356 $as_echo "$ac_try_echo") >&5
22357 (eval "$ac_link") 2>conftest.er1
22358 ac_status=$?
22359 grep -v '^ *+' conftest.er1 >conftest.err
22360 rm -f conftest.er1
22361 cat conftest.err >&5
22362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); } && {
22364 test -z "$ac_c_werror_flag" ||
22365 test ! -s conftest.err
22366 } && test -s conftest$ac_exeext && {
22367 test "$cross_compiling" = yes ||
22368 $as_test_x conftest$ac_exeext
22369 }; then
22370 ac_cv_lib_des_des_cbc_encrypt=yes 12492 ac_cv_lib_des_des_cbc_encrypt=yes
22371 else 12493 else
22372 $as_echo "$as_me: failed program was:" >&5 12494 ac_cv_lib_des_des_cbc_encrypt=no
22373 sed 's/^/| /' conftest.$ac_ext >&5 12495 fi
22374 12496 rm -f core conftest.err conftest.$ac_objext \
22375 ac_cv_lib_des_des_cbc_encrypt=no 12497 conftest$ac_exeext conftest.$ac_ext
22376 fi
22377
22378 rm -rf conftest.dSYM
22379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22380 conftest$ac_exeext conftest.$ac_ext
22381 LIBS=$ac_check_lib_save_LIBS 12498 LIBS=$ac_check_lib_save_LIBS
22382 fi 12499 fi
22383 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5 12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22384 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; } 12501 $as_echo "$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22385 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then 12502 if test "x$ac_cv_lib_des_des_cbc_encrypt" = x""yes; then :
22386 have_des=yes 12503 have_des=yes
22387 else 12504 else
22388 have_des=no 12505 have_des=no
22389 fi 12506 fi
22390 12507
22391 if test $have_des = yes; then 12508 if test $have_des = yes; then
22392 DESLIB=-ldes 12509 DESLIB=-ldes
22393 LIBS="$DESLIB $LIBS" 12510 LIBS="$DESLIB $LIBS"
22394 12511
22395 cat >>confdefs.h <<\_ACEOF 12512 $as_echo "#define HAVE_LIBDES 1" >>confdefs.h
22396 #define HAVE_LIBDES 1
22397 _ACEOF
22398 12513
22399 fi 12514 fi
22400 fi 12515 fi
22401 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5 12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb4" >&5
22402 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; } 12517 $as_echo_n "checking for krb_get_cred in -lkrb4... " >&6; }
22403 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then 12518 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then :
22404 $as_echo_n "(cached) " >&6 12519 $as_echo_n "(cached) " >&6
22405 else 12520 else
22406 ac_check_lib_save_LIBS=$LIBS 12521 ac_check_lib_save_LIBS=$LIBS
22407 LIBS="-lkrb4 $LIBS" 12522 LIBS="-lkrb4 $LIBS"
22408 cat >conftest.$ac_ext <<_ACEOF 12523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22409 /* confdefs.h. */
22410 _ACEOF
22411 cat confdefs.h >>conftest.$ac_ext
22412 cat >>conftest.$ac_ext <<_ACEOF
22413 /* end confdefs.h. */ 12524 /* end confdefs.h. */
22414 12525
22415 /* Override any GCC internal prototype to avoid an error. 12526 /* Override any GCC internal prototype to avoid an error.
22416 Use char because int might match the return type of a GCC 12527 Use char because int might match the return type of a GCC
22417 builtin and then its argument prototype would still apply. */ 12528 builtin and then its argument prototype would still apply. */
22425 return krb_get_cred (); 12536 return krb_get_cred ();
22426 ; 12537 ;
22427 return 0; 12538 return 0;
22428 } 12539 }
22429 _ACEOF 12540 _ACEOF
22430 rm -f conftest.$ac_objext conftest$ac_exeext 12541 if ac_fn_c_try_link "$LINENO"; then :
22431 if { (ac_try="$ac_link"
22432 case "(($ac_try" in
22433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22435 esac
22436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22437 $as_echo "$ac_try_echo") >&5
22438 (eval "$ac_link") 2>conftest.er1
22439 ac_status=$?
22440 grep -v '^ *+' conftest.er1 >conftest.err
22441 rm -f conftest.er1
22442 cat conftest.err >&5
22443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); } && {
22445 test -z "$ac_c_werror_flag" ||
22446 test ! -s conftest.err
22447 } && test -s conftest$ac_exeext && {
22448 test "$cross_compiling" = yes ||
22449 $as_test_x conftest$ac_exeext
22450 }; then
22451 ac_cv_lib_krb4_krb_get_cred=yes 12542 ac_cv_lib_krb4_krb_get_cred=yes
22452 else 12543 else
22453 $as_echo "$as_me: failed program was:" >&5 12544 ac_cv_lib_krb4_krb_get_cred=no
22454 sed 's/^/| /' conftest.$ac_ext >&5 12545 fi
22455 12546 rm -f core conftest.err conftest.$ac_objext \
22456 ac_cv_lib_krb4_krb_get_cred=no 12547 conftest$ac_exeext conftest.$ac_ext
22457 fi
22458
22459 rm -rf conftest.dSYM
22460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22461 conftest$ac_exeext conftest.$ac_ext
22462 LIBS=$ac_check_lib_save_LIBS 12548 LIBS=$ac_check_lib_save_LIBS
22463 fi 12549 fi
22464 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5 12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22465 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; } 12551 $as_echo "$ac_cv_lib_krb4_krb_get_cred" >&6; }
22466 if test $ac_cv_lib_krb4_krb_get_cred = yes; then 12552 if test "x$ac_cv_lib_krb4_krb_get_cred" = x""yes; then :
22467 have_krb4=yes 12553 have_krb4=yes
22468 else 12554 else
22469 have_krb4=no 12555 have_krb4=no
22470 fi 12556 fi
22471 12557
22472 if test $have_krb4 = yes; then 12558 if test $have_krb4 = yes; then
22473 KRB4LIB=-lkrb4 12559 KRB4LIB=-lkrb4
22474 LIBS="$KRB4LIB $LIBS" 12560 LIBS="$KRB4LIB $LIBS"
22475 12561
22476 cat >>confdefs.h <<\_ACEOF 12562 $as_echo "#define HAVE_LIBKRB4 1" >>confdefs.h
22477 #define HAVE_LIBKRB4 1
22478 _ACEOF
22479 12563
22480 else 12564 else
22481 { $as_echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5 12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for krb_get_cred in -lkrb" >&5
22482 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; } 12566 $as_echo_n "checking for krb_get_cred in -lkrb... " >&6; }
22483 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then 12567 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then :
22484 $as_echo_n "(cached) " >&6 12568 $as_echo_n "(cached) " >&6
22485 else 12569 else
22486 ac_check_lib_save_LIBS=$LIBS 12570 ac_check_lib_save_LIBS=$LIBS
22487 LIBS="-lkrb $LIBS" 12571 LIBS="-lkrb $LIBS"
22488 cat >conftest.$ac_ext <<_ACEOF 12572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489 /* confdefs.h. */
22490 _ACEOF
22491 cat confdefs.h >>conftest.$ac_ext
22492 cat >>conftest.$ac_ext <<_ACEOF
22493 /* end confdefs.h. */ 12573 /* end confdefs.h. */
22494 12574
22495 /* Override any GCC internal prototype to avoid an error. 12575 /* Override any GCC internal prototype to avoid an error.
22496 Use char because int might match the return type of a GCC 12576 Use char because int might match the return type of a GCC
22497 builtin and then its argument prototype would still apply. */ 12577 builtin and then its argument prototype would still apply. */
22505 return krb_get_cred (); 12585 return krb_get_cred ();
22506 ; 12586 ;
22507 return 0; 12587 return 0;
22508 } 12588 }
22509 _ACEOF 12589 _ACEOF
22510 rm -f conftest.$ac_objext conftest$ac_exeext 12590 if ac_fn_c_try_link "$LINENO"; then :
22511 if { (ac_try="$ac_link"
22512 case "(($ac_try" in
22513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514 *) ac_try_echo=$ac_try;;
22515 esac
22516 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22517 $as_echo "$ac_try_echo") >&5
22518 (eval "$ac_link") 2>conftest.er1
22519 ac_status=$?
22520 grep -v '^ *+' conftest.er1 >conftest.err
22521 rm -f conftest.er1
22522 cat conftest.err >&5
22523 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22524 (exit $ac_status); } && {
22525 test -z "$ac_c_werror_flag" ||
22526 test ! -s conftest.err
22527 } && test -s conftest$ac_exeext && {
22528 test "$cross_compiling" = yes ||
22529 $as_test_x conftest$ac_exeext
22530 }; then
22531 ac_cv_lib_krb_krb_get_cred=yes 12591 ac_cv_lib_krb_krb_get_cred=yes
22532 else 12592 else
22533 $as_echo "$as_me: failed program was:" >&5 12593 ac_cv_lib_krb_krb_get_cred=no
22534 sed 's/^/| /' conftest.$ac_ext >&5 12594 fi
22535 12595 rm -f core conftest.err conftest.$ac_objext \
22536 ac_cv_lib_krb_krb_get_cred=no 12596 conftest$ac_exeext conftest.$ac_ext
22537 fi
22538
22539 rm -rf conftest.dSYM
22540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22541 conftest$ac_exeext conftest.$ac_ext
22542 LIBS=$ac_check_lib_save_LIBS 12597 LIBS=$ac_check_lib_save_LIBS
22543 fi 12598 fi
22544 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5 12599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_krb_krb_get_cred" >&5
22545 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; } 12600 $as_echo "$ac_cv_lib_krb_krb_get_cred" >&6; }
22546 if test $ac_cv_lib_krb_krb_get_cred = yes; then 12601 if test "x$ac_cv_lib_krb_krb_get_cred" = x""yes; then :
22547 have_krb=yes 12602 have_krb=yes
22548 else 12603 else
22549 have_krb=no 12604 have_krb=no
22550 fi 12605 fi
22551 12606
22552 if test $have_krb = yes; then 12607 if test $have_krb = yes; then
22553 KRB4LIB=-lkrb 12608 KRB4LIB=-lkrb
22554 LIBS="$KRB4LIB $LIBS" 12609 LIBS="$KRB4LIB $LIBS"
22555 12610
22556 cat >>confdefs.h <<\_ACEOF 12611 $as_echo "#define HAVE_LIBKRB 1" >>confdefs.h
22557 #define HAVE_LIBKRB 1
22558 _ACEOF
22559 12612
22560 fi 12613 fi
22561 fi 12614 fi
22562 fi 12615 fi
22563 12616
22564 if test "${with_kerberos5}" != no; then 12617 if test "${with_kerberos5}" != no; then
22565 12618 for ac_header in krb5.h
22566 for ac_header in krb5.h 12619 do :
22567 do 12620 ac_fn_c_check_header_mongrel "$LINENO" "krb5.h" "ac_cv_header_krb5_h" "$ac_includes_default"
22568 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12621 if test "x$ac_cv_header_krb5_h" = x""yes; then :
22569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22570 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22571 $as_echo_n "checking for $ac_header... " >&6; }
22572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22573 $as_echo_n "(cached) " >&6
22574 fi
22575 ac_res=`eval 'as_val=${'$as_ac_Header'}
22576 $as_echo "$as_val"'`
22577 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22578 $as_echo "$ac_res" >&6; }
22579 else
22580 # Is the header compilable?
22581 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22582 $as_echo_n "checking $ac_header usability... " >&6; }
22583 cat >conftest.$ac_ext <<_ACEOF
22584 /* confdefs.h. */
22585 _ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 $ac_includes_default
22590 #include <$ac_header>
22591 _ACEOF
22592 rm -f conftest.$ac_objext
22593 if { (ac_try="$ac_compile"
22594 case "(($ac_try" in
22595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596 *) ac_try_echo=$ac_try;;
22597 esac
22598 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22599 $as_echo "$ac_try_echo") >&5
22600 (eval "$ac_compile") 2>conftest.er1
22601 ac_status=$?
22602 grep -v '^ *+' conftest.er1 >conftest.err
22603 rm -f conftest.er1
22604 cat conftest.err >&5
22605 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22606 (exit $ac_status); } && {
22607 test -z "$ac_c_werror_flag" ||
22608 test ! -s conftest.err
22609 } && test -s conftest.$ac_objext; then
22610 ac_header_compiler=yes
22611 else
22612 $as_echo "$as_me: failed program was:" >&5
22613 sed 's/^/| /' conftest.$ac_ext >&5
22614
22615 ac_header_compiler=no
22616 fi
22617
22618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22619 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22620 $as_echo "$ac_header_compiler" >&6; }
22621
22622 # Is the header present?
22623 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22624 $as_echo_n "checking $ac_header presence... " >&6; }
22625 cat >conftest.$ac_ext <<_ACEOF
22626 /* confdefs.h. */
22627 _ACEOF
22628 cat confdefs.h >>conftest.$ac_ext
22629 cat >>conftest.$ac_ext <<_ACEOF
22630 /* end confdefs.h. */
22631 #include <$ac_header>
22632 _ACEOF
22633 if { (ac_try="$ac_cpp conftest.$ac_ext"
22634 case "(($ac_try" in
22635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22636 *) ac_try_echo=$ac_try;;
22637 esac
22638 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22639 $as_echo "$ac_try_echo") >&5
22640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22641 ac_status=$?
22642 grep -v '^ *+' conftest.er1 >conftest.err
22643 rm -f conftest.er1
22644 cat conftest.err >&5
22645 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22646 (exit $ac_status); } >/dev/null && {
22647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22648 test ! -s conftest.err
22649 }; then
22650 ac_header_preproc=yes
22651 else
22652 $as_echo "$as_me: failed program was:" >&5
22653 sed 's/^/| /' conftest.$ac_ext >&5
22654
22655 ac_header_preproc=no
22656 fi
22657
22658 rm -f conftest.err conftest.$ac_ext
22659 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22660 $as_echo "$ac_header_preproc" >&6; }
22661
22662 # So? What about this header?
22663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22664 yes:no: )
22665 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22666 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22667 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22668 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22669 ac_header_preproc=yes
22670 ;;
22671 no:yes:* )
22672 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22673 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22674 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22675 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22676 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22677 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22678 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22679 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22680 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22681 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22682 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22683 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22684
22685 ;;
22686 esac
22687 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22688 $as_echo_n "checking for $ac_header... " >&6; }
22689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22690 $as_echo_n "(cached) " >&6
22691 else
22692 eval "$as_ac_Header=\$ac_header_preproc"
22693 fi
22694 ac_res=`eval 'as_val=${'$as_ac_Header'}
22695 $as_echo "$as_val"'`
22696 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22697 $as_echo "$ac_res" >&6; }
22698
22699 fi
22700 if test `eval 'as_val=${'$as_ac_Header'}
22701 $as_echo "$as_val"'` = yes; then
22702 cat >>confdefs.h <<_ACEOF 12622 cat >>confdefs.h <<_ACEOF
22703 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12623 #define HAVE_KRB5_H 1
22704 _ACEOF 12624 _ACEOF
22705 { $as_echo "$as_me:$LINENO: checking for krb5_error.text" >&5 12625 ac_fn_c_check_member "$LINENO" "krb5_error" "text" "ac_cv_member_krb5_error_text" "#include <krb5.h>
22706 $as_echo_n "checking for krb5_error.text... " >&6; } 12626 "
22707 if test "${ac_cv_member_krb5_error_text+set}" = set; then 12627 if test "x$ac_cv_member_krb5_error_text" = x""yes; then :
22708 $as_echo_n "(cached) " >&6
22709 else
22710 cat >conftest.$ac_ext <<_ACEOF
22711 /* confdefs.h. */
22712 _ACEOF
22713 cat confdefs.h >>conftest.$ac_ext
22714 cat >>conftest.$ac_ext <<_ACEOF
22715 /* end confdefs.h. */
22716 #include <krb5.h>
22717
22718 int
22719 main ()
22720 {
22721 static krb5_error ac_aggr;
22722 if (ac_aggr.text)
22723 return 0;
22724 ;
22725 return 0;
22726 }
22727 _ACEOF
22728 rm -f conftest.$ac_objext
22729 if { (ac_try="$ac_compile"
22730 case "(($ac_try" in
22731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22732 *) ac_try_echo=$ac_try;;
22733 esac
22734 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22735 $as_echo "$ac_try_echo") >&5
22736 (eval "$ac_compile") 2>conftest.er1
22737 ac_status=$?
22738 grep -v '^ *+' conftest.er1 >conftest.err
22739 rm -f conftest.er1
22740 cat conftest.err >&5
22741 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22742 (exit $ac_status); } && {
22743 test -z "$ac_c_werror_flag" ||
22744 test ! -s conftest.err
22745 } && test -s conftest.$ac_objext; then
22746 ac_cv_member_krb5_error_text=yes
22747 else
22748 $as_echo "$as_me: failed program was:" >&5
22749 sed 's/^/| /' conftest.$ac_ext >&5
22750
22751 cat >conftest.$ac_ext <<_ACEOF
22752 /* confdefs.h. */
22753 _ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h. */
22757 #include <krb5.h>
22758
22759 int
22760 main ()
22761 {
22762 static krb5_error ac_aggr;
22763 if (sizeof ac_aggr.text)
22764 return 0;
22765 ;
22766 return 0;
22767 }
22768 _ACEOF
22769 rm -f conftest.$ac_objext
22770 if { (ac_try="$ac_compile"
22771 case "(($ac_try" in
22772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22773 *) ac_try_echo=$ac_try;;
22774 esac
22775 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22776 $as_echo "$ac_try_echo") >&5
22777 (eval "$ac_compile") 2>conftest.er1
22778 ac_status=$?
22779 grep -v '^ *+' conftest.er1 >conftest.err
22780 rm -f conftest.er1
22781 cat conftest.err >&5
22782 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22783 (exit $ac_status); } && {
22784 test -z "$ac_c_werror_flag" ||
22785 test ! -s conftest.err
22786 } && test -s conftest.$ac_objext; then
22787 ac_cv_member_krb5_error_text=yes
22788 else
22789 $as_echo "$as_me: failed program was:" >&5
22790 sed 's/^/| /' conftest.$ac_ext >&5
22791
22792 ac_cv_member_krb5_error_text=no
22793 fi
22794
22795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22796 fi
22797
22798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22799 fi
22800 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
22801 $as_echo "$ac_cv_member_krb5_error_text" >&6; }
22802 if test $ac_cv_member_krb5_error_text = yes; then
22803 12628
22804 cat >>confdefs.h <<_ACEOF 12629 cat >>confdefs.h <<_ACEOF
22805 #define HAVE_KRB5_ERROR_TEXT 1 12630 #define HAVE_KRB5_ERROR_TEXT 1
22806 _ACEOF 12631 _ACEOF
22807 12632
22808 12633
22809 fi 12634 fi
22810 { $as_echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5 12635 ac_fn_c_check_member "$LINENO" "krb5_error" "e_text" "ac_cv_member_krb5_error_e_text" "#include <krb5.h>
22811 $as_echo_n "checking for krb5_error.e_text... " >&6; } 12636 "
22812 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then 12637 if test "x$ac_cv_member_krb5_error_e_text" = x""yes; then :
22813 $as_echo_n "(cached) " >&6
22814 else
22815 cat >conftest.$ac_ext <<_ACEOF
22816 /* confdefs.h. */
22817 _ACEOF
22818 cat confdefs.h >>conftest.$ac_ext
22819 cat >>conftest.$ac_ext <<_ACEOF
22820 /* end confdefs.h. */
22821 #include <krb5.h>
22822
22823 int
22824 main ()
22825 {
22826 static krb5_error ac_aggr;
22827 if (ac_aggr.e_text)
22828 return 0;
22829 ;
22830 return 0;
22831 }
22832 _ACEOF
22833 rm -f conftest.$ac_objext
22834 if { (ac_try="$ac_compile"
22835 case "(($ac_try" in
22836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22837 *) ac_try_echo=$ac_try;;
22838 esac
22839 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22840 $as_echo "$ac_try_echo") >&5
22841 (eval "$ac_compile") 2>conftest.er1
22842 ac_status=$?
22843 grep -v '^ *+' conftest.er1 >conftest.err
22844 rm -f conftest.er1
22845 cat conftest.err >&5
22846 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22847 (exit $ac_status); } && {
22848 test -z "$ac_c_werror_flag" ||
22849 test ! -s conftest.err
22850 } && test -s conftest.$ac_objext; then
22851 ac_cv_member_krb5_error_e_text=yes
22852 else
22853 $as_echo "$as_me: failed program was:" >&5
22854 sed 's/^/| /' conftest.$ac_ext >&5
22855
22856 cat >conftest.$ac_ext <<_ACEOF
22857 /* confdefs.h. */
22858 _ACEOF
22859 cat confdefs.h >>conftest.$ac_ext
22860 cat >>conftest.$ac_ext <<_ACEOF
22861 /* end confdefs.h. */
22862 #include <krb5.h>
22863
22864 int
22865 main ()
22866 {
22867 static krb5_error ac_aggr;
22868 if (sizeof ac_aggr.e_text)
22869 return 0;
22870 ;
22871 return 0;
22872 }
22873 _ACEOF
22874 rm -f conftest.$ac_objext
22875 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
22892 ac_cv_member_krb5_error_e_text=yes
22893 else
22894 $as_echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22896
22897 ac_cv_member_krb5_error_e_text=no
22898 fi
22899
22900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 fi
22902
22903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22904 fi
22905 { $as_echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
22906 $as_echo "$ac_cv_member_krb5_error_e_text" >&6; }
22907 if test $ac_cv_member_krb5_error_e_text = yes; then
22908 12638
22909 cat >>confdefs.h <<_ACEOF 12639 cat >>confdefs.h <<_ACEOF
22910 #define HAVE_KRB5_ERROR_E_TEXT 1 12640 #define HAVE_KRB5_ERROR_E_TEXT 1
22911 _ACEOF 12641 _ACEOF
22912 12642
22916 fi 12646 fi
22917 12647
22918 done 12648 done
22919 12649
22920 else 12650 else
22921 12651 for ac_header in des.h
22922 for ac_header in des.h 12652 do :
22923 do 12653 ac_fn_c_check_header_mongrel "$LINENO" "des.h" "ac_cv_header_des_h" "$ac_includes_default"
22924 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12654 if test "x$ac_cv_header_des_h" = x""yes; then :
22925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22926 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
22927 $as_echo_n "checking for $ac_header... " >&6; }
22928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22929 $as_echo_n "(cached) " >&6
22930 fi
22931 ac_res=`eval 'as_val=${'$as_ac_Header'}
22932 $as_echo "$as_val"'`
22933 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
22934 $as_echo "$ac_res" >&6; }
22935 else
22936 # Is the header compilable?
22937 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
22938 $as_echo_n "checking $ac_header usability... " >&6; }
22939 cat >conftest.$ac_ext <<_ACEOF
22940 /* confdefs.h. */
22941 _ACEOF
22942 cat confdefs.h >>conftest.$ac_ext
22943 cat >>conftest.$ac_ext <<_ACEOF
22944 /* end confdefs.h. */
22945 $ac_includes_default
22946 #include <$ac_header>
22947 _ACEOF
22948 rm -f conftest.$ac_objext
22949 if { (ac_try="$ac_compile"
22950 case "(($ac_try" in
22951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22952 *) ac_try_echo=$ac_try;;
22953 esac
22954 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22955 $as_echo "$ac_try_echo") >&5
22956 (eval "$ac_compile") 2>conftest.er1
22957 ac_status=$?
22958 grep -v '^ *+' conftest.er1 >conftest.err
22959 rm -f conftest.er1
22960 cat conftest.err >&5
22961 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
22962 (exit $ac_status); } && {
22963 test -z "$ac_c_werror_flag" ||
22964 test ! -s conftest.err
22965 } && test -s conftest.$ac_objext; then
22966 ac_header_compiler=yes
22967 else
22968 $as_echo "$as_me: failed program was:" >&5
22969 sed 's/^/| /' conftest.$ac_ext >&5
22970
22971 ac_header_compiler=no
22972 fi
22973
22974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22975 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22976 $as_echo "$ac_header_compiler" >&6; }
22977
22978 # Is the header present?
22979 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
22980 $as_echo_n "checking $ac_header presence... " >&6; }
22981 cat >conftest.$ac_ext <<_ACEOF
22982 /* confdefs.h. */
22983 _ACEOF
22984 cat confdefs.h >>conftest.$ac_ext
22985 cat >>conftest.$ac_ext <<_ACEOF
22986 /* end confdefs.h. */
22987 #include <$ac_header>
22988 _ACEOF
22989 if { (ac_try="$ac_cpp conftest.$ac_ext"
22990 case "(($ac_try" in
22991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22992 *) ac_try_echo=$ac_try;;
22993 esac
22994 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
22995 $as_echo "$ac_try_echo") >&5
22996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22997 ac_status=$?
22998 grep -v '^ *+' conftest.er1 >conftest.err
22999 rm -f conftest.er1
23000 cat conftest.err >&5
23001 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23002 (exit $ac_status); } >/dev/null && {
23003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23004 test ! -s conftest.err
23005 }; then
23006 ac_header_preproc=yes
23007 else
23008 $as_echo "$as_me: failed program was:" >&5
23009 sed 's/^/| /' conftest.$ac_ext >&5
23010
23011 ac_header_preproc=no
23012 fi
23013
23014 rm -f conftest.err conftest.$ac_ext
23015 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23016 $as_echo "$ac_header_preproc" >&6; }
23017
23018 # So? What about this header?
23019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23020 yes:no: )
23021 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23022 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23023 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23024 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23025 ac_header_preproc=yes
23026 ;;
23027 no:yes:* )
23028 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23029 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23030 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23031 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23032 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23033 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23034 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23035 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23036 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23037 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23038 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23039 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23040
23041 ;;
23042 esac
23043 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23044 $as_echo_n "checking for $ac_header... " >&6; }
23045 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23046 $as_echo_n "(cached) " >&6
23047 else
23048 eval "$as_ac_Header=\$ac_header_preproc"
23049 fi
23050 ac_res=`eval 'as_val=${'$as_ac_Header'}
23051 $as_echo "$as_val"'`
23052 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23053 $as_echo "$ac_res" >&6; }
23054
23055 fi
23056 if test `eval 'as_val=${'$as_ac_Header'}
23057 $as_echo "$as_val"'` = yes; then
23058 cat >>confdefs.h <<_ACEOF 12655 cat >>confdefs.h <<_ACEOF
23059 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12656 #define HAVE_DES_H 1
23060 _ACEOF 12657 _ACEOF
23061 12658
23062 else 12659 else
23063 12660 for ac_header in kerberosIV/des.h
23064 for ac_header in kerberosIV/des.h 12661 do :
23065 do 12662 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/des.h" "ac_cv_header_kerberosIV_des_h" "$ac_includes_default"
23066 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12663 if test "x$ac_cv_header_kerberosIV_des_h" = x""yes; then :
23067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23068 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23069 $as_echo_n "checking for $ac_header... " >&6; }
23070 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23071 $as_echo_n "(cached) " >&6
23072 fi
23073 ac_res=`eval 'as_val=${'$as_ac_Header'}
23074 $as_echo "$as_val"'`
23075 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23076 $as_echo "$ac_res" >&6; }
23077 else
23078 # Is the header compilable?
23079 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23080 $as_echo_n "checking $ac_header usability... " >&6; }
23081 cat >conftest.$ac_ext <<_ACEOF
23082 /* confdefs.h. */
23083 _ACEOF
23084 cat confdefs.h >>conftest.$ac_ext
23085 cat >>conftest.$ac_ext <<_ACEOF
23086 /* end confdefs.h. */
23087 $ac_includes_default
23088 #include <$ac_header>
23089 _ACEOF
23090 rm -f conftest.$ac_objext
23091 if { (ac_try="$ac_compile"
23092 case "(($ac_try" in
23093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23094 *) ac_try_echo=$ac_try;;
23095 esac
23096 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23097 $as_echo "$ac_try_echo") >&5
23098 (eval "$ac_compile") 2>conftest.er1
23099 ac_status=$?
23100 grep -v '^ *+' conftest.er1 >conftest.err
23101 rm -f conftest.er1
23102 cat conftest.err >&5
23103 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23104 (exit $ac_status); } && {
23105 test -z "$ac_c_werror_flag" ||
23106 test ! -s conftest.err
23107 } && test -s conftest.$ac_objext; then
23108 ac_header_compiler=yes
23109 else
23110 $as_echo "$as_me: failed program was:" >&5
23111 sed 's/^/| /' conftest.$ac_ext >&5
23112
23113 ac_header_compiler=no
23114 fi
23115
23116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23117 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23118 $as_echo "$ac_header_compiler" >&6; }
23119
23120 # Is the header present?
23121 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23122 $as_echo_n "checking $ac_header presence... " >&6; }
23123 cat >conftest.$ac_ext <<_ACEOF
23124 /* confdefs.h. */
23125 _ACEOF
23126 cat confdefs.h >>conftest.$ac_ext
23127 cat >>conftest.$ac_ext <<_ACEOF
23128 /* end confdefs.h. */
23129 #include <$ac_header>
23130 _ACEOF
23131 if { (ac_try="$ac_cpp conftest.$ac_ext"
23132 case "(($ac_try" in
23133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134 *) ac_try_echo=$ac_try;;
23135 esac
23136 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23137 $as_echo "$ac_try_echo") >&5
23138 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23139 ac_status=$?
23140 grep -v '^ *+' conftest.er1 >conftest.err
23141 rm -f conftest.er1
23142 cat conftest.err >&5
23143 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } >/dev/null && {
23145 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23146 test ! -s conftest.err
23147 }; then
23148 ac_header_preproc=yes
23149 else
23150 $as_echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23152
23153 ac_header_preproc=no
23154 fi
23155
23156 rm -f conftest.err conftest.$ac_ext
23157 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23158 $as_echo "$ac_header_preproc" >&6; }
23159
23160 # So? What about this header?
23161 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23162 yes:no: )
23163 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23164 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23165 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23166 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23167 ac_header_preproc=yes
23168 ;;
23169 no:yes:* )
23170 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23171 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23172 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23173 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23174 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23175 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23176 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23177 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23178 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23179 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23180 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23181 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23182
23183 ;;
23184 esac
23185 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23186 $as_echo_n "checking for $ac_header... " >&6; }
23187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23188 $as_echo_n "(cached) " >&6
23189 else
23190 eval "$as_ac_Header=\$ac_header_preproc"
23191 fi
23192 ac_res=`eval 'as_val=${'$as_ac_Header'}
23193 $as_echo "$as_val"'`
23194 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23195 $as_echo "$ac_res" >&6; }
23196
23197 fi
23198 if test `eval 'as_val=${'$as_ac_Header'}
23199 $as_echo "$as_val"'` = yes; then
23200 cat >>confdefs.h <<_ACEOF 12664 cat >>confdefs.h <<_ACEOF
23201 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12665 #define HAVE_KERBEROSIV_DES_H 1
23202 _ACEOF 12666 _ACEOF
23203 12667
23204 else 12668 else
23205 12669 for ac_header in kerberos/des.h
23206 for ac_header in kerberos/des.h 12670 do :
23207 do 12671 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/des.h" "ac_cv_header_kerberos_des_h" "$ac_includes_default"
23208 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12672 if test "x$ac_cv_header_kerberos_des_h" = x""yes; then :
23209 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23210 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23211 $as_echo_n "checking for $ac_header... " >&6; }
23212 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23213 $as_echo_n "(cached) " >&6
23214 fi
23215 ac_res=`eval 'as_val=${'$as_ac_Header'}
23216 $as_echo "$as_val"'`
23217 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23218 $as_echo "$ac_res" >&6; }
23219 else
23220 # Is the header compilable?
23221 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23222 $as_echo_n "checking $ac_header usability... " >&6; }
23223 cat >conftest.$ac_ext <<_ACEOF
23224 /* confdefs.h. */
23225 _ACEOF
23226 cat confdefs.h >>conftest.$ac_ext
23227 cat >>conftest.$ac_ext <<_ACEOF
23228 /* end confdefs.h. */
23229 $ac_includes_default
23230 #include <$ac_header>
23231 _ACEOF
23232 rm -f conftest.$ac_objext
23233 if { (ac_try="$ac_compile"
23234 case "(($ac_try" in
23235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23236 *) ac_try_echo=$ac_try;;
23237 esac
23238 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23239 $as_echo "$ac_try_echo") >&5
23240 (eval "$ac_compile") 2>conftest.er1
23241 ac_status=$?
23242 grep -v '^ *+' conftest.er1 >conftest.err
23243 rm -f conftest.er1
23244 cat conftest.err >&5
23245 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23246 (exit $ac_status); } && {
23247 test -z "$ac_c_werror_flag" ||
23248 test ! -s conftest.err
23249 } && test -s conftest.$ac_objext; then
23250 ac_header_compiler=yes
23251 else
23252 $as_echo "$as_me: failed program was:" >&5
23253 sed 's/^/| /' conftest.$ac_ext >&5
23254
23255 ac_header_compiler=no
23256 fi
23257
23258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23259 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23260 $as_echo "$ac_header_compiler" >&6; }
23261
23262 # Is the header present?
23263 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23264 $as_echo_n "checking $ac_header presence... " >&6; }
23265 cat >conftest.$ac_ext <<_ACEOF
23266 /* confdefs.h. */
23267 _ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h. */
23271 #include <$ac_header>
23272 _ACEOF
23273 if { (ac_try="$ac_cpp conftest.$ac_ext"
23274 case "(($ac_try" in
23275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23276 *) ac_try_echo=$ac_try;;
23277 esac
23278 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23279 $as_echo "$ac_try_echo") >&5
23280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23281 ac_status=$?
23282 grep -v '^ *+' conftest.er1 >conftest.err
23283 rm -f conftest.er1
23284 cat conftest.err >&5
23285 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23286 (exit $ac_status); } >/dev/null && {
23287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23288 test ! -s conftest.err
23289 }; then
23290 ac_header_preproc=yes
23291 else
23292 $as_echo "$as_me: failed program was:" >&5
23293 sed 's/^/| /' conftest.$ac_ext >&5
23294
23295 ac_header_preproc=no
23296 fi
23297
23298 rm -f conftest.err conftest.$ac_ext
23299 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23300 $as_echo "$ac_header_preproc" >&6; }
23301
23302 # So? What about this header?
23303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23304 yes:no: )
23305 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23306 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23307 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23308 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23309 ac_header_preproc=yes
23310 ;;
23311 no:yes:* )
23312 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23313 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23314 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23315 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23316 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23317 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23318 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23319 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23320 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23321 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23322 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23323 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23324
23325 ;;
23326 esac
23327 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23328 $as_echo_n "checking for $ac_header... " >&6; }
23329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23330 $as_echo_n "(cached) " >&6
23331 else
23332 eval "$as_ac_Header=\$ac_header_preproc"
23333 fi
23334 ac_res=`eval 'as_val=${'$as_ac_Header'}
23335 $as_echo "$as_val"'`
23336 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23337 $as_echo "$ac_res" >&6; }
23338
23339 fi
23340 if test `eval 'as_val=${'$as_ac_Header'}
23341 $as_echo "$as_val"'` = yes; then
23342 cat >>confdefs.h <<_ACEOF 12673 cat >>confdefs.h <<_ACEOF
23343 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12674 #define HAVE_KERBEROS_DES_H 1
23344 _ACEOF 12675 _ACEOF
23345 12676
23346 fi 12677 fi
23347 12678
23348 done 12679 done
23353 12684
23354 fi 12685 fi
23355 12686
23356 done 12687 done
23357 12688
23358 12689 for ac_header in krb.h
23359 for ac_header in krb.h 12690 do :
23360 do 12691 ac_fn_c_check_header_mongrel "$LINENO" "krb.h" "ac_cv_header_krb_h" "$ac_includes_default"
23361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12692 if test "x$ac_cv_header_krb_h" = x""yes; then :
23362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23363 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23364 $as_echo_n "checking for $ac_header... " >&6; }
23365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23366 $as_echo_n "(cached) " >&6
23367 fi
23368 ac_res=`eval 'as_val=${'$as_ac_Header'}
23369 $as_echo "$as_val"'`
23370 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23371 $as_echo "$ac_res" >&6; }
23372 else
23373 # Is the header compilable?
23374 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23375 $as_echo_n "checking $ac_header usability... " >&6; }
23376 cat >conftest.$ac_ext <<_ACEOF
23377 /* confdefs.h. */
23378 _ACEOF
23379 cat confdefs.h >>conftest.$ac_ext
23380 cat >>conftest.$ac_ext <<_ACEOF
23381 /* end confdefs.h. */
23382 $ac_includes_default
23383 #include <$ac_header>
23384 _ACEOF
23385 rm -f conftest.$ac_objext
23386 if { (ac_try="$ac_compile"
23387 case "(($ac_try" in
23388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23389 *) ac_try_echo=$ac_try;;
23390 esac
23391 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23392 $as_echo "$ac_try_echo") >&5
23393 (eval "$ac_compile") 2>conftest.er1
23394 ac_status=$?
23395 grep -v '^ *+' conftest.er1 >conftest.err
23396 rm -f conftest.er1
23397 cat conftest.err >&5
23398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23399 (exit $ac_status); } && {
23400 test -z "$ac_c_werror_flag" ||
23401 test ! -s conftest.err
23402 } && test -s conftest.$ac_objext; then
23403 ac_header_compiler=yes
23404 else
23405 $as_echo "$as_me: failed program was:" >&5
23406 sed 's/^/| /' conftest.$ac_ext >&5
23407
23408 ac_header_compiler=no
23409 fi
23410
23411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23412 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23413 $as_echo "$ac_header_compiler" >&6; }
23414
23415 # Is the header present?
23416 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23417 $as_echo_n "checking $ac_header presence... " >&6; }
23418 cat >conftest.$ac_ext <<_ACEOF
23419 /* confdefs.h. */
23420 _ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23424 #include <$ac_header>
23425 _ACEOF
23426 if { (ac_try="$ac_cpp conftest.$ac_ext"
23427 case "(($ac_try" in
23428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23429 *) ac_try_echo=$ac_try;;
23430 esac
23431 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23432 $as_echo "$ac_try_echo") >&5
23433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23434 ac_status=$?
23435 grep -v '^ *+' conftest.er1 >conftest.err
23436 rm -f conftest.er1
23437 cat conftest.err >&5
23438 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23439 (exit $ac_status); } >/dev/null && {
23440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23441 test ! -s conftest.err
23442 }; then
23443 ac_header_preproc=yes
23444 else
23445 $as_echo "$as_me: failed program was:" >&5
23446 sed 's/^/| /' conftest.$ac_ext >&5
23447
23448 ac_header_preproc=no
23449 fi
23450
23451 rm -f conftest.err conftest.$ac_ext
23452 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23453 $as_echo "$ac_header_preproc" >&6; }
23454
23455 # So? What about this header?
23456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23457 yes:no: )
23458 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23459 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23460 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23461 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23462 ac_header_preproc=yes
23463 ;;
23464 no:yes:* )
23465 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23466 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23467 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23468 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23469 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23470 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23471 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23472 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23473 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23474 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23475 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23476 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23477
23478 ;;
23479 esac
23480 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23481 $as_echo_n "checking for $ac_header... " >&6; }
23482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23483 $as_echo_n "(cached) " >&6
23484 else
23485 eval "$as_ac_Header=\$ac_header_preproc"
23486 fi
23487 ac_res=`eval 'as_val=${'$as_ac_Header'}
23488 $as_echo "$as_val"'`
23489 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23490 $as_echo "$ac_res" >&6; }
23491
23492 fi
23493 if test `eval 'as_val=${'$as_ac_Header'}
23494 $as_echo "$as_val"'` = yes; then
23495 cat >>confdefs.h <<_ACEOF 12693 cat >>confdefs.h <<_ACEOF
23496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12694 #define HAVE_KRB_H 1
23497 _ACEOF 12695 _ACEOF
23498 12696
23499 else 12697 else
23500 12698 for ac_header in kerberosIV/krb.h
23501 for ac_header in kerberosIV/krb.h 12699 do :
23502 do 12700 ac_fn_c_check_header_mongrel "$LINENO" "kerberosIV/krb.h" "ac_cv_header_kerberosIV_krb_h" "$ac_includes_default"
23503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12701 if test "x$ac_cv_header_kerberosIV_krb_h" = x""yes; then :
23504 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23505 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23506 $as_echo_n "checking for $ac_header... " >&6; }
23507 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23508 $as_echo_n "(cached) " >&6
23509 fi
23510 ac_res=`eval 'as_val=${'$as_ac_Header'}
23511 $as_echo "$as_val"'`
23512 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23513 $as_echo "$ac_res" >&6; }
23514 else
23515 # Is the header compilable?
23516 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23517 $as_echo_n "checking $ac_header usability... " >&6; }
23518 cat >conftest.$ac_ext <<_ACEOF
23519 /* confdefs.h. */
23520 _ACEOF
23521 cat confdefs.h >>conftest.$ac_ext
23522 cat >>conftest.$ac_ext <<_ACEOF
23523 /* end confdefs.h. */
23524 $ac_includes_default
23525 #include <$ac_header>
23526 _ACEOF
23527 rm -f conftest.$ac_objext
23528 if { (ac_try="$ac_compile"
23529 case "(($ac_try" in
23530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23531 *) ac_try_echo=$ac_try;;
23532 esac
23533 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23534 $as_echo "$ac_try_echo") >&5
23535 (eval "$ac_compile") 2>conftest.er1
23536 ac_status=$?
23537 grep -v '^ *+' conftest.er1 >conftest.err
23538 rm -f conftest.er1
23539 cat conftest.err >&5
23540 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23541 (exit $ac_status); } && {
23542 test -z "$ac_c_werror_flag" ||
23543 test ! -s conftest.err
23544 } && test -s conftest.$ac_objext; then
23545 ac_header_compiler=yes
23546 else
23547 $as_echo "$as_me: failed program was:" >&5
23548 sed 's/^/| /' conftest.$ac_ext >&5
23549
23550 ac_header_compiler=no
23551 fi
23552
23553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23554 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23555 $as_echo "$ac_header_compiler" >&6; }
23556
23557 # Is the header present?
23558 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23559 $as_echo_n "checking $ac_header presence... " >&6; }
23560 cat >conftest.$ac_ext <<_ACEOF
23561 /* confdefs.h. */
23562 _ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h. */
23566 #include <$ac_header>
23567 _ACEOF
23568 if { (ac_try="$ac_cpp conftest.$ac_ext"
23569 case "(($ac_try" in
23570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23571 *) ac_try_echo=$ac_try;;
23572 esac
23573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23574 $as_echo "$ac_try_echo") >&5
23575 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23576 ac_status=$?
23577 grep -v '^ *+' conftest.er1 >conftest.err
23578 rm -f conftest.er1
23579 cat conftest.err >&5
23580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); } >/dev/null && {
23582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23583 test ! -s conftest.err
23584 }; then
23585 ac_header_preproc=yes
23586 else
23587 $as_echo "$as_me: failed program was:" >&5
23588 sed 's/^/| /' conftest.$ac_ext >&5
23589
23590 ac_header_preproc=no
23591 fi
23592
23593 rm -f conftest.err conftest.$ac_ext
23594 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23595 $as_echo "$ac_header_preproc" >&6; }
23596
23597 # So? What about this header?
23598 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23599 yes:no: )
23600 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23601 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23602 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23603 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23604 ac_header_preproc=yes
23605 ;;
23606 no:yes:* )
23607 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23608 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23609 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23610 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23611 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23612 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23613 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23614 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23615 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23616 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23617 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23618 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23619
23620 ;;
23621 esac
23622 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23623 $as_echo_n "checking for $ac_header... " >&6; }
23624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23625 $as_echo_n "(cached) " >&6
23626 else
23627 eval "$as_ac_Header=\$ac_header_preproc"
23628 fi
23629 ac_res=`eval 'as_val=${'$as_ac_Header'}
23630 $as_echo "$as_val"'`
23631 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23632 $as_echo "$ac_res" >&6; }
23633
23634 fi
23635 if test `eval 'as_val=${'$as_ac_Header'}
23636 $as_echo "$as_val"'` = yes; then
23637 cat >>confdefs.h <<_ACEOF 12702 cat >>confdefs.h <<_ACEOF
23638 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12703 #define HAVE_KERBEROSIV_KRB_H 1
23639 _ACEOF 12704 _ACEOF
23640 12705
23641 else 12706 else
23642 12707 for ac_header in kerberos/krb.h
23643 for ac_header in kerberos/krb.h 12708 do :
23644 do 12709 ac_fn_c_check_header_mongrel "$LINENO" "kerberos/krb.h" "ac_cv_header_kerberos_krb_h" "$ac_includes_default"
23645 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12710 if test "x$ac_cv_header_kerberos_krb_h" = x""yes; then :
23646 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23647 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23648 $as_echo_n "checking for $ac_header... " >&6; }
23649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23650 $as_echo_n "(cached) " >&6
23651 fi
23652 ac_res=`eval 'as_val=${'$as_ac_Header'}
23653 $as_echo "$as_val"'`
23654 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23655 $as_echo "$ac_res" >&6; }
23656 else
23657 # Is the header compilable?
23658 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23659 $as_echo_n "checking $ac_header usability... " >&6; }
23660 cat >conftest.$ac_ext <<_ACEOF
23661 /* confdefs.h. */
23662 _ACEOF
23663 cat confdefs.h >>conftest.$ac_ext
23664 cat >>conftest.$ac_ext <<_ACEOF
23665 /* end confdefs.h. */
23666 $ac_includes_default
23667 #include <$ac_header>
23668 _ACEOF
23669 rm -f conftest.$ac_objext
23670 if { (ac_try="$ac_compile"
23671 case "(($ac_try" in
23672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673 *) ac_try_echo=$ac_try;;
23674 esac
23675 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23676 $as_echo "$ac_try_echo") >&5
23677 (eval "$ac_compile") 2>conftest.er1
23678 ac_status=$?
23679 grep -v '^ *+' conftest.er1 >conftest.err
23680 rm -f conftest.er1
23681 cat conftest.err >&5
23682 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23683 (exit $ac_status); } && {
23684 test -z "$ac_c_werror_flag" ||
23685 test ! -s conftest.err
23686 } && test -s conftest.$ac_objext; then
23687 ac_header_compiler=yes
23688 else
23689 $as_echo "$as_me: failed program was:" >&5
23690 sed 's/^/| /' conftest.$ac_ext >&5
23691
23692 ac_header_compiler=no
23693 fi
23694
23695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23696 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23697 $as_echo "$ac_header_compiler" >&6; }
23698
23699 # Is the header present?
23700 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23701 $as_echo_n "checking $ac_header presence... " >&6; }
23702 cat >conftest.$ac_ext <<_ACEOF
23703 /* confdefs.h. */
23704 _ACEOF
23705 cat confdefs.h >>conftest.$ac_ext
23706 cat >>conftest.$ac_ext <<_ACEOF
23707 /* end confdefs.h. */
23708 #include <$ac_header>
23709 _ACEOF
23710 if { (ac_try="$ac_cpp conftest.$ac_ext"
23711 case "(($ac_try" in
23712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23713 *) ac_try_echo=$ac_try;;
23714 esac
23715 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23716 $as_echo "$ac_try_echo") >&5
23717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23718 ac_status=$?
23719 grep -v '^ *+' conftest.er1 >conftest.err
23720 rm -f conftest.er1
23721 cat conftest.err >&5
23722 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23723 (exit $ac_status); } >/dev/null && {
23724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23725 test ! -s conftest.err
23726 }; then
23727 ac_header_preproc=yes
23728 else
23729 $as_echo "$as_me: failed program was:" >&5
23730 sed 's/^/| /' conftest.$ac_ext >&5
23731
23732 ac_header_preproc=no
23733 fi
23734
23735 rm -f conftest.err conftest.$ac_ext
23736 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23737 $as_echo "$ac_header_preproc" >&6; }
23738
23739 # So? What about this header?
23740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23741 yes:no: )
23742 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23743 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23744 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23745 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23746 ac_header_preproc=yes
23747 ;;
23748 no:yes:* )
23749 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23750 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23751 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23752 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23753 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23754 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23755 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23756 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23757 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23758 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23759 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23760 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23761
23762 ;;
23763 esac
23764 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23765 $as_echo_n "checking for $ac_header... " >&6; }
23766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23767 $as_echo_n "(cached) " >&6
23768 else
23769 eval "$as_ac_Header=\$ac_header_preproc"
23770 fi
23771 ac_res=`eval 'as_val=${'$as_ac_Header'}
23772 $as_echo "$as_val"'`
23773 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23774 $as_echo "$ac_res" >&6; }
23775
23776 fi
23777 if test `eval 'as_val=${'$as_ac_Header'}
23778 $as_echo "$as_val"'` = yes; then
23779 cat >>confdefs.h <<_ACEOF 12711 cat >>confdefs.h <<_ACEOF
23780 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12712 #define HAVE_KERBEROS_KRB_H 1
23781 _ACEOF 12713 _ACEOF
23782 12714
23783 fi 12715 fi
23784 12716
23785 done 12717 done
23791 fi 12723 fi
23792 12724
23793 done 12725 done
23794 12726
23795 fi 12727 fi
23796 12728 for ac_header in com_err.h
23797 for ac_header in com_err.h 12729 do :
23798 do 12730 ac_fn_c_check_header_mongrel "$LINENO" "com_err.h" "ac_cv_header_com_err_h" "$ac_includes_default"
23799 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12731 if test "x$ac_cv_header_com_err_h" = x""yes; then :
23800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23801 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23802 $as_echo_n "checking for $ac_header... " >&6; }
23803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23804 $as_echo_n "(cached) " >&6
23805 fi
23806 ac_res=`eval 'as_val=${'$as_ac_Header'}
23807 $as_echo "$as_val"'`
23808 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23809 $as_echo "$ac_res" >&6; }
23810 else
23811 # Is the header compilable?
23812 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
23813 $as_echo_n "checking $ac_header usability... " >&6; }
23814 cat >conftest.$ac_ext <<_ACEOF
23815 /* confdefs.h. */
23816 _ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h. */
23820 $ac_includes_default
23821 #include <$ac_header>
23822 _ACEOF
23823 rm -f conftest.$ac_objext
23824 if { (ac_try="$ac_compile"
23825 case "(($ac_try" in
23826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827 *) ac_try_echo=$ac_try;;
23828 esac
23829 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23830 $as_echo "$ac_try_echo") >&5
23831 (eval "$ac_compile") 2>conftest.er1
23832 ac_status=$?
23833 grep -v '^ *+' conftest.er1 >conftest.err
23834 rm -f conftest.er1
23835 cat conftest.err >&5
23836 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23837 (exit $ac_status); } && {
23838 test -z "$ac_c_werror_flag" ||
23839 test ! -s conftest.err
23840 } && test -s conftest.$ac_objext; then
23841 ac_header_compiler=yes
23842 else
23843 $as_echo "$as_me: failed program was:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23845
23846 ac_header_compiler=no
23847 fi
23848
23849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23850 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23851 $as_echo "$ac_header_compiler" >&6; }
23852
23853 # Is the header present?
23854 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
23855 $as_echo_n "checking $ac_header presence... " >&6; }
23856 cat >conftest.$ac_ext <<_ACEOF
23857 /* confdefs.h. */
23858 _ACEOF
23859 cat confdefs.h >>conftest.$ac_ext
23860 cat >>conftest.$ac_ext <<_ACEOF
23861 /* end confdefs.h. */
23862 #include <$ac_header>
23863 _ACEOF
23864 if { (ac_try="$ac_cpp conftest.$ac_ext"
23865 case "(($ac_try" in
23866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23867 *) ac_try_echo=$ac_try;;
23868 esac
23869 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23870 $as_echo "$ac_try_echo") >&5
23871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23872 ac_status=$?
23873 grep -v '^ *+' conftest.er1 >conftest.err
23874 rm -f conftest.er1
23875 cat conftest.err >&5
23876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23877 (exit $ac_status); } >/dev/null && {
23878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23879 test ! -s conftest.err
23880 }; then
23881 ac_header_preproc=yes
23882 else
23883 $as_echo "$as_me: failed program was:" >&5
23884 sed 's/^/| /' conftest.$ac_ext >&5
23885
23886 ac_header_preproc=no
23887 fi
23888
23889 rm -f conftest.err conftest.$ac_ext
23890 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23891 $as_echo "$ac_header_preproc" >&6; }
23892
23893 # So? What about this header?
23894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23895 yes:no: )
23896 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23897 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23898 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23899 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23900 ac_header_preproc=yes
23901 ;;
23902 no:yes:* )
23903 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23904 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23905 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23906 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23907 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23908 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23909 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23910 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23911 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23912 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23913 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23914 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23915
23916 ;;
23917 esac
23918 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
23919 $as_echo_n "checking for $ac_header... " >&6; }
23920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23921 $as_echo_n "(cached) " >&6
23922 else
23923 eval "$as_ac_Header=\$ac_header_preproc"
23924 fi
23925 ac_res=`eval 'as_val=${'$as_ac_Header'}
23926 $as_echo "$as_val"'`
23927 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
23928 $as_echo "$ac_res" >&6; }
23929
23930 fi
23931 if test `eval 'as_val=${'$as_ac_Header'}
23932 $as_echo "$as_val"'` = yes; then
23933 cat >>confdefs.h <<_ACEOF 12732 cat >>confdefs.h <<_ACEOF
23934 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12733 #define HAVE_COM_ERR_H 1
23935 _ACEOF 12734 _ACEOF
23936 12735
23937 fi 12736 fi
23938 12737
23939 done 12738 done
23946 12745
23947 12746
23948 12747
23949 # Solaris requires -lintl if you want strerror (which calls dgettext) 12748 # Solaris requires -lintl if you want strerror (which calls dgettext)
23950 # to return localized messages. 12749 # to return localized messages.
23951 12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dgettext in -lintl" >&5
23952 { $as_echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23953 $as_echo_n "checking for dgettext in -lintl... " >&6; } 12751 $as_echo_n "checking for dgettext in -lintl... " >&6; }
23954 if test "${ac_cv_lib_intl_dgettext+set}" = set; then 12752 if test "${ac_cv_lib_intl_dgettext+set}" = set; then :
23955 $as_echo_n "(cached) " >&6 12753 $as_echo_n "(cached) " >&6
23956 else 12754 else
23957 ac_check_lib_save_LIBS=$LIBS 12755 ac_check_lib_save_LIBS=$LIBS
23958 LIBS="-lintl $LIBS" 12756 LIBS="-lintl $LIBS"
23959 cat >conftest.$ac_ext <<_ACEOF 12757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* confdefs.h. */
23961 _ACEOF
23962 cat confdefs.h >>conftest.$ac_ext
23963 cat >>conftest.$ac_ext <<_ACEOF
23964 /* end confdefs.h. */ 12758 /* end confdefs.h. */
23965 12759
23966 /* Override any GCC internal prototype to avoid an error. 12760 /* Override any GCC internal prototype to avoid an error.
23967 Use char because int might match the return type of a GCC 12761 Use char because int might match the return type of a GCC
23968 builtin and then its argument prototype would still apply. */ 12762 builtin and then its argument prototype would still apply. */
23976 return dgettext (); 12770 return dgettext ();
23977 ; 12771 ;
23978 return 0; 12772 return 0;
23979 } 12773 }
23980 _ACEOF 12774 _ACEOF
23981 rm -f conftest.$ac_objext conftest$ac_exeext 12775 if ac_fn_c_try_link "$LINENO"; then :
23982 if { (ac_try="$ac_link"
23983 case "(($ac_try" in
23984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23985 *) ac_try_echo=$ac_try;;
23986 esac
23987 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
23988 $as_echo "$ac_try_echo") >&5
23989 (eval "$ac_link") 2>conftest.er1
23990 ac_status=$?
23991 grep -v '^ *+' conftest.er1 >conftest.err
23992 rm -f conftest.er1
23993 cat conftest.err >&5
23994 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); } && {
23996 test -z "$ac_c_werror_flag" ||
23997 test ! -s conftest.err
23998 } && test -s conftest$ac_exeext && {
23999 test "$cross_compiling" = yes ||
24000 $as_test_x conftest$ac_exeext
24001 }; then
24002 ac_cv_lib_intl_dgettext=yes 12776 ac_cv_lib_intl_dgettext=yes
24003 else 12777 else
24004 $as_echo "$as_me: failed program was:" >&5 12778 ac_cv_lib_intl_dgettext=no
24005 sed 's/^/| /' conftest.$ac_ext >&5 12779 fi
24006 12780 rm -f core conftest.err conftest.$ac_objext \
24007 ac_cv_lib_intl_dgettext=no 12781 conftest$ac_exeext conftest.$ac_ext
24008 fi
24009
24010 rm -rf conftest.dSYM
24011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24012 conftest$ac_exeext conftest.$ac_ext
24013 LIBS=$ac_check_lib_save_LIBS 12782 LIBS=$ac_check_lib_save_LIBS
24014 fi 12783 fi
24015 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5 12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_dgettext" >&5
24016 $as_echo "$ac_cv_lib_intl_dgettext" >&6; } 12785 $as_echo "$ac_cv_lib_intl_dgettext" >&6; }
24017 if test $ac_cv_lib_intl_dgettext = yes; then 12786 if test "x$ac_cv_lib_intl_dgettext" = x""yes; then :
24018 cat >>confdefs.h <<_ACEOF 12787 cat >>confdefs.h <<_ACEOF
24019 #define HAVE_LIBINTL 1 12788 #define HAVE_LIBINTL 1
24020 _ACEOF 12789 _ACEOF
24021 12790
24022 LIBS="-lintl $LIBS" 12791 LIBS="-lintl $LIBS"
24023 12792
24024 fi 12793 fi
24025 12794
24026 12795
24027 { $as_echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5 12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether localtime caches TZ" >&5
24028 $as_echo_n "checking whether localtime caches TZ... " >&6; } 12797 $as_echo_n "checking whether localtime caches TZ... " >&6; }
24029 if test "${emacs_cv_localtime_cache+set}" = set; then 12798 if test "${emacs_cv_localtime_cache+set}" = set; then :
24030 $as_echo_n "(cached) " >&6 12799 $as_echo_n "(cached) " >&6
24031 else 12800 else
24032 if test x$ac_cv_func_tzset = xyes; then 12801 if test x$ac_cv_func_tzset = xyes; then
24033 if test "$cross_compiling" = yes; then 12802 if test "$cross_compiling" = yes; then :
24034 # If we have tzset, assume the worst when cross-compiling. 12803 # If we have tzset, assume the worst when cross-compiling.
24035 emacs_cv_localtime_cache=yes 12804 emacs_cv_localtime_cache=yes
24036 else 12805 else
24037 cat >conftest.$ac_ext <<_ACEOF 12806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24038 /* confdefs.h. */
24039 _ACEOF
24040 cat confdefs.h >>conftest.$ac_ext
24041 cat >>conftest.$ac_ext <<_ACEOF
24042 /* end confdefs.h. */ 12807 /* end confdefs.h. */
24043 #include <time.h> 12808 #include <time.h>
24044 extern char **environ; 12809 extern char **environ;
24045 unset_TZ () 12810 unset_TZ ()
24046 { 12811 {
24068 if (localtime (&now)->tm_hour != hour_unset) 12833 if (localtime (&now)->tm_hour != hour_unset)
24069 exit (1); 12834 exit (1);
24070 exit (0); 12835 exit (0);
24071 } 12836 }
24072 _ACEOF 12837 _ACEOF
24073 rm -f conftest$ac_exeext 12838 if ac_fn_c_try_run "$LINENO"; then :
24074 if { (ac_try="$ac_link"
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_link") 2>&5
24082 ac_status=$?
24083 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24085 { (case "(($ac_try" in
24086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24087 *) ac_try_echo=$ac_try;;
24088 esac
24089 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24090 $as_echo "$ac_try_echo") >&5
24091 (eval "$ac_try") 2>&5
24092 ac_status=$?
24093 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24094 (exit $ac_status); }; }; then
24095 emacs_cv_localtime_cache=no 12839 emacs_cv_localtime_cache=no
24096 else 12840 else
24097 $as_echo "$as_me: program exited with status $ac_status" >&5 12841 emacs_cv_localtime_cache=yes
24098 $as_echo "$as_me: failed program was:" >&5 12842 fi
24099 sed 's/^/| /' conftest.$ac_ext >&5 12843 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24100 12844 conftest.$ac_objext conftest.beam conftest.$ac_ext
24101 ( exit $ac_status ) 12845 fi
24102 emacs_cv_localtime_cache=yes
24103 fi
24104 rm -rf conftest.dSYM
24105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24106 fi
24107
24108 12846
24109 else 12847 else
24110 # If we lack tzset, report that localtime does not cache TZ, 12848 # If we lack tzset, report that localtime does not cache TZ,
24111 # since we can't invalidate the cache if we don't have tzset. 12849 # since we can't invalidate the cache if we don't have tzset.
24112 emacs_cv_localtime_cache=no 12850 emacs_cv_localtime_cache=no
24113 fi 12851 fi
24114 fi 12852 fi
24115 { $as_echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5 12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_localtime_cache" >&5
24116 $as_echo "$emacs_cv_localtime_cache" >&6; } 12854 $as_echo "$emacs_cv_localtime_cache" >&6; }
24117 if test $emacs_cv_localtime_cache = yes; then 12855 if test $emacs_cv_localtime_cache = yes; then
24118 12856
24119 cat >>confdefs.h <<\_ACEOF 12857 $as_echo "#define LOCALTIME_CACHE 1" >>confdefs.h
24120 #define LOCALTIME_CACHE 1
24121 _ACEOF
24122 12858
24123 fi 12859 fi
24124 12860
24125 if test "x$HAVE_TIMEVAL" = xyes; then 12861 if test "x$HAVE_TIMEVAL" = xyes; then
24126 12862 for ac_func in gettimeofday
24127 for ac_func in gettimeofday 12863 do :
24128 do 12864 ac_fn_c_check_func "$LINENO" "gettimeofday" "ac_cv_func_gettimeofday"
24129 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12865 if test "x$ac_cv_func_gettimeofday" = x""yes; then :
24130 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5 12866 cat >>confdefs.h <<_ACEOF
24131 $as_echo_n "checking for $ac_func... " >&6; } 12867 #define HAVE_GETTIMEOFDAY 1
24132 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then 12868 _ACEOF
12869
12870 fi
12871 done
12872
12873 if test $ac_cv_func_gettimeofday = yes; then
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday can accept two arguments" >&5
12875 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
12876 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then :
24133 $as_echo_n "(cached) " >&6 12877 $as_echo_n "(cached) " >&6
24134 else 12878 else
24135 cat >conftest.$ac_ext <<_ACEOF 12879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24136 /* confdefs.h. */
24137 _ACEOF
24138 cat confdefs.h >>conftest.$ac_ext
24139 cat >>conftest.$ac_ext <<_ACEOF
24140 /* end confdefs.h. */
24141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24143 #define $ac_func innocuous_$ac_func
24144
24145 /* System header to define __stub macros and hopefully few prototypes,
24146 which can conflict with char $ac_func (); below.
24147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24148 <limits.h> exists even on freestanding compilers. */
24149
24150 #ifdef __STDC__
24151 # include <limits.h>
24152 #else
24153 # include <assert.h>
24154 #endif
24155
24156 #undef $ac_func
24157
24158 /* Override any GCC internal prototype to avoid an error.
24159 Use char because int might match the return type of a GCC
24160 builtin and then its argument prototype would still apply. */
24161 #ifdef __cplusplus
24162 extern "C"
24163 #endif
24164 char $ac_func ();
24165 /* The GNU C library defines this for functions which it implements
24166 to always fail with ENOSYS. Some functions are actually named
24167 something starting with __ and the normal name is an alias. */
24168 #if defined __stub_$ac_func || defined __stub___$ac_func
24169 choke me
24170 #endif
24171
24172 int
24173 main ()
24174 {
24175 return $ac_func ();
24176 ;
24177 return 0;
24178 }
24179 _ACEOF
24180 rm -f conftest.$ac_objext conftest$ac_exeext
24181 if { (ac_try="$ac_link"
24182 case "(($ac_try" in
24183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24184 *) ac_try_echo=$ac_try;;
24185 esac
24186 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24187 $as_echo "$ac_try_echo") >&5
24188 (eval "$ac_link") 2>conftest.er1
24189 ac_status=$?
24190 grep -v '^ *+' conftest.er1 >conftest.err
24191 rm -f conftest.er1
24192 cat conftest.err >&5
24193 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24194 (exit $ac_status); } && {
24195 test -z "$ac_c_werror_flag" ||
24196 test ! -s conftest.err
24197 } && test -s conftest$ac_exeext && {
24198 test "$cross_compiling" = yes ||
24199 $as_test_x conftest$ac_exeext
24200 }; then
24201 eval "$as_ac_var=yes"
24202 else
24203 $as_echo "$as_me: failed program was:" >&5
24204 sed 's/^/| /' conftest.$ac_ext >&5
24205
24206 eval "$as_ac_var=no"
24207 fi
24208
24209 rm -rf conftest.dSYM
24210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24211 conftest$ac_exeext conftest.$ac_ext
24212 fi
24213 ac_res=`eval 'as_val=${'$as_ac_var'}
24214 $as_echo "$as_val"'`
24215 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24216 $as_echo "$ac_res" >&6; }
24217 if test `eval 'as_val=${'$as_ac_var'}
24218 $as_echo "$as_val"'` = yes; then
24219 cat >>confdefs.h <<_ACEOF
24220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24221 _ACEOF
24222
24223 fi
24224 done
24225
24226 if test $ac_cv_func_gettimeofday = yes; then
24227 { $as_echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
24228 $as_echo_n "checking whether gettimeofday can accept two arguments... " >&6; }
24229 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
24230 $as_echo_n "(cached) " >&6
24231 else
24232 cat >conftest.$ac_ext <<_ACEOF
24233 /* confdefs.h. */
24234 _ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h. */ 12880 /* end confdefs.h. */
24238 12881
24239 #ifdef TIME_WITH_SYS_TIME 12882 #ifdef TIME_WITH_SYS_TIME
24240 #include <sys/time.h> 12883 #include <sys/time.h>
24241 #include <time.h> 12884 #include <time.h>
24253 gettimeofday (&time, 0); 12896 gettimeofday (&time, 0);
24254 ; 12897 ;
24255 return 0; 12898 return 0;
24256 } 12899 }
24257 _ACEOF 12900 _ACEOF
24258 rm -f conftest.$ac_objext 12901 if ac_fn_c_try_compile "$LINENO"; then :
24259 if { (ac_try="$ac_compile"
24260 case "(($ac_try" in
24261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24262 *) ac_try_echo=$ac_try;;
24263 esac
24264 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24265 $as_echo "$ac_try_echo") >&5
24266 (eval "$ac_compile") 2>conftest.er1
24267 ac_status=$?
24268 grep -v '^ *+' conftest.er1 >conftest.err
24269 rm -f conftest.er1
24270 cat conftest.err >&5
24271 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24272 (exit $ac_status); } && {
24273 test -z "$ac_c_werror_flag" ||
24274 test ! -s conftest.err
24275 } && test -s conftest.$ac_objext; then
24276 emacs_cv_gettimeofday_two_arguments=yes 12902 emacs_cv_gettimeofday_two_arguments=yes
24277 else 12903 else
24278 $as_echo "$as_me: failed program was:" >&5 12904 emacs_cv_gettimeofday_two_arguments=no
24279 sed 's/^/| /' conftest.$ac_ext >&5 12905 fi
24280
24281 emacs_cv_gettimeofday_two_arguments=no
24282 fi
24283
24284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24285 fi 12907 fi
24286 { $as_echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5 12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_gettimeofday_two_arguments" >&5
24287 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; } 12909 $as_echo "$emacs_cv_gettimeofday_two_arguments" >&6; }
24288 if test $emacs_cv_gettimeofday_two_arguments = no; then 12910 if test $emacs_cv_gettimeofday_two_arguments = no; then
24289 12911
24290 cat >>confdefs.h <<\_ACEOF 12912 $as_echo "#define GETTIMEOFDAY_ONE_ARGUMENT 1" >>confdefs.h
24291 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24292 _ACEOF
24293 12913
24294 fi 12914 fi
24295 fi 12915 fi
24296 fi 12916 fi
24297 12917
24298 ok_so_far=yes 12918 ok_so_far=yes
24299 { $as_echo "$as_me:$LINENO: checking for socket" >&5 12919 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
24300 $as_echo_n "checking for socket... " >&6; } 12920 if test "x$ac_cv_func_socket" = x""yes; then :
24301 if test "${ac_cv_func_socket+set}" = set; then 12921
24302 $as_echo_n "(cached) " >&6
24303 else
24304 cat >conftest.$ac_ext <<_ACEOF
24305 /* confdefs.h. */
24306 _ACEOF
24307 cat confdefs.h >>conftest.$ac_ext
24308 cat >>conftest.$ac_ext <<_ACEOF
24309 /* end confdefs.h. */
24310 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24311 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24312 #define socket innocuous_socket
24313
24314 /* System header to define __stub macros and hopefully few prototypes,
24315 which can conflict with char socket (); below.
24316 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24317 <limits.h> exists even on freestanding compilers. */
24318
24319 #ifdef __STDC__
24320 # include <limits.h>
24321 #else
24322 # include <assert.h>
24323 #endif
24324
24325 #undef socket
24326
24327 /* Override any GCC internal prototype to avoid an error.
24328 Use char because int might match the return type of a GCC
24329 builtin and then its argument prototype would still apply. */
24330 #ifdef __cplusplus
24331 extern "C"
24332 #endif
24333 char socket ();
24334 /* The GNU C library defines this for functions which it implements
24335 to always fail with ENOSYS. Some functions are actually named
24336 something starting with __ and the normal name is an alias. */
24337 #if defined __stub_socket || defined __stub___socket
24338 choke me
24339 #endif
24340
24341 int
24342 main ()
24343 {
24344 return socket ();
24345 ;
24346 return 0;
24347 }
24348 _ACEOF
24349 rm -f conftest.$ac_objext conftest$ac_exeext
24350 if { (ac_try="$ac_link"
24351 case "(($ac_try" in
24352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24353 *) ac_try_echo=$ac_try;;
24354 esac
24355 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24356 $as_echo "$ac_try_echo") >&5
24357 (eval "$ac_link") 2>conftest.er1
24358 ac_status=$?
24359 grep -v '^ *+' conftest.er1 >conftest.err
24360 rm -f conftest.er1
24361 cat conftest.err >&5
24362 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24363 (exit $ac_status); } && {
24364 test -z "$ac_c_werror_flag" ||
24365 test ! -s conftest.err
24366 } && test -s conftest$ac_exeext && {
24367 test "$cross_compiling" = yes ||
24368 $as_test_x conftest$ac_exeext
24369 }; then
24370 ac_cv_func_socket=yes
24371 else
24372 $as_echo "$as_me: failed program was:" >&5
24373 sed 's/^/| /' conftest.$ac_ext >&5
24374
24375 ac_cv_func_socket=no
24376 fi
24377
24378 rm -rf conftest.dSYM
24379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
24380 conftest$ac_exeext conftest.$ac_ext
24381 fi
24382 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24383 $as_echo "$ac_cv_func_socket" >&6; }
24384 if test $ac_cv_func_socket = yes; then
24385 :
24386 else 12922 else
24387 ok_so_far=no 12923 ok_so_far=no
24388 fi 12924 fi
24389 12925
24390 if test $ok_so_far = yes; then 12926 if test $ok_so_far = yes; then
24391 if test "${ac_cv_header_netinet_in_h+set}" = set; then 12927 ac_fn_c_check_header_mongrel "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$ac_includes_default"
24392 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5 12928 if test "x$ac_cv_header_netinet_in_h" = x""yes; then :
24393 $as_echo_n "checking for netinet/in.h... " >&6; } 12929
24394 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24395 $as_echo_n "(cached) " >&6
24396 fi
24397 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24398 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24399 else
24400 # Is the header compilable?
24401 { $as_echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24402 $as_echo_n "checking netinet/in.h usability... " >&6; }
24403 cat >conftest.$ac_ext <<_ACEOF
24404 /* confdefs.h. */
24405 _ACEOF
24406 cat confdefs.h >>conftest.$ac_ext
24407 cat >>conftest.$ac_ext <<_ACEOF
24408 /* end confdefs.h. */
24409 $ac_includes_default
24410 #include <netinet/in.h>
24411 _ACEOF
24412 rm -f conftest.$ac_objext
24413 if { (ac_try="$ac_compile"
24414 case "(($ac_try" in
24415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24416 *) ac_try_echo=$ac_try;;
24417 esac
24418 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24419 $as_echo "$ac_try_echo") >&5
24420 (eval "$ac_compile") 2>conftest.er1
24421 ac_status=$?
24422 grep -v '^ *+' conftest.er1 >conftest.err
24423 rm -f conftest.er1
24424 cat conftest.err >&5
24425 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24426 (exit $ac_status); } && {
24427 test -z "$ac_c_werror_flag" ||
24428 test ! -s conftest.err
24429 } && test -s conftest.$ac_objext; then
24430 ac_header_compiler=yes
24431 else
24432 $as_echo "$as_me: failed program was:" >&5
24433 sed 's/^/| /' conftest.$ac_ext >&5
24434
24435 ac_header_compiler=no
24436 fi
24437
24438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24439 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24440 $as_echo "$ac_header_compiler" >&6; }
24441
24442 # Is the header present?
24443 { $as_echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24444 $as_echo_n "checking netinet/in.h presence... " >&6; }
24445 cat >conftest.$ac_ext <<_ACEOF
24446 /* confdefs.h. */
24447 _ACEOF
24448 cat confdefs.h >>conftest.$ac_ext
24449 cat >>conftest.$ac_ext <<_ACEOF
24450 /* end confdefs.h. */
24451 #include <netinet/in.h>
24452 _ACEOF
24453 if { (ac_try="$ac_cpp conftest.$ac_ext"
24454 case "(($ac_try" in
24455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24456 *) ac_try_echo=$ac_try;;
24457 esac
24458 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24459 $as_echo "$ac_try_echo") >&5
24460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24461 ac_status=$?
24462 grep -v '^ *+' conftest.er1 >conftest.err
24463 rm -f conftest.er1
24464 cat conftest.err >&5
24465 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24466 (exit $ac_status); } >/dev/null && {
24467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24468 test ! -s conftest.err
24469 }; then
24470 ac_header_preproc=yes
24471 else
24472 $as_echo "$as_me: failed program was:" >&5
24473 sed 's/^/| /' conftest.$ac_ext >&5
24474
24475 ac_header_preproc=no
24476 fi
24477
24478 rm -f conftest.err conftest.$ac_ext
24479 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24480 $as_echo "$ac_header_preproc" >&6; }
24481
24482 # So? What about this header?
24483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24484 yes:no: )
24485 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24486 $as_echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24487 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24488 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24489 ac_header_preproc=yes
24490 ;;
24491 no:yes:* )
24492 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24493 $as_echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24494 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24495 $as_echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24496 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24497 $as_echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24498 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24499 $as_echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24500 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24501 $as_echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24502 { $as_echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24503 $as_echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24504
24505 ;;
24506 esac
24507 { $as_echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24508 $as_echo_n "checking for netinet/in.h... " >&6; }
24509 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24510 $as_echo_n "(cached) " >&6
24511 else
24512 ac_cv_header_netinet_in_h=$ac_header_preproc
24513 fi
24514 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24515 $as_echo "$ac_cv_header_netinet_in_h" >&6; }
24516
24517 fi
24518 if test $ac_cv_header_netinet_in_h = yes; then
24519 :
24520 else 12930 else
24521 ok_so_far=no 12931 ok_so_far=no
24522 fi 12932 fi
24523 12933
24524 12934
24525 fi 12935 fi
24526 if test $ok_so_far = yes; then 12936 if test $ok_so_far = yes; then
24527 if test "${ac_cv_header_arpa_inet_h+set}" = set; then 12937 ac_fn_c_check_header_mongrel "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$ac_includes_default"
24528 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5 12938 if test "x$ac_cv_header_arpa_inet_h" = x""yes; then :
24529 $as_echo_n "checking for arpa/inet.h... " >&6; } 12939
24530 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24531 $as_echo_n "(cached) " >&6
24532 fi
24533 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24534 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24535 else
24536 # Is the header compilable?
24537 { $as_echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24538 $as_echo_n "checking arpa/inet.h usability... " >&6; }
24539 cat >conftest.$ac_ext <<_ACEOF
24540 /* confdefs.h. */
24541 _ACEOF
24542 cat confdefs.h >>conftest.$ac_ext
24543 cat >>conftest.$ac_ext <<_ACEOF
24544 /* end confdefs.h. */
24545 $ac_includes_default
24546 #include <arpa/inet.h>
24547 _ACEOF
24548 rm -f conftest.$ac_objext
24549 if { (ac_try="$ac_compile"
24550 case "(($ac_try" in
24551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24552 *) ac_try_echo=$ac_try;;
24553 esac
24554 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24555 $as_echo "$ac_try_echo") >&5
24556 (eval "$ac_compile") 2>conftest.er1
24557 ac_status=$?
24558 grep -v '^ *+' conftest.er1 >conftest.err
24559 rm -f conftest.er1
24560 cat conftest.err >&5
24561 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); } && {
24563 test -z "$ac_c_werror_flag" ||
24564 test ! -s conftest.err
24565 } && test -s conftest.$ac_objext; then
24566 ac_header_compiler=yes
24567 else
24568 $as_echo "$as_me: failed program was:" >&5
24569 sed 's/^/| /' conftest.$ac_ext >&5
24570
24571 ac_header_compiler=no
24572 fi
24573
24574 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24575 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24576 $as_echo "$ac_header_compiler" >&6; }
24577
24578 # Is the header present?
24579 { $as_echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24580 $as_echo_n "checking arpa/inet.h presence... " >&6; }
24581 cat >conftest.$ac_ext <<_ACEOF
24582 /* confdefs.h. */
24583 _ACEOF
24584 cat confdefs.h >>conftest.$ac_ext
24585 cat >>conftest.$ac_ext <<_ACEOF
24586 /* end confdefs.h. */
24587 #include <arpa/inet.h>
24588 _ACEOF
24589 if { (ac_try="$ac_cpp conftest.$ac_ext"
24590 case "(($ac_try" in
24591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24592 *) ac_try_echo=$ac_try;;
24593 esac
24594 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24595 $as_echo "$ac_try_echo") >&5
24596 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24597 ac_status=$?
24598 grep -v '^ *+' conftest.er1 >conftest.err
24599 rm -f conftest.er1
24600 cat conftest.err >&5
24601 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24602 (exit $ac_status); } >/dev/null && {
24603 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24604 test ! -s conftest.err
24605 }; then
24606 ac_header_preproc=yes
24607 else
24608 $as_echo "$as_me: failed program was:" >&5
24609 sed 's/^/| /' conftest.$ac_ext >&5
24610
24611 ac_header_preproc=no
24612 fi
24613
24614 rm -f conftest.err conftest.$ac_ext
24615 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24616 $as_echo "$ac_header_preproc" >&6; }
24617
24618 # So? What about this header?
24619 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24620 yes:no: )
24621 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24622 $as_echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24623 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24624 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24625 ac_header_preproc=yes
24626 ;;
24627 no:yes:* )
24628 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24629 $as_echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24630 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24631 $as_echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24632 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24633 $as_echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24634 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24635 $as_echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24636 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24637 $as_echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24638 { $as_echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24639 $as_echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24640
24641 ;;
24642 esac
24643 { $as_echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24644 $as_echo_n "checking for arpa/inet.h... " >&6; }
24645 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24646 $as_echo_n "(cached) " >&6
24647 else
24648 ac_cv_header_arpa_inet_h=$ac_header_preproc
24649 fi
24650 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24651 $as_echo "$ac_cv_header_arpa_inet_h" >&6; }
24652
24653 fi
24654 if test $ac_cv_header_arpa_inet_h = yes; then
24655 :
24656 else 12940 else
24657 ok_so_far=no 12941 ok_so_far=no
24658 fi 12942 fi
24659 12943
24660 12944
24661 fi 12945 fi
24662 if test $ok_so_far = yes; then 12946 if test $ok_so_far = yes; then
24663 12947
24664 cat >>confdefs.h <<\_ACEOF 12948 $as_echo "#define HAVE_INET_SOCKETS 1" >>confdefs.h
24665 #define HAVE_INET_SOCKETS 1 12949
24666 _ACEOF 12950 fi
24667
24668 fi
24669
24670 12951
24671 for ac_header in sys/ioctl.h 12952 for ac_header in sys/ioctl.h
24672 do 12953 do :
24673 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12954 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
24674 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then 12955 if test "x$ac_cv_header_sys_ioctl_h" = x""yes; then :
24675 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24676 $as_echo_n "checking for $ac_header... " >&6; }
24677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24678 $as_echo_n "(cached) " >&6
24679 fi
24680 ac_res=`eval 'as_val=${'$as_ac_Header'}
24681 $as_echo "$as_val"'`
24682 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24683 $as_echo "$ac_res" >&6; }
24684 else
24685 # Is the header compilable?
24686 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24687 $as_echo_n "checking $ac_header usability... " >&6; }
24688 cat >conftest.$ac_ext <<_ACEOF
24689 /* confdefs.h. */
24690 _ACEOF
24691 cat confdefs.h >>conftest.$ac_ext
24692 cat >>conftest.$ac_ext <<_ACEOF
24693 /* end confdefs.h. */
24694 $ac_includes_default
24695 #include <$ac_header>
24696 _ACEOF
24697 rm -f conftest.$ac_objext
24698 if { (ac_try="$ac_compile"
24699 case "(($ac_try" in
24700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24701 *) ac_try_echo=$ac_try;;
24702 esac
24703 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24704 $as_echo "$ac_try_echo") >&5
24705 (eval "$ac_compile") 2>conftest.er1
24706 ac_status=$?
24707 grep -v '^ *+' conftest.er1 >conftest.err
24708 rm -f conftest.er1
24709 cat conftest.err >&5
24710 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24711 (exit $ac_status); } && {
24712 test -z "$ac_c_werror_flag" ||
24713 test ! -s conftest.err
24714 } && test -s conftest.$ac_objext; then
24715 ac_header_compiler=yes
24716 else
24717 $as_echo "$as_me: failed program was:" >&5
24718 sed 's/^/| /' conftest.$ac_ext >&5
24719
24720 ac_header_compiler=no
24721 fi
24722
24723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24724 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24725 $as_echo "$ac_header_compiler" >&6; }
24726
24727 # Is the header present?
24728 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
24729 $as_echo_n "checking $ac_header presence... " >&6; }
24730 cat >conftest.$ac_ext <<_ACEOF
24731 /* confdefs.h. */
24732 _ACEOF
24733 cat confdefs.h >>conftest.$ac_ext
24734 cat >>conftest.$ac_ext <<_ACEOF
24735 /* end confdefs.h. */
24736 #include <$ac_header>
24737 _ACEOF
24738 if { (ac_try="$ac_cpp conftest.$ac_ext"
24739 case "(($ac_try" in
24740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24741 *) ac_try_echo=$ac_try;;
24742 esac
24743 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24744 $as_echo "$ac_try_echo") >&5
24745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24746 ac_status=$?
24747 grep -v '^ *+' conftest.er1 >conftest.err
24748 rm -f conftest.er1
24749 cat conftest.err >&5
24750 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751 (exit $ac_status); } >/dev/null && {
24752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
24753 test ! -s conftest.err
24754 }; then
24755 ac_header_preproc=yes
24756 else
24757 $as_echo "$as_me: failed program was:" >&5
24758 sed 's/^/| /' conftest.$ac_ext >&5
24759
24760 ac_header_preproc=no
24761 fi
24762
24763 rm -f conftest.err conftest.$ac_ext
24764 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24765 $as_echo "$ac_header_preproc" >&6; }
24766
24767 # So? What about this header?
24768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24769 yes:no: )
24770 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24771 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24772 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24773 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24774 ac_header_preproc=yes
24775 ;;
24776 no:yes:* )
24777 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24778 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24779 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24780 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24781 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24782 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24783 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24784 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24785 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24786 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24787 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24788 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24789
24790 ;;
24791 esac
24792 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24793 $as_echo_n "checking for $ac_header... " >&6; }
24794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24795 $as_echo_n "(cached) " >&6
24796 else
24797 eval "$as_ac_Header=\$ac_header_preproc"
24798 fi
24799 ac_res=`eval 'as_val=${'$as_ac_Header'}
24800 $as_echo "$as_val"'`
24801 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24802 $as_echo "$ac_res" >&6; }
24803
24804 fi
24805 if test `eval 'as_val=${'$as_ac_Header'}
24806 $as_echo "$as_val"'` = yes; then
24807 cat >>confdefs.h <<_ACEOF 12956 cat >>confdefs.h <<_ACEOF
24808 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12957 #define HAVE_SYS_IOCTL_H 1
24809 _ACEOF 12958 _ACEOF
24810 12959
24811 fi 12960 fi
24812 12961
24813 done 12962 done
24814 12963
24815 12964
24816 if test -f /usr/lpp/X11/bin/smt.exp; then 12965 if test -f /usr/lpp/X11/bin/smt.exp; then
24817 12966
24818 cat >>confdefs.h <<\_ACEOF 12967 $as_echo "#define HAVE_AIX_SMT_EXP 1" >>confdefs.h
24819 #define HAVE_AIX_SMT_EXP 1 12968
24820 _ACEOF 12969 fi
24821 12970
24822 fi 12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system supports dynamic ptys" >&5
24823
24824 { $as_echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24825 $as_echo_n "checking whether system supports dynamic ptys... " >&6; } 12972 $as_echo_n "checking whether system supports dynamic ptys... " >&6; }
24826 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then 12973 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24827 { $as_echo "$as_me:$LINENO: result: yes" >&5 12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24828 $as_echo "yes" >&6; } 12975 $as_echo "yes" >&6; }
24829 12976
24830 cat >>confdefs.h <<\_ACEOF 12977 $as_echo "#define HAVE_DEV_PTMX 1" >>confdefs.h
24831 #define HAVE_DEV_PTMX 1 12978
24832 _ACEOF 12979 else
24833 12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24834 else
24835 { $as_echo "$as_me:$LINENO: result: no" >&5
24836 $as_echo "no" >&6; } 12981 $as_echo "no" >&6; }
24837 fi 12982 fi
24838 12983
24839 { $as_echo "$as_me:$LINENO: checking for pid_t" >&5 12984 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24840 $as_echo_n "checking for pid_t... " >&6; } 12985 if test "x$ac_cv_type_pid_t" = x""yes; then :
24841 if test "${ac_cv_type_pid_t+set}" = set; then 12986
12987 else
12988
12989 cat >>confdefs.h <<_ACEOF
12990 #define pid_t int
12991 _ACEOF
12992
12993 fi
12994
12995 for ac_header in vfork.h
12996 do :
12997 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
12998 if test "x$ac_cv_header_vfork_h" = x""yes; then :
12999 cat >>confdefs.h <<_ACEOF
13000 #define HAVE_VFORK_H 1
13001 _ACEOF
13002
13003 fi
13004
13005 done
13006
13007 for ac_func in fork vfork
13008 do :
13009 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
13010 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
13011 eval as_val=\$$as_ac_var
13012 if test "x$as_val" = x""yes; then :
13013 cat >>confdefs.h <<_ACEOF
13014 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
13015 _ACEOF
13016
13017 fi
13018 done
13019
13020 if test "x$ac_cv_func_fork" = xyes; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
13022 $as_echo_n "checking for working fork... " >&6; }
13023 if test "${ac_cv_func_fork_works+set}" = set; then :
24842 $as_echo_n "(cached) " >&6 13024 $as_echo_n "(cached) " >&6
24843 else 13025 else
24844 ac_cv_type_pid_t=no 13026 if test "$cross_compiling" = yes; then :
24845 cat >conftest.$ac_ext <<_ACEOF 13027 ac_cv_func_fork_works=cross
24846 /* confdefs.h. */ 13028 else
24847 _ACEOF 13029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24848 cat confdefs.h >>conftest.$ac_ext
24849 cat >>conftest.$ac_ext <<_ACEOF
24850 /* end confdefs.h. */ 13030 /* end confdefs.h. */
24851 $ac_includes_default 13031 $ac_includes_default
24852 int 13032 int
24853 main () 13033 main ()
24854 { 13034 {
24855 if (sizeof (pid_t)) 13035
24856 return 0; 13036 /* By Ruediger Kuhlmann. */
13037 return fork () < 0;
13038
24857 ; 13039 ;
24858 return 0; 13040 return 0;
24859 } 13041 }
24860 _ACEOF 13042 _ACEOF
24861 rm -f conftest.$ac_objext 13043 if ac_fn_c_try_run "$LINENO"; then :
24862 if { (ac_try="$ac_compile"
24863 case "(($ac_try" in
24864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24865 *) ac_try_echo=$ac_try;;
24866 esac
24867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24868 $as_echo "$ac_try_echo") >&5
24869 (eval "$ac_compile") 2>conftest.er1
24870 ac_status=$?
24871 grep -v '^ *+' conftest.er1 >conftest.err
24872 rm -f conftest.er1
24873 cat conftest.err >&5
24874 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24875 (exit $ac_status); } && {
24876 test -z "$ac_c_werror_flag" ||
24877 test ! -s conftest.err
24878 } && test -s conftest.$ac_objext; then
24879 cat >conftest.$ac_ext <<_ACEOF
24880 /* confdefs.h. */
24881 _ACEOF
24882 cat confdefs.h >>conftest.$ac_ext
24883 cat >>conftest.$ac_ext <<_ACEOF
24884 /* end confdefs.h. */
24885 $ac_includes_default
24886 int
24887 main ()
24888 {
24889 if (sizeof ((pid_t)))
24890 return 0;
24891 ;
24892 return 0;
24893 }
24894 _ACEOF
24895 rm -f conftest.$ac_objext
24896 if { (ac_try="$ac_compile"
24897 case "(($ac_try" in
24898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24899 *) ac_try_echo=$ac_try;;
24900 esac
24901 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24902 $as_echo "$ac_try_echo") >&5
24903 (eval "$ac_compile") 2>conftest.er1
24904 ac_status=$?
24905 grep -v '^ *+' conftest.er1 >conftest.err
24906 rm -f conftest.er1
24907 cat conftest.err >&5
24908 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24909 (exit $ac_status); } && {
24910 test -z "$ac_c_werror_flag" ||
24911 test ! -s conftest.err
24912 } && test -s conftest.$ac_objext; then
24913 :
24914 else
24915 $as_echo "$as_me: failed program was:" >&5
24916 sed 's/^/| /' conftest.$ac_ext >&5
24917
24918 ac_cv_type_pid_t=yes
24919 fi
24920
24921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24922 else
24923 $as_echo "$as_me: failed program was:" >&5
24924 sed 's/^/| /' conftest.$ac_ext >&5
24925
24926
24927 fi
24928
24929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24930 fi
24931 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24932 $as_echo "$ac_cv_type_pid_t" >&6; }
24933 if test $ac_cv_type_pid_t = yes; then
24934 :
24935 else
24936
24937 cat >>confdefs.h <<_ACEOF
24938 #define pid_t int
24939 _ACEOF
24940
24941 fi
24942
24943
24944 for ac_header in vfork.h
24945 do
24946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24947 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24948 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
24949 $as_echo_n "checking for $ac_header... " >&6; }
24950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24951 $as_echo_n "(cached) " >&6
24952 fi
24953 ac_res=`eval 'as_val=${'$as_ac_Header'}
24954 $as_echo "$as_val"'`
24955 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
24956 $as_echo "$ac_res" >&6; }
24957 else
24958 # Is the header compilable?
24959 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
24960 $as_echo_n "checking $ac_header usability... " >&6; }
24961 cat >conftest.$ac_ext <<_ACEOF
24962 /* confdefs.h. */
24963 _ACEOF
24964 cat confdefs.h >>conftest.$ac_ext
24965 cat >>conftest.$ac_ext <<_ACEOF
24966 /* end confdefs.h. */
24967 $ac_includes_default
24968 #include <$ac_header>
24969 _ACEOF
24970 rm -f conftest.$ac_objext
24971 if { (ac_try="$ac_compile"
24972 case "(($ac_try" in
24973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24974 *) ac_try_echo=$ac_try;;
24975 esac
24976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
24977 $as_echo "$ac_try_echo") >&5
24978 (eval "$ac_compile") 2>conftest.er1
24979 ac_status=$?
24980 grep -v '^ *+' conftest.er1 >conftest.err
24981 rm -f conftest.er1
24982 cat conftest.err >&5
24983 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
24984 (exit $ac_status); } && {
24985 test -z "$ac_c_werror_flag" ||
24986 test ! -s conftest.err
24987 } && test -s conftest.$ac_objext; then
24988 ac_header_compiler=yes
24989 else
24990 $as_echo "$as_me: failed program was:" >&5
24991 sed 's/^/| /' conftest.$ac_ext >&5
24992
24993 ac_header_compiler=no
24994 fi
24995
24996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24997 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24998 $as_echo "$ac_header_compiler" >&6; }
24999
25000 # Is the header present?
25001 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
25002 $as_echo_n "checking $ac_header presence... " >&6; }
25003 cat >conftest.$ac_ext <<_ACEOF
25004 /* confdefs.h. */
25005 _ACEOF
25006 cat confdefs.h >>conftest.$ac_ext
25007 cat >>conftest.$ac_ext <<_ACEOF
25008 /* end confdefs.h. */
25009 #include <$ac_header>
25010 _ACEOF
25011 if { (ac_try="$ac_cpp conftest.$ac_ext"
25012 case "(($ac_try" in
25013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25014 *) ac_try_echo=$ac_try;;
25015 esac
25016 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25017 $as_echo "$ac_try_echo") >&5
25018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
25019 ac_status=$?
25020 grep -v '^ *+' conftest.er1 >conftest.err
25021 rm -f conftest.er1
25022 cat conftest.err >&5
25023 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25024 (exit $ac_status); } >/dev/null && {
25025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
25026 test ! -s conftest.err
25027 }; then
25028 ac_header_preproc=yes
25029 else
25030 $as_echo "$as_me: failed program was:" >&5
25031 sed 's/^/| /' conftest.$ac_ext >&5
25032
25033 ac_header_preproc=no
25034 fi
25035
25036 rm -f conftest.err conftest.$ac_ext
25037 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25038 $as_echo "$ac_header_preproc" >&6; }
25039
25040 # So? What about this header?
25041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25042 yes:no: )
25043 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25044 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25045 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25046 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25047 ac_header_preproc=yes
25048 ;;
25049 no:yes:* )
25050 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25051 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25052 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25053 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25054 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25055 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25056 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25057 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25058 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25059 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25060 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25061 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25062
25063 ;;
25064 esac
25065 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
25066 $as_echo_n "checking for $ac_header... " >&6; }
25067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
25068 $as_echo_n "(cached) " >&6
25069 else
25070 eval "$as_ac_Header=\$ac_header_preproc"
25071 fi
25072 ac_res=`eval 'as_val=${'$as_ac_Header'}
25073 $as_echo "$as_val"'`
25074 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25075 $as_echo "$ac_res" >&6; }
25076
25077 fi
25078 if test `eval 'as_val=${'$as_ac_Header'}
25079 $as_echo "$as_val"'` = yes; then
25080 cat >>confdefs.h <<_ACEOF
25081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25082 _ACEOF
25083
25084 fi
25085
25086 done
25087
25088
25089
25090 for ac_func in fork vfork
25091 do
25092 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25093 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
25094 $as_echo_n "checking for $ac_func... " >&6; }
25095 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
25096 $as_echo_n "(cached) " >&6
25097 else
25098 cat >conftest.$ac_ext <<_ACEOF
25099 /* confdefs.h. */
25100 _ACEOF
25101 cat confdefs.h >>conftest.$ac_ext
25102 cat >>conftest.$ac_ext <<_ACEOF
25103 /* end confdefs.h. */
25104 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25105 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25106 #define $ac_func innocuous_$ac_func
25107
25108 /* System header to define __stub macros and hopefully few prototypes,
25109 which can conflict with char $ac_func (); below.
25110 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25111 <limits.h> exists even on freestanding compilers. */
25112
25113 #ifdef __STDC__
25114 # include <limits.h>
25115 #else
25116 # include <assert.h>
25117 #endif
25118
25119 #undef $ac_func
25120
25121 /* Override any GCC internal prototype to avoid an error.
25122 Use char because int might match the return type of a GCC
25123 builtin and then its argument prototype would still apply. */
25124 #ifdef __cplusplus
25125 extern "C"
25126 #endif
25127 char $ac_func ();
25128 /* The GNU C library defines this for functions which it implements
25129 to always fail with ENOSYS. Some functions are actually named
25130 something starting with __ and the normal name is an alias. */
25131 #if defined __stub_$ac_func || defined __stub___$ac_func
25132 choke me
25133 #endif
25134
25135 int
25136 main ()
25137 {
25138 return $ac_func ();
25139 ;
25140 return 0;
25141 }
25142 _ACEOF
25143 rm -f conftest.$ac_objext conftest$ac_exeext
25144 if { (ac_try="$ac_link"
25145 case "(($ac_try" in
25146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25147 *) ac_try_echo=$ac_try;;
25148 esac
25149 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25150 $as_echo "$ac_try_echo") >&5
25151 (eval "$ac_link") 2>conftest.er1
25152 ac_status=$?
25153 grep -v '^ *+' conftest.er1 >conftest.err
25154 rm -f conftest.er1
25155 cat conftest.err >&5
25156 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25157 (exit $ac_status); } && {
25158 test -z "$ac_c_werror_flag" ||
25159 test ! -s conftest.err
25160 } && test -s conftest$ac_exeext && {
25161 test "$cross_compiling" = yes ||
25162 $as_test_x conftest$ac_exeext
25163 }; then
25164 eval "$as_ac_var=yes"
25165 else
25166 $as_echo "$as_me: failed program was:" >&5
25167 sed 's/^/| /' conftest.$ac_ext >&5
25168
25169 eval "$as_ac_var=no"
25170 fi
25171
25172 rm -rf conftest.dSYM
25173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25174 conftest$ac_exeext conftest.$ac_ext
25175 fi
25176 ac_res=`eval 'as_val=${'$as_ac_var'}
25177 $as_echo "$as_val"'`
25178 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
25179 $as_echo "$ac_res" >&6; }
25180 if test `eval 'as_val=${'$as_ac_var'}
25181 $as_echo "$as_val"'` = yes; then
25182 cat >>confdefs.h <<_ACEOF
25183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25184 _ACEOF
25185
25186 fi
25187 done
25188
25189 if test "x$ac_cv_func_fork" = xyes; then
25190 { $as_echo "$as_me:$LINENO: checking for working fork" >&5
25191 $as_echo_n "checking for working fork... " >&6; }
25192 if test "${ac_cv_func_fork_works+set}" = set; then
25193 $as_echo_n "(cached) " >&6
25194 else
25195 if test "$cross_compiling" = yes; then
25196 ac_cv_func_fork_works=cross
25197 else
25198 cat >conftest.$ac_ext <<_ACEOF
25199 /* confdefs.h. */
25200 _ACEOF
25201 cat confdefs.h >>conftest.$ac_ext
25202 cat >>conftest.$ac_ext <<_ACEOF
25203 /* end confdefs.h. */
25204 $ac_includes_default
25205 int
25206 main ()
25207 {
25208
25209 /* By Ruediger Kuhlmann. */
25210 return fork () < 0;
25211
25212 ;
25213 return 0;
25214 }
25215 _ACEOF
25216 rm -f conftest$ac_exeext
25217 if { (ac_try="$ac_link"
25218 case "(($ac_try" in
25219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25220 *) ac_try_echo=$ac_try;;
25221 esac
25222 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25223 $as_echo "$ac_try_echo") >&5
25224 (eval "$ac_link") 2>&5
25225 ac_status=$?
25226 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25227 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25228 { (case "(($ac_try" in
25229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25230 *) ac_try_echo=$ac_try;;
25231 esac
25232 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25233 $as_echo "$ac_try_echo") >&5
25234 (eval "$ac_try") 2>&5
25235 ac_status=$?
25236 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25237 (exit $ac_status); }; }; then
25238 ac_cv_func_fork_works=yes 13044 ac_cv_func_fork_works=yes
25239 else 13045 else
25240 $as_echo "$as_me: program exited with status $ac_status" >&5 13046 ac_cv_func_fork_works=no
25241 $as_echo "$as_me: failed program was:" >&5 13047 fi
25242 sed 's/^/| /' conftest.$ac_ext >&5 13048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25243 13049 conftest.$ac_objext conftest.beam conftest.$ac_ext
25244 ( exit $ac_status ) 13050 fi
25245 ac_cv_func_fork_works=no 13051
25246 fi 13052 fi
25247 rm -rf conftest.dSYM 13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
25248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25249 fi
25250
25251
25252 fi
25253 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25254 $as_echo "$ac_cv_func_fork_works" >&6; } 13054 $as_echo "$ac_cv_func_fork_works" >&6; }
25255 13055
25256 else 13056 else
25257 ac_cv_func_fork_works=$ac_cv_func_fork 13057 ac_cv_func_fork_works=$ac_cv_func_fork
25258 fi 13058 fi
25264 ;; 13064 ;;
25265 *) 13065 *)
25266 ac_cv_func_fork_works=yes 13066 ac_cv_func_fork_works=yes
25267 ;; 13067 ;;
25268 esac 13068 esac
25269 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 13069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25270 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 13070 $as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25271 fi 13071 fi
25272 ac_cv_func_vfork_works=$ac_cv_func_vfork 13072 ac_cv_func_vfork_works=$ac_cv_func_vfork
25273 if test "x$ac_cv_func_vfork" = xyes; then 13073 if test "x$ac_cv_func_vfork" = xyes; then
25274 { $as_echo "$as_me:$LINENO: checking for working vfork" >&5 13074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
25275 $as_echo_n "checking for working vfork... " >&6; } 13075 $as_echo_n "checking for working vfork... " >&6; }
25276 if test "${ac_cv_func_vfork_works+set}" = set; then 13076 if test "${ac_cv_func_vfork_works+set}" = set; then :
25277 $as_echo_n "(cached) " >&6 13077 $as_echo_n "(cached) " >&6
25278 else 13078 else
25279 if test "$cross_compiling" = yes; then 13079 if test "$cross_compiling" = yes; then :
25280 ac_cv_func_vfork_works=cross 13080 ac_cv_func_vfork_works=cross
25281 else 13081 else
25282 cat >conftest.$ac_ext <<_ACEOF 13082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25283 /* confdefs.h. */
25284 _ACEOF
25285 cat confdefs.h >>conftest.$ac_ext
25286 cat >>conftest.$ac_ext <<_ACEOF
25287 /* end confdefs.h. */ 13083 /* end confdefs.h. */
25288 /* Thanks to Paul Eggert for this test. */ 13084 /* Thanks to Paul Eggert for this test. */
25289 $ac_includes_default 13085 $ac_includes_default
25290 #include <sys/wait.h> 13086 #include <sys/wait.h>
25291 #ifdef HAVE_VFORK_H 13087 #ifdef HAVE_VFORK_H
25373 || fstat(fileno(stdout), &st) != 0 13169 || fstat(fileno(stdout), &st) != 0
25374 ); 13170 );
25375 } 13171 }
25376 } 13172 }
25377 _ACEOF 13173 _ACEOF
25378 rm -f conftest$ac_exeext 13174 if ac_fn_c_try_run "$LINENO"; then :
25379 if { (ac_try="$ac_link"
25380 case "(($ac_try" in
25381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25382 *) ac_try_echo=$ac_try;;
25383 esac
25384 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25385 $as_echo "$ac_try_echo") >&5
25386 (eval "$ac_link") 2>&5
25387 ac_status=$?
25388 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25390 { (case "(($ac_try" in
25391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25392 *) ac_try_echo=$ac_try;;
25393 esac
25394 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25395 $as_echo "$ac_try_echo") >&5
25396 (eval "$ac_try") 2>&5
25397 ac_status=$?
25398 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25399 (exit $ac_status); }; }; then
25400 ac_cv_func_vfork_works=yes 13175 ac_cv_func_vfork_works=yes
25401 else 13176 else
25402 $as_echo "$as_me: program exited with status $ac_status" >&5 13177 ac_cv_func_vfork_works=no
25403 $as_echo "$as_me: failed program was:" >&5 13178 fi
25404 sed 's/^/| /' conftest.$ac_ext >&5 13179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25405 13180 conftest.$ac_objext conftest.beam conftest.$ac_ext
25406 ( exit $ac_status ) 13181 fi
25407 ac_cv_func_vfork_works=no 13182
25408 fi 13183 fi
25409 rm -rf conftest.dSYM 13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
25410 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25411 fi
25412
25413
25414 fi
25415 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25416 $as_echo "$ac_cv_func_vfork_works" >&6; } 13185 $as_echo "$ac_cv_func_vfork_works" >&6; }
25417 13186
25418 fi; 13187 fi;
25419 if test "x$ac_cv_func_fork_works" = xcross; then 13188 if test "x$ac_cv_func_fork_works" = xcross; then
25420 ac_cv_func_vfork_works=$ac_cv_func_vfork 13189 ac_cv_func_vfork_works=$ac_cv_func_vfork
25421 { $as_echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 13190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25422 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 13191 $as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25423 fi 13192 fi
25424 13193
25425 if test "x$ac_cv_func_vfork_works" = xyes; then 13194 if test "x$ac_cv_func_vfork_works" = xyes; then
25426 13195
25427 cat >>confdefs.h <<\_ACEOF 13196 $as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
25428 #define HAVE_WORKING_VFORK 1 13197
25429 _ACEOF 13198 else
25430 13199
25431 else 13200 $as_echo "#define vfork fork" >>confdefs.h
25432
25433 cat >>confdefs.h <<\_ACEOF
25434 #define vfork fork
25435 _ACEOF
25436 13201
25437 fi 13202 fi
25438 if test "x$ac_cv_func_fork_works" = xyes; then 13203 if test "x$ac_cv_func_fork_works" = xyes; then
25439 13204
25440 cat >>confdefs.h <<\_ACEOF 13205 $as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
25441 #define HAVE_WORKING_FORK 1 13206
25442 _ACEOF 13207 fi
25443 13208
25444 fi 13209
25445 13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
25446
25447 { $as_echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25448 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 13211 $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
25449 if test "${emacs_cv_langinfo_codeset+set}" = set; then 13212 if test "${emacs_cv_langinfo_codeset+set}" = set; then :
25450 $as_echo_n "(cached) " >&6 13213 $as_echo_n "(cached) " >&6
25451 else 13214 else
25452 cat >conftest.$ac_ext <<_ACEOF 13215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25453 /* confdefs.h. */
25454 _ACEOF
25455 cat confdefs.h >>conftest.$ac_ext
25456 cat >>conftest.$ac_ext <<_ACEOF
25457 /* end confdefs.h. */ 13216 /* end confdefs.h. */
25458 #include <langinfo.h> 13217 #include <langinfo.h>
25459 int 13218 int
25460 main () 13219 main ()
25461 { 13220 {
25462 char* cs = nl_langinfo(CODESET); 13221 char* cs = nl_langinfo(CODESET);
25463 ; 13222 ;
25464 return 0; 13223 return 0;
25465 } 13224 }
25466 _ACEOF 13225 _ACEOF
25467 rm -f conftest.$ac_objext conftest$ac_exeext 13226 if ac_fn_c_try_link "$LINENO"; then :
25468 if { (ac_try="$ac_link"
25469 case "(($ac_try" in
25470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25471 *) ac_try_echo=$ac_try;;
25472 esac
25473 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25474 $as_echo "$ac_try_echo") >&5
25475 (eval "$ac_link") 2>conftest.er1
25476 ac_status=$?
25477 grep -v '^ *+' conftest.er1 >conftest.err
25478 rm -f conftest.er1
25479 cat conftest.err >&5
25480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25481 (exit $ac_status); } && {
25482 test -z "$ac_c_werror_flag" ||
25483 test ! -s conftest.err
25484 } && test -s conftest$ac_exeext && {
25485 test "$cross_compiling" = yes ||
25486 $as_test_x conftest$ac_exeext
25487 }; then
25488 emacs_cv_langinfo_codeset=yes 13227 emacs_cv_langinfo_codeset=yes
25489 else 13228 else
25490 $as_echo "$as_me: failed program was:" >&5 13229 emacs_cv_langinfo_codeset=no
25491 sed 's/^/| /' conftest.$ac_ext >&5 13230 fi
25492 13231 rm -f core conftest.err conftest.$ac_objext \
25493 emacs_cv_langinfo_codeset=no 13232 conftest$ac_exeext conftest.$ac_ext
25494 fi 13233
25495 13234 fi
25496 rm -rf conftest.dSYM 13235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_langinfo_codeset" >&5
25497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
25498 conftest$ac_exeext conftest.$ac_ext
25499
25500 fi
25501 { $as_echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25502 $as_echo "$emacs_cv_langinfo_codeset" >&6; } 13236 $as_echo "$emacs_cv_langinfo_codeset" >&6; }
25503 if test $emacs_cv_langinfo_codeset = yes; then 13237 if test $emacs_cv_langinfo_codeset = yes; then
25504 13238
25505 cat >>confdefs.h <<\_ACEOF 13239 $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
25506 #define HAVE_LANGINFO_CODESET 1 13240
25507 _ACEOF 13241 fi
25508 13242
25509 fi 13243 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
25510 13244 if test "x$ac_cv_type_size_t" = x""yes; then :
25511 { $as_echo "$as_me:$LINENO: checking for size_t" >&5
25512 $as_echo_n "checking for size_t... " >&6; }
25513 if test "${ac_cv_type_size_t+set}" = set; then
25514 $as_echo_n "(cached) " >&6
25515 else
25516 ac_cv_type_size_t=no
25517 cat >conftest.$ac_ext <<_ACEOF
25518 /* confdefs.h. */
25519 _ACEOF
25520 cat confdefs.h >>conftest.$ac_ext
25521 cat >>conftest.$ac_ext <<_ACEOF
25522 /* end confdefs.h. */
25523 $ac_includes_default
25524 int
25525 main ()
25526 {
25527 if (sizeof (size_t))
25528 return 0;
25529 ;
25530 return 0;
25531 }
25532 _ACEOF
25533 rm -f conftest.$ac_objext
25534 if { (ac_try="$ac_compile"
25535 case "(($ac_try" in
25536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25537 *) ac_try_echo=$ac_try;;
25538 esac
25539 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25540 $as_echo "$ac_try_echo") >&5
25541 (eval "$ac_compile") 2>conftest.er1
25542 ac_status=$?
25543 grep -v '^ *+' conftest.er1 >conftest.err
25544 rm -f conftest.er1
25545 cat conftest.err >&5
25546 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25547 (exit $ac_status); } && {
25548 test -z "$ac_c_werror_flag" ||
25549 test ! -s conftest.err
25550 } && test -s conftest.$ac_objext; then
25551 cat >conftest.$ac_ext <<_ACEOF
25552 /* confdefs.h. */
25553 _ACEOF
25554 cat confdefs.h >>conftest.$ac_ext
25555 cat >>conftest.$ac_ext <<_ACEOF
25556 /* end confdefs.h. */
25557 $ac_includes_default
25558 int
25559 main ()
25560 {
25561 if (sizeof ((size_t)))
25562 return 0;
25563 ;
25564 return 0;
25565 }
25566 _ACEOF
25567 rm -f conftest.$ac_objext
25568 if { (ac_try="$ac_compile"
25569 case "(($ac_try" in
25570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25571 *) ac_try_echo=$ac_try;;
25572 esac
25573 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25574 $as_echo "$ac_try_echo") >&5
25575 (eval "$ac_compile") 2>conftest.er1
25576 ac_status=$?
25577 grep -v '^ *+' conftest.er1 >conftest.err
25578 rm -f conftest.er1
25579 cat conftest.err >&5
25580 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25581 (exit $ac_status); } && {
25582 test -z "$ac_c_werror_flag" ||
25583 test ! -s conftest.err
25584 } && test -s conftest.$ac_objext; then
25585 :
25586 else
25587 $as_echo "$as_me: failed program was:" >&5
25588 sed 's/^/| /' conftest.$ac_ext >&5
25589
25590 ac_cv_type_size_t=yes
25591 fi
25592
25593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25594 else
25595 $as_echo "$as_me: failed program was:" >&5
25596 sed 's/^/| /' conftest.$ac_ext >&5
25597
25598
25599 fi
25600
25601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25602 fi
25603 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25604 $as_echo "$ac_cv_type_size_t" >&6; }
25605 if test $ac_cv_type_size_t = yes; then
25606 13245
25607 cat >>confdefs.h <<_ACEOF 13246 cat >>confdefs.h <<_ACEOF
25608 #define HAVE_SIZE_T 1 13247 #define HAVE_SIZE_T 1
25609 _ACEOF 13248 _ACEOF
25610 13249
25611 13250
25612 fi 13251 fi
25613 13252
25614 13253
25615 { $as_echo "$as_me:$LINENO: checking for mbstate_t" >&5 13254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
25616 $as_echo_n "checking for mbstate_t... " >&6; } 13255 $as_echo_n "checking for mbstate_t... " >&6; }
25617 if test "${ac_cv_type_mbstate_t+set}" = set; then 13256 if test "${ac_cv_type_mbstate_t+set}" = set; then :
25618 $as_echo_n "(cached) " >&6 13257 $as_echo_n "(cached) " >&6
25619 else 13258 else
25620 cat >conftest.$ac_ext <<_ACEOF 13259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25621 /* confdefs.h. */
25622 _ACEOF
25623 cat confdefs.h >>conftest.$ac_ext
25624 cat >>conftest.$ac_ext <<_ACEOF
25625 /* end confdefs.h. */ 13260 /* end confdefs.h. */
25626 $ac_includes_default 13261 $ac_includes_default
25627 # include <wchar.h> 13262 # include <wchar.h>
25628 int 13263 int
25629 main () 13264 main ()
25631 mbstate_t x; return sizeof x; 13266 mbstate_t x; return sizeof x;
25632 ; 13267 ;
25633 return 0; 13268 return 0;
25634 } 13269 }
25635 _ACEOF 13270 _ACEOF
25636 rm -f conftest.$ac_objext 13271 if ac_fn_c_try_compile "$LINENO"; then :
25637 if { (ac_try="$ac_compile"
25638 case "(($ac_try" in
25639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25640 *) ac_try_echo=$ac_try;;
25641 esac
25642 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25643 $as_echo "$ac_try_echo") >&5
25644 (eval "$ac_compile") 2>conftest.er1
25645 ac_status=$?
25646 grep -v '^ *+' conftest.er1 >conftest.err
25647 rm -f conftest.er1
25648 cat conftest.err >&5
25649 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25650 (exit $ac_status); } && {
25651 test -z "$ac_c_werror_flag" ||
25652 test ! -s conftest.err
25653 } && test -s conftest.$ac_objext; then
25654 ac_cv_type_mbstate_t=yes 13272 ac_cv_type_mbstate_t=yes
25655 else 13273 else
25656 $as_echo "$as_me: failed program was:" >&5 13274 ac_cv_type_mbstate_t=no
25657 sed 's/^/| /' conftest.$ac_ext >&5 13275 fi
25658
25659 ac_cv_type_mbstate_t=no
25660 fi
25661
25662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25663 fi 13277 fi
25664 { $as_echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5 13278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
25665 $as_echo "$ac_cv_type_mbstate_t" >&6; } 13279 $as_echo "$ac_cv_type_mbstate_t" >&6; }
25666 if test $ac_cv_type_mbstate_t = yes; then 13280 if test $ac_cv_type_mbstate_t = yes; then
25667 13281
25668 cat >>confdefs.h <<\_ACEOF 13282 $as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
25669 #define HAVE_MBSTATE_T 1
25670 _ACEOF
25671 13283
25672 else 13284 else
25673 13285
25674 cat >>confdefs.h <<\_ACEOF 13286 $as_echo "#define mbstate_t int" >>confdefs.h
25675 #define mbstate_t int
25676 _ACEOF
25677 13287
25678 fi 13288 fi
25679 13289
25680 { $as_echo "$as_me:$LINENO: checking for C restrict keyword" >&5 13290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restrict keyword" >&5
25681 $as_echo_n "checking for C restrict keyword... " >&6; } 13291 $as_echo_n "checking for C restrict keyword... " >&6; }
25682 if test "${emacs_cv_c_restrict+set}" = set; then 13292 if test "${emacs_cv_c_restrict+set}" = set; then :
25683 $as_echo_n "(cached) " >&6 13293 $as_echo_n "(cached) " >&6
25684 else 13294 else
25685 cat >conftest.$ac_ext <<_ACEOF 13295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25686 /* confdefs.h. */
25687 _ACEOF
25688 cat confdefs.h >>conftest.$ac_ext
25689 cat >>conftest.$ac_ext <<_ACEOF
25690 /* end confdefs.h. */ 13296 /* end confdefs.h. */
25691 void fred (int *restrict x); 13297 void fred (int *restrict x);
25692 int 13298 int
25693 main () 13299 main ()
25694 { 13300 {
25695 13301
25696 ; 13302 ;
25697 return 0; 13303 return 0;
25698 } 13304 }
25699 _ACEOF 13305 _ACEOF
25700 rm -f conftest.$ac_objext 13306 if ac_fn_c_try_compile "$LINENO"; then :
25701 if { (ac_try="$ac_compile"
25702 case "(($ac_try" in
25703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25704 *) ac_try_echo=$ac_try;;
25705 esac
25706 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25707 $as_echo "$ac_try_echo") >&5
25708 (eval "$ac_compile") 2>conftest.er1
25709 ac_status=$?
25710 grep -v '^ *+' conftest.er1 >conftest.err
25711 rm -f conftest.er1
25712 cat conftest.err >&5
25713 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } && {
25715 test -z "$ac_c_werror_flag" ||
25716 test ! -s conftest.err
25717 } && test -s conftest.$ac_objext; then
25718 emacs_cv_c_restrict=yes 13307 emacs_cv_c_restrict=yes
25719 else 13308 else
25720 $as_echo "$as_me: failed program was:" >&5 13309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25721 sed 's/^/| /' conftest.$ac_ext >&5
25722
25723 cat >conftest.$ac_ext <<_ACEOF
25724 /* confdefs.h. */
25725 _ACEOF
25726 cat confdefs.h >>conftest.$ac_ext
25727 cat >>conftest.$ac_ext <<_ACEOF
25728 /* end confdefs.h. */ 13310 /* end confdefs.h. */
25729 void fred (int *__restrict x); 13311 void fred (int *__restrict x);
25730 int 13312 int
25731 main () 13313 main ()
25732 { 13314 {
25733 13315
25734 ; 13316 ;
25735 return 0; 13317 return 0;
25736 } 13318 }
25737 _ACEOF 13319 _ACEOF
25738 rm -f conftest.$ac_objext 13320 if ac_fn_c_try_compile "$LINENO"; then :
25739 if { (ac_try="$ac_compile"
25740 case "(($ac_try" in
25741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25742 *) ac_try_echo=$ac_try;;
25743 esac
25744 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25745 $as_echo "$ac_try_echo") >&5
25746 (eval "$ac_compile") 2>conftest.er1
25747 ac_status=$?
25748 grep -v '^ *+' conftest.er1 >conftest.err
25749 rm -f conftest.er1
25750 cat conftest.err >&5
25751 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25752 (exit $ac_status); } && {
25753 test -z "$ac_c_werror_flag" ||
25754 test ! -s conftest.err
25755 } && test -s conftest.$ac_objext; then
25756 emacs_cv_c_restrict=__restrict 13321 emacs_cv_c_restrict=__restrict
25757 else 13322 else
25758 $as_echo "$as_me: failed program was:" >&5 13323 emacs_cv_c_restrict=no
25759 sed 's/^/| /' conftest.$ac_ext >&5 13324 fi
25760
25761 emacs_cv_c_restrict=no
25762 fi
25763
25764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25765 fi 13326 fi
25766
25767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25768 fi 13328 fi
25769 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5 13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict" >&5
25770 $as_echo "$emacs_cv_c_restrict" >&6; } 13330 $as_echo "$emacs_cv_c_restrict" >&6; }
25771 case "$emacs_cv_c_restrict" in 13331 case "$emacs_cv_c_restrict" in
25772 yes) emacs_restrict=restrict;; 13332 yes) emacs_restrict=restrict;;
25773 no) emacs_restrict="";; 13333 no) emacs_restrict="";;
25774 *) emacs_restrict="$emacs_cv_c_restrict";; 13334 *) emacs_restrict="$emacs_cv_c_restrict";;
25779 #define __restrict $emacs_restrict 13339 #define __restrict $emacs_restrict
25780 _ACEOF 13340 _ACEOF
25781 13341
25782 fi 13342 fi
25783 13343
25784 { $as_echo "$as_me:$LINENO: checking for C restricted array declarations" >&5 13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C restricted array declarations" >&5
25785 $as_echo_n "checking for C restricted array declarations... " >&6; } 13345 $as_echo_n "checking for C restricted array declarations... " >&6; }
25786 if test "${emacs_cv_c_restrict_arr+set}" = set; then 13346 if test "${emacs_cv_c_restrict_arr+set}" = set; then :
25787 $as_echo_n "(cached) " >&6 13347 $as_echo_n "(cached) " >&6
25788 else 13348 else
25789 cat >conftest.$ac_ext <<_ACEOF 13349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25790 /* confdefs.h. */
25791 _ACEOF
25792 cat confdefs.h >>conftest.$ac_ext
25793 cat >>conftest.$ac_ext <<_ACEOF
25794 /* end confdefs.h. */ 13350 /* end confdefs.h. */
25795 void fred (int x[__restrict]); 13351 void fred (int x[__restrict]);
25796 int 13352 int
25797 main () 13353 main ()
25798 { 13354 {
25799 13355
25800 ; 13356 ;
25801 return 0; 13357 return 0;
25802 } 13358 }
25803 _ACEOF 13359 _ACEOF
25804 rm -f conftest.$ac_objext 13360 if ac_fn_c_try_compile "$LINENO"; then :
25805 if { (ac_try="$ac_compile"
25806 case "(($ac_try" in
25807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25808 *) ac_try_echo=$ac_try;;
25809 esac
25810 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
25811 $as_echo "$ac_try_echo") >&5
25812 (eval "$ac_compile") 2>conftest.er1
25813 ac_status=$?
25814 grep -v '^ *+' conftest.er1 >conftest.err
25815 rm -f conftest.er1
25816 cat conftest.err >&5
25817 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
25818 (exit $ac_status); } && {
25819 test -z "$ac_c_werror_flag" ||
25820 test ! -s conftest.err
25821 } && test -s conftest.$ac_objext; then
25822 emacs_cv_c_restrict_arr=yes 13361 emacs_cv_c_restrict_arr=yes
25823 else 13362 else
25824 $as_echo "$as_me: failed program was:" >&5 13363 emacs_cv_c_restrict_arr=no
25825 sed 's/^/| /' conftest.$ac_ext >&5 13364 fi
25826
25827 emacs_cv_c_restrict_arr=no
25828 fi
25829
25830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25831 fi 13366 fi
25832 { $as_echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5 13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $emacs_cv_c_restrict_arr" >&5
25833 $as_echo "$emacs_cv_c_restrict_arr" >&6; } 13368 $as_echo "$emacs_cv_c_restrict_arr" >&6; }
25834 if test "$emacs_cv_c_restrict_arr" = yes; then 13369 if test "$emacs_cv_c_restrict_arr" = yes; then
25835 13370
25836 cat >>confdefs.h <<\_ACEOF 13371 $as_echo "#define __restrict_arr __restrict" >>confdefs.h
25837 #define __restrict_arr __restrict
25838 _ACEOF
25839 13372
25840 fi 13373 fi
25841 13374
25842 13375
25843 13376
25847 13380
25848 #### Find out which version of Emacs this is. 13381 #### Find out which version of Emacs this is.
25849 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \ 13382 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25850 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'` 13383 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25851 if test x"${version}" = x; then 13384 if test x"${version}" = x; then
25852 { { $as_echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5 13385 as_fn_error "can't find current emacs version in \`${srcdir}/lisp/version.el'." "$LINENO" 5
25853 $as_echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25854 { (exit 1); exit 1; }; }
25855 fi 13386 fi
25856 if test x"${version}" != x"$PACKAGE_VERSION"; then 13387 if test x"${version}" != x"$PACKAGE_VERSION"; then
25857 { $as_echo "$as_me:$LINENO: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5 13388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&5
25858 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;} 13389 $as_echo "$as_me: WARNING: version mismatch between \`${srcdir}/configure.in' and \`${srcdir}/lisp/version.el'." >&2;}
25859 fi 13390 fi
25860 13391
25861 ### Specify what sort of things we'll be editing into Makefile and config.h. 13392 ### Specify what sort of things we'll be editing into Makefile and config.h.
25862 ### Use configuration here uncanonicalized to avoid exceeding size limits. 13393 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25902 13433
25903 13434
25904 13435
25905 13436
25906 13437
13438
25907 cat >>confdefs.h <<_ACEOF 13439 cat >>confdefs.h <<_ACEOF
25908 #define EMACS_CONFIGURATION "${canonical}" 13440 #define EMACS_CONFIGURATION "${canonical}"
25909 _ACEOF 13441 _ACEOF
25910 13442
25911 13443
25934 _ACEOF 13466 _ACEOF
25935 13467
25936 13468
25937 cat >>confdefs.h <<_ACEOF 13469 cat >>confdefs.h <<_ACEOF
25938 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE} 13470 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25939 _ACEOF
25940
25941
25942 cat >>confdefs.h <<_ACEOF
25943 #define UNEXEC_SRC ${UNEXEC_SRC}
25944 _ACEOF 13471 _ACEOF
25945 13472
25946 13473
25947 XMENU_OBJ= 13474 XMENU_OBJ=
25948 XOBJ= 13475 XOBJ=
25949 if test "${HAVE_X_WINDOWS}" = "yes" ; then 13476 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25950 13477
25951 cat >>confdefs.h <<\_ACEOF 13478 $as_echo "#define HAVE_X_WINDOWS 1" >>confdefs.h
25952 #define HAVE_X_WINDOWS 1
25953 _ACEOF
25954 13479
25955 XMENU_OBJ=xmenu.o 13480 XMENU_OBJ=xmenu.o
25956 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o" 13481 XOBJ="xterm.o xfns.o xselect.o xrdb.o fontset.o xsmfns.o fringe.o image.o xsettings.o xgselect.o"
25957 fi 13482 fi
25958 13483
25960 13485
25961 WIDGET_OBJ= 13486 WIDGET_OBJ=
25962 if test "${USE_X_TOOLKIT}" != "none" ; then 13487 if test "${USE_X_TOOLKIT}" != "none" ; then
25963 WIDGET_OBJ=widget.o 13488 WIDGET_OBJ=widget.o
25964 13489
25965 cat >>confdefs.h <<\_ACEOF 13490 $as_echo "#define USE_X_TOOLKIT 1" >>confdefs.h
25966 #define USE_X_TOOLKIT 1
25967 _ACEOF
25968 13491
25969 if test "${USE_X_TOOLKIT}" = "LUCID"; then 13492 if test "${USE_X_TOOLKIT}" = "LUCID"; then
25970 13493
25971 cat >>confdefs.h <<\_ACEOF 13494 $as_echo "#define USE_LUCID 1" >>confdefs.h
25972 #define USE_LUCID 1
25973 _ACEOF
25974 13495
25975 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then 13496 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
25976 13497
25977 cat >>confdefs.h <<\_ACEOF 13498 $as_echo "#define USE_MOTIF 1" >>confdefs.h
25978 #define USE_MOTIF 1
25979 _ACEOF
25980 13499
25981 fi 13500 fi
25982 fi 13501 fi
25983 13502
25984 if test "${HAVE_X11}" = "yes" ; then 13503 if test "${HAVE_X11}" = "yes" ; then
25985 13504
25986 cat >>confdefs.h <<\_ACEOF 13505 $as_echo "#define HAVE_X11 1" >>confdefs.h
25987 #define HAVE_X11 1
25988 _ACEOF
25989 13506
25990 fi 13507 fi
25991 if test "${HAVE_MENUS}" = "yes" ; then 13508 if test "${HAVE_MENUS}" = "yes" ; then
25992 13509
25993 cat >>confdefs.h <<\_ACEOF 13510 $as_echo "#define HAVE_MENUS 1" >>confdefs.h
25994 #define HAVE_MENUS 1
25995 _ACEOF
25996 13511
25997 fi 13512 fi
25998 if test "${GNU_MALLOC}" = "yes" ; then 13513 if test "${GNU_MALLOC}" = "yes" ; then
25999 13514
26000 cat >>confdefs.h <<\_ACEOF 13515 $as_echo "#define GNU_MALLOC 1" >>confdefs.h
26001 #define GNU_MALLOC 1
26002 _ACEOF
26003 13516
26004 fi 13517 fi
26005 if test "${REL_ALLOC}" = "yes" ; then 13518 if test "${REL_ALLOC}" = "yes" ; then
26006 13519
26007 cat >>confdefs.h <<\_ACEOF 13520 $as_echo "#define REL_ALLOC 1" >>confdefs.h
26008 #define REL_ALLOC 1 13521
26009 _ACEOF 13522 fi
26010
26011 fi
26012
26013
26014 13523
26015 13524
26016 13525
26017 13526
26018 #### Report on what we decided to do. 13527 #### Report on what we decided to do.
26114 ## Check if the C preprocessor will convert `..' to `. .'. If so, set 13623 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
26115 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile 13624 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
26116 ## from Makefile.c can correctly provide the arg `-traditional' to the 13625 ## from Makefile.c can correctly provide the arg `-traditional' to the
26117 ## C preprocessor. 13626 ## C preprocessor.
26118 13627
26119 cat >conftest.$ac_ext <<_ACEOF 13628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26120 /* confdefs.h. */
26121 _ACEOF
26122 cat confdefs.h >>conftest.$ac_ext
26123 cat >>conftest.$ac_ext <<_ACEOF
26124 /* end confdefs.h. */ 13629 /* end confdefs.h. */
26125 yes..yes 13630 yes..yes
26126 _ACEOF 13631 _ACEOF
26127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26128 $EGREP "yes..yes" >/dev/null 2>&1; then 13633 $EGREP "yes..yes" >/dev/null 2>&1; then :
26129 CPP_NEED_TRADITIONAL=no 13634 CPP_NEED_TRADITIONAL=no
26130 else 13635 else
26131 CPP_NEED_TRADITIONAL=yes 13636 CPP_NEED_TRADITIONAL=yes
26132 fi 13637 fi
26133 rm -f conftest* 13638 rm -f conftest*
26162 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13667 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26163 eval ac_val=\$$ac_var 13668 eval ac_val=\$$ac_var
26164 case $ac_val in #( 13669 case $ac_val in #(
26165 *${as_nl}*) 13670 *${as_nl}*)
26166 case $ac_var in #( 13671 case $ac_var in #(
26167 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 13672 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26168 $as_echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; 13673 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26169 esac 13674 esac
26170 case $ac_var in #( 13675 case $ac_var in #(
26171 _ | IFS | as_nl) ;; #( 13676 _ | IFS | as_nl) ;; #(
26172 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13677 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26173 *) $as_unset $ac_var ;; 13678 *) { eval $ac_var=; unset $ac_var;} ;;
26174 esac ;; 13679 esac ;;
26175 esac 13680 esac
26176 done 13681 done
26177 13682
26178 (set) 2>&1 | 13683 (set) 2>&1 |
26179 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13684 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26180 *${as_nl}ac_space=\ *) 13685 *${as_nl}ac_space=\ *)
26181 # `set' does not quote correctly, so add quotes (double-quote 13686 # `set' does not quote correctly, so add quotes: double-quote
26182 # substitution turns \\\\ into \\, and sed turns \\ into \). 13687 # substitution turns \\\\ into \\, and sed turns \\ into \.
26183 sed -n \ 13688 sed -n \
26184 "s/'/'\\\\''/g; 13689 "s/'/'\\\\''/g;
26185 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13690 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26186 ;; #( 13691 ;; #(
26187 *) 13692 *)
26200 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13705 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26201 :end' >>confcache 13706 :end' >>confcache
26202 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13707 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26203 if test -w "$cache_file"; then 13708 if test -w "$cache_file"; then
26204 test "x$cache_file" != "x/dev/null" && 13709 test "x$cache_file" != "x/dev/null" &&
26205 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5 13710 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26206 $as_echo "$as_me: updating cache $cache_file" >&6;} 13711 $as_echo "$as_me: updating cache $cache_file" >&6;}
26207 cat confcache >$cache_file 13712 cat confcache >$cache_file
26208 else 13713 else
26209 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 13714 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26210 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13715 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26211 fi 13716 fi
26212 fi 13717 fi
26213 rm -f confcache 13718 rm -f confcache
26214 13719
26224 # 1. Remove the extension, and $U if already installed. 13729 # 1. Remove the extension, and $U if already installed.
26225 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13730 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26226 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13731 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26227 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13732 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26228 # will be set to the directory where LIBOBJS objects are built. 13733 # will be set to the directory where LIBOBJS objects are built.
26229 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13734 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26230 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' 13735 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26231 done 13736 done
26232 LIBOBJS=$ac_libobjs 13737 LIBOBJS=$ac_libobjs
26233 13738
26234 LTLIBOBJS=$ac_ltlibobjs 13739 LTLIBOBJS=$ac_ltlibobjs
26235 13740
26237 13742
26238 : ${CONFIG_STATUS=./config.status} 13743 : ${CONFIG_STATUS=./config.status}
26239 ac_write_fail=0 13744 ac_write_fail=0
26240 ac_clean_files_save=$ac_clean_files 13745 ac_clean_files_save=$ac_clean_files
26241 ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13746 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26242 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 13747 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26243 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13748 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26244 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13749 as_write_fail=0
13750 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26245 #! $SHELL 13751 #! $SHELL
26246 # Generated by $as_me. 13752 # Generated by $as_me.
26247 # Run this file to recreate the current configuration. 13753 # Run this file to recreate the current configuration.
26248 # Compiler output produced by configure, useful for debugging 13754 # Compiler output produced by configure, useful for debugging
26249 # configure, is in config.log if it exists. 13755 # configure, is in config.log if it exists.
26250 13756
26251 debug=false 13757 debug=false
26252 ac_cs_recheck=false 13758 ac_cs_recheck=false
26253 ac_cs_silent=false 13759 ac_cs_silent=false
13760
26254 SHELL=\${CONFIG_SHELL-$SHELL} 13761 SHELL=\${CONFIG_SHELL-$SHELL}
26255 _ACEOF 13762 export SHELL
26256 13763 _ASEOF
26257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13764 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26258 ## --------------------- ## 13765 ## -------------------- ##
26259 ## M4sh Initialization. ## 13766 ## M4sh Initialization. ##
26260 ## --------------------- ## 13767 ## -------------------- ##
26261 13768
26262 # Be more Bourne compatible 13769 # Be more Bourne compatible
26263 DUALCASE=1; export DUALCASE # for MKS sh 13770 DUALCASE=1; export DUALCASE # for MKS sh
26264 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 13771 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26265 emulate sh 13772 emulate sh
26266 NULLCMD=: 13773 NULLCMD=:
26267 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13774 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26268 # is contrary to our usage. Disable this feature. 13775 # is contrary to our usage. Disable this feature.
26269 alias -g '${1+"$@"}'='"$@"' 13776 alias -g '${1+"$@"}'='"$@"'
26270 setopt NO_GLOB_SUBST 13777 setopt NO_GLOB_SUBST
26271 else 13778 else
26272 case `(set -o) 2>/dev/null` in 13779 case `(set -o) 2>/dev/null` in #(
26273 *posix*) set -o posix ;; 13780 *posix*) :
13781 set -o posix ;; #(
13782 *) :
13783 ;;
26274 esac 13784 esac
26275 13785 fi
26276 fi 13786
26277
26278
26279
26280
26281 # PATH needs CR
26282 # Avoid depending upon Character Ranges.
26283 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26284 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26285 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26286 as_cr_digits='0123456789'
26287 as_cr_alnum=$as_cr_Letters$as_cr_digits
26288 13787
26289 as_nl=' 13788 as_nl='
26290 ' 13789 '
26291 export as_nl 13790 export as_nl
26292 # Printing a long string crashes Solaris 7 /usr/bin/printf. 13791 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26293 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13792 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26294 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13793 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26295 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13794 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26296 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13795 # Prefer a ksh shell builtin over an external printf program on Solaris,
13796 # but without wasting forks for bash or zsh.
13797 if test -z "$BASH_VERSION$ZSH_VERSION" \
13798 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
13799 as_echo='print -r --'
13800 as_echo_n='print -rn --'
13801 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26297 as_echo='printf %s\n' 13802 as_echo='printf %s\n'
26298 as_echo_n='printf %s' 13803 as_echo_n='printf %s'
26299 else 13804 else
26300 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13805 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26301 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13806 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26302 as_echo_n='/usr/ucb/echo -n' 13807 as_echo_n='/usr/ucb/echo -n'
26303 else 13808 else
26304 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13809 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26305 as_echo_n_body='eval 13810 as_echo_n_body='eval
26306 arg=$1; 13811 arg=$1;
26307 case $arg in 13812 case $arg in #(
26308 *"$as_nl"*) 13813 *"$as_nl"*)
26309 expr "X$arg" : "X\\(.*\\)$as_nl"; 13814 expr "X$arg" : "X\\(.*\\)$as_nl";
26310 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13815 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26311 esac; 13816 esac;
26312 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13817 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26325 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13830 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26326 PATH_SEPARATOR=';' 13831 PATH_SEPARATOR=';'
26327 } 13832 }
26328 fi 13833 fi
26329 13834
26330 # Support unset when possible.
26331 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26332 as_unset=unset
26333 else
26334 as_unset=false
26335 fi
26336
26337 13835
26338 # IFS 13836 # IFS
26339 # We need space, tab and new line, in precisely that order. Quoting is 13837 # We need space, tab and new line, in precisely that order. Quoting is
26340 # there to prevent editors from complaining about space-tab. 13838 # there to prevent editors from complaining about space-tab.
26341 # (If _AS_PATH_WALK were called with IFS unset, it would disable word 13839 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26342 # splitting by setting IFS to empty value.) 13840 # splitting by setting IFS to empty value.)
26343 IFS=" "" $as_nl" 13841 IFS=" "" $as_nl"
26344 13842
26345 # Find who we are. Look in the path if we contain no directory separator. 13843 # Find who we are. Look in the path if we contain no directory separator.
26346 case $0 in 13844 case $0 in #((
26347 *[\\/]* ) as_myself=$0 ;; 13845 *[\\/]* ) as_myself=$0 ;;
26348 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13846 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26349 for as_dir in $PATH 13847 for as_dir in $PATH
26350 do 13848 do
26351 IFS=$as_save_IFS 13849 IFS=$as_save_IFS
26352 test -z "$as_dir" && as_dir=. 13850 test -z "$as_dir" && as_dir=.
26353 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13851 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26354 done 13852 done
26355 IFS=$as_save_IFS 13853 IFS=$as_save_IFS
26356 13854
26357 ;; 13855 ;;
26358 esac 13856 esac
26359 # We did not find ourselves, most probably we were run as `sh COMMAND' 13857 # We did not find ourselves, most probably we were run as `sh COMMAND'
26361 if test "x$as_myself" = x; then 13859 if test "x$as_myself" = x; then
26362 as_myself=$0 13860 as_myself=$0
26363 fi 13861 fi
26364 if test ! -f "$as_myself"; then 13862 if test ! -f "$as_myself"; then
26365 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13863 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26366 { (exit 1); exit 1; } 13864 exit 1
26367 fi 13865 fi
26368 13866
26369 # Work around bugs in pre-3.0 UWIN ksh. 13867 # Unset variables that we do not need and which cause bugs (e.g. in
26370 for as_var in ENV MAIL MAILPATH 13868 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26371 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var 13869 # suppresses any "Segmentation fault" message there. '((' could
13870 # trigger a bug in pdksh 5.2.14.
13871 for as_var in BASH_ENV ENV MAIL MAILPATH
13872 do eval test x\${$as_var+set} = xset \
13873 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26372 done 13874 done
26373 PS1='$ ' 13875 PS1='$ '
26374 PS2='> ' 13876 PS2='> '
26375 PS4='+ ' 13877 PS4='+ '
26376 13878
26378 LC_ALL=C 13880 LC_ALL=C
26379 export LC_ALL 13881 export LC_ALL
26380 LANGUAGE=C 13882 LANGUAGE=C
26381 export LANGUAGE 13883 export LANGUAGE
26382 13884
26383 # Required to use basename. 13885 # CDPATH.
13886 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
13887
13888
13889 # as_fn_error ERROR [LINENO LOG_FD]
13890 # ---------------------------------
13891 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
13892 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
13893 # script with status $?, using 1 if that was 0.
13894 as_fn_error ()
13895 {
13896 as_status=$?; test $as_status -eq 0 && as_status=1
13897 if test "$3"; then
13898 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
13899 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
13900 fi
13901 $as_echo "$as_me: error: $1" >&2
13902 as_fn_exit $as_status
13903 } # as_fn_error
13904
13905
13906 # as_fn_set_status STATUS
13907 # -----------------------
13908 # Set $? to STATUS, without forking.
13909 as_fn_set_status ()
13910 {
13911 return $1
13912 } # as_fn_set_status
13913
13914 # as_fn_exit STATUS
13915 # -----------------
13916 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
13917 as_fn_exit ()
13918 {
13919 set +e
13920 as_fn_set_status $1
13921 exit $1
13922 } # as_fn_exit
13923
13924 # as_fn_unset VAR
13925 # ---------------
13926 # Portably unset VAR.
13927 as_fn_unset ()
13928 {
13929 { eval $1=; unset $1;}
13930 }
13931 as_unset=as_fn_unset
13932 # as_fn_append VAR VALUE
13933 # ----------------------
13934 # Append the text in VALUE to the end of the definition contained in VAR. Take
13935 # advantage of any shell optimizations that allow amortized linear growth over
13936 # repeated appends, instead of the typical quadratic growth present in naive
13937 # implementations.
13938 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
13939 eval 'as_fn_append ()
13940 {
13941 eval $1+=\$2
13942 }'
13943 else
13944 as_fn_append ()
13945 {
13946 eval $1=\$$1\$2
13947 }
13948 fi # as_fn_append
13949
13950 # as_fn_arith ARG...
13951 # ------------------
13952 # Perform arithmetic evaluation on the ARGs, and store the result in the
13953 # global $as_val. Take advantage of shells that can avoid forks. The arguments
13954 # must be portable across $(()) and expr.
13955 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
13956 eval 'as_fn_arith ()
13957 {
13958 as_val=$(( $* ))
13959 }'
13960 else
13961 as_fn_arith ()
13962 {
13963 as_val=`expr "$@" || test $? -eq 1`
13964 }
13965 fi # as_fn_arith
13966
13967
26384 if expr a : '\(a\)' >/dev/null 2>&1 && 13968 if expr a : '\(a\)' >/dev/null 2>&1 &&
26385 test "X`expr 00001 : '.*\(...\)'`" = X001; then 13969 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26386 as_expr=expr 13970 as_expr=expr
26387 else 13971 else
26388 as_expr=false 13972 as_expr=false
26392 as_basename=basename 13976 as_basename=basename
26393 else 13977 else
26394 as_basename=false 13978 as_basename=false
26395 fi 13979 fi
26396 13980
26397 13981 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26398 # Name of the executable. 13982 as_dirname=dirname
13983 else
13984 as_dirname=false
13985 fi
13986
26399 as_me=`$as_basename -- "$0" || 13987 as_me=`$as_basename -- "$0" ||
26400 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 13988 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26401 X"$0" : 'X\(//\)$' \| \ 13989 X"$0" : 'X\(//\)$' \| \
26402 X"$0" : 'X\(/\)' \| . 2>/dev/null || 13990 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26403 $as_echo X/"$0" | 13991 $as_echo X/"$0" |
26413 s//\1/ 14001 s//\1/
26414 q 14002 q
26415 } 14003 }
26416 s/.*/./; q'` 14004 s/.*/./; q'`
26417 14005
26418 # CDPATH. 14006 # Avoid depending upon Character Ranges.
26419 $as_unset CDPATH 14007 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26420 14008 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26421 14009 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26422 14010 as_cr_digits='0123456789'
26423 as_lineno_1=$LINENO 14011 as_cr_alnum=$as_cr_Letters$as_cr_digits
26424 as_lineno_2=$LINENO
26425 test "x$as_lineno_1" != "x$as_lineno_2" &&
26426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26427
26428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26429 # uniformly replaced by the line number. The first 'sed' inserts a
26430 # line-number line after each line using $LINENO; the second 'sed'
26431 # does the real work. The second script uses 'N' to pair each
26432 # line-number line with the line containing $LINENO, and appends
26433 # trailing '-' during substitution so that $LINENO is not a special
26434 # case at line end.
26435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26436 # scripts with optimization help from Paolo Bonzini. Blame Lee
26437 # E. McMahon (1931-1989) for sed's syntax. :-)
26438 sed -n '
26439 p
26440 /[$]LINENO/=
26441 ' <$as_myself |
26442 sed '
26443 s/[$]LINENO.*/&-/
26444 t lineno
26445 b
26446 :lineno
26447 N
26448 :loop
26449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26450 t loop
26451 s/-\n.*//
26452 ' >$as_me.lineno &&
26453 chmod +x "$as_me.lineno" ||
26454 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26455 { (exit 1); exit 1; }; }
26456
26457 # Don't try to exec as it changes $[0], causing all sort of problems
26458 # (the dirname of $[0] is not the place where we might find the
26459 # original and so on. Autoconf is especially sensitive to this).
26460 . "./$as_me.lineno"
26461 # Exit status is that of the last command.
26462 exit
26463 }
26464
26465
26466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26467 as_dirname=dirname
26468 else
26469 as_dirname=false
26470 fi
26471 14012
26472 ECHO_C= ECHO_N= ECHO_T= 14013 ECHO_C= ECHO_N= ECHO_T=
26473 case `echo -n x` in 14014 case `echo -n x` in #(((((
26474 -n*) 14015 -n*)
26475 case `echo 'x\c'` in 14016 case `echo 'xy\c'` in
26476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14017 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26477 *) ECHO_C='\c';; 14018 xy) ECHO_C='\c';;
14019 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
14020 ECHO_T=' ';;
26478 esac;; 14021 esac;;
26479 *) 14022 *)
26480 ECHO_N='-n';; 14023 ECHO_N='-n';;
26481 esac 14024 esac
26482 if expr a : '\(a\)' >/dev/null 2>&1 &&
26483 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26484 as_expr=expr
26485 else
26486 as_expr=false
26487 fi
26488 14025
26489 rm -f conf$$ conf$$.exe conf$$.file 14026 rm -f conf$$ conf$$.exe conf$$.file
26490 if test -d conf$$.dir; then 14027 if test -d conf$$.dir; then
26491 rm -f conf$$.dir/conf$$.file 14028 rm -f conf$$.dir/conf$$.file
26492 else 14029 else
26511 as_ln_s='cp -p' 14048 as_ln_s='cp -p'
26512 fi 14049 fi
26513 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14050 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26514 rmdir conf$$.dir 2>/dev/null 14051 rmdir conf$$.dir 2>/dev/null
26515 14052
14053
14054 # as_fn_mkdir_p
14055 # -------------
14056 # Create "$as_dir" as a directory, including parents if necessary.
14057 as_fn_mkdir_p ()
14058 {
14059
14060 case $as_dir in #(
14061 -*) as_dir=./$as_dir;;
14062 esac
14063 test -d "$as_dir" || eval $as_mkdir_p || {
14064 as_dirs=
14065 while :; do
14066 case $as_dir in #(
14067 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
14068 *) as_qdir=$as_dir;;
14069 esac
14070 as_dirs="'$as_qdir' $as_dirs"
14071 as_dir=`$as_dirname -- "$as_dir" ||
14072 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
14073 X"$as_dir" : 'X\(//\)[^/]' \| \
14074 X"$as_dir" : 'X\(//\)$' \| \
14075 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
14076 $as_echo X"$as_dir" |
14077 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
14078 s//\1/
14079 q
14080 }
14081 /^X\(\/\/\)[^/].*/{
14082 s//\1/
14083 q
14084 }
14085 /^X\(\/\/\)$/{
14086 s//\1/
14087 q
14088 }
14089 /^X\(\/\).*/{
14090 s//\1/
14091 q
14092 }
14093 s/.*/./; q'`
14094 test -d "$as_dir" && break
14095 done
14096 test -z "$as_dirs" || eval "mkdir $as_dirs"
14097 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
14098
14099
14100 } # as_fn_mkdir_p
26516 if mkdir -p . 2>/dev/null; then 14101 if mkdir -p . 2>/dev/null; then
26517 as_mkdir_p=: 14102 as_mkdir_p='mkdir -p "$as_dir"'
26518 else 14103 else
26519 test -d ./-p && rmdir ./-p 14104 test -d ./-p && rmdir ./-p
26520 as_mkdir_p=false 14105 as_mkdir_p=false
26521 fi 14106 fi
26522 14107
26531 as_test_x=' 14116 as_test_x='
26532 eval sh -c '\'' 14117 eval sh -c '\''
26533 if test -d "$1"; then 14118 if test -d "$1"; then
26534 test -d "$1/."; 14119 test -d "$1/.";
26535 else 14120 else
26536 case $1 in 14121 case $1 in #(
26537 -*)set "./$1";; 14122 -*)set "./$1";;
26538 esac; 14123 esac;
26539 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in 14124 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26540 ???[sx]*):;;*)false;;esac;fi 14125 ???[sx]*):;;*)false;;esac;fi
26541 '\'' sh 14126 '\'' sh
26542 ' 14127 '
26543 fi 14128 fi
26544 as_executable_p=$as_test_x 14129 as_executable_p=$as_test_x
26549 # Sed expression to map a string onto a valid variable name. 14134 # Sed expression to map a string onto a valid variable name.
26550 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14135 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26551 14136
26552 14137
26553 exec 6>&1 14138 exec 6>&1
26554 14139 ## ----------------------------------- ##
26555 # Save the log message, to keep $[0] and so on meaningful, and to 14140 ## Main body of $CONFIG_STATUS script. ##
14141 ## ----------------------------------- ##
14142 _ASEOF
14143 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
14144
14145 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
14146 # Save the log message, to keep $0 and so on meaningful, and to
26556 # report actual input values of CONFIG_FILES etc. instead of their 14147 # report actual input values of CONFIG_FILES etc. instead of their
26557 # values after options handling. 14148 # values after options handling.
26558 ac_log=" 14149 ac_log="
26559 This file was extended by emacs $as_me 24.0.50, which was 14150 This file was extended by emacs $as_me 24.0.50, which was
26560 generated by GNU Autoconf 2.62. Invocation command line was 14151 generated by GNU Autoconf 2.65. Invocation command line was
26561 14152
26562 CONFIG_FILES = $CONFIG_FILES 14153 CONFIG_FILES = $CONFIG_FILES
26563 CONFIG_HEADERS = $CONFIG_HEADERS 14154 CONFIG_HEADERS = $CONFIG_HEADERS
26564 CONFIG_LINKS = $CONFIG_LINKS 14155 CONFIG_LINKS = $CONFIG_LINKS
26565 CONFIG_COMMANDS = $CONFIG_COMMANDS 14156 CONFIG_COMMANDS = $CONFIG_COMMANDS
26568 on `(hostname || uname -n) 2>/dev/null | sed 1q` 14159 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26569 " 14160 "
26570 14161
26571 _ACEOF 14162 _ACEOF
26572 14163
14164 case $ac_config_files in *"
14165 "*) set x $ac_config_files; shift; ac_config_files=$*;;
14166 esac
14167
14168 case $ac_config_headers in *"
14169 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
14170 esac
14171
14172
26573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14173 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26574 # Files that config.status was made for. 14174 # Files that config.status was made for.
26575 config_files="$ac_config_files" 14175 config_files="$ac_config_files"
26576 config_headers="$ac_config_headers" 14176 config_headers="$ac_config_headers"
26577 config_commands="$ac_config_commands" 14177 config_commands="$ac_config_commands"
26578 14178
26579 _ACEOF 14179 _ACEOF
26580 14180
26581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14181 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26582 ac_cs_usage="\ 14182 ac_cs_usage="\
26583 \`$as_me' instantiates files from templates according to the 14183 \`$as_me' instantiates files and other configuration actions
26584 current configuration. 14184 from templates according to the current configuration. Unless the files
26585 14185 and actions are specified as TAGs, all are instantiated by default.
26586 Usage: $0 [OPTIONS] [FILE]... 14186
14187 Usage: $0 [OPTION]... [TAG]...
26587 14188
26588 -h, --help print this help, then exit 14189 -h, --help print this help, then exit
26589 -V, --version print version number and configuration settings, then exit 14190 -V, --version print version number and configuration settings, then exit
26590 -q, --quiet do not print progress messages 14191 --config print configuration, then exit
14192 -q, --quiet, --silent
14193 do not print progress messages
26591 -d, --debug don't remove temporary files 14194 -d, --debug don't remove temporary files
26592 --recheck update $as_me by reconfiguring in the same conditions 14195 --recheck update $as_me by reconfiguring in the same conditions
26593 --file=FILE[:TEMPLATE] 14196 --file=FILE[:TEMPLATE]
26594 instantiate the configuration file FILE 14197 instantiate the configuration file FILE
26595 --header=FILE[:TEMPLATE] 14198 --header=FILE[:TEMPLATE]
26596 instantiate the configuration header FILE 14199 instantiate the configuration header FILE
26597 14200
26598 Configuration files: 14201 Configuration files:
26599 $config_files 14202 $config_files
26600 14203
26602 $config_headers 14205 $config_headers
26603 14206
26604 Configuration commands: 14207 Configuration commands:
26605 $config_commands 14208 $config_commands
26606 14209
26607 Report bugs to <bug-autoconf@gnu.org>." 14210 Report bugs to the package provider."
26608 14211
26609 _ACEOF 14212 _ACEOF
26610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
14214 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
26611 ac_cs_version="\\ 14215 ac_cs_version="\\
26612 emacs config.status 24.0.50 14216 emacs config.status 24.0.50
26613 configured by $0, generated by GNU Autoconf 2.62, 14217 configured by $0, generated by GNU Autoconf 2.65,
26614 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 14218 with options \\"\$ac_cs_config\\"
26615 14219
26616 Copyright (C) 2008 Free Software Foundation, Inc. 14220 Copyright (C) 2009 Free Software Foundation, Inc.
26617 This config.status script is free software; the Free Software Foundation 14221 This config.status script is free software; the Free Software Foundation
26618 gives unlimited permission to copy, distribute and modify it." 14222 gives unlimited permission to copy, distribute and modify it."
26619 14223
26620 ac_pwd='$ac_pwd' 14224 ac_pwd='$ac_pwd'
26621 srcdir='$srcdir' 14225 srcdir='$srcdir'
26645 # Handling of the options. 14249 # Handling of the options.
26646 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14250 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26647 ac_cs_recheck=: ;; 14251 ac_cs_recheck=: ;;
26648 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14252 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26649 $as_echo "$ac_cs_version"; exit ;; 14253 $as_echo "$ac_cs_version"; exit ;;
14254 --config | --confi | --conf | --con | --co | --c )
14255 $as_echo "$ac_cs_config"; exit ;;
26650 --debug | --debu | --deb | --de | --d | -d ) 14256 --debug | --debu | --deb | --de | --d | -d )
26651 debug=: ;; 14257 debug=: ;;
26652 --file | --fil | --fi | --f ) 14258 --file | --fil | --fi | --f )
26653 $ac_shift 14259 $ac_shift
26654 case $ac_optarg in 14260 case $ac_optarg in
26655 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14261 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26656 esac 14262 esac
26657 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'" 14263 as_fn_append CONFIG_FILES " '$ac_optarg'"
26658 ac_need_defaults=false;; 14264 ac_need_defaults=false;;
26659 --header | --heade | --head | --hea ) 14265 --header | --heade | --head | --hea )
26660 $ac_shift 14266 $ac_shift
26661 case $ac_optarg in 14267 case $ac_optarg in
26662 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14268 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26663 esac 14269 esac
26664 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'" 14270 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26665 ac_need_defaults=false;; 14271 ac_need_defaults=false;;
26666 --he | --h) 14272 --he | --h)
26667 # Conflict between --help and --header 14273 # Conflict between --help and --header
26668 { $as_echo "$as_me: error: ambiguous option: $1 14274 as_fn_error "ambiguous option: \`$1'
26669 Try \`$0 --help' for more information." >&2 14275 Try \`$0 --help' for more information.";;
26670 { (exit 1); exit 1; }; };;
26671 --help | --hel | -h ) 14276 --help | --hel | -h )
26672 $as_echo "$ac_cs_usage"; exit ;; 14277 $as_echo "$ac_cs_usage"; exit ;;
26673 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14278 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26674 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14279 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26675 ac_cs_silent=: ;; 14280 ac_cs_silent=: ;;
26676 14281
26677 # This is an error. 14282 # This is an error.
26678 -*) { $as_echo "$as_me: error: unrecognized option: $1 14283 -*) as_fn_error "unrecognized option: \`$1'
26679 Try \`$0 --help' for more information." >&2 14284 Try \`$0 --help' for more information." ;;
26680 { (exit 1); exit 1; }; } ;; 14285
26681 14286 *) as_fn_append ac_config_targets " $1"
26682 *) ac_config_targets="$ac_config_targets $1"
26683 ac_need_defaults=false ;; 14287 ac_need_defaults=false ;;
26684 14288
26685 esac 14289 esac
26686 shift 14290 shift
26687 done 14291 done
26742 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;; 14346 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26743 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;; 14347 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26744 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;; 14348 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26745 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; 14349 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26746 14350
26747 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 14351 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
26748 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26749 { (exit 1); exit 1; }; };;
26750 esac 14352 esac
26751 done 14353 done
26752 14354
26753 14355
26754 # If the user did not use the arguments to specify the items to instantiate, 14356 # If the user did not use the arguments to specify the items to instantiate,
26771 { 14373 {
26772 tmp= 14374 tmp=
26773 trap 'exit_status=$? 14375 trap 'exit_status=$?
26774 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 14376 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26775 ' 0 14377 ' 0
26776 trap '{ (exit 1); exit 1; }' 1 2 13 15 14378 trap 'as_fn_exit 1' 1 2 13 15
26777 } 14379 }
26778 # Create a (secure) tmp directory for tmp files. 14380 # Create a (secure) tmp directory for tmp files.
26779 14381
26780 { 14382 {
26781 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14383 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26782 test -n "$tmp" && test -d "$tmp" 14384 test -n "$tmp" && test -d "$tmp"
26783 } || 14385 } ||
26784 { 14386 {
26785 tmp=./conf$$-$RANDOM 14387 tmp=./conf$$-$RANDOM
26786 (umask 077 && mkdir "$tmp") 14388 (umask 077 && mkdir "$tmp")
26787 } || 14389 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
26788 {
26789 $as_echo "$as_me: cannot create a temporary directory in ." >&2
26790 { (exit 1); exit 1; }
26791 }
26792 14390
26793 # Set up the scripts for CONFIG_FILES section. 14391 # Set up the scripts for CONFIG_FILES section.
26794 # No need to generate them if there are no CONFIG_FILES. 14392 # No need to generate them if there are no CONFIG_FILES.
26795 # This happens for instance with `./config.status config.h'. 14393 # This happens for instance with `./config.status config.h'.
26796 if test -n "$CONFIG_FILES"; then 14394 if test -n "$CONFIG_FILES"; then
26797 14395
26798 14396
26799 ac_cr=' 14397 ac_cr=`echo X | tr X '\015'`
26800 ' 14398 # On cygwin, bash can eat \r inside `` if the user requested igncr.
14399 # But we know of no other shell where ac_cr would be empty at this
14400 # point, so we can use a bashism as a fallback.
14401 if test "x$ac_cr" = x; then
14402 eval ac_cr=\$\'\\r\'
14403 fi
26801 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14404 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
26802 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14405 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
26803 ac_cs_awk_cr='\\r' 14406 ac_cs_awk_cr='\r'
26804 else 14407 else
26805 ac_cs_awk_cr=$ac_cr 14408 ac_cs_awk_cr=$ac_cr
26806 fi 14409 fi
26807 14410
26808 echo 'BEGIN {' >"$tmp/subs1.awk" && 14411 echo 'BEGIN {' >"$tmp/subs1.awk" &&
26812 { 14415 {
26813 echo "cat >conf$$subs.awk <<_ACEOF" && 14416 echo "cat >conf$$subs.awk <<_ACEOF" &&
26814 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14417 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
26815 echo "_ACEOF" 14418 echo "_ACEOF"
26816 } >conf$$subs.sh || 14419 } >conf$$subs.sh ||
26817 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14420 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26818 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26819 { (exit 1); exit 1; }; }
26820 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 14421 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
26821 ac_delim='%!_!# ' 14422 ac_delim='%!_!# '
26822 for ac_last_try in false false false false false :; do 14423 for ac_last_try in false false false false false :; do
26823 . ./conf$$subs.sh || 14424 . ./conf$$subs.sh ||
26824 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14425 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26825 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} 14426
26826 { (exit 1); exit 1; }; } 14427 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
26827 14428 if test $ac_delim_n = $ac_delim_num; then
26828 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` = $ac_delim_num; then
26829 break 14429 break
26830 elif $ac_last_try; then 14430 elif $ac_last_try; then
26831 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 14431 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
26832 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26833 { (exit 1); exit 1; }; }
26834 else 14432 else
26835 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14433 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26836 fi 14434 fi
26837 done 14435 done
26838 rm -f conf$$subs.sh 14436 rm -f conf$$subs.sh
26850 t repl 14448 t repl
26851 s/'"$ac_delim"'$// 14449 s/'"$ac_delim"'$//
26852 t delim 14450 t delim
26853 :nl 14451 :nl
26854 h 14452 h
26855 s/\(.\{148\}\).*/\1/ 14453 s/\(.\{148\}\)..*/\1/
26856 t more1 14454 t more1
26857 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14455 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
26858 p 14456 p
26859 n 14457 n
26860 b repl 14458 b repl
26864 g 14462 g
26865 s/.\{148\}// 14463 s/.\{148\}//
26866 t nl 14464 t nl
26867 :delim 14465 :delim
26868 h 14466 h
26869 s/\(.\{148\}\).*/\1/ 14467 s/\(.\{148\}\)..*/\1/
26870 t more2 14468 t more2
26871 s/["\\]/\\&/g; s/^/"/; s/$/"/ 14469 s/["\\]/\\&/g; s/^/"/; s/$/"/
26872 p 14470 p
26873 b 14471 b
26874 :more2 14472 :more2
26917 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14515 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26918 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14516 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26919 else 14517 else
26920 cat 14518 cat
26921 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 14519 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26922 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5 14520 || as_fn_error "could not setup config files machinery" "$LINENO" 5
26923 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
26924 { (exit 1); exit 1; }; }
26925 _ACEOF 14521 _ACEOF
26926 14522
26927 # VPATH may cause trouble with some makes, so we remove $(srcdir), 14523 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26928 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 14524 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26929 # trailing colons and then remove the whole line if VPATH becomes empty 14525 # trailing colons and then remove the whole line if VPATH becomes empty
26960 for ac_last_try in false false :; do 14556 for ac_last_try in false false :; do
26961 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 14557 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26962 if test -z "$ac_t"; then 14558 if test -z "$ac_t"; then
26963 break 14559 break
26964 elif $ac_last_try; then 14560 elif $ac_last_try; then
26965 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5 14561 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26966 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
26967 { (exit 1); exit 1; }; }
26968 else 14562 else
26969 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14563 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26970 fi 14564 fi
26971 done 14565 done
26972 14566
27028 defundef = substr(arg[1], 2) 14622 defundef = substr(arg[1], 2)
27029 mac1 = arg[2] 14623 mac1 = arg[2]
27030 } 14624 }
27031 split(mac1, mac2, "(") #) 14625 split(mac1, mac2, "(") #)
27032 macro = mac2[1] 14626 macro = mac2[1]
14627 prefix = substr(line, 1, index(line, defundef) - 1)
27033 if (D_is_set[macro]) { 14628 if (D_is_set[macro]) {
27034 # Preserve the white space surrounding the "#". 14629 # Preserve the white space surrounding the "#".
27035 prefix = substr(line, 1, index(line, defundef) - 1)
27036 print prefix "define", macro P[macro] D[macro] 14630 print prefix "define", macro P[macro] D[macro]
27037 next 14631 next
27038 } else { 14632 } else {
27039 # Replace #undef with comments. This is necessary, for example, 14633 # Replace #undef with comments. This is necessary, for example,
27040 # in the case of _POSIX_SOURCE, which is predefined and required 14634 # in the case of _POSIX_SOURCE, which is predefined and required
27041 # on some systems where configure will not decide to define it. 14635 # on some systems where configure will not decide to define it.
27042 if (defundef == "undef") { 14636 if (defundef == "undef") {
27043 print "/*", line, "*/" 14637 print "/*", prefix defundef, macro, "*/"
27044 next 14638 next
27045 } 14639 }
27046 } 14640 }
27047 } 14641 }
27048 { print } 14642 { print }
27049 _ACAWK 14643 _ACAWK
27050 _ACEOF 14644 _ACEOF
27051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14645 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27052 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5 14646 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27053 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
27054 { (exit 1); exit 1; }; }
27055 fi # test -n "$CONFIG_HEADERS" 14647 fi # test -n "$CONFIG_HEADERS"
27056 14648
27057 14649
27058 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 14650 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27059 shift 14651 shift
27062 case $ac_tag in 14654 case $ac_tag in
27063 :[FHLC]) ac_mode=$ac_tag; continue;; 14655 :[FHLC]) ac_mode=$ac_tag; continue;;
27064 esac 14656 esac
27065 case $ac_mode$ac_tag in 14657 case $ac_mode$ac_tag in
27066 :[FHL]*:*);; 14658 :[FHL]*:*);;
27067 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 14659 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27068 $as_echo "$as_me: error: Invalid tag $ac_tag." >&2;}
27069 { (exit 1); exit 1; }; };;
27070 :[FH]-) ac_tag=-:-;; 14660 :[FH]-) ac_tag=-:-;;
27071 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 14661 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27072 esac 14662 esac
27073 ac_save_IFS=$IFS 14663 ac_save_IFS=$IFS
27074 IFS=: 14664 IFS=:
27092 test -f "$ac_f" || 14682 test -f "$ac_f" ||
27093 case $ac_f in 14683 case $ac_f in
27094 [\\/$]*) false;; 14684 [\\/$]*) false;;
27095 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 14685 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27096 esac || 14686 esac ||
27097 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 14687 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27098 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
27099 { (exit 1); exit 1; }; };;
27100 esac 14688 esac
27101 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 14689 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27102 ac_file_inputs="$ac_file_inputs '$ac_f'" 14690 as_fn_append ac_file_inputs " '$ac_f'"
27103 done 14691 done
27104 14692
27105 # Let's still pretend it is `configure' which instantiates (i.e., don't 14693 # Let's still pretend it is `configure' which instantiates (i.e., don't
27106 # use $as_me), people would be surprised to read: 14694 # use $as_me), people would be surprised to read:
27107 # /* config.h. Generated by config.status. */ 14695 # /* config.h. Generated by config.status. */
27108 configure_input='Generated from '` 14696 configure_input='Generated from '`
27109 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 14697 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27110 `' by configure.' 14698 `' by configure.'
27111 if test x"$ac_file" != x-; then 14699 if test x"$ac_file" != x-; then
27112 configure_input="$ac_file. $configure_input" 14700 configure_input="$ac_file. $configure_input"
27113 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5 14701 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27114 $as_echo "$as_me: creating $ac_file" >&6;} 14702 $as_echo "$as_me: creating $ac_file" >&6;}
27115 fi 14703 fi
27116 # Neutralize special characters interpreted by sed in replacement strings. 14704 # Neutralize special characters interpreted by sed in replacement strings.
27117 case $configure_input in #( 14705 case $configure_input in #(
27118 *\&* | *\|* | *\\* ) 14706 *\&* | *\|* | *\\* )
27121 *) ac_sed_conf_input=$configure_input;; 14709 *) ac_sed_conf_input=$configure_input;;
27122 esac 14710 esac
27123 14711
27124 case $ac_tag in 14712 case $ac_tag in
27125 *:-:* | *:-) cat >"$tmp/stdin" \ 14713 *:-:* | *:-) cat >"$tmp/stdin" \
27126 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14714 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27127 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27128 { (exit 1); exit 1; }; } ;;
27129 esac 14715 esac
27130 ;; 14716 ;;
27131 esac 14717 esac
27132 14718
27133 ac_dir=`$as_dirname -- "$ac_file" || 14719 ac_dir=`$as_dirname -- "$ac_file" ||
27151 /^X\(\/\).*/{ 14737 /^X\(\/\).*/{
27152 s//\1/ 14738 s//\1/
27153 q 14739 q
27154 } 14740 }
27155 s/.*/./; q'` 14741 s/.*/./; q'`
27156 { as_dir="$ac_dir" 14742 as_dir="$ac_dir"; as_fn_mkdir_p
27157 case $as_dir in #(
27158 -*) as_dir=./$as_dir;;
27159 esac
27160 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
27161 as_dirs=
27162 while :; do
27163 case $as_dir in #(
27164 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27165 *) as_qdir=$as_dir;;
27166 esac
27167 as_dirs="'$as_qdir' $as_dirs"
27168 as_dir=`$as_dirname -- "$as_dir" ||
27169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27170 X"$as_dir" : 'X\(//\)[^/]' \| \
27171 X"$as_dir" : 'X\(//\)$' \| \
27172 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27173 $as_echo X"$as_dir" |
27174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27175 s//\1/
27176 q
27177 }
27178 /^X\(\/\/\)[^/].*/{
27179 s//\1/
27180 q
27181 }
27182 /^X\(\/\/\)$/{
27183 s//\1/
27184 q
27185 }
27186 /^X\(\/\).*/{
27187 s//\1/
27188 q
27189 }
27190 s/.*/./; q'`
27191 test -d "$as_dir" && break
27192 done
27193 test -z "$as_dirs" || eval "mkdir $as_dirs"
27194 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
27195 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
27196 { (exit 1); exit 1; }; }; }
27197 ac_builddir=. 14743 ac_builddir=.
27198 14744
27199 case "$ac_dir" in 14745 case "$ac_dir" in
27200 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 14746 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27201 *) 14747 *)
27243 14789
27244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14790 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27245 # If the template does not know about datarootdir, expand it. 14791 # If the template does not know about datarootdir, expand it.
27246 # FIXME: This hack should be removed a few years after 2.60. 14792 # FIXME: This hack should be removed a few years after 2.60.
27247 ac_datarootdir_hack=; ac_datarootdir_seen= 14793 ac_datarootdir_hack=; ac_datarootdir_seen=
27248
27249 ac_sed_dataroot=' 14794 ac_sed_dataroot='
27250 /datarootdir/ { 14795 /datarootdir/ {
27251 p 14796 p
27252 q 14797 q
27253 } 14798 }
27254 /@datadir@/p 14799 /@datadir@/p
27255 /@docdir@/p 14800 /@docdir@/p
27256 /@infodir@/p 14801 /@infodir@/p
27257 /@localedir@/p 14802 /@localedir@/p
27258 /@mandir@/p 14803 /@mandir@/p'
27259 '
27260 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14804 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27261 *datarootdir*) ac_datarootdir_seen=yes;; 14805 *datarootdir*) ac_datarootdir_seen=yes;;
27262 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14806 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27263 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27264 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14808 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27265 _ACEOF 14809 _ACEOF
27266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14810 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27267 ac_datarootdir_hack=' 14811 ac_datarootdir_hack='
27268 s&@datadir@&$datadir&g 14812 s&@datadir@&$datadir&g
27269 s&@docdir@&$docdir&g 14813 s&@docdir@&$docdir&g
27270 s&@infodir@&$infodir&g 14814 s&@infodir@&$infodir&g
27271 s&@localedir@&$localedir&g 14815 s&@localedir@&$localedir&g
27272 s&@mandir@&$mandir&g 14816 s&@mandir@&$mandir&g
27273 s&\\\${datarootdir}&$datarootdir&g' ;; 14817 s&\\\${datarootdir}&$datarootdir&g' ;;
27274 esac 14818 esac
27275 _ACEOF 14819 _ACEOF
27276 14820
27277 # Neutralize VPATH when `$srcdir' = `.'. 14821 # Neutralize VPATH when `$srcdir' = `.'.
27278 # Shell code in configure.ac might set extrasub. 14822 # Shell code in configure.ac might set extrasub.
27296 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14840 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27297 s&@INSTALL@&$ac_INSTALL&;t t 14841 s&@INSTALL@&$ac_INSTALL&;t t
27298 $ac_datarootdir_hack 14842 $ac_datarootdir_hack
27299 " 14843 "
27300 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 14844 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27301 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14845 || as_fn_error "could not create $ac_file" "$LINENO" 5
27302 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27303 { (exit 1); exit 1; }; }
27304 14846
27305 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14847 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27306 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 14848 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27307 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 14849 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27308 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14850 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27309 which seems to be undefined. Please make sure it is defined." >&5 14851 which seems to be undefined. Please make sure it is defined." >&5
27310 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14852 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27311 which seems to be undefined. Please make sure it is defined." >&2;} 14853 which seems to be undefined. Please make sure it is defined." >&2;}
27312 14854
27313 rm -f "$tmp/stdin" 14855 rm -f "$tmp/stdin"
27314 case $ac_file in 14856 case $ac_file in
27315 -) cat "$tmp/out" && rm -f "$tmp/out";; 14857 -) cat "$tmp/out" && rm -f "$tmp/out";;
27316 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 14858 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27317 esac \ 14859 esac \
27318 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14860 || as_fn_error "could not create $ac_file" "$LINENO" 5
27319 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27320 { (exit 1); exit 1; }; }
27321 ;; 14861 ;;
27322 :H) 14862 :H)
27323 # 14863 #
27324 # CONFIG_HEADER 14864 # CONFIG_HEADER
27325 # 14865 #
27326 if test x"$ac_file" != x-; then 14866 if test x"$ac_file" != x-; then
27327 { 14867 {
27328 $as_echo "/* $configure_input */" \ 14868 $as_echo "/* $configure_input */" \
27329 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 14869 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27330 } >"$tmp/config.h" \ 14870 } >"$tmp/config.h" \
27331 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14871 || as_fn_error "could not create $ac_file" "$LINENO" 5
27332 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27333 { (exit 1); exit 1; }; }
27334 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 14872 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27335 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5 14873 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27336 $as_echo "$as_me: $ac_file is unchanged" >&6;} 14874 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27337 else 14875 else
27338 rm -f "$ac_file" 14876 rm -f "$ac_file"
27339 mv "$tmp/config.h" "$ac_file" \ 14877 mv "$tmp/config.h" "$ac_file" \
27340 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5 14878 || as_fn_error "could not create $ac_file" "$LINENO" 5
27341 $as_echo "$as_me: error: could not create $ac_file" >&2;}
27342 { (exit 1); exit 1; }; }
27343 fi 14879 fi
27344 else 14880 else
27345 $as_echo "/* $configure_input */" \ 14881 $as_echo "/* $configure_input */" \
27346 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 14882 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27347 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5 14883 || as_fn_error "could not create -" "$LINENO" 5
27348 $as_echo "$as_me: error: could not create -" >&2;}
27349 { (exit 1); exit 1; }; }
27350 fi 14884 fi
27351 ;; 14885 ;;
27352 14886
27353 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5 14887 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27354 $as_echo "$as_me: executing $ac_file commands" >&6;} 14888 $as_echo "$as_me: executing $ac_file commands" >&6;}
27355 ;; 14889 ;;
27356 esac 14890 esac
27357 14891
27358 14892
27419 14953
27420 esac 14954 esac
27421 done # for ac_tag 14955 done # for ac_tag
27422 14956
27423 14957
27424 { (exit 0); exit 0; } 14958 as_fn_exit 0
27425 _ACEOF 14959 _ACEOF
27426 chmod +x $CONFIG_STATUS
27427 ac_clean_files=$ac_clean_files_save 14960 ac_clean_files=$ac_clean_files_save
27428 14961
27429 test $ac_write_fail = 0 || 14962 test $ac_write_fail = 0 ||
27430 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5 14963 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27431 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
27432 { (exit 1); exit 1; }; }
27433 14964
27434 14965
27435 # configure is writing to config.log, and then calls config.status. 14966 # configure is writing to config.log, and then calls config.status.
27436 # config.status does its own redirection, appending to config.log. 14967 # config.status does its own redirection, appending to config.log.
27437 # Unfortunately, on DOS this fails, as config.log is still kept open 14968 # Unfortunately, on DOS this fails, as config.log is still kept open
27448 exec 5>/dev/null 14979 exec 5>/dev/null
27449 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14980 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27450 exec 5>>config.log 14981 exec 5>>config.log
27451 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14982 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27452 # would make configure fail if this is the last instruction. 14983 # would make configure fail if this is the last instruction.
27453 $ac_cs_success || { (exit 1); exit 1; } 14984 $ac_cs_success || as_fn_exit $?
27454 fi 14985 fi
27455 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14986 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27456 { $as_echo "$as_me:$LINENO: WARNING: Unrecognized options: $ac_unrecognized_opts" >&5 14987 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27457 $as_echo "$as_me: WARNING: Unrecognized options: $ac_unrecognized_opts" >&2;} 14988 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27458 fi 14989 fi
27459 14990
27460 14991